Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,16 @@ The `richEditing` mixin can be replaced by just using the `NcRichText` component
The value `arrowRight` of the property `trailingButtonIcon` is deprecated and will be removed in a future version.
It is replaced by `arrowEnd` which reflects that the directions depends on the text directions (LTR vs RTL).

#### Event names
Custom events now have a consistent naming without custom scoping of the events.
Thus following events are deprecated in favor of a new consistent event name:

Component | Old event | New event
---------------|-----------------|----------------
`NcAppContent` | `resize:list` | `resize-list`
`NcRichText` | `interact:todo` | `interact-todo`


## [v8.27.0](https://github.com/nextcloud-libraries/nextcloud-vue/tree/v8.27.0) (2025-05-28)

### 📝 Notes
Expand Down
7 changes: 7 additions & 0 deletions src/components/NcAppContent/NcAppContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@

emits: [
'update:showDetails',
'resize-list',
'resize:list',
],

Expand Down Expand Up @@ -410,8 +411,14 @@
this.listPaneSize = listPaneSize
/**
* Emitted when the list pane is resized by the user
*
* @deprecated listen on `resize-list` instead
*/
this.$emit('resize:list', { size: listPaneSize })

Check warning on line 417 in src/components/NcAppContent/NcAppContent.vue

View workflow job for this annotation

GitHub Actions / eslint

Custom event name 'resize:list' must be camelCase
/**
* Emitted when the list pane is resized by the user
*/
this.$emit('resize-list', { size: listPaneSize })

Check warning on line 421 in src/components/NcAppContent/NcAppContent.vue

View workflow job for this annotation

GitHub Actions / eslint

Custom event name 'resize-list' must be camelCase
console.debug('AppContent pane config', listPaneSize)
},

Expand Down
16 changes: 14 additions & 2 deletions src/components/NcRichText/NcRichText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ It is also possible to make a rendered content interactive and listen for events
<NcRichText :text="text"
:use-extended-markdown="true"
:interactive="true"
@interact:todo="handleInteraction"/>
@interact-todo="handleInteraction"/>
</div>
</template>
<script>
Expand Down Expand Up @@ -391,7 +391,10 @@ export default {
default: true,
},
},
emits: ['interact:todo'],
emits: [
'interact-todo',
'interact:todo',
],

data() {
return {
Expand Down Expand Up @@ -527,7 +530,16 @@ export default {
id,
disabled: !this.interactive,
'onUpdate:modelValue': () => {
/**
* Emitted when a todo-list entry was interacted with
*
* @deprecated listen on the `interact-todo` instead
*/
this.$emit('interact:todo', id)
/**
* Emitted when a todo-list entry was interacted with
*/
this.$emit('interact-todo', id)
},
}, { default: () => labelParts })

Expand Down
Loading