@almadar/patterns 2.42.1 → 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-16T10:02:47.077Z",
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
  },
@@ -11612,7 +11622,7 @@ var patterns_registry_default = {
11612
11622
  "string"
11613
11623
  ],
11614
11624
  description: "App name",
11615
- default: "{{APP_TITLE}}"
11625
+ default: "My App"
11616
11626
  },
11617
11627
  logo: {
11618
11628
  types: [
@@ -13124,7 +13134,48 @@ var patterns_registry_default = {
13124
13134
  items: {
13125
13135
  types: [
13126
13136
  "object"
13127
- ]
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
+ }
13128
13179
  }
13129
13180
  },
13130
13181
  columns: {
@@ -13922,252 +13973,6 @@ var patterns_registry_default = {
13922
13973
  }
13923
13974
  }
13924
13975
  },
13925
- "code-viewer": {
13926
- type: "code-viewer",
13927
- category: "display",
13928
- tier: "molecules",
13929
- family: "core",
13930
- description: "Code and diff viewer with line numbers, copy, word-wrap, and multi-file tabs",
13931
- suggestedFor: [
13932
- "code display",
13933
- "diff viewing",
13934
- "schema inspection",
13935
- "log viewing"
13936
- ],
13937
- typicalSize: "medium",
13938
- propsSchema: {
13939
- title: {
13940
- types: [
13941
- "string"
13942
- ],
13943
- description: "Viewer title"
13944
- },
13945
- code: {
13946
- types: [
13947
- "string"
13948
- ],
13949
- description: "Code content"
13950
- },
13951
- language: {
13952
- types: [
13953
- "unknown"
13954
- ],
13955
- description: "Language for display label"
13956
- },
13957
- diff: {
13958
- types: [
13959
- "array"
13960
- ],
13961
- description: "Diff lines (for diff mode)",
13962
- items: {
13963
- types: [
13964
- "object"
13965
- ],
13966
- properties: {
13967
- type: {
13968
- types: [
13969
- "string"
13970
- ],
13971
- enumValues: [
13972
- "add",
13973
- "remove",
13974
- "context"
13975
- ]
13976
- },
13977
- content: {
13978
- types: [
13979
- "string"
13980
- ]
13981
- },
13982
- lineNumber: {
13983
- types: [
13984
- "number"
13985
- ]
13986
- }
13987
- },
13988
- required: [
13989
- "type",
13990
- "content"
13991
- ]
13992
- }
13993
- },
13994
- oldValue: {
13995
- types: [
13996
- "string"
13997
- ],
13998
- description: "Old value (for generating diff)"
13999
- },
14000
- newValue: {
14001
- types: [
14002
- "string"
14003
- ],
14004
- description: "New value (for generating diff)"
14005
- },
14006
- mode: {
14007
- types: [
14008
- "string"
14009
- ],
14010
- description: "Display mode",
14011
- enumValues: [
14012
- "code",
14013
- "diff"
14014
- ],
14015
- default: "code"
14016
- },
14017
- showLineNumbers: {
14018
- types: [
14019
- "boolean"
14020
- ],
14021
- description: "Show line numbers",
14022
- default: true
14023
- },
14024
- showCopy: {
14025
- types: [
14026
- "boolean"
14027
- ],
14028
- description: "Show copy button",
14029
- default: true
14030
- },
14031
- wordWrap: {
14032
- types: [
14033
- "boolean"
14034
- ],
14035
- description: "Enable word wrap",
14036
- default: false
14037
- },
14038
- maxHeight: {
14039
- types: [
14040
- "number",
14041
- "string"
14042
- ],
14043
- description: "Max height before scrolling",
14044
- default: 500
14045
- },
14046
- files: {
14047
- types: [
14048
- "array"
14049
- ],
14050
- description: "Multiple files (tabbed view)",
14051
- items: {
14052
- types: [
14053
- "object"
14054
- ],
14055
- properties: {
14056
- label: {
14057
- types: [
14058
- "string"
14059
- ]
14060
- },
14061
- code: {
14062
- types: [
14063
- "string"
14064
- ]
14065
- },
14066
- language: {
14067
- types: [
14068
- "unknown"
14069
- ]
14070
- }
14071
- },
14072
- required: [
14073
- "label",
14074
- "code"
14075
- ]
14076
- }
14077
- },
14078
- actions: {
14079
- types: [
14080
- "array"
14081
- ],
14082
- description: "Actions",
14083
- items: {
14084
- types: [
14085
- "object"
14086
- ],
14087
- properties: {
14088
- label: {
14089
- types: [
14090
- "string"
14091
- ]
14092
- },
14093
- event: {
14094
- types: [
14095
- "string"
14096
- ]
14097
- },
14098
- navigatesTo: {
14099
- types: [
14100
- "string"
14101
- ]
14102
- },
14103
- variant: {
14104
- types: [
14105
- "string"
14106
- ],
14107
- enumValues: [
14108
- "primary",
14109
- "secondary",
14110
- "ghost"
14111
- ]
14112
- }
14113
- },
14114
- required: [
14115
- "label"
14116
- ]
14117
- }
14118
- },
14119
- entity: {
14120
- types: [
14121
- "string"
14122
- ],
14123
- description: "Entity name for schema-driven auto-fetch"
14124
- },
14125
- isLoading: {
14126
- types: [
14127
- "boolean"
14128
- ],
14129
- description: "Loading state",
14130
- default: false
14131
- },
14132
- error: {
14133
- types: [
14134
- "object"
14135
- ],
14136
- description: "Error state",
14137
- properties: {
14138
- message: {
14139
- types: [
14140
- "string"
14141
- ]
14142
- },
14143
- name: {
14144
- types: [
14145
- "string"
14146
- ]
14147
- },
14148
- code: {
14149
- types: [
14150
- "string"
14151
- ]
14152
- },
14153
- stack: {
14154
- types: [
14155
- "string"
14156
- ]
14157
- }
14158
- },
14159
- propertyRequired: [
14160
- "message"
14161
- ]
14162
- },
14163
- className: {
14164
- types: [
14165
- "string"
14166
- ],
14167
- description: "Additional CSS classes"
14168
- }
14169
- }
14170
- },
14171
13976
  "battle-template": {
14172
13977
  type: "battle-template",
14173
13978
  category: "game",
@@ -14460,14 +14265,43 @@ var patterns_registry_default = {
14460
14265
  types: [
14461
14266
  "string"
14462
14267
  ],
14463
- description: "The code content to display",
14464
- required: true
14268
+ description: "The code content to display"
14465
14269
  },
14466
14270
  language: {
14467
14271
  types: [
14468
- "unknown"
14272
+ "string"
14469
14273
  ],
14470
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
+ ],
14471
14305
  default: "text"
14472
14306
  },
14473
14307
  showCopyButton: {
@@ -14486,7 +14320,8 @@ var patterns_registry_default = {
14486
14320
  },
14487
14321
  maxHeight: {
14488
14322
  types: [
14489
- "string"
14323
+ "string",
14324
+ "number"
14490
14325
  ],
14491
14326
  description: "Maximum height before scrolling",
14492
14327
  default: "60vh"
@@ -14529,6 +14364,239 @@ var patterns_registry_default = {
14529
14364
  ],
14530
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.",
14531
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)"
14532
14600
  }
14533
14601
  }
14534
14602
  },
@@ -14556,11 +14624,12 @@ var patterns_registry_default = {
14556
14624
  types: [
14557
14625
  "string"
14558
14626
  ],
14559
- description: "Text direction",
14627
+ description: "Text direction (defaults to ltr; `ltr` is first so the generated config seeds it)",
14560
14628
  enumValues: [
14561
- "rtl",
14562
- "ltr"
14563
- ]
14629
+ "ltr",
14630
+ "rtl"
14631
+ ],
14632
+ default: "ltr"
14564
14633
  },
14565
14634
  className: {
14566
14635
  types: [
@@ -14699,7 +14768,28 @@ var patterns_registry_default = {
14699
14768
  types: [
14700
14769
  "object"
14701
14770
  ],
14702
- 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
+ ]
14703
14793
  }
14704
14794
  },
14705
14795
  direction: {
@@ -21562,8 +21652,16 @@ var patterns_registry_default = {
21562
21652
  types: [
21563
21653
  "string"
21564
21654
  ],
21565
- description: "Stroke color",
21566
- 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"
21567
21665
  },
21568
21666
  strokeWidth: {
21569
21667
  types: [
@@ -24291,7 +24389,15 @@ var patterns_registry_default = {
24291
24389
  types: [
24292
24390
  "string"
24293
24391
  ],
24294
- 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
+ ]
24295
24401
  },
24296
24402
  size: {
24297
24403
  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: [
@@ -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",
@@ -40971,6 +41246,49 @@ var patterns_registry_default = {
40971
41246
  description: "Additional class names"
40972
41247
  }
40973
41248
  }
41249
+ },
41250
+ "state-json-view": {
41251
+ type: "state-json-view",
41252
+ category: "game",
41253
+ tier: "organisms",
41254
+ family: "game",
41255
+ description: "StateJsonView component",
41256
+ suggestedFor: [
41257
+ "state",
41258
+ "json",
41259
+ "view",
41260
+ "state json view"
41261
+ ],
41262
+ typicalSize: "large",
41263
+ propsSchema: {
41264
+ data: {
41265
+ types: [
41266
+ "object"
41267
+ ],
41268
+ description: "JSON data to display",
41269
+ required: true,
41270
+ freeform: true
41271
+ },
41272
+ label: {
41273
+ types: [
41274
+ "string"
41275
+ ],
41276
+ description: "Label"
41277
+ },
41278
+ defaultExpanded: {
41279
+ types: [
41280
+ "boolean"
41281
+ ],
41282
+ description: "Whether the code is expanded by default",
41283
+ default: false
41284
+ },
41285
+ className: {
41286
+ types: [
41287
+ "string"
41288
+ ],
41289
+ description: "Additional CSS classes"
41290
+ }
41291
+ }
40974
41292
  }
40975
41293
  },
40976
41294
  categories: [
@@ -41598,7 +41916,7 @@ var integrators_registry_default = {
41598
41916
  // src/component-mapping.json
41599
41917
  var component_mapping_default = {
41600
41918
  version: "1.0.0",
41601
- exportedAt: "2026-06-16T10:02:47.077Z",
41919
+ exportedAt: "2026-06-16T13:40:20.131Z",
41602
41920
  mappings: {
41603
41921
  "page-header": {
41604
41922
  component: "PageHeader",
@@ -42102,11 +42420,6 @@ var component_mapping_default = {
42102
42420
  importPath: "@/components/molecules/GraphCanvas",
42103
42421
  category: "visualization"
42104
42422
  },
42105
- "code-viewer": {
42106
- component: "CodeViewer",
42107
- importPath: "@/components/molecules/CodeViewer",
42108
- category: "display"
42109
- },
42110
42423
  "battle-template": {
42111
42424
  component: "BattleTemplate",
42112
42425
  importPath: "@/components/templates/BattleTemplate",
@@ -42712,11 +43025,6 @@ var component_mapping_default = {
42712
43025
  importPath: "@/components/molecules/DocBreadcrumb",
42713
43026
  category: "navigation"
42714
43027
  },
42715
- "doc-code-block": {
42716
- component: "DocCodeBlock",
42717
- importPath: "@/components/molecules/DocCodeBlock",
42718
- category: "component"
42719
- },
42720
43028
  "doc-pagination": {
42721
43029
  component: "DocPagination",
42722
43030
  importPath: "@/components/molecules/DocPagination",
@@ -43017,11 +43325,6 @@ var component_mapping_default = {
43017
43325
  importPath: "@/components/organisms/SimulatorBoard",
43018
43326
  category: "game"
43019
43327
  },
43020
- "code-view": {
43021
- component: "CodeView",
43022
- importPath: "@/components/organisms/CodeView",
43023
- category: "game"
43024
- },
43025
43328
  "state-architect-board": {
43026
43329
  component: "StateArchitectBoard",
43027
43330
  importPath: "@/components/organisms/StateArchitectBoard",
@@ -43111,6 +43414,11 @@ var component_mapping_default = {
43111
43414
  component: "StatCard",
43112
43415
  importPath: "@/components/atoms/StatCard",
43113
43416
  category: "display"
43417
+ },
43418
+ "state-json-view": {
43419
+ component: "StateJsonView",
43420
+ importPath: "@/components/organisms/StateJsonView",
43421
+ category: "game"
43114
43422
  }
43115
43423
  }
43116
43424
  };
@@ -43118,7 +43426,7 @@ var component_mapping_default = {
43118
43426
  // src/event-contracts.json
43119
43427
  var event_contracts_default = {
43120
43428
  version: "1.0.0",
43121
- exportedAt: "2026-06-16T10:02:47.077Z",
43429
+ exportedAt: "2026-06-16T13:40:20.131Z",
43122
43430
  contracts: {
43123
43431
  form: {
43124
43432
  emits: [
@@ -43946,19 +44254,6 @@ var event_contracts_default = {
43946
44254
  requires: [],
43947
44255
  entityAware: true
43948
44256
  },
43949
- "code-viewer": {
43950
- emits: [
43951
- {
43952
- event: "CODE_COPY",
43953
- trigger: "action",
43954
- payload: {
43955
- type: "object"
43956
- }
43957
- }
43958
- ],
43959
- requires: [],
43960
- entityAware: true
43961
- },
43962
44257
  "document-viewer": {
43963
44258
  emits: [
43964
44259
  {