@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.
Files changed (88) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/{access-DSkccuEI.js → access-d_DCdwqn.js} +3 -0
  3. package/dist/actions/index.d.ts +1 -1
  4. package/dist/actions/index.js +3 -2
  5. package/dist/{activity-DodHdC0L.js → activity-BshyLB3_.js} +4 -2
  6. package/dist/{activity-DxUcygE5.d.ts → activity-CJIQyo5X.d.ts} +5 -1
  7. package/dist/benchmark.d.ts +1 -1
  8. package/dist/benchmark.js +8 -8
  9. package/dist/boot/index.d.ts +12 -3
  10. package/dist/boot/index.js +1 -1
  11. package/dist/{boot-D71bjP4r.js → boot-BsMB_ySP.js} +21 -15
  12. package/dist/{cleanup-DAAhJjx5.js → cleanup-DefafSjG.js} +4 -4
  13. package/dist/{component-cleanup-CJCfu5ed.js → component-cleanup-hrqSikl2.js} +2 -2
  14. package/dist/{component-internal-DlAkCgBE.js → component-internal-DOVVMjG7.js} +7 -5
  15. package/dist/components/index.d.ts +7 -2
  16. package/dist/components/index.js +1 -1
  17. package/dist/{compose-ref-Cc_YkUpM.js → compose-ref-1Fhs7mbF.js} +13 -0
  18. package/dist/{compose-ref-Cizq72-x.d.ts → compose-ref-DOJHoW5X.d.ts} +3 -0
  19. package/dist/control/index.d.ts +1 -1
  20. package/dist/control/index.js +1 -1
  21. package/dist/{control-CdzY49Q2.d.ts → control-DdFw-Caz.d.ts} +1 -1
  22. package/dist/{control-Dv540XtV.js → control-DqOzkgc7.js} +9 -5
  23. package/dist/{csp-nonce-ByMbWv8s.js → csp-nonce-BBxq1zq4.js} +8 -1
  24. package/dist/data/index.d.ts +1 -1
  25. package/dist/data/index.js +3 -3
  26. package/dist/{data-DcikEH9N.js → data-DYqokZzc.js} +15 -4
  27. package/dist/{data-runtime-oIdQWnPW.js → data-runtime-JxoRgrrt.js} +2 -0
  28. package/dist/{deferred-B6CafO5u.js → deferred-BS0Xpstg.js} +8 -3
  29. package/dist/{effect-BdZcHblj.js → effect-BdvdgMvV.js} +2 -2
  30. package/dist/{fastlane-B2s24fWt.js → fastlane-DGo7SxBQ.js} +3 -3
  31. package/dist/{for-internal-T1C7jd7x.js → for-internal-jrliHZmF.js} +5 -5
  32. package/dist/foundations/icon/index.d.ts +14 -2
  33. package/dist/foundations/icon/index.js +8 -0
  34. package/dist/foundations/index.d.ts +2 -2
  35. package/dist/foundations/index.js +1 -1
  36. package/dist/foundations/interactions/index.d.ts +18 -2
  37. package/dist/foundations/interactions/index.js +1 -1
  38. package/dist/foundations/state/index.d.ts +8 -1
  39. package/dist/foundations/state/index.js +7 -1
  40. package/dist/foundations/structures/index.d.ts +2 -2
  41. package/dist/foundations/structures/index.js +1 -1
  42. package/dist/foundations/utilities/index.d.ts +2 -2
  43. package/dist/foundations/utilities/index.js +1 -1
  44. package/dist/fx/index.d.ts +10 -1
  45. package/dist/fx/index.js +7 -1
  46. package/dist/{index-oswRaMn6.d.ts → index-C29SEGIv.d.ts} +30 -2
  47. package/dist/{index-BnU0NPwM.d.ts → index-CzH-0LcA.d.ts} +18 -0
  48. package/dist/{index-DA3g8lm8.d.ts → index-KQ7Vl4-8.d.ts} +414 -5
  49. package/dist/index.d.ts +3 -4
  50. package/dist/index.js +13 -12
  51. package/dist/{interactions-CWkNEq_C.js → interactions-B4XaFxt1.js} +6 -1
  52. package/dist/{jsx-C3IECePB.js → jsx-DRS-qjiN.js} +2 -0
  53. package/dist/jsx-dev-runtime.d.ts +2 -2
  54. package/dist/jsx-dev-runtime.js +1 -1
  55. package/dist/jsx-runtime-BTzDdBJ_.d.ts +2 -0
  56. package/dist/{jsx-runtime-Cfb2umb4.d.ts → jsx-runtime-Cdd6Gkb0.d.ts} +4 -2
  57. package/dist/jsx-runtime.d.ts +2 -2
  58. package/dist/jsx-runtime.js +1 -1
  59. package/dist/{lifecycle-batch-Cyfd07rf.js → lifecycle-batch-BH0fax4F.js} +2 -2
  60. package/dist/{lifecycle-operations-CQ8fsc94.js → lifecycle-operations-Qxq6ABrC.js} +6 -1
  61. package/dist/{manifest-Dv0bO6kg.js → manifest-D6rfj_jC.js} +4 -0
  62. package/dist/{navigate-CZHPEUC4.d.ts → navigate-BL_FIIJ6.d.ts} +6 -1
  63. package/dist/{navigate-BbWj-QU-.js → navigate-CECCMPAr.js} +13 -10
  64. package/dist/{query-registry-qm13pEdK.js → query-registry-CimB1YeW.js} +11 -1
  65. package/dist/{readable-B99wh5Z_.js → readable-BsdGWsDE.js} +1 -1
  66. package/dist/{renderer-C6jz9nIN.js → renderer-CLvq458M.js} +10 -10
  67. package/dist/{resolution-B21kmOkp.js → resolution-D8PgnTzh.js} +11 -5
  68. package/dist/{resource-operation-CaAttQqz.js → resource-operation-CLQXCn1p.js} +4 -4
  69. package/dist/resources/index.d.ts +15 -2
  70. package/dist/resources/index.js +6 -5
  71. package/dist/router/index.d.ts +46 -4
  72. package/dist/router/index.js +15 -8
  73. package/dist/{selector-BLWwI55m.js → selector-CyK-sDwB.js} +4 -3
  74. package/dist/ssg/index.d.ts +5 -1
  75. package/dist/ssg/index.js +5 -5
  76. package/dist/ssr/index.d.ts +16 -3
  77. package/dist/ssr/index.js +1 -1
  78. package/dist/{ssr-CaZfvQWn.js → ssr-8_vHDWqV.js} +18 -10
  79. package/dist/{state-XPZYUzHL.js → state-DmkGM_LN.js} +3 -3
  80. package/dist/{structures-DKjkAmM5.js → structures-umvVUD-M.js} +19 -5
  81. package/dist/testing/index.d.ts +31 -2
  82. package/dist/testing/index.js +23 -5
  83. package/dist/{types-BA9FJtfR.d.ts → types-DkVJhVs9.d.ts} +4 -0
  84. package/dist/{verify-hydration-CcF-HJil.js → verify-hydration-jf8X2V3x.js} +1 -1
  85. package/package.json +1 -1
  86. package/dist/index-2bk8nldG.d.ts +0 -241
  87. package/dist/jsx-runtime-C_0v1pMN.d.ts +0 -2
  88. 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;