@logicplanes/kaeso-ui 0.7.1 → 0.7.2-rc.1
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/ai/component-guides.md +1 -1
- package/ai/component-registry.json +15 -6
- package/ai/component-registry.md +6 -5
- package/ai/icons.md +1 -1
- package/ai/tokens.md +1 -1
- package/dist/chunks/{app-frame-tZReKtCM.js → app-frame-CnyC_z96.js} +5 -5
- package/dist/chunks/{app-frame-tZReKtCM.js.map → app-frame-CnyC_z96.js.map} +1 -1
- package/dist/chunks/{avatar-rLwc_20v.js → avatar-DVw5ZHKN.js} +2 -2
- package/dist/chunks/{avatar-rLwc_20v.js.map → avatar-DVw5ZHKN.js.map} +1 -1
- package/dist/chunks/{badge-DC-RFkFg.js → badge-BgMTwNW5.js} +2 -2
- package/dist/chunks/{badge-DC-RFkFg.js.map → badge-BgMTwNW5.js.map} +1 -1
- package/dist/chunks/{banner-B3YT-DVa.js → banner-DT5qBAkJ.js} +2 -2
- package/dist/chunks/{banner-B3YT-DVa.js.map → banner-DT5qBAkJ.js.map} +1 -1
- package/dist/chunks/{button-L10eO8bf.js → button-DoZ7krdH.js} +3 -3
- package/dist/chunks/{button-L10eO8bf.js.map → button-DoZ7krdH.js.map} +1 -1
- package/dist/chunks/{button-group-BZmq9BmX.js → button-group-sMchV-fj.js} +3 -3
- package/dist/chunks/{button-group-BZmq9BmX.js.map → button-group-sMchV-fj.js.map} +1 -1
- package/dist/chunks/{code-block-DOZqnHjd.js → code-block-BCcbkQ3b.js} +4 -4
- package/dist/chunks/{code-block-DOZqnHjd.js.map → code-block-BCcbkQ3b.js.map} +1 -1
- package/dist/chunks/{code-block-DBWno4Dm.js → code-block-DpYJ9OQ9.js} +5 -5
- package/dist/chunks/{code-block-DBWno4Dm.js.map → code-block-DpYJ9OQ9.js.map} +1 -1
- package/dist/chunks/{combobox-BdgWE05R.js → combobox-B9PoRhga.js} +3 -3
- package/dist/chunks/{combobox-BdgWE05R.js.map → combobox-B9PoRhga.js.map} +1 -1
- package/dist/chunks/{command-list-DFd-joEV.js → command-list-DIv7azFz.js} +193 -161
- package/dist/chunks/command-list-DIv7azFz.js.map +1 -0
- package/dist/chunks/{command-palette-QsmneiR8.js → command-palette-DAGGTUyX.js} +2 -2
- package/dist/chunks/{command-palette-QsmneiR8.js.map → command-palette-DAGGTUyX.js.map} +1 -1
- package/dist/chunks/{copy-button-59YLQ_oG.js → copy-button-TT_5sNFW.js} +4 -4
- package/dist/chunks/{copy-button-59YLQ_oG.js.map → copy-button-TT_5sNFW.js.map} +1 -1
- package/dist/chunks/{core-DSGLmc13.js → core-iiSCX78t.js} +5 -5
- package/dist/chunks/{core-DSGLmc13.js.map → core-iiSCX78t.js.map} +1 -1
- package/dist/chunks/{dashboard-B7ltvQ3f.js → dashboard-Bs8X-Qvt.js} +2 -2
- package/dist/chunks/{dashboard-B7ltvQ3f.js.map → dashboard-Bs8X-Qvt.js.map} +1 -1
- package/dist/chunks/{data-table-BFzel_vu.js → data-table-CCv3fgK5.js} +13 -13
- package/dist/chunks/data-table-CCv3fgK5.js.map +1 -0
- package/dist/chunks/{date-picker-CkIMfoLV.js → date-picker-vS5h1HKN.js} +4 -4
- package/dist/chunks/{date-picker-CkIMfoLV.js.map → date-picker-vS5h1HKN.js.map} +1 -1
- package/dist/chunks/{date-popup-DhbnZRhl.js → date-popup-DDOLST_5.js} +2 -2
- package/dist/chunks/{date-popup-DhbnZRhl.js.map → date-popup-DDOLST_5.js.map} +1 -1
- package/dist/chunks/{dialog-CYQsXjid.js → dialog-O2djESCg.js} +3 -3
- package/dist/chunks/{dialog-CYQsXjid.js.map → dialog-O2djESCg.js.map} +1 -1
- package/dist/chunks/{display-options-Cw7rD12V.js → display-options-DcVmg-i-.js} +6 -6
- package/dist/chunks/{display-options-Cw7rD12V.js.map → display-options-DcVmg-i-.js.map} +1 -1
- package/dist/chunks/{domain-DLRk0kME.js → domain-LXfZduW0.js} +2 -2
- package/dist/chunks/{domain-DLRk0kME.js.map → domain-LXfZduW0.js.map} +1 -1
- package/dist/chunks/{figure-g1FhNNJc.js → figure-DtTP7WE4.js} +2 -2
- package/dist/chunks/{figure-g1FhNNJc.js.map → figure-DtTP7WE4.js.map} +1 -1
- package/dist/chunks/{filter-chip-BMytSUWo.js → filter-chip-CFlRbeHm.js} +4 -4
- package/dist/chunks/{filter-chip-BMytSUWo.js.map → filter-chip-CFlRbeHm.js.map} +1 -1
- package/dist/chunks/{flow-9Ap7HdzN.js → flow-C3AupfRE.js} +3 -3
- package/dist/chunks/{flow-9Ap7HdzN.js.map → flow-C3AupfRE.js.map} +1 -1
- package/dist/chunks/{identity-BEHDLa0i.js → identity-CKVVvPbE.js} +4 -4
- package/dist/chunks/{identity-BEHDLa0i.js.map → identity-CKVVvPbE.js.map} +1 -1
- package/dist/chunks/{input-DpGqfw1G.js → input-WUVIrQkn.js} +2 -2
- package/dist/chunks/{input-DpGqfw1G.js.map → input-WUVIrQkn.js.map} +1 -1
- package/dist/chunks/{input-CI8DBTas.js → input-bgfWrX1j.js} +3 -3
- package/dist/chunks/{input-CI8DBTas.js.map → input-bgfWrX1j.js.map} +1 -1
- package/dist/chunks/{input-group-FtZWEYNA.js → input-group-B5PDh6li.js} +2 -2
- package/dist/chunks/{input-group-FtZWEYNA.js.map → input-group-B5PDh6li.js.map} +1 -1
- package/dist/chunks/{iso-field-Dg-HGlv9.js → iso-field-DWKhEAY7.js} +2 -2
- package/dist/chunks/{iso-field-Dg-HGlv9.js.map → iso-field-DWKhEAY7.js.map} +1 -1
- package/dist/chunks/{kaeso-DSqL9sIX.js → kaeso-6lWIZnFb.js} +8 -8
- package/dist/chunks/{kaeso-DSqL9sIX.js.map → kaeso-6lWIZnFb.js.map} +1 -1
- package/dist/chunks/{key-value-nzN9Vojb.js → key-value-DTAMe71k.js} +3 -3
- package/dist/chunks/{key-value-nzN9Vojb.js.map → key-value-DTAMe71k.js.map} +1 -1
- package/dist/chunks/{list-0pRnkcpL.js → list-CdnGU-gX.js} +8 -8
- package/dist/chunks/{list-0pRnkcpL.js.map → list-CdnGU-gX.js.map} +1 -1
- package/dist/chunks/{markdown-D3FY-DA8.js → markdown-h44XrRqz.js} +5 -5
- package/dist/chunks/{markdown-D3FY-DA8.js.map → markdown-h44XrRqz.js.map} +1 -1
- package/dist/chunks/{menu-BMry4pQ-.js → menu-CS7aZSOd.js} +2 -2
- package/dist/chunks/{menu-BMry4pQ-.js.map → menu-CS7aZSOd.js.map} +1 -1
- package/dist/chunks/{meter-D2ynBSmy.js → meter-CUT58Aor.js} +3 -3
- package/dist/chunks/{meter-D2ynBSmy.js.map → meter-CUT58Aor.js.map} +1 -1
- package/dist/chunks/{nav-sheet-B0o-icmO.js → nav-sheet-Da-sKZmW.js} +2 -2
- package/dist/chunks/{nav-sheet-B0o-icmO.js.map → nav-sheet-Da-sKZmW.js.map} +1 -1
- package/dist/chunks/observe-resize-CUTyU0ZX.js +27 -0
- package/dist/chunks/observe-resize-CUTyU0ZX.js.map +1 -0
- package/dist/chunks/{page-header-DiH555lF.js → page-header-DdqpIHda.js} +3 -3
- package/dist/chunks/{page-header-DiH555lF.js.map → page-header-DdqpIHda.js.map} +1 -1
- package/dist/chunks/{pagination-IL6wspAT.js → pagination-C9kb4ymb.js} +2 -2
- package/dist/chunks/{pagination-IL6wspAT.js.map → pagination-C9kb4ymb.js.map} +1 -1
- package/dist/chunks/{picker-popover-DAnkZmge.js → picker-popover-AA76MIKx.js} +5 -5
- package/dist/chunks/{picker-popover-DAnkZmge.js.map → picker-popover-AA76MIKx.js.map} +1 -1
- package/dist/chunks/{range-popup-Z6K3WK7A.js → range-popup-DnI_IMVR.js} +3 -3
- package/dist/chunks/{range-popup-Z6K3WK7A.js.map → range-popup-DnI_IMVR.js.map} +1 -1
- package/dist/chunks/{release-art-DJuOsmxV.js → release-art-CQuIWLkB.js} +2 -2
- package/dist/chunks/{release-art-DJuOsmxV.js.map → release-art-CQuIWLkB.js.map} +1 -1
- package/dist/chunks/{rights-C6gfyqsY.js → rights-BZ1cfh4_.js} +6 -6
- package/dist/chunks/{rights-C6gfyqsY.js.map → rights-BZ1cfh4_.js.map} +1 -1
- package/dist/chunks/{segmented-1WSOvDjT.js → segmented-Cb8cFVck.js} +4 -4
- package/dist/chunks/{segmented-1WSOvDjT.js.map → segmented-Cb8cFVck.js.map} +1 -1
- package/dist/chunks/{select-DQzn7_Fs.js → select-DTMAr8fs.js} +2 -2
- package/dist/chunks/{select-DQzn7_Fs.js.map → select-DTMAr8fs.js.map} +1 -1
- package/dist/chunks/{sheet-gHqkCQXy.js → sheet-bfI8sb4T.js} +2 -2
- package/dist/chunks/{sheet-gHqkCQXy.js.map → sheet-bfI8sb4T.js.map} +1 -1
- package/dist/chunks/{sidebar-Bbm__0Nk.js → sidebar-ddl-qlYN.js} +5 -5
- package/dist/chunks/{sidebar-Bbm__0Nk.js.map → sidebar-ddl-qlYN.js.map} +1 -1
- package/dist/chunks/{sidebar-menu-CycUvTPc.js → sidebar-menu-ByGqoQlf.js} +2 -2
- package/dist/chunks/{sidebar-menu-CycUvTPc.js.map → sidebar-menu-ByGqoQlf.js.map} +1 -1
- package/dist/chunks/{skeleton-DTiYxSYX.js → skeleton-DWcNGANz.js} +12 -8
- package/dist/chunks/skeleton-DWcNGANz.js.map +1 -0
- package/dist/chunks/{stat-CtOxD2Jk.js → stat-DpAGMop-.js} +5 -5
- package/dist/chunks/{stat-CtOxD2Jk.js.map → stat-DpAGMop-.js.map} +1 -1
- package/dist/chunks/{switch-C0sNr969.js → switch-BMdMW6Gh.js} +2 -2
- package/dist/chunks/{switch-C0sNr969.js.map → switch-BMdMW6Gh.js.map} +1 -1
- package/dist/chunks/{table-CceWZLhC.js → table-BBhL2Sqv.js} +3 -3
- package/dist/chunks/{table-CceWZLhC.js.map → table-BBhL2Sqv.js.map} +1 -1
- package/dist/chunks/{tabs-BElO8cFs.js → tabs-C0JxB1Lf.js} +2 -2
- package/dist/chunks/{tabs-BElO8cFs.js.map → tabs-C0JxB1Lf.js.map} +1 -1
- package/dist/chunks/{tag-o9BCsRkO.js → tag-CTPr_IxL.js} +3 -3
- package/dist/chunks/{tag-o9BCsRkO.js.map → tag-CTPr_IxL.js.map} +1 -1
- package/dist/chunks/{text-BRYPrw1h.js → text-OrW7BjbV.js} +30 -20
- package/dist/chunks/text-OrW7BjbV.js.map +1 -0
- package/dist/chunks/{textarea-BP6I9yrU.js → textarea-qnw0s5LY.js} +4 -4
- package/dist/chunks/{textarea-BP6I9yrU.js.map → textarea-qnw0s5LY.js.map} +1 -1
- package/dist/chunks/{theme-menu-DmEo4nXz.js → theme-menu-B-t-nYWM.js} +4 -4
- package/dist/chunks/{theme-menu-DmEo4nXz.js.map → theme-menu-B-t-nYWM.js.map} +1 -1
- package/dist/chunks/{timeline-B3vkaxI1.js → timeline-D28Owab7.js} +2 -2
- package/dist/chunks/{timeline-B3vkaxI1.js.map → timeline-D28Owab7.js.map} +1 -1
- package/dist/chunks/{timeseries-CrpFP8va.js → timeseries-C2_s3CC6.js} +4 -4
- package/dist/chunks/{timeseries-CrpFP8va.js.map → timeseries-C2_s3CC6.js.map} +1 -1
- package/dist/chunks/{toast-XAZeCuV7.js → toast-B6OZXKAp.js} +2 -2
- package/dist/chunks/{toast-XAZeCuV7.js.map → toast-B6OZXKAp.js.map} +1 -1
- package/dist/chunks/{tooltip-DVpJ_urN.js → tooltip-Bmcp6DQh.js} +6 -4
- package/dist/chunks/{tooltip-DVpJ_urN.js.map → tooltip-Bmcp6DQh.js.map} +1 -1
- package/dist/chunks/{tooltip-DdZgOME7.js → tooltip-YsywFywc.js} +2 -2
- package/dist/chunks/{tooltip-DdZgOME7.js.map → tooltip-YsywFywc.js.map} +1 -1
- package/dist/chunks/{tooltip-root-BeCM9Uhj.js → tooltip-root-DqFXjTS0.js} +3 -3
- package/dist/chunks/{tooltip-root-BeCM9Uhj.js.map → tooltip-root-DqFXjTS0.js.map} +1 -1
- package/dist/chunks/{truncated-C6K1q8DJ.js → truncated-BEVUjhPv.js} +12 -12
- package/dist/chunks/truncated-BEVUjhPv.js.map +1 -0
- package/dist/chunks/use-cut-off-Ca-Jqata.js +39 -0
- package/dist/chunks/use-cut-off-Ca-Jqata.js.map +1 -0
- package/dist/chunks/{use-indicator-Dmlj4ucA.js → use-indicator-CTaEVhAs.js} +2 -2
- package/dist/chunks/{use-indicator-Dmlj4ucA.js.map → use-indicator-CTaEVhAs.js.map} +1 -1
- package/dist/chunks/{use-layout-width-D53VE1kJ.js → use-layout-width-DAuAGj4G.js} +2 -2
- package/dist/chunks/{use-layout-width-D53VE1kJ.js.map → use-layout-width-DAuAGj4G.js.map} +1 -1
- package/dist/chunks/{use-scroll-fade-CNLSc2jm.js → use-scroll-fade-Bu4Rhui7.js} +2 -2
- package/dist/chunks/{use-scroll-fade-CNLSc2jm.js.map → use-scroll-fade-Bu4Rhui7.js.map} +1 -1
- package/dist/chunks/{use-scroll-margin-CpP0MUMb.js → use-scroll-margin-DIoNdxlW.js} +2 -2
- package/dist/chunks/{use-scroll-margin-CpP0MUMb.js.map → use-scroll-margin-DIoNdxlW.js.map} +1 -1
- package/dist/chunks/use-truncated-7FkH4j6x.js +24 -0
- package/dist/chunks/use-truncated-7FkH4j6x.js.map +1 -0
- package/dist/chunks/{virtual-rows-ByQ87hP0.js → virtual-rows-CJ2gUUJ_.js} +2 -2
- package/dist/chunks/{virtual-rows-ByQ87hP0.js.map → virtual-rows-CJ2gUUJ_.js.map} +1 -1
- package/dist/components/app-frame.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/charts/bar.js +3 -3
- package/dist/components/charts/donut.js +4 -4
- package/dist/components/charts/heatmap.js +3 -3
- package/dist/components/charts/sankey.js +3 -3
- package/dist/components/charts/sparkline.js +1 -1
- package/dist/components/charts/timeseries.js +1 -1
- package/dist/components/charts.js +2 -2
- package/dist/components/code-block.js +2 -2
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/dashboard/metric-tabs.js +7 -9
- package/dist/components/dashboard/metric-tabs.js.map +1 -1
- package/dist/components/dashboard/model-card.js +1 -1
- package/dist/components/dashboard/model-card.js.map +1 -1
- package/dist/components/dashboard/rank-list.js +1 -1
- package/dist/components/dashboard.js +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/display-options.js +1 -1
- package/dist/components/figure.js +1 -1
- package/dist/components/filter-chip.js +1 -1
- package/dist/components/flow-canvas.js +3 -3
- package/dist/components/flow-canvas.js.map +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/kaeso/conversation.js +3 -3
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +2 -2
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +6 -6
- package/dist/components/kaeso.js +3 -3
- package/dist/components/key-value.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/playground.js +254 -227
- package/dist/components/playground.js.map +1 -1
- package/dist/components/release-art.js +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/stat.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/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-menu.js +1 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +50 -50
- package/dist/styles.css +1 -1
- package/dist/types/components/command-list/match.d.ts +5 -0
- package/dist/types/components/skeleton/skeleton.d.ts +8 -0
- package/dist/types/components/text/docs.d.ts +1 -0
- package/dist/types/components/text/text.d.ts +1 -0
- package/dist/types/hooks/use-cut-off.d.ts +1 -0
- package/dist/types/hooks/use-truncated.d.ts +1 -0
- package/dist/types/utils/observe-resize.d.ts +1 -0
- package/package.json +2 -2
- package/dist/chunks/command-list-DFd-joEV.js.map +0 -1
- package/dist/chunks/data-table-BFzel_vu.js.map +0 -1
- package/dist/chunks/observe-resize-DerQK57d.js +0 -24
- package/dist/chunks/observe-resize-DerQK57d.js.map +0 -1
- package/dist/chunks/skeleton-DTiYxSYX.js.map +0 -1
- package/dist/chunks/text-BRYPrw1h.js.map +0 -1
- package/dist/chunks/truncated-C6K1q8DJ.js.map +0 -1
- package/dist/chunks/use-truncated-CVim8MP9.js +0 -23
- package/dist/chunks/use-truncated-CVim8MP9.js.map +0 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as e } from "../chunks/cn-CF99d-bD.js";
|
|
3
3
|
import { a as t, i as n } from "../chunks/context-B2nNL7Im.js";
|
|
4
|
-
import { n as r } from "../chunks/button-
|
|
5
|
-
import { r as i } from "../chunks/tag-
|
|
4
|
+
import { n as r } from "../chunks/button-DoZ7krdH.js";
|
|
5
|
+
import { r as i } from "../chunks/tag-CTPr_IxL.js";
|
|
6
6
|
import { r as a } from "../chunks/thumbnail-DmFBC3Rf.js";
|
|
7
7
|
import { t as o } from "../chunks/use-controllable-rN5Fg5EJ.js";
|
|
8
8
|
import { t as s } from "../chunks/formatters-Be5AdLB2.js";
|
|
9
|
-
import { r as c } from "../chunks/markdown-
|
|
10
|
-
import { t as l } from "../chunks/copy-button-
|
|
9
|
+
import { r as c } from "../chunks/markdown-h44XrRqz.js";
|
|
10
|
+
import { t as l } from "../chunks/copy-button-TT_5sNFW.js";
|
|
11
11
|
import { t as u } from "../chunks/reasoning-frame-BCoFYqgO.js";
|
|
12
|
-
import {
|
|
12
|
+
import { n as d } from "../chunks/use-truncated-7FkH4j6x.js";
|
|
13
13
|
import { plainFormatters as f } from "../format.js";
|
|
14
|
-
import { t as p } from "../chunks/input-
|
|
15
|
-
import { o as m, r as h } from "../chunks/textarea-
|
|
14
|
+
import { t as p } from "../chunks/input-WUVIrQkn.js";
|
|
15
|
+
import { o as m, r as h } from "../chunks/textarea-qnw0s5LY.js";
|
|
16
16
|
import { r as g } from "../chunks/popover-BFvV60-L.js";
|
|
17
|
-
import { r as _ } from "../chunks/segmented-
|
|
18
|
-
import { n as v, r as y } from "../chunks/select-
|
|
17
|
+
import { r as _ } from "../chunks/segmented-Cb8cFVck.js";
|
|
18
|
+
import { n as v, r as y } from "../chunks/select-DTMAr8fs.js";
|
|
19
19
|
import { r as b } from "../chunks/slider-CSLWsGYq.js";
|
|
20
20
|
import { t as x } from "../chunks/figures-D_Tsrwwj.js";
|
|
21
|
-
import { r as S, t as C } from "../chunks/command-list-
|
|
22
|
-
import { n as w, t as T } from "../chunks/picker-popover-
|
|
23
|
-
import { r as E } from "../chunks/combobox-
|
|
24
|
-
import { r as D } from "../chunks/switch-
|
|
21
|
+
import { r as S, t as C } from "../chunks/command-list-DIv7azFz.js";
|
|
22
|
+
import { n as w, t as T } from "../chunks/picker-popover-AA76MIKx.js";
|
|
23
|
+
import { r as E } from "../chunks/combobox-B9PoRhga.js";
|
|
24
|
+
import { r as D } from "../chunks/switch-BMdMW6Gh.js";
|
|
25
25
|
import { a as O, o as ee, s as k } from "../chunks/field-BJoH_7Mc.js";
|
|
26
|
-
import { c as A, f as j, l as M, t as te } from "../chunks/identity-
|
|
26
|
+
import { c as A, f as j, l as M, t as te } from "../chunks/identity-CKVVvPbE.js";
|
|
27
27
|
import { r as ne } from "../chunks/separator-CAxDTLUL.js";
|
|
28
28
|
import { Children as re, createContext as N, forwardRef as P, isValidElement as ie, useCallback as F, useContext as ae, useEffect as I, useId as L, useLayoutEffect as oe, useMemo as R, useRef as z, useState as B, useSyncExternalStore as se } from "react";
|
|
29
29
|
import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
30
|
-
import { Add01Icon as W, ArrowExpand01Icon as G, ArrowLeft01Icon as K, ArrowReloadHorizontalIcon as q, ArrowRight01Icon as ce, ArrowShrink02Icon as J, ArrowUp02Icon as le, Attachment01Icon as
|
|
30
|
+
import { Add01Icon as W, ArrowExpand01Icon as G, ArrowLeft01Icon as K, ArrowReloadHorizontalIcon as q, ArrowRight01Icon as ce, ArrowShrink02Icon as J, ArrowUp02Icon as le, Attachment01Icon as Y, AudioWave01Icon as ue, Cancel01Icon as de, Delete02Icon as fe, Download01Icon as pe, File01Icon as me, Pdf01Icon as he, StopIcon as X } from "@hugeicons/core-free-icons";
|
|
31
31
|
// src/components/playground/attachments.tsx
|
|
32
|
-
var
|
|
32
|
+
var ge = { align: {
|
|
33
33
|
start: { classes: "justify-start" },
|
|
34
34
|
end: { classes: "justify-end" }
|
|
35
|
-
} },
|
|
35
|
+
} }, _e = { align: "start" }, ve = (e) => e.type.startsWith("image/") && !!e.src, Z = /* @__PURE__ */ P(function({ items: n, onRemove: o, align: s = "start", "aria-label": c, className: l }, u) {
|
|
36
36
|
let d = t();
|
|
37
37
|
return n.length === 0 ? null : /* @__PURE__ */ H("ul", {
|
|
38
38
|
ref: u,
|
|
39
39
|
"aria-label": c ?? d("attachments.label", "Attachments"),
|
|
40
|
-
className: e("flex min-w-0 flex-wrap items-center gap-8",
|
|
40
|
+
className: e("flex min-w-0 flex-wrap items-center gap-8", ge.align[s].classes, l),
|
|
41
41
|
children: n.map((e) => {
|
|
42
42
|
let t = d("attachments.remove", "Remove {name}", { name: e.name });
|
|
43
43
|
return /* @__PURE__ */ H("li", {
|
|
44
44
|
className: "relative flex min-w-0",
|
|
45
|
-
children:
|
|
45
|
+
children: ve(e) ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(a, {
|
|
46
46
|
src: e.src ?? "",
|
|
47
47
|
alt: e.name,
|
|
48
48
|
size: "sm"
|
|
49
49
|
}), o && /* @__PURE__ */ H(r, {
|
|
50
50
|
size: "xs",
|
|
51
51
|
variant: "secondary",
|
|
52
|
-
icon:
|
|
52
|
+
icon: de,
|
|
53
53
|
"aria-label": t,
|
|
54
54
|
onClick: () => o(e.id),
|
|
55
55
|
className: "absolute top-4 right-4 controls-on-picture"
|
|
56
56
|
})] }) : /* @__PURE__ */ H(i, {
|
|
57
|
-
icon: e.type === "application/pdf" ?
|
|
57
|
+
icon: e.type === "application/pdf" ? he : e.type.startsWith("audio/") ? ue : me,
|
|
58
58
|
...o ? {
|
|
59
59
|
onRemove: () => o(e.id),
|
|
60
60
|
removeLabel: t
|
|
@@ -66,18 +66,18 @@ var he = { align: {
|
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
|
-
process.env.NODE_ENV !== "production" && (
|
|
69
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "Attachments");
|
|
70
70
|
// src/components/playground/composer.tsx
|
|
71
71
|
var ye = { size: {
|
|
72
72
|
md: { classes: "rounded-frame" },
|
|
73
73
|
sm: { classes: "rounded-frame" }
|
|
74
74
|
} }, be = { size: "md" }, xe = "(pointer: coarse)";
|
|
75
|
-
function
|
|
75
|
+
function Se(e) {
|
|
76
76
|
if (typeof window > "u" || !window.matchMedia) return () => {};
|
|
77
77
|
let t = window.matchMedia(xe);
|
|
78
78
|
return t.addEventListener?.("change", e), () => t.removeEventListener?.("change", e);
|
|
79
79
|
}
|
|
80
|
-
var
|
|
80
|
+
var Ce = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, we = () => se(Se, Ce, () => !1), Te = (e) => e ? Array.from(e) : [], Ee = (e) => Array.from(e.dataTransfer?.types ?? []).includes("Files"), De = /* @__PURE__ */ P(function({ value: n, defaultValue: i = "", onValueChange: a, onSubmit: s, onStop: c, submitOn: l = "enter", streaming: u = !1, loading: d = !1, disabled: f = !1, clearOnSubmit: p = !0, placeholder: m, "aria-label": h, maxRows: g = 10, size: _ = "md", actions: v, submitLabel: y, stopLabel: b, autoFocus: x, name: S, attachments: C = [], onAttach: w, onRemoveAttachment: T, accept: E, attachLabel: D, "data-force": O, className: ee }, k) {
|
|
81
81
|
let A = t(), j = m ?? A("composer.placeholder", "Write a prompt"), M = h ?? A("composer.prompt", "Prompt"), te = y ?? A("composer.send", "Send"), ne = b ?? A("composer.stop", "Stop"), re = D ?? A("composer.attach", "Attach files"), [N, P] = o(n, i, a), ie = z(null), [ae, I] = B(!1), R = !!w && !f, se = L(), W = z(null), G = _ === "sm" ? 1 : 2, K = F(() => {
|
|
82
82
|
let e = W.current;
|
|
83
83
|
e && (e.style.setProperty("--scroll-area-overflow-y-start", `${Math.max(0, e.scrollTop)}px`), e.style.setProperty("--scroll-area-overflow-y-end", `${Math.max(0, e.scrollHeight - e.clientHeight - e.scrollTop)}px`));
|
|
@@ -90,18 +90,18 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
90
90
|
K
|
|
91
91
|
]);
|
|
92
92
|
oe(q, [q, N]);
|
|
93
|
-
let ce = N.trim() === "" && C.length === 0, J = !f && !u && !d && !ce,
|
|
93
|
+
let ce = N.trim() === "" && C.length === 0, J = !f && !u && !d && !ce, ue = () => {
|
|
94
94
|
J && (s?.(N), p && n === void 0 && P(""));
|
|
95
|
-
},
|
|
96
|
-
e.key === "Enter" && (e.nativeEvent.isComposing || e.keyCode === 229 || (e.metaKey || e.ctrlKey ||
|
|
97
|
-
},
|
|
98
|
-
e.preventDefault(),
|
|
99
|
-
},
|
|
100
|
-
let t =
|
|
95
|
+
}, de = we(), fe = l === "enter" && !de, pe = (e) => {
|
|
96
|
+
e.key === "Enter" && (e.nativeEvent.isComposing || e.keyCode === 229 || (e.metaKey || e.ctrlKey || fe && !e.shiftKey && !e.altKey) && (e.preventDefault(), ue()));
|
|
97
|
+
}, me = (e) => {
|
|
98
|
+
e.preventDefault(), ue();
|
|
99
|
+
}, he = (e) => {
|
|
100
|
+
let t = Te(e.clipboardData?.files);
|
|
101
101
|
R && t.length !== 0 && (e.clipboardData.getData("text/plain") || e.preventDefault(), w?.(t));
|
|
102
102
|
};
|
|
103
103
|
return /* @__PURE__ */ U("form", {
|
|
104
|
-
onSubmit:
|
|
104
|
+
onSubmit: me,
|
|
105
105
|
onMouseDown: (e) => {
|
|
106
106
|
if (f || e.button !== 0 || !e.currentTarget.contains(e.target)) return;
|
|
107
107
|
let t = e.target.closest("textarea, button, a, input, select, label, [role], [tabindex]");
|
|
@@ -109,17 +109,17 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
109
109
|
},
|
|
110
110
|
...R ? {
|
|
111
111
|
onDragEnter: (e) => {
|
|
112
|
-
|
|
112
|
+
Ee(e) && I(!0);
|
|
113
113
|
},
|
|
114
114
|
onDragOver: (e) => {
|
|
115
|
-
|
|
115
|
+
Ee(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
|
|
116
116
|
},
|
|
117
117
|
onDragLeave: (e) => {
|
|
118
118
|
e.currentTarget.contains(e.relatedTarget) || I(!1);
|
|
119
119
|
},
|
|
120
120
|
onDrop: (e) => {
|
|
121
121
|
I(!1);
|
|
122
|
-
let t =
|
|
122
|
+
let t = Te(e.dataTransfer?.files);
|
|
123
123
|
t.length !== 0 && (e.preventDefault(), w?.(t));
|
|
124
124
|
}
|
|
125
125
|
} : {},
|
|
@@ -128,7 +128,7 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
128
128
|
...ae && R ? { "data-drop": "" } : {},
|
|
129
129
|
className: e("flex min-w-0 cursor-text flex-col material-composer transition-control", ye.size[_].classes, f && "cursor-not-allowed", ee),
|
|
130
130
|
children: [
|
|
131
|
-
C.length > 0 && /* @__PURE__ */ H(
|
|
131
|
+
C.length > 0 && /* @__PURE__ */ H(Z, {
|
|
132
132
|
items: C,
|
|
133
133
|
onRemove: f ? void 0 : T,
|
|
134
134
|
className: "px-8 pt-8"
|
|
@@ -140,15 +140,15 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
140
140
|
rows: G,
|
|
141
141
|
value: N,
|
|
142
142
|
onChange: (e) => P(e.target.value),
|
|
143
|
-
onKeyDown:
|
|
144
|
-
onPaste:
|
|
143
|
+
onKeyDown: pe,
|
|
144
|
+
onPaste: he,
|
|
145
145
|
onScroll: K,
|
|
146
146
|
disabled: f,
|
|
147
147
|
placeholder: j,
|
|
148
148
|
"aria-label": M,
|
|
149
149
|
...u && !ce ? { "aria-describedby": se } : {},
|
|
150
|
-
"aria-keyshortcuts":
|
|
151
|
-
...
|
|
150
|
+
"aria-keyshortcuts": fe ? "Enter Meta+Enter Control+Enter" : "Meta+Enter Control+Enter",
|
|
151
|
+
...fe ? { enterKeyHint: "send" } : {},
|
|
152
152
|
autoFocus: x,
|
|
153
153
|
...S ? { name: S } : {},
|
|
154
154
|
className: "block w-full min-w-0 resize-none bg-transparent px-16 pt-12 pb-4 text-body text-fg outline-none scrollbar-quiet scroll-fade-y placeholder:text-fg-tertiary disabled:cursor-not-allowed disabled:text-fg-disabled disabled:placeholder:text-fg-disabled"
|
|
@@ -166,7 +166,7 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
166
166
|
type: "button",
|
|
167
167
|
size: "sm",
|
|
168
168
|
variant: "ghost",
|
|
169
|
-
icon:
|
|
169
|
+
icon: Y,
|
|
170
170
|
"aria-label": re,
|
|
171
171
|
disabled: f,
|
|
172
172
|
onClick: () => ie.current?.click()
|
|
@@ -178,7 +178,7 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
178
178
|
tabIndex: -1,
|
|
179
179
|
...E ? { accept: E } : {},
|
|
180
180
|
onChange: (e) => {
|
|
181
|
-
let t =
|
|
181
|
+
let t = Te(e.currentTarget.files);
|
|
182
182
|
e.currentTarget.value = "", t.length && w?.(t);
|
|
183
183
|
}
|
|
184
184
|
})] }), v]
|
|
@@ -186,7 +186,7 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
186
186
|
type: "button",
|
|
187
187
|
size: "sm",
|
|
188
188
|
variant: "secondary",
|
|
189
|
-
icon:
|
|
189
|
+
icon: X,
|
|
190
190
|
"aria-label": ne,
|
|
191
191
|
onClick: () => c?.(),
|
|
192
192
|
disabled: f
|
|
@@ -203,9 +203,9 @@ var Se = () => typeof window < "u" && !!window.matchMedia?.(xe).matches, Ce = ()
|
|
|
203
203
|
]
|
|
204
204
|
});
|
|
205
205
|
});
|
|
206
|
-
process.env.NODE_ENV !== "production" && (
|
|
206
|
+
process.env.NODE_ENV !== "production" && (De.displayName = "Composer");
|
|
207
207
|
// src/components/playground/media-response.tsx
|
|
208
|
-
var
|
|
208
|
+
var Q = { kind: {
|
|
209
209
|
image: { classes: "" },
|
|
210
210
|
audio: { classes: "" },
|
|
211
211
|
video: { classes: "" }
|
|
@@ -214,7 +214,7 @@ function Me({ item: e, label: t }) {
|
|
|
214
214
|
return /* @__PURE__ */ H(r, {
|
|
215
215
|
size: "sm",
|
|
216
216
|
variant: "secondary",
|
|
217
|
-
icon:
|
|
217
|
+
icon: pe,
|
|
218
218
|
"aria-label": t,
|
|
219
219
|
href: e.src,
|
|
220
220
|
download: e.name
|
|
@@ -271,7 +271,7 @@ var Fe = /* @__PURE__ */ P(function({ kind: n = "image", status: i = "done", ite
|
|
|
271
271
|
children: [k && /* @__PURE__ */ H(r, {
|
|
272
272
|
size: "sm",
|
|
273
273
|
variant: "quiet",
|
|
274
|
-
icon:
|
|
274
|
+
icon: pe,
|
|
275
275
|
"aria-label": _("mediaResponse.download", "Download {name}", { name: k.label ?? k.name }),
|
|
276
276
|
href: k.src,
|
|
277
277
|
download: k.name
|
|
@@ -624,7 +624,7 @@ var We = /* @__PURE__ */ P(function({ label: n, header: i, actions: a, children:
|
|
|
624
624
|
c && g > 1 && /* @__PURE__ */ H(r, {
|
|
625
625
|
variant: "ghost",
|
|
626
626
|
"data-compare-remove": "",
|
|
627
|
-
icon:
|
|
627
|
+
icon: de,
|
|
628
628
|
"aria-label": l ?? m("compareGrid.remove", "Remove {label}", { label: n }),
|
|
629
629
|
size: "sm",
|
|
630
630
|
onClick: () => {
|
|
@@ -829,7 +829,7 @@ var tt = {
|
|
|
829
829
|
"aria-label": f,
|
|
830
830
|
className: e("flex min-w-0 flex-col items-end gap-2", c),
|
|
831
831
|
children: [
|
|
832
|
-
/* @__PURE__ */ H(
|
|
832
|
+
/* @__PURE__ */ H(Z, {
|
|
833
833
|
items: i,
|
|
834
834
|
align: "end",
|
|
835
835
|
className: b ? "mb-6" : void 0
|
|
@@ -1277,7 +1277,7 @@ var yt = /* @__PURE__ */ P(function({ trigger: e, title: n, open: i, defaultOpen
|
|
|
1277
1277
|
className: "absolute top-0 right-0",
|
|
1278
1278
|
children: /* @__PURE__ */ H(g.Close, { children: /* @__PURE__ */ H(r, {
|
|
1279
1279
|
variant: "ghost",
|
|
1280
|
-
icon:
|
|
1280
|
+
icon: de,
|
|
1281
1281
|
"aria-label": d("parameterPopover.close", "Close parameters"),
|
|
1282
1282
|
size: "sm"
|
|
1283
1283
|
}) })
|
|
@@ -1295,19 +1295,36 @@ var bt = {
|
|
|
1295
1295
|
}, xt = { appearance: {
|
|
1296
1296
|
ghost: { classes: v.appearance.header.classes },
|
|
1297
1297
|
default: { classes: v.appearance.default.classes }
|
|
1298
|
-
} }, St = { appearance: "ghost" }, Ct = "", wt = "*";
|
|
1299
|
-
function
|
|
1300
|
-
let { formatContext: i } = s(), a = t.model ?? t.value,
|
|
1298
|
+
} }, St = { appearance: "ghost" }, Ct = "", wt = "*", Tt = [], Et = [], Dt = (e, t, n, r) => (n || !e.deprecated || t.has(e.value)) && (!r || e.provider === r);
|
|
1299
|
+
function Ot({ option: t, query: n, providerLabel: r }) {
|
|
1300
|
+
let { formatContext: i } = s(), a = t.model ?? t.value, { badge: o, end: c } = R(() => {
|
|
1301
|
+
let n = t.note ?? [t.context ? i(t.context) : "", t.price ?? ""].filter(Boolean).join(" · ");
|
|
1302
|
+
return {
|
|
1303
|
+
badge: r !== void 0 && /* @__PURE__ */ H("span", {
|
|
1304
|
+
"aria-hidden": !0,
|
|
1305
|
+
className: "flex",
|
|
1306
|
+
children: /* @__PURE__ */ H(M, {
|
|
1307
|
+
provider: t.provider,
|
|
1308
|
+
name: r,
|
|
1309
|
+
model: a
|
|
1310
|
+
})
|
|
1311
|
+
}),
|
|
1312
|
+
end: /* @__PURE__ */ U(V, { children: [t.capabilities && t.capabilities.length > 0 && /* @__PURE__ */ H(te, {
|
|
1313
|
+
capabilities: t.capabilities,
|
|
1314
|
+
className: "hidden sm:flex"
|
|
1315
|
+
}), n && /* @__PURE__ */ H("span", {
|
|
1316
|
+
className: e("shrink-0 text-caption font-regular", x(n), t.note ? "text-fg-secondary" : "hidden text-fg-tertiary sm:inline"),
|
|
1317
|
+
children: n
|
|
1318
|
+
})] })
|
|
1319
|
+
};
|
|
1320
|
+
}, [
|
|
1321
|
+
t,
|
|
1322
|
+
r,
|
|
1323
|
+
a,
|
|
1324
|
+
i
|
|
1325
|
+
]);
|
|
1301
1326
|
return /* @__PURE__ */ U(V, { children: [
|
|
1302
|
-
|
|
1303
|
-
"aria-hidden": !0,
|
|
1304
|
-
className: "flex",
|
|
1305
|
-
children: /* @__PURE__ */ H(M, {
|
|
1306
|
-
provider: t.provider,
|
|
1307
|
-
name: r,
|
|
1308
|
-
model: a
|
|
1309
|
-
})
|
|
1310
|
-
}),
|
|
1327
|
+
o,
|
|
1311
1328
|
/* @__PURE__ */ U("span", {
|
|
1312
1329
|
className: "flex min-w-0 flex-1 items-baseline gap-8",
|
|
1313
1330
|
children: [/* @__PURE__ */ H("span", {
|
|
@@ -1324,17 +1341,10 @@ function Tt({ option: t, query: n, providerLabel: r }) {
|
|
|
1324
1341
|
})
|
|
1325
1342
|
})]
|
|
1326
1343
|
}),
|
|
1327
|
-
|
|
1328
|
-
capabilities: t.capabilities,
|
|
1329
|
-
className: "hidden sm:flex"
|
|
1330
|
-
}),
|
|
1331
|
-
(t.note ?? o) && /* @__PURE__ */ H("span", {
|
|
1332
|
-
className: e("shrink-0 text-caption font-regular", x(t.note ?? o), t.note ? "text-fg-secondary" : "hidden text-fg-tertiary sm:inline"),
|
|
1333
|
-
children: t.note ?? o
|
|
1334
|
-
})
|
|
1344
|
+
c
|
|
1335
1345
|
] });
|
|
1336
1346
|
}
|
|
1337
|
-
function
|
|
1347
|
+
function kt(e, t, n) {
|
|
1338
1348
|
let r = e.model ?? e.value, i = t(e.provider);
|
|
1339
1349
|
return {
|
|
1340
1350
|
value: e.value,
|
|
@@ -1344,7 +1354,7 @@ function Et(e, t, n) {
|
|
|
1344
1354
|
i,
|
|
1345
1355
|
e.provider
|
|
1346
1356
|
],
|
|
1347
|
-
render: ({ query: t }) => /* @__PURE__ */ H(
|
|
1357
|
+
render: ({ query: t }) => /* @__PURE__ */ H(Ot, {
|
|
1348
1358
|
option: e,
|
|
1349
1359
|
query: t,
|
|
1350
1360
|
...n ? { providerLabel: i } : {}
|
|
@@ -1352,30 +1362,36 @@ function Et(e, t, n) {
|
|
|
1352
1362
|
...e.disabled ? { disabled: !0 } : {}
|
|
1353
1363
|
};
|
|
1354
1364
|
}
|
|
1355
|
-
function
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1365
|
+
function At(e, t, n, r, i = (e) => kt(e, r, !n)) {
|
|
1366
|
+
if (!n) return [{
|
|
1367
|
+
id: "models",
|
|
1368
|
+
items: e.map(i)
|
|
1369
|
+
}];
|
|
1370
|
+
let a = /* @__PURE__ */ new Map();
|
|
1371
|
+
for (let t of e) {
|
|
1372
|
+
let e = a.get(t.provider);
|
|
1373
|
+
e ? e.push(t) : a.set(t.provider, [t]);
|
|
1374
|
+
}
|
|
1375
|
+
return t.flatMap((e) => {
|
|
1376
|
+
let t = a.get(e);
|
|
1377
|
+
return t ? [{
|
|
1378
|
+
id: `provider:${e}`,
|
|
1379
|
+
label: r(e),
|
|
1361
1380
|
leading: /* @__PURE__ */ H("span", {
|
|
1362
1381
|
"aria-hidden": !0,
|
|
1363
1382
|
className: "flex",
|
|
1364
1383
|
children: /* @__PURE__ */ H(M, {
|
|
1365
|
-
provider:
|
|
1366
|
-
name: r(
|
|
1384
|
+
provider: e,
|
|
1385
|
+
name: r(e),
|
|
1367
1386
|
size: "sm"
|
|
1368
1387
|
})
|
|
1369
1388
|
}),
|
|
1370
|
-
count:
|
|
1371
|
-
items:
|
|
1389
|
+
count: t.length,
|
|
1390
|
+
items: t.map(i)
|
|
1372
1391
|
}] : [];
|
|
1373
|
-
})
|
|
1374
|
-
id: "models",
|
|
1375
|
-
items: e.map((e) => Et(e, r, !0))
|
|
1376
|
-
}];
|
|
1392
|
+
});
|
|
1377
1393
|
}
|
|
1378
|
-
function
|
|
1394
|
+
function jt(e, t) {
|
|
1379
1395
|
let r = n(), i = R(() => new Map(t.map((e) => [e.id, e])), [t]), a = F((e) => j(e, i.get(e)?.name), [i]);
|
|
1380
1396
|
return {
|
|
1381
1397
|
nameOf: a,
|
|
@@ -1387,78 +1403,89 @@ function Ot(e, t) {
|
|
|
1387
1403
|
])
|
|
1388
1404
|
};
|
|
1389
1405
|
}
|
|
1390
|
-
function
|
|
1391
|
-
let { nameOf: r, providerOrder: i } =
|
|
1392
|
-
return R(() =>
|
|
1406
|
+
function Mt(e, { providers: t = Et, groupByProvider: n } = {}) {
|
|
1407
|
+
let { nameOf: r, providerOrder: i } = jt(e, t), a = n ?? i.length > 1;
|
|
1408
|
+
return R(() => At(e, i, a, r), [
|
|
1393
1409
|
e,
|
|
1394
1410
|
i,
|
|
1395
1411
|
a,
|
|
1396
1412
|
r
|
|
1397
1413
|
]);
|
|
1398
1414
|
}
|
|
1399
|
-
var
|
|
1400
|
-
let { options: i, providers: a =
|
|
1415
|
+
var Nt = /* @__PURE__ */ P(function(n, r) {
|
|
1416
|
+
let { options: i, providers: a = Et, recent: o = Tt, groupByProvider: c, placeholder: l, "aria-label": u, appearance: d = "ghost", size: f = "sm", fullWidth: p, disabled: m, invalid: h, open: g, onOpenChange: _, "data-force": v, className: b, label: x, description: E, error: j, optional: te, required: ne, layout: re } = n, N = t(), { formatNumber: P } = s(), ie = O(), F = ee(n), [ae, I] = B(!1), L = g ?? ae, oe = (e) => {
|
|
1401
1417
|
g === void 0 && I(e), _?.(e);
|
|
1402
|
-
}, [z, se] = B(() => n.defaultValue ?? (n.multiple ? [] : null)), W = n.value === void 0 ? z : n.value, G = Array.isArray(W) ? W : W ? [W] : [], K = n.multiple ? void 0 : n.allLabel, [q, ce] = B(""), [J, le] = B(null), [
|
|
1403
|
-
L !==
|
|
1404
|
-
let
|
|
1405
|
-
|
|
1406
|
-
|
|
1418
|
+
}, [z, se] = B(() => n.defaultValue ?? (n.multiple ? [] : null)), W = n.value === void 0 ? z : n.value, G = Array.isArray(W) ? W : W ? [W] : [], K = n.multiple ? void 0 : n.allLabel, [q, ce] = B(""), [J, le] = B(null), [Y, ue] = B(!1), [de, fe] = B(L), [pe, me] = B(L);
|
|
1419
|
+
L !== de && (fe(L), L && (ce(""), le(null), me(!0)));
|
|
1420
|
+
let he = R(() => new Map(i.map((e) => [e.value, e])), [i]), { nameOf: X, providerOrder: ge } = jt(i, a), _e = c ?? ge.length > 1, ve = i.some((e) => e.deprecated && !G.includes(e.value)), Z = G.join("\0"), ye = q.trim() !== "", be = R(() => pe ? new Map(i.map((e) => [e, kt(e, X, !_e)])) : null, [
|
|
1421
|
+
pe,
|
|
1422
|
+
i,
|
|
1423
|
+
X,
|
|
1424
|
+
_e
|
|
1425
|
+
]), xe = R(() => {
|
|
1426
|
+
if (!be) return [];
|
|
1427
|
+
let e = new Set(Z.split("\0"));
|
|
1428
|
+
return At(i.filter((t) => Dt(t, e, Y, J)), ge, _e, X, (e) => be.get(e) ?? kt(e, X, !_e));
|
|
1429
|
+
}, [
|
|
1430
|
+
be,
|
|
1431
|
+
i,
|
|
1432
|
+
ge,
|
|
1433
|
+
_e,
|
|
1434
|
+
X,
|
|
1435
|
+
Y,
|
|
1436
|
+
Z,
|
|
1437
|
+
J
|
|
1438
|
+
]), Se = R(() => {
|
|
1439
|
+
if (!pe) return [];
|
|
1440
|
+
let e = new Set(Z.split("\0")), t = [];
|
|
1441
|
+
K && !J && t.push({
|
|
1407
1442
|
id: "all",
|
|
1408
1443
|
items: [{
|
|
1409
1444
|
value: Ct,
|
|
1410
1445
|
label: K
|
|
1411
1446
|
}]
|
|
1412
1447
|
});
|
|
1413
|
-
let
|
|
1414
|
-
|
|
1448
|
+
let n = ye || J ? [] : o.flatMap((t) => {
|
|
1449
|
+
let n = he.get(t);
|
|
1450
|
+
return n && Dt(n, e, Y, J) ? [kt(n, X, !0)] : [];
|
|
1451
|
+
});
|
|
1452
|
+
return n.length && t.push({
|
|
1415
1453
|
id: "recent",
|
|
1416
1454
|
label: N("modelPicker.recent", "Recent"),
|
|
1417
|
-
items:
|
|
1418
|
-
}),
|
|
1455
|
+
items: n
|
|
1456
|
+
}), t;
|
|
1419
1457
|
}, [
|
|
1420
|
-
|
|
1421
|
-
Z,
|
|
1422
|
-
me,
|
|
1458
|
+
pe,
|
|
1423
1459
|
o,
|
|
1424
|
-
|
|
1425
|
-
|
|
1460
|
+
he,
|
|
1461
|
+
ye,
|
|
1426
1462
|
J,
|
|
1427
|
-
|
|
1428
|
-
|
|
1463
|
+
Y,
|
|
1464
|
+
Z,
|
|
1429
1465
|
K,
|
|
1430
1466
|
N,
|
|
1431
1467
|
X
|
|
1432
|
-
]),
|
|
1468
|
+
]), Ce = R(() => Se.length ? [...Se, ...xe] : xe, [Se, xe]), we = (e) => {
|
|
1433
1469
|
if (n.multiple) {
|
|
1434
1470
|
let t = G.includes(e) ? G.filter((t) => t !== e) : [...G, e];
|
|
1435
1471
|
n.value === void 0 && se(t), n.onValueChange?.(t);
|
|
1436
1472
|
} else n.value === void 0 && se(e === Ct ? null : e), n.onValueChange?.(e), oe(!1);
|
|
1437
|
-
},
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
e && S(e, [
|
|
1443
|
-
r.name ?? i,
|
|
1444
|
-
i,
|
|
1445
|
-
X(r.provider),
|
|
1446
|
-
r.provider
|
|
1447
|
-
]) <= 0 || n.set(r.provider, (n.get(r.provider) ?? 0) + 1);
|
|
1448
|
-
}
|
|
1449
|
-
return Z.filter((e) => n.has(e) || e === J).map((e) => ({
|
|
1473
|
+
}, Te = R(() => {
|
|
1474
|
+
if (!be) return [];
|
|
1475
|
+
let e = q.trim(), t = new Set(Z.split("\0")), n = /* @__PURE__ */ new Map();
|
|
1476
|
+
for (let [r, i] of be) Dt(r, t, Y, null) && (e && S(i, e) <= 0 || n.set(r.provider, (n.get(r.provider) ?? 0) + 1));
|
|
1477
|
+
return ge.filter((e) => n.has(e) || e === J).map((e) => ({
|
|
1450
1478
|
id: e,
|
|
1451
1479
|
count: n.get(e) ?? 0
|
|
1452
1480
|
}));
|
|
1453
1481
|
}, [
|
|
1454
|
-
|
|
1455
|
-
Z,
|
|
1456
|
-
q,
|
|
1457
|
-
ue,
|
|
1482
|
+
be,
|
|
1458
1483
|
ge,
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1484
|
+
q,
|
|
1485
|
+
Y,
|
|
1486
|
+
Z,
|
|
1487
|
+
J
|
|
1488
|
+
]), Ee = _e && ge.length > 1 ? /* @__PURE__ */ H(y, {
|
|
1462
1489
|
"aria-label": N("modelPicker.provider", "Provider"),
|
|
1463
1490
|
size: "sm",
|
|
1464
1491
|
appearance: "ghost",
|
|
@@ -1467,7 +1494,7 @@ var At = /* @__PURE__ */ P(function(n, r) {
|
|
|
1467
1494
|
options: [{
|
|
1468
1495
|
value: wt,
|
|
1469
1496
|
label: N("modelPicker.everyProvider", "All providers")
|
|
1470
|
-
}, ...
|
|
1497
|
+
}, ...Te.map(({ id: e, count: t }) => ({
|
|
1471
1498
|
value: e,
|
|
1472
1499
|
textValue: X(e),
|
|
1473
1500
|
label: /* @__PURE__ */ U("span", {
|
|
@@ -1492,12 +1519,12 @@ var At = /* @__PURE__ */ P(function(n, r) {
|
|
|
1492
1519
|
]
|
|
1493
1520
|
})
|
|
1494
1521
|
}))]
|
|
1495
|
-
}) : null,
|
|
1522
|
+
}) : null, De = Ee || ve ? /* @__PURE__ */ U(V, { children: [Ee, ve && /* @__PURE__ */ H(D, {
|
|
1496
1523
|
size: "sm",
|
|
1497
1524
|
label: N("modelPicker.showDeprecated", "Show deprecated"),
|
|
1498
|
-
checked:
|
|
1499
|
-
onCheckedChange:
|
|
1500
|
-
})] }) : void 0, Q = G[0] ?
|
|
1525
|
+
checked: Y,
|
|
1526
|
+
onCheckedChange: ue
|
|
1527
|
+
})] }) : void 0, Q = G[0] ? he.get(G[0]) : void 0, Oe = n.multiple ? Q ? G.length === 1 ? /* @__PURE__ */ H(A, {
|
|
1501
1528
|
provider: Q.provider,
|
|
1502
1529
|
providerName: X(Q.provider),
|
|
1503
1530
|
model: Q.model ?? Q.value,
|
|
@@ -1520,8 +1547,8 @@ var At = /* @__PURE__ */ P(function(n, r) {
|
|
|
1520
1547
|
providerName: X(Q.provider),
|
|
1521
1548
|
model: Q.model ?? Q.value,
|
|
1522
1549
|
...Q.name ? { name: Q.name } : {}
|
|
1523
|
-
}) : W === Ct || W === null && K ? K : void 0,
|
|
1524
|
-
title:
|
|
1550
|
+
}) : W === Ct || W === null && K ? K : void 0, ke = u ?? (typeof x == "string" ? x : N("modelPicker.model", "Model")), Ae = /* @__PURE__ */ H(T, {
|
|
1551
|
+
title: ke,
|
|
1525
1552
|
width: "lg",
|
|
1526
1553
|
open: L,
|
|
1527
1554
|
onOpenChange: oe,
|
|
@@ -1530,7 +1557,7 @@ var At = /* @__PURE__ */ P(function(n, r) {
|
|
|
1530
1557
|
appearance: bt[d],
|
|
1531
1558
|
size: f,
|
|
1532
1559
|
...F.controlProps,
|
|
1533
|
-
...u || !x ? { "aria-label":
|
|
1560
|
+
...u || !x ? { "aria-label": ke } : {},
|
|
1534
1561
|
...m ? { disabled: m } : {},
|
|
1535
1562
|
...h ? { invalid: h } : {},
|
|
1536
1563
|
...p ? { fullWidth: p } : {},
|
|
@@ -1538,23 +1565,23 @@ var At = /* @__PURE__ */ P(function(n, r) {
|
|
|
1538
1565
|
...Q && !n.multiple ? { title: Q.name && Q.name !== (Q.model ?? Q.value) ? `${Q.name} · ${Q.model ?? Q.value}` : Q.model ?? Q.value } : {},
|
|
1539
1566
|
placeholder: l ?? (n.multiple ? N("modelPicker.chooseSome", "Choose models") : N("modelPicker.choose", "Choose a model")),
|
|
1540
1567
|
className: e("max-w-full", !(x || E || j) && b),
|
|
1541
|
-
children:
|
|
1568
|
+
children: Oe
|
|
1542
1569
|
}),
|
|
1543
1570
|
children: /* @__PURE__ */ H(C, {
|
|
1544
|
-
groups:
|
|
1545
|
-
"aria-label":
|
|
1571
|
+
groups: Ce,
|
|
1572
|
+
"aria-label": ke,
|
|
1546
1573
|
value: n.multiple ? G : G[0] ?? (K ? Ct : null),
|
|
1547
1574
|
...n.multiple ? { multiple: !0 } : {},
|
|
1548
|
-
onSelect:
|
|
1575
|
+
onSelect: we,
|
|
1549
1576
|
query: q,
|
|
1550
1577
|
onQueryChange: ce,
|
|
1551
1578
|
placeholder: N("modelPicker.search", "Search models"),
|
|
1552
1579
|
emptyText: N("modelPicker.noMatch", "No models match"),
|
|
1553
|
-
toolbar:
|
|
1580
|
+
toolbar: De,
|
|
1554
1581
|
autoFocus: !0
|
|
1555
1582
|
})
|
|
1556
1583
|
});
|
|
1557
|
-
return ie ?
|
|
1584
|
+
return ie ? Ae : k({
|
|
1558
1585
|
label: x,
|
|
1559
1586
|
description: E,
|
|
1560
1587
|
error: j,
|
|
@@ -1564,23 +1591,23 @@ var At = /* @__PURE__ */ P(function(n, r) {
|
|
|
1564
1591
|
id: F.wrapId,
|
|
1565
1592
|
disabled: m,
|
|
1566
1593
|
className: b
|
|
1567
|
-
},
|
|
1594
|
+
}, Ae);
|
|
1568
1595
|
});
|
|
1569
|
-
process.env.NODE_ENV !== "production" && (
|
|
1596
|
+
process.env.NODE_ENV !== "production" && (Nt.displayName = "ModelPicker");
|
|
1570
1597
|
// src/components/playground/probability-bar.tsx
|
|
1571
|
-
var
|
|
1598
|
+
var Pt = { layout: {
|
|
1572
1599
|
inline: { classes: "flex min-h-22 items-center gap-12" },
|
|
1573
1600
|
stacked: { classes: "flex flex-col gap-6" },
|
|
1574
1601
|
row: { classes: "col-span-full grid min-h-22 grid-cols-subgrid items-center" }
|
|
1575
|
-
} },
|
|
1576
|
-
function
|
|
1602
|
+
} }, Ft = { layout: "inline" };
|
|
1603
|
+
function It(e, t, { formatPercent: n }) {
|
|
1577
1604
|
return e > 0 && e < .005 ? t("probabilityBar.below", "<{percent}", { percent: n(.01, 0) }) : e < 1 && e >= .995 ? t("probabilityBar.above", ">{percent}", { percent: n(.99, 0) }) : n(e, 0);
|
|
1578
1605
|
}
|
|
1579
|
-
function
|
|
1606
|
+
function Lt(e) {
|
|
1580
1607
|
return typeof e == "number" && Number.isFinite(e);
|
|
1581
1608
|
}
|
|
1582
|
-
var
|
|
1583
|
-
let d = t(), f = s(), p = L(), m = !a &&
|
|
1609
|
+
var Rt = /* @__PURE__ */ P(function({ value: n, label: r, highlight: i = !1, pending: a = !1, layout: o = "inline", "aria-label": c, className: l }, u) {
|
|
1610
|
+
let d = t(), f = s(), p = L(), m = !a && Lt(n), h = m ? Math.max(0, Math.min(1, n)) : 0, g = m ? It(h, d, f) : "", _ = i ? d("probabilityBar.chosen", "{percent}, chosen", { percent: g }) : g, v = !a && !m, y = d("probabilityBar.missing", "Not given"), b = r == null ? null : /* @__PURE__ */ H("span", {
|
|
1584
1611
|
id: p,
|
|
1585
1612
|
className: e("min-w-0 text-small wrap-anywhere", o === "inline" ? "w-120 shrink-0" : o === "stacked" && "flex-1", i ? "font-medium text-fg" : "text-fg-secondary"),
|
|
1586
1613
|
children: r
|
|
@@ -1618,13 +1645,13 @@ var Ft = /* @__PURE__ */ P(function({ value: n, label: r, highlight: i = !1, pen
|
|
|
1618
1645
|
...a ? { "aria-hidden": !0 } : {},
|
|
1619
1646
|
"data-probability-bar": "",
|
|
1620
1647
|
"data-highlight": i || void 0,
|
|
1621
|
-
className: e(
|
|
1648
|
+
className: e(Pt.layout[o].classes, "min-w-0", l),
|
|
1622
1649
|
children: C
|
|
1623
1650
|
});
|
|
1624
1651
|
});
|
|
1625
|
-
process.env.NODE_ENV !== "production" && (
|
|
1652
|
+
process.env.NODE_ENV !== "production" && (Rt.displayName = "ProbabilityBar");
|
|
1626
1653
|
// src/components/playground/decision-types.ts
|
|
1627
|
-
function
|
|
1654
|
+
function zt(e, t) {
|
|
1628
1655
|
switch (t) {
|
|
1629
1656
|
case "predicate": return e("decision.kindPredicate", "Yes/no");
|
|
1630
1657
|
case "choice": return e("decision.kindChoice", "Choice");
|
|
@@ -1632,29 +1659,29 @@ function It(e, t) {
|
|
|
1632
1659
|
case "box": return e("decision.kindBox", "Box");
|
|
1633
1660
|
}
|
|
1634
1661
|
}
|
|
1635
|
-
function
|
|
1662
|
+
function Bt(e, t, n) {
|
|
1636
1663
|
return t.name?.trim() || e("decision.question", "Question {n}", { n: n + 1 });
|
|
1637
1664
|
}
|
|
1638
|
-
function
|
|
1665
|
+
function Vt(e, t, n) {
|
|
1639
1666
|
return t?.value.trim() || e("decision.option", "Option {n}", { n: n + 1 });
|
|
1640
1667
|
}
|
|
1641
|
-
function
|
|
1668
|
+
function Ht(e, t, n) {
|
|
1642
1669
|
return t?.label?.trim() || e("decision.level", "Level {n}", { n });
|
|
1643
1670
|
}
|
|
1644
1671
|
// src/components/playground/decision-response.tsx
|
|
1645
|
-
var
|
|
1672
|
+
var Ut = { status: {
|
|
1646
1673
|
pending: { classes: "" },
|
|
1647
1674
|
done: { classes: "" },
|
|
1648
1675
|
error: { classes: "" }
|
|
1649
|
-
} },
|
|
1650
|
-
function
|
|
1676
|
+
} }, Wt = { status: "done" }, Gt = "animate-pulse-quiet reduced:animate-none";
|
|
1677
|
+
function Kt(e, t) {
|
|
1651
1678
|
let n = e.map((e, t) => t);
|
|
1652
1679
|
if (e.length <= t) return n;
|
|
1653
1680
|
let r = (t) => e[t]?.highlight ? 2 : e[t]?.value ?? -1;
|
|
1654
1681
|
return [...n].sort((e, t) => r(t) - r(e) || e - t).slice(0, t).sort((e, t) => e - t);
|
|
1655
1682
|
}
|
|
1656
|
-
function
|
|
1657
|
-
let [o, s] = B(!1), c = L(), l = e.length > n, u = o || !l ? e.map((e, t) => t) : t ? e.slice(0, n).map((e, t) => t) :
|
|
1683
|
+
function qt({ bars: e, pending: t, max: n, unit: i, t: a }) {
|
|
1684
|
+
let [o, s] = B(!1), c = L(), l = e.length > n, u = o || !l ? e.map((e, t) => t) : t ? e.slice(0, n).map((e, t) => t) : Kt(e, n);
|
|
1658
1685
|
return /* @__PURE__ */ U("div", {
|
|
1659
1686
|
className: "flex flex-col gap-4",
|
|
1660
1687
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -1662,7 +1689,7 @@ function Wt({ bars: e, pending: t, max: n, unit: i, t: a }) {
|
|
|
1662
1689
|
className: "grid grid-cols-meter gap-x-12 gap-y-6",
|
|
1663
1690
|
children: u.map((n) => {
|
|
1664
1691
|
let r = e[n];
|
|
1665
|
-
return r ? /* @__PURE__ */ H(
|
|
1692
|
+
return r ? /* @__PURE__ */ H(Rt, {
|
|
1666
1693
|
layout: "row",
|
|
1667
1694
|
label: r.label,
|
|
1668
1695
|
value: r.value,
|
|
@@ -1685,21 +1712,21 @@ function Wt({ bars: e, pending: t, max: n, unit: i, t: a }) {
|
|
|
1685
1712
|
})]
|
|
1686
1713
|
});
|
|
1687
1714
|
}
|
|
1688
|
-
function
|
|
1715
|
+
function Jt(e) {
|
|
1689
1716
|
return Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 0;
|
|
1690
1717
|
}
|
|
1691
|
-
function
|
|
1718
|
+
function Yt({ text: t }) {
|
|
1692
1719
|
return /* @__PURE__ */ H("span", {
|
|
1693
1720
|
className: e("min-w-0 text-body text-fg wrap-anywhere", x(t)),
|
|
1694
1721
|
children: t
|
|
1695
1722
|
});
|
|
1696
1723
|
}
|
|
1697
|
-
function
|
|
1724
|
+
function Xt({ answer: t, image: n, t: r }) {
|
|
1698
1725
|
let { formatPercent: i } = s(), a = t ? {
|
|
1699
|
-
top:
|
|
1700
|
-
bottom:
|
|
1701
|
-
left:
|
|
1702
|
-
right:
|
|
1726
|
+
top: Jt(Math.min(t.top, t.bottom)),
|
|
1727
|
+
bottom: Jt(Math.max(t.top, t.bottom)),
|
|
1728
|
+
left: Jt(Math.min(t.left, t.right)),
|
|
1729
|
+
right: Jt(Math.max(t.left, t.right))
|
|
1703
1730
|
} : void 0, o = [
|
|
1704
1731
|
["top", r("decisionResponse.boxTop", "Top")],
|
|
1705
1732
|
["left", r("decisionResponse.boxLeft", "Left")],
|
|
@@ -1737,17 +1764,17 @@ function qt({ answer: t, image: n, t: r }) {
|
|
|
1737
1764
|
className: "text-small text-fg tabular",
|
|
1738
1765
|
children: a ? i(a[t], 1) : /* @__PURE__ */ H("span", {
|
|
1739
1766
|
"aria-hidden": !0,
|
|
1740
|
-
className: e("inline-block h-12 w-40 rounded-pill bg-fill-1",
|
|
1767
|
+
className: e("inline-block h-12 w-40 rounded-pill bg-fill-1", Gt)
|
|
1741
1768
|
})
|
|
1742
1769
|
})]
|
|
1743
1770
|
}, t))
|
|
1744
1771
|
})]
|
|
1745
1772
|
});
|
|
1746
1773
|
}
|
|
1747
|
-
function
|
|
1774
|
+
function Zt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c, showInstructions: l }) {
|
|
1748
1775
|
let u = t(), d = s(), { formatNumber: f } = d, p = L(), m = n.kind, h = i && (i.kind === m || i.kind === "refusal") ? i : void 0, g = h?.kind === "refusal" ? h : void 0, _ = !!h && !g, v = h && h.kind !== "refusal" && typeof h.confidence == "number" && Number.isFinite(h.confidence) ? h.confidence : void 0, y = l ? n.instructions?.trim() : void 0, b, x, S = "options";
|
|
1749
1776
|
if (m === "predicate") {
|
|
1750
|
-
let e = h?.kind === "predicate" && Number.isFinite(h.probability) ?
|
|
1777
|
+
let e = h?.kind === "predicate" && Number.isFinite(h.probability) ? Jt(h.probability) : void 0;
|
|
1751
1778
|
x = [{
|
|
1752
1779
|
label: u("decisionResponse.yes", "Yes"),
|
|
1753
1780
|
value: e,
|
|
@@ -1760,7 +1787,7 @@ function Jt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c
|
|
|
1760
1787
|
} else if (m === "choice") {
|
|
1761
1788
|
let e = n.options ?? [], t = h?.kind === "choice" ? h.option : void 0, r = h?.kind === "choice" ? h.probabilities ?? [] : [];
|
|
1762
1789
|
x = e.map((e, n) => ({
|
|
1763
|
-
label:
|
|
1790
|
+
label: Vt(u, e, n),
|
|
1764
1791
|
value: r[n],
|
|
1765
1792
|
highlight: n === t
|
|
1766
1793
|
}));
|
|
@@ -1772,7 +1799,7 @@ function Jt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c
|
|
|
1772
1799
|
max: f(Math.max(0, e.length - 1)),
|
|
1773
1800
|
level: i === void 0 ? void 0 : e[i]?.label?.trim() || void 0
|
|
1774
1801
|
}), x = e.map((e, t) => ({
|
|
1775
|
-
label:
|
|
1802
|
+
label: Ht(u, e, t),
|
|
1776
1803
|
value: r[t],
|
|
1777
1804
|
highlight: t === i
|
|
1778
1805
|
}));
|
|
@@ -1781,8 +1808,8 @@ function Jt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c
|
|
|
1781
1808
|
className: "flex shrink-0 items-baseline gap-12 text-small text-fg-tertiary",
|
|
1782
1809
|
children: [v !== void 0 && /* @__PURE__ */ H("span", {
|
|
1783
1810
|
className: "tabular",
|
|
1784
|
-
children: u("decisionResponse.confidence", "Confidence {percent}", { percent:
|
|
1785
|
-
}), /* @__PURE__ */ H("span", { children:
|
|
1811
|
+
children: u("decisionResponse.confidence", "Confidence {percent}", { percent: It(Jt(v), u, d) })
|
|
1812
|
+
}), /* @__PURE__ */ H("span", { children: zt(u, m) })]
|
|
1786
1813
|
});
|
|
1787
1814
|
return /* @__PURE__ */ U("li", {
|
|
1788
1815
|
className: "flex min-w-0 flex-col gap-12 px-12 py-16 not-first:hairline-t first:pt-0 last:pb-0",
|
|
@@ -1796,7 +1823,7 @@ function Jt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c
|
|
|
1796
1823
|
children: [/* @__PURE__ */ H("span", {
|
|
1797
1824
|
id: p,
|
|
1798
1825
|
className: "min-w-0 text-body font-medium text-fg wrap-anywhere",
|
|
1799
|
-
children:
|
|
1826
|
+
children: Bt(u, n, r)
|
|
1800
1827
|
}), C]
|
|
1801
1828
|
}), y && /* @__PURE__ */ H("span", {
|
|
1802
1829
|
className: "max-w-prose text-small text-fg-secondary wrap-break-word",
|
|
@@ -1819,8 +1846,8 @@ function Jt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c
|
|
|
1819
1846
|
className: "flex min-h-22 items-baseline",
|
|
1820
1847
|
children: a || !b ? /* @__PURE__ */ H("span", {
|
|
1821
1848
|
"aria-hidden": !0,
|
|
1822
|
-
className: e("h-12 w-120 self-center rounded-pill bg-fill-1",
|
|
1823
|
-
}) : /* @__PURE__ */ H(
|
|
1849
|
+
className: e("h-12 w-120 self-center rounded-pill bg-fill-1", Gt)
|
|
1850
|
+
}) : /* @__PURE__ */ H(Yt, { text: b.level ? u("decisionResponse.scoreNear", "{score} of {max}, nearest {level}", {
|
|
1824
1851
|
score: b.value,
|
|
1825
1852
|
max: b.max,
|
|
1826
1853
|
level: b.level
|
|
@@ -1829,12 +1856,12 @@ function Jt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c
|
|
|
1829
1856
|
max: b.max
|
|
1830
1857
|
}) })
|
|
1831
1858
|
}),
|
|
1832
|
-
m === "box" && /* @__PURE__ */ H(
|
|
1859
|
+
m === "box" && /* @__PURE__ */ H(Xt, {
|
|
1833
1860
|
answer: h?.kind === "box" ? h : void 0,
|
|
1834
1861
|
image: o,
|
|
1835
1862
|
t: u
|
|
1836
1863
|
}),
|
|
1837
|
-
x && x.length > 0 && /* @__PURE__ */ H(
|
|
1864
|
+
x && x.length > 0 && /* @__PURE__ */ H(qt, {
|
|
1838
1865
|
bars: x,
|
|
1839
1866
|
pending: a,
|
|
1840
1867
|
max: c,
|
|
@@ -1844,7 +1871,7 @@ function Jt({ question: n, index: r, answer: i, pending: a, image: o, maxBars: c
|
|
|
1844
1871
|
] })]
|
|
1845
1872
|
});
|
|
1846
1873
|
}
|
|
1847
|
-
var
|
|
1874
|
+
var Qt = /* @__PURE__ */ P(function({ questions: n, answers: i = [], status: a = "done", image: o, maxBars: s = 8, showInstructions: l = !1, error: u, onRetry: d, footer: f, "aria-label": p, className: m }, h) {
|
|
1848
1875
|
let g = t(), _ = p ?? g("responseView.response", "Response"), v = a === "pending", y = L(), b = z(a), [x, S] = B("");
|
|
1849
1876
|
I(() => {
|
|
1850
1877
|
let e = b.current;
|
|
@@ -1885,7 +1912,7 @@ var Yt = /* @__PURE__ */ P(function({ questions: n, answers: i = [], status: a =
|
|
|
1885
1912
|
})]
|
|
1886
1913
|
}) : /* @__PURE__ */ H("ol", {
|
|
1887
1914
|
className: "flex min-w-0 flex-col",
|
|
1888
|
-
children: n.map((e, t) => /* @__PURE__ */ H(
|
|
1915
|
+
children: n.map((e, t) => /* @__PURE__ */ H(Zt, {
|
|
1889
1916
|
question: e,
|
|
1890
1917
|
index: t,
|
|
1891
1918
|
answer: v ? void 0 : i[t],
|
|
@@ -1925,10 +1952,10 @@ var Yt = /* @__PURE__ */ P(function({ questions: n, answers: i = [], status: a =
|
|
|
1925
1952
|
]
|
|
1926
1953
|
});
|
|
1927
1954
|
});
|
|
1928
|
-
process.env.NODE_ENV !== "production" && (
|
|
1955
|
+
process.env.NODE_ENV !== "production" && (Qt.displayName = "DecisionResponse");
|
|
1929
1956
|
// src/components/playground/decision-questions.tsx
|
|
1930
|
-
var
|
|
1931
|
-
function
|
|
1957
|
+
var $t = { layout: { list: { classes: "" } } }, en = { layout: "list" };
|
|
1958
|
+
function tn(e, t, n) {
|
|
1932
1959
|
switch (e.kind) {
|
|
1933
1960
|
case "predicate": {
|
|
1934
1961
|
let n = e.whenTrue?.trim(), r = e.whenFalse?.trim();
|
|
@@ -1946,7 +1973,7 @@ function Qt(e, t, n) {
|
|
|
1946
1973
|
}
|
|
1947
1974
|
case "choice": return (e.options ?? []).map((e, n) => ({
|
|
1948
1975
|
key: `o${n}`,
|
|
1949
|
-
term:
|
|
1976
|
+
term: Vt(t, e, n),
|
|
1950
1977
|
mono: !!e.value.trim(),
|
|
1951
1978
|
description: e.description?.trim() || void 0
|
|
1952
1979
|
}));
|
|
@@ -1962,8 +1989,8 @@ function Qt(e, t, n) {
|
|
|
1962
1989
|
case "box": return [];
|
|
1963
1990
|
}
|
|
1964
1991
|
}
|
|
1965
|
-
function
|
|
1966
|
-
let i = t(), { formatNumber: a } = s(), o = L(), c = n.instructions?.trim(), l =
|
|
1992
|
+
function nn({ question: n, index: r }) {
|
|
1993
|
+
let i = t(), { formatNumber: a } = s(), o = L(), c = n.instructions?.trim(), l = tn(n, i, (e) => a(e)), u = n.kind === "choice" ? i("decisionQuestions.options", "{count, plural, one {# option} other {# options}}", { count: l.length }) : n.kind === "score" ? i("decisionQuestions.levels", "{count, plural, one {# level} other {# levels}}", { count: l.length }) : void 0;
|
|
1967
1994
|
return /* @__PURE__ */ U("li", {
|
|
1968
1995
|
className: "flex min-w-0 flex-col gap-12 px-12 py-16 not-first:hairline-t first:pt-0 last:pb-0",
|
|
1969
1996
|
"aria-labelledby": o,
|
|
@@ -1975,13 +2002,13 @@ function $t({ question: n, index: r }) {
|
|
|
1975
2002
|
children: [/* @__PURE__ */ H("span", {
|
|
1976
2003
|
id: o,
|
|
1977
2004
|
className: "min-w-0 text-body font-medium text-fg wrap-anywhere",
|
|
1978
|
-
children:
|
|
2005
|
+
children: Bt(i, n, r)
|
|
1979
2006
|
}), /* @__PURE__ */ U("span", {
|
|
1980
2007
|
className: "flex shrink-0 items-baseline gap-12 text-small text-fg-tertiary",
|
|
1981
2008
|
children: [u && /* @__PURE__ */ H("span", {
|
|
1982
2009
|
className: "tabular",
|
|
1983
2010
|
children: u
|
|
1984
|
-
}), /* @__PURE__ */ H("span", { children:
|
|
2011
|
+
}), /* @__PURE__ */ H("span", { children: zt(i, n.kind) })]
|
|
1985
2012
|
})]
|
|
1986
2013
|
}), c ? /* @__PURE__ */ H("span", {
|
|
1987
2014
|
className: "max-w-prose text-body text-fg-secondary wrap-break-word whitespace-pre-line",
|
|
@@ -2005,35 +2032,35 @@ function $t({ question: n, index: r }) {
|
|
|
2005
2032
|
})]
|
|
2006
2033
|
});
|
|
2007
2034
|
}
|
|
2008
|
-
var
|
|
2035
|
+
var rn = /* @__PURE__ */ P(function({ questions: n, layout: r = "list", "aria-label": i, className: a }, o) {
|
|
2009
2036
|
let s = t();
|
|
2010
2037
|
return /* @__PURE__ */ H("ol", {
|
|
2011
2038
|
ref: o,
|
|
2012
2039
|
"aria-label": i ?? s("decisionQuestions.label", "Questions"),
|
|
2013
|
-
className: e("flex min-w-0 flex-col",
|
|
2014
|
-
children: n.map((e, t) => /* @__PURE__ */ H(
|
|
2040
|
+
className: e("flex min-w-0 flex-col", $t.layout[r].classes, a),
|
|
2041
|
+
children: n.map((e, t) => /* @__PURE__ */ H(nn, {
|
|
2015
2042
|
question: e,
|
|
2016
2043
|
index: t
|
|
2017
2044
|
}, e.id ?? t))
|
|
2018
2045
|
});
|
|
2019
2046
|
});
|
|
2020
|
-
process.env.NODE_ENV !== "production" && (
|
|
2047
|
+
process.env.NODE_ENV !== "production" && (rn.displayName = "DecisionQuestions");
|
|
2021
2048
|
// src/components/playground/question-editor.tsx
|
|
2022
|
-
var
|
|
2049
|
+
var an = { layout: {
|
|
2023
2050
|
panel: { classes: "gap-24" },
|
|
2024
2051
|
compact: { classes: "gap-16" }
|
|
2025
|
-
} },
|
|
2026
|
-
function
|
|
2052
|
+
} }, on = { layout: "panel" }, sn = 2, cn = 3;
|
|
2053
|
+
function ln(e) {
|
|
2027
2054
|
return e === "" ? void 0 : e;
|
|
2028
2055
|
}
|
|
2029
|
-
function
|
|
2056
|
+
function un(e, t) {
|
|
2030
2057
|
let n = {
|
|
2031
2058
|
...e,
|
|
2032
2059
|
kind: t
|
|
2033
2060
|
};
|
|
2034
|
-
return t === "choice" && !e.options?.length && (n.options = Array.from({ length:
|
|
2061
|
+
return t === "choice" && !e.options?.length && (n.options = Array.from({ length: sn }, () => ({ value: "" }))), t === "score" && !e.levels?.length && (n.levels = Array.from({ length: cn }, () => ({}))), n;
|
|
2035
2062
|
}
|
|
2036
|
-
function
|
|
2063
|
+
function dn(e, t, n) {
|
|
2037
2064
|
return [
|
|
2038
2065
|
"predicate",
|
|
2039
2066
|
"choice",
|
|
@@ -2041,10 +2068,10 @@ function cn(e, t, n) {
|
|
|
2041
2068
|
"box"
|
|
2042
2069
|
].filter((e) => e !== "box" || t || n === "box").map((t) => ({
|
|
2043
2070
|
value: t,
|
|
2044
|
-
label:
|
|
2071
|
+
label: zt(e, t)
|
|
2045
2072
|
}));
|
|
2046
2073
|
}
|
|
2047
|
-
function
|
|
2074
|
+
function fn({ rows: e, idOf: t, min: n, max: i, disabled: a, first: o, second: s, removeLabel: c, addLabel: l, limitText: u, onChange: d, onFocus: f, make: m, setFirst: h, setSecond: g }) {
|
|
2048
2075
|
let _ = e.length >= i, v = (n) => {
|
|
2049
2076
|
_ || (d([
|
|
2050
2077
|
...e.slice(0, n),
|
|
@@ -2086,7 +2113,7 @@ function ln({ rows: e, idOf: t, min: n, max: i, disabled: a, first: o, second: s
|
|
|
2086
2113
|
}), /* @__PURE__ */ H(r, {
|
|
2087
2114
|
size: "sm",
|
|
2088
2115
|
variant: "ghost",
|
|
2089
|
-
icon:
|
|
2116
|
+
icon: fe,
|
|
2090
2117
|
"aria-label": c(l),
|
|
2091
2118
|
disabled: a || e.length <= n,
|
|
2092
2119
|
onClick: () => y(l)
|
|
@@ -2109,7 +2136,7 @@ function ln({ rows: e, idOf: t, min: n, max: i, disabled: a, first: o, second: s
|
|
|
2109
2136
|
})]
|
|
2110
2137
|
});
|
|
2111
2138
|
}
|
|
2112
|
-
var
|
|
2139
|
+
var pn = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a = !1, maxQuestions: o = Infinity, maxOptions: s = 255, maxLevels: c = 10, disabled: l = !1, layout: u = "panel", "aria-label": d, className: f }, m) {
|
|
2113
2140
|
let g = t(), _ = L(), v = z(0), [b, x] = B(null);
|
|
2114
2141
|
I(() => {
|
|
2115
2142
|
b && (document.getElementById(b)?.focus(), x(null));
|
|
@@ -2132,18 +2159,18 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2132
2159
|
ref: m,
|
|
2133
2160
|
role: "group",
|
|
2134
2161
|
"aria-label": d ?? g("questionEditor.label", "Questions"),
|
|
2135
|
-
className: e("flex min-w-0 flex-col",
|
|
2162
|
+
className: e("flex min-w-0 flex-col", an.layout[u].classes, f),
|
|
2136
2163
|
children: [
|
|
2137
2164
|
n.length === 0 && /* @__PURE__ */ H("p", {
|
|
2138
2165
|
className: "text-body text-fg-secondary",
|
|
2139
2166
|
children: g("questionEditor.empty", "No questions yet. Add one to ask the model something it answers with probabilities.")
|
|
2140
2167
|
}),
|
|
2141
2168
|
n.length > 0 && /* @__PURE__ */ H("ol", {
|
|
2142
|
-
className: e("flex min-w-0 flex-col",
|
|
2169
|
+
className: e("flex min-w-0 flex-col", an.layout[u].classes),
|
|
2143
2170
|
children: n.map((t, n) => {
|
|
2144
|
-
let i = S(t, n), o =
|
|
2171
|
+
let i = S(t, n), o = Bt(g, t, n), d = `${i}-head`;
|
|
2145
2172
|
return /* @__PURE__ */ U("li", {
|
|
2146
|
-
className: e("flex min-w-0 flex-col",
|
|
2173
|
+
className: e("flex min-w-0 flex-col", an.layout[u].classes),
|
|
2147
2174
|
children: [n > 0 && /* @__PURE__ */ H(ne, { "aria-hidden": !0 }), /* @__PURE__ */ U("fieldset", {
|
|
2148
2175
|
"aria-labelledby": d,
|
|
2149
2176
|
className: "flex min-w-0 flex-col gap-12",
|
|
@@ -2159,7 +2186,7 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2159
2186
|
id: `${i}-remove`,
|
|
2160
2187
|
size: "sm",
|
|
2161
2188
|
variant: "ghost",
|
|
2162
|
-
icon:
|
|
2189
|
+
icon: fe,
|
|
2163
2190
|
"aria-label": g("questionEditor.removeQuestion", "Remove {name}", { name: o }),
|
|
2164
2191
|
disabled: l,
|
|
2165
2192
|
onClick: () => T(n)
|
|
@@ -2170,10 +2197,10 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2170
2197
|
children: [/* @__PURE__ */ H(y, {
|
|
2171
2198
|
label: g("questionEditor.kind", "Type"),
|
|
2172
2199
|
value: t.kind,
|
|
2173
|
-
options:
|
|
2200
|
+
options: dn(g, a, t.kind),
|
|
2174
2201
|
disabled: l,
|
|
2175
2202
|
fullWidth: !0,
|
|
2176
|
-
onValueChange: (e) => C(n,
|
|
2203
|
+
onValueChange: (e) => C(n, un(t, e))
|
|
2177
2204
|
}), /* @__PURE__ */ H(p, {
|
|
2178
2205
|
id: `${i}-name`,
|
|
2179
2206
|
label: g("questionEditor.name", "Name"),
|
|
@@ -2182,7 +2209,7 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2182
2209
|
disabled: l,
|
|
2183
2210
|
onChange: (e) => C(n, {
|
|
2184
2211
|
...t,
|
|
2185
|
-
name:
|
|
2212
|
+
name: ln(e.target.value)
|
|
2186
2213
|
})
|
|
2187
2214
|
})]
|
|
2188
2215
|
}),
|
|
@@ -2194,7 +2221,7 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2194
2221
|
disabled: l,
|
|
2195
2222
|
onChange: (e) => C(n, {
|
|
2196
2223
|
...t,
|
|
2197
|
-
instructions:
|
|
2224
|
+
instructions: ln(e.target.value)
|
|
2198
2225
|
})
|
|
2199
2226
|
}),
|
|
2200
2227
|
t.kind === "predicate" && /* @__PURE__ */ U("div", {
|
|
@@ -2205,7 +2232,7 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2205
2232
|
disabled: l,
|
|
2206
2233
|
onChange: (e) => C(n, {
|
|
2207
2234
|
...t,
|
|
2208
|
-
whenTrue:
|
|
2235
|
+
whenTrue: ln(e.target.value)
|
|
2209
2236
|
})
|
|
2210
2237
|
}), /* @__PURE__ */ H(p, {
|
|
2211
2238
|
label: g("questionEditor.whenFalse", "What no means"),
|
|
@@ -2213,7 +2240,7 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2213
2240
|
disabled: l,
|
|
2214
2241
|
onChange: (e) => C(n, {
|
|
2215
2242
|
...t,
|
|
2216
|
-
whenFalse:
|
|
2243
|
+
whenFalse: ln(e.target.value)
|
|
2217
2244
|
})
|
|
2218
2245
|
})]
|
|
2219
2246
|
}),
|
|
@@ -2225,10 +2252,10 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2225
2252
|
id: `${i}-options`,
|
|
2226
2253
|
className: "text-body font-medium text-fg",
|
|
2227
2254
|
children: g("questionEditor.options", "Options")
|
|
2228
|
-
}), /* @__PURE__ */ H(
|
|
2255
|
+
}), /* @__PURE__ */ H(fn, {
|
|
2229
2256
|
rows: t.options ?? [],
|
|
2230
2257
|
idOf: (e) => `${i}-option-${e}`,
|
|
2231
|
-
min:
|
|
2258
|
+
min: sn,
|
|
2232
2259
|
max: s,
|
|
2233
2260
|
disabled: l,
|
|
2234
2261
|
first: (e, t) => ({
|
|
@@ -2256,7 +2283,7 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2256
2283
|
}),
|
|
2257
2284
|
setSecond: (e, t) => ({
|
|
2258
2285
|
...e,
|
|
2259
|
-
description:
|
|
2286
|
+
description: ln(t)
|
|
2260
2287
|
})
|
|
2261
2288
|
})]
|
|
2262
2289
|
}),
|
|
@@ -2268,16 +2295,16 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2268
2295
|
id: `${i}-levels`,
|
|
2269
2296
|
className: "text-body font-medium text-fg",
|
|
2270
2297
|
children: g("questionEditor.levels", "Levels, from 0 up")
|
|
2271
|
-
}), /* @__PURE__ */ H(
|
|
2298
|
+
}), /* @__PURE__ */ H(fn, {
|
|
2272
2299
|
rows: t.levels ?? [],
|
|
2273
2300
|
idOf: (e) => `${i}-level-${e}`,
|
|
2274
|
-
min:
|
|
2301
|
+
min: sn,
|
|
2275
2302
|
max: c,
|
|
2276
2303
|
disabled: l,
|
|
2277
2304
|
first: (e, t) => ({
|
|
2278
2305
|
value: e.label ?? "",
|
|
2279
2306
|
label: g("questionEditor.levelLabel", "Label of level {n}", { n: t }),
|
|
2280
|
-
placeholder:
|
|
2307
|
+
placeholder: Ht(g, void 0, t)
|
|
2281
2308
|
}),
|
|
2282
2309
|
second: (e, t) => ({
|
|
2283
2310
|
value: e.description ?? "",
|
|
@@ -2295,11 +2322,11 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2295
2322
|
make: () => ({}),
|
|
2296
2323
|
setFirst: (e, t) => ({
|
|
2297
2324
|
...e,
|
|
2298
|
-
label:
|
|
2325
|
+
label: ln(t)
|
|
2299
2326
|
}),
|
|
2300
2327
|
setSecond: (e, t) => ({
|
|
2301
2328
|
...e,
|
|
2302
|
-
description:
|
|
2329
|
+
description: ln(t)
|
|
2303
2330
|
})
|
|
2304
2331
|
})]
|
|
2305
2332
|
}),
|
|
@@ -2329,7 +2356,7 @@ var un = /* @__PURE__ */ P(function({ value: n, onValueChange: i, allowBox: a =
|
|
|
2329
2356
|
]
|
|
2330
2357
|
});
|
|
2331
2358
|
});
|
|
2332
|
-
process.env.NODE_ENV !== "production" && (
|
|
2333
|
-
export {
|
|
2359
|
+
process.env.NODE_ENV !== "production" && (pn.displayName = "QuestionEditor");
|
|
2360
|
+
export { Z as Attachments, Ge as CompareGrid, De as Composer, rn as DecisionQuestions, Qt as DecisionResponse, _e as KAESO_ATTACHMENTS_DEFAULT_VARIANTS, ge as KAESO_ATTACHMENTS_VARIANTS, Le as KAESO_COMPARE_GRID_DEFAULT_VARIANTS, Ie as KAESO_COMPARE_GRID_VARIANTS, be as KAESO_COMPOSER_DEFAULT_VARIANTS, ye as KAESO_COMPOSER_VARIANTS, en as KAESO_DECISION_QUESTIONS_DEFAULT_VARIANTS, $t as KAESO_DECISION_QUESTIONS_VARIANTS, Wt as KAESO_DECISION_RESPONSE_DEFAULT_VARIANTS, Ut as KAESO_DECISION_RESPONSE_VARIANTS, Oe as KAESO_MEDIA_RESPONSE_DEFAULT_VARIANTS, Q as KAESO_MEDIA_RESPONSE_VARIANTS, St as KAESO_MODEL_PICKER_DEFAULT_VARIANTS, xt as KAESO_MODEL_PICKER_VARIANTS, ft as KAESO_PARAMETER_PANEL_DEFAULT_VARIANTS, dt as KAESO_PARAMETER_PANEL_VARIANTS, Ft as KAESO_PROBABILITY_BAR_DEFAULT_VARIANTS, Pt as KAESO_PROBABILITY_BAR_VARIANTS, on as KAESO_QUESTION_EDITOR_DEFAULT_VARIANTS, an as KAESO_QUESTION_EDITOR_VARIANTS, qe as KAESO_REASONING_DEFAULT_VARIANTS, Ke as KAESO_REASONING_VARIANTS, at as KAESO_RESPONSE_METRICS_DEFAULT_VARIANTS, it as KAESO_RESPONSE_METRICS_VARIANTS, Ze as KAESO_RESPONSE_VIEW_DEFAULT_VARIANTS, Xe as KAESO_RESPONSE_VIEW_VARIANTS, Fe as MediaResponse, Nt as ModelPicker, yt as ParameterPanel, Rt as ProbabilityBar, pn as QuestionEditor, Ye as Reasoning, ut as ResponseMetrics, et as ResponseView, rt as Thread, nt as UserMessage, ot as formatLatency, Mt as useModelGroups };
|
|
2334
2361
|
|
|
2335
2362
|
//# sourceMappingURL=playground.js.map
|