@askrjs/askr 0.0.92 → 0.0.94
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 +3 -0
- package/dist/{access-DSkccuEI.js → access-d_DCdwqn.js} +3 -0
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +3 -2
- package/dist/{activity-DodHdC0L.js → activity-BshyLB3_.js} +4 -2
- package/dist/{activity-DxUcygE5.d.ts → activity-CJIQyo5X.d.ts} +5 -1
- package/dist/benchmark.d.ts +1 -1
- package/dist/benchmark.js +8 -8
- package/dist/boot/index.d.ts +12 -3
- package/dist/boot/index.js +1 -1
- package/dist/{boot-D71bjP4r.js → boot-BsMB_ySP.js} +21 -15
- package/dist/{cleanup-DAAhJjx5.js → cleanup-DefafSjG.js} +4 -4
- package/dist/{component-cleanup-CJCfu5ed.js → component-cleanup-hrqSikl2.js} +2 -2
- package/dist/{component-internal-DlAkCgBE.js → component-internal-DOVVMjG7.js} +7 -5
- package/dist/components/index.d.ts +7 -2
- package/dist/components/index.js +1 -1
- package/dist/{compose-ref-Cc_YkUpM.js → compose-ref-1Fhs7mbF.js} +13 -0
- package/dist/{compose-ref-Cizq72-x.d.ts → compose-ref-DOJHoW5X.d.ts} +3 -0
- package/dist/control/index.d.ts +1 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-CdzY49Q2.d.ts → control-DdFw-Caz.d.ts} +1 -1
- package/dist/{control-Dv540XtV.js → control-DqOzkgc7.js} +9 -5
- package/dist/{csp-nonce-ByMbWv8s.js → csp-nonce-BBxq1zq4.js} +8 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.js +3 -3
- package/dist/{data-DcikEH9N.js → data-DYqokZzc.js} +15 -4
- package/dist/{data-runtime-oIdQWnPW.js → data-runtime-JxoRgrrt.js} +2 -0
- package/dist/{deferred-B6CafO5u.js → deferred-BS0Xpstg.js} +8 -3
- package/dist/{effect-BdZcHblj.js → effect-BdvdgMvV.js} +2 -2
- package/dist/{fastlane-B2s24fWt.js → fastlane-DGo7SxBQ.js} +3 -3
- package/dist/{for-internal-T1C7jd7x.js → for-internal-jrliHZmF.js} +5 -5
- package/dist/foundations/icon/index.d.ts +14 -2
- package/dist/foundations/icon/index.js +8 -0
- package/dist/foundations/index.d.ts +2 -2
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/interactions/index.d.ts +18 -2
- package/dist/foundations/interactions/index.js +1 -1
- package/dist/foundations/state/index.d.ts +8 -1
- package/dist/foundations/state/index.js +7 -1
- package/dist/foundations/structures/index.d.ts +2 -2
- package/dist/foundations/structures/index.js +1 -1
- package/dist/foundations/utilities/index.d.ts +2 -2
- package/dist/foundations/utilities/index.js +1 -1
- package/dist/fx/index.d.ts +10 -1
- package/dist/fx/index.js +7 -1
- package/dist/{index-oswRaMn6.d.ts → index-C29SEGIv.d.ts} +30 -2
- package/dist/{index-BnU0NPwM.d.ts → index-CzH-0LcA.d.ts} +18 -0
- package/dist/{index-DA3g8lm8.d.ts → index-KQ7Vl4-8.d.ts} +414 -5
- package/dist/index.d.ts +3 -4
- package/dist/index.js +13 -12
- package/dist/{interactions-CWkNEq_C.js → interactions-B4XaFxt1.js} +6 -1
- package/dist/{jsx-C3IECePB.js → jsx-DRS-qjiN.js} +2 -0
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-dev-runtime.js +1 -1
- package/dist/jsx-runtime-BTzDdBJ_.d.ts +2 -0
- package/dist/{jsx-runtime-Cfb2umb4.d.ts → jsx-runtime-Cdd6Gkb0.d.ts} +4 -2
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/jsx-runtime.js +1 -1
- package/dist/{lifecycle-batch-Cyfd07rf.js → lifecycle-batch-BH0fax4F.js} +2 -2
- package/dist/{lifecycle-operations-CQ8fsc94.js → lifecycle-operations-Qxq6ABrC.js} +6 -1
- package/dist/{manifest-Dv0bO6kg.js → manifest-D6rfj_jC.js} +4 -0
- package/dist/{navigate-CZHPEUC4.d.ts → navigate-BL_FIIJ6.d.ts} +6 -1
- package/dist/{navigate-BbWj-QU-.js → navigate-CECCMPAr.js} +13 -10
- package/dist/{query-registry-qm13pEdK.js → query-registry-CimB1YeW.js} +11 -1
- package/dist/{readable-B99wh5Z_.js → readable-BsdGWsDE.js} +1 -1
- package/dist/{renderer-C6jz9nIN.js → renderer-CLvq458M.js} +10 -10
- package/dist/{resolution-B21kmOkp.js → resolution-D8PgnTzh.js} +11 -5
- package/dist/{resource-operation-CaAttQqz.js → resource-operation-CLQXCn1p.js} +4 -4
- package/dist/resources/index.d.ts +15 -2
- package/dist/resources/index.js +6 -5
- package/dist/router/index.d.ts +46 -4
- package/dist/router/index.js +15 -8
- package/dist/{selector-BLWwI55m.js → selector-CyK-sDwB.js} +4 -3
- package/dist/ssg/index.d.ts +5 -1
- package/dist/ssg/index.js +5 -5
- package/dist/ssr/index.d.ts +16 -3
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-CaZfvQWn.js → ssr-8_vHDWqV.js} +18 -10
- package/dist/{state-XPZYUzHL.js → state-DmkGM_LN.js} +3 -3
- package/dist/{structures-DKjkAmM5.js → structures-umvVUD-M.js} +19 -5
- package/dist/testing/index.d.ts +31 -2
- package/dist/testing/index.js +23 -5
- package/dist/{types-BA9FJtfR.d.ts → types-DkVJhVs9.d.ts} +4 -0
- package/dist/{verify-hydration-CcF-HJil.js → verify-hydration-jf8X2V3x.js} +1 -1
- package/package.json +1 -1
- package/dist/index-2bk8nldG.d.ts +0 -241
- package/dist/jsx-runtime-C_0v1pMN.d.ts +0 -2
- package/dist/scheduler-CmLO4Dfm.d.ts +0 -65
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
//#region src/foundations/utilities/event-types.d.ts
|
|
2
|
+
/** Minimal shape of an event that can be prevented from its default action. */
|
|
2
3
|
interface DefaultPreventable {
|
|
3
4
|
defaultPrevented?: boolean;
|
|
4
5
|
preventDefault?: () => void;
|
|
5
6
|
}
|
|
7
|
+
/** Minimal shape of an event whose propagation can be stopped. */
|
|
6
8
|
interface PropagationStoppable {
|
|
7
9
|
stopPropagation?: () => void;
|
|
8
10
|
}
|
|
11
|
+
/** Structural subset of a keyboard event, for handlers that accept native or synthetic events. */
|
|
9
12
|
interface KeyboardLikeEvent extends DefaultPreventable, PropagationStoppable {
|
|
10
13
|
key: string;
|
|
11
14
|
}
|
|
15
|
+
/** Structural subset of a pointer event, for handlers that accept native or synthetic events. */
|
|
12
16
|
interface PointerLikeEvent extends DefaultPreventable, PropagationStoppable {
|
|
13
17
|
target?: unknown;
|
|
14
18
|
}
|
|
19
|
+
/** Structural subset of a focus event, for handlers that accept native or synthetic events. */
|
|
15
20
|
interface FocusLikeEvent extends DefaultPreventable, PropagationStoppable {
|
|
16
21
|
relatedTarget?: unknown;
|
|
17
22
|
}
|
|
@@ -42,6 +47,7 @@ interface FocusLikeEvent extends DefaultPreventable, PropagationStoppable {
|
|
|
42
47
|
* 4. Type Safety
|
|
43
48
|
* Args are readonly to prevent mutation. Return type matches input.
|
|
44
49
|
*/
|
|
50
|
+
/** Options for {@link composeHandlers}. */
|
|
45
51
|
interface ComposeHandlersOptions {
|
|
46
52
|
/**
|
|
47
53
|
* When true (default), do not run the second handler if the first prevented default.
|
|
@@ -49,26 +55,38 @@ interface ComposeHandlersOptions {
|
|
|
49
55
|
*/
|
|
50
56
|
checkDefaultPrevented?: boolean;
|
|
51
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Compose two optional event handlers into one, running `first` then
|
|
60
|
+
* `second` unless `first` marked the event as default-prevented.
|
|
61
|
+
*/
|
|
52
62
|
declare function composeHandlers<A extends readonly unknown[]>(first?: (...args: A) => void, second?: (...args: A) => void, options?: ComposeHandlersOptions): (...args: A) => void;
|
|
53
63
|
//#endregion
|
|
54
64
|
//#region src/foundations/utilities/merge-props.d.ts
|
|
65
|
+
/**
|
|
66
|
+
* Merge `base` props over `injected` props: non-handler keys in `base` win,
|
|
67
|
+
* and matching event handlers are composed (`injected` runs first).
|
|
68
|
+
*/
|
|
55
69
|
declare function mergeProps<TBase extends object, TInjected extends object>(base: TBase, injected: TInjected): TInjected & TBase;
|
|
56
70
|
//#endregion
|
|
57
71
|
//#region src/foundations/utilities/aria.d.ts
|
|
58
72
|
/**
|
|
59
73
|
* Tiny aria helpers
|
|
60
74
|
*/
|
|
75
|
+
/** Build an `aria-disabled` prop object; omitted entirely when `disabled` is falsy. */
|
|
61
76
|
declare function ariaDisabled(disabled?: boolean): {
|
|
62
77
|
'aria-disabled'?: 'true';
|
|
63
78
|
};
|
|
79
|
+
/** Build an `aria-expanded` prop object; omitted when `expanded` is `undefined`. */
|
|
64
80
|
declare function ariaExpanded(expanded?: boolean): {
|
|
65
81
|
'aria-expanded'?: 'true' | 'false';
|
|
66
82
|
};
|
|
83
|
+
/** Build an `aria-selected` prop object; omitted when `selected` is `undefined`. */
|
|
67
84
|
declare function ariaSelected(selected?: boolean): {
|
|
68
85
|
'aria-selected'?: 'true' | 'false';
|
|
69
86
|
};
|
|
70
87
|
//#endregion
|
|
71
88
|
//#region src/foundations/utilities/use-id.d.ts
|
|
89
|
+
/** Options for {@link formatId}. */
|
|
72
90
|
interface FormatIdOptions {
|
|
73
91
|
/** Defaults to 'askr' */
|
|
74
92
|
prefix?: string;
|