@almadar/patterns 2.25.0 → 2.26.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 +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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-05-
|
|
3
|
+
"exportedAt": "2026-05-11T06:21:21.522Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -25887,6 +25887,34 @@
|
|
|
25887
25887
|
"description": "Click handler for the body of the pill (filter toggle)",
|
|
25888
25888
|
"kind": "callback",
|
|
25889
25889
|
"callbackArgs": []
|
|
25890
|
+
},
|
|
25891
|
+
"clickEvent": {
|
|
25892
|
+
"types": [
|
|
25893
|
+
"string"
|
|
25894
|
+
],
|
|
25895
|
+
"description": "Event name dispatched via event bus when the pill body is clicked. Payload: { label }",
|
|
25896
|
+
"kind": "event-ref",
|
|
25897
|
+
"emitPayloadSchema": [
|
|
25898
|
+
{
|
|
25899
|
+
"name": "label",
|
|
25900
|
+
"type": "string",
|
|
25901
|
+
"required": true
|
|
25902
|
+
}
|
|
25903
|
+
]
|
|
25904
|
+
},
|
|
25905
|
+
"removeEvent": {
|
|
25906
|
+
"types": [
|
|
25907
|
+
"string"
|
|
25908
|
+
],
|
|
25909
|
+
"description": "Event name dispatched via event bus when the remove (×) button is clicked. Payload: { label }",
|
|
25910
|
+
"kind": "event-ref",
|
|
25911
|
+
"emitPayloadSchema": [
|
|
25912
|
+
{
|
|
25913
|
+
"name": "label",
|
|
25914
|
+
"type": "string",
|
|
25915
|
+
"required": true
|
|
25916
|
+
}
|
|
25917
|
+
]
|
|
25890
25918
|
}
|
|
25891
25919
|
}
|
|
25892
25920
|
},
|
|
@@ -25933,6 +25961,20 @@
|
|
|
25933
25961
|
}
|
|
25934
25962
|
]
|
|
25935
25963
|
},
|
|
25964
|
+
"changeEvent": {
|
|
25965
|
+
"types": [
|
|
25966
|
+
"string"
|
|
25967
|
+
],
|
|
25968
|
+
"description": "Event name dispatched via event bus on change. Payload: { value: number | string }",
|
|
25969
|
+
"kind": "event-ref",
|
|
25970
|
+
"emitPayloadSchema": [
|
|
25971
|
+
{
|
|
25972
|
+
"name": "value",
|
|
25973
|
+
"type": "number",
|
|
25974
|
+
"required": true
|
|
25975
|
+
}
|
|
25976
|
+
]
|
|
25977
|
+
},
|
|
25936
25978
|
"disabled": {
|
|
25937
25979
|
"types": [
|
|
25938
25980
|
"boolean"
|
|
@@ -26021,6 +26063,25 @@
|
|
|
26021
26063
|
}
|
|
26022
26064
|
]
|
|
26023
26065
|
},
|
|
26066
|
+
"changeEvent": {
|
|
26067
|
+
"types": [
|
|
26068
|
+
"string"
|
|
26069
|
+
],
|
|
26070
|
+
"description": "Event name dispatched via event bus when a row's value changes. Payload: { rowId, value }",
|
|
26071
|
+
"kind": "event-ref",
|
|
26072
|
+
"emitPayloadSchema": [
|
|
26073
|
+
{
|
|
26074
|
+
"name": "rowId",
|
|
26075
|
+
"type": "string",
|
|
26076
|
+
"required": true
|
|
26077
|
+
},
|
|
26078
|
+
{
|
|
26079
|
+
"name": "value",
|
|
26080
|
+
"type": "number",
|
|
26081
|
+
"required": true
|
|
26082
|
+
}
|
|
26083
|
+
]
|
|
26084
|
+
},
|
|
26024
26085
|
"disabled": {
|
|
26025
26086
|
"types": [
|
|
26026
26087
|
"boolean"
|
|
@@ -26068,6 +26129,30 @@
|
|
|
26068
26129
|
}
|
|
26069
26130
|
]
|
|
26070
26131
|
},
|
|
26132
|
+
"scanEvent": {
|
|
26133
|
+
"types": [
|
|
26134
|
+
"string"
|
|
26135
|
+
],
|
|
26136
|
+
"description": "scanEvent prop",
|
|
26137
|
+
"kind": "event-ref",
|
|
26138
|
+
"emitPayloadSchema": [
|
|
26139
|
+
{
|
|
26140
|
+
"name": "text",
|
|
26141
|
+
"type": "string",
|
|
26142
|
+
"required": true
|
|
26143
|
+
},
|
|
26144
|
+
{
|
|
26145
|
+
"name": "format",
|
|
26146
|
+
"type": "string",
|
|
26147
|
+
"required": true
|
|
26148
|
+
},
|
|
26149
|
+
{
|
|
26150
|
+
"name": "timestamp",
|
|
26151
|
+
"type": "number",
|
|
26152
|
+
"required": true
|
|
26153
|
+
}
|
|
26154
|
+
]
|
|
26155
|
+
},
|
|
26071
26156
|
"onError": {
|
|
26072
26157
|
"types": [
|
|
26073
26158
|
"function"
|
|
@@ -26148,7 +26233,8 @@
|
|
|
26148
26233
|
"description": "Current user's vote (null = no vote cast)",
|
|
26149
26234
|
"enumValues": [
|
|
26150
26235
|
"up",
|
|
26151
|
-
"down"
|
|
26236
|
+
"down",
|
|
26237
|
+
"none"
|
|
26152
26238
|
]
|
|
26153
26239
|
},
|
|
26154
26240
|
"onVote": {
|
|
@@ -26164,6 +26250,20 @@
|
|
|
26164
26250
|
}
|
|
26165
26251
|
]
|
|
26166
26252
|
},
|
|
26253
|
+
"voteEvent": {
|
|
26254
|
+
"types": [
|
|
26255
|
+
"string"
|
|
26256
|
+
],
|
|
26257
|
+
"description": "Event name dispatched on the bus when a vote is cast. Payload: { next: VoteValue }.",
|
|
26258
|
+
"kind": "event-ref",
|
|
26259
|
+
"emitPayloadSchema": [
|
|
26260
|
+
{
|
|
26261
|
+
"name": "next",
|
|
26262
|
+
"type": "string",
|
|
26263
|
+
"required": true
|
|
26264
|
+
}
|
|
26265
|
+
]
|
|
26266
|
+
},
|
|
26167
26267
|
"disabled": {
|
|
26168
26268
|
"types": [
|
|
26169
26269
|
"boolean"
|
|
@@ -26219,16 +26319,18 @@
|
|
|
26219
26319
|
"propsSchema": {
|
|
26220
26320
|
"questions": {
|
|
26221
26321
|
"types": [
|
|
26222
|
-
"array"
|
|
26322
|
+
"array",
|
|
26323
|
+
"object"
|
|
26223
26324
|
],
|
|
26224
26325
|
"description": "questions prop",
|
|
26225
26326
|
"required": true
|
|
26226
26327
|
},
|
|
26227
26328
|
"rules": {
|
|
26228
26329
|
"types": [
|
|
26229
|
-
"array"
|
|
26330
|
+
"array",
|
|
26331
|
+
"object"
|
|
26230
26332
|
],
|
|
26231
|
-
"description": "
|
|
26333
|
+
"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.",
|
|
26232
26334
|
"required": true
|
|
26233
26335
|
},
|
|
26234
26336
|
"onRulesChange": {
|
|
@@ -26244,6 +26346,20 @@
|
|
|
26244
26346
|
}
|
|
26245
26347
|
]
|
|
26246
26348
|
},
|
|
26349
|
+
"rulesChangeEvent": {
|
|
26350
|
+
"types": [
|
|
26351
|
+
"string"
|
|
26352
|
+
],
|
|
26353
|
+
"description": "Event name dispatched via event bus when rules change. Payload: `{ rules }`.",
|
|
26354
|
+
"kind": "event-ref",
|
|
26355
|
+
"emitPayloadSchema": [
|
|
26356
|
+
{
|
|
26357
|
+
"name": "rules",
|
|
26358
|
+
"type": "array",
|
|
26359
|
+
"required": true
|
|
26360
|
+
}
|
|
26361
|
+
]
|
|
26362
|
+
},
|
|
26247
26363
|
"readOnly": {
|
|
26248
26364
|
"types": [
|
|
26249
26365
|
"boolean"
|
|
@@ -26338,6 +26454,67 @@
|
|
|
26338
26454
|
}
|
|
26339
26455
|
]
|
|
26340
26456
|
},
|
|
26457
|
+
"voteEvent": {
|
|
26458
|
+
"types": [
|
|
26459
|
+
"string"
|
|
26460
|
+
],
|
|
26461
|
+
"description": "voteEvent prop",
|
|
26462
|
+
"kind": "event-ref",
|
|
26463
|
+
"emitPayloadSchema": [
|
|
26464
|
+
{
|
|
26465
|
+
"name": "nodeId",
|
|
26466
|
+
"type": "string",
|
|
26467
|
+
"required": true
|
|
26468
|
+
},
|
|
26469
|
+
{
|
|
26470
|
+
"name": "vote",
|
|
26471
|
+
"type": "string",
|
|
26472
|
+
"required": true
|
|
26473
|
+
}
|
|
26474
|
+
]
|
|
26475
|
+
},
|
|
26476
|
+
"replyEvent": {
|
|
26477
|
+
"types": [
|
|
26478
|
+
"string"
|
|
26479
|
+
],
|
|
26480
|
+
"description": "replyEvent prop",
|
|
26481
|
+
"kind": "event-ref",
|
|
26482
|
+
"emitPayloadSchema": [
|
|
26483
|
+
{
|
|
26484
|
+
"name": "parentNodeId",
|
|
26485
|
+
"type": "string",
|
|
26486
|
+
"required": true
|
|
26487
|
+
}
|
|
26488
|
+
]
|
|
26489
|
+
},
|
|
26490
|
+
"flagEvent": {
|
|
26491
|
+
"types": [
|
|
26492
|
+
"string"
|
|
26493
|
+
],
|
|
26494
|
+
"description": "flagEvent prop",
|
|
26495
|
+
"kind": "event-ref",
|
|
26496
|
+
"emitPayloadSchema": [
|
|
26497
|
+
{
|
|
26498
|
+
"name": "nodeId",
|
|
26499
|
+
"type": "string",
|
|
26500
|
+
"required": true
|
|
26501
|
+
}
|
|
26502
|
+
]
|
|
26503
|
+
},
|
|
26504
|
+
"continueThreadEvent": {
|
|
26505
|
+
"types": [
|
|
26506
|
+
"string"
|
|
26507
|
+
],
|
|
26508
|
+
"description": "continueThreadEvent prop",
|
|
26509
|
+
"kind": "event-ref",
|
|
26510
|
+
"emitPayloadSchema": [
|
|
26511
|
+
{
|
|
26512
|
+
"name": "nodeId",
|
|
26513
|
+
"type": "string",
|
|
26514
|
+
"required": true
|
|
26515
|
+
}
|
|
26516
|
+
]
|
|
26517
|
+
},
|
|
26341
26518
|
"showActions": {
|
|
26342
26519
|
"types": [
|
|
26343
26520
|
"boolean"
|
|
@@ -26368,7 +26545,7 @@
|
|
|
26368
26545
|
"types": [
|
|
26369
26546
|
"array"
|
|
26370
26547
|
],
|
|
26371
|
-
"description": "
|
|
26548
|
+
"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."
|
|
26372
26549
|
},
|
|
26373
26550
|
"onChange": {
|
|
26374
26551
|
"types": [
|
|
@@ -26383,6 +26560,20 @@
|
|
|
26383
26560
|
}
|
|
26384
26561
|
]
|
|
26385
26562
|
},
|
|
26563
|
+
"changeEvent": {
|
|
26564
|
+
"types": [
|
|
26565
|
+
"string"
|
|
26566
|
+
],
|
|
26567
|
+
"description": "changeEvent prop",
|
|
26568
|
+
"kind": "event-ref",
|
|
26569
|
+
"emitPayloadSchema": [
|
|
26570
|
+
{
|
|
26571
|
+
"name": "blocks",
|
|
26572
|
+
"type": "array",
|
|
26573
|
+
"required": true
|
|
26574
|
+
}
|
|
26575
|
+
]
|
|
26576
|
+
},
|
|
26386
26577
|
"readOnly": {
|
|
26387
26578
|
"types": [
|
|
26388
26579
|
"boolean"
|
|
@@ -26422,9 +26613,10 @@
|
|
|
26422
26613
|
"propsSchema": {
|
|
26423
26614
|
"revisions": {
|
|
26424
26615
|
"types": [
|
|
26425
|
-
"array"
|
|
26616
|
+
"array",
|
|
26617
|
+
"object"
|
|
26426
26618
|
],
|
|
26427
|
-
"description": "All available revisions (at least 2).",
|
|
26619
|
+
"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.",
|
|
26428
26620
|
"required": true
|
|
26429
26621
|
},
|
|
26430
26622
|
"beforeId": {
|
|
@@ -26488,6 +26680,48 @@
|
|
|
26488
26680
|
}
|
|
26489
26681
|
]
|
|
26490
26682
|
},
|
|
26683
|
+
"selectBeforeEvent": {
|
|
26684
|
+
"types": [
|
|
26685
|
+
"string"
|
|
26686
|
+
],
|
|
26687
|
+
"description": "Event name dispatched via event bus when the \"before\" revision changes. Payload: { id }.",
|
|
26688
|
+
"kind": "event-ref",
|
|
26689
|
+
"emitPayloadSchema": [
|
|
26690
|
+
{
|
|
26691
|
+
"name": "id",
|
|
26692
|
+
"type": "string",
|
|
26693
|
+
"required": true
|
|
26694
|
+
}
|
|
26695
|
+
]
|
|
26696
|
+
},
|
|
26697
|
+
"selectAfterEvent": {
|
|
26698
|
+
"types": [
|
|
26699
|
+
"string"
|
|
26700
|
+
],
|
|
26701
|
+
"description": "Event name dispatched via event bus when the \"after\" revision changes. Payload: { id }.",
|
|
26702
|
+
"kind": "event-ref",
|
|
26703
|
+
"emitPayloadSchema": [
|
|
26704
|
+
{
|
|
26705
|
+
"name": "id",
|
|
26706
|
+
"type": "string",
|
|
26707
|
+
"required": true
|
|
26708
|
+
}
|
|
26709
|
+
]
|
|
26710
|
+
},
|
|
26711
|
+
"revertEvent": {
|
|
26712
|
+
"types": [
|
|
26713
|
+
"string"
|
|
26714
|
+
],
|
|
26715
|
+
"description": "Event name dispatched via event bus when the user clicks revert. Payload: { id }.",
|
|
26716
|
+
"kind": "event-ref",
|
|
26717
|
+
"emitPayloadSchema": [
|
|
26718
|
+
{
|
|
26719
|
+
"name": "id",
|
|
26720
|
+
"type": "string",
|
|
26721
|
+
"required": true
|
|
26722
|
+
}
|
|
26723
|
+
]
|
|
26724
|
+
},
|
|
26491
26725
|
"language": {
|
|
26492
26726
|
"types": [
|
|
26493
26727
|
"string"
|
|
@@ -26567,6 +26801,20 @@
|
|
|
26567
26801
|
}
|
|
26568
26802
|
]
|
|
26569
26803
|
},
|
|
26804
|
+
"changeEvent": {
|
|
26805
|
+
"types": [
|
|
26806
|
+
"string"
|
|
26807
|
+
],
|
|
26808
|
+
"description": "changeEvent prop",
|
|
26809
|
+
"kind": "event-ref",
|
|
26810
|
+
"emitPayloadSchema": [
|
|
26811
|
+
{
|
|
26812
|
+
"name": "selected",
|
|
26813
|
+
"type": "array",
|
|
26814
|
+
"required": true
|
|
26815
|
+
}
|
|
26816
|
+
]
|
|
26817
|
+
},
|
|
26570
26818
|
"size": {
|
|
26571
26819
|
"types": [
|
|
26572
26820
|
"string"
|
|
@@ -26598,9 +26846,10 @@
|
|
|
26598
26846
|
"propsSchema": {
|
|
26599
26847
|
"items": {
|
|
26600
26848
|
"types": [
|
|
26601
|
-
"array"
|
|
26849
|
+
"array",
|
|
26850
|
+
"object"
|
|
26602
26851
|
],
|
|
26603
|
-
"description": "
|
|
26852
|
+
"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.",
|
|
26604
26853
|
"required": true
|
|
26605
26854
|
},
|
|
26606
26855
|
"width": {
|
|
@@ -26661,6 +26910,44 @@
|
|
|
26661
26910
|
}
|
|
26662
26911
|
]
|
|
26663
26912
|
},
|
|
26913
|
+
"selectEvent": {
|
|
26914
|
+
"types": [
|
|
26915
|
+
"string"
|
|
26916
|
+
],
|
|
26917
|
+
"description": "selectEvent prop",
|
|
26918
|
+
"kind": "event-ref",
|
|
26919
|
+
"emitPayloadSchema": [
|
|
26920
|
+
{
|
|
26921
|
+
"name": "id",
|
|
26922
|
+
"type": "string",
|
|
26923
|
+
"required": true
|
|
26924
|
+
}
|
|
26925
|
+
]
|
|
26926
|
+
},
|
|
26927
|
+
"moveEvent": {
|
|
26928
|
+
"types": [
|
|
26929
|
+
"string"
|
|
26930
|
+
],
|
|
26931
|
+
"description": "moveEvent prop",
|
|
26932
|
+
"kind": "event-ref",
|
|
26933
|
+
"emitPayloadSchema": [
|
|
26934
|
+
{
|
|
26935
|
+
"name": "id",
|
|
26936
|
+
"type": "string",
|
|
26937
|
+
"required": true
|
|
26938
|
+
},
|
|
26939
|
+
{
|
|
26940
|
+
"name": "x",
|
|
26941
|
+
"type": "number",
|
|
26942
|
+
"required": true
|
|
26943
|
+
},
|
|
26944
|
+
{
|
|
26945
|
+
"name": "y",
|
|
26946
|
+
"type": "number",
|
|
26947
|
+
"required": true
|
|
26948
|
+
}
|
|
26949
|
+
]
|
|
26950
|
+
},
|
|
26664
26951
|
"className": {
|
|
26665
26952
|
"types": [
|
|
26666
26953
|
"string"
|