@movable/studio-framework 3.14.0-canary.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 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
- return property.compute(context, requestEvent);
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
  }
@@ -2749,16 +2755,30 @@ class StudioFramework {
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)) {
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
+
2754
2769
  if (isDynamicProperty(contextValue)) {
2770
+ console.log('✓ isDynamicProperty=true - will resolve');
2755
2771
  const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
2772
+ console.log('resolvedValue:', resolvedValue);
2756
2773
  resolvedContext[contextKey] = resolvedValue;
2757
2774
  } else {
2775
+ console.log('✗ isDynamicProperty=false - using as-is');
2758
2776
  resolvedContext[contextKey] = contextValue;
2759
2777
  }
2760
2778
  }
2761
2779
 
2780
+ console.log('\n===== resolveDynamicFieldContext END =====');
2781
+ console.log('Resolved context:', resolvedContext);
2762
2782
  return resolvedContext;
2763
2783
  }
2764
2784
 
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
- return property.compute(context, requestEvent);
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
  }
@@ -2759,16 +2765,30 @@ class StudioFramework {
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)) {
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
+
2764
2779
  if (isDynamicProperty(contextValue)) {
2780
+ console.log('✓ isDynamicProperty=true - will resolve');
2765
2781
  const resolvedValue = this.getProperty(contextValue.propertyGroupKey, contextValue.propertyPath, contextValue.context || {});
2782
+ console.log('resolvedValue:', resolvedValue);
2766
2783
  resolvedContext[contextKey] = resolvedValue;
2767
2784
  } else {
2785
+ console.log('✗ isDynamicProperty=false - using as-is');
2768
2786
  resolvedContext[contextKey] = contextValue;
2769
2787
  }
2770
2788
  }
2771
2789
 
2790
+ console.log('\n===== resolveDynamicFieldContext END =====');
2791
+ console.log('Resolved context:', resolvedContext);
2772
2792
  return resolvedContext;
2773
2793
  }
2774
2794
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/studio-framework",
3
- "version": "3.14.0-canary.0",
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.14.0-canary.0",
35
- "@movable/studio-framework-test-helpers": "^3.14.0-canary.0",
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",