@movable/studio-framework 2.40.0-redondo-beach.1 → 2.40.0-redondo-beach.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 CHANGED
@@ -7510,8 +7510,16 @@ var isDocumentEligibleForStaticHandling = function isDocumentEligibleForStaticHa
7510
7510
 
7511
7511
  var hasTagContainingPristinePicJs = from_1(scriptTags).some(isPristinePicJsTag);
7512
7512
 
7513
- if (!hasTagContainingPristinePicJs) return false;
7514
- if (scriptTags.length > COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO) return false;
7513
+ if (!hasTagContainingPristinePicJs) {
7514
+ console.log('static statis is false - user-altered js detected');
7515
+ return false;
7516
+ }
7517
+
7518
+ if (scriptTags.length > COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO) {
7519
+ console.log('static statis is false - user-added script tags detected');
7520
+ return false;
7521
+ }
7522
+
7515
7523
  return true;
7516
7524
  };
7517
7525
 
@@ -8473,9 +8481,7 @@ var StudioFramework = /*#__PURE__*/function () {
8473
8481
  }
8474
8482
 
8475
8483
  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 {
8484
+ if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) {
8479
8485
  console.log('static status is true - static check has finished');
8480
8486
  console.log('App is static.');
8481
8487
  }
package/dist/index.js CHANGED
@@ -7520,8 +7520,16 @@ var isDocumentEligibleForStaticHandling = function isDocumentEligibleForStaticHa
7520
7520
 
7521
7521
  var hasTagContainingPristinePicJs = from_1(scriptTags).some(isPristinePicJsTag);
7522
7522
 
7523
- if (!hasTagContainingPristinePicJs) return false;
7524
- if (scriptTags.length > COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO) return false;
7523
+ if (!hasTagContainingPristinePicJs) {
7524
+ console.log('static statis is false - user-altered js detected');
7525
+ return false;
7526
+ }
7527
+
7528
+ if (scriptTags.length > COUNT_OF_SCRIPT_TAGS_COMPILED_BY_STUDIO) {
7529
+ console.log('static statis is false - user-added script tags detected');
7530
+ return false;
7531
+ }
7532
+
7525
7533
  return true;
7526
7534
  };
7527
7535
 
@@ -8483,9 +8491,7 @@ var StudioFramework = /*#__PURE__*/function () {
8483
8491
  }
8484
8492
 
8485
8493
  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 {
8494
+ if (window.RENDERED_STATICALLY = isDocumentEligibleForStaticHandling(targetElement)) {
8489
8495
  console.log('static status is true - static check has finished');
8490
8496
  console.log('App is static.');
8491
8497
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/studio-framework",
3
- "version": "2.40.0-redondo-beach.1",
3
+ "version": "2.40.0-redondo-beach.2",
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.1",
39
- "@movable/studio-framework-test-helpers": "^2.40.0-redondo-beach.1",
38
+ "@movable/framework-types": "^2.40.0-redondo-beach.2",
39
+ "@movable/studio-framework-test-helpers": "^2.40.0-redondo-beach.2",
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": "24e218f663c2ae24d27152472403a43835a9218f"
71
+ "gitHead": "77108898d1e7743f6c7c30482f41177edb3bb393"
72
72
  }