@almadar/patterns 2.41.0 → 2.42.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-12T08:35:33.532Z",
4
+ exportedAt: "2026-06-16T06:23:39.790Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -13952,7 +13952,7 @@ var patterns_registry_default = {
13952
13952
  },
13953
13953
  language: {
13954
13954
  types: [
13955
- "string"
13955
+ "unknown"
13956
13956
  ],
13957
13957
  description: "Language for display label"
13958
13958
  },
@@ -14067,7 +14067,7 @@ var patterns_registry_default = {
14067
14067
  },
14068
14068
  language: {
14069
14069
  types: [
14070
- "string"
14070
+ "unknown"
14071
14071
  ]
14072
14072
  }
14073
14073
  },
@@ -14467,7 +14467,7 @@ var patterns_registry_default = {
14467
14467
  },
14468
14468
  language: {
14469
14469
  types: [
14470
- "string"
14470
+ "unknown"
14471
14471
  ],
14472
14472
  description: "Programming language for syntax highlighting",
14473
14473
  default: "text"
@@ -23037,6 +23037,13 @@ var patterns_registry_default = {
23037
23037
  ],
23038
23038
  description: "placeholder prop"
23039
23039
  },
23040
+ enableBlocks: {
23041
+ types: [
23042
+ "boolean"
23043
+ ],
23044
+ description: "Opt-in to the Notion-style block authoring chrome (insert toolbar, per-row +/menu gutter, turn-into menu). Off by default: the editor renders as a plain rich text surface that edits block content inline without any add-block affordances.",
23045
+ default: false
23046
+ },
23040
23047
  showToolbar: {
23041
23048
  types: [
23042
23049
  "boolean"
@@ -25867,7 +25874,7 @@ var patterns_registry_default = {
25867
25874
  },
25868
25875
  language: {
25869
25876
  types: [
25870
- "string"
25877
+ "unknown"
25871
25878
  ],
25872
25879
  description: "Programming language label"
25873
25880
  },
@@ -40965,6 +40972,412 @@ var patterns_registry_default = {
40965
40972
  }
40966
40973
  }
40967
40974
  },
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).",
41217
+ suggestedFor: [
41218
+ "property",
41219
+ "inspector",
41220
+ "property inspector"
41221
+ ],
41222
+ typicalSize: "medium",
41223
+ 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: {
41334
+ types: [
41335
+ "object"
41336
+ ],
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.",
41345
+ 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
+ freeform: true
41378
+ }
41379
+ }
41380
+ },
40968
41381
  heading: {
40969
41382
  type: "heading",
40970
41383
  category: "component",
@@ -41919,7 +42332,7 @@ var integrators_registry_default = {
41919
42332
  // src/component-mapping.json
41920
42333
  var component_mapping_default = {
41921
42334
  version: "1.0.0",
41922
- exportedAt: "2026-06-12T08:35:33.532Z",
42335
+ exportedAt: "2026-06-16T06:23:39.790Z",
41923
42336
  mappings: {
41924
42337
  "page-header": {
41925
42338
  component: "PageHeader",
@@ -43433,6 +43846,26 @@ var component_mapping_default = {
43433
43846
  importPath: "@/components/atoms/StatCard",
43434
43847
  category: "display"
43435
43848
  },
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
+ },
43436
43869
  heading: {
43437
43870
  component: "Typography",
43438
43871
  importPath: "@/components/atoms/Typography",
@@ -43449,7 +43882,7 @@ var component_mapping_default = {
43449
43882
  // src/event-contracts.json
43450
43883
  var event_contracts_default = {
43451
43884
  version: "1.0.0",
43452
- exportedAt: "2026-06-12T08:35:33.532Z",
43885
+ exportedAt: "2026-06-16T06:23:39.790Z",
43453
43886
  contracts: {
43454
43887
  form: {
43455
43888
  emits: [