@movable/studio-framework 2.40.0-redondo-beach → 2.40.0-redondo-beach.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +33 -13
- package/dist/index.js +33 -13
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -7675,7 +7675,12 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7675
7675
|
namespacedOptions = _opts$namespacedOptio === void 0 ? [] : _opts$namespacedOptio,
|
|
7676
7676
|
_opts$queryParams = opts.queryParams,
|
|
7677
7677
|
queryParams = _opts$queryParams === void 0 ? {} : _opts$queryParams;
|
|
7678
|
-
|
|
7678
|
+
|
|
7679
|
+
if ((_window$MICapture = window.MICapture) !== null && _window$MICapture !== void 0 && _window$MICapture.isPreview) {
|
|
7680
|
+
console.log('static status is true - static check has started');
|
|
7681
|
+
window.RENDERED_STATICALLY = true;
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7679
7684
|
this.options = options;
|
|
7680
7685
|
this.namespacedOptions = namespacedOptions;
|
|
7681
7686
|
this.customProps = customProps;
|
|
@@ -7697,12 +7702,21 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7697
7702
|
if (this.shouldPerformStaticCheck) {
|
|
7698
7703
|
var proxy = new Proxy(this, {
|
|
7699
7704
|
set: function set(target, key, value) {
|
|
7700
|
-
if (key in target)
|
|
7705
|
+
if (key in target) {
|
|
7706
|
+
window.RENDERED_STATICALLY = false;
|
|
7707
|
+
console.log("static status is false - overidden StudioFramework class method ".concat(key.toString().match(/\(.*\)/)));
|
|
7708
|
+
}
|
|
7709
|
+
|
|
7701
7710
|
return set$2(target, key, value);
|
|
7702
7711
|
}
|
|
7703
7712
|
});
|
|
7704
7713
|
this.setup.call(proxy);
|
|
7705
|
-
|
|
7714
|
+
|
|
7715
|
+
if (this.shouldPerformStaticCheck) {
|
|
7716
|
+
if (!(window.RENDERED_STATICALLY = areAttributesStatic(opts))) {
|
|
7717
|
+
console.log('static status is false - presentationAttributes are not static');
|
|
7718
|
+
}
|
|
7719
|
+
}
|
|
7706
7720
|
} else {
|
|
7707
7721
|
this.setup();
|
|
7708
7722
|
}
|
|
@@ -8458,34 +8472,40 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8458
8472
|
this.setupAnimation();
|
|
8459
8473
|
}
|
|
8460
8474
|
|
|
8461
|
-
if (this.shouldPerformStaticCheck
|
|
8462
|
-
|
|
8475
|
+
if (this.shouldPerformStaticCheck) {
|
|
8476
|
+
if (!(window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement))) {
|
|
8477
|
+
console.log('static status is false - scripts have been altered by the user');
|
|
8478
|
+
} else {
|
|
8479
|
+
console.log('static status is true - static check has finished');
|
|
8480
|
+
console.log('App is static.');
|
|
8481
|
+
}
|
|
8482
|
+
}
|
|
8463
8483
|
|
|
8464
8484
|
if (format === 'html') {
|
|
8465
8485
|
cleanHTML(targetElement);
|
|
8466
8486
|
addBrowserContent(targetElement);
|
|
8467
8487
|
}
|
|
8468
8488
|
|
|
8469
|
-
_context7.next =
|
|
8489
|
+
_context7.next = 29;
|
|
8470
8490
|
break;
|
|
8471
8491
|
|
|
8472
|
-
case
|
|
8473
|
-
_context7.prev =
|
|
8492
|
+
case 25:
|
|
8493
|
+
_context7.prev = 25;
|
|
8474
8494
|
_context7.t0 = _context7["catch"](1);
|
|
8475
8495
|
wrappedError = StudioErrorWrapper(_context7.t0).setCanvas(currentCanvas);
|
|
8476
8496
|
this.handleRenderError(wrappedError);
|
|
8477
8497
|
|
|
8478
|
-
case
|
|
8479
|
-
_context7.prev =
|
|
8498
|
+
case 29:
|
|
8499
|
+
_context7.prev = 29;
|
|
8480
8500
|
CD.resume();
|
|
8481
|
-
return _context7.finish(
|
|
8501
|
+
return _context7.finish(29);
|
|
8482
8502
|
|
|
8483
|
-
case
|
|
8503
|
+
case 32:
|
|
8484
8504
|
case "end":
|
|
8485
8505
|
return _context7.stop();
|
|
8486
8506
|
}
|
|
8487
8507
|
}
|
|
8488
|
-
}, _callee7, this, [[1,
|
|
8508
|
+
}, _callee7, this, [[1, 25, 29, 32]]);
|
|
8489
8509
|
}));
|
|
8490
8510
|
|
|
8491
8511
|
function render(_x6) {
|
package/dist/index.js
CHANGED
|
@@ -7685,7 +7685,12 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7685
7685
|
namespacedOptions = _opts$namespacedOptio === void 0 ? [] : _opts$namespacedOptio,
|
|
7686
7686
|
_opts$queryParams = opts.queryParams,
|
|
7687
7687
|
queryParams = _opts$queryParams === void 0 ? {} : _opts$queryParams;
|
|
7688
|
-
|
|
7688
|
+
|
|
7689
|
+
if ((_window$MICapture = window.MICapture) !== null && _window$MICapture !== void 0 && _window$MICapture.isPreview) {
|
|
7690
|
+
console.log('static status is true - static check has started');
|
|
7691
|
+
window.RENDERED_STATICALLY = true;
|
|
7692
|
+
}
|
|
7693
|
+
|
|
7689
7694
|
this.options = options;
|
|
7690
7695
|
this.namespacedOptions = namespacedOptions;
|
|
7691
7696
|
this.customProps = customProps;
|
|
@@ -7707,12 +7712,21 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7707
7712
|
if (this.shouldPerformStaticCheck) {
|
|
7708
7713
|
var proxy = new Proxy(this, {
|
|
7709
7714
|
set: function set(target, key, value) {
|
|
7710
|
-
if (key in target)
|
|
7715
|
+
if (key in target) {
|
|
7716
|
+
window.RENDERED_STATICALLY = false;
|
|
7717
|
+
console.log("static status is false - overidden StudioFramework class method ".concat(key.toString().match(/\(.*\)/)));
|
|
7718
|
+
}
|
|
7719
|
+
|
|
7711
7720
|
return set$2(target, key, value);
|
|
7712
7721
|
}
|
|
7713
7722
|
});
|
|
7714
7723
|
this.setup.call(proxy);
|
|
7715
|
-
|
|
7724
|
+
|
|
7725
|
+
if (this.shouldPerformStaticCheck) {
|
|
7726
|
+
if (!(window.RENDERED_STATICALLY = areAttributesStatic(opts))) {
|
|
7727
|
+
console.log('static status is false - presentationAttributes are not static');
|
|
7728
|
+
}
|
|
7729
|
+
}
|
|
7716
7730
|
} else {
|
|
7717
7731
|
this.setup();
|
|
7718
7732
|
}
|
|
@@ -8468,34 +8482,40 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8468
8482
|
this.setupAnimation();
|
|
8469
8483
|
}
|
|
8470
8484
|
|
|
8471
|
-
if (this.shouldPerformStaticCheck
|
|
8472
|
-
|
|
8485
|
+
if (this.shouldPerformStaticCheck) {
|
|
8486
|
+
if (!(window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement))) {
|
|
8487
|
+
console.log('static status is false - scripts have been altered by the user');
|
|
8488
|
+
} else {
|
|
8489
|
+
console.log('static status is true - static check has finished');
|
|
8490
|
+
console.log('App is static.');
|
|
8491
|
+
}
|
|
8492
|
+
}
|
|
8473
8493
|
|
|
8474
8494
|
if (format === 'html') {
|
|
8475
8495
|
cleanHTML(targetElement);
|
|
8476
8496
|
addBrowserContent(targetElement);
|
|
8477
8497
|
}
|
|
8478
8498
|
|
|
8479
|
-
_context7.next =
|
|
8499
|
+
_context7.next = 29;
|
|
8480
8500
|
break;
|
|
8481
8501
|
|
|
8482
|
-
case
|
|
8483
|
-
_context7.prev =
|
|
8502
|
+
case 25:
|
|
8503
|
+
_context7.prev = 25;
|
|
8484
8504
|
_context7.t0 = _context7["catch"](1);
|
|
8485
8505
|
wrappedError = StudioErrorWrapper(_context7.t0).setCanvas(currentCanvas);
|
|
8486
8506
|
this.handleRenderError(wrappedError);
|
|
8487
8507
|
|
|
8488
|
-
case
|
|
8489
|
-
_context7.prev =
|
|
8508
|
+
case 29:
|
|
8509
|
+
_context7.prev = 29;
|
|
8490
8510
|
CD__default['default'].resume();
|
|
8491
|
-
return _context7.finish(
|
|
8511
|
+
return _context7.finish(29);
|
|
8492
8512
|
|
|
8493
|
-
case
|
|
8513
|
+
case 32:
|
|
8494
8514
|
case "end":
|
|
8495
8515
|
return _context7.stop();
|
|
8496
8516
|
}
|
|
8497
8517
|
}
|
|
8498
|
-
}, _callee7, this, [[1,
|
|
8518
|
+
}, _callee7, this, [[1, 25, 29, 32]]);
|
|
8499
8519
|
}));
|
|
8500
8520
|
|
|
8501
8521
|
function render(_x6) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework",
|
|
3
|
-
"version": "2.40.0-redondo-beach",
|
|
3
|
+
"version": "2.40.0-redondo-beach.1",
|
|
4
4
|
"description": "A Component library for reactive Studio apps.",
|
|
5
5
|
"author": "Movable Ink",
|
|
6
6
|
"repository": "movableink/studio-framework",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@babel/preset-react": "^7.14.5",
|
|
36
36
|
"@babel/preset-typescript": "^7.13.0",
|
|
37
37
|
"@movable/eslint-config-react": "^1.0.1",
|
|
38
|
-
"@movable/framework-types": "^2.40.0-redondo-beach",
|
|
39
|
-
"@movable/studio-framework-test-helpers": "^2.40.0-redondo-beach",
|
|
38
|
+
"@movable/framework-types": "^2.40.0-redondo-beach.1",
|
|
39
|
+
"@movable/studio-framework-test-helpers": "^2.40.0-redondo-beach.1",
|
|
40
40
|
"@types/qunit": "^2.11.1",
|
|
41
41
|
"@types/qunit-dom": "^0.7.0",
|
|
42
42
|
"@types/react": "^17.0.6",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"volta": {
|
|
69
69
|
"extends": "../../package.json"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "24e218f663c2ae24d27152472403a43835a9218f"
|
|
72
72
|
}
|