@almadar/core 10.81.0 → 10.82.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 (34) hide show
  1. package/dist/builders.d.ts +3 -3
  2. package/dist/builders.js +10 -0
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{effect-BHoSW19_.d.ts → effect-Baldm2vM.d.ts} +114 -4
  5. package/dist/{entityAccess-0POr1WuY.d.ts → entityAccess-CDYT7WWR.d.ts} +1 -1
  6. package/dist/factory/index.d.ts +4 -4
  7. package/dist/factory/index.js +570 -0
  8. package/dist/factory/index.js.map +1 -1
  9. package/dist/factory-runtime/index.d.ts +3 -3
  10. package/dist/factory-runtime/index.js +10 -0
  11. package/dist/factory-runtime/index.js.map +1 -1
  12. package/dist/{index-rVlLkZJu.d.ts → index-R8PyPrGg.d.ts} +4 -4
  13. package/dist/index.d.ts +10 -10
  14. package/dist/index.js +587 -5
  15. package/dist/index.js.map +1 -1
  16. package/dist/mock/index.d.ts +4 -4
  17. package/dist/mock/index.js +10 -0
  18. package/dist/mock/index.js.map +1 -1
  19. package/dist/patterns/component-mapping.json +11 -1
  20. package/dist/patterns/event-contracts.json +1 -1
  21. package/dist/patterns/index.d.ts +1270 -6
  22. package/dist/patterns/index.js +576 -4
  23. package/dist/patterns/index.js.map +1 -1
  24. package/dist/patterns/integrators-registry.json +1 -1
  25. package/dist/patterns/patterns-registry.json +561 -1
  26. package/dist/patterns/registry.json +561 -1
  27. package/dist/patterns/services-registry.json +1 -1
  28. package/dist/{schema-CkTTGH6l.d.ts → schema-1KQUz2pE.d.ts} +2 -2
  29. package/dist/{trait-D269f6pt.d.ts → trait-Dsp0vmGp.d.ts} +1 -1
  30. package/dist/types/index.d.ts +5 -5
  31. package/dist/types/index.js +13 -1
  32. package/dist/types/index.js.map +1 -1
  33. package/dist/{types-7PHjoE7m.d.ts → types-DJYozDXK.d.ts} +2 -2
  34. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // src/patterns/patterns-registry.json
4
4
  var patterns_registry_default = {
5
5
  version: "1.0.0",
6
- exportedAt: "2026-09-03T03:26:05.097Z",
6
+ exportedAt: "2026-09-03T18:48:23.816Z",
7
7
  patterns: {
8
8
  "entity-table": {
9
9
  type: "entity-table",
@@ -32711,6 +32711,20 @@ var patterns_registry_default = {
32711
32711
  "role",
32712
32712
  "category"
32713
32713
  ]
32714
+ },
32715
+ toggleEvent: {
32716
+ types: [
32717
+ "string"
32718
+ ],
32719
+ description: "Event dispatched via event bus on toggle, carrying the new muted state.",
32720
+ kind: "event-ref",
32721
+ emitPayloadSchema: [
32722
+ {
32723
+ name: "muted",
32724
+ type: "boolean",
32725
+ required: true
32726
+ }
32727
+ ]
32714
32728
  }
32715
32729
  }
32716
32730
  },
@@ -37813,6 +37827,92 @@ var patterns_registry_default = {
37813
37827
  ]
37814
37828
  }
37815
37829
  },
37830
+ editable: {
37831
+ types: [
37832
+ "boolean"
37833
+ ],
37834
+ description: "--- Scene-edit mode (a game studio selecting/dragging drawables). Purely",
37835
+ default: false
37836
+ },
37837
+ selectedId: {
37838
+ types: [
37839
+ "string"
37840
+ ],
37841
+ description: "The currently-selected drawable id (controlled); `null`/undefined = none.",
37842
+ default: null
37843
+ },
37844
+ onSelect: {
37845
+ types: [
37846
+ "function"
37847
+ ],
37848
+ description: "Fired on a click that changes selection \u2014 before `selectEvent`.",
37849
+ kind: "callback",
37850
+ callbackArgs: [
37851
+ {
37852
+ name: "id",
37853
+ type: "string"
37854
+ }
37855
+ ]
37856
+ },
37857
+ onMove: {
37858
+ types: [
37859
+ "function"
37860
+ ],
37861
+ description: "Fired once per drag gesture, on drop \u2014 before `moveEvent`.",
37862
+ kind: "callback",
37863
+ callbackArgs: [
37864
+ {
37865
+ name: "id",
37866
+ type: "string"
37867
+ },
37868
+ {
37869
+ name: "x",
37870
+ type: "number"
37871
+ },
37872
+ {
37873
+ name: "y",
37874
+ type: "number"
37875
+ }
37876
+ ]
37877
+ },
37878
+ selectEvent: {
37879
+ types: [
37880
+ "string"
37881
+ ],
37882
+ description: "Declarative selection event, `UI:{selectEvent} { id }`.",
37883
+ kind: "event-ref",
37884
+ emitPayloadSchema: [
37885
+ {
37886
+ name: "id",
37887
+ type: "string",
37888
+ required: true
37889
+ }
37890
+ ]
37891
+ },
37892
+ moveEvent: {
37893
+ types: [
37894
+ "string"
37895
+ ],
37896
+ description: "Declarative move event, `UI:{moveEvent} { id, x, y }` \u2014 fired once on drop.",
37897
+ kind: "event-ref",
37898
+ emitPayloadSchema: [
37899
+ {
37900
+ name: "id",
37901
+ type: "string",
37902
+ required: true
37903
+ },
37904
+ {
37905
+ name: "x",
37906
+ type: "number",
37907
+ required: true
37908
+ },
37909
+ {
37910
+ name: "y",
37911
+ type: "number",
37912
+ required: true
37913
+ }
37914
+ ]
37915
+ },
37816
37916
  camera: {
37817
37917
  types: [
37818
37918
  "string"
@@ -38988,6 +39088,12 @@ var patterns_registry_default = {
38988
39088
  ],
38989
39089
  description: "Background color (default transparent)."
38990
39090
  },
39091
+ fontFamily: {
39092
+ types: [
39093
+ "string"
39094
+ ],
39095
+ description: "Canvas text font family. Falls back to the theme's --font-family-body."
39096
+ },
38991
39097
  shapes: {
38992
39098
  types: [
38993
39099
  "array"
@@ -39112,6 +39218,11 @@ var patterns_registry_default = {
39112
39218
  "number"
39113
39219
  ]
39114
39220
  },
39221
+ fontFamily: {
39222
+ types: [
39223
+ "string"
39224
+ ]
39225
+ },
39115
39226
  align: {
39116
39227
  types: [
39117
39228
  "string"
@@ -40484,6 +40595,11 @@ var patterns_registry_default = {
40484
40595
  "number"
40485
40596
  ]
40486
40597
  },
40598
+ fontFamily: {
40599
+ types: [
40600
+ "string"
40601
+ ]
40602
+ },
40487
40603
  align: {
40488
40604
  types: [
40489
40605
  "string"
@@ -41759,6 +41875,11 @@ var patterns_registry_default = {
41759
41875
  "number"
41760
41876
  ]
41761
41877
  },
41878
+ fontFamily: {
41879
+ types: [
41880
+ "string"
41881
+ ]
41882
+ },
41762
41883
  align: {
41763
41884
  types: [
41764
41885
  "string"
@@ -42235,6 +42356,12 @@ var patterns_registry_default = {
42235
42356
  description: "Base font size in px for all other canvas annotations (points, vectors, guides, curves, regions, angles, hops; default 12).",
42236
42357
  default: 12
42237
42358
  },
42359
+ fontFamily: {
42360
+ types: [
42361
+ "string"
42362
+ ],
42363
+ description: 'Canvas text font family. Accepts a known game-font key (e.g. "future-narrow") or a CSS font-family string.'
42364
+ },
42238
42365
  showCurveLabels: {
42239
42366
  types: [
42240
42367
  "boolean"
@@ -42812,6 +42939,11 @@ var patterns_registry_default = {
42812
42939
  "number"
42813
42940
  ]
42814
42941
  },
42942
+ fontFamily: {
42943
+ types: [
42944
+ "string"
42945
+ ]
42946
+ },
42815
42947
  align: {
42816
42948
  types: [
42817
42949
  "string"
@@ -44347,6 +44479,11 @@ var patterns_registry_default = {
44347
44479
  "number"
44348
44480
  ]
44349
44481
  },
44482
+ fontFamily: {
44483
+ types: [
44484
+ "string"
44485
+ ]
44486
+ },
44350
44487
  align: {
44351
44488
  types: [
44352
44489
  "string"
@@ -45556,6 +45693,11 @@ var patterns_registry_default = {
45556
45693
  "number"
45557
45694
  ]
45558
45695
  },
45696
+ fontFamily: {
45697
+ types: [
45698
+ "string"
45699
+ ]
45700
+ },
45559
45701
  align: {
45560
45702
  types: [
45561
45703
  "string"
@@ -48838,6 +48980,90 @@ var patterns_registry_default = {
48838
48980
  ]
48839
48981
  }
48840
48982
  },
48983
+ editable: {
48984
+ types: [
48985
+ "boolean"
48986
+ ],
48987
+ description: "--- Scene-edit mode (a game studio selecting/dragging drawables). Purely"
48988
+ },
48989
+ selectedId: {
48990
+ types: [
48991
+ "string"
48992
+ ],
48993
+ description: "The currently-selected drawable id (controlled); `null`/undefined = none."
48994
+ },
48995
+ onSelect: {
48996
+ types: [
48997
+ "function"
48998
+ ],
48999
+ description: "Fired on a click that changes selection \u2014 before `selectEvent`.",
49000
+ kind: "callback",
49001
+ callbackArgs: [
49002
+ {
49003
+ name: "id",
49004
+ type: "string"
49005
+ }
49006
+ ]
49007
+ },
49008
+ onMove: {
49009
+ types: [
49010
+ "function"
49011
+ ],
49012
+ description: "Fired once per drag gesture, on drop \u2014 before `moveEvent`.",
49013
+ kind: "callback",
49014
+ callbackArgs: [
49015
+ {
49016
+ name: "id",
49017
+ type: "string"
49018
+ },
49019
+ {
49020
+ name: "x",
49021
+ type: "number"
49022
+ },
49023
+ {
49024
+ name: "y",
49025
+ type: "number"
49026
+ }
49027
+ ]
49028
+ },
49029
+ selectEvent: {
49030
+ types: [
49031
+ "string"
49032
+ ],
49033
+ description: "Declarative selection event, `UI:{selectEvent} { id }`.",
49034
+ kind: "event-ref",
49035
+ emitPayloadSchema: [
49036
+ {
49037
+ name: "id",
49038
+ type: "string",
49039
+ required: true
49040
+ }
49041
+ ]
49042
+ },
49043
+ moveEvent: {
49044
+ types: [
49045
+ "string"
49046
+ ],
49047
+ description: "Declarative move event, `UI:{moveEvent} { id, x, y }` \u2014 fired once on drop.",
49048
+ kind: "event-ref",
49049
+ emitPayloadSchema: [
49050
+ {
49051
+ name: "id",
49052
+ type: "string",
49053
+ required: true
49054
+ },
49055
+ {
49056
+ name: "x",
49057
+ type: "number",
49058
+ required: true
49059
+ },
49060
+ {
49061
+ name: "y",
49062
+ type: "number",
49063
+ required: true
49064
+ }
49065
+ ]
49066
+ },
48841
49067
  children: {
48842
49068
  types: [
48843
49069
  "node"
@@ -50366,6 +50592,11 @@ var patterns_registry_default = {
50366
50592
  "number"
50367
50593
  ]
50368
50594
  },
50595
+ fontFamily: {
50596
+ types: [
50597
+ "string"
50598
+ ]
50599
+ },
50369
50600
  align: {
50370
50601
  types: [
50371
50602
  "string"
@@ -51682,6 +51913,11 @@ var patterns_registry_default = {
51682
51913
  types: [
51683
51914
  "boolean"
51684
51915
  ]
51916
+ },
51917
+ testId: {
51918
+ types: [
51919
+ "string"
51920
+ ]
51685
51921
  }
51686
51922
  },
51687
51923
  required: [
@@ -51938,6 +52174,330 @@ var patterns_registry_default = {
51938
52174
  description: "secondarySidebarClassName prop"
51939
52175
  }
51940
52176
  }
52177
+ },
52178
+ "command-palette": {
52179
+ type: "command-palette",
52180
+ category: "component",
52181
+ tier: "molecules",
52182
+ family: "core",
52183
+ description: "CommandPalette component",
52184
+ suggestedFor: [
52185
+ "command",
52186
+ "palette",
52187
+ "command palette"
52188
+ ],
52189
+ typicalSize: "medium",
52190
+ propsSchema: {
52191
+ open: {
52192
+ types: [
52193
+ "boolean"
52194
+ ],
52195
+ description: "Whether the palette overlay is open",
52196
+ required: true
52197
+ },
52198
+ onOpenChange: {
52199
+ types: [
52200
+ "function"
52201
+ ],
52202
+ description: "Called to open/close the overlay (Escape, overlay click, or a selection)",
52203
+ required: true,
52204
+ kind: "callback",
52205
+ callbackArgs: [
52206
+ {
52207
+ name: "open",
52208
+ type: "boolean"
52209
+ }
52210
+ ]
52211
+ },
52212
+ commands: {
52213
+ types: [
52214
+ "array"
52215
+ ],
52216
+ description: "Commands listed in the palette, filtered as the user types",
52217
+ required: true,
52218
+ items: {
52219
+ types: [
52220
+ "object"
52221
+ ],
52222
+ properties: {
52223
+ id: {
52224
+ types: [
52225
+ "string"
52226
+ ]
52227
+ },
52228
+ label: {
52229
+ types: [
52230
+ "string"
52231
+ ]
52232
+ },
52233
+ icon: {
52234
+ types: [
52235
+ "icon",
52236
+ "string"
52237
+ ]
52238
+ },
52239
+ shortcut: {
52240
+ types: [
52241
+ "string"
52242
+ ]
52243
+ },
52244
+ keywords: {
52245
+ types: [
52246
+ "array"
52247
+ ],
52248
+ items: {
52249
+ types: [
52250
+ "string"
52251
+ ]
52252
+ }
52253
+ },
52254
+ group: {
52255
+ types: [
52256
+ "string"
52257
+ ]
52258
+ },
52259
+ disabled: {
52260
+ types: [
52261
+ "boolean"
52262
+ ]
52263
+ },
52264
+ event: {
52265
+ types: [
52266
+ "string"
52267
+ ]
52268
+ },
52269
+ action: {
52270
+ types: [
52271
+ "string"
52272
+ ]
52273
+ },
52274
+ actionPayload: {
52275
+ types: [
52276
+ "object"
52277
+ ],
52278
+ freeform: true,
52279
+ eventPayloadBrand: true
52280
+ }
52281
+ },
52282
+ required: [
52283
+ "id",
52284
+ "label"
52285
+ ]
52286
+ }
52287
+ },
52288
+ onSelect: {
52289
+ types: [
52290
+ "function"
52291
+ ],
52292
+ description: "Called with the selected command (click, or Enter on the highlighted row)",
52293
+ kind: "callback",
52294
+ callbackArgs: [
52295
+ {
52296
+ name: "command",
52297
+ type: "object",
52298
+ schema: {
52299
+ types: [
52300
+ "object"
52301
+ ],
52302
+ properties: {
52303
+ id: {
52304
+ types: [
52305
+ "string"
52306
+ ]
52307
+ },
52308
+ label: {
52309
+ types: [
52310
+ "string"
52311
+ ]
52312
+ },
52313
+ icon: {
52314
+ types: [
52315
+ "icon",
52316
+ "string"
52317
+ ]
52318
+ },
52319
+ shortcut: {
52320
+ types: [
52321
+ "string"
52322
+ ]
52323
+ },
52324
+ keywords: {
52325
+ types: [
52326
+ "array"
52327
+ ],
52328
+ items: {
52329
+ types: [
52330
+ "string"
52331
+ ]
52332
+ }
52333
+ },
52334
+ group: {
52335
+ types: [
52336
+ "string"
52337
+ ]
52338
+ },
52339
+ disabled: {
52340
+ types: [
52341
+ "boolean"
52342
+ ]
52343
+ },
52344
+ event: {
52345
+ types: [
52346
+ "string"
52347
+ ]
52348
+ },
52349
+ action: {
52350
+ types: [
52351
+ "string"
52352
+ ]
52353
+ },
52354
+ actionPayload: {
52355
+ types: [
52356
+ "object"
52357
+ ],
52358
+ freeform: true,
52359
+ eventPayloadBrand: true
52360
+ }
52361
+ },
52362
+ required: [
52363
+ "id",
52364
+ "label"
52365
+ ]
52366
+ }
52367
+ }
52368
+ ]
52369
+ },
52370
+ placeholder: {
52371
+ types: [
52372
+ "string"
52373
+ ],
52374
+ description: "Search field placeholder. Consumers own i18n \u2014 plain string prop, no package-internal translation (matches FloatingToolbar's convention).",
52375
+ default: "Type a command..."
52376
+ },
52377
+ emptyLabel: {
52378
+ types: [
52379
+ "string"
52380
+ ],
52381
+ description: "Label shown when no command matches the query",
52382
+ default: "No matching commands"
52383
+ },
52384
+ className: {
52385
+ types: [
52386
+ "string"
52387
+ ],
52388
+ description: "Additional CSS classes on the overlay's dialog"
52389
+ }
52390
+ }
52391
+ },
52392
+ "game-audio-cue": {
52393
+ type: "game-audio-cue",
52394
+ category: "game",
52395
+ tier: "atoms",
52396
+ family: "game",
52397
+ description: "GameAudioCue component",
52398
+ suggestedFor: [
52399
+ "game",
52400
+ "audio",
52401
+ "cue",
52402
+ "game audio cue"
52403
+ ],
52404
+ typicalSize: "small",
52405
+ propsSchema: {
52406
+ cue: {
52407
+ types: [
52408
+ "string"
52409
+ ],
52410
+ description: "Manifest key played as a one-shot SFX each time `cueSeq` advances."
52411
+ },
52412
+ cueSeq: {
52413
+ types: [
52414
+ "number"
52415
+ ],
52416
+ description: "Monotonically increasing counter \u2014 bumping it re-triggers `cue`."
52417
+ },
52418
+ music: {
52419
+ types: [
52420
+ "string"
52421
+ ],
52422
+ description: "Manifest key to crossfade to as looping background music; unset/empty stops music."
52423
+ },
52424
+ muted: {
52425
+ types: [
52426
+ "boolean"
52427
+ ],
52428
+ description: "Muted state, owned externally and mirrored into the hook."
52429
+ },
52430
+ volume: {
52431
+ types: [
52432
+ "number"
52433
+ ],
52434
+ description: "Master volume 0-1, owned externally and mirrored into the hook."
52435
+ },
52436
+ manifest: {
52437
+ types: [
52438
+ "object"
52439
+ ],
52440
+ description: "Sound manifest \u2014 keys mapped to sound definitions (path, volume, loop, ...).",
52441
+ required: true,
52442
+ mapValue: {
52443
+ types: [
52444
+ "object"
52445
+ ],
52446
+ properties: {
52447
+ path: {
52448
+ types: [
52449
+ "string",
52450
+ "array"
52451
+ ],
52452
+ items: {
52453
+ types: [
52454
+ "string"
52455
+ ]
52456
+ }
52457
+ },
52458
+ volume: {
52459
+ types: [
52460
+ "number"
52461
+ ]
52462
+ },
52463
+ loop: {
52464
+ types: [
52465
+ "boolean"
52466
+ ]
52467
+ },
52468
+ poolSize: {
52469
+ types: [
52470
+ "number"
52471
+ ]
52472
+ },
52473
+ autostart: {
52474
+ types: [
52475
+ "boolean"
52476
+ ]
52477
+ },
52478
+ crossfade: {
52479
+ types: [
52480
+ "boolean"
52481
+ ]
52482
+ },
52483
+ crossfadeDurationMs: {
52484
+ types: [
52485
+ "number"
52486
+ ]
52487
+ }
52488
+ },
52489
+ required: [
52490
+ "path"
52491
+ ]
52492
+ }
52493
+ },
52494
+ baseUrl: {
52495
+ types: [
52496
+ "string"
52497
+ ],
52498
+ description: "Base URL prepended to every manifest path."
52499
+ }
52500
+ }
51941
52501
  }
51942
52502
  },
51943
52503
  categories: [
@@ -51963,7 +52523,7 @@ var patterns_registry_default = {
51963
52523
  // src/patterns/integrators-registry.json
51964
52524
  var integrators_registry_default = {
51965
52525
  version: "1.0.0",
51966
- exportedAt: "2026-09-03T08:33:38.850Z",
52526
+ exportedAt: "2026-09-03T18:48:24.308Z",
51967
52527
  integrators: {
51968
52528
  github: {
51969
52529
  name: "github",
@@ -55481,7 +56041,7 @@ var integrators_registry_default = {
55481
56041
  // src/patterns/component-mapping.json
55482
56042
  var component_mapping_default = {
55483
56043
  version: "1.0.0",
55484
- exportedAt: "2026-09-03T03:26:05.097Z",
56044
+ exportedAt: "2026-09-03T18:48:23.816Z",
55485
56045
  mappings: {
55486
56046
  "page-header": {
55487
56047
  component: "PageHeader",
@@ -56904,6 +57464,16 @@ var component_mapping_default = {
56904
57464
  component: "DockLayout",
56905
57465
  importPath: "@/components/core/organisms/DockLayout",
56906
57466
  category: "layout"
57467
+ },
57468
+ "command-palette": {
57469
+ component: "CommandPalette",
57470
+ importPath: "@/components/core/molecules/CommandPalette",
57471
+ category: "component"
57472
+ },
57473
+ "game-audio-cue": {
57474
+ component: "GameAudioCue",
57475
+ importPath: "@/components/game/atoms/GameAudioCue",
57476
+ category: "game"
56907
57477
  }
56908
57478
  }
56909
57479
  };
@@ -56911,7 +57481,7 @@ var component_mapping_default = {
56911
57481
  // src/patterns/event-contracts.json
56912
57482
  var event_contracts_default = {
56913
57483
  version: "1.0.0",
56914
- exportedAt: "2026-09-03T03:26:05.097Z",
57484
+ exportedAt: "2026-09-03T18:48:23.816Z",
56915
57485
  contracts: {
56916
57486
  form: {
56917
57487
  emits: [
@@ -58126,6 +58696,7 @@ var PATTERN_TYPES = [
58126
58696
  "choice-button",
58127
58697
  "code-block",
58128
58698
  "code-runner-panel",
58699
+ "command-palette",
58129
58700
  "community-links",
58130
58701
  "conditional-wrapper",
58131
58702
  "confetti-effect",
@@ -58196,6 +58767,7 @@ var PATTERN_TYPES = [
58196
58767
  "form-section",
58197
58768
  "form-section-header",
58198
58769
  "fx-overlay",
58770
+ "game-audio-cue",
58199
58771
  "game-audio-toggle",
58200
58772
  "game-hud",
58201
58773
  "game-icon",