@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.
- package/components/ui-editor-code-language/ui-editor-code-language.html +1 -1
- package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html +1 -2
- package/components/ui-editor-link-form/ui-editor-link-form.html +2 -3
- package/components/ui-tooltip/ui-tooltip.html +5 -2
- package/dist/index.js +1 -1
- package/editor/image-uploads.d.ts +23 -15
- package/editor/link-editing.d.ts +4 -4
- package/editor/requests.d.ts +43 -0
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +7 -2
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +6 -6
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +7 -7
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +4 -4
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +4 -4
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +3 -3
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +17 -17
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +13 -13
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +6 -6
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +48 -48
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +4 -4
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +7 -7
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +8 -8
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +11 -11
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +3 -3
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +4 -4
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +7 -12
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +90 -95
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +7 -7
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +13 -13
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +32 -44
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +12 -12
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +4 -4
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +11 -11
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +5 -5
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +4 -4
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +16 -16
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +18 -18
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +33 -33
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +8 -8
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +4 -4
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +4 -4
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +6 -6
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +6 -6
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +7 -7
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +12 -12
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +4 -4
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +11 -11
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +8 -8
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +13 -13
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +8 -8
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +6 -6
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +4 -4
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +8 -8
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +8 -8
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +8 -8
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +4 -4
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +7 -7
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +6 -6
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +7 -7
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +5 -5
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +8 -8
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +9 -8
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +6 -6
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +13 -13
- package/vue/UiActionBar.vue +8 -5
- package/vue/UiAffordanceScope.vue +1 -1
- package/vue/UiAvatar.vue +10 -11
- package/vue/UiAvatarGroup.vue +2 -3
- package/vue/UiBadge.vue +5 -3
- package/vue/UiBreadcrumbItem.vue +2 -3
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +15 -13
- package/vue/UiCallout.vue +8 -15
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.vue +5 -4
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.vue +25 -27
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.vue +4 -3
- package/vue/UiDisclosure.vue +9 -8
- package/vue/UiEditable.vue +13 -9
- package/vue/UiEditorBlockActions.vue +5 -4
- package/vue/UiEditorChipEditor.vue +7 -9
- package/vue/UiEditorCodeLanguage.vue +2 -2
- package/vue/UiEditorImageToolbar.vue +25 -32
- package/vue/UiEditorInsertTableGrid.vue +1 -1
- package/vue/UiEditorLinkCard.vue +17 -20
- package/vue/UiEditorLinkForm.vue +21 -23
- package/vue/UiEditorMentionMenu.vue +9 -7
- package/vue/UiEditorMentionMenuItem.vue +5 -6
- package/vue/UiEditorSlashMenu.vue +3 -5
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +5 -6
- package/vue/UiEditorSurface.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +4 -7
- package/vue/UiEditorTableOverlay.vue +26 -18
- package/vue/UiEditorTableToolbar.vue +23 -21
- package/vue/UiEditorToolbar.vue +1 -1
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +4 -3
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.vue +4 -3
- package/vue/UiImage.vue +4 -7
- package/vue/UiInput.vue +1 -1
- package/vue/UiInputGroup.vue +7 -5
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +10 -7
- package/vue/UiListbox.vue +3 -5
- package/vue/UiMenu.vue +1 -1
- package/vue/UiMenuGroup.vue +2 -3
- package/vue/UiMenuItem.vue +15 -10
- package/vue/UiMeter.vue +4 -5
- package/vue/UiNavItem.vue +19 -13
- package/vue/UiPageHeader.vue +8 -7
- package/vue/UiPopover.vue +1 -1
- package/vue/UiRadio.vue +10 -6
- package/vue/UiRadioGroup.vue +1 -1
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +1 -1
- package/vue/UiSearchResultRow.vue +11 -8
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +7 -4
- package/vue/UiSelect.vue +1 -1
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.vue +1 -1
- package/vue/UiSpinner.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +10 -6
- package/vue/UiSwatch.vue +1 -1
- package/vue/UiSwitch.vue +10 -6
- package/vue/UiSwitcher.vue +1 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +3 -3
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +1 -1
- package/vue/UiToast.vue +1 -1
- package/vue/UiToastRegion.vue +7 -5
- package/vue/UiTooltip.vue +10 -5
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +1 -1
- package/vue/UiTreeItem.vue +14 -13
- package/vue/chunks/UiActionBar.js +4 -2
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +18 -12
- package/vue/chunks/UiAvatarGroup.js +15 -11
- package/vue/chunks/UiBadge.js +7 -3
- package/vue/chunks/UiBreadcrumbItem.js +10 -6
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +10 -2
- package/vue/chunks/UiCallout.js +13 -3
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +35 -27
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +108 -74
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +14 -10
- package/vue/chunks/UiDisclosure.js +3 -1
- package/vue/chunks/UiEditable.js +36 -24
- package/vue/chunks/UiEditorBlockActions.js +3 -1
- package/vue/chunks/UiEditorChipEditor.js +31 -22
- package/vue/chunks/UiEditorCodeLanguage.js +1 -1
- package/vue/chunks/UiEditorImageToolbar.js +45 -27
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkCard.js +58 -42
- package/vue/chunks/UiEditorLinkForm.js +110 -90
- package/vue/chunks/UiEditorMentionMenu.js +23 -14
- package/vue/chunks/UiEditorMentionMenuItem.js +6 -2
- package/vue/chunks/UiEditorSlashMenu.js +24 -16
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +10 -6
- package/vue/chunks/UiEditorSurface.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +65 -53
- package/vue/chunks/UiEditorTableOverlay.js +60 -40
- package/vue/chunks/UiEditorTableToolbar.js +100 -74
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +7 -3
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +11 -7
- package/vue/chunks/UiImage.js +5 -2
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +5 -2
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +9 -3
- package/vue/chunks/UiListbox.js +17 -11
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuGroup.js +7 -3
- package/vue/chunks/UiMenuItem.js +7 -2
- package/vue/chunks/UiMeter.js +28 -16
- package/vue/chunks/UiNavItem.js +20 -6
- package/vue/chunks/UiPageHeader.js +4 -2
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +32 -24
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +6 -2
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +15 -7
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +13 -7
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +33 -25
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +21 -17
- package/vue/chunks/UiText.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +39 -31
- package/vue/chunks/UiTooltip.js +11 -3
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +25 -15
- package/vue/chunks/_plugin-vue_export-helper.js +1 -0
- package/vue/components.css +25 -21
- package/vue/editor/LoomaEditor.d.ts +90 -32
- package/vue/editor/index.d.ts +1 -1
- package/vue/editor/index.js +332 -53
- 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
|
|
6
|
-
import { type LoomaImageActivationDetail, type LoomaImageAttributeResolver, type LoomaImageSourceResolver, type LoomaImageRenditionErrorDetail } from "../../editor/image-delivery.js";
|
|
7
|
-
import { type
|
|
8
|
-
import { type
|
|
9
|
-
|
|
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
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
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
|
|
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<
|
|
100
|
-
default:
|
|
152
|
+
type: PropType<LoomaEditorExtensions | undefined>;
|
|
153
|
+
default: undefined;
|
|
101
154
|
};
|
|
102
|
-
/**
|
|
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
|
-
|
|
117
|
-
|
|
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
|
-
/**
|
|
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
|
-
|
|
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<
|
|
242
|
-
default:
|
|
297
|
+
type: PropType<LoomaEditorExtensions | undefined>;
|
|
298
|
+
default: undefined;
|
|
243
299
|
};
|
|
244
|
-
/**
|
|
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
|
-
|
|
259
|
-
|
|
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
|
-
/**
|
|
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
|
-
|
|
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:
|
|
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;
|
package/vue/editor/index.d.ts
CHANGED
|
@@ -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
|
|
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";
|