@destyler/switch 0.2.13 → 0.3.0
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 +4 -4
- package/package.json +10 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
2
2
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
3
3
|
//#region src/anatomy.d.ts
|
|
4
|
-
export declare const anatomy:
|
|
4
|
+
export declare const anatomy: any;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/types.d.ts
|
|
7
7
|
interface CheckedChangeDetails {
|
|
@@ -140,10 +140,10 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
140
140
|
export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/machine.d.ts
|
|
143
|
-
export declare function machine(userContext: UserDefinedContext):
|
|
143
|
+
export declare function machine(userContext: UserDefinedContext): any;
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region src/props.d.ts
|
|
146
|
-
export declare const props:
|
|
147
|
-
export declare const splitProps:
|
|
146
|
+
export declare const props: any;
|
|
147
|
+
export declare const splitProps: any;
|
|
148
148
|
//#endregion
|
|
149
149
|
export type { MachineApi as Api, CheckedChangeDetails, UserDefinedContext as Context, ElementIds, Service };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/switch",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "A control that allows the user to toggle between checked and not checked.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
"*.d.ts",
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=22.22.3"
|
|
26
|
+
},
|
|
24
27
|
"dependencies": {
|
|
25
|
-
"@destyler/anatomy": "0.
|
|
26
|
-
"@destyler/dom": "0.
|
|
27
|
-
"@destyler/focus-visible": "0.
|
|
28
|
-
"@destyler/types": "0.
|
|
29
|
-
"@destyler/utils": "0.
|
|
30
|
-
"@destyler/xstate": "0.
|
|
28
|
+
"@destyler/anatomy": "0.3.0",
|
|
29
|
+
"@destyler/dom": "0.3.0",
|
|
30
|
+
"@destyler/focus-visible": "0.3.0",
|
|
31
|
+
"@destyler/types": "0.3.0",
|
|
32
|
+
"@destyler/utils": "0.3.0",
|
|
33
|
+
"@destyler/xstate": "0.3.0"
|
|
31
34
|
},
|
|
32
35
|
"publishConfig": {
|
|
33
36
|
"access": "public"
|