@movable/studio-framework 2.39.0 → 2.40.0-redondo-beach.1
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/index.es.js +238 -67
- package/dist/index.js +238 -67
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3042,6 +3042,44 @@ var stringify$1 = function stringify(it) { // eslint-disable-line no-unused-vars
|
|
|
3042
3042
|
|
|
3043
3043
|
var stringify = stringify$1;
|
|
3044
3044
|
|
|
3045
|
+
// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
function set$4(target, propertyKey, V /* , receiver */) {
|
|
3056
|
+
var receiver = arguments.length < 4 ? target : arguments[3];
|
|
3057
|
+
var ownDesc = _objectGopd.f(_anObject(target), propertyKey);
|
|
3058
|
+
var existingDescriptor, proto;
|
|
3059
|
+
if (!ownDesc) {
|
|
3060
|
+
if (_isObject(proto = _objectGpo(target))) {
|
|
3061
|
+
return set$4(proto, propertyKey, V, receiver);
|
|
3062
|
+
}
|
|
3063
|
+
ownDesc = _propertyDesc(0);
|
|
3064
|
+
}
|
|
3065
|
+
if (_has(ownDesc, 'value')) {
|
|
3066
|
+
if (ownDesc.writable === false || !_isObject(receiver)) return false;
|
|
3067
|
+
if (existingDescriptor = _objectGopd.f(receiver, propertyKey)) {
|
|
3068
|
+
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
|
|
3069
|
+
existingDescriptor.value = V;
|
|
3070
|
+
_objectDp.f(receiver, propertyKey, existingDescriptor);
|
|
3071
|
+
} else _objectDp.f(receiver, propertyKey, _propertyDesc(0, V));
|
|
3072
|
+
return true;
|
|
3073
|
+
}
|
|
3074
|
+
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
_export(_export.S, 'Reflect', { set: set$4 });
|
|
3078
|
+
|
|
3079
|
+
var set$3 = _core.Reflect.set;
|
|
3080
|
+
|
|
3081
|
+
var set$2 = set$3;
|
|
3082
|
+
|
|
3045
3083
|
var assertThisInitialized = createCommonjsModule(function (module) {
|
|
3046
3084
|
function _assertThisInitialized(self) {
|
|
3047
3085
|
if (self === void 0) {
|
|
@@ -3615,11 +3653,11 @@ function classNameFromAttributes(tag) {
|
|
|
3615
3653
|
return classNames.join(' ');
|
|
3616
3654
|
}
|
|
3617
3655
|
|
|
3618
|
-
function _createForOfIteratorHelper$
|
|
3656
|
+
function _createForOfIteratorHelper$c(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$c(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
3619
3657
|
|
|
3620
|
-
function _unsupportedIterableToArray$
|
|
3658
|
+
function _unsupportedIterableToArray$c(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$c(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$c(o, minLen); }
|
|
3621
3659
|
|
|
3622
|
-
function _arrayLikeToArray$
|
|
3660
|
+
function _arrayLikeToArray$c(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
3623
3661
|
|
|
3624
3662
|
function resolveElementModifiers() {
|
|
3625
3663
|
var appliedModifiers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -3635,7 +3673,7 @@ function resolveElementModifiers() {
|
|
|
3635
3673
|
});
|
|
3636
3674
|
}
|
|
3637
3675
|
function runModifiers(element, fns) {
|
|
3638
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3676
|
+
var _iterator = _createForOfIteratorHelper$c(fns),
|
|
3639
3677
|
_step;
|
|
3640
3678
|
|
|
3641
3679
|
try {
|
|
@@ -4365,11 +4403,11 @@ var freeze$2 = _core.Object.freeze;
|
|
|
4365
4403
|
|
|
4366
4404
|
var freeze$1 = freeze$2;
|
|
4367
4405
|
|
|
4368
|
-
function _createForOfIteratorHelper$
|
|
4406
|
+
function _createForOfIteratorHelper$b(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$b(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
4369
4407
|
|
|
4370
|
-
function _unsupportedIterableToArray$
|
|
4408
|
+
function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$b(o, minLen); }
|
|
4371
4409
|
|
|
4372
|
-
function _arrayLikeToArray$
|
|
4410
|
+
function _arrayLikeToArray$b(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4373
4411
|
var entries$1 = entries$3,
|
|
4374
4412
|
freeze = freeze$1,
|
|
4375
4413
|
create = create$1,
|
|
@@ -4377,7 +4415,7 @@ var entries$1 = entries$3,
|
|
|
4377
4415
|
function contextAccessor(context, cb) {
|
|
4378
4416
|
var wrappedContext = create(null);
|
|
4379
4417
|
|
|
4380
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4418
|
+
var _iterator = _createForOfIteratorHelper$b(entries$1(context)),
|
|
4381
4419
|
_step;
|
|
4382
4420
|
|
|
4383
4421
|
try {
|
|
@@ -4606,11 +4644,11 @@ var weakMap = weakMap$1;
|
|
|
4606
4644
|
|
|
4607
4645
|
var _Symbol$iterator;
|
|
4608
4646
|
|
|
4609
|
-
function _createForOfIteratorHelper$
|
|
4647
|
+
function _createForOfIteratorHelper$a(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$a(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
4610
4648
|
|
|
4611
|
-
function _unsupportedIterableToArray$
|
|
4649
|
+
function _unsupportedIterableToArray$a(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$a(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$a(o, minLen); }
|
|
4612
4650
|
|
|
4613
|
-
function _arrayLikeToArray$
|
|
4651
|
+
function _arrayLikeToArray$a(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4614
4652
|
|
|
4615
4653
|
var ERROR_KEY = symbol('error');
|
|
4616
4654
|
|
|
@@ -4671,7 +4709,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
4671
4709
|
while (1) {
|
|
4672
4710
|
switch (_context.prev = _context.next) {
|
|
4673
4711
|
case 0:
|
|
4674
|
-
_iterator = _createForOfIteratorHelper$
|
|
4712
|
+
_iterator = _createForOfIteratorHelper$a(this.cache);
|
|
4675
4713
|
_context.prev = 1;
|
|
4676
4714
|
|
|
4677
4715
|
_iterator.s();
|
|
@@ -4766,7 +4804,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
4766
4804
|
var parts = [];
|
|
4767
4805
|
var reverseObject = {};
|
|
4768
4806
|
|
|
4769
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
4807
|
+
var _iterator2 = _createForOfIteratorHelper$a(this.contextKeys),
|
|
4770
4808
|
_step2;
|
|
4771
4809
|
|
|
4772
4810
|
try {
|
|
@@ -4806,11 +4844,11 @@ function defer() {
|
|
|
4806
4844
|
};
|
|
4807
4845
|
}
|
|
4808
4846
|
|
|
4809
|
-
function _createForOfIteratorHelper$
|
|
4847
|
+
function _createForOfIteratorHelper$9(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$9(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (_e) { function e(_x) { return _e.apply(this, arguments); } e.toString = function () { return _e.toString(); }; return e; }(function (e) { throw e; }), f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function (_e2) { function e(_x2) { return _e2.apply(this, arguments); } e.toString = function () { return _e2.toString(); }; return e; }(function (e) { didErr = true; err = e; }), f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
4810
4848
|
|
|
4811
|
-
function _unsupportedIterableToArray$
|
|
4849
|
+
function _unsupportedIterableToArray$9(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$9(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$9(o, minLen); }
|
|
4812
4850
|
|
|
4813
|
-
function _arrayLikeToArray$
|
|
4851
|
+
function _arrayLikeToArray$9(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4814
4852
|
|
|
4815
4853
|
var ComputeThrottler = /*#__PURE__*/function () {
|
|
4816
4854
|
function ComputeThrottler(afterFirst) {
|
|
@@ -4872,7 +4910,7 @@ var ComputeThrottler = /*#__PURE__*/function () {
|
|
|
4872
4910
|
|
|
4873
4911
|
this.queue = [];
|
|
4874
4912
|
|
|
4875
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4913
|
+
var _iterator = _createForOfIteratorHelper$9(queue),
|
|
4876
4914
|
_step;
|
|
4877
4915
|
|
|
4878
4916
|
try {
|
|
@@ -5110,11 +5148,11 @@ function ownKeys$5(object, enumerableOnly) { var keys$1 = keys(object); if (getO
|
|
|
5110
5148
|
|
|
5111
5149
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (getOwnPropertyDescriptors) { defineProperties(target, getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5112
5150
|
|
|
5113
|
-
function _createForOfIteratorHelper$
|
|
5151
|
+
function _createForOfIteratorHelper$8(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$8(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5114
5152
|
|
|
5115
|
-
function _unsupportedIterableToArray$
|
|
5153
|
+
function _unsupportedIterableToArray$8(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$8(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$8(o, minLen); }
|
|
5116
5154
|
|
|
5117
|
-
function _arrayLikeToArray$
|
|
5155
|
+
function _arrayLikeToArray$8(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5118
5156
|
|
|
5119
5157
|
function deprecateGetContext(key) {
|
|
5120
5158
|
console.warn("DEPRECATED: No longer need to use 'getContext(".concat(key, ")'. You can use 'context.").concat(key, "' instead."));
|
|
@@ -5222,7 +5260,7 @@ var Property = /*#__PURE__*/function () {
|
|
|
5222
5260
|
};
|
|
5223
5261
|
|
|
5224
5262
|
if (this.memoizeCache) {
|
|
5225
|
-
var _iterator = _createForOfIteratorHelper$
|
|
5263
|
+
var _iterator = _createForOfIteratorHelper$8(this.memoizeCache),
|
|
5226
5264
|
_step;
|
|
5227
5265
|
|
|
5228
5266
|
try {
|
|
@@ -5256,14 +5294,14 @@ var Property = /*#__PURE__*/function () {
|
|
|
5256
5294
|
}, {
|
|
5257
5295
|
key: "finalizeCache",
|
|
5258
5296
|
value: function finalizeCache() {
|
|
5259
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
5297
|
+
var _iterator2 = _createForOfIteratorHelper$8(this.dependentProperties),
|
|
5260
5298
|
_step2;
|
|
5261
5299
|
|
|
5262
5300
|
try {
|
|
5263
5301
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5264
5302
|
var property = _step2.value;
|
|
5265
5303
|
|
|
5266
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
5304
|
+
var _iterator3 = _createForOfIteratorHelper$8(property.memoizeCache.contextKeys),
|
|
5267
5305
|
_step3;
|
|
5268
5306
|
|
|
5269
5307
|
try {
|
|
@@ -5403,7 +5441,7 @@ var Property = /*#__PURE__*/function () {
|
|
|
5403
5441
|
propsInspected.add(currentProperty);
|
|
5404
5442
|
propsCompleted.add(currentProperty);
|
|
5405
5443
|
|
|
5406
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
5444
|
+
var _iterator4 = _createForOfIteratorHelper$8(currentProperty.dependencies),
|
|
5407
5445
|
_step4;
|
|
5408
5446
|
|
|
5409
5447
|
try {
|
|
@@ -5611,11 +5649,11 @@ var Property = /*#__PURE__*/function () {
|
|
|
5611
5649
|
return Property;
|
|
5612
5650
|
}();
|
|
5613
5651
|
|
|
5614
|
-
function _createForOfIteratorHelper$
|
|
5652
|
+
function _createForOfIteratorHelper$7(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$7(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5615
5653
|
|
|
5616
|
-
function _unsupportedIterableToArray$
|
|
5654
|
+
function _unsupportedIterableToArray$7(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$7(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$7(o, minLen); }
|
|
5617
5655
|
|
|
5618
|
-
function _arrayLikeToArray$
|
|
5656
|
+
function _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5619
5657
|
|
|
5620
5658
|
function generateGroupingKey(grouping, propertyPath) {
|
|
5621
5659
|
return grouping === false ? propertyPath : "".concat(grouping, "::").concat(propertyPath);
|
|
@@ -5687,7 +5725,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5687
5725
|
while (1) {
|
|
5688
5726
|
switch (_context.prev = _context.next) {
|
|
5689
5727
|
case 0:
|
|
5690
|
-
_iterator = _createForOfIteratorHelper$
|
|
5728
|
+
_iterator = _createForOfIteratorHelper$7(this.groupingMap);
|
|
5691
5729
|
_context.prev = 1;
|
|
5692
5730
|
|
|
5693
5731
|
_iterator.s();
|
|
@@ -5725,7 +5763,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5725
5763
|
return _context.finish(15);
|
|
5726
5764
|
|
|
5727
5765
|
case 18:
|
|
5728
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
5766
|
+
_iterator2 = _createForOfIteratorHelper$7(this.globalMap);
|
|
5729
5767
|
_context.prev = 19;
|
|
5730
5768
|
|
|
5731
5769
|
_iterator2.s();
|
|
@@ -5763,7 +5801,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5763
5801
|
return _context.finish(33);
|
|
5764
5802
|
|
|
5765
5803
|
case 36:
|
|
5766
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
5804
|
+
_iterator3 = _createForOfIteratorHelper$7(this.fallbackMap);
|
|
5767
5805
|
_context.prev = 37;
|
|
5768
5806
|
|
|
5769
5807
|
_iterator3.s();
|
|
@@ -5816,7 +5854,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5816
5854
|
while (1) {
|
|
5817
5855
|
switch (_context2.prev = _context2.next) {
|
|
5818
5856
|
case 0:
|
|
5819
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
5857
|
+
_iterator4 = _createForOfIteratorHelper$7(this.groupingMap);
|
|
5820
5858
|
_context2.prev = 1;
|
|
5821
5859
|
|
|
5822
5860
|
_iterator4.s();
|
|
@@ -5853,7 +5891,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5853
5891
|
return _context2.finish(14);
|
|
5854
5892
|
|
|
5855
5893
|
case 17:
|
|
5856
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
5894
|
+
_iterator5 = _createForOfIteratorHelper$7(this.globalMap);
|
|
5857
5895
|
_context2.prev = 18;
|
|
5858
5896
|
|
|
5859
5897
|
_iterator5.s();
|
|
@@ -5901,11 +5939,11 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5901
5939
|
return GroupedRegistry;
|
|
5902
5940
|
}();
|
|
5903
5941
|
|
|
5904
|
-
function _createForOfIteratorHelper$
|
|
5942
|
+
function _createForOfIteratorHelper$6(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5905
5943
|
|
|
5906
|
-
function _unsupportedIterableToArray$
|
|
5944
|
+
function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
|
|
5907
5945
|
|
|
5908
|
-
function _arrayLikeToArray$
|
|
5946
|
+
function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5909
5947
|
var entries = entries$3;
|
|
5910
5948
|
|
|
5911
5949
|
function isComputeFn(fn) {
|
|
@@ -5976,7 +6014,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
5976
6014
|
value: function dumpState() {
|
|
5977
6015
|
var result = [];
|
|
5978
6016
|
|
|
5979
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6017
|
+
var _iterator = _createForOfIteratorHelper$6(this.propertyRegistry.values()),
|
|
5980
6018
|
_step;
|
|
5981
6019
|
|
|
5982
6020
|
try {
|
|
@@ -6165,7 +6203,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6165
6203
|
}, {
|
|
6166
6204
|
key: "generateFromGlob",
|
|
6167
6205
|
value: function generateFromGlob(grouping, path) {
|
|
6168
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
6206
|
+
var _iterator2 = _createForOfIteratorHelper$6(this.globProperties.entries()),
|
|
6169
6207
|
_step2;
|
|
6170
6208
|
|
|
6171
6209
|
try {
|
|
@@ -6224,7 +6262,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6224
6262
|
}, {
|
|
6225
6263
|
key: "resetDependencies",
|
|
6226
6264
|
value: function resetDependencies(property) {
|
|
6227
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
6265
|
+
var _iterator3 = _createForOfIteratorHelper$6(this.findAllDependencies(property)),
|
|
6228
6266
|
_step3;
|
|
6229
6267
|
|
|
6230
6268
|
try {
|
|
@@ -6247,7 +6285,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6247
6285
|
while (stack.length > 0) {
|
|
6248
6286
|
var currentProperty = stack.shift();
|
|
6249
6287
|
|
|
6250
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
6288
|
+
var _iterator4 = _createForOfIteratorHelper$6(this.propertyRegistry.values()),
|
|
6251
6289
|
_step4;
|
|
6252
6290
|
|
|
6253
6291
|
try {
|
|
@@ -6341,11 +6379,11 @@ var StudioTool = /*#__PURE__*/function (_React$Component) {
|
|
|
6341
6379
|
return StudioTool;
|
|
6342
6380
|
}(React__default['default'].Component);
|
|
6343
6381
|
|
|
6344
|
-
function _createForOfIteratorHelper$
|
|
6382
|
+
function _createForOfIteratorHelper$5(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6345
6383
|
|
|
6346
|
-
function _unsupportedIterableToArray$
|
|
6384
|
+
function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
|
|
6347
6385
|
|
|
6348
|
-
function _arrayLikeToArray$
|
|
6386
|
+
function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6349
6387
|
function trimTextOverflow(element) {
|
|
6350
6388
|
var parentElement = element.parentElement;
|
|
6351
6389
|
var parentBox = parentElement.getBoundingClientRect(); // It fits already; no need to resize.
|
|
@@ -6405,7 +6443,7 @@ function findPreviousElement(element) {
|
|
|
6405
6443
|
function findOverlappingElement(element, parentBox) {
|
|
6406
6444
|
var children = from_1(element.children);
|
|
6407
6445
|
|
|
6408
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6446
|
+
var _iterator = _createForOfIteratorHelper$5(children),
|
|
6409
6447
|
_step;
|
|
6410
6448
|
|
|
6411
6449
|
try {
|
|
@@ -6478,11 +6516,11 @@ var _parseFloat$1 = _core.parseFloat;
|
|
|
6478
6516
|
|
|
6479
6517
|
var _parseFloat = _parseFloat$1;
|
|
6480
6518
|
|
|
6481
|
-
function _createForOfIteratorHelper$
|
|
6519
|
+
function _createForOfIteratorHelper$4(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6482
6520
|
|
|
6483
|
-
function _unsupportedIterableToArray$
|
|
6521
|
+
function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
|
|
6484
6522
|
|
|
6485
|
-
function _arrayLikeToArray$
|
|
6523
|
+
function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6486
6524
|
|
|
6487
6525
|
function ownKeys$4(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; }); } keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
6488
6526
|
|
|
@@ -6515,7 +6553,7 @@ function shrinkToFit(element, richTextStructure, baseFontSize, minFontSize) {
|
|
|
6515
6553
|
smallest = min$1(smallest, getFontRatio(op));
|
|
6516
6554
|
|
|
6517
6555
|
if (op.spans) {
|
|
6518
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6556
|
+
var _iterator = _createForOfIteratorHelper$4(op.spans),
|
|
6519
6557
|
_step;
|
|
6520
6558
|
|
|
6521
6559
|
try {
|
|
@@ -7024,11 +7062,11 @@ var bootstrapApp = (function (resolver) {
|
|
|
7024
7062
|
resolver.registerComponent('image', DynamicImageTag);
|
|
7025
7063
|
});
|
|
7026
7064
|
|
|
7027
|
-
function _createForOfIteratorHelper$
|
|
7065
|
+
function _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
7028
7066
|
|
|
7029
|
-
function _unsupportedIterableToArray$
|
|
7067
|
+
function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
|
|
7030
7068
|
|
|
7031
|
-
function _arrayLikeToArray$
|
|
7069
|
+
function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7032
7070
|
|
|
7033
7071
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = construct$1(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7034
7072
|
|
|
@@ -7054,7 +7092,7 @@ var App = /*#__PURE__*/function (_React$Component) {
|
|
|
7054
7092
|
_defineProperty(_assertThisInitialized(_this), "pendingProperties", new set());
|
|
7055
7093
|
|
|
7056
7094
|
_defineProperty(_assertThisInitialized(_this), "onPendingPromise", function (promises) {
|
|
7057
|
-
var _iterator = _createForOfIteratorHelper$
|
|
7095
|
+
var _iterator = _createForOfIteratorHelper$3(promises),
|
|
7058
7096
|
_step;
|
|
7059
7097
|
|
|
7060
7098
|
try {
|
|
@@ -7463,6 +7501,94 @@ function addBrowserContent(baseElement) {
|
|
|
7463
7501
|
rootNode.body.appendChild(script);
|
|
7464
7502
|
}
|
|
7465
7503
|
|
|
7504
|
+
var COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO = 5;
|
|
7505
|
+
|
|
7506
|
+
var stringMatch = function stringMatch(original, comparable, ignoreRegExp) {
|
|
7507
|
+
return original.replace(ignoreRegExp, '') === comparable;
|
|
7508
|
+
};
|
|
7509
|
+
|
|
7510
|
+
var studioOverwritableJs = 'var app = new studio[a-zA-Z0-9]*.A\\(\\);';
|
|
7511
|
+
var jsIgnoreRE = new RegExp("\\s|".concat(studioOverwritableJs));
|
|
7512
|
+
var jsCompareString = "(function(){app.render(document.getElementById('react-root')).then(function(){window.APP_SUCCESSFULLY_RENDERED=true;});})();";
|
|
7513
|
+
var isPristinePicJsTag = function isPristinePicJsTag(scriptTag) {
|
|
7514
|
+
var script = scriptTag.innerHTML;
|
|
7515
|
+
return stringMatch(script, jsCompareString, jsIgnoreRE);
|
|
7516
|
+
};
|
|
7517
|
+
var isDocumentEligibleForStaticHandling = function isDocumentEligibleForStaticHandling(rootNode) {
|
|
7518
|
+
var document = getDocumentNode(rootNode);
|
|
7519
|
+
var scriptTags = document.getElementsByTagName('script');
|
|
7520
|
+
|
|
7521
|
+
var hasTagContainingPristinePicJs = from_1(scriptTags).some(isPristinePicJsTag);
|
|
7522
|
+
|
|
7523
|
+
if (!hasTagContainingPristinePicJs) return false;
|
|
7524
|
+
if (scriptTags.length > COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO) return false;
|
|
7525
|
+
return true;
|
|
7526
|
+
};
|
|
7527
|
+
|
|
7528
|
+
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
7529
|
+
|
|
7530
|
+
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return from_1(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
7531
|
+
|
|
7532
|
+
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7533
|
+
var basicTypes = new set(['group', 'image', 'rectangle', 'richText', 'staticPic', 'text']);
|
|
7534
|
+
|
|
7535
|
+
var isTagStatic = function isTagStatic(tag) {
|
|
7536
|
+
var appliedElementModifiers = tag.appliedElementModifiers,
|
|
7537
|
+
conditionalDynamicProperty = tag.conditionalDynamicProperty,
|
|
7538
|
+
dynamicAltText = tag.dynamicAltText,
|
|
7539
|
+
dynamicProperty = tag.dynamicProperty,
|
|
7540
|
+
richText = tag.richText,
|
|
7541
|
+
subtags = tag.subtags,
|
|
7542
|
+
type = tag.type;
|
|
7543
|
+
if (subtags !== null && subtags !== void 0 && subtags.length) return subtags.some(isTagStatic);
|
|
7544
|
+
var isCustomTool = type.startsWith('customTool.');
|
|
7545
|
+
var hasDynamicRichText = richText === null || richText === void 0 ? void 0 : richText.some(function (_ref) {
|
|
7546
|
+
var insert = _ref.insert;
|
|
7547
|
+
return _typeof(insert) === 'object' && insert.dynamicProperty;
|
|
7548
|
+
});
|
|
7549
|
+
if (appliedElementModifiers || !basicTypes.has(type) || conditionalDynamicProperty || dynamicAltText || dynamicProperty || hasDynamicRichText || isCustomTool) return false;
|
|
7550
|
+
return true;
|
|
7551
|
+
};
|
|
7552
|
+
|
|
7553
|
+
var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
7554
|
+
var canvases = attributes.canvases;
|
|
7555
|
+
|
|
7556
|
+
var _iterator = _createForOfIteratorHelper$2(canvases),
|
|
7557
|
+
_step;
|
|
7558
|
+
|
|
7559
|
+
try {
|
|
7560
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7561
|
+
var _step$value = _step.value,
|
|
7562
|
+
appliedElementModifiers = _step$value.appliedElementModifiers,
|
|
7563
|
+
_step$value$tags = _step$value.tags,
|
|
7564
|
+
tags = _step$value$tags === void 0 ? [] : _step$value$tags,
|
|
7565
|
+
clickthroughDynamicProperty = _step$value.clickthroughDynamicProperty,
|
|
7566
|
+
conditionalDynamicProperty = _step$value.conditionalDynamicProperty;
|
|
7567
|
+
if (appliedElementModifiers || clickthroughDynamicProperty || conditionalDynamicProperty) return false;
|
|
7568
|
+
|
|
7569
|
+
var _iterator2 = _createForOfIteratorHelper$2(tags),
|
|
7570
|
+
_step2;
|
|
7571
|
+
|
|
7572
|
+
try {
|
|
7573
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7574
|
+
var tag = _step2.value;
|
|
7575
|
+
if (!isTagStatic(tag)) return false;
|
|
7576
|
+
}
|
|
7577
|
+
} catch (err) {
|
|
7578
|
+
_iterator2.e(err);
|
|
7579
|
+
} finally {
|
|
7580
|
+
_iterator2.f();
|
|
7581
|
+
}
|
|
7582
|
+
}
|
|
7583
|
+
} catch (err) {
|
|
7584
|
+
_iterator.e(err);
|
|
7585
|
+
} finally {
|
|
7586
|
+
_iterator.f();
|
|
7587
|
+
}
|
|
7588
|
+
|
|
7589
|
+
return true;
|
|
7590
|
+
};
|
|
7591
|
+
|
|
7466
7592
|
function ownKeys(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; }); } keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
7467
7593
|
|
|
7468
7594
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (getOwnPropertyDescriptors) { defineProperties(target, getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -7475,7 +7601,8 @@ function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) le
|
|
|
7475
7601
|
|
|
7476
7602
|
var StudioFramework = /*#__PURE__*/function () {
|
|
7477
7603
|
function StudioFramework() {
|
|
7478
|
-
var _this = this
|
|
7604
|
+
var _this = this,
|
|
7605
|
+
_window$MICapture;
|
|
7479
7606
|
|
|
7480
7607
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : setupAppDefaults();
|
|
7481
7608
|
|
|
@@ -7558,6 +7685,12 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7558
7685
|
namespacedOptions = _opts$namespacedOptio === void 0 ? [] : _opts$namespacedOptio,
|
|
7559
7686
|
_opts$queryParams = opts.queryParams,
|
|
7560
7687
|
queryParams = _opts$queryParams === void 0 ? {} : _opts$queryParams;
|
|
7688
|
+
|
|
7689
|
+
if ((_window$MICapture = window.MICapture) !== null && _window$MICapture !== void 0 && _window$MICapture.isPreview) {
|
|
7690
|
+
console.log('static status is true - static check has started');
|
|
7691
|
+
window.RENDERED_STATICALLY = true;
|
|
7692
|
+
}
|
|
7693
|
+
|
|
7561
7694
|
this.options = options;
|
|
7562
7695
|
this.namespacedOptions = namespacedOptions;
|
|
7563
7696
|
this.customProps = customProps;
|
|
@@ -7575,7 +7708,29 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7575
7708
|
return queryParams;
|
|
7576
7709
|
});
|
|
7577
7710
|
animation(this);
|
|
7578
|
-
|
|
7711
|
+
|
|
7712
|
+
if (this.shouldPerformStaticCheck) {
|
|
7713
|
+
var proxy = new Proxy(this, {
|
|
7714
|
+
set: function set(target, key, value) {
|
|
7715
|
+
if (key in target) {
|
|
7716
|
+
window.RENDERED_STATICALLY = false;
|
|
7717
|
+
console.log("static status is false - overidden StudioFramework class method ".concat(key.toString().match(/\(.*\)/)));
|
|
7718
|
+
}
|
|
7719
|
+
|
|
7720
|
+
return set$2(target, key, value);
|
|
7721
|
+
}
|
|
7722
|
+
});
|
|
7723
|
+
this.setup.call(proxy);
|
|
7724
|
+
|
|
7725
|
+
if (this.shouldPerformStaticCheck) {
|
|
7726
|
+
if (!(window.RENDERED_STATICALLY = areAttributesStatic(opts))) {
|
|
7727
|
+
console.log('static status is false - presentationAttributes are not static');
|
|
7728
|
+
}
|
|
7729
|
+
}
|
|
7730
|
+
} else {
|
|
7731
|
+
this.setup();
|
|
7732
|
+
}
|
|
7733
|
+
|
|
7579
7734
|
this.setupOptions();
|
|
7580
7735
|
this.setupNamespacedOptions();
|
|
7581
7736
|
this.setupCustomTools();
|
|
@@ -7584,6 +7739,13 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7584
7739
|
}
|
|
7585
7740
|
|
|
7586
7741
|
_createClass(StudioFramework, [{
|
|
7742
|
+
key: "shouldPerformStaticCheck",
|
|
7743
|
+
get: function get() {
|
|
7744
|
+
var _window$MICapture2;
|
|
7745
|
+
|
|
7746
|
+
return ((_window$MICapture2 = window.MICapture) === null || _window$MICapture2 === void 0 ? void 0 : _window$MICapture2.isPreview) && window.RENDERED_STATICALLY;
|
|
7747
|
+
}
|
|
7748
|
+
}, {
|
|
7587
7749
|
key: "triggerRerender",
|
|
7588
7750
|
value: function triggerRerender() {
|
|
7589
7751
|
if (this.appComponent) {
|
|
@@ -8245,13 +8407,13 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8245
8407
|
}, {
|
|
8246
8408
|
key: "handleAndPreventFutureAnalyticsCalls",
|
|
8247
8409
|
value: function handleAndPreventFutureAnalyticsCalls(data) {
|
|
8248
|
-
var _window$
|
|
8410
|
+
var _window$MICapture3;
|
|
8249
8411
|
|
|
8250
8412
|
if (_typeof(data) !== 'object') {
|
|
8251
8413
|
throw new Error('The result of `analyticsData` must be an object');
|
|
8252
8414
|
}
|
|
8253
8415
|
|
|
8254
|
-
var format = (_window$
|
|
8416
|
+
var format = (_window$MICapture3 = window.MICapture) === null || _window$MICapture3 === void 0 ? void 0 : _window$MICapture3.format;
|
|
8255
8417
|
var analytics = document.querySelector('#mi-data');
|
|
8256
8418
|
|
|
8257
8419
|
if (format === 'html') {
|
|
@@ -8277,15 +8439,15 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8277
8439
|
key: "render",
|
|
8278
8440
|
value: function () {
|
|
8279
8441
|
var _render = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee7(targetElement) {
|
|
8280
|
-
var _window$
|
|
8442
|
+
var _window$MICapture4;
|
|
8281
8443
|
|
|
8282
|
-
var currentCanvas, _currentCanvas, _window$
|
|
8444
|
+
var currentCanvas, _currentCanvas, _window$MICapture5, clickthroughURL, canvasTags, tags, height, width, format, renderPromise, analyticsDataPromise, wrappedError;
|
|
8283
8445
|
|
|
8284
8446
|
return regenerator.wrap(function _callee7$(_context7) {
|
|
8285
8447
|
while (1) {
|
|
8286
8448
|
switch (_context7.prev = _context7.next) {
|
|
8287
8449
|
case 0:
|
|
8288
|
-
if ((_window$
|
|
8450
|
+
if ((_window$MICapture4 = window.MICapture) !== null && _window$MICapture4 !== void 0 && _window$MICapture4.isPreview) console.log('Preview Render');
|
|
8289
8451
|
_context7.prev = 1;
|
|
8290
8452
|
CD__default['default'].pause();
|
|
8291
8453
|
_context7.next = 5;
|
|
@@ -8306,7 +8468,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8306
8468
|
tags = _context7.sent;
|
|
8307
8469
|
height = currentCanvas.height || this.options.height;
|
|
8308
8470
|
width = currentCanvas.width || this.options.width;
|
|
8309
|
-
format = (_window$
|
|
8471
|
+
format = (_window$MICapture5 = window.MICapture) === null || _window$MICapture5 === void 0 ? void 0 : _window$MICapture5.format;
|
|
8310
8472
|
renderPromise = this.renderApp(targetElement, clickthroughURL, tags, {
|
|
8311
8473
|
height: height,
|
|
8312
8474
|
width: width
|
|
@@ -8320,31 +8482,40 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8320
8482
|
this.setupAnimation();
|
|
8321
8483
|
}
|
|
8322
8484
|
|
|
8485
|
+
if (this.shouldPerformStaticCheck) {
|
|
8486
|
+
if (!(window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement))) {
|
|
8487
|
+
console.log('static status is false - scripts have been altered by the user');
|
|
8488
|
+
} else {
|
|
8489
|
+
console.log('static status is true - static check has finished');
|
|
8490
|
+
console.log('App is static.');
|
|
8491
|
+
}
|
|
8492
|
+
}
|
|
8493
|
+
|
|
8323
8494
|
if (format === 'html') {
|
|
8324
8495
|
cleanHTML(targetElement);
|
|
8325
8496
|
addBrowserContent(targetElement);
|
|
8326
8497
|
}
|
|
8327
8498
|
|
|
8328
|
-
_context7.next =
|
|
8499
|
+
_context7.next = 29;
|
|
8329
8500
|
break;
|
|
8330
8501
|
|
|
8331
|
-
case
|
|
8332
|
-
_context7.prev =
|
|
8502
|
+
case 25:
|
|
8503
|
+
_context7.prev = 25;
|
|
8333
8504
|
_context7.t0 = _context7["catch"](1);
|
|
8334
8505
|
wrappedError = StudioErrorWrapper(_context7.t0).setCanvas(currentCanvas);
|
|
8335
8506
|
this.handleRenderError(wrappedError);
|
|
8336
8507
|
|
|
8337
|
-
case
|
|
8338
|
-
_context7.prev =
|
|
8508
|
+
case 29:
|
|
8509
|
+
_context7.prev = 29;
|
|
8339
8510
|
CD__default['default'].resume();
|
|
8340
|
-
return _context7.finish(
|
|
8511
|
+
return _context7.finish(29);
|
|
8341
8512
|
|
|
8342
|
-
case
|
|
8513
|
+
case 32:
|
|
8343
8514
|
case "end":
|
|
8344
8515
|
return _context7.stop();
|
|
8345
8516
|
}
|
|
8346
8517
|
}
|
|
8347
|
-
}, _callee7, this, [[1,
|
|
8518
|
+
}, _callee7, this, [[1, 25, 29, 32]]);
|
|
8348
8519
|
}));
|
|
8349
8520
|
|
|
8350
8521
|
function render(_x6) {
|