@threadlabs/looma 0.23.20 → 0.23.22

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 (414) hide show
  1. package/components/shared/overlay.js +1 -1
  2. package/components/ui-combobox/ui-combobox.html +7 -8
  3. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +2 -2
  4. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +1 -1
  5. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +3 -3
  6. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
  7. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +4 -4
  8. package/components/ui-image/ui-image.html +177 -0
  9. package/components/ui-image/ui-image.js +107 -0
  10. package/components/ui-listbox/ui-listbox.html +1 -1
  11. package/components/ui-menu/ui-menu.js +1 -1
  12. package/components/ui-popover/ui-popover.js +4 -1
  13. package/components/ui-separator/ui-separator.html +18 -0
  14. package/components/ui-toast-region/ui-toast-region.html +1 -1
  15. package/dist/index.js +24 -23
  16. package/editor/chunks/extensions.js +633 -20
  17. package/editor/extensions/block-selection.d.ts +6 -0
  18. package/editor/extensions/expand.d.ts +31 -0
  19. package/editor/extensions/image.d.ts +12 -0
  20. package/editor/extensions/index.d.ts +4 -1
  21. package/editor/extensions/index.js +2 -2
  22. package/editor/extensions/preset.d.ts +8 -0
  23. package/editor/extensions/slash-command.d.ts +31 -3
  24. package/editor/extensions/table-of-contents.d.ts +58 -0
  25. package/editor/index.js +2 -2
  26. package/package.json +2 -2
  27. package/styles/ui-action-bar.css +1 -1
  28. package/styles/ui-affordance-scope.css +1 -1
  29. package/styles/ui-avatar-group.css +1 -1
  30. package/styles/ui-avatar.css +1 -1
  31. package/styles/ui-badge.css +1 -1
  32. package/styles/ui-breadcrumb-item.css +1 -1
  33. package/styles/ui-breadcrumbs.css +1 -1
  34. package/styles/ui-button.css +1 -1
  35. package/styles/ui-callout.css +1 -1
  36. package/styles/ui-card.css +1 -1
  37. package/styles/ui-checkbox.css +1 -1
  38. package/styles/ui-cluster.css +1 -1
  39. package/styles/ui-combobox.css +1 -1
  40. package/styles/ui-container.css +1 -1
  41. package/styles/ui-context-menu.css +1 -1
  42. package/styles/ui-cover.css +1 -1
  43. package/styles/ui-description-item.css +1 -1
  44. package/styles/ui-description-list.css +1 -1
  45. package/styles/ui-dialog.css +1 -1
  46. package/styles/ui-disclosure.css +1 -1
  47. package/styles/ui-editable.css +1 -1
  48. package/styles/ui-editor-insert-table-grid.css +1 -1
  49. package/styles/ui-editor-mention-menu-item.css +1 -1
  50. package/styles/ui-editor-mention-menu.css +1 -1
  51. package/styles/ui-editor-slash-menu-group.css +1 -1
  52. package/styles/ui-editor-slash-menu-item.css +1 -1
  53. package/styles/ui-editor-slash-menu.css +1 -1
  54. package/styles/ui-editor-table-context-menu.css +1 -1
  55. package/styles/ui-editor-table-overlay.css +1 -1
  56. package/styles/ui-editor-table-toolbar.css +1 -1
  57. package/styles/ui-editor-toolbar.css +1 -1
  58. package/styles/ui-floating-action-button.css +1 -1
  59. package/styles/ui-form-field.css +1 -1
  60. package/styles/ui-grid.css +1 -1
  61. package/styles/ui-icon-button.css +1 -1
  62. package/styles/ui-icon.css +1 -1
  63. package/styles/ui-image.css +153 -0
  64. package/styles/ui-input-group.css +1 -1
  65. package/styles/ui-input.css +1 -1
  66. package/styles/ui-list-item.css +1 -1
  67. package/styles/ui-list.css +1 -1
  68. package/styles/ui-listbox.css +1 -1
  69. package/styles/ui-menu-group.css +1 -1
  70. package/styles/ui-menu-item.css +1 -1
  71. package/styles/ui-menu.css +1 -1
  72. package/styles/ui-meter.css +1 -1
  73. package/styles/ui-nav-item.css +1 -1
  74. package/styles/ui-page-header.css +1 -1
  75. package/styles/ui-popover.css +1 -1
  76. package/styles/ui-radio-group.css +1 -1
  77. package/styles/ui-radio.css +1 -1
  78. package/styles/ui-reel.css +1 -1
  79. package/styles/ui-scroll-area.css +1 -1
  80. package/styles/ui-search-result-row.css +1 -1
  81. package/styles/ui-search-shell.css +1 -1
  82. package/styles/ui-section.css +1 -1
  83. package/styles/ui-select.css +1 -1
  84. package/styles/ui-separator.css +17 -1
  85. package/styles/ui-sidebar.css +1 -1
  86. package/styles/ui-spinner.css +1 -1
  87. package/styles/ui-stack.css +1 -1
  88. package/styles/ui-status-message.css +1 -1
  89. package/styles/ui-switch.css +1 -1
  90. package/styles/ui-switcher.css +1 -1
  91. package/styles/ui-table.css +1 -1
  92. package/styles/ui-tabs.css +1 -1
  93. package/styles/ui-text.css +1 -1
  94. package/styles/ui-textarea.css +1 -1
  95. package/styles/ui-toast-region.css +1 -1
  96. package/styles/ui-toast.css +1 -1
  97. package/styles/ui-tooltip.css +1 -1
  98. package/styles/ui-top-bar.css +1 -1
  99. package/styles/ui-tree-item.css +1 -1
  100. package/styles/ui-tree.css +1 -1
  101. package/vanilla/UiActionBar.d.ts +1 -1
  102. package/vanilla/UiActionBar.js +1 -1
  103. package/vanilla/UiAffordanceScope.d.ts +1 -1
  104. package/vanilla/UiAffordanceScope.js +1 -1
  105. package/vanilla/UiAvatar.d.ts +1 -1
  106. package/vanilla/UiAvatar.js +1 -1
  107. package/vanilla/UiAvatarGroup.d.ts +1 -1
  108. package/vanilla/UiAvatarGroup.js +1 -1
  109. package/vanilla/UiBadge.d.ts +1 -1
  110. package/vanilla/UiBadge.js +1 -1
  111. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  112. package/vanilla/UiBreadcrumbItem.js +1 -1
  113. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  114. package/vanilla/UiBreadcrumbs.js +1 -1
  115. package/vanilla/UiButton.d.ts +1 -1
  116. package/vanilla/UiButton.js +1 -1
  117. package/vanilla/UiCallout.d.ts +1 -1
  118. package/vanilla/UiCallout.js +1 -1
  119. package/vanilla/UiCard.d.ts +1 -1
  120. package/vanilla/UiCard.js +1 -1
  121. package/vanilla/UiCheckbox.d.ts +1 -1
  122. package/vanilla/UiCheckbox.js +1 -1
  123. package/vanilla/UiCluster.d.ts +1 -1
  124. package/vanilla/UiCluster.js +1 -1
  125. package/vanilla/UiCombobox.d.ts +1 -1
  126. package/vanilla/UiCombobox.js +181 -167
  127. package/vanilla/UiContainer.d.ts +1 -1
  128. package/vanilla/UiContainer.js +1 -1
  129. package/vanilla/UiContextMenu.d.ts +1 -1
  130. package/vanilla/UiContextMenu.js +1 -1
  131. package/vanilla/UiCover.d.ts +1 -1
  132. package/vanilla/UiCover.js +1 -1
  133. package/vanilla/UiDescriptionItem.d.ts +1 -1
  134. package/vanilla/UiDescriptionItem.js +1 -1
  135. package/vanilla/UiDescriptionList.d.ts +1 -1
  136. package/vanilla/UiDescriptionList.js +1 -1
  137. package/vanilla/UiDialog.d.ts +1 -1
  138. package/vanilla/UiDialog.js +1 -1
  139. package/vanilla/UiDisclosure.d.ts +1 -1
  140. package/vanilla/UiDisclosure.js +1 -1
  141. package/vanilla/UiEditable.d.ts +1 -1
  142. package/vanilla/UiEditable.js +1 -1
  143. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  144. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  145. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  146. package/vanilla/UiEditorMentionMenu.js +19 -13
  147. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  148. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  149. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  150. package/vanilla/UiEditorSlashMenu.js +17 -13
  151. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  152. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  153. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  154. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  155. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  156. package/vanilla/UiEditorTableContextMenu.js +26 -20
  157. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  158. package/vanilla/UiEditorTableOverlay.js +69 -65
  159. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  160. package/vanilla/UiEditorTableToolbar.js +72 -64
  161. package/vanilla/UiEditorToolbar.d.ts +1 -1
  162. package/vanilla/UiEditorToolbar.js +1 -1
  163. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  164. package/vanilla/UiFloatingActionButton.js +1 -1
  165. package/vanilla/UiFormField.d.ts +1 -1
  166. package/vanilla/UiFormField.js +1 -1
  167. package/vanilla/UiGrid.d.ts +1 -1
  168. package/vanilla/UiGrid.js +1 -1
  169. package/vanilla/UiIcon.d.ts +1 -1
  170. package/vanilla/UiIcon.js +1 -1
  171. package/vanilla/UiIconButton.d.ts +1 -1
  172. package/vanilla/UiIconButton.js +1 -1
  173. package/vanilla/UiImage.d.ts +21 -0
  174. package/vanilla/UiImage.js +84 -0
  175. package/vanilla/UiInput.d.ts +1 -1
  176. package/vanilla/UiInput.js +1 -1
  177. package/vanilla/UiInputGroup.d.ts +1 -1
  178. package/vanilla/UiInputGroup.js +1 -1
  179. package/vanilla/UiList.d.ts +1 -1
  180. package/vanilla/UiList.js +1 -1
  181. package/vanilla/UiListItem.d.ts +1 -1
  182. package/vanilla/UiListItem.js +1 -1
  183. package/vanilla/UiListbox.d.ts +1 -1
  184. package/vanilla/UiListbox.js +33 -31
  185. package/vanilla/UiMenu.d.ts +1 -1
  186. package/vanilla/UiMenu.js +1 -1
  187. package/vanilla/UiMenuGroup.d.ts +1 -1
  188. package/vanilla/UiMenuGroup.js +1 -1
  189. package/vanilla/UiMenuItem.d.ts +1 -1
  190. package/vanilla/UiMenuItem.js +1 -1
  191. package/vanilla/UiMeter.d.ts +1 -1
  192. package/vanilla/UiMeter.js +1 -1
  193. package/vanilla/UiNavItem.d.ts +1 -1
  194. package/vanilla/UiNavItem.js +1 -1
  195. package/vanilla/UiPageHeader.d.ts +1 -1
  196. package/vanilla/UiPageHeader.js +1 -1
  197. package/vanilla/UiPopover.d.ts +1 -1
  198. package/vanilla/UiPopover.js +1 -1
  199. package/vanilla/UiRadio.d.ts +1 -1
  200. package/vanilla/UiRadio.js +1 -1
  201. package/vanilla/UiRadioGroup.d.ts +1 -1
  202. package/vanilla/UiRadioGroup.js +1 -1
  203. package/vanilla/UiReel.d.ts +1 -1
  204. package/vanilla/UiReel.js +1 -1
  205. package/vanilla/UiScrollArea.d.ts +1 -1
  206. package/vanilla/UiScrollArea.js +1 -1
  207. package/vanilla/UiSearchResultRow.d.ts +1 -1
  208. package/vanilla/UiSearchResultRow.js +1 -1
  209. package/vanilla/UiSearchShell.d.ts +1 -1
  210. package/vanilla/UiSearchShell.js +1 -1
  211. package/vanilla/UiSection.d.ts +1 -1
  212. package/vanilla/UiSection.js +1 -1
  213. package/vanilla/UiSelect.d.ts +1 -1
  214. package/vanilla/UiSelect.js +1 -1
  215. package/vanilla/UiSeparator.d.ts +3 -1
  216. package/vanilla/UiSeparator.js +11 -3
  217. package/vanilla/UiSidebar.d.ts +1 -1
  218. package/vanilla/UiSidebar.js +1 -1
  219. package/vanilla/UiSpinner.d.ts +1 -1
  220. package/vanilla/UiSpinner.js +1 -1
  221. package/vanilla/UiStack.d.ts +1 -1
  222. package/vanilla/UiStack.js +1 -1
  223. package/vanilla/UiStatusMessage.d.ts +1 -1
  224. package/vanilla/UiStatusMessage.js +1 -1
  225. package/vanilla/UiSwitch.d.ts +1 -1
  226. package/vanilla/UiSwitch.js +1 -1
  227. package/vanilla/UiSwitcher.d.ts +1 -1
  228. package/vanilla/UiSwitcher.js +1 -1
  229. package/vanilla/UiTable.d.ts +1 -1
  230. package/vanilla/UiTable.js +1 -1
  231. package/vanilla/UiTabs.d.ts +1 -1
  232. package/vanilla/UiTabs.js +1 -1
  233. package/vanilla/UiText.d.ts +1 -1
  234. package/vanilla/UiText.js +1 -1
  235. package/vanilla/UiTextarea.d.ts +1 -1
  236. package/vanilla/UiTextarea.js +1 -1
  237. package/vanilla/UiToast.d.ts +1 -1
  238. package/vanilla/UiToast.js +1 -1
  239. package/vanilla/UiToastRegion.d.ts +1 -1
  240. package/vanilla/UiToastRegion.js +13 -11
  241. package/vanilla/UiTooltip.d.ts +1 -1
  242. package/vanilla/UiTooltip.js +1 -1
  243. package/vanilla/UiTopBar.d.ts +1 -1
  244. package/vanilla/UiTopBar.js +1 -1
  245. package/vanilla/UiTree.d.ts +1 -1
  246. package/vanilla/UiTree.js +1 -1
  247. package/vanilla/UiTreeItem.d.ts +1 -1
  248. package/vanilla/UiTreeItem.js +1 -1
  249. package/vanilla/index.js +1 -0
  250. package/vue/UiActionBar.vue +1 -1
  251. package/vue/UiAffordanceScope.vue +1 -1
  252. package/vue/UiAvatar.vue +1 -1
  253. package/vue/UiAvatarGroup.vue +2 -2
  254. package/vue/UiBadge.vue +1 -1
  255. package/vue/UiBreadcrumbItem.vue +1 -1
  256. package/vue/UiBreadcrumbs.vue +1 -1
  257. package/vue/UiButton.vue +1 -1
  258. package/vue/UiCallout.vue +1 -1
  259. package/vue/UiCard.vue +1 -1
  260. package/vue/UiCheckbox.vue +1 -1
  261. package/vue/UiCluster.vue +1 -1
  262. package/vue/UiCombobox.vue +1 -1
  263. package/vue/UiContainer.vue +1 -1
  264. package/vue/UiContextMenu.vue +1 -1
  265. package/vue/UiCover.vue +1 -1
  266. package/vue/UiDescriptionItem.vue +1 -1
  267. package/vue/UiDescriptionList.vue +1 -1
  268. package/vue/UiDialog.vue +1 -1
  269. package/vue/UiDisclosure.vue +1 -1
  270. package/vue/UiEditable.vue +1 -1
  271. package/vue/UiEditorInsertTableGrid.vue +1 -1
  272. package/vue/UiEditorMentionMenu.vue +1 -1
  273. package/vue/UiEditorMentionMenuItem.vue +1 -1
  274. package/vue/UiEditorSlashMenu.vue +1 -1
  275. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  276. package/vue/UiEditorSlashMenuItem.vue +1 -1
  277. package/vue/UiEditorTableContextMenu.vue +1 -1
  278. package/vue/UiEditorTableOverlay.vue +1 -1
  279. package/vue/UiEditorTableToolbar.vue +1 -1
  280. package/vue/UiEditorToolbar.vue +1 -1
  281. package/vue/UiFloatingActionButton.vue +1 -1
  282. package/vue/UiFormField.vue +1 -1
  283. package/vue/UiGrid.vue +1 -1
  284. package/vue/UiIcon.vue +1 -1
  285. package/vue/UiIconButton.vue +1 -1
  286. package/vue/UiImage.d.ts +100 -0
  287. package/vue/UiImage.js +2 -0
  288. package/vue/UiImage.vue +463 -0
  289. package/vue/UiInput.vue +1 -1
  290. package/vue/UiInputGroup.vue +1 -1
  291. package/vue/UiList.vue +1 -1
  292. package/vue/UiListItem.vue +1 -1
  293. package/vue/UiListbox.vue +1 -1
  294. package/vue/UiMenu.vue +1 -1
  295. package/vue/UiMenuGroup.vue +1 -1
  296. package/vue/UiMenuItem.vue +1 -1
  297. package/vue/UiMeter.vue +1 -1
  298. package/vue/UiNavItem.vue +1 -1
  299. package/vue/UiPageHeader.vue +1 -1
  300. package/vue/UiPopover.vue +1 -1
  301. package/vue/UiRadio.vue +1 -1
  302. package/vue/UiRadioGroup.vue +1 -1
  303. package/vue/UiReel.vue +1 -1
  304. package/vue/UiScrollArea.vue +1 -1
  305. package/vue/UiSearchResultRow.vue +1 -1
  306. package/vue/UiSearchShell.vue +1 -1
  307. package/vue/UiSection.vue +1 -1
  308. package/vue/UiSelect.vue +1 -1
  309. package/vue/UiSeparator.d.ts +18 -0
  310. package/vue/UiSeparator.vue +67 -2
  311. package/vue/UiSidebar.d.ts +1 -1
  312. package/vue/UiSidebar.vue +1 -1
  313. package/vue/UiSpinner.vue +1 -1
  314. package/vue/UiStack.vue +1 -1
  315. package/vue/UiStatusMessage.vue +1 -1
  316. package/vue/UiSwitch.vue +1 -1
  317. package/vue/UiSwitcher.vue +1 -1
  318. package/vue/UiTable.vue +1 -1
  319. package/vue/UiTabs.vue +1 -1
  320. package/vue/UiText.vue +1 -1
  321. package/vue/UiTextarea.vue +1 -1
  322. package/vue/UiToast.vue +1 -1
  323. package/vue/UiToastRegion.vue +1 -1
  324. package/vue/UiTooltip.vue +1 -1
  325. package/vue/UiTopBar.vue +1 -1
  326. package/vue/UiTree.vue +1 -1
  327. package/vue/UiTreeItem.vue +1 -1
  328. package/vue/chunks/UiActionBar.js +1 -1
  329. package/vue/chunks/UiAffordanceScope.js +1 -1
  330. package/vue/chunks/UiAvatar.js +1 -1
  331. package/vue/chunks/UiAvatarGroup.js +2 -2
  332. package/vue/chunks/UiBadge.js +1 -1
  333. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  334. package/vue/chunks/UiBreadcrumbs.js +1 -1
  335. package/vue/chunks/UiButton.js +1 -1
  336. package/vue/chunks/UiCallout.js +1 -1
  337. package/vue/chunks/UiCard.js +1 -1
  338. package/vue/chunks/UiCheckbox.js +1 -1
  339. package/vue/chunks/UiCluster.js +1 -1
  340. package/vue/chunks/UiCombobox.js +1 -1
  341. package/vue/chunks/UiContainer.js +1 -1
  342. package/vue/chunks/UiContextMenu.js +1 -1
  343. package/vue/chunks/UiCover.js +1 -1
  344. package/vue/chunks/UiDescriptionItem.js +1 -1
  345. package/vue/chunks/UiDescriptionList.js +1 -1
  346. package/vue/chunks/UiDialog.js +1 -1
  347. package/vue/chunks/UiDisclosure.js +1 -1
  348. package/vue/chunks/UiEditable.js +1 -1
  349. package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
  350. package/vue/chunks/UiEditorMentionMenu.js +1 -1
  351. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  352. package/vue/chunks/UiEditorSlashMenu.js +1 -1
  353. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  354. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  355. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  356. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  357. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  358. package/vue/chunks/UiEditorToolbar.js +1 -1
  359. package/vue/chunks/UiFloatingActionButton.js +1 -1
  360. package/vue/chunks/UiFormField.js +1 -1
  361. package/vue/chunks/UiGrid.js +1 -1
  362. package/vue/chunks/UiIcon.js +1 -1
  363. package/vue/chunks/UiIconButton.js +1 -1
  364. package/vue/chunks/UiImage.js +313 -0
  365. package/vue/chunks/UiInput.js +1 -1
  366. package/vue/chunks/UiInputGroup.js +1 -1
  367. package/vue/chunks/UiList.js +1 -1
  368. package/vue/chunks/UiListItem.js +1 -1
  369. package/vue/chunks/UiListbox.js +1 -1
  370. package/vue/chunks/UiMenu.js +1 -1
  371. package/vue/chunks/UiMenuGroup.js +1 -1
  372. package/vue/chunks/UiMenuItem.js +1 -1
  373. package/vue/chunks/UiMeter.js +1 -1
  374. package/vue/chunks/UiNavItem.js +1 -1
  375. package/vue/chunks/UiPageHeader.js +1 -1
  376. package/vue/chunks/UiPopover.js +1 -1
  377. package/vue/chunks/UiRadio.js +1 -1
  378. package/vue/chunks/UiRadioGroup.js +1 -1
  379. package/vue/chunks/UiReel.js +1 -1
  380. package/vue/chunks/UiScrollArea.js +1 -1
  381. package/vue/chunks/UiSearchResultRow.js +1 -1
  382. package/vue/chunks/UiSearchShell.js +1 -1
  383. package/vue/chunks/UiSection.js +1 -1
  384. package/vue/chunks/UiSelect.js +1 -1
  385. package/vue/chunks/UiSeparator.js +79 -22
  386. package/vue/chunks/UiSidebar.js +1 -1
  387. package/vue/chunks/UiSpinner.js +1 -1
  388. package/vue/chunks/UiStack.js +1 -1
  389. package/vue/chunks/UiStatusMessage.js +1 -1
  390. package/vue/chunks/UiSwitch.js +1 -1
  391. package/vue/chunks/UiSwitcher.js +1 -1
  392. package/vue/chunks/UiTable.js +1 -1
  393. package/vue/chunks/UiTabs.js +1 -1
  394. package/vue/chunks/UiText.js +1 -1
  395. package/vue/chunks/UiTextarea.js +1 -1
  396. package/vue/chunks/UiToast.js +1 -1
  397. package/vue/chunks/UiToastRegion.js +1 -1
  398. package/vue/chunks/UiTooltip.js +1 -1
  399. package/vue/chunks/UiTopBar.js +1 -1
  400. package/vue/chunks/UiTree.js +1 -1
  401. package/vue/chunks/UiTreeItem.js +1 -1
  402. package/vue/components.css +1469 -1309
  403. package/vue/editor/LoomaEditor.d.ts +19 -2
  404. package/vue/editor/divider.d.ts +6 -0
  405. package/vue/editor/expand.d.ts +7 -0
  406. package/vue/editor/image-controls.d.ts +19 -0
  407. package/vue/editor/image-delivery.d.ts +2 -2
  408. package/vue/editor/image.d.ts +7 -0
  409. package/vue/editor/index.d.ts +1 -1
  410. package/vue/editor/index.js +1188 -52
  411. package/vue/editor/table-of-contents.d.ts +7 -0
  412. package/vue/host.ts +1 -1
  413. package/vue/index.d.ts +1 -0
  414. package/vue/index.js +2 -1
@@ -1,7 +1,7 @@
1
1
  import "./looma-editor.css";
2
2
  import type { AnyExtension, Editor, JSONContent } from "@tiptap/core";
3
3
  import { type PropType, type VNode } from "vue";
4
- import { type LoomaMentionItem, type LoomaMentionProvider, type LoomaCodeLanguages } from "@threadlabs/looma/editor";
4
+ import { type LoomaSlashCommand, type LoomaMentionItem, type LoomaMentionProvider, type LoomaCodeLanguages } from "@threadlabs/looma/editor";
5
5
  import { type LoomaImageActivationDetail, type LoomaImageAttributeResolver, type LoomaImageDescriptor, type LoomaImageRenditionErrorDetail } from "./image-delivery.js";
6
6
  /**
7
7
  * Host upload result normalized into the editor's durable image descriptor.
@@ -27,6 +27,12 @@ export type LoomaImageUploader = (file: File) => Promise<string | LoomaImageUplo
27
27
  * as well as a selection; it does not alter document commands or stored content.
28
28
  */
29
29
  export type LoomaEditorToolbarMode = "bubble" | "sticky" | "popover" | "contextual";
30
+ /**
31
+ * Replace the slash inventory, or return retained defaults plus host commands.
32
+ * @ownership The host owns its command objects and mutations; Looma supplies
33
+ * fresh defaults and invokes this factory when the inventory prop changes.
34
+ */
35
+ export type LoomaEditorSlashCommands = LoomaSlashCommand[] | ((defaults: LoomaSlashCommand[]) => LoomaSlashCommand[]);
30
36
  /** A destination supplied by the host application, such as a page or record. */
31
37
  export interface LoomaLinkTarget {
32
38
  id: string;
@@ -91,6 +97,11 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
91
97
  type: PropType<AnyExtension[]>;
92
98
  default: () => never[];
93
99
  };
100
+ /** One inventory for the existing slash extension; an empty array intentionally supplies no commands. */
101
+ slashCommands: {
102
+ type: PropType<LoomaEditorSlashCommands>;
103
+ default: undefined;
104
+ };
94
105
  /** Override the lazy built-in catalog with application-owned code grammars. An empty object disables highlighting. */
95
106
  codeLanguages: {
96
107
  type: PropType<LoomaCodeLanguages | null>;
@@ -202,6 +213,11 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
202
213
  type: PropType<AnyExtension[]>;
203
214
  default: () => never[];
204
215
  };
216
+ /** One inventory for the existing slash extension; an empty array intentionally supplies no commands. */
217
+ slashCommands: {
218
+ type: PropType<LoomaEditorSlashCommands>;
219
+ default: undefined;
220
+ };
205
221
  /** Override the lazy built-in catalog with application-owned code grammars. An empty object disables highlighting. */
206
222
  codeLanguages: {
207
223
  type: PropType<LoomaCodeLanguages | null>;
@@ -271,9 +287,9 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
271
287
  default: boolean;
272
288
  };
273
289
  }>> & Readonly<{
290
+ onUpdate?: ((_value: JSONContent) => any) | undefined;
274
291
  "onUpdate:modelValue"?: ((_value: JSONContent) => any) | undefined;
275
292
  "onUpdate:toolbarOpen"?: ((_value: boolean) => any) | undefined;
276
- onUpdate?: ((_value: JSONContent) => any) | undefined;
277
293
  onReady?: ((_editor: Editor) => any) | undefined;
278
294
  onUploadError?: ((_error: unknown, _file: File) => any) | undefined;
279
295
  onImageActivate?: ((_detail: LoomaImageActivationDetail) => any) | undefined;
@@ -287,6 +303,7 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
287
303
  modelValue: JSONContent;
288
304
  editable: boolean;
289
305
  extensions: AnyExtension[];
306
+ slashCommands: LoomaEditorSlashCommands;
290
307
  mentionItems: LoomaMentionItem[];
291
308
  mentionProvider: LoomaMentionProvider | undefined;
292
309
  mentionLimit: number;
@@ -0,0 +1,6 @@
1
+ import type { NodeViewRenderer } from "@tiptap/core";
2
+ /** A pointer-sized document divider using the shared separator's selected state.
3
+ * @lifecycle The editor owns the node and deletion; destroying the view releases
4
+ * its Vue app and editability subscription.
5
+ */
6
+ export declare const dividerNodeView: NodeViewRenderer;
@@ -0,0 +1,7 @@
1
+ import type { NodeViewRenderer } from "@tiptap/core";
2
+ /**
3
+ * Composes a section's transient disclosure and saved settings from shared controls.
4
+ * @lifecycle The content DOM remains owned by ProseMirror; Vue owns surrounding
5
+ * controls. Unmount removes the app, listeners, and editor subscription.
6
+ */
7
+ export declare const expandNodeView: NodeViewRenderer;
@@ -0,0 +1,19 @@
1
+ import type { Editor } from "@tiptap/core";
2
+ import { type PropType } from "vue";
3
+ /** One contextual editing bar; sizing belongs to the image's corner handles.
4
+ * @contract Placement applies immediately. Alt text is a secondary draft with
5
+ * Save/Cancel; editing another node cancels it rather than changing that node.
6
+ */
7
+ export declare const ImageControls: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ editor: {
9
+ type: PropType<Editor>;
10
+ required: true;
11
+ };
12
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ editor: {
16
+ type: PropType<Editor>;
17
+ required: true;
18
+ };
19
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,5 @@
1
1
  import { Extension, type Editor, type JSONContent } from "@tiptap/core";
2
+ export { normalizeImageDimension } from "../../editor/extensions/image.js";
2
3
  /** What caused an overlay to open or close. */
3
4
  type OverlayTrigger = "keyboard" | "pointer" | "programmatic";
4
5
  /**
@@ -49,8 +50,8 @@ export interface LoomaImageRenditionErrorDetail extends LoomaImageDescriptor {
49
50
  }
50
51
  interface LoomaImageDeliveryExtensionOptions {
51
52
  resolveAttributes: () => LoomaImageAttributeResolver | undefined;
53
+ isEditable: () => boolean;
52
54
  }
53
- export declare function normalizeImageDimension(value: unknown): number | undefined;
54
55
  export declare function imageDescriptorFromAttrs(attrs: Record<string, unknown>): LoomaImageDescriptor | null;
55
56
  export declare function createLoomaImageDeliveryController(options: LoomaImageDeliveryExtensionOptions): {
56
57
  extension: Extension;
@@ -58,4 +59,3 @@ export declare function createLoomaImageDeliveryController(options: LoomaImageDe
58
59
  reset: (editor: Editor) => void;
59
60
  };
60
61
  export declare function imageUploadContent(image: LoomaImageDescriptor): JSONContent;
61
- export {};
@@ -0,0 +1,7 @@
1
+ import type { NodeViewRenderer } from "@tiptap/core";
2
+ /** Projects the shared image's resize intent into a single document transaction.
3
+ * @ownership Delivery decorations belong to the inner image, never the figure;
4
+ * persisted attributes remain independent of host renditions and drag previews.
5
+ * @lifecycle Each atom owns a Vue app and an editability subscription.
6
+ */
7
+ export declare const imageNodeView: NodeViewRenderer;
@@ -1,4 +1,4 @@
1
1
  export * from "@threadlabs/looma/editor";
2
2
  export * from "./primitives.js";
3
- export { LoomaEditor, type LoomaEditorToolbarMode, type LoomaLinkTarget, type LoomaLinkSearch, type LoomaLinkResolve, type LoomaImageUploader, type LoomaImageUploadResult, } from "./LoomaEditor.js";
3
+ export { LoomaEditor, type LoomaEditorToolbarMode, type LoomaEditorSlashCommands, type LoomaLinkTarget, type LoomaLinkSearch, type LoomaLinkResolve, type LoomaImageUploader, type LoomaImageUploadResult, } from "./LoomaEditor.js";
4
4
  export type { LoomaImageActivationDetail, LoomaImageActivationTrigger, LoomaImageAttributeResolver, LoomaImageDescriptor, LoomaImageRenditionErrorDetail, LoomaImageRenditionAttributes, } from "./image-delivery.js";