@bluepic/embed 0.1.136 → 0.1.137
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 +58 -77
- package/lib/bluepic-embed.umd.js +14 -13
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/bluepic-embed.es.js
CHANGED
|
@@ -8336,7 +8336,7 @@ var util$4 = {}, types$2 = {}, shams$1 = function() {
|
|
|
8336
8336
|
return !0;
|
|
8337
8337
|
}, hasSymbols$2 = shams$1, shams = function() {
|
|
8338
8338
|
return hasSymbols$2() && !!Symbol.toStringTag;
|
|
8339
|
-
}, esObjectAtoms = Object, esErrors = Error, _eval = EvalError, range$1 = RangeError, ref = ReferenceError, syntax = SyntaxError, type = TypeError, uri = URIError, abs$1 = Math.abs, floor$1 = Math.floor, max$
|
|
8339
|
+
}, esObjectAtoms = Object, esErrors = Error, _eval = EvalError, range$1 = RangeError, ref = ReferenceError, syntax = SyntaxError, type = TypeError, uri = URIError, abs$1 = Math.abs, floor$1 = Math.floor, max$3 = Math.max, min$2 = Math.min, pow$1 = Math.pow, round$2 = Math.round, _isNaN = Number.isNaN || function(c) {
|
|
8340
8340
|
return c !== c;
|
|
8341
8341
|
}, $isNaN = _isNaN, sign$2 = function(c) {
|
|
8342
8342
|
return $isNaN(c) || c === 0 ? c : c < 0 ? -1 : 1;
|
|
@@ -8376,69 +8376,49 @@ function requireObject_getPrototypeOf() {
|
|
|
8376
8376
|
var m = esObjectAtoms;
|
|
8377
8377
|
return Object_getPrototypeOf = m.getPrototypeOf || null, Object_getPrototypeOf;
|
|
8378
8378
|
}
|
|
8379
|
-
var
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
throw new TypeError(m + gr);
|
|
8403
|
-
for (var or = Me(arguments, 1), _r, Lr = function() {
|
|
8404
|
-
if (this instanceof _r) {
|
|
8405
|
-
var Yr = gr.apply(
|
|
8406
|
-
this,
|
|
8407
|
-
$e(or, arguments)
|
|
8408
|
-
);
|
|
8409
|
-
return Object(Yr) === Yr ? Yr : this;
|
|
8410
|
-
}
|
|
8411
|
-
return gr.apply(
|
|
8412
|
-
rr,
|
|
8413
|
-
$e(or, arguments)
|
|
8379
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr$4 = Object.prototype.toString, max$2 = Math.max, funcType = "[object Function]", concatty = function(c, ie) {
|
|
8380
|
+
for (var we = [], $e = 0; $e < c.length; $e += 1)
|
|
8381
|
+
we[$e] = c[$e];
|
|
8382
|
+
for (var Me = 0; Me < ie.length; Me += 1)
|
|
8383
|
+
we[Me + c.length] = ie[Me];
|
|
8384
|
+
return we;
|
|
8385
|
+
}, slicy = function(c, ie) {
|
|
8386
|
+
for (var we = [], $e = ie || 0, Me = 0; $e < c.length; $e += 1, Me += 1)
|
|
8387
|
+
we[Me] = c[$e];
|
|
8388
|
+
return we;
|
|
8389
|
+
}, joiny = function(m, c) {
|
|
8390
|
+
for (var ie = "", we = 0; we < m.length; we += 1)
|
|
8391
|
+
ie += m[we], we + 1 < m.length && (ie += c);
|
|
8392
|
+
return ie;
|
|
8393
|
+
}, implementation$1 = function(c) {
|
|
8394
|
+
var ie = this;
|
|
8395
|
+
if (typeof ie != "function" || toStr$4.apply(ie) !== funcType)
|
|
8396
|
+
throw new TypeError(ERROR_MESSAGE + ie);
|
|
8397
|
+
for (var we = slicy(arguments, 1), $e, Me = function() {
|
|
8398
|
+
if (this instanceof $e) {
|
|
8399
|
+
var or = ie.apply(
|
|
8400
|
+
this,
|
|
8401
|
+
concatty(we, arguments)
|
|
8414
8402
|
);
|
|
8415
|
-
|
|
8416
|
-
Ar[Rr] = "$" + Rr;
|
|
8417
|
-
if (_r = Function("binder", "return function (" + Ze(Ar, ",") + "){ return binder.apply(this,arguments); }")(Lr), gr.prototype) {
|
|
8418
|
-
var Fr = function() {
|
|
8419
|
-
};
|
|
8420
|
-
Fr.prototype = gr.prototype, _r.prototype = new Fr(), Fr.prototype = null;
|
|
8403
|
+
return Object(or) === or ? or : this;
|
|
8421
8404
|
}
|
|
8422
|
-
return
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
}
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
return hasRequiredFunctionCall || (hasRequiredFunctionCall = 1, functionCall = Function.prototype.call), functionCall;
|
|
8436
|
-
}
|
|
8437
|
-
var functionApply, hasRequiredFunctionApply;
|
|
8405
|
+
return ie.apply(
|
|
8406
|
+
c,
|
|
8407
|
+
concatty(we, arguments)
|
|
8408
|
+
);
|
|
8409
|
+
}, Ze = max$2(0, ie.length - we.length), ne = [], rr = 0; rr < Ze; rr++)
|
|
8410
|
+
ne[rr] = "$" + rr;
|
|
8411
|
+
if ($e = Function("binder", "return function (" + joiny(ne, ",") + "){ return binder.apply(this,arguments); }")(Me), ie.prototype) {
|
|
8412
|
+
var gr = function() {
|
|
8413
|
+
};
|
|
8414
|
+
gr.prototype = ie.prototype, $e.prototype = new gr(), gr.prototype = null;
|
|
8415
|
+
}
|
|
8416
|
+
return $e;
|
|
8417
|
+
}, implementation = implementation$1, functionBind = Function.prototype.bind || implementation, functionCall = Function.prototype.call, functionApply, hasRequiredFunctionApply;
|
|
8438
8418
|
function requireFunctionApply() {
|
|
8439
8419
|
return hasRequiredFunctionApply || (hasRequiredFunctionApply = 1, functionApply = Function.prototype.apply), functionApply;
|
|
8440
8420
|
}
|
|
8441
|
-
var reflectApply$1 = typeof Reflect < "u" && Reflect && Reflect.apply, bind$3 =
|
|
8421
|
+
var reflectApply$1 = typeof Reflect < "u" && Reflect && Reflect.apply, bind$3 = functionBind, $apply$2 = requireFunctionApply(), $call$2 = functionCall, $reflectApply = reflectApply$1, actualApply$1 = $reflectApply || bind$3.call($call$2, $apply$2), bind$2 = functionBind, $TypeError$8 = type, $call$1 = functionCall, $actualApply = actualApply$1, callBindApplyHelpers = function(c) {
|
|
8442
8422
|
if (c.length < 1 || typeof c[0] != "function")
|
|
8443
8423
|
throw new $TypeError$8("a function is required");
|
|
8444
8424
|
return $actualApply(bind$2, $call$1, c);
|
|
@@ -8480,10 +8460,10 @@ function requireHasown() {
|
|
|
8480
8460
|
if (hasRequiredHasown)
|
|
8481
8461
|
return hasown;
|
|
8482
8462
|
hasRequiredHasown = 1;
|
|
8483
|
-
var m = Function.prototype.call, c = Object.prototype.hasOwnProperty, ie =
|
|
8463
|
+
var m = Function.prototype.call, c = Object.prototype.hasOwnProperty, ie = functionBind;
|
|
8484
8464
|
return hasown = ie.call(m, c), hasown;
|
|
8485
8465
|
}
|
|
8486
|
-
var undefined$1, $Object = esObjectAtoms, $Error = esErrors, $EvalError = _eval, $RangeError = range$1, $ReferenceError = ref, $SyntaxError$1 = syntax, $TypeError$7 = type, $URIError = uri, abs = abs$1, floor = floor$1, max$1 = max$
|
|
8466
|
+
var undefined$1, $Object = esObjectAtoms, $Error = esErrors, $EvalError = _eval, $RangeError = range$1, $ReferenceError = ref, $SyntaxError$1 = syntax, $TypeError$7 = type, $URIError = uri, abs = abs$1, floor = floor$1, max$1 = max$3, min$1 = min$2, pow = pow$1, round$1 = round$2, sign$1 = sign$2, $Function = Function, getEvalledConstructor = function(m) {
|
|
8487
8467
|
try {
|
|
8488
8468
|
return $Function('"use strict"; return (' + m + ").constructor;")();
|
|
8489
8469
|
} catch {
|
|
@@ -8500,7 +8480,7 @@ var undefined$1, $Object = esObjectAtoms, $Error = esErrors, $EvalError = _eval,
|
|
|
8500
8480
|
return throwTypeError;
|
|
8501
8481
|
}
|
|
8502
8482
|
}
|
|
8503
|
-
}() : throwTypeError, hasSymbols = requireHasSymbols()(), getProto$1 = requireGetProto(), $ObjectGPO = requireObject_getPrototypeOf(), $ReflectGPO = requireReflect_getPrototypeOf(), $apply$1 = requireFunctionApply(), $call =
|
|
8483
|
+
}() : throwTypeError, hasSymbols = requireHasSymbols()(), getProto$1 = requireGetProto(), $ObjectGPO = requireObject_getPrototypeOf(), $ReflectGPO = requireReflect_getPrototypeOf(), $apply$1 = requireFunctionApply(), $call = functionCall, needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto$1 ? undefined$1 : getProto$1(Uint8Array), INTRINSICS = {
|
|
8504
8484
|
__proto__: null,
|
|
8505
8485
|
"%AggregateError%": typeof AggregateError > "u" ? undefined$1 : AggregateError,
|
|
8506
8486
|
"%Array%": Array,
|
|
@@ -8658,7 +8638,7 @@ var doEval = function m(c) {
|
|
|
8658
8638
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
8659
8639
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
8660
8640
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
8661
|
-
}, bind$1 =
|
|
8641
|
+
}, bind$1 = functionBind, hasOwn$2 = requireHasown(), $concat$1 = bind$1.call($call, Array.prototype.concat), $spliceApply = bind$1.call($apply$1, Array.prototype.splice), $replace$1 = bind$1.call($call, String.prototype.replace), $strSlice = bind$1.call($call, String.prototype.slice), $exec$2 = bind$1.call($call, RegExp.prototype.exec), rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = function(c) {
|
|
8662
8642
|
var ie = $strSlice(c, 0, 1), we = $strSlice(c, -1);
|
|
8663
8643
|
if (ie === "%" && we !== "%")
|
|
8664
8644
|
throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -8921,7 +8901,7 @@ var hasPropertyDescriptors_1 = hasPropertyDescriptors, GetIntrinsic$2 = getIntri
|
|
|
8921
8901
|
Ze && !Ze.configurable && ($e = !1), Ze && !Ze.writable && (Me = !1);
|
|
8922
8902
|
}
|
|
8923
8903
|
return ($e || Me || !we) && (hasDescriptors ? define(c, "length", ie, !0, !0) : define(c, "length", ie)), c;
|
|
8924
|
-
}, bind =
|
|
8904
|
+
}, bind = functionBind, $apply = requireFunctionApply(), actualApply = actualApply$1, applyBind = function() {
|
|
8925
8905
|
return actualApply(bind, $apply, arguments);
|
|
8926
8906
|
};
|
|
8927
8907
|
(function(m) {
|
|
@@ -96879,7 +96859,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
96879
96859
|
createVNode(BxButton, {
|
|
96880
96860
|
secondary: "",
|
|
96881
96861
|
loading: (jn.value || unref(Yi)) && zn.value === void 0,
|
|
96882
|
-
disabled: jn.value || unref(Yi)
|
|
96862
|
+
disabled: jn.value || unref(Yi) || !ne.value
|
|
96883
96863
|
}, {
|
|
96884
96864
|
icon: withCtx(() => [
|
|
96885
96865
|
zn.value !== void 0 ? (openBlock(), createBlock(CircularProgress, {
|
|
@@ -97445,7 +97425,7 @@ const BluepicLogo = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_re
|
|
|
97445
97425
|
])
|
|
97446
97426
|
], 2));
|
|
97447
97427
|
}
|
|
97448
|
-
}),
|
|
97428
|
+
}), BluepicEmbeddedEditor_vue_vue_type_style_index_0_scoped_5bdf4a3f_lang = "", BluepicEmbeddedEditor = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5bdf4a3f"]]), _hoisted_1$a = { class: "collection-field-popup" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
97449
97429
|
__name: "CollectionFieldPopup",
|
|
97450
97430
|
props: /* @__PURE__ */ mergeModels({
|
|
97451
97431
|
layout: {},
|
|
@@ -100490,19 +100470,20 @@ class BluepicEmbed extends EventTarget {
|
|
|
100490
100470
|
#${c} .fade-spinner-leave-to {
|
|
100491
100471
|
opacity: 0;
|
|
100492
100472
|
}
|
|
100493
|
-
#${c} {
|
|
100494
|
-
|
|
100495
|
-
|
|
100496
|
-
|
|
100497
|
-
|
|
100498
|
-
|
|
100499
|
-
|
|
100500
|
-
|
|
100501
|
-
|
|
100502
|
-
|
|
100473
|
+
#${c} > div {
|
|
100474
|
+
border: 1px solid var(--bluepic-app-border-color);
|
|
100475
|
+
overflow: hidden;
|
|
100476
|
+
border-radius: var(--bluepic-app-border-radius);
|
|
100477
|
+
margin: 30px auto;
|
|
100478
|
+
box-sizing: border-box;
|
|
100479
|
+
max-width: calc(100vw - 40px);
|
|
100480
|
+
max-height: calc(100vh - 40px);
|
|
100481
|
+
}
|
|
100482
|
+
#${c}.layout-mobile {
|
|
100483
|
+
height: 100%;
|
|
100503
100484
|
}
|
|
100504
100485
|
`, document.head.appendChild(ie), this.element.innerHTML = `
|
|
100505
|
-
<div id="${c}" class="bluepic-app-wrapper" style="position: relative;" :style="">
|
|
100486
|
+
<div id="${c}" class="bluepic-app-wrapper" style="position: relative;" :style="" :class="{ \`layout-\${embedProject?.config.layout}\`: true }">
|
|
100506
100487
|
<div v-if="templateId" style="display: flex; flex-direction: column;" :style="{ height: embedProject?.config.layout === 'stack' ? 'auto' : 'calc(100% - 40px)', '--bluepic-app-border-color': borderColor, '--bluepic-app-border-radius': borderRadius }">
|
|
100507
100488
|
<bluepic-embedded-editor
|
|
100508
100489
|
v-if="templateId"
|