bitboss-ui 3.0.0-beta.71 → 3.0.0-beta.73

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 (363) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +9 -3
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +1 -1
  6. package/dist/ai/BbButton.md +32 -27
  7. package/dist/ai/BbCalendar.md +1 -0
  8. package/dist/ai/BbCarousel.md +6 -4
  9. package/dist/ai/BbCheckboxGroup.md +2 -1
  10. package/dist/ai/BbColorInput.md +1 -1
  11. package/dist/ai/BbConfirm.md +65 -81
  12. package/dist/ai/BbConfirmPortal.md +2 -2
  13. package/dist/ai/BbDatePicker.md +1 -6
  14. package/dist/ai/BbDatePickerInput.md +2 -2
  15. package/dist/ai/BbDialog.md +233 -164
  16. package/dist/ai/BbDropdown.md +52 -16
  17. package/dist/ai/BbDropdownButton.md +11 -12
  18. package/dist/ai/BbDropzone.md +12 -8
  19. package/dist/ai/BbForm.md +100 -13
  20. package/dist/ai/BbHost.md +2 -2
  21. package/dist/ai/BbHoverCardPortal.md +1 -1
  22. package/dist/ai/BbIcon.md +1 -1
  23. package/dist/ai/BbIndicator.md +17 -15
  24. package/dist/ai/BbNumberInput.md +7 -5
  25. package/dist/ai/BbOffCanvas.md +29 -7
  26. package/dist/ai/BbPagination.md +2 -2
  27. package/dist/ai/BbPopover.md +15 -9
  28. package/dist/ai/BbPopoverPortal.md +1 -1
  29. package/dist/ai/BbRadioGroup.md +29 -7
  30. package/dist/ai/BbRating.md +8 -7
  31. package/dist/ai/BbSelect.md +29 -8
  32. package/dist/ai/BbSelectPopover.md +9 -3
  33. package/dist/ai/BbSlider.md +12 -8
  34. package/dist/ai/BbSpinner.md +3 -2
  35. package/dist/ai/BbSwitch.md +3 -3
  36. package/dist/ai/BbSwitchGroup.md +7 -6
  37. package/dist/ai/BbTable.md +205 -82
  38. package/dist/ai/BbTabs.md +29 -4
  39. package/dist/ai/BbTag.md +1 -1
  40. package/dist/ai/BbTextInput.md +7 -5
  41. package/dist/ai/BbTextarea.md +4 -3
  42. package/dist/ai/BbTimePickerInput.md +1 -1
  43. package/dist/ai/BbToast.md +3 -2
  44. package/dist/ai/BbTooltip.md +22 -17
  45. package/dist/ai/BbTree.md +49 -24
  46. package/dist/ai/CommonFieldInput.md +1 -1
  47. package/dist/ai/changelog.json +242 -9
  48. package/dist/ai/components.json +52 -51
  49. package/dist/ai/composables/useBbDialog.md +5 -8
  50. package/dist/ai/composables/useBbForm.md +3 -0
  51. package/dist/ai/composables/useConfirm.md +65 -56
  52. package/dist/ai/composables/useToast.md +2 -1
  53. package/dist/ai/guides/agent-contract.md +3 -3
  54. package/dist/ai/guides/app-layout.md +3 -2
  55. package/dist/ai/guides/eslint-rules.md +3 -1
  56. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  57. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  58. package/dist/ai/guides/icons-policy.md +7 -5
  59. package/dist/ai/guides/inertia-helpers.md +35 -30
  60. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  61. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  62. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  63. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  64. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  65. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  67. package/dist/ai/guides/migration/components/use-confirm.md +72 -26
  68. package/dist/ai/guides/migration/v2-to-v3.md +52 -10
  69. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  70. package/dist/ai/guides/options-items-playbook.md +4 -3
  71. package/dist/ai/guides/passthrough.md +2 -2
  72. package/dist/ai/helpers/inertia/manifest.json +28 -15
  73. package/dist/ai/helpers/inertia/messages.ts +3 -3
  74. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  75. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  76. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  77. package/dist/ai/index.md +3 -3
  78. package/dist/ai/manifest/common.json +3 -3
  79. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  80. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  81. package/dist/ai/manifest/components/BbBadge.json +8 -7
  82. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  83. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  84. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  85. package/dist/ai/manifest/components/BbButton.json +5 -6
  86. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  87. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  88. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  89. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  90. package/dist/ai/manifest/components/BbColorInput.json +1 -1
  91. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  92. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  93. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  94. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  95. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  96. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  97. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  98. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  99. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  100. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  101. package/dist/ai/manifest/components/BbDialog.json +6 -1
  102. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  103. package/dist/ai/manifest/components/BbDropdown.json +9 -8
  104. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  105. package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
  106. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  107. package/dist/ai/manifest/components/BbForm.json +3 -1
  108. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  109. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  110. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  111. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  112. package/dist/ai/manifest/components/BbPagination.json +1 -1
  113. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  114. package/dist/ai/manifest/components/BbRating.json +2 -2
  115. package/dist/ai/manifest/components/BbSelect.json +16 -15
  116. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  117. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  118. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  119. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  120. package/dist/ai/manifest/components/BbTable.json +15 -14
  121. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  122. package/dist/ai/manifest/components/BbTabs.json +3 -3
  123. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  124. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  125. package/dist/ai/manifest/components/BbTag.json +1 -1
  126. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  127. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  128. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  129. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  130. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  131. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  132. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  133. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  135. package/dist/ai/manifest/components/BbTree.json +2 -2
  136. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  137. package/dist/ai/manifest/index.json +4 -4
  138. package/dist/ai/manifest/meta.json +5 -1
  139. package/dist/ai/manifest/types.advanced.json +9 -9
  140. package/dist/ai/manifest/types.api.json +6 -5
  141. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  142. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  143. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  144. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  145. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  146. package/dist/ai/recipes/inertia/record-form.md +12 -8
  147. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  148. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  149. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  150. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  151. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  152. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  153. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  154. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  155. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  156. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  157. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  158. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  159. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  160. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  161. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/vue/onboarding.md +5 -4
  165. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/vue/record-form.md +14 -10
  167. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  168. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  169. package/dist/ai/recipes/vue/upload-center.md +17 -9
  170. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  171. package/dist/ai/source/BbAccordion.md +50 -16
  172. package/dist/ai/source/BbBadge.md +420 -26
  173. package/dist/ai/source/BbBadgeButton.md +378 -12
  174. package/dist/ai/source/BbButton.md +205 -55
  175. package/dist/ai/source/BbCalendar.md +5 -0
  176. package/dist/ai/source/BbCheckboxGroup.md +38 -13
  177. package/dist/ai/source/BbConfigScope.md +19 -2
  178. package/dist/ai/source/BbConfirm.md +74 -80
  179. package/dist/ai/source/BbConfirmPortal.md +6 -6
  180. package/dist/ai/source/BbDatePicker.md +9 -2
  181. package/dist/ai/source/BbDatePickerInput.md +3 -1
  182. package/dist/ai/source/BbDialog.md +53 -2
  183. package/dist/ai/source/BbDropdown.md +350 -98
  184. package/dist/ai/source/BbDropdownButton.md +20 -12
  185. package/dist/ai/source/BbDropdownGroup.md +136 -58
  186. package/dist/ai/source/BbForm.md +152 -11
  187. package/dist/ai/source/BbOffCanvas.md +53 -2
  188. package/dist/ai/source/BbPagination.md +1 -1
  189. package/dist/ai/source/BbRadioGroup.md +72 -10
  190. package/dist/ai/source/BbRating.md +30 -22
  191. package/dist/ai/source/BbSelect.md +11 -1
  192. package/dist/ai/source/BbSelectPopover.md +105 -34
  193. package/dist/ai/source/BbSwitch.md +23 -8
  194. package/dist/ai/source/BbSwitchGroup.md +67 -21
  195. package/dist/ai/source/BbTable.md +359 -48
  196. package/dist/ai/source/BbTabs.md +6 -0
  197. package/dist/ai/source/BbTabsList.md +10 -0
  198. package/dist/ai/source/BbTabsPanels.md +6 -0
  199. package/dist/ai/source/BbTabsRoot.md +6 -0
  200. package/dist/ai/source/BbTree.md +14 -4
  201. package/dist/ai/source/CommonFieldInput.md +2 -1
  202. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  203. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  204. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  205. package/dist/components/BbAccordion/types.d.ts +21 -7
  206. package/dist/components/BbAccordion/types.js +1 -1
  207. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  208. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  209. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  210. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  211. package/dist/components/BbBadge/types.d.ts +15 -12
  212. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  213. package/dist/components/BbButton/types.d.ts +7 -6
  214. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  215. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  216. package/dist/components/BbCalendar/types.d.ts +5 -0
  217. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  218. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  219. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  220. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  221. package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
  222. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  223. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  224. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  225. package/dist/components/BbConfirm/types.d.ts +5 -5
  226. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  227. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  228. package/dist/components/BbDatePicker/types.d.ts +5 -0
  229. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  230. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  231. package/dist/components/BbDatePickerInput/types.d.ts +2 -1
  232. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  233. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  234. package/dist/components/BbDialog/overlayActions.js +94 -0
  235. package/dist/components/BbDialog/types.d.ts +24 -0
  236. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  237. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
  238. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  239. package/dist/components/BbDropdown/normalizeGroups.js +58 -48
  240. package/dist/components/BbDropdown/types.d.ts +107 -48
  241. package/dist/components/BbDropdown/types.js +2 -2
  242. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
  243. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  244. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  245. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
  246. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  247. package/dist/components/BbForm/recognizeValidation.js +55 -0
  248. package/dist/components/BbForm/validationError.d.ts +10 -0
  249. package/dist/components/BbForm/validationError.js +11 -0
  250. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  251. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  252. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  253. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  254. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  255. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  256. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  257. package/dist/components/BbRadioGroup/types.d.ts +9 -3
  258. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
  259. package/dist/components/BbRating/types.d.ts +3 -2
  260. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
  261. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  262. package/dist/components/BbSelect/types.d.ts +8 -0
  263. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  264. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  265. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  266. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  267. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  268. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  269. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  270. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  271. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  272. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  273. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  274. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  275. package/dist/components/BbTable/types.d.ts +32 -17
  276. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  277. package/dist/components/BbTabs/types.d.ts +6 -0
  278. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  279. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  280. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  281. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  282. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  284. package/dist/components/BbTree/types.d.ts +8 -2
  285. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  286. package/dist/composables/formSubmitLock.js +15 -8
  287. package/dist/composables/overlayRegistry.d.ts +5 -0
  288. package/dist/composables/overlayRegistry.js +154 -148
  289. package/dist/composables/useBbDropdown.d.ts +8 -0
  290. package/dist/composables/useBbDropdown.js +3 -1
  291. package/dist/composables/useBbTabs.js +138 -138
  292. package/dist/composables/useConfirm.d.ts +63 -52
  293. package/dist/composables/useConfirm.js +22 -18
  294. package/dist/deprecation/ai-deprecations.json.js +1 -1
  295. package/dist/directives/bbDropdown.d.ts +7 -7
  296. package/dist/directives/bbDropdown.js +21 -14
  297. package/dist/directives/bbTooltip.d.ts +3 -3
  298. package/dist/directives/createPopoverDirective.js +57 -35
  299. package/dist/i18n/locales/ar.json +5 -1
  300. package/dist/i18n/locales/cs.json +5 -1
  301. package/dist/i18n/locales/da.json +5 -1
  302. package/dist/i18n/locales/de-CH.json +5 -1
  303. package/dist/i18n/locales/de.json +5 -1
  304. package/dist/i18n/locales/el.json +5 -1
  305. package/dist/i18n/locales/en-GB.json +5 -1
  306. package/dist/i18n/locales/en.json +5 -1
  307. package/dist/i18n/locales/es-MX.json +5 -1
  308. package/dist/i18n/locales/es.json +5 -1
  309. package/dist/i18n/locales/fa.json +5 -1
  310. package/dist/i18n/locales/fi.json +5 -1
  311. package/dist/i18n/locales/fr.json +5 -1
  312. package/dist/i18n/locales/he.json +5 -1
  313. package/dist/i18n/locales/hu.json +5 -1
  314. package/dist/i18n/locales/it.json +5 -1
  315. package/dist/i18n/locales/ja.json +5 -1
  316. package/dist/i18n/locales/ko.json +5 -1
  317. package/dist/i18n/locales/nb.json +5 -1
  318. package/dist/i18n/locales/nl.json +5 -1
  319. package/dist/i18n/locales/pl.json +5 -1
  320. package/dist/i18n/locales/pt-BR.json +5 -1
  321. package/dist/i18n/locales/pt-PT.json +5 -1
  322. package/dist/i18n/locales/ro.json +5 -1
  323. package/dist/i18n/locales/ru.json +5 -1
  324. package/dist/i18n/locales/sv.json +5 -1
  325. package/dist/i18n/locales/tr.json +5 -1
  326. package/dist/i18n/locales/uk.json +5 -1
  327. package/dist/i18n/locales/zh-CN.json +5 -1
  328. package/dist/i18n/locales/zh-HK.json +5 -1
  329. package/dist/i18n/locales/zh-TW.json +5 -1
  330. package/dist/index.d.ts +2 -0
  331. package/dist/index.js +4 -3
  332. package/dist/llms-full.txt +1997 -1151
  333. package/dist/llms-medium.txt +21 -18
  334. package/dist/llms.txt +2 -2
  335. package/dist/locale-blueprint.json +5 -1
  336. package/dist/plugin.js +17 -40
  337. package/dist/pluginCore.js +30 -0
  338. package/dist/styles.css +2 -2
  339. package/dist/types/ActionButton.d.ts +26 -5
  340. package/dist/types/ActionButton.js +11 -0
  341. package/dist/types/ConfigDefaults.d.ts +34 -3
  342. package/dist/types/ConfigDefaults.js +14 -8
  343. package/dist/types/ItemPath.d.ts +33 -4
  344. package/dist/types/ptComponentMap.d.ts +1 -1
  345. package/dist/utilities/functions/clickCount.js +14 -0
  346. package/dist/utilities/functions/hash.js +90 -3
  347. package/dist/utilities/functions/isEqual.js +61 -3
  348. package/dist/utils/versionCheck.js +1 -1
  349. package/dist/vite.js +0 -1
  350. package/llms.txt +2 -2
  351. package/package.json +12 -2
  352. package/scripts/README.md +43 -39
  353. package/scripts/lib/adoption-checklist.json +2 -2
  354. package/scripts/lib/eslint-disable.mjs +5 -3
  355. package/scripts/lib/eslint-plugin.d.ts +2 -0
  356. package/scripts/lib/eslint-plugin.mjs +213 -1
  357. package/scripts/lib/helpers-add.mjs +21 -2
  358. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  359. package/scripts/lib/release-results.mjs +180 -5
  360. package/scripts/lib/renamed-item-field.mjs +4 -1
  361. package/scripts/lib/tab-links.mjs +4 -1
  362. package/scripts/lib/tree-default-expandable.mjs +53 -0
  363. package/scripts/lib/validate-bb-markup.mjs +536 -52
@@ -109,6 +109,33 @@ export function foldEvents(events) {
109
109
  };
110
110
  }
111
111
 
112
+ /**
113
+ * Why a red step failed, kept in its record so the history can say what
114
+ * the time went on: `exit` (the code, or null), `signal` when one killed
115
+ * it, and `cause`:
116
+ * 'killed' a signal ended it (a timeout, a kill, an out-of-memory)
117
+ * 'check' an in-process check said no (its message is the note)
118
+ * 'tests' the runners named every file that failed
119
+ * 'crash' a test step failed without naming a file (crash, hang)
120
+ * 'exit' any other non-zero exit: the step's own name is the cause
121
+ * `run` is { exit, signal, inProcess }; `folded` is foldEvents' result.
122
+ */
123
+ export function failureFields(
124
+ { exit = null, signal = null, inProcess = false },
125
+ folded = {}
126
+ ) {
127
+ const cause = signal
128
+ ? 'killed'
129
+ : inProcess
130
+ ? 'check'
131
+ : folded.whole
132
+ ? 'crash'
133
+ : folded.failedFiles?.length
134
+ ? 'tests'
135
+ : 'exit';
136
+ return { exit, ...(signal ? { signal } : {}), cause };
137
+ }
138
+
112
139
  // ---------------------------------------------------------------------------
113
140
  // The record on disk.
114
141
  // ---------------------------------------------------------------------------
@@ -155,9 +182,13 @@ export function collectWarn(steps) {
155
182
  // The rerun plan.
156
183
  // ---------------------------------------------------------------------------
157
184
 
158
- /** Still owed: anything that did not pass (a declared skip is not owed). */
185
+ /**
186
+ * Still owed: anything that did not pass (a declared skip is not owed, nor
187
+ * a step a scoped release carried from its full base).
188
+ */
159
189
  export const owed = (step) =>
160
190
  step.status !== 'pass' &&
191
+ step.status !== 'carried' &&
161
192
  !(step.status === 'skipped' && !step.note?.startsWith('build failed'));
162
193
 
163
194
  /** Steps whose rerun can be narrowed to their failed files. */
@@ -305,10 +336,107 @@ export function mergeRerun(previous, rerun) {
305
336
  steps,
306
337
  ok: steps.every((s) => !owed(s)),
307
338
  warn: collectWarn(steps),
308
- base: previous.base ?? {
309
- sha: previous.sha,
310
- finishedAt: previous.finishedAt,
311
- },
339
+ base: previous.base ?? runEvidence(previous),
340
+ };
341
+ }
342
+
343
+ // ---------------------------------------------------------------------------
344
+ // A rerun that earns the release pass.
345
+ // ---------------------------------------------------------------------------
346
+
347
+ const stepEvidence = (s) => ({
348
+ name: s.name,
349
+ status: s.status,
350
+ ...(s.failedFiles?.length ? { failedFiles: s.failedFiles } : {}),
351
+ ...(s.whole ? { whole: true } : {}),
352
+ ...(s.sub ? { sub: s.sub.map(stepEvidence) } : {}),
353
+ });
354
+
355
+ /**
356
+ * What a rerun may lean on from the last FULL release:local run: its
357
+ * commit, time, dist/ hash, rule versions and each step's outcome (with the
358
+ * wall's steps inside release:check). A record that is not a full run gives
359
+ * only `{ sha, finishedAt }`, which no rerun can earn a pass from.
360
+ */
361
+ export function runEvidence(record) {
362
+ if (record?.mode !== 'full')
363
+ return { sha: record?.sha, finishedAt: record?.finishedAt };
364
+ return {
365
+ sha: record.sha,
366
+ finishedAt: record.finishedAt,
367
+ distHash: record.distHash ?? null,
368
+ scopeVersion: record.scopeVersion ?? null,
369
+ gateVersion: record.gateVersion ?? null,
370
+ steps: record.steps.filter(Boolean).map(stepEvidence),
371
+ };
372
+ }
373
+
374
+ /** The full run a rerun starts from: the record itself, or the base it kept. */
375
+ export const rerunBase = (previous) =>
376
+ previous?.mode === 'full' ? runEvidence(previous) : (previous?.base ?? null);
377
+
378
+ /**
379
+ * Why a rerun on `sha` cannot earn the pass from `base` (first match), or
380
+ * null. `isAncestor(a, b)` and the versions come from the caller.
381
+ */
382
+ export function rerunRefusal(
383
+ base,
384
+ { sha, isAncestor, gateVersion, scopeVersion, now = Date.now(), maxAgeDays }
385
+ ) {
386
+ if (!base?.steps)
387
+ return 'the last full run has no step record a rerun can lean on (it ran before reruns could earn the pass)';
388
+ if (!base.distHash)
389
+ return base.scopeVersion == null
390
+ ? `the last full run (${String(base.sha).slice(0, 10)}) was recorded before reruns could earn the pass (no dist/ hash in it)`
391
+ : `the last full run (${String(base.sha).slice(0, 10)}) recorded no dist/ hash (its build did not finish green)`;
392
+ if (!isAncestor(base.sha, sha))
393
+ return `the last full run (${String(base.sha).slice(0, 10)}) is not an ancestor of ${sha.slice(0, 10)}`;
394
+ const days = (now - Date.parse(base.finishedAt)) / 86_400_000;
395
+ if (!(days <= maxAgeDays))
396
+ return `the last full run is ${Math.floor(days)} days old (more than ${maxAgeDays})`;
397
+ if (base.gateVersion !== gateVersion)
398
+ return `the last full run used gate version ${base.gateVersion}, this commit ${gateVersion}`;
399
+ if (base.scopeVersion !== scopeVersion)
400
+ return `the last full run used scope rule version ${base.scopeVersion}, this commit ${scopeVersion}`;
401
+ return null;
402
+ }
403
+
404
+ /** A step's outcome on the base run, inside release:check's wall too. */
405
+ export function baseStatus(base, name, sub = null) {
406
+ const step = base?.steps?.find((s) => s.name === name);
407
+ if (!sub) return step ?? null;
408
+ return step?.sub?.find((s) => s.name === sub) ?? null;
409
+ }
410
+
411
+ const BROWSER_CHUNKED = 'test: browser (chunked)';
412
+ const GREGORIAN = 'test: browser (Gregorian-only build)';
413
+
414
+ /**
415
+ * The scope a pass-earning rerun hands release:check: the change's scope
416
+ * (scope.mjs, A..HEAD) plus every chunked file A failed, and the Gregorian
417
+ * tier when A's was not green. `null` = run the browser tier whole (A never
418
+ * ran it, or a chunked red there named no files).
419
+ */
420
+ export function rerunScope(scope, base) {
421
+ const wall = baseStatus(base, 'release:check:browser');
422
+ const chunked = baseStatus(base, 'release:check:browser', BROWSER_CHUNKED);
423
+ if (!wall || wall.status === 'not run' || !wall.sub || !chunked) return null;
424
+ if (chunked.status !== 'pass' && (chunked.whole || !chunked.failedFiles))
425
+ return null;
426
+ const failed = chunked.status === 'pass' ? [] : chunked.failedFiles;
427
+ const affected = [...new Set([...(scope.affected ?? []), ...failed])].sort();
428
+ const gregorianStep = baseStatus(base, 'release:check:browser', GREGORIAN);
429
+ const gregorian =
430
+ Boolean(scope.gregorian) || gregorianStep?.status !== 'pass';
431
+ return {
432
+ ...scope,
433
+ // A `none` scope runs no browser tier at all: anything A still owes
434
+ // there makes it `scoped` (an empty list then runs every chunk, which
435
+ // the chunked runner does to fail closed).
436
+ kind: affected.length || gregorian ? 'scoped' : scope.kind,
437
+ affected,
438
+ gregorian,
439
+ baseFailed: failed,
312
440
  };
313
441
  }
314
442
 
@@ -329,3 +457,50 @@ export function owedLines(steps, indent = ' ') {
329
457
  export function existingFiles(files, root, exists = existsSync) {
330
458
  return files.filter((f) => exists(path.join(root, f)));
331
459
  }
460
+
461
+ /**
462
+ * The fixture, consumer and eval steps: they test the packed dist/, so a
463
+ * byte-identical dist/ may carry their result (scope-plan.mjs carryOver).
464
+ */
465
+ export const DIST_CONSUMERS = new Set([
466
+ 'fixtures:install',
467
+ 'eval:prepare',
468
+ 'consumer:strict',
469
+ 'consumer:typecheck',
470
+ 'consumer:build',
471
+ 'test:fixtures',
472
+ 'eval:references',
473
+ ]);
474
+
475
+ /**
476
+ * Whether a scoped release step rides over from its base, for `--scoped`
477
+ * (a full release pass: every step passed) and for a pass-earning rerun
478
+ * (`run`: the full run A's evidence, where only the steps it PASSED may
479
+ * carry). `carry()` is the dist/ verdict (carryOver), asked only for a
480
+ * dist consumer. Returns `{ carried: note }`, `{ files }` (test:engines red
481
+ * on A and unaffected since: only A's failed files), `{ runs: why }` for a
482
+ * dist consumer that must run, or null (the step runs as usual).
483
+ */
484
+ export function carryDecision(name, { run = null, scope, carry, label }) {
485
+ const green = !run || baseStatus(run, name)?.status === 'pass';
486
+ if (DIST_CONSUMERS.has(name)) {
487
+ const verdict = carry();
488
+ if (verdict.carry && green)
489
+ return { carried: `carried from ${label}: ${verdict.reason}` };
490
+ return { runs: green ? verdict.reason : `it did not pass on ${label}` };
491
+ }
492
+ if (name === 'test:engines' && !scope.engines) {
493
+ if (green)
494
+ return {
495
+ carried: `carried from ${label}: no affected file is in the engines set`,
496
+ };
497
+ const onRun = baseStatus(run, name);
498
+ if (onRun?.status === 'FAIL' && !onRun.whole && onRun.failedFiles?.length)
499
+ return { files: onRun.failedFiles };
500
+ }
501
+ if (name === 'test:dates' && !scope.gregorian && green)
502
+ return {
503
+ carried: `carried from ${label}: no date-family file is affected`,
504
+ };
505
+ return null;
506
+ }
@@ -138,7 +138,10 @@ const isTrue = (node) => {
138
138
  const arrayOf = (node, arrays) => {
139
139
  const value = unwrap(node);
140
140
  if (value?.type === 'ArrayExpression') return value;
141
- if (value?.type === 'Identifier') return arrays?.get(value.name) ?? null;
141
+ // A same-file array the file changes may be relabelled or rekeyed by
142
+ // that write: out of reach.
143
+ if (value?.type === 'Identifier' && !arrays?.mutated?.has(value.name))
144
+ return arrays?.get(value.name) ?? null;
142
145
  return null;
143
146
  };
144
147
 
@@ -75,7 +75,10 @@ const stringValue = (object, key) => {
75
75
  const arrayOf = (node, arrays) => {
76
76
  const value = unwrap(node);
77
77
  if (value?.type === 'ArrayExpression') return value;
78
- if (value?.type === 'Identifier') return arrays?.get(value.name) ?? null;
78
+ // A same-file array the file changes may be relabelled or rekeyed by
79
+ // that write: out of reach.
80
+ if (value?.type === 'Identifier' && !arrays?.mutated?.has(value.name))
81
+ return arrays?.get(value.name) ?? null;
79
82
  return null;
80
83
  };
81
84
 
@@ -0,0 +1,53 @@
1
+ /**
2
+ * `redundant-tree-expandable`: `:expandable="(n) => !!n.children?.length"`
3
+ * on a BbTree. With `expandable` unset a node already gets a toggle when it
4
+ * has a child to show, so the function only restates the default, and worse:
5
+ * it still gives a toggle to a branch whose children are all `hidden`.
6
+ *
7
+ * Judged: a bound `expandable` on a library BbTree whose expression is an
8
+ * arrow over one parameter returning `!!p.children?.length` (or
9
+ * `p.children?.length > 0`). Check-only, no ESLint twin; an
10
+ * `eslint-disable` for `no-unknown-attributes` silences it.
11
+ */
12
+ import { libraryTagOf } from './dropdown-default-slot.mjs';
13
+
14
+ export const REDUNDANT_TREE_EXPANDABLE_MESSAGE =
15
+ '`:expandable="(n) => !!n.children?.length"` restates BbTree\'s default and still gives a toggle to a branch whose children are all `hidden` — remove it';
16
+
17
+ const NODE_ELEMENT = 1;
18
+ const PROP_DIRECTIVE = 7;
19
+
20
+ /** `(n) => !!n.children?.length`, `n => n.children?.length > 0`, a typed `(n: T)`. */
21
+ const RESTATES_DEFAULT =
22
+ /^\(?\s*([A-Za-z_$][\w$]*)\s*(?::[^)=]*)?\)?\s*=>\s*(?:!!\s*\1\s*\.\s*children\s*\?\.\s*length|\1\s*\.\s*children\s*\?\.\s*length\s*>\s*0)\s*$/;
23
+
24
+ /**
25
+ * @param {any} ast compiled template AST
26
+ * @param {{ aliases?: Map<string, string>, own?: Set<string> }} [scope]
27
+ */
28
+ export function redundantTreeExpandableFindings(ast, scope = {}) {
29
+ const findings = [];
30
+ const walk = (node) => {
31
+ if (!node || typeof node !== 'object') return;
32
+ if (
33
+ node.type === NODE_ELEMENT &&
34
+ libraryTagOf(node.tag, scope) === 'BbTree'
35
+ )
36
+ for (const prop of node.props ?? []) {
37
+ if (prop.type !== PROP_DIRECTIVE || prop.name !== 'bind') continue;
38
+ if (prop.arg?.content !== 'expandable') continue;
39
+ if (!RESTATES_DEFAULT.test(prop.exp?.content?.trim() ?? '')) continue;
40
+ findings.push({
41
+ component: 'BbTree',
42
+ attr: ':expandable',
43
+ kind: 'redundant-tree-expandable',
44
+ line: prop.loc?.start?.line,
45
+ message: REDUNDANT_TREE_EXPANDABLE_MESSAGE,
46
+ hint: 'Pass `:expandable="false"` for no toggles; a function only for another rule (a depth, a field of `meta`).',
47
+ });
48
+ }
49
+ for (const child of node.children ?? []) walk(child);
50
+ };
51
+ walk(ast);
52
+ return findings;
53
+ }