@destyler/dialog 0.3.0 → 0.3.2
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 -10
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { DismissableElementHandlers, FocusOutsideEvent, InteractOutsideEvent, Pe
|
|
|
2
2
|
import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
3
3
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
4
4
|
//#region src/anatomy.d.ts
|
|
5
|
-
export declare const anatomy:
|
|
5
|
+
export declare const anatomy: import("@destyler/anatomy").AnatomyInstance<"trigger" | "backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger">;
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/types.d.ts
|
|
8
8
|
interface OpenChangeDetails {
|
|
@@ -123,10 +123,10 @@ interface MachineApi<T extends PropTypes = PropTypes> {
|
|
|
123
123
|
export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/machine.d.ts
|
|
126
|
-
export declare function machine(userContext: UserDefinedContext):
|
|
126
|
+
export declare function machine(userContext: UserDefinedContext): import("@destyler/xstate").Machine<MachineContext, MachineState, import("@destyler/xstate").AnyEventObject>;
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region src/props.d.ts
|
|
129
|
-
export declare const props:
|
|
130
|
-
export declare const splitProps:
|
|
129
|
+
export declare const props: ("open" | "ids" | "trapFocus" | "preventScroll" | "modal" | "initialFocusEl" | "finalFocusEl" | "restoreFocus" | "onOpenChange" | "closeOnInteractOutside" | "closeOnEscape" | "aria-label" | "role" | "defaultOpen" | "dir" | "id" | "getRootNode" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "persistentElements")[];
|
|
130
|
+
export declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "open" | "ids" | "trapFocus" | "preventScroll" | "modal" | "initialFocusEl" | "finalFocusEl" | "restoreFocus" | "onOpenChange" | "closeOnInteractOutside" | "closeOnEscape" | "aria-label" | "role" | "defaultOpen" | "dir" | "id" | "getRootNode" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "persistentElements">];
|
|
131
131
|
//#endregion
|
|
132
132
|
export type { MachineApi as Api, UserDefinedContext as Context, ElementIds, FocusOutsideEvent, InteractOutsideEvent, OpenChangeDetails, PointerDownOutsideEvent, Service };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/dialog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"description": "before taking action, please confirm.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"node": ">=22.22.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@destyler/anatomy": "0.3.
|
|
29
|
-
"@destyler/aria-hidden": "0.3.
|
|
30
|
-
"@destyler/dismissable": "0.3.
|
|
31
|
-
"@destyler/dom": "0.3.
|
|
32
|
-
"@destyler/focus-trap": "0.3.
|
|
33
|
-
"@destyler/remove-scroll": "0.3.
|
|
34
|
-
"@destyler/types": "0.3.
|
|
35
|
-
"@destyler/utils": "0.3.
|
|
36
|
-
"@destyler/xstate": "0.3.
|
|
28
|
+
"@destyler/anatomy": "0.3.2",
|
|
29
|
+
"@destyler/aria-hidden": "0.3.2",
|
|
30
|
+
"@destyler/dismissable": "0.3.2",
|
|
31
|
+
"@destyler/dom": "0.3.2",
|
|
32
|
+
"@destyler/focus-trap": "0.3.2",
|
|
33
|
+
"@destyler/remove-scroll": "0.3.2",
|
|
34
|
+
"@destyler/types": "0.3.2",
|
|
35
|
+
"@destyler/utils": "0.3.2",
|
|
36
|
+
"@destyler/xstate": "0.3.2"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|