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.
@@ -1,6 +1,6 @@
1
1
  import { Accessor } from 'solid-js';
2
2
  export interface DismissOptions {
3
- /** Elements that should NOT trigger a dismiss when clicked (anchor + panel). */
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
- * Click-outside + Escape dismissal for popovers. Listeners are attached only
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.362",
3
+ "version": "0.0.363",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {