pxengine 0.1.66 → 0.1.68
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.cjs +1343 -902
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +186 -5
- package/dist/index.d.ts +186 -5
- package/dist/index.mjs +1465 -1029
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +212 -6
- package/package.json +1 -1
package/dist/registry.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pxengine/ui",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"lastUpdated": "2026-04-
|
|
4
|
+
"lastUpdated": "2026-04-29T05:21:50.138Z",
|
|
5
5
|
"components": {
|
|
6
6
|
"AccordionAtom": {
|
|
7
7
|
"name": "AccordionAtom",
|
|
@@ -490,8 +490,13 @@
|
|
|
490
490
|
},
|
|
491
491
|
"action": {
|
|
492
492
|
"type": "string",
|
|
493
|
+
"required": true,
|
|
494
|
+
"description": "REQUIRED — Submission handler action.\n- \"submit\": Collects all sibling inputs and sends them as Q/A pairs to the agent via Run SSE\n- \"reset\": Clears all input values\n- \"cancel\": Closes/cancels the widget\n- \"next\" / \"back\": Multi-step navigation\n- \"custom\": User-defined handler via onAction prop"
|
|
495
|
+
},
|
|
496
|
+
"actionPayload": {
|
|
497
|
+
"type": "record<string, any>",
|
|
493
498
|
"required": false,
|
|
494
|
-
"description": ""
|
|
499
|
+
"description": "Optional payload key sent alongside Q/A pairs (e.g. agent name, custom intent)"
|
|
495
500
|
},
|
|
496
501
|
"disabled": {
|
|
497
502
|
"type": "boolean",
|
|
@@ -5839,6 +5844,21 @@
|
|
|
5839
5844
|
"required": true,
|
|
5840
5845
|
"description": ""
|
|
5841
5846
|
},
|
|
5847
|
+
"label": {
|
|
5848
|
+
"type": "string",
|
|
5849
|
+
"required": false,
|
|
5850
|
+
"description": ""
|
|
5851
|
+
},
|
|
5852
|
+
"question": {
|
|
5853
|
+
"type": "string",
|
|
5854
|
+
"required": false,
|
|
5855
|
+
"description": ""
|
|
5856
|
+
},
|
|
5857
|
+
"fieldKey": {
|
|
5858
|
+
"type": "string",
|
|
5859
|
+
"required": false,
|
|
5860
|
+
"description": ""
|
|
5861
|
+
},
|
|
5842
5862
|
"mode": {
|
|
5843
5863
|
"type": "enum",
|
|
5844
5864
|
"required": false,
|
|
@@ -6128,6 +6148,16 @@
|
|
|
6128
6148
|
"required": false,
|
|
6129
6149
|
"description": ""
|
|
6130
6150
|
},
|
|
6151
|
+
"question": {
|
|
6152
|
+
"type": "string",
|
|
6153
|
+
"required": false,
|
|
6154
|
+
"description": ""
|
|
6155
|
+
},
|
|
6156
|
+
"fieldKey": {
|
|
6157
|
+
"type": "string",
|
|
6158
|
+
"required": false,
|
|
6159
|
+
"description": ""
|
|
6160
|
+
},
|
|
6131
6161
|
"checked": {
|
|
6132
6162
|
"type": "boolean",
|
|
6133
6163
|
"required": false,
|
|
@@ -12031,12 +12061,14 @@
|
|
|
12031
12061
|
"description": "",
|
|
12032
12062
|
"enums": [
|
|
12033
12063
|
"number",
|
|
12064
|
+
"color",
|
|
12034
12065
|
"checkbox",
|
|
12035
12066
|
"radio",
|
|
12036
12067
|
"search",
|
|
12037
12068
|
"slider",
|
|
12038
12069
|
"switch",
|
|
12039
12070
|
"date",
|
|
12071
|
+
"time",
|
|
12040
12072
|
"text",
|
|
12041
12073
|
"email",
|
|
12042
12074
|
"password",
|
|
@@ -12045,13 +12077,20 @@
|
|
|
12045
12077
|
"textarea",
|
|
12046
12078
|
"select",
|
|
12047
12079
|
"otp",
|
|
12080
|
+
"datetime-local",
|
|
12081
|
+
"file",
|
|
12048
12082
|
"dropdown"
|
|
12049
12083
|
]
|
|
12050
12084
|
},
|
|
12051
12085
|
"label": {
|
|
12052
12086
|
"type": "string",
|
|
12053
12087
|
"required": false,
|
|
12054
|
-
"description": ""
|
|
12088
|
+
"description": "Visible label for the field — auto-used as the Q in Q/A submission if `question` is unset"
|
|
12089
|
+
},
|
|
12090
|
+
"question": {
|
|
12091
|
+
"type": "string",
|
|
12092
|
+
"required": false,
|
|
12093
|
+
"description": "Explicit Q text used when serializing this input for agent submission. Falls back to `label`."
|
|
12055
12094
|
},
|
|
12056
12095
|
"placeholder": {
|
|
12057
12096
|
"type": "string",
|
|
@@ -12088,6 +12127,11 @@
|
|
|
12088
12127
|
"required": false,
|
|
12089
12128
|
"description": ""
|
|
12090
12129
|
},
|
|
12130
|
+
"fieldKey": {
|
|
12131
|
+
"type": "string",
|
|
12132
|
+
"required": false,
|
|
12133
|
+
"description": "Stable key for the answer in Q/A submission. Defaults to id."
|
|
12134
|
+
},
|
|
12091
12135
|
"id": {
|
|
12092
12136
|
"type": "string",
|
|
12093
12137
|
"required": true,
|
|
@@ -12134,6 +12178,21 @@
|
|
|
12134
12178
|
"required": true,
|
|
12135
12179
|
"description": ""
|
|
12136
12180
|
},
|
|
12181
|
+
"label": {
|
|
12182
|
+
"type": "string",
|
|
12183
|
+
"required": false,
|
|
12184
|
+
"description": ""
|
|
12185
|
+
},
|
|
12186
|
+
"question": {
|
|
12187
|
+
"type": "string",
|
|
12188
|
+
"required": false,
|
|
12189
|
+
"description": ""
|
|
12190
|
+
},
|
|
12191
|
+
"fieldKey": {
|
|
12192
|
+
"type": "string",
|
|
12193
|
+
"required": false,
|
|
12194
|
+
"description": ""
|
|
12195
|
+
},
|
|
12137
12196
|
"length": {
|
|
12138
12197
|
"type": "number",
|
|
12139
12198
|
"required": true,
|
|
@@ -12546,6 +12605,21 @@
|
|
|
12546
12605
|
"required": true,
|
|
12547
12606
|
"description": ""
|
|
12548
12607
|
},
|
|
12608
|
+
"label": {
|
|
12609
|
+
"type": "string",
|
|
12610
|
+
"required": false,
|
|
12611
|
+
"description": ""
|
|
12612
|
+
},
|
|
12613
|
+
"question": {
|
|
12614
|
+
"type": "string",
|
|
12615
|
+
"required": false,
|
|
12616
|
+
"description": ""
|
|
12617
|
+
},
|
|
12618
|
+
"fieldKey": {
|
|
12619
|
+
"type": "string",
|
|
12620
|
+
"required": false,
|
|
12621
|
+
"description": ""
|
|
12622
|
+
},
|
|
12549
12623
|
"options": {
|
|
12550
12624
|
"type": "{ label: string; value: string; }[]",
|
|
12551
12625
|
"required": true,
|
|
@@ -12613,13 +12687,28 @@
|
|
|
12613
12687
|
"name": "RatingAtom",
|
|
12614
12688
|
"type": "atom",
|
|
12615
12689
|
"isBuilderComponent": true,
|
|
12616
|
-
"description": "RatingAtom\nA star rating component for display or user input.",
|
|
12690
|
+
"description": "RatingAtom\nA star rating component for display or user input, with optional label.",
|
|
12617
12691
|
"props": {
|
|
12618
12692
|
"type": {
|
|
12619
12693
|
"type": "\"rating\"",
|
|
12620
12694
|
"required": true,
|
|
12621
12695
|
"description": ""
|
|
12622
12696
|
},
|
|
12697
|
+
"label": {
|
|
12698
|
+
"type": "string",
|
|
12699
|
+
"required": false,
|
|
12700
|
+
"description": ""
|
|
12701
|
+
},
|
|
12702
|
+
"question": {
|
|
12703
|
+
"type": "string",
|
|
12704
|
+
"required": false,
|
|
12705
|
+
"description": ""
|
|
12706
|
+
},
|
|
12707
|
+
"fieldKey": {
|
|
12708
|
+
"type": "string",
|
|
12709
|
+
"required": false,
|
|
12710
|
+
"description": ""
|
|
12711
|
+
},
|
|
12623
12712
|
"value": {
|
|
12624
12713
|
"type": "number",
|
|
12625
12714
|
"required": true,
|
|
@@ -12949,13 +13038,28 @@
|
|
|
12949
13038
|
"name": "SliderAtom",
|
|
12950
13039
|
"type": "atom",
|
|
12951
13040
|
"isBuilderComponent": false,
|
|
12952
|
-
"description": "SliderAtom\nWraps shadcn Slider",
|
|
13041
|
+
"description": "SliderAtom\nWraps shadcn Slider with optional label",
|
|
12953
13042
|
"props": {
|
|
12954
13043
|
"type": {
|
|
12955
13044
|
"type": "\"slider\"",
|
|
12956
13045
|
"required": true,
|
|
12957
13046
|
"description": ""
|
|
12958
13047
|
},
|
|
13048
|
+
"label": {
|
|
13049
|
+
"type": "string",
|
|
13050
|
+
"required": false,
|
|
13051
|
+
"description": ""
|
|
13052
|
+
},
|
|
13053
|
+
"question": {
|
|
13054
|
+
"type": "string",
|
|
13055
|
+
"required": false,
|
|
13056
|
+
"description": ""
|
|
13057
|
+
},
|
|
13058
|
+
"fieldKey": {
|
|
13059
|
+
"type": "string",
|
|
13060
|
+
"required": false,
|
|
13061
|
+
"description": ""
|
|
13062
|
+
},
|
|
12959
13063
|
"defaultValue": {
|
|
12960
13064
|
"type": "number[]",
|
|
12961
13065
|
"required": false,
|
|
@@ -13083,6 +13187,16 @@
|
|
|
13083
13187
|
"required": false,
|
|
13084
13188
|
"description": ""
|
|
13085
13189
|
},
|
|
13190
|
+
"question": {
|
|
13191
|
+
"type": "string",
|
|
13192
|
+
"required": false,
|
|
13193
|
+
"description": ""
|
|
13194
|
+
},
|
|
13195
|
+
"fieldKey": {
|
|
13196
|
+
"type": "string",
|
|
13197
|
+
"required": false,
|
|
13198
|
+
"description": ""
|
|
13199
|
+
},
|
|
13086
13200
|
"checked": {
|
|
13087
13201
|
"type": "boolean",
|
|
13088
13202
|
"required": false,
|
|
@@ -13300,12 +13414,14 @@
|
|
|
13300
13414
|
"description": "",
|
|
13301
13415
|
"enums": [
|
|
13302
13416
|
"number",
|
|
13417
|
+
"color",
|
|
13303
13418
|
"checkbox",
|
|
13304
13419
|
"radio",
|
|
13305
13420
|
"search",
|
|
13306
13421
|
"slider",
|
|
13307
13422
|
"switch",
|
|
13308
13423
|
"date",
|
|
13424
|
+
"time",
|
|
13309
13425
|
"text",
|
|
13310
13426
|
"email",
|
|
13311
13427
|
"password",
|
|
@@ -13314,13 +13430,20 @@
|
|
|
13314
13430
|
"textarea",
|
|
13315
13431
|
"select",
|
|
13316
13432
|
"otp",
|
|
13433
|
+
"datetime-local",
|
|
13434
|
+
"file",
|
|
13317
13435
|
"dropdown"
|
|
13318
13436
|
]
|
|
13319
13437
|
},
|
|
13320
13438
|
"label": {
|
|
13321
13439
|
"type": "string",
|
|
13322
13440
|
"required": false,
|
|
13323
|
-
"description": ""
|
|
13441
|
+
"description": "Visible label for the field — auto-used as the Q in Q/A submission if `question` is unset"
|
|
13442
|
+
},
|
|
13443
|
+
"question": {
|
|
13444
|
+
"type": "string",
|
|
13445
|
+
"required": false,
|
|
13446
|
+
"description": "Explicit Q text used when serializing this input for agent submission. Falls back to `label`."
|
|
13324
13447
|
},
|
|
13325
13448
|
"placeholder": {
|
|
13326
13449
|
"type": "string",
|
|
@@ -13357,6 +13480,11 @@
|
|
|
13357
13480
|
"required": false,
|
|
13358
13481
|
"description": ""
|
|
13359
13482
|
},
|
|
13483
|
+
"fieldKey": {
|
|
13484
|
+
"type": "string",
|
|
13485
|
+
"required": false,
|
|
13486
|
+
"description": "Stable key for the answer in Q/A submission. Defaults to id."
|
|
13487
|
+
},
|
|
13360
13488
|
"id": {
|
|
13361
13489
|
"type": "string",
|
|
13362
13490
|
"required": true,
|
|
@@ -16296,6 +16424,84 @@
|
|
|
16296
16424
|
"preview": null,
|
|
16297
16425
|
"layoutHints": null
|
|
16298
16426
|
},
|
|
16427
|
+
"InputWidget": {
|
|
16428
|
+
"name": "InputWidget",
|
|
16429
|
+
"type": "molecule",
|
|
16430
|
+
"isBuilderComponent": true,
|
|
16431
|
+
"description": "InputWidget\n\nA self-contained input molecule that *guarantees*:\n 1. Every field has a label (no headless inputs)\n 2. A submit button is always rendered\n 3. On submit, all field values are formatted as Q/A pairs and handed\n back to the caller for transmission via Run SSE.\n\nThis is the canonical wrapper for any user-facing input widget built in\nthe widget builder.",
|
|
16432
|
+
"props": {
|
|
16433
|
+
"onSubmit": {
|
|
16434
|
+
"type": "(qamessage: string, fields: collectedfield[]) => void",
|
|
16435
|
+
"required": false,
|
|
16436
|
+
"description": "Called when the submit button is pressed.\nReceives the formatted Q/A message string AND the structured field list.\nCaller wires this to a Run SSE sendMessage handler."
|
|
16437
|
+
},
|
|
16438
|
+
"onAction": {
|
|
16439
|
+
"type": "(action: string, payload?: record<string, any>) => void",
|
|
16440
|
+
"required": false,
|
|
16441
|
+
"description": "Called for any non-submit button action (cancel, reset, custom)."
|
|
16442
|
+
},
|
|
16443
|
+
"isSubmitting": {
|
|
16444
|
+
"type": "boolean",
|
|
16445
|
+
"required": false,
|
|
16446
|
+
"defaultValue": "false",
|
|
16447
|
+
"description": ""
|
|
16448
|
+
},
|
|
16449
|
+
"id": {
|
|
16450
|
+
"type": "string",
|
|
16451
|
+
"required": true,
|
|
16452
|
+
"description": ""
|
|
16453
|
+
},
|
|
16454
|
+
"type": {
|
|
16455
|
+
"type": "\"input-widget\"",
|
|
16456
|
+
"required": true,
|
|
16457
|
+
"description": ""
|
|
16458
|
+
},
|
|
16459
|
+
"title": {
|
|
16460
|
+
"type": "string",
|
|
16461
|
+
"required": false,
|
|
16462
|
+
"description": "Heading shown above the field (optional — falls back to field label)."
|
|
16463
|
+
},
|
|
16464
|
+
"description": {
|
|
16465
|
+
"type": "string",
|
|
16466
|
+
"required": false,
|
|
16467
|
+
"description": "Description / helper text shown under the title (optional)."
|
|
16468
|
+
},
|
|
16469
|
+
"fields": {
|
|
16470
|
+
"type": "inputwidgetfield[]",
|
|
16471
|
+
"required": true,
|
|
16472
|
+
"description": "The fields that make up this input widget — at least one is required."
|
|
16473
|
+
},
|
|
16474
|
+
"submitButton": {
|
|
16475
|
+
"type": "enum",
|
|
16476
|
+
"required": false,
|
|
16477
|
+
"description": "Submit button config — auto-included with action: \"submit\" by default.",
|
|
16478
|
+
"enums": [
|
|
16479
|
+
"{ label?: string; action: string; actionPayload?: Record<string, any>; variant?: default",
|
|
16480
|
+
"secondary",
|
|
16481
|
+
"outline",
|
|
16482
|
+
"purple",
|
|
16483
|
+
"gradient; }"
|
|
16484
|
+
]
|
|
16485
|
+
},
|
|
16486
|
+
"secondaryButton": {
|
|
16487
|
+
"type": "{ label?: string; action: string; }",
|
|
16488
|
+
"required": false,
|
|
16489
|
+
"description": "Optional secondary button (cancel/reset/back)."
|
|
16490
|
+
},
|
|
16491
|
+
"className": {
|
|
16492
|
+
"type": "string",
|
|
16493
|
+
"required": false,
|
|
16494
|
+
"description": ""
|
|
16495
|
+
},
|
|
16496
|
+
"style": {
|
|
16497
|
+
"type": "cssproperties",
|
|
16498
|
+
"required": false,
|
|
16499
|
+
"description": ""
|
|
16500
|
+
}
|
|
16501
|
+
},
|
|
16502
|
+
"preview": null,
|
|
16503
|
+
"layoutHints": null
|
|
16504
|
+
},
|
|
16299
16505
|
"LoadingOverlay": {
|
|
16300
16506
|
"name": "LoadingOverlay",
|
|
16301
16507
|
"type": "molecule",
|