@almadar/core 10.60.0 → 10.62.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,6 +1,6 @@
1
- import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-a1W_hXyG.js';
2
- import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-WnERh-P-.js';
3
- import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-DgZ5Exel.js';
1
+ import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-M22diOHo.js';
2
+ import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-CtOCXxsy.js';
3
+ import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-C7w1IVQm.js';
4
4
  import { S as SExpr } from './expression-Fk8bQWef.js';
5
5
  import 'zod';
6
6
 
package/dist/builders.js CHANGED
@@ -92,6 +92,8 @@ var FIELD_TYPES = [
92
92
  "phone",
93
93
  "uuid",
94
94
  "image",
95
+ "money",
96
+ "file",
95
97
  "array",
96
98
  "object",
97
99
  "enum",
@@ -129,6 +131,12 @@ var RelationConfigSchema = z.object({
129
131
  };
130
132
  return normalized;
131
133
  });
134
+ z.object({
135
+ name: z.string(),
136
+ url: z.string(),
137
+ mimeType: z.string(),
138
+ sizeBytes: z.number()
139
+ });
132
140
  var FIELD_TYPE_ALIASES = {
133
141
  text: "string",
134
142
  int: "number",
@@ -186,6 +194,8 @@ var EntityFieldSchema = z.lazy(() => {
186
194
  scalarVariant("slot"),
187
195
  scalarVariant("pattern"),
188
196
  scalarVariant("node"),
197
+ scalarVariant("money"),
198
+ scalarVariant("file"),
189
199
  // Enum variant — REQUIRES non-empty values.
190
200
  z.object({
191
201
  ...baseFieldShape,
@@ -1166,8 +1176,8 @@ var ThemeDefinitionSchema = z.object({
1166
1176
  variants: z.record(z.string(), ThemeVariantSchema).optional()
1167
1177
  });
1168
1178
  var ThemeRefStringSchema = z.string().regex(
1169
- /^[A-Z][a-zA-Z0-9]*\.theme$/,
1170
- 'Theme reference must be in format "Alias.theme" (e.g., "Ocean.theme")'
1179
+ /^([A-Z][a-zA-Z0-9]*\.theme|[a-z][a-z0-9]*(-[a-z0-9]+)*)$/,
1180
+ 'Theme reference must be "Alias.theme" or a registry theme key (e.g., "linear-clean-light")'
1171
1181
  );
1172
1182
  var ThemeRefSchema = z.union([
1173
1183
  ThemeDefinitionSchema,