@movable/studio-framework 2.40.0-redondo-beach.3 → 2.40.0-redondo-beach.6
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 +8 -7
- package/dist/index.js +8 -7
- 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;
|
|
@@ -7512,9 +7512,6 @@ var isDocumentEligibleForStaticHandling = function isDocumentEligibleForStaticHa
|
|
|
7512
7512
|
|
|
7513
7513
|
if (!hasTagContainingPristinePicJs) {
|
|
7514
7514
|
console.log('static statis is false - user-altered js detected');
|
|
7515
|
-
console.log(from_1(scriptTags).map(function (t) {
|
|
7516
|
-
return t.innerHTML;
|
|
7517
|
-
}));
|
|
7518
7515
|
return false;
|
|
7519
7516
|
}
|
|
7520
7517
|
|
|
@@ -7721,9 +7718,9 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7721
7718
|
if (this.shouldPerformStaticCheck) {
|
|
7722
7719
|
var proxy = new Proxy(this, {
|
|
7723
7720
|
set: function set(target, key, value) {
|
|
7724
|
-
if (key in target) {
|
|
7721
|
+
if (key in target && key !== 'currentGrouping') {
|
|
7725
7722
|
window.RENDERED_STATICALLY = false;
|
|
7726
|
-
console.log("static status is false -
|
|
7723
|
+
console.log("static status is false - overridden StudioFramework class method ", key);
|
|
7727
7724
|
}
|
|
7728
7725
|
|
|
7729
7726
|
return set$2(target, key, value);
|
|
@@ -8487,7 +8484,11 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8487
8484
|
}
|
|
8488
8485
|
|
|
8489
8486
|
if (this.shouldPerformStaticCheck) {
|
|
8490
|
-
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement))
|
|
8487
|
+
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) {
|
|
8488
|
+
console.log('static status is true - static check has finished');
|
|
8489
|
+
} else {
|
|
8490
|
+
console.log('static status is false - static check has finished');
|
|
8491
|
+
}
|
|
8491
8492
|
}
|
|
8492
8493
|
|
|
8493
8494
|
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;
|
|
@@ -7522,9 +7522,6 @@ var isDocumentEligibleForStaticHandling = function isDocumentEligibleForStaticHa
|
|
|
7522
7522
|
|
|
7523
7523
|
if (!hasTagContainingPristinePicJs) {
|
|
7524
7524
|
console.log('static statis is false - user-altered js detected');
|
|
7525
|
-
console.log(from_1(scriptTags).map(function (t) {
|
|
7526
|
-
return t.innerHTML;
|
|
7527
|
-
}));
|
|
7528
7525
|
return false;
|
|
7529
7526
|
}
|
|
7530
7527
|
|
|
@@ -7731,9 +7728,9 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7731
7728
|
if (this.shouldPerformStaticCheck) {
|
|
7732
7729
|
var proxy = new Proxy(this, {
|
|
7733
7730
|
set: function set(target, key, value) {
|
|
7734
|
-
if (key in target) {
|
|
7731
|
+
if (key in target && key !== 'currentGrouping') {
|
|
7735
7732
|
window.RENDERED_STATICALLY = false;
|
|
7736
|
-
console.log("static status is false -
|
|
7733
|
+
console.log("static status is false - overridden StudioFramework class method ", key);
|
|
7737
7734
|
}
|
|
7738
7735
|
|
|
7739
7736
|
return set$2(target, key, value);
|
|
@@ -8497,7 +8494,11 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8497
8494
|
}
|
|
8498
8495
|
|
|
8499
8496
|
if (this.shouldPerformStaticCheck) {
|
|
8500
|
-
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement))
|
|
8497
|
+
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) {
|
|
8498
|
+
console.log('static status is true - static check has finished');
|
|
8499
|
+
} else {
|
|
8500
|
+
console.log('static status is false - static check has finished');
|
|
8501
|
+
}
|
|
8501
8502
|
}
|
|
8502
8503
|
|
|
8503
8504
|
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.6",
|
|
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.6",
|
|
39
|
+
"@movable/studio-framework-test-helpers": "^2.40.0-redondo-beach.6",
|
|
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": "bc31d57eb14d81d601a9830e9f3b0b15067bd4f4"
|
|
72
72
|
}
|