@movable/studio-framework 2.40.0 → 2.41.0-pinned-rollup-2
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 +336 -184
- package/dist/index.js +376 -223
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
var _core = createCommonjsModule(function (module) {
|
|
33
|
-
var core = module.exports = { version: '2.6.
|
|
33
|
+
var core = module.exports = { version: '2.6.12' };
|
|
34
34
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
35
35
|
});
|
|
36
36
|
_core.version;
|
|
@@ -286,7 +286,7 @@ var store = _global[SHARED] || (_global[SHARED] = {});
|
|
|
286
286
|
})('versions', []).push({
|
|
287
287
|
version: _core.version,
|
|
288
288
|
mode: 'pure' ,
|
|
289
|
-
copyright: '©
|
|
289
|
+
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
|
290
290
|
});
|
|
291
291
|
});
|
|
292
292
|
|
|
@@ -1396,14 +1396,11 @@ function _setPrototypeOf(o, p) {
|
|
|
1396
1396
|
module.exports = _setPrototypeOf = setPrototypeOf$1 || function _setPrototypeOf(o, p) {
|
|
1397
1397
|
o.__proto__ = p;
|
|
1398
1398
|
return o;
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1399
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1402
1400
|
return _setPrototypeOf(o, p);
|
|
1403
1401
|
}
|
|
1404
1402
|
|
|
1405
|
-
module.exports = _setPrototypeOf;
|
|
1406
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1403
|
+
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1407
1404
|
});
|
|
1408
1405
|
|
|
1409
1406
|
unwrapExports(setPrototypeOf);
|
|
@@ -1422,8 +1419,7 @@ function _isNativeReflectConstruct() {
|
|
|
1422
1419
|
}
|
|
1423
1420
|
}
|
|
1424
1421
|
|
|
1425
|
-
module.exports = _isNativeReflectConstruct;
|
|
1426
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1422
|
+
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1427
1423
|
});
|
|
1428
1424
|
|
|
1429
1425
|
unwrapExports(isNativeReflectConstruct);
|
|
@@ -1431,8 +1427,7 @@ unwrapExports(isNativeReflectConstruct);
|
|
|
1431
1427
|
var construct = createCommonjsModule(function (module) {
|
|
1432
1428
|
function _construct(Parent, args, Class) {
|
|
1433
1429
|
if (isNativeReflectConstruct()) {
|
|
1434
|
-
module.exports = _construct = construct$1;
|
|
1435
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1430
|
+
module.exports = _construct = construct$1, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1436
1431
|
} else {
|
|
1437
1432
|
module.exports = _construct = function _construct(Parent, args, Class) {
|
|
1438
1433
|
var a = [null];
|
|
@@ -1441,16 +1436,13 @@ function _construct(Parent, args, Class) {
|
|
|
1441
1436
|
var instance = new Constructor();
|
|
1442
1437
|
if (Class) setPrototypeOf(instance, Class.prototype);
|
|
1443
1438
|
return instance;
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1439
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1447
1440
|
}
|
|
1448
1441
|
|
|
1449
1442
|
return _construct.apply(null, arguments);
|
|
1450
1443
|
}
|
|
1451
1444
|
|
|
1452
|
-
module.exports = _construct;
|
|
1453
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1445
|
+
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1454
1446
|
});
|
|
1455
1447
|
|
|
1456
1448
|
var _construct = unwrapExports(construct);
|
|
@@ -1466,8 +1458,7 @@ function _arrayLikeToArray(arr, len) {
|
|
|
1466
1458
|
return arr2;
|
|
1467
1459
|
}
|
|
1468
1460
|
|
|
1469
|
-
module.exports = _arrayLikeToArray;
|
|
1470
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1461
|
+
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1471
1462
|
});
|
|
1472
1463
|
|
|
1473
1464
|
unwrapExports(arrayLikeToArray);
|
|
@@ -1477,8 +1468,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
1477
1468
|
if (isArray(arr)) return arrayLikeToArray(arr);
|
|
1478
1469
|
}
|
|
1479
1470
|
|
|
1480
|
-
module.exports = _arrayWithoutHoles;
|
|
1481
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1471
|
+
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1482
1472
|
});
|
|
1483
1473
|
|
|
1484
1474
|
unwrapExports(arrayWithoutHoles);
|
|
@@ -1488,8 +1478,7 @@ function _iterableToArray(iter) {
|
|
|
1488
1478
|
if (typeof symbol !== "undefined" && iter[iterator] != null || iter["@@iterator"] != null) return from_1(iter);
|
|
1489
1479
|
}
|
|
1490
1480
|
|
|
1491
|
-
module.exports = _iterableToArray;
|
|
1492
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1481
|
+
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1493
1482
|
});
|
|
1494
1483
|
|
|
1495
1484
|
unwrapExports(iterableToArray);
|
|
@@ -1504,8 +1493,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
1504
1493
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
1505
1494
|
}
|
|
1506
1495
|
|
|
1507
|
-
module.exports = _unsupportedIterableToArray;
|
|
1508
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1496
|
+
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1509
1497
|
});
|
|
1510
1498
|
|
|
1511
1499
|
unwrapExports(unsupportedIterableToArray);
|
|
@@ -1515,8 +1503,7 @@ function _nonIterableSpread() {
|
|
|
1515
1503
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1516
1504
|
}
|
|
1517
1505
|
|
|
1518
|
-
module.exports = _nonIterableSpread;
|
|
1519
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1506
|
+
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1520
1507
|
});
|
|
1521
1508
|
|
|
1522
1509
|
unwrapExports(nonIterableSpread);
|
|
@@ -1526,8 +1513,7 @@ function _toConsumableArray(arr) {
|
|
|
1526
1513
|
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
1527
1514
|
}
|
|
1528
1515
|
|
|
1529
|
-
module.exports = _toConsumableArray;
|
|
1530
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1516
|
+
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1531
1517
|
});
|
|
1532
1518
|
|
|
1533
1519
|
var _toConsumableArray = unwrapExports(toConsumableArray);
|
|
@@ -1536,25 +1522,14 @@ var _typeof_1 = createCommonjsModule(function (module) {
|
|
|
1536
1522
|
function _typeof(obj) {
|
|
1537
1523
|
"@babel/helpers - typeof";
|
|
1538
1524
|
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1545
|
-
} else {
|
|
1546
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
1547
|
-
return obj && typeof symbol === "function" && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
|
|
1548
|
-
};
|
|
1549
|
-
|
|
1550
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
return _typeof(obj);
|
|
1525
|
+
return (module.exports = _typeof = "function" == typeof symbol && "symbol" == typeof iterator ? function (obj) {
|
|
1526
|
+
return typeof obj;
|
|
1527
|
+
} : function (obj) {
|
|
1528
|
+
return obj && "function" == typeof symbol && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
|
|
1529
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
1554
1530
|
}
|
|
1555
1531
|
|
|
1556
|
-
module.exports = _typeof;
|
|
1557
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1532
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1558
1533
|
});
|
|
1559
1534
|
|
|
1560
1535
|
var _typeof = unwrapExports(_typeof_1);
|
|
@@ -1564,15 +1539,14 @@ function _arrayWithHoles(arr) {
|
|
|
1564
1539
|
if (isArray(arr)) return arr;
|
|
1565
1540
|
}
|
|
1566
1541
|
|
|
1567
|
-
module.exports = _arrayWithHoles;
|
|
1568
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1542
|
+
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1569
1543
|
});
|
|
1570
1544
|
|
|
1571
1545
|
unwrapExports(arrayWithHoles);
|
|
1572
1546
|
|
|
1573
1547
|
var iterableToArrayLimit = createCommonjsModule(function (module) {
|
|
1574
1548
|
function _iterableToArrayLimit(arr, i) {
|
|
1575
|
-
var _i = arr
|
|
1549
|
+
var _i = arr == null ? null : typeof symbol !== "undefined" && arr[iterator] || arr["@@iterator"];
|
|
1576
1550
|
|
|
1577
1551
|
if (_i == null) return;
|
|
1578
1552
|
var _arr = [];
|
|
@@ -1601,8 +1575,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
1601
1575
|
return _arr;
|
|
1602
1576
|
}
|
|
1603
1577
|
|
|
1604
|
-
module.exports = _iterableToArrayLimit;
|
|
1605
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1578
|
+
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1606
1579
|
});
|
|
1607
1580
|
|
|
1608
1581
|
unwrapExports(iterableToArrayLimit);
|
|
@@ -1612,8 +1585,7 @@ function _nonIterableRest() {
|
|
|
1612
1585
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1613
1586
|
}
|
|
1614
1587
|
|
|
1615
|
-
module.exports = _nonIterableRest;
|
|
1616
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1588
|
+
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1617
1589
|
});
|
|
1618
1590
|
|
|
1619
1591
|
unwrapExports(nonIterableRest);
|
|
@@ -1623,8 +1595,7 @@ function _slicedToArray(arr, i) {
|
|
|
1623
1595
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
|
1624
1596
|
}
|
|
1625
1597
|
|
|
1626
|
-
module.exports = _slicedToArray;
|
|
1627
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1598
|
+
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1628
1599
|
});
|
|
1629
1600
|
|
|
1630
1601
|
var _slicedToArray = unwrapExports(slicedToArray);
|
|
@@ -2218,8 +2189,7 @@ function _asyncToGenerator(fn) {
|
|
|
2218
2189
|
};
|
|
2219
2190
|
}
|
|
2220
2191
|
|
|
2221
|
-
module.exports = _asyncToGenerator;
|
|
2222
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2192
|
+
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2223
2193
|
});
|
|
2224
2194
|
|
|
2225
2195
|
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
@@ -2231,8 +2201,7 @@ function _classCallCheck(instance, Constructor) {
|
|
|
2231
2201
|
}
|
|
2232
2202
|
}
|
|
2233
2203
|
|
|
2234
|
-
module.exports = _classCallCheck;
|
|
2235
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2204
|
+
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2236
2205
|
});
|
|
2237
2206
|
|
|
2238
2207
|
var _classCallCheck = unwrapExports(classCallCheck);
|
|
@@ -2252,11 +2221,15 @@ function _defineProperties(target, props) {
|
|
|
2252
2221
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
2253
2222
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2254
2223
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
2224
|
+
|
|
2225
|
+
defineProperty$2(Constructor, "prototype", {
|
|
2226
|
+
writable: false
|
|
2227
|
+
});
|
|
2228
|
+
|
|
2255
2229
|
return Constructor;
|
|
2256
2230
|
}
|
|
2257
2231
|
|
|
2258
|
-
module.exports = _createClass;
|
|
2259
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2232
|
+
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2260
2233
|
});
|
|
2261
2234
|
|
|
2262
2235
|
var _createClass = unwrapExports(createClass);
|
|
@@ -2277,8 +2250,7 @@ function _defineProperty(obj, key, value) {
|
|
|
2277
2250
|
return obj;
|
|
2278
2251
|
}
|
|
2279
2252
|
|
|
2280
|
-
module.exports = _defineProperty;
|
|
2281
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2253
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2282
2254
|
});
|
|
2283
2255
|
|
|
2284
2256
|
var _defineProperty = unwrapExports(defineProperty$1);
|
|
@@ -2371,9 +2343,9 @@ var runtime = (function (exports) {
|
|
|
2371
2343
|
// This is a polyfill for %IteratorPrototype% for environments that
|
|
2372
2344
|
// don't natively support it.
|
|
2373
2345
|
var IteratorPrototype = {};
|
|
2374
|
-
IteratorPrototype
|
|
2346
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
2375
2347
|
return this;
|
|
2376
|
-
};
|
|
2348
|
+
});
|
|
2377
2349
|
|
|
2378
2350
|
var getProto = Object.getPrototypeOf;
|
|
2379
2351
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
@@ -2387,8 +2359,9 @@ var runtime = (function (exports) {
|
|
|
2387
2359
|
|
|
2388
2360
|
var Gp = GeneratorFunctionPrototype.prototype =
|
|
2389
2361
|
Generator.prototype = Object.create(IteratorPrototype);
|
|
2390
|
-
GeneratorFunction.prototype =
|
|
2391
|
-
|
|
2362
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
2363
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
2364
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
2392
2365
|
GeneratorFunction.displayName = define(
|
|
2393
2366
|
GeneratorFunctionPrototype,
|
|
2394
2367
|
toStringTagSymbol,
|
|
@@ -2502,9 +2475,9 @@ var runtime = (function (exports) {
|
|
|
2502
2475
|
}
|
|
2503
2476
|
|
|
2504
2477
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
2505
|
-
AsyncIterator.prototype
|
|
2478
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
2506
2479
|
return this;
|
|
2507
|
-
};
|
|
2480
|
+
});
|
|
2508
2481
|
exports.AsyncIterator = AsyncIterator;
|
|
2509
2482
|
|
|
2510
2483
|
// Note that simple async functions are implemented on top of
|
|
@@ -2697,13 +2670,13 @@ var runtime = (function (exports) {
|
|
|
2697
2670
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
2698
2671
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
2699
2672
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
2700
|
-
Gp
|
|
2673
|
+
define(Gp, iteratorSymbol, function() {
|
|
2701
2674
|
return this;
|
|
2702
|
-
};
|
|
2675
|
+
});
|
|
2703
2676
|
|
|
2704
|
-
Gp
|
|
2677
|
+
define(Gp, "toString", function() {
|
|
2705
2678
|
return "[object Generator]";
|
|
2706
|
-
};
|
|
2679
|
+
});
|
|
2707
2680
|
|
|
2708
2681
|
function pushTryEntry(locs) {
|
|
2709
2682
|
var entry = { tryLoc: locs[0] };
|
|
@@ -3022,14 +2995,19 @@ try {
|
|
|
3022
2995
|
} catch (accidentalStrictMode) {
|
|
3023
2996
|
// This module should not be running in strict mode, so the above
|
|
3024
2997
|
// assignment should always work unless something is misconfigured. Just
|
|
3025
|
-
// in case runtime.js accidentally runs in strict mode,
|
|
2998
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
2999
|
+
// we can explicitly access globalThis. In older engines we can escape
|
|
3026
3000
|
// strict mode using a global Function call. This could conceivably fail
|
|
3027
3001
|
// if a Content Security Policy forbids using Function, but in that case
|
|
3028
3002
|
// the proper solution is to fix the accidental strict mode problem. If
|
|
3029
3003
|
// you've misconfigured your bundler to force strict mode and applied a
|
|
3030
3004
|
// CSP to forbid Function, and you're not willing to fix either of those
|
|
3031
3005
|
// problems, please detail your unique predicament in a GitHub issue.
|
|
3032
|
-
|
|
3006
|
+
if (typeof globalThis === "object") {
|
|
3007
|
+
globalThis.regeneratorRuntime = runtime;
|
|
3008
|
+
} else {
|
|
3009
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
3010
|
+
}
|
|
3033
3011
|
}
|
|
3034
3012
|
});
|
|
3035
3013
|
|
|
@@ -3042,6 +3020,44 @@ var stringify$1 = function stringify(it) { // eslint-disable-line no-unused-vars
|
|
|
3042
3020
|
|
|
3043
3021
|
var stringify = stringify$1;
|
|
3044
3022
|
|
|
3023
|
+
// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
function set$4(target, propertyKey, V /* , receiver */) {
|
|
3034
|
+
var receiver = arguments.length < 4 ? target : arguments[3];
|
|
3035
|
+
var ownDesc = _objectGopd.f(_anObject(target), propertyKey);
|
|
3036
|
+
var existingDescriptor, proto;
|
|
3037
|
+
if (!ownDesc) {
|
|
3038
|
+
if (_isObject(proto = _objectGpo(target))) {
|
|
3039
|
+
return set$4(proto, propertyKey, V, receiver);
|
|
3040
|
+
}
|
|
3041
|
+
ownDesc = _propertyDesc(0);
|
|
3042
|
+
}
|
|
3043
|
+
if (_has(ownDesc, 'value')) {
|
|
3044
|
+
if (ownDesc.writable === false || !_isObject(receiver)) return false;
|
|
3045
|
+
if (existingDescriptor = _objectGopd.f(receiver, propertyKey)) {
|
|
3046
|
+
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
|
|
3047
|
+
existingDescriptor.value = V;
|
|
3048
|
+
_objectDp.f(receiver, propertyKey, existingDescriptor);
|
|
3049
|
+
} else _objectDp.f(receiver, propertyKey, _propertyDesc(0, V));
|
|
3050
|
+
return true;
|
|
3051
|
+
}
|
|
3052
|
+
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
_export(_export.S, 'Reflect', { set: set$4 });
|
|
3056
|
+
|
|
3057
|
+
var set$3 = _core.Reflect.set;
|
|
3058
|
+
|
|
3059
|
+
var set$2 = set$3;
|
|
3060
|
+
|
|
3045
3061
|
var assertThisInitialized = createCommonjsModule(function (module) {
|
|
3046
3062
|
function _assertThisInitialized(self) {
|
|
3047
3063
|
if (self === void 0) {
|
|
@@ -3051,8 +3067,7 @@ function _assertThisInitialized(self) {
|
|
|
3051
3067
|
return self;
|
|
3052
3068
|
}
|
|
3053
3069
|
|
|
3054
|
-
module.exports = _assertThisInitialized;
|
|
3055
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3070
|
+
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3056
3071
|
});
|
|
3057
3072
|
|
|
3058
3073
|
var _assertThisInitialized = unwrapExports(assertThisInitialized);
|
|
@@ -3080,11 +3095,15 @@ function _inherits(subClass, superClass) {
|
|
|
3080
3095
|
configurable: true
|
|
3081
3096
|
}
|
|
3082
3097
|
});
|
|
3098
|
+
|
|
3099
|
+
defineProperty$2(subClass, "prototype", {
|
|
3100
|
+
writable: false
|
|
3101
|
+
});
|
|
3102
|
+
|
|
3083
3103
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
3084
3104
|
}
|
|
3085
3105
|
|
|
3086
|
-
module.exports = _inherits;
|
|
3087
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3106
|
+
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3088
3107
|
});
|
|
3089
3108
|
|
|
3090
3109
|
var _inherits = unwrapExports(inherits);
|
|
@@ -3097,13 +3116,14 @@ var _typeof = _typeof_1["default"];
|
|
|
3097
3116
|
function _possibleConstructorReturn(self, call) {
|
|
3098
3117
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
3099
3118
|
return call;
|
|
3119
|
+
} else if (call !== void 0) {
|
|
3120
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
3100
3121
|
}
|
|
3101
3122
|
|
|
3102
3123
|
return assertThisInitialized(self);
|
|
3103
3124
|
}
|
|
3104
3125
|
|
|
3105
|
-
module.exports = _possibleConstructorReturn;
|
|
3106
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3126
|
+
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3107
3127
|
});
|
|
3108
3128
|
|
|
3109
3129
|
var _possibleConstructorReturn = unwrapExports(possibleConstructorReturn);
|
|
@@ -3126,13 +3146,11 @@ var getPrototypeOf = createCommonjsModule(function (module) {
|
|
|
3126
3146
|
function _getPrototypeOf(o) {
|
|
3127
3147
|
module.exports = _getPrototypeOf = setPrototypeOf$1 ? getPrototypeOf$1 : function _getPrototypeOf(o) {
|
|
3128
3148
|
return o.__proto__ || getPrototypeOf$1(o);
|
|
3129
|
-
};
|
|
3130
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3149
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3131
3150
|
return _getPrototypeOf(o);
|
|
3132
3151
|
}
|
|
3133
3152
|
|
|
3134
|
-
module.exports = _getPrototypeOf;
|
|
3135
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3153
|
+
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3136
3154
|
});
|
|
3137
3155
|
|
|
3138
3156
|
var _getPrototypeOf = unwrapExports(getPrototypeOf);
|
|
@@ -3615,11 +3633,11 @@ function classNameFromAttributes(tag) {
|
|
|
3615
3633
|
return classNames.join(' ');
|
|
3616
3634
|
}
|
|
3617
3635
|
|
|
3618
|
-
function _createForOfIteratorHelper$
|
|
3636
|
+
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
3637
|
|
|
3620
|
-
function _unsupportedIterableToArray$
|
|
3638
|
+
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
3639
|
|
|
3622
|
-
function _arrayLikeToArray$
|
|
3640
|
+
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
3641
|
|
|
3624
3642
|
function resolveElementModifiers() {
|
|
3625
3643
|
var appliedModifiers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -3635,7 +3653,7 @@ function resolveElementModifiers() {
|
|
|
3635
3653
|
});
|
|
3636
3654
|
}
|
|
3637
3655
|
function runModifiers(element, fns) {
|
|
3638
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3656
|
+
var _iterator = _createForOfIteratorHelper$c(fns),
|
|
3639
3657
|
_step;
|
|
3640
3658
|
|
|
3641
3659
|
try {
|
|
@@ -3703,7 +3721,7 @@ var StyledElement = /*#__PURE__*/function (_React$Component) {
|
|
|
3703
3721
|
children = _this$props2.children;
|
|
3704
3722
|
var style = styleFromAttributes(tag);
|
|
3705
3723
|
var className = classNameFromAttributes(tag);
|
|
3706
|
-
return /*#__PURE__*/React__default[
|
|
3724
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3707
3725
|
className: className,
|
|
3708
3726
|
style: style,
|
|
3709
3727
|
ref: this.setStyleElementRef
|
|
@@ -3712,7 +3730,7 @@ var StyledElement = /*#__PURE__*/function (_React$Component) {
|
|
|
3712
3730
|
}]);
|
|
3713
3731
|
|
|
3714
3732
|
return StyledElement;
|
|
3715
|
-
}(React__default[
|
|
3733
|
+
}(React__default["default"].Component);
|
|
3716
3734
|
|
|
3717
3735
|
function tryInvoke(obj, prop) {
|
|
3718
3736
|
if (typeof obj[prop] === 'function') {
|
|
@@ -3786,8 +3804,7 @@ function _isNativeFunction(fn) {
|
|
|
3786
3804
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
3787
3805
|
}
|
|
3788
3806
|
|
|
3789
|
-
module.exports = _isNativeFunction;
|
|
3790
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3807
|
+
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3791
3808
|
});
|
|
3792
3809
|
|
|
3793
3810
|
unwrapExports(isNativeFunction);
|
|
@@ -3822,14 +3839,11 @@ function _wrapNativeSuper(Class) {
|
|
|
3822
3839
|
}
|
|
3823
3840
|
});
|
|
3824
3841
|
return setPrototypeOf(Wrapper, Class);
|
|
3825
|
-
};
|
|
3826
|
-
|
|
3827
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3842
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3828
3843
|
return _wrapNativeSuper(Class);
|
|
3829
3844
|
}
|
|
3830
3845
|
|
|
3831
|
-
module.exports = _wrapNativeSuper;
|
|
3832
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3846
|
+
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3833
3847
|
});
|
|
3834
3848
|
|
|
3835
3849
|
var _wrapNativeSuper = unwrapExports(wrapNativeSuper);
|
|
@@ -3843,9 +3857,9 @@ var now$1 = _core.Date.now;
|
|
|
3843
3857
|
|
|
3844
3858
|
var now = now$1;
|
|
3845
3859
|
|
|
3846
|
-
function ownKeys$6(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object);
|
|
3860
|
+
function ownKeys$6(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
3847
3861
|
|
|
3848
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
3862
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3849
3863
|
|
|
3850
3864
|
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); 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); }; }
|
|
3851
3865
|
|
|
@@ -4031,7 +4045,7 @@ var StudioError = /*#__PURE__*/function (_BaseStudioError) {
|
|
|
4031
4045
|
return _this2;
|
|
4032
4046
|
}
|
|
4033
4047
|
|
|
4034
|
-
return StudioError;
|
|
4048
|
+
return _createClass(StudioError);
|
|
4035
4049
|
}(BaseStudioError);
|
|
4036
4050
|
|
|
4037
4051
|
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); 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); }; }
|
|
@@ -4142,7 +4156,7 @@ var TagComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
4142
4156
|
return null;
|
|
4143
4157
|
}
|
|
4144
4158
|
|
|
4145
|
-
return /*#__PURE__*/React__default[
|
|
4159
|
+
return /*#__PURE__*/React__default["default"].createElement(StudioTool, {
|
|
4146
4160
|
tag: tag,
|
|
4147
4161
|
getPropertyState: this.getPropertyState,
|
|
4148
4162
|
getPropertyWithFallback: this.getPropertyWithFallback
|
|
@@ -4173,7 +4187,7 @@ var TagComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
4173
4187
|
}]);
|
|
4174
4188
|
|
|
4175
4189
|
return TagComponent;
|
|
4176
|
-
}(React__default[
|
|
4190
|
+
}(React__default["default"].Component);
|
|
4177
4191
|
|
|
4178
4192
|
function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); 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); }; }
|
|
4179
4193
|
|
|
@@ -4201,17 +4215,17 @@ var Tags = /*#__PURE__*/function (_React$Component) {
|
|
|
4201
4215
|
canvas = _this$props.canvas;
|
|
4202
4216
|
return tags.map(function (tag, index) {
|
|
4203
4217
|
var subtags = tag.subtags;
|
|
4204
|
-
return /*#__PURE__*/React__default[
|
|
4218
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledElement, {
|
|
4205
4219
|
key: index,
|
|
4206
4220
|
tag: tag,
|
|
4207
4221
|
registryResolver: registryResolver
|
|
4208
|
-
}, subtags ? /*#__PURE__*/React__default[
|
|
4222
|
+
}, subtags ? /*#__PURE__*/React__default["default"].createElement(Tags, {
|
|
4209
4223
|
tags: subtags,
|
|
4210
4224
|
canvas: canvas,
|
|
4211
4225
|
registryResolver: registryResolver,
|
|
4212
4226
|
propertyResolver: propertyResolver,
|
|
4213
4227
|
onPendingPromise: onPendingPromise
|
|
4214
|
-
}) : /*#__PURE__*/React__default[
|
|
4228
|
+
}) : /*#__PURE__*/React__default["default"].createElement(TagComponent, {
|
|
4215
4229
|
tag: tag,
|
|
4216
4230
|
canvas: canvas,
|
|
4217
4231
|
registryResolver: registryResolver,
|
|
@@ -4223,7 +4237,7 @@ var Tags = /*#__PURE__*/function (_React$Component) {
|
|
|
4223
4237
|
}]);
|
|
4224
4238
|
|
|
4225
4239
|
return Tags;
|
|
4226
|
-
}(React__default[
|
|
4240
|
+
}(React__default["default"].Component);
|
|
4227
4241
|
|
|
4228
4242
|
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); 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); }; }
|
|
4229
4243
|
|
|
@@ -4280,7 +4294,7 @@ var SizeContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
4280
4294
|
_this$props2$dimensio3 = _this$props2$dimensio.height,
|
|
4281
4295
|
height = _this$props2$dimensio3 === void 0 ? 300 : _this$props2$dimensio3,
|
|
4282
4296
|
children = _this$props2.children;
|
|
4283
|
-
return /*#__PURE__*/React__default[
|
|
4297
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4284
4298
|
id: "mi_size_container",
|
|
4285
4299
|
style: {
|
|
4286
4300
|
width: width,
|
|
@@ -4293,7 +4307,7 @@ var SizeContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
4293
4307
|
}]);
|
|
4294
4308
|
|
|
4295
4309
|
return SizeContainer;
|
|
4296
|
-
}(React__default[
|
|
4310
|
+
}(React__default["default"].Component);
|
|
4297
4311
|
|
|
4298
4312
|
var Resolver = /*#__PURE__*/function () {
|
|
4299
4313
|
function Resolver() {
|
|
@@ -4365,11 +4379,11 @@ var freeze$2 = _core.Object.freeze;
|
|
|
4365
4379
|
|
|
4366
4380
|
var freeze$1 = freeze$2;
|
|
4367
4381
|
|
|
4368
|
-
function _createForOfIteratorHelper$
|
|
4382
|
+
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
4383
|
|
|
4370
|
-
function _unsupportedIterableToArray$
|
|
4384
|
+
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
4385
|
|
|
4372
|
-
function _arrayLikeToArray$
|
|
4386
|
+
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
4387
|
var entries$1 = entries$3,
|
|
4374
4388
|
freeze = freeze$1,
|
|
4375
4389
|
create = create$1,
|
|
@@ -4377,7 +4391,7 @@ var entries$1 = entries$3,
|
|
|
4377
4391
|
function contextAccessor(context, cb) {
|
|
4378
4392
|
var wrappedContext = create(null);
|
|
4379
4393
|
|
|
4380
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4394
|
+
var _iterator = _createForOfIteratorHelper$b(entries$1(context)),
|
|
4381
4395
|
_step;
|
|
4382
4396
|
|
|
4383
4397
|
try {
|
|
@@ -4606,11 +4620,11 @@ var weakMap = weakMap$1;
|
|
|
4606
4620
|
|
|
4607
4621
|
var _Symbol$iterator;
|
|
4608
4622
|
|
|
4609
|
-
function _createForOfIteratorHelper$
|
|
4623
|
+
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
4624
|
|
|
4611
|
-
function _unsupportedIterableToArray$
|
|
4625
|
+
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
4626
|
|
|
4613
|
-
function _arrayLikeToArray$
|
|
4627
|
+
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
4628
|
|
|
4615
4629
|
var ERROR_KEY = symbol('error');
|
|
4616
4630
|
|
|
@@ -4671,7 +4685,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
4671
4685
|
while (1) {
|
|
4672
4686
|
switch (_context.prev = _context.next) {
|
|
4673
4687
|
case 0:
|
|
4674
|
-
_iterator = _createForOfIteratorHelper$
|
|
4688
|
+
_iterator = _createForOfIteratorHelper$a(this.cache);
|
|
4675
4689
|
_context.prev = 1;
|
|
4676
4690
|
|
|
4677
4691
|
_iterator.s();
|
|
@@ -4766,7 +4780,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
4766
4780
|
var parts = [];
|
|
4767
4781
|
var reverseObject = {};
|
|
4768
4782
|
|
|
4769
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
4783
|
+
var _iterator2 = _createForOfIteratorHelper$a(this.contextKeys),
|
|
4770
4784
|
_step2;
|
|
4771
4785
|
|
|
4772
4786
|
try {
|
|
@@ -4806,11 +4820,11 @@ function defer() {
|
|
|
4806
4820
|
};
|
|
4807
4821
|
}
|
|
4808
4822
|
|
|
4809
|
-
function _createForOfIteratorHelper$
|
|
4823
|
+
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
4824
|
|
|
4811
|
-
function _unsupportedIterableToArray$
|
|
4825
|
+
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
4826
|
|
|
4813
|
-
function _arrayLikeToArray$
|
|
4827
|
+
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
4828
|
|
|
4815
4829
|
var ComputeThrottler = /*#__PURE__*/function () {
|
|
4816
4830
|
function ComputeThrottler(afterFirst) {
|
|
@@ -4872,7 +4886,7 @@ var ComputeThrottler = /*#__PURE__*/function () {
|
|
|
4872
4886
|
|
|
4873
4887
|
this.queue = [];
|
|
4874
4888
|
|
|
4875
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4889
|
+
var _iterator = _createForOfIteratorHelper$9(queue),
|
|
4876
4890
|
_step;
|
|
4877
4891
|
|
|
4878
4892
|
try {
|
|
@@ -5106,27 +5120,27 @@ function createInertEvent() {
|
|
|
5106
5120
|
return new InertEvent();
|
|
5107
5121
|
}
|
|
5108
5122
|
|
|
5109
|
-
function ownKeys$5(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object);
|
|
5123
|
+
function ownKeys$5(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
5110
5124
|
|
|
5111
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5125
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5112
5126
|
|
|
5113
|
-
function _createForOfIteratorHelper$
|
|
5127
|
+
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
5128
|
|
|
5115
|
-
function _unsupportedIterableToArray$
|
|
5129
|
+
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
5130
|
|
|
5117
|
-
function _arrayLikeToArray$
|
|
5131
|
+
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
5132
|
|
|
5119
5133
|
function deprecateGetContext(key) {
|
|
5120
5134
|
console.warn("DEPRECATED: No longer need to use 'getContext(".concat(key, ")'. You can use 'context.").concat(key, "' instead."));
|
|
5121
5135
|
}
|
|
5122
5136
|
|
|
5123
|
-
var PromiseException = function PromiseException(promise) {
|
|
5137
|
+
var PromiseException = /*#__PURE__*/_createClass(function PromiseException(promise) {
|
|
5124
5138
|
_classCallCheck(this, PromiseException);
|
|
5125
5139
|
|
|
5126
5140
|
_defineProperty(this, "promise", void 0);
|
|
5127
5141
|
|
|
5128
5142
|
this.promise = promise;
|
|
5129
|
-
};
|
|
5143
|
+
});
|
|
5130
5144
|
|
|
5131
5145
|
var DEFAULT_OVERRIDE = function DEFAULT_OVERRIDE(value) {
|
|
5132
5146
|
return value;
|
|
@@ -5222,7 +5236,7 @@ var Property = /*#__PURE__*/function () {
|
|
|
5222
5236
|
};
|
|
5223
5237
|
|
|
5224
5238
|
if (this.memoizeCache) {
|
|
5225
|
-
var _iterator = _createForOfIteratorHelper$
|
|
5239
|
+
var _iterator = _createForOfIteratorHelper$8(this.memoizeCache),
|
|
5226
5240
|
_step;
|
|
5227
5241
|
|
|
5228
5242
|
try {
|
|
@@ -5256,14 +5270,14 @@ var Property = /*#__PURE__*/function () {
|
|
|
5256
5270
|
}, {
|
|
5257
5271
|
key: "finalizeCache",
|
|
5258
5272
|
value: function finalizeCache() {
|
|
5259
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
5273
|
+
var _iterator2 = _createForOfIteratorHelper$8(this.dependentProperties),
|
|
5260
5274
|
_step2;
|
|
5261
5275
|
|
|
5262
5276
|
try {
|
|
5263
5277
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
5264
5278
|
var property = _step2.value;
|
|
5265
5279
|
|
|
5266
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
5280
|
+
var _iterator3 = _createForOfIteratorHelper$8(property.memoizeCache.contextKeys),
|
|
5267
5281
|
_step3;
|
|
5268
5282
|
|
|
5269
5283
|
try {
|
|
@@ -5403,7 +5417,7 @@ var Property = /*#__PURE__*/function () {
|
|
|
5403
5417
|
propsInspected.add(currentProperty);
|
|
5404
5418
|
propsCompleted.add(currentProperty);
|
|
5405
5419
|
|
|
5406
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
5420
|
+
var _iterator4 = _createForOfIteratorHelper$8(currentProperty.dependencies),
|
|
5407
5421
|
_step4;
|
|
5408
5422
|
|
|
5409
5423
|
try {
|
|
@@ -5611,11 +5625,11 @@ var Property = /*#__PURE__*/function () {
|
|
|
5611
5625
|
return Property;
|
|
5612
5626
|
}();
|
|
5613
5627
|
|
|
5614
|
-
function _createForOfIteratorHelper$
|
|
5628
|
+
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
5629
|
|
|
5616
|
-
function _unsupportedIterableToArray$
|
|
5630
|
+
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
5631
|
|
|
5618
|
-
function _arrayLikeToArray$
|
|
5632
|
+
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
5633
|
|
|
5620
5634
|
function generateGroupingKey(grouping, propertyPath) {
|
|
5621
5635
|
return grouping === false ? propertyPath : "".concat(grouping, "::").concat(propertyPath);
|
|
@@ -5687,7 +5701,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5687
5701
|
while (1) {
|
|
5688
5702
|
switch (_context.prev = _context.next) {
|
|
5689
5703
|
case 0:
|
|
5690
|
-
_iterator = _createForOfIteratorHelper$
|
|
5704
|
+
_iterator = _createForOfIteratorHelper$7(this.groupingMap);
|
|
5691
5705
|
_context.prev = 1;
|
|
5692
5706
|
|
|
5693
5707
|
_iterator.s();
|
|
@@ -5725,7 +5739,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5725
5739
|
return _context.finish(15);
|
|
5726
5740
|
|
|
5727
5741
|
case 18:
|
|
5728
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
5742
|
+
_iterator2 = _createForOfIteratorHelper$7(this.globalMap);
|
|
5729
5743
|
_context.prev = 19;
|
|
5730
5744
|
|
|
5731
5745
|
_iterator2.s();
|
|
@@ -5763,7 +5777,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5763
5777
|
return _context.finish(33);
|
|
5764
5778
|
|
|
5765
5779
|
case 36:
|
|
5766
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
5780
|
+
_iterator3 = _createForOfIteratorHelper$7(this.fallbackMap);
|
|
5767
5781
|
_context.prev = 37;
|
|
5768
5782
|
|
|
5769
5783
|
_iterator3.s();
|
|
@@ -5816,7 +5830,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5816
5830
|
while (1) {
|
|
5817
5831
|
switch (_context2.prev = _context2.next) {
|
|
5818
5832
|
case 0:
|
|
5819
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
5833
|
+
_iterator4 = _createForOfIteratorHelper$7(this.groupingMap);
|
|
5820
5834
|
_context2.prev = 1;
|
|
5821
5835
|
|
|
5822
5836
|
_iterator4.s();
|
|
@@ -5853,7 +5867,7 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5853
5867
|
return _context2.finish(14);
|
|
5854
5868
|
|
|
5855
5869
|
case 17:
|
|
5856
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
5870
|
+
_iterator5 = _createForOfIteratorHelper$7(this.globalMap);
|
|
5857
5871
|
_context2.prev = 18;
|
|
5858
5872
|
|
|
5859
5873
|
_iterator5.s();
|
|
@@ -5901,11 +5915,11 @@ var GroupedRegistry = /*#__PURE__*/function () {
|
|
|
5901
5915
|
return GroupedRegistry;
|
|
5902
5916
|
}();
|
|
5903
5917
|
|
|
5904
|
-
function _createForOfIteratorHelper$
|
|
5918
|
+
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
5919
|
|
|
5906
|
-
function _unsupportedIterableToArray$
|
|
5920
|
+
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
5921
|
|
|
5908
|
-
function _arrayLikeToArray$
|
|
5922
|
+
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
5923
|
var entries = entries$3;
|
|
5910
5924
|
|
|
5911
5925
|
function isComputeFn(fn) {
|
|
@@ -5976,7 +5990,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
5976
5990
|
value: function dumpState() {
|
|
5977
5991
|
var result = [];
|
|
5978
5992
|
|
|
5979
|
-
var _iterator = _createForOfIteratorHelper$
|
|
5993
|
+
var _iterator = _createForOfIteratorHelper$6(this.propertyRegistry.values()),
|
|
5980
5994
|
_step;
|
|
5981
5995
|
|
|
5982
5996
|
try {
|
|
@@ -6165,7 +6179,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6165
6179
|
}, {
|
|
6166
6180
|
key: "generateFromGlob",
|
|
6167
6181
|
value: function generateFromGlob(grouping, path) {
|
|
6168
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
6182
|
+
var _iterator2 = _createForOfIteratorHelper$6(this.globProperties.entries()),
|
|
6169
6183
|
_step2;
|
|
6170
6184
|
|
|
6171
6185
|
try {
|
|
@@ -6224,7 +6238,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6224
6238
|
}, {
|
|
6225
6239
|
key: "resetDependencies",
|
|
6226
6240
|
value: function resetDependencies(property) {
|
|
6227
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
6241
|
+
var _iterator3 = _createForOfIteratorHelper$6(this.findAllDependencies(property)),
|
|
6228
6242
|
_step3;
|
|
6229
6243
|
|
|
6230
6244
|
try {
|
|
@@ -6247,7 +6261,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6247
6261
|
while (stack.length > 0) {
|
|
6248
6262
|
var currentProperty = stack.shift();
|
|
6249
6263
|
|
|
6250
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
6264
|
+
var _iterator4 = _createForOfIteratorHelper$6(this.propertyRegistry.values()),
|
|
6251
6265
|
_step4;
|
|
6252
6266
|
|
|
6253
6267
|
try {
|
|
@@ -6276,7 +6290,7 @@ var AsyncComputed = /*#__PURE__*/function () {
|
|
|
6276
6290
|
}();
|
|
6277
6291
|
|
|
6278
6292
|
var ShapeTag = function ShapeTag() {
|
|
6279
|
-
return /*#__PURE__*/React__default[
|
|
6293
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null);
|
|
6280
6294
|
};
|
|
6281
6295
|
|
|
6282
6296
|
// 19.1.3.1 Object.assign(target, source)
|
|
@@ -6302,14 +6316,11 @@ function _extends() {
|
|
|
6302
6316
|
}
|
|
6303
6317
|
|
|
6304
6318
|
return target;
|
|
6305
|
-
};
|
|
6306
|
-
|
|
6307
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
6319
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6308
6320
|
return _extends.apply(this, arguments);
|
|
6309
6321
|
}
|
|
6310
6322
|
|
|
6311
|
-
module.exports = _extends;
|
|
6312
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
6323
|
+
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
6313
6324
|
});
|
|
6314
6325
|
|
|
6315
6326
|
var _extends = unwrapExports(_extends_1);
|
|
@@ -6339,13 +6350,13 @@ var StudioTool = /*#__PURE__*/function (_React$Component) {
|
|
|
6339
6350
|
}]);
|
|
6340
6351
|
|
|
6341
6352
|
return StudioTool;
|
|
6342
|
-
}(React__default[
|
|
6353
|
+
}(React__default["default"].Component);
|
|
6343
6354
|
|
|
6344
|
-
function _createForOfIteratorHelper$
|
|
6355
|
+
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
6356
|
|
|
6346
|
-
function _unsupportedIterableToArray$
|
|
6357
|
+
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
6358
|
|
|
6348
|
-
function _arrayLikeToArray$
|
|
6359
|
+
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
6360
|
function trimTextOverflow(element) {
|
|
6350
6361
|
var parentElement = element.parentElement;
|
|
6351
6362
|
var parentBox = parentElement.getBoundingClientRect(); // It fits already; no need to resize.
|
|
@@ -6405,7 +6416,7 @@ function findPreviousElement(element) {
|
|
|
6405
6416
|
function findOverlappingElement(element, parentBox) {
|
|
6406
6417
|
var children = from_1(element.children);
|
|
6407
6418
|
|
|
6408
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6419
|
+
var _iterator = _createForOfIteratorHelper$5(children),
|
|
6409
6420
|
_step;
|
|
6410
6421
|
|
|
6411
6422
|
try {
|
|
@@ -6478,15 +6489,15 @@ var _parseFloat$1 = _core.parseFloat;
|
|
|
6478
6489
|
|
|
6479
6490
|
var _parseFloat = _parseFloat$1;
|
|
6480
6491
|
|
|
6481
|
-
function _createForOfIteratorHelper$
|
|
6492
|
+
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
6493
|
|
|
6483
|
-
function _unsupportedIterableToArray$
|
|
6494
|
+
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
6495
|
|
|
6485
|
-
function _arrayLikeToArray$
|
|
6496
|
+
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
6497
|
|
|
6487
|
-
function ownKeys$4(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object);
|
|
6498
|
+
function ownKeys$4(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
6488
6499
|
|
|
6489
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6500
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6490
6501
|
var min$1 = Math.min;
|
|
6491
6502
|
function convertToEms(insertProperties, baseFontSize) {
|
|
6492
6503
|
return insertProperties.map(function (prop) {
|
|
@@ -6515,7 +6526,7 @@ function shrinkToFit(element, richTextStructure, baseFontSize, minFontSize) {
|
|
|
6515
6526
|
smallest = min$1(smallest, getFontRatio(op));
|
|
6516
6527
|
|
|
6517
6528
|
if (op.spans) {
|
|
6518
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6529
|
+
var _iterator = _createForOfIteratorHelper$4(op.spans),
|
|
6519
6530
|
_step;
|
|
6520
6531
|
|
|
6521
6532
|
try {
|
|
@@ -6596,9 +6607,9 @@ function makeDynamicProperty(propertyPath) {
|
|
|
6596
6607
|
return dynamicProperty;
|
|
6597
6608
|
}
|
|
6598
6609
|
|
|
6599
|
-
function ownKeys$3(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object);
|
|
6610
|
+
function ownKeys$3(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
6600
6611
|
|
|
6601
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6612
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6602
6613
|
var BAD_WORDS_PROPERTY = makeDynamicProperty('options.filter_bad_words');
|
|
6603
6614
|
var DEFAULT_P_STYLES = {
|
|
6604
6615
|
margin: 0,
|
|
@@ -6707,16 +6718,16 @@ function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeRefl
|
|
|
6707
6718
|
|
|
6708
6719
|
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !construct$1) return false; if (construct$1.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(construct$1(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6709
6720
|
|
|
6710
|
-
function ownKeys$2(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object);
|
|
6721
|
+
function ownKeys$2(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
6711
6722
|
|
|
6712
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6723
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6713
6724
|
|
|
6714
6725
|
var RichTextSpan = function RichTextSpan(_ref) {
|
|
6715
6726
|
var attributes = _ref.attributes,
|
|
6716
6727
|
insert = _ref.insert,
|
|
6717
6728
|
fitToOneLine = _ref.fitToOneLine;
|
|
6718
6729
|
var whiteSpace = fitToOneLine ? 'nowrap' : 'pre-wrap';
|
|
6719
|
-
return /*#__PURE__*/React__default[
|
|
6730
|
+
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
6720
6731
|
style: _objectSpread$2(_objectSpread$2({}, normalizeRichTextStyles(attributes)), {}, {
|
|
6721
6732
|
whiteSpace: whiteSpace
|
|
6722
6733
|
})
|
|
@@ -6734,9 +6745,9 @@ var haveSpans = function haveSpans(spans) {
|
|
|
6734
6745
|
|
|
6735
6746
|
var mapSpans = function mapSpans(spans, fitToOneLine) {
|
|
6736
6747
|
return spans.map(function (span, n) {
|
|
6737
|
-
return isNewLine(span) ? /*#__PURE__*/React__default[
|
|
6748
|
+
return isNewLine(span) ? /*#__PURE__*/React__default["default"].createElement("br", {
|
|
6738
6749
|
key: n
|
|
6739
|
-
}) : /*#__PURE__*/React__default[
|
|
6750
|
+
}) : /*#__PURE__*/React__default["default"].createElement(RichTextSpan, _extends({
|
|
6740
6751
|
key: n
|
|
6741
6752
|
}, span, {
|
|
6742
6753
|
fitToOneLine: fitToOneLine
|
|
@@ -6766,7 +6777,7 @@ var RichTextElement = /*#__PURE__*/function (_StudioTool) {
|
|
|
6766
6777
|
didOverflow: false
|
|
6767
6778
|
});
|
|
6768
6779
|
|
|
6769
|
-
_defineProperty(_assertThisInitialized(_this), "elementRef", /*#__PURE__*/React__default[
|
|
6780
|
+
_defineProperty(_assertThisInitialized(_this), "elementRef", /*#__PURE__*/React__default["default"].createRef());
|
|
6770
6781
|
|
|
6771
6782
|
return _this;
|
|
6772
6783
|
}
|
|
@@ -6853,17 +6864,17 @@ var RichTextElement = /*#__PURE__*/function (_StudioTool) {
|
|
|
6853
6864
|
var style = {
|
|
6854
6865
|
fontSize: baseFontSize
|
|
6855
6866
|
};
|
|
6856
|
-
return /*#__PURE__*/React__default[
|
|
6867
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6857
6868
|
className: "rich-text-element",
|
|
6858
6869
|
ref: this.elementRef,
|
|
6859
6870
|
style: style
|
|
6860
6871
|
}, ops.map(function (_ref3, i) {
|
|
6861
6872
|
var attributes = _ref3.attributes,
|
|
6862
6873
|
spans = _ref3.spans;
|
|
6863
|
-
return /*#__PURE__*/React__default[
|
|
6874
|
+
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
6864
6875
|
style: _objectSpread$2({}, attributes),
|
|
6865
6876
|
key: i
|
|
6866
|
-
}, haveSpans(spans) ? mapSpans(spans, fitToOneLine) : /*#__PURE__*/React__default[
|
|
6877
|
+
}, haveSpans(spans) ? mapSpans(spans, fitToOneLine) : /*#__PURE__*/React__default["default"].createElement("br", null));
|
|
6867
6878
|
}));
|
|
6868
6879
|
}
|
|
6869
6880
|
}], [{
|
|
@@ -6889,7 +6900,7 @@ function ImageTag(_ref) {
|
|
|
6889
6900
|
var isDataURL = imageUrl.match(/^data:/);
|
|
6890
6901
|
|
|
6891
6902
|
if (!isDataURL) {
|
|
6892
|
-
CD__default[
|
|
6903
|
+
CD__default["default"].waitForAsset(imageUrl);
|
|
6893
6904
|
}
|
|
6894
6905
|
|
|
6895
6906
|
var styles = {
|
|
@@ -6899,7 +6910,7 @@ function ImageTag(_ref) {
|
|
|
6899
6910
|
left: '0',
|
|
6900
6911
|
top: '0'
|
|
6901
6912
|
};
|
|
6902
|
-
return /*#__PURE__*/React__default[
|
|
6913
|
+
return /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6903
6914
|
src: imageUrl,
|
|
6904
6915
|
style: styles,
|
|
6905
6916
|
alt: altText,
|
|
@@ -6907,9 +6918,9 @@ function ImageTag(_ref) {
|
|
|
6907
6918
|
});
|
|
6908
6919
|
}
|
|
6909
6920
|
|
|
6910
|
-
function ownKeys$1(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object);
|
|
6921
|
+
function ownKeys$1(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
6911
6922
|
|
|
6912
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6923
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6913
6924
|
|
|
6914
6925
|
var CROPPING_OPTIONS = {
|
|
6915
6926
|
stretched: {
|
|
@@ -6984,17 +6995,17 @@ var DynamicImageTag = /*#__PURE__*/function (_StudioTool) {
|
|
|
6984
6995
|
var isDataURL = src.match(/^data:/);
|
|
6985
6996
|
|
|
6986
6997
|
if (!isDataURL) {
|
|
6987
|
-
CD__default[
|
|
6998
|
+
CD__default["default"].waitForAsset(src);
|
|
6988
6999
|
}
|
|
6989
7000
|
|
|
6990
7001
|
var styleType = isCropped ? 'cropped' : 'contained';
|
|
6991
7002
|
var styles = stylesForImage(src, styleType, imageAnchor);
|
|
6992
|
-
return /*#__PURE__*/React__default[
|
|
7003
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6993
7004
|
className: "studio-dynamic-image",
|
|
6994
7005
|
role: "image",
|
|
6995
7006
|
"aria-label": altText,
|
|
6996
7007
|
style: styles
|
|
6997
|
-
}), /*#__PURE__*/React__default[
|
|
7008
|
+
}), /*#__PURE__*/React__default["default"].createElement("img", {
|
|
6998
7009
|
alt: "hidden",
|
|
6999
7010
|
"aria-hidden": "true",
|
|
7000
7011
|
className: "studio-hidden-dynamic-image",
|
|
@@ -7024,11 +7035,11 @@ var bootstrapApp = (function (resolver) {
|
|
|
7024
7035
|
resolver.registerComponent('image', DynamicImageTag);
|
|
7025
7036
|
});
|
|
7026
7037
|
|
|
7027
|
-
function _createForOfIteratorHelper$
|
|
7038
|
+
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
7039
|
|
|
7029
|
-
function _unsupportedIterableToArray$
|
|
7040
|
+
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
7041
|
|
|
7031
|
-
function _arrayLikeToArray$
|
|
7042
|
+
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
7043
|
|
|
7033
7044
|
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
7045
|
|
|
@@ -7054,7 +7065,7 @@ var App = /*#__PURE__*/function (_React$Component) {
|
|
|
7054
7065
|
_defineProperty(_assertThisInitialized(_this), "pendingProperties", new set());
|
|
7055
7066
|
|
|
7056
7067
|
_defineProperty(_assertThisInitialized(_this), "onPendingPromise", function (promises) {
|
|
7057
|
-
var _iterator = _createForOfIteratorHelper$
|
|
7068
|
+
var _iterator = _createForOfIteratorHelper$3(promises),
|
|
7058
7069
|
_step;
|
|
7059
7070
|
|
|
7060
7071
|
try {
|
|
@@ -7185,11 +7196,11 @@ var App = /*#__PURE__*/function (_React$Component) {
|
|
|
7185
7196
|
clickthroughURL = _this$props.clickthroughURL,
|
|
7186
7197
|
dimensions = _this$props.dimensions,
|
|
7187
7198
|
canvas = _this$props.canvas;
|
|
7188
|
-
var container = /*#__PURE__*/React__default[
|
|
7199
|
+
var container = /*#__PURE__*/React__default["default"].createElement(SizeContainer, {
|
|
7189
7200
|
dimensions: dimensions || this.dimensionsDefault,
|
|
7190
7201
|
registryResolver: registryResolver,
|
|
7191
7202
|
canvas: canvas
|
|
7192
|
-
}, /*#__PURE__*/React__default[
|
|
7203
|
+
}, /*#__PURE__*/React__default["default"].createElement(Tags, {
|
|
7193
7204
|
tags: tags || [],
|
|
7194
7205
|
canvas: canvas,
|
|
7195
7206
|
registryResolver: registryResolver,
|
|
@@ -7198,7 +7209,7 @@ var App = /*#__PURE__*/function (_React$Component) {
|
|
|
7198
7209
|
}));
|
|
7199
7210
|
|
|
7200
7211
|
if (clickthroughURL) {
|
|
7201
|
-
return /*#__PURE__*/React__default[
|
|
7212
|
+
return /*#__PURE__*/React__default["default"].createElement("a", {
|
|
7202
7213
|
id: "mi_dynamic_link",
|
|
7203
7214
|
href: clickthroughURL,
|
|
7204
7215
|
rel: "noopener noreferrer",
|
|
@@ -7211,7 +7222,7 @@ var App = /*#__PURE__*/function (_React$Component) {
|
|
|
7211
7222
|
}]);
|
|
7212
7223
|
|
|
7213
7224
|
return App;
|
|
7214
|
-
}(React__default[
|
|
7225
|
+
}(React__default["default"].Component);
|
|
7215
7226
|
|
|
7216
7227
|
function parseCanvases(parsed) {
|
|
7217
7228
|
var canvases = parsed.canvases;
|
|
@@ -7265,7 +7276,7 @@ function setupAppDefaults() {
|
|
|
7265
7276
|
} : _MI$options,
|
|
7266
7277
|
_MI$namespacedOptions = MI.namespacedOptions,
|
|
7267
7278
|
namespacedOptions = _MI$namespacedOptions === void 0 ? [] : _MI$namespacedOptions;
|
|
7268
|
-
var queryParams = CD__default[
|
|
7279
|
+
var queryParams = CD__default["default"].params();
|
|
7269
7280
|
var attributes = document.querySelector('.mi-attributes');
|
|
7270
7281
|
|
|
7271
7282
|
var _ref2 = attributes && attributes.innerText ? parseAttributes(attributes) : {
|
|
@@ -7341,7 +7352,7 @@ var n=function(t,s,r,e){var u;s[0]=0;for(var h=1;h<s.length;h++){var p=s[h++],a=
|
|
|
7341
7352
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); 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); }; }
|
|
7342
7353
|
|
|
7343
7354
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !construct$1) return false; if (construct$1.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(construct$1(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7344
|
-
var html = htm.bind(React__default[
|
|
7355
|
+
var html = htm.bind(React__default["default"].createElement);
|
|
7345
7356
|
function makeCustomTool(toolData) {
|
|
7346
7357
|
return /*#__PURE__*/function (_StudioTool) {
|
|
7347
7358
|
_inherits(CustomTool, _StudioTool);
|
|
@@ -7380,7 +7391,7 @@ function makeCustomTool(toolData) {
|
|
|
7380
7391
|
var contextValues = contextOptionsInputs.map(function (input) {
|
|
7381
7392
|
return tag.toolProperties[input.name];
|
|
7382
7393
|
});
|
|
7383
|
-
return Tool.apply(void 0, _toConsumableArray(propertyValues).concat(_toConsumableArray(contextValues), [html, CD__default[
|
|
7394
|
+
return Tool.apply(void 0, _toConsumableArray(propertyValues).concat(_toConsumableArray(contextValues), [html, CD__default["default"], tag]));
|
|
7384
7395
|
}
|
|
7385
7396
|
}], [{
|
|
7386
7397
|
key: "dynamicProperties",
|
|
@@ -7463,9 +7474,113 @@ function addBrowserContent(baseElement) {
|
|
|
7463
7474
|
rootNode.body.appendChild(script);
|
|
7464
7475
|
}
|
|
7465
7476
|
|
|
7466
|
-
|
|
7477
|
+
var COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO = 5;
|
|
7478
|
+
|
|
7479
|
+
var stringMatch = function stringMatch(original, comparable, ignoreRegExp) {
|
|
7480
|
+
return original.replace(ignoreRegExp, '') === comparable;
|
|
7481
|
+
};
|
|
7482
|
+
|
|
7483
|
+
var studioOverwritableJs = 'var app = new studio[a-zA-Z0-9]*.A\\(\\);';
|
|
7484
|
+
var jsIgnoreRE = new RegExp("\\s|".concat(studioOverwritableJs), 'g');
|
|
7485
|
+
var jsCompareString = "(function(){app.render(document.getElementById('react-root')).then(function(){window.APP_SUCCESSFULLY_RENDERED=true;});})();";
|
|
7486
|
+
var isPristinePicJsTag = function isPristinePicJsTag(scriptTag) {
|
|
7487
|
+
var script = scriptTag.innerHTML;
|
|
7488
|
+
return stringMatch(script, jsCompareString, jsIgnoreRE);
|
|
7489
|
+
};
|
|
7490
|
+
var isDocumentEligibleForStaticHandling = function isDocumentEligibleForStaticHandling(rootNode) {
|
|
7491
|
+
var document = getDocumentNode(rootNode);
|
|
7492
|
+
var scriptTags = document.getElementsByTagName('script');
|
|
7493
|
+
|
|
7494
|
+
var hasTagContainingPristinePicJs = from_1(scriptTags).some(isPristinePicJsTag);
|
|
7495
|
+
|
|
7496
|
+
if (!hasTagContainingPristinePicJs) {
|
|
7497
|
+
console.log('static status is false - user-altered js detected');
|
|
7498
|
+
return false;
|
|
7499
|
+
}
|
|
7500
|
+
|
|
7501
|
+
if (scriptTags.length > COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO) {
|
|
7502
|
+
console.log('static status is false - user-added script tags detected');
|
|
7503
|
+
return false;
|
|
7504
|
+
}
|
|
7505
|
+
|
|
7506
|
+
return true;
|
|
7507
|
+
};
|
|
7508
|
+
|
|
7509
|
+
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; } } }; }
|
|
7510
|
+
|
|
7511
|
+
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); }
|
|
7512
|
+
|
|
7513
|
+
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; }
|
|
7514
|
+
var basicTypes = new set(['group', 'image', 'rectangle', 'richText', 'staticPic', 'text']);
|
|
7515
|
+
|
|
7516
|
+
var isTagStatic = function isTagStatic(tag) {
|
|
7517
|
+
var appliedElementModifiers = tag.appliedElementModifiers,
|
|
7518
|
+
conditionalDynamicProperty = tag.conditionalDynamicProperty,
|
|
7519
|
+
dynamicAltText = tag.dynamicAltText,
|
|
7520
|
+
dynamicProperty = tag.dynamicProperty,
|
|
7521
|
+
richText = tag.richText,
|
|
7522
|
+
subtags = tag.subtags,
|
|
7523
|
+
type = tag.type;
|
|
7524
|
+
if (subtags !== null && subtags !== void 0 && subtags.length) return subtags.some(isTagStatic);
|
|
7525
|
+
var isCustomTool = type.startsWith('customTool.');
|
|
7526
|
+
var hasDynamicRichText = richText === null || richText === void 0 ? void 0 : richText.some(function (_ref) {
|
|
7527
|
+
var insert = _ref.insert;
|
|
7528
|
+
return _typeof(insert) === 'object' && insert.dynamicProperty;
|
|
7529
|
+
});
|
|
7530
|
+
if (appliedElementModifiers || !basicTypes.has(type) || conditionalDynamicProperty || dynamicAltText || dynamicProperty || hasDynamicRichText || isCustomTool) return false;
|
|
7531
|
+
return true;
|
|
7532
|
+
};
|
|
7533
|
+
|
|
7534
|
+
var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
7535
|
+
var canvases = attributes.canvases;
|
|
7536
|
+
|
|
7537
|
+
var _iterator = _createForOfIteratorHelper$2(canvases),
|
|
7538
|
+
_step;
|
|
7539
|
+
|
|
7540
|
+
try {
|
|
7541
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7542
|
+
var _step$value = _step.value,
|
|
7543
|
+
appliedElementModifiers = _step$value.appliedElementModifiers,
|
|
7544
|
+
_step$value$tags = _step$value.tags,
|
|
7545
|
+
tags = _step$value$tags === void 0 ? [] : _step$value$tags,
|
|
7546
|
+
clickthroughDynamicProperty = _step$value.clickthroughDynamicProperty,
|
|
7547
|
+
conditionalDynamicProperty = _step$value.conditionalDynamicProperty;
|
|
7548
|
+
|
|
7549
|
+
if (appliedElementModifiers || clickthroughDynamicProperty || conditionalDynamicProperty) {
|
|
7550
|
+
console.log('static status is false - dynamic properties on canvas detected');
|
|
7551
|
+
return false;
|
|
7552
|
+
}
|
|
7553
|
+
|
|
7554
|
+
var _iterator2 = _createForOfIteratorHelper$2(tags),
|
|
7555
|
+
_step2;
|
|
7556
|
+
|
|
7557
|
+
try {
|
|
7558
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7559
|
+
var tag = _step2.value;
|
|
7560
|
+
|
|
7561
|
+
if (!isTagStatic(tag)) {
|
|
7562
|
+
console.log('static status is false - dynamic properties on tag detected');
|
|
7563
|
+
return false;
|
|
7564
|
+
}
|
|
7565
|
+
}
|
|
7566
|
+
} catch (err) {
|
|
7567
|
+
_iterator2.e(err);
|
|
7568
|
+
} finally {
|
|
7569
|
+
_iterator2.f();
|
|
7570
|
+
}
|
|
7571
|
+
}
|
|
7572
|
+
} catch (err) {
|
|
7573
|
+
_iterator.e(err);
|
|
7574
|
+
} finally {
|
|
7575
|
+
_iterator.f();
|
|
7576
|
+
}
|
|
7577
|
+
|
|
7578
|
+
return true;
|
|
7579
|
+
};
|
|
7467
7580
|
|
|
7468
|
-
function
|
|
7581
|
+
function ownKeys(object, enumerableOnly) { var keys$1 = keys(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys$1.push.apply(keys$1, symbols); } return keys$1; }
|
|
7582
|
+
|
|
7583
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7469
7584
|
|
|
7470
7585
|
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof symbol !== "undefined" && o[iterator] || o["@@iterator"]; if (!it) { if (isArray(o) || (it = _unsupportedIterableToArray$1(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; } } }; }
|
|
7471
7586
|
|
|
@@ -7475,7 +7590,8 @@ function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) le
|
|
|
7475
7590
|
|
|
7476
7591
|
var StudioFramework = /*#__PURE__*/function () {
|
|
7477
7592
|
function StudioFramework() {
|
|
7478
|
-
var _this = this
|
|
7593
|
+
var _this = this,
|
|
7594
|
+
_window$MICapture;
|
|
7479
7595
|
|
|
7480
7596
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : setupAppDefaults();
|
|
7481
7597
|
|
|
@@ -7502,7 +7618,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7502
7618
|
_defineProperty(this, "namespacedOptions", void 0);
|
|
7503
7619
|
|
|
7504
7620
|
_defineProperty(this, "debug", {
|
|
7505
|
-
CD: CD__default[
|
|
7621
|
+
CD: CD__default["default"],
|
|
7506
7622
|
enableDebugMode: function enableDebugMode() {
|
|
7507
7623
|
_this.asyncComputed.enableEvents();
|
|
7508
7624
|
},
|
|
@@ -7558,6 +7674,12 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7558
7674
|
namespacedOptions = _opts$namespacedOptio === void 0 ? [] : _opts$namespacedOptio,
|
|
7559
7675
|
_opts$queryParams = opts.queryParams,
|
|
7560
7676
|
queryParams = _opts$queryParams === void 0 ? {} : _opts$queryParams;
|
|
7677
|
+
|
|
7678
|
+
if ((_window$MICapture = window.MICapture) !== null && _window$MICapture !== void 0 && _window$MICapture.isPreview) {
|
|
7679
|
+
console.log('static status is true - static check has started');
|
|
7680
|
+
window.RENDERED_STATICALLY = true;
|
|
7681
|
+
}
|
|
7682
|
+
|
|
7561
7683
|
this.options = options;
|
|
7562
7684
|
this.namespacedOptions = namespacedOptions;
|
|
7563
7685
|
this.customProps = customProps;
|
|
@@ -7575,7 +7697,24 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7575
7697
|
return queryParams;
|
|
7576
7698
|
});
|
|
7577
7699
|
animation(this);
|
|
7578
|
-
|
|
7700
|
+
|
|
7701
|
+
if (this.shouldPerformStaticCheck) {
|
|
7702
|
+
var proxy = new Proxy(this, {
|
|
7703
|
+
set: function set(target, key, value) {
|
|
7704
|
+
if (key in target && key !== 'currentGrouping') {
|
|
7705
|
+
window.RENDERED_STATICALLY = false;
|
|
7706
|
+
console.log("static status is false - overridden StudioFramework class method ", key);
|
|
7707
|
+
}
|
|
7708
|
+
|
|
7709
|
+
return set$2(target, key, value);
|
|
7710
|
+
}
|
|
7711
|
+
});
|
|
7712
|
+
this.setup.call(proxy);
|
|
7713
|
+
if (this.shouldPerformStaticCheck) window.RENDERED_STATICALLY = areAttributesStatic(opts);
|
|
7714
|
+
} else {
|
|
7715
|
+
this.setup();
|
|
7716
|
+
}
|
|
7717
|
+
|
|
7579
7718
|
this.setupOptions();
|
|
7580
7719
|
this.setupNamespacedOptions();
|
|
7581
7720
|
this.setupCustomTools();
|
|
@@ -7584,6 +7723,13 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7584
7723
|
}
|
|
7585
7724
|
|
|
7586
7725
|
_createClass(StudioFramework, [{
|
|
7726
|
+
key: "shouldPerformStaticCheck",
|
|
7727
|
+
get: function get() {
|
|
7728
|
+
var _window$MICapture2;
|
|
7729
|
+
|
|
7730
|
+
return ((_window$MICapture2 = window.MICapture) === null || _window$MICapture2 === void 0 ? void 0 : _window$MICapture2.isPreview) && window.RENDERED_STATICALLY;
|
|
7731
|
+
}
|
|
7732
|
+
}, {
|
|
7587
7733
|
key: "triggerRerender",
|
|
7588
7734
|
value: function triggerRerender() {
|
|
7589
7735
|
if (this.appComponent) {
|
|
@@ -8016,7 +8162,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8016
8162
|
throw new Error('The result of `analyticsData` must be an object');
|
|
8017
8163
|
|
|
8018
8164
|
case 7:
|
|
8019
|
-
CD__default[
|
|
8165
|
+
CD__default["default"].setExtraData(analyticsData);
|
|
8020
8166
|
|
|
8021
8167
|
case 8:
|
|
8022
8168
|
case "end":
|
|
@@ -8038,7 +8184,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8038
8184
|
var _this3 = this;
|
|
8039
8185
|
|
|
8040
8186
|
return new promise(function (resolve, reject) {
|
|
8041
|
-
ReactDOM__default[
|
|
8187
|
+
ReactDOM__default["default"].render( /*#__PURE__*/React__default["default"].createElement(App, {
|
|
8042
8188
|
asyncComputed: _this3.asyncComputed,
|
|
8043
8189
|
clickthroughURL: clickthroughURL,
|
|
8044
8190
|
resolver: _this3.resolver,
|
|
@@ -8239,19 +8385,19 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8239
8385
|
key: "handleRenderError",
|
|
8240
8386
|
value: function handleRenderError(e) {
|
|
8241
8387
|
console.error(e);
|
|
8242
|
-
CD__default[
|
|
8388
|
+
CD__default["default"].throwError(e);
|
|
8243
8389
|
throw e;
|
|
8244
8390
|
}
|
|
8245
8391
|
}, {
|
|
8246
8392
|
key: "handleAndPreventFutureAnalyticsCalls",
|
|
8247
8393
|
value: function handleAndPreventFutureAnalyticsCalls(data) {
|
|
8248
|
-
var _window$
|
|
8394
|
+
var _window$MICapture3;
|
|
8249
8395
|
|
|
8250
8396
|
if (_typeof(data) !== 'object') {
|
|
8251
8397
|
throw new Error('The result of `analyticsData` must be an object');
|
|
8252
8398
|
}
|
|
8253
8399
|
|
|
8254
|
-
var format = (_window$
|
|
8400
|
+
var format = (_window$MICapture3 = window.MICapture) === null || _window$MICapture3 === void 0 ? void 0 : _window$MICapture3.format;
|
|
8255
8401
|
var analytics = document.querySelector('#mi-data');
|
|
8256
8402
|
|
|
8257
8403
|
if (format === 'html') {
|
|
@@ -8265,29 +8411,29 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8265
8411
|
|
|
8266
8412
|
|
|
8267
8413
|
if (analytics) document.querySelector('#mi-data').remove();
|
|
8268
|
-
CD__default[
|
|
8414
|
+
CD__default["default"].setExtraData(data);
|
|
8269
8415
|
|
|
8270
|
-
CD__default[
|
|
8416
|
+
CD__default["default"].setExtraData = function () {
|
|
8271
8417
|
console.log('setExtraData call was prevented via handleAndPreventFutureAnalyticsCalls');
|
|
8272
8418
|
};
|
|
8273
8419
|
|
|
8274
|
-
CD__default[
|
|
8420
|
+
CD__default["default"].resume();
|
|
8275
8421
|
}
|
|
8276
8422
|
}, {
|
|
8277
8423
|
key: "render",
|
|
8278
8424
|
value: function () {
|
|
8279
8425
|
var _render = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee7(targetElement) {
|
|
8280
|
-
var _window$
|
|
8426
|
+
var _window$MICapture4;
|
|
8281
8427
|
|
|
8282
|
-
var currentCanvas, _currentCanvas, _window$
|
|
8428
|
+
var currentCanvas, _currentCanvas, _window$MICapture5, clickthroughURL, canvasTags, tags, height, width, format, renderPromise, analyticsDataPromise, wrappedError;
|
|
8283
8429
|
|
|
8284
8430
|
return regenerator.wrap(function _callee7$(_context7) {
|
|
8285
8431
|
while (1) {
|
|
8286
8432
|
switch (_context7.prev = _context7.next) {
|
|
8287
8433
|
case 0:
|
|
8288
|
-
if ((_window$
|
|
8434
|
+
if ((_window$MICapture4 = window.MICapture) !== null && _window$MICapture4 !== void 0 && _window$MICapture4.isPreview) console.log('Preview Render');
|
|
8289
8435
|
_context7.prev = 1;
|
|
8290
|
-
CD__default[
|
|
8436
|
+
CD__default["default"].pause();
|
|
8291
8437
|
_context7.next = 5;
|
|
8292
8438
|
return this.getCurrentCanvas();
|
|
8293
8439
|
|
|
@@ -8306,7 +8452,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8306
8452
|
tags = _context7.sent;
|
|
8307
8453
|
height = currentCanvas.height || this.options.height;
|
|
8308
8454
|
width = currentCanvas.width || this.options.width;
|
|
8309
|
-
format = (_window$
|
|
8455
|
+
format = (_window$MICapture5 = window.MICapture) === null || _window$MICapture5 === void 0 ? void 0 : _window$MICapture5.format;
|
|
8310
8456
|
renderPromise = this.renderApp(targetElement, clickthroughURL, tags, {
|
|
8311
8457
|
height: height,
|
|
8312
8458
|
width: width
|
|
@@ -8320,31 +8466,39 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8320
8466
|
this.setupAnimation();
|
|
8321
8467
|
}
|
|
8322
8468
|
|
|
8469
|
+
if (this.shouldPerformStaticCheck) {
|
|
8470
|
+
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) {
|
|
8471
|
+
console.log('static status is true - static check has finished');
|
|
8472
|
+
} else {
|
|
8473
|
+
console.log('static status is false - static check has finished');
|
|
8474
|
+
}
|
|
8475
|
+
}
|
|
8476
|
+
|
|
8323
8477
|
if (format === 'html') {
|
|
8324
8478
|
cleanHTML(targetElement);
|
|
8325
8479
|
addBrowserContent(targetElement);
|
|
8326
8480
|
}
|
|
8327
8481
|
|
|
8328
|
-
_context7.next =
|
|
8482
|
+
_context7.next = 29;
|
|
8329
8483
|
break;
|
|
8330
8484
|
|
|
8331
|
-
case
|
|
8332
|
-
_context7.prev =
|
|
8485
|
+
case 25:
|
|
8486
|
+
_context7.prev = 25;
|
|
8333
8487
|
_context7.t0 = _context7["catch"](1);
|
|
8334
8488
|
wrappedError = StudioErrorWrapper(_context7.t0).setCanvas(currentCanvas);
|
|
8335
8489
|
this.handleRenderError(wrappedError);
|
|
8336
8490
|
|
|
8337
|
-
case
|
|
8338
|
-
_context7.prev =
|
|
8339
|
-
CD__default[
|
|
8340
|
-
return _context7.finish(
|
|
8491
|
+
case 29:
|
|
8492
|
+
_context7.prev = 29;
|
|
8493
|
+
CD__default["default"].resume();
|
|
8494
|
+
return _context7.finish(29);
|
|
8341
8495
|
|
|
8342
|
-
case
|
|
8496
|
+
case 32:
|
|
8343
8497
|
case "end":
|
|
8344
8498
|
return _context7.stop();
|
|
8345
8499
|
}
|
|
8346
8500
|
}
|
|
8347
|
-
}, _callee7, this, [[1,
|
|
8501
|
+
}, _callee7, this, [[1, 25, 29, 32]]);
|
|
8348
8502
|
}));
|
|
8349
8503
|
|
|
8350
8504
|
function render(_x6) {
|
|
@@ -8363,8 +8517,7 @@ function _toArray(arr) {
|
|
|
8363
8517
|
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
|
|
8364
8518
|
}
|
|
8365
8519
|
|
|
8366
|
-
module.exports = _toArray;
|
|
8367
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8520
|
+
module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8368
8521
|
});
|
|
8369
8522
|
|
|
8370
8523
|
var _toArray = unwrapExports(toArray);
|
|
@@ -8809,5 +8962,5 @@ exports.App = App;
|
|
|
8809
8962
|
exports.StudioError = StudioError;
|
|
8810
8963
|
exports.StudioTool = StudioTool;
|
|
8811
8964
|
exports.computedPath = computedPath;
|
|
8812
|
-
exports
|
|
8965
|
+
exports["default"] = StudioFramework;
|
|
8813
8966
|
exports.makeDynamicProperty = makeDynamicProperty;
|