@almadar/runtime 5.4.0 → 5.5.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.
@@ -1,4 +1,4 @@
1
- import { I as IEventBus } from './types-SmmabGZk.js';
1
+ import { I as IEventBus } from './types-ByLpy6yj.js';
2
2
  import { EventPayload } from '@almadar/core';
3
3
 
4
4
  /**
@@ -1364,7 +1364,8 @@ var EffectExecutor = class {
1364
1364
  case "render": {
1365
1365
  if (this.handlers.renderUI) {
1366
1366
  const slot = args[0];
1367
- const pattern = args[1];
1367
+ const patternRaw = args[1];
1368
+ const pattern = patternRaw === null ? null : patternRaw;
1368
1369
  const props = args[2];
1369
1370
  const priority = args[3];
1370
1371
  this.handlers.renderUI(slot, pattern, props, priority);
@@ -1696,8 +1697,10 @@ var MockPersistenceAdapter = class {
1696
1697
  this.config = {
1697
1698
  defaultSeedCount: 6,
1698
1699
  debug: false,
1699
- seed: DEFAULT_MOCK_SEED,
1700
- ...config
1700
+ ...config,
1701
+ // Apply default after spread so an undefined `seed` in the
1702
+ // input doesn't overwrite the default.
1703
+ seed: config.seed ?? DEFAULT_MOCK_SEED
1701
1704
  };
1702
1705
  faker.seed(this.config.seed);
1703
1706
  mockLog.debug("mock:adapter:init", { seed: this.config.seed });
@@ -3412,5 +3415,5 @@ var InMemoryPersistence = class {
3412
3415
  };
3413
3416
 
3414
3417
  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 };
3415
- //# sourceMappingURL=chunk-62BIUDUH.js.map
3416
- //# sourceMappingURL=chunk-62BIUDUH.js.map
3418
+ //# sourceMappingURL=chunk-TJKK3BLO.js.map
3419
+ //# sourceMappingURL=chunk-TJKK3BLO.js.map