@movable/studio-framework 3.14.1-canary.0 → 3.14.2-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 +21 -1
- package/dist/index.js +21 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1501,6 +1501,19 @@ class AsyncComputed {
|
|
|
1501
1501
|
|
|
1502
1502
|
const result = property.compute(context, requestEvent);
|
|
1503
1503
|
console.log(`getProperty result for ${grouping}.${path}:`, result);
|
|
1504
|
+
console.log(` - typeof result:`, typeof result);
|
|
1505
|
+
console.log(` - is Promise?`, result instanceof Promise);
|
|
1506
|
+
console.log(` - is Array?`, Array.isArray(result));
|
|
1507
|
+
|
|
1508
|
+
if (result && typeof result === 'object') {
|
|
1509
|
+
console.log(` - Object.keys():`, Object.keys(result));
|
|
1510
|
+
console.log(` - constructor name:`, result.constructor?.name); // Try to see if it's a primitive wrapper or has a valueOf
|
|
1511
|
+
|
|
1512
|
+
if (typeof result.valueOf === 'function') {
|
|
1513
|
+
console.log(` - valueOf():`, result.valueOf());
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1504
1517
|
return result;
|
|
1505
1518
|
}
|
|
1506
1519
|
|
|
@@ -2767,7 +2780,14 @@ class StudioFramework {
|
|
|
2767
2780
|
console.log('contextValue.propertyGroupKey value:', contextValue?.propertyGroupKey);
|
|
2768
2781
|
|
|
2769
2782
|
if (isDynamicProperty(contextValue)) {
|
|
2770
|
-
console.log('✓ isDynamicProperty=true - will resolve');
|
|
2783
|
+
console.log('✓ isDynamicProperty=true - will resolve'); // Debug: check what raw data is available
|
|
2784
|
+
|
|
2785
|
+
if (contextValue.propertyPath?.includes('product_current_price')) {
|
|
2786
|
+
console.log('DEBUG: Checking raw data.product_current_price');
|
|
2787
|
+
const rawData = this.getProperty('data', 'product_current_price', {});
|
|
2788
|
+
console.log(' raw data.product_current_price:', rawData);
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2771
2791
|
const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
|
|
2772
2792
|
console.log('resolvedValue:', resolvedValue);
|
|
2773
2793
|
resolvedContext[contextKey] = resolvedValue;
|
package/dist/index.js
CHANGED
|
@@ -1511,6 +1511,19 @@ class AsyncComputed {
|
|
|
1511
1511
|
|
|
1512
1512
|
const result = property.compute(context, requestEvent);
|
|
1513
1513
|
console.log(`getProperty result for ${grouping}.${path}:`, result);
|
|
1514
|
+
console.log(` - typeof result:`, typeof result);
|
|
1515
|
+
console.log(` - is Promise?`, result instanceof Promise);
|
|
1516
|
+
console.log(` - is Array?`, Array.isArray(result));
|
|
1517
|
+
|
|
1518
|
+
if (result && typeof result === 'object') {
|
|
1519
|
+
console.log(` - Object.keys():`, Object.keys(result));
|
|
1520
|
+
console.log(` - constructor name:`, result.constructor?.name); // Try to see if it's a primitive wrapper or has a valueOf
|
|
1521
|
+
|
|
1522
|
+
if (typeof result.valueOf === 'function') {
|
|
1523
|
+
console.log(` - valueOf():`, result.valueOf());
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1514
1527
|
return result;
|
|
1515
1528
|
}
|
|
1516
1529
|
|
|
@@ -2777,7 +2790,14 @@ class StudioFramework {
|
|
|
2777
2790
|
console.log('contextValue.propertyGroupKey value:', contextValue?.propertyGroupKey);
|
|
2778
2791
|
|
|
2779
2792
|
if (isDynamicProperty(contextValue)) {
|
|
2780
|
-
console.log('✓ isDynamicProperty=true - will resolve');
|
|
2793
|
+
console.log('✓ isDynamicProperty=true - will resolve'); // Debug: check what raw data is available
|
|
2794
|
+
|
|
2795
|
+
if (contextValue.propertyPath?.includes('product_current_price')) {
|
|
2796
|
+
console.log('DEBUG: Checking raw data.product_current_price');
|
|
2797
|
+
const rawData = this.getProperty('data', 'product_current_price', {});
|
|
2798
|
+
console.log(' raw data.product_current_price:', rawData);
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2781
2801
|
const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
|
|
2782
2802
|
console.log('resolvedValue:', resolvedValue);
|
|
2783
2803
|
resolvedContext[contextKey] = resolvedValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.2-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.14.
|
|
35
|
-
"@movable/studio-framework-test-helpers": "^3.14.
|
|
34
|
+
"@movable/framework-types": "^3.14.2-canary.0",
|
|
35
|
+
"@movable/studio-framework-test-helpers": "^3.14.2-canary.0",
|
|
36
36
|
"@types/qunit": "^2.11.1",
|
|
37
37
|
"@types/qunit-dom": "^0.7.0",
|
|
38
38
|
"@types/react": "^17.0.6",
|