@almadar/core 10.102.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.
Files changed (45) hide show
  1. package/dist/builders.d.ts +5 -5
  2. package/dist/builders.js +5 -2
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{bus-BS4TMOJW.d.ts → bus-BGojNDOE.d.ts} +37 -7
  5. package/dist/{domain-Ds_7wZIL.d.ts → domain-OgMkN3WN.d.ts} +13 -1
  6. package/dist/{effect-Hm_QDaSI.d.ts → effect-Xn3LIyL7.d.ts} +1 -1
  7. package/dist/{entityAccess-D2OpLCyX.d.ts → entityAccess-z5HA0P7P.d.ts} +3 -3
  8. package/dist/{expression-DRwzVnMu.d.ts → expression-CfeHdS-f.d.ts} +10 -1
  9. package/dist/factory/index.d.ts +5 -5
  10. package/dist/factory/index.js.map +1 -1
  11. package/dist/factory-runtime/index.d.ts +5 -5
  12. package/dist/factory-runtime/index.js +33 -8
  13. package/dist/factory-runtime/index.js.map +1 -1
  14. package/dist/fixtures.d.ts +3 -3
  15. package/dist/fixtures.js +19 -2
  16. package/dist/fixtures.js.map +1 -1
  17. package/dist/i18n/index.js +27 -6
  18. package/dist/i18n/index.js.map +1 -1
  19. package/dist/{index-CyfcxG5N.d.ts → index-CVYZ3GcI.d.ts} +122 -23
  20. package/dist/index.d.ts +74 -17
  21. package/dist/index.js +400 -76
  22. package/dist/index.js.map +1 -1
  23. package/dist/lolo-document/index.d.ts +166 -0
  24. package/dist/lolo-document/index.js +615 -0
  25. package/dist/lolo-document/index.js.map +1 -0
  26. package/dist/mock/index.d.ts +6 -6
  27. package/dist/mock/index.js +12 -1
  28. package/dist/mock/index.js.map +1 -1
  29. package/dist/patterns/index.d.ts +22 -4
  30. package/dist/patterns/index.js +41 -1
  31. package/dist/patterns/index.js.map +1 -1
  32. package/dist/{schema-COf9yTjs.d.ts → schema-sHVqe8Kb.d.ts} +1307 -4
  33. package/dist/state-machine/index.d.ts +1 -1
  34. package/dist/themes/index.d.ts +1 -1
  35. package/dist/themes/index.js +2 -1
  36. package/dist/themes/index.js.map +1 -1
  37. package/dist/{trait-Be3xF0px.d.ts → trait-BSe6oDBd.d.ts} +59 -10
  38. package/dist/types/index.d.ts +8 -8
  39. package/dist/types/index.js +210 -16
  40. package/dist/types/index.js.map +1 -1
  41. package/dist/{types-CYOzs4As.d.ts → types-DK29MMOQ.d.ts} +2 -2
  42. package/fixtures/events-wire/client-effects-provenance/request.json +5 -0
  43. package/fixtures/events-wire/client-effects-provenance/response.json +57 -0
  44. package/package.json +6 -1
  45. package/src/types/bindings.ts +28 -3
@@ -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-Hm_QDaSI.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-COf9yTjs.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-Be3xF0px.js';
4
- import { S as SExpr } from './expression-DRwzVnMu.js';
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-Ds_7wZIL.js';
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(),
@@ -1307,8 +1308,9 @@ var ThemeDefinitionSchema = z.object({
1307
1308
  tokens: ThemeTokensSchema,
1308
1309
  variants: z.record(z.string(), ThemeVariantSchema).optional()
1309
1310
  });
1311
+ var THEME_REGISTRY_KEY_PATTERN = "[a-z][a-z0-9]*(-[a-z0-9]+)*";
1310
1312
  var ThemeRefStringSchema = z.string().regex(
1311
- /^([A-Z][a-zA-Z0-9]*\.theme|[a-z][a-z0-9]*(-[a-z0-9]+)*)$/,
1313
+ new RegExp(`^([A-Z][a-zA-Z0-9]*\\.theme|${THEME_REGISTRY_KEY_PATTERN})$`),
1312
1314
  'Theme reference must be "Alias.theme" or a registry theme key (e.g., "linear-clean-light")'
1313
1315
  );
1314
1316
  var ThemeRefSchema = z.union([
@@ -1522,7 +1524,8 @@ var OrbitalRefObjectSchema = z.object({
1522
1524
  roles: z.record(z.string(), z.array(z.string())).optional(),
1523
1525
  entities: z.record(z.string(), z.string()).optional(),
1524
1526
  mounts: z.record(z.string(), z.array(z.string())).optional(),
1525
- extend: z.array(EntityFieldSchema).optional()
1527
+ extend: z.array(EntityFieldSchema).optional(),
1528
+ listens: z.array(TraitEventListenerSchema.extend({ trait: z.string() })).optional()
1526
1529
  });
1527
1530
  z.string().regex(
1528
1531
  /^([A-Z][a-zA-Z0-9]*\.traits\.)?[A-Z][a-zA-Z0-9]*$/,