@threadlabs/looma 0.29.18 → 0.30.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-combobox/ui-combobox.html +47 -2
- package/components/ui-combobox/ui-combobox.js +2 -1
- package/components/ui-cover/ui-cover.html +2 -5
- package/components/ui-form-field/ui-form-field.html +1 -1
- package/components/ui-menu/ui-menu.js +2 -1
- package/components/ui-popover/ui-popover.js +2 -1
- package/components/ui-reel/ui-reel.html +7 -10
- package/components/ui-switcher/ui-switcher.html +17 -22
- package/components/ui-tooltip/ui-tooltip.js +2 -0
- package/dist/index.js +1 -1
- 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 +3 -6
- 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 +8 -11
- 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 +23 -28
- 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 +1 -1
- 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 +10 -1
- package/vanilla/UiActionBar.js +3 -2
- package/vanilla/UiAffordanceScope.d.ts +10 -1
- package/vanilla/UiAffordanceScope.js +3 -2
- package/vanilla/UiAvatar.d.ts +10 -1
- package/vanilla/UiAvatar.js +3 -2
- package/vanilla/UiAvatarGroup.d.ts +10 -1
- package/vanilla/UiAvatarGroup.js +3 -2
- package/vanilla/UiBadge.d.ts +10 -1
- package/vanilla/UiBadge.js +3 -2
- package/vanilla/UiBreadcrumbItem.d.ts +10 -1
- package/vanilla/UiBreadcrumbItem.js +3 -2
- package/vanilla/UiBreadcrumbs.d.ts +10 -1
- package/vanilla/UiBreadcrumbs.js +3 -2
- package/vanilla/UiButton.d.ts +10 -1
- package/vanilla/UiButton.js +3 -2
- package/vanilla/UiCallout.d.ts +10 -1
- package/vanilla/UiCallout.js +3 -2
- package/vanilla/UiCard.d.ts +10 -1
- package/vanilla/UiCard.js +3 -2
- package/vanilla/UiCheckbox.d.ts +10 -1
- package/vanilla/UiCheckbox.js +3 -2
- package/vanilla/UiCluster.d.ts +10 -1
- package/vanilla/UiCluster.js +3 -2
- package/vanilla/UiCombobox.d.ts +14 -1
- package/vanilla/UiCombobox.js +34 -11
- package/vanilla/UiContainer.d.ts +10 -1
- package/vanilla/UiContainer.js +3 -2
- package/vanilla/UiContextMenu.d.ts +10 -1
- package/vanilla/UiContextMenu.js +3 -2
- package/vanilla/UiCover.d.ts +10 -1
- package/vanilla/UiCover.js +3 -2
- package/vanilla/UiDescriptionItem.d.ts +10 -1
- package/vanilla/UiDescriptionItem.js +3 -2
- package/vanilla/UiDescriptionList.d.ts +10 -1
- package/vanilla/UiDescriptionList.js +3 -2
- package/vanilla/UiDialog.d.ts +10 -1
- package/vanilla/UiDialog.js +3 -2
- package/vanilla/UiDisclosure.d.ts +10 -1
- package/vanilla/UiDisclosure.js +3 -2
- package/vanilla/UiEditable.d.ts +10 -1
- package/vanilla/UiEditable.js +3 -2
- package/vanilla/UiEditorBlockActions.d.ts +10 -1
- package/vanilla/UiEditorBlockActions.js +3 -2
- package/vanilla/UiEditorChipEditor.d.ts +10 -1
- package/vanilla/UiEditorChipEditor.js +3 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +10 -1
- package/vanilla/UiEditorCodeLanguage.js +3 -2
- package/vanilla/UiEditorImageToolbar.d.ts +10 -1
- package/vanilla/UiEditorImageToolbar.js +3 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +10 -1
- package/vanilla/UiEditorInsertTableGrid.js +3 -2
- package/vanilla/UiEditorLinkCard.d.ts +10 -1
- package/vanilla/UiEditorLinkCard.js +3 -2
- package/vanilla/UiEditorLinkForm.d.ts +10 -1
- package/vanilla/UiEditorLinkForm.js +3 -2
- package/vanilla/UiEditorMentionMenu.d.ts +10 -1
- package/vanilla/UiEditorMentionMenu.js +3 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +10 -1
- package/vanilla/UiEditorMentionMenuItem.js +3 -2
- package/vanilla/UiEditorSlashMenu.d.ts +10 -1
- package/vanilla/UiEditorSlashMenu.js +3 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +10 -1
- package/vanilla/UiEditorSlashMenuGroup.js +3 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +10 -1
- package/vanilla/UiEditorSlashMenuItem.js +3 -2
- package/vanilla/UiEditorSurface.d.ts +10 -1
- package/vanilla/UiEditorSurface.js +3 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +10 -1
- package/vanilla/UiEditorTableContextMenu.js +3 -2
- package/vanilla/UiEditorTableOverlay.d.ts +10 -1
- package/vanilla/UiEditorTableOverlay.js +3 -2
- package/vanilla/UiEditorTableToolbar.d.ts +10 -1
- package/vanilla/UiEditorTableToolbar.js +3 -2
- package/vanilla/UiEditorToolbar.d.ts +10 -1
- package/vanilla/UiEditorToolbar.js +3 -2
- package/vanilla/UiFloatingActionButton.d.ts +10 -1
- package/vanilla/UiFloatingActionButton.js +3 -2
- package/vanilla/UiFormField.d.ts +10 -1
- package/vanilla/UiFormField.js +4 -3
- package/vanilla/UiGrid.d.ts +10 -1
- package/vanilla/UiGrid.js +3 -2
- package/vanilla/UiIcon.d.ts +10 -1
- package/vanilla/UiIcon.js +3 -2
- package/vanilla/UiIconButton.d.ts +10 -1
- package/vanilla/UiIconButton.js +3 -2
- package/vanilla/UiImage.d.ts +10 -1
- package/vanilla/UiImage.js +3 -2
- package/vanilla/UiInput.d.ts +10 -1
- package/vanilla/UiInput.js +3 -2
- package/vanilla/UiInputGroup.d.ts +10 -1
- package/vanilla/UiInputGroup.js +3 -2
- package/vanilla/UiList.d.ts +10 -1
- package/vanilla/UiList.js +3 -2
- package/vanilla/UiListItem.d.ts +10 -1
- package/vanilla/UiListItem.js +3 -2
- package/vanilla/UiListbox.d.ts +10 -1
- package/vanilla/UiListbox.js +3 -2
- package/vanilla/UiMenu.d.ts +10 -1
- package/vanilla/UiMenu.js +3 -2
- package/vanilla/UiMenuGroup.d.ts +10 -1
- package/vanilla/UiMenuGroup.js +3 -2
- package/vanilla/UiMenuItem.d.ts +10 -1
- package/vanilla/UiMenuItem.js +3 -2
- package/vanilla/UiMeter.d.ts +10 -1
- package/vanilla/UiMeter.js +3 -2
- package/vanilla/UiNavItem.d.ts +10 -1
- package/vanilla/UiNavItem.js +3 -2
- package/vanilla/UiPageHeader.d.ts +10 -1
- package/vanilla/UiPageHeader.js +3 -2
- package/vanilla/UiPopover.d.ts +10 -1
- package/vanilla/UiPopover.js +3 -2
- package/vanilla/UiRadio.d.ts +10 -1
- package/vanilla/UiRadio.js +3 -2
- package/vanilla/UiRadioGroup.d.ts +10 -1
- package/vanilla/UiRadioGroup.js +3 -2
- package/vanilla/UiReel.d.ts +10 -1
- package/vanilla/UiReel.js +3 -2
- package/vanilla/UiScrollArea.d.ts +10 -1
- package/vanilla/UiScrollArea.js +3 -2
- package/vanilla/UiSearchResultRow.d.ts +10 -1
- package/vanilla/UiSearchResultRow.js +3 -2
- package/vanilla/UiSearchShell.d.ts +10 -1
- package/vanilla/UiSearchShell.js +3 -2
- package/vanilla/UiSection.d.ts +10 -1
- package/vanilla/UiSection.js +3 -2
- package/vanilla/UiSelect.d.ts +10 -1
- package/vanilla/UiSelect.js +3 -2
- package/vanilla/UiSeparator.d.ts +10 -1
- package/vanilla/UiSeparator.js +3 -2
- package/vanilla/UiSidebar.d.ts +10 -1
- package/vanilla/UiSidebar.js +3 -2
- package/vanilla/UiSpinner.d.ts +10 -1
- package/vanilla/UiSpinner.js +3 -2
- package/vanilla/UiStack.d.ts +10 -1
- package/vanilla/UiStack.js +3 -2
- package/vanilla/UiStatusMessage.d.ts +10 -1
- package/vanilla/UiStatusMessage.js +3 -2
- package/vanilla/UiSwatch.d.ts +10 -1
- package/vanilla/UiSwatch.js +3 -2
- package/vanilla/UiSwitch.d.ts +10 -1
- package/vanilla/UiSwitch.js +3 -2
- package/vanilla/UiSwitcher.d.ts +10 -1
- package/vanilla/UiSwitcher.js +4 -3
- package/vanilla/UiTable.d.ts +10 -1
- package/vanilla/UiTable.js +3 -2
- package/vanilla/UiTabs.d.ts +10 -1
- package/vanilla/UiTabs.js +3 -2
- package/vanilla/UiText.d.ts +10 -1
- package/vanilla/UiText.js +3 -2
- package/vanilla/UiTextarea.d.ts +10 -1
- package/vanilla/UiTextarea.js +3 -2
- package/vanilla/UiToast.d.ts +10 -1
- package/vanilla/UiToast.js +3 -2
- package/vanilla/UiToastRegion.d.ts +10 -1
- package/vanilla/UiToastRegion.js +3 -2
- package/vanilla/UiTooltip.d.ts +10 -1
- package/vanilla/UiTooltip.js +3 -2
- package/vanilla/UiTopBar.d.ts +10 -1
- package/vanilla/UiTopBar.js +3 -2
- package/vanilla/UiTree.d.ts +10 -1
- package/vanilla/UiTree.js +3 -2
- package/vanilla/UiTreeItem.d.ts +10 -1
- package/vanilla/UiTreeItem.js +3 -2
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +2 -2
- package/vue/UiAvatar.vue +2 -2
- package/vue/UiAvatarGroup.vue +2 -2
- package/vue/UiBadge.vue +2 -2
- package/vue/UiBreadcrumbItem.vue +2 -2
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +2 -2
- package/vue/UiCallout.vue +2 -2
- package/vue/UiCard.vue +2 -2
- package/vue/UiCheckbox.vue +2 -2
- package/vue/UiCluster.vue +2 -2
- package/vue/UiCombobox.d.ts +36 -13
- package/vue/UiCombobox.vue +130 -4
- package/vue/UiContainer.vue +2 -2
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +4 -7
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +2 -2
- package/vue/UiDialog.vue +2 -2
- package/vue/UiDisclosure.vue +2 -2
- package/vue/UiEditable.vue +2 -2
- package/vue/UiEditorBlockActions.vue +1 -1
- package/vue/UiEditorChipEditor.vue +1 -1
- package/vue/UiEditorCodeLanguage.vue +1 -1
- package/vue/UiEditorImageToolbar.vue +7 -4
- package/vue/UiEditorInsertTableGrid.vue +1 -1
- package/vue/UiEditorLinkCard.vue +1 -1
- package/vue/UiEditorLinkForm.vue +45 -45
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +1 -1
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorSurface.vue +2 -2
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +1 -1
- package/vue/UiEditorTableToolbar.vue +1 -1
- package/vue/UiEditorToolbar.vue +2 -2
- package/vue/UiFloatingActionButton.vue +2 -2
- package/vue/UiFormField.d.ts +1 -1
- package/vue/UiFormField.vue +3 -3
- package/vue/UiGrid.vue +2 -2
- package/vue/UiIcon.vue +2 -2
- package/vue/UiIconButton.vue +2 -2
- package/vue/UiImage.vue +2 -2
- package/vue/UiInput.vue +2 -2
- package/vue/UiInputGroup.vue +2 -2
- package/vue/UiList.vue +2 -2
- package/vue/UiListItem.vue +2 -2
- package/vue/UiListbox.vue +1 -1
- package/vue/UiMenu.vue +2 -2
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.vue +2 -2
- package/vue/UiMeter.vue +2 -2
- package/vue/UiNavItem.vue +2 -2
- package/vue/UiPageHeader.vue +2 -2
- package/vue/UiPopover.vue +2 -2
- package/vue/UiRadio.vue +2 -2
- package/vue/UiRadioGroup.vue +2 -2
- package/vue/UiReel.vue +9 -12
- package/vue/UiScrollArea.vue +3 -3
- package/vue/UiSearchResultRow.vue +2 -2
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +2 -2
- package/vue/UiSelect.vue +2 -2
- package/vue/UiSeparator.vue +2 -2
- package/vue/UiSidebar.vue +2 -2
- package/vue/UiSpinner.vue +2 -2
- package/vue/UiStack.vue +2 -2
- package/vue/UiStatusMessage.vue +2 -2
- package/vue/UiSwatch.vue +2 -2
- package/vue/UiSwitch.vue +2 -2
- package/vue/UiSwitcher.vue +23 -27
- package/vue/UiTable.vue +2 -2
- package/vue/UiTabs.vue +2 -2
- package/vue/UiText.vue +2 -2
- package/vue/UiTextarea.vue +2 -2
- package/vue/UiToast.vue +2 -2
- package/vue/UiToastRegion.vue +2 -2
- package/vue/UiTooltip.vue +2 -2
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +2 -2
- package/vue/UiTreeItem.vue +2 -2
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +2 -2
- package/vue/chunks/UiAvatar.js +2 -2
- package/vue/chunks/UiAvatarGroup.js +2 -2
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +2 -2
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +2 -2
- package/vue/chunks/UiCallout.js +2 -2
- package/vue/chunks/UiCard.js +2 -2
- package/vue/chunks/UiCheckbox.js +2 -2
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +117 -5
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +2 -2
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +2 -2
- package/vue/chunks/UiDialog.js +2 -2
- package/vue/chunks/UiDisclosure.js +3 -3
- package/vue/chunks/UiEditable.js +2 -2
- package/vue/chunks/UiEditorImageToolbar.js +3 -2
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +68 -71
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.js +2 -2
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +2 -2
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +2 -2
- package/vue/chunks/UiFloatingActionButton.js +2 -2
- package/vue/chunks/UiFormField.js +3 -3
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +2 -2
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiImage.js +2 -2
- package/vue/chunks/UiInput.js +2 -2
- package/vue/chunks/UiInputGroup.js +2 -2
- package/vue/chunks/UiList.js +2 -2
- package/vue/chunks/UiListItem.js +2 -2
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +2 -2
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +2 -2
- package/vue/chunks/UiMeter.js +2 -2
- package/vue/chunks/UiNavItem.js +2 -2
- package/vue/chunks/UiPageHeader.js +2 -2
- package/vue/chunks/UiPopover.js +2 -2
- package/vue/chunks/UiRadio.js +2 -2
- package/vue/chunks/UiRadioGroup.js +2 -2
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiScrollArea.js +4 -4
- package/vue/chunks/UiSearchResultRow.js +2 -2
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +2 -2
- package/vue/chunks/UiSelect.js +2 -2
- package/vue/chunks/UiSeparator.js +2 -2
- package/vue/chunks/UiSidebar.js +2 -2
- package/vue/chunks/UiSpinner.js +2 -2
- package/vue/chunks/UiStack.js +2 -2
- package/vue/chunks/UiStatusMessage.js +2 -2
- package/vue/chunks/UiSwatch.js +2 -2
- package/vue/chunks/UiSwitch.js +2 -2
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTable.js +2 -2
- package/vue/chunks/UiTabs.js +2 -2
- package/vue/chunks/UiText.js +2 -2
- package/vue/chunks/UiTextarea.js +2 -2
- package/vue/chunks/UiToast.js +2 -2
- package/vue/chunks/UiToastRegion.js +2 -2
- package/vue/chunks/UiTooltip.js +2 -2
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +2 -2
- package/vue/chunks/UiTreeItem.js +2 -2
- package/vue/chunks/_plugin-vue_export-helper.js +13 -3
- package/vue/components.css +69 -76
- package/vue/editor/index.js +169 -17
- package/vue/host.ts +9 -5
package/vue/editor/index.js
CHANGED
|
@@ -6,12 +6,12 @@ import { Editor as Editor$1 } from "@tiptap/vue-3";
|
|
|
6
6
|
import { AllSelection, NodeSelection, Plugin, PluginKey, TextSelection } from "@tiptap/pm/state";
|
|
7
7
|
import { Decoration, DecorationSet } from "@tiptap/pm/view";
|
|
8
8
|
import { createLowlight } from "lowlight";
|
|
9
|
-
import { RequestEvent,
|
|
9
|
+
import { RequestEvent, componentRegistry } from "@nextwebwg/html-next/runtime";
|
|
10
10
|
import "@tiptap/pm/tables";
|
|
11
11
|
import "@tiptap/pm/transform";
|
|
12
12
|
import { closeHistory } from "@tiptap/pm/history";
|
|
13
13
|
import { DOMParser, DOMSerializer, Fragment as Fragment$1 } from "@tiptap/pm/model";
|
|
14
|
-
import { IndexedList, NONCONFORMING, acceptProps, armElement, attachGeneratedController, buildTemplate, checkBoolean, checkConstrained, checkFormat, checkInteger, checkNumber, checkObject, checkSelected, checkString, clearRegion, computedCycle, detailCheck, dispatchDeclared, dispose, fillSlot, formatOf, hostState, keywordFormat, manageProps, project, readIndex, readMember, readonlyView, readsChanged, rec, replaceRoot, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute } from "@nextwebwg/html-next/generated-runtime";
|
|
14
|
+
import { IndexedList, NONCONFORMING, acceptProps, armElement, attachGeneratedController, buildTemplate, checkBoolean, checkConstrained, checkFormat, checkInteger, checkNumber, checkObject, checkSelected, checkString, clearRegion, computedCycle, defineComponent as defineComponent$1, detailCheck, dispatchDeclared, dispose, fillSlot, formatOf, hostState, keywordFormat, manageProps, project, readIndex, readMember, readonlyView, readsChanged, rec, replaceRoot, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute } from "@nextwebwg/html-next/generated-runtime";
|
|
15
15
|
export * from "@threadlabs/looma/editor";
|
|
16
16
|
//#region src/vue/editor/primitives.ts
|
|
17
17
|
/** Each Vue editor component's element tag, for tooling that enumerates them. */
|
|
@@ -3859,6 +3859,22 @@ function createUiButton(options = {}, html) {
|
|
|
3859
3859
|
manageProps(I);
|
|
3860
3860
|
return element;
|
|
3861
3861
|
}
|
|
3862
|
+
defineComponent$1("ui-button", createUiButton, [
|
|
3863
|
+
"align",
|
|
3864
|
+
"as",
|
|
3865
|
+
"disabled",
|
|
3866
|
+
"href",
|
|
3867
|
+
"loading",
|
|
3868
|
+
"pending",
|
|
3869
|
+
"rel",
|
|
3870
|
+
"shape",
|
|
3871
|
+
"size",
|
|
3872
|
+
"stretch",
|
|
3873
|
+
"target",
|
|
3874
|
+
"tone",
|
|
3875
|
+
"type",
|
|
3876
|
+
"variant"
|
|
3877
|
+
]);
|
|
3862
3878
|
//#endregion
|
|
3863
3879
|
//#region components/shared/overlay.js
|
|
3864
3880
|
function stateFor(document) {
|
|
@@ -4651,6 +4667,7 @@ function createUiAffordanceScope(options = {}, html) {
|
|
|
4651
4667
|
manageProps(I);
|
|
4652
4668
|
return element;
|
|
4653
4669
|
}
|
|
4670
|
+
defineComponent$1("ui-affordance-scope", createUiAffordanceScope, ["guide", "nearRadius"]);
|
|
4654
4671
|
//#endregion
|
|
4655
4672
|
//#region vanilla/UiCluster.js
|
|
4656
4673
|
var T0$14 = [
|
|
@@ -4853,6 +4870,15 @@ function createUiCluster(options = {}, html) {
|
|
|
4853
4870
|
manageProps(I);
|
|
4854
4871
|
return element;
|
|
4855
4872
|
}
|
|
4873
|
+
defineComponent$1("ui-cluster", createUiCluster, [
|
|
4874
|
+
"align",
|
|
4875
|
+
"fixed",
|
|
4876
|
+
"gap",
|
|
4877
|
+
"justify",
|
|
4878
|
+
"padding",
|
|
4879
|
+
"paddingEnd",
|
|
4880
|
+
"wrap"
|
|
4881
|
+
]);
|
|
4856
4882
|
//#endregion
|
|
4857
4883
|
//#region components/shared/authoring.js
|
|
4858
4884
|
var DEV = (() => {
|
|
@@ -5085,7 +5111,7 @@ function createUiFormField(options = {}, html) {
|
|
|
5085
5111
|
}
|
|
5086
5112
|
if (r.f1 === void 0) {
|
|
5087
5113
|
r.f1 = 1;
|
|
5088
|
-
const at = fillSlot(r.a1, r.e1, "
|
|
5114
|
+
const at = fillSlot(r.a1, r.e1, "labelAction", J, false, void 0, d);
|
|
5089
5115
|
if (Array.isArray(at)) (r.z ??= []).push(() => {
|
|
5090
5116
|
at[0].l.delete(at[1]);
|
|
5091
5117
|
dispose(at[1]);
|
|
@@ -5181,6 +5207,11 @@ function createUiFormField(options = {}, html) {
|
|
|
5181
5207
|
manageProps(I);
|
|
5182
5208
|
return element;
|
|
5183
5209
|
}
|
|
5210
|
+
defineComponent$1("ui-form-field", createUiFormField, [
|
|
5211
|
+
"disabled",
|
|
5212
|
+
"invalid",
|
|
5213
|
+
"required"
|
|
5214
|
+
]);
|
|
5184
5215
|
//#endregion
|
|
5185
5216
|
//#region vanilla/UiIcon.js
|
|
5186
5217
|
var T0$12 = [
|
|
@@ -6602,6 +6633,7 @@ function createUiIcon(options = {}, html) {
|
|
|
6602
6633
|
manageProps(I);
|
|
6603
6634
|
return element;
|
|
6604
6635
|
}
|
|
6636
|
+
defineComponent$1("ui-icon", createUiIcon, ["name", "tone"]);
|
|
6605
6637
|
//#endregion
|
|
6606
6638
|
//#region components/ui-icon-button/ui-icon-button.js
|
|
6607
6639
|
function connect$8(host) {
|
|
@@ -6912,6 +6944,20 @@ function createUiIconButton(options = {}, html) {
|
|
|
6912
6944
|
manageProps(I);
|
|
6913
6945
|
return element;
|
|
6914
6946
|
}
|
|
6947
|
+
defineComponent$1("ui-icon-button", createUiIconButton, [
|
|
6948
|
+
"anticipatory",
|
|
6949
|
+
"disabled",
|
|
6950
|
+
"guide",
|
|
6951
|
+
"label",
|
|
6952
|
+
"loading",
|
|
6953
|
+
"matchButton",
|
|
6954
|
+
"pending",
|
|
6955
|
+
"revealed",
|
|
6956
|
+
"round",
|
|
6957
|
+
"size",
|
|
6958
|
+
"tone",
|
|
6959
|
+
"variant"
|
|
6960
|
+
]);
|
|
6915
6961
|
//#endregion
|
|
6916
6962
|
//#region vanilla/UiList.js
|
|
6917
6963
|
var T0$10 = [
|
|
@@ -7169,6 +7215,12 @@ function createUiList(options = {}, html) {
|
|
|
7169
7215
|
manageProps(I);
|
|
7170
7216
|
return element;
|
|
7171
7217
|
}
|
|
7218
|
+
defineComponent$1("ui-list", createUiList, [
|
|
7219
|
+
"as",
|
|
7220
|
+
"density",
|
|
7221
|
+
"layout",
|
|
7222
|
+
"markers"
|
|
7223
|
+
]);
|
|
7172
7224
|
//#endregion
|
|
7173
7225
|
//#region components/shared/menu-navigation.js
|
|
7174
7226
|
var itemSelector = "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"]";
|
|
@@ -7276,7 +7328,7 @@ function connect$7(host) {
|
|
|
7276
7328
|
if (!anchor) return;
|
|
7277
7329
|
anchor.removeEventListener("click", onAnchorClick);
|
|
7278
7330
|
for (const [name, value] of Object.entries(anchorAria ?? {})) if (value === null) anchor.removeAttribute(name);
|
|
7279
|
-
else anchor.setAttribute(name, value);
|
|
7331
|
+
else anchor.setAttribute(name, name === "aria-expanded" ? "false" : value);
|
|
7280
7332
|
anchor = null;
|
|
7281
7333
|
anchorAria = null;
|
|
7282
7334
|
};
|
|
@@ -7651,6 +7703,15 @@ function createUiMenu(options = {}, html) {
|
|
|
7651
7703
|
manageProps(I);
|
|
7652
7704
|
return element;
|
|
7653
7705
|
}
|
|
7706
|
+
defineComponent$1("ui-menu", createUiMenu, [
|
|
7707
|
+
"density",
|
|
7708
|
+
"for",
|
|
7709
|
+
"icons",
|
|
7710
|
+
"inline",
|
|
7711
|
+
"open",
|
|
7712
|
+
"placement",
|
|
7713
|
+
"size"
|
|
7714
|
+
]);
|
|
7654
7715
|
//#endregion
|
|
7655
7716
|
//#region components/ui-menu-item/ui-menu-item.js
|
|
7656
7717
|
function radioScope(item) {
|
|
@@ -8248,6 +8309,14 @@ function createUiMenuItem(options = {}, html) {
|
|
|
8248
8309
|
manageProps(I);
|
|
8249
8310
|
return element;
|
|
8250
8311
|
}
|
|
8312
|
+
defineComponent$1("ui-menu-item", createUiMenuItem, [
|
|
8313
|
+
"checked",
|
|
8314
|
+
"disabled",
|
|
8315
|
+
"href",
|
|
8316
|
+
"tone",
|
|
8317
|
+
"type",
|
|
8318
|
+
"value"
|
|
8319
|
+
]);
|
|
8251
8320
|
//#endregion
|
|
8252
8321
|
//#region components/ui-popover/ui-popover.js
|
|
8253
8322
|
function connect$5(host) {
|
|
@@ -8298,7 +8367,7 @@ function connect$5(host) {
|
|
|
8298
8367
|
if (!anchor) return;
|
|
8299
8368
|
anchor.removeEventListener("click", onAnchorClick);
|
|
8300
8369
|
if (anchorExpanded === null) anchor.removeAttribute("aria-expanded");
|
|
8301
|
-
else anchor.setAttribute("aria-expanded",
|
|
8370
|
+
else anchor.setAttribute("aria-expanded", "false");
|
|
8302
8371
|
anchor = null;
|
|
8303
8372
|
anchorExpanded = null;
|
|
8304
8373
|
};
|
|
@@ -8579,6 +8648,12 @@ function createUiPopover(options = {}, html) {
|
|
|
8579
8648
|
manageProps(I);
|
|
8580
8649
|
return element;
|
|
8581
8650
|
}
|
|
8651
|
+
defineComponent$1("ui-popover", createUiPopover, [
|
|
8652
|
+
"for",
|
|
8653
|
+
"open",
|
|
8654
|
+
"placement",
|
|
8655
|
+
"size"
|
|
8656
|
+
]);
|
|
8582
8657
|
//#endregion
|
|
8583
8658
|
//#region vanilla/UiStack.js
|
|
8584
8659
|
var T0$6 = [
|
|
@@ -8739,6 +8814,13 @@ function createUiStack(options = {}, html) {
|
|
|
8739
8814
|
manageProps(I);
|
|
8740
8815
|
return element;
|
|
8741
8816
|
}
|
|
8817
|
+
defineComponent$1("ui-stack", createUiStack, [
|
|
8818
|
+
"align",
|
|
8819
|
+
"fill",
|
|
8820
|
+
"gap",
|
|
8821
|
+
"height",
|
|
8822
|
+
"justify"
|
|
8823
|
+
]);
|
|
8742
8824
|
//#endregion
|
|
8743
8825
|
//#region vanilla/UiText.js
|
|
8744
8826
|
var T0$5 = [
|
|
@@ -10028,6 +10110,19 @@ function createUiText(options = {}, html) {
|
|
|
10028
10110
|
manageProps(I);
|
|
10029
10111
|
return element;
|
|
10030
10112
|
}
|
|
10113
|
+
defineComponent$1("ui-text", createUiText, [
|
|
10114
|
+
"align",
|
|
10115
|
+
"as",
|
|
10116
|
+
"font",
|
|
10117
|
+
"grow",
|
|
10118
|
+
"size",
|
|
10119
|
+
"tone",
|
|
10120
|
+
"trim",
|
|
10121
|
+
"truncate",
|
|
10122
|
+
"variant",
|
|
10123
|
+
"weight",
|
|
10124
|
+
"wrap"
|
|
10125
|
+
]);
|
|
10031
10126
|
//#endregion
|
|
10032
10127
|
//#region components/ui-tooltip/ui-tooltip.js
|
|
10033
10128
|
var warmTooltips = /* @__PURE__ */ new WeakMap();
|
|
@@ -10177,6 +10272,7 @@ function connect$4(host) {
|
|
|
10177
10272
|
}
|
|
10178
10273
|
trigger.addEventListener("focusin", onFocusin);
|
|
10179
10274
|
trigger.addEventListener("focusout", onFocusout);
|
|
10275
|
+
onFocusin();
|
|
10180
10276
|
};
|
|
10181
10277
|
const ids = createIdResolver(document, () => {
|
|
10182
10278
|
lastFor = void 0;
|
|
@@ -10545,6 +10641,15 @@ function createUiTooltip(options = {}, html) {
|
|
|
10545
10641
|
manageProps(I);
|
|
10546
10642
|
return element;
|
|
10547
10643
|
}
|
|
10644
|
+
defineComponent$1("ui-tooltip", createUiTooltip, [
|
|
10645
|
+
"for",
|
|
10646
|
+
"hideDelay",
|
|
10647
|
+
"inverse",
|
|
10648
|
+
"open",
|
|
10649
|
+
"placement",
|
|
10650
|
+
"showDelay",
|
|
10651
|
+
"trigger"
|
|
10652
|
+
]);
|
|
10548
10653
|
//#endregion
|
|
10549
10654
|
//#region src/editor/extensions/expand.ts
|
|
10550
10655
|
/**
|
|
@@ -11076,7 +11181,7 @@ var tableOfContentsNodeView = ({ editor, node, getPos }) => {
|
|
|
11076
11181
|
const showDraft = () => {
|
|
11077
11182
|
for (const field of ["format", "depth"]) {
|
|
11078
11183
|
choices[field]?.replaceChildren(choiceLabel(field, draft));
|
|
11079
|
-
for (const [value, item] of items[field])
|
|
11184
|
+
for (const [value, item] of items[field]) componentRegistry.update(item, { checked: String(draft[field]) === value });
|
|
11080
11185
|
}
|
|
11081
11186
|
};
|
|
11082
11187
|
const dropdown = (field) => {
|
|
@@ -11164,7 +11269,7 @@ var tableOfContentsNodeView = ({ editor, node, getPos }) => {
|
|
|
11164
11269
|
});
|
|
11165
11270
|
const setSettingsOpen = (open) => {
|
|
11166
11271
|
settingsOpen = open;
|
|
11167
|
-
|
|
11272
|
+
componentRegistry.update(popover, { open });
|
|
11168
11273
|
revealSettings();
|
|
11169
11274
|
};
|
|
11170
11275
|
popover.addEventListener("open", (event) => {
|
|
@@ -11197,7 +11302,7 @@ var tableOfContentsNodeView = ({ editor, node, getPos }) => {
|
|
|
11197
11302
|
tone: "secondary"
|
|
11198
11303
|
}))]
|
|
11199
11304
|
}));
|
|
11200
|
-
const revealSettings = () =>
|
|
11305
|
+
const revealSettings = () => componentRegistry.update(settingsButton, { revealed: selected || hovered || settingsOpen });
|
|
11201
11306
|
const tooltip = element(createUiTooltip({
|
|
11202
11307
|
for: id,
|
|
11203
11308
|
children: ["Table of contents settings"]
|
|
@@ -11683,6 +11788,17 @@ function createUiCheckbox(options = {}, html) {
|
|
|
11683
11788
|
I.r["description"] = t4;
|
|
11684
11789
|
return element;
|
|
11685
11790
|
}
|
|
11791
|
+
defineComponent$1("ui-checkbox", createUiCheckbox, [
|
|
11792
|
+
"checked",
|
|
11793
|
+
"disabled",
|
|
11794
|
+
"indeterminate",
|
|
11795
|
+
"invalid",
|
|
11796
|
+
"label",
|
|
11797
|
+
"name",
|
|
11798
|
+
"required",
|
|
11799
|
+
"size",
|
|
11800
|
+
"value"
|
|
11801
|
+
]);
|
|
11686
11802
|
//#endregion
|
|
11687
11803
|
//#region components/ui-disclosure/ui-disclosure.js
|
|
11688
11804
|
var disclosures = 0;
|
|
@@ -12264,6 +12380,17 @@ function createUiDisclosure(options = {}, html) {
|
|
|
12264
12380
|
I.r["panel"] = t7;
|
|
12265
12381
|
return element;
|
|
12266
12382
|
}
|
|
12383
|
+
defineComponent$1("ui-disclosure", createUiDisclosure, [
|
|
12384
|
+
"density",
|
|
12385
|
+
"disabled",
|
|
12386
|
+
"fill",
|
|
12387
|
+
"headingLevel",
|
|
12388
|
+
"name",
|
|
12389
|
+
"open",
|
|
12390
|
+
"requiredOpen",
|
|
12391
|
+
"summary",
|
|
12392
|
+
"variant"
|
|
12393
|
+
]);
|
|
12267
12394
|
//#endregion
|
|
12268
12395
|
//#region components/ui-input/ui-input.js
|
|
12269
12396
|
function connect$1(host) {
|
|
@@ -12639,6 +12766,15 @@ function createUiInput(options = {}, html) {
|
|
|
12639
12766
|
manageProps(I);
|
|
12640
12767
|
return element;
|
|
12641
12768
|
}
|
|
12769
|
+
defineComponent$1("ui-input", createUiInput, [
|
|
12770
|
+
"disabled",
|
|
12771
|
+
"invalid",
|
|
12772
|
+
"readonly",
|
|
12773
|
+
"required",
|
|
12774
|
+
"size",
|
|
12775
|
+
"type",
|
|
12776
|
+
"value"
|
|
12777
|
+
]);
|
|
12642
12778
|
//#endregion
|
|
12643
12779
|
//#region src/editor/node-views/expand.ts
|
|
12644
12780
|
var expandSequence = 0;
|
|
@@ -12667,7 +12803,7 @@ var expandNodeView = ({ editor, node, getPos }) => {
|
|
|
12667
12803
|
});
|
|
12668
12804
|
const setExpanded = (open) => {
|
|
12669
12805
|
expanded = open;
|
|
12670
|
-
|
|
12806
|
+
componentRegistry.update(disclosure, {
|
|
12671
12807
|
summary: current.attrs.summary,
|
|
12672
12808
|
open
|
|
12673
12809
|
});
|
|
@@ -12685,7 +12821,7 @@ var expandNodeView = ({ editor, node, getPos }) => {
|
|
|
12685
12821
|
});
|
|
12686
12822
|
summary.addEventListener("input", () => {
|
|
12687
12823
|
draft.summary = summary.value;
|
|
12688
|
-
|
|
12824
|
+
componentRegistry.update(summary, { value: draft.summary });
|
|
12689
12825
|
});
|
|
12690
12826
|
const label = document.createElement("label");
|
|
12691
12827
|
label.htmlFor = `${id}-summary`;
|
|
@@ -12696,7 +12832,7 @@ var expandNodeView = ({ editor, node, getPos }) => {
|
|
|
12696
12832
|
});
|
|
12697
12833
|
initiallyExpanded.addEventListener("change", (event) => {
|
|
12698
12834
|
draft.open = event.detail.checked;
|
|
12699
|
-
|
|
12835
|
+
componentRegistry.update(initiallyExpanded, { checked: draft.open });
|
|
12700
12836
|
});
|
|
12701
12837
|
const cancel = createUiButton({
|
|
12702
12838
|
variant: "ghost",
|
|
@@ -12735,13 +12871,13 @@ var expandNodeView = ({ editor, node, getPos }) => {
|
|
|
12735
12871
|
]
|
|
12736
12872
|
}))]
|
|
12737
12873
|
});
|
|
12738
|
-
const setSettingsOpen = (open) =>
|
|
12874
|
+
const setSettingsOpen = (open) => componentRegistry.update(popover, { open });
|
|
12739
12875
|
popover.addEventListener("open", (event) => {
|
|
12740
12876
|
if (event.target !== popover) return;
|
|
12741
12877
|
draft.summary = String(current.attrs.summary);
|
|
12742
12878
|
draft.open = Boolean(current.attrs.open);
|
|
12743
|
-
|
|
12744
|
-
|
|
12879
|
+
componentRegistry.update(summary, { value: draft.summary });
|
|
12880
|
+
componentRegistry.update(initiallyExpanded, { checked: draft.open });
|
|
12745
12881
|
setSettingsOpen(true);
|
|
12746
12882
|
});
|
|
12747
12883
|
popover.addEventListener("close", (event) => {
|
|
@@ -12921,6 +13057,12 @@ function createUiSeparator(options = {}, html) {
|
|
|
12921
13057
|
manageProps(I);
|
|
12922
13058
|
return element;
|
|
12923
13059
|
}
|
|
13060
|
+
defineComponent$1("ui-separator", createUiSeparator, [
|
|
13061
|
+
"emphasis",
|
|
13062
|
+
"orientation",
|
|
13063
|
+
"selectable",
|
|
13064
|
+
"selected"
|
|
13065
|
+
]);
|
|
12924
13066
|
//#endregion
|
|
12925
13067
|
//#region src/editor/node-views/divider.ts
|
|
12926
13068
|
/**
|
|
@@ -12935,7 +13077,7 @@ var dividerNodeView = ({ editor, getPos }) => {
|
|
|
12935
13077
|
selectable: editor.isEditable,
|
|
12936
13078
|
attributes: { contenteditable: "false" }
|
|
12937
13079
|
});
|
|
12938
|
-
const render = () =>
|
|
13080
|
+
const render = () => componentRegistry.update(dom, {
|
|
12939
13081
|
selectable: editor.isEditable,
|
|
12940
13082
|
selected: editor.isEditable && selected
|
|
12941
13083
|
});
|
|
@@ -13414,6 +13556,7 @@ function createUiCallout(options = {}, html) {
|
|
|
13414
13556
|
manageProps(I);
|
|
13415
13557
|
return element;
|
|
13416
13558
|
}
|
|
13559
|
+
defineComponent$1("ui-callout", createUiCallout, ["heading", "tone"]);
|
|
13417
13560
|
//#endregion
|
|
13418
13561
|
//#region src/editor/node-views/callout.ts
|
|
13419
13562
|
var calloutProps = (node) => ({
|
|
@@ -13442,7 +13585,7 @@ var calloutNodeView = ({ node }) => {
|
|
|
13442
13585
|
update(next) {
|
|
13443
13586
|
if (next.type !== current.type) return false;
|
|
13444
13587
|
current = next;
|
|
13445
|
-
|
|
13588
|
+
componentRegistry.update(callout, calloutProps(next));
|
|
13446
13589
|
return true;
|
|
13447
13590
|
},
|
|
13448
13591
|
ignoreMutation: (mutation) => mutation.type !== "selection" && !contentDOM.contains(mutation.target)
|
|
@@ -13896,6 +14039,15 @@ function createUiImage(options = {}, html) {
|
|
|
13896
14039
|
I.r["frame"] = t0;
|
|
13897
14040
|
return element;
|
|
13898
14041
|
}
|
|
14042
|
+
defineComponent$1("ui-image", createUiImage, [
|
|
14043
|
+
"alt",
|
|
14044
|
+
"height",
|
|
14045
|
+
"placement",
|
|
14046
|
+
"resizable",
|
|
14047
|
+
"selected",
|
|
14048
|
+
"src",
|
|
14049
|
+
"width"
|
|
14050
|
+
]);
|
|
13899
14051
|
//#endregion
|
|
13900
14052
|
//#region src/editor/node-views/image.ts
|
|
13901
14053
|
/** The delivery attributes the editor's decorations lay over the stored ones, such as `srcset`. */
|
|
@@ -13952,7 +14104,7 @@ var imageNodeView = ({ editor, node, getPos, decorations }) => {
|
|
|
13952
14104
|
const dom = element(image);
|
|
13953
14105
|
const render = () => {
|
|
13954
14106
|
writeMedia(current.attrs);
|
|
13955
|
-
|
|
14107
|
+
componentRegistry.update(dom, props(current));
|
|
13956
14108
|
};
|
|
13957
14109
|
dom.addEventListener("click", (event) => {
|
|
13958
14110
|
if (event.target.closest("button")) return;
|
package/vue/host.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.58 for Vue 3.5. Do not edit.
|
|
2
2
|
import {
|
|
3
3
|
computed,
|
|
4
4
|
createTextVNode,
|
|
@@ -713,12 +713,15 @@ export function useComponentHost(
|
|
|
713
713
|
validate: validity,
|
|
714
714
|
})
|
|
715
715
|
}
|
|
716
|
+
// Vue clears a template ref when it removes the element, as when a failed render replaces the
|
|
717
|
+
// root, so cleanup that runs after that still reads the root that disconnected.
|
|
718
|
+
let lastRoot: Element | null = null
|
|
716
719
|
const host = {
|
|
717
720
|
get element(): Element {
|
|
718
|
-
return root.value as Element
|
|
721
|
+
return (root.value ?? lastRoot) as Element
|
|
719
722
|
},
|
|
720
723
|
get root(): Element {
|
|
721
|
-
return root.value as Element
|
|
724
|
+
return (root.value ?? lastRoot) as Element
|
|
722
725
|
},
|
|
723
726
|
...controllerNamespaces({
|
|
724
727
|
state: Object.fromEntries(
|
|
@@ -875,6 +878,7 @@ export function useComponentHost(
|
|
|
875
878
|
}
|
|
876
879
|
const synchronize = (): void => {
|
|
877
880
|
if (unmounted) return
|
|
881
|
+
lastRoot = root.value ?? lastRoot
|
|
878
882
|
if (root.value?.isConnected !== true) {
|
|
879
883
|
disconnect()
|
|
880
884
|
return
|
|
@@ -1144,8 +1148,8 @@ export function useReflectedProp() {
|
|
|
1144
1148
|
/** A scoped slot's name, which the consumer must fill with a `<template slot>` rather than plain children. */
|
|
1145
1149
|
export function useScopedSlotName() {
|
|
1146
1150
|
const slots = useSlots()
|
|
1147
|
-
|
|
1148
|
-
|
|
1151
|
+
// A slot's name is a literal, so the outlet keeps its literal type, as declared slots type it.
|
|
1152
|
+
return <Name extends string>(name: Name): Name => {
|
|
1149
1153
|
if (slots[name] === undefined && slots.default?.().some((node) => node.props?.slot === name)) {
|
|
1150
1154
|
throw diagnostic(
|
|
1151
1155
|
'HR007',
|