nuxt-parley 1.0.0 → 1.1.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 +1 -0
- package/dist/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -1
- package/dist/runtime/parley.d.ts +1 -1
- package/dist/runtime/parley.js +1 -0
- package/dist/types.d.mts +1 -1
- package/package.json +11 -19
package/README.md
CHANGED
|
@@ -126,6 +126,7 @@ With `primitives: true`, `BIcon` (a Phosphor icon by name), `BEmojiPicker` and `
|
|
|
126
126
|
| --- | --- |
|
|
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
|
+
| `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. |
|
|
129
130
|
| `defineParleyConfig(fn)` | Typed helper for `app/parley.config.ts`. |
|
|
130
131
|
|
|
131
132
|
The stores get their handlers from the config file. Used on the server, they exist but have no handlers.
|
package/dist/module.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
export { ParleyConfig } from '../dist/runtime/config.js';
|
|
3
|
-
export { CallHandlers, CallKind, CallMessage, CallMessageSchema, CallPublishOptions, ChatFilter, ChatHandlers, ChatOptions, ChatUser, Contact, ContactsPage, Credential, ExtendedMessage, FetchContactsParams, FetchMessagesParams, FetchProfileAttachmentsParams, MediaDownloadOptions, MediaHandlers, Message, MessageType, MessagesHandlers, ProfileAttachmentsPage, ProfileHandlers, SendMessageOptions, SignalData, TurnConfig, UploadProgressEvent } from 'vue-parley';
|
|
3
|
+
export { CallHandlers, CallKind, CallMessage, CallMessageSchema, CallPublishOptions, ChatFilter, ChatHandlers, ChatOptions, ChatUser, Contact, ContactsPage, Credential, ExtendedMessage, FetchContactsParams, FetchMessagesParams, FetchProfileAttachmentsParams, MediaDownloadOptions, MediaHandlers, MediaItem, Message, MessageType, MessagesHandlers, ProfileAttachmentsPage, ProfileHandlers, SendMessageOptions, SignalData, TurnConfig, UploadProgressEvent } from 'vue-parley';
|
|
4
4
|
|
|
5
5
|
interface ModuleOptions {
|
|
6
6
|
/**
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -19,7 +19,9 @@ const COMPOSABLES = [
|
|
|
19
19
|
"useMediaStore",
|
|
20
20
|
"useProfileStore",
|
|
21
21
|
"useCallStore",
|
|
22
|
-
"provideCallHandlers"
|
|
22
|
+
"provideCallHandlers",
|
|
23
|
+
// Not a composable, but hosts need it wherever they map an album to or from their backend.
|
|
24
|
+
"messageMedia"
|
|
23
25
|
];
|
|
24
26
|
const module$1 = defineNuxtModule({
|
|
25
27
|
meta: {
|
package/dist/runtime/parley.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Call, ChatBubble, ChatConversation, ChatHeader, ChatInput, ChatList, ChatMessages, ChatPage, BEmojiPicker, BIcon, BVirtualVerticalList, createChat, 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, useCallStore, useChatStore, useMediaStore, useMessagesStore, useProfileStore, } from 'vue-parley';
|
package/dist/runtime/parley.js
CHANGED
package/dist/types.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type ParleyConfig } from '../dist/runtime/config.js'
|
|
2
2
|
|
|
3
|
-
export { type CallHandlers, type CallKind, type CallMessage, type CallMessageSchema, type CallPublishOptions, type ChatFilter, type ChatHandlers, type ChatOptions, type ChatUser, type Contact, type ContactsPage, type Credential, type ExtendedMessage, type FetchContactsParams, type FetchMessagesParams, type FetchProfileAttachmentsParams, type MediaDownloadOptions, type MediaHandlers, type Message, type MessageType, type MessagesHandlers, type ProfileAttachmentsPage, type ProfileHandlers, type SendMessageOptions, type SignalData, type TurnConfig, type UploadProgressEvent } from 'vue-parley'
|
|
3
|
+
export { type CallHandlers, type CallKind, type CallMessage, type CallMessageSchema, type CallPublishOptions, type ChatFilter, type ChatHandlers, type ChatOptions, type ChatUser, type Contact, type ContactsPage, type Credential, type ExtendedMessage, type FetchContactsParams, type FetchMessagesParams, type FetchProfileAttachmentsParams, type MediaDownloadOptions, type MediaHandlers, type MediaItem, type Message, type MessageType, type MessagesHandlers, type ProfileAttachmentsPage, type ProfileHandlers, type SendMessageOptions, type SignalData, type TurnConfig, type UploadProgressEvent } from 'vue-parley'
|
|
4
4
|
|
|
5
5
|
export { default } from './module.mjs'
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-parley",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
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>",
|
|
@@ -32,23 +32,13 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"prepack": "nuxt-module-build build",
|
|
37
|
-
"dev": "nuxi dev playground",
|
|
38
|
-
"dev:build": "nuxi build playground",
|
|
39
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
40
|
-
"lint": "eslint .",
|
|
41
|
-
"test": "vitest run",
|
|
42
|
-
"test:watch": "vitest watch",
|
|
43
|
-
"typecheck": "vue-tsc --noEmit && nuxi typecheck playground"
|
|
44
|
-
},
|
|
45
35
|
"dependencies": {
|
|
46
36
|
"@nuxt/kit": "^4.5.2",
|
|
47
37
|
"@pinia/nuxt": "^1.0.2",
|
|
48
38
|
"@vueuse/core": "^14.2.1",
|
|
49
39
|
"pinia": "^4.0.3",
|
|
50
40
|
"vue-i18n": "^11.4.5",
|
|
51
|
-
"vue-parley": "^4.
|
|
41
|
+
"vue-parley": "^4.1.1"
|
|
52
42
|
},
|
|
53
43
|
"peerDependencies": {
|
|
54
44
|
"primevue": "^4.5.0"
|
|
@@ -73,11 +63,13 @@
|
|
|
73
63
|
"vue": "^3.5.43",
|
|
74
64
|
"vue-tsc": "^3.3.11"
|
|
75
65
|
},
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
"scripts": {
|
|
67
|
+
"dev": "nuxi dev playground",
|
|
68
|
+
"dev:build": "nuxi build playground",
|
|
69
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
70
|
+
"lint": "eslint .",
|
|
71
|
+
"test": "vitest run",
|
|
72
|
+
"test:watch": "vitest watch",
|
|
73
|
+
"typecheck": "vue-tsc --noEmit && nuxi typecheck playground"
|
|
82
74
|
}
|
|
83
|
-
}
|
|
75
|
+
}
|