@movable/studio-framework 3.9.1-canary.0 → 3.10.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 CHANGED
@@ -2446,12 +2446,7 @@ const BASE_STYLE = 'margin: 0px;';
2446
2446
  function cleanHTML(element, format) {
2447
2447
  const doc = getDocumentNode(element);
2448
2448
  const analytics = doc.querySelector('#mi-data');
2449
- const analyticsLength = analytics ? (analytics.getAttribute('data-mi-data') || '').length : 0;
2450
-
2451
- if (analyticsLength > 500) {
2452
- analytics.setAttribute('data-mi-data', '{}');
2453
- console.log('extraData trying to be set exceeds 500 characters, setting extraData to be empty to avoid breaking crops');
2454
- }
2449
+ analytics ? (analytics.getAttribute('data-mi-data') || '').length : 0;
2455
2450
 
2456
2451
  if (format === 'html') {
2457
2452
  const body = doc.body;
@@ -2640,13 +2635,7 @@ class StudioFramework {
2640
2635
  this.modifiedProps = modifiedProps;
2641
2636
  this.canvases = canvases;
2642
2637
  this.setProperties(queryParams);
2643
- this.setProperties(queryParams, 'params'); // example: resolve the special context.location property from it's corresponding param
2644
-
2645
- this.setProperty('context.location', ({
2646
- getProperty
2647
- }) => {
2648
- return getProperty('params.mi_location');
2649
- });
2638
+ this.setProperties(queryParams, 'params');
2650
2639
  this.setProperty('options', () => {
2651
2640
  console.warn('Do not use options directly');
2652
2641
  return options;
package/dist/index.js CHANGED
@@ -2456,12 +2456,7 @@ const BASE_STYLE = 'margin: 0px;';
2456
2456
  function cleanHTML(element, format) {
2457
2457
  const doc = getDocumentNode(element);
2458
2458
  const analytics = doc.querySelector('#mi-data');
2459
- const analyticsLength = analytics ? (analytics.getAttribute('data-mi-data') || '').length : 0;
2460
-
2461
- if (analyticsLength > 500) {
2462
- analytics.setAttribute('data-mi-data', '{}');
2463
- console.log('extraData trying to be set exceeds 500 characters, setting extraData to be empty to avoid breaking crops');
2464
- }
2459
+ analytics ? (analytics.getAttribute('data-mi-data') || '').length : 0;
2465
2460
 
2466
2461
  if (format === 'html') {
2467
2462
  const body = doc.body;
@@ -2650,13 +2645,7 @@ class StudioFramework {
2650
2645
  this.modifiedProps = modifiedProps;
2651
2646
  this.canvases = canvases;
2652
2647
  this.setProperties(queryParams);
2653
- this.setProperties(queryParams, 'params'); // example: resolve the special context.location property from it's corresponding param
2654
-
2655
- this.setProperty('context.location', ({
2656
- getProperty
2657
- }) => {
2658
- return getProperty('params.mi_location');
2659
- });
2648
+ this.setProperties(queryParams, 'params');
2660
2649
  this.setProperty('options', () => {
2661
2650
  console.warn('Do not use options directly');
2662
2651
  return options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/studio-framework",
3
- "version": "3.9.1-canary.0",
3
+ "version": "3.10.1",
4
4
  "description": "A Component library for reactive Studio apps.",
5
5
  "author": "Movable Ink",
6
6
  "repository": "movableink/studio-framework",
@@ -31,8 +31,8 @@
31
31
  "@babel/preset-react": "^7.14.5",
32
32
  "@babel/preset-typescript": "^7.13.0",
33
33
  "@movable/eslint-config-react": "^1.0.1",
34
- "@movable/framework-types": "^3.9.1-canary.0",
35
- "@movable/studio-framework-test-helpers": "^3.9.1-canary.0",
34
+ "@movable/framework-types": "^3.10.1",
35
+ "@movable/studio-framework-test-helpers": "^3.10.1",
36
36
  "@types/qunit": "^2.11.1",
37
37
  "@types/qunit-dom": "^0.7.0",
38
38
  "@types/react": "^17.0.6",
@@ -66,5 +66,5 @@
66
66
  "volta": {
67
67
  "extends": "../../package.json"
68
68
  },
69
- "gitHead": "3e5c243fb9008b0f4e28903a0cdf2b2f4e068086"
69
+ "gitHead": "a4c30764ad80bebe2469a79ac26c41613dda13e2"
70
70
  }