@almadar/patterns 2.25.0 → 2.25.1
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 +1 -1
- package/dist/event-contracts.json +1 -1
- package/dist/index.d.ts +360 -0
- package/dist/index.js +299 -12
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +297 -10
- package/dist/registry.json +297 -10
- package/package.json +8 -10
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-05-
|
|
4
|
+
exportedAt: "2026-05-11T04:42:37.745Z",
|
|
5
5
|
patterns: {
|
|
6
6
|
"entity-table": {
|
|
7
7
|
type: "entity-table",
|
|
@@ -25888,6 +25888,34 @@ var patterns_registry_default = {
|
|
|
25888
25888
|
description: "Click handler for the body of the pill (filter toggle)",
|
|
25889
25889
|
kind: "callback",
|
|
25890
25890
|
callbackArgs: []
|
|
25891
|
+
},
|
|
25892
|
+
clickEvent: {
|
|
25893
|
+
types: [
|
|
25894
|
+
"string"
|
|
25895
|
+
],
|
|
25896
|
+
description: "Event name dispatched via event bus when the pill body is clicked. Payload: { label }",
|
|
25897
|
+
kind: "event-ref",
|
|
25898
|
+
emitPayloadSchema: [
|
|
25899
|
+
{
|
|
25900
|
+
name: "label",
|
|
25901
|
+
type: "string",
|
|
25902
|
+
required: true
|
|
25903
|
+
}
|
|
25904
|
+
]
|
|
25905
|
+
},
|
|
25906
|
+
removeEvent: {
|
|
25907
|
+
types: [
|
|
25908
|
+
"string"
|
|
25909
|
+
],
|
|
25910
|
+
description: "Event name dispatched via event bus when the remove (\xD7) button is clicked. Payload: { label }",
|
|
25911
|
+
kind: "event-ref",
|
|
25912
|
+
emitPayloadSchema: [
|
|
25913
|
+
{
|
|
25914
|
+
name: "label",
|
|
25915
|
+
type: "string",
|
|
25916
|
+
required: true
|
|
25917
|
+
}
|
|
25918
|
+
]
|
|
25891
25919
|
}
|
|
25892
25920
|
}
|
|
25893
25921
|
},
|
|
@@ -25934,6 +25962,20 @@ var patterns_registry_default = {
|
|
|
25934
25962
|
}
|
|
25935
25963
|
]
|
|
25936
25964
|
},
|
|
25965
|
+
changeEvent: {
|
|
25966
|
+
types: [
|
|
25967
|
+
"string"
|
|
25968
|
+
],
|
|
25969
|
+
description: "Event name dispatched via event bus on change. Payload: { value: number | string }",
|
|
25970
|
+
kind: "event-ref",
|
|
25971
|
+
emitPayloadSchema: [
|
|
25972
|
+
{
|
|
25973
|
+
name: "value",
|
|
25974
|
+
type: "number",
|
|
25975
|
+
required: true
|
|
25976
|
+
}
|
|
25977
|
+
]
|
|
25978
|
+
},
|
|
25937
25979
|
disabled: {
|
|
25938
25980
|
types: [
|
|
25939
25981
|
"boolean"
|
|
@@ -26022,6 +26064,25 @@ var patterns_registry_default = {
|
|
|
26022
26064
|
}
|
|
26023
26065
|
]
|
|
26024
26066
|
},
|
|
26067
|
+
changeEvent: {
|
|
26068
|
+
types: [
|
|
26069
|
+
"string"
|
|
26070
|
+
],
|
|
26071
|
+
description: "Event name dispatched via event bus when a row's value changes. Payload: { rowId, value }",
|
|
26072
|
+
kind: "event-ref",
|
|
26073
|
+
emitPayloadSchema: [
|
|
26074
|
+
{
|
|
26075
|
+
name: "rowId",
|
|
26076
|
+
type: "string",
|
|
26077
|
+
required: true
|
|
26078
|
+
},
|
|
26079
|
+
{
|
|
26080
|
+
name: "value",
|
|
26081
|
+
type: "number",
|
|
26082
|
+
required: true
|
|
26083
|
+
}
|
|
26084
|
+
]
|
|
26085
|
+
},
|
|
26025
26086
|
disabled: {
|
|
26026
26087
|
types: [
|
|
26027
26088
|
"boolean"
|
|
@@ -26069,6 +26130,30 @@ var patterns_registry_default = {
|
|
|
26069
26130
|
}
|
|
26070
26131
|
]
|
|
26071
26132
|
},
|
|
26133
|
+
scanEvent: {
|
|
26134
|
+
types: [
|
|
26135
|
+
"string"
|
|
26136
|
+
],
|
|
26137
|
+
description: "scanEvent prop",
|
|
26138
|
+
kind: "event-ref",
|
|
26139
|
+
emitPayloadSchema: [
|
|
26140
|
+
{
|
|
26141
|
+
name: "text",
|
|
26142
|
+
type: "string",
|
|
26143
|
+
required: true
|
|
26144
|
+
},
|
|
26145
|
+
{
|
|
26146
|
+
name: "format",
|
|
26147
|
+
type: "string",
|
|
26148
|
+
required: true
|
|
26149
|
+
},
|
|
26150
|
+
{
|
|
26151
|
+
name: "timestamp",
|
|
26152
|
+
type: "number",
|
|
26153
|
+
required: true
|
|
26154
|
+
}
|
|
26155
|
+
]
|
|
26156
|
+
},
|
|
26072
26157
|
onError: {
|
|
26073
26158
|
types: [
|
|
26074
26159
|
"function"
|
|
@@ -26149,7 +26234,8 @@ var patterns_registry_default = {
|
|
|
26149
26234
|
description: "Current user's vote (null = no vote cast)",
|
|
26150
26235
|
enumValues: [
|
|
26151
26236
|
"up",
|
|
26152
|
-
"down"
|
|
26237
|
+
"down",
|
|
26238
|
+
"none"
|
|
26153
26239
|
]
|
|
26154
26240
|
},
|
|
26155
26241
|
onVote: {
|
|
@@ -26165,6 +26251,20 @@ var patterns_registry_default = {
|
|
|
26165
26251
|
}
|
|
26166
26252
|
]
|
|
26167
26253
|
},
|
|
26254
|
+
voteEvent: {
|
|
26255
|
+
types: [
|
|
26256
|
+
"string"
|
|
26257
|
+
],
|
|
26258
|
+
description: "Event name dispatched on the bus when a vote is cast. Payload: { next: VoteValue }.",
|
|
26259
|
+
kind: "event-ref",
|
|
26260
|
+
emitPayloadSchema: [
|
|
26261
|
+
{
|
|
26262
|
+
name: "next",
|
|
26263
|
+
type: "string",
|
|
26264
|
+
required: true
|
|
26265
|
+
}
|
|
26266
|
+
]
|
|
26267
|
+
},
|
|
26168
26268
|
disabled: {
|
|
26169
26269
|
types: [
|
|
26170
26270
|
"boolean"
|
|
@@ -26220,16 +26320,18 @@ var patterns_registry_default = {
|
|
|
26220
26320
|
propsSchema: {
|
|
26221
26321
|
questions: {
|
|
26222
26322
|
types: [
|
|
26223
|
-
"array"
|
|
26323
|
+
"array",
|
|
26324
|
+
"object"
|
|
26224
26325
|
],
|
|
26225
26326
|
description: "questions prop",
|
|
26226
26327
|
required: true
|
|
26227
26328
|
},
|
|
26228
26329
|
rules: {
|
|
26229
26330
|
types: [
|
|
26230
|
-
"array"
|
|
26331
|
+
"array",
|
|
26332
|
+
"object"
|
|
26231
26333
|
],
|
|
26232
|
-
description: "
|
|
26334
|
+
description: "Rules. Accepts either a typed array (direct consumers) or the runtime payload shape from a render-ui binding (`@payload.data`). Narrowed to `[]` internally when the value isn't an array.",
|
|
26233
26335
|
required: true
|
|
26234
26336
|
},
|
|
26235
26337
|
onRulesChange: {
|
|
@@ -26245,6 +26347,20 @@ var patterns_registry_default = {
|
|
|
26245
26347
|
}
|
|
26246
26348
|
]
|
|
26247
26349
|
},
|
|
26350
|
+
rulesChangeEvent: {
|
|
26351
|
+
types: [
|
|
26352
|
+
"string"
|
|
26353
|
+
],
|
|
26354
|
+
description: "Event name dispatched via event bus when rules change. Payload: `{ rules }`.",
|
|
26355
|
+
kind: "event-ref",
|
|
26356
|
+
emitPayloadSchema: [
|
|
26357
|
+
{
|
|
26358
|
+
name: "rules",
|
|
26359
|
+
type: "array",
|
|
26360
|
+
required: true
|
|
26361
|
+
}
|
|
26362
|
+
]
|
|
26363
|
+
},
|
|
26248
26364
|
readOnly: {
|
|
26249
26365
|
types: [
|
|
26250
26366
|
"boolean"
|
|
@@ -26339,6 +26455,67 @@ var patterns_registry_default = {
|
|
|
26339
26455
|
}
|
|
26340
26456
|
]
|
|
26341
26457
|
},
|
|
26458
|
+
voteEvent: {
|
|
26459
|
+
types: [
|
|
26460
|
+
"string"
|
|
26461
|
+
],
|
|
26462
|
+
description: "voteEvent prop",
|
|
26463
|
+
kind: "event-ref",
|
|
26464
|
+
emitPayloadSchema: [
|
|
26465
|
+
{
|
|
26466
|
+
name: "nodeId",
|
|
26467
|
+
type: "string",
|
|
26468
|
+
required: true
|
|
26469
|
+
},
|
|
26470
|
+
{
|
|
26471
|
+
name: "vote",
|
|
26472
|
+
type: "string",
|
|
26473
|
+
required: true
|
|
26474
|
+
}
|
|
26475
|
+
]
|
|
26476
|
+
},
|
|
26477
|
+
replyEvent: {
|
|
26478
|
+
types: [
|
|
26479
|
+
"string"
|
|
26480
|
+
],
|
|
26481
|
+
description: "replyEvent prop",
|
|
26482
|
+
kind: "event-ref",
|
|
26483
|
+
emitPayloadSchema: [
|
|
26484
|
+
{
|
|
26485
|
+
name: "parentNodeId",
|
|
26486
|
+
type: "string",
|
|
26487
|
+
required: true
|
|
26488
|
+
}
|
|
26489
|
+
]
|
|
26490
|
+
},
|
|
26491
|
+
flagEvent: {
|
|
26492
|
+
types: [
|
|
26493
|
+
"string"
|
|
26494
|
+
],
|
|
26495
|
+
description: "flagEvent prop",
|
|
26496
|
+
kind: "event-ref",
|
|
26497
|
+
emitPayloadSchema: [
|
|
26498
|
+
{
|
|
26499
|
+
name: "nodeId",
|
|
26500
|
+
type: "string",
|
|
26501
|
+
required: true
|
|
26502
|
+
}
|
|
26503
|
+
]
|
|
26504
|
+
},
|
|
26505
|
+
continueThreadEvent: {
|
|
26506
|
+
types: [
|
|
26507
|
+
"string"
|
|
26508
|
+
],
|
|
26509
|
+
description: "continueThreadEvent prop",
|
|
26510
|
+
kind: "event-ref",
|
|
26511
|
+
emitPayloadSchema: [
|
|
26512
|
+
{
|
|
26513
|
+
name: "nodeId",
|
|
26514
|
+
type: "string",
|
|
26515
|
+
required: true
|
|
26516
|
+
}
|
|
26517
|
+
]
|
|
26518
|
+
},
|
|
26342
26519
|
showActions: {
|
|
26343
26520
|
types: [
|
|
26344
26521
|
"boolean"
|
|
@@ -26369,7 +26546,7 @@ var patterns_registry_default = {
|
|
|
26369
26546
|
types: [
|
|
26370
26547
|
"array"
|
|
26371
26548
|
],
|
|
26372
|
-
description: "
|
|
26549
|
+
description: "Initial block payload. Accepts strongly-typed RichBlock[] from native callers and the wider EntityRow[] shape that orb-bound traits emit (orb `[object]` lowers to `Record<string, FieldValue | undefined>[]`, which is structurally EntityRow[]). Items missing id/type are normalized into paragraph blocks at mount."
|
|
26373
26550
|
},
|
|
26374
26551
|
onChange: {
|
|
26375
26552
|
types: [
|
|
@@ -26384,6 +26561,20 @@ var patterns_registry_default = {
|
|
|
26384
26561
|
}
|
|
26385
26562
|
]
|
|
26386
26563
|
},
|
|
26564
|
+
changeEvent: {
|
|
26565
|
+
types: [
|
|
26566
|
+
"string"
|
|
26567
|
+
],
|
|
26568
|
+
description: "changeEvent prop",
|
|
26569
|
+
kind: "event-ref",
|
|
26570
|
+
emitPayloadSchema: [
|
|
26571
|
+
{
|
|
26572
|
+
name: "blocks",
|
|
26573
|
+
type: "array",
|
|
26574
|
+
required: true
|
|
26575
|
+
}
|
|
26576
|
+
]
|
|
26577
|
+
},
|
|
26387
26578
|
readOnly: {
|
|
26388
26579
|
types: [
|
|
26389
26580
|
"boolean"
|
|
@@ -26423,9 +26614,10 @@ var patterns_registry_default = {
|
|
|
26423
26614
|
propsSchema: {
|
|
26424
26615
|
revisions: {
|
|
26425
26616
|
types: [
|
|
26426
|
-
"array"
|
|
26617
|
+
"array",
|
|
26618
|
+
"object"
|
|
26427
26619
|
],
|
|
26428
|
-
description: "All available revisions (at least 2).",
|
|
26620
|
+
description: "All available revisions (at least 2). Accepts either a typed array (direct consumers) or the runtime payload shape from a render-ui binding (`@payload.revisions`). Narrowed to `[]` internally when the value isn't an array.",
|
|
26429
26621
|
required: true
|
|
26430
26622
|
},
|
|
26431
26623
|
beforeId: {
|
|
@@ -26489,6 +26681,48 @@ var patterns_registry_default = {
|
|
|
26489
26681
|
}
|
|
26490
26682
|
]
|
|
26491
26683
|
},
|
|
26684
|
+
selectBeforeEvent: {
|
|
26685
|
+
types: [
|
|
26686
|
+
"string"
|
|
26687
|
+
],
|
|
26688
|
+
description: 'Event name dispatched via event bus when the "before" revision changes. Payload: { id }.',
|
|
26689
|
+
kind: "event-ref",
|
|
26690
|
+
emitPayloadSchema: [
|
|
26691
|
+
{
|
|
26692
|
+
name: "id",
|
|
26693
|
+
type: "string",
|
|
26694
|
+
required: true
|
|
26695
|
+
}
|
|
26696
|
+
]
|
|
26697
|
+
},
|
|
26698
|
+
selectAfterEvent: {
|
|
26699
|
+
types: [
|
|
26700
|
+
"string"
|
|
26701
|
+
],
|
|
26702
|
+
description: 'Event name dispatched via event bus when the "after" revision changes. Payload: { id }.',
|
|
26703
|
+
kind: "event-ref",
|
|
26704
|
+
emitPayloadSchema: [
|
|
26705
|
+
{
|
|
26706
|
+
name: "id",
|
|
26707
|
+
type: "string",
|
|
26708
|
+
required: true
|
|
26709
|
+
}
|
|
26710
|
+
]
|
|
26711
|
+
},
|
|
26712
|
+
revertEvent: {
|
|
26713
|
+
types: [
|
|
26714
|
+
"string"
|
|
26715
|
+
],
|
|
26716
|
+
description: "Event name dispatched via event bus when the user clicks revert. Payload: { id }.",
|
|
26717
|
+
kind: "event-ref",
|
|
26718
|
+
emitPayloadSchema: [
|
|
26719
|
+
{
|
|
26720
|
+
name: "id",
|
|
26721
|
+
type: "string",
|
|
26722
|
+
required: true
|
|
26723
|
+
}
|
|
26724
|
+
]
|
|
26725
|
+
},
|
|
26492
26726
|
language: {
|
|
26493
26727
|
types: [
|
|
26494
26728
|
"string"
|
|
@@ -26568,6 +26802,20 @@ var patterns_registry_default = {
|
|
|
26568
26802
|
}
|
|
26569
26803
|
]
|
|
26570
26804
|
},
|
|
26805
|
+
changeEvent: {
|
|
26806
|
+
types: [
|
|
26807
|
+
"string"
|
|
26808
|
+
],
|
|
26809
|
+
description: "changeEvent prop",
|
|
26810
|
+
kind: "event-ref",
|
|
26811
|
+
emitPayloadSchema: [
|
|
26812
|
+
{
|
|
26813
|
+
name: "selected",
|
|
26814
|
+
type: "array",
|
|
26815
|
+
required: true
|
|
26816
|
+
}
|
|
26817
|
+
]
|
|
26818
|
+
},
|
|
26571
26819
|
size: {
|
|
26572
26820
|
types: [
|
|
26573
26821
|
"string"
|
|
@@ -26599,9 +26847,10 @@ var patterns_registry_default = {
|
|
|
26599
26847
|
propsSchema: {
|
|
26600
26848
|
items: {
|
|
26601
26849
|
types: [
|
|
26602
|
-
"array"
|
|
26850
|
+
"array",
|
|
26851
|
+
"object"
|
|
26603
26852
|
],
|
|
26604
|
-
description: "
|
|
26853
|
+
description: "Items to render. Accepts either a typed array (direct consumers) or the runtime payload shape from a render-ui binding (`@payload.data`). The molecule narrows non-array values to `[]` and validates element shape at render time via the `id` / `x` / `y` guards.",
|
|
26605
26854
|
required: true
|
|
26606
26855
|
},
|
|
26607
26856
|
width: {
|
|
@@ -26662,6 +26911,44 @@ var patterns_registry_default = {
|
|
|
26662
26911
|
}
|
|
26663
26912
|
]
|
|
26664
26913
|
},
|
|
26914
|
+
selectEvent: {
|
|
26915
|
+
types: [
|
|
26916
|
+
"string"
|
|
26917
|
+
],
|
|
26918
|
+
description: "selectEvent prop",
|
|
26919
|
+
kind: "event-ref",
|
|
26920
|
+
emitPayloadSchema: [
|
|
26921
|
+
{
|
|
26922
|
+
name: "id",
|
|
26923
|
+
type: "string",
|
|
26924
|
+
required: true
|
|
26925
|
+
}
|
|
26926
|
+
]
|
|
26927
|
+
},
|
|
26928
|
+
moveEvent: {
|
|
26929
|
+
types: [
|
|
26930
|
+
"string"
|
|
26931
|
+
],
|
|
26932
|
+
description: "moveEvent prop",
|
|
26933
|
+
kind: "event-ref",
|
|
26934
|
+
emitPayloadSchema: [
|
|
26935
|
+
{
|
|
26936
|
+
name: "id",
|
|
26937
|
+
type: "string",
|
|
26938
|
+
required: true
|
|
26939
|
+
},
|
|
26940
|
+
{
|
|
26941
|
+
name: "x",
|
|
26942
|
+
type: "number",
|
|
26943
|
+
required: true
|
|
26944
|
+
},
|
|
26945
|
+
{
|
|
26946
|
+
name: "y",
|
|
26947
|
+
type: "number",
|
|
26948
|
+
required: true
|
|
26949
|
+
}
|
|
26950
|
+
]
|
|
26951
|
+
},
|
|
26665
26952
|
className: {
|
|
26666
26953
|
types: [
|
|
26667
26954
|
"string"
|
|
@@ -27596,7 +27883,7 @@ var integrators_registry_default = {
|
|
|
27596
27883
|
// src/component-mapping.json
|
|
27597
27884
|
var component_mapping_default = {
|
|
27598
27885
|
version: "1.0.0",
|
|
27599
|
-
exportedAt: "2026-05-
|
|
27886
|
+
exportedAt: "2026-05-11T04:42:37.745Z",
|
|
27600
27887
|
mappings: {
|
|
27601
27888
|
"page-header": {
|
|
27602
27889
|
component: "PageHeader",
|
|
@@ -29462,7 +29749,7 @@ var component_mapping_default = {
|
|
|
29462
29749
|
// src/event-contracts.json
|
|
29463
29750
|
var event_contracts_default = {
|
|
29464
29751
|
version: "1.0.0",
|
|
29465
|
-
exportedAt: "2026-05-
|
|
29752
|
+
exportedAt: "2026-05-11T04:42:37.745Z",
|
|
29466
29753
|
contracts: {
|
|
29467
29754
|
form: {
|
|
29468
29755
|
emits: [
|