oasis-editor 0.0.362 → 0.0.363
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/dist/OasisEditorApp-Q-RQc7no.js +1 -0
- package/dist/defaultToolbar-CrnCgr6m.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/components/Toolbar/primitives/useDismiss.d.ts +3 -5
- package/package.json +1 -1
- package/dist/OasisEditorApp-9ixQlA40.js +0 -1
- package/dist/defaultToolbar-B6EyE418.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Accessor } from 'solid-js';
|
|
2
2
|
export interface DismissOptions {
|
|
3
|
-
/**
|
|
3
|
+
/** Anchor first, followed by the panel(s). Refs may be portalled. */
|
|
4
4
|
refs: Accessor<Array<HTMLElement | undefined>>;
|
|
5
5
|
open: Accessor<boolean>;
|
|
6
6
|
onDismiss: (reason: "outside" | "escape") => void;
|
|
@@ -9,8 +9,6 @@ export interface DismissOptions {
|
|
|
9
9
|
/** Dismiss when Escape is pressed. Defaults to true. */
|
|
10
10
|
closeOnEscape?: boolean;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* while `open` is true. Replaces the per-component `handleClickOutside` copies.
|
|
15
|
-
*/
|
|
12
|
+
/** Shared non-modal dismissal. Never prevent or stop pointer events: the
|
|
13
|
+
* first outside click must still reach its intended target. */
|
|
16
14
|
export declare function useDismiss(options: DismissOptions): void;
|