@movable/studio-framework 2.40.0-redondo-beach.2 → 2.40.0-redondo-beach.3
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 +16 -13
- package/dist/index.js +16 -13
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -7512,6 +7512,9 @@ 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
|
+
}));
|
|
7515
7518
|
return false;
|
|
7516
7519
|
}
|
|
7517
7520
|
|
|
@@ -7562,7 +7565,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7562
7565
|
tags = _step$value$tags === void 0 ? [] : _step$value$tags,
|
|
7563
7566
|
clickthroughDynamicProperty = _step$value.clickthroughDynamicProperty,
|
|
7564
7567
|
conditionalDynamicProperty = _step$value.conditionalDynamicProperty;
|
|
7565
|
-
|
|
7568
|
+
|
|
7569
|
+
if (appliedElementModifiers || clickthroughDynamicProperty || conditionalDynamicProperty) {
|
|
7570
|
+
console.log('static status is false - dynamic properties on canvas detected');
|
|
7571
|
+
return false;
|
|
7572
|
+
}
|
|
7566
7573
|
|
|
7567
7574
|
var _iterator2 = _createForOfIteratorHelper$2(tags),
|
|
7568
7575
|
_step2;
|
|
@@ -7570,7 +7577,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7570
7577
|
try {
|
|
7571
7578
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7572
7579
|
var tag = _step2.value;
|
|
7573
|
-
|
|
7580
|
+
|
|
7581
|
+
if (!isTagStatic(tag)) {
|
|
7582
|
+
console.log('static status is false - dynamic properties on tag detected');
|
|
7583
|
+
return false;
|
|
7584
|
+
}
|
|
7574
7585
|
}
|
|
7575
7586
|
} catch (err) {
|
|
7576
7587
|
_iterator2.e(err);
|
|
@@ -7712,19 +7723,14 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7712
7723
|
set: function set(target, key, value) {
|
|
7713
7724
|
if (key in target) {
|
|
7714
7725
|
window.RENDERED_STATICALLY = false;
|
|
7715
|
-
console.log("static status is false - overidden StudioFramework class method "
|
|
7726
|
+
console.log("static status is false - overidden StudioFramework class method ", key);
|
|
7716
7727
|
}
|
|
7717
7728
|
|
|
7718
7729
|
return set$2(target, key, value);
|
|
7719
7730
|
}
|
|
7720
7731
|
});
|
|
7721
7732
|
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
|
-
}
|
|
7733
|
+
if (this.shouldPerformStaticCheck) window.RENDERED_STATICALLY = areAttributesStatic(opts);
|
|
7728
7734
|
} else {
|
|
7729
7735
|
this.setup();
|
|
7730
7736
|
}
|
|
@@ -8481,10 +8487,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8481
8487
|
}
|
|
8482
8488
|
|
|
8483
8489
|
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
|
-
}
|
|
8490
|
+
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) console.log('static status is true - static check has finished');
|
|
8488
8491
|
}
|
|
8489
8492
|
|
|
8490
8493
|
if (format === 'html') {
|
package/dist/index.js
CHANGED
|
@@ -7522,6 +7522,9 @@ 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
|
+
}));
|
|
7525
7528
|
return false;
|
|
7526
7529
|
}
|
|
7527
7530
|
|
|
@@ -7572,7 +7575,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7572
7575
|
tags = _step$value$tags === void 0 ? [] : _step$value$tags,
|
|
7573
7576
|
clickthroughDynamicProperty = _step$value.clickthroughDynamicProperty,
|
|
7574
7577
|
conditionalDynamicProperty = _step$value.conditionalDynamicProperty;
|
|
7575
|
-
|
|
7578
|
+
|
|
7579
|
+
if (appliedElementModifiers || clickthroughDynamicProperty || conditionalDynamicProperty) {
|
|
7580
|
+
console.log('static status is false - dynamic properties on canvas detected');
|
|
7581
|
+
return false;
|
|
7582
|
+
}
|
|
7576
7583
|
|
|
7577
7584
|
var _iterator2 = _createForOfIteratorHelper$2(tags),
|
|
7578
7585
|
_step2;
|
|
@@ -7580,7 +7587,11 @@ var areAttributesStatic = function areAttributesStatic(attributes) {
|
|
|
7580
7587
|
try {
|
|
7581
7588
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
7582
7589
|
var tag = _step2.value;
|
|
7583
|
-
|
|
7590
|
+
|
|
7591
|
+
if (!isTagStatic(tag)) {
|
|
7592
|
+
console.log('static status is false - dynamic properties on tag detected');
|
|
7593
|
+
return false;
|
|
7594
|
+
}
|
|
7584
7595
|
}
|
|
7585
7596
|
} catch (err) {
|
|
7586
7597
|
_iterator2.e(err);
|
|
@@ -7722,19 +7733,14 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
7722
7733
|
set: function set(target, key, value) {
|
|
7723
7734
|
if (key in target) {
|
|
7724
7735
|
window.RENDERED_STATICALLY = false;
|
|
7725
|
-
console.log("static status is false - overidden StudioFramework class method "
|
|
7736
|
+
console.log("static status is false - overidden StudioFramework class method ", key);
|
|
7726
7737
|
}
|
|
7727
7738
|
|
|
7728
7739
|
return set$2(target, key, value);
|
|
7729
7740
|
}
|
|
7730
7741
|
});
|
|
7731
7742
|
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
|
-
}
|
|
7743
|
+
if (this.shouldPerformStaticCheck) window.RENDERED_STATICALLY = areAttributesStatic(opts);
|
|
7738
7744
|
} else {
|
|
7739
7745
|
this.setup();
|
|
7740
7746
|
}
|
|
@@ -8491,10 +8497,7 @@ var StudioFramework = /*#__PURE__*/function () {
|
|
|
8491
8497
|
}
|
|
8492
8498
|
|
|
8493
8499
|
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
|
-
}
|
|
8500
|
+
if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) console.log('static status is true - static check has finished');
|
|
8498
8501
|
}
|
|
8499
8502
|
|
|
8500
8503
|
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.3",
|
|
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.3",
|
|
39
|
+
"@movable/studio-framework-test-helpers": "^2.40.0-redondo-beach.3",
|
|
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": "61ab1eb94de2426a822b42f7244b2770125c3699"
|
|
72
72
|
}
|