@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.
@@ -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-CvzQvW-e.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-TBowD2oF.js';
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-DUv4yYRF.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-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({ ...baseFieldShape, type: z.literal(t) });
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 — REQUIRES items schema.
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
  );