@almadar/core 10.30.0 → 10.31.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-C458pIMW.d.ts → builders-DDcCVboe.d.ts} +687 -687
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +10 -6
- package/dist/builders.js.map +1 -1
- package/dist/factory/index.d.ts +5 -5
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +10 -6
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +7 -9
- package/dist/index.js +894 -549
- package/dist/index.js.map +1 -1
- package/dist/{pattern-types-CLcOXOmW.d.ts → pattern-types-VDIr2TkX.d.ts} +104 -37
- package/dist/patterns/component-mapping.json +13 -3
- package/dist/patterns/event-contracts.json +10 -3
- package/dist/patterns/index.d.ts +1971 -870
- package/dist/patterns/index.js +1041 -695
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +917 -593
- package/dist/patterns/registry.json +917 -593
- package/dist/{trait-CwWjkU-1.d.ts → trait-DE6VU4Cd.d.ts} +85 -84
- package/dist/types/index.d.ts +7 -9
- package/dist/types/index.js +21 -17
- package/dist/types/index.js.map +1 -1
- package/dist/{types-yW22YNNt.d.ts → types-DSfz2mr5.d.ts} +2 -3
- package/package.json +1 -1
- package/dist/json-DOTchoRS.d.ts +0 -57
package/dist/builders.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './pattern-types-
|
|
2
|
-
export { i as ComposeBehaviorsInput, j as ComposeBehaviorsResult, c7 as ComposeConnection, c8 as ComposePage, a6 as EventWiringEntry, aq as LayoutStrategy, c9 as MakeAtomOrbitalOpts, ca as MakeAtomOrbitalTraitOverrides, cb as MakeEntityOpts, cc as MakeLayoutTraitOpts, cd as MakeOrbitalWithUsesOpts, ce as MakePageOpts, cf as MakePageRefOpts, cg as MakePageRefOptsTyped, M as MakeTraitRefOpts, ch as MakeTraitRefOptsTyped, bS as applyEventWiring, ci as applyTraitConfigOverrides, cj as compose, bT as composeBehaviors, ck as connect, bU as detectLayoutStrategy, cl as ensureIdField, cm as extractTrait, cn as makeAtomOrbital, co as makeEntity, cp as makeLayoutTrait, cq as makeOrbital, cr as makeOrbitalWithUses, cs as makePage, ct as makePageRef, cu as makeRenderUI, cv as makeSchema, cw as makeSlot, cx as makeTraitRef, cy as mergeLedgers, cz as mergeOrbitals, cA as pipe, cB as plural, cC as wire } from './builders-
|
|
3
|
-
import './trait-
|
|
1
|
+
import './pattern-types-VDIr2TkX.js';
|
|
2
|
+
export { i as ComposeBehaviorsInput, j as ComposeBehaviorsResult, c7 as ComposeConnection, c8 as ComposePage, a6 as EventWiringEntry, aq as LayoutStrategy, c9 as MakeAtomOrbitalOpts, ca as MakeAtomOrbitalTraitOverrides, cb as MakeEntityOpts, cc as MakeLayoutTraitOpts, cd as MakeOrbitalWithUsesOpts, ce as MakePageOpts, cf as MakePageRefOpts, cg as MakePageRefOptsTyped, M as MakeTraitRefOpts, ch as MakeTraitRefOptsTyped, bS as applyEventWiring, ci as applyTraitConfigOverrides, cj as compose, bT as composeBehaviors, ck as connect, bU as detectLayoutStrategy, cl as ensureIdField, cm as extractTrait, cn as makeAtomOrbital, co as makeEntity, cp as makeLayoutTrait, cq as makeOrbital, cr as makeOrbitalWithUses, cs as makePage, ct as makePageRef, cu as makeRenderUI, cv as makeSchema, cw as makeSlot, cx as makeTraitRef, cy as mergeLedgers, cz as mergeOrbitals, cA as pipe, cB as plural, cC as wire } from './builders-DDcCVboe.js';
|
|
3
|
+
import './trait-DE6VU4Cd.js';
|
|
4
4
|
import './expression-CB9R3KWk.js';
|
|
5
5
|
import 'zod';
|
package/dist/builders.js
CHANGED
|
@@ -75,6 +75,11 @@ z.object({
|
|
|
75
75
|
schemaVersion: z.literal(1),
|
|
76
76
|
entries: z.record(LedgerEntrySchema)
|
|
77
77
|
});
|
|
78
|
+
var JsonValueSchema = z.lazy(
|
|
79
|
+
() => z.union([z.string(), z.number(), z.boolean(), z.null(), z.array(JsonValueSchema), z.record(JsonValueSchema)])
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
// src/types/field.ts
|
|
78
83
|
z.enum([
|
|
79
84
|
"string",
|
|
80
85
|
"number",
|
|
@@ -138,7 +143,7 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
138
143
|
const baseFieldShape = {
|
|
139
144
|
name: z.string().min(1, "Field name is required").optional(),
|
|
140
145
|
required: z.boolean().optional(),
|
|
141
|
-
default:
|
|
146
|
+
default: JsonValueSchema.optional(),
|
|
142
147
|
format: FieldFormatSchema.optional(),
|
|
143
148
|
min: z.number().optional(),
|
|
144
149
|
max: z.number().optional(),
|
|
@@ -501,7 +506,7 @@ var TraitEntityFieldSchema = z.object({
|
|
|
501
506
|
"enum"
|
|
502
507
|
]),
|
|
503
508
|
required: z.boolean().optional(),
|
|
504
|
-
default:
|
|
509
|
+
default: TraitConfigValueSchema.optional(),
|
|
505
510
|
values: z.array(z.string()).optional(),
|
|
506
511
|
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
507
512
|
properties: z.lazy(() => z.record(TraitEntityFieldSchema)).optional()
|
|
@@ -636,12 +641,11 @@ z.object({
|
|
|
636
641
|
listens: z.array(z.unknown()).optional(),
|
|
637
642
|
emitsScope: z.enum(["internal", "external"]).optional(),
|
|
638
643
|
// Phase F.8: per-transition effects override. The keys are event
|
|
639
|
-
// names (the transition triggers AFTER renames)
|
|
640
|
-
//
|
|
641
|
-
// shape during application, so the schema accepts loose `unknown[]`.
|
|
644
|
+
// names (the transition triggers AFTER renames); values are SExpr
|
|
645
|
+
// effect tuples.
|
|
642
646
|
effects: z.record(
|
|
643
647
|
z.string().min(1, "effects override key (event name) must be non-empty"),
|
|
644
|
-
z.array(
|
|
648
|
+
z.array(SExprSchema)
|
|
645
649
|
).optional()
|
|
646
650
|
}).refine(
|
|
647
651
|
(ref) => {
|