@almadar/runtime 5.2.0 → 5.3.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.
@@ -195,18 +195,32 @@ function interpolateProps(props, ctx) {
195
195
  }
196
196
  const entityBindingRaw = props["entity"];
197
197
  const typeBindingRaw = props["type"];
198
+ const patternType = typeof typeBindingRaw === "string" ? typeBindingRaw : void 0;
198
199
  if (typeof entityBindingRaw === "string") {
199
200
  const resolvedEntity = result["entity"];
200
201
  const resolvedRow = resolvedEntity !== null && typeof resolvedEntity === "object" && !Array.isArray(resolvedEntity) ? resolvedEntity : null;
201
202
  const ctxRow = ctx.payload["row"];
202
203
  renderLog.debug("interpolateProps:entity", {
203
- patternType: typeof typeBindingRaw === "string" ? typeBindingRaw : void 0,
204
+ patternType,
204
205
  entityBinding: entityBindingRaw,
205
206
  resolvedIsObject: resolvedRow !== null,
206
207
  resolvedEqualsCtxRow: ctxRow !== void 0 && resolvedRow !== null && resolvedRow === ctxRow,
207
208
  resolvedRowId: resolvedRow?.id
208
209
  });
209
210
  }
211
+ if (patternType === "form-section" || patternType === "form") {
212
+ const modeRaw = result["mode"];
213
+ const submitRaw = result["submitEvent"];
214
+ const cancelRaw = result["cancelEvent"];
215
+ bindLog.debug("form-binding", {
216
+ patternType,
217
+ mode: typeof modeRaw === "string" ? modeRaw : void 0,
218
+ submitEvent: typeof submitRaw === "string" ? submitRaw : void 0,
219
+ cancelEvent: typeof cancelRaw === "string" ? cancelRaw : void 0,
220
+ entity: JSON.stringify(result["entity"] ?? null),
221
+ fields: JSON.stringify(result["fields"] ?? null)
222
+ });
223
+ }
210
224
  return anyChanged ? result : props;
211
225
  }
212
226
  function interpolateValue(value, ctx) {
@@ -3382,5 +3396,5 @@ var InMemoryPersistence = class {
3382
3396
  };
3383
3397
 
3384
3398
  export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, buildEmitsFromTraits, containsBindings, createContextFromBindings, createInitialTraitState, createLogger, createMockPersistence, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes };
3385
- //# sourceMappingURL=chunk-OG2NHXES.js.map
3386
- //# sourceMappingURL=chunk-OG2NHXES.js.map
3399
+ //# sourceMappingURL=chunk-FAWWBERN.js.map
3400
+ //# sourceMappingURL=chunk-FAWWBERN.js.map