@almadar/core 8.6.0 → 8.6.2
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 +3 -3
- package/dist/builders.js +7 -3
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-DUv4yYRF.d.ts → compose-behaviors-N7RCJVwH.d.ts} +1 -1
- package/dist/factory/index.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/{schema-TBowD2oF.d.ts → schema-oigeZDco.d.ts} +1 -1
- package/dist/{trait-CvzQvW-e.d.ts → trait-Dh8USts-.d.ts} +14 -3
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +7 -3
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bK as UISlot, t as Effect, bg as Trait, aC as RenderUIEffect, bs as TraitEventContract, y as Entity, bu as TraitEventListener, bj as TraitConfig, B as EntityField, H as EntityPersistence, L as EntityRow, bx as TraitRef, bz as TraitReference } from './trait-
|
|
2
|
-
import { aA as UseDeclaration, B as EntityRef, ab as PageRef, X as OrbitalDefinition, a3 as OrbitalSchema, aa as Page, ac as PageRefObject } from './schema-
|
|
1
|
+
import { bK as UISlot, t as Effect, bg as Trait, aC as RenderUIEffect, bs as TraitEventContract, y as Entity, bu as TraitEventListener, bj as TraitConfig, B as EntityField, H as EntityPersistence, L as EntityRow, bx as TraitRef, bz as TraitReference } from './trait-Dh8USts-.js';
|
|
2
|
+
import { aA as UseDeclaration, B as EntityRef, ab as PageRef, X as OrbitalDefinition, a3 as OrbitalSchema, aa as Page, ac as PageRefObject } from './schema-oigeZDco.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-N7RCJVwH.js';
|
|
5
5
|
import { AnyPatternConfig } from '@almadar/patterns';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
package/dist/builders.js
CHANGED
|
@@ -66,7 +66,11 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
66
66
|
properties: z.record(EntityFieldSchema).optional()
|
|
67
67
|
};
|
|
68
68
|
function scalarVariant(t) {
|
|
69
|
-
return z.object({
|
|
69
|
+
return z.object({
|
|
70
|
+
...baseFieldShape,
|
|
71
|
+
type: z.literal(t),
|
|
72
|
+
values: z.array(z.string()).optional()
|
|
73
|
+
});
|
|
70
74
|
}
|
|
71
75
|
return z.preprocess(
|
|
72
76
|
(input) => {
|
|
@@ -106,11 +110,11 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
106
110
|
type: z.literal("relation"),
|
|
107
111
|
relation: RelationConfigSchema
|
|
108
112
|
}),
|
|
109
|
-
// Array variant —
|
|
113
|
+
// Array variant — items optional to match relaxed TS shape.
|
|
110
114
|
z.object({
|
|
111
115
|
...baseFieldShape,
|
|
112
116
|
type: z.literal("array"),
|
|
113
|
-
items: EntityFieldSchema
|
|
117
|
+
items: EntityFieldSchema.optional()
|
|
114
118
|
})
|
|
115
119
|
])
|
|
116
120
|
);
|