@zag-js/avatar 0.0.0-dev-20240216185224 → 0.0.0-dev-20240218175520
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/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/package.json +7 -7
- package/src/avatar.types.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
|
-
import { RequiredBy, PropTypes, CommonProperties, DirectionProperty,
|
|
2
|
+
import { RequiredBy, PropTypes, CommonProperties, DirectionProperty, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
4
|
import { StateMachine } from '@zag-js/core';
|
|
5
5
|
|
|
@@ -14,7 +14,8 @@ interface PublicContext extends CommonProperties, DirectionProperty {
|
|
|
14
14
|
*/
|
|
15
15
|
onLoadingStatusChange?: (details: StatusChangeDetails) => void;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface PrivateContext {
|
|
18
|
+
}
|
|
18
19
|
type ComputedContext = Readonly<{}>;
|
|
19
20
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
20
21
|
interface MachineContext extends PublicContext, PrivateContext, ComputedContext {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
|
-
import { RequiredBy, PropTypes, CommonProperties, DirectionProperty,
|
|
2
|
+
import { RequiredBy, PropTypes, CommonProperties, DirectionProperty, NormalizeProps } from '@zag-js/types';
|
|
3
3
|
import * as _zag_js_core from '@zag-js/core';
|
|
4
4
|
import { StateMachine } from '@zag-js/core';
|
|
5
5
|
|
|
@@ -14,7 +14,8 @@ interface PublicContext extends CommonProperties, DirectionProperty {
|
|
|
14
14
|
*/
|
|
15
15
|
onLoadingStatusChange?: (details: StatusChangeDetails) => void;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface PrivateContext {
|
|
18
|
+
}
|
|
18
19
|
type ComputedContext = Readonly<{}>;
|
|
19
20
|
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
20
21
|
interface MachineContext extends PublicContext, PrivateContext, ComputedContext {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/avatar",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240218175520",
|
|
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.0.0-dev-
|
|
32
|
-
"@zag-js/mutation-observer": "0.0.0-dev-
|
|
33
|
-
"@zag-js/core": "0.0.0-dev-
|
|
34
|
-
"@zag-js/dom-query": "0.0.0-dev-
|
|
35
|
-
"@zag-js/utils": "0.0.0-dev-
|
|
36
|
-
"@zag-js/types": "0.0.0-dev-
|
|
31
|
+
"@zag-js/anatomy": "0.0.0-dev-20240218175520",
|
|
32
|
+
"@zag-js/mutation-observer": "0.0.0-dev-20240218175520",
|
|
33
|
+
"@zag-js/core": "0.0.0-dev-20240218175520",
|
|
34
|
+
"@zag-js/dom-query": "0.0.0-dev-20240218175520",
|
|
35
|
+
"@zag-js/utils": "0.0.0-dev-20240218175520",
|
|
36
|
+
"@zag-js/types": "0.0.0-dev-20240218175520"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"clean-package": "2.2.0"
|
package/src/avatar.types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StateMachine as S } from "@zag-js/core"
|
|
2
|
-
import type { CommonProperties,
|
|
2
|
+
import type { CommonProperties, DirectionProperty, PropTypes, RequiredBy } from "@zag-js/types"
|
|
3
3
|
|
|
4
4
|
/* -----------------------------------------------------------------------------
|
|
5
5
|
* Callback details
|
|
@@ -20,7 +20,7 @@ interface PublicContext extends CommonProperties, DirectionProperty {
|
|
|
20
20
|
onLoadingStatusChange?: (details: StatusChangeDetails) => void
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
interface PrivateContext {}
|
|
24
24
|
|
|
25
25
|
type ComputedContext = Readonly<{}>
|
|
26
26
|
|