pxengine 0.1.158 → 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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pxengine/ui",
3
3
  "version": "1.0.0",
4
- "lastUpdated": "2026-09-11T13:11:48.722Z",
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",
@@ -10430,75 +10467,6 @@
10430
10467
  },
10431
10468
  "category": "stat"
10432
10469
  },
10433
- "PlatformPost": {
10434
- "name": "PlatformPost",
10435
- "type": "molecule",
10436
- "isBuilderComponent": true,
10437
- "description": "",
10438
- "props": {
10439
- "post": {
10440
- "type": "socialpost",
10441
- "required": true,
10442
- "description": ""
10443
- },
10444
- "loading": {
10445
- "type": "boolean",
10446
- "required": false,
10447
- "description": ""
10448
- },
10449
- "className": {
10450
- "type": "string",
10451
- "required": false,
10452
- "description": ""
10453
- }
10454
- },
10455
- "preview": null,
10456
- "layoutHints": null,
10457
- "category": null
10458
- },
10459
- "SocialPostCard": {
10460
- "name": "SocialPostCard",
10461
- "type": "molecule",
10462
- "isBuilderComponent": true,
10463
- "description": "SocialPostCard\nRenders AI-generated social media posts for multiple platforms.\nUsers can toggle which platforms to include via clickable badges.",
10464
- "props": {
10465
- "topic": {
10466
- "type": "string",
10467
- "required": true,
10468
- "description": ""
10469
- },
10470
- "posts": {
10471
- "type": "socialpost[]",
10472
- "required": true,
10473
- "description": ""
10474
- },
10475
- "loading": {
10476
- "type": "boolean",
10477
- "required": false,
10478
- "description": ""
10479
- },
10480
- "className": {
10481
- "type": "string",
10482
- "required": false,
10483
- "description": ""
10484
- },
10485
- "onAction": {
10486
- "type": "(action: string, payload?: any) => void",
10487
- "required": false,
10488
- "description": ""
10489
- },
10490
- "sendMessage": {
10491
- "type": "(message: string) => void",
10492
- "required": false,
10493
- "description": ""
10494
- }
10495
- },
10496
- "preview": null,
10497
- "layoutHints": {
10498
- "height": 220
10499
- },
10500
- "category": null
10501
- },
10502
10470
  "StatsGrid": {
10503
10471
  "name": "StatsGrid",
10504
10472
  "type": "molecule",
@@ -10687,50 +10655,6 @@
10687
10655
  "layoutHints": null,
10688
10656
  "category": null
10689
10657
  },
10690
- "TagCloud": {
10691
- "name": "TagCloud",
10692
- "type": "molecule",
10693
- "isBuilderComponent": true,
10694
- "description": "TagCloud\nA cluster of clickable tags.",
10695
- "props": {
10696
- "type": {
10697
- "type": "\"tag-cloud\"",
10698
- "required": true,
10699
- "description": ""
10700
- },
10701
- "tags": {
10702
- "type": "{ label: string; value: string; count?: number; }[]",
10703
- "required": false,
10704
- "defaultValue": "[]",
10705
- "description": ""
10706
- },
10707
- "id": {
10708
- "type": "string",
10709
- "required": true,
10710
- "description": ""
10711
- },
10712
- "className": {
10713
- "type": "string",
10714
- "required": false,
10715
- "description": ""
10716
- },
10717
- "style": {
10718
- "type": "cssproperties",
10719
- "required": false,
10720
- "description": ""
10721
- },
10722
- "onTagClick": {
10723
- "type": "(val: string) => void",
10724
- "required": false,
10725
- "description": ""
10726
- }
10727
- },
10728
- "preview": null,
10729
- "layoutHints": {
10730
- "height": 100
10731
- },
10732
- "category": "list"
10733
- },
10734
10658
  "TimelineCard": {
10735
10659
  "name": "TimelineCard",
10736
10660
  "type": "molecule",
@@ -10773,106 +10697,6 @@
10773
10697
  "height": 240
10774
10698
  },
10775
10699
  "category": "list"
10776
- },
10777
- "WebSearchJobCard": {
10778
- "name": "WebSearchJobCard",
10779
- "type": "molecule",
10780
- "isBuilderComponent": true,
10781
- "description": "",
10782
- "props": {
10783
- "job_id": {
10784
- "type": "string",
10785
- "required": true,
10786
- "description": "Unique job identifier"
10787
- },
10788
- "title": {
10789
- "type": "string",
10790
- "required": false,
10791
- "description": "Card title — typically the search query"
10792
- },
10793
- "status": {
10794
- "type": "enum",
10795
- "required": true,
10796
- "description": "Current job status",
10797
- "enums": [
10798
- "complete",
10799
- "failed",
10800
- "pending",
10801
- "running"
10802
- ]
10803
- },
10804
- "query": {
10805
- "type": "string",
10806
- "required": false,
10807
- "description": "The search query string"
10808
- },
10809
- "result_count": {
10810
- "type": "number",
10811
- "required": false,
10812
- "description": "Total number of results returned"
10813
- },
10814
- "search_count": {
10815
- "type": "number",
10816
- "required": false,
10817
- "description": "Number of web searches performed"
10818
- },
10819
- "summary": {
10820
- "type": "string",
10821
- "required": false,
10822
- "description": "2-3 sentence summary of findings"
10823
- },
10824
- "results": {
10825
- "type": "websearchresult[]",
10826
- "required": false,
10827
- "description": "Structured search results"
10828
- },
10829
- "error": {
10830
- "type": "string",
10831
- "required": false,
10832
- "description": "Error message if job failed"
10833
- },
10834
- "progress": {
10835
- "type": "jobprogress",
10836
- "required": false,
10837
- "description": "Real-time progress information (populated during pending/running)"
10838
- },
10839
- "pollUrl": {
10840
- "type": "string",
10841
- "required": false,
10842
- "description": "URL to poll for status updates"
10843
- },
10844
- "authToken": {
10845
- "type": "string",
10846
- "required": false,
10847
- "description": "Auth token for polling requests"
10848
- },
10849
- "className": {
10850
- "type": "string",
10851
- "required": false,
10852
- "description": "Additional CSS classes"
10853
- },
10854
- "onComplete": {
10855
- "type": "(output: websearchjoboutput) => void",
10856
- "required": false,
10857
- "description": "Callback when job completes"
10858
- },
10859
- "onFailed": {
10860
- "type": "(error: string) => void",
10861
- "required": false,
10862
- "description": "Callback when job fails"
10863
- },
10864
- "compact": {
10865
- "type": "boolean",
10866
- "required": false,
10867
- "defaultValue": "false",
10868
- "description": "Compact mode — hides the results list, shows only header and summary."
10869
- }
10870
- },
10871
- "preview": null,
10872
- "layoutHints": {
10873
- "height": 320
10874
- },
10875
- "category": "list"
10876
10700
  }
10877
10701
  }
10878
10702
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxengine",
3
- "version": "0.1.158",
3
+ "version": "0.1.160",
4
4
  "type": "module",
5
5
  "description": "Shadcn-based UI component library for agent-driven interfaces",
6
6
  "main": "./dist/index.cjs",