vue-parley 5.4.0 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/chat.css +1039 -83
- package/dist/chunks/{Call-DfAAePMJ.mjs → Call-BVp6aHyk.mjs} +794 -136
- package/dist/chunks/Call-BVp6aHyk.mjs.map +1 -0
- package/dist/chunks/{Call-w4VQ-iRu.cjs → Call-DgbgGqbs.cjs} +790 -132
- package/dist/chunks/Call-DgbgGqbs.cjs.map +1 -0
- package/dist/chunks/{index-BdXnFhTL.mjs → index-CcZpxhB1.mjs} +145 -84
- package/dist/chunks/index-CcZpxhB1.mjs.map +1 -0
- package/dist/chunks/{index-BtxDzcig.cjs → index-DxidYEes.cjs} +125 -64
- package/dist/chunks/index-DxidYEes.cjs.map +1 -0
- package/dist/chunks/{session-BBh6YzVv.cjs → session-C7cBlwpd.cjs} +5 -5
- package/dist/chunks/session-C7cBlwpd.cjs.map +1 -0
- package/dist/chunks/{session-yLg7UVs_.mjs → session-Cfs7wJKh.mjs} +5 -5
- package/dist/chunks/session-Cfs7wJKh.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +19 -19
- package/dist/types/app/components/ChatPage.vue.d.ts +3 -1
- package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/Call.vue.d.ts +50 -1
- package/dist/types/app/components/call/Call.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallIcon.vue.d.ts +1 -0
- package/dist/types/app/components/call/CallIcon.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/CallStage.vue.d.ts +63 -0
- package/dist/types/app/components/call/CallStage.vue.d.ts.map +1 -0
- package/dist/types/app/components/call/CallStageMini.vue.d.ts +10 -0
- package/dist/types/app/components/call/CallStageMini.vue.d.ts.map +1 -0
- package/dist/types/app/components/call/CallStageVideo.vue.d.ts +12 -0
- package/dist/types/app/components/call/CallStageVideo.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/contact/ChatList.vue.d.ts.map +1 -1
- package/dist/types/app/composables/call/session.d.ts +1 -1
- package/dist/types/app/composables/call/signaling.d.ts +1 -1
- package/dist/types/app/composables/call/signaling.d.ts.map +1 -1
- package/dist/types/app/index.d.ts +69 -15
- package/dist/types/app/index.d.ts.map +1 -1
- package/dist/types/app/stores/callStore.d.ts +10 -7
- package/dist/types/app/stores/callStore.d.ts.map +1 -1
- package/dist/types/app/stores/chatStore.d.ts +1 -1
- package/dist/types/app/stores/chatStore.d.ts.map +1 -1
- package/dist/types/app/stores/messageStores.d.ts +651 -0
- package/dist/types/app/stores/messageStores.d.ts.map +1 -1
- package/dist/types/app/types/components/menu-options.d.ts +9 -1
- package/dist/types/app/types/components/menu-options.d.ts.map +1 -1
- package/dist/types/app/types/index.d.ts +7 -1
- package/dist/types/app/types/index.d.ts.map +1 -1
- package/dist/types/i18n/locales/index.d.ts +42 -0
- package/dist/types/i18n/locales/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/Call-DfAAePMJ.mjs.map +0 -1
- package/dist/chunks/Call-w4VQ-iRu.cjs.map +0 -1
- package/dist/chunks/index-BdXnFhTL.mjs.map +0 -1
- package/dist/chunks/index-BtxDzcig.cjs.map +0 -1
- package/dist/chunks/session-BBh6YzVv.cjs.map +0 -1
- package/dist/chunks/session-yLg7UVs_.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -126,6 +126,12 @@ The header folds by its own width (under 640px), not the screen's, since the lis
|
|
|
126
126
|
</ChatPage>
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
+
A message's menu (right click or long press) can carry the host's own actions too: `messageOptions` is a function from the message to `MenuOption[]`, called each time the menu renders, so the items can follow the message's state. They are listed as rows between the quick actions and delete, and are not offered on a message still being sent or while several are selected.
|
|
130
|
+
|
|
131
|
+
```vue
|
|
132
|
+
<ChatPage :message-options="(message) => [{ key: 'pin', label: 'Pin', icon: 'PhPushPin', command: () => pin(message.id) }]" />
|
|
133
|
+
```
|
|
134
|
+
|
|
129
135
|
To build a different layout, use the exported building blocks instead: `ChatList`, `ChatConversation`, `ChatHeader`, `ChatMessages`, `ChatInput` and `ChatBubble`. They read the same stores, so they work together once `createChat()` is installed.
|
|
130
136
|
|
|
131
137
|
### Photos and videos
|