@almadar/core 5.6.1 → 5.8.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.js CHANGED
@@ -1213,8 +1213,8 @@ var BINDING_CONTEXT_RULES = {
1213
1213
  description: "Guards can access entity fields, event payload, current state, and time"
1214
1214
  },
1215
1215
  effect: {
1216
- allowed: ["entity", "payload", "state", "now", "trait"],
1217
- description: "Effects can access and modify entity fields, use payload data, and embed another trait's live frame via @trait.X inside render-ui children"
1216
+ allowed: ["entity", "payload", "state", "now", "trait", "config"],
1217
+ description: "Effects can access and modify entity fields, use payload data, embed another trait's live frame via @trait.X inside render-ui children, and read trait config values (@config.X) for atoms parameterized by their call-site. At molecule/organism inline time, @config.X is substituted with the literal value from the call-site config block; at atom-scope validate, @config is allowed-but-unresolved."
1218
1218
  },
1219
1219
  tick: {
1220
1220
  allowed: ["entity", "state", "now"],
@@ -8604,6 +8604,8 @@ function buildPayloadForEdge(transition, guardCase) {
8604
8604
  payload[field.name] = 1;
8605
8605
  } else if (field.type === "boolean") {
8606
8606
  payload[field.name] = true;
8607
+ } else if (field.type === "object" || field.type === "any") {
8608
+ payload[field.name] = {};
8607
8609
  } else {
8608
8610
  payload[field.name] = `mock-${field.name}`;
8609
8611
  }