@ariakit/core 0.4.13 → 0.4.15
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/CHANGELOG.md +10 -0
- package/cjs/__chunks/{TFI7KVZO.cjs → CEJUJMDW.cjs} +2 -2
- package/cjs/__chunks/{K7YTZVWC.cjs → RNIVVQWX.cjs} +3 -3
- package/cjs/collection/collection-store.cjs +3 -3
- package/cjs/collection/collection-store.d.cts +4 -0
- package/cjs/collection/collection-store.d.ts +4 -0
- package/cjs/combobox/combobox-store.cjs +9 -9
- package/cjs/combobox/combobox-store.d.cts +4 -1
- package/cjs/combobox/combobox-store.d.ts +4 -1
- package/cjs/composite/composite-store.cjs +4 -4
- package/cjs/composite/composite-store.d.cts +10 -0
- package/cjs/composite/composite-store.d.ts +10 -0
- package/cjs/form/form-store.cjs +12 -3
- package/cjs/form/form-store.d.cts +2 -2
- package/cjs/form/form-store.d.ts +2 -2
- package/cjs/menu/menu-bar-store.cjs +5 -5
- package/cjs/menu/menu-store.cjs +5 -5
- package/cjs/menubar/menubar-store.cjs +5 -5
- package/cjs/radio/radio-store.cjs +4 -4
- package/cjs/select/select-store.cjs +6 -6
- package/cjs/tab/tab-store.cjs +6 -6
- package/cjs/tab/tab-store.d.cts +4 -0
- package/cjs/tab/tab-store.d.ts +4 -0
- package/cjs/tag/tag-store.cjs +6 -6
- package/cjs/toolbar/toolbar-store.cjs +4 -4
- package/cjs/utils/events.cjs +2 -2
- package/esm/__chunks/{AJZ4BYF3.js → 2CHYBBFH.js} +3 -3
- package/esm/__chunks/{7HRRFUKQ.js → PQ5AROUB.js} +1 -1
- package/esm/collection/collection-store.d.ts +4 -0
- package/esm/collection/collection-store.js +2 -2
- package/esm/combobox/combobox-store.d.ts +4 -1
- package/esm/combobox/combobox-store.js +9 -9
- package/esm/composite/composite-store.d.ts +10 -0
- package/esm/composite/composite-store.js +3 -3
- package/esm/form/form-store.d.ts +2 -2
- package/esm/form/form-store.js +11 -2
- package/esm/menu/menu-bar-store.js +4 -4
- package/esm/menu/menu-store.js +4 -4
- package/esm/menubar/menubar-store.js +4 -4
- package/esm/radio/radio-store.js +3 -3
- package/esm/select/select-store.js +6 -6
- package/esm/tab/tab-store.d.ts +4 -0
- package/esm/tab/tab-store.js +4 -4
- package/esm/tag/tag-store.js +6 -6
- package/esm/toolbar/toolbar-store.js +3 -3
- package/esm/utils/events.js +2 -2
- package/package.json +113 -113
- package/readme.md +3 -2
- package/cjs/__chunks/{BUEPUCQL.cjs → MNBBM5CR.cjs} +3 -3
- package/esm/__chunks/{CYQWQL4J.js → EO4GVUA4.js} +4 -4
|
@@ -20,6 +20,10 @@ export interface CollectionStoreState<T extends CollectionStoreItem = Collection
|
|
|
20
20
|
* updated when an item is registered or unregistered using the
|
|
21
21
|
* [`registerItem`](https://ariakit.org/reference/use-collection-store#registeritem)
|
|
22
22
|
* function.
|
|
23
|
+
*
|
|
24
|
+
* Live examples:
|
|
25
|
+
* - [Command Menu with
|
|
26
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
23
27
|
*/
|
|
24
28
|
items: T[];
|
|
25
29
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/EO4GVUA4.js";
|
|
5
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
5
6
|
import "../__chunks/BCALMBPZ.js";
|
|
6
7
|
import "../__chunks/PBFD2E7P.js";
|
|
7
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
8
8
|
import "../__chunks/3YLGPPWQ.js";
|
|
9
9
|
export {
|
|
10
10
|
createCollectionStore
|
|
@@ -36,6 +36,8 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
36
36
|
* Combobox](https://ariakit.org/examples/combobox-multiple)
|
|
37
37
|
* - [Textarea with inline
|
|
38
38
|
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
39
|
+
* - [Command Menu with
|
|
40
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
39
41
|
*/
|
|
40
42
|
value: string;
|
|
41
43
|
/**
|
|
@@ -70,7 +72,8 @@ export interface ComboboxStoreState<T extends ComboboxStoreSelectedValue = Combo
|
|
|
70
72
|
* - [Select with Combobox](https://ariakit.org/examples/select-combobox)
|
|
71
73
|
* - [Submenu with
|
|
72
74
|
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
73
|
-
* - [Command Menu
|
|
75
|
+
* - [Command Menu with
|
|
76
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
74
77
|
* - [Select with Combobox and
|
|
75
78
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
76
79
|
*/
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../__chunks/7PRQYBBV.js";
|
|
3
|
+
isSafari,
|
|
4
|
+
isTouchDevice
|
|
5
|
+
} from "../__chunks/QAGXQEUG.js";
|
|
7
6
|
import {
|
|
8
7
|
createPopoverStore
|
|
9
8
|
} from "../__chunks/ME2CUF3F.js";
|
|
9
|
+
import {
|
|
10
|
+
createCompositeStore
|
|
11
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
12
|
+
import "../__chunks/7PRQYBBV.js";
|
|
10
13
|
import "../__chunks/FZZ2AVHF.js";
|
|
11
14
|
import "../__chunks/RCQ5P4YE.js";
|
|
15
|
+
import "../__chunks/EO4GVUA4.js";
|
|
16
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
12
17
|
import {
|
|
13
18
|
batch,
|
|
14
19
|
createStore,
|
|
@@ -22,11 +27,6 @@ import {
|
|
|
22
27
|
chain,
|
|
23
28
|
defaultValue
|
|
24
29
|
} from "../__chunks/PBFD2E7P.js";
|
|
25
|
-
import {
|
|
26
|
-
isSafari,
|
|
27
|
-
isTouchDevice
|
|
28
|
-
} from "../__chunks/QAGXQEUG.js";
|
|
29
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
30
30
|
import {
|
|
31
31
|
__objRest,
|
|
32
32
|
__spreadProps,
|
|
@@ -131,6 +131,8 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
131
131
|
*
|
|
132
132
|
* Live examples:
|
|
133
133
|
* - [Command Menu](https://ariakit.org/examples/dialog-combobox-command-menu)
|
|
134
|
+
* - [Command Menu with
|
|
135
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
134
136
|
* @default false
|
|
135
137
|
*/
|
|
136
138
|
focusLoop: boolean | Orientation;
|
|
@@ -147,6 +149,10 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
147
149
|
* matches the value of `focusWrap`, it'll wrap between the last item in the
|
|
148
150
|
* last row or column and the first item in the first row or column and
|
|
149
151
|
* vice-versa.
|
|
152
|
+
*
|
|
153
|
+
* Live examples:
|
|
154
|
+
* - [Command Menu with
|
|
155
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
150
156
|
* @default false
|
|
151
157
|
*/
|
|
152
158
|
focusWrap: boolean | Orientation;
|
|
@@ -155,6 +161,10 @@ export interface CompositeStoreState<T extends CompositeStoreItem = CompositeSto
|
|
|
155
161
|
*
|
|
156
162
|
* If enabled, moving up or down when there's no next item or when the next
|
|
157
163
|
* item is disabled will shift to the item right before it.
|
|
164
|
+
*
|
|
165
|
+
* Live examples:
|
|
166
|
+
* - [Command Menu with
|
|
167
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
158
168
|
* @default false
|
|
159
169
|
*/
|
|
160
170
|
focusShift: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/CYQWQL4J.js";
|
|
4
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
6
5
|
import "../__chunks/7PRQYBBV.js";
|
|
6
|
+
import "../__chunks/EO4GVUA4.js";
|
|
7
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
7
8
|
import "../__chunks/BCALMBPZ.js";
|
|
8
9
|
import "../__chunks/PBFD2E7P.js";
|
|
9
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
10
10
|
import "../__chunks/3YLGPPWQ.js";
|
|
11
11
|
export {
|
|
12
12
|
createCompositeStore
|
package/esm/form/form-store.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
|
|
|
186
186
|
* }
|
|
187
187
|
* });
|
|
188
188
|
*/
|
|
189
|
-
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => void;
|
|
189
|
+
onValidate: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
|
|
190
190
|
/**
|
|
191
191
|
* Function that accepts a callback that will be used to submit the form when
|
|
192
192
|
* [`submit`](https://ariakit.org/reference/use-form-store#submit) is called.
|
|
@@ -201,7 +201,7 @@ export interface FormStoreFunctions<T extends FormStoreValues = FormStoreValues>
|
|
|
201
201
|
* }
|
|
202
202
|
* });
|
|
203
203
|
*/
|
|
204
|
-
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => void;
|
|
204
|
+
onSubmit: (callback: FormStoreCallback<FormStoreState<T>>) => () => void;
|
|
205
205
|
/**
|
|
206
206
|
* Validates the form.
|
|
207
207
|
* @example
|
package/esm/form/form-store.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCollectionStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/EO4GVUA4.js";
|
|
5
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
5
6
|
import {
|
|
6
7
|
createStore,
|
|
7
8
|
init,
|
|
8
9
|
setup,
|
|
10
|
+
sync,
|
|
9
11
|
throwOnConflictingProps
|
|
10
12
|
} from "../__chunks/BCALMBPZ.js";
|
|
11
13
|
import {
|
|
@@ -14,7 +16,6 @@ import {
|
|
|
14
16
|
isInteger,
|
|
15
17
|
isObject
|
|
16
18
|
} from "../__chunks/PBFD2E7P.js";
|
|
17
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
18
19
|
import {
|
|
19
20
|
__spreadProps,
|
|
20
21
|
__spreadValues
|
|
@@ -153,6 +154,13 @@ function createFormStore(props = {}) {
|
|
|
153
154
|
};
|
|
154
155
|
const callbacks = createStore(callbacksInitialState, syncCallbacks);
|
|
155
156
|
setup(form, () => init(callbacks));
|
|
157
|
+
setup(
|
|
158
|
+
form,
|
|
159
|
+
() => sync(form, ["validating", "errors"], (state) => {
|
|
160
|
+
if (state.validating) return;
|
|
161
|
+
form.setState("valid", !hasMessages(state.errors));
|
|
162
|
+
})
|
|
163
|
+
);
|
|
156
164
|
const validate = async () => {
|
|
157
165
|
form.setState("validating", true);
|
|
158
166
|
form.setState("errors", {});
|
|
@@ -256,6 +264,7 @@ function createFormStore(props = {}) {
|
|
|
256
264
|
form.setState("submitting", false);
|
|
257
265
|
form.setState("submitSucceed", 0);
|
|
258
266
|
form.setState("submitFailed", 0);
|
|
267
|
+
form.setState("valid", !hasMessages(errors));
|
|
259
268
|
},
|
|
260
269
|
// @ts-expect-error Internal
|
|
261
270
|
__unstableCallbacks: callbacks
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/CYQWQL4J.js";
|
|
4
|
+
} from "../__chunks/PQ5AROUB.js";
|
|
5
|
+
import "../__chunks/2CHYBBFH.js";
|
|
7
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
|
+
import "../__chunks/EO4GVUA4.js";
|
|
8
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
8
9
|
import "../__chunks/BCALMBPZ.js";
|
|
9
10
|
import "../__chunks/PBFD2E7P.js";
|
|
10
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
11
11
|
import "../__chunks/3YLGPPWQ.js";
|
|
12
12
|
|
|
13
13
|
// src/menu/menu-bar-store.ts
|
package/esm/menu/menu-store.js
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createHovercardStore
|
|
4
4
|
} from "../__chunks/JTLIIJ4U.js";
|
|
5
|
+
import "../__chunks/ME2CUF3F.js";
|
|
5
6
|
import {
|
|
6
7
|
createCompositeStore
|
|
7
|
-
} from "../__chunks/
|
|
8
|
-
import "../__chunks/CYQWQL4J.js";
|
|
8
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
9
9
|
import "../__chunks/7PRQYBBV.js";
|
|
10
|
-
import "../__chunks/ME2CUF3F.js";
|
|
11
10
|
import "../__chunks/FZZ2AVHF.js";
|
|
12
11
|
import "../__chunks/RCQ5P4YE.js";
|
|
12
|
+
import "../__chunks/EO4GVUA4.js";
|
|
13
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
13
14
|
import {
|
|
14
15
|
createStore,
|
|
15
16
|
mergeStore,
|
|
@@ -23,7 +24,6 @@ import {
|
|
|
23
24
|
applyState,
|
|
24
25
|
defaultValue
|
|
25
26
|
} from "../__chunks/PBFD2E7P.js";
|
|
26
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
27
27
|
import {
|
|
28
28
|
__objRest,
|
|
29
29
|
__spreadProps,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createMenubarStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/CYQWQL4J.js";
|
|
4
|
+
} from "../__chunks/PQ5AROUB.js";
|
|
5
|
+
import "../__chunks/2CHYBBFH.js";
|
|
7
6
|
import "../__chunks/7PRQYBBV.js";
|
|
7
|
+
import "../__chunks/EO4GVUA4.js";
|
|
8
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
8
9
|
import "../__chunks/BCALMBPZ.js";
|
|
9
10
|
import "../__chunks/PBFD2E7P.js";
|
|
10
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
11
11
|
import "../__chunks/3YLGPPWQ.js";
|
|
12
12
|
export {
|
|
13
13
|
createMenubarStore
|
package/esm/radio/radio-store.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/CYQWQL4J.js";
|
|
4
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
6
5
|
import "../__chunks/7PRQYBBV.js";
|
|
6
|
+
import "../__chunks/EO4GVUA4.js";
|
|
7
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
7
8
|
import {
|
|
8
9
|
createStore
|
|
9
10
|
} from "../__chunks/BCALMBPZ.js";
|
|
10
11
|
import {
|
|
11
12
|
defaultValue
|
|
12
13
|
} from "../__chunks/PBFD2E7P.js";
|
|
13
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
14
14
|
import {
|
|
15
15
|
__objRest,
|
|
16
16
|
__spreadProps,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
createPopoverStore
|
|
4
|
+
} from "../__chunks/ME2CUF3F.js";
|
|
2
5
|
import {
|
|
3
6
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/CYQWQL4J.js";
|
|
7
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
6
8
|
import {
|
|
7
9
|
toArray
|
|
8
10
|
} from "../__chunks/7PRQYBBV.js";
|
|
9
|
-
import {
|
|
10
|
-
createPopoverStore
|
|
11
|
-
} from "../__chunks/ME2CUF3F.js";
|
|
12
11
|
import "../__chunks/FZZ2AVHF.js";
|
|
13
12
|
import "../__chunks/RCQ5P4YE.js";
|
|
13
|
+
import "../__chunks/EO4GVUA4.js";
|
|
14
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
14
15
|
import {
|
|
15
16
|
batch,
|
|
16
17
|
createStore,
|
|
@@ -23,7 +24,6 @@ import {
|
|
|
23
24
|
import {
|
|
24
25
|
defaultValue
|
|
25
26
|
} from "../__chunks/PBFD2E7P.js";
|
|
26
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
27
27
|
import {
|
|
28
28
|
__objRest,
|
|
29
29
|
__spreadProps,
|
package/esm/tab/tab-store.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface TabStoreState extends CompositeStoreState<TabStoreItem> {
|
|
|
25
25
|
* - [Combobox with Tabs](https://ariakit.org/examples/combobox-tabs)
|
|
26
26
|
* - [Select with Combobox and
|
|
27
27
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
28
|
+
* - [Command Menu with
|
|
29
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
28
30
|
*/
|
|
29
31
|
selectedId: TabStoreState["activeId"];
|
|
30
32
|
/**
|
|
@@ -107,6 +109,8 @@ export interface TabStoreOptions extends StoreOptions<TabStoreState, "orientatio
|
|
|
107
109
|
* - [Animated TabPanel](https://ariakit.org/examples/tab-panel-animated)
|
|
108
110
|
* - [Select with Combobox and
|
|
109
111
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
112
|
+
* - [Command Menu with
|
|
113
|
+
* Tabs](https://ariakit.org/examples/dialog-combobox-tab-command-menu)
|
|
110
114
|
*/
|
|
111
115
|
defaultSelectedId?: TabStoreState["selectedId"];
|
|
112
116
|
}
|
package/esm/tab/tab-store.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
5
|
+
import "../__chunks/7PRQYBBV.js";
|
|
5
6
|
import {
|
|
6
7
|
createCollectionStore
|
|
7
|
-
} from "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
8
|
+
} from "../__chunks/EO4GVUA4.js";
|
|
9
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
9
10
|
import {
|
|
10
11
|
batch,
|
|
11
12
|
createStore,
|
|
@@ -18,7 +19,6 @@ import {
|
|
|
18
19
|
chain,
|
|
19
20
|
defaultValue
|
|
20
21
|
} from "../__chunks/PBFD2E7P.js";
|
|
21
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
22
22
|
import {
|
|
23
23
|
__objRest,
|
|
24
24
|
__spreadProps,
|
package/esm/tag/tag-store.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
createCompositeStore
|
|
4
|
-
} from "../__chunks/AJZ4BYF3.js";
|
|
5
|
-
import "../__chunks/CYQWQL4J.js";
|
|
6
|
-
import "../__chunks/7PRQYBBV.js";
|
|
7
2
|
import {
|
|
8
3
|
UndoManager
|
|
9
4
|
} from "../__chunks/7LM4Q2XB.js";
|
|
5
|
+
import {
|
|
6
|
+
createCompositeStore
|
|
7
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
8
|
+
import "../__chunks/7PRQYBBV.js";
|
|
9
|
+
import "../__chunks/EO4GVUA4.js";
|
|
10
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
10
11
|
import {
|
|
11
12
|
createStore,
|
|
12
13
|
setup,
|
|
@@ -16,7 +17,6 @@ import {
|
|
|
16
17
|
applyState,
|
|
17
18
|
defaultValue
|
|
18
19
|
} from "../__chunks/PBFD2E7P.js";
|
|
19
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
20
20
|
import {
|
|
21
21
|
__spreadProps,
|
|
22
22
|
__spreadValues
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createCompositeStore
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/CYQWQL4J.js";
|
|
4
|
+
} from "../__chunks/2CHYBBFH.js";
|
|
6
5
|
import "../__chunks/7PRQYBBV.js";
|
|
6
|
+
import "../__chunks/EO4GVUA4.js";
|
|
7
|
+
import "../__chunks/DTR5TSDJ.js";
|
|
7
8
|
import "../__chunks/BCALMBPZ.js";
|
|
8
9
|
import {
|
|
9
10
|
defaultValue
|
|
10
11
|
} from "../__chunks/PBFD2E7P.js";
|
|
11
|
-
import "../__chunks/DTR5TSDJ.js";
|
|
12
12
|
import {
|
|
13
13
|
__spreadProps,
|
|
14
14
|
__spreadValues
|
package/esm/utils/events.js
CHANGED
|
@@ -102,7 +102,7 @@ function queueBeforeEvent(element, type, callback, timeout) {
|
|
|
102
102
|
function addGlobalEventListener(type, listener, options, scope = window) {
|
|
103
103
|
const children = [];
|
|
104
104
|
try {
|
|
105
|
-
scope.addEventListener(type, listener, options);
|
|
105
|
+
scope.document.addEventListener(type, listener, options);
|
|
106
106
|
for (const frame of Array.from(scope.frames)) {
|
|
107
107
|
children.push(addGlobalEventListener(type, listener, options, frame));
|
|
108
108
|
}
|
|
@@ -110,7 +110,7 @@ function addGlobalEventListener(type, listener, options, scope = window) {
|
|
|
110
110
|
}
|
|
111
111
|
const removeEventListener = () => {
|
|
112
112
|
try {
|
|
113
|
-
scope.removeEventListener(type, listener, options);
|
|
113
|
+
scope.document.removeEventListener(type, listener, options);
|
|
114
114
|
} catch (e) {
|
|
115
115
|
}
|
|
116
116
|
for (const remove of children) {
|