@movable/studio-framework 2.39.1 → 2.40.0-redondo-beach
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 +218 -67
- package/dist/index.js +218 -67
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -3032,6 +3032,44 @@ var stringify$1 = function stringify(it) { // eslint-disable-line no-unused-vars
|
|
|
3032
3032
|
|
|
3033
3033
|
var stringify = stringify$1;
|
|
3034
3034
|
|
|
3035
|
+
// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
function set$4(target, propertyKey, V /* , receiver */) {
|
|
3046
|
+
var receiver = arguments.length < 4 ? target : arguments[3];
|
|
3047
|
+
var ownDesc = _objectGopd.f(_anObject(target), propertyKey);
|
|
3048
|
+
var existingDescriptor, proto;
|
|
3049
|
+
if (!ownDesc) {
|
|
3050
|
+
if (_isObject(proto = _objectGpo(target))) {
|
|
3051
|
+
return set$4(proto, propertyKey, V, receiver);
|
|
3052
|
+
}
|
|
3053
|
+
ownDesc = _propertyDesc(0);
|
|
3054
|
+
}
|
|
3055
|
+
if (_has(ownDesc, 'value')) {
|
|
3056
|
+
if (ownDesc.writable === false || !_isObject(receiver)) return false;
|
|
3057
|
+
if (existingDescriptor = _objectGopd.f(receiver, propertyKey)) {
|
|
3058
|
+
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
|
|
3059
|
+
existingDescriptor.value = V;
|
|
3060
|
+
_objectDp.f(receiver, propertyKey, existingDescriptor);
|
|
3061
|
+
} else _objectDp.f(receiver, propertyKey, _propertyDesc(0, V));
|
|
3062
|
+
return true;
|
|
3063
|
+
}
|
|
3064
|
+
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
_export(_export.S, 'Reflect', { set: set$4 });
|
|
3068
|
+
|
|
3069
|
+
var set$3 = _core.Reflect.set;
|
|
3070
|
+
|
|
3071
|
+
var set$2 = set$3;
|
|
3072
|
+
|
|
3035
3073
|
var assertThisInitialized = createCommonjsModule(function (module) {
|
|
3036
3074
|
function _assertThisInitialized(self) {
|
|
3037
3075
|
if (self === void 0) {
|
|
@@ -3605,11 +3643,11 @@ function classNameFromAttributes(tag) {
|
|
|
3605
3643
|
return classNames.join(' ');
|
|
3606
3644
|
}
|
|
3607
3645
|
|
|
3608
|
-
function _createForOfIteratorHelper$
|
|
3646
|
+
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; } } }; }
|
|
3609
3647
|
|
|
3610
|
-
function _unsupportedIterableToArray$
|
|
3648
|
+
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); }
|
|
3611
3649
|
|
|
3612
|
-
function _arrayLikeToArray$
|
|
3650
|
+
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; }
|
|
3613
3651
|
|
|
3614
3652
|
function resolveElementModifiers() {
|
|
3615
3653
|
var appliedModifiers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -3625,7 +3663,7 @@ function resolveElementModifiers() {
|
|
|
3625
3663
|
});
|
|
3626
3664
|
}
|
|
3627
3665
|
function runModifiers(element, fns) {
|
|
3628
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3666
|
+
var _iterator = _createForOfIteratorHelper$c(fns),
|
|
3629
3667
|
_step;
|
|
3630
3668
|
|
|
3631
3669
|
try {
|
|
@@ -4355,11 +4393,11 @@ var freeze$2 = _core.Object.freeze;
|
|
|
4355
4393
|
|
|
4356
4394
|
var freeze$1 = freeze$2;
|
|
4357
4395
|
|
|
4358
|
-
function _createForOfIteratorHelper$
|
|
4396
|
+
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; } } }; }
|
|
4359
4397
|
|
|
4360
|
-
function _unsupportedIterableToArray$
|
|
4398
|
+
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); }
|
|
4361
4399
|
|
|
4362
|
-
function _arrayLikeToArray$
|
|
4400
|
+
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; }
|
|
4363
4401
|
var entries$1 = entries$3,
|
|
4364
4402
|
freeze = freeze$1,
|
|
4365
4403
|
create = create$1,
|
|
@@ -4367,7 +4405,7 @@ var entries$1 = entries$3,
|
|
|
4367
4405
|
function contextAccessor(context, cb) {
|
|
4368
4406
|
var wrappedContext = create(null);
|
|
4369
4407
|
|
|
4370
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4408
|
+
var _iterator = _createForOfIteratorHelper$b(entries$1(context)),
|
|
4371
4409
|
_step;
|
|
4372
4410
|
|
|
4373
4411
|
try {
|
|
@@ -4596,11 +4634,11 @@ var weakMap = weakMap$1;
|
|
|
4596
4634
|
|
|
4597
4635
|
var _Symbol$iterator;
|
|
4598
4636
|
|
|
4599
|
-
function _createForOfIteratorHelper$
|
|
4637
|
+
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; } } }; }
|
|
4600
4638
|
|
|
4601
|
-
function _unsupportedIterableToArray$
|
|
4639
|
+
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); }
|
|
4602
4640
|
|
|
4603
|
-
function _arrayLikeToArray$
|
|
4641
|
+
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; }
|
|
4604
4642
|
|
|
4605
4643
|
var ERROR_KEY = symbol('error');
|
|
4606
4644
|
|
|
@@ -4661,7 +4699,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
4661
4699
|
while (1) {
|
|
4662
4700
|
switch (_context.prev = _context.next) {
|
|
4663
4701
|
case 0:
|
|
4664
|
-
_iterator = _createForOfIteratorHelper$
|
|
4702
|
+
_iterator = _createForOfIteratorHelper$a(this.cache);
|
|
4665
4703
|
_context.prev = 1;
|
|
4666
4704
|
|
|
4667
4705
|
_iterator.s();
|
|
@@ -4756,7 +4794,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
4756
4794
|
var parts = [];
|
|
4757
4795
|
var reverseObject = {};
|
|
4758
4796
|
|
|
4759
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
4797
|
+
var _iterator2 = _createForOfIteratorHelper$a(this.contextKeys),
|
|
4760
4798
|
_step2;
|
|
4761
4799
|
|
|
4762
4800
|
try {
|
|
@@ -4796,11 +4834,11 @@ function defer() {
|
|
|
4796
4834
|
};
|
|
4797
4835
|
}
|
|
4798
4836
|
|
|
4799
|
-
function _createForOfIteratorHelper$
|
|
4837
|
+
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; } } }; }
|
|
4800
4838
|
|
|
4801
|
-
function _unsupportedIterableToArray$
|
|
4839
|
+
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); }
|
|
4802
4840
|
|
|
4803
|
-
function _arrayLikeToArray$
|
|
4841
|
+
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; }
|
|
4804
4842
|
|
|
4805
4843
|
var ComputeThrottler = /*#__PURE__*/function () {
|
|
4806
4844
|
function ComputeThrottler(afterFirst) {
|
|
@@ -4862,7 +4900,7 @@ var ComputeThrottler = /*#__PURE__*/function () {
|
|
|
4862
4900
|
|
|
4863
4901
|
this.queue = [];
|
|
4864
4902
|
|
|
4865
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4903
|
+
var _iterator = _createForOfIteratorHelper$9(queue),
|
|
4866
4904
|
_step;
|
|
4867
4905
|
|
|
4868
4906
|
try {
|
|
@@ -5100,11 +5138,11 @@ function ownKeys$5(object, enumerableOnly) { var keys$1 = keys(object); if (getO
|
|
|
5100
5138
|
|
|
5101
5139
|
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; }
|
|
5102
5140
|
|
|
5103
|
-
function _createForOfIteratorHelper$
|
|
5141
|
+
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; } } }; }
|
|
5104
5142
|
|
|
5105
|
-
function _unsupportedIterableToArray$
|
|
5143
|
+
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); }
|
|
5106
5144
|
|
|
5107
|
-
function _arrayLikeToArray$
|
|
5145
|
+
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; }
|
|
5108
5146
|
|
|
5109
5147
|
function deprecateGetContext(key) {
|
|
5110
5148
|
console.warn("DEPRECATED: No longer need to use 'getContext(".concat(key, ")'. You can use 'context.").concat(key, "' instead."));
|
|
@@ -5212,7 +5250,7 @@ var Property = /*#__PURE__*/function () {
|
|
|
5212
5250
|
};
|
|
5213
5251
|
|
|
5214
5252
|
if (this.memoizeCache) {
|
|
5215
|
-
var _iterator = _createForOfIteratorHelper$
|
|
5253
|
+
var _iterator = _createForOfIteratorHelper$8(this.memoizeCache),
|
|
5216
5254
|
_step;
|
|
5217
5255
|
|
|
5218
5256
|
try {
|
|
@@ -5246,14 +5284,14 @@ var Property = /*#__PURE__*/function () {
|
|
|
5246
5284
|
}, {
|
|
5247
5285
|
key: "finalizeCache",
|
|
5248
5286
|
value: function finalizeCache() {
|
|
5249
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
5287
|
+
var _iterator2 = _createForOfIteratorHelper$8(this.dependentProperties),
|
|
5250
5288
|
_step2;
|
|
5251
5289
|
|
|
5252
5290
|
try {
|
|
5253
5291
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5254
5292
|
var property = _step2.value;
|
|
5255
5293
|
|
|
5256
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
5294
|
+
var _iterator3 = _createForOfIteratorHelper$8(property.memoizeCache.contextKeys),
|
|
5257
5295
|
_step3;
|
|
5258
5296
|
|
|
5259
5297
|
try {
|
|
@@ -5393,7 +5431,7 @@ var Property = /*#__PURE__*/function () {
|
|
|
5393
5431
|
propsInspected.add(currentProperty);
|
|
5394
5432
|
propsCompleted.add(currentProperty);
|
|
5395
5433
|
|
|
5396
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
5434
|
+
var _iterator4 = _createForOfIteratorHelper$8(currentProperty.dependencies),
|
|
5397
5435
|
_step4;
|
|
5398
5436
|
|
|
5399
5437
|
try {
|
|
@@ -5601,11 +5639,11 @@ var Property = /*#__PURE__*/function () {
|
|
|
5601
5639
|
return Property;
|
|
5602
5640
|
}();
|
|
5603
5641
|
|
|
5604
|
-
function _createForOfIteratorHelper$
|
|
5642
|
+
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; } } }; }
|
|
5605
5643
|
|
|
5606
|
-
function _unsupportedIterableToArray$
|
|
5644
|
+
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); }
|
|
5607
5645
|
|
|
5608
|
-
function _arrayLikeToArray$
|
|
5646
|
+
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; }
|
|
5609
5647
|
|
|
5610
5648
|
function generateGroupingKey(grouping, propertyPath) {
|
|
5611
5649
|
return grouping === false ? propertyPath : "".concat(grouping, "::").concat(propertyPath);
|
|
@@ -5677,7 +5715,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5677
5715
|
while (1) {
|
|
5678
5716
|
switch (_context.prev = _context.next) {
|
|
5679
5717
|
case 0:
|
|
5680
|
-
_iterator = _createForOfIteratorHelper$
|
|
5718
|
+
_iterator = _createForOfIteratorHelper$7(this.groupingMap);
|
|
5681
5719
|
_context.prev = 1;
|
|
5682
5720
|
|
|
5683
5721
|
_iterator.s();
|
|
@@ -5715,7 +5753,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5715
5753
|
return _context.finish(15);
|
|
5716
5754
|
|
|
5717
5755
|
case 18:
|
|
5718
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
5756
|
+
_iterator2 = _createForOfIteratorHelper$7(this.globalMap);
|
|
5719
5757
|
_context.prev = 19;
|
|
5720
5758
|
|
|
5721
5759
|
_iterator2.s();
|
|
@@ -5753,7 +5791,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5753
5791
|
return _context.finish(33);
|
|
5754
5792
|
|
|
5755
5793
|
case 36:
|
|
5756
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
5794
|
+
_iterator3 = _createForOfIteratorHelper$7(this.fallbackMap);
|
|
5757
5795
|
_context.prev = 37;
|
|
5758
5796
|
|
|
5759
5797
|
_iterator3.s();
|
|
@@ -5806,7 +5844,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5806
5844
|
while (1) {
|
|
5807
5845
|
switch (_context2.prev = _context2.next) {
|
|
5808
5846
|
case 0:
|
|
5809
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
5847
|
+
_iterator4 = _createForOfIteratorHelper$7(this.groupingMap);
|
|
5810
5848
|
_context2.prev = 1;
|
|
5811
5849
|
|
|
5812
5850
|
_iterator4.s();
|
|
@@ -5843,7 +5881,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5843
5881
|
return _context2.finish(14);
|
|
5844
5882
|
|
|
5845
5883
|
case 17:
|
|
5846
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
5884
|
+
_iterator5 = _createForOfIteratorHelper$7(this.globalMap);
|
|
5847
5885
|
_context2.prev = 18;
|
|
5848
5886
|
|
|
5849
5887
|
_iterator5.s();
|
|
@@ -5891,11 +5929,11 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5891
5929
|
return GroupedRegistry;
|
|
5892
5930
|
}();
|
|
5893
5931
|
|
|
5894
|
-
function _createForOfIteratorHelper$
|
|
5932
|
+
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; } } }; }
|
|
5895
5933
|
|
|
5896
|
-
function _unsupportedIterableToArray$
|
|
5934
|
+
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); }
|
|
5897
5935
|
|
|
5898
|
-
function _arrayLikeToArray$
|
|
5936
|
+
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; }
|
|
5899
5937
|
var entries = entries$3;
|
|
5900
5938
|
|
|
5901
5939
|
function isComputeFn(fn) {
|
|
@@ -5966,7 +6004,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
5966
6004
|
value: function dumpState() {
|
|
5967
6005
|
var result = [];
|
|
5968
6006
|
|
|
5969
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6007
|
+
var _iterator = _createForOfIteratorHelper$6(this.propertyRegistry.values()),
|
|
5970
6008
|
_step;
|
|
5971
6009
|
|
|
5972
6010
|
try {
|
|
@@ -6155,7 +6193,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6155
6193
|
}, {
|
|
6156
6194
|
key: "generateFromGlob",
|
|
6157
6195
|
value: function generateFromGlob(grouping, path) {
|
|
6158
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
6196
|
+
var _iterator2 = _createForOfIteratorHelper$6(this.globProperties.entries()),
|
|
6159
6197
|
_step2;
|
|
6160
6198
|
|
|
6161
6199
|
try {
|
|
@@ -6214,7 +6252,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6214
6252
|
}, {
|
|
6215
6253
|
key: "resetDependencies",
|
|
6216
6254
|
value: function resetDependencies(property) {
|
|
6217
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
6255
|
+
var _iterator3 = _createForOfIteratorHelper$6(this.findAllDependencies(property)),
|
|
6218
6256
|
_step3;
|
|
6219
6257
|
|
|
6220
6258
|
try {
|
|
@@ -6237,7 +6275,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6237
6275
|
while (stack.length > 0) {
|
|
6238
6276
|
var currentProperty = stack.shift();
|
|
6239
6277
|
|
|
6240
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
6278
|
+
var _iterator4 = _createForOfIteratorHelper$6(this.propertyRegistry.values()),
|
|
6241
6279
|
_step4;
|
|
6242
6280
|
|
|
6243
6281
|
try {
|
|
@@ -6331,11 +6369,11 @@ var StudioTool = /*#__PURE__*/function (_React$Component) {
|
|
|
6331
6369
|
return StudioTool;
|
|
6332
6370
|
}(React.Component);
|
|
6333
6371
|
|
|
6334
|
-
function _createForOfIteratorHelper$
|
|
6372
|
+
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; } } }; }
|
|
6335
6373
|
|
|
6336
|
-
function _unsupportedIterableToArray$
|
|
6374
|
+
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); }
|
|
6337
6375
|
|
|
6338
|
-
function _arrayLikeToArray$
|
|
6376
|
+
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; }
|
|
6339
6377
|
function trimTextOverflow(element) {
|
|
6340
6378
|
var parentElement = element.parentElement;
|
|
6341
6379
|
var parentBox = parentElement.getBoundingClientRect(); // It fits already; no need to resize.
|
|
@@ -6395,7 +6433,7 @@ function findPreviousElement(element) {
|
|
|
6395
6433
|
function findOverlappingElement(element, parentBox) {
|
|
6396
6434
|
var children = from_1(element.children);
|
|
6397
6435
|
|
|
6398
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6436
|
+
var _iterator = _createForOfIteratorHelper$5(children),
|
|
6399
6437
|
_step;
|
|
6400
6438
|
|
|
6401
6439
|
try {
|
|
@@ -6468,11 +6506,11 @@ var _parseFloat$1 = _core.parseFloat;
|
|
|
6468
6506
|
|
|
6469
6507
|
var _parseFloat = _parseFloat$1;
|
|
6470
6508
|
|
|
6471
|
-
function _createForOfIteratorHelper$
|
|
6509
|
+
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; } } }; }
|
|
6472
6510
|
|
|
6473
|
-
function _unsupportedIterableToArray$
|
|
6511
|
+
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); }
|
|
6474
6512
|
|
|
6475
|
-
function _arrayLikeToArray$
|
|
6513
|
+
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; }
|
|
6476
6514
|
|
|
6477
6515
|
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; }
|
|
6478
6516
|
|
|
@@ -6505,7 +6543,7 @@ function shrinkToFit(element, richTextStructure, baseFontSize, minFontSize) {
|
|
|
6505
6543
|
smallest = min$1(smallest, getFontRatio(op));
|
|
6506
6544
|
|
|
6507
6545
|
if (op.spans) {
|
|
6508
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6546
|
+
var _iterator = _createForOfIteratorHelper$4(op.spans),
|
|
6509
6547
|
_step;
|
|
6510
6548
|
|
|
6511
6549
|
try {
|
|
@@ -7014,11 +7052,11 @@ var bootstrapApp = (function (resolver) {
|
|
|
7014
7052
|
resolver.registerComponent('image', DynamicImageTag);
|
|
7015
7053
|
});
|
|
7016
7054
|
|
|
7017
|
-
function _createForOfIteratorHelper$
|
|
7055
|
+
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; } } }; }
|
|
7018
7056
|
|
|
7019
|
-
function _unsupportedIterableToArray$
|
|
7057
|
+
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); }
|
|
7020
7058
|
|
|
7021
|
-
function _arrayLikeToArray$
|
|
7059
|
+
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; }
|
|
7022
7060
|
|
|
7023
7061
|
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); }; }
|
|
7024
7062
|
|
|
@@ -7044,7 +7082,7 @@ var App = /*#__PURE__*/function (_React$Component) {
|
|
|
7044
7082
|
_defineProperty(_assertThisInitialized(_this), "pendingProperties", new set());
|
|
7045
7083
|
|
|
7046
7084
|
_defineProperty(_assertThisInitialized(_this), "onPendingPromise", function (promises) {
|
|
7047
|
-
var _iterator = _createForOfIteratorHelper$
|
|
7085
|
+
var _iterator = _createForOfIteratorHelper$3(promises),
|
|
7048
7086
|
_step;
|
|
7049
7087
|
|
|
7050
7088
|
try {
|
|
@@ -7453,6 +7491,94 @@ function addBrowserContent(baseElement) {
|
|
|
7453
7491
|
rootNode.body.appendChild(script);
|
|
7454
7492
|
}
|
|
7455
7493
|
|
|
7494
|
+
var COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO = 5;
|
|
7495
|
+
|
|
7496
|
+
var stringMatch = function stringMatch(original, comparable, ignoreRegExp) {
|
|
7497
|
+
return original.replace(ignoreRegExp, '') === comparable;
|
|
7498
|
+
};
|
|
7499
|
+
|
|
7500
|
+
var studioOverwritableJs = 'var app = new studio[a-zA-Z0-9]*.A\\(\\);';
|
|
7501
|
+
var jsIgnoreRE = new RegExp("\\s|".concat(studioOverwritableJs));
|
|
7502
|
+
var jsCompareString = "(function(){app.render(document.getElementById('react-root')).then(function(){window.APP_SUCCESSFULLY_RENDERED=true;});})();";
|
|
7503
|
+
var isPristinePicJsTag = function isPristinePicJsTag(scriptTag) {
|
|
7504
|
+
var script = scriptTag.innerHTML;
|
|
7505
|
+
return stringMatch(script, jsCompareString, jsIgnoreRE);
|
|
7506
|
+
};
|
|
7507
|
+
var isDocumentEligibleForStaticHandling = function isDocumentEligibleForStaticHandling(rootNode) {
|
|
7508
|
+
var document = getDocumentNode(rootNode);
|
|
7509
|
+
var scriptTags = document.getElementsByTagName('script');
|
|
7510
|
+
|
|
7511
|
+
var hasTagContainingPristinePicJs = from_1(scriptTags).some(isPristinePicJsTag);
|
|
7512
|
+
|
|
7513
|
+
if (!hasTagContainingPristinePicJs) return false;
|
|
7514
|
+
if (scriptTags.length > COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO) return false;
|
|
7515
|
+
return true;
|
|
7516
|
+
};
|
|
7517
|
+
|
|
7518
|
+
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; } } }; }
|
|
7519
|
+
|
|
7520
|
+
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); }
|
|
7521
|
+
|
|
7522
|
+
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; }
|
|
7523
|
+
var basicTypes = new set(['group', 'image', 'rectangle', 'richText', 'staticPic', 'text']);
|
|
7524
|
+
|
|
7525
|
+
var isTagStatic = function isTagStatic(tag) {
|
|
7526
|
+
var appliedElementModifiers = tag.appliedElementModifiers,
|
|
7527
|
+
conditionalDynamicProperty = tag.conditionalDynamicProperty,
|
|
7528
|
+
dynamicAltText = tag.dynamicAltText,
|
|
7529
|
+
dynamicProperty = tag.dynamicProperty,
|
|
7530
|
+
richText = tag.richText,
|
|
7531
|
+
subtags = tag.subtags,
|
|
7532
|
+
type = tag.type;
|
|
7533
|
+
if (subtags !== null && subtags !== void 0 && subtags.length) return subtags.some(isTagStatic);
|
|
7534
|
+
var isCustomTool = type.startsWith('customTool.');
|
|
7535
|
+
var hasDynamicRichText = richText === null || richText === void 0 ? void 0 : richText.some(function (_ref) {
|
|
7536
|
+
var insert = _ref.insert;
|
|
7537
|
+
return _typeof(insert) === 'object' && insert.dynamicProperty;
|
|
7538
|
+
});
|
|
7539
|
+
if (appliedElementModifiers || !basicTypes.has(type) || conditionalDynamicProperty || dynamicAltText || dynamicProperty || hasDynamicRichText || isCustomTool) return false;
|
|
7540
|
+
return true;
|
|
7541
|
+
};
|
|
7542
|
+
|
|
7543
|
+
var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
7544
|
+
var canvases = attributes.canvases;
|
|
7545
|
+
|
|
7546
|
+
var _iterator = _createForOfIteratorHelper$2(canvases),
|
|
7547
|
+
_step;
|
|
7548
|
+
|
|
7549
|
+
try {
|
|
7550
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7551
|
+
var _step$value = _step.value,
|
|
7552
|
+
appliedElementModifiers = _step$value.appliedElementModifiers,
|
|
7553
|
+
_step$value$tags = _step$value.tags,
|
|
7554
|
+
tags = _step$value$tags === void 0 ? [] : _step$value$tags,
|
|
7555
|
+
clickthroughDynamicProperty = _step$value.clickthroughDynamicProperty,
|
|
7556
|
+
conditionalDynamicProperty = _step$value.conditionalDynamicProperty;
|
|
7557
|
+
if (appliedElementModifiers || clickthroughDynamicProperty || conditionalDynamicProperty) return false;
|
|
7558
|
+
|
|
7559
|
+
var _iterator2 = _createForOfIteratorHelper$2(tags),
|
|
7560
|
+
_step2;
|
|
7561
|
+
|
|
7562
|
+
try {
|
|
7563
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7564
|
+
var tag = _step2.value;
|
|
7565
|
+
if (!isTagStatic(tag)) return false;
|
|
7566
|
+
}
|
|
7567
|
+
} catch (err) {
|
|
7568
|
+
_iterator2.e(err);
|
|
7569
|
+
} finally {
|
|
7570
|
+
_iterator2.f();
|
|
7571
|
+
}
|
|
7572
|
+
}
|
|
7573
|
+
} catch (err) {
|
|
7574
|
+
_iterator.e(err);
|
|
7575
|
+
} finally {
|
|
7576
|
+
_iterator.f();
|
|
7577
|
+
}
|
|
7578
|
+
|
|
7579
|
+
return true;
|
|
7580
|
+
};
|
|
7581
|
+
|
|
7456
7582
|
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; }
|
|
7457
7583
|
|
|
7458
7584
|
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; }
|
|
@@ -7465,7 +7591,8 @@ function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) le
|
|
|
7465
7591
|
|
|
7466
7592
|
var StudioFramework = /*#__PURE__*/function () {
|
|
7467
7593
|
function StudioFramework() {
|
|
7468
|
-
var _this = this
|
|
7594
|
+
var _this = this,
|
|
7595
|
+
_window$MICapture;
|
|
7469
7596
|
|
|
7470
7597
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : setupAppDefaults();
|
|
7471
7598
|
|
|
@@ -7548,6 +7675,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7548
7675
|
namespacedOptions = _opts$namespacedOptio === void 0 ? [] : _opts$namespacedOptio,
|
|
7549
7676
|
_opts$queryParams = opts.queryParams,
|
|
7550
7677
|
queryParams = _opts$queryParams === void 0 ? {} : _opts$queryParams;
|
|
7678
|
+
if ((_window$MICapture = window.MICapture) !== null && _window$MICapture !== void 0 && _window$MICapture.isPreview) window.RENDERED_STATICALLY = true;
|
|
7551
7679
|
this.options = options;
|
|
7552
7680
|
this.namespacedOptions = namespacedOptions;
|
|
7553
7681
|
this.customProps = customProps;
|
|
@@ -7565,7 +7693,20 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7565
7693
|
return queryParams;
|
|
7566
7694
|
});
|
|
7567
7695
|
animation(this);
|
|
7568
|
-
|
|
7696
|
+
|
|
7697
|
+
if (this.shouldPerformStaticCheck) {
|
|
7698
|
+
var proxy = new Proxy(this, {
|
|
7699
|
+
set: function set(target, key, value) {
|
|
7700
|
+
if (key in target) window.RENDERED_STATICALLY = false;
|
|
7701
|
+
return set$2(target, key, value);
|
|
7702
|
+
}
|
|
7703
|
+
});
|
|
7704
|
+
this.setup.call(proxy);
|
|
7705
|
+
if (this.shouldPerformStaticCheck) window.RENDERED_STATICALLY = areAttributesStatic(opts);
|
|
7706
|
+
} else {
|
|
7707
|
+
this.setup();
|
|
7708
|
+
}
|
|
7709
|
+
|
|
7569
7710
|
this.setupOptions();
|
|
7570
7711
|
this.setupNamespacedOptions();
|
|
7571
7712
|
this.setupCustomTools();
|
|
@@ -7574,6 +7715,13 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7574
7715
|
}
|
|
7575
7716
|
|
|
7576
7717
|
_createClass(StudioFramework, [{
|
|
7718
|
+
key: "shouldPerformStaticCheck",
|
|
7719
|
+
get: function get() {
|
|
7720
|
+
var _window$MICapture2;
|
|
7721
|
+
|
|
7722
|
+
return ((_window$MICapture2 = window.MICapture) === null || _window$MICapture2 === void 0 ? void 0 : _window$MICapture2.isPreview) && window.RENDERED_STATICALLY;
|
|
7723
|
+
}
|
|
7724
|
+
}, {
|
|
7577
7725
|
key: "triggerRerender",
|
|
7578
7726
|
value: function triggerRerender() {
|
|
7579
7727
|
if (this.appComponent) {
|
|
@@ -8235,13 +8383,13 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8235
8383
|
}, {
|
|
8236
8384
|
key: "handleAndPreventFutureAnalyticsCalls",
|
|
8237
8385
|
value: function handleAndPreventFutureAnalyticsCalls(data) {
|
|
8238
|
-
var _window$
|
|
8386
|
+
var _window$MICapture3;
|
|
8239
8387
|
|
|
8240
8388
|
if (_typeof(data) !== 'object') {
|
|
8241
8389
|
throw new Error('The result of `analyticsData` must be an object');
|
|
8242
8390
|
}
|
|
8243
8391
|
|
|
8244
|
-
var format = (_window$
|
|
8392
|
+
var format = (_window$MICapture3 = window.MICapture) === null || _window$MICapture3 === void 0 ? void 0 : _window$MICapture3.format;
|
|
8245
8393
|
var analytics = document.querySelector('#mi-data');
|
|
8246
8394
|
|
|
8247
8395
|
if (format === 'html') {
|
|
@@ -8267,15 +8415,15 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8267
8415
|
key: "render",
|
|
8268
8416
|
value: function () {
|
|
8269
8417
|
var _render = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee7(targetElement) {
|
|
8270
|
-
var _window$
|
|
8418
|
+
var _window$MICapture4;
|
|
8271
8419
|
|
|
8272
|
-
var currentCanvas, _currentCanvas, _window$
|
|
8420
|
+
var currentCanvas, _currentCanvas, _window$MICapture5, clickthroughURL, canvasTags, tags, height, width, format, renderPromise, analyticsDataPromise, wrappedError;
|
|
8273
8421
|
|
|
8274
8422
|
return regenerator.wrap(function _callee7$(_context7) {
|
|
8275
8423
|
while (1) {
|
|
8276
8424
|
switch (_context7.prev = _context7.next) {
|
|
8277
8425
|
case 0:
|
|
8278
|
-
if ((_window$
|
|
8426
|
+
if ((_window$MICapture4 = window.MICapture) !== null && _window$MICapture4 !== void 0 && _window$MICapture4.isPreview) console.log('Preview Render');
|
|
8279
8427
|
_context7.prev = 1;
|
|
8280
8428
|
CD.pause();
|
|
8281
8429
|
_context7.next = 5;
|
|
@@ -8296,7 +8444,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8296
8444
|
tags = _context7.sent;
|
|
8297
8445
|
height = currentCanvas.height || this.options.height;
|
|
8298
8446
|
width = currentCanvas.width || this.options.width;
|
|
8299
|
-
format = (_window$
|
|
8447
|
+
format = (_window$MICapture5 = window.MICapture) === null || _window$MICapture5 === void 0 ? void 0 : _window$MICapture5.format;
|
|
8300
8448
|
renderPromise = this.renderApp(targetElement, clickthroughURL, tags, {
|
|
8301
8449
|
height: height,
|
|
8302
8450
|
width: width
|
|
@@ -8310,31 +8458,34 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8310
8458
|
this.setupAnimation();
|
|
8311
8459
|
}
|
|
8312
8460
|
|
|
8461
|
+
if (this.shouldPerformStaticCheck && !isDocumentEligibleForStaticHandling(targetElement)) window.RENDERED_STATICALLY = false;
|
|
8462
|
+
if (window.RENDERED_STATICALLY) console.log('App is static.');
|
|
8463
|
+
|
|
8313
8464
|
if (format === 'html') {
|
|
8314
8465
|
cleanHTML(targetElement);
|
|
8315
8466
|
addBrowserContent(targetElement);
|
|
8316
8467
|
}
|
|
8317
8468
|
|
|
8318
|
-
_context7.next =
|
|
8469
|
+
_context7.next = 30;
|
|
8319
8470
|
break;
|
|
8320
8471
|
|
|
8321
|
-
case
|
|
8322
|
-
_context7.prev =
|
|
8472
|
+
case 26:
|
|
8473
|
+
_context7.prev = 26;
|
|
8323
8474
|
_context7.t0 = _context7["catch"](1);
|
|
8324
8475
|
wrappedError = StudioErrorWrapper(_context7.t0).setCanvas(currentCanvas);
|
|
8325
8476
|
this.handleRenderError(wrappedError);
|
|
8326
8477
|
|
|
8327
|
-
case
|
|
8328
|
-
_context7.prev =
|
|
8478
|
+
case 30:
|
|
8479
|
+
_context7.prev = 30;
|
|
8329
8480
|
CD.resume();
|
|
8330
|
-
return _context7.finish(
|
|
8481
|
+
return _context7.finish(30);
|
|
8331
8482
|
|
|
8332
|
-
case
|
|
8483
|
+
case 33:
|
|
8333
8484
|
case "end":
|
|
8334
8485
|
return _context7.stop();
|
|
8335
8486
|
}
|
|
8336
8487
|
}
|
|
8337
|
-
}, _callee7, this, [[1,
|
|
8488
|
+
}, _callee7, this, [[1, 26, 30, 33]]);
|
|
8338
8489
|
}));
|
|
8339
8490
|
|
|
8340
8491
|
function render(_x6) {
|