@mantine-vue/whatsapp-inbox 3.6.0 → 3.7.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/cjs/index.cjs +39 -18
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +39 -18
- package/esm/index.mjs.map +1 -1
- package/lib/component-props.d.ts +21 -1
- package/lib/components/WhatsAppComposer/WhatsAppComposer.types.d.ts +3 -1
- package/package.json +3 -3
- package/styles.css +26 -20
- package/styles.layer.css +26 -20
package/esm/index.mjs
CHANGED
|
@@ -7675,6 +7675,7 @@ var WhatsAppComposer = factory(/* @__PURE__ */ defineComponent({
|
|
|
7675
7675
|
const showAttachments = computed(() => props.withAttachments ?? capabilities.value.canSendMedia);
|
|
7676
7676
|
const showTemplates = computed(() => props.withTemplates ?? capabilities.value.canSendTemplates);
|
|
7677
7677
|
const useCustomPicker = computed(() => Boolean(slots.emojiPicker));
|
|
7678
|
+
const useCustomTemplateSelector = computed(() => Boolean(slots.templateSelector));
|
|
7678
7679
|
const useBuiltInPicker = computed(() => !useCustomPicker.value && props.withEmojiPicker !== false);
|
|
7679
7680
|
const showEmoji = computed(() => (props.withEmoji ?? capabilities.value.canUseEmoji) && (useCustomPicker.value || useBuiltInPicker.value));
|
|
7680
7681
|
const showInteractive = computed(() => props.withInteractive ?? (capabilities.value.canSendInteractive && capabilities.value.interactiveTypes.length > 0));
|
|
@@ -8089,7 +8090,16 @@ var WhatsAppComposer = factory(/* @__PURE__ */ defineComponent({
|
|
|
8089
8090
|
}, 16, ["data-exceeded"])]),
|
|
8090
8091
|
_: 1
|
|
8091
8092
|
}, 16)) : createCommentVNode("", true),
|
|
8092
|
-
|
|
8093
|
+
useCustomTemplateSelector.value ? renderSlot(_ctx.$slots, "templateSelector", {
|
|
8094
|
+
key: 5,
|
|
8095
|
+
opened: Boolean(unref(templatesOpened)),
|
|
8096
|
+
close: () => unref(setTemplatesOpened)(false),
|
|
8097
|
+
submit: submitTemplate,
|
|
8098
|
+
templates: unref(props).templates ?? [],
|
|
8099
|
+
loading: Boolean(unref(props).templatesLoading),
|
|
8100
|
+
error: unref(props).templatesError,
|
|
8101
|
+
retryLoad: () => emit("templatesRetryLoad")
|
|
8102
|
+
}) : (openBlock(), createBlock(unref(Modal), mergeProps({ key: 6 }, unref(props).templateModalProps, {
|
|
8093
8103
|
opened: unref(templatesOpened),
|
|
8094
8104
|
title: unref(config).labels.templateSelectorTitle,
|
|
8095
8105
|
size: "lg",
|
|
@@ -8119,7 +8129,7 @@ var WhatsAppComposer = factory(/* @__PURE__ */ defineComponent({
|
|
|
8119
8129
|
"unstyled"
|
|
8120
8130
|
])]),
|
|
8121
8131
|
_: 3
|
|
8122
|
-
}, 16, ["opened", "title"]),
|
|
8132
|
+
}, 16, ["opened", "title"])),
|
|
8123
8133
|
createVNode(unref(Modal), mergeProps(unref(props).interactiveModalProps, {
|
|
8124
8134
|
opened: unref(interactiveOpened),
|
|
8125
8135
|
title: unref(config).labels.interactiveTitle,
|
|
@@ -9149,18 +9159,18 @@ var WhatsAppMessage = factory(/* @__PURE__ */ defineComponent({
|
|
|
9149
9159
|
}
|
|
9150
9160
|
}), { classes: WhatsAppMessage_module_default });
|
|
9151
9161
|
var WhatsAppMessageList_module_default = {
|
|
9152
|
-
messageListRoot: "
|
|
9153
|
-
messageListScrollArea: "
|
|
9154
|
-
messageListContent: "
|
|
9155
|
-
messageListItems: "
|
|
9156
|
-
messageListGroup: "
|
|
9157
|
-
messageListGroupItems: "
|
|
9158
|
-
messageListItem: "
|
|
9159
|
-
messageListDayDivider: "
|
|
9160
|
-
messageListDayLabel: "
|
|
9161
|
-
messageListLoadOlder: "
|
|
9162
|
-
messageListState: "
|
|
9163
|
-
messageListScrollToBottom: "
|
|
9162
|
+
messageListRoot: "_messageListRoot_1xgoq_1",
|
|
9163
|
+
messageListScrollArea: "_messageListScrollArea_1xgoq_10",
|
|
9164
|
+
messageListContent: "_messageListContent_1xgoq_15",
|
|
9165
|
+
messageListItems: "_messageListItems_1xgoq_24",
|
|
9166
|
+
messageListGroup: "_messageListGroup_1xgoq_37",
|
|
9167
|
+
messageListGroupItems: "_messageListGroupItems_1xgoq_42",
|
|
9168
|
+
messageListItem: "_messageListItem_1xgoq_24",
|
|
9169
|
+
messageListDayDivider: "_messageListDayDivider_1xgoq_60",
|
|
9170
|
+
messageListDayLabel: "_messageListDayLabel_1xgoq_69",
|
|
9171
|
+
messageListLoadOlder: "_messageListLoadOlder_1xgoq_78",
|
|
9172
|
+
messageListState: "_messageListState_1xgoq_84",
|
|
9173
|
+
messageListScrollToBottom: "_messageListScrollToBottom_1xgoq_95"
|
|
9164
9174
|
};
|
|
9165
9175
|
//#endregion
|
|
9166
9176
|
//#region src/components/WhatsAppMessageList/WhatsAppMessageList.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -9943,6 +9953,11 @@ var WhatsAppConversation = factory(/* @__PURE__ */ defineComponent({
|
|
|
9943
9953
|
name: "templatePreview",
|
|
9944
9954
|
fn: withCtx((templateProps) => [renderSlot(_ctx.$slots, "templatePreview", normalizeProps(guardReactiveProps(templateProps)))]),
|
|
9945
9955
|
key: "5"
|
|
9956
|
+
} : void 0,
|
|
9957
|
+
unref(slots).templateSelector ? {
|
|
9958
|
+
name: "templateSelector",
|
|
9959
|
+
fn: withCtx((selectorProps) => [renderSlot(_ctx.$slots, "templateSelector", normalizeProps(guardReactiveProps(selectorProps)))]),
|
|
9960
|
+
key: "6"
|
|
9946
9961
|
} : void 0
|
|
9947
9962
|
]), 1040, [
|
|
9948
9963
|
"conversation-id",
|
|
@@ -11171,6 +11186,11 @@ var WhatsAppInbox = factory(/* @__PURE__ */ defineComponent({
|
|
|
11171
11186
|
name: "templatePreview",
|
|
11172
11187
|
fn: withCtx((templateProps) => [renderSlot(_ctx.$slots, "templatePreview", normalizeProps(guardReactiveProps(templateProps)))]),
|
|
11173
11188
|
key: "14"
|
|
11189
|
+
} : void 0,
|
|
11190
|
+
unref(slots).templateSelector ? {
|
|
11191
|
+
name: "templateSelector",
|
|
11192
|
+
fn: withCtx((selectorProps) => [renderSlot(_ctx.$slots, "templateSelector", normalizeProps(guardReactiveProps(selectorProps)))]),
|
|
11193
|
+
key: "15"
|
|
11174
11194
|
} : void 0
|
|
11175
11195
|
]), 1032, [
|
|
11176
11196
|
"conversation",
|
|
@@ -11256,9 +11276,9 @@ var WhatsAppInbox = factory(/* @__PURE__ */ defineComponent({
|
|
|
11256
11276
|
}
|
|
11257
11277
|
}), { classes: WhatsAppInbox_module_default });
|
|
11258
11278
|
var WhatsAppInboxModal_module_default = {
|
|
11259
|
-
modalRoot: "
|
|
11260
|
-
modalContent: "
|
|
11261
|
-
modalBody: "
|
|
11279
|
+
modalRoot: "_modalRoot_1xrov_1",
|
|
11280
|
+
modalContent: "_modalContent_1xrov_9",
|
|
11281
|
+
modalBody: "_modalBody_1xrov_14"
|
|
11262
11282
|
};
|
|
11263
11283
|
//#endregion
|
|
11264
11284
|
//#region src/components/WhatsAppInboxModal/WhatsAppInboxModal.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -11429,7 +11449,7 @@ var WhatsAppInboxModal = factory(/* @__PURE__ */ defineComponent({
|
|
|
11429
11449
|
return openBlock(), createBlock(unref(Modal), mergeProps(unref(props).modalProps, {
|
|
11430
11450
|
opened: Boolean(unref(props).opened),
|
|
11431
11451
|
title: title.value,
|
|
11432
|
-
size: "lg",
|
|
11452
|
+
size: unref(props).modalProps?.size ?? "lg",
|
|
11433
11453
|
class: unref(getStyles)("modalRoot").class,
|
|
11434
11454
|
style: unref(getStyles)("modalRoot").style,
|
|
11435
11455
|
"class-names": {
|
|
@@ -11467,6 +11487,7 @@ var WhatsAppInboxModal = factory(/* @__PURE__ */ defineComponent({
|
|
|
11467
11487
|
}, 16, [
|
|
11468
11488
|
"opened",
|
|
11469
11489
|
"title",
|
|
11490
|
+
"size",
|
|
11470
11491
|
"class",
|
|
11471
11492
|
"style",
|
|
11472
11493
|
"class-names",
|