vue-parley 5.4.0 → 5.5.0

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.
Files changed (55) hide show
  1. package/README.md +6 -0
  2. package/dist/chat.css +754 -15
  3. package/dist/chunks/{Call-w4VQ-iRu.cjs → Call-CSkYjkaI.cjs} +790 -132
  4. package/dist/chunks/Call-CSkYjkaI.cjs.map +1 -0
  5. package/dist/chunks/{Call-DfAAePMJ.mjs → Call-CqqBK4xd.mjs} +794 -136
  6. package/dist/chunks/Call-CqqBK4xd.mjs.map +1 -0
  7. package/dist/chunks/{index-BdXnFhTL.mjs → index-Dlt-grAd.mjs} +125 -64
  8. package/dist/chunks/index-Dlt-grAd.mjs.map +1 -0
  9. package/dist/chunks/{index-BtxDzcig.cjs → index-cGph4WVm.cjs} +105 -44
  10. package/dist/chunks/index-cGph4WVm.cjs.map +1 -0
  11. package/dist/chunks/{session-BBh6YzVv.cjs → session-BZY-cN_d.cjs} +5 -5
  12. package/dist/chunks/session-BZY-cN_d.cjs.map +1 -0
  13. package/dist/chunks/{session-yLg7UVs_.mjs → session-PSnenEBw.mjs} +5 -5
  14. package/dist/chunks/session-PSnenEBw.mjs.map +1 -0
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.mjs +19 -19
  17. package/dist/types/app/components/ChatPage.vue.d.ts +3 -1
  18. package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -1
  19. package/dist/types/app/components/call/Call.vue.d.ts +50 -1
  20. package/dist/types/app/components/call/Call.vue.d.ts.map +1 -1
  21. package/dist/types/app/components/call/CallIcon.vue.d.ts +1 -0
  22. package/dist/types/app/components/call/CallIcon.vue.d.ts.map +1 -1
  23. package/dist/types/app/components/call/CallStage.vue.d.ts +63 -0
  24. package/dist/types/app/components/call/CallStage.vue.d.ts.map +1 -0
  25. package/dist/types/app/components/call/CallStageMini.vue.d.ts +10 -0
  26. package/dist/types/app/components/call/CallStageMini.vue.d.ts.map +1 -0
  27. package/dist/types/app/components/call/CallStageVideo.vue.d.ts +12 -0
  28. package/dist/types/app/components/call/CallStageVideo.vue.d.ts.map +1 -0
  29. package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -1
  30. package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +1 -1
  31. package/dist/types/app/components/chat/contact/ChatList.vue.d.ts.map +1 -1
  32. package/dist/types/app/composables/call/session.d.ts +1 -1
  33. package/dist/types/app/composables/call/signaling.d.ts +1 -1
  34. package/dist/types/app/composables/call/signaling.d.ts.map +1 -1
  35. package/dist/types/app/index.d.ts +69 -15
  36. package/dist/types/app/index.d.ts.map +1 -1
  37. package/dist/types/app/stores/callStore.d.ts +10 -7
  38. package/dist/types/app/stores/callStore.d.ts.map +1 -1
  39. package/dist/types/app/stores/chatStore.d.ts +1 -1
  40. package/dist/types/app/stores/chatStore.d.ts.map +1 -1
  41. package/dist/types/app/stores/messageStores.d.ts +651 -0
  42. package/dist/types/app/stores/messageStores.d.ts.map +1 -1
  43. package/dist/types/app/types/components/menu-options.d.ts +9 -1
  44. package/dist/types/app/types/components/menu-options.d.ts.map +1 -1
  45. package/dist/types/app/types/index.d.ts +7 -1
  46. package/dist/types/app/types/index.d.ts.map +1 -1
  47. package/dist/types/i18n/locales/index.d.ts +42 -0
  48. package/dist/types/i18n/locales/index.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/chunks/Call-DfAAePMJ.mjs.map +0 -1
  51. package/dist/chunks/Call-w4VQ-iRu.cjs.map +0 -1
  52. package/dist/chunks/index-BdXnFhTL.mjs.map +0 -1
  53. package/dist/chunks/index-BtxDzcig.cjs.map +0 -1
  54. package/dist/chunks/session-BBh6YzVv.cjs.map +0 -1
  55. 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