@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/component-mapping.json +21 -1
- package/dist/event-contracts.json +1 -1
- package/dist/index.d.ts +562 -0
- package/dist/index.js +440 -7
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +418 -5
- package/dist/registry.json +418 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-06-
|
|
3
|
+
"exportedAt": "2026-06-16T06:23:39.790Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -13951,7 +13951,7 @@
|
|
|
13951
13951
|
},
|
|
13952
13952
|
"language": {
|
|
13953
13953
|
"types": [
|
|
13954
|
-
"
|
|
13954
|
+
"unknown"
|
|
13955
13955
|
],
|
|
13956
13956
|
"description": "Language for display label"
|
|
13957
13957
|
},
|
|
@@ -14066,7 +14066,7 @@
|
|
|
14066
14066
|
},
|
|
14067
14067
|
"language": {
|
|
14068
14068
|
"types": [
|
|
14069
|
-
"
|
|
14069
|
+
"unknown"
|
|
14070
14070
|
]
|
|
14071
14071
|
}
|
|
14072
14072
|
},
|
|
@@ -14466,7 +14466,7 @@
|
|
|
14466
14466
|
},
|
|
14467
14467
|
"language": {
|
|
14468
14468
|
"types": [
|
|
14469
|
-
"
|
|
14469
|
+
"unknown"
|
|
14470
14470
|
],
|
|
14471
14471
|
"description": "Programming language for syntax highlighting",
|
|
14472
14472
|
"default": "text"
|
|
@@ -23036,6 +23036,13 @@
|
|
|
23036
23036
|
],
|
|
23037
23037
|
"description": "placeholder prop"
|
|
23038
23038
|
},
|
|
23039
|
+
"enableBlocks": {
|
|
23040
|
+
"types": [
|
|
23041
|
+
"boolean"
|
|
23042
|
+
],
|
|
23043
|
+
"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.",
|
|
23044
|
+
"default": false
|
|
23045
|
+
},
|
|
23039
23046
|
"showToolbar": {
|
|
23040
23047
|
"types": [
|
|
23041
23048
|
"boolean"
|
|
@@ -25866,7 +25873,7 @@
|
|
|
25866
25873
|
},
|
|
25867
25874
|
"language": {
|
|
25868
25875
|
"types": [
|
|
25869
|
-
"
|
|
25876
|
+
"unknown"
|
|
25870
25877
|
],
|
|
25871
25878
|
"description": "Programming language label"
|
|
25872
25879
|
},
|
|
@@ -40964,6 +40971,412 @@
|
|
|
40964
40971
|
}
|
|
40965
40972
|
}
|
|
40966
40973
|
},
|
|
40974
|
+
"asset-picker": {
|
|
40975
|
+
"type": "asset-picker",
|
|
40976
|
+
"category": "component",
|
|
40977
|
+
"tier": "molecules",
|
|
40978
|
+
"family": "core",
|
|
40979
|
+
"description": "AssetPicker component",
|
|
40980
|
+
"suggestedFor": [
|
|
40981
|
+
"asset",
|
|
40982
|
+
"picker",
|
|
40983
|
+
"asset picker"
|
|
40984
|
+
],
|
|
40985
|
+
"typicalSize": "medium",
|
|
40986
|
+
"propsSchema": {
|
|
40987
|
+
"assets": {
|
|
40988
|
+
"types": [
|
|
40989
|
+
"object"
|
|
40990
|
+
],
|
|
40991
|
+
"description": "Browsable asset catalog supplied by the host.",
|
|
40992
|
+
"required": true,
|
|
40993
|
+
"freeform": true
|
|
40994
|
+
},
|
|
40995
|
+
"value": {
|
|
40996
|
+
"types": [
|
|
40997
|
+
"string"
|
|
40998
|
+
],
|
|
40999
|
+
"description": "Currently selected asset url (controlled highlight)."
|
|
41000
|
+
},
|
|
41001
|
+
"onChange": {
|
|
41002
|
+
"types": [
|
|
41003
|
+
"function"
|
|
41004
|
+
],
|
|
41005
|
+
"description": "Fired with the chosen asset's url.",
|
|
41006
|
+
"required": true,
|
|
41007
|
+
"kind": "callback",
|
|
41008
|
+
"callbackArgs": [
|
|
41009
|
+
{
|
|
41010
|
+
"name": "url",
|
|
41011
|
+
"type": "string"
|
|
41012
|
+
}
|
|
41013
|
+
]
|
|
41014
|
+
},
|
|
41015
|
+
"className": {
|
|
41016
|
+
"types": [
|
|
41017
|
+
"string"
|
|
41018
|
+
],
|
|
41019
|
+
"description": "Additional CSS classes applied to the root."
|
|
41020
|
+
}
|
|
41021
|
+
}
|
|
41022
|
+
},
|
|
41023
|
+
"grid-picker": {
|
|
41024
|
+
"type": "grid-picker",
|
|
41025
|
+
"category": "display",
|
|
41026
|
+
"tier": "molecules",
|
|
41027
|
+
"family": "core",
|
|
41028
|
+
"description": "GridPicker component",
|
|
41029
|
+
"suggestedFor": [
|
|
41030
|
+
"grid",
|
|
41031
|
+
"picker",
|
|
41032
|
+
"grid picker"
|
|
41033
|
+
],
|
|
41034
|
+
"typicalSize": "medium",
|
|
41035
|
+
"propsSchema": {
|
|
41036
|
+
"items": {
|
|
41037
|
+
"types": [
|
|
41038
|
+
"array"
|
|
41039
|
+
],
|
|
41040
|
+
"description": "Items to render as grid cells.",
|
|
41041
|
+
"required": true,
|
|
41042
|
+
"items": {
|
|
41043
|
+
"types": [
|
|
41044
|
+
"object"
|
|
41045
|
+
],
|
|
41046
|
+
"properties": {
|
|
41047
|
+
"id": {
|
|
41048
|
+
"types": [
|
|
41049
|
+
"string"
|
|
41050
|
+
]
|
|
41051
|
+
},
|
|
41052
|
+
"label": {
|
|
41053
|
+
"types": [
|
|
41054
|
+
"string"
|
|
41055
|
+
]
|
|
41056
|
+
},
|
|
41057
|
+
"category": {
|
|
41058
|
+
"types": [
|
|
41059
|
+
"string"
|
|
41060
|
+
]
|
|
41061
|
+
}
|
|
41062
|
+
},
|
|
41063
|
+
"required": [
|
|
41064
|
+
"id",
|
|
41065
|
+
"label",
|
|
41066
|
+
"category"
|
|
41067
|
+
]
|
|
41068
|
+
}
|
|
41069
|
+
},
|
|
41070
|
+
"value": {
|
|
41071
|
+
"types": [
|
|
41072
|
+
"string"
|
|
41073
|
+
],
|
|
41074
|
+
"description": "Currently selected item id (controlled highlight)."
|
|
41075
|
+
},
|
|
41076
|
+
"onChange": {
|
|
41077
|
+
"types": [
|
|
41078
|
+
"function"
|
|
41079
|
+
],
|
|
41080
|
+
"description": "Fired with the clicked/selected item's id.",
|
|
41081
|
+
"required": true,
|
|
41082
|
+
"kind": "callback",
|
|
41083
|
+
"callbackArgs": [
|
|
41084
|
+
{
|
|
41085
|
+
"name": "value",
|
|
41086
|
+
"type": "string"
|
|
41087
|
+
}
|
|
41088
|
+
]
|
|
41089
|
+
},
|
|
41090
|
+
"categories": {
|
|
41091
|
+
"types": [
|
|
41092
|
+
"array"
|
|
41093
|
+
],
|
|
41094
|
+
"description": "Category keys for the filter chip row. When omitted, the categories are derived from the items. An \"All\" chip is always prepended.",
|
|
41095
|
+
"items": {
|
|
41096
|
+
"types": [
|
|
41097
|
+
"string"
|
|
41098
|
+
]
|
|
41099
|
+
}
|
|
41100
|
+
},
|
|
41101
|
+
"searchPlaceholder": {
|
|
41102
|
+
"types": [
|
|
41103
|
+
"string"
|
|
41104
|
+
],
|
|
41105
|
+
"description": "Placeholder for the search input."
|
|
41106
|
+
},
|
|
41107
|
+
"renderThumbnail": {
|
|
41108
|
+
"types": [
|
|
41109
|
+
"function"
|
|
41110
|
+
],
|
|
41111
|
+
"description": "Renders the visual content of a cell (e.g. an emoji glyph or an image).",
|
|
41112
|
+
"required": true,
|
|
41113
|
+
"kind": "callback",
|
|
41114
|
+
"callbackArgs": [
|
|
41115
|
+
{
|
|
41116
|
+
"name": "item",
|
|
41117
|
+
"type": "object",
|
|
41118
|
+
"schema": {
|
|
41119
|
+
"types": [
|
|
41120
|
+
"object"
|
|
41121
|
+
],
|
|
41122
|
+
"properties": {
|
|
41123
|
+
"id": {
|
|
41124
|
+
"types": [
|
|
41125
|
+
"string"
|
|
41126
|
+
]
|
|
41127
|
+
},
|
|
41128
|
+
"label": {
|
|
41129
|
+
"types": [
|
|
41130
|
+
"string"
|
|
41131
|
+
]
|
|
41132
|
+
},
|
|
41133
|
+
"category": {
|
|
41134
|
+
"types": [
|
|
41135
|
+
"string"
|
|
41136
|
+
]
|
|
41137
|
+
}
|
|
41138
|
+
},
|
|
41139
|
+
"required": [
|
|
41140
|
+
"id",
|
|
41141
|
+
"label",
|
|
41142
|
+
"category"
|
|
41143
|
+
]
|
|
41144
|
+
}
|
|
41145
|
+
}
|
|
41146
|
+
],
|
|
41147
|
+
"renderCallback": true
|
|
41148
|
+
},
|
|
41149
|
+
"cellSize": {
|
|
41150
|
+
"types": [
|
|
41151
|
+
"number"
|
|
41152
|
+
],
|
|
41153
|
+
"description": "Cell edge length in px.",
|
|
41154
|
+
"numericEnumValues": [
|
|
41155
|
+
16,
|
|
41156
|
+
32,
|
|
41157
|
+
48
|
|
41158
|
+
],
|
|
41159
|
+
"default": 32
|
|
41160
|
+
},
|
|
41161
|
+
"className": {
|
|
41162
|
+
"types": [
|
|
41163
|
+
"string"
|
|
41164
|
+
],
|
|
41165
|
+
"description": "Additional CSS classes applied to the root."
|
|
41166
|
+
}
|
|
41167
|
+
}
|
|
41168
|
+
},
|
|
41169
|
+
"icon-picker": {
|
|
41170
|
+
"type": "icon-picker",
|
|
41171
|
+
"category": "component",
|
|
41172
|
+
"tier": "molecules",
|
|
41173
|
+
"family": "core",
|
|
41174
|
+
"description": "IconPicker component",
|
|
41175
|
+
"suggestedFor": [
|
|
41176
|
+
"icon",
|
|
41177
|
+
"picker",
|
|
41178
|
+
"icon picker"
|
|
41179
|
+
],
|
|
41180
|
+
"typicalSize": "medium",
|
|
41181
|
+
"propsSchema": {
|
|
41182
|
+
"value": {
|
|
41183
|
+
"types": [
|
|
41184
|
+
"string"
|
|
41185
|
+
],
|
|
41186
|
+
"description": "Currently selected icon name (kebab-case)."
|
|
41187
|
+
},
|
|
41188
|
+
"onChange": {
|
|
41189
|
+
"types": [
|
|
41190
|
+
"function"
|
|
41191
|
+
],
|
|
41192
|
+
"description": "Fired with the chosen icon's kebab-case name.",
|
|
41193
|
+
"required": true,
|
|
41194
|
+
"kind": "callback",
|
|
41195
|
+
"callbackArgs": [
|
|
41196
|
+
{
|
|
41197
|
+
"name": "name",
|
|
41198
|
+
"type": "string"
|
|
41199
|
+
}
|
|
41200
|
+
]
|
|
41201
|
+
},
|
|
41202
|
+
"className": {
|
|
41203
|
+
"types": [
|
|
41204
|
+
"string"
|
|
41205
|
+
],
|
|
41206
|
+
"description": "Additional CSS classes applied to the root."
|
|
41207
|
+
}
|
|
41208
|
+
}
|
|
41209
|
+
},
|
|
41210
|
+
"property-inspector": {
|
|
41211
|
+
"type": "property-inspector",
|
|
41212
|
+
"category": "debug",
|
|
41213
|
+
"tier": "molecules",
|
|
41214
|
+
"family": "core",
|
|
41215
|
+
"description": "PropertyInspector — Storybook-style controls panel for a trait's `config`. Derives one control per declared config field directly from the schema (`@almadar/core` `DeclaredTraitConfig`): `boolean → Switch`, `string` with `values → Select`, `number → numeric Input`, `string → Input`. Non-scalar fields (array/object/node/SExpr) are shown read-only. Fields group + collapse by `@tier`. The component is controlled — it emits `onChange(field, value)`; text/number commit on blur (so the host can re-render without hammering it).",
|
|
41216
|
+
"suggestedFor": [
|
|
41217
|
+
"property",
|
|
41218
|
+
"inspector",
|
|
41219
|
+
"property inspector"
|
|
41220
|
+
],
|
|
41221
|
+
"typicalSize": "medium",
|
|
41222
|
+
"propsSchema": {
|
|
41223
|
+
"className": {
|
|
41224
|
+
"types": [
|
|
41225
|
+
"string"
|
|
41226
|
+
],
|
|
41227
|
+
"description": "Additional CSS classes"
|
|
41228
|
+
},
|
|
41229
|
+
"isLoading": {
|
|
41230
|
+
"types": [
|
|
41231
|
+
"boolean"
|
|
41232
|
+
],
|
|
41233
|
+
"description": "Loading state indicator"
|
|
41234
|
+
},
|
|
41235
|
+
"error": {
|
|
41236
|
+
"types": [
|
|
41237
|
+
"object"
|
|
41238
|
+
],
|
|
41239
|
+
"description": "Error state (UiError)",
|
|
41240
|
+
"properties": {
|
|
41241
|
+
"message": {
|
|
41242
|
+
"types": [
|
|
41243
|
+
"string"
|
|
41244
|
+
]
|
|
41245
|
+
},
|
|
41246
|
+
"name": {
|
|
41247
|
+
"types": [
|
|
41248
|
+
"string"
|
|
41249
|
+
]
|
|
41250
|
+
},
|
|
41251
|
+
"code": {
|
|
41252
|
+
"types": [
|
|
41253
|
+
"string"
|
|
41254
|
+
]
|
|
41255
|
+
},
|
|
41256
|
+
"stack": {
|
|
41257
|
+
"types": [
|
|
41258
|
+
"string"
|
|
41259
|
+
]
|
|
41260
|
+
}
|
|
41261
|
+
},
|
|
41262
|
+
"propertyRequired": [
|
|
41263
|
+
"message"
|
|
41264
|
+
]
|
|
41265
|
+
},
|
|
41266
|
+
"sortBy": {
|
|
41267
|
+
"types": [
|
|
41268
|
+
"string"
|
|
41269
|
+
],
|
|
41270
|
+
"description": "Current sort field"
|
|
41271
|
+
},
|
|
41272
|
+
"sortDirection": {
|
|
41273
|
+
"types": [
|
|
41274
|
+
"string"
|
|
41275
|
+
],
|
|
41276
|
+
"description": "Current sort direction",
|
|
41277
|
+
"enumValues": [
|
|
41278
|
+
"asc",
|
|
41279
|
+
"desc"
|
|
41280
|
+
]
|
|
41281
|
+
},
|
|
41282
|
+
"searchValue": {
|
|
41283
|
+
"types": [
|
|
41284
|
+
"string"
|
|
41285
|
+
],
|
|
41286
|
+
"description": "Current search query value"
|
|
41287
|
+
},
|
|
41288
|
+
"page": {
|
|
41289
|
+
"types": [
|
|
41290
|
+
"number"
|
|
41291
|
+
],
|
|
41292
|
+
"description": "Current page number"
|
|
41293
|
+
},
|
|
41294
|
+
"pageSize": {
|
|
41295
|
+
"types": [
|
|
41296
|
+
"number"
|
|
41297
|
+
],
|
|
41298
|
+
"description": "Number of items per page"
|
|
41299
|
+
},
|
|
41300
|
+
"totalCount": {
|
|
41301
|
+
"types": [
|
|
41302
|
+
"number"
|
|
41303
|
+
],
|
|
41304
|
+
"description": "Total number of items"
|
|
41305
|
+
},
|
|
41306
|
+
"activeFilters": {
|
|
41307
|
+
"types": [
|
|
41308
|
+
"object"
|
|
41309
|
+
],
|
|
41310
|
+
"description": "Active filters"
|
|
41311
|
+
},
|
|
41312
|
+
"selectedIds": {
|
|
41313
|
+
"types": [
|
|
41314
|
+
"array"
|
|
41315
|
+
],
|
|
41316
|
+
"description": "Currently selected item IDs",
|
|
41317
|
+
"items": {
|
|
41318
|
+
"types": [
|
|
41319
|
+
"string",
|
|
41320
|
+
"number"
|
|
41321
|
+
]
|
|
41322
|
+
}
|
|
41323
|
+
},
|
|
41324
|
+
"config": {
|
|
41325
|
+
"types": [
|
|
41326
|
+
"object"
|
|
41327
|
+
],
|
|
41328
|
+
"description": "The trait's declared config schema (field name → declaration).",
|
|
41329
|
+
"required": true,
|
|
41330
|
+
"freeform": true
|
|
41331
|
+
},
|
|
41332
|
+
"values": {
|
|
41333
|
+
"types": [
|
|
41334
|
+
"object"
|
|
41335
|
+
],
|
|
41336
|
+
"description": "Current override values keyed by field name (falls back to each field's `default`).",
|
|
41337
|
+
"freeform": true
|
|
41338
|
+
},
|
|
41339
|
+
"onChange": {
|
|
41340
|
+
"types": [
|
|
41341
|
+
"function"
|
|
41342
|
+
],
|
|
41343
|
+
"description": "Fired when a control commits a new value.",
|
|
41344
|
+
"required": true,
|
|
41345
|
+
"kind": "callback",
|
|
41346
|
+
"callbackArgs": [
|
|
41347
|
+
{
|
|
41348
|
+
"name": "field",
|
|
41349
|
+
"type": "string"
|
|
41350
|
+
},
|
|
41351
|
+
{
|
|
41352
|
+
"name": "value",
|
|
41353
|
+
"type": "object"
|
|
41354
|
+
}
|
|
41355
|
+
]
|
|
41356
|
+
},
|
|
41357
|
+
"onReset": {
|
|
41358
|
+
"types": [
|
|
41359
|
+
"function"
|
|
41360
|
+
],
|
|
41361
|
+
"description": "Optional reset-to-defaults handler.",
|
|
41362
|
+
"kind": "callback",
|
|
41363
|
+
"callbackArgs": []
|
|
41364
|
+
},
|
|
41365
|
+
"title": {
|
|
41366
|
+
"types": [
|
|
41367
|
+
"string"
|
|
41368
|
+
],
|
|
41369
|
+
"description": "Panel heading (e.g. the trait name)."
|
|
41370
|
+
},
|
|
41371
|
+
"assets": {
|
|
41372
|
+
"types": [
|
|
41373
|
+
"object"
|
|
41374
|
+
],
|
|
41375
|
+
"description": "Browsable asset catalog supplied to `control: 'asset'` fields.",
|
|
41376
|
+
"freeform": true
|
|
41377
|
+
}
|
|
41378
|
+
}
|
|
41379
|
+
},
|
|
40967
41380
|
"heading": {
|
|
40968
41381
|
"type": "heading",
|
|
40969
41382
|
"category": "component",
|