nuxt-parley 1.4.0 → 1.6.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.
- package/README.md +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -0
- package/dist/runtime/parley.d.ts +1 -1
- package/dist/runtime/parley.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -127,6 +127,7 @@ With `primitives: true`, `BIcon` (a Phosphor icon by name), `BEmojiPicker` and `
|
|
|
127
127
|
| `useChatStore`, `useMessagesStore`, `useMediaStore`, `useProfileStore`, `useCallStore` | vue-parley's Pinia stores. Usable anywhere, including plugins and middleware. |
|
|
128
128
|
| `provideCallHandlers(handlers)` | Supplies call handlers from inside a component. |
|
|
129
129
|
| `messageMedia(message)` | A message's photo and video album (`media`, or `imageUrl` as photos). Albums are sent with `media`: upload each item, and return it on the message. |
|
|
130
|
+
| `resetChat()` | Forgets everything the chat loaded for the signed-in user (conversations, threads, drafts, shared media, the downloaded-file cache) and ends a running call. Call it on sign-out or an account switch; the handlers stay. |
|
|
130
131
|
| `defineParleyConfig(fn)` | Typed helper for `app/parley.config.ts`. |
|
|
131
132
|
|
|
132
133
|
The stores get their handlers from the config file. Used on the server, they exist but have no handlers.
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -20,6 +20,8 @@ const COMPOSABLES = [
|
|
|
20
20
|
"useProfileStore",
|
|
21
21
|
"useCallStore",
|
|
22
22
|
"provideCallHandlers",
|
|
23
|
+
// Not a composable either: hosts call it when the signed-in user changes.
|
|
24
|
+
"resetChat",
|
|
23
25
|
// Not a composable, but hosts need it wherever they map an album to or from their backend.
|
|
24
26
|
"messageMedia"
|
|
25
27
|
];
|
package/dist/runtime/parley.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Call, ChatBubble, ChatConversation, ChatHeader, ChatInput, ChatList, ChatMessages, ChatPage, BEmojiPicker, BIcon, BVirtualVerticalList, createChat, messageMedia, provideCallHandlers, useCallStore, useChatStore, useMediaStore, useMessagesStore, useProfileStore, } from 'vue-parley';
|
|
1
|
+
export { Call, ChatBubble, ChatConversation, ChatHeader, ChatInput, ChatList, ChatMessages, ChatPage, BEmojiPicker, BIcon, BVirtualVerticalList, createChat, messageMedia, provideCallHandlers, resetChat, useCallStore, useChatStore, useMediaStore, useMessagesStore, useProfileStore, } from 'vue-parley';
|
package/dist/runtime/parley.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-parley",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Nuxt module for vue-parley: a drop-in chat and video-call UI, wired into Pinia and i18n for you.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SaeedP11 <saeed_abdi.p11@outlook.com>",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@vueuse/core": "^14.2.1",
|
|
39
39
|
"pinia": "^4.0.3",
|
|
40
40
|
"vue-i18n": "^11.4.5",
|
|
41
|
-
"vue-parley": "^4.
|
|
41
|
+
"vue-parley": "^4.6.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"primevue": "^4.5.0"
|