@movable/studio-framework 3.13.1-test-logs-canvas-key.0 → 3.14.0-canary.0

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
@@ -2744,17 +2744,15 @@ class StudioFramework {
2744
2744
  } = operand;
2745
2745
  return this.getPropertyTuple(propertyGroupKey, propertyPath, this.resolveDynamicFieldContext(context));
2746
2746
  }
2747
- /** resolves `context` values that are Dynamic Fields */
2747
+ /** resolves `context` values that are property references (Dynamic Fields, Custom Properties, Data Source Properties, etc.) */
2748
2748
 
2749
2749
 
2750
2750
  resolveDynamicFieldContext(context) {
2751
2751
  const resolvedContext = {};
2752
2752
 
2753
2753
  for (const [contextKey, contextValue] of Object.entries(context)) {
2754
- if (isDynamicProperty(contextValue) && contextValue.propertyGroupKey === 'param') {
2755
- const resolvedValue = this.getProperty(contextValue.propertyGroupKey, // "param"
2756
- contextValue.propertyPath // "params.[something]"
2757
- );
2754
+ if (isDynamicProperty(contextValue)) {
2755
+ const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
2758
2756
  resolvedContext[contextKey] = resolvedValue;
2759
2757
  } else {
2760
2758
  resolvedContext[contextKey] = contextValue;
@@ -3136,10 +3134,6 @@ class StudioFramework {
3136
3134
  }
3137
3135
 
3138
3136
  logCurrentCanvas(currentCanvas) {
3139
- console.log('Current Canvas:', currentCanvas);
3140
- console.log('Canvas Name:', currentCanvas?.name || 'Unnamed Canvas');
3141
- console.log(window.MICapture?.setCanvasKey && window.MICapture);
3142
-
3143
3137
  if (window.MICapture?.setCanvasKey) {
3144
3138
  window.MICapture.setCanvasKey(currentCanvas.name);
3145
3139
  }
package/dist/index.js CHANGED
@@ -2754,17 +2754,15 @@ class StudioFramework {
2754
2754
  } = operand;
2755
2755
  return this.getPropertyTuple(propertyGroupKey, propertyPath, this.resolveDynamicFieldContext(context));
2756
2756
  }
2757
- /** resolves `context` values that are Dynamic Fields */
2757
+ /** resolves `context` values that are property references (Dynamic Fields, Custom Properties, Data Source Properties, etc.) */
2758
2758
 
2759
2759
 
2760
2760
  resolveDynamicFieldContext(context) {
2761
2761
  const resolvedContext = {};
2762
2762
 
2763
2763
  for (const [contextKey, contextValue] of Object.entries(context)) {
2764
- if (isDynamicProperty(contextValue) && contextValue.propertyGroupKey === 'param') {
2765
- const resolvedValue = this.getProperty(contextValue.propertyGroupKey, // "param"
2766
- contextValue.propertyPath // "params.[something]"
2767
- );
2764
+ if (isDynamicProperty(contextValue)) {
2765
+ const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
2768
2766
  resolvedContext[contextKey] = resolvedValue;
2769
2767
  } else {
2770
2768
  resolvedContext[contextKey] = contextValue;
@@ -3146,10 +3144,6 @@ class StudioFramework {
3146
3144
  }
3147
3145
 
3148
3146
  logCurrentCanvas(currentCanvas) {
3149
- console.log('Current Canvas:', currentCanvas);
3150
- console.log('Canvas Name:', currentCanvas?.name || 'Unnamed Canvas');
3151
- console.log(window.MICapture?.setCanvasKey && window.MICapture);
3152
-
3153
3147
  if (window.MICapture?.setCanvasKey) {
3154
3148
  window.MICapture.setCanvasKey(currentCanvas.name);
3155
3149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/studio-framework",
3
- "version": "3.13.1-test-logs-canvas-key.0",
3
+ "version": "3.14.0-canary.0",
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.13.1-test-logs-canvas-key.0",
35
- "@movable/studio-framework-test-helpers": "^3.13.1-test-logs-canvas-key.0",
34
+ "@movable/framework-types": "^3.14.0-canary.0",
35
+ "@movable/studio-framework-test-helpers": "^3.14.0-canary.0",
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": "27a5804388e702148357418cd7c5218cac6234c0"
69
+ "gitHead": "51719a4a64a8cb54a2428568c0257cc3ee266719"
70
70
  }