@almadar/core 10.101.0 → 10.103.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 +5 -5
- package/dist/builders.js +6 -2
- package/dist/builders.js.map +1 -1
- package/dist/{bus-B8evi8AZ.d.ts → bus-BGojNDOE.d.ts} +52 -7
- package/dist/{domain-Ds_7wZIL.d.ts → domain-OgMkN3WN.d.ts} +13 -1
- package/dist/{effect-Hm_QDaSI.d.ts → effect-Xn3LIyL7.d.ts} +1 -1
- package/dist/{entityAccess-DdcKps16.d.ts → entityAccess-z5HA0P7P.d.ts} +3 -3
- package/dist/{expression-DRwzVnMu.d.ts → expression-CfeHdS-f.d.ts} +10 -1
- package/dist/factory/index.d.ts +5 -5
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +5 -5
- package/dist/factory-runtime/index.js +42 -8
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +3 -3
- package/dist/fixtures.js +27 -2
- package/dist/fixtures.js.map +1 -1
- package/dist/i18n/index.js +27 -6
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-1b2JJVYl.d.ts → index-CVYZ3GcI.d.ts} +122 -23
- package/dist/index.d.ts +74 -17
- package/dist/index.js +417 -72
- package/dist/index.js.map +1 -1
- package/dist/lolo-document/index.d.ts +166 -0
- package/dist/lolo-document/index.js +615 -0
- package/dist/lolo-document/index.js.map +1 -0
- package/dist/mock/index.d.ts +6 -6
- package/dist/mock/index.js +12 -1
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/index.d.ts +22 -4
- package/dist/patterns/index.js +41 -1
- package/dist/patterns/index.js.map +1 -1
- package/dist/{schema-TqLV2wlK.d.ts → schema-sHVqe8Kb.d.ts} +1307 -4
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.js +2 -1
- package/dist/themes/index.js.map +1 -1
- package/dist/{trait-YlNXc4H3.d.ts → trait-BSe6oDBd.d.ts} +79 -3
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +227 -12
- package/dist/types/index.js.map +1 -1
- package/dist/{types-Ug92oza4.d.ts → types-DK29MMOQ.d.ts} +2 -2
- package/fixtures/events-wire/client-effects-provenance/request.json +5 -0
- package/fixtures/events-wire/client-effects-provenance/response.json +57 -0
- package/package.json +6 -1
- package/src/types/bindings.ts +28 -3
package/dist/builders.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, l as RenderBinding, m as RenderUIEffect, e as EntityId, f as Entity, E as EntityField, a as EntityPersistence, g 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, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-
|
|
4
|
-
import { S as SExpr } from './expression-
|
|
1
|
+
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, l as RenderBinding, m as RenderUIEffect, e as EntityId, f as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-Xn3LIyL7.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-sHVqe8Kb.js';
|
|
3
|
+
import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-BSe6oDBd.js';
|
|
4
|
+
import { S as SExpr } from './expression-CfeHdS-f.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './json-D8gmyK3l.js';
|
|
7
|
-
import './domain-
|
|
7
|
+
import './domain-OgMkN3WN.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Event Wiring
|
package/dist/builders.js
CHANGED
|
@@ -690,6 +690,7 @@ var TraitTickSchema = z.object({
|
|
|
690
690
|
priority: z.number().optional(),
|
|
691
691
|
interval: TickIntervalSchema,
|
|
692
692
|
appliesTo: z.array(z.string()).optional(),
|
|
693
|
+
runsInBackground: z.boolean().optional(),
|
|
693
694
|
pages: z.array(z.string()).optional(),
|
|
694
695
|
pageIds: z.array(PageIdSchema).optional(),
|
|
695
696
|
guard: ExpressionSchema.optional(),
|
|
@@ -859,6 +860,7 @@ var EffectUseSchema = z.object({
|
|
|
859
860
|
site: EffectSiteSchema.optional()
|
|
860
861
|
});
|
|
861
862
|
var EffectRowSchema = z.array(EffectUseSchema);
|
|
863
|
+
z.enum(["persistedAwaited", "hybridClientOnly", "runtimeOptimistic"]);
|
|
862
864
|
var SourceBehaviorMetadataSchema = z.object({
|
|
863
865
|
behavior: z.string().min(1),
|
|
864
866
|
alias: z.string().min(1),
|
|
@@ -1306,8 +1308,9 @@ var ThemeDefinitionSchema = z.object({
|
|
|
1306
1308
|
tokens: ThemeTokensSchema,
|
|
1307
1309
|
variants: z.record(z.string(), ThemeVariantSchema).optional()
|
|
1308
1310
|
});
|
|
1311
|
+
var THEME_REGISTRY_KEY_PATTERN = "[a-z][a-z0-9]*(-[a-z0-9]+)*";
|
|
1309
1312
|
var ThemeRefStringSchema = z.string().regex(
|
|
1310
|
-
|
|
1313
|
+
new RegExp(`^([A-Z][a-zA-Z0-9]*\\.theme|${THEME_REGISTRY_KEY_PATTERN})$`),
|
|
1311
1314
|
'Theme reference must be "Alias.theme" or a registry theme key (e.g., "linear-clean-light")'
|
|
1312
1315
|
);
|
|
1313
1316
|
var ThemeRefSchema = z.union([
|
|
@@ -1521,7 +1524,8 @@ var OrbitalRefObjectSchema = z.object({
|
|
|
1521
1524
|
roles: z.record(z.string(), z.array(z.string())).optional(),
|
|
1522
1525
|
entities: z.record(z.string(), z.string()).optional(),
|
|
1523
1526
|
mounts: z.record(z.string(), z.array(z.string())).optional(),
|
|
1524
|
-
extend: z.array(EntityFieldSchema).optional()
|
|
1527
|
+
extend: z.array(EntityFieldSchema).optional(),
|
|
1528
|
+
listens: z.array(TraitEventListenerSchema.extend({ trait: z.string() })).optional()
|
|
1525
1529
|
});
|
|
1526
1530
|
z.string().regex(
|
|
1527
1531
|
/^([A-Z][a-zA-Z0-9]*\.traits\.)?[A-Z][a-zA-Z0-9]*$/,
|