@almadar/core 9.6.1 → 9.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.
@@ -1,7 +1,7 @@
1
- import { bR as UISlot, u as Effect, bm as Trait, aH as RenderUIEffect, by as TraitEventContract, z as Entity, bA as TraitEventListener, bp as TraitConfig, F as EntityField, K as EntityPersistence, O as EntityRow, bD as TraitRef, bF as TraitReference } from './trait-BjSJtFXv.js';
2
- import { bC as UseDeclaration, Q as EntityRef, aT as PageRef, aD as OrbitalDefinition, aL as OrbitalSchema, aS as Page, aU as PageRefObject } from './schema-Dx404jRG.js';
1
+ import { U as UISlot, E as Effect, T as Trait, R as RenderBinding, a as RenderUIEffect, b as TraitEventContract, c as Entity, d as TraitEventListener, e as TraitConfig, f as EntityField, g as EntityPersistence, h as EntityRow, i as TraitRef, j as TraitReference } from './trait-C61Wxi3a.js';
2
+ import { U as UseDeclaration, E as EntityRef, P as PageRef, O as OrbitalDefinition, a as OrbitalSchema, b as Page, c as PageRefObject } from './schema-DgAnrD1M.js';
3
3
  import { S as SExpr } from './expression-BVRFm0sV.js';
4
- export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-BLCis28r.js';
4
+ export { C as ComposeBehaviorsInput, a as ComposeBehaviorsResult, E as EventWiringEntry, L as LayoutStrategy, b as applyEventWiring, c as composeBehaviors, d as detectLayoutStrategy } from './compose-behaviors-DA8bnafs.js';
5
5
  import { AnyPatternConfig } from '@almadar/patterns';
6
6
  import 'zod';
7
7
 
@@ -59,9 +59,11 @@ declare function makeSlot(traitName: string): string;
59
59
  * three-element tuple form.
60
60
  *
61
61
  * @param slot - Canonical UI slot name (`'main'`, `'header'`, etc. — see UI_SLOTS).
62
- * @param root - The pattern config for this slot's content. Pass `null` to clear.
62
+ * @param root - The pattern config for this slot's content, OR a `@`-binding
63
+ * string ({@link RenderBinding}) pointing at a render tree in `config` /
64
+ * `payload` (e.g. `'@config.bodyContent'`). Pass `null` to clear.
63
65
  */
64
- declare function makeRenderUI(slot: UISlot, root: AnyPatternConfig | null): RenderUIEffect;
66
+ declare function makeRenderUI(slot: UISlot, root: AnyPatternConfig | RenderBinding | null): RenderUIEffect;
65
67
  /**
66
68
  * Options for {@link makeLayoutTrait}.
67
69
  */
package/dist/builders.js CHANGED
@@ -1362,7 +1362,9 @@ function makeSlot(traitName) {
1362
1362
  return `@trait.${traitName}`;
1363
1363
  }
1364
1364
  function makeRenderUI(slot, root) {
1365
- return root === null ? ["render-ui", slot, null] : ["render-ui", slot, root];
1365
+ if (root === null) return ["render-ui", slot, null];
1366
+ if (typeof root === "string") return ["render-ui", slot, root];
1367
+ return ["render-ui", slot, root];
1366
1368
  }
1367
1369
  function makeLayoutTrait(opts) {
1368
1370
  const slot = opts.slot ?? "main";