@kerfjs/ui 5.0.0-beta.130 → 5.0.0-beta.132
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/README.md +1 -13
- package/ai/application-ui-profile-sync.cjs +5 -14
- package/ai/application-ui-profile.d.ts +0 -2
- package/ai/application-ui-profile.defaults.json +0 -4
- package/ai/application-ui-profile.mjs +5 -14
- package/ai/application-ui-profile.schema.json +0 -4
- package/ai/component-catalog.json +24 -12
- package/ai/component-composition-rules.json +2 -10
- package/ai/component-composition.d.ts +0 -17
- package/ai/component-composition.json +10 -13
- package/ai/component-composition.schema.json +0 -59
- package/ai/components/column-track.md +5 -3
- package/ai/components/disclosure.md +2 -0
- package/ai/components/form.md +1 -2
- package/ai/components/tab-panel.md +0 -1
- package/ai/components/tabs.md +2 -1
- package/ai/components/toolbar-control-group.md +2 -2
- package/ai/public-api-signatures-v1.md +218 -202
- package/ai/skill.md +5 -22
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/dist/backdrop-image.d.ts +1 -1
- package/dist/backdrop-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +1 -1
- package/dist/catalog-resources.d.ts +2 -2
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +17 -16
- package/dist/catalog.js.map +1 -1
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip.js +1 -1
- package/dist/choice-chips.d.ts +3 -3
- package/dist/choice-chips.js +1 -1
- package/dist/{chunk-Q5BPZPCO.js → chunk-22T7FFCL.js} +2 -2
- package/dist/{chunk-Q5BPZPCO.js.map → chunk-22T7FFCL.js.map} +1 -1
- package/dist/{chunk-BCHK33XL.js → chunk-27NEAPV7.js} +2 -2
- package/dist/{chunk-BCHK33XL.js.map → chunk-27NEAPV7.js.map} +1 -1
- package/dist/{chunk-76BLSFEA.js → chunk-2OYMXGW2.js} +6 -5
- package/dist/chunk-2OYMXGW2.js.map +1 -0
- package/dist/{chunk-ASU4ODOH.js → chunk-2RDWKN3Y.js} +39 -8
- package/dist/chunk-2RDWKN3Y.js.map +1 -0
- package/dist/{chunk-EHR7R7YP.js → chunk-3DPHCZQB.js} +2 -2
- package/dist/{chunk-EHR7R7YP.js.map → chunk-3DPHCZQB.js.map} +1 -1
- package/dist/{chunk-RPJOLDSR.js → chunk-3UIZ36BP.js} +3 -3
- package/dist/{chunk-RPJOLDSR.js.map → chunk-3UIZ36BP.js.map} +1 -1
- package/dist/{chunk-OSL4LQ7T.js → chunk-42NLFCIN.js} +6 -6
- package/dist/{chunk-OSL4LQ7T.js.map → chunk-42NLFCIN.js.map} +1 -1
- package/dist/{chunk-UPHPFKAD.js → chunk-4GGIML4E.js} +2 -2
- package/dist/{chunk-UPHPFKAD.js.map → chunk-4GGIML4E.js.map} +1 -1
- package/dist/{chunk-LET362AM.js → chunk-4YXKDS6I.js} +2 -2
- package/dist/{chunk-LET362AM.js.map → chunk-4YXKDS6I.js.map} +1 -1
- package/dist/{chunk-5KWXM5O7.js → chunk-5C34PAUY.js} +2 -2
- package/dist/{chunk-5KWXM5O7.js.map → chunk-5C34PAUY.js.map} +1 -1
- package/dist/{chunk-S7QB5KMM.js → chunk-5L3MLWD5.js} +19 -55
- package/dist/chunk-5L3MLWD5.js.map +1 -0
- package/dist/{chunk-6PHG2DMG.js → chunk-6OH734CG.js} +2 -2
- package/dist/{chunk-6PHG2DMG.js.map → chunk-6OH734CG.js.map} +1 -1
- package/dist/{chunk-E7ZRBMVQ.js → chunk-7XIY7G4K.js} +3 -3
- package/dist/{chunk-E7ZRBMVQ.js.map → chunk-7XIY7G4K.js.map} +1 -1
- package/dist/{chunk-OKZTLRGG.js → chunk-B5Q3KE4Z.js} +2 -2
- package/dist/{chunk-OKZTLRGG.js.map → chunk-B5Q3KE4Z.js.map} +1 -1
- package/dist/{chunk-SGYBIKQA.js → chunk-BADEZQ3V.js} +4 -4
- package/dist/chunk-BADEZQ3V.js.map +1 -0
- package/dist/{chunk-CJAKN2KZ.js → chunk-BLBMUD2W.js} +2 -2
- package/dist/{chunk-CJAKN2KZ.js.map → chunk-BLBMUD2W.js.map} +1 -1
- package/dist/{chunk-TRJS7M2H.js → chunk-BNRH7XG5.js} +2 -2
- package/dist/{chunk-TRJS7M2H.js.map → chunk-BNRH7XG5.js.map} +1 -1
- package/dist/{chunk-NA4LKVPX.js → chunk-BNXJQB2Y.js} +2 -2
- package/dist/{chunk-NA4LKVPX.js.map → chunk-BNXJQB2Y.js.map} +1 -1
- package/dist/{chunk-CCPWJDRW.js → chunk-BQHGXQVA.js} +2 -2
- package/dist/{chunk-CCPWJDRW.js.map → chunk-BQHGXQVA.js.map} +1 -1
- package/dist/{chunk-COQI4OMZ.js → chunk-BRDTP3RT.js} +1 -1
- package/dist/chunk-BRDTP3RT.js.map +1 -0
- package/dist/{chunk-RGB4DPMN.js → chunk-DGYGRMES.js} +3 -3
- package/dist/chunk-DGYGRMES.js.map +1 -0
- package/dist/{chunk-V3IXAI4L.js → chunk-DNNHT7RB.js} +2 -2
- package/dist/{chunk-V3IXAI4L.js.map → chunk-DNNHT7RB.js.map} +1 -1
- package/dist/{chunk-UU37OR3D.js → chunk-DT7KOBQJ.js} +1 -1
- package/dist/chunk-DT7KOBQJ.js.map +1 -0
- package/dist/{chunk-WUVHP3UC.js → chunk-DUKE3PLH.js} +12 -3
- package/dist/chunk-DUKE3PLH.js.map +1 -0
- package/dist/{chunk-IPYQYLSX.js → chunk-EWCTBJ5O.js} +6 -6
- package/dist/{chunk-IPYQYLSX.js.map → chunk-EWCTBJ5O.js.map} +1 -1
- package/dist/{chunk-ECJHCPBN.js → chunk-F25UMYDX.js} +8 -3
- package/dist/chunk-F25UMYDX.js.map +1 -0
- package/dist/{chunk-C4FBYP2D.js → chunk-FJAAOIMP.js} +2 -2
- package/dist/{chunk-C4FBYP2D.js.map → chunk-FJAAOIMP.js.map} +1 -1
- package/dist/{chunk-RHMY45DK.js → chunk-H2XGWH4V.js} +5 -5
- package/dist/{chunk-RHMY45DK.js.map → chunk-H2XGWH4V.js.map} +1 -1
- package/dist/{chunk-76VCWWUA.js → chunk-HSMSTCNZ.js} +2 -2
- package/dist/{chunk-76VCWWUA.js.map → chunk-HSMSTCNZ.js.map} +1 -1
- package/dist/{chunk-ECVTRAXN.js → chunk-IQOO3ZQK.js} +2 -2
- package/dist/{chunk-ECVTRAXN.js.map → chunk-IQOO3ZQK.js.map} +1 -1
- package/dist/{chunk-DBP3N6E5.js → chunk-JBL6SCNN.js} +3 -3
- package/dist/{chunk-DBP3N6E5.js.map → chunk-JBL6SCNN.js.map} +1 -1
- package/dist/{chunk-7KN5OQVN.js → chunk-JNQBPRAA.js} +2 -2
- package/dist/{chunk-7KN5OQVN.js.map → chunk-JNQBPRAA.js.map} +1 -1
- package/dist/{chunk-CPTQABDQ.js → chunk-JNSPYECP.js} +2 -2
- package/dist/{chunk-CPTQABDQ.js.map → chunk-JNSPYECP.js.map} +1 -1
- package/dist/{chunk-E7Q6UNCB.js → chunk-KBDYXGYT.js} +2 -2
- package/dist/{chunk-E7Q6UNCB.js.map → chunk-KBDYXGYT.js.map} +1 -1
- package/dist/{chunk-WVQDIOD7.js → chunk-KKMZP3YL.js} +2 -2
- package/dist/{chunk-WVQDIOD7.js.map → chunk-KKMZP3YL.js.map} +1 -1
- package/dist/{chunk-WSPXSWFG.js → chunk-KZEHTRPC.js} +3 -3
- package/dist/chunk-KZEHTRPC.js.map +1 -0
- package/dist/{chunk-KACJOE2N.js → chunk-LH5V6XGH.js} +2 -2
- package/dist/{chunk-KACJOE2N.js.map → chunk-LH5V6XGH.js.map} +1 -1
- package/dist/{chunk-VBXKYT4O.js → chunk-LH7YRRY7.js} +2 -2
- package/dist/{chunk-VBXKYT4O.js.map → chunk-LH7YRRY7.js.map} +1 -1
- package/dist/{chunk-QXXLDY6I.js → chunk-LI7AQ5NQ.js} +4 -4
- package/dist/{chunk-QXXLDY6I.js.map → chunk-LI7AQ5NQ.js.map} +1 -1
- package/dist/chunk-LK3QJHVX.js +19 -0
- package/dist/chunk-LK3QJHVX.js.map +1 -0
- package/dist/{chunk-LETAE6SX.js → chunk-LSFPZR52.js} +4 -4
- package/dist/{chunk-LETAE6SX.js.map → chunk-LSFPZR52.js.map} +1 -1
- package/dist/{chunk-CRHKWHTA.js → chunk-LUWZ7UZQ.js} +4 -4
- package/dist/{chunk-CRHKWHTA.js.map → chunk-LUWZ7UZQ.js.map} +1 -1
- package/dist/{chunk-CMG4OZPV.js → chunk-LWWIBUDK.js} +2 -2
- package/dist/{chunk-CMG4OZPV.js.map → chunk-LWWIBUDK.js.map} +1 -1
- package/dist/{chunk-LOW7J7SE.js → chunk-MHF2NK7F.js} +4 -4
- package/dist/{chunk-LOW7J7SE.js.map → chunk-MHF2NK7F.js.map} +1 -1
- package/dist/{chunk-JHUEYWWI.js → chunk-MPM6YBOM.js} +2 -2
- package/dist/{chunk-JHUEYWWI.js.map → chunk-MPM6YBOM.js.map} +1 -1
- package/dist/{chunk-ALBFHXMZ.js → chunk-MPT6Y7Z2.js} +87 -2
- package/dist/chunk-MPT6Y7Z2.js.map +1 -0
- package/dist/{chunk-OZKBIPXU.js → chunk-NO2XO7S6.js} +3 -3
- package/dist/{chunk-OZKBIPXU.js.map → chunk-NO2XO7S6.js.map} +1 -1
- package/dist/{chunk-FQETQ7CM.js → chunk-NSNQWDJ4.js} +2 -2
- package/dist/{chunk-FQETQ7CM.js.map → chunk-NSNQWDJ4.js.map} +1 -1
- package/dist/{chunk-F34LHBQI.js → chunk-OW2ODKHN.js} +9 -17
- package/dist/chunk-OW2ODKHN.js.map +1 -0
- package/dist/{chunk-PVKAIVKE.js → chunk-P427MACE.js} +63 -74
- package/dist/chunk-P427MACE.js.map +1 -0
- package/dist/{chunk-FR5G77K5.js → chunk-PJKH2GZ3.js} +2 -2
- package/dist/{chunk-FR5G77K5.js.map → chunk-PJKH2GZ3.js.map} +1 -1
- package/dist/{chunk-FNJA4S6J.js → chunk-QNA27ABY.js} +3 -3
- package/dist/{chunk-FNJA4S6J.js.map → chunk-QNA27ABY.js.map} +1 -1
- package/dist/chunk-QYOPZ2XS.js +124 -0
- package/dist/chunk-QYOPZ2XS.js.map +1 -0
- package/dist/{chunk-6BXPN5SC.js → chunk-RO3TSZ5W.js} +3 -3
- package/dist/{chunk-6BXPN5SC.js.map → chunk-RO3TSZ5W.js.map} +1 -1
- package/dist/{chunk-4IXG6XCT.js → chunk-RUCUU7Z7.js} +2 -2
- package/dist/{chunk-4IXG6XCT.js.map → chunk-RUCUU7Z7.js.map} +1 -1
- package/dist/{chunk-2FA3SX57.js → chunk-RYBJ7OZB.js} +4 -4
- package/dist/{chunk-2FA3SX57.js.map → chunk-RYBJ7OZB.js.map} +1 -1
- package/dist/{chunk-QSJAIXLM.js → chunk-SDQZYSCA.js} +3 -3
- package/dist/{chunk-QSJAIXLM.js.map → chunk-SDQZYSCA.js.map} +1 -1
- package/dist/{chunk-3XSY5LAB.js → chunk-SXZTDJMG.js} +4 -4
- package/dist/{chunk-3XSY5LAB.js.map → chunk-SXZTDJMG.js.map} +1 -1
- package/dist/{chunk-UD5KHQOH.js → chunk-T7M5FKCE.js} +28 -4
- package/dist/chunk-T7M5FKCE.js.map +1 -0
- package/dist/{chunk-KS7EXW4P.js → chunk-TIRBSPP2.js} +2 -2
- package/dist/{chunk-KS7EXW4P.js.map → chunk-TIRBSPP2.js.map} +1 -1
- package/dist/{chunk-XO5IOPM5.js → chunk-TNJGPG6R.js} +8 -8
- package/dist/{chunk-XO5IOPM5.js.map → chunk-TNJGPG6R.js.map} +1 -1
- package/dist/{chunk-73LC3JAL.js → chunk-U5SQOZNK.js} +4 -4
- package/dist/{chunk-73LC3JAL.js.map → chunk-U5SQOZNK.js.map} +1 -1
- package/dist/{chunk-Y4VR6VNM.js → chunk-UPOS666Q.js} +2 -2
- package/dist/{chunk-Y4VR6VNM.js.map → chunk-UPOS666Q.js.map} +1 -1
- package/dist/{chunk-YE6KCAIN.js → chunk-USSGJ3MD.js} +2 -2
- package/dist/{chunk-YE6KCAIN.js.map → chunk-USSGJ3MD.js.map} +1 -1
- package/dist/{chunk-4UWLHKNU.js → chunk-UWLJ7UEK.js} +3 -3
- package/dist/{chunk-4UWLHKNU.js.map → chunk-UWLJ7UEK.js.map} +1 -1
- package/dist/{chunk-SNUDT6AX.js → chunk-VHAYQGWR.js} +2 -2
- package/dist/{chunk-SNUDT6AX.js.map → chunk-VHAYQGWR.js.map} +1 -1
- package/dist/{chunk-DV6GE57V.js → chunk-VWGRAE2Q.js} +2 -2
- package/dist/chunk-VWGRAE2Q.js.map +1 -0
- package/dist/{chunk-4L5ZIKDZ.js → chunk-W7J3MQNV.js} +2 -2
- package/dist/{chunk-4L5ZIKDZ.js.map → chunk-W7J3MQNV.js.map} +1 -1
- package/dist/{chunk-MVWR5WRX.js → chunk-WWDDKUDW.js} +3 -3
- package/dist/{chunk-MVWR5WRX.js.map → chunk-WWDDKUDW.js.map} +1 -1
- package/dist/{chunk-WEQNPYVA.js → chunk-XXKRHKFH.js} +2 -2
- package/dist/{chunk-WEQNPYVA.js.map → chunk-XXKRHKFH.js.map} +1 -1
- package/dist/{chunk-Q7RILH2D.js → chunk-XZ253TGP.js} +32 -6
- package/dist/chunk-XZ253TGP.js.map +1 -0
- package/dist/{chunk-3TBMGGTA.js → chunk-Y672Z7QY.js} +2 -2
- package/dist/{chunk-3TBMGGTA.js.map → chunk-Y672Z7QY.js.map} +1 -1
- package/dist/{chunk-MMOQR426.js → chunk-YS3H6DEQ.js} +2 -2
- package/dist/{chunk-MMOQR426.js.map → chunk-YS3H6DEQ.js.map} +1 -1
- package/dist/{chunk-QR7MGGOM.js → chunk-YVGHWCMY.js} +3 -3
- package/dist/{chunk-QR7MGGOM.js.map → chunk-YVGHWCMY.js.map} +1 -1
- package/dist/{chunk-4CYCJ3NY.js → chunk-Z4PGAYO7.js} +10 -10
- package/dist/{chunk-4CYCJ3NY.js.map → chunk-Z4PGAYO7.js.map} +1 -1
- package/dist/{chunk-JAC6AVZN.js → chunk-ZIZXXYXM.js} +3 -3
- package/dist/{chunk-JAC6AVZN.js.map → chunk-ZIZXXYXM.js.map} +1 -1
- package/dist/collapsible-panel.d.ts +5 -5
- package/dist/collapsible-panel.js +4 -4
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/color-field.js +2 -2
- package/dist/color-picker.js +1 -1
- package/dist/color-swatches.js +1 -1
- package/dist/column-explorer.d.ts +2 -2
- package/dist/column-explorer.js +166 -20
- package/dist/column-explorer.js.map +1 -1
- package/dist/column-track.d.ts +21 -3
- package/dist/column-track.js +1 -1
- package/dist/combobox.d.ts +3 -3
- package/dist/combobox.js +1 -1
- package/dist/content-item.d.ts +1 -1
- package/dist/content-item.js +1 -1
- package/dist/content-swap.d.ts +3 -3
- package/dist/content-swap.js +1 -1
- package/dist/corner-status.d.ts +3 -3
- package/dist/corner-status.js +1 -1
- package/dist/device-class.js +101 -1
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +3 -3
- package/dist/disclosure-arrow.js +1 -1
- package/dist/disclosure.d.ts +14 -2
- package/dist/disclosure.js +13 -4
- package/dist/disclosure.js.map +1 -1
- package/dist/edge-activity-indicator.d.ts +3 -3
- package/dist/edge-activity-indicator.js +1 -1
- package/dist/empty-state.d.ts +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/{extension-attributes-IJ4decoa.d.ts → extension-attributes-CnqvBmj3.d.ts} +1 -1
- package/dist/file-picker.d.ts +3 -3
- package/dist/file-picker.js +1 -1
- package/dist/floating-toolbar.d.ts +3 -3
- package/dist/floating-toolbar.js +1 -1
- package/dist/form.d.ts +3 -3
- package/dist/form.js +1 -1
- package/dist/framed-list.js +1 -1
- package/dist/gauge.js +1 -1
- package/dist/grid.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +70 -68
- package/dist/list-action-row.js +1 -1
- package/dist/list-detail-dialog.d.ts +3 -3
- package/dist/list-detail-dialog.js +7 -7
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +1 -1
- package/dist/list-header.js +2 -1
- package/dist/list-inset-control.d.ts +3 -3
- package/dist/list-inset-control.js +1 -1
- package/dist/list-inset-text.js +1 -1
- package/dist/list-item.js +1 -1
- package/dist/list.d.ts +1 -1
- package/dist/list.js +1 -1
- package/dist/loading-spinner.d.ts +3 -3
- package/dist/loading-spinner.js +1 -1
- package/dist/lucide-icon.d.ts +3 -3
- package/dist/lucide-icon.js +1 -1
- package/dist/message-composer.js +2 -1
- package/dist/{nav-stack-DKrvqFjA.d.ts → nav-stack-IKSMxo2A.d.ts} +3 -3
- package/dist/nav-stack.d.ts +2 -2
- package/dist/nav-stack.js +1 -1
- package/dist/paged-view.d.ts +3 -3
- package/dist/paged-view.js +1 -1
- package/dist/paged-view.js.map +1 -1
- package/dist/pane.js +1 -1
- package/dist/popup-menu-register.js +1 -1
- package/dist/popup-menu.d.ts +1 -20
- package/dist/popup-menu.js +1 -1
- package/dist/progress-bar.js +1 -1
- package/dist/progress-ring.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/resizable-region.d.ts +3 -3
- package/dist/resizable-region.js +1 -1
- package/dist/row.d.ts +1 -1
- package/dist/row.js +1 -1
- package/dist/scroll-effect.d.ts +1 -1
- package/dist/scroll-effect.js +1 -1
- package/dist/{search-field-5lNIszda.d.ts → search-field-BA48RaJY.d.ts} +13 -4
- package/dist/search-field-model.d.ts +2 -2
- package/dist/search-field.d.ts +2 -2
- package/dist/search-field.js +1 -1
- package/dist/segmented-control.d.ts +3 -3
- package/dist/segmented-control.js +1 -1
- package/dist/select-register.js +2 -2
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +3 -13
- package/dist/select.js +1 -1
- package/dist/sized-region.d.ts +3 -3
- package/dist/sized-region.js +1 -1
- package/dist/skeleton.d.ts +3 -3
- package/dist/skeleton.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/spacer.d.ts +3 -3
- package/dist/spacer.js +1 -1
- package/dist/split-button.js +1 -1
- package/dist/split-middle-De745N2j.d.ts +7 -0
- package/dist/split-view.d.ts +4 -4
- package/dist/split-view.js +1 -1
- package/dist/state-banner.js +1 -1
- package/dist/styles/components/actions/popup-menu/popup-menu.css +0 -124
- package/dist/styles/components/actions/toolbar/toolbar.css +0 -7
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +9 -1
- package/dist/styles/components/collections/framed-list/framed-list.css +7 -3
- package/dist/styles/components/collections/list-action-row/list-action-row.css +5 -1
- package/dist/styles/components/forms/radio-group/radio-group.css +8 -4
- package/dist/styles/components/forms/search-field/search-field.css +98 -0
- package/dist/styles/components/forms/select/select.css +0 -60
- package/dist/styles/components/forms/text-field/text-field.css +1 -1
- package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +33 -3
- package/dist/styles/components/surfaces/disclosure/disclosure.css +24 -4
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +1 -1
- package/dist/styles/components/typography/text/text.css +2 -2
- package/dist/styles/disclosure.css +24 -4
- package/dist/styles/framed-list.css +7 -3
- package/dist/styles/list-action-row.css +5 -1
- package/dist/styles/popup-menu.css +0 -124
- package/dist/styles/radio-group.css +8 -4
- package/dist/styles/search-field.css +98 -0
- package/dist/styles/select.css +0 -60
- package/dist/styles/surface-scaffold.css +1 -1
- package/dist/styles/tab-bar-item.css +33 -3
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/text.css +2 -2
- package/dist/styles/toolbar-control-group.css +9 -1
- package/dist/styles/toolbar.css +0 -7
- package/dist/styles/webawesome.css +7 -0
- package/dist/summary-row.js +1 -1
- package/dist/sunken-panel.d.ts +3 -3
- package/dist/sunken-panel.js +1 -1
- package/dist/surface-scaffold.d.ts +9 -5
- package/dist/surface-scaffold.js +1 -1
- package/dist/switch.js +1 -1
- package/dist/tab-bar-item.d.ts +26 -2
- package/dist/tab-bar-item.js +2 -1
- package/dist/tab-bar.d.ts +3 -3
- package/dist/tab-bar.js +1 -1
- package/dist/tab-navigator.d.ts +3 -3
- package/dist/tab-navigator.js +2 -2
- package/dist/tab-navigator.js.map +1 -1
- package/dist/tab-panel.d.ts +3 -3
- package/dist/tab-panel.js +1 -1
- package/dist/tag-field.d.ts +3 -3
- package/dist/tag-field.js +1 -1
- package/dist/text-field.d.ts +2 -2
- package/dist/text-field.js +1 -1
- package/dist/text.d.ts +3 -2
- package/dist/text.js +2 -1
- package/dist/toolbar-control-group.d.ts +7 -7
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar-text.d.ts +3 -3
- package/dist/toolbar-text.js +1 -1
- package/dist/toolbar.d.ts +3 -3
- package/dist/toolbar.js +1 -1
- package/dist/tree-list.d.ts +3 -3
- package/dist/tree-list.js +151 -3
- package/dist/tree-list.js.map +1 -1
- package/dist/{tree-rows-Bms5QJvG.d.ts → tree-rows-BXChApji.d.ts} +1 -1
- package/dist/value-preview.d.ts +3 -3
- package/dist/value-preview.js +1 -1
- package/dist/value-table.d.ts +5 -5
- package/dist/value-table.js +1 -1
- package/dist/wire-catalog.d.ts +2 -2
- package/dist/wire-catalog.js +2 -2
- package/dist/wire-color-fields.js +73 -2
- package/dist/wire-color-fields.js.map +1 -1
- package/dist/wire-color-pickers.js +1 -1
- package/dist/wire-column-explorer.js +92 -1
- package/dist/wire-column-explorer.js.map +1 -1
- package/dist/wire-column-tracks.d.ts +13 -0
- package/dist/wire-column-tracks.js +4 -0
- package/dist/wire-column-tracks.js.map +1 -0
- package/dist/wire-content-items.js +204 -1
- package/dist/wire-content-items.js.map +1 -1
- package/dist/wire-nav-stack.js +423 -1
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-resizable-regions.js +1 -1
- package/dist/wire-search-fields.d.ts +2 -2
- package/dist/wire-search-fields.js +1 -1
- package/dist/wire-sidebar.js +228 -1
- package/dist/wire-sidebar.js.map +1 -1
- package/dist/wire-sliders.js +29 -1
- package/dist/wire-sliders.js.map +1 -1
- package/dist/wire-tab-bars.d.ts +1 -1
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.js +150 -1
- package/dist/wire-tab-navigator.js.map +1 -1
- package/dist/wire-tag-fields.js +252 -2
- package/dist/wire-tag-fields.js.map +1 -1
- package/dist/wire-tree-list.js +186 -1
- package/dist/wire-tree-list.js.map +1 -1
- package/dist/wire-workbench.js +1 -1
- package/dist/workbench-dialog.d.ts +3 -3
- package/dist/workbench-dialog.js +5 -5
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +4 -4
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +18 -5
- package/docs/component-contract.md +4 -3
- package/docs/component-selection.md +14 -5
- package/docs/disclosure.md +22 -0
- package/docs/layout.md +11 -0
- package/docs/list-detail-dialog.md +2 -3
- package/docs/scroll-effect.md +2 -2
- package/docs/surface-scaffold.md +5 -6
- package/docs/workbench-dialog.md +2 -3
- package/llms.txt +10 -46
- package/package.json +7 -33
- package/ux-demo/recipes/app-shell.tsx +141 -48
- package/ux-demo/recipes/collapsible-sidebar.tsx +169 -43
- package/ux-demo/recipes/compact-toolbar.tsx +114 -22
- package/ux-demo/recipes/composer-form.tsx +104 -14
- package/ux-demo/recipes/list-detail-dialog.tsx +84 -38
- package/ux-demo/recipes/list-workspace-states.tsx +152 -29
- package/ux-demo/recipes/loading-inspector.tsx +174 -30
- package/ux-demo/recipes/media-detail.tsx +146 -29
- package/ux-demo/recipes/navigation-sidebar.tsx +113 -24
- package/ux-demo/recipes/navigation-stack.tsx +43 -7
- package/ux-demo/recipes/workspace-header.tsx +66 -2
- package/ai/component-props-overlay.json +0 -8892
- package/ai/component-props-overlay.schema.json +0 -82
- package/ai/component-props.json +0 -34203
- package/ai/component-props.schema.json +0 -408
- package/ai/view-document.schema.json +0 -467
- package/dist/browser/editor.js +0 -50
- package/dist/chunk-3K5V3ZSD.js +0 -77
- package/dist/chunk-3K5V3ZSD.js.map +0 -1
- package/dist/chunk-63TJH2RF.js +0 -231
- package/dist/chunk-63TJH2RF.js.map +0 -1
- package/dist/chunk-6V6UHPJD.js +0 -153
- package/dist/chunk-6V6UHPJD.js.map +0 -1
- package/dist/chunk-76BLSFEA.js.map +0 -1
- package/dist/chunk-ALBFHXMZ.js.map +0 -1
- package/dist/chunk-ASU4ODOH.js.map +0 -1
- package/dist/chunk-BMUYZKXW.js +0 -155
- package/dist/chunk-BMUYZKXW.js.map +0 -1
- package/dist/chunk-COQI4OMZ.js.map +0 -1
- package/dist/chunk-D2KHQNJ6.js +0 -155
- package/dist/chunk-D2KHQNJ6.js.map +0 -1
- package/dist/chunk-DV6GE57V.js.map +0 -1
- package/dist/chunk-ECJHCPBN.js.map +0 -1
- package/dist/chunk-F34LHBQI.js.map +0 -1
- package/dist/chunk-GHV36C6I.js +0 -94
- package/dist/chunk-GHV36C6I.js.map +0 -1
- package/dist/chunk-HHEBNP6Z.js +0 -256
- package/dist/chunk-HHEBNP6Z.js.map +0 -1
- package/dist/chunk-HPOXLOVC.js +0 -184
- package/dist/chunk-HPOXLOVC.js.map +0 -1
- package/dist/chunk-I2K4OQKB.js +0 -426
- package/dist/chunk-I2K4OQKB.js.map +0 -1
- package/dist/chunk-PVKAIVKE.js.map +0 -1
- package/dist/chunk-Q7RILH2D.js.map +0 -1
- package/dist/chunk-RGB4DPMN.js.map +0 -1
- package/dist/chunk-S7QB5KMM.js.map +0 -1
- package/dist/chunk-SGYBIKQA.js.map +0 -1
- package/dist/chunk-TXBNPEIJ.js +0 -31
- package/dist/chunk-TXBNPEIJ.js.map +0 -1
- package/dist/chunk-UD5KHQOH.js.map +0 -1
- package/dist/chunk-UU37OR3D.js.map +0 -1
- package/dist/chunk-WCMGPAY2.js +0 -103
- package/dist/chunk-WCMGPAY2.js.map +0 -1
- package/dist/chunk-WSPXSWFG.js.map +0 -1
- package/dist/chunk-WUVHP3UC.js.map +0 -1
- package/dist/chunk-X43QQWVC.js +0 -208
- package/dist/chunk-X43QQWVC.js.map +0 -1
- package/dist/editor.d.ts +0 -447
- package/dist/editor.js +0 -15604
- package/dist/editor.js.map +0 -1
- package/dist/styles/editor/editor.css +0 -585
- package/dist/styles/editor.css +0 -4
- package/dist/view-runtime.d.ts +0 -9
- package/dist/view-runtime.js +0 -8
- package/dist/view-runtime.js.map +0 -1
- package/docs/editor-host.md +0 -397
- package/docs/view.md +0 -314
- package/props/cli.d.mts +0 -1
- package/props/cli.mjs +0 -142
- package/props/component-props.d.mts +0 -180
- package/props/component-props.mjs +0 -1208
- package/view/catalog.mjs +0 -229
- package/view/child-kind.mjs +0 -22
- package/view/cli.d.mts +0 -18
- package/view/cli.mjs +0 -316
- package/view/contract.mjs +0 -418
- package/view/css-grammar.mjs +0 -93
- package/view/generate.d.mts +0 -16
- package/view/generate.mjs +0 -739
- package/view/index.d.mts +0 -491
- package/view/index.mjs +0 -36
- package/view/interpret.mjs +0 -339
- package/view/project-types-worker.mjs +0 -55
- package/view/project-types.d.mts +0 -43
- package/view/project-types.mjs +0 -618
- package/view/type-expression.d.mts +0 -15
- package/view/type-expression.mjs +0 -162
- package/view/types.mjs +0 -165
- package/view/validate-move.mjs +0 -353
- package/view/validate.mjs +0 -1649
- package/vite-editor.d.mts +0 -173
- package/vite-editor.mjs +0 -548
package/dist/editor.d.ts
DELETED
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
import * as kerfjs from 'kerfjs';
|
|
2
|
-
import { SafeHtml } from 'kerfjs';
|
|
3
|
-
import { ViewType, ViewDocument, ViewCatalog, ViewValue } from '@kerfjs/ui/view';
|
|
4
|
-
import { IconNode } from 'lucide';
|
|
5
|
-
|
|
6
|
-
interface TypeSuggestion {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly source?: string;
|
|
9
|
-
readonly text: string;
|
|
10
|
-
readonly cursor: number;
|
|
11
|
-
}
|
|
12
|
-
interface TypeExpressionResult {
|
|
13
|
-
readonly type?: ViewType;
|
|
14
|
-
readonly suggestions?: readonly TypeSuggestion[];
|
|
15
|
-
readonly diagnostics: readonly {
|
|
16
|
-
readonly message: string;
|
|
17
|
-
readonly start?: number;
|
|
18
|
-
readonly length?: number;
|
|
19
|
-
}[];
|
|
20
|
-
}
|
|
21
|
-
type ProjectTypeRequest = {
|
|
22
|
-
readonly action: 'analyze';
|
|
23
|
-
readonly source: string;
|
|
24
|
-
readonly text: string;
|
|
25
|
-
readonly cursor?: number;
|
|
26
|
-
/** False skips completion suggestions, the costliest analysis step. */
|
|
27
|
-
readonly suggest?: boolean;
|
|
28
|
-
readonly declared?: ViewType;
|
|
29
|
-
} | {
|
|
30
|
-
readonly action: 'validate';
|
|
31
|
-
readonly source: string;
|
|
32
|
-
readonly document: ViewDocument;
|
|
33
|
-
};
|
|
34
|
-
interface ProjectTypeResult extends TypeExpressionResult {
|
|
35
|
-
readonly document?: ViewDocument;
|
|
36
|
-
}
|
|
37
|
-
/** A host-provided project compiler, normally the editor dev-server endpoint. */
|
|
38
|
-
type ProjectTypeService = (request: ProjectTypeRequest) => Promise<ProjectTypeResult>;
|
|
39
|
-
/** The default dev-server transport; custom editor hosts can supply their own. */
|
|
40
|
-
declare function devServerTypeService(api?: string): ProjectTypeService;
|
|
41
|
-
|
|
42
|
-
/** Reads and writes documents by project-relative path. */
|
|
43
|
-
interface EditorStorage {
|
|
44
|
-
/** Optional project TypeScript compiler for parameter expressions. */
|
|
45
|
-
readonly types?: ProjectTypeService;
|
|
46
|
-
/** The document's text, or undefined when there is none at `path`. */
|
|
47
|
-
read(path: string): Promise<string | undefined>;
|
|
48
|
-
write(path: string, text: string): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* KF-PX5EVZ: the project's documents, as project-relative POSIX paths of
|
|
51
|
-
* `.kui.json` files. Optional: without it the editor asks for a path where
|
|
52
|
-
* it would offer a picker.
|
|
53
|
-
*/
|
|
54
|
-
list?(): Promise<readonly string[]>;
|
|
55
|
-
}
|
|
56
|
-
/** Where the dev server's file middleware answers. */
|
|
57
|
-
declare const EDITOR_FILE_API = "/__kerf-ui-editor/api/file";
|
|
58
|
-
/** Where the dev server lists the project's documents (KF-PX5EVZ). */
|
|
59
|
-
declare const EDITOR_LIST_API = "/__kerf-ui-editor/api/files";
|
|
60
|
-
/** Storage over the dev server that hosts the editor. */
|
|
61
|
-
declare function devServerStorage(api?: string, listApi?: string): EditorStorage;
|
|
62
|
-
|
|
63
|
-
/** Literal Library sample data; view bindings and expressions are not evaluated. */
|
|
64
|
-
type CatalogLibraryPreviewJson =
|
|
65
|
-
| null
|
|
66
|
-
| string
|
|
67
|
-
| number
|
|
68
|
-
| boolean
|
|
69
|
-
| readonly CatalogLibraryPreviewJson[]
|
|
70
|
-
| { readonly [key: string]: CatalogLibraryPreviewJson };
|
|
71
|
-
interface CatalogLibraryPreview {
|
|
72
|
-
readonly props?: Readonly<Record<string, CatalogLibraryPreviewJson>>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type ComponentFunctions = Readonly<Record<string, (props: never) => SafeHtml>>;
|
|
76
|
-
interface LibraryPreviewContext<Props> {
|
|
77
|
-
readonly key: string;
|
|
78
|
-
readonly name: string;
|
|
79
|
-
readonly props: Readonly<Props>;
|
|
80
|
-
}
|
|
81
|
-
interface LibraryPreview<Props = unknown> {
|
|
82
|
-
sampleProps?(): Partial<Props>;
|
|
83
|
-
render?(context: LibraryPreviewContext<Props>): SafeHtml | undefined;
|
|
84
|
-
readonly icon?: IconNode;
|
|
85
|
-
readonly fit?: 'contain' | 'fill';
|
|
86
|
-
}
|
|
87
|
-
type LibraryPreviews = Readonly<Record<string, LibraryPreview>>;
|
|
88
|
-
type LibraryPreviewsFor<C extends ComponentFunctions> = {
|
|
89
|
-
readonly [K in keyof C]?: LibraryPreview<Parameters<C[K]>[0]>;
|
|
90
|
-
};
|
|
91
|
-
declare function defineLibraryPreviews<const C extends ComponentFunctions>(components: C, previews: LibraryPreviewsFor<NoInfer<C>>): LibraryPreviewsFor<C>;
|
|
92
|
-
/** Literal JSON samples; no document bindings or executable values are evaluated. */
|
|
93
|
-
type LibraryPreviewJson = CatalogLibraryPreviewJson;
|
|
94
|
-
type SerializableLibraryPreview = CatalogLibraryPreview;
|
|
95
|
-
type SerializableLibraryPreviews = Readonly<Record<string, SerializableLibraryPreview>>;
|
|
96
|
-
|
|
97
|
-
interface InspectorProp {
|
|
98
|
-
readonly name: string;
|
|
99
|
-
/** The task-facing name the Inspector shows (KF-HP1J4Z: Button text). */
|
|
100
|
-
readonly label?: string;
|
|
101
|
-
readonly type: {
|
|
102
|
-
readonly kind: string;
|
|
103
|
-
readonly text?: string;
|
|
104
|
-
};
|
|
105
|
-
readonly required: boolean;
|
|
106
|
-
readonly default?: string | number | boolean;
|
|
107
|
-
readonly group?: string;
|
|
108
|
-
/** A component-specific task inside its group (KF-4BPSTB: Link, Popup). */
|
|
109
|
-
readonly subgroup?: string;
|
|
110
|
-
readonly order?: number;
|
|
111
|
-
readonly control?: string;
|
|
112
|
-
readonly zone?: string;
|
|
113
|
-
readonly slot?: true;
|
|
114
|
-
/** css-value props: the builders the prop accepts. */
|
|
115
|
-
readonly cssValue?: {
|
|
116
|
-
readonly helpers?: readonly string[];
|
|
117
|
-
};
|
|
118
|
-
/** Icon data (`'lucide'`): edits in the icon picker (KF-AJHJB8). */
|
|
119
|
-
readonly iconSource?: string;
|
|
120
|
-
/**
|
|
121
|
-
* A value prop's options list, when it is not `choices` (KF-H1X3S7: a
|
|
122
|
-
* ColorSwatches `value` picks from its `swatches`).
|
|
123
|
-
*/
|
|
124
|
-
readonly choicesFrom?: string;
|
|
125
|
-
}
|
|
126
|
-
interface InspectorComponent {
|
|
127
|
-
readonly key: string;
|
|
128
|
-
readonly groups?: readonly string[];
|
|
129
|
-
readonly props: readonly InspectorProp[];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/** A placeholder's factory: called for each preview, so state never leaks. */
|
|
133
|
-
type Placeholder = () => unknown;
|
|
134
|
-
/** Placeholders by `<component key>.<prop>`. */
|
|
135
|
-
type Placeholders = Readonly<Record<string, Placeholder>>;
|
|
136
|
-
|
|
137
|
-
interface PropsComponent extends InspectorComponent {
|
|
138
|
-
readonly id: string;
|
|
139
|
-
readonly source: 'kerf' | 'webawesome' | 'package';
|
|
140
|
-
readonly export?: string;
|
|
141
|
-
readonly tagName?: string;
|
|
142
|
-
/** Prop combinations a union-typed props interface allows. */
|
|
143
|
-
readonly variants?: readonly {
|
|
144
|
-
readonly required: readonly string[];
|
|
145
|
-
readonly forbidden: readonly string[];
|
|
146
|
-
readonly when?: Readonly<Record<string, string | number | boolean>>;
|
|
147
|
-
}[];
|
|
148
|
-
}
|
|
149
|
-
/** A selection catalog entry: a component's display name and category. */
|
|
150
|
-
interface CatalogEntry {
|
|
151
|
-
readonly id: string;
|
|
152
|
-
readonly name: string;
|
|
153
|
-
readonly category: string;
|
|
154
|
-
readonly source: string;
|
|
155
|
-
}
|
|
156
|
-
interface PaletteGroup {
|
|
157
|
-
readonly category: string;
|
|
158
|
-
readonly items: readonly {
|
|
159
|
-
readonly key: string;
|
|
160
|
-
readonly name: string;
|
|
161
|
-
}[];
|
|
162
|
-
}
|
|
163
|
-
/** A component function the preview can call with a node's props. */
|
|
164
|
-
type ComponentFunction = (props: never) => SafeHtml;
|
|
165
|
-
/** Everything an editor knows about the components it can place. */
|
|
166
|
-
interface EditorCatalog {
|
|
167
|
-
readonly viewCatalog: ViewCatalog;
|
|
168
|
-
/** Component key → props entry. */
|
|
169
|
-
readonly propsByKey: ReadonlyMap<string, PropsComponent>;
|
|
170
|
-
/** Component key → display name ("Button", "FieldLabel", "OrderCard"). */
|
|
171
|
-
readonly componentNames: ReadonlyMap<string, string>;
|
|
172
|
-
/** Component key → the function the preview renders it with. */
|
|
173
|
-
readonly components: Readonly<Record<string, ComponentFunction>>;
|
|
174
|
-
/** Placeable components by category, in catalog order. */
|
|
175
|
-
paletteGroups(): PaletteGroup[];
|
|
176
|
-
/**
|
|
177
|
-
* Preview stand-ins for app-supplied props, by `<component key>.<prop>`
|
|
178
|
-
* (KF-H3CB2P): Kerf UI's, then the host's.
|
|
179
|
-
*/
|
|
180
|
-
readonly placeholders: Placeholders;
|
|
181
|
-
/** Library-only previews; no effect on component insertion or the canvas. */
|
|
182
|
-
readonly libraryPreviews?: LibraryPreviews;
|
|
183
|
-
}
|
|
184
|
-
interface EditorCatalogInputs {
|
|
185
|
-
/** `component-props.json` catalogs: Kerf UI's and any package's. */
|
|
186
|
-
readonly props: readonly unknown[];
|
|
187
|
-
/** `component-composition.json` catalogs, in the same packages. */
|
|
188
|
-
readonly composition: readonly unknown[];
|
|
189
|
-
/** Selection catalogs (`component-catalog.json`) for names and categories. */
|
|
190
|
-
readonly selection?: readonly unknown[];
|
|
191
|
-
readonly components: Readonly<Record<string, ComponentFunction>>;
|
|
192
|
-
/**
|
|
193
|
-
* Preview stand-ins for the app-supplied props (functions, models) of an
|
|
194
|
-
* application's components, by `<component key>.<prop>`; each returns a
|
|
195
|
-
* fresh value. They add to and replace Kerf UI's own.
|
|
196
|
-
*/
|
|
197
|
-
readonly placeholders?: Placeholders;
|
|
198
|
-
/** Later whole entries replace catalog samples and first-party previews. */
|
|
199
|
-
readonly libraryPreviews?: LibraryPreviews;
|
|
200
|
-
}
|
|
201
|
-
declare function createEditorCatalog(inputs: EditorCatalogInputs): EditorCatalog;
|
|
202
|
-
/**
|
|
203
|
-
* Catalog key → component function, from props catalogs and the modules
|
|
204
|
-
* their components import from (`modules[import][export]`). A host imports
|
|
205
|
-
* those modules (the Vite editor plugin generates the imports), so this
|
|
206
|
-
* module embeds no components of its own.
|
|
207
|
-
*/
|
|
208
|
-
declare function componentMap(props: readonly unknown[], modules: Readonly<Record<string, Readonly<Record<string, unknown>>>>): Record<string, ComponentFunction>;
|
|
209
|
-
|
|
210
|
-
/** A place inside a prop value: object field names and list indexes. */
|
|
211
|
-
type FieldPath = readonly (string | number)[];
|
|
212
|
-
/** Where a field editor's form opens: pushed in the Inspector, or a dialog. */
|
|
213
|
-
type FieldContainer = 'subview' | 'dialog';
|
|
214
|
-
|
|
215
|
-
/** Where a `$slot` sits: its parent node, zone, and index in that zone. */
|
|
216
|
-
interface SlotAddress {
|
|
217
|
-
readonly parent: string;
|
|
218
|
-
readonly zone: string;
|
|
219
|
-
readonly index: number;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/** What the inspector shows: a document node or a palette component. */
|
|
223
|
-
type Selection = {
|
|
224
|
-
readonly kind: 'node';
|
|
225
|
-
readonly id: string;
|
|
226
|
-
} | {
|
|
227
|
-
readonly kind: 'component';
|
|
228
|
-
readonly key: string;
|
|
229
|
-
} | {
|
|
230
|
-
readonly kind: 'slot';
|
|
231
|
-
readonly address: SlotAddress;
|
|
232
|
-
} | null;
|
|
233
|
-
|
|
234
|
-
/** `data-*` attributes to spread on an element (or a component's `rootAttributes`). */
|
|
235
|
-
type FieldEditorAttributes = Readonly<Record<`data-${string}`, string>>;
|
|
236
|
-
/** The control kinds a field editor's own controls can commit through. */
|
|
237
|
-
type FieldEditorControlKind = 'text' | 'number' | 'switch' | 'select' | 'list';
|
|
238
|
-
/** What a field editor renders from, and how it changes the value. */
|
|
239
|
-
interface FieldEditorContext {
|
|
240
|
-
/** The value being edited, or undefined while it is unset. */
|
|
241
|
-
readonly value: ViewValue | undefined;
|
|
242
|
-
/** The value's type in the props catalog, and the table its `ref`s name. */
|
|
243
|
-
readonly type: ViewType;
|
|
244
|
-
readonly definitions: Readonly<Record<string, ViewType>>;
|
|
245
|
-
/** Writes the next value as one undoable edit; `undefined` unsets it. */
|
|
246
|
-
readonly commit: (next: ViewValue | undefined) => void;
|
|
247
|
-
/**
|
|
248
|
-
* The `data-action` a button takes (a `Button`'s `action`) to set the
|
|
249
|
-
* value to what {@link set}'s attributes name when it is pressed.
|
|
250
|
-
*/
|
|
251
|
-
readonly setAction: string;
|
|
252
|
-
/** Attributes for a {@link setAction} button that sets the value to `next`. */
|
|
253
|
-
readonly set: (next: ViewValue | undefined) => FieldEditorAttributes;
|
|
254
|
-
/**
|
|
255
|
-
* Attributes for a control (a `TextField`'s or `Select`'s
|
|
256
|
-
* `rootAttributes`, or a native input) that edits the field at `path`
|
|
257
|
-
* inside the value on `change`, as the Inspector's own controls do: `text`
|
|
258
|
-
* and `number` read the control's input, `switch` its checked state,
|
|
259
|
-
* `select` its value, and `list` its text as JSON.
|
|
260
|
-
*/
|
|
261
|
-
readonly control: (path: FieldPath, kind: FieldEditorControlKind) => FieldEditorAttributes;
|
|
262
|
-
/**
|
|
263
|
-
* The editor's type-driven form for the value, or for the object at
|
|
264
|
-
* `path` inside it, to compose with the editor's own controls.
|
|
265
|
-
*/
|
|
266
|
-
readonly form: (path?: FieldPath) => SafeHtml;
|
|
267
|
-
}
|
|
268
|
-
/** An application's editor for every value of one named type. */
|
|
269
|
-
interface FieldEditor {
|
|
270
|
-
/**
|
|
271
|
-
* Where the editor opens: pushed in the Inspector (`subview`) or in a
|
|
272
|
-
* dialog. Omitted, the type-driven rule decides (at most 10 fields push).
|
|
273
|
-
*/
|
|
274
|
-
readonly container?: FieldContainer;
|
|
275
|
-
/** The editor's content for the value. */
|
|
276
|
-
readonly render: (context: FieldEditorContext) => SafeHtml;
|
|
277
|
-
/**
|
|
278
|
-
* Wires the editor's own events once, when the editor is wired; `context`
|
|
279
|
-
* reads the open value's context, or undefined while none of this type is
|
|
280
|
-
* open. Returns a disposer.
|
|
281
|
-
*/
|
|
282
|
-
readonly wire?: (root: HTMLElement, context: () => FieldEditorContext | undefined) => () => void;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Field editors by type name: a props catalog definition (`'ListConfig'`)
|
|
286
|
-
* or an application's own (`'InvoiceFilter'`).
|
|
287
|
-
*/
|
|
288
|
-
type FieldEditors = Readonly<Record<string, FieldEditor>>;
|
|
289
|
-
|
|
290
|
-
/** What a host's mock handler is given. */
|
|
291
|
-
interface PlayActionContext {
|
|
292
|
-
/** The action's name, as the document's `$action` names it. */
|
|
293
|
-
readonly action: string;
|
|
294
|
-
/** The id of the node the action came from. */
|
|
295
|
-
readonly nodeId: string;
|
|
296
|
-
/** The DOM event that fired it. */
|
|
297
|
-
readonly event: Event;
|
|
298
|
-
/** The view's current param values. */
|
|
299
|
-
readonly params: Readonly<Record<string, unknown>>;
|
|
300
|
-
/** The playing view. */
|
|
301
|
-
readonly view: PlayView;
|
|
302
|
-
}
|
|
303
|
-
/** The playing view, as a mock handler drives it. */
|
|
304
|
-
interface PlayView {
|
|
305
|
-
/** The view's root element, inside the play frame. */
|
|
306
|
-
readonly root: HTMLElement;
|
|
307
|
-
/** The play-time copy of the document. */
|
|
308
|
-
readonly document: ViewDocument;
|
|
309
|
-
/** The `data-key` of the row the action came from, if any. */
|
|
310
|
-
readonly key?: string;
|
|
311
|
-
/** Sets params; the view re-renders with them. */
|
|
312
|
-
setParams(values: Readonly<Record<string, unknown>>): void;
|
|
313
|
-
/**
|
|
314
|
-
* A NavStack in the view, by its node's author name, its `id` prop, or its
|
|
315
|
-
* node id: `push(viewKey)` shows one of the document's views for that
|
|
316
|
-
* stack on top, and `pop()` goes back one.
|
|
317
|
-
*/
|
|
318
|
-
navStack(name: string): PlayNavStack | undefined;
|
|
319
|
-
}
|
|
320
|
-
interface PlayNavStack {
|
|
321
|
-
push(viewKey: string): void;
|
|
322
|
-
pop(): void;
|
|
323
|
-
}
|
|
324
|
-
/** A host's mock handler. Its throw (or rejection) is logged; the view runs on. */
|
|
325
|
-
type PlayHandler = (context: PlayActionContext) => unknown;
|
|
326
|
-
/** Mock handlers by action name. */
|
|
327
|
-
type PlayHandlers = Readonly<Record<string, PlayHandler>>;
|
|
328
|
-
/** Whether a handler ran, was missing, or threw. */
|
|
329
|
-
type ActionOutcome = 'ran' | 'missing' | 'threw';
|
|
330
|
-
/** One fired action, as the action log lists it. */
|
|
331
|
-
interface ActionLogEntry {
|
|
332
|
-
readonly action: string;
|
|
333
|
-
/** The node's author name, or its component and id. */
|
|
334
|
-
readonly node: string;
|
|
335
|
-
/** The DOM event's type. */
|
|
336
|
-
readonly event: string;
|
|
337
|
-
readonly outcome: ActionOutcome;
|
|
338
|
-
/** A throw's message. */
|
|
339
|
-
readonly message?: string;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/** Insets in CSS pixels, by physical side. */
|
|
343
|
-
interface DeviceInsets {
|
|
344
|
-
readonly top: number;
|
|
345
|
-
readonly right: number;
|
|
346
|
-
readonly bottom: number;
|
|
347
|
-
readonly left: number;
|
|
348
|
-
}
|
|
349
|
-
/** The play bar's device groups, in menu order. */
|
|
350
|
-
type DeviceKind = 'phone' | 'tablet' | 'desktop' | 'flexible';
|
|
351
|
-
/** The mock frame a device draws around its viewport (KF-E8T0AY). */
|
|
352
|
-
type DeviceFrame = 'home-button' | 'dynamic-island' | 'punch-hole' | 'tablet' | 'laptop' | 'monitor' | 'none';
|
|
353
|
-
/** A device play mode can emulate. Sizes are CSS pixels, in portrait. */
|
|
354
|
-
interface DevicePreset {
|
|
355
|
-
/** Stable id, remembered per browser. */
|
|
356
|
-
readonly id: string;
|
|
357
|
-
/** The device menu's label. */
|
|
358
|
-
readonly label: string;
|
|
359
|
-
readonly kind: DeviceKind;
|
|
360
|
-
readonly width: number;
|
|
361
|
-
readonly height: number;
|
|
362
|
-
/**
|
|
363
|
-
* The insets an installed (standalone) web app gets, per orientation.
|
|
364
|
-
* Omitted: none (a desktop).
|
|
365
|
-
*/
|
|
366
|
-
readonly safeArea?: {
|
|
367
|
-
readonly portrait: DeviceInsets;
|
|
368
|
-
readonly landscape: DeviceInsets;
|
|
369
|
-
};
|
|
370
|
-
/**
|
|
371
|
-
* What a browser tab's own chrome takes from the device, per orientation.
|
|
372
|
-
* Omitted: the safe areas, since a page without `viewport-fit=cover` is
|
|
373
|
-
* laid out inside them.
|
|
374
|
-
*/
|
|
375
|
-
readonly browserChrome?: {
|
|
376
|
-
readonly portrait: DeviceInsets;
|
|
377
|
-
readonly landscape: DeviceInsets;
|
|
378
|
-
};
|
|
379
|
-
readonly frame: DeviceFrame;
|
|
380
|
-
}
|
|
381
|
-
/** A host's presets: added to (or, by id, replacing) the shipped ones, or a function of them. */
|
|
382
|
-
type DevicePresetsOption = readonly DevicePreset[] | ((shipped: readonly DevicePreset[]) => readonly DevicePreset[]);
|
|
383
|
-
/** The devices play mode ships with (docs/26-ui-editor.md §11.2). */
|
|
384
|
-
declare const SHIPPED_DEVICE_PRESETS: readonly DevicePreset[];
|
|
385
|
-
|
|
386
|
-
declare const WORKBENCH_ID = "kerf-ui-editor";
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* A new document (KF-PK3GVY): Kerf UI's catalog and no root yet; the first
|
|
390
|
-
* component the author chooses becomes the root.
|
|
391
|
-
*/
|
|
392
|
-
declare function emptyDocument(): ViewDocument;
|
|
393
|
-
|
|
394
|
-
interface EditorOptions {
|
|
395
|
-
/** The document to start with; the default is an empty Pane. */
|
|
396
|
-
readonly document?: ViewDocument;
|
|
397
|
-
/** Saves a file; the default downloads it through a temporary link. */
|
|
398
|
-
readonly save?: (fileName: string, text: string) => void;
|
|
399
|
-
/**
|
|
400
|
-
* Where documents live (KF-0SY9M6: autosave). With it, every change saves
|
|
401
|
-
* itself, to a draft until Save as chooses a path, and the editor reopens
|
|
402
|
-
* the last document; `devServerStorage()` uses the host's dev server.
|
|
403
|
-
*/
|
|
404
|
-
readonly storage?: EditorStorage;
|
|
405
|
-
/** Owning-project TypeScript service; devServerStorage provides the default. */
|
|
406
|
-
readonly typeService?: ProjectTypeService;
|
|
407
|
-
/**
|
|
408
|
-
* The components the editor can place and preview: Kerf UI's catalogs and
|
|
409
|
-
* functions, plus an application's (`createEditorCatalog`).
|
|
410
|
-
*/
|
|
411
|
-
readonly catalog: EditorCatalog;
|
|
412
|
-
/** Library-only previews; complete entries override the catalog registrations. */
|
|
413
|
-
readonly libraryPreviews?: LibraryPreviews;
|
|
414
|
-
/**
|
|
415
|
-
* Editors for named types (KF-EXA2WH: field editor API), such as a
|
|
416
|
-
* catalog's `'ListConfig'` or an application's `'InvoiceFilter'`: each
|
|
417
|
-
* replaces the type-driven form wherever a prop or field has that type.
|
|
418
|
-
*/
|
|
419
|
-
readonly fieldEditors?: FieldEditors;
|
|
420
|
-
/**
|
|
421
|
-
* KF-R7KXSN: play mode's devices. An array adds to the shipped presets
|
|
422
|
-
* (replacing one with the same id); a function returns the whole list.
|
|
423
|
-
*/
|
|
424
|
-
readonly devicePresets?: DevicePresetsOption;
|
|
425
|
-
/**
|
|
426
|
-
* KF-RF6RCS: play mode's mock action handlers, by action name. They run
|
|
427
|
-
* inside the play frame when the view fires that action.
|
|
428
|
-
*/
|
|
429
|
-
readonly playHandlers?: PlayHandlers;
|
|
430
|
-
}
|
|
431
|
-
declare function createEditor(options: EditorOptions): {
|
|
432
|
-
selection: kerfjs.Signal<Selection>;
|
|
433
|
-
loadError: kerfjs.Signal<string | null>;
|
|
434
|
-
render: () => SafeHtml;
|
|
435
|
-
wire: (root: HTMLElement) => () => void;
|
|
436
|
-
document: kerfjs.Signal<ViewDocument>;
|
|
437
|
-
views: kerfjs.Signal<Readonly<Record<string, ViewDocument>>>;
|
|
438
|
-
copies: kerfjs.Signal<Readonly<Record<string, ViewDocument>>>;
|
|
439
|
-
} | {
|
|
440
|
-
render: () => SafeHtml;
|
|
441
|
-
wire: (root: HTMLElement) => () => void;
|
|
442
|
-
document: kerfjs.Signal<ViewDocument>;
|
|
443
|
-
selection: kerfjs.Signal<Selection>;
|
|
444
|
-
loadError: kerfjs.Signal<string | null>;
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
export { type ActionLogEntry, type ActionOutcome, type CatalogEntry, type ComponentFunction, type DeviceFrame, type DeviceInsets, type DeviceKind, type DevicePreset, type DevicePresetsOption, EDITOR_FILE_API, EDITOR_LIST_API, type EditorCatalog, type EditorCatalogInputs, type EditorOptions, type EditorStorage, type FieldEditor, type FieldEditorAttributes, type FieldEditorContext, type FieldEditorControlKind, type FieldEditors, type LibraryPreview, type LibraryPreviewContext, type LibraryPreviewJson, type LibraryPreviews, type LibraryPreviewsFor, type PaletteGroup, type PlayActionContext, type PlayHandler, type PlayHandlers, type PlayNavStack, type PlayView, type ProjectTypeRequest, type ProjectTypeResult, type ProjectTypeService, type PropsComponent, SHIPPED_DEVICE_PRESETS, type Selection, type SerializableLibraryPreview, type SerializableLibraryPreviews, type TypeSuggestion, WORKBENCH_ID, componentMap, createEditor, createEditorCatalog, defineLibraryPreviews, devServerStorage, devServerTypeService, emptyDocument };
|