@almadar/core 10.107.0 → 10.109.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 (40) hide show
  1. package/dist/builders.d.ts +5 -5
  2. package/dist/builders.js.map +1 -1
  3. package/dist/{bus-LOS3PhAg.d.ts → bus-De_T27aq.d.ts} +2 -2
  4. package/dist/{effect-CXEHwilA.d.ts → effect-Cv7k1MTO.d.ts} +97 -9
  5. package/dist/{entityAccess-B3DEJe_j.d.ts → entityAccess-CH8vC2OG.d.ts} +3 -3
  6. package/dist/{expression-CfeHdS-f.d.ts → expression-C6Gs_c5b.d.ts} +7 -1
  7. package/dist/factory/index.d.ts +5 -5
  8. package/dist/factory/index.js +1558 -250
  9. package/dist/factory/index.js.map +1 -1
  10. package/dist/factory-runtime/index.d.ts +5 -5
  11. package/dist/factory-runtime/index.js +1 -1
  12. package/dist/factory-runtime/index.js.map +1 -1
  13. package/dist/fixtures.d.ts +3 -3
  14. package/dist/fixtures.js.map +1 -1
  15. package/dist/{index-Dv2PNH42.d.ts → index-BzFToa4c.d.ts} +15 -8
  16. package/dist/index.d.ts +15 -15
  17. package/dist/index.js +1667 -255
  18. package/dist/index.js.map +1 -1
  19. package/dist/lolo-document/index.d.ts +7 -1
  20. package/dist/lolo-document/index.js +39 -1
  21. package/dist/lolo-document/index.js.map +1 -1
  22. package/dist/mock/index.d.ts +6 -6
  23. package/dist/mock/index.js.map +1 -1
  24. package/dist/patterns/component-mapping.json +11 -1
  25. package/dist/patterns/event-contracts.json +1 -1
  26. package/dist/patterns/index.d.ts +3271 -588
  27. package/dist/patterns/index.js +1573 -253
  28. package/dist/patterns/index.js.map +1 -1
  29. package/dist/patterns/patterns-registry.json +1559 -251
  30. package/dist/patterns/registry.json +1559 -251
  31. package/dist/{schema-Bpel0-Do.d.ts → schema-Chi9QIcZ.d.ts} +1022 -1022
  32. package/dist/state-machine/index.d.ts +1 -1
  33. package/dist/themes/index.d.ts +1 -1
  34. package/dist/{trait-C97MPrMf.d.ts → trait-A_OGE8xT.d.ts} +182 -182
  35. package/dist/types/index.d.ts +8 -8
  36. package/dist/types/index.js +96 -2
  37. package/dist/types/index.js.map +1 -1
  38. package/dist/{types-CoFKpB6f.d.ts → types-DQoBssKq.d.ts} +2 -2
  39. package/package.json +1 -1
  40. package/dist/{domain-DnEv7amB.d.ts → domain-DYverojF.d.ts} +28 -28
@@ -4823,6 +4823,7 @@ var patterns_registry_default = {
4823
4823
  "search-input": {
4824
4824
  type: "search-input",
4825
4825
  category: "filter",
4826
+ sourceFile: "components/core/molecules/SearchInput.tsx",
4826
4827
  tier: "molecules",
4827
4828
  family: "core",
4828
4829
  description: "Search input with events",
@@ -4920,6 +4921,7 @@ var patterns_registry_default = {
4920
4921
  "filter-group": {
4921
4922
  type: "filter-group",
4922
4923
  category: "filter",
4924
+ sourceFile: "components/core/molecules/FilterGroup.tsx",
4923
4925
  tier: "molecules",
4924
4926
  family: "core",
4925
4927
  description: "FilterGroup \u2014 a panel of filter controls that narrows a collection by field values.",
@@ -5623,7 +5625,16 @@ var patterns_registry_default = {
5623
5625
  required: [
5624
5626
  "label"
5625
5627
  ]
5626
- }
5628
+ },
5629
+ example: [
5630
+ {
5631
+ label: "Home",
5632
+ href: "/"
5633
+ },
5634
+ {
5635
+ label: "Page"
5636
+ }
5637
+ ]
5627
5638
  },
5628
5639
  fromNavStack: {
5629
5640
  types: [
@@ -5681,6 +5692,7 @@ var patterns_registry_default = {
5681
5692
  "wizard-progress": {
5682
5693
  type: "wizard-progress",
5683
5694
  category: "navigation",
5695
+ sourceFile: "components/core/molecules/WizardProgress.tsx",
5684
5696
  tier: "molecules",
5685
5697
  family: "core",
5686
5698
  description: "Wizard step progress indicator",
@@ -5782,6 +5794,7 @@ var patterns_registry_default = {
5782
5794
  "wizard-navigation": {
5783
5795
  type: "wizard-navigation",
5784
5796
  category: "navigation",
5797
+ sourceFile: "components/core/molecules/WizardNavigation.tsx",
5785
5798
  tier: "molecules",
5786
5799
  family: "core",
5787
5800
  description: "Wizard navigation buttons",
@@ -6757,6 +6770,7 @@ var patterns_registry_default = {
6757
6770
  pagination: {
6758
6771
  type: "pagination",
6759
6772
  category: "navigation",
6773
+ sourceFile: "components/core/molecules/Pagination.tsx",
6760
6774
  tier: "molecules",
6761
6775
  family: "core",
6762
6776
  description: "Page navigation controls",
@@ -6902,6 +6916,7 @@ var patterns_registry_default = {
6902
6916
  "empty-state": {
6903
6917
  type: "empty-state",
6904
6918
  category: "state",
6919
+ sourceFile: "components/core/molecules/EmptyState.tsx",
6905
6920
  tier: "molecules",
6906
6921
  family: "core",
6907
6922
  description: "Message when no data exists",
@@ -7001,6 +7016,7 @@ var patterns_registry_default = {
7001
7016
  "loading-state": {
7002
7017
  type: "loading-state",
7003
7018
  category: "state",
7019
+ sourceFile: "components/core/molecules/LoadingState.tsx",
7004
7020
  tier: "molecules",
7005
7021
  family: "core",
7006
7022
  description: "Loading indicator",
@@ -7039,6 +7055,7 @@ var patterns_registry_default = {
7039
7055
  "error-state": {
7040
7056
  type: "error-state",
7041
7057
  category: "state",
7058
+ sourceFile: "components/core/molecules/ErrorState.tsx",
7042
7059
  tier: "molecules",
7043
7060
  family: "core",
7044
7061
  description: "Error message display",
@@ -7093,6 +7110,7 @@ var patterns_registry_default = {
7093
7110
  notification: {
7094
7111
  type: "notification",
7095
7112
  category: "state",
7113
+ sourceFile: "components/core/molecules/Toast.tsx",
7096
7114
  tier: "molecules",
7097
7115
  family: "core",
7098
7116
  description: "Toast notification message",
@@ -7199,6 +7217,7 @@ var patterns_registry_default = {
7199
7217
  modal: {
7200
7218
  type: "modal",
7201
7219
  category: "container",
7220
+ sourceFile: "components/core/molecules/Modal.tsx",
7202
7221
  tier: "molecules",
7203
7222
  family: "core",
7204
7223
  description: "Modal dialog overlay",
@@ -7325,6 +7344,7 @@ var patterns_registry_default = {
7325
7344
  drawer: {
7326
7345
  type: "drawer",
7327
7346
  category: "container",
7347
+ sourceFile: "components/core/molecules/Drawer.tsx",
7328
7348
  tier: "molecules",
7329
7349
  family: "core",
7330
7350
  description: "Side drawer panel",
@@ -7426,6 +7446,7 @@ var patterns_registry_default = {
7426
7446
  "confirm-dialog": {
7427
7447
  type: "confirm-dialog",
7428
7448
  category: "container",
7449
+ sourceFile: "components/core/molecules/ConfirmDialog.tsx",
7429
7450
  tier: "molecules",
7430
7451
  family: "core",
7431
7452
  description: "Confirmation dialog",
@@ -7579,6 +7600,7 @@ var patterns_registry_default = {
7579
7600
  "master-detail": {
7580
7601
  type: "master-detail",
7581
7602
  category: "layout",
7603
+ sourceFile: "components/core/organisms/MasterDetail.tsx",
7582
7604
  tier: "organisms",
7583
7605
  family: "core",
7584
7606
  description: "List on left, selected item detail on right",
@@ -7781,7 +7803,8 @@ var patterns_registry_default = {
7781
7803
  "lg",
7782
7804
  "xl",
7783
7805
  "2xl"
7784
- ]
7806
+ ],
7807
+ example: "md"
7785
7808
  },
7786
7809
  paddingX: {
7787
7810
  types: [
@@ -7882,7 +7905,8 @@ var patterns_registry_default = {
7882
7905
  "boolean"
7883
7906
  ],
7884
7907
  description: "Show border",
7885
- default: false
7908
+ default: false,
7909
+ example: true
7886
7910
  },
7887
7911
  rounded: {
7888
7912
  types: [
@@ -8025,6 +8049,7 @@ var patterns_registry_default = {
8025
8049
  grid: {
8026
8050
  type: "grid",
8027
8051
  category: "layout",
8052
+ sourceFile: "components/core/molecules/Grid.tsx",
8028
8053
  tier: "molecules",
8029
8054
  family: "core",
8030
8055
  description: "CSS Grid layout for multi-column content",
@@ -8219,6 +8244,7 @@ var patterns_registry_default = {
8219
8244
  center: {
8220
8245
  type: "center",
8221
8246
  category: "layout",
8247
+ sourceFile: "components/core/atoms/Center.tsx",
8222
8248
  tier: "atoms",
8223
8249
  family: "core",
8224
8250
  description: "Centers content horizontally and vertically",
@@ -8307,6 +8333,7 @@ var patterns_registry_default = {
8307
8333
  spacer: {
8308
8334
  type: "spacer",
8309
8335
  category: "layout",
8336
+ sourceFile: "components/core/atoms/Spacer.tsx",
8310
8337
  tier: "atoms",
8311
8338
  family: "core",
8312
8339
  description: "Flexible space that expands to fill available room",
@@ -8355,6 +8382,7 @@ var patterns_registry_default = {
8355
8382
  divider: {
8356
8383
  type: "divider",
8357
8384
  category: "layout",
8385
+ sourceFile: "components/core/atoms/Divider.tsx",
8358
8386
  tier: "atoms",
8359
8387
  family: "core",
8360
8388
  description: "Visual separator between content sections",
@@ -8405,6 +8433,7 @@ var patterns_registry_default = {
8405
8433
  "runtime-debugger": {
8406
8434
  type: "runtime-debugger",
8407
8435
  category: "debug",
8436
+ sourceFile: "components/core/organisms/debug/RuntimeDebugger.tsx",
8408
8437
  tier: "organisms",
8409
8438
  family: "core",
8410
8439
  description: "Debug overlay showing FPS, entity states, event logs",
@@ -8669,7 +8698,8 @@ var patterns_registry_default = {
8669
8698
  types: [
8670
8699
  "string"
8671
8700
  ],
8672
- description: "Button label text (alternative to children for schema-driven rendering)"
8701
+ description: "Button label text (alternative to children for schema-driven rendering)",
8702
+ example: "Button"
8673
8703
  },
8674
8704
  disabled: {
8675
8705
  types: [
@@ -8879,6 +8909,7 @@ var patterns_registry_default = {
8879
8909
  avatar: {
8880
8910
  type: "avatar",
8881
8911
  category: "component",
8912
+ sourceFile: "components/core/atoms/Avatar.tsx",
8882
8913
  tier: "atoms",
8883
8914
  family: "core",
8884
8915
  description: "User avatar image or initials",
@@ -8979,13 +9010,15 @@ var patterns_registry_default = {
8979
9010
  "object"
8980
9011
  ],
8981
9012
  description: "Payload to include with the action event",
8982
- payloadFor: "action"
9013
+ payloadFor: "action",
9014
+ eventPayloadBrand: true
8983
9015
  }
8984
9016
  }
8985
9017
  },
8986
9018
  icon: {
8987
9019
  type: "icon",
8988
9020
  category: "component",
9021
+ sourceFile: "components/core/atoms/Icon.tsx",
8989
9022
  tier: "atoms",
8990
9023
  family: "core",
8991
9024
  description: "Icon from Lucide icon set",
@@ -9069,6 +9102,7 @@ var patterns_registry_default = {
9069
9102
  card: {
9070
9103
  type: "card",
9071
9104
  category: "component",
9105
+ sourceFile: "components/core/atoms/Card.tsx",
9072
9106
  tier: "atoms",
9073
9107
  family: "core",
9074
9108
  description: "Card container with optional header and footer",
@@ -9175,6 +9209,7 @@ var patterns_registry_default = {
9175
9209
  "progress-bar": {
9176
9210
  type: "progress-bar",
9177
9211
  category: "component",
9212
+ sourceFile: "components/core/atoms/ProgressBar.tsx",
9178
9213
  tier: "atoms",
9179
9214
  family: "core",
9180
9215
  description: "Progress indicator bar",
@@ -9290,6 +9325,7 @@ var patterns_registry_default = {
9290
9325
  spinner: {
9291
9326
  type: "spinner",
9292
9327
  category: "component",
9328
+ sourceFile: "components/core/atoms/Spinner.tsx",
9293
9329
  tier: "atoms",
9294
9330
  family: "core",
9295
9331
  description: "Loading spinner animation",
@@ -9798,6 +9834,7 @@ var patterns_registry_default = {
9798
9834
  checkbox: {
9799
9835
  type: "checkbox",
9800
9836
  category: "component",
9837
+ sourceFile: "components/core/atoms/Checkbox.tsx",
9801
9838
  tier: "atoms",
9802
9839
  family: "core",
9803
9840
  description: "Checkbox input",
@@ -9852,6 +9889,7 @@ var patterns_registry_default = {
9852
9889
  radio: {
9853
9890
  type: "radio",
9854
9891
  category: "component",
9892
+ sourceFile: "components/core/atoms/Radio.tsx",
9855
9893
  tier: "atoms",
9856
9894
  family: "core",
9857
9895
  description: "Radio button input",
@@ -9933,6 +9971,7 @@ var patterns_registry_default = {
9933
9971
  switch: {
9934
9972
  type: "switch",
9935
9973
  category: "component",
9974
+ sourceFile: "components/core/atoms/Switch.tsx",
9936
9975
  tier: "atoms",
9937
9976
  family: "core",
9938
9977
  description: "Toggle switch input",
@@ -10005,6 +10044,7 @@ var patterns_registry_default = {
10005
10044
  label: {
10006
10045
  type: "label",
10007
10046
  category: "component",
10047
+ sourceFile: "components/core/atoms/Label.tsx",
10008
10048
  tier: "atoms",
10009
10049
  family: "core",
10010
10050
  description: "Form field label",
@@ -10043,6 +10083,7 @@ var patterns_registry_default = {
10043
10083
  alert: {
10044
10084
  type: "alert",
10045
10085
  category: "component",
10086
+ sourceFile: "components/core/molecules/Alert.tsx",
10046
10087
  tier: "molecules",
10047
10088
  family: "core",
10048
10089
  description: "Alert message box",
@@ -10132,6 +10173,7 @@ var patterns_registry_default = {
10132
10173
  tooltip: {
10133
10174
  type: "tooltip",
10134
10175
  category: "component",
10176
+ sourceFile: "components/core/molecules/Tooltip.tsx",
10135
10177
  tier: "molecules",
10136
10178
  family: "core",
10137
10179
  description: "Hover tooltip",
@@ -10201,6 +10243,7 @@ var patterns_registry_default = {
10201
10243
  popover: {
10202
10244
  type: "popover",
10203
10245
  category: "component",
10246
+ sourceFile: "components/core/molecules/Popover.tsx",
10204
10247
  tier: "molecules",
10205
10248
  family: "core",
10206
10249
  description: "Click-triggered popover",
@@ -10437,6 +10480,7 @@ var patterns_registry_default = {
10437
10480
  accordion: {
10438
10481
  type: "accordion",
10439
10482
  category: "component",
10483
+ sourceFile: "components/core/molecules/Accordion.tsx",
10440
10484
  tier: "molecules",
10441
10485
  family: "core",
10442
10486
  description: "Collapsible accordion sections",
@@ -10581,6 +10625,7 @@ var patterns_registry_default = {
10581
10625
  container: {
10582
10626
  type: "container",
10583
10627
  category: "component",
10628
+ sourceFile: "components/core/molecules/Container.tsx",
10584
10629
  tier: "molecules",
10585
10630
  family: "core",
10586
10631
  description: "Centered max-width container",
@@ -10664,6 +10709,7 @@ var patterns_registry_default = {
10664
10709
  "simple-grid": {
10665
10710
  type: "simple-grid",
10666
10711
  category: "component",
10712
+ sourceFile: "components/core/molecules/SimpleGrid.tsx",
10667
10713
  tier: "molecules",
10668
10714
  family: "core",
10669
10715
  description: "Simple responsive grid with auto columns",
@@ -11056,6 +11102,7 @@ var patterns_registry_default = {
11056
11102
  "law-reference-tooltip": {
11057
11103
  type: "law-reference-tooltip",
11058
11104
  category: "component",
11105
+ sourceFile: "components/core/atoms/LawReferenceTooltip.tsx",
11059
11106
  tier: "atoms",
11060
11107
  family: "core",
11061
11108
  description: "LawReferenceTooltip Atom Component A specialized tooltip for displaying law references in inspection forms. Shows law name, article number, and relevant clause text.",
@@ -11136,6 +11183,7 @@ var patterns_registry_default = {
11136
11183
  overlay: {
11137
11184
  type: "overlay",
11138
11185
  category: "container",
11186
+ sourceFile: "components/core/atoms/Overlay.tsx",
11139
11187
  tier: "atoms",
11140
11188
  family: "core",
11141
11189
  description: "Overlay Atom Component A fixed backdrop for modals and drawers.",
@@ -11190,6 +11238,7 @@ var patterns_registry_default = {
11190
11238
  stack: {
11191
11239
  type: "stack",
11192
11240
  category: "component",
11241
+ sourceFile: "components/core/atoms/Stack.tsx",
11193
11242
  tier: "atoms",
11194
11243
  family: "core",
11195
11244
  description: "Stack Component A layout primitive for arranging children in a vertical or horizontal stack with consistent spacing. Includes convenience exports VStack and HStack for common use cases.",
@@ -11356,7 +11405,8 @@ var patterns_registry_default = {
11356
11405
  "object"
11357
11406
  ],
11358
11407
  description: "Payload to include with the action event",
11359
- payloadFor: "action"
11408
+ payloadFor: "action",
11409
+ eventPayloadBrand: true
11360
11410
  },
11361
11411
  responsive: {
11362
11412
  types: [
@@ -11370,6 +11420,7 @@ var patterns_registry_default = {
11370
11420
  "text-highlight": {
11371
11421
  type: "text-highlight",
11372
11422
  category: "component",
11423
+ sourceFile: "components/core/atoms/TextHighlight.tsx",
11373
11424
  tier: "atoms",
11374
11425
  family: "core",
11375
11426
  description: "TextHighlight Atom Component A styled span component for highlighting text with annotations (questions or notes). Uses different colors for different annotation types: - Questions: Blue highlight - Notes: Yellow highlight",
@@ -11479,6 +11530,7 @@ var patterns_registry_default = {
11479
11530
  "theme-toggle": {
11480
11531
  type: "theme-toggle",
11481
11532
  category: "component",
11533
+ sourceFile: "components/core/atoms/ThemeToggle.tsx",
11482
11534
  tier: "atoms",
11483
11535
  family: "core",
11484
11536
  description: "ThemeToggle Atom Component A button that toggles between light and dark themes. Uses Sun and Moon icons to indicate current/target theme.",
@@ -11519,6 +11571,7 @@ var patterns_registry_default = {
11519
11571
  typography: {
11520
11572
  type: "typography",
11521
11573
  category: "component",
11574
+ sourceFile: "components/core/atoms/Typography.tsx",
11522
11575
  tier: "atoms",
11523
11576
  family: "core",
11524
11577
  description: "Typography Atom Component Text elements following the KFlow design system with theme-aware styling.",
@@ -11939,6 +11992,7 @@ var patterns_registry_default = {
11939
11992
  flex: {
11940
11993
  type: "flex",
11941
11994
  category: "component",
11995
+ sourceFile: "components/core/molecules/Flex.tsx",
11942
11996
  tier: "molecules",
11943
11997
  family: "core",
11944
11998
  description: "Flex Component A flexbox wrapper with all common flex properties exposed as props. More explicit than Stack for when you need full flex control.",
@@ -12207,6 +12261,7 @@ var patterns_registry_default = {
12207
12261
  "form-field": {
12208
12262
  type: "form-field",
12209
12263
  category: "form",
12264
+ sourceFile: "components/core/molecules/FormField.tsx",
12210
12265
  tier: "molecules",
12211
12266
  family: "core",
12212
12267
  description: "FormField Molecule Component A form field wrapper with label, hint, and error message support. **Atomic Design**: Composed using Label and Typography atoms.",
@@ -12260,6 +12315,7 @@ var patterns_registry_default = {
12260
12315
  "form-section-header": {
12261
12316
  type: "form-section-header",
12262
12317
  category: "form",
12318
+ sourceFile: "components/core/molecules/FormSectionHeader.tsx",
12263
12319
  tier: "molecules",
12264
12320
  family: "core",
12265
12321
  description: "FormSectionHeader Header component for collapsible form sections. Provides consistent styling and interaction for section headers.",
@@ -12541,6 +12597,7 @@ var patterns_registry_default = {
12541
12597
  "relation-select": {
12542
12598
  type: "relation-select",
12543
12599
  category: "form",
12600
+ sourceFile: "components/core/molecules/RelationSelect.tsx",
12544
12601
  tier: "molecules",
12545
12602
  family: "core",
12546
12603
  description: "RelationSelect Molecule Component A searchable select component for relation fields. Allows users to search and select from related entities. Composed from: Box, HStack, VStack, Input, Button, Spinner, Typography atoms",
@@ -12678,6 +12735,7 @@ var patterns_registry_default = {
12678
12735
  "side-panel": {
12679
12736
  type: "side-panel",
12680
12737
  category: "component",
12738
+ sourceFile: "components/core/molecules/SidePanel.tsx",
12681
12739
  tier: "molecules",
12682
12740
  family: "core",
12683
12741
  description: "SidePanel Molecule Component A side panel that slides in from the right (or left) with header and content. Uses Button, Typography atoms.",
@@ -12762,6 +12820,7 @@ var patterns_registry_default = {
12762
12820
  "violation-alert": {
12763
12821
  type: "violation-alert",
12764
12822
  category: "state",
12823
+ sourceFile: "components/core/molecules/ViolationAlert.tsx",
12765
12824
  tier: "molecules",
12766
12825
  family: "core",
12767
12826
  description: "ViolationAlert Displays inspection violations with law references and action types. Used in inspection forms to show detected compliance violations. Action Types: - measure: Corrective measure required (warning) - admin: Administrative action (error) - penalty: Penalty proceedings (error, severe)",
@@ -12900,6 +12959,7 @@ var patterns_registry_default = {
12900
12959
  "drawer-slot": {
12901
12960
  type: "drawer-slot",
12902
12961
  category: "layout",
12962
+ sourceFile: "components/core/organisms/DrawerSlot.tsx",
12903
12963
  tier: "organisms",
12904
12964
  family: "core",
12905
12965
  description: "DrawerSlot Component Wraps drawer slot content in a proper Drawer component. Used by trait-driven pages to display drawer UI from render_ui effects. Handles: - Auto-open when content is present - Dispatches CLOSE/CANCEL events when closed - Extracts title from Form or DetailPanel components - Configurable position and size",
@@ -13274,6 +13334,7 @@ var patterns_registry_default = {
13274
13334
  "modal-slot": {
13275
13335
  type: "modal-slot",
13276
13336
  category: "layout",
13337
+ sourceFile: "components/core/organisms/ModalSlot.tsx",
13277
13338
  tier: "organisms",
13278
13339
  family: "core",
13279
13340
  description: "ModalSlot Component Wraps modal slot content in a proper Modal component. Used by trait-driven pages to display modal UI from render_ui effects. Handles: - Auto-open when content is present - Dispatches CLOSE/CANCEL events when closed - Extracts title from Form components",
@@ -13653,6 +13714,7 @@ var patterns_registry_default = {
13653
13714
  section: {
13654
13715
  type: "section",
13655
13716
  category: "display",
13717
+ sourceFile: "components/core/molecules/Section.tsx",
13656
13718
  tier: "molecules",
13657
13719
  family: "core",
13658
13720
  description: "Section Component A semantic section wrapper with optional title, description, and action. Perfect for grouping related content with consistent spacing.",
@@ -14156,6 +14218,7 @@ var patterns_registry_default = {
14156
14218
  "toast-slot": {
14157
14219
  type: "toast-slot",
14158
14220
  category: "layout",
14221
+ sourceFile: "components/core/organisms/ToastSlot.tsx",
14159
14222
  tier: "organisms",
14160
14223
  family: "core",
14161
14224
  description: "ToastSlot Component Wraps toast slot content in a proper Toast component with positioning. Used by trait-driven pages to display toast UI from render_ui effects. Handles: - Auto-show when content is present - Dispatches DISMISS event when dismissed - Fixed positioning in corner of screen",
@@ -14305,6 +14368,7 @@ var patterns_registry_default = {
14305
14368
  "counter-template": {
14306
14369
  type: "counter-template",
14307
14370
  category: "template",
14371
+ sourceFile: "components/core/templates/CounterTemplate.tsx",
14308
14372
  tier: "templates",
14309
14373
  family: "core",
14310
14374
  description: "CounterTemplate A presentational template for counter/incrementer features. Supports increment, decrement, and reset operations.",
@@ -14771,6 +14835,7 @@ var patterns_registry_default = {
14771
14835
  "generic-app-template": {
14772
14836
  type: "generic-app-template",
14773
14837
  category: "template",
14838
+ sourceFile: "components/core/templates/GenericAppTemplate.tsx",
14774
14839
  tier: "templates",
14775
14840
  family: "core",
14776
14841
  description: "GenericAppTemplate A simple, generic template for any application. Includes a header with title and actions, and a main content area. **Atomic Design**: Composed using Box, Typography, and Button atoms.",
@@ -16180,6 +16245,7 @@ var patterns_registry_default = {
16180
16245
  "signature-pad": {
16181
16246
  type: "signature-pad",
16182
16247
  category: "form",
16248
+ sourceFile: "components/core/molecules/SignaturePad.tsx",
16183
16249
  tier: "molecules",
16184
16250
  family: "core",
16185
16251
  description: "SignaturePad \u2014 a draw-to-sign canvas that captures a handwritten signature or initials.",
@@ -17284,6 +17350,7 @@ var patterns_registry_default = {
17284
17350
  "error-boundary": {
17285
17351
  type: "error-boundary",
17286
17352
  category: "state",
17353
+ sourceFile: "components/core/molecules/ErrorBoundary.tsx",
17287
17354
  tier: "molecules",
17288
17355
  family: "core",
17289
17356
  description: "ErrorBoundary component",
@@ -17337,6 +17404,7 @@ var patterns_registry_default = {
17337
17404
  skeleton: {
17338
17405
  type: "skeleton",
17339
17406
  category: "component",
17407
+ sourceFile: "components/core/molecules/Skeleton.tsx",
17340
17408
  tier: "molecules",
17341
17409
  family: "core",
17342
17410
  description: "Skeleton component",
@@ -17391,6 +17459,7 @@ var patterns_registry_default = {
17391
17459
  "quiz-block": {
17392
17460
  type: "quiz-block",
17393
17461
  category: "component",
17462
+ sourceFile: "components/core/molecules/QuizBlock.tsx",
17394
17463
  tier: "molecules",
17395
17464
  family: "core",
17396
17465
  description: "QuizBlock \u2014 a single quiz question with answer choices and submit/reveal feedback.",
@@ -18100,12 +18169,191 @@ var patterns_registry_default = {
18100
18169
  "replace"
18101
18170
  ],
18102
18171
  tier: "presentation"
18172
+ },
18173
+ completions: {
18174
+ types: [
18175
+ "function"
18176
+ ],
18177
+ description: "Editable only: answers the caret's valid continuations after a keystroke (and on Ctrl-Space); they show under the editor and Tab or a click inserts one.",
18178
+ callbackArgs: [
18179
+ {
18180
+ name: "code",
18181
+ type: "string"
18182
+ },
18183
+ {
18184
+ name: "offset",
18185
+ type: "number"
18186
+ }
18187
+ ],
18188
+ renderCallback: true,
18189
+ tier: "presentation"
18190
+ },
18191
+ assist: {
18192
+ types: [
18193
+ "function"
18194
+ ],
18195
+ description: "Editable only: model-assisted editing. Asked after a pause (and on Ctrl-Space) for a completion at the caret, shown as ghost text; on \u2318/Ctrl-. for fixes, listed under the editor. Tab accepts the next, \u2318/Ctrl-Enter accepts all, Escape dismisses.",
18196
+ callbackArgs: [
18197
+ {
18198
+ name: "request",
18199
+ type: "object",
18200
+ schema: {
18201
+ types: [
18202
+ "object"
18203
+ ],
18204
+ properties: {
18205
+ code: {
18206
+ types: [
18207
+ "string"
18208
+ ]
18209
+ },
18210
+ offset: {
18211
+ types: [
18212
+ "number"
18213
+ ]
18214
+ },
18215
+ kind: {
18216
+ types: [
18217
+ "string"
18218
+ ],
18219
+ enumValues: [
18220
+ "complete",
18221
+ "fix"
18222
+ ]
18223
+ },
18224
+ trigger: {
18225
+ types: [
18226
+ "string"
18227
+ ],
18228
+ enumValues: [
18229
+ "idle",
18230
+ "explicit"
18231
+ ]
18232
+ }
18233
+ },
18234
+ required: [
18235
+ "code",
18236
+ "offset",
18237
+ "kind",
18238
+ "trigger"
18239
+ ]
18240
+ }
18241
+ }
18242
+ ],
18243
+ renderCallback: true,
18244
+ tier: "presentation"
18245
+ },
18246
+ problems: {
18247
+ types: [
18248
+ "number"
18249
+ ],
18250
+ description: "Editable only: how many problems the host knows the code has (some, like a parse error, have no line to mark). With `assist`, the editor offers to fix them.",
18251
+ tier: "presentation"
18252
+ },
18253
+ diagnostics: {
18254
+ types: [
18255
+ "array"
18256
+ ],
18257
+ description: "Editable only: problems located in the code (1-based line/column in characters, `endColumn` just past the last one), each underlined exactly \u2014 red wavy for an error, amber for a warning, dotted where the position is approximate. The message of the one under the caret shows below the editor.",
18258
+ items: {
18259
+ types: [
18260
+ "object"
18261
+ ],
18262
+ properties: {
18263
+ line: {
18264
+ types: [
18265
+ "number"
18266
+ ]
18267
+ },
18268
+ column: {
18269
+ types: [
18270
+ "number"
18271
+ ]
18272
+ },
18273
+ endLine: {
18274
+ types: [
18275
+ "number"
18276
+ ]
18277
+ },
18278
+ endColumn: {
18279
+ types: [
18280
+ "number"
18281
+ ]
18282
+ },
18283
+ severity: {
18284
+ types: [
18285
+ "string"
18286
+ ],
18287
+ enumValues: [
18288
+ "error",
18289
+ "warning"
18290
+ ]
18291
+ },
18292
+ message: {
18293
+ types: [
18294
+ "string"
18295
+ ]
18296
+ },
18297
+ approximate: {
18298
+ types: [
18299
+ "boolean"
18300
+ ]
18301
+ }
18302
+ },
18303
+ required: [
18304
+ "line",
18305
+ "severity",
18306
+ "message"
18307
+ ]
18308
+ },
18309
+ tier: "presentation"
18310
+ },
18311
+ definitionAt: {
18312
+ types: [
18313
+ "function"
18314
+ ],
18315
+ description: "Editable only: go to definition. Whether the identifier (a dotted path is one) leads somewhere; with Cmd/Ctrl held the one under the pointer is underlined when it does. Comments and strings never qualify.",
18316
+ callbackArgs: [
18317
+ {
18318
+ name: "identifier",
18319
+ type: "string"
18320
+ }
18321
+ ],
18322
+ renderCallback: true
18323
+ },
18324
+ onGoToDefinition: {
18325
+ types: [
18326
+ "function"
18327
+ ],
18328
+ description: "Editable only: Cmd/Ctrl+click, or Cmd/Ctrl+Enter at the caret, on an identifier `definitionAt` accepts.",
18329
+ kind: "callback",
18330
+ callbackArgs: [
18331
+ {
18332
+ name: "identifier",
18333
+ type: "string"
18334
+ }
18335
+ ]
18336
+ },
18337
+ diagnosticsCode: {
18338
+ types: [
18339
+ "string"
18340
+ ],
18341
+ description: "The code `diagnostics` were computed on. When the editor's text has moved on, each range is carried over the edit; a range the edit touches is dropped until the code is checked again. Absent: they describe the current text.",
18342
+ tier: "presentation"
18343
+ },
18344
+ lineNumbers: {
18345
+ types: [
18346
+ "boolean"
18347
+ ],
18348
+ description: "Editable only: number the lines in a gutter (lines with errors in red). Default on.",
18349
+ tier: "presentation"
18103
18350
  }
18104
18351
  }
18105
18352
  },
18106
18353
  "markdown-content": {
18107
18354
  type: "markdown-content",
18108
18355
  category: "component",
18356
+ sourceFile: "components/core/molecules/markdown/MarkdownContent.tsx",
18109
18357
  tier: "molecules",
18110
18358
  family: "core",
18111
18359
  description: "MarkdownContent Molecule Component Renders markdown content with support for GFM (GitHub Flavored Markdown), math equations (KaTeX), and raw HTML. Handles inline code only \u2014 fenced code blocks should be parsed out and rendered with CodeBlock component. Event Contract: - No events emitted (display-only component) - entityAware: false NOTE: react-markdown's `components` override API requires native HTML elements \u2014 this is the same library-boundary exception as `<iframe>` in DocumentViewer and `<svg>` in JazariStateMachine/StateMachineView.",
@@ -18145,6 +18393,7 @@ var patterns_registry_default = {
18145
18393
  "content-renderer": {
18146
18394
  type: "content-renderer",
18147
18395
  category: "display",
18396
+ sourceFile: "components/core/molecules/ContentRenderer.tsx",
18148
18397
  tier: "molecules",
18149
18398
  family: "core",
18150
18399
  description: "ContentRenderer Organism Renders rich content as a sequence of typed segments: markdown, code, orbital diagrams (via JazariStateMachine), and quiz blocks. Accepts either raw content string (auto-parsed) or pre-parsed segments. Event Contract: - Delegates to child components (CodeBlock -> UI:COPY_CODE) - entityAware: false",
@@ -18312,6 +18561,7 @@ var patterns_registry_default = {
18312
18561
  "jazari-state-machine": {
18313
18562
  type: "jazari-state-machine",
18314
18563
  category: "display",
18564
+ sourceFile: "components/core/molecules/JazariStateMachine.tsx",
18315
18565
  tier: "molecules",
18316
18566
  family: "core",
18317
18567
  description: "JazariStateMachine component",
@@ -18428,18 +18678,284 @@ var patterns_registry_default = {
18428
18678
  ],
18429
18679
  typicalSize: "large",
18430
18680
  propsSchema: {
18681
+ activeState: {
18682
+ types: [
18683
+ "string"
18684
+ ],
18685
+ description: "State execution is currently in."
18686
+ },
18687
+ activeTransition: {
18688
+ types: [
18689
+ "number"
18690
+ ],
18691
+ description: "`index` of the transition that just fired."
18692
+ },
18693
+ visitedStates: {
18694
+ types: [
18695
+ "array"
18696
+ ],
18697
+ description: "States already passed through, in order.",
18698
+ items: {
18699
+ types: [
18700
+ "string"
18701
+ ]
18702
+ }
18703
+ },
18704
+ stateClickEvent: {
18705
+ types: [
18706
+ "string"
18707
+ ],
18708
+ description: "Emits UI:{stateClickEvent} with { stateId } when a state is clicked.",
18709
+ kind: "event-ref",
18710
+ emitPayloadSchema: [
18711
+ {
18712
+ name: "stateId",
18713
+ type: "string",
18714
+ required: true
18715
+ }
18716
+ ]
18717
+ },
18718
+ transitionClickEvent: {
18719
+ types: [
18720
+ "string"
18721
+ ],
18722
+ description: "Emits UI:{transitionClickEvent} with { index, event, from, to } when a transition label is clicked.",
18723
+ kind: "event-ref",
18724
+ emitPayloadSchema: [
18725
+ {
18726
+ name: "index",
18727
+ type: "number",
18728
+ required: true
18729
+ },
18730
+ {
18731
+ name: "event",
18732
+ type: "string",
18733
+ required: true
18734
+ },
18735
+ {
18736
+ name: "from",
18737
+ type: "string",
18738
+ required: true
18739
+ },
18740
+ {
18741
+ name: "to",
18742
+ type: "string",
18743
+ required: true
18744
+ }
18745
+ ]
18746
+ },
18747
+ selectedState: {
18748
+ types: [
18749
+ "string"
18750
+ ],
18751
+ description: "State picked in an editor (first click)."
18752
+ },
18753
+ pendingSourceState: {
18754
+ types: [
18755
+ "string"
18756
+ ],
18757
+ description: "Source of a transition being drawn \u2014 the next state click picks its target."
18758
+ },
18759
+ nodeShape: {
18760
+ types: [
18761
+ "string"
18762
+ ],
18763
+ description: "Node silhouette. @default 'pill'",
18764
+ enumValues: [
18765
+ "pill",
18766
+ "gear"
18767
+ ]
18768
+ },
18769
+ entityFields: {
18770
+ types: [
18771
+ "array"
18772
+ ],
18773
+ description: "Entity field names listed in the header.",
18774
+ items: {
18775
+ types: [
18776
+ "string"
18777
+ ]
18778
+ }
18779
+ },
18780
+ direction: {
18781
+ types: [
18782
+ "string"
18783
+ ],
18784
+ description: "Flow direction. @default 'ltr'",
18785
+ enumValues: [
18786
+ "ltr",
18787
+ "rtl"
18788
+ ]
18789
+ },
18790
+ showHeader: {
18791
+ types: [
18792
+ "boolean"
18793
+ ],
18794
+ description: "Show the trait header (name, entity, listens/emits). @default true"
18795
+ },
18431
18796
  className: {
18432
18797
  types: [
18433
18798
  "string"
18434
18799
  ],
18435
- description: "Additional CSS classes",
18436
- default: ""
18800
+ description: "className prop"
18801
+ },
18802
+ trait: {
18803
+ types: [
18804
+ "object"
18805
+ ],
18806
+ description: "The trait to draw (see `parseTraitLevel` / `traitLevelFromTrait`).",
18807
+ properties: {
18808
+ name: {
18809
+ types: [
18810
+ "string"
18811
+ ]
18812
+ },
18813
+ linkedEntity: {
18814
+ types: [
18815
+ "string"
18816
+ ]
18817
+ },
18818
+ states: {
18819
+ types: [
18820
+ "array"
18821
+ ],
18822
+ items: {
18823
+ types: [
18824
+ "object"
18825
+ ],
18826
+ properties: {
18827
+ name: {
18828
+ types: [
18829
+ "string"
18830
+ ]
18831
+ },
18832
+ isInitial: {
18833
+ types: [
18834
+ "boolean"
18835
+ ]
18836
+ },
18837
+ isTerminal: {
18838
+ types: [
18839
+ "boolean"
18840
+ ]
18841
+ }
18842
+ },
18843
+ required: [
18844
+ "name"
18845
+ ]
18846
+ }
18847
+ },
18848
+ transitions: {
18849
+ types: [
18850
+ "array"
18851
+ ],
18852
+ items: {
18853
+ types: [
18854
+ "object"
18855
+ ],
18856
+ properties: {
18857
+ from: {
18858
+ types: [
18859
+ "string"
18860
+ ]
18861
+ },
18862
+ to: {
18863
+ types: [
18864
+ "string"
18865
+ ]
18866
+ },
18867
+ event: {
18868
+ types: [
18869
+ "string"
18870
+ ]
18871
+ },
18872
+ guard: {
18873
+ types: [
18874
+ "sexpr"
18875
+ ]
18876
+ },
18877
+ effects: {
18878
+ types: [
18879
+ "array"
18880
+ ],
18881
+ items: {
18882
+ types: [
18883
+ "object"
18884
+ ],
18885
+ properties: {
18886
+ type: {
18887
+ types: [
18888
+ "string"
18889
+ ]
18890
+ },
18891
+ args: {
18892
+ types: [
18893
+ "array"
18894
+ ],
18895
+ items: {
18896
+ types: [
18897
+ "sexpr"
18898
+ ]
18899
+ }
18900
+ }
18901
+ },
18902
+ required: [
18903
+ "type",
18904
+ "args"
18905
+ ]
18906
+ }
18907
+ },
18908
+ index: {
18909
+ types: [
18910
+ "number"
18911
+ ]
18912
+ }
18913
+ },
18914
+ required: [
18915
+ "from",
18916
+ "to",
18917
+ "event",
18918
+ "effects",
18919
+ "index"
18920
+ ]
18921
+ }
18922
+ },
18923
+ emittedEvents: {
18924
+ types: [
18925
+ "array"
18926
+ ],
18927
+ items: {
18928
+ types: [
18929
+ "string"
18930
+ ]
18931
+ }
18932
+ },
18933
+ listenedEvents: {
18934
+ types: [
18935
+ "array"
18936
+ ],
18937
+ items: {
18938
+ types: [
18939
+ "string"
18940
+ ]
18941
+ }
18942
+ }
18943
+ },
18944
+ propertyRequired: [
18945
+ "name",
18946
+ "linkedEntity",
18947
+ "states",
18948
+ "transitions",
18949
+ "emittedEvents",
18950
+ "listenedEvents"
18951
+ ]
18437
18952
  },
18438
18953
  isLoading: {
18439
18954
  types: [
18440
18955
  "boolean"
18441
18956
  ],
18442
- description: "Loading state indicator"
18957
+ description: "Loading state indicator",
18958
+ default: false
18443
18959
  },
18444
18960
  error: {
18445
18961
  types: [
@@ -18470,230 +18986,15 @@ var patterns_registry_default = {
18470
18986
  },
18471
18987
  propertyRequired: [
18472
18988
  "message"
18473
- ]
18474
- },
18475
- layoutData: {
18476
- types: [
18477
- "object"
18478
- ],
18479
- description: "Pre-computed visualizer layout. Optional: when absent the view renders nothing (an author wires real layout via config; the generic factory can't synthesize a `DomLayoutData`).",
18480
- nonAuthorable: true
18481
- },
18482
- renderStateNode: {
18483
- types: [
18484
- "function"
18485
18989
  ],
18486
- description: "Custom state node renderer \u2014 when provided, replaces the default circle nodes",
18487
- callbackArgs: [
18488
- {
18489
- name: "state",
18490
- type: "object",
18491
- schema: {
18492
- types: [
18493
- "object"
18494
- ],
18495
- properties: {
18496
- id: {
18497
- types: [
18498
- "string"
18499
- ]
18500
- },
18501
- name: {
18502
- types: [
18503
- "string"
18504
- ]
18505
- },
18506
- x: {
18507
- types: [
18508
- "number"
18509
- ]
18510
- },
18511
- y: {
18512
- types: [
18513
- "number"
18514
- ]
18515
- },
18516
- radius: {
18517
- types: [
18518
- "number"
18519
- ]
18520
- },
18521
- isInitial: {
18522
- types: [
18523
- "boolean"
18524
- ]
18525
- },
18526
- isFinal: {
18527
- types: [
18528
- "boolean"
18529
- ]
18530
- },
18531
- description: {
18532
- types: [
18533
- "string"
18534
- ]
18535
- }
18536
- },
18537
- required: [
18538
- "id",
18539
- "name",
18540
- "x",
18541
- "y",
18542
- "radius",
18543
- "isInitial",
18544
- "isFinal"
18545
- ]
18546
- }
18547
- },
18548
- {
18549
- name: "config",
18550
- type: "object",
18551
- schema: {
18552
- types: [
18553
- "object"
18554
- ],
18555
- properties: {
18556
- nodeRadius: {
18557
- types: [
18558
- "number"
18559
- ]
18560
- },
18561
- nodeSpacing: {
18562
- types: [
18563
- "number"
18564
- ]
18565
- },
18566
- initialIndicatorOffset: {
18567
- types: [
18568
- "number"
18569
- ]
18570
- },
18571
- arrowSize: {
18572
- types: [
18573
- "number"
18574
- ]
18575
- },
18576
- colors: {
18577
- types: [
18578
- "object"
18579
- ],
18580
- properties: {
18581
- background: {
18582
- types: [
18583
- "string"
18584
- ]
18585
- },
18586
- node: {
18587
- types: [
18588
- "string"
18589
- ]
18590
- },
18591
- nodeBorder: {
18592
- types: [
18593
- "string"
18594
- ]
18595
- },
18596
- nodeText: {
18597
- types: [
18598
- "string"
18599
- ]
18600
- },
18601
- initialNode: {
18602
- types: [
18603
- "string"
18604
- ]
18605
- },
18606
- finalNode: {
18607
- types: [
18608
- "string"
18609
- ]
18610
- },
18611
- arrow: {
18612
- types: [
18613
- "string"
18614
- ]
18615
- },
18616
- arrowText: {
18617
- types: [
18618
- "string"
18619
- ]
18620
- },
18621
- effectText: {
18622
- types: [
18623
- "string"
18624
- ]
18625
- },
18626
- guardText: {
18627
- types: [
18628
- "string"
18629
- ]
18630
- },
18631
- initial: {
18632
- types: [
18633
- "string"
18634
- ]
18635
- }
18636
- },
18637
- required: [
18638
- "background",
18639
- "node",
18640
- "nodeBorder",
18641
- "nodeText",
18642
- "initialNode",
18643
- "finalNode",
18644
- "arrow",
18645
- "arrowText",
18646
- "effectText",
18647
- "guardText",
18648
- "initial"
18649
- ]
18650
- },
18651
- fonts: {
18652
- types: [
18653
- "object"
18654
- ],
18655
- properties: {
18656
- node: {
18657
- types: [
18658
- "string"
18659
- ]
18660
- },
18661
- event: {
18662
- types: [
18663
- "string"
18664
- ]
18665
- },
18666
- effect: {
18667
- types: [
18668
- "string"
18669
- ]
18670
- }
18671
- },
18672
- required: [
18673
- "node",
18674
- "event",
18675
- "effect"
18676
- ]
18677
- }
18678
- },
18679
- required: [
18680
- "nodeRadius",
18681
- "nodeSpacing",
18682
- "initialIndicatorOffset",
18683
- "arrowSize",
18684
- "colors",
18685
- "fonts"
18686
- ]
18687
- }
18688
- }
18689
- ],
18690
- renderCallback: true
18990
+ default: null
18691
18991
  }
18692
18992
  }
18693
18993
  },
18694
18994
  "scaled-diagram": {
18695
18995
  type: "scaled-diagram",
18696
18996
  category: "component",
18997
+ sourceFile: "components/core/molecules/ScaledDiagram.tsx",
18697
18998
  tier: "molecules",
18698
18999
  family: "core",
18699
19000
  description: "ScaledDiagram Molecule Wraps a fixed-size diagram (like JazariStateMachine / StateMachineView) and CSS-scales it to fit the parent container width. The diagram renders at its natural (large) size. We observe the content element and once the diagram is measured we apply transform:scale() with a corrected container height so surrounding layout flows correctly. Event Contract: - No events emitted (layout-only wrapper) - entityAware: false",
@@ -18722,6 +19023,7 @@ var patterns_registry_default = {
18722
19023
  "day-cell": {
18723
19024
  type: "day-cell",
18724
19025
  category: "component",
19026
+ sourceFile: "components/core/atoms/DayCell.tsx",
18725
19027
  tier: "atoms",
18726
19028
  family: "core",
18727
19029
  description: "DayCell component",
@@ -18769,6 +19071,7 @@ var patterns_registry_default = {
18769
19071
  "flip-container": {
18770
19072
  type: "flip-container",
18771
19073
  category: "layout",
19074
+ sourceFile: "components/core/atoms/FlipContainer.tsx",
18772
19075
  tier: "atoms",
18773
19076
  family: "core",
18774
19077
  description: "FlipContainer component",
@@ -18812,6 +19115,7 @@ var patterns_registry_default = {
18812
19115
  "time-slot-cell": {
18813
19116
  type: "time-slot-cell",
18814
19117
  category: "layout",
19118
+ sourceFile: "components/core/atoms/TimeSlotCell.tsx",
18815
19119
  tier: "atoms",
18816
19120
  family: "core",
18817
19121
  description: "TimeSlotCell component",
@@ -19102,6 +19406,7 @@ var patterns_registry_default = {
19102
19406
  "chart-legend": {
19103
19407
  type: "chart-legend",
19104
19408
  category: "display",
19409
+ sourceFile: "components/core/molecules/ChartLegend.tsx",
19105
19410
  tier: "molecules",
19106
19411
  family: "core",
19107
19412
  description: "ChartLegend component",
@@ -19162,6 +19467,7 @@ var patterns_registry_default = {
19162
19467
  "date-range-selector": {
19163
19468
  type: "date-range-selector",
19164
19469
  category: "form",
19470
+ sourceFile: "components/core/molecules/DateRangeSelector.tsx",
19165
19471
  tier: "molecules",
19166
19472
  family: "core",
19167
19473
  description: "DateRangeSelector component",
@@ -19231,6 +19537,7 @@ var patterns_registry_default = {
19231
19537
  "flip-card": {
19232
19538
  type: "flip-card",
19233
19539
  category: "display",
19540
+ sourceFile: "components/core/molecules/FlipCard.tsx",
19234
19541
  tier: "molecules",
19235
19542
  family: "core",
19236
19543
  description: "FlipCard \u2014 flip card that reveals a hidden back face on tap or click, toggling between a front and back content slot.",
@@ -19289,6 +19596,7 @@ var patterns_registry_default = {
19289
19596
  "graph-view": {
19290
19597
  type: "graph-view",
19291
19598
  category: "component",
19599
+ sourceFile: "components/core/molecules/GraphView.tsx",
19292
19600
  tier: "molecules",
19293
19601
  family: "core",
19294
19602
  description: "GraphView component",
@@ -20820,6 +21128,7 @@ var patterns_registry_default = {
20820
21128
  "map-view": {
20821
21129
  type: "map-view",
20822
21130
  category: "component",
21131
+ sourceFile: "components/core/molecules/MapView.tsx",
20823
21132
  tier: "molecules",
20824
21133
  family: "core",
20825
21134
  description: "MapView component",
@@ -21261,6 +21570,7 @@ var patterns_registry_default = {
21261
21570
  "status-dot": {
21262
21571
  type: "status-dot",
21263
21572
  category: "display",
21573
+ sourceFile: "components/core/atoms/StatusDot.tsx",
21264
21574
  tier: "atoms",
21265
21575
  family: "core",
21266
21576
  description: "StatusDot component",
@@ -21322,6 +21632,7 @@ var patterns_registry_default = {
21322
21632
  "trend-indicator": {
21323
21633
  type: "trend-indicator",
21324
21634
  category: "component",
21635
+ sourceFile: "components/core/atoms/TrendIndicator.tsx",
21325
21636
  tier: "atoms",
21326
21637
  family: "core",
21327
21638
  description: "TrendIndicator component",
@@ -21392,6 +21703,7 @@ var patterns_registry_default = {
21392
21703
  lightbox: {
21393
21704
  type: "lightbox",
21394
21705
  category: "component",
21706
+ sourceFile: "components/core/molecules/Lightbox.tsx",
21395
21707
  tier: "molecules",
21396
21708
  family: "core",
21397
21709
  description: "Lightbox component",
@@ -21489,6 +21801,7 @@ var patterns_registry_default = {
21489
21801
  "number-stepper": {
21490
21802
  type: "number-stepper",
21491
21803
  category: "component",
21804
+ sourceFile: "components/core/molecules/NumberStepper.tsx",
21492
21805
  tier: "molecules",
21493
21806
  family: "core",
21494
21807
  description: "NumberStepper component",
@@ -21576,7 +21889,8 @@ var patterns_registry_default = {
21576
21889
  "object"
21577
21890
  ],
21578
21891
  description: "Payload to include with the action event",
21579
- payloadFor: "action"
21892
+ payloadFor: "action",
21893
+ eventPayloadBrand: true
21580
21894
  },
21581
21895
  className: {
21582
21896
  types: [
@@ -21595,6 +21909,7 @@ var patterns_registry_default = {
21595
21909
  "star-rating": {
21596
21910
  type: "star-rating",
21597
21911
  category: "component",
21912
+ sourceFile: "components/core/molecules/StarRating.tsx",
21598
21913
  tier: "molecules",
21599
21914
  family: "core",
21600
21915
  description: "StarRating component",
@@ -21668,7 +21983,8 @@ var patterns_registry_default = {
21668
21983
  "object"
21669
21984
  ],
21670
21985
  description: "Payload to include with the action event",
21671
- payloadFor: "action"
21986
+ payloadFor: "action",
21987
+ eventPayloadBrand: true
21672
21988
  },
21673
21989
  onChange: {
21674
21990
  types: [
@@ -21700,6 +22016,7 @@ var patterns_registry_default = {
21700
22016
  "upload-drop-zone": {
21701
22017
  type: "upload-drop-zone",
21702
22018
  category: "component",
22019
+ sourceFile: "components/core/molecules/UploadDropZone.tsx",
21703
22020
  tier: "molecules",
21704
22021
  family: "core",
21705
22022
  description: "UploadDropZone component",
@@ -21813,7 +22130,8 @@ var patterns_registry_default = {
21813
22130
  "object"
21814
22131
  ],
21815
22132
  description: "Payload to include with the action event",
21816
- payloadFor: "action"
22133
+ payloadFor: "action",
22134
+ eventPayloadBrand: true
21817
22135
  },
21818
22136
  onFiles: {
21819
22137
  types: [
@@ -21911,6 +22229,7 @@ var patterns_registry_default = {
21911
22229
  "confetti-effect": {
21912
22230
  type: "confetti-effect",
21913
22231
  category: "component",
22232
+ sourceFile: "components/core/atoms/ConfettiEffect.tsx",
21914
22233
  tier: "atoms",
21915
22234
  family: "core",
21916
22235
  description: "ConfettiEffect component",
@@ -21953,6 +22272,7 @@ var patterns_registry_default = {
21953
22272
  "infinite-scroll-sentinel": {
21954
22273
  type: "infinite-scroll-sentinel",
21955
22274
  category: "component",
22275
+ sourceFile: "components/core/atoms/InfiniteScrollSentinel.tsx",
21956
22276
  tier: "atoms",
21957
22277
  family: "core",
21958
22278
  description: "InfiniteScrollSentinel component",
@@ -21977,7 +22297,8 @@ var patterns_registry_default = {
21977
22297
  "object"
21978
22298
  ],
21979
22299
  description: "Optional payload to include with the load-more event",
21980
- payloadFor: "loadMoreEvent"
22300
+ payloadFor: "loadMoreEvent",
22301
+ eventPayloadBrand: true
21981
22302
  },
21982
22303
  isLoading: {
21983
22304
  types: [
@@ -22011,6 +22332,7 @@ var patterns_registry_default = {
22011
22332
  "typewriter-text": {
22012
22333
  type: "typewriter-text",
22013
22334
  category: "component",
22335
+ sourceFile: "components/core/atoms/TypewriterText.tsx",
22014
22336
  tier: "atoms",
22015
22337
  family: "core",
22016
22338
  description: "TypewriterText component",
@@ -22250,6 +22572,7 @@ var patterns_registry_default = {
22250
22572
  "pull-to-refresh": {
22251
22573
  type: "pull-to-refresh",
22252
22574
  category: "component",
22575
+ sourceFile: "components/core/molecules/PullToRefresh.tsx",
22253
22576
  tier: "molecules",
22254
22577
  family: "core",
22255
22578
  description: "PullToRefresh component",
@@ -22273,7 +22596,8 @@ var patterns_registry_default = {
22273
22596
  "object"
22274
22597
  ],
22275
22598
  description: "Payload to include with the refresh event",
22276
- payloadFor: "refreshEvent"
22599
+ payloadFor: "refreshEvent",
22600
+ eventPayloadBrand: true
22277
22601
  },
22278
22602
  threshold: {
22279
22603
  types: [
@@ -22550,6 +22874,7 @@ var patterns_registry_default = {
22550
22874
  "stat-display": {
22551
22875
  type: "stat-display",
22552
22876
  category: "display",
22877
+ sourceFile: "components/core/molecules/StatDisplay.tsx",
22553
22878
  tier: "molecules",
22554
22879
  family: "core",
22555
22880
  description: "StatDisplay component",
@@ -22769,6 +23094,7 @@ var patterns_registry_default = {
22769
23094
  "section-header": {
22770
23095
  type: "section-header",
22771
23096
  category: "header",
23097
+ sourceFile: "components/core/atoms/SectionHeader.tsx",
22772
23098
  tier: "atoms",
22773
23099
  family: "core",
22774
23100
  description: "SectionHeader component",
@@ -22909,6 +23235,7 @@ var patterns_registry_default = {
22909
23235
  "feature-grid": {
22910
23236
  type: "feature-grid",
22911
23237
  category: "display",
23238
+ sourceFile: "components/core/molecules/FeatureGrid.tsx",
22912
23239
  tier: "molecules",
22913
23240
  family: "core",
22914
23241
  description: "FeatureGrid component",
@@ -23025,6 +23352,7 @@ var patterns_registry_default = {
23025
23352
  "social-proof": {
23026
23353
  type: "social-proof",
23027
23354
  category: "component",
23355
+ sourceFile: "components/core/molecules/SocialProof.tsx",
23028
23356
  tier: "molecules",
23029
23357
  family: "core",
23030
23358
  description: "SocialProof component",
@@ -23363,6 +23691,7 @@ var patterns_registry_default = {
23363
23691
  "edge-decoration": {
23364
23692
  type: "edge-decoration",
23365
23693
  category: "component",
23694
+ sourceFile: "components/core/molecules/EdgeDecoration.tsx",
23366
23695
  tier: "molecules",
23367
23696
  family: "core",
23368
23697
  description: "EdgeDecoration component",
@@ -23436,6 +23765,7 @@ var patterns_registry_default = {
23436
23765
  "ui-slot-renderer": {
23437
23766
  type: "ui-slot-renderer",
23438
23767
  category: "layout",
23768
+ sourceFile: "components/core/organisms/UISlotRenderer.tsx",
23439
23769
  tier: "organisms",
23440
23770
  family: "core",
23441
23771
  description: "UISlotRenderer component",
@@ -23552,6 +23882,7 @@ var patterns_registry_default = {
23552
23882
  "trait-frame": {
23553
23883
  type: "trait-frame",
23554
23884
  category: "component",
23885
+ sourceFile: "components/core/atoms/TraitFrame.tsx",
23555
23886
  tier: "atoms",
23556
23887
  family: "core",
23557
23888
  description: "TraitFrame \u2014 renders the current frame of a referenced trait. Resolves the `@trait.X[.slot]` binding at render time by looking up the referenced trait's last `render-ui` payload from the orbital's `UISlotManager`. Re-renders automatically when that trait transitions via the per-trait subscription channel (`subscribeTrait`). This is the single rendering primitive both runtime paths converge on: - **Interpreted path** \u2014 the trait-binding resolver in `renderer/trait-binding-resolver.ts` walks pattern trees at render time, substituting `\"@trait.X\"` string children with this component. - **Compiled path** \u2014 the TypeScript shell codegen in `orbital-shell-typescript/src/backend.rs::pattern_to_jsx_with_data` emits this component directly into generated JSX wherever a `@trait.*` string appears in a pattern tree. Embedding is passive: the referenced trait's state machine runs unchanged; TraitFrame is only a read-only lens on its current frame. Event propagation happens over the shared event bus, not through this component.",
@@ -23633,6 +23964,16 @@ var patterns_registry_default = {
23633
23964
  cyclicTypeName: "FileTreeNode"
23634
23965
  }
23635
23966
  },
23967
+ note: {
23968
+ types: [
23969
+ "string"
23970
+ ]
23971
+ },
23972
+ expandable: {
23973
+ types: [
23974
+ "boolean"
23975
+ ]
23976
+ },
23636
23977
  size: {
23637
23978
  types: [
23638
23979
  "number"
@@ -23724,6 +24065,30 @@ var patterns_registry_default = {
23724
24065
  }
23725
24066
  ]
23726
24067
  },
24068
+ onNodeExpand: {
24069
+ types: [
24070
+ "function"
24071
+ ],
24072
+ description: "Called the first time a node marked `expandable` is expanded, with its path, so its children can be loaded.",
24073
+ kind: "callback",
24074
+ callbackArgs: [
24075
+ {
24076
+ name: "path",
24077
+ type: "string"
24078
+ }
24079
+ ]
24080
+ },
24081
+ expandedPaths: {
24082
+ types: [
24083
+ "array"
24084
+ ],
24085
+ description: "Paths to show expanded (e.g. to reveal a node): each is expanded when it appears here, loading its children if needed.",
24086
+ items: {
24087
+ types: [
24088
+ "string"
24089
+ ]
24090
+ }
24091
+ },
23727
24092
  onNodeSelect: {
23728
24093
  types: [
23729
24094
  "function"
@@ -23804,6 +24169,7 @@ var patterns_registry_default = {
23804
24169
  "filter-pill": {
23805
24170
  type: "filter-pill",
23806
24171
  category: "filter",
24172
+ sourceFile: "components/core/atoms/FilterPill.tsx",
23807
24173
  tier: "atoms",
23808
24174
  family: "core",
23809
24175
  description: "FilterPill component",
@@ -23921,6 +24287,7 @@ var patterns_registry_default = {
23921
24287
  "likert-scale": {
23922
24288
  type: "likert-scale",
23923
24289
  category: "component",
24290
+ sourceFile: "components/core/molecules/LikertScale.tsx",
23924
24291
  tier: "molecules",
23925
24292
  family: "core",
23926
24293
  description: "LikertScale component",
@@ -24041,6 +24408,7 @@ var patterns_registry_default = {
24041
24408
  "matrix-question": {
24042
24409
  type: "matrix-question",
24043
24410
  category: "component",
24411
+ sourceFile: "components/core/molecules/MatrixQuestion.tsx",
24044
24412
  tier: "molecules",
24045
24413
  family: "core",
24046
24414
  description: "MatrixQuestion component",
@@ -24190,6 +24558,7 @@ var patterns_registry_default = {
24190
24558
  "qr-scanner": {
24191
24559
  type: "qr-scanner",
24192
24560
  category: "component",
24561
+ sourceFile: "components/core/molecules/QrScanner.tsx",
24193
24562
  tier: "molecules",
24194
24563
  family: "core",
24195
24564
  description: "QrScanner component",
@@ -24326,6 +24695,7 @@ var patterns_registry_default = {
24326
24695
  "vote-stack": {
24327
24696
  type: "vote-stack",
24328
24697
  category: "component",
24698
+ sourceFile: "components/core/molecules/VoteStack.tsx",
24329
24699
  tier: "molecules",
24330
24700
  family: "core",
24331
24701
  description: "VoteStack component",
@@ -24434,6 +24804,7 @@ var patterns_registry_default = {
24434
24804
  "branching-logic-builder": {
24435
24805
  type: "branching-logic-builder",
24436
24806
  category: "display",
24807
+ sourceFile: "components/core/molecules/BranchingLogicBuilder.tsx",
24437
24808
  tier: "molecules",
24438
24809
  family: "core",
24439
24810
  description: "BranchingLogicBuilder component",
@@ -25168,6 +25539,7 @@ var patterns_registry_default = {
25168
25539
  "option-constraint-group": {
25169
25540
  type: "option-constraint-group",
25170
25541
  category: "component",
25542
+ sourceFile: "components/core/molecules/OptionConstraintGroup.tsx",
25171
25543
  tier: "molecules",
25172
25544
  family: "core",
25173
25545
  description: 'OptionConstraintGroup Molecule Component Generic constrained option selector (radio for "single", checkbox for "multi") with required/optional/multi constraints. Renders radio inputs for `single` constraint and checkboxes for `multi`. Reports validation errors inline when the current selection violates the constraint. **Atomic Design**: Composed using Typography atom and native form controls.',
@@ -25351,6 +25723,7 @@ var patterns_registry_default = {
25351
25723
  "positioned-canvas": {
25352
25724
  type: "positioned-canvas",
25353
25725
  category: "game",
25726
+ sourceFile: "components/core/molecules/PositionedCanvas.tsx",
25354
25727
  tier: "molecules",
25355
25728
  family: "core",
25356
25729
  description: "PositionedCanvas component",
@@ -26702,6 +27075,7 @@ var patterns_registry_default = {
26702
27075
  "svg-branch": {
26703
27076
  type: "svg-branch",
26704
27077
  category: "component",
27078
+ sourceFile: "components/core/atoms/svg/SvgBranch.tsx",
26705
27079
  tier: "atoms",
26706
27080
  family: "core",
26707
27081
  description: "SvgBranch component",
@@ -26798,6 +27172,7 @@ var patterns_registry_default = {
26798
27172
  "svg-connection": {
26799
27173
  type: "svg-connection",
26800
27174
  category: "component",
27175
+ sourceFile: "components/core/atoms/svg/SvgConnection.tsx",
26801
27176
  tier: "atoms",
26802
27177
  family: "core",
26803
27178
  description: "SvgConnection component",
@@ -26901,6 +27276,7 @@ var patterns_registry_default = {
26901
27276
  "svg-flow": {
26902
27277
  type: "svg-flow",
26903
27278
  category: "component",
27279
+ sourceFile: "components/core/atoms/svg/SvgFlow.tsx",
26904
27280
  tier: "atoms",
26905
27281
  family: "core",
26906
27282
  description: "SvgFlow component",
@@ -26987,6 +27363,7 @@ var patterns_registry_default = {
26987
27363
  "svg-grid": {
26988
27364
  type: "svg-grid",
26989
27365
  category: "display",
27366
+ sourceFile: "components/core/atoms/svg/SvgGrid.tsx",
26990
27367
  tier: "atoms",
26991
27368
  family: "core",
26992
27369
  description: "SvgGrid component",
@@ -27097,6 +27474,7 @@ var patterns_registry_default = {
27097
27474
  "svg-lobe": {
27098
27475
  type: "svg-lobe",
27099
27476
  category: "component",
27477
+ sourceFile: "components/core/atoms/svg/SvgLobe.tsx",
27100
27478
  tier: "atoms",
27101
27479
  family: "core",
27102
27480
  description: "SvgLobe component",
@@ -27195,6 +27573,7 @@ var patterns_registry_default = {
27195
27573
  "svg-mesh": {
27196
27574
  type: "svg-mesh",
27197
27575
  category: "component",
27576
+ sourceFile: "components/core/atoms/svg/SvgMesh.tsx",
27198
27577
  tier: "atoms",
27199
27578
  family: "core",
27200
27579
  description: "SvgMesh component",
@@ -27286,6 +27665,7 @@ var patterns_registry_default = {
27286
27665
  "svg-morph": {
27287
27666
  type: "svg-morph",
27288
27667
  category: "component",
27668
+ sourceFile: "components/core/atoms/svg/SvgMorph.tsx",
27289
27669
  tier: "atoms",
27290
27670
  family: "core",
27291
27671
  description: "SvgMorph component",
@@ -27375,6 +27755,7 @@ var patterns_registry_default = {
27375
27755
  "svg-node": {
27376
27756
  type: "svg-node",
27377
27757
  category: "component",
27758
+ sourceFile: "components/core/atoms/svg/SvgNode.tsx",
27378
27759
  tier: "atoms",
27379
27760
  family: "core",
27380
27761
  description: "SvgNode component",
@@ -27470,6 +27851,7 @@ var patterns_registry_default = {
27470
27851
  "svg-pulse": {
27471
27852
  type: "svg-pulse",
27472
27853
  category: "component",
27854
+ sourceFile: "components/core/atoms/svg/SvgPulse.tsx",
27473
27855
  tier: "atoms",
27474
27856
  family: "core",
27475
27857
  description: "SvgPulse component",
@@ -27561,6 +27943,7 @@ var patterns_registry_default = {
27561
27943
  "svg-ring": {
27562
27944
  type: "svg-ring",
27563
27945
  category: "component",
27946
+ sourceFile: "components/core/atoms/svg/SvgRing.tsx",
27564
27947
  tier: "atoms",
27565
27948
  family: "core",
27566
27949
  description: "SvgRing component",
@@ -27663,6 +28046,7 @@ var patterns_registry_default = {
27663
28046
  "svg-shield": {
27664
28047
  type: "svg-shield",
27665
28048
  category: "component",
28049
+ sourceFile: "components/core/atoms/svg/SvgShield.tsx",
27666
28050
  tier: "atoms",
27667
28051
  family: "core",
27668
28052
  description: "SvgShield component",
@@ -27752,6 +28136,7 @@ var patterns_registry_default = {
27752
28136
  "svg-stack": {
27753
28137
  type: "svg-stack",
27754
28138
  category: "component",
28139
+ sourceFile: "components/core/atoms/svg/SvgStack.tsx",
27755
28140
  tier: "atoms",
27756
28141
  family: "core",
27757
28142
  description: "SvgStack component",
@@ -27853,6 +28238,7 @@ var patterns_registry_default = {
27853
28238
  "doc-breadcrumb": {
27854
28239
  type: "doc-breadcrumb",
27855
28240
  category: "navigation",
28241
+ sourceFile: "components/core/molecules/DocBreadcrumb.tsx",
27856
28242
  tier: "molecules",
27857
28243
  family: "core",
27858
28244
  description: "DocBreadcrumb component",
@@ -27901,6 +28287,7 @@ var patterns_registry_default = {
27901
28287
  "doc-pagination": {
27902
28288
  type: "doc-pagination",
27903
28289
  category: "navigation",
28290
+ sourceFile: "components/core/molecules/DocPagination.tsx",
27904
28291
  tier: "molecules",
27905
28292
  family: "core",
27906
28293
  description: "DocPagination component",
@@ -28083,6 +28470,7 @@ var patterns_registry_default = {
28083
28470
  "doc-toc": {
28084
28471
  type: "doc-toc",
28085
28472
  category: "component",
28473
+ sourceFile: "components/core/molecules/DocTOC.tsx",
28086
28474
  tier: "molecules",
28087
28475
  family: "core",
28088
28476
  description: "DocTOC component",
@@ -28143,6 +28531,7 @@ var patterns_registry_default = {
28143
28531
  "gradient-divider": {
28144
28532
  type: "gradient-divider",
28145
28533
  category: "component",
28534
+ sourceFile: "components/core/molecules/GradientDivider.tsx",
28146
28535
  tier: "molecules",
28147
28536
  family: "core",
28148
28537
  description: "GradientDivider component",
@@ -28170,6 +28559,7 @@ var patterns_registry_default = {
28170
28559
  "behavior-view": {
28171
28560
  type: "behavior-view",
28172
28561
  category: "component",
28562
+ sourceFile: "components/avl/molecules/BehaviorView.tsx",
28173
28563
  tier: "molecules",
28174
28564
  family: "avl",
28175
28565
  description: "BehaviorView component",
@@ -28184,7 +28574,7 @@ var patterns_registry_default = {
28184
28574
  types: [
28185
28575
  "object"
28186
28576
  ],
28187
- description: "data prop",
28577
+ description: "The orbital to summarize.",
28188
28578
  required: true,
28189
28579
  properties: {
28190
28580
  orbitalName: {
@@ -28199,7 +28589,7 @@ var patterns_registry_default = {
28199
28589
  },
28200
28590
  persistence: {
28201
28591
  types: [
28202
- "string"
28592
+ "object"
28203
28593
  ]
28204
28594
  },
28205
28595
  fields: {
@@ -28371,9 +28761,7 @@ var patterns_registry_default = {
28371
28761
  }
28372
28762
  },
28373
28763
  required: [
28374
- "name",
28375
- "isInitial",
28376
- "isTerminal"
28764
+ "name"
28377
28765
  ]
28378
28766
  }
28379
28767
  },
@@ -28447,7 +28835,6 @@ var patterns_registry_default = {
28447
28835
  "from",
28448
28836
  "to",
28449
28837
  "event",
28450
- "guard",
28451
28838
  "effects",
28452
28839
  "index"
28453
28840
  ]
@@ -28532,17 +28919,199 @@ var patterns_registry_default = {
28532
28919
  "pages",
28533
28920
  "traitDetails",
28534
28921
  "externalLinks"
28535
- ]
28922
+ ],
28923
+ example: {
28924
+ orbitalName: "OrderOrbital",
28925
+ entityName: "Order",
28926
+ persistence: "persistent",
28927
+ fields: [
28928
+ {
28929
+ name: "customer",
28930
+ type: "string",
28931
+ required: true,
28932
+ hasDefault: false
28933
+ },
28934
+ {
28935
+ name: "qty",
28936
+ type: "number",
28937
+ required: true,
28938
+ hasDefault: true
28939
+ },
28940
+ {
28941
+ name: "status",
28942
+ type: "string",
28943
+ required: false,
28944
+ hasDefault: true
28945
+ }
28946
+ ],
28947
+ traits: [
28948
+ {
28949
+ name: "OrderFlow",
28950
+ stateCount: 5,
28951
+ eventCount: 7,
28952
+ transitionCount: 7,
28953
+ emits: [
28954
+ "ORDER_SAVED"
28955
+ ],
28956
+ listens: [
28957
+ "PAYMENT_OK"
28958
+ ]
28959
+ }
28960
+ ],
28961
+ pages: [
28962
+ {
28963
+ name: "Orders",
28964
+ route: "/orders"
28965
+ }
28966
+ ],
28967
+ traitDetails: {
28968
+ OrderFlow: {
28969
+ name: "OrderFlow",
28970
+ linkedEntity: "Order",
28971
+ states: [
28972
+ {
28973
+ name: "browsing",
28974
+ isInitial: true,
28975
+ isTerminal: false
28976
+ },
28977
+ {
28978
+ name: "editing",
28979
+ isInitial: false,
28980
+ isTerminal: false
28981
+ },
28982
+ {
28983
+ name: "saving",
28984
+ isInitial: false,
28985
+ isTerminal: false
28986
+ },
28987
+ {
28988
+ name: "confirmed",
28989
+ isInitial: false,
28990
+ isTerminal: true
28991
+ },
28992
+ {
28993
+ name: "failed",
28994
+ isInitial: false,
28995
+ isTerminal: false
28996
+ }
28997
+ ],
28998
+ transitions: [
28999
+ {
29000
+ from: "browsing",
29001
+ to: "editing",
29002
+ event: "EDIT",
29003
+ effects: [
29004
+ {
29005
+ type: "render-ui",
29006
+ args: []
29007
+ }
29008
+ ],
29009
+ index: 0
29010
+ },
29011
+ {
29012
+ from: "editing",
29013
+ to: "saving",
29014
+ event: "SAVE",
29015
+ effects: [
29016
+ {
29017
+ type: "persist",
29018
+ args: []
29019
+ },
29020
+ {
29021
+ type: "notify",
29022
+ args: []
29023
+ }
29024
+ ],
29025
+ index: 1
29026
+ },
29027
+ {
29028
+ from: "saving",
29029
+ to: "confirmed",
29030
+ event: "SAVED",
29031
+ effects: [
29032
+ {
29033
+ type: "emit",
29034
+ args: []
29035
+ },
29036
+ {
29037
+ type: "render-ui",
29038
+ args: []
29039
+ }
29040
+ ],
29041
+ index: 2
29042
+ },
29043
+ {
29044
+ from: "saving",
29045
+ to: "failed",
29046
+ event: "SAVE_FAILED",
29047
+ effects: [
29048
+ {
29049
+ type: "notify",
29050
+ args: []
29051
+ }
29052
+ ],
29053
+ index: 3
29054
+ },
29055
+ {
29056
+ from: "failed",
29057
+ to: "editing",
29058
+ event: "RETRY",
29059
+ effects: [],
29060
+ index: 4
29061
+ },
29062
+ {
29063
+ from: "editing",
29064
+ to: "browsing",
29065
+ event: "CANCEL",
29066
+ effects: [
29067
+ {
29068
+ type: "render-ui",
29069
+ args: []
29070
+ }
29071
+ ],
29072
+ index: 5
29073
+ },
29074
+ {
29075
+ from: "confirmed",
29076
+ to: "browsing",
29077
+ event: "DONE",
29078
+ effects: [
29079
+ {
29080
+ type: "navigate",
29081
+ args: []
29082
+ }
29083
+ ],
29084
+ index: 6
29085
+ }
29086
+ ],
29087
+ emittedEvents: [
29088
+ "ORDER_SAVED"
29089
+ ],
29090
+ listenedEvents: [
29091
+ "PAYMENT_OK"
29092
+ ]
29093
+ }
29094
+ },
29095
+ externalLinks: [
29096
+ {
29097
+ targetOrbital: "PaymentOrbital",
29098
+ eventName: "PAYMENT_OK",
29099
+ direction: "in",
29100
+ traitName: "OrderFlow"
29101
+ }
29102
+ ]
29103
+ }
28536
29104
  }
28537
29105
  }
28538
29106
  },
28539
29107
  "module-card": {
28540
29108
  type: "module-card",
28541
29109
  category: "display",
29110
+ sourceFile: "components/avl/molecules/ModuleCard.tsx",
28542
29111
  tier: "molecules",
28543
29112
  family: "avl",
28544
- description: "ModuleCard \u2014 a card summarizing one course module or lesson with progress and entry point.",
28545
- capabilities: "course module card, lesson card, curriculum unit card, learning-path step card",
29113
+ description: "ModuleCard \u2014 a compact summary card for one orbital module: its entity and fields, a mini state machine per trait, and its pages.",
29114
+ capabilities: "orbital module summary card, entity and trait overview card, app architecture node card",
28546
29115
  suggestedFor: [
28547
29116
  "module",
28548
29117
  "card",
@@ -28554,7 +29123,7 @@ var patterns_registry_default = {
28554
29123
  types: [
28555
29124
  "object"
28556
29125
  ],
28557
- description: "data prop",
29126
+ description: "The orbital to summarize.",
28558
29127
  required: true,
28559
29128
  properties: {
28560
29129
  orbitalName: {
@@ -28569,7 +29138,7 @@ var patterns_registry_default = {
28569
29138
  },
28570
29139
  persistence: {
28571
29140
  types: [
28572
- "string"
29141
+ "object"
28573
29142
  ]
28574
29143
  },
28575
29144
  fields: {
@@ -28741,9 +29310,7 @@ var patterns_registry_default = {
28741
29310
  }
28742
29311
  },
28743
29312
  required: [
28744
- "name",
28745
- "isInitial",
28746
- "isTerminal"
29313
+ "name"
28747
29314
  ]
28748
29315
  }
28749
29316
  },
@@ -28817,7 +29384,6 @@ var patterns_registry_default = {
28817
29384
  "from",
28818
29385
  "to",
28819
29386
  "event",
28820
- "guard",
28821
29387
  "effects",
28822
29388
  "index"
28823
29389
  ]
@@ -28902,7 +29468,188 @@ var patterns_registry_default = {
28902
29468
  "pages",
28903
29469
  "traitDetails",
28904
29470
  "externalLinks"
28905
- ]
29471
+ ],
29472
+ example: {
29473
+ orbitalName: "OrderOrbital",
29474
+ entityName: "Order",
29475
+ persistence: "persistent",
29476
+ fields: [
29477
+ {
29478
+ name: "customer",
29479
+ type: "string",
29480
+ required: true,
29481
+ hasDefault: false
29482
+ },
29483
+ {
29484
+ name: "qty",
29485
+ type: "number",
29486
+ required: true,
29487
+ hasDefault: true
29488
+ },
29489
+ {
29490
+ name: "status",
29491
+ type: "string",
29492
+ required: false,
29493
+ hasDefault: true
29494
+ }
29495
+ ],
29496
+ traits: [
29497
+ {
29498
+ name: "OrderFlow",
29499
+ stateCount: 5,
29500
+ eventCount: 7,
29501
+ transitionCount: 7,
29502
+ emits: [
29503
+ "ORDER_SAVED"
29504
+ ],
29505
+ listens: [
29506
+ "PAYMENT_OK"
29507
+ ]
29508
+ }
29509
+ ],
29510
+ pages: [
29511
+ {
29512
+ name: "Orders",
29513
+ route: "/orders"
29514
+ }
29515
+ ],
29516
+ traitDetails: {
29517
+ OrderFlow: {
29518
+ name: "OrderFlow",
29519
+ linkedEntity: "Order",
29520
+ states: [
29521
+ {
29522
+ name: "browsing",
29523
+ isInitial: true,
29524
+ isTerminal: false
29525
+ },
29526
+ {
29527
+ name: "editing",
29528
+ isInitial: false,
29529
+ isTerminal: false
29530
+ },
29531
+ {
29532
+ name: "saving",
29533
+ isInitial: false,
29534
+ isTerminal: false
29535
+ },
29536
+ {
29537
+ name: "confirmed",
29538
+ isInitial: false,
29539
+ isTerminal: true
29540
+ },
29541
+ {
29542
+ name: "failed",
29543
+ isInitial: false,
29544
+ isTerminal: false
29545
+ }
29546
+ ],
29547
+ transitions: [
29548
+ {
29549
+ from: "browsing",
29550
+ to: "editing",
29551
+ event: "EDIT",
29552
+ effects: [
29553
+ {
29554
+ type: "render-ui",
29555
+ args: []
29556
+ }
29557
+ ],
29558
+ index: 0
29559
+ },
29560
+ {
29561
+ from: "editing",
29562
+ to: "saving",
29563
+ event: "SAVE",
29564
+ effects: [
29565
+ {
29566
+ type: "persist",
29567
+ args: []
29568
+ },
29569
+ {
29570
+ type: "notify",
29571
+ args: []
29572
+ }
29573
+ ],
29574
+ index: 1
29575
+ },
29576
+ {
29577
+ from: "saving",
29578
+ to: "confirmed",
29579
+ event: "SAVED",
29580
+ effects: [
29581
+ {
29582
+ type: "emit",
29583
+ args: []
29584
+ },
29585
+ {
29586
+ type: "render-ui",
29587
+ args: []
29588
+ }
29589
+ ],
29590
+ index: 2
29591
+ },
29592
+ {
29593
+ from: "saving",
29594
+ to: "failed",
29595
+ event: "SAVE_FAILED",
29596
+ effects: [
29597
+ {
29598
+ type: "notify",
29599
+ args: []
29600
+ }
29601
+ ],
29602
+ index: 3
29603
+ },
29604
+ {
29605
+ from: "failed",
29606
+ to: "editing",
29607
+ event: "RETRY",
29608
+ effects: [],
29609
+ index: 4
29610
+ },
29611
+ {
29612
+ from: "editing",
29613
+ to: "browsing",
29614
+ event: "CANCEL",
29615
+ effects: [
29616
+ {
29617
+ type: "render-ui",
29618
+ args: []
29619
+ }
29620
+ ],
29621
+ index: 5
29622
+ },
29623
+ {
29624
+ from: "confirmed",
29625
+ to: "browsing",
29626
+ event: "DONE",
29627
+ effects: [
29628
+ {
29629
+ type: "navigate",
29630
+ args: []
29631
+ }
29632
+ ],
29633
+ index: 6
29634
+ }
29635
+ ],
29636
+ emittedEvents: [
29637
+ "ORDER_SAVED"
29638
+ ],
29639
+ listenedEvents: [
29640
+ "PAYMENT_OK"
29641
+ ]
29642
+ }
29643
+ },
29644
+ externalLinks: [
29645
+ {
29646
+ targetOrbital: "PaymentOrbital",
29647
+ eventName: "PAYMENT_OK",
29648
+ direction: "in",
29649
+ traitName: "OrderFlow"
29650
+ }
29651
+ ]
29652
+ }
28906
29653
  }
28907
29654
  }
28908
29655
  },
@@ -32732,6 +33479,7 @@ var patterns_registry_default = {
32732
33479
  "dashboard-grid": {
32733
33480
  type: "dashboard-grid",
32734
33481
  category: "game",
33482
+ sourceFile: "components/core/organisms/layout/DashboardGrid.tsx",
32735
33483
  tier: "organisms",
32736
33484
  family: "core",
32737
33485
  description: "DashboardGrid Component Multi-column grid for widgets and stats cards. Supports cell spanning for flexible dashboard layouts. Uses wireframe theme styling (high contrast, sharp edges).",
@@ -32921,6 +33669,7 @@ var patterns_registry_default = {
32921
33669
  "split-pane": {
32922
33670
  type: "split-pane",
32923
33671
  category: "layout",
33672
+ sourceFile: "components/core/organisms/layout/SplitPane.tsx",
32924
33673
  tier: "organisms",
32925
33674
  family: "core",
32926
33675
  description: "SplitPane component",
@@ -33012,6 +33761,7 @@ var patterns_registry_default = {
33012
33761
  "tabbed-container": {
33013
33762
  type: "tabbed-container",
33014
33763
  category: "navigation",
33764
+ sourceFile: "components/core/organisms/layout/TabbedContainer.tsx",
33015
33765
  tier: "organisms",
33016
33766
  family: "core",
33017
33767
  description: "TabbedContainer component",
@@ -33118,6 +33868,7 @@ var patterns_registry_default = {
33118
33868
  "master-detail-layout": {
33119
33869
  type: "master-detail-layout",
33120
33870
  category: "display",
33871
+ sourceFile: "components/core/organisms/layout/MasterDetailLayout.tsx",
33121
33872
  tier: "organisms",
33122
33873
  family: "core",
33123
33874
  description: "MasterDetail Component Classic master-detail pattern with a list on the left and selected item detail on the right. Uses wireframe theme styling (high contrast, sharp edges).",
@@ -33186,6 +33937,7 @@ var patterns_registry_default = {
33186
33937
  sparkline: {
33187
33938
  type: "sparkline",
33188
33939
  category: "component",
33940
+ sourceFile: "components/core/atoms/Sparkline.tsx",
33189
33941
  tier: "atoms",
33190
33942
  family: "core",
33191
33943
  description: "Sparkline Atom Component Minimal inline trend chart. Pure SVG polyline over a numeric series. Extracted from StatCard's sparkline path so any KPI or list row can include a trend visualization without compositing the whole card.",
@@ -33261,6 +34013,7 @@ var patterns_registry_default = {
33261
34013
  "date-range-picker": {
33262
34014
  type: "date-range-picker",
33263
34015
  category: "component",
34016
+ sourceFile: "components/core/molecules/DateRangePicker.tsx",
33264
34017
  tier: "molecules",
33265
34018
  family: "core",
33266
34019
  description: "DateRangePicker component",
@@ -33411,6 +34164,7 @@ var patterns_registry_default = {
33411
34164
  aside: {
33412
34165
  type: "aside",
33413
34166
  category: "component",
34167
+ sourceFile: "components/core/atoms/Aside.tsx",
33414
34168
  tier: "atoms",
33415
34169
  family: "core",
33416
34170
  description: "Aside \u2014 a secondary side panel that hosts navigation links or supplementary content alongside a main content area.",
@@ -33437,6 +34191,7 @@ var patterns_registry_default = {
33437
34191
  dialog: {
33438
34192
  type: "dialog",
33439
34193
  category: "container",
34194
+ sourceFile: "components/core/atoms/Dialog.tsx",
33440
34195
  tier: "atoms",
33441
34196
  family: "core",
33442
34197
  description: 'Dialog Atom Component Semantic wrapper for the native `<dialog>` element. Owns the raw HTML rendering so molecules (Modal, ConfirmDialog, etc.) can compose the dialog primitive without dropping back to raw HTML. Defaults `role="dialog"` and `aria-modal="true"`; both overridable for non-modal use cases.',
@@ -33462,6 +34217,7 @@ var patterns_registry_default = {
33462
34217
  "tag-input": {
33463
34218
  type: "tag-input",
33464
34219
  category: "form",
34220
+ sourceFile: "components/core/molecules/TagInput.tsx",
33465
34221
  tier: "molecules",
33466
34222
  family: "core",
33467
34223
  description: "TagInput component",
@@ -34177,6 +34933,7 @@ var patterns_registry_default = {
34177
34933
  "stat-card": {
34178
34934
  type: "stat-card",
34179
34935
  category: "display",
34936
+ sourceFile: "components/core/organisms/StatCard.tsx",
34180
34937
  tier: "organisms",
34181
34938
  family: "core",
34182
34939
  description: "StatCard component",
@@ -34487,6 +35244,7 @@ var patterns_registry_default = {
34487
35244
  "activation-block": {
34488
35245
  type: "activation-block",
34489
35246
  category: "component",
35247
+ sourceFile: "components/core/molecules/ActivationBlock.tsx",
34490
35248
  tier: "molecules",
34491
35249
  family: "core",
34492
35250
  description: "ActivationBlock component",
@@ -34528,6 +35286,7 @@ var patterns_registry_default = {
34528
35286
  "bloom-quiz-block": {
34529
35287
  type: "bloom-quiz-block",
34530
35288
  category: "component",
35289
+ sourceFile: "components/core/molecules/BloomQuizBlock.tsx",
34531
35290
  tier: "molecules",
34532
35291
  family: "core",
34533
35292
  description: "BloomQuizBlock component",
@@ -34598,6 +35357,7 @@ var patterns_registry_default = {
34598
35357
  "connection-block": {
34599
35358
  type: "connection-block",
34600
35359
  category: "component",
35360
+ sourceFile: "components/core/molecules/ConnectionBlock.tsx",
34601
35361
  tier: "molecules",
34602
35362
  family: "core",
34603
35363
  description: "ConnectionBlock component",
@@ -34626,6 +35386,7 @@ var patterns_registry_default = {
34626
35386
  "reflection-block": {
34627
35387
  type: "reflection-block",
34628
35388
  category: "component",
35389
+ sourceFile: "components/core/molecules/ReflectionBlock.tsx",
34629
35390
  tier: "molecules",
34630
35391
  family: "core",
34631
35392
  description: "ReflectionBlock component",
@@ -36442,6 +37203,7 @@ var patterns_registry_default = {
36442
37203
  vstack: {
36443
37204
  type: "vstack",
36444
37205
  category: "component",
37206
+ sourceFile: "components/core/atoms/Stack.tsx",
36445
37207
  tier: "atoms",
36446
37208
  family: "core",
36447
37209
  description: "VStack - Vertical stack shorthand",
@@ -36598,7 +37360,8 @@ var patterns_registry_default = {
36598
37360
  "object"
36599
37361
  ],
36600
37362
  description: "Payload to include with the action event",
36601
- payloadFor: "action"
37363
+ payloadFor: "action",
37364
+ eventPayloadBrand: true
36602
37365
  },
36603
37366
  responsive: {
36604
37367
  types: [
@@ -36612,6 +37375,7 @@ var patterns_registry_default = {
36612
37375
  hstack: {
36613
37376
  type: "hstack",
36614
37377
  category: "component",
37378
+ sourceFile: "components/core/atoms/Stack.tsx",
36615
37379
  tier: "atoms",
36616
37380
  family: "core",
36617
37381
  description: "HStack - Horizontal stack shorthand",
@@ -36768,7 +37532,8 @@ var patterns_registry_default = {
36768
37532
  "object"
36769
37533
  ],
36770
37534
  description: "Payload to include with the action event",
36771
- payloadFor: "action"
37535
+ payloadFor: "action",
37536
+ eventPayloadBrand: true
36772
37537
  },
36773
37538
  responsive: {
36774
37539
  types: [
@@ -36782,6 +37547,7 @@ var patterns_registry_default = {
36782
37547
  "form-layout": {
36783
37548
  type: "form-layout",
36784
37549
  category: "form",
37550
+ sourceFile: "components/core/molecules/FormSection.tsx",
36785
37551
  tier: "molecules",
36786
37552
  family: "core",
36787
37553
  description: "Form layout with multiple sections",
@@ -36917,6 +37683,7 @@ var patterns_registry_default = {
36917
37683
  "learning-canvas": {
36918
37684
  type: "learning-canvas",
36919
37685
  category: "learning",
37686
+ sourceFile: "components/learning/atoms/LearningCanvas.tsx",
36920
37687
  tier: "atoms",
36921
37688
  family: "learning",
36922
37689
  description: "LearningCanvas component",
@@ -37521,6 +38288,7 @@ var patterns_registry_default = {
37521
38288
  "biology-canvas": {
37522
38289
  type: "biology-canvas",
37523
38290
  category: "learning",
38291
+ sourceFile: "components/learning/molecules/BiologyCanvas.tsx",
37524
38292
  tier: "molecules",
37525
38293
  family: "learning",
37526
38294
  description: "BiologyCanvas component",
@@ -38817,6 +39585,7 @@ var patterns_registry_default = {
38817
39585
  "chemistry-canvas": {
38818
39586
  type: "chemistry-canvas",
38819
39587
  category: "learning",
39588
+ sourceFile: "components/learning/molecules/ChemistryCanvas.tsx",
38820
39589
  tier: "molecules",
38821
39590
  family: "learning",
38822
39591
  description: "ChemistryCanvas component",
@@ -41194,6 +41963,7 @@ var patterns_registry_default = {
41194
41963
  "physics-canvas": {
41195
41964
  type: "physics-canvas",
41196
41965
  category: "learning",
41966
+ sourceFile: "components/learning/molecules/PhysicsCanvas.tsx",
41197
41967
  tier: "molecules",
41198
41968
  family: "learning",
41199
41969
  description: "PhysicsCanvas component",
@@ -42711,6 +43481,7 @@ var patterns_registry_default = {
42711
43481
  "state-graph": {
42712
43482
  type: "state-graph",
42713
43483
  category: "game",
43484
+ sourceFile: "components/game/molecules/StateGraph.tsx",
42714
43485
  tier: "molecules",
42715
43486
  family: "game",
42716
43487
  description: `StateGraph (molecule) Dumb visual renderer for a state-machine graph: lays states out on a circle, draws the player's transitions as SVG arrows, and emits a node-click event. All state (which transitions exist, the pending "from" selection, test results) lives in the .lolo FSM \u2014 this molecule only renders and reports clicks.`,
@@ -42835,6 +43606,7 @@ var patterns_registry_default = {
42835
43606
  "state-json-view": {
42836
43607
  type: "state-json-view",
42837
43608
  category: "game",
43609
+ sourceFile: "components/game/molecules/StateJsonView.tsx",
42838
43610
  tier: "molecules",
42839
43611
  family: "game",
42840
43612
  description: "StateJsonView Component Shows a state machine's definition as an expandable code block, so the learner sees the declarative schema behind the visual graph. Dumb molecule: takes the machine as plain typed fields (name/states/initialState/transitions) \u2014 the .lolo organism owns the entity and the molecule renders + stringifies it.",
@@ -42930,6 +43702,7 @@ var patterns_registry_default = {
42930
43702
  "algorithm-canvas": {
42931
43703
  type: "algorithm-canvas",
42932
43704
  category: "learning",
43705
+ sourceFile: "components/learning/molecules/AlgorithmCanvas.tsx",
42933
43706
  tier: "molecules",
42934
43707
  family: "learning",
42935
43708
  description: "AlgorithmCanvas component",
@@ -43721,6 +44494,7 @@ var patterns_registry_default = {
43721
44494
  "atlas-image": {
43722
44495
  type: "atlas-image",
43723
44496
  category: "component",
44497
+ sourceFile: "components/core/atoms/AtlasImage.tsx",
43724
44498
  tier: "atoms",
43725
44499
  family: "core",
43726
44500
  description: "AtlasImage component",
@@ -43835,6 +44609,7 @@ var patterns_registry_default = {
43835
44609
  "atlas-panel": {
43836
44610
  type: "atlas-panel",
43837
44611
  category: "component",
44612
+ sourceFile: "components/core/atoms/AtlasImage.tsx",
43838
44613
  tier: "atoms",
43839
44614
  family: "core",
43840
44615
  description: "AtlasPanel component",
@@ -43937,6 +44712,7 @@ var patterns_registry_default = {
43937
44712
  "draw-shape": {
43938
44713
  type: "draw-shape",
43939
44714
  category: "game",
44715
+ sourceFile: "components/game/atoms/DrawShape.tsx",
43940
44716
  tier: "atoms",
43941
44717
  family: "game",
43942
44718
  description: "DrawShape component",
@@ -44904,6 +45680,7 @@ var patterns_registry_default = {
44904
45680
  "draw-text": {
44905
45681
  type: "draw-text",
44906
45682
  category: "game",
45683
+ sourceFile: "components/game/atoms/DrawText.tsx",
44907
45684
  tier: "atoms",
44908
45685
  family: "game",
44909
45686
  description: "DrawText component",
@@ -45041,6 +45818,7 @@ var patterns_registry_default = {
45041
45818
  "draw-shape-layer": {
45042
45819
  type: "draw-shape-layer",
45043
45820
  category: "game",
45821
+ sourceFile: "components/game/molecules/DrawShapeLayer.tsx",
45044
45822
  tier: "molecules",
45045
45823
  family: "game",
45046
45824
  description: "DrawShapeLayer component",
@@ -46031,6 +46809,7 @@ var patterns_registry_default = {
46031
46809
  "draw-text-layer": {
46032
46810
  type: "draw-text-layer",
46033
46811
  category: "game",
46812
+ sourceFile: "components/game/molecules/DrawTextLayer.tsx",
46034
46813
  tier: "molecules",
46035
46814
  family: "game",
46036
46815
  description: "DrawTextLayer component",
@@ -46966,6 +47745,7 @@ var patterns_registry_default = {
46966
47745
  presence: {
46967
47746
  type: "presence",
46968
47747
  category: "component",
47748
+ sourceFile: "components/core/atoms/Presence.tsx",
46969
47749
  tier: "atoms",
46970
47750
  family: "core",
46971
47751
  description: "Presence component",
@@ -46999,6 +47779,7 @@ var patterns_registry_default = {
46999
47779
  "page-transition": {
47000
47780
  type: "page-transition",
47001
47781
  category: "component",
47782
+ sourceFile: "components/core/molecules/PageTransition.tsx",
47002
47783
  tier: "molecules",
47003
47784
  family: "core",
47004
47785
  description: "PageTransition component",
@@ -47195,6 +47976,7 @@ var patterns_registry_default = {
47195
47976
  "import-progress": {
47196
47977
  type: "import-progress",
47197
47978
  category: "component",
47979
+ sourceFile: "components/core/molecules/import/ImportProgress.tsx",
47198
47980
  tier: "molecules",
47199
47981
  family: "core",
47200
47982
  description: "ImportProgress component",
@@ -47265,6 +48047,7 @@ var patterns_registry_default = {
47265
48047
  "import-source-picker": {
47266
48048
  type: "import-source-picker",
47267
48049
  category: "component",
48050
+ sourceFile: "components/core/molecules/import/ImportSourcePicker.tsx",
47268
48051
  tier: "molecules",
47269
48052
  family: "core",
47270
48053
  description: "ImportSourcePicker component",
@@ -47399,6 +48182,7 @@ var patterns_registry_default = {
47399
48182
  "draw-group": {
47400
48183
  type: "draw-group",
47401
48184
  category: "game",
48185
+ sourceFile: "components/game/atoms/DrawGroup.tsx",
47402
48186
  tier: "atoms",
47403
48187
  family: "game",
47404
48188
  description: "DrawGroup component",
@@ -47618,6 +48402,7 @@ var patterns_registry_default = {
47618
48402
  "emoji-picker": {
47619
48403
  type: "emoji-picker",
47620
48404
  category: "component",
48405
+ sourceFile: "components/core/molecules/EmojiPicker.tsx",
47621
48406
  tier: "molecules",
47622
48407
  family: "core",
47623
48408
  description: "EmojiPicker component",
@@ -47679,6 +48464,7 @@ var patterns_registry_default = {
47679
48464
  "draw-mesh": {
47680
48465
  type: "draw-mesh",
47681
48466
  category: "game",
48467
+ sourceFile: "components/game/atoms/DrawMesh.tsx",
47682
48468
  tier: "atoms",
47683
48469
  family: "game",
47684
48470
  description: "DrawMesh component",
@@ -48156,6 +48942,7 @@ var patterns_registry_default = {
48156
48942
  "algo-graph-canvas": {
48157
48943
  type: "algo-graph-canvas",
48158
48944
  category: "learning",
48945
+ sourceFile: "components/learning/molecules/AlgoGraphCanvas.tsx",
48159
48946
  tier: "molecules",
48160
48947
  family: "learning",
48161
48948
  description: "AlgoGraphCanvas component",
@@ -48721,6 +49508,7 @@ var patterns_registry_default = {
48721
49508
  "fx-overlay": {
48722
49509
  type: "fx-overlay",
48723
49510
  category: "container",
49511
+ sourceFile: "components/core/molecules/FxOverlay.tsx",
48724
49512
  tier: "molecules",
48725
49513
  family: "core",
48726
49514
  description: "FxOverlay component",
@@ -49298,6 +50086,7 @@ var patterns_registry_default = {
49298
50086
  "rich-text-editor": {
49299
50087
  type: "rich-text-editor",
49300
50088
  category: "component",
50089
+ sourceFile: "components/core/molecules/RichTextEditor.tsx",
49301
50090
  tier: "molecules",
49302
50091
  family: "core",
49303
50092
  description: "RichTextEditor component",
@@ -50335,6 +51124,7 @@ var patterns_registry_default = {
50335
51124
  "game-audio-cue": {
50336
51125
  type: "game-audio-cue",
50337
51126
  category: "game",
51127
+ sourceFile: "components/game/atoms/GameAudioCue.tsx",
50338
51128
  tier: "atoms",
50339
51129
  family: "game",
50340
51130
  description: "GameAudioCue component",
@@ -50445,6 +51235,7 @@ var patterns_registry_default = {
50445
51235
  "ui-slot-component": {
50446
51236
  type: "ui-slot-component",
50447
51237
  category: "layout",
51238
+ sourceFile: "components/core/organisms/UISlotRenderer.tsx",
50448
51239
  tier: "organisms",
50449
51240
  family: "core",
50450
51241
  description: "UISlotComponent component",
@@ -50876,7 +51667,6 @@ var patterns_registry_default = {
50876
51667
  },
50877
51668
  required: [
50878
51669
  "name",
50879
- "parent",
50880
51670
  "pivot",
50881
51671
  "tip"
50882
51672
  ]
@@ -51864,6 +52654,524 @@ var patterns_registry_default = {
51864
52654
  description: "className prop"
51865
52655
  }
51866
52656
  }
52657
+ },
52658
+ "avl-state-machine": {
52659
+ type: "avl-state-machine",
52660
+ category: "display",
52661
+ sourceFile: "components/avl/molecules/AvlStateMachine.tsx",
52662
+ tier: "molecules",
52663
+ family: "avl",
52664
+ description: "AvlStateMachine component",
52665
+ suggestedFor: [
52666
+ "avl",
52667
+ "state",
52668
+ "machine",
52669
+ "avl state machine"
52670
+ ],
52671
+ typicalSize: "medium",
52672
+ propsSchema: {
52673
+ trait: {
52674
+ types: [
52675
+ "object"
52676
+ ],
52677
+ description: "The trait to draw (see `parseTraitLevel`).",
52678
+ required: true,
52679
+ properties: {
52680
+ name: {
52681
+ types: [
52682
+ "string"
52683
+ ]
52684
+ },
52685
+ linkedEntity: {
52686
+ types: [
52687
+ "string"
52688
+ ]
52689
+ },
52690
+ states: {
52691
+ types: [
52692
+ "array"
52693
+ ],
52694
+ items: {
52695
+ types: [
52696
+ "object"
52697
+ ],
52698
+ properties: {
52699
+ name: {
52700
+ types: [
52701
+ "string"
52702
+ ]
52703
+ },
52704
+ isInitial: {
52705
+ types: [
52706
+ "boolean"
52707
+ ]
52708
+ },
52709
+ isTerminal: {
52710
+ types: [
52711
+ "boolean"
52712
+ ]
52713
+ }
52714
+ },
52715
+ required: [
52716
+ "name"
52717
+ ]
52718
+ }
52719
+ },
52720
+ transitions: {
52721
+ types: [
52722
+ "array"
52723
+ ],
52724
+ items: {
52725
+ types: [
52726
+ "object"
52727
+ ],
52728
+ properties: {
52729
+ from: {
52730
+ types: [
52731
+ "string"
52732
+ ]
52733
+ },
52734
+ to: {
52735
+ types: [
52736
+ "string"
52737
+ ]
52738
+ },
52739
+ event: {
52740
+ types: [
52741
+ "string"
52742
+ ]
52743
+ },
52744
+ guard: {
52745
+ types: [
52746
+ "sexpr"
52747
+ ]
52748
+ },
52749
+ effects: {
52750
+ types: [
52751
+ "array"
52752
+ ],
52753
+ items: {
52754
+ types: [
52755
+ "object"
52756
+ ],
52757
+ properties: {
52758
+ type: {
52759
+ types: [
52760
+ "string"
52761
+ ]
52762
+ },
52763
+ args: {
52764
+ types: [
52765
+ "array"
52766
+ ],
52767
+ items: {
52768
+ types: [
52769
+ "sexpr"
52770
+ ]
52771
+ }
52772
+ }
52773
+ },
52774
+ required: [
52775
+ "type",
52776
+ "args"
52777
+ ]
52778
+ }
52779
+ },
52780
+ index: {
52781
+ types: [
52782
+ "number"
52783
+ ]
52784
+ }
52785
+ },
52786
+ required: [
52787
+ "from",
52788
+ "to",
52789
+ "event",
52790
+ "effects",
52791
+ "index"
52792
+ ]
52793
+ }
52794
+ },
52795
+ emittedEvents: {
52796
+ types: [
52797
+ "array"
52798
+ ],
52799
+ items: {
52800
+ types: [
52801
+ "string"
52802
+ ]
52803
+ }
52804
+ },
52805
+ listenedEvents: {
52806
+ types: [
52807
+ "array"
52808
+ ],
52809
+ items: {
52810
+ types: [
52811
+ "string"
52812
+ ]
52813
+ }
52814
+ }
52815
+ },
52816
+ propertyRequired: [
52817
+ "name",
52818
+ "linkedEntity",
52819
+ "states",
52820
+ "transitions",
52821
+ "emittedEvents",
52822
+ "listenedEvents"
52823
+ ],
52824
+ example: {
52825
+ name: "OrderFlow",
52826
+ linkedEntity: "Order",
52827
+ states: [
52828
+ {
52829
+ name: "browsing",
52830
+ isInitial: true,
52831
+ isTerminal: false
52832
+ },
52833
+ {
52834
+ name: "editing",
52835
+ isInitial: false,
52836
+ isTerminal: false
52837
+ },
52838
+ {
52839
+ name: "saving",
52840
+ isInitial: false,
52841
+ isTerminal: false
52842
+ },
52843
+ {
52844
+ name: "confirmed",
52845
+ isInitial: false,
52846
+ isTerminal: true
52847
+ },
52848
+ {
52849
+ name: "failed",
52850
+ isInitial: false,
52851
+ isTerminal: false
52852
+ }
52853
+ ],
52854
+ transitions: [
52855
+ {
52856
+ from: "browsing",
52857
+ to: "editing",
52858
+ event: "EDIT",
52859
+ effects: [
52860
+ {
52861
+ type: "render-ui",
52862
+ args: []
52863
+ }
52864
+ ],
52865
+ index: 0
52866
+ },
52867
+ {
52868
+ from: "editing",
52869
+ to: "saving",
52870
+ event: "SAVE",
52871
+ effects: [
52872
+ {
52873
+ type: "persist",
52874
+ args: []
52875
+ },
52876
+ {
52877
+ type: "notify",
52878
+ args: []
52879
+ }
52880
+ ],
52881
+ index: 1
52882
+ },
52883
+ {
52884
+ from: "saving",
52885
+ to: "confirmed",
52886
+ event: "SAVED",
52887
+ effects: [
52888
+ {
52889
+ type: "emit",
52890
+ args: []
52891
+ },
52892
+ {
52893
+ type: "render-ui",
52894
+ args: []
52895
+ }
52896
+ ],
52897
+ index: 2
52898
+ },
52899
+ {
52900
+ from: "saving",
52901
+ to: "failed",
52902
+ event: "SAVE_FAILED",
52903
+ effects: [
52904
+ {
52905
+ type: "notify",
52906
+ args: []
52907
+ }
52908
+ ],
52909
+ index: 3
52910
+ },
52911
+ {
52912
+ from: "failed",
52913
+ to: "editing",
52914
+ event: "RETRY",
52915
+ effects: [],
52916
+ index: 4
52917
+ },
52918
+ {
52919
+ from: "editing",
52920
+ to: "browsing",
52921
+ event: "CANCEL",
52922
+ effects: [
52923
+ {
52924
+ type: "render-ui",
52925
+ args: []
52926
+ }
52927
+ ],
52928
+ index: 5
52929
+ },
52930
+ {
52931
+ from: "confirmed",
52932
+ to: "browsing",
52933
+ event: "DONE",
52934
+ effects: [
52935
+ {
52936
+ type: "navigate",
52937
+ args: []
52938
+ }
52939
+ ],
52940
+ index: 6
52941
+ }
52942
+ ],
52943
+ emittedEvents: [
52944
+ "ORDER_SAVED"
52945
+ ],
52946
+ listenedEvents: [
52947
+ "PAYMENT_OK"
52948
+ ]
52949
+ }
52950
+ },
52951
+ activeState: {
52952
+ types: [
52953
+ "string"
52954
+ ],
52955
+ description: "State execution is currently in."
52956
+ },
52957
+ activeTransition: {
52958
+ types: [
52959
+ "number"
52960
+ ],
52961
+ description: "`index` of the transition that just fired."
52962
+ },
52963
+ visitedStates: {
52964
+ types: [
52965
+ "array"
52966
+ ],
52967
+ description: "States already passed through, in order.",
52968
+ items: {
52969
+ types: [
52970
+ "string"
52971
+ ]
52972
+ }
52973
+ },
52974
+ stateClickEvent: {
52975
+ types: [
52976
+ "string"
52977
+ ],
52978
+ description: "Emits UI:{stateClickEvent} with { stateId } when a state is clicked.",
52979
+ kind: "event-ref",
52980
+ emitPayloadSchema: [
52981
+ {
52982
+ name: "stateId",
52983
+ type: "string",
52984
+ required: true
52985
+ }
52986
+ ]
52987
+ },
52988
+ transitionClickEvent: {
52989
+ types: [
52990
+ "string"
52991
+ ],
52992
+ description: "Emits UI:{transitionClickEvent} with { index, event, from, to } when a transition label is clicked.",
52993
+ kind: "event-ref",
52994
+ emitPayloadSchema: [
52995
+ {
52996
+ name: "index",
52997
+ type: "number",
52998
+ required: true
52999
+ },
53000
+ {
53001
+ name: "event",
53002
+ type: "string",
53003
+ required: true
53004
+ },
53005
+ {
53006
+ name: "from",
53007
+ type: "string",
53008
+ required: true
53009
+ },
53010
+ {
53011
+ name: "to",
53012
+ type: "string",
53013
+ required: true
53014
+ }
53015
+ ]
53016
+ },
53017
+ selectedState: {
53018
+ types: [
53019
+ "string"
53020
+ ],
53021
+ description: "State picked in an editor (first click)."
53022
+ },
53023
+ pendingSourceState: {
53024
+ types: [
53025
+ "string"
53026
+ ],
53027
+ description: "Source of a transition being drawn \u2014 the next state click picks its target."
53028
+ },
53029
+ nodeShape: {
53030
+ types: [
53031
+ "string"
53032
+ ],
53033
+ description: "Node silhouette. @default 'pill'",
53034
+ enumValues: [
53035
+ "pill",
53036
+ "gear"
53037
+ ],
53038
+ default: "pill"
53039
+ },
53040
+ entityFields: {
53041
+ types: [
53042
+ "array"
53043
+ ],
53044
+ description: "Entity field names listed in the header.",
53045
+ items: {
53046
+ types: [
53047
+ "string"
53048
+ ]
53049
+ }
53050
+ },
53051
+ direction: {
53052
+ types: [
53053
+ "string"
53054
+ ],
53055
+ description: "Flow direction. @default 'ltr'",
53056
+ enumValues: [
53057
+ "ltr",
53058
+ "rtl"
53059
+ ],
53060
+ default: "ltr"
53061
+ },
53062
+ showHeader: {
53063
+ types: [
53064
+ "boolean"
53065
+ ],
53066
+ description: "Show the trait header (name, entity, listens/emits). @default true",
53067
+ default: true
53068
+ },
53069
+ className: {
53070
+ types: [
53071
+ "string"
53072
+ ],
53073
+ description: "className prop"
53074
+ }
53075
+ }
53076
+ },
53077
+ "avl-glyph": {
53078
+ type: "avl-glyph",
53079
+ category: "component",
53080
+ sourceFile: "components/avl/molecules/AvlGlyph.tsx",
53081
+ tier: "molecules",
53082
+ family: "avl",
53083
+ description: "AvlGlyph component",
53084
+ suggestedFor: [
53085
+ "avl",
53086
+ "glyph",
53087
+ "avl glyph"
53088
+ ],
53089
+ typicalSize: "medium",
53090
+ propsSchema: {
53091
+ kind: {
53092
+ types: [
53093
+ "string"
53094
+ ],
53095
+ description: "Which notation symbol to draw.",
53096
+ required: true,
53097
+ enumValues: [
53098
+ "application",
53099
+ "orbital",
53100
+ "entity",
53101
+ "trait",
53102
+ "page",
53103
+ "state",
53104
+ "transition",
53105
+ "event",
53106
+ "guard",
53107
+ "effect",
53108
+ "field",
53109
+ "fieldType",
53110
+ "binding",
53111
+ "bindingRef",
53112
+ "persistence",
53113
+ "operator",
53114
+ "sexpr",
53115
+ "literal"
53116
+ ],
53117
+ example: "state"
53118
+ },
53119
+ label: {
53120
+ types: [
53121
+ "string"
53122
+ ],
53123
+ description: "Caption, and the drawn text for operator / literal / bindingRef symbols."
53124
+ },
53125
+ effectType: {
53126
+ types: [
53127
+ "string"
53128
+ ],
53129
+ description: "Effect symbol variant. @default 'set'"
53130
+ },
53131
+ fieldType: {
53132
+ types: [
53133
+ "object"
53134
+ ],
53135
+ description: "Field-type symbol variant. @default 'string'"
53136
+ },
53137
+ persistence: {
53138
+ types: [
53139
+ "object"
53140
+ ],
53141
+ description: "Persistence symbol variant (also the entity's ring). @default 'persistent'"
53142
+ },
53143
+ namespace: {
53144
+ types: [
53145
+ "object"
53146
+ ],
53147
+ description: "Operator category tint. @default 'arithmetic'"
53148
+ },
53149
+ size: {
53150
+ types: [
53151
+ "string"
53152
+ ],
53153
+ description: "Symbol height. @default 'md'",
53154
+ enumValues: [
53155
+ "sm",
53156
+ "md",
53157
+ "lg"
53158
+ ],
53159
+ default: "md"
53160
+ },
53161
+ showCaption: {
53162
+ types: [
53163
+ "boolean"
53164
+ ],
53165
+ description: "Show the caption under the symbol. @default true",
53166
+ default: true
53167
+ },
53168
+ className: {
53169
+ types: [
53170
+ "string"
53171
+ ],
53172
+ description: "className prop"
53173
+ }
53174
+ }
51867
53175
  }
51868
53176
  }};
51869
53177
  var JsonValueSchema = z.lazy(