@movable/studio-framework 3.6.1-canary.0 → 3.7.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 +19 -1
- package/dist/index.js +19 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -2747,7 +2747,25 @@ class StudioFramework {
|
|
|
2747
2747
|
propertyPath = '',
|
|
2748
2748
|
context = {}
|
|
2749
2749
|
} = operand;
|
|
2750
|
-
|
|
2750
|
+
const resolvedContext = this.resolveDynamicFieldContextFields(context);
|
|
2751
|
+
return this.getPropertyTuple(propertyGroupKey, propertyPath, resolvedContext);
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
resolveDynamicFieldContextFields(context) {
|
|
2755
|
+
const resolvedContext = {};
|
|
2756
|
+
|
|
2757
|
+
for (const [contextKey, contextValue] of Object.entries(context)) {
|
|
2758
|
+
if (isDynamicProperty(contextValue) && contextValue.propertyGroupKey === 'param') {
|
|
2759
|
+
const resolvedValue = this.getProperty(contextValue.propertyGroupKey, // "param"
|
|
2760
|
+
contextValue.propertyPath // "params.[something]"
|
|
2761
|
+
);
|
|
2762
|
+
resolvedContext[contextKey] = resolvedValue;
|
|
2763
|
+
} else {
|
|
2764
|
+
resolvedContext[contextKey] = contextValue;
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
return resolvedContext;
|
|
2751
2769
|
}
|
|
2752
2770
|
|
|
2753
2771
|
async getCurrentCanvas() {
|
package/dist/index.js
CHANGED
|
@@ -2757,7 +2757,25 @@ class StudioFramework {
|
|
|
2757
2757
|
propertyPath = '',
|
|
2758
2758
|
context = {}
|
|
2759
2759
|
} = operand;
|
|
2760
|
-
|
|
2760
|
+
const resolvedContext = this.resolveDynamicFieldContextFields(context);
|
|
2761
|
+
return this.getPropertyTuple(propertyGroupKey, propertyPath, resolvedContext);
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
resolveDynamicFieldContextFields(context) {
|
|
2765
|
+
const resolvedContext = {};
|
|
2766
|
+
|
|
2767
|
+
for (const [contextKey, contextValue] of Object.entries(context)) {
|
|
2768
|
+
if (isDynamicProperty(contextValue) && contextValue.propertyGroupKey === 'param') {
|
|
2769
|
+
const resolvedValue = this.getProperty(contextValue.propertyGroupKey, // "param"
|
|
2770
|
+
contextValue.propertyPath // "params.[something]"
|
|
2771
|
+
);
|
|
2772
|
+
resolvedContext[contextKey] = resolvedValue;
|
|
2773
|
+
} else {
|
|
2774
|
+
resolvedContext[contextKey] = contextValue;
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
return resolvedContext;
|
|
2761
2779
|
}
|
|
2762
2780
|
|
|
2763
2781
|
async getCurrentCanvas() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.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.
|
|
35
|
-
"@movable/studio-framework-test-helpers": "^3.
|
|
34
|
+
"@movable/framework-types": "^3.7.0-canary.0",
|
|
35
|
+
"@movable/studio-framework-test-helpers": "^3.7.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": "
|
|
69
|
+
"gitHead": "b1c1b7c283614754a7db512beb5d6ff58b06fccd"
|
|
70
70
|
}
|