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 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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "1.0.0",
7
+ "version": "1.1.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.3",
10
10
  "unbuild": "unknown"
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: {
@@ -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';
@@ -11,6 +11,7 @@ export {
11
11
  BIcon,
12
12
  BVirtualVerticalList,
13
13
  createChat,
14
+ messageMedia,
14
15
  provideCallHandlers,
15
16
  useCallStore,
16
17
  useChatStore,
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.0.0",
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.0.0"
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
- "pnpm": {
77
- "onlyBuiltDependencies": [
78
- "@parcel/watcher",
79
- "esbuild",
80
- "unrs-resolver"
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
+ }