@kerfjs/ui 5.0.0-beta.131 → 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.
Files changed (449) hide show
  1. package/README.md +0 -13
  2. package/ai/application-ui-profile-sync.cjs +5 -14
  3. package/ai/application-ui-profile.d.ts +0 -2
  4. package/ai/application-ui-profile.defaults.json +0 -4
  5. package/ai/application-ui-profile.mjs +5 -14
  6. package/ai/application-ui-profile.schema.json +0 -4
  7. package/ai/component-catalog.json +9 -7
  8. package/ai/component-composition-rules.json +2 -10
  9. package/ai/component-composition.d.ts +0 -17
  10. package/ai/component-composition.json +3 -11
  11. package/ai/component-composition.schema.json +0 -59
  12. package/ai/components/disclosure.md +2 -0
  13. package/ai/components/form.md +1 -2
  14. package/ai/components/tab-panel.md +0 -1
  15. package/ai/components/toolbar-control-group.md +2 -2
  16. package/ai/public-api-signatures-v1.md +170 -197
  17. package/ai/skill.md +3 -20
  18. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  19. package/dist/backdrop-image.d.ts +1 -1
  20. package/dist/backdrop-image.js +1 -1
  21. package/dist/badge.js +1 -1
  22. package/dist/button.js +1 -1
  23. package/dist/catalog-resources.d.ts +2 -2
  24. package/dist/catalog.d.ts +2 -2
  25. package/dist/catalog.js +16 -16
  26. package/dist/checkbox-group.js +1 -1
  27. package/dist/checkbox.js +1 -1
  28. package/dist/chip.js +1 -1
  29. package/dist/choice-chips.d.ts +3 -3
  30. package/dist/choice-chips.js +1 -1
  31. package/dist/{chunk-Q5BPZPCO.js → chunk-22T7FFCL.js} +2 -2
  32. package/dist/{chunk-Q5BPZPCO.js.map → chunk-22T7FFCL.js.map} +1 -1
  33. package/dist/{chunk-BCHK33XL.js → chunk-27NEAPV7.js} +2 -2
  34. package/dist/{chunk-BCHK33XL.js.map → chunk-27NEAPV7.js.map} +1 -1
  35. package/dist/{chunk-76BLSFEA.js → chunk-2OYMXGW2.js} +6 -5
  36. package/dist/chunk-2OYMXGW2.js.map +1 -0
  37. package/dist/{chunk-EHR7R7YP.js → chunk-3DPHCZQB.js} +2 -2
  38. package/dist/{chunk-EHR7R7YP.js.map → chunk-3DPHCZQB.js.map} +1 -1
  39. package/dist/{chunk-RPJOLDSR.js → chunk-3UIZ36BP.js} +3 -3
  40. package/dist/{chunk-RPJOLDSR.js.map → chunk-3UIZ36BP.js.map} +1 -1
  41. package/dist/{chunk-QZA75NOK.js → chunk-42NLFCIN.js} +6 -6
  42. package/dist/{chunk-QZA75NOK.js.map → chunk-42NLFCIN.js.map} +1 -1
  43. package/dist/{chunk-UPHPFKAD.js → chunk-4GGIML4E.js} +2 -2
  44. package/dist/{chunk-UPHPFKAD.js.map → chunk-4GGIML4E.js.map} +1 -1
  45. package/dist/{chunk-LET362AM.js → chunk-4YXKDS6I.js} +2 -2
  46. package/dist/{chunk-LET362AM.js.map → chunk-4YXKDS6I.js.map} +1 -1
  47. package/dist/{chunk-5KWXM5O7.js → chunk-5C34PAUY.js} +2 -2
  48. package/dist/{chunk-5KWXM5O7.js.map → chunk-5C34PAUY.js.map} +1 -1
  49. package/dist/{chunk-S7QB5KMM.js → chunk-5L3MLWD5.js} +19 -55
  50. package/dist/chunk-5L3MLWD5.js.map +1 -0
  51. package/dist/{chunk-6PHG2DMG.js → chunk-6OH734CG.js} +2 -2
  52. package/dist/{chunk-6PHG2DMG.js.map → chunk-6OH734CG.js.map} +1 -1
  53. package/dist/{chunk-E7ZRBMVQ.js → chunk-7XIY7G4K.js} +3 -3
  54. package/dist/{chunk-E7ZRBMVQ.js.map → chunk-7XIY7G4K.js.map} +1 -1
  55. package/dist/{chunk-OKZTLRGG.js → chunk-B5Q3KE4Z.js} +2 -2
  56. package/dist/{chunk-OKZTLRGG.js.map → chunk-B5Q3KE4Z.js.map} +1 -1
  57. package/dist/{chunk-SGYBIKQA.js → chunk-BADEZQ3V.js} +4 -4
  58. package/dist/chunk-BADEZQ3V.js.map +1 -0
  59. package/dist/{chunk-CJAKN2KZ.js → chunk-BLBMUD2W.js} +2 -2
  60. package/dist/{chunk-CJAKN2KZ.js.map → chunk-BLBMUD2W.js.map} +1 -1
  61. package/dist/{chunk-TRJS7M2H.js → chunk-BNRH7XG5.js} +2 -2
  62. package/dist/{chunk-TRJS7M2H.js.map → chunk-BNRH7XG5.js.map} +1 -1
  63. package/dist/{chunk-NA4LKVPX.js → chunk-BNXJQB2Y.js} +2 -2
  64. package/dist/{chunk-NA4LKVPX.js.map → chunk-BNXJQB2Y.js.map} +1 -1
  65. package/dist/{chunk-CCPWJDRW.js → chunk-BQHGXQVA.js} +2 -2
  66. package/dist/{chunk-CCPWJDRW.js.map → chunk-BQHGXQVA.js.map} +1 -1
  67. package/dist/{chunk-COQI4OMZ.js → chunk-BRDTP3RT.js} +1 -1
  68. package/dist/chunk-BRDTP3RT.js.map +1 -0
  69. package/dist/{chunk-RGB4DPMN.js → chunk-DGYGRMES.js} +3 -3
  70. package/dist/chunk-DGYGRMES.js.map +1 -0
  71. package/dist/{chunk-V3IXAI4L.js → chunk-DNNHT7RB.js} +2 -2
  72. package/dist/{chunk-V3IXAI4L.js.map → chunk-DNNHT7RB.js.map} +1 -1
  73. package/dist/{chunk-UU37OR3D.js → chunk-DT7KOBQJ.js} +1 -1
  74. package/dist/chunk-DT7KOBQJ.js.map +1 -0
  75. package/dist/{chunk-CUUW57WB.js → chunk-DUKE3PLH.js} +2 -2
  76. package/dist/chunk-DUKE3PLH.js.map +1 -0
  77. package/dist/{chunk-IPYQYLSX.js → chunk-EWCTBJ5O.js} +6 -6
  78. package/dist/{chunk-IPYQYLSX.js.map → chunk-EWCTBJ5O.js.map} +1 -1
  79. package/dist/{chunk-4OH6JSGU.js → chunk-F25UMYDX.js} +2 -2
  80. package/dist/{chunk-4OH6JSGU.js.map → chunk-F25UMYDX.js.map} +1 -1
  81. package/dist/{chunk-C4FBYP2D.js → chunk-FJAAOIMP.js} +2 -2
  82. package/dist/{chunk-C4FBYP2D.js.map → chunk-FJAAOIMP.js.map} +1 -1
  83. package/dist/{chunk-RHMY45DK.js → chunk-H2XGWH4V.js} +5 -5
  84. package/dist/{chunk-RHMY45DK.js.map → chunk-H2XGWH4V.js.map} +1 -1
  85. package/dist/{chunk-76VCWWUA.js → chunk-HSMSTCNZ.js} +2 -2
  86. package/dist/{chunk-76VCWWUA.js.map → chunk-HSMSTCNZ.js.map} +1 -1
  87. package/dist/{chunk-ECVTRAXN.js → chunk-IQOO3ZQK.js} +2 -2
  88. package/dist/{chunk-ECVTRAXN.js.map → chunk-IQOO3ZQK.js.map} +1 -1
  89. package/dist/{chunk-DBP3N6E5.js → chunk-JBL6SCNN.js} +3 -3
  90. package/dist/{chunk-DBP3N6E5.js.map → chunk-JBL6SCNN.js.map} +1 -1
  91. package/dist/{chunk-7KN5OQVN.js → chunk-JNQBPRAA.js} +2 -2
  92. package/dist/{chunk-7KN5OQVN.js.map → chunk-JNQBPRAA.js.map} +1 -1
  93. package/dist/{chunk-CPTQABDQ.js → chunk-JNSPYECP.js} +2 -2
  94. package/dist/{chunk-CPTQABDQ.js.map → chunk-JNSPYECP.js.map} +1 -1
  95. package/dist/{chunk-E7Q6UNCB.js → chunk-KBDYXGYT.js} +2 -2
  96. package/dist/{chunk-E7Q6UNCB.js.map → chunk-KBDYXGYT.js.map} +1 -1
  97. package/dist/{chunk-WVQDIOD7.js → chunk-KKMZP3YL.js} +2 -2
  98. package/dist/{chunk-WVQDIOD7.js.map → chunk-KKMZP3YL.js.map} +1 -1
  99. package/dist/{chunk-WSPXSWFG.js → chunk-KZEHTRPC.js} +3 -3
  100. package/dist/chunk-KZEHTRPC.js.map +1 -0
  101. package/dist/{chunk-KACJOE2N.js → chunk-LH5V6XGH.js} +2 -2
  102. package/dist/{chunk-KACJOE2N.js.map → chunk-LH5V6XGH.js.map} +1 -1
  103. package/dist/{chunk-VBXKYT4O.js → chunk-LH7YRRY7.js} +2 -2
  104. package/dist/{chunk-VBXKYT4O.js.map → chunk-LH7YRRY7.js.map} +1 -1
  105. package/dist/{chunk-QXXLDY6I.js → chunk-LI7AQ5NQ.js} +4 -4
  106. package/dist/{chunk-QXXLDY6I.js.map → chunk-LI7AQ5NQ.js.map} +1 -1
  107. package/dist/{chunk-CAB5IWV7.js → chunk-LSFPZR52.js} +4 -4
  108. package/dist/{chunk-CAB5IWV7.js.map → chunk-LSFPZR52.js.map} +1 -1
  109. package/dist/{chunk-CRHKWHTA.js → chunk-LUWZ7UZQ.js} +4 -4
  110. package/dist/{chunk-CRHKWHTA.js.map → chunk-LUWZ7UZQ.js.map} +1 -1
  111. package/dist/{chunk-CMG4OZPV.js → chunk-LWWIBUDK.js} +2 -2
  112. package/dist/{chunk-CMG4OZPV.js.map → chunk-LWWIBUDK.js.map} +1 -1
  113. package/dist/{chunk-LOW7J7SE.js → chunk-MHF2NK7F.js} +4 -4
  114. package/dist/{chunk-LOW7J7SE.js.map → chunk-MHF2NK7F.js.map} +1 -1
  115. package/dist/{chunk-JHUEYWWI.js → chunk-MPM6YBOM.js} +2 -2
  116. package/dist/{chunk-JHUEYWWI.js.map → chunk-MPM6YBOM.js.map} +1 -1
  117. package/dist/{chunk-3UEMBHBK.js → chunk-MPT6Y7Z2.js} +2 -2
  118. package/dist/{chunk-3UEMBHBK.js.map → chunk-MPT6Y7Z2.js.map} +1 -1
  119. package/dist/{chunk-OZKBIPXU.js → chunk-NO2XO7S6.js} +3 -3
  120. package/dist/{chunk-OZKBIPXU.js.map → chunk-NO2XO7S6.js.map} +1 -1
  121. package/dist/{chunk-FQETQ7CM.js → chunk-NSNQWDJ4.js} +2 -2
  122. package/dist/{chunk-FQETQ7CM.js.map → chunk-NSNQWDJ4.js.map} +1 -1
  123. package/dist/{chunk-UOBC36FL.js → chunk-OW2ODKHN.js} +2 -2
  124. package/dist/{chunk-UOBC36FL.js.map → chunk-OW2ODKHN.js.map} +1 -1
  125. package/dist/{chunk-PVKAIVKE.js → chunk-P427MACE.js} +63 -74
  126. package/dist/chunk-P427MACE.js.map +1 -0
  127. package/dist/{chunk-FR5G77K5.js → chunk-PJKH2GZ3.js} +2 -2
  128. package/dist/{chunk-FR5G77K5.js.map → chunk-PJKH2GZ3.js.map} +1 -1
  129. package/dist/{chunk-FNJA4S6J.js → chunk-QNA27ABY.js} +3 -3
  130. package/dist/{chunk-FNJA4S6J.js.map → chunk-QNA27ABY.js.map} +1 -1
  131. package/dist/{chunk-6BXPN5SC.js → chunk-RO3TSZ5W.js} +3 -3
  132. package/dist/{chunk-6BXPN5SC.js.map → chunk-RO3TSZ5W.js.map} +1 -1
  133. package/dist/{chunk-4IXG6XCT.js → chunk-RUCUU7Z7.js} +2 -2
  134. package/dist/{chunk-4IXG6XCT.js.map → chunk-RUCUU7Z7.js.map} +1 -1
  135. package/dist/{chunk-2FA3SX57.js → chunk-RYBJ7OZB.js} +4 -4
  136. package/dist/{chunk-2FA3SX57.js.map → chunk-RYBJ7OZB.js.map} +1 -1
  137. package/dist/{chunk-QSJAIXLM.js → chunk-SDQZYSCA.js} +3 -3
  138. package/dist/{chunk-QSJAIXLM.js.map → chunk-SDQZYSCA.js.map} +1 -1
  139. package/dist/{chunk-3XSY5LAB.js → chunk-SXZTDJMG.js} +4 -4
  140. package/dist/{chunk-3XSY5LAB.js.map → chunk-SXZTDJMG.js.map} +1 -1
  141. package/dist/{chunk-LJV2FNOC.js → chunk-T7M5FKCE.js} +3 -3
  142. package/dist/{chunk-LJV2FNOC.js.map → chunk-T7M5FKCE.js.map} +1 -1
  143. package/dist/{chunk-KS7EXW4P.js → chunk-TIRBSPP2.js} +2 -2
  144. package/dist/{chunk-KS7EXW4P.js.map → chunk-TIRBSPP2.js.map} +1 -1
  145. package/dist/{chunk-XO5IOPM5.js → chunk-TNJGPG6R.js} +8 -8
  146. package/dist/{chunk-XO5IOPM5.js.map → chunk-TNJGPG6R.js.map} +1 -1
  147. package/dist/{chunk-2GEGIPDR.js → chunk-U5SQOZNK.js} +4 -4
  148. package/dist/{chunk-2GEGIPDR.js.map → chunk-U5SQOZNK.js.map} +1 -1
  149. package/dist/{chunk-Y4VR6VNM.js → chunk-UPOS666Q.js} +2 -2
  150. package/dist/{chunk-Y4VR6VNM.js.map → chunk-UPOS666Q.js.map} +1 -1
  151. package/dist/{chunk-YE6KCAIN.js → chunk-USSGJ3MD.js} +2 -2
  152. package/dist/{chunk-YE6KCAIN.js.map → chunk-USSGJ3MD.js.map} +1 -1
  153. package/dist/{chunk-4UWLHKNU.js → chunk-UWLJ7UEK.js} +3 -3
  154. package/dist/{chunk-4UWLHKNU.js.map → chunk-UWLJ7UEK.js.map} +1 -1
  155. package/dist/{chunk-SNUDT6AX.js → chunk-VHAYQGWR.js} +2 -2
  156. package/dist/{chunk-SNUDT6AX.js.map → chunk-VHAYQGWR.js.map} +1 -1
  157. package/dist/{chunk-DV6GE57V.js → chunk-VWGRAE2Q.js} +2 -2
  158. package/dist/chunk-VWGRAE2Q.js.map +1 -0
  159. package/dist/{chunk-4L5ZIKDZ.js → chunk-W7J3MQNV.js} +2 -2
  160. package/dist/{chunk-4L5ZIKDZ.js.map → chunk-W7J3MQNV.js.map} +1 -1
  161. package/dist/{chunk-MVWR5WRX.js → chunk-WWDDKUDW.js} +3 -3
  162. package/dist/{chunk-MVWR5WRX.js.map → chunk-WWDDKUDW.js.map} +1 -1
  163. package/dist/{chunk-WEQNPYVA.js → chunk-XXKRHKFH.js} +2 -2
  164. package/dist/{chunk-WEQNPYVA.js.map → chunk-XXKRHKFH.js.map} +1 -1
  165. package/dist/{chunk-OQFWF7Q7.js → chunk-XZ253TGP.js} +3 -3
  166. package/dist/{chunk-OQFWF7Q7.js.map → chunk-XZ253TGP.js.map} +1 -1
  167. package/dist/{chunk-3TBMGGTA.js → chunk-Y672Z7QY.js} +2 -2
  168. package/dist/{chunk-3TBMGGTA.js.map → chunk-Y672Z7QY.js.map} +1 -1
  169. package/dist/{chunk-MMOQR426.js → chunk-YS3H6DEQ.js} +2 -2
  170. package/dist/{chunk-MMOQR426.js.map → chunk-YS3H6DEQ.js.map} +1 -1
  171. package/dist/{chunk-QR7MGGOM.js → chunk-YVGHWCMY.js} +3 -3
  172. package/dist/{chunk-QR7MGGOM.js.map → chunk-YVGHWCMY.js.map} +1 -1
  173. package/dist/{chunk-4CYCJ3NY.js → chunk-Z4PGAYO7.js} +10 -10
  174. package/dist/{chunk-4CYCJ3NY.js.map → chunk-Z4PGAYO7.js.map} +1 -1
  175. package/dist/{chunk-JAC6AVZN.js → chunk-ZIZXXYXM.js} +3 -3
  176. package/dist/{chunk-JAC6AVZN.js.map → chunk-ZIZXXYXM.js.map} +1 -1
  177. package/dist/collapsible-panel.d.ts +5 -5
  178. package/dist/collapsible-panel.js +4 -4
  179. package/dist/collapsible-panel.js.map +1 -1
  180. package/dist/color-field.js +2 -2
  181. package/dist/color-picker.js +1 -1
  182. package/dist/color-swatches.js +1 -1
  183. package/dist/column-explorer.d.ts +2 -2
  184. package/dist/column-explorer.js +166 -21
  185. package/dist/column-explorer.js.map +1 -1
  186. package/dist/column-track.d.ts +1 -1
  187. package/dist/column-track.js +1 -1
  188. package/dist/combobox.d.ts +3 -3
  189. package/dist/combobox.js +1 -1
  190. package/dist/content-item.d.ts +1 -1
  191. package/dist/content-item.js +1 -1
  192. package/dist/content-swap.d.ts +3 -3
  193. package/dist/content-swap.js +1 -1
  194. package/dist/corner-status.d.ts +3 -3
  195. package/dist/corner-status.js +1 -1
  196. package/dist/device-class.js +101 -1
  197. package/dist/device-class.js.map +1 -1
  198. package/dist/disclosure-arrow.d.ts +3 -3
  199. package/dist/disclosure-arrow.js +1 -1
  200. package/dist/disclosure.d.ts +14 -2
  201. package/dist/disclosure.js +13 -4
  202. package/dist/disclosure.js.map +1 -1
  203. package/dist/edge-activity-indicator.d.ts +3 -3
  204. package/dist/edge-activity-indicator.js +1 -1
  205. package/dist/empty-state.d.ts +3 -3
  206. package/dist/empty-state.js +1 -1
  207. package/dist/{extension-attributes-IJ4decoa.d.ts → extension-attributes-CnqvBmj3.d.ts} +1 -1
  208. package/dist/file-picker.d.ts +3 -3
  209. package/dist/file-picker.js +1 -1
  210. package/dist/floating-toolbar.d.ts +3 -3
  211. package/dist/floating-toolbar.js +1 -1
  212. package/dist/form.d.ts +3 -3
  213. package/dist/form.js +1 -1
  214. package/dist/framed-list.js +1 -1
  215. package/dist/gauge.js +1 -1
  216. package/dist/grid.js +1 -1
  217. package/dist/index.d.ts +2 -2
  218. package/dist/index.js +68 -68
  219. package/dist/list-action-row.js +1 -1
  220. package/dist/list-detail-dialog.d.ts +3 -3
  221. package/dist/list-detail-dialog.js +7 -7
  222. package/dist/list-detail-dialog.js.map +1 -1
  223. package/dist/list-header.d.ts +1 -1
  224. package/dist/list-header.js +1 -1
  225. package/dist/list-inset-control.d.ts +3 -3
  226. package/dist/list-inset-control.js +1 -1
  227. package/dist/list-inset-text.js +1 -1
  228. package/dist/list-item.js +1 -1
  229. package/dist/list.d.ts +1 -1
  230. package/dist/list.js +1 -1
  231. package/dist/loading-spinner.d.ts +3 -3
  232. package/dist/loading-spinner.js +1 -1
  233. package/dist/lucide-icon.d.ts +3 -3
  234. package/dist/lucide-icon.js +1 -1
  235. package/dist/message-composer.js +1 -1
  236. package/dist/{nav-stack-DKrvqFjA.d.ts → nav-stack-IKSMxo2A.d.ts} +3 -3
  237. package/dist/nav-stack.d.ts +2 -2
  238. package/dist/nav-stack.js +1 -1
  239. package/dist/paged-view.d.ts +3 -3
  240. package/dist/paged-view.js +1 -1
  241. package/dist/paged-view.js.map +1 -1
  242. package/dist/pane.js +1 -1
  243. package/dist/popup-menu-register.js +1 -1
  244. package/dist/popup-menu.d.ts +1 -20
  245. package/dist/popup-menu.js +1 -1
  246. package/dist/progress-bar.js +1 -1
  247. package/dist/progress-ring.js +1 -1
  248. package/dist/radio-group.js +1 -1
  249. package/dist/resizable-region.d.ts +3 -3
  250. package/dist/resizable-region.js +1 -1
  251. package/dist/row.d.ts +1 -1
  252. package/dist/row.js +1 -1
  253. package/dist/scroll-effect.d.ts +1 -1
  254. package/dist/scroll-effect.js +1 -1
  255. package/dist/{search-field-7wLt3Bd5.d.ts → search-field-BA48RaJY.d.ts} +3 -3
  256. package/dist/search-field-model.d.ts +2 -2
  257. package/dist/search-field.d.ts +2 -2
  258. package/dist/search-field.js +1 -1
  259. package/dist/segmented-control.d.ts +3 -3
  260. package/dist/segmented-control.js +1 -1
  261. package/dist/select-register.js +2 -2
  262. package/dist/select-register.js.map +1 -1
  263. package/dist/select.d.ts +3 -13
  264. package/dist/select.js +1 -1
  265. package/dist/sized-region.d.ts +3 -3
  266. package/dist/sized-region.js +1 -1
  267. package/dist/skeleton.d.ts +3 -3
  268. package/dist/skeleton.js +1 -1
  269. package/dist/slider.js +1 -1
  270. package/dist/spacer.d.ts +3 -3
  271. package/dist/spacer.js +1 -1
  272. package/dist/split-button.js +1 -1
  273. package/dist/split-view.d.ts +4 -4
  274. package/dist/split-view.js +1 -1
  275. package/dist/state-banner.js +1 -1
  276. package/dist/styles/components/actions/popup-menu/popup-menu.css +0 -124
  277. package/dist/styles/components/actions/toolbar/toolbar.css +0 -7
  278. package/dist/styles/components/forms/select/select.css +0 -60
  279. package/dist/styles/components/forms/text-field/text-field.css +1 -1
  280. package/dist/styles/components/surfaces/disclosure/disclosure.css +24 -4
  281. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +1 -1
  282. package/dist/styles/disclosure.css +24 -4
  283. package/dist/styles/popup-menu.css +0 -124
  284. package/dist/styles/select.css +0 -60
  285. package/dist/styles/surface-scaffold.css +1 -1
  286. package/dist/styles/text-field.css +1 -1
  287. package/dist/styles/toolbar.css +0 -7
  288. package/dist/styles/webawesome.css +7 -0
  289. package/dist/summary-row.js +1 -1
  290. package/dist/sunken-panel.d.ts +3 -3
  291. package/dist/sunken-panel.js +1 -1
  292. package/dist/surface-scaffold.d.ts +9 -5
  293. package/dist/surface-scaffold.js +1 -1
  294. package/dist/switch.js +1 -1
  295. package/dist/tab-bar-item.js +1 -1
  296. package/dist/tab-bar.d.ts +3 -3
  297. package/dist/tab-bar.js +1 -1
  298. package/dist/tab-navigator.d.ts +3 -3
  299. package/dist/tab-navigator.js +2 -2
  300. package/dist/tab-navigator.js.map +1 -1
  301. package/dist/tab-panel.d.ts +3 -3
  302. package/dist/tab-panel.js +1 -1
  303. package/dist/tag-field.d.ts +3 -3
  304. package/dist/tag-field.js +1 -1
  305. package/dist/text-field.d.ts +2 -2
  306. package/dist/text-field.js +1 -1
  307. package/dist/text.d.ts +1 -1
  308. package/dist/text.js +1 -1
  309. package/dist/toolbar-control-group.d.ts +7 -7
  310. package/dist/toolbar-control-group.js +1 -1
  311. package/dist/toolbar-text.d.ts +3 -3
  312. package/dist/toolbar-text.js +1 -1
  313. package/dist/toolbar.d.ts +3 -3
  314. package/dist/toolbar.js +1 -1
  315. package/dist/tree-list.d.ts +3 -3
  316. package/dist/tree-list.js +151 -3
  317. package/dist/tree-list.js.map +1 -1
  318. package/dist/{tree-rows-Bms5QJvG.d.ts → tree-rows-BXChApji.d.ts} +1 -1
  319. package/dist/value-preview.d.ts +3 -3
  320. package/dist/value-preview.js +1 -1
  321. package/dist/value-table.d.ts +5 -5
  322. package/dist/value-table.js +1 -1
  323. package/dist/wire-catalog.d.ts +2 -2
  324. package/dist/wire-catalog.js +2 -2
  325. package/dist/wire-color-fields.js +73 -2
  326. package/dist/wire-color-fields.js.map +1 -1
  327. package/dist/wire-color-pickers.js +1 -1
  328. package/dist/wire-column-explorer.js +92 -1
  329. package/dist/wire-column-explorer.js.map +1 -1
  330. package/dist/wire-content-items.js +204 -1
  331. package/dist/wire-content-items.js.map +1 -1
  332. package/dist/wire-nav-stack.js +423 -1
  333. package/dist/wire-nav-stack.js.map +1 -1
  334. package/dist/wire-resizable-regions.js +1 -1
  335. package/dist/wire-search-fields.d.ts +2 -2
  336. package/dist/wire-search-fields.js +1 -1
  337. package/dist/wire-sidebar.js +228 -1
  338. package/dist/wire-sidebar.js.map +1 -1
  339. package/dist/wire-sliders.js +29 -1
  340. package/dist/wire-sliders.js.map +1 -1
  341. package/dist/wire-tab-bars.d.ts +1 -1
  342. package/dist/wire-tab-navigator.js +150 -1
  343. package/dist/wire-tab-navigator.js.map +1 -1
  344. package/dist/wire-tag-fields.js +252 -2
  345. package/dist/wire-tag-fields.js.map +1 -1
  346. package/dist/wire-tree-list.js +186 -1
  347. package/dist/wire-tree-list.js.map +1 -1
  348. package/dist/wire-workbench.js +1 -1
  349. package/dist/workbench-dialog.d.ts +3 -3
  350. package/dist/workbench-dialog.js +5 -5
  351. package/dist/workbench-dialog.js.map +1 -1
  352. package/dist/workbench.d.ts +4 -4
  353. package/dist/workbench.js +1 -1
  354. package/docs/accessibility.md +1 -1
  355. package/docs/component-contract.md +4 -3
  356. package/docs/component-selection.md +1 -1
  357. package/docs/disclosure.md +22 -0
  358. package/docs/list-detail-dialog.md +2 -3
  359. package/docs/scroll-effect.md +2 -2
  360. package/docs/surface-scaffold.md +5 -6
  361. package/docs/workbench-dialog.md +2 -3
  362. package/llms.txt +3 -44
  363. package/package.json +3 -33
  364. package/ux-demo/recipes/app-shell.tsx +141 -48
  365. package/ux-demo/recipes/collapsible-sidebar.tsx +169 -43
  366. package/ux-demo/recipes/compact-toolbar.tsx +114 -22
  367. package/ux-demo/recipes/composer-form.tsx +104 -14
  368. package/ux-demo/recipes/list-detail-dialog.tsx +84 -38
  369. package/ux-demo/recipes/list-workspace-states.tsx +152 -29
  370. package/ux-demo/recipes/loading-inspector.tsx +174 -30
  371. package/ux-demo/recipes/media-detail.tsx +146 -29
  372. package/ux-demo/recipes/navigation-sidebar.tsx +113 -24
  373. package/ux-demo/recipes/navigation-stack.tsx +43 -7
  374. package/ux-demo/recipes/workspace-header.tsx +66 -2
  375. package/ai/component-props-overlay.json +0 -8910
  376. package/ai/component-props-overlay.schema.json +0 -82
  377. package/ai/component-props.json +0 -34289
  378. package/ai/component-props.schema.json +0 -408
  379. package/ai/view-document.schema.json +0 -467
  380. package/dist/browser/editor.js +0 -50
  381. package/dist/chunk-3K5V3ZSD.js +0 -77
  382. package/dist/chunk-3K5V3ZSD.js.map +0 -1
  383. package/dist/chunk-63TJH2RF.js +0 -231
  384. package/dist/chunk-63TJH2RF.js.map +0 -1
  385. package/dist/chunk-6V6UHPJD.js +0 -153
  386. package/dist/chunk-6V6UHPJD.js.map +0 -1
  387. package/dist/chunk-76BLSFEA.js.map +0 -1
  388. package/dist/chunk-COQI4OMZ.js.map +0 -1
  389. package/dist/chunk-CUUW57WB.js.map +0 -1
  390. package/dist/chunk-D2KHQNJ6.js +0 -155
  391. package/dist/chunk-D2KHQNJ6.js.map +0 -1
  392. package/dist/chunk-DV6GE57V.js.map +0 -1
  393. package/dist/chunk-FCO7BT4P.js +0 -256
  394. package/dist/chunk-FCO7BT4P.js.map +0 -1
  395. package/dist/chunk-GHV36C6I.js +0 -94
  396. package/dist/chunk-GHV36C6I.js.map +0 -1
  397. package/dist/chunk-HPOXLOVC.js +0 -184
  398. package/dist/chunk-HPOXLOVC.js.map +0 -1
  399. package/dist/chunk-I2K4OQKB.js +0 -426
  400. package/dist/chunk-I2K4OQKB.js.map +0 -1
  401. package/dist/chunk-PVKAIVKE.js.map +0 -1
  402. package/dist/chunk-RGB4DPMN.js.map +0 -1
  403. package/dist/chunk-S7QB5KMM.js.map +0 -1
  404. package/dist/chunk-SGYBIKQA.js.map +0 -1
  405. package/dist/chunk-TXBNPEIJ.js +0 -31
  406. package/dist/chunk-TXBNPEIJ.js.map +0 -1
  407. package/dist/chunk-UU37OR3D.js.map +0 -1
  408. package/dist/chunk-WCMGPAY2.js +0 -103
  409. package/dist/chunk-WCMGPAY2.js.map +0 -1
  410. package/dist/chunk-WSPXSWFG.js.map +0 -1
  411. package/dist/chunk-X43QQWVC.js +0 -208
  412. package/dist/chunk-X43QQWVC.js.map +0 -1
  413. package/dist/chunk-YA6OAJY6.js +0 -155
  414. package/dist/chunk-YA6OAJY6.js.map +0 -1
  415. package/dist/editor.d.ts +0 -447
  416. package/dist/editor.js +0 -15608
  417. package/dist/editor.js.map +0 -1
  418. package/dist/styles/editor/editor.css +0 -585
  419. package/dist/styles/editor.css +0 -4
  420. package/dist/view-runtime.d.ts +0 -9
  421. package/dist/view-runtime.js +0 -8
  422. package/dist/view-runtime.js.map +0 -1
  423. package/docs/editor-host.md +0 -397
  424. package/docs/view.md +0 -314
  425. package/props/cli.d.mts +0 -1
  426. package/props/cli.mjs +0 -142
  427. package/props/component-props.d.mts +0 -180
  428. package/props/component-props.mjs +0 -1208
  429. package/view/catalog.mjs +0 -229
  430. package/view/child-kind.mjs +0 -22
  431. package/view/cli.d.mts +0 -18
  432. package/view/cli.mjs +0 -316
  433. package/view/contract.mjs +0 -418
  434. package/view/css-grammar.mjs +0 -93
  435. package/view/generate.d.mts +0 -16
  436. package/view/generate.mjs +0 -739
  437. package/view/index.d.mts +0 -491
  438. package/view/index.mjs +0 -36
  439. package/view/interpret.mjs +0 -339
  440. package/view/project-types-worker.mjs +0 -55
  441. package/view/project-types.d.mts +0 -43
  442. package/view/project-types.mjs +0 -618
  443. package/view/type-expression.d.mts +0 -15
  444. package/view/type-expression.mjs +0 -162
  445. package/view/types.mjs +0 -165
  446. package/view/validate-move.mjs +0 -353
  447. package/view/validate.mjs +0 -1649
  448. package/vite-editor.d.mts +0 -173
  449. package/vite-editor.mjs +0 -548
@@ -1,155 +0,0 @@
1
- import { isExpandable } from './chunk-7U65KLDL.js';
2
- import { ColumnTrack } from './chunk-4OH6JSGU.js';
3
- import { ListItem } from './chunk-4UWLHKNU.js';
4
- import { ListHeader } from './chunk-QZA75NOK.js';
5
- import { List } from './chunk-WVQDIOD7.js';
6
- import { LucideIcon } from './chunk-CMG4OZPV.js';
7
- import { filterDataAttributes } from './chunk-COQI4OMZ.js';
8
- import { ChevronRight } from 'lucide';
9
- import { jsx, jsxs, Fragment } from 'kerfjs/jsx-runtime';
10
-
11
- // src/components/collections/column-explorer/model/columns.ts
12
- function explorerColumns(nodes, path) {
13
- const columns = [];
14
- let siblings = nodes;
15
- let parent;
16
- for (let level = 0; ; level += 1) {
17
- const chosen = siblings.find((node) => node.id === path[level]);
18
- columns.push({
19
- level,
20
- ...parent ? { parent } : {},
21
- nodes: siblings,
22
- ...chosen ? { chosen: chosen.id } : {}
23
- });
24
- if (!chosen || !isExpandable(chosen)) return columns;
25
- parent = chosen;
26
- siblings = chosen.children ?? [];
27
- }
28
- }
29
- function explorerChosen(nodes, path) {
30
- let siblings = nodes;
31
- let node;
32
- for (const id of path) {
33
- node = siblings.find((candidate) => candidate.id === id);
34
- if (!node) return void 0;
35
- siblings = node.children ?? [];
36
- }
37
- return node;
38
- }
39
- var COLUMN_EXPLORER_PROTECTED = /* @__PURE__ */ new Set([
40
- "data-component",
41
- "data-column-explorer-id"
42
- ]);
43
- var chevron = LucideIcon({ icon: ChevronRight, name: "chevron-right" });
44
- function ColumnExplorer({
45
- id,
46
- label,
47
- nodes,
48
- path,
49
- action,
50
- preview,
51
- layout,
52
- inset,
53
- minColumnWidth,
54
- peek,
55
- rootHeading,
56
- density = "default",
57
- className = "",
58
- rootAttributes = {},
59
- slot
60
- }) {
61
- const columns = explorerColumns(nodes, path);
62
- const chosen = explorerChosen(nodes, path);
63
- const showPreview = preview !== void 0 && chosen !== void 0 && !isExpandable(chosen);
64
- return /* @__PURE__ */ jsx(
65
- "div",
66
- {
67
- ...filterDataAttributes(rootAttributes, COLUMN_EXPLORER_PROTECTED),
68
- id,
69
- role: "region",
70
- class: `kui-column-explorer ${className}`.trim(),
71
- "aria-label": label,
72
- "data-component": "column-explorer",
73
- "data-column-explorer-id": id,
74
- slot,
75
- children: /* @__PURE__ */ jsxs(
76
- ColumnTrack,
77
- {
78
- layout,
79
- inset,
80
- minColumnWidth,
81
- peek,
82
- children: [
83
- columns.map((column) => {
84
- const stop = column.chosen ?? column.nodes[0]?.id;
85
- return /* @__PURE__ */ jsxs(
86
- List,
87
- {
88
- scrollable: true,
89
- fill: true,
90
- rootAttributes: {
91
- role: "group",
92
- "aria-label": column.parent ? String(column.parent.label) : label,
93
- "data-column-explorer-level": String(column.level)
94
- },
95
- children: [
96
- rootHeading !== void 0 ? /* @__PURE__ */ jsx(
97
- ListHeader,
98
- {
99
- label: column.parent ? String(column.parent.label) : rootHeading,
100
- size: "xs",
101
- density: "compact"
102
- }
103
- ) : null,
104
- column.nodes.map((node) => /* @__PURE__ */ jsx(
105
- ListItem,
106
- {
107
- action,
108
- itemId: node.id,
109
- label: node.label,
110
- description: node.description,
111
- icon: node.icon,
112
- trailing: isExpandable(node) ? /* @__PURE__ */ jsxs(Fragment, { children: [
113
- node.trailing,
114
- chevron
115
- ] }) : node.trailing,
116
- selected: node.id === column.chosen,
117
- disabled: node.disabled,
118
- draggable: node.draggable,
119
- density,
120
- tabIndex: node.id === stop ? 0 : -1,
121
- rootAttributes: {
122
- ...node.rootAttributes,
123
- "data-key": node.id,
124
- "data-column-explorer-level": String(column.level),
125
- "data-expandable": isExpandable(node) ? "true" : void 0
126
- }
127
- }
128
- ))
129
- ]
130
- }
131
- );
132
- }),
133
- showPreview ? /* @__PURE__ */ jsx(
134
- List,
135
- {
136
- scrollable: true,
137
- fill: true,
138
- rootAttributes: {
139
- role: "group",
140
- "aria-label": `${String(chosen.label)} preview`,
141
- "data-column-explorer-preview": "true"
142
- },
143
- children: preview
144
- }
145
- ) : null
146
- ]
147
- }
148
- )
149
- }
150
- );
151
- }
152
-
153
- export { ColumnExplorer, explorerChosen, explorerColumns };
154
-
155
- //# sourceMappingURL=chunk-YA6OAJY6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/collections/column-explorer/model/columns.ts","../src/components/collections/column-explorer/column-explorer.tsx"],"names":[],"mappings":"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","file":"chunk-YA6OAJY6.js","sourcesContent":["// KF-JY68DQ: the columns a column explorer shows for a chosen path through a\n// hierarchy. It walks the same TreeListNode model as TreeList, DOM-free.\nimport {\n isExpandable,\n type TreeListNode,\n} from '../../tree-list/model/tree-rows.js';\n\n/** One column: the children of the node chosen in the column before it. */\nexport interface ExplorerColumn {\n /** 0 for the top level. */\n readonly level: number;\n /** The node whose children this column lists, or undefined at the top. */\n readonly parent?: TreeListNode;\n readonly nodes: readonly TreeListNode[];\n /** The id chosen in this column, when the path reaches it. */\n readonly chosen?: string;\n}\n\n/**\n * The columns for `path` (ids from the top level down): the top level, then\n * the children of each chosen node that can expand. A path id that is not a\n * child of the column before it ends the walk there.\n */\nexport function explorerColumns(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): ExplorerColumn[] {\n const columns: ExplorerColumn[] = [];\n let siblings: readonly TreeListNode[] = nodes;\n let parent: TreeListNode | undefined;\n for (let level = 0; ; level += 1) {\n const chosen = siblings.find((node) => node.id === path[level]);\n columns.push({\n level,\n ...(parent ? { parent } : {}),\n nodes: siblings,\n ...(chosen ? { chosen: chosen.id } : {}),\n });\n if (!chosen || !isExpandable(chosen)) return columns;\n parent = chosen;\n siblings = chosen.children ?? [];\n }\n}\n\n/** The node at the end of `path`, when the whole path resolves. */\nexport function explorerChosen(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): TreeListNode | undefined {\n let siblings: readonly TreeListNode[] = nodes;\n let node: TreeListNode | undefined;\n for (const id of path) {\n node = siblings.find((candidate) => candidate.id === id);\n if (!node) return undefined;\n siblings = node.children ?? [];\n }\n return node;\n}\n","import type { SafeHtml } from 'kerfjs';\nimport { ChevronRight } from 'lucide';\n\nimport {\n filterDataAttributes,\n type RootDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { ColumnTrack } from '../../layout/column-track/column-track.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport { List } from '../list/list.js';\nimport { ListHeader } from '../list-header/list-header.js';\nimport { ListItem } from '../list-item/list-item.js';\nimport {\n isExpandable,\n type TreeListNode,\n} from '../tree-list/model/tree-rows.js';\nimport { explorerChosen, explorerColumns } from './model/columns.js';\n\nexport {\n explorerChosen,\n type ExplorerColumn,\n explorerColumns,\n} from './model/columns.js';\n\nconst COLUMN_EXPLORER_PROTECTED = new Set([\n 'data-component',\n 'data-column-explorer-id',\n]);\n\nexport interface ColumnExplorerProps {\n /** Identifies the explorer for `wireColumnExplorer` and in tests. */\n id: string;\n /** The explorer's accessible name, such as \"Files\". */\n label: string;\n /** The hierarchy, as TreeList's nodes. The application owns it. */\n nodes: readonly TreeListNode[];\n /**\n * The chosen ids from the top level down, one per column. The application\n * owns it: set it to `treeListPath(nodes, id)` when `action` reports a row.\n */\n path: readonly string[];\n /** Delegated action for choosing a row; the row's `data-item-id` names it. */\n action: string;\n /**\n * Content for a last column when the chosen node is a leaf, such as a\n * file's details.\n */\n preview?: SafeHtml;\n /** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */\n layout?: 'scroll' | 'paged';\n /** ColumnTrack inline clearance; none clips columns at the explorer edges. */\n inset?: 'default' | 'none';\n /** Each column's minimum width (ColumnTrack's default 250px). */\n minColumnWidth?: CssLength;\n /** How much of the next column a paged layout shows. */\n peek?: CssLength;\n /** Show a quiet parent heading in every column, starting with this root name. */\n rootHeading?: string;\n /** Row density: `default` or `compact`. */\n density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';\n className?: string;\n /** Safe `data-*` metadata for the explorer element. */\n rootAttributes?: RootDataAttributes;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\nconst chevron = LucideIcon({ icon: ChevronRight, name: 'chevron-right' });\n\n/**\n * A macOS-style column explorer for a hierarchy: one column per level in a\n * ColumnTrack, where choosing a row with children opens the next column of\n * its children. The application owns the nodes and the chosen path and\n * handles `action`; wire the keyboard with `wireColumnExplorer`.\n */\nexport function ColumnExplorer({\n id,\n label,\n nodes,\n path,\n action,\n preview,\n layout,\n inset,\n minColumnWidth,\n peek,\n rootHeading,\n density = 'default',\n className = '',\n rootAttributes = {},\n slot,\n}: ColumnExplorerProps) {\n const columns = explorerColumns(nodes, path);\n const chosen = explorerChosen(nodes, path);\n const showPreview =\n preview !== undefined && chosen !== undefined && !isExpandable(chosen);\n return (\n <div\n {...filterDataAttributes(rootAttributes, COLUMN_EXPLORER_PROTECTED)}\n id={id}\n role=\"region\"\n class={`kui-column-explorer ${className}`.trim()}\n aria-label={label}\n data-component=\"column-explorer\"\n data-column-explorer-id={id}\n slot={slot}\n >\n <ColumnTrack\n layout={layout}\n inset={inset}\n minColumnWidth={minColumnWidth}\n peek={peek}\n >\n {columns.map((column) => {\n // One Tab stop per column: its chosen row, else its first.\n const stop = column.chosen ?? column.nodes[0]?.id;\n return (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': column.parent\n ? String(column.parent.label)\n : label,\n 'data-column-explorer-level': String(column.level),\n }}\n >\n {rootHeading !== undefined ? (\n <ListHeader\n label={\n column.parent ? String(column.parent.label) : rootHeading\n }\n size=\"xs\"\n density=\"compact\"\n />\n ) : null}\n {column.nodes.map((node) => (\n <ListItem\n action={action}\n itemId={node.id}\n label={node.label}\n description={node.description}\n icon={node.icon}\n trailing={\n isExpandable(node) ? (\n <>\n {node.trailing}\n {chevron}\n </>\n ) : (\n node.trailing\n )\n }\n selected={node.id === column.chosen}\n disabled={node.disabled}\n draggable={node.draggable}\n density={density}\n tabIndex={node.id === stop ? 0 : -1}\n rootAttributes={{\n ...node.rootAttributes,\n 'data-key': node.id,\n 'data-column-explorer-level': String(column.level),\n 'data-expandable': isExpandable(node) ? 'true' : undefined,\n }}\n />\n ))}\n </List>\n );\n })}\n {showPreview ? (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': `${String(chosen.label)} preview`,\n 'data-column-explorer-preview': 'true',\n }}\n >\n {preview}\n </List>\n ) : null}\n </ColumnTrack>\n </div>\n );\n}\n"]}
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 };