@almadar/patterns 2.42.0 → 2.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/patterns-registry.json
2
2
  var patterns_registry_default = {
3
3
  version: "1.0.0",
4
- exportedAt: "2026-06-16T06:23:39.790Z",
4
+ exportedAt: "2026-06-16T13:40:20.131Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -6931,7 +6931,15 @@ var patterns_registry_default = {
6931
6931
  types: [
6932
6932
  "string"
6933
6933
  ],
6934
- description: "Color class (Tailwind color class) or 'inherit' for theme default"
6934
+ description: "Semantic palette token or an arbitrary Tailwind color class.",
6935
+ enumValues: [
6936
+ "primary",
6937
+ "secondary",
6938
+ "success",
6939
+ "warning",
6940
+ "error",
6941
+ "muted"
6942
+ ]
6935
6943
  },
6936
6944
  animation: {
6937
6945
  types: [
@@ -7107,6 +7115,7 @@ var patterns_registry_default = {
7107
7115
  "primary",
7108
7116
  "success",
7109
7117
  "warning",
7118
+ "error",
7110
7119
  "danger"
7111
7120
  ],
7112
7121
  default: "primary"
@@ -7121,6 +7130,7 @@ var patterns_registry_default = {
7121
7130
  "primary",
7122
7131
  "success",
7123
7132
  "warning",
7133
+ "error",
7124
7134
  "danger"
7125
7135
  ]
7126
7136
  },
@@ -9108,8 +9118,7 @@ var patterns_registry_default = {
9108
9118
  "small",
9109
9119
  "large",
9110
9120
  "label"
9111
- ],
9112
- default: "body"
9121
+ ]
9113
9122
  },
9114
9123
  level: {
9115
9124
  types: [
@@ -9123,8 +9132,7 @@ var patterns_registry_default = {
9123
9132
  4,
9124
9133
  5,
9125
9134
  6
9126
- ],
9127
- default: 2
9135
+ ]
9128
9136
  },
9129
9137
  color: {
9130
9138
  types: [
@@ -11600,7 +11608,7 @@ var patterns_registry_default = {
11600
11608
  type: "auth-layout",
11601
11609
  category: "template",
11602
11610
  tier: "templates",
11603
- family: "core",
11611
+ family: "marketing",
11604
11612
  description: "AuthLayout component",
11605
11613
  suggestedFor: [
11606
11614
  "auth",
@@ -11614,7 +11622,7 @@ var patterns_registry_default = {
11614
11622
  "string"
11615
11623
  ],
11616
11624
  description: "App name",
11617
- default: "{{APP_TITLE}}"
11625
+ default: "My App"
11618
11626
  },
11619
11627
  logo: {
11620
11628
  types: [
@@ -13126,7 +13134,48 @@ var patterns_registry_default = {
13126
13134
  items: {
13127
13135
  types: [
13128
13136
  "object"
13129
- ]
13137
+ ],
13138
+ properties: {
13139
+ id: {
13140
+ types: [
13141
+ "string"
13142
+ ]
13143
+ },
13144
+ src: {
13145
+ types: [
13146
+ "string"
13147
+ ]
13148
+ },
13149
+ alt: {
13150
+ types: [
13151
+ "string"
13152
+ ]
13153
+ },
13154
+ thumbnail: {
13155
+ types: [
13156
+ "string"
13157
+ ]
13158
+ },
13159
+ mediaType: {
13160
+ types: [
13161
+ "string"
13162
+ ],
13163
+ enumValues: [
13164
+ "image",
13165
+ "video"
13166
+ ]
13167
+ },
13168
+ caption: {
13169
+ types: [
13170
+ "string"
13171
+ ]
13172
+ },
13173
+ fileSize: {
13174
+ types: [
13175
+ "string"
13176
+ ]
13177
+ }
13178
+ }
13130
13179
  }
13131
13180
  },
13132
13181
  columns: {
@@ -13924,252 +13973,6 @@ var patterns_registry_default = {
13924
13973
  }
13925
13974
  }
13926
13975
  },
13927
- "code-viewer": {
13928
- type: "code-viewer",
13929
- category: "display",
13930
- tier: "molecules",
13931
- family: "core",
13932
- description: "Code and diff viewer with line numbers, copy, word-wrap, and multi-file tabs",
13933
- suggestedFor: [
13934
- "code display",
13935
- "diff viewing",
13936
- "schema inspection",
13937
- "log viewing"
13938
- ],
13939
- typicalSize: "medium",
13940
- propsSchema: {
13941
- title: {
13942
- types: [
13943
- "string"
13944
- ],
13945
- description: "Viewer title"
13946
- },
13947
- code: {
13948
- types: [
13949
- "string"
13950
- ],
13951
- description: "Code content"
13952
- },
13953
- language: {
13954
- types: [
13955
- "unknown"
13956
- ],
13957
- description: "Language for display label"
13958
- },
13959
- diff: {
13960
- types: [
13961
- "array"
13962
- ],
13963
- description: "Diff lines (for diff mode)",
13964
- items: {
13965
- types: [
13966
- "object"
13967
- ],
13968
- properties: {
13969
- type: {
13970
- types: [
13971
- "string"
13972
- ],
13973
- enumValues: [
13974
- "add",
13975
- "remove",
13976
- "context"
13977
- ]
13978
- },
13979
- content: {
13980
- types: [
13981
- "string"
13982
- ]
13983
- },
13984
- lineNumber: {
13985
- types: [
13986
- "number"
13987
- ]
13988
- }
13989
- },
13990
- required: [
13991
- "type",
13992
- "content"
13993
- ]
13994
- }
13995
- },
13996
- oldValue: {
13997
- types: [
13998
- "string"
13999
- ],
14000
- description: "Old value (for generating diff)"
14001
- },
14002
- newValue: {
14003
- types: [
14004
- "string"
14005
- ],
14006
- description: "New value (for generating diff)"
14007
- },
14008
- mode: {
14009
- types: [
14010
- "string"
14011
- ],
14012
- description: "Display mode",
14013
- enumValues: [
14014
- "code",
14015
- "diff"
14016
- ],
14017
- default: "code"
14018
- },
14019
- showLineNumbers: {
14020
- types: [
14021
- "boolean"
14022
- ],
14023
- description: "Show line numbers",
14024
- default: true
14025
- },
14026
- showCopy: {
14027
- types: [
14028
- "boolean"
14029
- ],
14030
- description: "Show copy button",
14031
- default: true
14032
- },
14033
- wordWrap: {
14034
- types: [
14035
- "boolean"
14036
- ],
14037
- description: "Enable word wrap",
14038
- default: false
14039
- },
14040
- maxHeight: {
14041
- types: [
14042
- "number",
14043
- "string"
14044
- ],
14045
- description: "Max height before scrolling",
14046
- default: 500
14047
- },
14048
- files: {
14049
- types: [
14050
- "array"
14051
- ],
14052
- description: "Multiple files (tabbed view)",
14053
- items: {
14054
- types: [
14055
- "object"
14056
- ],
14057
- properties: {
14058
- label: {
14059
- types: [
14060
- "string"
14061
- ]
14062
- },
14063
- code: {
14064
- types: [
14065
- "string"
14066
- ]
14067
- },
14068
- language: {
14069
- types: [
14070
- "unknown"
14071
- ]
14072
- }
14073
- },
14074
- required: [
14075
- "label",
14076
- "code"
14077
- ]
14078
- }
14079
- },
14080
- actions: {
14081
- types: [
14082
- "array"
14083
- ],
14084
- description: "Actions",
14085
- items: {
14086
- types: [
14087
- "object"
14088
- ],
14089
- properties: {
14090
- label: {
14091
- types: [
14092
- "string"
14093
- ]
14094
- },
14095
- event: {
14096
- types: [
14097
- "string"
14098
- ]
14099
- },
14100
- navigatesTo: {
14101
- types: [
14102
- "string"
14103
- ]
14104
- },
14105
- variant: {
14106
- types: [
14107
- "string"
14108
- ],
14109
- enumValues: [
14110
- "primary",
14111
- "secondary",
14112
- "ghost"
14113
- ]
14114
- }
14115
- },
14116
- required: [
14117
- "label"
14118
- ]
14119
- }
14120
- },
14121
- entity: {
14122
- types: [
14123
- "string"
14124
- ],
14125
- description: "Entity name for schema-driven auto-fetch"
14126
- },
14127
- isLoading: {
14128
- types: [
14129
- "boolean"
14130
- ],
14131
- description: "Loading state",
14132
- default: false
14133
- },
14134
- error: {
14135
- types: [
14136
- "object"
14137
- ],
14138
- description: "Error state",
14139
- properties: {
14140
- message: {
14141
- types: [
14142
- "string"
14143
- ]
14144
- },
14145
- name: {
14146
- types: [
14147
- "string"
14148
- ]
14149
- },
14150
- code: {
14151
- types: [
14152
- "string"
14153
- ]
14154
- },
14155
- stack: {
14156
- types: [
14157
- "string"
14158
- ]
14159
- }
14160
- },
14161
- propertyRequired: [
14162
- "message"
14163
- ]
14164
- },
14165
- className: {
14166
- types: [
14167
- "string"
14168
- ],
14169
- description: "Additional CSS classes"
14170
- }
14171
- }
14172
- },
14173
13976
  "battle-template": {
14174
13977
  type: "battle-template",
14175
13978
  category: "game",
@@ -14462,14 +14265,43 @@ var patterns_registry_default = {
14462
14265
  types: [
14463
14266
  "string"
14464
14267
  ],
14465
- description: "The code content to display",
14466
- required: true
14268
+ description: "The code content to display"
14467
14269
  },
14468
14270
  language: {
14469
14271
  types: [
14470
- "unknown"
14272
+ "string"
14471
14273
  ],
14472
14274
  description: "Programming language for syntax highlighting",
14275
+ enumValues: [
14276
+ "text",
14277
+ "json",
14278
+ "javascript",
14279
+ "js",
14280
+ "typescript",
14281
+ "ts",
14282
+ "jsx",
14283
+ "tsx",
14284
+ "css",
14285
+ "markdown",
14286
+ "md",
14287
+ "bash",
14288
+ "shell",
14289
+ "sh",
14290
+ "yaml",
14291
+ "yml",
14292
+ "rust",
14293
+ "python",
14294
+ "py",
14295
+ "sql",
14296
+ "diff",
14297
+ "toml",
14298
+ "go",
14299
+ "graphql",
14300
+ "html",
14301
+ "xml",
14302
+ "orb",
14303
+ "lolo"
14304
+ ],
14473
14305
  default: "text"
14474
14306
  },
14475
14307
  showCopyButton: {
@@ -14488,7 +14320,8 @@ var patterns_registry_default = {
14488
14320
  },
14489
14321
  maxHeight: {
14490
14322
  types: [
14491
- "string"
14323
+ "string",
14324
+ "number"
14492
14325
  ],
14493
14326
  description: "Maximum height before scrolling",
14494
14327
  default: "60vh"
@@ -14531,6 +14364,239 @@ var patterns_registry_default = {
14531
14364
  ],
14532
14365
  description: "GAP-80: line-level error/warning highlights for editable mode. Map of 1-based line number \u2192 severity. The overlay paints a colored background on each line: error = red, warning = yellow. Pass undefined (default) to disable. The consumer is responsible for computing the path \u2192 line map from the schema + validation results.",
14533
14366
  nonAuthorable: true
14367
+ },
14368
+ title: {
14369
+ types: [
14370
+ "string"
14371
+ ],
14372
+ description: "\u2500\u2500 Viewer props (absorbed from CodeViewer / DocCodeBlock) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"
14373
+ },
14374
+ mode: {
14375
+ types: [
14376
+ "string"
14377
+ ],
14378
+ description: "Diff or plain-code display mode",
14379
+ enumValues: [
14380
+ "code",
14381
+ "diff"
14382
+ ],
14383
+ default: "code"
14384
+ },
14385
+ diff: {
14386
+ types: [
14387
+ "array"
14388
+ ],
14389
+ description: "Pre-computed diff lines",
14390
+ items: {
14391
+ types: [
14392
+ "object"
14393
+ ],
14394
+ properties: {
14395
+ type: {
14396
+ types: [
14397
+ "string"
14398
+ ],
14399
+ enumValues: [
14400
+ "added",
14401
+ "removed",
14402
+ "unchanged",
14403
+ "context"
14404
+ ]
14405
+ },
14406
+ beforeLineNumber: {
14407
+ types: [
14408
+ "number"
14409
+ ]
14410
+ },
14411
+ afterLineNumber: {
14412
+ types: [
14413
+ "number"
14414
+ ]
14415
+ },
14416
+ content: {
14417
+ types: [
14418
+ "string"
14419
+ ]
14420
+ }
14421
+ },
14422
+ required: [
14423
+ "type",
14424
+ "content"
14425
+ ]
14426
+ }
14427
+ },
14428
+ oldValue: {
14429
+ types: [
14430
+ "string"
14431
+ ],
14432
+ description: "Old source text \u2014 generates diff when combined with newValue"
14433
+ },
14434
+ newValue: {
14435
+ types: [
14436
+ "string"
14437
+ ],
14438
+ description: "New source text \u2014 generates diff when combined with oldValue"
14439
+ },
14440
+ showLineNumbers: {
14441
+ types: [
14442
+ "boolean"
14443
+ ],
14444
+ description: "Show line numbers in code / diff mode",
14445
+ default: false
14446
+ },
14447
+ wordWrap: {
14448
+ types: [
14449
+ "boolean"
14450
+ ],
14451
+ description: "Enable word-wrap in code / diff mode",
14452
+ default: false
14453
+ },
14454
+ files: {
14455
+ types: [
14456
+ "array"
14457
+ ],
14458
+ description: "Multiple files shown as tabs",
14459
+ items: {
14460
+ types: [
14461
+ "object"
14462
+ ],
14463
+ properties: {
14464
+ label: {
14465
+ types: [
14466
+ "string"
14467
+ ]
14468
+ },
14469
+ code: {
14470
+ types: [
14471
+ "string"
14472
+ ]
14473
+ },
14474
+ language: {
14475
+ types: [
14476
+ "string"
14477
+ ],
14478
+ enumValues: [
14479
+ "text",
14480
+ "json",
14481
+ "javascript",
14482
+ "js",
14483
+ "typescript",
14484
+ "ts",
14485
+ "jsx",
14486
+ "tsx",
14487
+ "css",
14488
+ "markdown",
14489
+ "md",
14490
+ "bash",
14491
+ "shell",
14492
+ "sh",
14493
+ "yaml",
14494
+ "yml",
14495
+ "rust",
14496
+ "python",
14497
+ "py",
14498
+ "sql",
14499
+ "diff",
14500
+ "toml",
14501
+ "go",
14502
+ "graphql",
14503
+ "html",
14504
+ "xml",
14505
+ "orb",
14506
+ "lolo"
14507
+ ]
14508
+ }
14509
+ },
14510
+ required: [
14511
+ "label",
14512
+ "code"
14513
+ ]
14514
+ }
14515
+ },
14516
+ actions: {
14517
+ types: [
14518
+ "array"
14519
+ ],
14520
+ description: "Action badges in the toolbar",
14521
+ items: {
14522
+ types: [
14523
+ "object"
14524
+ ],
14525
+ properties: {
14526
+ label: {
14527
+ types: [
14528
+ "string"
14529
+ ]
14530
+ },
14531
+ event: {
14532
+ types: [
14533
+ "string"
14534
+ ]
14535
+ },
14536
+ navigatesTo: {
14537
+ types: [
14538
+ "string"
14539
+ ]
14540
+ },
14541
+ variant: {
14542
+ types: [
14543
+ "string"
14544
+ ],
14545
+ enumValues: [
14546
+ "primary",
14547
+ "secondary",
14548
+ "ghost"
14549
+ ]
14550
+ }
14551
+ },
14552
+ required: [
14553
+ "label"
14554
+ ]
14555
+ }
14556
+ },
14557
+ isLoading: {
14558
+ types: [
14559
+ "boolean"
14560
+ ],
14561
+ description: "Loading state",
14562
+ default: false
14563
+ },
14564
+ error: {
14565
+ types: [
14566
+ "object"
14567
+ ],
14568
+ description: "Error state",
14569
+ properties: {
14570
+ message: {
14571
+ types: [
14572
+ "string"
14573
+ ]
14574
+ },
14575
+ name: {
14576
+ types: [
14577
+ "string"
14578
+ ]
14579
+ },
14580
+ code: {
14581
+ types: [
14582
+ "string"
14583
+ ]
14584
+ },
14585
+ stack: {
14586
+ types: [
14587
+ "string"
14588
+ ]
14589
+ }
14590
+ },
14591
+ propertyRequired: [
14592
+ "message"
14593
+ ]
14594
+ },
14595
+ showCopy: {
14596
+ types: [
14597
+ "boolean"
14598
+ ],
14599
+ description: "Show copy button (viewer alias for showCopyButton)"
14534
14600
  }
14535
14601
  }
14536
14602
  },
@@ -14558,11 +14624,12 @@ var patterns_registry_default = {
14558
14624
  types: [
14559
14625
  "string"
14560
14626
  ],
14561
- description: "Text direction",
14627
+ description: "Text direction (defaults to ltr; `ltr` is first so the generated config seeds it)",
14562
14628
  enumValues: [
14563
- "rtl",
14564
- "ltr"
14565
- ]
14629
+ "ltr",
14630
+ "rtl"
14631
+ ],
14632
+ default: "ltr"
14566
14633
  },
14567
14634
  className: {
14568
14635
  types: [
@@ -14701,7 +14768,28 @@ var patterns_registry_default = {
14701
14768
  types: [
14702
14769
  "object"
14703
14770
  ],
14704
- freeform: true
14771
+ properties: {
14772
+ type: {
14773
+ types: [
14774
+ "string"
14775
+ ],
14776
+ enumValues: [
14777
+ "markdown",
14778
+ "code",
14779
+ "orbital",
14780
+ "quiz"
14781
+ ]
14782
+ },
14783
+ content: {
14784
+ types: [
14785
+ "string"
14786
+ ]
14787
+ }
14788
+ },
14789
+ required: [
14790
+ "type",
14791
+ "content"
14792
+ ]
14705
14793
  }
14706
14794
  },
14707
14795
  direction: {
@@ -19939,7 +20027,7 @@ var patterns_registry_default = {
19939
20027
  type: "case-study-organism",
19940
20028
  category: "display",
19941
20029
  tier: "organisms",
19942
- family: "core",
20030
+ family: "marketing",
19943
20031
  description: "CaseStudyOrganism component",
19944
20032
  suggestedFor: [
19945
20033
  "case",
@@ -20081,7 +20169,7 @@ var patterns_registry_default = {
20081
20169
  type: "feature-grid-organism",
20082
20170
  category: "display",
20083
20171
  tier: "organisms",
20084
- family: "core",
20172
+ family: "marketing",
20085
20173
  description: "FeatureGridOrganism component",
20086
20174
  suggestedFor: [
20087
20175
  "feature",
@@ -20236,7 +20324,7 @@ var patterns_registry_default = {
20236
20324
  type: "hero-organism",
20237
20325
  category: "header",
20238
20326
  tier: "organisms",
20239
- family: "core",
20327
+ family: "marketing",
20240
20328
  description: "HeroOrganism component",
20241
20329
  suggestedFor: [
20242
20330
  "hero",
@@ -20512,7 +20600,7 @@ var patterns_registry_default = {
20512
20600
  type: "showcase-organism",
20513
20601
  category: "display",
20514
20602
  tier: "organisms",
20515
- family: "core",
20603
+ family: "marketing",
20516
20604
  description: "ShowcaseOrganism component",
20517
20605
  suggestedFor: [
20518
20606
  "showcase",
@@ -20808,7 +20896,7 @@ var patterns_registry_default = {
20808
20896
  type: "step-flow-organism",
20809
20897
  category: "display",
20810
20898
  tier: "organisms",
20811
- family: "core",
20899
+ family: "marketing",
20812
20900
  description: "StepFlowOrganism component",
20813
20901
  suggestedFor: [
20814
20902
  "step",
@@ -21564,8 +21652,16 @@ var patterns_registry_default = {
21564
21652
  types: [
21565
21653
  "string"
21566
21654
  ],
21567
- description: "Stroke color",
21568
- default: "var(--color-primary)"
21655
+ description: "Semantic palette token or a raw CSS color value for the stroke.",
21656
+ enumValues: [
21657
+ "primary",
21658
+ "secondary",
21659
+ "success",
21660
+ "warning",
21661
+ "error",
21662
+ "muted"
21663
+ ],
21664
+ default: "primary"
21569
21665
  },
21570
21666
  strokeWidth: {
21571
21667
  types: [
@@ -23919,9 +24015,10 @@ var patterns_registry_default = {
23919
24015
  },
23920
24016
  portrait: {
23921
24017
  types: [
23922
- "string"
24018
+ "asset"
23923
24019
  ],
23924
- description: "URL for the speaker portrait image"
24020
+ description: "URL for the speaker portrait image",
24021
+ default: "https://almadar-kflow-assets.web.app/shared/characters/archetypes/00_base_model.png"
23925
24022
  },
23926
24023
  position: {
23927
24024
  types: [
@@ -24292,7 +24389,15 @@ var patterns_registry_default = {
24292
24389
  types: [
24293
24390
  "string"
24294
24391
  ],
24295
- description: "Accent color class (e.g. 'text-yellow-400')"
24392
+ description: "Semantic palette token or an arbitrary Tailwind color class.",
24393
+ enumValues: [
24394
+ "primary",
24395
+ "secondary",
24396
+ "success",
24397
+ "warning",
24398
+ "error",
24399
+ "muted"
24400
+ ]
24296
24401
  },
24297
24402
  size: {
24298
24403
  types: [
@@ -24394,10 +24499,11 @@ var patterns_registry_default = {
24394
24499
  propsSchema: {
24395
24500
  spritesheet: {
24396
24501
  types: [
24397
- "string"
24502
+ "asset"
24398
24503
  ],
24399
24504
  description: "Spritesheet image URL",
24400
- required: true
24505
+ required: true,
24506
+ default: "https://almadar-kflow-assets.web.app/shared/isometric-blocks/Spritesheet/allTiles_sheet.png"
24401
24507
  },
24402
24508
  frameWidth: {
24403
24509
  types: [
@@ -24601,9 +24707,9 @@ var patterns_registry_default = {
24601
24707
  propsSchema: {
24602
24708
  icon: {
24603
24709
  types: [
24604
- "node"
24710
+ "string"
24605
24711
  ],
24606
- description: "Icon to display for the effect",
24712
+ description: "Lucide kebab-case icon name",
24607
24713
  required: true
24608
24714
  },
24609
24715
  label: {
@@ -24921,14 +25027,14 @@ var patterns_registry_default = {
24921
25027
  "number"
24922
25028
  ],
24923
25029
  description: "x prop",
24924
- required: true
25030
+ default: 5
24925
25031
  },
24926
25032
  y: {
24927
25033
  types: [
24928
25034
  "number"
24929
25035
  ],
24930
25036
  description: "y prop",
24931
- required: true
25037
+ default: 50
24932
25038
  },
24933
25039
  variant: {
24934
25040
  types: [
@@ -24975,6 +25081,27 @@ var patterns_registry_default = {
24975
25081
  "string"
24976
25082
  ],
24977
25083
  description: "className prop"
25084
+ },
25085
+ asRoot: {
25086
+ types: [
25087
+ "boolean"
25088
+ ],
25089
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25090
+ default: true
25091
+ },
25092
+ width: {
25093
+ types: [
25094
+ "number"
25095
+ ],
25096
+ description: "width prop",
25097
+ default: 100
25098
+ },
25099
+ height: {
25100
+ types: [
25101
+ "number"
25102
+ ],
25103
+ description: "height prop",
25104
+ default: 100
24978
25105
  }
24979
25106
  }
24980
25107
  },
@@ -24996,28 +25123,28 @@ var patterns_registry_default = {
24996
25123
  "number"
24997
25124
  ],
24998
25125
  description: "x1 prop",
24999
- required: true
25126
+ default: 10
25000
25127
  },
25001
25128
  y1: {
25002
25129
  types: [
25003
25130
  "number"
25004
25131
  ],
25005
25132
  description: "y1 prop",
25006
- required: true
25133
+ default: 50
25007
25134
  },
25008
25135
  x2: {
25009
25136
  types: [
25010
25137
  "number"
25011
25138
  ],
25012
25139
  description: "x2 prop",
25013
- required: true
25140
+ default: 90
25014
25141
  },
25015
25142
  y2: {
25016
25143
  types: [
25017
25144
  "number"
25018
25145
  ],
25019
25146
  description: "y2 prop",
25020
- required: true
25147
+ default: 50
25021
25148
  },
25022
25149
  variant: {
25023
25150
  types: [
@@ -25057,6 +25184,27 @@ var patterns_registry_default = {
25057
25184
  "string"
25058
25185
  ],
25059
25186
  description: "className prop"
25187
+ },
25188
+ asRoot: {
25189
+ types: [
25190
+ "boolean"
25191
+ ],
25192
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25193
+ default: true
25194
+ },
25195
+ width: {
25196
+ types: [
25197
+ "number"
25198
+ ],
25199
+ description: "width prop",
25200
+ default: 100
25201
+ },
25202
+ height: {
25203
+ types: [
25204
+ "number"
25205
+ ],
25206
+ description: "height prop",
25207
+ default: 100
25060
25208
  }
25061
25209
  }
25062
25210
  },
@@ -25078,7 +25226,6 @@ var patterns_registry_default = {
25078
25226
  "array"
25079
25227
  ],
25080
25228
  description: "points prop",
25081
- required: true,
25082
25229
  items: {
25083
25230
  types: [
25084
25231
  "array"
@@ -25123,6 +25270,27 @@ var patterns_registry_default = {
25123
25270
  "string"
25124
25271
  ],
25125
25272
  description: "className prop"
25273
+ },
25274
+ asRoot: {
25275
+ types: [
25276
+ "boolean"
25277
+ ],
25278
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25279
+ default: true
25280
+ },
25281
+ width: {
25282
+ types: [
25283
+ "number"
25284
+ ],
25285
+ description: "width prop",
25286
+ default: 100
25287
+ },
25288
+ height: {
25289
+ types: [
25290
+ "number"
25291
+ ],
25292
+ description: "height prop",
25293
+ default: 100
25126
25294
  }
25127
25295
  }
25128
25296
  },
@@ -25144,14 +25312,14 @@ var patterns_registry_default = {
25144
25312
  "number"
25145
25313
  ],
25146
25314
  description: "x prop",
25147
- required: true
25315
+ default: 10
25148
25316
  },
25149
25317
  y: {
25150
25318
  types: [
25151
25319
  "number"
25152
25320
  ],
25153
25321
  description: "y prop",
25154
- required: true
25322
+ default: 10
25155
25323
  },
25156
25324
  cols: {
25157
25325
  types: [
@@ -25212,6 +25380,27 @@ var patterns_registry_default = {
25212
25380
  ]
25213
25381
  },
25214
25382
  default: []
25383
+ },
25384
+ asRoot: {
25385
+ types: [
25386
+ "boolean"
25387
+ ],
25388
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25389
+ default: true
25390
+ },
25391
+ width: {
25392
+ types: [
25393
+ "number"
25394
+ ],
25395
+ description: "width prop",
25396
+ default: 100
25397
+ },
25398
+ height: {
25399
+ types: [
25400
+ "number"
25401
+ ],
25402
+ description: "height prop",
25403
+ default: 100
25215
25404
  }
25216
25405
  }
25217
25406
  },
@@ -25233,14 +25422,14 @@ var patterns_registry_default = {
25233
25422
  "number"
25234
25423
  ],
25235
25424
  description: "cx prop",
25236
- required: true
25425
+ default: 50
25237
25426
  },
25238
25427
  cy: {
25239
25428
  types: [
25240
25429
  "number"
25241
25430
  ],
25242
25431
  description: "cy prop",
25243
- required: true
25432
+ default: 50
25244
25433
  },
25245
25434
  rx: {
25246
25435
  types: [
@@ -25289,6 +25478,27 @@ var patterns_registry_default = {
25289
25478
  "string"
25290
25479
  ],
25291
25480
  description: "className prop"
25481
+ },
25482
+ asRoot: {
25483
+ types: [
25484
+ "boolean"
25485
+ ],
25486
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25487
+ default: true
25488
+ },
25489
+ width: {
25490
+ types: [
25491
+ "number"
25492
+ ],
25493
+ description: "width prop",
25494
+ default: 100
25495
+ },
25496
+ height: {
25497
+ types: [
25498
+ "number"
25499
+ ],
25500
+ description: "height prop",
25501
+ default: 100
25292
25502
  }
25293
25503
  }
25294
25504
  },
@@ -25310,14 +25520,14 @@ var patterns_registry_default = {
25310
25520
  "number"
25311
25521
  ],
25312
25522
  description: "cx prop",
25313
- required: true
25523
+ default: 60
25314
25524
  },
25315
25525
  cy: {
25316
25526
  types: [
25317
25527
  "number"
25318
25528
  ],
25319
25529
  description: "cy prop",
25320
- required: true
25530
+ default: 60
25321
25531
  },
25322
25532
  nodes: {
25323
25533
  types: [
@@ -25359,6 +25569,27 @@ var patterns_registry_default = {
25359
25569
  "string"
25360
25570
  ],
25361
25571
  description: "className prop"
25572
+ },
25573
+ asRoot: {
25574
+ types: [
25575
+ "boolean"
25576
+ ],
25577
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25578
+ default: true
25579
+ },
25580
+ width: {
25581
+ types: [
25582
+ "number"
25583
+ ],
25584
+ description: "width prop",
25585
+ default: 120
25586
+ },
25587
+ height: {
25588
+ types: [
25589
+ "number"
25590
+ ],
25591
+ description: "height prop",
25592
+ default: 120
25362
25593
  }
25363
25594
  }
25364
25595
  },
@@ -25380,14 +25611,14 @@ var patterns_registry_default = {
25380
25611
  "number"
25381
25612
  ],
25382
25613
  description: "x prop",
25383
- required: true
25614
+ default: 5
25384
25615
  },
25385
25616
  y: {
25386
25617
  types: [
25387
25618
  "number"
25388
25619
  ],
25389
25620
  description: "y prop",
25390
- required: true
25621
+ default: 10
25391
25622
  },
25392
25623
  size: {
25393
25624
  types: [
@@ -25427,6 +25658,27 @@ var patterns_registry_default = {
25427
25658
  "string"
25428
25659
  ],
25429
25660
  description: "className prop"
25661
+ },
25662
+ asRoot: {
25663
+ types: [
25664
+ "boolean"
25665
+ ],
25666
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25667
+ default: true
25668
+ },
25669
+ width: {
25670
+ types: [
25671
+ "number"
25672
+ ],
25673
+ description: "width prop",
25674
+ default: 130
25675
+ },
25676
+ height: {
25677
+ types: [
25678
+ "number"
25679
+ ],
25680
+ description: "height prop",
25681
+ default: 50
25430
25682
  }
25431
25683
  }
25432
25684
  },
@@ -25448,14 +25700,14 @@ var patterns_registry_default = {
25448
25700
  "number"
25449
25701
  ],
25450
25702
  description: "x prop",
25451
- required: true
25703
+ default: 50
25452
25704
  },
25453
25705
  y: {
25454
25706
  types: [
25455
25707
  "number"
25456
25708
  ],
25457
25709
  description: "y prop",
25458
- required: true
25710
+ default: 50
25459
25711
  },
25460
25712
  r: {
25461
25713
  types: [
@@ -25501,6 +25753,27 @@ var patterns_registry_default = {
25501
25753
  "string"
25502
25754
  ],
25503
25755
  description: "label prop"
25756
+ },
25757
+ asRoot: {
25758
+ types: [
25759
+ "boolean"
25760
+ ],
25761
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25762
+ default: true
25763
+ },
25764
+ width: {
25765
+ types: [
25766
+ "number"
25767
+ ],
25768
+ description: "width prop",
25769
+ default: 100
25770
+ },
25771
+ height: {
25772
+ types: [
25773
+ "number"
25774
+ ],
25775
+ description: "height prop",
25776
+ default: 100
25504
25777
  }
25505
25778
  }
25506
25779
  },
@@ -25522,14 +25795,14 @@ var patterns_registry_default = {
25522
25795
  "number"
25523
25796
  ],
25524
25797
  description: "cx prop",
25525
- required: true
25798
+ default: 70
25526
25799
  },
25527
25800
  cy: {
25528
25801
  types: [
25529
25802
  "number"
25530
25803
  ],
25531
25804
  description: "cy prop",
25532
- required: true
25805
+ default: 70
25533
25806
  },
25534
25807
  rings: {
25535
25808
  types: [
@@ -25571,6 +25844,27 @@ var patterns_registry_default = {
25571
25844
  "string"
25572
25845
  ],
25573
25846
  description: "className prop"
25847
+ },
25848
+ asRoot: {
25849
+ types: [
25850
+ "boolean"
25851
+ ],
25852
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25853
+ default: true
25854
+ },
25855
+ width: {
25856
+ types: [
25857
+ "number"
25858
+ ],
25859
+ description: "width prop",
25860
+ default: 140
25861
+ },
25862
+ height: {
25863
+ types: [
25864
+ "number"
25865
+ ],
25866
+ description: "height prop",
25867
+ default: 140
25574
25868
  }
25575
25869
  }
25576
25870
  },
@@ -25592,14 +25886,14 @@ var patterns_registry_default = {
25592
25886
  "number"
25593
25887
  ],
25594
25888
  description: "cx prop",
25595
- required: true
25889
+ default: 50
25596
25890
  },
25597
25891
  cy: {
25598
25892
  types: [
25599
25893
  "number"
25600
25894
  ],
25601
25895
  description: "cy prop",
25602
- required: true
25896
+ default: 50
25603
25897
  },
25604
25898
  r: {
25605
25899
  types: [
@@ -25652,6 +25946,27 @@ var patterns_registry_default = {
25652
25946
  "string"
25653
25947
  ],
25654
25948
  description: "label prop"
25949
+ },
25950
+ asRoot: {
25951
+ types: [
25952
+ "boolean"
25953
+ ],
25954
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
25955
+ default: true
25956
+ },
25957
+ width: {
25958
+ types: [
25959
+ "number"
25960
+ ],
25961
+ description: "width prop",
25962
+ default: 100
25963
+ },
25964
+ height: {
25965
+ types: [
25966
+ "number"
25967
+ ],
25968
+ description: "height prop",
25969
+ default: 100
25655
25970
  }
25656
25971
  }
25657
25972
  },
@@ -25673,14 +25988,14 @@ var patterns_registry_default = {
25673
25988
  "number"
25674
25989
  ],
25675
25990
  description: "x prop",
25676
- required: true
25991
+ default: 50
25677
25992
  },
25678
25993
  y: {
25679
25994
  types: [
25680
25995
  "number"
25681
25996
  ],
25682
25997
  description: "y prop",
25683
- required: true
25998
+ default: 50
25684
25999
  },
25685
26000
  size: {
25686
26001
  types: [
@@ -25720,6 +26035,27 @@ var patterns_registry_default = {
25720
26035
  "string"
25721
26036
  ],
25722
26037
  description: "className prop"
26038
+ },
26039
+ asRoot: {
26040
+ types: [
26041
+ "boolean"
26042
+ ],
26043
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
26044
+ default: true
26045
+ },
26046
+ width: {
26047
+ types: [
26048
+ "number"
26049
+ ],
26050
+ description: "width prop",
26051
+ default: 100
26052
+ },
26053
+ height: {
26054
+ types: [
26055
+ "number"
26056
+ ],
26057
+ description: "height prop",
26058
+ default: 100
25723
26059
  }
25724
26060
  }
25725
26061
  },
@@ -25741,14 +26077,14 @@ var patterns_registry_default = {
25741
26077
  "number"
25742
26078
  ],
25743
26079
  description: "x prop",
25744
- required: true
26080
+ default: 10
25745
26081
  },
25746
26082
  y: {
25747
26083
  types: [
25748
26084
  "number"
25749
26085
  ],
25750
26086
  description: "y prop",
25751
- required: true
26087
+ default: 40
25752
26088
  },
25753
26089
  layers: {
25754
26090
  types: [
@@ -25800,6 +26136,27 @@ var patterns_registry_default = {
25800
26136
  "string"
25801
26137
  ]
25802
26138
  }
26139
+ },
26140
+ asRoot: {
26141
+ types: [
26142
+ "boolean"
26143
+ ],
26144
+ description: "When true (default), wraps in a standalone <svg> so the shape is visible without a parent SVG context.",
26145
+ default: true
26146
+ },
26147
+ svgWidth: {
26148
+ types: [
26149
+ "number"
26150
+ ],
26151
+ description: "svgWidth prop",
26152
+ default: 90
26153
+ },
26154
+ svgHeight: {
26155
+ types: [
26156
+ "number"
26157
+ ],
26158
+ description: "svgHeight prop",
26159
+ default: 80
25803
26160
  }
25804
26161
  }
25805
26162
  },
@@ -25851,54 +26208,6 @@ var patterns_registry_default = {
25851
26208
  }
25852
26209
  }
25853
26210
  },
25854
- "doc-code-block": {
25855
- type: "doc-code-block",
25856
- category: "component",
25857
- tier: "molecules",
25858
- family: "core",
25859
- description: "DocCodeBlock component",
25860
- suggestedFor: [
25861
- "doc",
25862
- "code",
25863
- "block",
25864
- "doc code block"
25865
- ],
25866
- typicalSize: "medium",
25867
- propsSchema: {
25868
- code: {
25869
- types: [
25870
- "string"
25871
- ],
25872
- description: "Code content to display",
25873
- required: true
25874
- },
25875
- language: {
25876
- types: [
25877
- "unknown"
25878
- ],
25879
- description: "Programming language label"
25880
- },
25881
- title: {
25882
- types: [
25883
- "string"
25884
- ],
25885
- description: "Optional title/filename shown in the header bar"
25886
- },
25887
- showLineNumbers: {
25888
- types: [
25889
- "boolean"
25890
- ],
25891
- description: "Show line numbers in the gutter",
25892
- default: false
25893
- },
25894
- className: {
25895
- types: [
25896
- "string"
25897
- ],
25898
- description: "Additional class names"
25899
- }
25900
- }
25901
- },
25902
26211
  "doc-pagination": {
25903
26212
  type: "doc-pagination",
25904
26213
  category: "navigation",
@@ -26156,7 +26465,15 @@ var patterns_registry_default = {
26156
26465
  types: [
26157
26466
  "string"
26158
26467
  ],
26159
- description: "Override the center color (CSS value). Defaults to var(--color-primary)."
26468
+ description: "Semantic palette token or a raw CSS color value. Defaults to 'primary'.",
26469
+ enumValues: [
26470
+ "primary",
26471
+ "secondary",
26472
+ "success",
26473
+ "warning",
26474
+ "error",
26475
+ "muted"
26476
+ ]
26160
26477
  },
26161
26478
  className: {
26162
26479
  types: [
@@ -26170,7 +26487,7 @@ var patterns_registry_default = {
26170
26487
  type: "pull-quote",
26171
26488
  category: "component",
26172
26489
  tier: "molecules",
26173
- family: "core",
26490
+ family: "marketing",
26174
26491
  description: "PullQuote component",
26175
26492
  suggestedFor: [
26176
26493
  "pull",
@@ -27869,7 +28186,7 @@ var patterns_registry_default = {
27869
28186
  },
27870
28187
  icon: {
27871
28188
  types: [
27872
- "node"
28189
+ "string"
27873
28190
  ]
27874
28191
  },
27875
28192
  format: {
@@ -38804,48 +39121,6 @@ var patterns_registry_default = {
38804
39121
  }
38805
39122
  }
38806
39123
  },
38807
- "code-view": {
38808
- type: "code-view",
38809
- category: "game",
38810
- tier: "organisms",
38811
- family: "game",
38812
- description: "CodeView Component Shows the JSON code representation of a state machine. Toggle between visual and code view in State Architect tier.",
38813
- suggestedFor: [
38814
- "code",
38815
- "view",
38816
- "code view"
38817
- ],
38818
- typicalSize: "large",
38819
- propsSchema: {
38820
- data: {
38821
- types: [
38822
- "object"
38823
- ],
38824
- description: "JSON data to display",
38825
- required: true,
38826
- freeform: true
38827
- },
38828
- label: {
38829
- types: [
38830
- "string"
38831
- ],
38832
- description: "Label"
38833
- },
38834
- defaultExpanded: {
38835
- types: [
38836
- "boolean"
38837
- ],
38838
- description: "Whether the code is expanded by default",
38839
- default: false
38840
- },
38841
- className: {
38842
- types: [
38843
- "string"
38844
- ],
38845
- description: "Additional CSS classes"
38846
- }
38847
- }
38848
- },
38849
39124
  "state-architect-board": {
38850
39125
  type: "state-architect-board",
38851
39126
  category: "game",
@@ -40285,7 +40560,7 @@ var patterns_registry_default = {
40285
40560
  type: "marketing-footer",
40286
40561
  category: "component",
40287
40562
  tier: "molecules",
40288
- family: "core",
40563
+ family: "marketing",
40289
40564
  description: "MarketingFooter component",
40290
40565
  suggestedFor: [
40291
40566
  "marketing",
@@ -40972,737 +41247,46 @@ var patterns_registry_default = {
40972
41247
  }
40973
41248
  }
40974
41249
  },
40975
- "asset-picker": {
40976
- type: "asset-picker",
40977
- category: "component",
40978
- tier: "molecules",
40979
- family: "core",
40980
- description: "AssetPicker component",
40981
- suggestedFor: [
40982
- "asset",
40983
- "picker",
40984
- "asset picker"
40985
- ],
40986
- typicalSize: "medium",
40987
- propsSchema: {
40988
- assets: {
40989
- types: [
40990
- "object"
40991
- ],
40992
- description: "Browsable asset catalog supplied by the host.",
40993
- required: true,
40994
- freeform: true
40995
- },
40996
- value: {
40997
- types: [
40998
- "string"
40999
- ],
41000
- description: "Currently selected asset url (controlled highlight)."
41001
- },
41002
- onChange: {
41003
- types: [
41004
- "function"
41005
- ],
41006
- description: "Fired with the chosen asset's url.",
41007
- required: true,
41008
- kind: "callback",
41009
- callbackArgs: [
41010
- {
41011
- name: "url",
41012
- type: "string"
41013
- }
41014
- ]
41015
- },
41016
- className: {
41017
- types: [
41018
- "string"
41019
- ],
41020
- description: "Additional CSS classes applied to the root."
41021
- }
41022
- }
41023
- },
41024
- "grid-picker": {
41025
- type: "grid-picker",
41026
- category: "display",
41027
- tier: "molecules",
41028
- family: "core",
41029
- description: "GridPicker component",
41030
- suggestedFor: [
41031
- "grid",
41032
- "picker",
41033
- "grid picker"
41034
- ],
41035
- typicalSize: "medium",
41036
- propsSchema: {
41037
- items: {
41038
- types: [
41039
- "array"
41040
- ],
41041
- description: "Items to render as grid cells.",
41042
- required: true,
41043
- items: {
41044
- types: [
41045
- "object"
41046
- ],
41047
- properties: {
41048
- id: {
41049
- types: [
41050
- "string"
41051
- ]
41052
- },
41053
- label: {
41054
- types: [
41055
- "string"
41056
- ]
41057
- },
41058
- category: {
41059
- types: [
41060
- "string"
41061
- ]
41062
- }
41063
- },
41064
- required: [
41065
- "id",
41066
- "label",
41067
- "category"
41068
- ]
41069
- }
41070
- },
41071
- value: {
41072
- types: [
41073
- "string"
41074
- ],
41075
- description: "Currently selected item id (controlled highlight)."
41076
- },
41077
- onChange: {
41078
- types: [
41079
- "function"
41080
- ],
41081
- description: "Fired with the clicked/selected item's id.",
41082
- required: true,
41083
- kind: "callback",
41084
- callbackArgs: [
41085
- {
41086
- name: "value",
41087
- type: "string"
41088
- }
41089
- ]
41090
- },
41091
- categories: {
41092
- types: [
41093
- "array"
41094
- ],
41095
- description: 'Category keys for the filter chip row. When omitted, the categories are derived from the items. An "All" chip is always prepended.',
41096
- items: {
41097
- types: [
41098
- "string"
41099
- ]
41100
- }
41101
- },
41102
- searchPlaceholder: {
41103
- types: [
41104
- "string"
41105
- ],
41106
- description: "Placeholder for the search input."
41107
- },
41108
- renderThumbnail: {
41109
- types: [
41110
- "function"
41111
- ],
41112
- description: "Renders the visual content of a cell (e.g. an emoji glyph or an image).",
41113
- required: true,
41114
- kind: "callback",
41115
- callbackArgs: [
41116
- {
41117
- name: "item",
41118
- type: "object",
41119
- schema: {
41120
- types: [
41121
- "object"
41122
- ],
41123
- properties: {
41124
- id: {
41125
- types: [
41126
- "string"
41127
- ]
41128
- },
41129
- label: {
41130
- types: [
41131
- "string"
41132
- ]
41133
- },
41134
- category: {
41135
- types: [
41136
- "string"
41137
- ]
41138
- }
41139
- },
41140
- required: [
41141
- "id",
41142
- "label",
41143
- "category"
41144
- ]
41145
- }
41146
- }
41147
- ],
41148
- renderCallback: true
41149
- },
41150
- cellSize: {
41151
- types: [
41152
- "number"
41153
- ],
41154
- description: "Cell edge length in px.",
41155
- numericEnumValues: [
41156
- 16,
41157
- 32,
41158
- 48
41159
- ],
41160
- default: 32
41161
- },
41162
- className: {
41163
- types: [
41164
- "string"
41165
- ],
41166
- description: "Additional CSS classes applied to the root."
41167
- }
41168
- }
41169
- },
41170
- "icon-picker": {
41171
- type: "icon-picker",
41172
- category: "component",
41173
- tier: "molecules",
41174
- family: "core",
41175
- description: "IconPicker component",
41176
- suggestedFor: [
41177
- "icon",
41178
- "picker",
41179
- "icon picker"
41180
- ],
41181
- typicalSize: "medium",
41182
- propsSchema: {
41183
- value: {
41184
- types: [
41185
- "string"
41186
- ],
41187
- description: "Currently selected icon name (kebab-case)."
41188
- },
41189
- onChange: {
41190
- types: [
41191
- "function"
41192
- ],
41193
- description: "Fired with the chosen icon's kebab-case name.",
41194
- required: true,
41195
- kind: "callback",
41196
- callbackArgs: [
41197
- {
41198
- name: "name",
41199
- type: "string"
41200
- }
41201
- ]
41202
- },
41203
- className: {
41204
- types: [
41205
- "string"
41206
- ],
41207
- description: "Additional CSS classes applied to the root."
41208
- }
41209
- }
41210
- },
41211
- "property-inspector": {
41212
- type: "property-inspector",
41213
- category: "debug",
41214
- tier: "molecules",
41215
- family: "core",
41216
- description: "PropertyInspector \u2014 Storybook-style controls panel for a trait's `config`. Derives one control per declared config field directly from the schema (`@almadar/core` `DeclaredTraitConfig`): `boolean \u2192 Switch`, `string` with `values \u2192 Select`, `number \u2192 numeric Input`, `string \u2192 Input`. Non-scalar fields (array/object/node/SExpr) are shown read-only. Fields group + collapse by `@tier`. The component is controlled \u2014 it emits `onChange(field, value)`; text/number commit on blur (so the host can re-render without hammering it).",
41250
+ "state-json-view": {
41251
+ type: "state-json-view",
41252
+ category: "game",
41253
+ tier: "organisms",
41254
+ family: "game",
41255
+ description: "StateJsonView component",
41217
41256
  suggestedFor: [
41218
- "property",
41219
- "inspector",
41220
- "property inspector"
41257
+ "state",
41258
+ "json",
41259
+ "view",
41260
+ "state json view"
41221
41261
  ],
41222
- typicalSize: "medium",
41262
+ typicalSize: "large",
41223
41263
  propsSchema: {
41224
- className: {
41225
- types: [
41226
- "string"
41227
- ],
41228
- description: "Additional CSS classes"
41229
- },
41230
- isLoading: {
41231
- types: [
41232
- "boolean"
41233
- ],
41234
- description: "Loading state indicator"
41235
- },
41236
- error: {
41237
- types: [
41238
- "object"
41239
- ],
41240
- description: "Error state (UiError)",
41241
- properties: {
41242
- message: {
41243
- types: [
41244
- "string"
41245
- ]
41246
- },
41247
- name: {
41248
- types: [
41249
- "string"
41250
- ]
41251
- },
41252
- code: {
41253
- types: [
41254
- "string"
41255
- ]
41256
- },
41257
- stack: {
41258
- types: [
41259
- "string"
41260
- ]
41261
- }
41262
- },
41263
- propertyRequired: [
41264
- "message"
41265
- ]
41266
- },
41267
- sortBy: {
41268
- types: [
41269
- "string"
41270
- ],
41271
- description: "Current sort field"
41272
- },
41273
- sortDirection: {
41274
- types: [
41275
- "string"
41276
- ],
41277
- description: "Current sort direction",
41278
- enumValues: [
41279
- "asc",
41280
- "desc"
41281
- ]
41282
- },
41283
- searchValue: {
41284
- types: [
41285
- "string"
41286
- ],
41287
- description: "Current search query value"
41288
- },
41289
- page: {
41290
- types: [
41291
- "number"
41292
- ],
41293
- description: "Current page number"
41294
- },
41295
- pageSize: {
41296
- types: [
41297
- "number"
41298
- ],
41299
- description: "Number of items per page"
41300
- },
41301
- totalCount: {
41302
- types: [
41303
- "number"
41304
- ],
41305
- description: "Total number of items"
41306
- },
41307
- activeFilters: {
41308
- types: [
41309
- "object"
41310
- ],
41311
- description: "Active filters"
41312
- },
41313
- selectedIds: {
41314
- types: [
41315
- "array"
41316
- ],
41317
- description: "Currently selected item IDs",
41318
- items: {
41319
- types: [
41320
- "string",
41321
- "number"
41322
- ]
41323
- }
41324
- },
41325
- config: {
41326
- types: [
41327
- "object"
41328
- ],
41329
- description: "The trait's declared config schema (field name \u2192 declaration).",
41330
- required: true,
41331
- freeform: true
41332
- },
41333
- values: {
41264
+ data: {
41334
41265
  types: [
41335
41266
  "object"
41336
41267
  ],
41337
- description: "Current override values keyed by field name (falls back to each field's `default`).",
41338
- freeform: true
41339
- },
41340
- onChange: {
41341
- types: [
41342
- "function"
41343
- ],
41344
- description: "Fired when a control commits a new value.",
41268
+ description: "JSON data to display",
41345
41269
  required: true,
41346
- kind: "callback",
41347
- callbackArgs: [
41348
- {
41349
- name: "field",
41350
- type: "string"
41351
- },
41352
- {
41353
- name: "value",
41354
- type: "object"
41355
- }
41356
- ]
41357
- },
41358
- onReset: {
41359
- types: [
41360
- "function"
41361
- ],
41362
- description: "Optional reset-to-defaults handler.",
41363
- kind: "callback",
41364
- callbackArgs: []
41365
- },
41366
- title: {
41367
- types: [
41368
- "string"
41369
- ],
41370
- description: "Panel heading (e.g. the trait name)."
41371
- },
41372
- assets: {
41373
- types: [
41374
- "object"
41375
- ],
41376
- description: "Browsable asset catalog supplied to `control: 'asset'` fields.",
41377
41270
  freeform: true
41378
- }
41379
- }
41380
- },
41381
- heading: {
41382
- type: "heading",
41383
- category: "component",
41384
- tier: "atoms",
41385
- family: "core",
41386
- description: "Alias for typography \u2014 Typography Atom Component Text elements following the KFlow design system with theme-aware styling.",
41387
- suggestedFor: [
41388
- "typography"
41389
- ],
41390
- typicalSize: "small",
41391
- propsSchema: {
41392
- variant: {
41393
- types: [
41394
- "string"
41395
- ],
41396
- description: "Typography variant",
41397
- enumValues: [
41398
- "h1",
41399
- "h2",
41400
- "h3",
41401
- "h4",
41402
- "h5",
41403
- "h6",
41404
- "heading",
41405
- "subheading",
41406
- "body1",
41407
- "body2",
41408
- "body",
41409
- "caption",
41410
- "overline",
41411
- "small",
41412
- "large",
41413
- "label"
41414
- ],
41415
- default: "body"
41416
- },
41417
- level: {
41418
- types: [
41419
- "number"
41420
- ],
41421
- description: "Heading level (1-6) - alternative to variant for headings",
41422
- numericEnumValues: [
41423
- 1,
41424
- 2,
41425
- 3,
41426
- 4,
41427
- 5,
41428
- 6
41429
- ],
41430
- default: 2
41431
- },
41432
- color: {
41433
- types: [
41434
- "string"
41435
- ],
41436
- description: "Text color",
41437
- enumValues: [
41438
- "primary",
41439
- "secondary",
41440
- "muted",
41441
- "error",
41442
- "success",
41443
- "warning",
41444
- "inherit"
41445
- ],
41446
- default: "primary"
41447
- },
41448
- align: {
41449
- types: [
41450
- "string"
41451
- ],
41452
- description: "Text alignment",
41453
- enumValues: [
41454
- "left",
41455
- "center",
41456
- "right"
41457
- ]
41458
- },
41459
- weight: {
41460
- types: [
41461
- "string"
41462
- ],
41463
- description: "Font weight override",
41464
- enumValues: [
41465
- "light",
41466
- "normal",
41467
- "medium",
41468
- "semibold",
41469
- "bold"
41470
- ]
41471
- },
41472
- size: {
41473
- types: [
41474
- "string"
41475
- ],
41476
- description: "Font size override",
41477
- enumValues: [
41478
- "xs",
41479
- "sm",
41480
- "md",
41481
- "lg",
41482
- "xl",
41483
- "2xl",
41484
- "3xl"
41485
- ]
41486
- },
41487
- truncate: {
41488
- types: [
41489
- "boolean"
41490
- ],
41491
- description: "Truncate with ellipsis (single line)",
41492
- default: false
41493
- },
41494
- overflow: {
41495
- types: [
41496
- "string"
41497
- ],
41498
- description: "Overflow handling mode",
41499
- enumValues: [
41500
- "visible",
41501
- "hidden",
41502
- "wrap",
41503
- "clamp-2",
41504
- "clamp-3"
41505
- ]
41506
- },
41507
- as: {
41508
- types: [
41509
- "component"
41510
- ],
41511
- description: "Custom HTML element"
41512
- },
41513
- id: {
41514
- types: [
41515
- "string"
41516
- ],
41517
- description: "HTML id attribute"
41518
- },
41519
- className: {
41520
- types: [
41521
- "string"
41522
- ],
41523
- description: "Additional class names"
41524
- },
41525
- style: {
41526
- types: [
41527
- "object"
41528
- ],
41529
- description: "Inline style"
41530
- },
41531
- content: {
41532
- types: [
41533
- "node"
41534
- ],
41535
- description: "Text content (alternative to children)"
41536
- },
41537
- children: {
41538
- types: [
41539
- "node"
41540
- ],
41541
- description: "Children elements"
41542
- }
41543
- }
41544
- },
41545
- text: {
41546
- type: "text",
41547
- category: "component",
41548
- tier: "atoms",
41549
- family: "core",
41550
- description: "Alias for typography \u2014 Typography Atom Component Text elements following the KFlow design system with theme-aware styling.",
41551
- suggestedFor: [
41552
- "typography"
41553
- ],
41554
- typicalSize: "small",
41555
- propsSchema: {
41556
- variant: {
41557
- types: [
41558
- "string"
41559
- ],
41560
- description: "Typography variant",
41561
- enumValues: [
41562
- "h1",
41563
- "h2",
41564
- "h3",
41565
- "h4",
41566
- "h5",
41567
- "h6",
41568
- "heading",
41569
- "subheading",
41570
- "body1",
41571
- "body2",
41572
- "body",
41573
- "caption",
41574
- "overline",
41575
- "small",
41576
- "large",
41577
- "label"
41578
- ],
41579
- default: "body"
41580
41271
  },
41581
- level: {
41582
- types: [
41583
- "number"
41584
- ],
41585
- description: "Heading level (1-6) - alternative to variant for headings",
41586
- numericEnumValues: [
41587
- 1,
41588
- 2,
41589
- 3,
41590
- 4,
41591
- 5,
41592
- 6
41593
- ],
41594
- default: 2
41595
- },
41596
- color: {
41597
- types: [
41598
- "string"
41599
- ],
41600
- description: "Text color",
41601
- enumValues: [
41602
- "primary",
41603
- "secondary",
41604
- "muted",
41605
- "error",
41606
- "success",
41607
- "warning",
41608
- "inherit"
41609
- ],
41610
- default: "primary"
41611
- },
41612
- align: {
41613
- types: [
41614
- "string"
41615
- ],
41616
- description: "Text alignment",
41617
- enumValues: [
41618
- "left",
41619
- "center",
41620
- "right"
41621
- ]
41622
- },
41623
- weight: {
41624
- types: [
41625
- "string"
41626
- ],
41627
- description: "Font weight override",
41628
- enumValues: [
41629
- "light",
41630
- "normal",
41631
- "medium",
41632
- "semibold",
41633
- "bold"
41634
- ]
41635
- },
41636
- size: {
41272
+ label: {
41637
41273
  types: [
41638
41274
  "string"
41639
41275
  ],
41640
- description: "Font size override",
41641
- enumValues: [
41642
- "xs",
41643
- "sm",
41644
- "md",
41645
- "lg",
41646
- "xl",
41647
- "2xl",
41648
- "3xl"
41649
- ]
41276
+ description: "Label"
41650
41277
  },
41651
- truncate: {
41278
+ defaultExpanded: {
41652
41279
  types: [
41653
41280
  "boolean"
41654
41281
  ],
41655
- description: "Truncate with ellipsis (single line)",
41282
+ description: "Whether the code is expanded by default",
41656
41283
  default: false
41657
41284
  },
41658
- overflow: {
41659
- types: [
41660
- "string"
41661
- ],
41662
- description: "Overflow handling mode",
41663
- enumValues: [
41664
- "visible",
41665
- "hidden",
41666
- "wrap",
41667
- "clamp-2",
41668
- "clamp-3"
41669
- ]
41670
- },
41671
- as: {
41672
- types: [
41673
- "component"
41674
- ],
41675
- description: "Custom HTML element"
41676
- },
41677
- id: {
41678
- types: [
41679
- "string"
41680
- ],
41681
- description: "HTML id attribute"
41682
- },
41683
41285
  className: {
41684
41286
  types: [
41685
41287
  "string"
41686
41288
  ],
41687
- description: "Additional class names"
41688
- },
41689
- style: {
41690
- types: [
41691
- "object"
41692
- ],
41693
- description: "Inline style"
41694
- },
41695
- content: {
41696
- types: [
41697
- "node"
41698
- ],
41699
- description: "Text content (alternative to children)"
41700
- },
41701
- children: {
41702
- types: [
41703
- "node"
41704
- ],
41705
- description: "Children elements"
41289
+ description: "Additional CSS classes"
41706
41290
  }
41707
41291
  }
41708
41292
  }
@@ -42332,7 +41916,7 @@ var integrators_registry_default = {
42332
41916
  // src/component-mapping.json
42333
41917
  var component_mapping_default = {
42334
41918
  version: "1.0.0",
42335
- exportedAt: "2026-06-16T06:23:39.790Z",
41919
+ exportedAt: "2026-06-16T13:40:20.131Z",
42336
41920
  mappings: {
42337
41921
  "page-header": {
42338
41922
  component: "PageHeader",
@@ -42836,11 +42420,6 @@ var component_mapping_default = {
42836
42420
  importPath: "@/components/molecules/GraphCanvas",
42837
42421
  category: "visualization"
42838
42422
  },
42839
- "code-viewer": {
42840
- component: "CodeViewer",
42841
- importPath: "@/components/molecules/CodeViewer",
42842
- category: "display"
42843
- },
42844
42423
  "battle-template": {
42845
42424
  component: "BattleTemplate",
42846
42425
  importPath: "@/components/templates/BattleTemplate",
@@ -43446,11 +43025,6 @@ var component_mapping_default = {
43446
43025
  importPath: "@/components/molecules/DocBreadcrumb",
43447
43026
  category: "navigation"
43448
43027
  },
43449
- "doc-code-block": {
43450
- component: "DocCodeBlock",
43451
- importPath: "@/components/molecules/DocCodeBlock",
43452
- category: "component"
43453
- },
43454
43028
  "doc-pagination": {
43455
43029
  component: "DocPagination",
43456
43030
  importPath: "@/components/molecules/DocPagination",
@@ -43751,11 +43325,6 @@ var component_mapping_default = {
43751
43325
  importPath: "@/components/organisms/SimulatorBoard",
43752
43326
  category: "game"
43753
43327
  },
43754
- "code-view": {
43755
- component: "CodeView",
43756
- importPath: "@/components/organisms/CodeView",
43757
- category: "game"
43758
- },
43759
43328
  "state-architect-board": {
43760
43329
  component: "StateArchitectBoard",
43761
43330
  importPath: "@/components/organisms/StateArchitectBoard",
@@ -43846,35 +43415,10 @@ var component_mapping_default = {
43846
43415
  importPath: "@/components/atoms/StatCard",
43847
43416
  category: "display"
43848
43417
  },
43849
- "asset-picker": {
43850
- component: "AssetPicker",
43851
- importPath: "@/components/molecules/AssetPicker",
43852
- category: "component"
43853
- },
43854
- "grid-picker": {
43855
- component: "GridPicker",
43856
- importPath: "@/components/molecules/GridPicker",
43857
- category: "display"
43858
- },
43859
- "icon-picker": {
43860
- component: "IconPicker",
43861
- importPath: "@/components/molecules/IconPicker",
43862
- category: "component"
43863
- },
43864
- "property-inspector": {
43865
- component: "PropertyInspector",
43866
- importPath: "@/components/molecules/PropertyInspector",
43867
- category: "debug"
43868
- },
43869
- heading: {
43870
- component: "Typography",
43871
- importPath: "@/components/atoms/Typography",
43872
- category: "component"
43873
- },
43874
- text: {
43875
- component: "Typography",
43876
- importPath: "@/components/atoms/Typography",
43877
- category: "component"
43418
+ "state-json-view": {
43419
+ component: "StateJsonView",
43420
+ importPath: "@/components/organisms/StateJsonView",
43421
+ category: "game"
43878
43422
  }
43879
43423
  }
43880
43424
  };
@@ -43882,7 +43426,7 @@ var component_mapping_default = {
43882
43426
  // src/event-contracts.json
43883
43427
  var event_contracts_default = {
43884
43428
  version: "1.0.0",
43885
- exportedAt: "2026-06-16T06:23:39.790Z",
43429
+ exportedAt: "2026-06-16T13:40:20.131Z",
43886
43430
  contracts: {
43887
43431
  form: {
43888
43432
  emits: [
@@ -44710,19 +44254,6 @@ var event_contracts_default = {
44710
44254
  requires: [],
44711
44255
  entityAware: true
44712
44256
  },
44713
- "code-viewer": {
44714
- emits: [
44715
- {
44716
- event: "CODE_COPY",
44717
- trigger: "action",
44718
- payload: {
44719
- type: "object"
44720
- }
44721
- }
44722
- ],
44723
- requires: [],
44724
- entityAware: true
44725
- },
44726
44257
  "document-viewer": {
44727
44258
  emits: [
44728
44259
  {