@movable/studio-framework 2.40.0-redondo-beach.2 → 2.40.0-redondo-beach.5
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 +15 -15
- package/dist/index.js +15 -15
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -7498,7 +7498,7 @@ var stringMatch = function stringMatch(original, comparable, ignoreRegExp) {
|
|
|
7498
7498
|
};
|
|
7499
7499
|
|
|
7500
7500
|
var studioOverwritableJs = 'var app = new studio[a-zA-Z0-9]*.A\\(\\);';
|
|
7501
|
-
var jsIgnoreRE = new RegExp("\\s|".concat(studioOverwritableJs));
|
|
7501
|
+
var jsIgnoreRE = new RegExp("\\s|".concat(studioOverwritableJs), 'g');
|
|
7502
7502
|
var jsCompareString = "(function(){app.render(document.getElementById('react-root')).then(function(){window.APP_SUCCESSFULLY_RENDERED=true;});})();";
|
|
7503
7503
|
var isPristinePicJsTag = function isPristinePicJsTag(scriptTag) {
|
|
7504
7504
|
var script = scriptTag.innerHTML;
|
|
@@ -7562,7 +7562,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7562
7562
|
tags = _step$value$tags === void 0 ? [] : _step$value$tags,
|
|
7563
7563
|
clickthroughDynamicProperty = _step$value.clickthroughDynamicProperty,
|
|
7564
7564
|
conditionalDynamicProperty = _step$value.conditionalDynamicProperty;
|
|
7565
|
-
|
|
7565
|
+
|
|
7566
|
+
if (appliedElementModifiers || clickthroughDynamicProperty || conditionalDynamicProperty) {
|
|
7567
|
+
console.log('static status is false - dynamic properties on canvas detected');
|
|
7568
|
+
return false;
|
|
7569
|
+
}
|
|
7566
7570
|
|
|
7567
7571
|
var _iterator2 = _createForOfIteratorHelper$2(tags),
|
|
7568
7572
|
_step2;
|
|
@@ -7570,7 +7574,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7570
7574
|
try {
|
|
7571
7575
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7572
7576
|
var tag = _step2.value;
|
|
7573
|
-
|
|
7577
|
+
|
|
7578
|
+
if (!isTagStatic(tag)) {
|
|
7579
|
+
console.log('static status is false - dynamic properties on tag detected');
|
|
7580
|
+
return false;
|
|
7581
|
+
}
|
|
7574
7582
|
}
|
|
7575
7583
|
} catch (err) {
|
|
7576
7584
|
_iterator2.e(err);
|
|
@@ -7710,21 +7718,16 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7710
7718
|
if (this.shouldPerformStaticCheck) {
|
|
7711
7719
|
var proxy = new Proxy(this, {
|
|
7712
7720
|
set: function set(target, key, value) {
|
|
7713
|
-
if (key in target) {
|
|
7721
|
+
if (key in target && key !== 'currentGrouping') {
|
|
7714
7722
|
window.RENDERED_STATICALLY = false;
|
|
7715
|
-
console.log("static status is false -
|
|
7723
|
+
console.log("static status is false - overridden StudioFramework class method ", key);
|
|
7716
7724
|
}
|
|
7717
7725
|
|
|
7718
7726
|
return set$2(target, key, value);
|
|
7719
7727
|
}
|
|
7720
7728
|
});
|
|
7721
7729
|
this.setup.call(proxy);
|
|
7722
|
-
|
|
7723
|
-
if (this.shouldPerformStaticCheck) {
|
|
7724
|
-
if (!(window.RENDERED_STATICALLY = areAttributesStatic(opts))) {
|
|
7725
|
-
console.log('static status is false - presentationAttributes are not static');
|
|
7726
|
-
}
|
|
7727
|
-
}
|
|
7730
|
+
if (this.shouldPerformStaticCheck) window.RENDERED_STATICALLY = areAttributesStatic(opts);
|
|
7728
7731
|
} else {
|
|
7729
7732
|
this.setup();
|
|
7730
7733
|
}
|
|
@@ -8481,10 +8484,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8481
8484
|
}
|
|
8482
8485
|
|
|
8483
8486
|
if (this.shouldPerformStaticCheck) {
|
|
8484
|
-
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement))
|
|
8485
|
-
console.log('static status is true - static check has finished');
|
|
8486
|
-
console.log('App is static.');
|
|
8487
|
-
}
|
|
8487
|
+
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) console.log('static status is true - static check has finished');
|
|
8488
8488
|
}
|
|
8489
8489
|
|
|
8490
8490
|
if (format === 'html') {
|
package/dist/index.js
CHANGED
|
@@ -7508,7 +7508,7 @@ var stringMatch = function stringMatch(original, comparable, ignoreRegExp) {
|
|
|
7508
7508
|
};
|
|
7509
7509
|
|
|
7510
7510
|
var studioOverwritableJs = 'var app = new studio[a-zA-Z0-9]*.A\\(\\);';
|
|
7511
|
-
var jsIgnoreRE = new RegExp("\\s|".concat(studioOverwritableJs));
|
|
7511
|
+
var jsIgnoreRE = new RegExp("\\s|".concat(studioOverwritableJs), 'g');
|
|
7512
7512
|
var jsCompareString = "(function(){app.render(document.getElementById('react-root')).then(function(){window.APP_SUCCESSFULLY_RENDERED=true;});})();";
|
|
7513
7513
|
var isPristinePicJsTag = function isPristinePicJsTag(scriptTag) {
|
|
7514
7514
|
var script = scriptTag.innerHTML;
|
|
@@ -7572,7 +7572,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7572
7572
|
tags = _step$value$tags === void 0 ? [] : _step$value$tags,
|
|
7573
7573
|
clickthroughDynamicProperty = _step$value.clickthroughDynamicProperty,
|
|
7574
7574
|
conditionalDynamicProperty = _step$value.conditionalDynamicProperty;
|
|
7575
|
-
|
|
7575
|
+
|
|
7576
|
+
if (appliedElementModifiers || clickthroughDynamicProperty || conditionalDynamicProperty) {
|
|
7577
|
+
console.log('static status is false - dynamic properties on canvas detected');
|
|
7578
|
+
return false;
|
|
7579
|
+
}
|
|
7576
7580
|
|
|
7577
7581
|
var _iterator2 = _createForOfIteratorHelper$2(tags),
|
|
7578
7582
|
_step2;
|
|
@@ -7580,7 +7584,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7580
7584
|
try {
|
|
7581
7585
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7582
7586
|
var tag = _step2.value;
|
|
7583
|
-
|
|
7587
|
+
|
|
7588
|
+
if (!isTagStatic(tag)) {
|
|
7589
|
+
console.log('static status is false - dynamic properties on tag detected');
|
|
7590
|
+
return false;
|
|
7591
|
+
}
|
|
7584
7592
|
}
|
|
7585
7593
|
} catch (err) {
|
|
7586
7594
|
_iterator2.e(err);
|
|
@@ -7720,21 +7728,16 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7720
7728
|
if (this.shouldPerformStaticCheck) {
|
|
7721
7729
|
var proxy = new Proxy(this, {
|
|
7722
7730
|
set: function set(target, key, value) {
|
|
7723
|
-
if (key in target) {
|
|
7731
|
+
if (key in target && key !== 'currentGrouping') {
|
|
7724
7732
|
window.RENDERED_STATICALLY = false;
|
|
7725
|
-
console.log("static status is false -
|
|
7733
|
+
console.log("static status is false - overridden StudioFramework class method ", key);
|
|
7726
7734
|
}
|
|
7727
7735
|
|
|
7728
7736
|
return set$2(target, key, value);
|
|
7729
7737
|
}
|
|
7730
7738
|
});
|
|
7731
7739
|
this.setup.call(proxy);
|
|
7732
|
-
|
|
7733
|
-
if (this.shouldPerformStaticCheck) {
|
|
7734
|
-
if (!(window.RENDERED_STATICALLY = areAttributesStatic(opts))) {
|
|
7735
|
-
console.log('static status is false - presentationAttributes are not static');
|
|
7736
|
-
}
|
|
7737
|
-
}
|
|
7740
|
+
if (this.shouldPerformStaticCheck) window.RENDERED_STATICALLY = areAttributesStatic(opts);
|
|
7738
7741
|
} else {
|
|
7739
7742
|
this.setup();
|
|
7740
7743
|
}
|
|
@@ -8491,10 +8494,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8491
8494
|
}
|
|
8492
8495
|
|
|
8493
8496
|
if (this.shouldPerformStaticCheck) {
|
|
8494
|
-
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement))
|
|
8495
|
-
console.log('static status is true - static check has finished');
|
|
8496
|
-
console.log('App is static.');
|
|
8497
|
-
}
|
|
8497
|
+
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) console.log('static status is true - static check has finished');
|
|
8498
8498
|
}
|
|
8499
8499
|
|
|
8500
8500
|
if (format === 'html') {
|
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.5",
|
|
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.5",
|
|
39
|
+
"@movable/studio-framework-test-helpers": "^2.40.0-redondo-beach.5",
|
|
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": "dda01715648e98dfe51e023fc60af9e9dd4d88ea"
|
|
72
72
|
}
|