@signalflare-ai/ui 1.2.0 → 1.4.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/CHANGELOG.md +154 -1
- package/ai/component-registry.json +208 -550
- package/ai/component-registry.md +3042 -3115
- package/ai/schemas.ts +504 -96
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/{ai-actions-BdUZI3Gk.js → ai-actions-CBfz5XEf.js} +4 -4
- package/dist/{ai-actions-BdUZI3Gk.js.map → ai-actions-CBfz5XEf.js.map} +1 -1
- package/dist/{ai-agent-card-BR2NIYhi.js → ai-agent-card-CByAUe0q.js} +3 -3
- package/dist/ai-agent-card-CByAUe0q.js.map +1 -0
- package/dist/{ai-approval-Ba7mrKba.js → ai-approval-Ci8N70a7.js} +4 -3
- package/dist/{ai-approval-Ba7mrKba.js.map → ai-approval-Ci8N70a7.js.map} +1 -1
- package/dist/{ai-code-block-CZtoL73R.js → ai-code-block-P9TJHvaC.js} +37 -39
- package/dist/ai-code-block-P9TJHvaC.js.map +1 -0
- package/dist/{ai-conversation-Cc7WlaBg.js → ai-conversation-Qslfdi1t.js} +28 -42
- package/dist/ai-conversation-Qslfdi1t.js.map +1 -0
- package/dist/{ai-info-banner-C7EWPBj7.js → ai-info-banner-B_9vtGK3.js} +3 -3
- package/dist/{ai-info-banner-C7EWPBj7.js.map → ai-info-banner-B_9vtGK3.js.map} +1 -1
- package/dist/{ai-message-Bp7L68U_.js → ai-message-Ci3gwM7G.js} +6 -6
- package/dist/{ai-message-Bp7L68U_.js.map → ai-message-Ci3gwM7G.js.map} +1 -1
- package/dist/{ai-mission-header-TiCJfTNt.js → ai-mission-header-CaBc19-t.js} +2 -2
- package/dist/{ai-mission-header-TiCJfTNt.js.map → ai-mission-header-CaBc19-t.js.map} +1 -1
- package/dist/{ai-part-group-DNb9I446.js → ai-part-group-Dx1Mr92B.js} +5 -4
- package/dist/ai-part-group-Dx1Mr92B.js.map +1 -0
- package/dist/{ai-prompt-input-BVvov_KF.js → ai-prompt-input-Bm4XoSj2.js} +19 -17
- package/dist/ai-prompt-input-Bm4XoSj2.js.map +1 -0
- package/dist/{ai-question-GPPMk7YM.js → ai-question-OyJovxGe.js} +4 -3
- package/dist/{ai-question-GPPMk7YM.js.map → ai-question-OyJovxGe.js.map} +1 -1
- package/dist/{ai-reasoning-_feFjk56.js → ai-reasoning-BLfBXx3F.js} +9 -5
- package/dist/ai-reasoning-BLfBXx3F.js.map +1 -0
- package/dist/{ai-response-CvjV3WhV.js → ai-response-hbVCZJmo.js} +2 -2
- package/dist/{ai-response-CvjV3WhV.js.map → ai-response-hbVCZJmo.js.map} +1 -1
- package/dist/{ai-shimmer-j6lKIrjj.js → ai-shimmer-BamNMNK3.js} +2 -2
- package/dist/{ai-shimmer-j6lKIrjj.js.map → ai-shimmer-BamNMNK3.js.map} +1 -1
- package/dist/{ai-status-badge-CSU_QOdz.js → ai-status-badge-BZLczdkI.js} +2 -2
- package/dist/{ai-status-badge-CSU_QOdz.js.map → ai-status-badge-BZLczdkI.js.map} +1 -1
- package/dist/{ai-streaming-text-IWW1BhvZ.js → ai-streaming-text-DgYu64UH.js} +1 -1
- package/dist/{ai-streaming-text-IWW1BhvZ.js.map → ai-streaming-text-DgYu64UH.js.map} +1 -1
- package/dist/{ai-subagent-JA4iIMW3.js → ai-subagent-p97AI1h9.js} +3 -3
- package/dist/{ai-subagent-JA4iIMW3.js.map → ai-subagent-p97AI1h9.js.map} +1 -1
- package/dist/{ai-suggestion-BdO6MBuH.js → ai-suggestion-Bj6vF7CT.js} +3 -3
- package/dist/{ai-suggestion-BdO6MBuH.js.map → ai-suggestion-Bj6vF7CT.js.map} +1 -1
- package/dist/{ai-task-list-DYw4R1FA.js → ai-task-list-C_UQYpk9.js} +6 -4
- package/dist/{ai-task-list-DYw4R1FA.js.map → ai-task-list-C_UQYpk9.js.map} +1 -1
- package/dist/{ai-timeline-C42tOUT8.js → ai-timeline-CePL1LOU.js} +3 -3
- package/dist/ai-timeline-CePL1LOU.js.map +1 -0
- package/dist/{ai-tool-03jOTwUI.js → ai-tool-CfRcwmHT.js} +17 -11
- package/dist/ai-tool-CfRcwmHT.js.map +1 -0
- package/dist/{ai-usage-bar-BRf5LC_b.js → ai-usage-bar-45pVRCGA.js} +2 -2
- package/dist/{ai-usage-bar-BRf5LC_b.js.map → ai-usage-bar-45pVRCGA.js.map} +1 -1
- package/dist/{badge-BheXjMc8.js → badge-Beb-6uut.js} +5 -5
- package/dist/{badge-BheXjMc8.js.map → badge-Beb-6uut.js.map} +1 -1
- package/dist/{banner-CcsjunJg.js → banner-CCEksxPg.js} +3 -3
- package/dist/{banner-CcsjunJg.js.map → banner-CCEksxPg.js.map} +1 -1
- package/dist/{breadcrumbs-CouSyy3H.js → breadcrumbs-HiTmgaZ4.js} +5 -5
- package/dist/{breadcrumbs-CouSyy3H.js.map → breadcrumbs-HiTmgaZ4.js.map} +1 -1
- package/dist/{button-CO6-qPax.js → button-BHOgXJRU.js} +4 -4
- package/dist/{button-CO6-qPax.js.map → button-BHOgXJRU.js.map} +1 -1
- package/dist/catalog.js +1 -1
- package/dist/catalog.js.map +1 -1
- package/dist/{chart-Dg0qUeSc.js → chart-B9FfZdKs.js} +7 -7
- package/dist/chart-B9FfZdKs.js.map +1 -0
- package/dist/{checkbox-D7p4QKsC.js → checkbox-Cy_OCyay.js} +3 -3
- package/dist/{checkbox-D7p4QKsC.js.map → checkbox-Cy_OCyay.js.map} +1 -1
- package/dist/{clipboard-text-kLaMogs3.js → clipboard-text-CKSvNp9L.js} +6 -5
- package/dist/clipboard-text-CKSvNp9L.js.map +1 -0
- package/dist/{cn-YROP2_ox.js → cn-CmAOpn49.js} +2 -2
- package/dist/{cn-YROP2_ox.js.map → cn-CmAOpn49.js.map} +1 -1
- package/dist/{code-BN8InC0G.js → code-JsQz-0G_.js} +4 -4
- package/dist/{code-BN8InC0G.js.map → code-JsQz-0G_.js.map} +1 -1
- package/dist/{collapsible-D_ueZ0jz.js → collapsible-1kOZ-89L.js} +2 -2
- package/dist/{collapsible-D_ueZ0jz.js.map → collapsible-1kOZ-89L.js.map} +1 -1
- package/dist/{combobox-B7TOK0U2.js → combobox-CQwDmqgA.js} +4 -4
- package/dist/{combobox-B7TOK0U2.js.map → combobox-CQwDmqgA.js.map} +1 -1
- package/dist/command-line/cli.js +3 -3
- package/dist/{command-palette-CuNUyJca.js → command-palette-Bkuv3e6o.js} +20 -5
- package/dist/command-palette-Bkuv3e6o.js.map +1 -0
- package/dist/components/ai-actions.js +1 -1
- package/dist/components/ai-agent-card.js +1 -1
- package/dist/components/ai-approval.js +1 -1
- package/dist/components/ai-code-block.js +1 -1
- package/dist/components/ai-conversation.js +1 -1
- package/dist/components/ai-info-banner.js +1 -1
- package/dist/components/ai-message.js +1 -1
- package/dist/components/ai-mission-header.js +1 -1
- package/dist/components/ai-part-group.js +1 -1
- package/dist/components/ai-prompt-input.js +1 -1
- package/dist/components/ai-question.js +1 -1
- package/dist/components/ai-reasoning.js +1 -1
- package/dist/components/ai-response.js +1 -1
- package/dist/components/ai-shimmer.js +1 -1
- package/dist/components/ai-status-badge.js +1 -1
- package/dist/components/ai-streaming-text.js +1 -1
- package/dist/components/ai-subagent.js +1 -1
- package/dist/components/ai-suggestion.js +1 -1
- package/dist/components/ai-task-list.js +1 -1
- package/dist/components/ai-timeline.js +1 -1
- package/dist/components/ai-tool.js +1 -1
- package/dist/components/ai-usage-bar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/data-grid.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/filters.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/link.js +3 -3
- package/dist/components/link.js.map +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/signalflare-ai-logo.js +1 -1
- package/dist/components/sparkline.js +1 -1
- package/dist/components/stat-card.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/text-roll.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-toggle.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/use-agent-harness.js +1 -1
- package/dist/data-grid-DrguJq_H.js +395 -0
- package/dist/data-grid-DrguJq_H.js.map +1 -0
- package/dist/{date-picker--ox89RBy.js → date-picker-O34AqG3f.js} +2 -2
- package/dist/{date-picker--ox89RBy.js.map → date-picker-O34AqG3f.js.map} +1 -1
- package/dist/{date-range-picker-DVa7QBqE.js → date-range-picker-YKYvum_r.js} +29 -39
- package/dist/{date-range-picker-DVa7QBqE.js.map → date-range-picker-YKYvum_r.js.map} +1 -1
- package/dist/{dialog-Bv1oSFOd.js → dialog-DYqu4aDO.js} +3 -3
- package/dist/{dialog-Bv1oSFOd.js.map → dialog-DYqu4aDO.js.map} +1 -1
- package/dist/{dist-B6iWiWwp.js → dist-6AtBsaJE.js} +153 -47
- package/dist/dist-6AtBsaJE.js.map +1 -0
- package/dist/{dropdown-B_nrGXjV.js → dropdown-XzbnRLYR.js} +15 -5
- package/dist/dropdown-XzbnRLYR.js.map +1 -0
- package/dist/{echart-CdOUaT-r.js → echart-DGBIVAv1.js} +23 -57
- package/dist/{echart-CdOUaT-r.js.map → echart-DGBIVAv1.js.map} +1 -1
- package/dist/{empty-DZnN0zKX.js → empty-C1tAkawe.js} +6 -6
- package/dist/{empty-DZnN0zKX.js.map → empty-C1tAkawe.js.map} +1 -1
- package/dist/{field-B_yVof52.js → field-DBpFzzBS.js} +3 -3
- package/dist/{field-B_yVof52.js.map → field-DBpFzzBS.js.map} +1 -1
- package/dist/{filters-cpJCY21R.js → filters-SmEl93za.js} +10 -10
- package/dist/filters-SmEl93za.js.map +1 -0
- package/dist/{flow-B4v198ot.js → flow-BLzgbq1T.js} +6 -6
- package/dist/flow-BLzgbq1T.js.map +1 -0
- package/dist/genui.js +2 -2
- package/dist/genui.js.map +1 -1
- package/dist/{grid-CEd64Lnh.js → grid-CifjQL-5.js} +2 -2
- package/dist/{grid-CEd64Lnh.js.map → grid-CifjQL-5.js.map} +1 -1
- package/dist/{highlight-to-react-D0Yav4jk.js → highlight-to-react-DN9dUCS2.js} +9 -15
- package/dist/highlight-to-react-DN9dUCS2.js.map +1 -0
- package/dist/index.js +71 -71
- package/dist/index.js.map +1 -1
- package/dist/{input-ClB_E4Lb.js → input-COmx2M_R.js} +5 -5
- package/dist/{input-ClB_E4Lb.js.map → input-COmx2M_R.js.map} +1 -1
- package/dist/{input-B2bbijRh.js → input-GkfMQZC_.js} +3 -3
- package/dist/{input-B2bbijRh.js.map → input-GkfMQZC_.js.map} +1 -1
- package/dist/{label-DUv_urO1.js → label-CiGZ464N.js} +3 -3
- package/dist/{label-DUv_urO1.js.map → label-CiGZ464N.js.map} +1 -1
- package/dist/{layer-card-BK7eYfwn.js → layer-card-8l8GuLQr.js} +2 -2
- package/dist/{layer-card-BK7eYfwn.js.map → layer-card-8l8GuLQr.js.map} +1 -1
- package/dist/{layout-DJHMMap2.js → layout-CWBE0qwx.js} +258 -154
- package/dist/layout-CWBE0qwx.js.map +1 -0
- package/dist/{link-provider-BUZKXaNE.js → link-provider-BSn8YJon.js} +2 -2
- package/dist/link-provider-BSn8YJon.js.map +1 -0
- package/dist/{loader-DAcc-Uag.js → loader-BEMz8pJO.js} +1 -1
- package/dist/{loader-DAcc-Uag.js.map → loader-BEMz8pJO.js.map} +1 -1
- package/dist/{measured-text-BI3dTJmH.js → measured-text-CXkdw9Yr.js} +45 -30
- package/dist/measured-text-CXkdw9Yr.js.map +1 -0
- package/dist/{menubar-Cxf3xeAt.js → menubar-CoOr4ocj.js} +3 -3
- package/dist/{menubar-Cxf3xeAt.js.map → menubar-CoOr4ocj.js.map} +1 -1
- package/dist/{meter-BFFe9l5b.js → meter-Pf_VOl59.js} +2 -2
- package/dist/{meter-BFFe9l5b.js.map → meter-Pf_VOl59.js.map} +1 -1
- package/dist/{pagination-yS372Tr4.js → pagination-DSY279Ta.js} +2 -2
- package/dist/{pagination-yS372Tr4.js.map → pagination-DSY279Ta.js.map} +1 -1
- package/dist/{popover-SRoJaCZr.js → popover-BY-e9co1.js} +2 -2
- package/dist/{popover-SRoJaCZr.js.map → popover-BY-e9co1.js.map} +1 -1
- package/dist/{radio-BcwhwYNB.js → radio-DZwL13j0.js} +2 -2
- package/dist/{radio-BcwhwYNB.js.map → radio-DZwL13j0.js.map} +1 -1
- package/dist/{select-DMhdoHMa.js → select-BFifYqHA.js} +6 -6
- package/dist/{select-DMhdoHMa.js.map → select-BFifYqHA.js.map} +1 -1
- package/dist/{sensitive-input-CJUpIRal.js → sensitive-input-DHLZcM73.js} +4 -4
- package/dist/{sensitive-input-CJUpIRal.js.map → sensitive-input-DHLZcM73.js.map} +1 -1
- package/dist/{sidebar-D4zrlYpn.js → sidebar-odGsdvG4.js} +6 -7
- package/dist/sidebar-odGsdvG4.js.map +1 -0
- package/dist/{signalflare-ai-logo-Bipogceq.js → signalflare-ai-logo-CNaDT_w8.js} +2 -2
- package/dist/{signalflare-ai-logo-Bipogceq.js.map → signalflare-ai-logo-CNaDT_w8.js.map} +1 -1
- package/dist/{skeleton-line-CH1-h6e2.js → skeleton-line-CxxYVTO2.js} +2 -2
- package/dist/{skeleton-line-CH1-h6e2.js.map → skeleton-line-CxxYVTO2.js.map} +1 -1
- package/dist/{sparkline-DHmgj1d0.js → sparkline-BQ-4j2W2.js} +2 -2
- package/dist/{sparkline-DHmgj1d0.js.map → sparkline-BQ-4j2W2.js.map} +1 -1
- package/dist/src/blocks/agent-harness/agent-harness.tsx +11 -11
- package/dist/src/blocks/commander/commander.tsx +15 -15
- package/dist/src/blocks/map-block/map-block.d.ts.map +1 -1
- package/dist/src/blocks/map-block/map-block.tsx +11 -7
- package/dist/src/components/ai-approval/ai-approval.d.ts.map +1 -1
- package/dist/src/components/ai-code-block/ai-code-block.d.ts +14 -13
- package/dist/src/components/ai-code-block/ai-code-block.d.ts.map +1 -1
- package/dist/src/components/ai-conversation/ai-conversation.d.ts.map +1 -1
- package/dist/src/components/ai-part-group/ai-part-group.d.ts.map +1 -1
- package/dist/src/components/ai-prompt-input/ai-prompt-input.d.ts.map +1 -1
- package/dist/src/components/ai-prompt-input/controller.d.ts.map +1 -1
- package/dist/src/components/ai-prompt-input/types.d.ts.map +1 -1
- package/dist/src/components/ai-question/ai-question.d.ts.map +1 -1
- package/dist/src/components/ai-reasoning/ai-reasoning.d.ts.map +1 -1
- package/dist/src/components/ai-response/ai-response.d.ts.map +1 -1
- package/dist/src/components/ai-subagent/ai-subagent.d.ts.map +1 -1
- package/dist/src/components/ai-tool/ai-tool.d.ts.map +1 -1
- package/dist/src/components/chart/echart.d.ts.map +1 -1
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -1
- package/dist/src/components/data-grid/data-grid.d.ts +2 -1
- package/dist/src/components/data-grid/data-grid.d.ts.map +1 -1
- package/dist/src/components/data-grid/features.d.ts +20 -0
- package/dist/src/components/data-grid/features.d.ts.map +1 -0
- package/dist/src/components/data-grid/types.d.ts +38 -7
- package/dist/src/components/data-grid/types.d.ts.map +1 -1
- package/dist/src/components/filters/filters.d.ts.map +1 -1
- package/dist/src/components/flow/use-children.d.ts +1 -1
- package/dist/src/components/link/link.d.ts.map +1 -1
- package/dist/src/components/sidebar/sidebar.d.ts +1 -1
- package/dist/src/components/signalflare-ai-logo/signalflare-ai-logo.d.ts.map +1 -1
- package/dist/src/components/text/text.d.ts +2 -1
- package/dist/src/components/text/text.d.ts.map +1 -1
- package/dist/src/components/text-roll/text-roll.d.ts.map +1 -1
- package/dist/src/components/theme-toggle/theme-toggle.d.ts.map +1 -1
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/utils/highlight-to-react.d.ts.map +1 -1
- package/dist/src/utils/measured-text.d.ts.map +1 -1
- package/dist/src/utils/use-measured-text.d.ts.map +1 -1
- package/dist/{stat-card-Ew-ofzEm.js → stat-card-Bspk4XFr.js} +4 -4
- package/dist/stat-card-Bspk4XFr.js.map +1 -0
- package/dist/styles/sf-standalone.css +1 -1
- package/dist/styles/theme-fedramp.css +3 -12
- package/dist/styles/theme-minimal.css +26 -104
- package/dist/styles/theme-sf.css +37 -142
- package/dist/{surface-DGwRlC0o.js → surface-CWdSFVUx.js} +3 -3
- package/dist/{surface-DGwRlC0o.js.map → surface-CWdSFVUx.js.map} +1 -1
- package/dist/{switch-BxAMfHdt.js → switch-TA4cByCJ.js} +5 -5
- package/dist/switch-TA4cByCJ.js.map +1 -0
- package/dist/{table-BBeAtYVZ.js → table-BM8JBGBs.js} +3 -3
- package/dist/{table-BBeAtYVZ.js.map → table-BM8JBGBs.js.map} +1 -1
- package/dist/{tabs-CeHu7Scn.js → tabs-bnH2vGLv.js} +2 -2
- package/dist/{tabs-CeHu7Scn.js.map → tabs-bnH2vGLv.js.map} +1 -1
- package/dist/{text-Cqryz7rk.js → text-iQ0YUFNg.js} +4 -5
- package/dist/{text-Cqryz7rk.js.map → text-iQ0YUFNg.js.map} +1 -1
- package/dist/{text-roll-Ch52hcQj.js → text-roll-C3U2jd2u.js} +5 -2
- package/dist/text-roll-C3U2jd2u.js.map +1 -0
- package/dist/{theme-toggle-LDfIKEqx.js → theme-toggle-BTVxD-fD.js} +10 -9
- package/dist/theme-toggle-BTVxD-fD.js.map +1 -0
- package/dist/{toast-CaFQNYng.js → toast-CgZVaAkw.js} +3 -3
- package/dist/{toast-CaFQNYng.js.map → toast-CgZVaAkw.js.map} +1 -1
- package/dist/{tooltip-g9lFsvcT.js → tooltip-uobk6Oh-.js} +3 -3
- package/dist/{tooltip-g9lFsvcT.js.map → tooltip-uobk6Oh-.js.map} +1 -1
- package/dist/{use-agent-harness-BTcNJdw4.js → use-agent-harness-Dl8w6X5O.js} +3 -3
- package/dist/{use-agent-harness-BTcNJdw4.js.map → use-agent-harness-Dl8w6X5O.js.map} +1 -1
- package/dist/utils.js +3 -3
- package/package.json +27 -25
- package/scripts/component-registry/discovery.ts +11 -10
- package/scripts/component-registry/example-cleanup.ts +8 -8
- package/scripts/component-registry/index.ts +6 -6
- package/scripts/component-registry/schema-generator.ts +1 -1
- package/scripts/component-registry/sub-components.ts +35 -23
- package/scripts/component-registry/utils.ts +11 -11
- package/scripts/component-registry/variant-parser.ts +17 -15
- package/scripts/convert-demos-to-stories.ts +5 -5
- package/scripts/theme-generator/config.ts +1 -5
- package/scripts/theme-generator/generate-css.ts +1 -1
- package/scripts/theme-generator/migrate.ts +3 -3
- package/dist/ai-agent-card-BR2NIYhi.js.map +0 -1
- package/dist/ai-code-block-CZtoL73R.js.map +0 -1
- package/dist/ai-conversation-Cc7WlaBg.js.map +0 -1
- package/dist/ai-part-group-DNb9I446.js.map +0 -1
- package/dist/ai-prompt-input-BVvov_KF.js.map +0 -1
- package/dist/ai-reasoning-_feFjk56.js.map +0 -1
- package/dist/ai-timeline-C42tOUT8.js.map +0 -1
- package/dist/ai-tool-03jOTwUI.js.map +0 -1
- package/dist/chart-Dg0qUeSc.js.map +0 -1
- package/dist/clipboard-text-kLaMogs3.js.map +0 -1
- package/dist/command-palette-CuNUyJca.js.map +0 -1
- package/dist/data-grid-DGHmU0w3.js +0 -305
- package/dist/data-grid-DGHmU0w3.js.map +0 -1
- package/dist/dist-B6iWiWwp.js.map +0 -1
- package/dist/dropdown-B_nrGXjV.js.map +0 -1
- package/dist/filters-cpJCY21R.js.map +0 -1
- package/dist/flow-B4v198ot.js.map +0 -1
- package/dist/highlight-to-react-D0Yav4jk.js.map +0 -1
- package/dist/layout-DJHMMap2.js.map +0 -1
- package/dist/link-provider-BUZKXaNE.js.map +0 -1
- package/dist/measured-text-BI3dTJmH.js.map +0 -1
- package/dist/sidebar-D4zrlYpn.js.map +0 -1
- package/dist/stat-card-Ew-ofzEm.js.map +0 -1
- package/dist/switch-BxAMfHdt.js.map +0 -1
- package/dist/text-roll-Ch52hcQj.js.map +0 -1
- package/dist/theme-toggle-LDfIKEqx.js.map +0 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as Loader } from "./loader-
|
|
3
|
-
import { t as Text } from "./text-
|
|
4
|
-
import { t as Tooltip } from "./tooltip-
|
|
5
|
-
import { t as Badge } from "./badge-
|
|
6
|
-
import { t as Banner } from "./banner-
|
|
7
|
-
import { t as Button } from "./button-
|
|
8
|
-
import { t as Checkbox } from "./checkbox-
|
|
9
|
-
import { t as Field } from "./field-
|
|
10
|
-
import { t as Input } from "./input-
|
|
11
|
-
import { n as InputArea } from "./input-
|
|
12
|
-
import { t as Code } from "./code-
|
|
13
|
-
import { t as Surface } from "./surface-
|
|
14
|
-
import { t as Dialog } from "./dialog-
|
|
15
|
-
import { t as Collapsible } from "./collapsible-
|
|
16
|
-
import { t as LayerCard } from "./layer-card-
|
|
17
|
-
import { t as Meter } from "./meter-
|
|
18
|
-
import { t as Select } from "./select-
|
|
19
|
-
import { r as Switch } from "./switch-
|
|
20
|
-
import { t as Tabs } from "./tabs-
|
|
21
|
-
import { r as Table } from "./table-
|
|
22
|
-
import { t as Popover } from "./popover-
|
|
23
|
-
import { t as Empty } from "./empty-
|
|
24
|
-
import { t as Radio } from "./radio-
|
|
2
|
+
import { t as Loader } from "./loader-BEMz8pJO.js";
|
|
3
|
+
import { t as Text } from "./text-iQ0YUFNg.js";
|
|
4
|
+
import { t as Tooltip } from "./tooltip-uobk6Oh-.js";
|
|
5
|
+
import { t as Badge } from "./badge-Beb-6uut.js";
|
|
6
|
+
import { t as Banner } from "./banner-CCEksxPg.js";
|
|
7
|
+
import { t as Button } from "./button-BHOgXJRU.js";
|
|
8
|
+
import { t as Checkbox } from "./checkbox-Cy_OCyay.js";
|
|
9
|
+
import { t as Field } from "./field-DBpFzzBS.js";
|
|
10
|
+
import { t as Input } from "./input-GkfMQZC_.js";
|
|
11
|
+
import { n as InputArea } from "./input-COmx2M_R.js";
|
|
12
|
+
import { t as Code } from "./code-JsQz-0G_.js";
|
|
13
|
+
import { t as Surface } from "./surface-CWdSFVUx.js";
|
|
14
|
+
import { t as Dialog } from "./dialog-DYqu4aDO.js";
|
|
15
|
+
import { t as Collapsible } from "./collapsible-1kOZ-89L.js";
|
|
16
|
+
import { t as LayerCard } from "./layer-card-8l8GuLQr.js";
|
|
17
|
+
import { t as Meter } from "./meter-Pf_VOl59.js";
|
|
18
|
+
import { t as Select } from "./select-BFifYqHA.js";
|
|
19
|
+
import { r as Switch } from "./switch-TA4cByCJ.js";
|
|
20
|
+
import { t as Tabs } from "./tabs-bnH2vGLv.js";
|
|
21
|
+
import { r as Table } from "./table-BM8JBGBs.js";
|
|
22
|
+
import { t as Popover } from "./popover-BY-e9co1.js";
|
|
23
|
+
import { t as Empty } from "./empty-C1tAkawe.js";
|
|
24
|
+
import { t as Radio } from "./radio-DZwL13j0.js";
|
|
25
25
|
import { Link } from "./components/link.js";
|
|
26
|
-
import { t as Grid } from "./grid-
|
|
27
|
-
import { i as ChartPalette, t as Chart } from "./echart-
|
|
26
|
+
import { t as Grid } from "./grid-CifjQL-5.js";
|
|
27
|
+
import { i as ChartPalette, t as Chart } from "./echart-DGBIVAv1.js";
|
|
28
28
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
29
29
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
30
30
|
import { z } from "zod";
|
|
@@ -153,7 +153,7 @@ function processChartData(rawItems, xKey, yKey, aggregate) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
function passthrough(Component) {
|
|
156
|
-
return ({ props, children }) => children
|
|
156
|
+
return ({ props, children }) => children == null ? React.createElement(Component, props) : React.createElement(Component, props, children);
|
|
157
157
|
}
|
|
158
158
|
var sfComponents = {
|
|
159
159
|
Stack: ({ props, children }) => {
|
|
@@ -237,13 +237,13 @@ var sfComponents = {
|
|
|
237
237
|
Field: passthrough(Field),
|
|
238
238
|
Tabs: ({ props, children }) => {
|
|
239
239
|
const { defaultValue, ...rest } = props;
|
|
240
|
-
return children
|
|
240
|
+
return children == null ? React.createElement(Tabs, {
|
|
241
241
|
...rest,
|
|
242
242
|
selectedValue: defaultValue ?? rest.tabs?.[0]?.value
|
|
243
|
-
}
|
|
243
|
+
}) : React.createElement(Tabs, {
|
|
244
244
|
...rest,
|
|
245
245
|
selectedValue: defaultValue ?? rest.tabs?.[0]?.value
|
|
246
|
-
});
|
|
246
|
+
}, children);
|
|
247
247
|
},
|
|
248
248
|
Dialog: ({ props, children }) => {
|
|
249
249
|
const { trigger, title, description } = props;
|
|
@@ -252,7 +252,7 @@ var sfComponents = {
|
|
|
252
252
|
Collapsible: passthrough(Collapsible),
|
|
253
253
|
Tooltip: ({ props, children }) => {
|
|
254
254
|
const { content } = props;
|
|
255
|
-
return children
|
|
255
|
+
return children == null ? React.createElement(Tooltip, { content }) : React.createElement(Tooltip, { content }, children);
|
|
256
256
|
},
|
|
257
257
|
Popover: ({ props, children }) => {
|
|
258
258
|
const { trigger } = props;
|
|
@@ -354,7 +354,7 @@ var sfComponents = {
|
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
//#endregion
|
|
357
|
-
//#region ../../node_modules/.bun/@json-render+core@0.
|
|
357
|
+
//#region ../../node_modules/.bun/@json-render+core@0.19.0/node_modules/@json-render/core/dist/chunk-AFLK3Q4T.mjs
|
|
358
358
|
var DynamicValueSchema = z.union([
|
|
359
359
|
z.string(),
|
|
360
360
|
z.number(),
|
|
@@ -670,7 +670,7 @@ function flattenToPointers(obj, prefix = "", _depth = 0, _seen, _warned) {
|
|
|
670
670
|
return result;
|
|
671
671
|
}
|
|
672
672
|
//#endregion
|
|
673
|
-
//#region ../../node_modules/.bun/@json-render+core@0.
|
|
673
|
+
//#region ../../node_modules/.bun/@json-render+core@0.19.0/node_modules/@json-render/core/dist/index.mjs
|
|
674
674
|
var numericOrStateRef = z.union([z.number(), z.object({ $state: z.string() })]);
|
|
675
675
|
var comparisonOps = {
|
|
676
676
|
eq: z.unknown().optional(),
|
|
@@ -759,6 +759,20 @@ function evaluateVisibility(condition, ctx) {
|
|
|
759
759
|
if (isOrCondition(condition)) return condition.$or.some((child) => evaluateVisibility(child, ctx));
|
|
760
760
|
return evaluateCondition(condition, ctx);
|
|
761
761
|
}
|
|
762
|
+
function createDirectiveRegistry(directives) {
|
|
763
|
+
const registry = /* @__PURE__ */ new Map();
|
|
764
|
+
for (const d of directives) registry.set(d.name, d);
|
|
765
|
+
return registry;
|
|
766
|
+
}
|
|
767
|
+
function findDirective(value, directives) {
|
|
768
|
+
if (!directives || directives.size === 0) return void 0;
|
|
769
|
+
let match;
|
|
770
|
+
for (const [key, def] of directives) if (key in value) {
|
|
771
|
+
if (match) throw new Error(`Ambiguous directive: object has multiple directive keys ("${match.name}" and "${key}")`);
|
|
772
|
+
match = def;
|
|
773
|
+
}
|
|
774
|
+
return match;
|
|
775
|
+
}
|
|
762
776
|
function isStateExpression(value) {
|
|
763
777
|
return typeof value === "object" && value !== null && "$state" in value && typeof value.$state === "string";
|
|
764
778
|
}
|
|
@@ -835,6 +849,8 @@ function resolvePropValue(value, ctx) {
|
|
|
835
849
|
});
|
|
836
850
|
if (Array.isArray(value)) return value.map((item) => resolvePropValue(item, ctx));
|
|
837
851
|
if (typeof value === "object") {
|
|
852
|
+
const directive = findDirective(value, ctx.directives);
|
|
853
|
+
if (directive) return directive.resolve(value, ctx);
|
|
838
854
|
const resolved = {};
|
|
839
855
|
for (const [key, val] of Object.entries(value)) resolved[key] = resolvePropValue(val, ctx);
|
|
840
856
|
return resolved;
|
|
@@ -982,28 +998,43 @@ var matchesImpl = (value, args) => {
|
|
|
982
998
|
return value === args?.other;
|
|
983
999
|
};
|
|
984
1000
|
var builtInValidationFunctions = {
|
|
1001
|
+
/**
|
|
1002
|
+
* Check if value is not null, undefined, or empty string
|
|
1003
|
+
*/
|
|
985
1004
|
required: (value) => {
|
|
986
1005
|
if (value === null || value === void 0) return false;
|
|
987
1006
|
if (typeof value === "string") return value.trim().length > 0;
|
|
988
1007
|
if (Array.isArray(value)) return value.length > 0;
|
|
989
1008
|
return true;
|
|
990
1009
|
},
|
|
1010
|
+
/**
|
|
1011
|
+
* Check if value is a valid email address
|
|
1012
|
+
*/
|
|
991
1013
|
email: (value) => {
|
|
992
1014
|
if (typeof value !== "string") return false;
|
|
993
1015
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
|
994
1016
|
},
|
|
1017
|
+
/**
|
|
1018
|
+
* Check minimum string length
|
|
1019
|
+
*/
|
|
995
1020
|
minLength: (value, args) => {
|
|
996
1021
|
if (typeof value !== "string") return false;
|
|
997
1022
|
const min = args?.min;
|
|
998
1023
|
if (typeof min !== "number") return false;
|
|
999
1024
|
return value.length >= min;
|
|
1000
1025
|
},
|
|
1026
|
+
/**
|
|
1027
|
+
* Check maximum string length
|
|
1028
|
+
*/
|
|
1001
1029
|
maxLength: (value, args) => {
|
|
1002
1030
|
if (typeof value !== "string") return false;
|
|
1003
1031
|
const max = args?.max;
|
|
1004
1032
|
if (typeof max !== "number") return false;
|
|
1005
1033
|
return value.length <= max;
|
|
1006
1034
|
},
|
|
1035
|
+
/**
|
|
1036
|
+
* Check if string matches a regex pattern
|
|
1037
|
+
*/
|
|
1007
1038
|
pattern: (value, args) => {
|
|
1008
1039
|
if (typeof value !== "string") return false;
|
|
1009
1040
|
const pattern = args?.pattern;
|
|
@@ -1014,23 +1045,35 @@ var builtInValidationFunctions = {
|
|
|
1014
1045
|
return false;
|
|
1015
1046
|
}
|
|
1016
1047
|
},
|
|
1048
|
+
/**
|
|
1049
|
+
* Check minimum numeric value
|
|
1050
|
+
*/
|
|
1017
1051
|
min: (value, args) => {
|
|
1018
1052
|
if (typeof value !== "number") return false;
|
|
1019
1053
|
const min = args?.min;
|
|
1020
1054
|
if (typeof min !== "number") return false;
|
|
1021
1055
|
return value >= min;
|
|
1022
1056
|
},
|
|
1057
|
+
/**
|
|
1058
|
+
* Check maximum numeric value
|
|
1059
|
+
*/
|
|
1023
1060
|
max: (value, args) => {
|
|
1024
1061
|
if (typeof value !== "number") return false;
|
|
1025
1062
|
const max = args?.max;
|
|
1026
1063
|
if (typeof max !== "number") return false;
|
|
1027
1064
|
return value <= max;
|
|
1028
1065
|
},
|
|
1066
|
+
/**
|
|
1067
|
+
* Check if value is a number
|
|
1068
|
+
*/
|
|
1029
1069
|
numeric: (value) => {
|
|
1030
1070
|
if (typeof value === "number") return !isNaN(value);
|
|
1031
1071
|
if (typeof value === "string") return !isNaN(parseFloat(value));
|
|
1032
1072
|
return false;
|
|
1033
1073
|
},
|
|
1074
|
+
/**
|
|
1075
|
+
* Check if value is a valid URL
|
|
1076
|
+
*/
|
|
1034
1077
|
url: (value) => {
|
|
1035
1078
|
if (typeof value !== "string") return false;
|
|
1036
1079
|
try {
|
|
@@ -1040,8 +1083,19 @@ var builtInValidationFunctions = {
|
|
|
1040
1083
|
return false;
|
|
1041
1084
|
}
|
|
1042
1085
|
},
|
|
1086
|
+
/**
|
|
1087
|
+
* Check if value matches another field
|
|
1088
|
+
*/
|
|
1043
1089
|
matches: matchesImpl,
|
|
1090
|
+
/**
|
|
1091
|
+
* Alias for matches with a more descriptive name for cross-field equality
|
|
1092
|
+
*/
|
|
1044
1093
|
equalTo: matchesImpl,
|
|
1094
|
+
/**
|
|
1095
|
+
* Check if value is less than another field's value.
|
|
1096
|
+
* Supports numbers, strings (useful for ISO date comparison), and
|
|
1097
|
+
* cross-type numeric coercion (e.g. string "3" vs number 5).
|
|
1098
|
+
*/
|
|
1045
1099
|
lessThan: (value, args) => {
|
|
1046
1100
|
const other = args?.other;
|
|
1047
1101
|
if (value == null || other == null || value === "" || other === "") return false;
|
|
@@ -1052,6 +1106,11 @@ var builtInValidationFunctions = {
|
|
|
1052
1106
|
if (!isNaN(numVal) && !isNaN(numOther)) return numVal < numOther;
|
|
1053
1107
|
return false;
|
|
1054
1108
|
},
|
|
1109
|
+
/**
|
|
1110
|
+
* Check if value is greater than another field's value.
|
|
1111
|
+
* Supports numbers, strings (useful for ISO date comparison), and
|
|
1112
|
+
* cross-type numeric coercion (e.g. string "7" vs number 5).
|
|
1113
|
+
*/
|
|
1055
1114
|
greaterThan: (value, args) => {
|
|
1056
1115
|
const other = args?.other;
|
|
1057
1116
|
if (value == null || other == null || value === "" || other === "") return false;
|
|
@@ -1062,6 +1121,12 @@ var builtInValidationFunctions = {
|
|
|
1062
1121
|
if (!isNaN(numVal) && !isNaN(numOther)) return numVal > numOther;
|
|
1063
1122
|
return false;
|
|
1064
1123
|
},
|
|
1124
|
+
/**
|
|
1125
|
+
* Required only when a condition is met.
|
|
1126
|
+
* Uses JS truthiness: 0, false, "", null, and undefined are all
|
|
1127
|
+
* treated as "condition not met" (field not required), matching
|
|
1128
|
+
* the visibility system's bare-condition semantics.
|
|
1129
|
+
*/
|
|
1065
1130
|
requiredIf: (value, args) => {
|
|
1066
1131
|
if (!args?.field) return true;
|
|
1067
1132
|
if (value === null || value === void 0) return false;
|
|
@@ -1851,6 +1916,18 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
1851
1916
|
for (const name of Object.keys(catalogFunctions)) lines.push(` - ${name}`);
|
|
1852
1917
|
lines.push("");
|
|
1853
1918
|
}
|
|
1919
|
+
const directives = options.directives;
|
|
1920
|
+
if (directives && directives.length > 0) {
|
|
1921
|
+
lines.push("CUSTOM DYNAMIC VALUES:");
|
|
1922
|
+
lines.push("");
|
|
1923
|
+
for (const d of directives) {
|
|
1924
|
+
const desc = d.description ? ` (${d.description})` : "";
|
|
1925
|
+
lines.push(`- ${d.name}${desc}: ${formatZodType(d.schema)}`);
|
|
1926
|
+
}
|
|
1927
|
+
lines.push("");
|
|
1928
|
+
lines.push("Directives compose: any value field can contain another directive or a $state expression, resolved inside-out.");
|
|
1929
|
+
lines.push("");
|
|
1930
|
+
}
|
|
1854
1931
|
if (allComponents ? Object.entries(allComponents).some(([, def]) => {
|
|
1855
1932
|
if (!def.props) return false;
|
|
1856
1933
|
return formatZodType(def.props).includes("checks");
|
|
@@ -2277,26 +2354,40 @@ function diffToPatches(oldObj, newObj, basePath = "") {
|
|
|
2277
2354
|
return patches;
|
|
2278
2355
|
}
|
|
2279
2356
|
//#endregion
|
|
2280
|
-
//#region ../../node_modules/.bun/@json-render+react@0.
|
|
2357
|
+
//#region ../../node_modules/.bun/@json-render+react@0.19.0+e14d3f224186685e/node_modules/@json-render/react/dist/chunk-WYDS23XB.mjs
|
|
2281
2358
|
var schema = defineSchema((s) => ({
|
|
2282
2359
|
spec: s.object({
|
|
2360
|
+
/** Root element key */
|
|
2283
2361
|
root: s.string(),
|
|
2362
|
+
/** Flat map of elements by key */
|
|
2284
2363
|
elements: s.record(s.object({
|
|
2364
|
+
/** Component type from catalog */
|
|
2285
2365
|
type: s.ref("catalog.components"),
|
|
2366
|
+
/** Component props */
|
|
2286
2367
|
props: s.propsOf("catalog.components"),
|
|
2368
|
+
/** Child element keys (flat reference) */
|
|
2287
2369
|
children: s.array(s.string()),
|
|
2370
|
+
/** Visibility condition */
|
|
2288
2371
|
visible: s.any()
|
|
2289
2372
|
}))
|
|
2290
2373
|
}),
|
|
2291
2374
|
catalog: s.object({
|
|
2375
|
+
/** Component definitions */
|
|
2292
2376
|
components: s.map({
|
|
2377
|
+
/** Zod schema for component props */
|
|
2293
2378
|
props: s.zod(),
|
|
2379
|
+
/** Slots for this component. Use ['default'] for children, or named slots like ['header', 'footer'] */
|
|
2294
2380
|
slots: s.array(s.string()),
|
|
2381
|
+
/** Description for AI generation hints */
|
|
2295
2382
|
description: s.string(),
|
|
2383
|
+
/** Example prop values used in prompt examples (auto-generated from Zod schema if omitted) */
|
|
2296
2384
|
example: s.any()
|
|
2297
2385
|
}),
|
|
2386
|
+
/** Action definitions (optional) */
|
|
2298
2387
|
actions: s.map({
|
|
2388
|
+
/** Zod schema for action params */
|
|
2299
2389
|
params: s.zod(),
|
|
2390
|
+
/** Description for AI generation hints */
|
|
2300
2391
|
description: s.string()
|
|
2301
2392
|
})
|
|
2302
2393
|
})
|
|
@@ -2332,7 +2423,7 @@ var schema = defineSchema((s) => ({
|
|
|
2332
2423
|
]
|
|
2333
2424
|
});
|
|
2334
2425
|
//#endregion
|
|
2335
|
-
//#region ../../node_modules/.bun/@json-render+react@0.
|
|
2426
|
+
//#region ../../node_modules/.bun/@json-render+react@0.19.0+e14d3f224186685e/node_modules/@json-render/react/dist/index.mjs
|
|
2336
2427
|
var StateContext = createContext(null);
|
|
2337
2428
|
function computeInitialFlat(isControlled, initialState) {
|
|
2338
2429
|
if (isControlled) return null;
|
|
@@ -2894,6 +2985,10 @@ var FunctionsContext = React.createContext(EMPTY_FUNCTIONS);
|
|
|
2894
2985
|
function useFunctions() {
|
|
2895
2986
|
return React.useContext(FunctionsContext);
|
|
2896
2987
|
}
|
|
2988
|
+
var DirectivesContext = React.createContext(void 0);
|
|
2989
|
+
function useDirectives() {
|
|
2990
|
+
return React.useContext(DirectivesContext);
|
|
2991
|
+
}
|
|
2897
2992
|
function useDevtoolsActive() {
|
|
2898
2993
|
return React.useSyncExternalStore(subscribeDevtoolsActive, isDevtoolsActive, () => false);
|
|
2899
2994
|
}
|
|
@@ -2904,6 +2999,7 @@ var ElementRenderer = React.memo(function ElementRenderer2({ element, elementKey
|
|
|
2904
2999
|
const { execute } = useActions();
|
|
2905
3000
|
const { getSnapshot, state: watchState } = useStateStore();
|
|
2906
3001
|
const functions = useFunctions();
|
|
3002
|
+
const directives = useDirectives();
|
|
2907
3003
|
const fullCtx = useMemo(() => {
|
|
2908
3004
|
const base = repeatScope ? {
|
|
2909
3005
|
...ctx,
|
|
@@ -2912,11 +3008,13 @@ var ElementRenderer = React.memo(function ElementRenderer2({ element, elementKey
|
|
|
2912
3008
|
repeatBasePath: repeatScope.basePath
|
|
2913
3009
|
} : { ...ctx };
|
|
2914
3010
|
base.functions = functions;
|
|
3011
|
+
base.directives = directives;
|
|
2915
3012
|
return base;
|
|
2916
3013
|
}, [
|
|
2917
3014
|
ctx,
|
|
2918
3015
|
repeatScope,
|
|
2919
|
-
functions
|
|
3016
|
+
functions,
|
|
3017
|
+
directives
|
|
2920
3018
|
]);
|
|
2921
3019
|
const isVisible = element.visible === void 0 ? true : evaluateVisibility(element.visible, fullCtx);
|
|
2922
3020
|
const onBindings = element.on;
|
|
@@ -3113,7 +3211,8 @@ function Renderer({ spec, registry, loading, fallback }) {
|
|
|
3113
3211
|
fallback
|
|
3114
3212
|
});
|
|
3115
3213
|
}
|
|
3116
|
-
function JSONUIProvider({ registry, store, initialState, handlers, navigate, validationFunctions, functions, onStateChange, children }) {
|
|
3214
|
+
function JSONUIProvider({ registry, store, initialState, handlers, navigate, validationFunctions, functions, directives, onStateChange, children }) {
|
|
3215
|
+
const directiveRegistry = useMemo(() => directives ? createDirectiveRegistry(directives) : void 0, [directives]);
|
|
3117
3216
|
return /* @__PURE__ */ jsx(StateProvider, {
|
|
3118
3217
|
store,
|
|
3119
3218
|
initialState,
|
|
@@ -3123,9 +3222,12 @@ function JSONUIProvider({ registry, store, initialState, handlers, navigate, val
|
|
|
3123
3222
|
children: /* @__PURE__ */ jsx(ActionProvider, {
|
|
3124
3223
|
handlers,
|
|
3125
3224
|
navigate,
|
|
3126
|
-
children: /* @__PURE__ */
|
|
3225
|
+
children: /* @__PURE__ */ jsx(FunctionsContext.Provider, {
|
|
3127
3226
|
value: functions ?? EMPTY_FUNCTIONS,
|
|
3128
|
-
children:
|
|
3227
|
+
children: /* @__PURE__ */ jsxs(DirectivesContext.Provider, {
|
|
3228
|
+
value: directiveRegistry,
|
|
3229
|
+
children: [children, /* @__PURE__ */ jsx(ConfirmationDialogManager, {})]
|
|
3230
|
+
})
|
|
3129
3231
|
})
|
|
3130
3232
|
})
|
|
3131
3233
|
}) })
|
|
@@ -3175,7 +3277,8 @@ function defineRegistry(_catalog, options) {
|
|
|
3175
3277
|
}
|
|
3176
3278
|
function createRenderer(catalog, components) {
|
|
3177
3279
|
const registry = components;
|
|
3178
|
-
return function CatalogRenderer({ spec, store, state, onAction, onStateChange, functions, loading, fallback }) {
|
|
3280
|
+
return function CatalogRenderer({ spec, store, state, onAction, onStateChange, functions, directives, loading, fallback }) {
|
|
3281
|
+
const directiveRegistry = useMemo(() => directives ? createDirectiveRegistry(directives) : void 0, [directives]);
|
|
3179
3282
|
return /* @__PURE__ */ jsx(StateProvider, {
|
|
3180
3283
|
store,
|
|
3181
3284
|
initialState: state,
|
|
@@ -3187,14 +3290,17 @@ function createRenderer(catalog, components) {
|
|
|
3187
3290
|
},
|
|
3188
3291
|
has: () => true
|
|
3189
3292
|
}) : void 0,
|
|
3190
|
-
children: /* @__PURE__ */
|
|
3293
|
+
children: /* @__PURE__ */ jsx(FunctionsContext.Provider, {
|
|
3191
3294
|
value: functions ?? EMPTY_FUNCTIONS,
|
|
3192
|
-
children:
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3295
|
+
children: /* @__PURE__ */ jsxs(DirectivesContext.Provider, {
|
|
3296
|
+
value: directiveRegistry,
|
|
3297
|
+
children: [/* @__PURE__ */ jsx(Renderer, {
|
|
3298
|
+
spec,
|
|
3299
|
+
registry,
|
|
3300
|
+
loading,
|
|
3301
|
+
fallback
|
|
3302
|
+
}), /* @__PURE__ */ jsx(ConfirmationDialogManager, {})]
|
|
3303
|
+
})
|
|
3198
3304
|
})
|
|
3199
3305
|
}) }) })
|
|
3200
3306
|
});
|
|
@@ -3632,4 +3738,4 @@ function useChatUI({ api, onComplete, onError }) {
|
|
|
3632
3738
|
//#endregion
|
|
3633
3739
|
export { resolveDynamicValue as C, getByPath as S, sfComponents as T, defineCatalog as _, ValidationProvider as a, validateSpec as b, defineRegistry as c, useJsonRenderMessage as d, useUIStream as f, deepMergeSpec as g, buildUserPrompt as h, StateProvider as i, useBoundProp as l, autoFixSpec as m, JSONUIProvider as n, VisibilityProvider as o, schema as p, Renderer as r, createRenderer as s, ActionProvider as t, useChatUI as u, diffToPatches as v, setByPath as w, createStateStore as x, evaluateVisibility as y };
|
|
3634
3740
|
|
|
3635
|
-
//# sourceMappingURL=dist-
|
|
3741
|
+
//# sourceMappingURL=dist-6AtBsaJE.js.map
|