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