@melt-ui/svelte
Advanced tools
Comparing version 0.19.1 to 0.20.0
@@ -52,3 +52,4 @@ /// <reference types="svelte" /> | ||
onOpenChange?: import("../../internal/helpers").ChangeFn<boolean> | undefined; | ||
disableFocusTrap?: boolean | undefined; | ||
}, "open" | "defaultOpen" | "onOpenChange">>; | ||
}; |
@@ -40,3 +40,3 @@ import { addEventListener, builder, createElHelpers, effect, generateId, isBrowser, noop, omit, sleep, styleToString, } from '../../internal/helpers'; | ||
let unsubPopper = noop; | ||
const unsubDerived = effect([open, activeTrigger, positioning], ([$open, $activeTrigger, $positioning]) => { | ||
const unsubDerived = effect([open, activeTrigger, positioning, options], ([$open, $activeTrigger, $positioning, $options]) => { | ||
unsubPopper(); | ||
@@ -50,2 +50,3 @@ if ($open && $activeTrigger) { | ||
floating: $positioning, | ||
focusTrap: $options.disableFocusTrap ? null : undefined, | ||
}, | ||
@@ -52,0 +53,0 @@ }); |
@@ -18,3 +18,4 @@ import type { FloatingConfig } from '../../internal/actions'; | ||
onOpenChange?: ChangeFn<boolean>; | ||
disableFocusTrap?: boolean; | ||
}; | ||
export type CreatePopoverReturn = ReturnType<typeof createPopover>; |
{ | ||
"name": "@melt-ui/svelte", | ||
"version": "0.19.1", | ||
"version": "0.20.0", | ||
"license": "MIT", | ||
@@ -50,2 +50,3 @@ "exports": { | ||
"@iconify-json/simple-icons": "^1.1.57", | ||
"@playwright/test": "^1.36.0", | ||
"@storybook/addon-essentials": "^7.0.23", | ||
@@ -135,4 +136,6 @@ "@storybook/addon-interactions": "^7.0.23", | ||
"storybook": "storybook dev -p 6006 --no-open", | ||
"build-storybook": "storybook build -s static" | ||
"build-storybook": "storybook build -s static", | ||
"pw": "pnpm exec playwright test", | ||
"pw:ui": "pnpm exec playwright test --ui" | ||
} | ||
} |
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
397798
9751
69