@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.
- package/dist/builders.d.ts +3 -3
- package/dist/builders.js +12 -2
- package/dist/builders.js.map +1 -1
- package/dist/{effect-a1W_hXyG.d.ts → effect-M22diOHo.d.ts} +41 -6
- package/dist/{entityAccess-BTHElnAf.d.ts → entityAccess-BFmlJWS5.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +13 -2
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-D9aomsLC.d.ts → index-BGTJcLOt.d.ts} +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +257 -8
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +30 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +519 -6
- package/dist/patterns/index.js +234 -4
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +228 -1
- package/dist/patterns/registry.json +228 -1
- package/dist/{schema-WnERh-P-.d.ts → schema-CtOCXxsy.d.ts} +5691 -3
- package/dist/{trait-DgZ5Exel.d.ts → trait-C7w1IVQm.d.ts} +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +17 -3
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CGjZ7Odu.d.ts → types-CTH6fbI8.d.ts} +2 -2
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
|
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,
|