bits-ui 2.15.0 → 2.15.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.
@@ -4,7 +4,7 @@ import { on } from "svelte/events";
4
4
  import { createBitsAttrs, boolToStr, getDataOpenClosed } from "../../internal/attrs.js";
5
5
  import { isElement, isFocusVisible, isTouch } from "../../internal/is.js";
6
6
  import { getTabbableCandidates } from "../../internal/focus.js";
7
- import { GraceArea } from "../../internal/grace-area.svelte.js";
7
+ import { SafePolygon } from "../../internal/safe-polygon.svelte.js";
8
8
  import { PresenceManager } from "../../internal/presence-manager.svelte.js";
9
9
  const linkPreviewAttrs = createBitsAttrs({
10
10
  component: "link-preview",
@@ -169,7 +169,7 @@ export class LinkPreviewContentState {
169
169
  this.onpointerdown = this.onpointerdown.bind(this);
170
170
  this.onpointerenter = this.onpointerenter.bind(this);
171
171
  this.onfocusout = this.onfocusout.bind(this);
172
- new GraceArea({
172
+ new SafePolygon({
173
173
  triggerNode: () => this.root.triggerNode,
174
174
  contentNode: () => this.opts.ref.current,
175
175
  enabled: () => this.root.opts.open.current,
@@ -4,7 +4,7 @@ import { Context, watch } from "runed";
4
4
  import { isElement, isFocusVisible } from "../../internal/is.js";
5
5
  import { createBitsAttrs, boolToEmptyStrOrUndef } from "../../internal/attrs.js";
6
6
  import { TimeoutFn } from "../../internal/timeout-fn.js";
7
- import { GraceArea } from "../../internal/grace-area.svelte.js";
7
+ import { SafePolygon } from "../../internal/safe-polygon.svelte.js";
8
8
  import { PresenceManager } from "../../internal/presence-manager.svelte.js";
9
9
  export const tooltipAttrs = createBitsAttrs({
10
10
  component: "tooltip",
@@ -279,7 +279,7 @@ export class TooltipContentState {
279
279
  this.opts = opts;
280
280
  this.root = root;
281
281
  this.attachment = attachRef(this.opts.ref, (v) => (this.root.contentNode = v));
282
- new GraceArea({
282
+ new SafePolygon({
283
283
  triggerNode: () => this.root.triggerNode,
284
284
  contentNode: () => this.root.contentNode,
285
285
  enabled: () => this.root.opts.open.current && !this.root.disableHoverableContent,
@@ -288,10 +288,6 @@ export class TooltipContentState {
288
288
  this.root.handleClose();
289
289
  }
290
290
  },
291
- setIsPointerInTransit: (value) => {
292
- this.root.provider.isPointerInTransit.current = value;
293
- },
294
- transitTimeout: this.root.provider.opts.skipDelayDuration.current,
295
291
  });
296
292
  onMountEffect(() => on(window, "scroll", (e) => {
297
293
  const target = e.target;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",