@bluepic/embed 0.1.119 → 0.1.121
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/lib/bluepic-embed.es.js
CHANGED
|
@@ -79058,7 +79058,8 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
79058
79058
|
zoomAndPan: { type: Boolean, default: !0 },
|
|
79059
79059
|
baseSerial: {},
|
|
79060
79060
|
watermark: {},
|
|
79061
|
-
scrollbars: { type: Boolean, default: !0 }
|
|
79061
|
+
scrollbars: { type: Boolean, default: !0 },
|
|
79062
|
+
offset: {}
|
|
79062
79063
|
}, {
|
|
79063
79064
|
data: {
|
|
79064
79065
|
required: !0
|
|
@@ -79356,7 +79357,7 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
79356
79357
|
"onUpdate:transform": rn[4] || (rn[4] = (ji) => Nr.value = ji),
|
|
79357
79358
|
width: Me.value ? Me.value.width : 1080,
|
|
79358
79359
|
height: Me.value ? Me.value.height : 1080,
|
|
79359
|
-
offset:
|
|
79360
|
+
offset: $n.offset,
|
|
79360
79361
|
"min-scale": 0.1,
|
|
79361
79362
|
"max-scale": 10,
|
|
79362
79363
|
rotation: !1,
|
|
@@ -79456,10 +79457,10 @@ const Rt = 10, Yt = 10, Xt = /* @__PURE__ */ defineComponent({
|
|
|
79456
79457
|
], 4)) : createCommentVNode("", !0)
|
|
79457
79458
|
]),
|
|
79458
79459
|
_: 3
|
|
79459
|
-
}, 8, ["transform", "width", "height", "mouse", "touch", "wheel"]))
|
|
79460
|
+
}, 8, ["transform", "width", "height", "offset", "mouse", "touch", "wheel"]))
|
|
79460
79461
|
], 38));
|
|
79461
79462
|
}
|
|
79462
|
-
}),
|
|
79463
|
+
}), BluepicLiveTemplate_vue_vue_type_style_index_0_scoped_9c93c6d4_lang = "", BluepicLiveTemplate_vue_vue_type_style_index_1_scoped_9c93c6d4_lang = "", BluepicLiveTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-9c93c6d4"]]), _hoisted_1$f = { class: "label" }, _hoisted_2$b = { class: "field-wrapper" }, _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
79463
79464
|
__name: "KioskField",
|
|
79464
79465
|
props: {
|
|
79465
79466
|
serial: {},
|
|
@@ -96986,7 +96987,8 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
96986
96987
|
onMatrixClick: tr,
|
|
96987
96988
|
watermark: Mn.watermark,
|
|
96988
96989
|
"zoom-and-pan": Mn.zoomAndPan,
|
|
96989
|
-
scrollbars: Mn.zoomAndPan
|
|
96990
|
+
scrollbars: Mn.zoomAndPan,
|
|
96991
|
+
offset: { top: 0, right: 20, bottom: 0, left: 0 }
|
|
96990
96992
|
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "base-serial", "data", "serial", "ready", "watermark", "zoom-and-pan", "scrollbars"])
|
|
96991
96993
|
])
|
|
96992
96994
|
], 2)
|
|
@@ -97039,7 +97041,8 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
97039
97041
|
onMatrixClick: tr,
|
|
97040
97042
|
watermark: Mn.watermark,
|
|
97041
97043
|
"zoom-and-pan": Mn.zoomAndPan,
|
|
97042
|
-
scrollbars: Mn.zoomAndPan
|
|
97044
|
+
scrollbars: Mn.zoomAndPan,
|
|
97045
|
+
offset: { top: 0, right: 0, bottom: 0, left: 0 }
|
|
97043
97046
|
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "base-serial", "data", "serial", "ready", "watermark", "zoom-and-pan", "scrollbars"])
|
|
97044
97047
|
], 2),
|
|
97045
97048
|
yn.value?.enabled ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
|
|
@@ -97186,7 +97189,8 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
97186
97189
|
onMatrixClick: tr,
|
|
97187
97190
|
watermark: Mn.watermark,
|
|
97188
97191
|
"zoom-and-pan": Mn.zoomAndPan,
|
|
97189
|
-
scrollbars: Mn.zoomAndPan
|
|
97192
|
+
scrollbars: Mn.zoomAndPan,
|
|
97193
|
+
offset: { top: 0, right: 0, bottom: 0, left: 0 }
|
|
97190
97194
|
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "base-serial", "data", "serial", "ready", "watermark", "zoom-and-pan", "scrollbars"])
|
|
97191
97195
|
], 2),
|
|
97192
97196
|
yn.value?.enabled ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
@@ -97337,7 +97341,8 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
97337
97341
|
onMatrixClick: tr,
|
|
97338
97342
|
watermark: Mn.watermark,
|
|
97339
97343
|
"zoom-and-pan": Mn.zoomAndPan,
|
|
97340
|
-
scrollbars: Mn.zoomAndPan
|
|
97344
|
+
scrollbars: Mn.zoomAndPan,
|
|
97345
|
+
offset: { top: 0, right: 0, bottom: 0, left: 0 }
|
|
97341
97346
|
}, {
|
|
97342
97347
|
matrix: withCtx(({ composePoint: Rn }) => [
|
|
97343
97348
|
createElementVNode("div", _hoisted_31, [
|
|
@@ -97392,7 +97397,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
97392
97397
|
])
|
|
97393
97398
|
], 2));
|
|
97394
97399
|
}
|
|
97395
|
-
}),
|
|
97400
|
+
}), BluepicEmbeddedEditor_vue_vue_type_style_index_0_scoped_38c42b67_lang = "", BluepicEmbeddedEditor = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-38c42b67"]]), _hoisted_1$a = { class: "collection-field-popup" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
97396
97401
|
__name: "CollectionFieldPopup",
|
|
97397
97402
|
props: /* @__PURE__ */ mergeModels({
|
|
97398
97403
|
layout: {},
|
|
@@ -98105,7 +98110,8 @@ const _hoisted_1$7 = { class: "import-data" }, _hoisted_2$5 = { class: "source-s
|
|
|
98105
98110
|
"onUpdate:serial": ci[3] || (ci[3] = (Ti) => ne.value = Ti),
|
|
98106
98111
|
ready: rr.value,
|
|
98107
98112
|
"onUpdate:ready": ci[4] || (ci[4] = (Ti) => rr.value = Ti),
|
|
98108
|
-
onMatrixClick: gr
|
|
98113
|
+
onMatrixClick: gr,
|
|
98114
|
+
offset: { top: 0, right: 0, bottom: 0, left: 0 }
|
|
98109
98115
|
}, null, 8, ["template-id", "studio-resources-base-url", "cloudflare-pages-hostname", "bx-core-version", "authorization", "async-serial", "resolution", "webgl", "fonts", "data", "serial", "ready"]),
|
|
98110
98116
|
Pr.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
98111
98117
|
createVNode(BxButton, {
|
|
@@ -98325,7 +98331,7 @@ const _hoisted_1$7 = { class: "import-data" }, _hoisted_2$5 = { class: "source-s
|
|
|
98325
98331
|
])) : createCommentVNode("", !0)
|
|
98326
98332
|
], 2));
|
|
98327
98333
|
}
|
|
98328
|
-
}),
|
|
98334
|
+
}), BluepicBatchEditor_vue_vue_type_style_index_0_scoped_1ee52bad_lang = "", BluepicBatchEditor = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-1ee52bad"]]), _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
98329
98335
|
__name: "BxSwitch",
|
|
98330
98336
|
props: /* @__PURE__ */ mergeModels({
|
|
98331
98337
|
disabled: { type: Boolean, default: !1 }
|
|
@@ -100319,10 +100325,12 @@ class BluepicEmbed extends EventTarget {
|
|
|
100319
100325
|
stripeEnv = ref$1("prod");
|
|
100320
100326
|
bxThemeStyleVars;
|
|
100321
100327
|
embedProject = ref$1();
|
|
100328
|
+
baseSerial = ref$1();
|
|
100329
|
+
basePreview = ref$1();
|
|
100322
100330
|
init() {
|
|
100323
100331
|
const c = `bluepic-app-${nanoid()}`;
|
|
100324
|
-
this.embedProjectSlugOrId && getProjectWithRetries("template.bluepic.io", this.embedProjectSlugOrId, 3, 2e3, this.stripeEnv.value).then(({ embedProject: $e, isAllowedToDisableBranding: Me }) => {
|
|
100325
|
-
this.embedProject.value = $e, this.displayMode.value = $e.config.layout, this.allowPanAndZoom.value = $e.config.allowPanAndZoom, this.branding.value = Me ? $e.config.bluepicBranding : !0, console.log("BRANDING", this.branding.value), this.templateId.value = $e.templates[0];
|
|
100332
|
+
this.embedProjectSlugOrId && getProjectWithRetries("template.bluepic.io", this.embedProjectSlugOrId, 3, 2e3, this.stripeEnv.value).then(({ embedProject: $e, isAllowedToDisableBranding: Me, templates: Ze }) => {
|
|
100333
|
+
this.embedProject.value = $e, this.displayMode.value = $e.config.layout, this.allowPanAndZoom.value = $e.config.allowPanAndZoom, this.branding.value = Me ? $e.config.bluepicBranding : !0, Ze && (this.baseSerial.value = Ze[$e.templates[0]].serial, this.basePreview.value = Ze[$e.templates[0]].preview), console.log("BRANDING", this.branding.value), this.templateId.value = $e.templates[0];
|
|
100326
100334
|
});
|
|
100327
100335
|
const ie = document.createElement("style");
|
|
100328
100336
|
ie.textContent = `
|
|
@@ -100366,6 +100374,8 @@ class BluepicEmbed extends EventTarget {
|
|
|
100366
100374
|
:branding="branding"
|
|
100367
100375
|
embedV2Server="https://embed-api-v2.bluepic.workers.dev"
|
|
100368
100376
|
:embed-project-id="embedProject?.id"
|
|
100377
|
+
:base-serial="baseSerial"
|
|
100378
|
+
:preview="basePreview"
|
|
100369
100379
|
/>
|
|
100370
100380
|
</div>
|
|
100371
100381
|
<transition name="fade-spinner">
|
|
@@ -100420,6 +100430,8 @@ class BluepicEmbed extends EventTarget {
|
|
|
100420
100430
|
embedProject: we.embedProject,
|
|
100421
100431
|
allowPanAndZoom: we.allowPanAndZoom,
|
|
100422
100432
|
templateId: we.templateId,
|
|
100433
|
+
baseSerial: we.baseSerial,
|
|
100434
|
+
basePreview: we.basePreview,
|
|
100423
100435
|
studioResourcesBaseUrl: we.studioResourcesBaseUrl,
|
|
100424
100436
|
cloudflarePagesHostname: we.cloudflarePagesHostname,
|
|
100425
100437
|
data: we.data,
|