vue-parley 4.0.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 (202) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +276 -0
  3. package/dist/chat.css +3223 -0
  4. package/dist/chunks/Call-CTIujxDi.cjs +818 -0
  5. package/dist/chunks/Call-CTIujxDi.cjs.map +1 -0
  6. package/dist/chunks/Call-Dwuyd-Ut.mjs +818 -0
  7. package/dist/chunks/Call-Dwuyd-Ut.mjs.map +1 -0
  8. package/dist/chunks/index-D50Yn7q4.cjs +7031 -0
  9. package/dist/chunks/index-D50Yn7q4.cjs.map +1 -0
  10. package/dist/chunks/index-JU_JZkSC.mjs +7010 -0
  11. package/dist/chunks/index-JU_JZkSC.mjs.map +1 -0
  12. package/dist/chunks/session-B3KIrj3_.mjs +711 -0
  13. package/dist/chunks/session-B3KIrj3_.mjs.map +1 -0
  14. package/dist/chunks/session-BOfkV8PJ.cjs +711 -0
  15. package/dist/chunks/session-BOfkV8PJ.cjs.map +1 -0
  16. package/dist/fakes.cjs +335 -0
  17. package/dist/fakes.cjs.map +1 -0
  18. package/dist/fakes.mjs +335 -0
  19. package/dist/fakes.mjs.map +1 -0
  20. package/dist/index.cjs +24 -0
  21. package/dist/index.cjs.map +1 -0
  22. package/dist/index.mjs +24 -0
  23. package/dist/index.mjs.map +1 -0
  24. package/dist/types/app/components/ChatPage.vue.d.ts +60 -0
  25. package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -0
  26. package/dist/types/app/components/call/Call.vue.d.ts +8 -0
  27. package/dist/types/app/components/call/Call.vue.d.ts.map +1 -0
  28. package/dist/types/app/components/chat/ChatBubble.vue.d.ts +64 -0
  29. package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -0
  30. package/dist/types/app/components/chat/ChatInput.vue.d.ts +60 -0
  31. package/dist/types/app/components/chat/ChatInput.vue.d.ts.map +1 -0
  32. package/dist/types/app/components/chat/ChatMessages.vue.d.ts +45 -0
  33. package/dist/types/app/components/chat/ChatMessages.vue.d.ts.map +1 -0
  34. package/dist/types/app/components/chat/ChatPageBar.vue.d.ts +50 -0
  35. package/dist/types/app/components/chat/ChatPageBar.vue.d.ts.map +1 -0
  36. package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts +11 -0
  37. package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts.map +1 -0
  38. package/dist/types/app/components/chat/ChatView.vue.d.ts +244 -0
  39. package/dist/types/app/components/chat/ChatView.vue.d.ts.map +1 -0
  40. package/dist/types/app/components/chat/chat-bubbles/BubbleDivider.vue.d.ts +7 -0
  41. package/dist/types/app/components/chat/chat-bubbles/BubbleDivider.vue.d.ts.map +1 -0
  42. package/dist/types/app/components/chat/chat-bubbles/BubbleImages.vue.d.ts +13 -0
  43. package/dist/types/app/components/chat/chat-bubbles/BubbleImages.vue.d.ts.map +1 -0
  44. package/dist/types/app/components/chat/chat-bubbles/BubbleMeta.vue.d.ts +11 -0
  45. package/dist/types/app/components/chat/chat-bubbles/BubbleMeta.vue.d.ts.map +1 -0
  46. package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts +16 -0
  47. package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +1 -0
  48. package/dist/types/app/components/chat/chat-bubbles/BubbleRequest.vue.d.ts +8 -0
  49. package/dist/types/app/components/chat/chat-bubbles/BubbleRequest.vue.d.ts.map +1 -0
  50. package/dist/types/app/components/chat/chat-bubbles/BubbleSelectionMark.vue.d.ts +7 -0
  51. package/dist/types/app/components/chat/chat-bubbles/BubbleSelectionMark.vue.d.ts.map +1 -0
  52. package/dist/types/app/components/chat/chat-bubbles/BubbleStatus.vue.d.ts +7 -0
  53. package/dist/types/app/components/chat/chat-bubbles/BubbleStatus.vue.d.ts.map +1 -0
  54. package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts +25 -0
  55. package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts.map +1 -0
  56. package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts +13 -0
  57. package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts.map +1 -0
  58. package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts +14 -0
  59. package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts.map +1 -0
  60. package/dist/types/app/components/chat/chat-bubbles/ReplyPreview.vue.d.ts +10 -0
  61. package/dist/types/app/components/chat/chat-bubbles/ReplyPreview.vue.d.ts.map +1 -0
  62. package/dist/types/app/components/chat/chat-bubbles/UploadProgressOverlay.vue.d.ts +10 -0
  63. package/dist/types/app/components/chat/chat-bubbles/UploadProgressOverlay.vue.d.ts.map +1 -0
  64. package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts +12 -0
  65. package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts.map +1 -0
  66. package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts +12 -0
  67. package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts.map +1 -0
  68. package/dist/types/app/components/chat/chat-input/InputActionBar.vue.d.ts +13 -0
  69. package/dist/types/app/components/chat/chat-input/InputActionBar.vue.d.ts.map +1 -0
  70. package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts +18 -0
  71. package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts.map +1 -0
  72. package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts +8 -0
  73. package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts.map +1 -0
  74. package/dist/types/app/components/chat/chat-input/RecordButton.vue.d.ts +27 -0
  75. package/dist/types/app/components/chat/chat-input/RecordButton.vue.d.ts.map +1 -0
  76. package/dist/types/app/components/chat/chat-input/RecordingStatus.vue.d.ts +12 -0
  77. package/dist/types/app/components/chat/chat-input/RecordingStatus.vue.d.ts.map +1 -0
  78. package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts +26 -0
  79. package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts.map +1 -0
  80. package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts +8 -0
  81. package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts.map +1 -0
  82. package/dist/types/app/components/chat/contact/ChatList.vue.d.ts +5 -0
  83. package/dist/types/app/components/chat/contact/ChatList.vue.d.ts.map +1 -0
  84. package/dist/types/app/components/chat/contact/ChatListSearch.vue.d.ts +16 -0
  85. package/dist/types/app/components/chat/contact/ChatListSearch.vue.d.ts.map +1 -0
  86. package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts +10 -0
  87. package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts.map +1 -0
  88. package/dist/types/app/components/chat/contact/ContactSkeleton.vue.d.ts +3 -0
  89. package/dist/types/app/components/chat/contact/ContactSkeleton.vue.d.ts.map +1 -0
  90. package/dist/types/app/components/chat/messages/FloatingDateHeader.vue.d.ts +9 -0
  91. package/dist/types/app/components/chat/messages/FloatingDateHeader.vue.d.ts.map +1 -0
  92. package/dist/types/app/components/chat/messages/MessagesSkeleton.vue.d.ts +8 -0
  93. package/dist/types/app/components/chat/messages/MessagesSkeleton.vue.d.ts.map +1 -0
  94. package/dist/types/app/components/chat/messages/ScrollToBottomButton.vue.d.ts +11 -0
  95. package/dist/types/app/components/chat/messages/ScrollToBottomButton.vue.d.ts.map +1 -0
  96. package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts +9 -0
  97. package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts.map +1 -0
  98. package/dist/types/app/components/general/ConfirmModal.vue.d.ts +21 -0
  99. package/dist/types/app/components/general/ConfirmModal.vue.d.ts.map +1 -0
  100. package/dist/types/app/components/general/FileFormatDisplay.vue.d.ts +16 -0
  101. package/dist/types/app/components/general/FileFormatDisplay.vue.d.ts.map +1 -0
  102. package/dist/types/app/components/general/IconButton.vue.d.ts +13 -0
  103. package/dist/types/app/components/general/IconButton.vue.d.ts.map +1 -0
  104. package/dist/types/app/components/general/LoadingStatus.vue.d.ts +16 -0
  105. package/dist/types/app/components/general/LoadingStatus.vue.d.ts.map +1 -0
  106. package/dist/types/app/components/general/MediaImage.vue.d.ts +30 -0
  107. package/dist/types/app/components/general/MediaImage.vue.d.ts.map +1 -0
  108. package/dist/types/app/components/general/NoDataDisplay.vue.d.ts +7 -0
  109. package/dist/types/app/components/general/NoDataDisplay.vue.d.ts.map +1 -0
  110. package/dist/types/app/components/general/ResponsiveDialog.vue.d.ts +28 -0
  111. package/dist/types/app/components/general/ResponsiveDialog.vue.d.ts.map +1 -0
  112. package/dist/types/app/components/general/SafeEmojiText.vue.d.ts +10 -0
  113. package/dist/types/app/components/general/SafeEmojiText.vue.d.ts.map +1 -0
  114. package/dist/types/app/components/global/BEmojiPicker.vue.d.ts +8 -0
  115. package/dist/types/app/components/global/BEmojiPicker.vue.d.ts.map +1 -0
  116. package/dist/types/app/components/global/BIcon.vue.d.ts +11 -0
  117. package/dist/types/app/components/global/BIcon.vue.d.ts.map +1 -0
  118. package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts +30 -0
  119. package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts.map +1 -0
  120. package/dist/types/app/composables/call/media.d.ts +204 -0
  121. package/dist/types/app/composables/call/media.d.ts.map +1 -0
  122. package/dist/types/app/composables/call/peer.d.ts +39 -0
  123. package/dist/types/app/composables/call/peer.d.ts.map +1 -0
  124. package/dist/types/app/composables/call/peers.d.ts +54 -0
  125. package/dist/types/app/composables/call/peers.d.ts.map +1 -0
  126. package/dist/types/app/composables/call/session.d.ts +284 -0
  127. package/dist/types/app/composables/call/session.d.ts.map +1 -0
  128. package/dist/types/app/composables/call/signaling.d.ts +36 -0
  129. package/dist/types/app/composables/call/signaling.d.ts.map +1 -0
  130. package/dist/types/app/composables/call/useCallUi.d.ts +27 -0
  131. package/dist/types/app/composables/call/useCallUi.d.ts.map +1 -0
  132. package/dist/types/app/composables/chat/useChatRecording.d.ts +75 -0
  133. package/dist/types/app/composables/chat/useChatRecording.d.ts.map +1 -0
  134. package/dist/types/app/composables/chat/useInputDraft.d.ts +14 -0
  135. package/dist/types/app/composables/chat/useInputDraft.d.ts.map +1 -0
  136. package/dist/types/app/composables/useAppPermissions.d.ts +25 -0
  137. package/dist/types/app/composables/useAppPermissions.d.ts.map +1 -0
  138. package/dist/types/app/composables/useAppToast.d.ts +13 -0
  139. package/dist/types/app/composables/useAppToast.d.ts.map +1 -0
  140. package/dist/types/app/composables/useAttachmentPicker.d.ts +18 -0
  141. package/dist/types/app/composables/useAttachmentPicker.d.ts.map +1 -0
  142. package/dist/types/app/composables/useCall.d.ts +91 -0
  143. package/dist/types/app/composables/useCall.d.ts.map +1 -0
  144. package/dist/types/app/composables/useChatMessageList.d.ts +18 -0
  145. package/dist/types/app/composables/useChatMessageList.d.ts.map +1 -0
  146. package/dist/types/app/composables/useDate.d.ts +7 -0
  147. package/dist/types/app/composables/useDate.d.ts.map +1 -0
  148. package/dist/types/app/composables/useDevice.d.ts +32 -0
  149. package/dist/types/app/composables/useDevice.d.ts.map +1 -0
  150. package/dist/types/app/composables/useFlippedVirtualScroll.d.ts +22 -0
  151. package/dist/types/app/composables/useFlippedVirtualScroll.d.ts.map +1 -0
  152. package/dist/types/app/composables/useHostI18n.d.ts +15 -0
  153. package/dist/types/app/composables/useHostI18n.d.ts.map +1 -0
  154. package/dist/types/app/composables/useLocalI18n.d.ts +5 -0
  155. package/dist/types/app/composables/useLocalI18n.d.ts.map +1 -0
  156. package/dist/types/app/composables/useLongPress.d.ts +6 -0
  157. package/dist/types/app/composables/useLongPress.d.ts.map +1 -0
  158. package/dist/types/app/composables/useRichTextEditor.d.ts +12 -0
  159. package/dist/types/app/composables/useRichTextEditor.d.ts.map +1 -0
  160. package/dist/types/app/directives/loading.d.ts +6 -0
  161. package/dist/types/app/directives/loading.d.ts.map +1 -0
  162. package/dist/types/app/index.d.ts +31 -0
  163. package/dist/types/app/index.d.ts.map +1 -0
  164. package/dist/types/app/plugin.d.ts +28 -0
  165. package/dist/types/app/plugin.d.ts.map +1 -0
  166. package/dist/types/app/provider/callProvider.d.ts +7 -0
  167. package/dist/types/app/provider/callProvider.d.ts.map +1 -0
  168. package/dist/types/app/stores/callStore.d.ts +1626 -0
  169. package/dist/types/app/stores/callStore.d.ts.map +1 -0
  170. package/dist/types/app/stores/chatStore.d.ts +126 -0
  171. package/dist/types/app/stores/chatStore.d.ts.map +1 -0
  172. package/dist/types/app/stores/mediaStore.d.ts +18 -0
  173. package/dist/types/app/stores/mediaStore.d.ts.map +1 -0
  174. package/dist/types/app/stores/messageStores.d.ts +2460 -0
  175. package/dist/types/app/stores/messageStores.d.ts.map +1 -0
  176. package/dist/types/app/stores/profileStore.d.ts +102 -0
  177. package/dist/types/app/stores/profileStore.d.ts.map +1 -0
  178. package/dist/types/app/types/components/chat-input.d.ts +4 -0
  179. package/dist/types/app/types/components/chat-input.d.ts.map +1 -0
  180. package/dist/types/app/types/components/menu-options.d.ts +7 -0
  181. package/dist/types/app/types/components/menu-options.d.ts.map +1 -0
  182. package/dist/types/app/types/components/modal.d.ts +17 -0
  183. package/dist/types/app/types/components/modal.d.ts.map +1 -0
  184. package/dist/types/app/types/index.d.ts +257 -0
  185. package/dist/types/app/types/index.d.ts.map +1 -0
  186. package/dist/types/app/utils/emojiParser.d.ts +5 -0
  187. package/dist/types/app/utils/emojiParser.d.ts.map +1 -0
  188. package/dist/types/app/utils/format.d.ts +4 -0
  189. package/dist/types/app/utils/format.d.ts.map +1 -0
  190. package/dist/types/fakes/backend.d.ts +25 -0
  191. package/dist/types/fakes/backend.d.ts.map +1 -0
  192. package/dist/types/fakes/call.d.ts +7 -0
  193. package/dist/types/fakes/call.d.ts.map +1 -0
  194. package/dist/types/fakes/data.d.ts +13 -0
  195. package/dist/types/fakes/data.d.ts.map +1 -0
  196. package/dist/types/fakes/index.d.ts +7 -0
  197. package/dist/types/fakes/index.d.ts.map +1 -0
  198. package/dist/types/fakes.d.ts +2 -0
  199. package/dist/types/i18n/locales/index.d.ts +3557 -0
  200. package/dist/types/i18n/locales/index.d.ts.map +1 -0
  201. package/dist/types/index.d.ts +2 -0
  202. package/package.json +98 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/callStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAO5C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAMG,YAAY;oBAmCf,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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UserRoleKey } from '../types';
2
+ /** One conversation list as `conversationStates` exposes it. */
3
+ export interface ConversationListView {
4
+ /** Read-only: add contacts with `addContact`, change them with `updateContact`. */
5
+ data: readonly Contact[];
6
+ loading: boolean;
7
+ refreshing?: boolean;
8
+ page: number;
9
+ hasNextPage: boolean;
10
+ }
11
+ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<{
12
+ chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
13
+ currentUserBirthDate: globalThis.Ref<Date | null, Date | null>;
14
+ conversationStates: globalThis.ComputedRef<Record<StateKeys, ConversationListView>>;
15
+ activeConversationId: globalThis.Ref<string | null, string | null>;
16
+ profileViewOpen: globalThis.Ref<boolean, boolean>;
17
+ typingByConversation: globalThis.Ref<Record<string, string | null>, Record<string, string | null>>;
18
+ chatsPerPage: globalThis.ComputedRef<number>;
19
+ unreadCount: globalThis.ComputedRef<number>;
20
+ setHandlers: (val: ChatHandlers) => void;
21
+ setSelectedChat: (id: string | null) => void;
22
+ openProfile: () => void;
23
+ closeProfile: () => void;
24
+ deleteConversation: (id: string) => Promise<void>;
25
+ canEndConversation: globalThis.Ref<boolean, boolean>;
26
+ endConversation: (id: string) => Promise<void>;
27
+ fetchConversations: (filterState?: StateKeys, page?: number, search?: string) => Promise<void>;
28
+ loadNextPage: (filter: StateKeys) => Promise<void>;
29
+ getContactById: (id: string) => Contact | null;
30
+ getDisplayedContacts: (filter: StateKeys) => Contact[];
31
+ updateContact: (id: string, updates: Partial<Contact>) => void;
32
+ addContact: (contact: Contact, filter?: StateKeys) => void;
33
+ calls: globalThis.Ref<{
34
+ channel: string;
35
+ name: string;
36
+ avatar?: string | undefined;
37
+ from: string;
38
+ }[], {
39
+ channel: string;
40
+ name: string;
41
+ avatar?: string;
42
+ from: string;
43
+ }[] | {
44
+ channel: string;
45
+ name: string;
46
+ avatar?: string | undefined;
47
+ from: string;
48
+ }[]>;
49
+ }, "chosenRole" | "currentUserBirthDate" | "activeConversationId" | "profileViewOpen" | "typingByConversation" | "canEndConversation" | "calls">, Pick<{
50
+ chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
51
+ currentUserBirthDate: globalThis.Ref<Date | null, Date | null>;
52
+ conversationStates: globalThis.ComputedRef<Record<StateKeys, ConversationListView>>;
53
+ activeConversationId: globalThis.Ref<string | null, string | null>;
54
+ profileViewOpen: globalThis.Ref<boolean, boolean>;
55
+ typingByConversation: globalThis.Ref<Record<string, string | null>, Record<string, string | null>>;
56
+ chatsPerPage: globalThis.ComputedRef<number>;
57
+ unreadCount: globalThis.ComputedRef<number>;
58
+ setHandlers: (val: ChatHandlers) => void;
59
+ setSelectedChat: (id: string | null) => void;
60
+ openProfile: () => void;
61
+ closeProfile: () => void;
62
+ deleteConversation: (id: string) => Promise<void>;
63
+ canEndConversation: globalThis.Ref<boolean, boolean>;
64
+ endConversation: (id: string) => Promise<void>;
65
+ fetchConversations: (filterState?: StateKeys, page?: number, search?: string) => Promise<void>;
66
+ loadNextPage: (filter: StateKeys) => Promise<void>;
67
+ getContactById: (id: string) => Contact | null;
68
+ getDisplayedContacts: (filter: StateKeys) => Contact[];
69
+ updateContact: (id: string, updates: Partial<Contact>) => void;
70
+ addContact: (contact: Contact, filter?: StateKeys) => void;
71
+ calls: globalThis.Ref<{
72
+ channel: string;
73
+ name: string;
74
+ avatar?: string | undefined;
75
+ from: string;
76
+ }[], {
77
+ channel: string;
78
+ name: string;
79
+ avatar?: string;
80
+ from: string;
81
+ }[] | {
82
+ channel: string;
83
+ name: string;
84
+ avatar?: string | undefined;
85
+ from: string;
86
+ }[]>;
87
+ }, "conversationStates" | "chatsPerPage" | "unreadCount">, Pick<{
88
+ chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
89
+ currentUserBirthDate: globalThis.Ref<Date | null, Date | null>;
90
+ conversationStates: globalThis.ComputedRef<Record<StateKeys, ConversationListView>>;
91
+ activeConversationId: globalThis.Ref<string | null, string | null>;
92
+ profileViewOpen: globalThis.Ref<boolean, boolean>;
93
+ typingByConversation: globalThis.Ref<Record<string, string | null>, Record<string, string | null>>;
94
+ chatsPerPage: globalThis.ComputedRef<number>;
95
+ unreadCount: globalThis.ComputedRef<number>;
96
+ setHandlers: (val: ChatHandlers) => void;
97
+ setSelectedChat: (id: string | null) => void;
98
+ openProfile: () => void;
99
+ closeProfile: () => void;
100
+ deleteConversation: (id: string) => Promise<void>;
101
+ canEndConversation: globalThis.Ref<boolean, boolean>;
102
+ endConversation: (id: string) => Promise<void>;
103
+ fetchConversations: (filterState?: StateKeys, page?: number, search?: string) => Promise<void>;
104
+ loadNextPage: (filter: StateKeys) => Promise<void>;
105
+ getContactById: (id: string) => Contact | null;
106
+ getDisplayedContacts: (filter: StateKeys) => Contact[];
107
+ updateContact: (id: string, updates: Partial<Contact>) => void;
108
+ addContact: (contact: Contact, filter?: StateKeys) => void;
109
+ calls: globalThis.Ref<{
110
+ channel: string;
111
+ name: string;
112
+ avatar?: string | undefined;
113
+ from: string;
114
+ }[], {
115
+ channel: string;
116
+ name: string;
117
+ avatar?: string;
118
+ from: string;
119
+ }[] | {
120
+ channel: string;
121
+ name: string;
122
+ avatar?: string | undefined;
123
+ from: string;
124
+ }[]>;
125
+ }, "setHandlers" | "setSelectedChat" | "openProfile" | "closeProfile" | "deleteConversation" | "endConversation" | "fetchConversations" | "loadNextPage" | "getContactById" | "getDisplayedContacts" | "updateContact" | "addContact">>;
126
+ //# sourceMappingURL=chatStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/chatStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgBxE,gEAAgE;AAChE,MAAM,WAAW,oBAAoB;IACnC,mFAAmF;IACnF,IAAI,EAAE,SAAS,OAAO,EAAE,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAA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,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;uOA8NhE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { MediaDownloadOptions, MediaHandlers } from '../types';
2
+ export declare const useMediaStore: import('pinia').StoreDefinition<"media", Pick<{
3
+ setHandlers: (val: MediaHandlers) => void;
4
+ fetchFileSize: (url: string) => Promise<number | null>;
5
+ getCachedBlob: (url: string) => Promise<Blob | null>;
6
+ download: (url: string, opts?: MediaDownloadOptions) => Promise<Blob>;
7
+ }, never>, Pick<{
8
+ setHandlers: (val: MediaHandlers) => void;
9
+ fetchFileSize: (url: string) => Promise<number | null>;
10
+ getCachedBlob: (url: string) => Promise<Blob | null>;
11
+ download: (url: string, opts?: MediaDownloadOptions) => Promise<Blob>;
12
+ }, never>, Pick<{
13
+ setHandlers: (val: MediaHandlers) => void;
14
+ fetchFileSize: (url: string) => Promise<number | null>;
15
+ getCachedBlob: (url: string) => Promise<Blob | null>;
16
+ download: (url: string, opts?: MediaDownloadOptions) => Promise<Blob>;
17
+ }, "setHandlers" | "fetchFileSize" | "getCachedBlob" | "download">>;
18
+ //# sourceMappingURL=mediaStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mediaStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/mediaStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA4D9D,eAAO,MAAM,aAAa;uBAGE,aAAa;yBA+BX,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;yBA3BzB,MAAM,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;oBA+BxD,MAAM,SACJ,oBAAoB,KAC1B,OAAO,CAAC,IAAI,CAAC;;uBArCU,aAAa;yBA+BX,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;yBA3BzB,MAAM,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;oBA+BxD,MAAM,SACJ,oBAAoB,KAC1B,OAAO,CAAC,IAAI,CAAC;;uBArCU,aAAa;yBA+BX,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;yBA3BzB,MAAM,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;oBA+BxD,MAAM,SACJ,oBAAoB,KAC1B,OAAO,CAAC,IAAI,CAAC;mEAiBhB,CAAC"}