pxengine 0.1.159 → 0.1.160
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 +2489 -2242
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +149 -116
- package/dist/index.d.ts +149 -116
- package/dist/index.mjs +2429 -2182
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +92 -199
- 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-09-
|
|
4
|
+
"lastUpdated": "2026-09-21T08:12:00.867Z",
|
|
5
5
|
"components": {
|
|
6
6
|
"AccordionAtom": {
|
|
7
7
|
"name": "AccordionAtom",
|
|
@@ -8673,60 +8673,6 @@
|
|
|
8673
8673
|
},
|
|
8674
8674
|
"category": null
|
|
8675
8675
|
},
|
|
8676
|
-
"FilterBar": {
|
|
8677
|
-
"name": "FilterBar",
|
|
8678
|
-
"type": "molecule",
|
|
8679
|
-
"isBuilderComponent": true,
|
|
8680
|
-
"description": "FilterBar\nA horizontal bar with active filter chips and search.",
|
|
8681
|
-
"props": {
|
|
8682
|
-
"type": {
|
|
8683
|
-
"type": "\"filter-bar\"",
|
|
8684
|
-
"required": true,
|
|
8685
|
-
"description": ""
|
|
8686
|
-
},
|
|
8687
|
-
"filters": {
|
|
8688
|
-
"type": "{ label: string; value: string; active?: boolean; }[]",
|
|
8689
|
-
"required": true,
|
|
8690
|
-
"description": ""
|
|
8691
|
-
},
|
|
8692
|
-
"showSearch": {
|
|
8693
|
-
"type": "boolean",
|
|
8694
|
-
"required": false,
|
|
8695
|
-
"defaultValue": "true",
|
|
8696
|
-
"description": ""
|
|
8697
|
-
},
|
|
8698
|
-
"id": {
|
|
8699
|
-
"type": "string",
|
|
8700
|
-
"required": true,
|
|
8701
|
-
"description": ""
|
|
8702
|
-
},
|
|
8703
|
-
"className": {
|
|
8704
|
-
"type": "string",
|
|
8705
|
-
"required": false,
|
|
8706
|
-
"description": ""
|
|
8707
|
-
},
|
|
8708
|
-
"style": {
|
|
8709
|
-
"type": "cssproperties",
|
|
8710
|
-
"required": false,
|
|
8711
|
-
"description": ""
|
|
8712
|
-
},
|
|
8713
|
-
"onFilterToggle": {
|
|
8714
|
-
"type": "(val: string) => void",
|
|
8715
|
-
"required": false,
|
|
8716
|
-
"description": ""
|
|
8717
|
-
},
|
|
8718
|
-
"onSearch": {
|
|
8719
|
-
"type": "(val: string) => void",
|
|
8720
|
-
"required": false,
|
|
8721
|
-
"description": ""
|
|
8722
|
-
}
|
|
8723
|
-
},
|
|
8724
|
-
"preview": null,
|
|
8725
|
-
"layoutHints": {
|
|
8726
|
-
"height": 90
|
|
8727
|
-
},
|
|
8728
|
-
"category": "form"
|
|
8729
|
-
},
|
|
8730
8676
|
"FormCard": {
|
|
8731
8677
|
"name": "FormCard",
|
|
8732
8678
|
"type": "molecule",
|
|
@@ -10060,6 +10006,97 @@
|
|
|
10060
10006
|
},
|
|
10061
10007
|
"category": "list"
|
|
10062
10008
|
},
|
|
10009
|
+
"QuestionnaireCard": {
|
|
10010
|
+
"name": "QuestionnaireCard",
|
|
10011
|
+
"type": "molecule",
|
|
10012
|
+
"isBuilderComponent": true,
|
|
10013
|
+
"description": "QuestionnaireCard\n\nA molecule for asking a themed set of questions as one paginated card,\ninstead of one MCQCard block per question. Modeled on the\nClaude/ChatGPT onboarding-preferences UI: dark rounded card, minimal\nheader with pagination chevrons + \"X of N\" + close, plain option rows,\nsmall pill action button.\n\nSelf-contained: when `sessionId` + `sendMessage` are provided, it manages\nits own persistence and agent communication, keyed by\n(sessionId, cardId, questionId) since one card instance holds multiple\nquestions.",
|
|
10014
|
+
"props": {
|
|
10015
|
+
"questions": {
|
|
10016
|
+
"type": "questionnairequestion[]",
|
|
10017
|
+
"required": true,
|
|
10018
|
+
"description": "The set of questions to ask, in order."
|
|
10019
|
+
},
|
|
10020
|
+
"cardId": {
|
|
10021
|
+
"type": "string",
|
|
10022
|
+
"required": false,
|
|
10023
|
+
"description": "Stable identifier for this card instance, used (together with sessionId\nand each question's id) to key persisted answers. Defaults to a hash of\nthe question ids/text, so the same schema resolves to the same card\nacross reloads without one being explicitly provided."
|
|
10024
|
+
},
|
|
10025
|
+
"answers": {
|
|
10026
|
+
"type": "record<string, questionnaireanswer>",
|
|
10027
|
+
"required": false,
|
|
10028
|
+
"description": "Pre-existing answers, keyed by questionId (historical/reload view)."
|
|
10029
|
+
},
|
|
10030
|
+
"onAnswer": {
|
|
10031
|
+
"type": "(answer: questionnaireanswer) => void",
|
|
10032
|
+
"required": false,
|
|
10033
|
+
"description": "Fires whenever a question is answered, edited, or skipped."
|
|
10034
|
+
},
|
|
10035
|
+
"onComplete": {
|
|
10036
|
+
"type": "(answers: record<string, questionnaireanswer>) => void",
|
|
10037
|
+
"required": false,
|
|
10038
|
+
"description": "Fires once every question has been answered or skipped."
|
|
10039
|
+
},
|
|
10040
|
+
"onClose": {
|
|
10041
|
+
"type": "() => void",
|
|
10042
|
+
"required": false,
|
|
10043
|
+
"description": "Fires when the user dismisses the whole card via the close (X) button."
|
|
10044
|
+
},
|
|
10045
|
+
"isLatestMessage": {
|
|
10046
|
+
"type": "boolean",
|
|
10047
|
+
"required": false,
|
|
10048
|
+
"description": "Whether this message is the latest (controls interactivity). Chevron\nnavigation stays available even when false, so a historical card can\nstill be browsed read-only."
|
|
10049
|
+
},
|
|
10050
|
+
"isLoading": {
|
|
10051
|
+
"type": "boolean",
|
|
10052
|
+
"required": false,
|
|
10053
|
+
"description": "Loading state during submission."
|
|
10054
|
+
},
|
|
10055
|
+
"className": {
|
|
10056
|
+
"type": "string",
|
|
10057
|
+
"required": false,
|
|
10058
|
+
"description": "Custom wrapper class name."
|
|
10059
|
+
},
|
|
10060
|
+
"onAction": {
|
|
10061
|
+
"type": "(action: any) => void",
|
|
10062
|
+
"required": false,
|
|
10063
|
+
"description": "Optional action callback for external state management (e.g. PXEngine)."
|
|
10064
|
+
},
|
|
10065
|
+
"disabled": {
|
|
10066
|
+
"type": "boolean",
|
|
10067
|
+
"required": false,
|
|
10068
|
+
"description": "Whether the interaction is disabled externally."
|
|
10069
|
+
},
|
|
10070
|
+
"theme": {
|
|
10071
|
+
"type": "widgettheme",
|
|
10072
|
+
"required": false,
|
|
10073
|
+
"description": "Optional brand theme."
|
|
10074
|
+
},
|
|
10075
|
+
"sessionId": {
|
|
10076
|
+
"type": "string",
|
|
10077
|
+
"required": false,
|
|
10078
|
+
"description": "Session ID for self-contained persistence."
|
|
10079
|
+
},
|
|
10080
|
+
"sendMessage": {
|
|
10081
|
+
"type": "(text: string) => void",
|
|
10082
|
+
"required": false,
|
|
10083
|
+
"description": "Callback to send a message to the agent. Called once per question, the\nfirst time the user navigates past it (or when the questionnaire\ncompletes / is closed) with any unrecorded answers still pending."
|
|
10084
|
+
},
|
|
10085
|
+
"fetchSelections": {
|
|
10086
|
+
"type": "(sessionid: string) => promise<record<string, string>>",
|
|
10087
|
+
"required": false,
|
|
10088
|
+
"description": "Custom fetcher for loading existing answers for this session.\nDefaults to hitting the generic custom-agent session-state endpoint\n(`state_key: \"questionnaire_selections\"`), the same infra MCQCard's\ndefault fetchers build on. Returns a flat map of\n`${cardId}::${questionId}` -> JSON-encoded answer string."
|
|
10089
|
+
},
|
|
10090
|
+
"persistSelection": {
|
|
10091
|
+
"type": "(sessionid: string, questionkey: string, value: string) => promise<void>",
|
|
10092
|
+
"required": false,
|
|
10093
|
+
"description": "Custom persister for a single question's answer, keyed by\n`${cardId}::${questionId}` — mirrors MCQCard's\nfetchSelections/persistSelection signature, extended to key by\n(sessionId, cardId, questionId) since a card instance now holds\nmultiple questions."
|
|
10094
|
+
}
|
|
10095
|
+
},
|
|
10096
|
+
"preview": null,
|
|
10097
|
+
"layoutHints": null,
|
|
10098
|
+
"category": null
|
|
10099
|
+
},
|
|
10063
10100
|
"RecommendationCard": {
|
|
10064
10101
|
"name": "RecommendationCard",
|
|
10065
10102
|
"type": "molecule",
|
|
@@ -10618,50 +10655,6 @@
|
|
|
10618
10655
|
"layoutHints": null,
|
|
10619
10656
|
"category": null
|
|
10620
10657
|
},
|
|
10621
|
-
"TagCloud": {
|
|
10622
|
-
"name": "TagCloud",
|
|
10623
|
-
"type": "molecule",
|
|
10624
|
-
"isBuilderComponent": true,
|
|
10625
|
-
"description": "TagCloud\nA cluster of clickable tags.",
|
|
10626
|
-
"props": {
|
|
10627
|
-
"type": {
|
|
10628
|
-
"type": "\"tag-cloud\"",
|
|
10629
|
-
"required": true,
|
|
10630
|
-
"description": ""
|
|
10631
|
-
},
|
|
10632
|
-
"tags": {
|
|
10633
|
-
"type": "{ label: string; value: string; count?: number; }[]",
|
|
10634
|
-
"required": false,
|
|
10635
|
-
"defaultValue": "[]",
|
|
10636
|
-
"description": ""
|
|
10637
|
-
},
|
|
10638
|
-
"id": {
|
|
10639
|
-
"type": "string",
|
|
10640
|
-
"required": true,
|
|
10641
|
-
"description": ""
|
|
10642
|
-
},
|
|
10643
|
-
"className": {
|
|
10644
|
-
"type": "string",
|
|
10645
|
-
"required": false,
|
|
10646
|
-
"description": ""
|
|
10647
|
-
},
|
|
10648
|
-
"style": {
|
|
10649
|
-
"type": "cssproperties",
|
|
10650
|
-
"required": false,
|
|
10651
|
-
"description": ""
|
|
10652
|
-
},
|
|
10653
|
-
"onTagClick": {
|
|
10654
|
-
"type": "(val: string) => void",
|
|
10655
|
-
"required": false,
|
|
10656
|
-
"description": ""
|
|
10657
|
-
}
|
|
10658
|
-
},
|
|
10659
|
-
"preview": null,
|
|
10660
|
-
"layoutHints": {
|
|
10661
|
-
"height": 100
|
|
10662
|
-
},
|
|
10663
|
-
"category": "list"
|
|
10664
|
-
},
|
|
10665
10658
|
"TimelineCard": {
|
|
10666
10659
|
"name": "TimelineCard",
|
|
10667
10660
|
"type": "molecule",
|
|
@@ -10704,106 +10697,6 @@
|
|
|
10704
10697
|
"height": 240
|
|
10705
10698
|
},
|
|
10706
10699
|
"category": "list"
|
|
10707
|
-
},
|
|
10708
|
-
"WebSearchJobCard": {
|
|
10709
|
-
"name": "WebSearchJobCard",
|
|
10710
|
-
"type": "molecule",
|
|
10711
|
-
"isBuilderComponent": true,
|
|
10712
|
-
"description": "",
|
|
10713
|
-
"props": {
|
|
10714
|
-
"job_id": {
|
|
10715
|
-
"type": "string",
|
|
10716
|
-
"required": true,
|
|
10717
|
-
"description": "Unique job identifier"
|
|
10718
|
-
},
|
|
10719
|
-
"title": {
|
|
10720
|
-
"type": "string",
|
|
10721
|
-
"required": false,
|
|
10722
|
-
"description": "Card title — typically the search query"
|
|
10723
|
-
},
|
|
10724
|
-
"status": {
|
|
10725
|
-
"type": "enum",
|
|
10726
|
-
"required": true,
|
|
10727
|
-
"description": "Current job status",
|
|
10728
|
-
"enums": [
|
|
10729
|
-
"complete",
|
|
10730
|
-
"failed",
|
|
10731
|
-
"pending",
|
|
10732
|
-
"running"
|
|
10733
|
-
]
|
|
10734
|
-
},
|
|
10735
|
-
"query": {
|
|
10736
|
-
"type": "string",
|
|
10737
|
-
"required": false,
|
|
10738
|
-
"description": "The search query string"
|
|
10739
|
-
},
|
|
10740
|
-
"result_count": {
|
|
10741
|
-
"type": "number",
|
|
10742
|
-
"required": false,
|
|
10743
|
-
"description": "Total number of results returned"
|
|
10744
|
-
},
|
|
10745
|
-
"search_count": {
|
|
10746
|
-
"type": "number",
|
|
10747
|
-
"required": false,
|
|
10748
|
-
"description": "Number of web searches performed"
|
|
10749
|
-
},
|
|
10750
|
-
"summary": {
|
|
10751
|
-
"type": "string",
|
|
10752
|
-
"required": false,
|
|
10753
|
-
"description": "2-3 sentence summary of findings"
|
|
10754
|
-
},
|
|
10755
|
-
"results": {
|
|
10756
|
-
"type": "websearchresult[]",
|
|
10757
|
-
"required": false,
|
|
10758
|
-
"description": "Structured search results"
|
|
10759
|
-
},
|
|
10760
|
-
"error": {
|
|
10761
|
-
"type": "string",
|
|
10762
|
-
"required": false,
|
|
10763
|
-
"description": "Error message if job failed"
|
|
10764
|
-
},
|
|
10765
|
-
"progress": {
|
|
10766
|
-
"type": "jobprogress",
|
|
10767
|
-
"required": false,
|
|
10768
|
-
"description": "Real-time progress information (populated during pending/running)"
|
|
10769
|
-
},
|
|
10770
|
-
"pollUrl": {
|
|
10771
|
-
"type": "string",
|
|
10772
|
-
"required": false,
|
|
10773
|
-
"description": "URL to poll for status updates"
|
|
10774
|
-
},
|
|
10775
|
-
"authToken": {
|
|
10776
|
-
"type": "string",
|
|
10777
|
-
"required": false,
|
|
10778
|
-
"description": "Auth token for polling requests"
|
|
10779
|
-
},
|
|
10780
|
-
"className": {
|
|
10781
|
-
"type": "string",
|
|
10782
|
-
"required": false,
|
|
10783
|
-
"description": "Additional CSS classes"
|
|
10784
|
-
},
|
|
10785
|
-
"onComplete": {
|
|
10786
|
-
"type": "(output: websearchjoboutput) => void",
|
|
10787
|
-
"required": false,
|
|
10788
|
-
"description": "Callback when job completes"
|
|
10789
|
-
},
|
|
10790
|
-
"onFailed": {
|
|
10791
|
-
"type": "(error: string) => void",
|
|
10792
|
-
"required": false,
|
|
10793
|
-
"description": "Callback when job fails"
|
|
10794
|
-
},
|
|
10795
|
-
"compact": {
|
|
10796
|
-
"type": "boolean",
|
|
10797
|
-
"required": false,
|
|
10798
|
-
"defaultValue": "false",
|
|
10799
|
-
"description": "Compact mode — hides the results list, shows only header and summary."
|
|
10800
|
-
}
|
|
10801
|
-
},
|
|
10802
|
-
"preview": null,
|
|
10803
|
-
"layoutHints": {
|
|
10804
|
-
"height": 320
|
|
10805
|
-
},
|
|
10806
|
-
"category": "list"
|
|
10807
10700
|
}
|
|
10808
10701
|
}
|
|
10809
10702
|
}
|