@movable/studio-framework 3.13.1-test-logs-canvas-key.0 → 3.14.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 +24 -10
- package/dist/index.js +24 -10
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1477,9 +1477,11 @@ class AsyncComputed {
|
|
|
1477
1477
|
|
|
1478
1478
|
getProperty(...args) {
|
|
1479
1479
|
const [grouping, path, context = {}] = parseGetPropertyArgs(args);
|
|
1480
|
+
console.log(`getProperty called: ${grouping}.${path}`);
|
|
1480
1481
|
const property = this.getPropertyInstance(grouping, path);
|
|
1481
1482
|
|
|
1482
1483
|
if (!property) {
|
|
1484
|
+
console.log(`⚠️ Property not found: ${grouping}.${path}`);
|
|
1483
1485
|
return null;
|
|
1484
1486
|
}
|
|
1485
1487
|
|
|
@@ -1497,7 +1499,9 @@ class AsyncComputed {
|
|
|
1497
1499
|
requestEvent = createInertEvent();
|
|
1498
1500
|
}
|
|
1499
1501
|
|
|
1500
|
-
|
|
1502
|
+
const result = property.compute(context, requestEvent);
|
|
1503
|
+
console.log(`getProperty result for ${grouping}.${path}:`, result);
|
|
1504
|
+
return result;
|
|
1501
1505
|
}
|
|
1502
1506
|
|
|
1503
1507
|
async getPropertyTuple(...args) {
|
|
@@ -2733,6 +2737,8 @@ class StudioFramework {
|
|
|
2733
2737
|
}
|
|
2734
2738
|
|
|
2735
2739
|
async evaluateOperand(operand) {
|
|
2740
|
+
console.log('evaluateOperand');
|
|
2741
|
+
|
|
2736
2742
|
if ('operator' in operand) {
|
|
2737
2743
|
return this.resolveCondition(operand);
|
|
2738
2744
|
}
|
|
@@ -2744,23 +2750,35 @@ class StudioFramework {
|
|
|
2744
2750
|
} = operand;
|
|
2745
2751
|
return this.getPropertyTuple(propertyGroupKey, propertyPath, this.resolveDynamicFieldContext(context));
|
|
2746
2752
|
}
|
|
2747
|
-
/** resolves `context` values that are Dynamic Fields */
|
|
2753
|
+
/** resolves `context` values that are property references (Dynamic Fields, Custom Properties, Data Source Properties, etc.) */
|
|
2748
2754
|
|
|
2749
2755
|
|
|
2750
2756
|
resolveDynamicFieldContext(context) {
|
|
2751
2757
|
const resolvedContext = {};
|
|
2758
|
+
console.log('===== resolveDynamicFieldContext START =====');
|
|
2759
|
+
console.log('Full context object:', context);
|
|
2752
2760
|
|
|
2753
2761
|
for (const [contextKey, contextValue] of Object.entries(context)) {
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2762
|
+
console.log(`\n--- Processing context key: "${contextKey}" ---`);
|
|
2763
|
+
console.log('contextValue:', contextValue);
|
|
2764
|
+
console.log('contextValue type:', typeof contextValue);
|
|
2765
|
+
console.log('contextValue has propertyPath?', contextValue?.propertyPath !== undefined);
|
|
2766
|
+
console.log('contextValue.propertyPath value:', contextValue?.propertyPath);
|
|
2767
|
+
console.log('contextValue.propertyGroupKey value:', contextValue?.propertyGroupKey);
|
|
2768
|
+
|
|
2769
|
+
if (isDynamicProperty(contextValue)) {
|
|
2770
|
+
console.log('✓ isDynamicProperty=true - will resolve');
|
|
2771
|
+
const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
|
|
2772
|
+
console.log('resolvedValue:', resolvedValue);
|
|
2758
2773
|
resolvedContext[contextKey] = resolvedValue;
|
|
2759
2774
|
} else {
|
|
2775
|
+
console.log('✗ isDynamicProperty=false - using as-is');
|
|
2760
2776
|
resolvedContext[contextKey] = contextValue;
|
|
2761
2777
|
}
|
|
2762
2778
|
}
|
|
2763
2779
|
|
|
2780
|
+
console.log('\n===== resolveDynamicFieldContext END =====');
|
|
2781
|
+
console.log('Resolved context:', resolvedContext);
|
|
2764
2782
|
return resolvedContext;
|
|
2765
2783
|
}
|
|
2766
2784
|
|
|
@@ -3136,10 +3154,6 @@ class StudioFramework {
|
|
|
3136
3154
|
}
|
|
3137
3155
|
|
|
3138
3156
|
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
3157
|
if (window.MICapture?.setCanvasKey) {
|
|
3144
3158
|
window.MICapture.setCanvasKey(currentCanvas.name);
|
|
3145
3159
|
}
|
package/dist/index.js
CHANGED
|
@@ -1487,9 +1487,11 @@ class AsyncComputed {
|
|
|
1487
1487
|
|
|
1488
1488
|
getProperty(...args) {
|
|
1489
1489
|
const [grouping, path, context = {}] = parseGetPropertyArgs(args);
|
|
1490
|
+
console.log(`getProperty called: ${grouping}.${path}`);
|
|
1490
1491
|
const property = this.getPropertyInstance(grouping, path);
|
|
1491
1492
|
|
|
1492
1493
|
if (!property) {
|
|
1494
|
+
console.log(`⚠️ Property not found: ${grouping}.${path}`);
|
|
1493
1495
|
return null;
|
|
1494
1496
|
}
|
|
1495
1497
|
|
|
@@ -1507,7 +1509,9 @@ class AsyncComputed {
|
|
|
1507
1509
|
requestEvent = createInertEvent();
|
|
1508
1510
|
}
|
|
1509
1511
|
|
|
1510
|
-
|
|
1512
|
+
const result = property.compute(context, requestEvent);
|
|
1513
|
+
console.log(`getProperty result for ${grouping}.${path}:`, result);
|
|
1514
|
+
return result;
|
|
1511
1515
|
}
|
|
1512
1516
|
|
|
1513
1517
|
async getPropertyTuple(...args) {
|
|
@@ -2743,6 +2747,8 @@ class StudioFramework {
|
|
|
2743
2747
|
}
|
|
2744
2748
|
|
|
2745
2749
|
async evaluateOperand(operand) {
|
|
2750
|
+
console.log('evaluateOperand');
|
|
2751
|
+
|
|
2746
2752
|
if ('operator' in operand) {
|
|
2747
2753
|
return this.resolveCondition(operand);
|
|
2748
2754
|
}
|
|
@@ -2754,23 +2760,35 @@ class StudioFramework {
|
|
|
2754
2760
|
} = operand;
|
|
2755
2761
|
return this.getPropertyTuple(propertyGroupKey, propertyPath, this.resolveDynamicFieldContext(context));
|
|
2756
2762
|
}
|
|
2757
|
-
/** resolves `context` values that are Dynamic Fields */
|
|
2763
|
+
/** resolves `context` values that are property references (Dynamic Fields, Custom Properties, Data Source Properties, etc.) */
|
|
2758
2764
|
|
|
2759
2765
|
|
|
2760
2766
|
resolveDynamicFieldContext(context) {
|
|
2761
2767
|
const resolvedContext = {};
|
|
2768
|
+
console.log('===== resolveDynamicFieldContext START =====');
|
|
2769
|
+
console.log('Full context object:', context);
|
|
2762
2770
|
|
|
2763
2771
|
for (const [contextKey, contextValue] of Object.entries(context)) {
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2772
|
+
console.log(`\n--- Processing context key: "${contextKey}" ---`);
|
|
2773
|
+
console.log('contextValue:', contextValue);
|
|
2774
|
+
console.log('contextValue type:', typeof contextValue);
|
|
2775
|
+
console.log('contextValue has propertyPath?', contextValue?.propertyPath !== undefined);
|
|
2776
|
+
console.log('contextValue.propertyPath value:', contextValue?.propertyPath);
|
|
2777
|
+
console.log('contextValue.propertyGroupKey value:', contextValue?.propertyGroupKey);
|
|
2778
|
+
|
|
2779
|
+
if (isDynamicProperty(contextValue)) {
|
|
2780
|
+
console.log('✓ isDynamicProperty=true - will resolve');
|
|
2781
|
+
const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
|
|
2782
|
+
console.log('resolvedValue:', resolvedValue);
|
|
2768
2783
|
resolvedContext[contextKey] = resolvedValue;
|
|
2769
2784
|
} else {
|
|
2785
|
+
console.log('✗ isDynamicProperty=false - using as-is');
|
|
2770
2786
|
resolvedContext[contextKey] = contextValue;
|
|
2771
2787
|
}
|
|
2772
2788
|
}
|
|
2773
2789
|
|
|
2790
|
+
console.log('\n===== resolveDynamicFieldContext END =====');
|
|
2791
|
+
console.log('Resolved context:', resolvedContext);
|
|
2774
2792
|
return resolvedContext;
|
|
2775
2793
|
}
|
|
2776
2794
|
|
|
@@ -3146,10 +3164,6 @@ class StudioFramework {
|
|
|
3146
3164
|
}
|
|
3147
3165
|
|
|
3148
3166
|
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
3167
|
if (window.MICapture?.setCanvasKey) {
|
|
3154
3168
|
window.MICapture.setCanvasKey(currentCanvas.name);
|
|
3155
3169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.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.
|
|
35
|
-
"@movable/studio-framework-test-helpers": "^3.
|
|
34
|
+
"@movable/framework-types": "^3.14.1-canary.0",
|
|
35
|
+
"@movable/studio-framework-test-helpers": "^3.14.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": "51719a4a64a8cb54a2428568c0257cc3ee266719"
|
|
70
70
|
}
|