@threadlabs/looma 0.28.22 → 0.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. package/components/ui-editor-code-language/ui-editor-code-language.html +1 -1
  2. package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html +1 -2
  3. package/components/ui-editor-link-form/ui-editor-link-form.html +2 -3
  4. package/components/ui-tooltip/ui-tooltip.html +5 -2
  5. package/dist/index.js +1 -1
  6. package/editor/image-uploads.d.ts +23 -15
  7. package/editor/link-editing.d.ts +4 -4
  8. package/editor/requests.d.ts +43 -0
  9. package/package.json +3 -3
  10. package/styles/ui-action-bar.css +1 -1
  11. package/styles/ui-affordance-scope.css +1 -1
  12. package/styles/ui-avatar-group.css +1 -1
  13. package/styles/ui-avatar.css +1 -1
  14. package/styles/ui-badge.css +1 -1
  15. package/styles/ui-breadcrumb-item.css +1 -1
  16. package/styles/ui-breadcrumbs.css +1 -1
  17. package/styles/ui-button.css +1 -1
  18. package/styles/ui-callout.css +1 -1
  19. package/styles/ui-card.css +1 -1
  20. package/styles/ui-checkbox.css +1 -1
  21. package/styles/ui-cluster.css +1 -1
  22. package/styles/ui-combobox.css +1 -1
  23. package/styles/ui-container.css +1 -1
  24. package/styles/ui-context-menu.css +1 -1
  25. package/styles/ui-cover.css +1 -1
  26. package/styles/ui-description-item.css +1 -1
  27. package/styles/ui-description-list.css +1 -1
  28. package/styles/ui-dialog.css +1 -1
  29. package/styles/ui-disclosure.css +1 -1
  30. package/styles/ui-editable.css +1 -1
  31. package/styles/ui-editor-block-actions.css +1 -1
  32. package/styles/ui-editor-chip-editor.css +1 -1
  33. package/styles/ui-editor-code-language.css +1 -1
  34. package/styles/ui-editor-image-toolbar.css +1 -1
  35. package/styles/ui-editor-insert-table-grid.css +1 -1
  36. package/styles/ui-editor-link-card.css +1 -1
  37. package/styles/ui-editor-link-form.css +1 -1
  38. package/styles/ui-editor-mention-menu-item.css +1 -1
  39. package/styles/ui-editor-mention-menu.css +1 -1
  40. package/styles/ui-editor-slash-menu-group.css +1 -1
  41. package/styles/ui-editor-slash-menu-item.css +1 -1
  42. package/styles/ui-editor-slash-menu.css +1 -1
  43. package/styles/ui-editor-surface.css +1 -1
  44. package/styles/ui-editor-table-context-menu.css +1 -1
  45. package/styles/ui-editor-table-overlay.css +1 -1
  46. package/styles/ui-editor-table-toolbar.css +1 -1
  47. package/styles/ui-editor-toolbar.css +1 -1
  48. package/styles/ui-floating-action-button.css +1 -1
  49. package/styles/ui-form-field.css +1 -1
  50. package/styles/ui-grid.css +1 -1
  51. package/styles/ui-icon-button.css +1 -1
  52. package/styles/ui-icon.css +1 -1
  53. package/styles/ui-image.css +1 -1
  54. package/styles/ui-input-group.css +1 -1
  55. package/styles/ui-input.css +1 -1
  56. package/styles/ui-list-item.css +1 -1
  57. package/styles/ui-list.css +1 -1
  58. package/styles/ui-listbox.css +1 -1
  59. package/styles/ui-menu-group.css +1 -1
  60. package/styles/ui-menu-item.css +1 -1
  61. package/styles/ui-menu.css +1 -1
  62. package/styles/ui-meter.css +1 -1
  63. package/styles/ui-nav-item.css +1 -1
  64. package/styles/ui-page-header.css +1 -1
  65. package/styles/ui-popover.css +1 -1
  66. package/styles/ui-radio-group.css +1 -1
  67. package/styles/ui-radio.css +1 -1
  68. package/styles/ui-reel.css +1 -1
  69. package/styles/ui-scroll-area.css +1 -1
  70. package/styles/ui-search-result-row.css +1 -1
  71. package/styles/ui-search-shell.css +1 -1
  72. package/styles/ui-section.css +1 -1
  73. package/styles/ui-select.css +1 -1
  74. package/styles/ui-separator.css +1 -1
  75. package/styles/ui-sidebar.css +1 -1
  76. package/styles/ui-spinner.css +1 -1
  77. package/styles/ui-stack.css +1 -1
  78. package/styles/ui-status-message.css +1 -1
  79. package/styles/ui-swatch.css +1 -1
  80. package/styles/ui-switch.css +1 -1
  81. package/styles/ui-switcher.css +1 -1
  82. package/styles/ui-table.css +1 -1
  83. package/styles/ui-tabs.css +1 -1
  84. package/styles/ui-text.css +1 -1
  85. package/styles/ui-textarea.css +1 -1
  86. package/styles/ui-toast-region.css +1 -1
  87. package/styles/ui-toast.css +1 -1
  88. package/styles/ui-tooltip.css +7 -2
  89. package/styles/ui-top-bar.css +1 -1
  90. package/styles/ui-tree-item.css +1 -1
  91. package/styles/ui-tree.css +1 -1
  92. package/vanilla/UiActionBar.d.ts +1 -1
  93. package/vanilla/UiActionBar.js +6 -6
  94. package/vanilla/UiAffordanceScope.d.ts +1 -1
  95. package/vanilla/UiAffordanceScope.js +1 -1
  96. package/vanilla/UiAvatar.d.ts +1 -1
  97. package/vanilla/UiAvatar.js +7 -7
  98. package/vanilla/UiAvatarGroup.d.ts +1 -1
  99. package/vanilla/UiAvatarGroup.js +4 -4
  100. package/vanilla/UiBadge.d.ts +1 -1
  101. package/vanilla/UiBadge.js +4 -4
  102. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  103. package/vanilla/UiBreadcrumbItem.js +3 -3
  104. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  105. package/vanilla/UiBreadcrumbs.js +1 -1
  106. package/vanilla/UiButton.d.ts +1 -1
  107. package/vanilla/UiButton.js +17 -17
  108. package/vanilla/UiCallout.d.ts +1 -1
  109. package/vanilla/UiCallout.js +13 -13
  110. package/vanilla/UiCard.d.ts +1 -1
  111. package/vanilla/UiCard.js +1 -1
  112. package/vanilla/UiCheckbox.d.ts +1 -1
  113. package/vanilla/UiCheckbox.js +6 -6
  114. package/vanilla/UiCluster.d.ts +1 -1
  115. package/vanilla/UiCluster.js +1 -1
  116. package/vanilla/UiCombobox.d.ts +1 -1
  117. package/vanilla/UiCombobox.js +48 -48
  118. package/vanilla/UiContainer.d.ts +1 -1
  119. package/vanilla/UiContainer.js +1 -1
  120. package/vanilla/UiContextMenu.d.ts +1 -1
  121. package/vanilla/UiContextMenu.js +1 -1
  122. package/vanilla/UiCover.d.ts +1 -1
  123. package/vanilla/UiCover.js +1 -1
  124. package/vanilla/UiDescriptionItem.d.ts +1 -1
  125. package/vanilla/UiDescriptionItem.js +4 -4
  126. package/vanilla/UiDescriptionList.d.ts +1 -1
  127. package/vanilla/UiDescriptionList.js +1 -1
  128. package/vanilla/UiDialog.d.ts +1 -1
  129. package/vanilla/UiDialog.js +7 -7
  130. package/vanilla/UiDisclosure.d.ts +1 -1
  131. package/vanilla/UiDisclosure.js +8 -8
  132. package/vanilla/UiEditable.d.ts +1 -1
  133. package/vanilla/UiEditable.js +11 -11
  134. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  135. package/vanilla/UiEditorBlockActions.js +3 -3
  136. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  137. package/vanilla/UiEditorChipEditor.js +4 -4
  138. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  139. package/vanilla/UiEditorCodeLanguage.js +7 -12
  140. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  141. package/vanilla/UiEditorImageToolbar.js +90 -95
  142. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  143. package/vanilla/UiEditorInsertTableGrid.js +7 -7
  144. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  145. package/vanilla/UiEditorLinkCard.js +13 -13
  146. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  147. package/vanilla/UiEditorLinkForm.js +32 -44
  148. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  149. package/vanilla/UiEditorMentionMenu.js +12 -12
  150. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  151. package/vanilla/UiEditorMentionMenuItem.js +4 -4
  152. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  153. package/vanilla/UiEditorSlashMenu.js +11 -11
  154. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  155. package/vanilla/UiEditorSlashMenuGroup.js +5 -5
  156. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  157. package/vanilla/UiEditorSlashMenuItem.js +4 -4
  158. package/vanilla/UiEditorSurface.d.ts +1 -1
  159. package/vanilla/UiEditorSurface.js +1 -1
  160. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  161. package/vanilla/UiEditorTableContextMenu.js +16 -16
  162. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  163. package/vanilla/UiEditorTableOverlay.js +18 -18
  164. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  165. package/vanilla/UiEditorTableToolbar.js +33 -33
  166. package/vanilla/UiEditorToolbar.d.ts +1 -1
  167. package/vanilla/UiEditorToolbar.js +1 -1
  168. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  169. package/vanilla/UiFloatingActionButton.js +1 -1
  170. package/vanilla/UiFormField.d.ts +1 -1
  171. package/vanilla/UiFormField.js +8 -8
  172. package/vanilla/UiGrid.d.ts +1 -1
  173. package/vanilla/UiGrid.js +1 -1
  174. package/vanilla/UiIcon.d.ts +1 -1
  175. package/vanilla/UiIcon.js +4 -4
  176. package/vanilla/UiIconButton.d.ts +1 -1
  177. package/vanilla/UiIconButton.js +4 -4
  178. package/vanilla/UiImage.d.ts +1 -1
  179. package/vanilla/UiImage.js +6 -6
  180. package/vanilla/UiInput.d.ts +1 -1
  181. package/vanilla/UiInput.js +1 -1
  182. package/vanilla/UiInputGroup.d.ts +1 -1
  183. package/vanilla/UiInputGroup.js +6 -6
  184. package/vanilla/UiList.d.ts +1 -1
  185. package/vanilla/UiList.js +1 -1
  186. package/vanilla/UiListItem.d.ts +1 -1
  187. package/vanilla/UiListItem.js +7 -7
  188. package/vanilla/UiListbox.d.ts +1 -1
  189. package/vanilla/UiListbox.js +12 -12
  190. package/vanilla/UiMenu.d.ts +1 -1
  191. package/vanilla/UiMenu.js +1 -1
  192. package/vanilla/UiMenuGroup.d.ts +1 -1
  193. package/vanilla/UiMenuGroup.js +4 -4
  194. package/vanilla/UiMenuItem.d.ts +1 -1
  195. package/vanilla/UiMenuItem.js +11 -11
  196. package/vanilla/UiMeter.d.ts +1 -1
  197. package/vanilla/UiMeter.js +8 -8
  198. package/vanilla/UiNavItem.d.ts +1 -1
  199. package/vanilla/UiNavItem.js +13 -13
  200. package/vanilla/UiPageHeader.d.ts +1 -1
  201. package/vanilla/UiPageHeader.js +8 -8
  202. package/vanilla/UiPopover.d.ts +1 -1
  203. package/vanilla/UiPopover.js +1 -1
  204. package/vanilla/UiRadio.d.ts +1 -1
  205. package/vanilla/UiRadio.js +6 -6
  206. package/vanilla/UiRadioGroup.d.ts +1 -1
  207. package/vanilla/UiRadioGroup.js +4 -4
  208. package/vanilla/UiReel.d.ts +1 -1
  209. package/vanilla/UiReel.js +1 -1
  210. package/vanilla/UiScrollArea.d.ts +1 -1
  211. package/vanilla/UiScrollArea.js +1 -1
  212. package/vanilla/UiSearchResultRow.d.ts +1 -1
  213. package/vanilla/UiSearchResultRow.js +8 -8
  214. package/vanilla/UiSearchShell.d.ts +1 -1
  215. package/vanilla/UiSearchShell.js +8 -8
  216. package/vanilla/UiSection.d.ts +1 -1
  217. package/vanilla/UiSection.js +8 -8
  218. package/vanilla/UiSelect.d.ts +1 -1
  219. package/vanilla/UiSelect.js +1 -1
  220. package/vanilla/UiSeparator.d.ts +1 -1
  221. package/vanilla/UiSeparator.js +1 -1
  222. package/vanilla/UiSidebar.d.ts +1 -1
  223. package/vanilla/UiSidebar.js +4 -4
  224. package/vanilla/UiSpinner.d.ts +1 -1
  225. package/vanilla/UiSpinner.js +2 -2
  226. package/vanilla/UiStack.d.ts +1 -1
  227. package/vanilla/UiStack.js +1 -1
  228. package/vanilla/UiStatusMessage.d.ts +1 -1
  229. package/vanilla/UiStatusMessage.js +7 -7
  230. package/vanilla/UiSwatch.d.ts +1 -1
  231. package/vanilla/UiSwatch.js +1 -1
  232. package/vanilla/UiSwitch.d.ts +1 -1
  233. package/vanilla/UiSwitch.js +6 -6
  234. package/vanilla/UiSwitcher.d.ts +1 -1
  235. package/vanilla/UiSwitcher.js +1 -1
  236. package/vanilla/UiTable.d.ts +1 -1
  237. package/vanilla/UiTable.js +1 -1
  238. package/vanilla/UiTabs.d.ts +1 -1
  239. package/vanilla/UiTabs.js +7 -7
  240. package/vanilla/UiText.d.ts +1 -1
  241. package/vanilla/UiText.js +1 -1
  242. package/vanilla/UiTextarea.d.ts +1 -1
  243. package/vanilla/UiTextarea.js +1 -1
  244. package/vanilla/UiToast.d.ts +1 -1
  245. package/vanilla/UiToast.js +5 -5
  246. package/vanilla/UiToastRegion.d.ts +1 -1
  247. package/vanilla/UiToastRegion.js +8 -8
  248. package/vanilla/UiTooltip.d.ts +1 -1
  249. package/vanilla/UiTooltip.js +9 -8
  250. package/vanilla/UiTopBar.d.ts +1 -1
  251. package/vanilla/UiTopBar.js +6 -6
  252. package/vanilla/UiTree.d.ts +1 -1
  253. package/vanilla/UiTree.js +1 -1
  254. package/vanilla/UiTreeItem.d.ts +1 -1
  255. package/vanilla/UiTreeItem.js +13 -13
  256. package/vue/UiActionBar.vue +8 -5
  257. package/vue/UiAffordanceScope.vue +1 -1
  258. package/vue/UiAvatar.vue +10 -11
  259. package/vue/UiAvatarGroup.vue +2 -3
  260. package/vue/UiBadge.vue +5 -3
  261. package/vue/UiBreadcrumbItem.vue +2 -3
  262. package/vue/UiBreadcrumbs.vue +1 -1
  263. package/vue/UiButton.vue +15 -13
  264. package/vue/UiCallout.vue +8 -15
  265. package/vue/UiCard.vue +1 -1
  266. package/vue/UiCheckbox.vue +5 -4
  267. package/vue/UiCluster.vue +1 -1
  268. package/vue/UiCombobox.vue +25 -27
  269. package/vue/UiContainer.vue +1 -1
  270. package/vue/UiContextMenu.vue +1 -1
  271. package/vue/UiCover.vue +1 -1
  272. package/vue/UiDescriptionItem.vue +1 -1
  273. package/vue/UiDescriptionList.vue +1 -1
  274. package/vue/UiDialog.vue +4 -3
  275. package/vue/UiDisclosure.vue +9 -8
  276. package/vue/UiEditable.vue +13 -9
  277. package/vue/UiEditorBlockActions.vue +5 -4
  278. package/vue/UiEditorChipEditor.vue +7 -9
  279. package/vue/UiEditorCodeLanguage.vue +2 -2
  280. package/vue/UiEditorImageToolbar.vue +25 -32
  281. package/vue/UiEditorInsertTableGrid.vue +1 -1
  282. package/vue/UiEditorLinkCard.vue +17 -20
  283. package/vue/UiEditorLinkForm.vue +21 -23
  284. package/vue/UiEditorMentionMenu.vue +9 -7
  285. package/vue/UiEditorMentionMenuItem.vue +5 -6
  286. package/vue/UiEditorSlashMenu.vue +3 -5
  287. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  288. package/vue/UiEditorSlashMenuItem.vue +5 -6
  289. package/vue/UiEditorSurface.vue +1 -1
  290. package/vue/UiEditorTableContextMenu.vue +4 -7
  291. package/vue/UiEditorTableOverlay.vue +26 -18
  292. package/vue/UiEditorTableToolbar.vue +23 -21
  293. package/vue/UiEditorToolbar.vue +1 -1
  294. package/vue/UiFloatingActionButton.vue +1 -1
  295. package/vue/UiFormField.vue +4 -3
  296. package/vue/UiGrid.vue +1 -1
  297. package/vue/UiIcon.vue +1 -1
  298. package/vue/UiIconButton.vue +4 -3
  299. package/vue/UiImage.vue +4 -7
  300. package/vue/UiInput.vue +1 -1
  301. package/vue/UiInputGroup.vue +7 -5
  302. package/vue/UiList.vue +1 -1
  303. package/vue/UiListItem.vue +10 -7
  304. package/vue/UiListbox.vue +3 -5
  305. package/vue/UiMenu.vue +1 -1
  306. package/vue/UiMenuGroup.vue +2 -3
  307. package/vue/UiMenuItem.vue +15 -10
  308. package/vue/UiMeter.vue +4 -5
  309. package/vue/UiNavItem.vue +19 -13
  310. package/vue/UiPageHeader.vue +8 -7
  311. package/vue/UiPopover.vue +1 -1
  312. package/vue/UiRadio.vue +10 -6
  313. package/vue/UiRadioGroup.vue +1 -1
  314. package/vue/UiReel.vue +1 -1
  315. package/vue/UiScrollArea.vue +1 -1
  316. package/vue/UiSearchResultRow.vue +11 -8
  317. package/vue/UiSearchShell.vue +1 -1
  318. package/vue/UiSection.vue +7 -4
  319. package/vue/UiSelect.vue +1 -1
  320. package/vue/UiSeparator.vue +1 -1
  321. package/vue/UiSidebar.vue +1 -1
  322. package/vue/UiSpinner.vue +1 -1
  323. package/vue/UiStack.vue +1 -1
  324. package/vue/UiStatusMessage.vue +10 -6
  325. package/vue/UiSwatch.vue +1 -1
  326. package/vue/UiSwitch.vue +10 -6
  327. package/vue/UiSwitcher.vue +1 -1
  328. package/vue/UiTable.vue +1 -1
  329. package/vue/UiTabs.vue +3 -3
  330. package/vue/UiText.vue +1 -1
  331. package/vue/UiTextarea.vue +1 -1
  332. package/vue/UiToast.vue +1 -1
  333. package/vue/UiToastRegion.vue +7 -5
  334. package/vue/UiTooltip.vue +10 -5
  335. package/vue/UiTopBar.vue +1 -1
  336. package/vue/UiTree.vue +1 -1
  337. package/vue/UiTreeItem.vue +14 -13
  338. package/vue/chunks/UiActionBar.js +4 -2
  339. package/vue/chunks/UiAffordanceScope.js +1 -1
  340. package/vue/chunks/UiAvatar.js +18 -12
  341. package/vue/chunks/UiAvatarGroup.js +15 -11
  342. package/vue/chunks/UiBadge.js +7 -3
  343. package/vue/chunks/UiBreadcrumbItem.js +10 -6
  344. package/vue/chunks/UiBreadcrumbs.js +1 -1
  345. package/vue/chunks/UiButton.js +10 -2
  346. package/vue/chunks/UiCallout.js +13 -3
  347. package/vue/chunks/UiCard.js +1 -1
  348. package/vue/chunks/UiCheckbox.js +35 -27
  349. package/vue/chunks/UiCluster.js +1 -1
  350. package/vue/chunks/UiCombobox.js +108 -74
  351. package/vue/chunks/UiContainer.js +1 -1
  352. package/vue/chunks/UiContextMenu.js +1 -1
  353. package/vue/chunks/UiCover.js +1 -1
  354. package/vue/chunks/UiDescriptionItem.js +1 -1
  355. package/vue/chunks/UiDescriptionList.js +1 -1
  356. package/vue/chunks/UiDialog.js +14 -10
  357. package/vue/chunks/UiDisclosure.js +3 -1
  358. package/vue/chunks/UiEditable.js +36 -24
  359. package/vue/chunks/UiEditorBlockActions.js +3 -1
  360. package/vue/chunks/UiEditorChipEditor.js +31 -22
  361. package/vue/chunks/UiEditorCodeLanguage.js +1 -1
  362. package/vue/chunks/UiEditorImageToolbar.js +45 -27
  363. package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
  364. package/vue/chunks/UiEditorLinkCard.js +58 -42
  365. package/vue/chunks/UiEditorLinkForm.js +110 -90
  366. package/vue/chunks/UiEditorMentionMenu.js +23 -14
  367. package/vue/chunks/UiEditorMentionMenuItem.js +6 -2
  368. package/vue/chunks/UiEditorSlashMenu.js +24 -16
  369. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  370. package/vue/chunks/UiEditorSlashMenuItem.js +10 -6
  371. package/vue/chunks/UiEditorSurface.js +1 -1
  372. package/vue/chunks/UiEditorTableContextMenu.js +65 -53
  373. package/vue/chunks/UiEditorTableOverlay.js +60 -40
  374. package/vue/chunks/UiEditorTableToolbar.js +100 -74
  375. package/vue/chunks/UiEditorToolbar.js +1 -1
  376. package/vue/chunks/UiFloatingActionButton.js +1 -1
  377. package/vue/chunks/UiFormField.js +7 -3
  378. package/vue/chunks/UiGrid.js +1 -1
  379. package/vue/chunks/UiIcon.js +1 -1
  380. package/vue/chunks/UiIconButton.js +11 -7
  381. package/vue/chunks/UiImage.js +5 -2
  382. package/vue/chunks/UiInput.js +1 -1
  383. package/vue/chunks/UiInputGroup.js +5 -2
  384. package/vue/chunks/UiList.js +1 -1
  385. package/vue/chunks/UiListItem.js +9 -3
  386. package/vue/chunks/UiListbox.js +17 -11
  387. package/vue/chunks/UiMenu.js +1 -1
  388. package/vue/chunks/UiMenuGroup.js +7 -3
  389. package/vue/chunks/UiMenuItem.js +7 -2
  390. package/vue/chunks/UiMeter.js +28 -16
  391. package/vue/chunks/UiNavItem.js +20 -6
  392. package/vue/chunks/UiPageHeader.js +4 -2
  393. package/vue/chunks/UiPopover.js +1 -1
  394. package/vue/chunks/UiRadio.js +32 -24
  395. package/vue/chunks/UiRadioGroup.js +1 -1
  396. package/vue/chunks/UiReel.js +1 -1
  397. package/vue/chunks/UiScrollArea.js +1 -1
  398. package/vue/chunks/UiSearchResultRow.js +6 -2
  399. package/vue/chunks/UiSearchShell.js +1 -1
  400. package/vue/chunks/UiSection.js +15 -7
  401. package/vue/chunks/UiSelect.js +1 -1
  402. package/vue/chunks/UiSeparator.js +1 -1
  403. package/vue/chunks/UiSidebar.js +1 -1
  404. package/vue/chunks/UiSpinner.js +1 -1
  405. package/vue/chunks/UiStack.js +1 -1
  406. package/vue/chunks/UiStatusMessage.js +13 -7
  407. package/vue/chunks/UiSwatch.js +1 -1
  408. package/vue/chunks/UiSwitch.js +33 -25
  409. package/vue/chunks/UiSwitcher.js +1 -1
  410. package/vue/chunks/UiTable.js +1 -1
  411. package/vue/chunks/UiTabs.js +21 -17
  412. package/vue/chunks/UiText.js +1 -1
  413. package/vue/chunks/UiTextarea.js +1 -1
  414. package/vue/chunks/UiToast.js +1 -1
  415. package/vue/chunks/UiToastRegion.js +39 -31
  416. package/vue/chunks/UiTooltip.js +11 -3
  417. package/vue/chunks/UiTopBar.js +1 -1
  418. package/vue/chunks/UiTree.js +1 -1
  419. package/vue/chunks/UiTreeItem.js +25 -15
  420. package/vue/chunks/_plugin-vue_export-helper.js +1 -0
  421. package/vue/components.css +25 -21
  422. package/vue/editor/LoomaEditor.d.ts +90 -32
  423. package/vue/editor/index.d.ts +1 -1
  424. package/vue/editor/index.js +332 -53
  425. package/vue/host.ts +4 -1
@@ -2,11 +2,13 @@ import "../../components/ui-editor-surface/ui-editor-surface.css";
2
2
  import "./looma-editor.css";
3
3
  import { type AnyExtension, type Editor, type JSONContent } from "@tiptap/core";
4
4
  import { type PropType, type VNode } from "vue";
5
- import { type LoomaSlashCommand, type LoomaMentionItem, type LoomaMentionProvider, type LoomaCodeLanguages } from "@threadlabs/looma/editor";
6
- import { type LoomaImageActivationDetail, type LoomaImageAttributeResolver, type LoomaImageSourceResolver, type LoomaImageRenditionErrorDetail } from "../../editor/image-delivery.js";
7
- import { type LoomaImageUploader } from "../../editor/image-uploads.js";
8
- import { type LoomaLinkResolve, type LoomaLinkSearch } from "../../editor/link-editing.js";
9
- export type { LoomaImageUploader, LoomaImageUploadResult } from "../../editor/image-uploads.js";
5
+ import { type LoomaSlashCommand, type LoomaMentionItem, type LoomaCodeLanguages } from "@threadlabs/looma/editor";
6
+ import { type LoomaImageActivationDetail, type LoomaImageAttributeResolver, type LoomaImageDescriptor, type LoomaImageSourceResolver, type LoomaImageRenditionErrorDetail } from "../../editor/image-delivery.js";
7
+ import { type LoomaImageUploadDetail } from "../../editor/image-uploads.js";
8
+ import { type LoomaResponder } from "../../editor/requests.js";
9
+ import { type LoomaLinkTarget } from "../../editor/link-editing.js";
10
+ export type { LoomaImageUploadDetail } from "../../editor/image-uploads.js";
11
+ export type { LoomaRequestInit, LoomaResponder } from "../../editor/requests.js";
10
12
  /**
11
13
  * Chooses whether formatting controls follow a selection, occupy persistent
12
14
  * editor chrome, or open from an app-owned button (`popover`, with a text-only
@@ -42,13 +44,63 @@ export interface LoomaEditorSelectionActionDetail {
42
44
  before: string;
43
45
  after: string;
44
46
  }
47
+ export type { LoomaLinkTarget } from "../../editor/link-editing.js";
48
+ /** The `slash-commands` request's detail: this editor's default commands. */
49
+ export interface LoomaSlashCommandsDetail {
50
+ defaults: LoomaSlashCommand[];
51
+ }
52
+ /** The `link-search` request's detail: what the author typed in the link field. */
53
+ export interface LoomaLinkSearchDetail {
54
+ query: string;
55
+ }
56
+ /** The `link-resolve` request's detail: a saved link's `href`. */
57
+ export interface LoomaLinkResolveDetail {
58
+ href: string;
59
+ }
60
+ /** The `mention-query` request's detail: what the author typed after `@`, and how many results show. */
61
+ export interface LoomaMentionQueryDetail {
62
+ query: string;
63
+ limit: number;
64
+ }
65
+ /**
66
+ * Answers `extensions` with Tiptap extensions added after Looma's.
67
+ * @lifecycle The editor asks when it mounts and again when a responder first appears, then rebuilds
68
+ * with the answer and keeps its document.
69
+ */
70
+ export type LoomaEditorExtensions = LoomaResponder<null, AnyExtension[]>;
71
+ /**
72
+ * Answers `slash-commands` with the commands the slash menu offers: the defaults, changed or
73
+ * extended. `null` keeps the defaults; an empty array offers none.
74
+ * @ownership The host owns its command objects and mutations; Looma asks again with fresh defaults
75
+ * when the prop changes or image uploads become available.
76
+ */
77
+ export type LoomaEditorSlashCommands = LoomaResponder<LoomaSlashCommandsDetail, LoomaSlashCommand[]>;
78
+ /**
79
+ * Answers `link-search` with host records for a link, without teaching the editor how they are stored.
80
+ * @ownership The host checks access and returns durable, openable `href` values.
81
+ * @failure A rejection leaves the document untouched and shows a retryable search error.
82
+ */
83
+ export type LoomaLinkSearch = LoomaResponder<LoomaLinkSearchDetail, LoomaLinkTarget[]>;
84
+ /**
85
+ * Answers `link-resolve` with a saved link's current record, so a renamed record shows its new label.
86
+ * @ownership The host resolves identity and access; Looma keeps the saved href as is.
87
+ * @failure A rejection or `null` leaves the original href visible and editable.
88
+ */
89
+ export type LoomaLinkResolve = LoomaResponder<LoomaLinkResolveDetail, LoomaLinkTarget>;
90
+ /**
91
+ * Answers `mention-query` with people to suggest after `@`; `null` falls back to `mentionItems`.
92
+ * @ownership The host owns directory access; Looma filters the answer and clamps it to `limit`.
93
+ * @failure A rejection shows an empty menu.
94
+ */
95
+ export type LoomaMentionQuery = LoomaResponder<LoomaMentionQueryDetail, LoomaMentionItem[]>;
45
96
  /**
46
- * Replace the slash inventory, or return retained defaults plus host commands.
47
- * @ownership The host owns its command objects and mutations; Looma supplies
48
- * fresh defaults and invokes this factory when the inventory prop changes.
97
+ * Answers `image-upload` with the image to insert for a pasted, dropped, or chosen file, or `null`
98
+ * to insert nothing. `progress(loaded, total)` drives the editor's progress status, and `signal`
99
+ * aborts when the author cancels.
100
+ * @ownership The application owns the upload and the returned `src`; Looma owns inserting it.
101
+ * @failure A rejection leaves the document unchanged and emits `uploadError`.
49
102
  */
50
- export type LoomaEditorSlashCommands = LoomaSlashCommand[] | ((defaults: LoomaSlashCommand[]) => LoomaSlashCommand[]);
51
- export type { LoomaLinkResolve, LoomaLinkSearch, LoomaLinkTarget } from "../../editor/link-editing.js";
103
+ export type LoomaImageUploader = LoomaResponder<LoomaImageUploadDetail, LoomaImageDescriptor>;
52
104
  /**
53
105
  * Turnkey Vue editor that composes Looma's framework-neutral Tiptap extensions
54
106
  * with declarative menus, image delivery, and table interaction chrome.
@@ -95,13 +147,14 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
95
147
  type: StringConstructor;
96
148
  default: string;
97
149
  };
150
+ /** Answers `extensions`: the application's Tiptap extensions, added after Looma's. */
98
151
  extensions: {
99
- type: PropType<AnyExtension[]>;
100
- default: () => never[];
152
+ type: PropType<LoomaEditorExtensions | undefined>;
153
+ default: undefined;
101
154
  };
102
- /** One inventory for the existing slash extension; an empty array intentionally supplies no commands. */
155
+ /** Answers `slash-commands`: the slash menu's commands, given the defaults. */
103
156
  slashCommands: {
104
- type: PropType<LoomaEditorSlashCommands>;
157
+ type: PropType<LoomaEditorSlashCommands | undefined>;
105
158
  default: undefined;
106
159
  };
107
160
  /** Override the lazy built-in catalog with application-owned code grammars. An empty object disables highlighting. */
@@ -113,8 +166,9 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
113
166
  type: PropType<LoomaMentionItem[]>;
114
167
  default: () => never[];
115
168
  };
116
- mentionProvider: {
117
- type: PropType<LoomaMentionProvider | undefined>;
169
+ /** Answers `mention-query`: people to suggest for what the author typed after `@`. */
170
+ mentionQuery: {
171
+ type: PropType<LoomaMentionQuery | undefined>;
118
172
  default: undefined;
119
173
  };
120
174
  mentionLimit: {
@@ -126,7 +180,7 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
126
180
  type: StringConstructor;
127
181
  default: string;
128
182
  };
129
- /** Host-owned search and identity lookup for links to application records. */
183
+ /** Answers `link-search` and `link-resolve`: host search and identity lookup for links to application records. */
130
184
  linkSearch: {
131
185
  type: PropType<LoomaLinkSearch | undefined>;
132
186
  default: undefined;
@@ -139,7 +193,8 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
139
193
  type: StringConstructor;
140
194
  default: string;
141
195
  };
142
- uploadImage: {
196
+ /** Answers `image-upload`: uploads a pasted, dropped, or chosen image and returns the image to insert. */
197
+ imageUpload: {
143
198
  type: PropType<LoomaImageUploader | undefined>;
144
199
  default: undefined;
145
200
  };
@@ -237,13 +292,14 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
237
292
  type: StringConstructor;
238
293
  default: string;
239
294
  };
295
+ /** Answers `extensions`: the application's Tiptap extensions, added after Looma's. */
240
296
  extensions: {
241
- type: PropType<AnyExtension[]>;
242
- default: () => never[];
297
+ type: PropType<LoomaEditorExtensions | undefined>;
298
+ default: undefined;
243
299
  };
244
- /** One inventory for the existing slash extension; an empty array intentionally supplies no commands. */
300
+ /** Answers `slash-commands`: the slash menu's commands, given the defaults. */
245
301
  slashCommands: {
246
- type: PropType<LoomaEditorSlashCommands>;
302
+ type: PropType<LoomaEditorSlashCommands | undefined>;
247
303
  default: undefined;
248
304
  };
249
305
  /** Override the lazy built-in catalog with application-owned code grammars. An empty object disables highlighting. */
@@ -255,8 +311,9 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
255
311
  type: PropType<LoomaMentionItem[]>;
256
312
  default: () => never[];
257
313
  };
258
- mentionProvider: {
259
- type: PropType<LoomaMentionProvider | undefined>;
314
+ /** Answers `mention-query`: people to suggest for what the author typed after `@`. */
315
+ mentionQuery: {
316
+ type: PropType<LoomaMentionQuery | undefined>;
260
317
  default: undefined;
261
318
  };
262
319
  mentionLimit: {
@@ -268,7 +325,7 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
268
325
  type: StringConstructor;
269
326
  default: string;
270
327
  };
271
- /** Host-owned search and identity lookup for links to application records. */
328
+ /** Answers `link-search` and `link-resolve`: host search and identity lookup for links to application records. */
272
329
  linkSearch: {
273
330
  type: PropType<LoomaLinkSearch | undefined>;
274
331
  default: undefined;
@@ -281,7 +338,8 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
281
338
  type: StringConstructor;
282
339
  default: string;
283
340
  };
284
- uploadImage: {
341
+ /** Answers `image-upload`: uploads a pasted, dropped, or chosen image and returns the image to insert. */
342
+ imageUpload: {
285
343
  type: PropType<LoomaImageUploader | undefined>;
286
344
  default: undefined;
287
345
  };
@@ -344,7 +402,7 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
344
402
  onImageActivate?: ((_detail: LoomaImageActivationDetail) => any) | undefined;
345
403
  onImageRenditionError?: ((_detail: LoomaImageRenditionErrorDetail) => any) | undefined;
346
404
  }>, {
347
- extensions: AnyExtension[];
405
+ extensions: LoomaEditorExtensions | undefined;
348
406
  editable: boolean;
349
407
  label: string;
350
408
  placeholder: string;
@@ -352,15 +410,15 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
352
410
  disableHighlight: boolean;
353
411
  codeLanguages: Readonly<Record<string, import("highlight.js").LanguageFn>> | null;
354
412
  modelValue: JSONContent;
413
+ slashCommands: LoomaEditorSlashCommands | undefined;
414
+ mentionQuery: LoomaMentionQuery | undefined;
415
+ linkSearch: LoomaLinkSearch | undefined;
416
+ linkResolve: LoomaLinkResolve | undefined;
417
+ imageUpload: LoomaImageUploader | undefined;
355
418
  contentDensity: "compact" | "comfortable";
356
- slashCommands: LoomaEditorSlashCommands;
357
419
  mentionItems: LoomaMentionItem[];
358
- mentionProvider: LoomaMentionProvider | undefined;
359
420
  mentionLimit: number;
360
- linkSearch: LoomaLinkSearch | undefined;
361
- linkResolve: LoomaLinkResolve | undefined;
362
421
  linkTargetLabel: string;
363
- uploadImage: LoomaImageUploader | undefined;
364
422
  resolveImageAttributes: LoomaImageAttributeResolver | undefined;
365
423
  resolveImageSource: LoomaImageSourceResolver | undefined;
366
424
  toolbarMode: LoomaEditorToolbarMode;
@@ -1,4 +1,4 @@
1
1
  export * from "@threadlabs/looma/editor";
2
2
  export * from "./primitives.js";
3
- export { LoomaEditor, type LoomaEditorToolbarMode, type LoomaEditorSelectionAction, type LoomaEditorSelectionActionDetail, type LoomaEditorRangeAction, type LoomaEditorRangeActionDetail, type LoomaEditorSlashCommands, type LoomaLinkTarget, type LoomaLinkSearch, type LoomaLinkResolve, type LoomaImageUploader, type LoomaImageUploadResult, } from "./LoomaEditor.js";
3
+ export { LoomaEditor, type LoomaEditorToolbarMode, type LoomaEditorSelectionAction, type LoomaEditorSelectionActionDetail, type LoomaEditorRangeAction, type LoomaEditorRangeActionDetail, type LoomaEditorExtensions, type LoomaEditorSlashCommands, type LoomaSlashCommandsDetail, type LoomaLinkTarget, type LoomaLinkSearch, type LoomaLinkSearchDetail, type LoomaLinkResolve, type LoomaLinkResolveDetail, type LoomaMentionQuery, type LoomaMentionQueryDetail, type LoomaImageUploader, type LoomaImageUploadDetail, type LoomaRequestInit, type LoomaResponder, } from "./LoomaEditor.js";
4
4
  export type { LoomaImageActivationDetail, LoomaImageActivationTrigger, LoomaImageAttributeResolver, LoomaImageSourceResolver, LoomaImageDescriptor, LoomaImageRenditionErrorDetail, LoomaImageRenditionAttributes, } from "../../editor/image-delivery.js";