@yonus_amire01/chat 2.1.3 → 2.2.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/dist/chat.css +1 -1
- package/dist/index.cjs +11 -5
- package/dist/index.mjs +16478 -7358
- package/dist/types/app/components/ChatPage.vue.d.ts +1 -1
- package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -1
- package/dist/types/app/components/call/Call.vue.d.ts +36 -0
- package/dist/types/app/components/call/Call.vue.d.ts.map +1 -0
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts +8 -8
- package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatInput.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts +0 -1
- package/dist/types/app/components/chat/ChatMessages.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatPageBar.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/ChatView.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts +8 -8
- package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts +1 -1
- package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts.map +1 -1
- package/dist/types/app/components/chat/contact/ChatList.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BIcon.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BInput.vue.d.ts +3 -3
- package/dist/types/app/components/global/BInput.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BLabel.vue.d.ts +1 -1
- package/dist/types/app/components/global/BLabel.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BMenu.vue.d.ts +2 -2
- package/dist/types/app/components/global/BMenu.vue.d.ts.map +1 -1
- package/dist/types/app/components/global/BSelect.vue.d.ts +1 -1
- package/dist/types/app/components/global/BSelect.vue.d.ts.map +1 -1
- package/dist/types/app/composables/useAppPermissions.d.ts.map +1 -1
- package/dist/types/app/composables/useCall.d.ts +156 -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/useFlippedVirtualScroll.d.ts +24 -0
- package/dist/types/app/composables/useFlippedVirtualScroll.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 +11 -0
- package/dist/types/app/composables/useRichTextEditor.d.ts.map +1 -0
- package/dist/types/app/index.d.ts +3 -1
- package/dist/types/app/index.d.ts.map +1 -1
- package/dist/types/app/provider/callProvider.d.ts +4 -0
- package/dist/types/app/provider/callProvider.d.ts.map +1 -0
- package/dist/types/app/stores/callStore.d.ts +19 -857
- package/dist/types/app/stores/callStore.d.ts.map +1 -1
- package/dist/types/app/stores/chatStore.d.ts +49 -4
- package/dist/types/app/stores/chatStore.d.ts.map +1 -1
- package/dist/types/app/stores/messageStores.d.ts.map +1 -1
- package/dist/types/app/stores/profileStore.d.ts +59 -2
- package/dist/types/app/stores/profileStore.d.ts.map +1 -1
- package/dist/types/app/types/index.d.ts +105 -27
- package/dist/types/app/types/index.d.ts.map +1 -1
- package/dist/types/i18n/locales/index.d.ts +38 -0
- package/dist/types/i18n/locales/index.d.ts.map +1 -1
- package/package.json +4 -1
- package/dist/signature_pad-BvnS6ckP.cjs +0 -4
- package/dist/signature_pad-CSadMJ3H.js +0 -478
- package/dist/types/app/components/call/CallBoard.vue.d.ts +0 -33
- package/dist/types/app/components/call/CallBoard.vue.d.ts.map +0 -1
- package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts +0 -16
- package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts.map +0 -1
- package/dist/types/app/components/call/CallPageOverlay.vue.d.ts +0 -7
- package/dist/types/app/components/call/CallPageOverlay.vue.d.ts.map +0 -1
- package/dist/types/app/components/call/paint-board/BoardColorPicker.vue.d.ts +0 -24
- package/dist/types/app/components/call/paint-board/BoardColorPicker.vue.d.ts.map +0 -1
- package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts +0 -19
- package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts.map +0 -1
- package/dist/types/app/components/call/paint-board/CallPaintBoard.vue.d.ts +0 -47
- package/dist/types/app/components/call/paint-board/CallPaintBoard.vue.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/callStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"callStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/callStore.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;oBAiBA,MAAM;;;;;;;;;oBAAN,MAAM;;;;;;;;;oBAAN,MAAM;;;;sDAgC7B,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChatHandlers, Contact, StateKeys, UserRoleKey } from '../types';
|
|
2
2
|
export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<{
|
|
3
|
-
currentUserId: globalThis.Ref<string, string>;
|
|
4
3
|
chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
|
|
5
4
|
currentUserBirthDate: globalThis.Ref<Date, Date>;
|
|
6
5
|
conversationStates: globalThis.Ref<{
|
|
@@ -321,8 +320,23 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
321
320
|
loadNextPage: (filter: StateKeys) => Promise<void>;
|
|
322
321
|
getContactById: (id: string) => Contact | null;
|
|
323
322
|
getDisplayedContacts: (filter: StateKeys) => Contact[];
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
calls: globalThis.Ref<{
|
|
324
|
+
channel: string;
|
|
325
|
+
name: string;
|
|
326
|
+
avatar?: string;
|
|
327
|
+
from: string;
|
|
328
|
+
}[], {
|
|
329
|
+
channel: string;
|
|
330
|
+
name: string;
|
|
331
|
+
avatar?: string;
|
|
332
|
+
from: string;
|
|
333
|
+
}[] | {
|
|
334
|
+
channel: string;
|
|
335
|
+
name: string;
|
|
336
|
+
avatar?: string;
|
|
337
|
+
from: string;
|
|
338
|
+
}[]>;
|
|
339
|
+
}, "chosenRole" | "currentUserBirthDate" | "conversationStates" | "activeConversationId" | "profileViewOpen" | "typingByConversation" | "calls">, Pick<{
|
|
326
340
|
chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
|
|
327
341
|
currentUserBirthDate: globalThis.Ref<Date, Date>;
|
|
328
342
|
conversationStates: globalThis.Ref<{
|
|
@@ -643,8 +657,23 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
643
657
|
loadNextPage: (filter: StateKeys) => Promise<void>;
|
|
644
658
|
getContactById: (id: string) => Contact | null;
|
|
645
659
|
getDisplayedContacts: (filter: StateKeys) => Contact[];
|
|
660
|
+
calls: globalThis.Ref<{
|
|
661
|
+
channel: string;
|
|
662
|
+
name: string;
|
|
663
|
+
avatar?: string;
|
|
664
|
+
from: string;
|
|
665
|
+
}[], {
|
|
666
|
+
channel: string;
|
|
667
|
+
name: string;
|
|
668
|
+
avatar?: string;
|
|
669
|
+
from: string;
|
|
670
|
+
}[] | {
|
|
671
|
+
channel: string;
|
|
672
|
+
name: string;
|
|
673
|
+
avatar?: string;
|
|
674
|
+
from: string;
|
|
675
|
+
}[]>;
|
|
646
676
|
}, "chatsPerPage" | "unreadCount">, Pick<{
|
|
647
|
-
currentUserId: globalThis.Ref<string, string>;
|
|
648
677
|
chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
|
|
649
678
|
currentUserBirthDate: globalThis.Ref<Date, Date>;
|
|
650
679
|
conversationStates: globalThis.Ref<{
|
|
@@ -965,5 +994,21 @@ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<
|
|
|
965
994
|
loadNextPage: (filter: StateKeys) => Promise<void>;
|
|
966
995
|
getContactById: (id: string) => Contact | null;
|
|
967
996
|
getDisplayedContacts: (filter: StateKeys) => Contact[];
|
|
997
|
+
calls: globalThis.Ref<{
|
|
998
|
+
channel: string;
|
|
999
|
+
name: string;
|
|
1000
|
+
avatar?: string;
|
|
1001
|
+
from: string;
|
|
1002
|
+
}[], {
|
|
1003
|
+
channel: string;
|
|
1004
|
+
name: string;
|
|
1005
|
+
avatar?: string;
|
|
1006
|
+
from: string;
|
|
1007
|
+
}[] | {
|
|
1008
|
+
channel: string;
|
|
1009
|
+
name: string;
|
|
1010
|
+
avatar?: string;
|
|
1011
|
+
from: string;
|
|
1012
|
+
}[]>;
|
|
968
1013
|
}, "setHandlers" | "setSelectedChat" | "openProfile" | "closeProfile" | "deleteConversation" | "fetchConversations" | "loadNextPage" | "getContactById" | "getDisplayedContacts">>;
|
|
969
1014
|
//# sourceMappingURL=chatStore.d.ts.map
|
|
@@ -1 +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;AAGxE,eAAO,MAAM,YAAY
|
|
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;AAGxE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAFX,OAAO;kBACV,MAAM;yBACC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAFX,OAAO;kBACV,MAAM;yBACC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAFX,OAAO;kBACV,MAAM;yBACC,OAAO;;;;;;;;uBAxBA,YAAY;0BAkCT,MAAM,GAAG,IAAI;;;6BAoFJ,MAAM;uCAtE7B,SAAS;2BAmCY,SAAS;yBAOjB,MAAM,KAAG,OAAO,GAAG,IAAI;mCAjBb,SAAS,KAAG,OAAO,EAAE;;iBA5E9C,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;iBAAnD,MAAM;cAAQ,MAAM;iBAAW,MAAM;cAAQ,MAAM;;kLAiMhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageStores.d.ts","sourceRoot":"","sources":["../../../../app/stores/messageStores.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"messageStores.d.ts","sourceRoot":"","sources":["../../../../app/stores/messageStores.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,OAAO,EACP,gBAAgB,EAEhB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAQjB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BApFI,eAAe;uBA/CvB,gBAAgB;+BAsDR,eAAe;2BAWnB,eAAe;;kCAwBF,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2Bf,MAAM;iBAAW,OAAO,CAAC,OAAO,CAAC;;4BAiEhC,OAAO,EAAE;0BAiDX,MAAM,QAAQ,MAAM;oCA4BrC,MAAM,SAChB,MAAM,aACF,MAAM;iCAvHkB,MAAM;wCAaC,MAAM,WAAW,OAAO;uCASjD,MAAM,aACX,MAAM,WACR,OAAO,CAAC,OAAO,CAAC;;;;;;;;;8BAzDM,MAAM,aAAa,MAAM;oCAqB7C,MAAM,aACN,MAAM,WACR,MAAM,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;4SA6L9B,CAAC"}
|
|
@@ -9,11 +9,30 @@ export declare const useProfileStore: import('pinia').StoreDefinition<"profile-s
|
|
|
9
9
|
mediaPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
10
10
|
filesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
11
11
|
mediaHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
12
|
+
userId: globalThis.Ref<string, string>;
|
|
13
|
+
userName: globalThis.Ref<string, string>;
|
|
14
|
+
userAvatar: globalThis.Ref<{
|
|
15
|
+
readonly size: number;
|
|
16
|
+
readonly type: string;
|
|
17
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
18
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
19
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
20
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
21
|
+
text: () => Promise<string>;
|
|
22
|
+
}, Blob | {
|
|
23
|
+
readonly size: number;
|
|
24
|
+
readonly type: string;
|
|
25
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
26
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
27
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
28
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
29
|
+
text: () => Promise<string>;
|
|
30
|
+
}>;
|
|
12
31
|
filesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
13
32
|
mediaLoading: globalThis.Ref<boolean, boolean>;
|
|
14
33
|
filesLoading: globalThis.Ref<boolean, boolean>;
|
|
15
34
|
pageSize: globalThis.Ref<number, number>;
|
|
16
|
-
}, "mediaMap" | "filesMap" | "mediaPage" | "filesPage" | "mediaHasNextPage" | "filesHasNextPage" | "mediaLoading" | "filesLoading" | "pageSize">, Pick<{
|
|
35
|
+
}, "mediaMap" | "filesMap" | "mediaPage" | "filesPage" | "mediaHasNextPage" | "userId" | "userName" | "userAvatar" | "filesHasNextPage" | "mediaLoading" | "filesLoading" | "pageSize">, Pick<{
|
|
17
36
|
setHandlers: (val: ProfileHandlers) => void;
|
|
18
37
|
fetchMedia: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
19
38
|
fetchFiles: (conversationId: string, page?: number, size?: number) => Promise<void>;
|
|
@@ -23,6 +42,25 @@ export declare const useProfileStore: import('pinia').StoreDefinition<"profile-s
|
|
|
23
42
|
mediaPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
24
43
|
filesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
25
44
|
mediaHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
45
|
+
userId: globalThis.Ref<string, string>;
|
|
46
|
+
userName: globalThis.Ref<string, string>;
|
|
47
|
+
userAvatar: globalThis.Ref<{
|
|
48
|
+
readonly size: number;
|
|
49
|
+
readonly type: string;
|
|
50
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
51
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
52
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
53
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
54
|
+
text: () => Promise<string>;
|
|
55
|
+
}, Blob | {
|
|
56
|
+
readonly size: number;
|
|
57
|
+
readonly type: string;
|
|
58
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
59
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
60
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
61
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
62
|
+
text: () => Promise<string>;
|
|
63
|
+
}>;
|
|
26
64
|
filesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
27
65
|
mediaLoading: globalThis.Ref<boolean, boolean>;
|
|
28
66
|
filesLoading: globalThis.Ref<boolean, boolean>;
|
|
@@ -37,9 +75,28 @@ export declare const useProfileStore: import('pinia').StoreDefinition<"profile-s
|
|
|
37
75
|
mediaPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
38
76
|
filesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
|
|
39
77
|
mediaHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
78
|
+
userId: globalThis.Ref<string, string>;
|
|
79
|
+
userName: globalThis.Ref<string, string>;
|
|
80
|
+
userAvatar: globalThis.Ref<{
|
|
81
|
+
readonly size: number;
|
|
82
|
+
readonly type: string;
|
|
83
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
84
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
85
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
86
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
87
|
+
text: () => Promise<string>;
|
|
88
|
+
}, Blob | {
|
|
89
|
+
readonly size: number;
|
|
90
|
+
readonly type: string;
|
|
91
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
92
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
93
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
94
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
95
|
+
text: () => Promise<string>;
|
|
96
|
+
}>;
|
|
40
97
|
filesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
41
98
|
mediaLoading: globalThis.Ref<boolean, boolean>;
|
|
42
99
|
filesLoading: globalThis.Ref<boolean, boolean>;
|
|
43
100
|
pageSize: globalThis.Ref<number, number>;
|
|
44
|
-
}, "
|
|
101
|
+
}, "clear" | "setHandlers" | "fetchMedia" | "fetchFiles">>;
|
|
45
102
|
//# sourceMappingURL=profileStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profileStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/profileStore.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"profileStore.d.ts","sourceRoot":"","sources":["../../../../app/stores/profileStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,eAAe,EAAE,MAAM,SAAS,CAAC;AAKlE,eAAO,MAAM,eAAe;uBAGA,eAAe;iCAkBvB,MAAM,SAChB,MAAM,SACN,MAAM;iCAsBI,MAAM,SAChB,MAAM,SACN,MAAM;4BAqBiB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAjEX,eAAe;iCAkBvB,MAAM,SAChB,MAAM,SACN,MAAM;iCAsBI,MAAM,SAChB,MAAM,SACN,MAAM;4BAqBiB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAjEX,eAAe;iCAkBvB,MAAM,SAChB,MAAM,SACN,MAAM;iCAsBI,MAAM,SAChB,MAAM,SACN,MAAM;4BAqBiB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DA2BrC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SignalData } from 'simple-peer';
|
|
1
2
|
export type ThemeMode = "light" | "dark";
|
|
2
3
|
export interface CallMember extends Contact {
|
|
3
4
|
stream: MediaStream | null;
|
|
@@ -58,39 +59,68 @@ export interface ChatProvider {
|
|
|
58
59
|
fetchContacts: () => Promise<Contact[]>;
|
|
59
60
|
}
|
|
60
61
|
export type CallKind = "voice-call" | "video-call";
|
|
61
|
-
export type
|
|
62
|
-
type: "
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
export type CallMessage = {
|
|
63
|
+
type: "signal";
|
|
64
|
+
payload: {
|
|
65
|
+
signal: SignalData & {
|
|
66
|
+
sdp: string;
|
|
67
|
+
};
|
|
68
|
+
from: string;
|
|
69
|
+
to: string;
|
|
70
|
+
name: string;
|
|
71
|
+
};
|
|
65
72
|
} | {
|
|
66
|
-
type: "
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
callId: string;
|
|
72
|
-
candidate: RTCIceCandidateInit;
|
|
73
|
+
type: "join";
|
|
74
|
+
payload: {
|
|
75
|
+
from: string;
|
|
76
|
+
name: string;
|
|
77
|
+
};
|
|
73
78
|
} | {
|
|
74
|
-
type: "
|
|
75
|
-
|
|
79
|
+
type: "track_type";
|
|
80
|
+
payload: {
|
|
81
|
+
from: string;
|
|
82
|
+
types: {
|
|
83
|
+
id: string;
|
|
84
|
+
type: TrackType;
|
|
85
|
+
}[];
|
|
86
|
+
};
|
|
76
87
|
} | {
|
|
77
|
-
type: "
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
type: "call";
|
|
89
|
+
payload: {
|
|
90
|
+
from: string;
|
|
91
|
+
name: string;
|
|
92
|
+
channel: string;
|
|
93
|
+
avatar?: string;
|
|
94
|
+
};
|
|
80
95
|
} | {
|
|
81
|
-
type: "
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
type: "hangup";
|
|
97
|
+
payload: {
|
|
98
|
+
from: string;
|
|
99
|
+
channel: string;
|
|
100
|
+
name?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export interface TurnConfig {
|
|
104
|
+
urls: string[];
|
|
105
|
+
username?: string;
|
|
106
|
+
credential?: string;
|
|
107
|
+
iceTransportPolicy?: "relay" | "all";
|
|
108
|
+
}
|
|
109
|
+
export interface CallPublishOptions {
|
|
110
|
+
retain?: boolean;
|
|
111
|
+
}
|
|
112
|
+
export type Credential = {
|
|
113
|
+
ttl: number;
|
|
114
|
+
user: string;
|
|
115
|
+
pass: string;
|
|
116
|
+
urls: string[];
|
|
84
117
|
};
|
|
85
118
|
export interface CallHandlers {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
sendIce(callId: string, candidate: RTCIceCandidateInit): Promise<void>;
|
|
92
|
-
end(callId: string): Promise<void>;
|
|
93
|
-
onSignal(handler: (e: CallSignalEvent) => void): () => void;
|
|
119
|
+
credential: Credential;
|
|
120
|
+
handleGenerateCred: () => Promise<void>;
|
|
121
|
+
publisher: (json: string) => Promise<void>;
|
|
122
|
+
subscriber: (callback: (message: CallMessageSchema) => Promise<void>) => Promise<number>;
|
|
123
|
+
unSubscriber: (id: number) => Promise<void>;
|
|
94
124
|
}
|
|
95
125
|
export interface FetchContactsParams {
|
|
96
126
|
page: number;
|
|
@@ -146,4 +176,52 @@ export interface ProfileHandlers {
|
|
|
146
176
|
fetchMedia(params: FetchProfileAttachmentsParams): Promise<ProfileAttachmentsPage>;
|
|
147
177
|
fetchFiles(params: FetchProfileAttachmentsParams): Promise<ProfileAttachmentsPage>;
|
|
148
178
|
}
|
|
179
|
+
export declare const enum CallMessageType {
|
|
180
|
+
Signal = "signal",
|
|
181
|
+
Join = "join",
|
|
182
|
+
TrackType = "track_type",
|
|
183
|
+
Call = "call",
|
|
184
|
+
Hangup = "hangup"
|
|
185
|
+
}
|
|
186
|
+
export type TrackType = "webcam" | "screen" | "audio" | "webcam_audio";
|
|
187
|
+
export type CallMessageSchema = {
|
|
188
|
+
type: CallMessageType.Signal;
|
|
189
|
+
payload: {
|
|
190
|
+
signal: SignalData & {
|
|
191
|
+
sdp: string;
|
|
192
|
+
};
|
|
193
|
+
from: string;
|
|
194
|
+
to: string;
|
|
195
|
+
name: string;
|
|
196
|
+
};
|
|
197
|
+
} | {
|
|
198
|
+
type: CallMessageType.Join;
|
|
199
|
+
payload: {
|
|
200
|
+
from: string;
|
|
201
|
+
name: string;
|
|
202
|
+
};
|
|
203
|
+
} | {
|
|
204
|
+
type: CallMessageType.TrackType;
|
|
205
|
+
payload: {
|
|
206
|
+
from: string;
|
|
207
|
+
types: {
|
|
208
|
+
id: string;
|
|
209
|
+
type: TrackType;
|
|
210
|
+
}[];
|
|
211
|
+
};
|
|
212
|
+
} | {
|
|
213
|
+
type: CallMessageType.Call;
|
|
214
|
+
payload: {
|
|
215
|
+
from: string;
|
|
216
|
+
name: string;
|
|
217
|
+
channel: string;
|
|
218
|
+
avatar: string;
|
|
219
|
+
};
|
|
220
|
+
} | {
|
|
221
|
+
type: CallMessageType.Hangup;
|
|
222
|
+
payload: {
|
|
223
|
+
from: string;
|
|
224
|
+
channel: string;
|
|
225
|
+
};
|
|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AC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,GACD;IACE,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;IAC3B,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,GACD;IACE,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC;IAChC,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,SAAS,CAAA;SAAE,EAAE,CAAC;KAC1C,CAAC;CACH,GACD;IACE,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;IAC3B,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,GACD;IACE,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC;IAC7B,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC"}
|
|
@@ -250,6 +250,25 @@ export declare const chat: {
|
|
|
250
250
|
title: string;
|
|
251
251
|
you: string;
|
|
252
252
|
deviceDoesntSupport: string;
|
|
253
|
+
errors: {
|
|
254
|
+
noMicDevice: string;
|
|
255
|
+
noCameraDevice: string;
|
|
256
|
+
cameraDenied: string;
|
|
257
|
+
micDenied: string;
|
|
258
|
+
noMicFound: string;
|
|
259
|
+
micAccessError: string;
|
|
260
|
+
noCameraFound: string;
|
|
261
|
+
cameraAccessError: string;
|
|
262
|
+
mediaInitError: string;
|
|
263
|
+
screenShareMobileUnsupported: string;
|
|
264
|
+
screenShareBrowserUnsupported: string;
|
|
265
|
+
screenShareDenied: string;
|
|
266
|
+
screenAccessError: string;
|
|
267
|
+
screenShareMobileMaybeUnavailable: string;
|
|
268
|
+
screenShareStartFailed: string;
|
|
269
|
+
cameraUnavailable: string;
|
|
270
|
+
flashlightToggleFailed: string;
|
|
271
|
+
};
|
|
253
272
|
};
|
|
254
273
|
board: {
|
|
255
274
|
title: string;
|
|
@@ -438,6 +457,25 @@ export declare const chat: {
|
|
|
438
457
|
title: string;
|
|
439
458
|
you: string;
|
|
440
459
|
deviceDoesntSupport: string;
|
|
460
|
+
errors: {
|
|
461
|
+
noMicDevice: string;
|
|
462
|
+
noCameraDevice: string;
|
|
463
|
+
cameraDenied: string;
|
|
464
|
+
micDenied: string;
|
|
465
|
+
noMicFound: string;
|
|
466
|
+
micAccessError: string;
|
|
467
|
+
noCameraFound: string;
|
|
468
|
+
cameraAccessError: string;
|
|
469
|
+
mediaInitError: string;
|
|
470
|
+
screenShareMobileUnsupported: string;
|
|
471
|
+
screenShareBrowserUnsupported: string;
|
|
472
|
+
screenShareDenied: string;
|
|
473
|
+
screenAccessError: string;
|
|
474
|
+
screenShareMobileMaybeUnavailable: string;
|
|
475
|
+
screenShareStartFailed: string;
|
|
476
|
+
cameraUnavailable: string;
|
|
477
|
+
flashlightToggleFailed: string;
|
|
478
|
+
};
|
|
441
479
|
};
|
|
442
480
|
board: {
|
|
443
481
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../i18n/locales/index.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC;AAEF,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../i18n/locales/index.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;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AAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG3B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yonus_amire01/chat",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Reusable Vue 3 chat dashboard component extracted from the Behayand frontend.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
"@phosphor-icons/vue": "^2.2.1",
|
|
41
41
|
"@tanstack/vue-virtual": "^3.13.24",
|
|
42
42
|
"emoji-mart": "^5.6.0",
|
|
43
|
+
"nanoid": "^6.0.0",
|
|
43
44
|
"signature_pad": "^5.1.3",
|
|
45
|
+
"simple-peer": "^9.11.1",
|
|
44
46
|
"vue-advanced-cropper": "^2.8.9",
|
|
45
47
|
"vue3-lottie": "^3.3.1"
|
|
46
48
|
},
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
"@types/node": "^22.10.0",
|
|
49
51
|
"@vitejs/plugin-vue": "^5.2.0",
|
|
50
52
|
"@vueuse/core": "^14.2.1",
|
|
53
|
+
"motion-v": "^2.3.0",
|
|
51
54
|
"pinia": "^2.3.0",
|
|
52
55
|
"typescript": "^5.7.0",
|
|
53
56
|
"unplugin-auto-import": "^0.18.0",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";var T=Object.defineProperty;var C=(r,s,t)=>s in r?T(r,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[s]=t;var d=(r,s,t)=>C(r,typeof s!="symbol"?s+"":s,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!
|
|
2
|
-
* Signature Pad v5.1.3 | https://github.com/szimek/signature_pad
|
|
3
|
-
* (c) 2025 Szymon Nowak | Released under the MIT license
|
|
4
|
-
*/var P=class{constructor(r,s,t,e){d(this,"x");d(this,"y");d(this,"pressure");d(this,"time");if(isNaN(r)||isNaN(s))throw new Error(`Point is invalid: (${r}, ${s})`);this.x=+r,this.y=+s,this.pressure=t||0,this.time=e||Date.now()}distanceTo(r){return Math.sqrt(Math.pow(this.x-r.x,2)+Math.pow(this.y-r.y,2))}equals(r){return this.x===r.x&&this.y===r.y&&this.pressure===r.pressure&&this.time===r.time}velocityFrom(r){return this.time!==r.time?this.distanceTo(r)/(this.time-r.time):0}},M=class b{constructor(s,t,e,i,n,o){this.startPoint=s,this.control2=t,this.control1=e,this.endPoint=i,this.startWidth=n,this.endWidth=o}static fromPoints(s,t){const e=this.calculateControlPoints(s[0],s[1],s[2]).c2,i=this.calculateControlPoints(s[1],s[2],s[3]).c1;return new b(s[1],e,i,s[2],t.start,t.end)}static calculateControlPoints(s,t,e){const i=s.x-t.x,n=s.y-t.y,o=t.x-e.x,u=t.y-e.y,a={x:(s.x+t.x)/2,y:(s.y+t.y)/2},l={x:(t.x+e.x)/2,y:(t.y+e.y)/2},c=Math.sqrt(i*i+n*n),_=Math.sqrt(o*o+u*u),m=a.x-l.x,x=a.y-l.y,v=c+_==0?0:_/(c+_),g={x:l.x+m*v,y:l.y+x*v},h=t.x-g.x,w=t.y-g.y;return{c1:new P(a.x+h,a.y+w),c2:new P(l.x+h,l.y+w)}}length(){let t=0,e,i;for(let n=0;n<=10;n+=1){const o=n/10,u=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){const l=u-e,c=a-i;t+=Math.sqrt(l*l+c*c)}e=u,i=a}return t}point(s,t,e,i,n){return t*(1-s)*(1-s)*(1-s)+3*e*(1-s)*(1-s)*s+3*i*(1-s)*s*s+n*s*s*s}},U=class{constructor(){d(this,"_et");try{this._et=new EventTarget}catch{this._et=document}}addEventListener(r,s,t){this._et.addEventListener(r,s,t)}dispatchEvent(r){return this._et.dispatchEvent(r)}removeEventListener(r,s,t){this._et.removeEventListener(r,s,t)}};function W(r,s=250){let t=0,e=null,i,n,o;const u=()=>{t=Date.now(),e=null,i=r.apply(n,o),e||(n=null,o=[])};return function(...l){const c=Date.now(),_=s-(c-t);return n=this,o=l,_<=0||_>s?(e&&(clearTimeout(e),e=null),t=c,i=r.apply(n,o),e||(n=null,o=[])):e||(e=window.setTimeout(u,_)),i}}var D=class S extends U{constructor(t,e={}){super();d(this,"dotSize");d(this,"minWidth");d(this,"maxWidth");d(this,"penColor");d(this,"minDistance");d(this,"velocityFilterWeight");d(this,"compositeOperation");d(this,"backgroundColor");d(this,"throttle");d(this,"canvasContextOptions");d(this,"_ctx");d(this,"_drawingStroke",!1);d(this,"_isEmpty",!0);d(this,"_dataUrl");d(this,"_dataUrlOptions");d(this,"_lastPoints",[]);d(this,"_data",[]);d(this,"_lastVelocity",0);d(this,"_lastWidth",0);d(this,"_strokeMoveUpdate");d(this,"_strokePointerId");this.canvas=t,this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle=e.throttle??16,this.minDistance=e.minDistance??5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions=e.canvasContextOptions??{},this._strokeMoveUpdate=this.throttle?W(S.prototype._strokeUpdate,this.throttle):S.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._handlePointerCancel=this._handlePointerCancel.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){const t=this._data,e=this._dataUrl,i=this._dataUrlOptions;this.clear(),e&&this.fromDataURL(e,i),this.fromData(t,{clear:!1})}fromDataURL(t,e={}){return new Promise((i,n)=>{const o=new Image,u=e.ratio||window.devicePixelRatio||1,a=e.width||this.canvas.width/u,l=e.height||this.canvas.height/u,c=e.xOffset||0,_=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,c,_,a,l),i()},o.onerror=m=>{n(m)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1,this._dataUrl=t,this._dataUrlOptions={...e}})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`;default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none",this.canvas.style.webkitUserSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.style.webkitUserSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){const t=window.document===this.canvas.ownerDocument?window:this.canvas.ownerDocument.defaultView??this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("pointercancel",this._handlePointerCancel),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd),t("touchcancel",this._handleTouchCancel)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,e){return e?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const e=t.changedTouches[0];return{event:t,type:t.type,x:e.clientX,y:e.clientY,pressure:e.force}}_handleMouseDown(t){!this._isLeftButtonPressed(t,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(t))}_handleMouseMove(t){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}_handleMouseUp(t){this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))}_handleTouchStart(t){t.targetTouches.length!==1||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))}_handleTouchMove(t){if(t.targetTouches.length===1){if(t.cancelable&&t.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(t))}}_handleTouchEnd(t){t.targetTouches.length===0&&(t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t)))}_handlePointerCancel(t){this._allowPointerId(t)&&(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t),!1))}_handleTouchCancel(t){t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t),!1)}_getPointerId(t){return t.persistentDeviceId||t.pointerId}_allowPointerId(t,e=!1){return typeof this._strokePointerId>"u"?e:this._getPointerId(t)===this._strokePointerId}_handlePointerDown(t){this._drawingStroke||!this._isLeftButtonPressed(t)||!this._allowPointerId(t,!0)||(this._strokePointerId=this._getPointerId(t),t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))}_handlePointerMove(t){if(this._allowPointerId(t)){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}}_handlePointerUp(t){this._isLeftButtonPressed(t)||!this._allowPointerId(t)||(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:i}=this._getListenerFunctions();switch(t.event.type){case"mousedown":i("mousemove",this._handleMouseMove,{passive:!1}),i("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":i("touchmove",this._handleTouchMove,{passive:!1}),i("touchend",this._handleTouchEnd,{passive:!1}),i("touchcancel",this._handleTouchCancel,{passive:!1});break;case"pointerdown":i("pointermove",this._handlePointerMove,{passive:!1}),i("pointerup",this._handlePointerUp,{passive:!1}),i("pointercancel",this._handlePointerCancel,{passive:!1});break}this._drawingStroke=!0;const n=this._getPointGroupOptions(),o={...n,points:[]};this._data.push(o),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=this._createPoint(t.x,t.y,t.pressure),i=this._data[this._data.length-1],n=i.points,o=n.length>0&&n[n.length-1],u=o?e.distanceTo(o)<=this.minDistance:!1,a=this._getPointGroupOptions(i);if(!o||!(o&&u)){const l=this._addPoint(e,a);o?l&&this._drawCurve(l,a):this._drawDot(e,a),n.push({time:e.time,x:e.x,y:e.y,pressure:e.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,e=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(e&&this._strokeUpdate(t),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,i){const n=this.canvas.getBoundingClientRect();return new P(t-n.left,e-n.top,i,new Date().getTime())}_addPoint(t,e){const{_lastPoints:i}=this;if(i.push(t),i.length>2){i.length===3&&i.unshift(i[0]);const n=this._calculateCurveWidths(i[1],i[2],e),o=M.fromPoints(i,n);return i.shift(),o}return null}_calculateCurveWidths(t,e,i){const n=i.velocityFilterWeight*e.velocityFrom(t)+(1-i.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(n,i),u={end:o,start:this._lastWidth};return this._lastVelocity=n,this._lastWidth=o,u}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,i){const n=this._ctx;n.moveTo(t,e),n.arc(t,e,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const i=this._ctx,n=t.endWidth-t.startWidth,o=Math.ceil(t.length())*2;i.beginPath(),i.fillStyle=e.penColor;for(let u=0;u<o;u+=1){const a=u/o,l=a*a,c=l*a,_=1-a,m=_*_,x=m*_;let v=x*t.startPoint.x;v+=3*m*a*t.control1.x,v+=3*_*l*t.control2.x,v+=c*t.endPoint.x;let g=x*t.startPoint.y;g+=3*m*a*t.control1.y,g+=3*_*l*t.control2.y,g+=c*t.endPoint.y;const h=Math.min(t.startWidth+c*n,e.maxWidth);this._drawCurveSegment(v,g,h)}i.closePath(),i.fill()}_drawDot(t,e){const i=this._ctx,n=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;i.beginPath(),this._drawCurveSegment(t.x,t.y,n),i.closePath(),i.fillStyle=e.penColor,i.fill()}_fromData(t,e,i){for(const n of t){const{points:o}=n,u=this._getPointGroupOptions(n);if(o.length>1)for(let a=0;a<o.length;a+=1){const l=o[a],c=new P(l.x,l.y,l.pressure,l.time);a===0&&this._reset(u);const _=this._addPoint(c,u);_&&e(_,u)}else this._reset(u),i(o[0],u)}}toSVG({includeBackgroundColor:t=!1,includeDataUrl:e=!1}={}){var _,m,x,v,g;const i=this._data,n=Math.max(window.devicePixelRatio||1,1),o=0,u=0,a=this.canvas.width/n,l=this.canvas.height/n,c=document.createElementNS("http://www.w3.org/2000/svg","svg");if(c.setAttribute("xmlns","http://www.w3.org/2000/svg"),c.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),c.setAttribute("viewBox",`${o} ${u} ${a} ${l}`),c.setAttribute("width",a.toString()),c.setAttribute("height",l.toString()),t&&this.backgroundColor){const h=document.createElement("rect");h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("fill",this.backgroundColor),c.appendChild(h)}if(e&&this._dataUrl){const h=((_=this._dataUrlOptions)==null?void 0:_.ratio)||window.devicePixelRatio||1,w=((m=this._dataUrlOptions)==null?void 0:m.width)||this.canvas.width/h,f=((x=this._dataUrlOptions)==null?void 0:x.height)||this.canvas.height/h,y=((v=this._dataUrlOptions)==null?void 0:v.xOffset)||0,E=((g=this._dataUrlOptions)==null?void 0:g.yOffset)||0,p=document.createElement("image");p.setAttribute("x",y.toString()),p.setAttribute("y",E.toString()),p.setAttribute("width",w.toString()),p.setAttribute("height",f.toString()),p.setAttribute("preserveAspectRatio","none"),p.setAttribute("href",this._dataUrl),c.appendChild(p)}return this._fromData(i,(h,{penColor:w})=>{const f=document.createElement("path");if(!isNaN(h.control1.x)&&!isNaN(h.control1.y)&&!isNaN(h.control2.x)&&!isNaN(h.control2.y)){const y=`M ${h.startPoint.x.toFixed(3)},${h.startPoint.y.toFixed(3)} C ${h.control1.x.toFixed(3)},${h.control1.y.toFixed(3)} ${h.control2.x.toFixed(3)},${h.control2.y.toFixed(3)} ${h.endPoint.x.toFixed(3)},${h.endPoint.y.toFixed(3)}`;f.setAttribute("d",y),f.setAttribute("stroke-width",(h.endWidth*2.25).toFixed(3)),f.setAttribute("stroke",w),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),c.appendChild(f)}},(h,{penColor:w,dotSize:f,minWidth:y,maxWidth:E})=>{const p=document.createElement("circle"),k=f>0?f:(y+E)/2;p.setAttribute("r",k.toString()),p.setAttribute("cx",h.x.toString()),p.setAttribute("cy",h.y.toString()),p.setAttribute("fill",w),c.appendChild(p)}),c.outerHTML}};exports.default=D;
|