@zag-js/tooltip 0.10.4 → 0.10.5

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,3 +1,3 @@
1
- import { AnatomyInstance, AnatomyPart } from '@zag-js/anatomy';
2
- export declare const anatomy: AnatomyInstance<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label">;
3
- export declare const parts: Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label", AnatomyPart>;
1
+ import type { AnatomyInstance, AnatomyPart } from '@zag-js/anatomy';
2
+ export declare const anatomy: AnatomyInstance<"content" | "label" | "trigger" | "arrow" | "arrowTip" | "positioner">;
3
+ export declare const parts: Record<"content" | "label" | "trigger" | "arrow" | "arrowTip" | "positioner", AnatomyPart>;
@@ -1,22 +1,22 @@
1
1
  import type { MachineContext as Ctx } from "./tooltip.types";
2
2
  export declare const dom: {
3
3
  getRootNode: (ctx: {
4
- getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
5
- }) => Document | ShadowRoot;
4
+ getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
5
+ }) => ShadowRoot | Document;
6
6
  getDoc: (ctx: {
7
- getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
7
+ getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
8
8
  }) => Document;
9
9
  getWin: (ctx: {
10
- getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
10
+ getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
11
11
  }) => Window & typeof globalThis;
12
12
  getActiveElement: (ctx: {
13
- getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
13
+ getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
14
14
  }) => HTMLElement | null;
15
15
  getById: <T extends HTMLElement = HTMLElement>(ctx: {
16
- getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
16
+ getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
17
17
  }, id: string) => T | null;
18
18
  queryById: <T_1 extends HTMLElement = HTMLElement>(ctx: {
19
- getRootNode?: (() => Node | Document | ShadowRoot) | undefined;
19
+ getRootNode?: (() => Node | ShadowRoot | Document) | undefined;
20
20
  }, id: string) => T_1;
21
21
  } & {
22
22
  getTriggerId: (ctx: Ctx) => string;
@@ -1,3 +1,3 @@
1
- import { Machine, StateMachine } from '@zag-js/core';
1
+ import type { Machine, StateMachine } from '@zag-js/core';
2
2
  import type { MachineContext, MachineState, UserDefinedContext } from "./tooltip.types";
3
3
  export declare function machine(userContext: UserDefinedContext): Machine<MachineContext, MachineState, StateMachine.AnyEventObject>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tooltip",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "Core logic for the tooltip widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,14 +27,14 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/anatomy": "0.10.4",
31
- "@zag-js/core": "0.10.4",
32
- "@zag-js/popper": "0.10.4",
33
- "@zag-js/dom-query": "0.10.4",
34
- "@zag-js/dom-event": "0.10.4",
35
- "@zag-js/utils": "0.10.4",
36
- "@zag-js/visually-hidden": "0.10.4",
37
- "@zag-js/types": "0.10.4"
30
+ "@zag-js/anatomy": "0.10.5",
31
+ "@zag-js/core": "0.10.5",
32
+ "@zag-js/popper": "0.10.5",
33
+ "@zag-js/dom-query": "0.10.5",
34
+ "@zag-js/dom-event": "0.10.5",
35
+ "@zag-js/utils": "0.10.5",
36
+ "@zag-js/visually-hidden": "0.10.5",
37
+ "@zag-js/types": "0.10.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "clean-package": "2.2.0"