@mantine-vue/whatsapp-inbox 3.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/README.md +88 -0
- package/cjs/index.cjs +11842 -0
- package/cjs/index.cjs.map +1 -0
- package/esm/index.mjs +11704 -0
- package/esm/index.mjs.map +1 -0
- package/lib/WhatsAppInbox.context.d.ts +70 -0
- package/lib/component-props.d.ts +138 -0
- package/lib/components/WhatsAppAttachmentPreview/WhatsAppAttachmentPreview.d.ts +8 -0
- package/lib/components/WhatsAppAttachmentPreview/WhatsAppAttachmentPreview.types.d.ts +33 -0
- package/lib/components/WhatsAppAttachmentPreview/WhatsAppAttachmentPreview.vue.d.ts +19 -0
- package/lib/components/WhatsAppAttachmentPreview/index.d.ts +1 -0
- package/lib/components/WhatsAppComposer/WhatsAppComposer.d.ts +10 -0
- package/lib/components/WhatsAppComposer/WhatsAppComposer.types.d.ts +173 -0
- package/lib/components/WhatsAppComposer/WhatsAppComposer.vue.d.ts +52 -0
- package/lib/components/WhatsAppComposer/index.d.ts +1 -0
- package/lib/components/WhatsAppContactPanel/WhatsAppContactPanel.d.ts +9 -0
- package/lib/components/WhatsAppContactPanel/WhatsAppContactPanel.types.d.ts +40 -0
- package/lib/components/WhatsAppContactPanel/WhatsAppContactPanel.vue.d.ts +19 -0
- package/lib/components/WhatsAppContactPanel/index.d.ts +1 -0
- package/lib/components/WhatsAppConversation/WhatsAppConversation.d.ts +10 -0
- package/lib/components/WhatsAppConversation/WhatsAppConversation.types.d.ts +163 -0
- package/lib/components/WhatsAppConversation/WhatsAppConversation.vue.d.ts +69 -0
- package/lib/components/WhatsAppConversation/index.d.ts +1 -0
- package/lib/components/WhatsAppConversationHeader/WhatsAppConversationHeader.d.ts +9 -0
- package/lib/components/WhatsAppConversationHeader/WhatsAppConversationHeader.types.d.ts +57 -0
- package/lib/components/WhatsAppConversationHeader/WhatsAppConversationHeader.vue.d.ts +23 -0
- package/lib/components/WhatsAppConversationHeader/index.d.ts +1 -0
- package/lib/components/WhatsAppConversationList/WhatsAppConversationList.d.ts +9 -0
- package/lib/components/WhatsAppConversationList/WhatsAppConversationList.types.d.ts +113 -0
- package/lib/components/WhatsAppConversationList/WhatsAppConversationList.vue.d.ts +35 -0
- package/lib/components/WhatsAppConversationList/index.d.ts +1 -0
- package/lib/components/WhatsAppConversationListItem/WhatsAppConversationListItem.d.ts +9 -0
- package/lib/components/WhatsAppConversationListItem/WhatsAppConversationListItem.types.d.ts +56 -0
- package/lib/components/WhatsAppConversationListItem/WhatsAppConversationListItem.vue.d.ts +21 -0
- package/lib/components/WhatsAppConversationListItem/index.d.ts +1 -0
- package/lib/components/WhatsAppEmojiPicker/WhatsAppEmojiPicker.d.ts +9 -0
- package/lib/components/WhatsAppEmojiPicker/WhatsAppEmojiPicker.types.d.ts +91 -0
- package/lib/components/WhatsAppEmojiPicker/WhatsAppEmojiPicker.vue.d.ts +31 -0
- package/lib/components/WhatsAppEmojiPicker/index.d.ts +1 -0
- package/lib/components/WhatsAppInbox/WhatsAppInbox.d.ts +10 -0
- package/lib/components/WhatsAppInbox/WhatsAppInbox.types.d.ts +135 -0
- package/lib/components/WhatsAppInbox/WhatsAppInbox.vue.d.ts +84 -0
- package/lib/components/WhatsAppInbox/index.d.ts +1 -0
- package/lib/components/WhatsAppInboxDrawer/WhatsAppInboxDrawer.d.ts +9 -0
- package/lib/components/WhatsAppInboxDrawer/WhatsAppInboxDrawer.types.d.ts +52 -0
- package/lib/components/WhatsAppInboxDrawer/WhatsAppInboxDrawer.vue.d.ts +24 -0
- package/lib/components/WhatsAppInboxDrawer/index.d.ts +1 -0
- package/lib/components/WhatsAppInboxModal/WhatsAppInboxModal.d.ts +9 -0
- package/lib/components/WhatsAppInboxModal/WhatsAppInboxModal.types.d.ts +52 -0
- package/lib/components/WhatsAppInboxModal/WhatsAppInboxModal.vue.d.ts +28 -0
- package/lib/components/WhatsAppInboxModal/index.d.ts +1 -0
- package/lib/components/WhatsAppInboxProvider/WhatsAppInboxProvider.d.ts +16 -0
- package/lib/components/WhatsAppInboxProvider/WhatsAppInboxProvider.types.d.ts +16 -0
- package/lib/components/WhatsAppInboxProvider/WhatsAppInboxProvider.vue.d.ts +11 -0
- package/lib/components/WhatsAppInboxProvider/index.d.ts +1 -0
- package/lib/components/WhatsAppInteractiveMessageEditor/WhatsAppInteractiveMessageEditor.d.ts +8 -0
- package/lib/components/WhatsAppInteractiveMessageEditor/WhatsAppInteractiveMessageEditor.types.d.ts +49 -0
- package/lib/components/WhatsAppInteractiveMessageEditor/WhatsAppInteractiveMessageEditor.vue.d.ts +27 -0
- package/lib/components/WhatsAppInteractiveMessageEditor/index.d.ts +1 -0
- package/lib/components/WhatsAppMediaAttachment/WhatsAppMediaAttachment.d.ts +8 -0
- package/lib/components/WhatsAppMediaAttachment/WhatsAppMediaAttachment.types.d.ts +41 -0
- package/lib/components/WhatsAppMediaAttachment/WhatsAppMediaAttachment.vue.d.ts +19 -0
- package/lib/components/WhatsAppMediaAttachment/index.d.ts +1 -0
- package/lib/components/WhatsAppMessage/WhatsAppMessage.d.ts +9 -0
- package/lib/components/WhatsAppMessage/WhatsAppMessage.types.d.ts +46 -0
- package/lib/components/WhatsAppMessage/WhatsAppMessage.vue.d.ts +25 -0
- package/lib/components/WhatsAppMessage/index.d.ts +1 -0
- package/lib/components/WhatsAppMessageBubble/WhatsAppMessageBubble.d.ts +9 -0
- package/lib/components/WhatsAppMessageBubble/WhatsAppMessageBubble.types.d.ts +77 -0
- package/lib/components/WhatsAppMessageBubble/WhatsAppMessageBubble.vue.d.ts +22 -0
- package/lib/components/WhatsAppMessageBubble/index.d.ts +1 -0
- package/lib/components/WhatsAppMessageList/WhatsAppMessageList.d.ts +10 -0
- package/lib/components/WhatsAppMessageList/WhatsAppMessageList.types.d.ts +94 -0
- package/lib/components/WhatsAppMessageList/WhatsAppMessageList.vue.d.ts +39 -0
- package/lib/components/WhatsAppMessageList/index.d.ts +1 -0
- package/lib/components/WhatsAppMessageStatus/WhatsAppMessageStatus.d.ts +7 -0
- package/lib/components/WhatsAppMessageStatus/WhatsAppMessageStatus.types.d.ts +30 -0
- package/lib/components/WhatsAppMessageStatus/WhatsAppMessageStatus.vue.d.ts +24 -0
- package/lib/components/WhatsAppMessageStatus/index.d.ts +1 -0
- package/lib/components/WhatsAppMessagingWindowNotice/WhatsAppMessagingWindowNotice.d.ts +9 -0
- package/lib/components/WhatsAppMessagingWindowNotice/WhatsAppMessagingWindowNotice.types.d.ts +55 -0
- package/lib/components/WhatsAppMessagingWindowNotice/WhatsAppMessagingWindowNotice.vue.d.ts +18 -0
- package/lib/components/WhatsAppMessagingWindowNotice/index.d.ts +1 -0
- package/lib/components/WhatsAppTemplatePreview/WhatsAppTemplatePreview.d.ts +7 -0
- package/lib/components/WhatsAppTemplatePreview/WhatsAppTemplatePreview.types.d.ts +36 -0
- package/lib/components/WhatsAppTemplatePreview/WhatsAppTemplatePreview.vue.d.ts +12 -0
- package/lib/components/WhatsAppTemplatePreview/index.d.ts +1 -0
- package/lib/components/WhatsAppTemplateSelector/WhatsAppTemplateSelector.d.ts +9 -0
- package/lib/components/WhatsAppTemplateSelector/WhatsAppTemplateSelector.types.d.ts +106 -0
- package/lib/components/WhatsAppTemplateSelector/WhatsAppTemplateSelector.vue.d.ts +33 -0
- package/lib/components/WhatsAppTemplateSelector/index.d.ts +1 -0
- package/lib/emoji/emoji-data.d.ts +27 -0
- package/lib/emoji/emoji-filter.d.ts +49 -0
- package/lib/emoji/index.d.ts +4 -0
- package/lib/icons/WhatsAppIcon.vue.d.ts +14 -0
- package/lib/icons/icon-paths.d.ts +43 -0
- package/lib/icons/index.d.ts +3 -0
- package/lib/index.d.mts +29 -0
- package/lib/index.d.ts +29 -0
- package/lib/labels.d.ts +184 -0
- package/lib/types.d.ts +777 -0
- package/lib/utils/capabilities.d.ts +14 -0
- package/lib/utils/format.d.ts +27 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/media.d.ts +45 -0
- package/lib/utils/messages.d.ts +48 -0
- package/lib/utils/phone.d.ts +18 -0
- package/lib/utils/templates.d.ts +65 -0
- package/package.json +46 -0
- package/styles.css +1504 -0
- package/styles.layer.css +1506 -0
package/lib/labels.d.ts
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every user-visible string the extension renders on its own.
|
|
3
|
+
*
|
|
4
|
+
* Nothing is hard-coded inside a template: a consumer localizes the whole inbox by passing one
|
|
5
|
+
* `labels` object to `WhatsAppInboxProvider`, and any component can still override a single key
|
|
6
|
+
* without losing the rest.
|
|
7
|
+
*/
|
|
8
|
+
export interface WhatsAppInboxLabels {
|
|
9
|
+
conversationsLabel: string;
|
|
10
|
+
searchPlaceholder: string;
|
|
11
|
+
searchLabel: string;
|
|
12
|
+
unreadFilterLabel: string;
|
|
13
|
+
statusFilterLabel: string;
|
|
14
|
+
statusFilterPlaceholder: string;
|
|
15
|
+
assigneeFilterLabel: string;
|
|
16
|
+
assigneeFilterPlaceholder: string;
|
|
17
|
+
unassigned: string;
|
|
18
|
+
clearFilters: string;
|
|
19
|
+
newConversation: string;
|
|
20
|
+
newConversationTitle: string;
|
|
21
|
+
newConversationDescription: string;
|
|
22
|
+
newConversationPhoneLabel: string;
|
|
23
|
+
newConversationPhonePlaceholder: string;
|
|
24
|
+
newConversationNameLabel: string;
|
|
25
|
+
newConversationNamePlaceholder: string;
|
|
26
|
+
newConversationSubmit: string;
|
|
27
|
+
newConversationInvalidPhone: string;
|
|
28
|
+
newConversationExists: string;
|
|
29
|
+
loadMoreConversations: string;
|
|
30
|
+
loadingConversations: string;
|
|
31
|
+
conversationsError: string;
|
|
32
|
+
emptyInbox: string;
|
|
33
|
+
emptySearch: string;
|
|
34
|
+
unreadCountLabel: (count: number) => string;
|
|
35
|
+
conversationItemLabel: (name: string) => string;
|
|
36
|
+
noConversationSelected: string;
|
|
37
|
+
noConversationSelectedDescription: string;
|
|
38
|
+
emptyConversation: string;
|
|
39
|
+
emptyConversationDescription: string;
|
|
40
|
+
conversationError: string;
|
|
41
|
+
messagesError: string;
|
|
42
|
+
loadingMessages: string;
|
|
43
|
+
loadOlderMessages: string;
|
|
44
|
+
loadingOlderMessages: string;
|
|
45
|
+
backToConversations: string;
|
|
46
|
+
scrollToBottom: string;
|
|
47
|
+
newMessages: (count: number) => string;
|
|
48
|
+
messageHistoryLabel: string;
|
|
49
|
+
today: string;
|
|
50
|
+
yesterday: string;
|
|
51
|
+
statusPending: string;
|
|
52
|
+
statusSent: string;
|
|
53
|
+
statusDelivered: string;
|
|
54
|
+
statusRead: string;
|
|
55
|
+
statusFailed: string;
|
|
56
|
+
messageStatusLabel: (status: string) => string;
|
|
57
|
+
inboundMessageLabel: string;
|
|
58
|
+
outboundMessageLabel: string;
|
|
59
|
+
forwarded: string;
|
|
60
|
+
retrySend: string;
|
|
61
|
+
sendFailed: string;
|
|
62
|
+
composerPlaceholder: string;
|
|
63
|
+
composerLabel: string;
|
|
64
|
+
send: string;
|
|
65
|
+
sending: string;
|
|
66
|
+
attachFile: string;
|
|
67
|
+
emoji: string;
|
|
68
|
+
templates: string;
|
|
69
|
+
interactiveMessage: string;
|
|
70
|
+
cancelReply: string;
|
|
71
|
+
replyingTo: string;
|
|
72
|
+
messageTooLong: (max: number) => string;
|
|
73
|
+
characterCount: (count: number, max: number) => string;
|
|
74
|
+
emptyMessage: string;
|
|
75
|
+
emojiPickerLabel: string;
|
|
76
|
+
emojiPickerSearchPlaceholder: string;
|
|
77
|
+
emojiPickerNoResults: string;
|
|
78
|
+
emojiPickerSearchResults: string;
|
|
79
|
+
emojiGroupRecent: string;
|
|
80
|
+
emojiGroupSmileys: string;
|
|
81
|
+
emojiGroupPeople: string;
|
|
82
|
+
emojiGroupAnimals: string;
|
|
83
|
+
emojiGroupFood: string;
|
|
84
|
+
emojiGroupActivity: string;
|
|
85
|
+
emojiGroupTravel: string;
|
|
86
|
+
emojiGroupObjects: string;
|
|
87
|
+
emojiGroupSymbols: string;
|
|
88
|
+
emojiGroupFlags: string;
|
|
89
|
+
windowClosedTitle: string;
|
|
90
|
+
windowClosedDescription: string;
|
|
91
|
+
windowExpiresAt: (time: string) => string;
|
|
92
|
+
sendTemplateInstead: string;
|
|
93
|
+
composerDisabled: string;
|
|
94
|
+
templateSelectorTitle: string;
|
|
95
|
+
templateSearchPlaceholder: string;
|
|
96
|
+
templateCategoryLabel: string;
|
|
97
|
+
templateLanguageLabel: string;
|
|
98
|
+
templateStatusLabel: string;
|
|
99
|
+
templatesEmpty: string;
|
|
100
|
+
templatesError: string;
|
|
101
|
+
templatesLoading: string;
|
|
102
|
+
templateParameters: string;
|
|
103
|
+
templateHeaderVariables: string;
|
|
104
|
+
templateBodyVariables: string;
|
|
105
|
+
templateButtonVariables: string;
|
|
106
|
+
templatePreview: string;
|
|
107
|
+
templateRequiredField: string;
|
|
108
|
+
templateBack: string;
|
|
109
|
+
templateSubmit: string;
|
|
110
|
+
templateUnavailable: string;
|
|
111
|
+
templateHeaderMedia: string;
|
|
112
|
+
templateHeaderMediaRequired: string;
|
|
113
|
+
interactiveTitle: string;
|
|
114
|
+
interactiveType: string;
|
|
115
|
+
interactiveTypeButton: string;
|
|
116
|
+
interactiveTypeCtaUrl: string;
|
|
117
|
+
interactiveTypeList: string;
|
|
118
|
+
interactiveBody: string;
|
|
119
|
+
interactiveFooter: string;
|
|
120
|
+
interactiveHeader: string;
|
|
121
|
+
interactiveButtons: string;
|
|
122
|
+
interactiveAddButton: string;
|
|
123
|
+
interactiveRemoveButton: string;
|
|
124
|
+
interactiveButtonText: string;
|
|
125
|
+
interactiveCtaDisplayText: string;
|
|
126
|
+
interactiveCtaUrl: string;
|
|
127
|
+
interactiveListButton: string;
|
|
128
|
+
interactiveListSections: string;
|
|
129
|
+
interactiveAddSection: string;
|
|
130
|
+
interactiveRemoveSection: string;
|
|
131
|
+
interactiveAddRow: string;
|
|
132
|
+
interactiveRemoveRow: string;
|
|
133
|
+
interactiveSectionTitle: string;
|
|
134
|
+
interactiveRowTitle: string;
|
|
135
|
+
interactiveRowDescription: string;
|
|
136
|
+
interactiveSubmit: string;
|
|
137
|
+
interactiveBodyRequired: string;
|
|
138
|
+
interactiveButtonsRequired: string;
|
|
139
|
+
interactiveUrlRequired: string;
|
|
140
|
+
interactiveRowsRequired: string;
|
|
141
|
+
download: string;
|
|
142
|
+
openInNewTab: string;
|
|
143
|
+
removeAttachment: string;
|
|
144
|
+
retryUpload: string;
|
|
145
|
+
cancelUpload: string;
|
|
146
|
+
uploading: string;
|
|
147
|
+
uploadFailed: string;
|
|
148
|
+
attachmentsLabel: string;
|
|
149
|
+
playAudio: string;
|
|
150
|
+
fileTooLarge: (fileName: string, max: string) => string;
|
|
151
|
+
fileInvalidType: (fileName: string) => string;
|
|
152
|
+
tooManyFiles: (max: number) => string;
|
|
153
|
+
mediaUnavailable: string;
|
|
154
|
+
contactPanelTitle: string;
|
|
155
|
+
contactPanelToggle: string;
|
|
156
|
+
contactPhoneNumber: string;
|
|
157
|
+
contactEmail: string;
|
|
158
|
+
contactAbout: string;
|
|
159
|
+
contactTags: string;
|
|
160
|
+
contactStatus: string;
|
|
161
|
+
contactAssignee: string;
|
|
162
|
+
messageTypeImage: string;
|
|
163
|
+
messageTypeVideo: string;
|
|
164
|
+
messageTypeAudio: string;
|
|
165
|
+
messageTypeDocument: string;
|
|
166
|
+
messageTypeSticker: string;
|
|
167
|
+
messageTypeLocation: string;
|
|
168
|
+
messageTypeContacts: string;
|
|
169
|
+
messageTypeTemplate: string;
|
|
170
|
+
messageTypeInteractive: string;
|
|
171
|
+
messageTypeUnsupported: string;
|
|
172
|
+
retry: string;
|
|
173
|
+
close: string;
|
|
174
|
+
cancel: string;
|
|
175
|
+
loading: string;
|
|
176
|
+
}
|
|
177
|
+
/** English defaults. Every key can be replaced through `labels`. */
|
|
178
|
+
export declare const DEFAULT_WHATSAPP_INBOX_LABELS: WhatsAppInboxLabels;
|
|
179
|
+
/** Partial override of the built-in labels. */
|
|
180
|
+
export type WhatsAppInboxLabelsOverride = Partial<WhatsAppInboxLabels>;
|
|
181
|
+
/** Reads one label, applying an override on top of the defaults. */
|
|
182
|
+
export declare function getWhatsAppLabel<Key extends keyof WhatsAppInboxLabels>(key: Key, override?: WhatsAppInboxLabelsOverride): WhatsAppInboxLabels[Key];
|
|
183
|
+
/** Merges one or more overrides over the defaults, later sources winning. */
|
|
184
|
+
export declare function mergeWhatsAppLabels(...overrides: (WhatsAppInboxLabelsOverride | undefined)[]): WhatsAppInboxLabels;
|