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.
- package/LICENSE +21 -0
- package/README.md +276 -0
- package/dist/chat.css +3223 -0
- package/dist/chunks/Call-CTIujxDi.cjs +818 -0
- package/dist/chunks/Call-CTIujxDi.cjs.map +1 -0
- package/dist/chunks/Call-Dwuyd-Ut.mjs +818 -0
- package/dist/chunks/Call-Dwuyd-Ut.mjs.map +1 -0
- package/dist/chunks/index-D50Yn7q4.cjs +7031 -0
- package/dist/chunks/index-D50Yn7q4.cjs.map +1 -0
- package/dist/chunks/index-JU_JZkSC.mjs +7010 -0
- package/dist/chunks/index-JU_JZkSC.mjs.map +1 -0
- package/dist/chunks/session-B3KIrj3_.mjs +711 -0
- package/dist/chunks/session-B3KIrj3_.mjs.map +1 -0
- package/dist/chunks/session-BOfkV8PJ.cjs +711 -0
- package/dist/chunks/session-BOfkV8PJ.cjs.map +1 -0
- package/dist/fakes.cjs +335 -0
- package/dist/fakes.cjs.map +1 -0
- package/dist/fakes.mjs +335 -0
- package/dist/fakes.mjs.map +1 -0
- package/dist/index.cjs +24 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +24 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/app/components/ChatPage.vue.d.ts +60 -0
- package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -0
- package/dist/types/app/components/call/Call.vue.d.ts +8 -0
- package/dist/types/app/components/call/Call.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts +64 -0
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatInput.vue.d.ts +60 -0
- package/dist/types/app/components/chat/ChatInput.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts +45 -0
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatPageBar.vue.d.ts +50 -0
- package/dist/types/app/components/chat/ChatPageBar.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts +11 -0
- package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatView.vue.d.ts +244 -0
- package/dist/types/app/components/chat/ChatView.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleDivider.vue.d.ts +7 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleDivider.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleImages.vue.d.ts +13 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleImages.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleMeta.vue.d.ts +11 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleMeta.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts +16 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleRequest.vue.d.ts +8 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleRequest.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleSelectionMark.vue.d.ts +7 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleSelectionMark.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleStatus.vue.d.ts +7 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleStatus.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts +25 -0
- package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts +13 -0
- package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts +14 -0
- package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/ReplyPreview.vue.d.ts +10 -0
- package/dist/types/app/components/chat/chat-bubbles/ReplyPreview.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/UploadProgressOverlay.vue.d.ts +10 -0
- package/dist/types/app/components/chat/chat-bubbles/UploadProgressOverlay.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts +12 -0
- package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts +12 -0
- package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-input/InputActionBar.vue.d.ts +13 -0
- package/dist/types/app/components/chat/chat-input/InputActionBar.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts +18 -0
- package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts +8 -0
- package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-input/RecordButton.vue.d.ts +27 -0
- package/dist/types/app/components/chat/chat-input/RecordButton.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-input/RecordingStatus.vue.d.ts +12 -0
- package/dist/types/app/components/chat/chat-input/RecordingStatus.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts +26 -0
- package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts +8 -0
- package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/contact/ChatList.vue.d.ts +5 -0
- package/dist/types/app/components/chat/contact/ChatList.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/contact/ChatListSearch.vue.d.ts +16 -0
- package/dist/types/app/components/chat/contact/ChatListSearch.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts +10 -0
- package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/contact/ContactSkeleton.vue.d.ts +3 -0
- package/dist/types/app/components/chat/contact/ContactSkeleton.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/messages/FloatingDateHeader.vue.d.ts +9 -0
- package/dist/types/app/components/chat/messages/FloatingDateHeader.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/messages/MessagesSkeleton.vue.d.ts +8 -0
- package/dist/types/app/components/chat/messages/MessagesSkeleton.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/messages/ScrollToBottomButton.vue.d.ts +11 -0
- package/dist/types/app/components/chat/messages/ScrollToBottomButton.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts +9 -0
- package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/ConfirmModal.vue.d.ts +21 -0
- package/dist/types/app/components/general/ConfirmModal.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/FileFormatDisplay.vue.d.ts +16 -0
- package/dist/types/app/components/general/FileFormatDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/IconButton.vue.d.ts +13 -0
- package/dist/types/app/components/general/IconButton.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/LoadingStatus.vue.d.ts +16 -0
- package/dist/types/app/components/general/LoadingStatus.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/MediaImage.vue.d.ts +30 -0
- package/dist/types/app/components/general/MediaImage.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/NoDataDisplay.vue.d.ts +7 -0
- package/dist/types/app/components/general/NoDataDisplay.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/ResponsiveDialog.vue.d.ts +28 -0
- package/dist/types/app/components/general/ResponsiveDialog.vue.d.ts.map +1 -0
- package/dist/types/app/components/general/SafeEmojiText.vue.d.ts +10 -0
- package/dist/types/app/components/general/SafeEmojiText.vue.d.ts.map +1 -0
- package/dist/types/app/components/global/BEmojiPicker.vue.d.ts +8 -0
- package/dist/types/app/components/global/BEmojiPicker.vue.d.ts.map +1 -0
- package/dist/types/app/components/global/BIcon.vue.d.ts +11 -0
- package/dist/types/app/components/global/BIcon.vue.d.ts.map +1 -0
- package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts +30 -0
- package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts.map +1 -0
- package/dist/types/app/composables/call/media.d.ts +204 -0
- package/dist/types/app/composables/call/media.d.ts.map +1 -0
- package/dist/types/app/composables/call/peer.d.ts +39 -0
- package/dist/types/app/composables/call/peer.d.ts.map +1 -0
- package/dist/types/app/composables/call/peers.d.ts +54 -0
- package/dist/types/app/composables/call/peers.d.ts.map +1 -0
- package/dist/types/app/composables/call/session.d.ts +284 -0
- package/dist/types/app/composables/call/session.d.ts.map +1 -0
- package/dist/types/app/composables/call/signaling.d.ts +36 -0
- package/dist/types/app/composables/call/signaling.d.ts.map +1 -0
- package/dist/types/app/composables/call/useCallUi.d.ts +27 -0
- package/dist/types/app/composables/call/useCallUi.d.ts.map +1 -0
- package/dist/types/app/composables/chat/useChatRecording.d.ts +75 -0
- package/dist/types/app/composables/chat/useChatRecording.d.ts.map +1 -0
- package/dist/types/app/composables/chat/useInputDraft.d.ts +14 -0
- package/dist/types/app/composables/chat/useInputDraft.d.ts.map +1 -0
- package/dist/types/app/composables/useAppPermissions.d.ts +25 -0
- package/dist/types/app/composables/useAppPermissions.d.ts.map +1 -0
- package/dist/types/app/composables/useAppToast.d.ts +13 -0
- package/dist/types/app/composables/useAppToast.d.ts.map +1 -0
- package/dist/types/app/composables/useAttachmentPicker.d.ts +18 -0
- package/dist/types/app/composables/useAttachmentPicker.d.ts.map +1 -0
- package/dist/types/app/composables/useCall.d.ts +91 -0
- package/dist/types/app/composables/useCall.d.ts.map +1 -0
- package/dist/types/app/composables/useChatMessageList.d.ts +18 -0
- package/dist/types/app/composables/useChatMessageList.d.ts.map +1 -0
- package/dist/types/app/composables/useDate.d.ts +7 -0
- package/dist/types/app/composables/useDate.d.ts.map +1 -0
- package/dist/types/app/composables/useDevice.d.ts +32 -0
- package/dist/types/app/composables/useDevice.d.ts.map +1 -0
- package/dist/types/app/composables/useFlippedVirtualScroll.d.ts +22 -0
- package/dist/types/app/composables/useFlippedVirtualScroll.d.ts.map +1 -0
- package/dist/types/app/composables/useHostI18n.d.ts +15 -0
- package/dist/types/app/composables/useHostI18n.d.ts.map +1 -0
- package/dist/types/app/composables/useLocalI18n.d.ts +5 -0
- package/dist/types/app/composables/useLocalI18n.d.ts.map +1 -0
- package/dist/types/app/composables/useLongPress.d.ts +6 -0
- package/dist/types/app/composables/useLongPress.d.ts.map +1 -0
- package/dist/types/app/composables/useRichTextEditor.d.ts +12 -0
- package/dist/types/app/composables/useRichTextEditor.d.ts.map +1 -0
- package/dist/types/app/directives/loading.d.ts +6 -0
- package/dist/types/app/directives/loading.d.ts.map +1 -0
- package/dist/types/app/index.d.ts +31 -0
- package/dist/types/app/index.d.ts.map +1 -0
- package/dist/types/app/plugin.d.ts +28 -0
- package/dist/types/app/plugin.d.ts.map +1 -0
- package/dist/types/app/provider/callProvider.d.ts +7 -0
- package/dist/types/app/provider/callProvider.d.ts.map +1 -0
- package/dist/types/app/stores/callStore.d.ts +1626 -0
- package/dist/types/app/stores/callStore.d.ts.map +1 -0
- package/dist/types/app/stores/chatStore.d.ts +126 -0
- package/dist/types/app/stores/chatStore.d.ts.map +1 -0
- package/dist/types/app/stores/mediaStore.d.ts +18 -0
- package/dist/types/app/stores/mediaStore.d.ts.map +1 -0
- package/dist/types/app/stores/messageStores.d.ts +2460 -0
- package/dist/types/app/stores/messageStores.d.ts.map +1 -0
- package/dist/types/app/stores/profileStore.d.ts +102 -0
- package/dist/types/app/stores/profileStore.d.ts.map +1 -0
- package/dist/types/app/types/components/chat-input.d.ts +4 -0
- package/dist/types/app/types/components/chat-input.d.ts.map +1 -0
- package/dist/types/app/types/components/menu-options.d.ts +7 -0
- package/dist/types/app/types/components/menu-options.d.ts.map +1 -0
- package/dist/types/app/types/components/modal.d.ts +17 -0
- package/dist/types/app/types/components/modal.d.ts.map +1 -0
- package/dist/types/app/types/index.d.ts +257 -0
- package/dist/types/app/types/index.d.ts.map +1 -0
- package/dist/types/app/utils/emojiParser.d.ts +5 -0
- package/dist/types/app/utils/emojiParser.d.ts.map +1 -0
- package/dist/types/app/utils/format.d.ts +4 -0
- package/dist/types/app/utils/format.d.ts.map +1 -0
- package/dist/types/fakes/backend.d.ts +25 -0
- package/dist/types/fakes/backend.d.ts.map +1 -0
- package/dist/types/fakes/call.d.ts +7 -0
- package/dist/types/fakes/call.d.ts.map +1 -0
- package/dist/types/fakes/data.d.ts +13 -0
- package/dist/types/fakes/data.d.ts.map +1 -0
- package/dist/types/fakes/index.d.ts +7 -0
- package/dist/types/fakes/index.d.ts.map +1 -0
- package/dist/types/fakes.d.ts +2 -0
- package/dist/types/i18n/locales/index.d.ts +3557 -0
- package/dist/types/i18n/locales/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAnCH,YAAY;oBAmCf,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAnCH,YAAY;oBAmCf,MAAM;;;;sEAoE7B,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ChatHandlers, Contact, StateKeys, 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,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;CACtB;AAMD,eAAO,MAAM,YAAY;;;;;;;;;uBAUG,YAAY;0BA0FT,MAAM,GAAG,IAAI;;;6BAoEJ,MAAM;;0BANT,MAAM;uCA9C1B,SAAS;2BAuCY,SAAS;yBA1EjB,MAAM,KAAG,OAAO,GAAG,IAAI;mCAHb,SAAS,KAAG,OAAO,EAAE;wBAiBhC,MAAM,WAAW,OAAO,CAAC,OAAO,CAAC;0BAP/B,OAAO,WAAU,SAAS;;iBApF1C,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;;;;;;;;;;uBAMtC,YAAY;0BA0FT,MAAM,GAAG,IAAI;;;6BAoEJ,MAAM;;0BANT,MAAM;uCA9C1B,SAAS;2BAuCY,SAAS;yBA1EjB,MAAM,KAAG,OAAO,GAAG,IAAI;mCAHb,SAAS,KAAG,OAAO,EAAE;wBAiBhC,MAAM,WAAW,OAAO,CAAC,OAAO,CAAC;0BAP/B,OAAO,WAAU,SAAS;;iBApF1C,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;;;;;;;;;;uBAMtC,YAAY;0BA0FT,MAAM,GAAG,IAAI;;;6BAoEJ,MAAM;;0BANT,MAAM;uCA9C1B,SAAS;2BAuCY,SAAS;yBA1EjB,MAAM,KAAG,OAAO,GAAG,IAAI;mCAHb,SAAS,KAAG,OAAO,EAAE;wBAiBhC,MAAM,WAAW,OAAO,CAAC,OAAO,CAAC;0BAP/B,OAAO,WAAU,SAAS;;iBApF1C,MAAM;cAAQ,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"}
|