@bagelink/vue 0.0.136 → 0.0.138
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/components/whatsapp/form/MsgTemplate.vue.d.ts +19 -3
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/dist/style.css +12 -12
- package/package.json +1 -1
- package/src/components/whatsapp/form/MsgTemplate.vue +10 -6
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { RouteLocationNormalizedLoaded, Router } from 'vue-router';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
whatsappTemplateSchema: () => FormKitSchemaDefinition;
|
|
5
5
|
router: Router;
|
|
6
6
|
route: RouteLocationNormalizedLoaded;
|
|
7
|
-
|
|
7
|
+
previewLabel?: string | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
previewLabel: string;
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
11
|
whatsappTemplateSchema: () => FormKitSchemaDefinition;
|
|
9
12
|
router: Router;
|
|
10
13
|
route: RouteLocationNormalizedLoaded;
|
|
11
|
-
|
|
14
|
+
previewLabel?: string | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
previewLabel: string;
|
|
17
|
+
}>>>, {
|
|
18
|
+
previewLabel: string;
|
|
19
|
+
}, {}>;
|
|
12
20
|
export default _default;
|
|
13
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
22
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,4 +27,12 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
19
27
|
required: true;
|
|
20
28
|
};
|
|
21
29
|
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Prettify<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
22
38
|
//# sourceMappingURL=MsgTemplate.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MsgTemplate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/whatsapp/form/MsgTemplate.vue"],"names":[],"mappings":"AAiCA;AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"MsgTemplate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/whatsapp/form/MsgTemplate.vue"],"names":[],"mappings":"AAiCA;AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;;4BA6S9C,MAAM,uBAAuB;YAC7C,MAAM;WACP,6BAA6B;;;;;4BAFZ,MAAM,uBAAuB;YAC7C,MAAM;WACP,6BAA6B;;;;;kBACrB,MAAM;;AALvB,wBAWG;AAGH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -28323,9 +28323,10 @@ const _hoisted_7 = { class: "whatsapp-footer" };
|
|
|
28323
28323
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
28324
28324
|
__name: "MsgTemplate",
|
|
28325
28325
|
props: {
|
|
28326
|
-
whatsappTemplateSchema: {
|
|
28326
|
+
whatsappTemplateSchema: {},
|
|
28327
28327
|
router: {},
|
|
28328
|
-
route: {}
|
|
28328
|
+
route: {},
|
|
28329
|
+
previewLabel: { default: "Preview" }
|
|
28329
28330
|
},
|
|
28330
28331
|
setup(__props) {
|
|
28331
28332
|
const props2 = __props;
|
|
@@ -28438,7 +28439,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
28438
28439
|
vue.createElementVNode("div", {
|
|
28439
28440
|
class: vue.normalizeClass(["whatsapp-preview", { whatsappHebrew: ((_a = vue.unref(localWhatsappData)) == null ? void 0 : _a.language) === "he" }])
|
|
28440
28441
|
}, [
|
|
28441
|
-
vue.createTextVNode("
|
|
28442
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.previewLabel) + " ", 1),
|
|
28442
28443
|
vue.createElementVNode("div", _hoisted_5, [
|
|
28443
28444
|
vue.createElementVNode("b", null, vue.toDisplayString((_c = (_b = vue.unref(localWhatsappData)) == null ? void 0 : _b.headerText) == null ? void 0 : _c.replace(regex2, replaceHeader)), 1),
|
|
28444
28445
|
vue.createElementVNode("p", _hoisted_6, vue.toDisplayString((_e = (_d = vue.unref(localWhatsappData)) == null ? void 0 : _d.bodyText) == null ? void 0 : _e.replace(regex2, replaceBody)), 1),
|
|
@@ -28451,7 +28452,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
28451
28452
|
};
|
|
28452
28453
|
}
|
|
28453
28454
|
});
|
|
28454
|
-
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
28455
|
+
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7031e613"]]);
|
|
28455
28456
|
exports.AddressInput = AddressInput;
|
|
28456
28457
|
exports.BagelVue = BagelVue;
|
|
28457
28458
|
exports.BankDetailsInput = BankDetailsInput;
|
package/dist/index.mjs
CHANGED
|
@@ -28321,9 +28321,10 @@ const _hoisted_7 = { class: "whatsapp-footer" };
|
|
|
28321
28321
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28322
28322
|
__name: "MsgTemplate",
|
|
28323
28323
|
props: {
|
|
28324
|
-
whatsappTemplateSchema: {
|
|
28324
|
+
whatsappTemplateSchema: {},
|
|
28325
28325
|
router: {},
|
|
28326
|
-
route: {}
|
|
28326
|
+
route: {},
|
|
28327
|
+
previewLabel: { default: "Preview" }
|
|
28327
28328
|
},
|
|
28328
28329
|
setup(__props) {
|
|
28329
28330
|
const props2 = __props;
|
|
@@ -28436,7 +28437,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28436
28437
|
createElementVNode("div", {
|
|
28437
28438
|
class: normalizeClass(["whatsapp-preview", { whatsappHebrew: ((_a = unref(localWhatsappData)) == null ? void 0 : _a.language) === "he" }])
|
|
28438
28439
|
}, [
|
|
28439
|
-
createTextVNode("
|
|
28440
|
+
createTextVNode(toDisplayString(_ctx.previewLabel) + " ", 1),
|
|
28440
28441
|
createElementVNode("div", _hoisted_5, [
|
|
28441
28442
|
createElementVNode("b", null, toDisplayString((_c = (_b = unref(localWhatsappData)) == null ? void 0 : _b.headerText) == null ? void 0 : _c.replace(regex2, replaceHeader)), 1),
|
|
28442
28443
|
createElementVNode("p", _hoisted_6, toDisplayString((_e = (_d = unref(localWhatsappData)) == null ? void 0 : _d.bodyText) == null ? void 0 : _e.replace(regex2, replaceBody)), 1),
|
|
@@ -28449,7 +28450,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28449
28450
|
};
|
|
28450
28451
|
}
|
|
28451
28452
|
});
|
|
28452
|
-
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
28453
|
+
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7031e613"]]);
|
|
28453
28454
|
export {
|
|
28454
28455
|
AddressInput,
|
|
28455
28456
|
BagelVue,
|
package/dist/style.css
CHANGED
|
@@ -2225,10 +2225,10 @@ input[type='email'][data-v-ed81a514] {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
2227
|
|
|
2228
|
-
.btn-end[data-v-
|
|
2228
|
+
.btn-end[data-v-7031e613] {
|
|
2229
2229
|
text-align: end;
|
|
2230
2230
|
}
|
|
2231
|
-
.whatsapp-preview[data-v-
|
|
2231
|
+
.whatsapp-preview[data-v-7031e613] {
|
|
2232
2232
|
direction: ltr;
|
|
2233
2233
|
width: 400px;
|
|
2234
2234
|
padding: 1rem;
|
|
@@ -2240,18 +2240,18 @@ input[type='email'][data-v-ed81a514] {
|
|
|
2240
2240
|
top: 15px;
|
|
2241
2241
|
flex: 1 1 40%;
|
|
2242
2242
|
}
|
|
2243
|
-
.whatsapp-wrap[data-v-
|
|
2243
|
+
.whatsapp-wrap[data-v-7031e613] {
|
|
2244
2244
|
display: flex;
|
|
2245
2245
|
gap: 1rem;
|
|
2246
2246
|
max-width: 1200px;
|
|
2247
2247
|
overflow: auto;
|
|
2248
2248
|
height: 100%;
|
|
2249
2249
|
}
|
|
2250
|
-
.create-template-form[data-v-
|
|
2250
|
+
.create-template-form[data-v-7031e613] {
|
|
2251
2251
|
flex: 1 0 50%;
|
|
2252
2252
|
min-width: 300px;
|
|
2253
2253
|
}
|
|
2254
|
-
.whatsapp-msg[data-v-
|
|
2254
|
+
.whatsapp-msg[data-v-7031e613] {
|
|
2255
2255
|
background: var(--whatsapp-green);
|
|
2256
2256
|
border-radius: 0.5rem;
|
|
2257
2257
|
border-start-start-radius: 0px;
|
|
@@ -2262,7 +2262,7 @@ input[type='email'][data-v-ed81a514] {
|
|
|
2262
2262
|
position: relative;
|
|
2263
2263
|
min-height: 30px;
|
|
2264
2264
|
}
|
|
2265
|
-
.whatsapp-msg[data-v-
|
|
2265
|
+
.whatsapp-msg[data-v-7031e613]::after {
|
|
2266
2266
|
content: '';
|
|
2267
2267
|
inset-inline-start: -5px;
|
|
2268
2268
|
border-radius: 0.1rem;
|
|
@@ -2273,27 +2273,27 @@ input[type='email'][data-v-ed81a514] {
|
|
|
2273
2273
|
background: var(--whatsapp-green);
|
|
2274
2274
|
position: absolute;
|
|
2275
2275
|
}
|
|
2276
|
-
.whatsapp-body[data-v-
|
|
2276
|
+
.whatsapp-body[data-v-7031e613] {
|
|
2277
2277
|
margin: 2px 0;
|
|
2278
2278
|
}
|
|
2279
|
-
.whatsapp-footer[data-v-
|
|
2279
|
+
.whatsapp-footer[data-v-7031e613] {
|
|
2280
2280
|
margin: 0;
|
|
2281
2281
|
opacity: 0.6;
|
|
2282
2282
|
font-size: 0.8rem;
|
|
2283
2283
|
}
|
|
2284
|
-
.whatsappHebrew[data-v-
|
|
2284
|
+
.whatsappHebrew[data-v-7031e613] {
|
|
2285
2285
|
direction: rtl;
|
|
2286
2286
|
}
|
|
2287
|
-
.whatsappHebrew .whatsapp-msg[data-v-
|
|
2287
|
+
.whatsappHebrew .whatsapp-msg[data-v-7031e613]::after {
|
|
2288
2288
|
transform: skew(-45deg);
|
|
2289
2289
|
}
|
|
2290
2290
|
@media screen and (max-width: 1200px) {
|
|
2291
|
-
.whatsapp-preview[data-v-
|
|
2291
|
+
.whatsapp-preview[data-v-7031e613] {
|
|
2292
2292
|
width: 300px;
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
2295
2295
|
@media screen and (max-width: 910px) {
|
|
2296
|
-
.whatsapp-preview[data-v-
|
|
2296
|
+
.whatsapp-preview[data-v-7031e613] {
|
|
2297
2297
|
display: none;
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
class="whatsapp-preview"
|
|
15
15
|
:class="{ whatsappHebrew: localWhatsappData?.language === 'he' }"
|
|
16
16
|
>
|
|
17
|
-
|
|
17
|
+
{{ previewLabel }}
|
|
18
18
|
<div class="whatsapp-msg">
|
|
19
19
|
<b>{{
|
|
20
20
|
localWhatsappData?.headerText?.replace(regex, replaceHeader)
|
|
@@ -46,11 +46,15 @@ import {
|
|
|
46
46
|
FooterComponent,
|
|
47
47
|
} from '../interfaces';
|
|
48
48
|
|
|
49
|
-
const props =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
const props = withDefaults(
|
|
50
|
+
defineProps<{
|
|
51
|
+
whatsappTemplateSchema: () => FormKitSchemaDefinition;
|
|
52
|
+
router: Router;
|
|
53
|
+
route: RouteLocationNormalizedLoaded;
|
|
54
|
+
previewLabel?: string;
|
|
55
|
+
}>(),
|
|
56
|
+
{ previewLabel: 'Preview' },
|
|
57
|
+
);
|
|
54
58
|
|
|
55
59
|
const bagel = useBagel();
|
|
56
60
|
|