@almadar/core 10.40.0 → 10.41.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.
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // src/patterns/patterns-registry.json
4
4
  var patterns_registry_default = {
5
5
  version: "1.0.0",
6
- exportedAt: "2026-07-28T10:40:00.004Z",
6
+ exportedAt: "2026-07-28T14:48:23.507Z",
7
7
  patterns: {
8
8
  "entity-table": {
9
9
  type: "entity-table",
@@ -40916,6 +40916,445 @@ var patterns_registry_default = {
40916
40916
  description: "Additional CSS classes"
40917
40917
  }
40918
40918
  }
40919
+ },
40920
+ "svg-draw-group": {
40921
+ type: "svg-draw-group",
40922
+ category: "game",
40923
+ tier: "atoms",
40924
+ family: "game",
40925
+ description: "SvgDrawGroup component",
40926
+ suggestedFor: [
40927
+ "svg",
40928
+ "draw",
40929
+ "group",
40930
+ "svg draw group"
40931
+ ],
40932
+ typicalSize: "small",
40933
+ propsSchema: {
40934
+ x: {
40935
+ types: [
40936
+ "number"
40937
+ ],
40938
+ description: "Grid-cell x of the group's origin.",
40939
+ default: 0
40940
+ },
40941
+ y: {
40942
+ types: [
40943
+ "number"
40944
+ ],
40945
+ description: "Grid-cell y of the group's origin.",
40946
+ default: 0
40947
+ },
40948
+ scale: {
40949
+ types: [
40950
+ "number"
40951
+ ],
40952
+ description: "Uniform scale applied after the translate."
40953
+ },
40954
+ rotate: {
40955
+ types: [
40956
+ "number"
40957
+ ],
40958
+ description: "Rotation in degrees applied after the translate."
40959
+ },
40960
+ opacity: {
40961
+ types: [
40962
+ "number"
40963
+ ],
40964
+ description: "0..1 opacity."
40965
+ },
40966
+ className: {
40967
+ types: [
40968
+ "string"
40969
+ ],
40970
+ description: "Additional CSS classes"
40971
+ },
40972
+ children: {
40973
+ types: [
40974
+ "node"
40975
+ ],
40976
+ description: "children prop"
40977
+ }
40978
+ }
40979
+ },
40980
+ "svg-draw-shape": {
40981
+ type: "svg-draw-shape",
40982
+ category: "game",
40983
+ tier: "atoms",
40984
+ family: "game",
40985
+ description: "SvgDrawShape component",
40986
+ suggestedFor: [
40987
+ "svg",
40988
+ "draw",
40989
+ "shape",
40990
+ "svg draw shape"
40991
+ ],
40992
+ typicalSize: "small",
40993
+ propsSchema: {
40994
+ shape: {
40995
+ types: [
40996
+ "string"
40997
+ ],
40998
+ description: "shape prop",
40999
+ required: true,
41000
+ enumValues: [
41001
+ "rect",
41002
+ "circle",
41003
+ "ellipse",
41004
+ "polygon",
41005
+ "polyline",
41006
+ "path",
41007
+ "line"
41008
+ ]
41009
+ },
41010
+ x: {
41011
+ types: [
41012
+ "number"
41013
+ ],
41014
+ description: "Grid-cell x of the element's translated origin.",
41015
+ required: true
41016
+ },
41017
+ y: {
41018
+ types: [
41019
+ "number"
41020
+ ],
41021
+ description: "Grid-cell y of the element's translated origin.",
41022
+ required: true
41023
+ },
41024
+ width: {
41025
+ types: [
41026
+ "number"
41027
+ ],
41028
+ description: "Rect width in cell units."
41029
+ },
41030
+ height: {
41031
+ types: [
41032
+ "number"
41033
+ ],
41034
+ description: "Rect height in cell units."
41035
+ },
41036
+ radius: {
41037
+ types: [
41038
+ "number"
41039
+ ],
41040
+ description: "Circle radius / ellipse horizontal radius in cell units."
41041
+ },
41042
+ radiusY: {
41043
+ types: [
41044
+ "number"
41045
+ ],
41046
+ description: "Ellipse vertical radius in cell units; omitted \u2192 `radius` (a circle)."
41047
+ },
41048
+ points: {
41049
+ types: [
41050
+ "string"
41051
+ ],
41052
+ description: "Polygon/polyline points, viewBox units relative to the translated origin."
41053
+ },
41054
+ d: {
41055
+ types: [
41056
+ "string"
41057
+ ],
41058
+ description: "Path data, viewBox units relative to the translated origin."
41059
+ },
41060
+ x2: {
41061
+ types: [
41062
+ "number"
41063
+ ],
41064
+ description: "Line end x in cell units."
41065
+ },
41066
+ y2: {
41067
+ types: [
41068
+ "number"
41069
+ ],
41070
+ description: "Line end y in cell units."
41071
+ },
41072
+ fill: {
41073
+ types: [
41074
+ "string"
41075
+ ],
41076
+ description: "fill prop"
41077
+ },
41078
+ stroke: {
41079
+ types: [
41080
+ "string"
41081
+ ],
41082
+ description: "stroke prop"
41083
+ },
41084
+ strokeWidth: {
41085
+ types: [
41086
+ "number"
41087
+ ],
41088
+ description: "strokeWidth prop"
41089
+ },
41090
+ opacity: {
41091
+ types: [
41092
+ "number"
41093
+ ],
41094
+ description: "0..1 opacity."
41095
+ },
41096
+ className: {
41097
+ types: [
41098
+ "string"
41099
+ ],
41100
+ description: "Additional CSS classes"
41101
+ }
41102
+ }
41103
+ },
41104
+ "svg-draw-text": {
41105
+ type: "svg-draw-text",
41106
+ category: "game",
41107
+ tier: "atoms",
41108
+ family: "game",
41109
+ description: "SvgDrawText component",
41110
+ suggestedFor: [
41111
+ "svg",
41112
+ "draw",
41113
+ "text",
41114
+ "svg draw text"
41115
+ ],
41116
+ typicalSize: "small",
41117
+ propsSchema: {
41118
+ x: {
41119
+ types: [
41120
+ "number"
41121
+ ],
41122
+ description: "Grid-cell x of the text anchor.",
41123
+ required: true
41124
+ },
41125
+ y: {
41126
+ types: [
41127
+ "number"
41128
+ ],
41129
+ description: "Grid-cell y of the text anchor.",
41130
+ required: true
41131
+ },
41132
+ text: {
41133
+ types: [
41134
+ "string"
41135
+ ],
41136
+ description: "The text content.",
41137
+ required: true
41138
+ },
41139
+ size: {
41140
+ types: [
41141
+ "number"
41142
+ ],
41143
+ description: "Font size in viewBox units (default 12).",
41144
+ default: 12
41145
+ },
41146
+ fill: {
41147
+ types: [
41148
+ "string"
41149
+ ],
41150
+ description: "fill prop",
41151
+ default: "var(--color-foreground)"
41152
+ },
41153
+ anchor: {
41154
+ types: [
41155
+ "string"
41156
+ ],
41157
+ description: "Text anchor (default 'middle').",
41158
+ enumValues: [
41159
+ "start",
41160
+ "middle",
41161
+ "end"
41162
+ ],
41163
+ default: "middle"
41164
+ },
41165
+ className: {
41166
+ types: [
41167
+ "string"
41168
+ ],
41169
+ description: "Additional CSS classes"
41170
+ }
41171
+ }
41172
+ },
41173
+ "svg-draw-shape-layer": {
41174
+ type: "svg-draw-shape-layer",
41175
+ category: "game",
41176
+ tier: "molecules",
41177
+ family: "game",
41178
+ description: "SvgDrawShapeLayer component",
41179
+ suggestedFor: [
41180
+ "svg",
41181
+ "draw",
41182
+ "shape",
41183
+ "layer",
41184
+ "svg draw shape layer"
41185
+ ],
41186
+ typicalSize: "medium",
41187
+ propsSchema: {
41188
+ items: {
41189
+ types: [
41190
+ "array"
41191
+ ],
41192
+ description: "items prop",
41193
+ required: true,
41194
+ items: {
41195
+ types: [
41196
+ "object"
41197
+ ],
41198
+ properties: {
41199
+ id: {
41200
+ types: [
41201
+ "string"
41202
+ ]
41203
+ }
41204
+ },
41205
+ required: [
41206
+ "id"
41207
+ ]
41208
+ }
41209
+ },
41210
+ fill: {
41211
+ types: [
41212
+ "string"
41213
+ ],
41214
+ description: "Default fill for items that don't set one."
41215
+ },
41216
+ stroke: {
41217
+ types: [
41218
+ "string"
41219
+ ],
41220
+ description: "Default stroke for items that don't set one."
41221
+ },
41222
+ strokeWidth: {
41223
+ types: [
41224
+ "number"
41225
+ ],
41226
+ description: "Default strokeWidth for items that don't set one."
41227
+ },
41228
+ opacity: {
41229
+ types: [
41230
+ "number"
41231
+ ],
41232
+ description: "Default 0..1 opacity for items that don't set one."
41233
+ }
41234
+ }
41235
+ },
41236
+ "svg-stage": {
41237
+ type: "svg-stage",
41238
+ category: "game",
41239
+ tier: "molecules",
41240
+ family: "game",
41241
+ description: "SvgStage component",
41242
+ suggestedFor: [
41243
+ "svg",
41244
+ "stage",
41245
+ "svg stage"
41246
+ ],
41247
+ typicalSize: "medium",
41248
+ propsSchema: {
41249
+ cols: {
41250
+ types: [
41251
+ "number"
41252
+ ],
41253
+ description: "Grid width in cells.",
41254
+ required: true
41255
+ },
41256
+ rows: {
41257
+ types: [
41258
+ "number"
41259
+ ],
41260
+ description: "Grid height in cells.",
41261
+ required: true
41262
+ },
41263
+ tileSize: {
41264
+ types: [
41265
+ "number"
41266
+ ],
41267
+ description: "ViewBox units per cell (default 32); viewBox is `0 0 cols*tileSize rows*tileSize`.",
41268
+ default: 32
41269
+ },
41270
+ background: {
41271
+ types: [
41272
+ "string"
41273
+ ],
41274
+ description: "Background rect fill (default `var(--color-background)`).",
41275
+ default: "var(--color-background)"
41276
+ },
41277
+ tileClickEvent: {
41278
+ types: [
41279
+ "string"
41280
+ ],
41281
+ description: "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer up (<5px drag).",
41282
+ kind: "event-ref",
41283
+ emitPayloadSchema: [
41284
+ {
41285
+ name: "x",
41286
+ type: "number",
41287
+ required: true
41288
+ },
41289
+ {
41290
+ name: "y",
41291
+ type: "number",
41292
+ required: true
41293
+ }
41294
+ ]
41295
+ },
41296
+ tileHoverEvent: {
41297
+ types: [
41298
+ "string"
41299
+ ],
41300
+ description: "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer move.",
41301
+ kind: "event-ref",
41302
+ emitPayloadSchema: [
41303
+ {
41304
+ name: "x",
41305
+ type: "number",
41306
+ required: true
41307
+ },
41308
+ {
41309
+ name: "y",
41310
+ type: "number",
41311
+ required: true
41312
+ }
41313
+ ]
41314
+ },
41315
+ tileLeaveEvent: {
41316
+ types: [
41317
+ "string"
41318
+ ],
41319
+ description: "Emitted as `UI:<event>` with `{}` when the pointer leaves the stage.",
41320
+ kind: "event-ref",
41321
+ emitPayloadSchema: []
41322
+ },
41323
+ keyMap: {
41324
+ types: [
41325
+ "object"
41326
+ ],
41327
+ description: "Keyboard \u2192 semantic events: `e.code` \u2192 event name, emitted as `UI:<event>` with `{}`.",
41328
+ mapValue: {
41329
+ types: [
41330
+ "string"
41331
+ ]
41332
+ }
41333
+ },
41334
+ keyUpMap: {
41335
+ types: [
41336
+ "object"
41337
+ ],
41338
+ description: "Keyup counterpart of `keyMap`.",
41339
+ mapValue: {
41340
+ types: [
41341
+ "string"
41342
+ ]
41343
+ }
41344
+ },
41345
+ className: {
41346
+ types: [
41347
+ "string"
41348
+ ],
41349
+ description: "Additional CSS classes"
41350
+ },
41351
+ children: {
41352
+ types: [
41353
+ "node"
41354
+ ],
41355
+ description: "children prop"
41356
+ }
41357
+ }
40919
41358
  }
40920
41359
  },
40921
41360
  categories: [
@@ -41837,7 +42276,7 @@ var integrators_registry_default = {
41837
42276
  // src/patterns/component-mapping.json
41838
42277
  var component_mapping_default = {
41839
42278
  version: "1.0.0",
41840
- exportedAt: "2026-07-28T10:40:00.004Z",
42279
+ exportedAt: "2026-07-28T14:48:23.507Z",
41841
42280
  mappings: {
41842
42281
  "page-header": {
41843
42282
  component: "PageHeader",
@@ -43210,6 +43649,31 @@ var component_mapping_default = {
43210
43649
  component: "ImportSourcePicker",
43211
43650
  importPath: "@/components/core/molecules/ImportSourcePicker",
43212
43651
  category: "component"
43652
+ },
43653
+ "svg-draw-group": {
43654
+ component: "SvgDrawGroup",
43655
+ importPath: "@/components/game/atoms/SvgDrawGroup",
43656
+ category: "game"
43657
+ },
43658
+ "svg-draw-shape": {
43659
+ component: "SvgDrawShape",
43660
+ importPath: "@/components/game/atoms/SvgDrawShape",
43661
+ category: "game"
43662
+ },
43663
+ "svg-draw-text": {
43664
+ component: "SvgDrawText",
43665
+ importPath: "@/components/game/atoms/SvgDrawText",
43666
+ category: "game"
43667
+ },
43668
+ "svg-draw-shape-layer": {
43669
+ component: "SvgDrawShapeLayer",
43670
+ importPath: "@/components/game/molecules/SvgDrawShapeLayer",
43671
+ category: "game"
43672
+ },
43673
+ "svg-stage": {
43674
+ component: "SvgStage",
43675
+ importPath: "@/components/game/molecules/SvgStage",
43676
+ category: "game"
43213
43677
  }
43214
43678
  }
43215
43679
  };
@@ -43217,7 +43681,7 @@ var component_mapping_default = {
43217
43681
  // src/patterns/event-contracts.json
43218
43682
  var event_contracts_default = {
43219
43683
  version: "1.0.0",
43220
- exportedAt: "2026-07-28T10:40:00.004Z",
43684
+ exportedAt: "2026-07-28T14:48:23.507Z",
43221
43685
  contracts: {
43222
43686
  form: {
43223
43687
  emits: [
@@ -44598,6 +45062,10 @@ var PATTERN_TYPES = [
44598
45062
  "subagent-trace-panel",
44599
45063
  "svg-branch",
44600
45064
  "svg-connection",
45065
+ "svg-draw-group",
45066
+ "svg-draw-shape",
45067
+ "svg-draw-shape-layer",
45068
+ "svg-draw-text",
44601
45069
  "svg-flow",
44602
45070
  "svg-grid",
44603
45071
  "svg-lobe",
@@ -44608,6 +45076,7 @@ var PATTERN_TYPES = [
44608
45076
  "svg-ring",
44609
45077
  "svg-shield",
44610
45078
  "svg-stack",
45079
+ "svg-stage",
44611
45080
  "swipeable-row",
44612
45081
  "switch",
44613
45082
  "tabbed-container",