@movable/studio-framework 3.9.0 → 3.9.1-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 +7 -1
- package/dist/index.js +7 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -2640,7 +2640,13 @@ class StudioFramework {
|
|
|
2640
2640
|
this.modifiedProps = modifiedProps;
|
|
2641
2641
|
this.canvases = canvases;
|
|
2642
2642
|
this.setProperties(queryParams);
|
|
2643
|
-
this.setProperties(queryParams, 'params');
|
|
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
|
+
});
|
|
2644
2650
|
this.setProperty('options', () => {
|
|
2645
2651
|
console.warn('Do not use options directly');
|
|
2646
2652
|
return options;
|
package/dist/index.js
CHANGED
|
@@ -2650,7 +2650,13 @@ class StudioFramework {
|
|
|
2650
2650
|
this.modifiedProps = modifiedProps;
|
|
2651
2651
|
this.canvases = canvases;
|
|
2652
2652
|
this.setProperties(queryParams);
|
|
2653
|
-
this.setProperties(queryParams, 'params');
|
|
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
|
+
});
|
|
2654
2660
|
this.setProperty('options', () => {
|
|
2655
2661
|
console.warn('Do not use options directly');
|
|
2656
2662
|
return options;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework",
|
|
3
|
-
"version": "3.9.0",
|
|
3
|
+
"version": "3.9.1-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.9.0",
|
|
35
|
-
"@movable/studio-framework-test-helpers": "^3.9.0",
|
|
34
|
+
"@movable/framework-types": "^3.9.1-canary.0",
|
|
35
|
+
"@movable/studio-framework-test-helpers": "^3.9.1-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": "3e5c243fb9008b0f4e28903a0cdf2b2f4e068086"
|
|
70
70
|
}
|