@logicplanes/kaeso-ui 0.5.5 → 0.6.0-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 +304 -2
- package/ai/component-registry.json +202 -3
- package/ai/component-registry.md +52 -3
- package/ai/icons.md +3 -3
- package/ai/tokens.md +2 -1
- package/dist/blocks/delete-resource.js +1 -1
- package/dist/blocks/pages.js +4 -4
- package/dist/blocks/resource-list.js +5 -5
- package/dist/chunks/{agent-avatar-DHieggHK.js → agent-avatar-Djd5BojE.js} +4 -4
- package/dist/chunks/{agent-avatar-DHieggHK.js.map → agent-avatar-Djd5BojE.js.map} +1 -1
- package/dist/chunks/{app-frame-B1FXVFYx.js → app-frame-FPxcLx5a.js} +7 -7
- package/dist/chunks/{app-frame-B1FXVFYx.js.map → app-frame-FPxcLx5a.js.map} +1 -1
- package/dist/chunks/{avatar-CYNMK7uY.js → avatar-CAtsciEK.js} +3 -3
- package/dist/chunks/{avatar-CYNMK7uY.js.map → avatar-CAtsciEK.js.map} +1 -1
- package/dist/chunks/{badge-C0GC3B9X.js → badge-DCG794sL.js} +3 -3
- package/dist/chunks/{badge-C0GC3B9X.js.map → badge-DCG794sL.js.map} +1 -1
- package/dist/chunks/{banner-BinTH032.js → banner-Bh9ALjtn.js} +4 -4
- package/dist/chunks/{banner-BinTH032.js.map → banner-Bh9ALjtn.js.map} +1 -1
- package/dist/chunks/{button-DrmFgdIi.js → button-BhgnxxnI.js} +7 -7
- package/dist/chunks/{button-DrmFgdIi.js.map → button-BhgnxxnI.js.map} +1 -1
- package/dist/chunks/{calendar-Dc6_dl0f.js → calendar-BF77Yau7.js} +2 -2
- package/dist/chunks/{calendar-Dc6_dl0f.js.map → calendar-BF77Yau7.js.map} +1 -1
- package/dist/chunks/{checkbox-ahl1SOqU.js → checkbox-CX9ocjBN.js} +3 -3
- package/dist/chunks/{checkbox-ahl1SOqU.js.map → checkbox-CX9ocjBN.js.map} +1 -1
- package/dist/chunks/{cn-BjnOAUrA.js → cn-y70pJ-RU.js} +19 -1
- package/dist/chunks/cn-y70pJ-RU.js.map +1 -0
- package/dist/chunks/{code-xqjww4Pv.js → code-C9y0iqOD.js} +2 -2
- package/dist/chunks/{code-xqjww4Pv.js.map → code-C9y0iqOD.js.map} +1 -1
- package/dist/chunks/{code-block-CE3H3nMu.js → code-block-Co5XHbO4.js} +6 -6
- package/dist/chunks/{code-block-CE3H3nMu.js.map → code-block-Co5XHbO4.js.map} +1 -1
- package/dist/chunks/{code-block-O_EPmMIQ.js → code-block-ojOGgAZo.js} +5 -5
- package/dist/chunks/{code-block-O_EPmMIQ.js.map → code-block-ojOGgAZo.js.map} +1 -1
- package/dist/chunks/{combobox-DghYPLVQ.js → combobox-DIDrrFMN.js} +9 -8
- package/dist/chunks/combobox-DIDrrFMN.js.map +1 -0
- package/dist/chunks/{command-list-BUmEaaBi.js → command-list-DWXF8Zg5.js} +4 -4
- package/dist/chunks/{command-list-BUmEaaBi.js.map → command-list-DWXF8Zg5.js.map} +1 -1
- package/dist/chunks/{copy-button-DBPAA1g0.js → copy-button-Blv3FuOX.js} +5 -5
- package/dist/chunks/{copy-button-DBPAA1g0.js.map → copy-button-Blv3FuOX.js.map} +1 -1
- package/dist/chunks/{core-Cw3pNRp3.js → core-CEO7wu2u.js} +6 -6
- package/dist/chunks/{core-Cw3pNRp3.js.map → core-CEO7wu2u.js.map} +1 -1
- package/dist/chunks/{data-table-CGecI-FI.js → data-table-DS8QEm1P.js} +219 -217
- package/dist/chunks/data-table-DS8QEm1P.js.map +1 -0
- package/dist/chunks/{date-popup-C6vVOOWF.js → date-popup-D7f-QQJm.js} +4 -4
- package/dist/chunks/{date-popup-C6vVOOWF.js.map → date-popup-D7f-QQJm.js.map} +1 -1
- package/dist/chunks/{de-CqC4aSIV.js → de-CRbLcQNS.js} +10 -1
- package/dist/chunks/de-CRbLcQNS.js.map +1 -0
- package/dist/chunks/{dialog-s3_LUPBi.js → dialog-BoQZ-CRe.js} +5 -5
- package/dist/chunks/{dialog-s3_LUPBi.js.map → dialog-BoQZ-CRe.js.map} +1 -1
- package/dist/chunks/{disclosure-3CIz2WZa.js → disclosure-DVefCcYM.js} +2 -2
- package/dist/chunks/{disclosure-3CIz2WZa.js.map → disclosure-DVefCcYM.js.map} +1 -1
- package/dist/chunks/{domain-CrQX3p6E.js → domain-Dd4A6swO.js} +2 -2
- package/dist/chunks/{domain-CrQX3p6E.js.map → domain-Dd4A6swO.js.map} +1 -1
- package/dist/chunks/{empty-BpiUgGzm.js → empty-DZ-j3vpS.js} +2 -2
- package/dist/chunks/{empty-BpiUgGzm.js.map → empty-DZ-j3vpS.js.map} +1 -1
- package/dist/chunks/{field-D7m-yl-D.js → field-BoF0Q8U2.js} +3 -3
- package/dist/chunks/{field-D7m-yl-D.js.map → field-BoF0Q8U2.js.map} +1 -1
- package/dist/chunks/icon-BNP2eYlj.js +102 -0
- package/dist/chunks/icon-BNP2eYlj.js.map +1 -0
- package/dist/chunks/{icon-CBzOwqrX.js → icon-R4bPkYOo.js} +2 -2
- package/dist/chunks/{icon-CBzOwqrX.js.map → icon-R4bPkYOo.js.map} +1 -1
- package/dist/chunks/{icon-button-6kOn2zrP.js → icon-button-B8Xm10KH.js} +3 -3
- package/dist/chunks/{icon-button-6kOn2zrP.js.map → icon-button-B8Xm10KH.js.map} +1 -1
- package/dist/chunks/{identity-BwYixi8Q.js → identity-qb5JVtKG.js} +28 -6
- package/dist/chunks/identity-qb5JVtKG.js.map +1 -0
- package/dist/chunks/{input-D1SeLe3X.js → input-DvU5KIT0.js} +5 -5
- package/dist/chunks/{input-D1SeLe3X.js.map → input-DvU5KIT0.js.map} +1 -1
- package/dist/chunks/{input-group-BbxwEAUP.js → input-group-BPf_IWMR.js} +4 -4
- package/dist/chunks/{input-group-BbxwEAUP.js.map → input-group-BPf_IWMR.js.map} +1 -1
- package/dist/chunks/{iso-field-BVOKAY4H.js → iso-field-CgLCZF7B.js} +2 -2
- package/dist/chunks/{iso-field-BVOKAY4H.js.map → iso-field-CgLCZF7B.js.map} +1 -1
- package/dist/chunks/{json-view-DZ2nL2Ir.js → json-view-B2OSpSY-.js} +3 -3
- package/dist/chunks/{json-view-DZ2nL2Ir.js.map → json-view-B2OSpSY-.js.map} +1 -1
- package/dist/chunks/{kbd-8A0ML_up.js → kbd-B1rQ6Xzz.js} +2 -2
- package/dist/chunks/{kbd-8A0ML_up.js.map → kbd-B1rQ6Xzz.js.map} +1 -1
- package/dist/chunks/{label-DW24Aj0Z.js → label-Bd7EgBMU.js} +2 -2
- package/dist/chunks/{label-DW24Aj0Z.js.map → label-Bd7EgBMU.js.map} +1 -1
- package/dist/chunks/{link-CMjkcLQK.js → link-CkEhtnKp.js} +3 -3
- package/dist/chunks/{link-CMjkcLQK.js.map → link-CkEhtnKp.js.map} +1 -1
- package/dist/chunks/{list-o8wcuBOz.js → list-CHKT0Q3_.js} +219 -223
- package/dist/chunks/list-CHKT0Q3_.js.map +1 -0
- package/dist/chunks/{loader-zo8CCIGJ.js → loader-BL8eBso7.js} +2 -2
- package/dist/chunks/{loader-zo8CCIGJ.js.map → loader-BL8eBso7.js.map} +1 -1
- package/dist/chunks/{markdown-BZKZi9d8.js → markdown-CzhAHVFg.js} +10 -10
- package/dist/chunks/{markdown-BZKZi9d8.js.map → markdown-CzhAHVFg.js.map} +1 -1
- package/dist/chunks/{menu-BDce2kiw.js → menu-CRZ-O7Ok.js} +4 -4
- package/dist/chunks/{menu-BDce2kiw.js.map → menu-CRZ-O7Ok.js.map} +1 -1
- package/dist/chunks/{meter-CASMHlxl.js → meter-dMtm0QPc.js} +3 -3
- package/dist/chunks/{meter-CASMHlxl.js.map → meter-dMtm0QPc.js.map} +1 -1
- package/dist/chunks/{nav-sheet-S7tagFJT.js → nav-sheet-C1oJliq_.js} +3 -3
- package/dist/chunks/{nav-sheet-S7tagFJT.js.map → nav-sheet-C1oJliq_.js.map} +1 -1
- package/dist/chunks/{nav-wordmark-J4pB_vjr.js → nav-wordmark-Cd-zaGgh.js} +2 -2
- package/dist/chunks/{nav-wordmark-J4pB_vjr.js.map → nav-wordmark-Cd-zaGgh.js.map} +1 -1
- package/dist/chunks/{page-header-DUaKLpK3.js → page-header-BjW-S0c2.js} +5 -5
- package/dist/chunks/{page-header-DUaKLpK3.js.map → page-header-BjW-S0c2.js.map} +1 -1
- package/dist/chunks/{pagination-D9hM6W2z.js → pagination--er5TNg5.js} +4 -4
- package/dist/chunks/{pagination-D9hM6W2z.js.map → pagination--er5TNg5.js.map} +1 -1
- package/dist/chunks/{picker-popover-PzVOo62-.js → picker-popover-B7V6Z-qY.js} +7 -7
- package/dist/chunks/{picker-popover-PzVOo62-.js.map → picker-popover-B7V6Z-qY.js.map} +1 -1
- package/dist/chunks/{popover-Bl5QYqnh.js → popover-CxYzFnPK.js} +2 -2
- package/dist/chunks/{popover-Bl5QYqnh.js.map → popover-CxYzFnPK.js.map} +1 -1
- package/dist/chunks/{radio-C6GtzF_t.js → radio-BIBakGpi.js} +2 -2
- package/dist/chunks/{radio-C6GtzF_t.js.map → radio-BIBakGpi.js.map} +1 -1
- package/dist/chunks/{range-popup-Dt6Q0Ryw.js → range-popup-DuMX8dGS.js} +7 -7
- package/dist/chunks/{range-popup-Dt6Q0Ryw.js.map → range-popup-DuMX8dGS.js.map} +1 -1
- package/dist/chunks/{reasoning-frame-C3HdQRRS.js → reasoning-frame-CX236xqG.js} +3 -3
- package/dist/chunks/{reasoning-frame-C3HdQRRS.js.map → reasoning-frame-CX236xqG.js.map} +1 -1
- package/dist/chunks/{release-art-ChiT4T2S.js → release-art-D1knR09f.js} +2 -2
- package/dist/chunks/{release-art-ChiT4T2S.js.map → release-art-D1knR09f.js.map} +1 -1
- package/dist/chunks/{rights-DAHTG_kH.js → rights-ghO_k76Q.js} +10 -10
- package/dist/chunks/{rights-DAHTG_kH.js.map → rights-ghO_k76Q.js.map} +1 -1
- package/dist/chunks/{scroll-area-_Ljh4-bG.js → scroll-area-eHO5yx8V.js} +2 -2
- package/dist/chunks/{scroll-area-_Ljh4-bG.js.map → scroll-area-eHO5yx8V.js.map} +1 -1
- package/dist/chunks/{section-CFBYhsUi.js → section-DdBjIPpm.js} +3 -3
- package/dist/chunks/{section-CFBYhsUi.js.map → section-DdBjIPpm.js.map} +1 -1
- package/dist/chunks/{segmented-D9i1avik.js → segmented--cvKKVgU.js} +4 -4
- package/dist/chunks/{segmented-D9i1avik.js.map → segmented--cvKKVgU.js.map} +1 -1
- package/dist/chunks/{select-UTdHKubp.js → select-CYxdDJuW.js} +4 -4
- package/dist/chunks/{select-UTdHKubp.js.map → select-CYxdDJuW.js.map} +1 -1
- package/dist/chunks/{use-coarse-pointer-Ml5oE6oX.js → selects-text-R1lZHLKm.js} +8 -2
- package/dist/chunks/selects-text-R1lZHLKm.js.map +1 -0
- package/dist/chunks/{separator-BNWf6BBj.js → separator-cMjJSR_v.js} +2 -2
- package/dist/chunks/{separator-BNWf6BBj.js.map → separator-cMjJSR_v.js.map} +1 -1
- package/dist/chunks/{sidebar-menu-C0qJsQF5.js → sidebar-menu-BIzCokEt.js} +2 -2
- package/dist/chunks/{sidebar-menu-C0qJsQF5.js.map → sidebar-menu-BIzCokEt.js.map} +1 -1
- package/dist/chunks/{sidebar-BO1mnjVH.js → sidebar-rSlJVHXr.js} +8 -8
- package/dist/chunks/{sidebar-BO1mnjVH.js.map → sidebar-rSlJVHXr.js.map} +1 -1
- package/dist/chunks/{skeleton-D-qk3mes.js → skeleton-CRaxQo8h.js} +2 -2
- package/dist/chunks/{skeleton-D-qk3mes.js.map → skeleton-CRaxQo8h.js.map} +1 -1
- package/dist/chunks/{slider-CcE8GtuV.js → slider-CJ5xhCGl.js} +2 -2
- package/dist/chunks/{slider-CcE8GtuV.js.map → slider-CJ5xhCGl.js.map} +1 -1
- package/dist/chunks/{status-dot-CP6runiC.js → status-dot-BJ_xdPOz.js} +3 -3
- package/dist/chunks/{status-dot-CP6runiC.js.map → status-dot-BJ_xdPOz.js.map} +1 -1
- package/dist/chunks/{swap-text-SlUjrTlG.js → swap-text-Dg5TYR3P.js} +6 -6
- package/dist/chunks/swap-text-Dg5TYR3P.js.map +1 -0
- package/dist/chunks/{switch-ngywMQdl.js → switch-BlrAa7fs.js} +4 -4
- package/dist/chunks/{switch-ngywMQdl.js.map → switch-BlrAa7fs.js.map} +1 -1
- package/dist/chunks/{table-CTK5E0J7.js → table-2mqGuSzh.js} +2 -2
- package/dist/chunks/{table-CTK5E0J7.js.map → table-2mqGuSzh.js.map} +1 -1
- package/dist/chunks/{tag-BGr6lTSV.js → tag-CyuvhNkV.js} +4 -4
- package/dist/chunks/{tag-BGr6lTSV.js.map → tag-CyuvhNkV.js.map} +1 -1
- package/dist/chunks/{text-DkKdTVUf.js → text-DG2r9OVy.js} +3 -3
- package/dist/chunks/{text-DkKdTVUf.js.map → text-DG2r9OVy.js.map} +1 -1
- package/dist/chunks/{textarea-CRmvC4jd.js → textarea-BhJSBzKA.js} +5 -5
- package/dist/chunks/{textarea-CRmvC4jd.js.map → textarea-BhJSBzKA.js.map} +1 -1
- package/dist/chunks/{timeseries-CK86u7M0.js → timeseries-yWYVK-Hb.js} +4 -4
- package/dist/chunks/{timeseries-CK86u7M0.js.map → timeseries-yWYVK-Hb.js.map} +1 -1
- package/dist/chunks/{toolbar-u0Gm7Q7-.js → toolbar-CXjo1MZi.js} +2 -2
- package/dist/chunks/{toolbar-u0Gm7Q7-.js.map → toolbar-CXjo1MZi.js.map} +1 -1
- package/dist/chunks/{tooltip-root-BC_RNNiP.js → tooltip-root-CIagHqa7.js} +4 -4
- package/dist/chunks/{tooltip-root-BC_RNNiP.js.map → tooltip-root-CIagHqa7.js.map} +1 -1
- package/dist/chunks/{tooltip-Tkm-urbi.js → tooltip-wfY3dDNy.js} +4 -4
- package/dist/chunks/{tooltip-Tkm-urbi.js.map → tooltip-wfY3dDNy.js.map} +1 -1
- package/dist/chunks/{truncated-d1afmUJT.js → truncated-BITAemX4.js} +3 -3
- package/dist/chunks/{truncated-d1afmUJT.js.map → truncated-BITAemX4.js.map} +1 -1
- package/dist/chunks/{zh-CN-BlpsT6d_.js → zh-CN-BHGxG46g.js} +10 -1
- package/dist/chunks/zh-CN-BHGxG46g.js.map +1 -0
- package/dist/components/agent-avatar.js +1 -1
- package/dist/components/app-frame.js +2 -2
- 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 +4 -4
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/charts/bar.js +3 -3
- package/dist/components/charts/donut.js +3 -3
- package/dist/components/charts/gauge.js +2 -2
- package/dist/components/charts/heatmap.js +2 -2
- 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/checkbox.js +1 -1
- package/dist/components/code-block.js +3 -3
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +2 -2
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-list.js +2 -2
- package/dist/components/command-palette.js +4 -4
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/date-picker.js +91 -87
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dialog.js +96 -92
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/display-options.js +8 -8
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/figure.js +2 -2
- package/dist/components/filter-chip.js +5 -5
- package/dist/components/filter-row.js +1 -1
- package/dist/components/filter-toggle.js +2 -2
- package/dist/components/flow-canvas.js +762 -0
- package/dist/components/flow-canvas.js.map +1 -0
- package/dist/components/flow.js +2 -2
- package/dist/components/heading.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +8 -8
- package/dist/components/kaeso/conversation.js +8 -8
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +5 -5
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +7 -7
- package/dist/components/kaeso.js +12 -12
- package/dist/components/kbd.js +1 -1
- package/dist/components/key-value.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/logo.js +2 -2
- 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 +17 -17
- package/dist/components/popover.js +2 -2
- package/dist/components/qr-code.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/release-art.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/section.js +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/settings.js +2 -2
- package/dist/components/sheet.js +2 -2
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/stat.js +4 -4
- package/dist/components/status-dot.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/swap-text.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +2 -2
- package/dist/components/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-image.js +1 -1
- package/dist/components/theme-menu.js +2 -2
- package/dist/components/theme-select.js +1 -1
- package/dist/components/thumbnail.js +1 -1
- package/dist/components/timeline.js +3 -3
- package/dist/components/timeline.js.map +1 -1
- package/dist/components/toast.js +4 -4
- package/dist/components/toc.js +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/visually-hidden.js +1 -1
- package/dist/i18n-provider.js +1 -1
- package/dist/index.js +60 -60
- package/dist/kaeso.css +38 -0
- package/dist/styles.css +1 -1
- package/dist/types/components/dialog/docs.d.ts +1 -0
- package/dist/types/components/dialog/step-dialog.d.ts +1 -0
- package/dist/types/components/flow-canvas/docs.d.ts +35 -0
- package/dist/types/components/flow-canvas/flow-canvas.d.ts +36 -0
- package/dist/types/components/flow-canvas/flow-workspace.d.ts +32 -0
- package/dist/types/components/flow-canvas/index.d.ts +2 -0
- package/dist/types/components/flow-canvas/layout.d.ts +76 -0
- package/dist/types/components/swap-text/docs.d.ts +1 -0
- package/dist/types/components/swap-text/swap-text.d.ts +1 -0
- package/dist/types/components/timeline/timeline.d.ts +1 -1
- package/dist/types/icons/groups.d.ts +2 -2
- package/dist/types/icons/vocabulary.d.ts +35 -0
- package/dist/types/utils/cn.d.ts +6 -0
- package/dist/types/utils/selects-text.d.ts +1 -0
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/cn-BjnOAUrA.js.map +0 -1
- package/dist/chunks/combobox-DghYPLVQ.js.map +0 -1
- package/dist/chunks/data-table-CGecI-FI.js.map +0 -1
- package/dist/chunks/de-CqC4aSIV.js.map +0 -1
- package/dist/chunks/icon-CPJWE2N-.js +0 -95
- package/dist/chunks/icon-CPJWE2N-.js.map +0 -1
- package/dist/chunks/identity-BwYixi8Q.js.map +0 -1
- package/dist/chunks/list-o8wcuBOz.js.map +0 -1
- package/dist/chunks/swap-text-SlUjrTlG.js.map +0 -1
- package/dist/chunks/use-coarse-pointer-Ml5oE6oX.js.map +0 -1
- package/dist/chunks/zh-CN-BlpsT6d_.js.map +0 -1
package/ai/component-guides.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @logicplanes/kaeso-ui component guides
|
|
2
2
|
|
|
3
|
-
Version 0.
|
|
3
|
+
Version 0.6.0-rc.1. Generated from the showcase's demo modules (apps/showcase/src/demos); do not edit. For each component: what it is for, its import, keyboard, accessibility, do and don't, and every example's code. Props and variants: `component-registry.md`.
|
|
4
4
|
|
|
5
5
|
## AgentAttribution
|
|
6
6
|
|
|
@@ -1254,7 +1254,7 @@ The console's table: a 36px header, 40px rows without lines, numbers right, sort
|
|
|
1254
1254
|
|
|
1255
1255
|
### Accessibility
|
|
1256
1256
|
|
|
1257
|
-
- An ARIA
|
|
1257
|
+
- An ARIA grid when rows open or select, its rows one tab stop moved through with the arrow keys and selected rows aria-selected; otherwise a plain ARIA table. Sorted columns carry aria-sort, the open row aria-current.
|
|
1258
1258
|
- One tab stop: checkboxes, row controls and resize handles stay out of the tab order and are reached with the arrow keys.
|
|
1259
1259
|
- A column's width changes by dragging its handle, with Shift and the arrow keys on its header, or from the header's context menu (Widen, Narrow, Reset width), so no drag is required.
|
|
1260
1260
|
- Columns declare a priority; low-priority columns hide first when space is short. A growing column then shrinks to its readable minimum (minWidth, 136px by default) and truncates. On a screen narrower still, the other priority 1 columns give way from the row's end backwards, keeping its last column (the actions) and the selection boxes; only a row with nothing left to give way scrolls sideways, its last column pinned at the end.
|
|
@@ -2158,6 +2158,308 @@ function Changes() {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
```
|
|
2160
2160
|
|
|
2161
|
+
## FlowCanvas
|
|
2162
|
+
|
|
2163
|
+
An editable route drawn as a tree: conditions and splits branch downward, and each model's fallback continues the row to its right.
|
|
2164
|
+
|
|
2165
|
+
`import { FlowCanvas } from "@logicplanes/kaeso-ui/flow-canvas";`
|
|
2166
|
+
|
|
2167
|
+
### Keyboard
|
|
2168
|
+
|
|
2169
|
+
| Key | Action |
|
|
2170
|
+
|---|---|
|
|
2171
|
+
| Tab | Reaches the route as one stop, on the selected step or the start |
|
|
2172
|
+
| ↑ ↓ | Moves to the step's parent or its first branch |
|
|
2173
|
+
| ← → | Moves between branches of one step |
|
|
2174
|
+
| Home, End | Moves to the start or the last step |
|
|
2175
|
+
| Enter, Space | Selects the step, or opens an open slot's menu |
|
|
2176
|
+
| Escape | Clears the selection |
|
|
2177
|
+
| Delete | Asks to remove the step |
|
|
2178
|
+
| Shift F10 | Opens the step's actions |
|
|
2179
|
+
| + − 0 | Zooms in, out, and fits the route to the view |
|
|
2180
|
+
|
|
2181
|
+
### Accessibility
|
|
2182
|
+
|
|
2183
|
+
- The route is a named tree: each step is a tree item with its level and position among its branches, and the tree's description lists the keys.
|
|
2184
|
+
- Every connection is also written out for screen readers, such as “gpt-5 to claude-sonnet-4-5, Fallback” or “x-plan is paid to gpt-5, Then”.
|
|
2185
|
+
- A traced request is told in words too: each model on the path carries its try as a badge, and the steps off the path stay in the tree.
|
|
2186
|
+
- A step's status is a word, never a colour alone; a removed model also draws a red ring around its step.
|
|
2187
|
+
- A sent request's answer is a word on each step it tried, such as “529 Overloaded” or “200 OK”; the colours of its lines and rings repeat it, and the tree is marked busy while the request is on its way.
|
|
2188
|
+
- The + between steps is for the pointer; from the keyboard, a step's actions (Shift F10) carry the same choices.
|
|
2189
|
+
|
|
2190
|
+
### Examples
|
|
2191
|
+
|
|
2192
|
+
#### Edit a route
|
|
2193
|
+
|
|
2194
|
+
Select a step, add a fallback in the open slot beside a model, or insert a condition, a split or a model with the + between steps.
|
|
2195
|
+
|
|
2196
|
+
```tsx
|
|
2197
|
+
function Editor() {
|
|
2198
|
+
const [route, setRoute] = useState<Step>(basic);
|
|
2199
|
+
const [selected, setSelected] = useState<string | null>("s2");
|
|
2200
|
+
const add = (edge: string, insert: boolean) => (kind: "model" | "condition" | "split") => setRoute((r) => edit(r, edge, insert, kind));
|
|
2201
|
+
return (
|
|
2202
|
+
<Frame>
|
|
2203
|
+
<FlowCanvas
|
|
2204
|
+
aria-label="Route of fast"
|
|
2205
|
+
root={startNode("fast", route)}
|
|
2206
|
+
selected={selected}
|
|
2207
|
+
onSelect={setSelected}
|
|
2208
|
+
onDelete={(id) => setRoute((r) => remove(r, id))}
|
|
2209
|
+
addMenu={({ edge, insert }) => (
|
|
2210
|
+
<>
|
|
2211
|
+
<Menu.Item icon={icons.model} onClick={() => add(edge, insert)("model")}>
|
|
2212
|
+
Model
|
|
2213
|
+
</Menu.Item>
|
|
2214
|
+
<Menu.Item icon={icons.condition} onClick={() => add(edge, insert)("condition")}>
|
|
2215
|
+
Condition
|
|
2216
|
+
</Menu.Item>
|
|
2217
|
+
<Menu.Item icon={icons.split} onClick={() => add(edge, insert)("split")}>
|
|
2218
|
+
Split
|
|
2219
|
+
</Menu.Item>
|
|
2220
|
+
</>
|
|
2221
|
+
)}
|
|
2222
|
+
nodeActions={(id) =>
|
|
2223
|
+
id === "start" ? null : (
|
|
2224
|
+
<Menu.Item icon={icons.delete} variant="danger" onClick={() => setRoute((r) => remove(r, id))}>
|
|
2225
|
+
Remove step
|
|
2226
|
+
</Menu.Item>
|
|
2227
|
+
)
|
|
2228
|
+
}
|
|
2229
|
+
/>
|
|
2230
|
+
</Frame>
|
|
2231
|
+
);
|
|
2232
|
+
}
|
|
2233
|
+
```
|
|
2234
|
+
|
|
2235
|
+
#### A fallback chain
|
|
2236
|
+
|
|
2237
|
+
Each fallback continues the row to its right, in the order the models are tried.
|
|
2238
|
+
|
|
2239
|
+
```tsx
|
|
2240
|
+
function Fallbacks() {
|
|
2241
|
+
const chain: Step = {
|
|
2242
|
+
id: "f1",
|
|
2243
|
+
type: "model",
|
|
2244
|
+
provider: "openai",
|
|
2245
|
+
model: "gpt-5",
|
|
2246
|
+
fallback: {
|
|
2247
|
+
id: "f2",
|
|
2248
|
+
type: "model",
|
|
2249
|
+
provider: "anthropic",
|
|
2250
|
+
model: "claude-sonnet-4-5",
|
|
2251
|
+
fallback: { id: "f3", type: "model", provider: "groq", model: "llama-3.3-70b-versatile" },
|
|
2252
|
+
},
|
|
2253
|
+
};
|
|
2254
|
+
return (
|
|
2255
|
+
<Frame height="h-400">
|
|
2256
|
+
<FlowCanvas aria-label="Route of chat-default" root={startNode("chat-default", chain)} />
|
|
2257
|
+
</Frame>
|
|
2258
|
+
);
|
|
2259
|
+
}
|
|
2260
|
+
```
|
|
2261
|
+
|
|
2262
|
+
#### A traced request
|
|
2263
|
+
|
|
2264
|
+
The path one request takes stays strong and each model on it says which try it is; the rest turns quieter.
|
|
2265
|
+
|
|
2266
|
+
```tsx
|
|
2267
|
+
function Traced() {
|
|
2268
|
+
const route: Step = {
|
|
2269
|
+
id: "t1",
|
|
2270
|
+
type: "condition",
|
|
2271
|
+
rule: "x-plan is enterprise",
|
|
2272
|
+
matched: {
|
|
2273
|
+
id: "t2",
|
|
2274
|
+
type: "model",
|
|
2275
|
+
provider: "anthropic",
|
|
2276
|
+
model: "claude-sonnet-4-5",
|
|
2277
|
+
fallback: { id: "t3", type: "model", provider: "openai", model: "gpt-5" },
|
|
2278
|
+
},
|
|
2279
|
+
otherwise: { id: "t4", type: "model", provider: "openai", model: "gpt-5-mini" },
|
|
2280
|
+
};
|
|
2281
|
+
return (
|
|
2282
|
+
<Frame>
|
|
2283
|
+
<FlowCanvas
|
|
2284
|
+
aria-label="Route of support"
|
|
2285
|
+
root={tries(startNode("support", route), { t2: 1, t3: 2 })}
|
|
2286
|
+
trace={["start", "t1", "t2", "t3"]}
|
|
2287
|
+
background="plain"
|
|
2288
|
+
/>
|
|
2289
|
+
</Frame>
|
|
2290
|
+
);
|
|
2291
|
+
}
|
|
2292
|
+
```
|
|
2293
|
+
|
|
2294
|
+
#### A request that fell back
|
|
2295
|
+
|
|
2296
|
+
Each line a sent request took takes the colour of the answer at its end: the model that failed in red, the one that answered in green.
|
|
2297
|
+
|
|
2298
|
+
```tsx
|
|
2299
|
+
function Sent() {
|
|
2300
|
+
const route: Step = {
|
|
2301
|
+
id: "s1",
|
|
2302
|
+
type: "condition",
|
|
2303
|
+
rule: "x-plan is enterprise",
|
|
2304
|
+
matched: {
|
|
2305
|
+
id: "s2",
|
|
2306
|
+
type: "model",
|
|
2307
|
+
provider: "anthropic",
|
|
2308
|
+
model: "claude-sonnet-4-5",
|
|
2309
|
+
fallback: { id: "s3", type: "model", provider: "openai", model: "gpt-5" },
|
|
2310
|
+
},
|
|
2311
|
+
otherwise: { id: "s4", type: "model", provider: "openai", model: "gpt-5-mini" },
|
|
2312
|
+
};
|
|
2313
|
+
return (
|
|
2314
|
+
<Frame>
|
|
2315
|
+
<FlowCanvas
|
|
2316
|
+
aria-label="Route of support"
|
|
2317
|
+
root={answered(startNode("support", route), {
|
|
2318
|
+
s2: { tone: "danger", label: "529 Overloaded" },
|
|
2319
|
+
s3: { tone: "success", label: "200 OK" },
|
|
2320
|
+
})}
|
|
2321
|
+
trace={["start", "s1", "s2", "s3"]}
|
|
2322
|
+
background="plain"
|
|
2323
|
+
/>
|
|
2324
|
+
</Frame>
|
|
2325
|
+
);
|
|
2326
|
+
}
|
|
2327
|
+
```
|
|
2328
|
+
|
|
2329
|
+
#### A condition with a split
|
|
2330
|
+
|
|
2331
|
+
```tsx
|
|
2332
|
+
function Branches() {
|
|
2333
|
+
const route: Step = {
|
|
2334
|
+
id: "b1",
|
|
2335
|
+
type: "condition",
|
|
2336
|
+
rule: "Uses images",
|
|
2337
|
+
matched: {
|
|
2338
|
+
id: "b2",
|
|
2339
|
+
type: "model",
|
|
2340
|
+
provider: "anthropic",
|
|
2341
|
+
model: "claude-sonnet-4-5",
|
|
2342
|
+
fallback: { id: "b3", type: "model", provider: "openai", model: "gpt-5" },
|
|
2343
|
+
},
|
|
2344
|
+
otherwise: {
|
|
2345
|
+
id: "b4",
|
|
2346
|
+
type: "split",
|
|
2347
|
+
branches: [
|
|
2348
|
+
{ weight: 90, step: { id: "b5", type: "model", provider: "openai", model: "gpt-5-mini" } },
|
|
2349
|
+
{ weight: 10, step: { id: "b6", type: "model", provider: "deepseek", model: "deepseek-chat" } },
|
|
2350
|
+
],
|
|
2351
|
+
},
|
|
2352
|
+
};
|
|
2353
|
+
return (
|
|
2354
|
+
<Frame>
|
|
2355
|
+
<FlowCanvas aria-label="Route of support" root={startNode("support", route)} selected="b4" />
|
|
2356
|
+
</Frame>
|
|
2357
|
+
);
|
|
2358
|
+
}
|
|
2359
|
+
```
|
|
2360
|
+
|
|
2361
|
+
#### A removed model
|
|
2362
|
+
|
|
2363
|
+
A step whose model is gone says so in words, with a red ring.
|
|
2364
|
+
|
|
2365
|
+
```tsx
|
|
2366
|
+
function Removed() {
|
|
2367
|
+
const route: Step = {
|
|
2368
|
+
id: "r1",
|
|
2369
|
+
type: "model",
|
|
2370
|
+
provider: "openai",
|
|
2371
|
+
model: "gpt-4o",
|
|
2372
|
+
removed: true,
|
|
2373
|
+
fallback: { id: "r2", type: "model", provider: "openai", model: "gpt-5-mini" },
|
|
2374
|
+
};
|
|
2375
|
+
return (
|
|
2376
|
+
<Frame height="h-400">
|
|
2377
|
+
<FlowCanvas aria-label="Route of legacy" root={startNode("legacy", route)} selected="r1" />
|
|
2378
|
+
</Frame>
|
|
2379
|
+
);
|
|
2380
|
+
}
|
|
2381
|
+
```
|
|
2382
|
+
|
|
2383
|
+
#### A large route
|
|
2384
|
+
|
|
2385
|
+
Larger than its view, it fits itself once; drag, scroll or zoom to move around.
|
|
2386
|
+
|
|
2387
|
+
```tsx
|
|
2388
|
+
function Large() {
|
|
2389
|
+
const chain = (id: string, models: [string, string][]): Step => {
|
|
2390
|
+
const [first, ...rest] = models;
|
|
2391
|
+
return { id, type: "model", provider: first![0], model: first![1], ...(rest.length ? { fallback: chain(`${id}x`, rest) } : {}) };
|
|
2392
|
+
};
|
|
2393
|
+
const route: Step = {
|
|
2394
|
+
id: "l1",
|
|
2395
|
+
type: "condition",
|
|
2396
|
+
rule: "Input over 100,000 tokens",
|
|
2397
|
+
matched: chain("l2", [
|
|
2398
|
+
["anthropic", "claude-sonnet-4-5"],
|
|
2399
|
+
["openai", "gpt-5"],
|
|
2400
|
+
]),
|
|
2401
|
+
otherwise: {
|
|
2402
|
+
id: "l3",
|
|
2403
|
+
type: "split",
|
|
2404
|
+
branches: [
|
|
2405
|
+
{
|
|
2406
|
+
weight: 70,
|
|
2407
|
+
step: chain("l4", [
|
|
2408
|
+
["openai", "gpt-5-mini"],
|
|
2409
|
+
["anthropic", "claude-haiku-4-5"],
|
|
2410
|
+
["groq", "llama-3.3-70b-versatile"],
|
|
2411
|
+
]),
|
|
2412
|
+
},
|
|
2413
|
+
{
|
|
2414
|
+
weight: 20,
|
|
2415
|
+
step: {
|
|
2416
|
+
id: "l5",
|
|
2417
|
+
type: "condition",
|
|
2418
|
+
rule: "Uses tools",
|
|
2419
|
+
matched: chain("l6", [["deepseek", "deepseek-chat"]]),
|
|
2420
|
+
otherwise: chain("l7", [
|
|
2421
|
+
["mistral", "mistral-large-latest"],
|
|
2422
|
+
["cerebras", "gpt-oss-120b"],
|
|
2423
|
+
]),
|
|
2424
|
+
},
|
|
2425
|
+
},
|
|
2426
|
+
{ weight: 10, step: chain("l8", [["moonshotai", "kimi-k2"]]) },
|
|
2427
|
+
],
|
|
2428
|
+
},
|
|
2429
|
+
};
|
|
2430
|
+
return (
|
|
2431
|
+
<Frame>
|
|
2432
|
+
<FlowCanvas aria-label="Route of everything" root={startNode("everything", route)} />
|
|
2433
|
+
</Frame>
|
|
2434
|
+
);
|
|
2435
|
+
}
|
|
2436
|
+
```
|
|
2437
|
+
|
|
2438
|
+
## FlowWorkspace
|
|
2439
|
+
|
|
2440
|
+
The body of a route editor: the canvas fills the panel under the page header, with an inspector on the right that edits what is selected.
|
|
2441
|
+
|
|
2442
|
+
`import { FlowWorkspace } from "@logicplanes/kaeso-ui/flow-canvas";`
|
|
2443
|
+
|
|
2444
|
+
### Accessibility
|
|
2445
|
+
|
|
2446
|
+
- The inspector is a complementary region named by `panelLabel`; each panel inside it is a region named by its heading.
|
|
2447
|
+
- From 1024px the inspector scrolls on its own beside the canvas; below, it follows a 400px canvas and the page scrolls.
|
|
2448
|
+
|
|
2449
|
+
### Examples
|
|
2450
|
+
|
|
2451
|
+
#### A route editor
|
|
2452
|
+
|
|
2453
|
+
Select a step on the canvas to edit it in the inspector; with nothing selected, the inspector shows the alias.
|
|
2454
|
+
|
|
2455
|
+
```tsx
|
|
2456
|
+
function Editor() {
|
|
2457
|
+
const [selected, setSelected] = useState<string | null>("primary");
|
|
2458
|
+
const [primary, setPrimary] = useState("claude-sonnet-4-5");
|
|
2459
|
+
return <Page selected={selected} onSelect={setSelected} primary={primary} setPrimary={setPrimary} />;
|
|
2460
|
+
}
|
|
2461
|
+
```
|
|
2462
|
+
|
|
2161
2463
|
## Gauge
|
|
2162
2464
|
|
|
2163
2465
|
A semicircle for “budget used”; thresholds as ticks.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@logicplanes/kaeso-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-rc.1",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"entry": "agent-avatar",
|
|
@@ -3032,7 +3032,7 @@
|
|
|
3032
3032
|
"type": "((value: string) => void)",
|
|
3033
3033
|
"required": false,
|
|
3034
3034
|
"default": null,
|
|
3035
|
-
"description": "Called with the text typed into the input."
|
|
3035
|
+
"description": "Called with the text typed into the input, and with an empty string once a pick clears the search, so a server search lists every option again."
|
|
3036
3036
|
},
|
|
3037
3037
|
{
|
|
3038
3038
|
"name": "onValueChange",
|
|
@@ -4970,6 +4970,13 @@
|
|
|
4970
4970
|
"default": null,
|
|
4971
4971
|
"description": "Whether it is open, when you control it."
|
|
4972
4972
|
},
|
|
4973
|
+
{
|
|
4974
|
+
"name": "refusedStep",
|
|
4975
|
+
"type": "string",
|
|
4976
|
+
"required": false,
|
|
4977
|
+
"default": null,
|
|
4978
|
+
"description": "The id of the step holding a field the submission was refused for, such as a name the server turned down: the dialog goes back to that step and focuses its first field, where the field shows the error."
|
|
4979
|
+
},
|
|
4973
4980
|
{
|
|
4974
4981
|
"name": "result",
|
|
4975
4982
|
"type": "StepDialogResult",
|
|
@@ -5708,6 +5715,191 @@
|
|
|
5708
5715
|
}
|
|
5709
5716
|
}
|
|
5710
5717
|
},
|
|
5718
|
+
{
|
|
5719
|
+
"entry": "flow-canvas",
|
|
5720
|
+
"kind": "components",
|
|
5721
|
+
"import": "@logicplanes/kaeso-ui/flow-canvas",
|
|
5722
|
+
"components": [
|
|
5723
|
+
{
|
|
5724
|
+
"name": "FlowCanvas",
|
|
5725
|
+
"description": "An editable route drawn as a tree, top down: the start, then each step with its branches side by side under it, and a model's fallback continuing its row to the right, so a chain reads in the order its models are tried. The layout is computed, never measured, so it is the same at every zoom. Drag the background or scroll to pan; ⌘ or Ctrl with the wheel, a pinch or the buttons at the bottom left zoom between 25% and 150%; it fits itself once, on first render, never below 67% so every step stays readable, and then keeps the view when the route changes. The steps are one tree for the keyboard and screen readers.",
|
|
5726
|
+
"props": [
|
|
5727
|
+
{
|
|
5728
|
+
"name": "aria-label",
|
|
5729
|
+
"type": "string",
|
|
5730
|
+
"required": true,
|
|
5731
|
+
"default": null,
|
|
5732
|
+
"description": "The tree's accessible name: what the route belongs to, such as \"Route of fast\"."
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
"name": "root",
|
|
5736
|
+
"type": "FlowCanvasNode",
|
|
5737
|
+
"required": true,
|
|
5738
|
+
"default": null,
|
|
5739
|
+
"description": "The start of the route. Each node has `kind` (its tag), `title`, an optional `subtitle`, `leading` (such as a provider badge), `status` (a word and a tone: `danger`, `warning` and `success` also ring the step), `badge` (a short word at its top right, such as its try), `terminal` (a model: its one connection is its fallback, drawn to its right) and `children`: connections with an `id`, a `label`, a `variant` (`fallback` draws a dashed line), a `tone` (`success`, `warning` or `danger`: on a traced path, the line takes that color, such as the status a tried step answered with) and the `node` they lead to; a connection without a node is an open slot."
|
|
5740
|
+
},
|
|
5741
|
+
{
|
|
5742
|
+
"name": "addMenu",
|
|
5743
|
+
"type": "((slot: FlowCanvasSlot) => ReactNode)",
|
|
5744
|
+
"required": false,
|
|
5745
|
+
"default": null,
|
|
5746
|
+
"description": "Turns editing on: open slots and a + midway on every connection show, and each opens a menu with these items. Called with the connection's `edge` id and `insert`: false for an open slot, true for the + that puts a step before the connection's step. Without it, open slots are not drawn."
|
|
5747
|
+
},
|
|
5748
|
+
{
|
|
5749
|
+
"name": "background",
|
|
5750
|
+
"type": "\"plain\" | \"dots\"",
|
|
5751
|
+
"required": false,
|
|
5752
|
+
"default": "dots",
|
|
5753
|
+
"description": "A dotted grid that moves with the view, or the plain panel."
|
|
5754
|
+
},
|
|
5755
|
+
{
|
|
5756
|
+
"name": "busy",
|
|
5757
|
+
"type": "boolean",
|
|
5758
|
+
"required": false,
|
|
5759
|
+
"default": null,
|
|
5760
|
+
"description": "A request is on its way along `trace`: its lines without a `tone` run as moving dashes, or pulse with reduced motion, and the tree is marked busy. Turn it off once the request answers."
|
|
5761
|
+
},
|
|
5762
|
+
{
|
|
5763
|
+
"name": "className",
|
|
5764
|
+
"type": "string",
|
|
5765
|
+
"required": false,
|
|
5766
|
+
"default": null,
|
|
5767
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
5768
|
+
},
|
|
5769
|
+
{
|
|
5770
|
+
"name": "nodeActions",
|
|
5771
|
+
"type": "((id: string) => ReactNode)",
|
|
5772
|
+
"required": false,
|
|
5773
|
+
"default": null,
|
|
5774
|
+
"description": "Menu items for a step, shown in a button on the step and opened with Shift F10 or the context-menu key. Return nothing for a step without actions, such as the start."
|
|
5775
|
+
},
|
|
5776
|
+
{
|
|
5777
|
+
"name": "onDelete",
|
|
5778
|
+
"type": "((id: string) => void)",
|
|
5779
|
+
"required": false,
|
|
5780
|
+
"default": null,
|
|
5781
|
+
"description": "Called with a step's id when Delete or Backspace is pressed on it."
|
|
5782
|
+
},
|
|
5783
|
+
{
|
|
5784
|
+
"name": "onSelect",
|
|
5785
|
+
"type": "((id: string | null) => void)",
|
|
5786
|
+
"required": false,
|
|
5787
|
+
"default": null,
|
|
5788
|
+
"description": "Called with a step's id when it is clicked or chosen with Enter or Space, and with null when the background is clicked or Escape is pressed."
|
|
5789
|
+
},
|
|
5790
|
+
{
|
|
5791
|
+
"name": "selected",
|
|
5792
|
+
"type": "string | null",
|
|
5793
|
+
"required": false,
|
|
5794
|
+
"default": "null",
|
|
5795
|
+
"description": "The id of the selected step, drawn with the selection ring; the view moves to show it when it changes."
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"name": "trace",
|
|
5799
|
+
"type": "readonly string[]",
|
|
5800
|
+
"required": false,
|
|
5801
|
+
"default": null,
|
|
5802
|
+
"description": "The ids of the steps one request passes, such as from a dry run: they and the lines between them stay strong, and every other step turns quieter: secondary text and a hairline, still readable. Leave it out to draw the route evenly."
|
|
5803
|
+
}
|
|
5804
|
+
],
|
|
5805
|
+
"file": "src/components/flow-canvas/flow-canvas.tsx"
|
|
5806
|
+
},
|
|
5807
|
+
{
|
|
5808
|
+
"name": "FlowWorkspace",
|
|
5809
|
+
"description": "The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a 400px canvas and the page scrolls.",
|
|
5810
|
+
"props": [
|
|
5811
|
+
{
|
|
5812
|
+
"name": "children",
|
|
5813
|
+
"type": "ReactNode",
|
|
5814
|
+
"required": true,
|
|
5815
|
+
"default": null,
|
|
5816
|
+
"description": "The canvas."
|
|
5817
|
+
},
|
|
5818
|
+
{
|
|
5819
|
+
"name": "panel",
|
|
5820
|
+
"type": "ReactNode",
|
|
5821
|
+
"required": false,
|
|
5822
|
+
"default": null,
|
|
5823
|
+
"description": "The inspector: usually a `FlowWorkspace.Panel`."
|
|
5824
|
+
},
|
|
5825
|
+
{
|
|
5826
|
+
"name": "panelLabel",
|
|
5827
|
+
"type": "string",
|
|
5828
|
+
"required": false,
|
|
5829
|
+
"default": null,
|
|
5830
|
+
"description": "The inspector's accessible name as a region, such as \"Step settings\"."
|
|
5831
|
+
},
|
|
5832
|
+
{
|
|
5833
|
+
"name": "width",
|
|
5834
|
+
"type": "\"default\" | \"wide\"",
|
|
5835
|
+
"required": false,
|
|
5836
|
+
"default": "default",
|
|
5837
|
+
"description": "The inspector's width from `lg`."
|
|
5838
|
+
}
|
|
5839
|
+
],
|
|
5840
|
+
"file": "src/components/flow-canvas/flow-workspace.tsx"
|
|
5841
|
+
},
|
|
5842
|
+
{
|
|
5843
|
+
"name": "FlowWorkspace.Panel",
|
|
5844
|
+
"description": "One inspector section on the 24px gutter: a title with actions beside it, a line of description, then the fields.",
|
|
5845
|
+
"props": [
|
|
5846
|
+
{
|
|
5847
|
+
"name": "title",
|
|
5848
|
+
"type": "ReactNode",
|
|
5849
|
+
"required": true,
|
|
5850
|
+
"default": null,
|
|
5851
|
+
"description": "The section's heading."
|
|
5852
|
+
},
|
|
5853
|
+
{
|
|
5854
|
+
"name": "actions",
|
|
5855
|
+
"type": "ReactNode",
|
|
5856
|
+
"required": false,
|
|
5857
|
+
"default": null,
|
|
5858
|
+
"description": "Buttons beside the title, such as Remove step."
|
|
5859
|
+
},
|
|
5860
|
+
{
|
|
5861
|
+
"name": "children",
|
|
5862
|
+
"type": "ReactNode",
|
|
5863
|
+
"required": false,
|
|
5864
|
+
"default": null,
|
|
5865
|
+
"description": "The fields, 20px apart."
|
|
5866
|
+
},
|
|
5867
|
+
{
|
|
5868
|
+
"name": "description",
|
|
5869
|
+
"type": "ReactNode",
|
|
5870
|
+
"required": false,
|
|
5871
|
+
"default": null,
|
|
5872
|
+
"description": "One sentence under the title."
|
|
5873
|
+
}
|
|
5874
|
+
],
|
|
5875
|
+
"file": "src/components/flow-canvas/flow-workspace.tsx"
|
|
5876
|
+
}
|
|
5877
|
+
],
|
|
5878
|
+
"variants": {
|
|
5879
|
+
"FLOW_CANVAS": {
|
|
5880
|
+
"axes": {
|
|
5881
|
+
"background": {
|
|
5882
|
+
"dots": "A dotted grid that moves and scales with the view (default)",
|
|
5883
|
+
"plain": "The panel alone, for a canvas inside a framed preview"
|
|
5884
|
+
}
|
|
5885
|
+
},
|
|
5886
|
+
"defaults": {
|
|
5887
|
+
"background": "dots"
|
|
5888
|
+
}
|
|
5889
|
+
},
|
|
5890
|
+
"FLOW_WORKSPACE": {
|
|
5891
|
+
"axes": {
|
|
5892
|
+
"width": {
|
|
5893
|
+
"default": "A 400px inspector from lg (default)",
|
|
5894
|
+
"wide": "A 480px inspector from lg, for forms with long values"
|
|
5895
|
+
}
|
|
5896
|
+
},
|
|
5897
|
+
"defaults": {
|
|
5898
|
+
"width": "default"
|
|
5899
|
+
}
|
|
5900
|
+
}
|
|
5901
|
+
}
|
|
5902
|
+
},
|
|
5711
5903
|
{
|
|
5712
5904
|
"entry": "heading",
|
|
5713
5905
|
"kind": "components",
|
|
@@ -12883,6 +13075,13 @@
|
|
|
12883
13075
|
"required": false,
|
|
12884
13076
|
"default": "center",
|
|
12885
13077
|
"description": "Aligns the shorter labels at the start or in the center of the reserved width."
|
|
13078
|
+
},
|
|
13079
|
+
{
|
|
13080
|
+
"name": "wrap",
|
|
13081
|
+
"type": "boolean",
|
|
13082
|
+
"required": false,
|
|
13083
|
+
"default": "false",
|
|
13084
|
+
"description": "Lets longer texts, such as a field's hint, wrap within their column; the height then fits the tallest, so nothing below moves."
|
|
12886
13085
|
}
|
|
12887
13086
|
],
|
|
12888
13087
|
"file": "src/components/swap-text/swap-text.tsx"
|
|
@@ -13770,7 +13969,7 @@
|
|
|
13770
13969
|
"type": "TimelineEvent[]",
|
|
13771
13970
|
"required": true,
|
|
13772
13971
|
"default": null,
|
|
13773
|
-
"description": "The events, oldest first."
|
|
13972
|
+
"description": "The events, oldest first. Leave out an event's `time` for steps that have none, such as the steps a request takes."
|
|
13774
13973
|
},
|
|
13775
13974
|
{
|
|
13776
13975
|
"name": "className",
|
package/ai/component-registry.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @logicplanes/kaeso-ui component registry
|
|
2
2
|
|
|
3
|
-
Version 0.
|
|
3
|
+
Version 0.6.0-rc.1. Generated from the component types, their descriptions and variants; do not edit.
|
|
4
4
|
|
|
5
5
|
## agent-avatar
|
|
6
6
|
|
|
@@ -693,7 +693,7 @@ A pill input with a filtered list: matched characters highlighted, async, chips
|
|
|
693
693
|
| `multiple` | `boolean` | | Allows choosing more than one option; `value` is then a list. |
|
|
694
694
|
| `name` | `string` | | The field name the value is sent under in a form. |
|
|
695
695
|
| `onCreate` | `((label: string) => void)` | | Offers "Add “…”" when nothing matches exactly. |
|
|
696
|
-
| `onInputValueChange` | `((value: string) => void)` | | Called with the text typed into the input. |
|
|
696
|
+
| `onInputValueChange` | `((value: string) => void)` | | Called with the text typed into the input, and with an empty string once a pick clears the search, so a server search lists every option again. |
|
|
697
697
|
| `onValueChange` | `((value: string \| null) => void) \| ((value: string[]) => void)` | | Called with the chosen value, or the list of values with `multiple`. |
|
|
698
698
|
| `optional` | `boolean` | | Adds “Optional” to the label, for forms where most fields are required. |
|
|
699
699
|
| `placeholder` | `string` | | Text shown while there is no value. |
|
|
@@ -1102,6 +1102,7 @@ A form split into steps, one question at a time, like sign-in: the step's title
|
|
|
1102
1102
|
| `inline` | `boolean` | | Render without a portal and backdrop, for documentation and state matrices. |
|
|
1103
1103
|
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
1104
1104
|
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
1105
|
+
| `refusedStep` | `string` | | The id of the step holding a field the submission was refused for, such as a name the server turned down: the dialog goes back to that step and focuses its first field, where the field shows the error. |
|
|
1105
1106
|
| `result` | `StepDialogResult` | | What the last step made, shown in the same dialog once it exists: its title, description, content, footer and size. Pass it after `onSubmit` succeeds, such as the created key with SecretReveal. |
|
|
1106
1107
|
| `size` | `"md" \| "sm" \| "lg"` | `sm` | The dialog's width. |
|
|
1107
1108
|
| `submitting` | `boolean` | | Shows that the submission is underway; until it ends, the dialog stays open and Back and Cancel wait. |
|
|
@@ -1277,6 +1278,53 @@ A node-and-connector diagram: the route "app → Kaeso → provider / model". A
|
|
|
1277
1278
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1278
1279
|
| `node` | `"pill" \| "box"` | `pill` | The shape of each step: a pill or a box. |
|
|
1279
1280
|
|
|
1281
|
+
## flow-canvas
|
|
1282
|
+
|
|
1283
|
+
`import { FlowCanvas, FlowWorkspace } from "@logicplanes/kaeso-ui/flow-canvas";`
|
|
1284
|
+
|
|
1285
|
+
- **background** (flow_canvas): `dots` (default) — A dotted grid that moves and scales with the view (default); `plain` — The panel alone, for a canvas inside a framed preview
|
|
1286
|
+
- **width** (flow_workspace): `default` (default) — A 400px inspector from lg (default); `wide` — A 480px inspector from lg, for forms with long values
|
|
1287
|
+
|
|
1288
|
+
### FlowCanvas
|
|
1289
|
+
|
|
1290
|
+
An editable route drawn as a tree, top down: the start, then each step with its branches side by side under it, and a model's fallback continuing its row to the right, so a chain reads in the order its models are tried. The layout is computed, never measured, so it is the same at every zoom. Drag the background or scroll to pan; ⌘ or Ctrl with the wheel, a pinch or the buttons at the bottom left zoom between 25% and 150%; it fits itself once, on first render, never below 67% so every step stays readable, and then keeps the view when the route changes. The steps are one tree for the keyboard and screen readers.
|
|
1291
|
+
|
|
1292
|
+
| Prop | Type | Default | Description |
|
|
1293
|
+
|---|---|---|---|
|
|
1294
|
+
| `aria-label` * | `string` | | The tree's accessible name: what the route belongs to, such as "Route of fast". |
|
|
1295
|
+
| `root` * | `FlowCanvasNode` | | The start of the route. Each node has `kind` (its tag), `title`, an optional `subtitle`, `leading` (such as a provider badge), `status` (a word and a tone: `danger`, `warning` and `success` also ring the step), `badge` (a short word at its top right, such as its try), `terminal` (a model: its one connection is its fallback, drawn to its right) and `children`: connections with an `id`, a `label`, a `variant` (`fallback` draws a dashed line), a `tone` (`success`, `warning` or `danger`: on a traced path, the line takes that color, such as the status a tried step answered with) and the `node` they lead to; a connection without a node is an open slot. |
|
|
1296
|
+
| `addMenu` | `((slot: FlowCanvasSlot) => ReactNode)` | | Turns editing on: open slots and a + midway on every connection show, and each opens a menu with these items. Called with the connection's `edge` id and `insert`: false for an open slot, true for the + that puts a step before the connection's step. Without it, open slots are not drawn. |
|
|
1297
|
+
| `background` | `"plain" \| "dots"` | `dots` | A dotted grid that moves with the view, or the plain panel. |
|
|
1298
|
+
| `busy` | `boolean` | | A request is on its way along `trace`: its lines without a `tone` run as moving dashes, or pulse with reduced motion, and the tree is marked busy. Turn it off once the request answers. |
|
|
1299
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1300
|
+
| `nodeActions` | `((id: string) => ReactNode)` | | Menu items for a step, shown in a button on the step and opened with Shift F10 or the context-menu key. Return nothing for a step without actions, such as the start. |
|
|
1301
|
+
| `onDelete` | `((id: string) => void)` | | Called with a step's id when Delete or Backspace is pressed on it. |
|
|
1302
|
+
| `onSelect` | `((id: string \| null) => void)` | | Called with a step's id when it is clicked or chosen with Enter or Space, and with null when the background is clicked or Escape is pressed. |
|
|
1303
|
+
| `selected` | `string \| null` | `null` | The id of the selected step, drawn with the selection ring; the view moves to show it when it changes. |
|
|
1304
|
+
| `trace` | `readonly string[]` | | The ids of the steps one request passes, such as from a dry run: they and the lines between them stay strong, and every other step turns quieter: secondary text and a hairline, still readable. Leave it out to draw the route evenly. |
|
|
1305
|
+
|
|
1306
|
+
### FlowWorkspace
|
|
1307
|
+
|
|
1308
|
+
The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a 400px canvas and the page scrolls.
|
|
1309
|
+
|
|
1310
|
+
| Prop | Type | Default | Description |
|
|
1311
|
+
|---|---|---|---|
|
|
1312
|
+
| `children` * | `ReactNode` | | The canvas. |
|
|
1313
|
+
| `panel` | `ReactNode` | | The inspector: usually a `FlowWorkspace.Panel`. |
|
|
1314
|
+
| `panelLabel` | `string` | | The inspector's accessible name as a region, such as "Step settings". |
|
|
1315
|
+
| `width` | `"default" \| "wide"` | `default` | The inspector's width from `lg`. |
|
|
1316
|
+
|
|
1317
|
+
### FlowWorkspace.Panel
|
|
1318
|
+
|
|
1319
|
+
One inspector section on the 24px gutter: a title with actions beside it, a line of description, then the fields.
|
|
1320
|
+
|
|
1321
|
+
| Prop | Type | Default | Description |
|
|
1322
|
+
|---|---|---|---|
|
|
1323
|
+
| `title` * | `ReactNode` | | The section's heading. |
|
|
1324
|
+
| `actions` | `ReactNode` | | Buttons beside the title, such as Remove step. |
|
|
1325
|
+
| `children` | `ReactNode` | | The fields, 20px apart. |
|
|
1326
|
+
| `description` | `ReactNode` | | One sentence under the title. |
|
|
1327
|
+
|
|
1280
1328
|
## heading
|
|
1281
1329
|
|
|
1282
1330
|
`import { Heading } from "@logicplanes/kaeso-ui/heading";`
|
|
@@ -3020,6 +3068,7 @@ Text that changes with state without changing size: all alternatives sit in one
|
|
|
3020
3068
|
| `children` * | `ReactNode` | | What is shown now. |
|
|
3021
3069
|
| `reserve` * | `ReactNode[]` | | Every text this place can show ("Copy page", "Copied"). The width fits the widest, so a state change never resizes the control. |
|
|
3022
3070
|
| `align` | `"start" \| "center"` | `center` | Aligns the shorter labels at the start or in the center of the reserved width. |
|
|
3071
|
+
| `wrap` | `boolean` | `false` | Lets longer texts, such as a field's hint, wrap within their column; the height then fits the tallest, so nothing below moves. |
|
|
3023
3072
|
|
|
3024
3073
|
## switch
|
|
3025
3074
|
|
|
@@ -3248,7 +3297,7 @@ Events down a 1px line (the audit log): each event marks the line with a short 3
|
|
|
3248
3297
|
|
|
3249
3298
|
| Prop | Type | Default | Description |
|
|
3250
3299
|
|---|---|---|---|
|
|
3251
|
-
| `events` * | `TimelineEvent[]` | | The events, oldest first. |
|
|
3300
|
+
| `events` * | `TimelineEvent[]` | | The events, oldest first. Leave out an event's `time` for steps that have none, such as the steps a request takes. |
|
|
3252
3301
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
3253
3302
|
|
|
3254
3303
|
## toast
|