@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.
- package/dist/builders.d.ts +7 -5
- package/dist/builders.js +3 -1
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-BLCis28r.d.ts → compose-behaviors-DA8bnafs.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -398
- package/dist/index.d.ts +8 -8
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/{schema-Dx404jRG.d.ts → schema-DgAnrD1M.d.ts} +2 -2
- package/dist/{trait-BjSJtFXv.d.ts → trait-C61Wxi3a.d.ts} +15 -2
- package/dist/types/index.d.ts +281 -8
- package/dist/types/index.js +6 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types-DjrekvVR.d.ts +454 -0
- package/package.json +1 -1
- package/dist/json-lCu3FWzv.d.ts +0 -57
package/dist/builders.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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-
|
|
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
|
|
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
|
-
|
|
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";
|