@melt-ui/svelte
Advanced tools
Comparing version 0.39.1 to 0.39.3
@@ -8,3 +8,2 @@ /// <reference types="svelte" /> | ||
menu: import("../../internal/helpers/index.js").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("svelte/store").Writable<string | HTMLElement | null | undefined>], (node: HTMLElement) => MeltActionReturn<SelectEvents['menu']>, ([$isVisible, $portal]: [boolean, string | HTMLElement | null | undefined]) => { | ||
hidden: boolean | undefined; | ||
style: string; | ||
@@ -11,0 +10,0 @@ id: string; |
@@ -169,3 +169,2 @@ import { createLabel, createSeparator } from '../index.js'; | ||
return { | ||
hidden: $isVisible ? undefined : true, | ||
style: styleToString({ | ||
@@ -241,3 +240,2 @@ display: $isVisible ? undefined : 'none', | ||
})); | ||
const unsubPortal = usePortal(node, 'body')?.destroy; | ||
return { | ||
@@ -247,3 +245,2 @@ destroy() { | ||
unsubPopper(); | ||
unsubPortal?.(); | ||
unsubScroll(); | ||
@@ -250,0 +247,0 @@ unsubEventListeners(); |
@@ -64,2 +64,6 @@ /// <reference types="svelte" /> | ||
isSelected: import("svelte/store").Readable<(tag: Tag) => boolean>; | ||
isInputValid: (v: string) => boolean; | ||
addTag: (v: string) => Promise<boolean>; | ||
updateTag: (tag: Tag, select?: boolean) => Promise<boolean>; | ||
removeTag: (t: Tag) => Promise<boolean>; | ||
}; | ||
@@ -66,0 +70,0 @@ options: { |
@@ -658,2 +658,6 @@ import { builder, createElHelpers, effect, executeCallbacks, generateId, getElementByMeltId, isBrowser, isHTMLElement, kbd, omit, overridable, styleToString, toWritableStores, addMeltEventListener, } from '../../internal/helpers/index.js'; | ||
isSelected, | ||
isInputValid, | ||
addTag, | ||
updateTag, | ||
removeTag | ||
}, | ||
@@ -660,0 +664,0 @@ options, |
@@ -8,3 +8,3 @@ import { isHTMLElement } from './is.js'; | ||
let parent = node.parentElement; | ||
while (isHTMLElement(parent) && parent.getAttribute('data-portal') === null) { | ||
while (isHTMLElement(parent) && !parent.hasAttribute('data-portal')) { | ||
parent = parent.parentElement; | ||
@@ -11,0 +11,0 @@ } |
{ | ||
"name": "@melt-ui/svelte", | ||
"version": "0.39.1", | ||
"version": "0.39.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
591515
13692