yummies 5.15.1 → 6.1.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.
Files changed (236) hide show
  1. package/README.md +10 -4
  2. package/async.cjs +45 -1
  3. package/async.cjs.map +1 -1
  4. package/async.d.ts +7 -6
  5. package/common.cjs +11 -1
  6. package/common.cjs.map +1 -1
  7. package/common.d.ts +8 -5
  8. package/common.js.map +1 -1
  9. package/complex.cjs +130 -1
  10. package/complex.cjs.map +1 -1
  11. package/complex.d.ts +113 -0
  12. package/complex.js +43 -1
  13. package/complex.js.map +1 -1
  14. package/cookie.cjs +9 -1
  15. package/cookie.cjs.map +1 -1
  16. package/cookie.d.ts +5 -3
  17. package/cookie.js.map +1 -1
  18. package/css.cjs +45 -1
  19. package/css.cjs.map +1 -1
  20. package/css.d.ts +11 -8
  21. package/css.js.map +1 -1
  22. package/data.cjs +43 -1
  23. package/data.cjs.map +1 -1
  24. package/data.d.ts +5 -4
  25. package/data.js.map +1 -1
  26. package/date-time.cjs +395 -1
  27. package/date-time.cjs.map +1 -1
  28. package/date-time.d.ts +12 -10
  29. package/date-time.js.map +1 -1
  30. package/device.cjs +32 -1
  31. package/device.cjs.map +1 -1
  32. package/device.d.ts +9 -8
  33. package/encodings.cjs +270 -1
  34. package/encodings.cjs.map +1 -1
  35. package/encodings.d.ts +3 -2
  36. package/encodings.js.map +1 -1
  37. package/errors.cjs +23 -1
  38. package/errors.cjs.map +1 -1
  39. package/errors.d.ts +5 -4
  40. package/errors.js.map +1 -1
  41. package/file.cjs +28 -1
  42. package/file.cjs.map +1 -1
  43. package/file.d.ts +4 -3
  44. package/format.cjs +75 -1
  45. package/format.cjs.map +1 -1
  46. package/format.d.ts +74 -0
  47. package/format.js.map +1 -1
  48. package/html.cjs +167 -1
  49. package/html.cjs.map +1 -1
  50. package/html.d.ts +19 -17
  51. package/html.js.map +1 -1
  52. package/id.cjs +25 -1
  53. package/id.cjs.map +1 -1
  54. package/id.d.ts +9 -8
  55. package/imports.cjs +33 -1
  56. package/imports.cjs.map +1 -1
  57. package/imports.d.ts +6 -4
  58. package/math.cjs +14 -1
  59. package/math.cjs.map +1 -1
  60. package/math.d.ts +7 -5
  61. package/math.js.map +1 -1
  62. package/media.cjs +105 -1
  63. package/media.cjs.map +1 -1
  64. package/media.d.ts +11 -11
  65. package/mobx.cjs +184 -1
  66. package/mobx.cjs.map +1 -1
  67. package/mobx.d.ts +66 -0
  68. package/mobx.js.map +1 -1
  69. package/ms.cjs +13 -1
  70. package/ms.cjs.map +1 -1
  71. package/ms.d.ts +4 -3
  72. package/number.cjs +10 -1
  73. package/number.cjs.map +1 -1
  74. package/number.d.ts +3 -2
  75. package/package.json +97 -141
  76. package/parser.cjs +68 -1
  77. package/parser.cjs.map +1 -1
  78. package/parser.d.ts +41 -0
  79. package/parser.js.map +1 -1
  80. package/price.cjs +20 -1
  81. package/price.cjs.map +1 -1
  82. package/price.d.ts +5 -3
  83. package/random.cjs +24 -1
  84. package/random.cjs.map +1 -1
  85. package/random.d.ts +10 -9
  86. package/react.cjs +216 -1
  87. package/react.cjs.map +1 -1
  88. package/react.d.ts +113 -0
  89. package/react.js.map +1 -1
  90. package/sound.cjs +11 -1
  91. package/sound.cjs.map +1 -1
  92. package/sound.d.ts +3 -2
  93. package/text.cjs +37 -1
  94. package/text.cjs.map +1 -1
  95. package/text.d.ts +4 -3
  96. package/type-guard.cjs +75 -1
  97. package/type-guard.cjs.map +1 -1
  98. package/type-guard.d.ts +121 -0
  99. package/type-guard.js.map +1 -1
  100. package/{utils/types.d.ts → types.d.ts} +54 -53
  101. package/types.global.cjs +2 -0
  102. package/types.global.cjs.map +1 -0
  103. package/{utility-types.d.ts → types.global.d.ts} +1 -1
  104. package/types.global.js +2 -0
  105. package/types.global.js.map +1 -0
  106. package/vibrate.cjs +8 -1
  107. package/vibrate.cjs.map +1 -1
  108. package/vibrate.d.ts +3 -2
  109. package/async.d.ts.map +0 -1
  110. package/common.d.ts.map +0 -1
  111. package/complex/counter.d.ts +0 -15
  112. package/complex/counter.d.ts.map +0 -1
  113. package/complex/global-config.d.ts +0 -11
  114. package/complex/global-config.d.ts.map +0 -1
  115. package/complex/index.d.ts +0 -4
  116. package/complex/index.d.ts.map +0 -1
  117. package/complex/modules-factory.d.ts +0 -49
  118. package/complex/modules-factory.d.ts.map +0 -1
  119. package/cookie.d.ts.map +0 -1
  120. package/css.d.ts.map +0 -1
  121. package/data.d.ts.map +0 -1
  122. package/date-time.d.ts.map +0 -1
  123. package/device.d.ts.map +0 -1
  124. package/encodings.d.ts.map +0 -1
  125. package/errors.d.ts.map +0 -1
  126. package/file.d.ts.map +0 -1
  127. package/format/_exports.d.ts +0 -5
  128. package/format/_exports.d.ts.map +0 -1
  129. package/format/constants.d.ts +0 -4
  130. package/format/constants.d.ts.map +0 -1
  131. package/format/index.d.ts +0 -3
  132. package/format/index.d.ts.map +0 -1
  133. package/format/number.d.ts +0 -36
  134. package/format/number.d.ts.map +0 -1
  135. package/format/percent.d.ts +0 -15
  136. package/format/percent.d.ts.map +0 -1
  137. package/format/skip-spaces.d.ts +0 -5
  138. package/format/skip-spaces.d.ts.map +0 -1
  139. package/html.d.ts.map +0 -1
  140. package/id.d.ts.map +0 -1
  141. package/imports.d.ts.map +0 -1
  142. package/math.d.ts.map +0 -1
  143. package/media.d.ts.map +0 -1
  144. package/mobx/apply-observable.d.ts +0 -4
  145. package/mobx/apply-observable.d.ts.map +0 -1
  146. package/mobx/create-enhanced-atom.d.ts +0 -11
  147. package/mobx/create-enhanced-atom.d.ts.map +0 -1
  148. package/mobx/create-ref.d.ts +0 -28
  149. package/mobx/create-ref.d.ts.map +0 -1
  150. package/mobx/deep-observable-struct.d.ts +0 -7
  151. package/mobx/deep-observable-struct.d.ts.map +0 -1
  152. package/mobx/get-mobx-administration.d.ts +0 -6
  153. package/mobx/get-mobx-administration.d.ts.map +0 -1
  154. package/mobx/index.d.ts +0 -7
  155. package/mobx/index.d.ts.map +0 -1
  156. package/mobx/lazy-observe.d.ts +0 -14
  157. package/mobx/lazy-observe.d.ts.map +0 -1
  158. package/ms.d.ts.map +0 -1
  159. package/number.d.ts.map +0 -1
  160. package/parser/_exports.d.ts +0 -4
  161. package/parser/_exports.d.ts.map +0 -1
  162. package/parser/index.d.ts +0 -3
  163. package/parser/index.d.ts.map +0 -1
  164. package/parser/number.d.ts +0 -21
  165. package/parser/number.d.ts.map +0 -1
  166. package/parser/percent.d.ts +0 -4
  167. package/parser/percent.d.ts.map +0 -1
  168. package/parser/string.d.ts +0 -7
  169. package/parser/string.d.ts.map +0 -1
  170. package/price.d.ts.map +0 -1
  171. package/random.d.ts.map +0 -1
  172. package/react/hooks/index.d.ts +0 -22
  173. package/react/hooks/index.d.ts.map +0 -1
  174. package/react/hooks/use-abort-controller.d.ts +0 -2
  175. package/react/hooks/use-abort-controller.d.ts.map +0 -1
  176. package/react/hooks/use-abort-signal.d.ts +0 -2
  177. package/react/hooks/use-abort-signal.d.ts.map +0 -1
  178. package/react/hooks/use-click-outside.d.ts +0 -9
  179. package/react/hooks/use-click-outside.d.ts.map +0 -1
  180. package/react/hooks/use-constant.d.ts +0 -9
  181. package/react/hooks/use-constant.d.ts.map +0 -1
  182. package/react/hooks/use-define-ref.d.ts +0 -10
  183. package/react/hooks/use-define-ref.d.ts.map +0 -1
  184. package/react/hooks/use-element-ref.d.ts +0 -2
  185. package/react/hooks/use-element-ref.d.ts.map +0 -1
  186. package/react/hooks/use-event-listener.d.ts +0 -8
  187. package/react/hooks/use-event-listener.d.ts.map +0 -1
  188. package/react/hooks/use-event.d.ts +0 -3
  189. package/react/hooks/use-event.d.ts.map +0 -1
  190. package/react/hooks/use-flag.d.ts +0 -8
  191. package/react/hooks/use-flag.d.ts.map +0 -1
  192. package/react/hooks/use-force-update.d.ts +0 -2
  193. package/react/hooks/use-force-update.d.ts.map +0 -1
  194. package/react/hooks/use-initial-height.d.ts +0 -5
  195. package/react/hooks/use-initial-height.d.ts.map +0 -1
  196. package/react/hooks/use-instance.d.ts +0 -27
  197. package/react/hooks/use-instance.d.ts.map +0 -1
  198. package/react/hooks/use-intersection-observer.d.ts +0 -2
  199. package/react/hooks/use-intersection-observer.d.ts.map +0 -1
  200. package/react/hooks/use-last-defined-value.d.ts +0 -2
  201. package/react/hooks/use-last-defined-value.d.ts.map +0 -1
  202. package/react/hooks/use-last-value-ref.d.ts +0 -2
  203. package/react/hooks/use-last-value-ref.d.ts.map +0 -1
  204. package/react/hooks/use-life-cycle.d.ts +0 -5
  205. package/react/hooks/use-life-cycle.d.ts.map +0 -1
  206. package/react/hooks/use-resize-observer.d.ts +0 -2
  207. package/react/hooks/use-resize-observer.d.ts.map +0 -1
  208. package/react/hooks/use-sync-ref.d.ts +0 -2
  209. package/react/hooks/use-sync-ref.d.ts.map +0 -1
  210. package/react/hooks/use-toggle.d.ts +0 -2
  211. package/react/hooks/use-toggle.d.ts.map +0 -1
  212. package/react/hooks/use-value.d.ts +0 -5
  213. package/react/hooks/use-value.d.ts.map +0 -1
  214. package/react/hooks/use-visibility-state.d.ts +0 -2
  215. package/react/hooks/use-visibility-state.d.ts.map +0 -1
  216. package/react/index.d.ts +0 -2
  217. package/react/index.d.ts.map +0 -1
  218. package/sound.d.ts.map +0 -1
  219. package/storage.d.ts +0 -39
  220. package/storage.d.ts.map +0 -1
  221. package/text.d.ts.map +0 -1
  222. package/type-guard/_exports.d.ts +0 -86
  223. package/type-guard/_exports.d.ts.map +0 -1
  224. package/type-guard/index.d.ts +0 -3
  225. package/type-guard/index.d.ts.map +0 -1
  226. package/utility-types.cjs +0 -2
  227. package/utility-types.cjs.map +0 -1
  228. package/utility-types.d.ts.map +0 -1
  229. package/utility-types.js +0 -2
  230. package/utility-types.js.map +0 -1
  231. package/utils/types.d.ts.map +0 -1
  232. package/vibrate.d.ts.map +0 -1
  233. /package/{utils/types.cjs → types.cjs} +0 -0
  234. /package/{utils/types.cjs.map → types.cjs.map} +0 -0
  235. /package/{utils/types.js → types.js} +0 -0
  236. /package/{utils/types.js.map → types.js.map} +0 -0
@@ -1,36 +0,0 @@
1
- import { Maybe } from '../utils/types.ts';
2
- export interface NumberFormatSettings {
3
- delimiter?: string;
4
- /**
5
- * digitsOnlyForFloat - Show digits after decimal point only if they are not zeros after converting to number.
6
- * Example: "0.00" -> "0", "0.10" -> "0.1", but "0.003" -> "0.003"
7
- *
8
- * @default true
9
- */
10
- digitsOnlyForFloat?: boolean;
11
- /**
12
- * Text which will be returned if the value is undefined, null, NaN, Infinity or empty string.
13
- * Example: "–" will be returned if the value is undefined and emptyText is "–".
14
- */
15
- emptyText?: string;
16
- /**
17
- * Text to append to the end of the formatted number.
18
- * Example: if value is 1000 and postfix is "₽", result will be "1 000₽".
19
- */
20
- postfix?: string;
21
- /**
22
- * Fixed number of digits after the decimal point (number.toFixed() method)
23
- * If set to false, the truncation is ignored!
24
- */
25
- digits?: number | false;
26
- /**
27
- * Remove trailing zeros from the end of the number
28
- * Example: 0.010000000000000000000000000000000000000000000 -> 0.01
29
- */
30
- cutZeros?: boolean;
31
- }
32
- export declare const number: {
33
- (rawValue: Maybe<string | number>, userSettings?: Maybe<NumberFormatSettings>): string;
34
- defaultSettings: NumberFormatSettings;
35
- };
36
- //# sourceMappingURL=number.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/format/number.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM;eACP,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,iBACjB,KAAK,CAAC,oBAAoB,CAAC,GACzC,MAAM;;CAqDR,CAAC"}
@@ -1,15 +0,0 @@
1
- import { parser } from '../parser/index.ts';
2
- import { Maybe } from '../utils/types.ts';
3
- export interface PercentFormatSettings extends Omit<parser.NumberParserSettings, 'fallback'> {
4
- divider?: string;
5
- delimiter?: string;
6
- symbol?: string;
7
- emptyText?: string;
8
- }
9
- /**
10
- * 100 -> 100%
11
- * 99.123214412 -> 99.12%
12
- * 99.123214412 -> 99,12%
13
- */
14
- export declare const percent: (value: Maybe<number | string>, settings?: PercentFormatSettings) => string;
15
- //# sourceMappingURL=percent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"percent.d.ts","sourceRoot":"","sources":["../../src/format/percent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAIjD,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,UAAU,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAClB,OAAO,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAC7B,WAAW,qBAAqB,WAkBjC,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Removes all spaces in string
3
- */
4
- export declare const skipSpaces: (value: string) => string;
5
- //# sourceMappingURL=skip-spaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skip-spaces.d.ts","sourceRoot":"","sources":["../../src/format/skip-spaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,WAAgC,CAAC"}
package/html.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../src/html.ts"],"names":[],"mappings":"AAAA,OAAkB,EAAE,KAAK,MAAM,IAAI,eAAe,EAAE,MAAM,WAAW,CAAC;AAEtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,MAAM,GAAG,IAe1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,WAAW,MAAM,GAAG,IAAI,EACxB,WAAW,MAAM,SAgBlB,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,UAI7C;AAED,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,GAAG,IAAI,WAU3D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,GAAG,KAAK,YAKjC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,MAAM,WAAW,SAezD,CAAC;AAiDF,eAAO,MAAM,YAAY,GAAI,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,SAAS,eAAe,WAKzE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,SAAS,WAAW,GAAG,IAAI,EAC3B,QAAQ,KAAK,CAAC,WAAW,CAAC,YAe3B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GACpC,IAAI,YAAY,EAChB,SAAS;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,+BAMhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,6BAA+B,WAmBjE,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,UAQzD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,UAQnD;AAED,eAAO,MAAM,kBAAkB,eACqC,CAAC;AAErE,eAAO,MAAM,mBAAmB,eACqC,CAAC"}
package/id.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../src/id.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,UAAU,2BAA8B,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,eAAe,2BAA8B,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,2BAA4B,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,2BAA4B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAM,MAAU,iBAK9D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,cAAmC,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,cACoB,CAAC"}
package/imports.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../src/imports.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAU,CAAC,EACrC,aAAa,MAAM,OAAO,CAAC,CAAC,CAAC,EAC7B,iBAAY,EACZ,cAAY,KACX,OAAO,CAAC,CAAC,CAkBX,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,GAAG;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,GAAU,CAAC,EACvC,aAAa,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,KACpC,OAAO,CAAC,CAAC,CAYX,CAAC"}
package/math.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../src/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,UAEnC;AACD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,UAEnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,WAEpE,CAAC"}
package/media.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../src/media.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAOxD;AAED,eAAO,MAAM,SAAS,GAAI,WAAW,MAAM,GAAG,IAAI,WACsB,CAAC;AAEzE,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,SAEpC,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,cAAc,gBAAgB,EAC9B,WAAU,MAAoB,SAwB/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,WAAW,IAAI,GAAG,MAAM,8BAMhD,CAAC;AAoCL,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,EAAE,OAAO,MAAM,8BAajE,CAAC;AAEF,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAKD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAQzD;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,KAAG,OAEvC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,OAG3C,CAAC"}
@@ -1,4 +0,0 @@
1
- import { AnyObject } from '../utils/types.ts';
2
- export type ObservableAnnotationsArray = [string, any][];
3
- export declare const applyObservable: (context: AnyObject, annotationsArray: ObservableAnnotationsArray, useDecorators?: boolean) => void;
4
- //# sourceMappingURL=apply-observable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apply-observable.d.ts","sourceRoot":"","sources":["../../src/mobx/apply-observable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,0BAA0B,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;AAEzD,eAAO,MAAM,eAAe,GAC1B,SAAS,SAAS,EAClB,kBAAkB,0BAA0B,EAC5C,gBAAgB,OAAO,SAWxB,CAAC"}
@@ -1,11 +0,0 @@
1
- import { IAtom } from 'mobx';
2
- import { AnyObject } from '../utils/types.ts';
3
- export interface IEnhancedAtom<TMeta extends AnyObject = AnyObject> extends IAtom {
4
- meta: TMeta;
5
- }
6
- /**
7
- * Creates an enhanced atom with meta data
8
- * And bind `reportChanged` and `reportObserved` method to the atom
9
- */
10
- export declare const createEnhancedAtom: <TMeta extends AnyObject>(name: string, onBecomeObservedHandler?: (atom: IEnhancedAtom<TMeta>) => void, onBecomeUnobservedHandler?: (atom: IEnhancedAtom<TMeta>) => void, meta?: TMeta) => IEnhancedAtom<TMeta>;
11
- //# sourceMappingURL=create-enhanced-atom.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-enhanced-atom.d.ts","sourceRoot":"","sources":["../../src/mobx/create-enhanced-atom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,aAAa,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,CAChE,SAAQ,KAAK;IACb,IAAI,EAAE,KAAK,CAAC;CACb;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,KAAK,SAAS,SAAS,EACxD,MAAM,MAAM,EACZ,0BAA0B,CAAC,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,EAC9D,4BAA4B,CAAC,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,EAChE,OAAO,KAAK,KACX,aAAa,CAAC,KAAK,CAUrB,CAAC"}
@@ -1,28 +0,0 @@
1
- import { IEqualsComparer } from 'mobx';
2
- import { AnyObject, Maybe } from '../utils/types.ts';
3
- export type RefChangeListener<T> = (value: T | null) => void;
4
- /**
5
- * Alternative to React.createRef but works in MobX world.
6
- * Typically it the should be the same React.LegacyRef (fn style)
7
- */
8
- export interface Ref<T = any, TMeta = AnyObject> {
9
- (element: Maybe<T>): void;
10
- listeners: Set<RefChangeListener<NoInfer<T>>>;
11
- current: NoInfer<T> | null;
12
- meta: TMeta;
13
- }
14
- export interface CreateRefConfig<T = any, TMeta = AnyObject> {
15
- onSet?: (node: T) => void;
16
- onUnset?: () => void;
17
- onChange?: RefChangeListener<T>;
18
- meta?: TMeta;
19
- initial?: Maybe<T>;
20
- comparer?: IEqualsComparer<T | null>;
21
- }
22
- /**
23
- * Creates ref thing to attach HTMLElements in React and all other
24
- */
25
- export declare const createRef: <T = any, TMeta = AnyObject>(cfg?: CreateRefConfig<T, TMeta>) => Ref<T, TMeta>;
26
- export declare const isRef: <T, TMeta = any>(value: T | Ref<T, TMeta>) => value is Ref<T, TMeta>;
27
- export declare const toRef: <T, TMeta = any>(value: T | Ref<T, TMeta>, cfg?: Omit<CreateRefConfig<T, TMeta>, "initial">) => Ref<T, TMeta>;
28
- //# sourceMappingURL=create-ref.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-ref.d.ts","sourceRoot":"","sources":["../../src/mobx/create-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAKrB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,GAAG,SAAS;IAC7C,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAE1B,SAAS,EAAE,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,KAAK,CAAC;CACb;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,GAAG,SAAS;IACzD,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,GAAG,GAAG,EAAE,KAAK,GAAG,SAAS,EAClD,MAAM,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,KAC9B,GAAG,CAAC,CAAC,EAAE,KAAK,CAwCd,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,KAAK,GAAG,GAAG,EAClC,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,KACvB,KAAK,IAAI,GAAG,CAAC,CAAC,EAAE,KAAK,CAEvB,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,KAAK,GAAG,GAAG,EAClC,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,EACxB,MAAM,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,SAAS,CAAC,KAC/C,GAAG,CAAC,CAAC,EAAE,KAAK,CAEd,CAAC"}
@@ -1,7 +0,0 @@
1
- import { AnyObject } from '../utils/types.ts';
2
- export declare class DeepObservableStruct<TData extends AnyObject> {
3
- data: TData;
4
- constructor(data: TData);
5
- set(newData: Partial<TData>): void;
6
- }
7
- //# sourceMappingURL=deep-observable-struct.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deep-observable-struct.d.ts","sourceRoot":"","sources":["../../src/mobx/deep-observable-struct.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,qBAAa,oBAAoB,CAAC,KAAK,SAAS,SAAS;IACvD,IAAI,EAAE,KAAK,CAAC;gBAEA,IAAI,EAAE,KAAK;IASvB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;CAoD5B"}
@@ -1,6 +0,0 @@
1
- import { AnnotationMapEntry } from 'mobx';
2
- import { AnyObject } from '../utils/types.ts';
3
- type ObservableObjectAdministration = Parameters<Exclude<AnnotationMapEntry, boolean>['make_']>[0];
4
- export declare const getMobxAdministration: (context: AnyObject) => ObservableObjectAdministration;
5
- export {};
6
- //# sourceMappingURL=get-mobx-administration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-mobx-administration.d.ts","sourceRoot":"","sources":["../../src/mobx/get-mobx-administration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,kBAAkB,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,KAAK,8BAA8B,GAAG,UAAU,CAC9C,OAAO,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,CAC9C,CAAC,CAAC,CAAC,CAAC;AAEL,eAAO,MAAM,qBAAqB,GAChC,SAAS,SAAS,KACjB,8BAAgD,CAAC"}
package/mobx/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from './apply-observable.js';
2
- export * from './create-enhanced-atom.js';
3
- export * from './create-ref.js';
4
- export * from './deep-observable-struct.js';
5
- export * from './get-mobx-administration.js';
6
- export * from './lazy-observe.js';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mobx/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * When ONE OF the properties is becomes observed then `onStart` function is called.
3
- * WHen ALL properties are unobserved then `onEnd` function is called with the `metaData` that was returned by `onStart`.
4
- *
5
- * It uses `onBecomeObserved` and `onBecomeUnobserved` mobx hooks to perform lazy observation.
6
- */
7
- export declare const lazyObserve: <TMetaData = void>({ context, property, onStart, onEnd, endDelay, }: {
8
- context?: any;
9
- property: any | any[];
10
- onStart?: () => TMetaData;
11
- onEnd?: (metaData: TMetaData, cleanupFn: VoidFunction) => void;
12
- endDelay?: number | false;
13
- }) => () => void;
14
- //# sourceMappingURL=lazy-observe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lazy-observe.d.ts","sourceRoot":"","sources":["../../src/mobx/lazy-observe.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,GAAG,IAAI,EAAE,kDAM3C;IACD,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAC3B,eAoEA,CAAC"}
package/ms.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ms.d.ts","sourceRoot":"","sources":["../src/ms.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;CAOZ,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,EAAE,GAAI,OAAO,MAAM,EAAE,OAAM,MAAM,OAAO,SAAgB,WAC5C,CAAC"}
package/number.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../src/number.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,GAAE,MAAU,GAAG,MAAM,CAOtE"}
@@ -1,4 +0,0 @@
1
- export * from './number.js';
2
- export * from './percent.js';
3
- export * from './string.js';
4
- //# sourceMappingURL=_exports.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_exports.d.ts","sourceRoot":"","sources":["../../src/parser/_exports.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
package/parser/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import * as parser from './_exports.js';
2
- export { parser };
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parser/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,21 +0,0 @@
1
- import { Maybe } from '../utils/types.ts';
2
- export interface NumberParserSettings<TFallback = number> {
3
- digits?: number;
4
- fallback?: TFallback;
5
- /**
6
- * Round to upper boundary
7
- * 5.1 -> 6
8
- */
9
- ceil?: boolean;
10
- /**
11
- * Round to bottom boundary
12
- * 5.9 -> 5
13
- */
14
- floor?: boolean;
15
- clamped?: [min?: Maybe<number>, max?: Maybe<number>];
16
- }
17
- export declare const number: {
18
- <TFallback = number>(input: Maybe<unknown>, userSettings?: Maybe<NumberParserSettings<TFallback>>): number | TFallback;
19
- defaultSettings: NumberParserSettings<number>;
20
- };
21
- //# sourceMappingURL=number.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/parser/number.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,WAAW,oBAAoB,CAAC,SAAS,GAAG,MAAM;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,MAAM;KAAI,SAAS,kBACvB,KAAK,CAAC,OAAO,CAAC,iBACN,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,GACpD,MAAM,GAAG,SAAS;;CA+CpB,CAAC"}
@@ -1,4 +0,0 @@
1
- import { Maybe } from '../utils/types.ts';
2
- import { NumberParserSettings } from './number.js';
3
- export declare const percent: <TFallback = number>(value: Maybe<string | number>, maxValue?: Maybe<string | number>, settings?: Maybe<NumberParserSettings<TFallback>>) => number | TFallback;
4
- //# sourceMappingURL=percent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"percent.d.ts","sourceRoot":"","sources":["../../src/parser/percent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,KAAK,oBAAoB,EAAU,MAAM,aAAa,CAAC;AAEhE,eAAO,MAAM,OAAO,GAAI,SAAS,GAAG,MAAM,EACxC,OAAO,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAC7B,WAAW,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EACjC,WAAW,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,uBAGlD,CAAC"}
@@ -1,7 +0,0 @@
1
- import { Maybe } from '../utils/types.ts';
2
- export interface StringParserSettings<TFallback = string> {
3
- fallback?: TFallback;
4
- prettyJson?: boolean;
5
- }
6
- export declare const string: <TFallback = string>(input: Maybe<unknown>, settings?: Maybe<StringParserSettings<TFallback>>) => string | TFallback;
7
- //# sourceMappingURL=string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/parser/string.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,WAAW,oBAAoB,CAAC,SAAS,GAAG,MAAM;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,GAAI,SAAS,GAAG,MAAM,EACvC,OAAO,KAAK,CAAC,OAAO,CAAC,EACrB,WAAW,KAAK,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,KAChD,MAAM,GAAG,SAiBX,CAAC"}
package/price.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../src/price.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBACf,SAAQ,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC;IAC3D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,WAAW,MAAM,EACjB,8CAA6C,kBAAuB,WAsBrE,CAAC"}
package/random.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../src/random.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,EACtD,YAAO,EACP,YAAO,KACN,CAA6C,CAAC;AAEjD,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,YAAO,EAAE,YAAO,KAAG,CACH,CAAC;AAEzE,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,KAAK,CAAC,EAAE,KAAG,CACR,CAAC;AAEvC,eAAO,MAAM,kBAAkB,GAAI,YAAO,EAAE,YAAQ,cACO,CAAC;AAE5D,eAAO,MAAM,aAAa,eAAiC,CAAC;AAE5D,eAAO,MAAM,kBAAkB,eAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAE9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,YAElD,CAAC"}
@@ -1,22 +0,0 @@
1
- export * from './use-abort-controller.js';
2
- export * from './use-abort-signal.js';
3
- export * from './use-click-outside.js';
4
- export * from './use-constant.js';
5
- export * from './use-define-ref.js';
6
- export * from './use-element-ref.js';
7
- export * from './use-event.js';
8
- export * from './use-event-listener.js';
9
- export * from './use-flag.js';
10
- export * from './use-force-update.js';
11
- export * from './use-initial-height.js';
12
- export * from './use-instance.js';
13
- export * from './use-intersection-observer.js';
14
- export * from './use-last-defined-value.js';
15
- export * from './use-last-value-ref.js';
16
- export * from './use-life-cycle.js';
17
- export * from './use-resize-observer.js';
18
- export * from './use-sync-ref.js';
19
- export * from './use-toggle.js';
20
- export * from './use-value.js';
21
- export * from './use-visibility-state.js';
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useAbortController: () => AbortController;
2
- //# sourceMappingURL=use-abort-controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-abort-controller.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-abort-controller.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,uBAU9B,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useAbortSignal: () => AbortSignal;
2
- //# sourceMappingURL=use-abort-signal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-abort-signal.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-abort-signal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,mBAE1B,CAAC"}
@@ -1,9 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- type ClickOutsideInput = {
3
- contentRef: MutableRefObject<HTMLElement | null>;
4
- onClick: VoidFunction;
5
- options?: AddEventListenerOptions;
6
- };
7
- export declare const useClickOutside: ({ contentRef, onClick, options, }: ClickOutsideInput) => void;
8
- export {};
9
- //# sourceMappingURL=use-click-outside.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-click-outside.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-click-outside.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,mCAI7B,iBAAiB,SAanB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * React hook for creating a value exactly once.
3
- * useMemo doesn't give this guarantee unfortunately -
4
- * https://reactjs.org/docs/hooks-faq.html#how-to-create-expensive-objects-lazily
5
- * https://reactjs.org/docs/hooks-reference.html#usememo
6
- * @param defineValue Function which returns defined value.
7
- */
8
- export declare const useConstant: <T>(defineValue: () => T) => T;
9
- //# sourceMappingURL=use-constant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-constant.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-constant.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,aAAa,MAAM,CAAC,KAAG,CAQrD,CAAC"}
@@ -1,10 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- /**
3
- * React hook for creating a value exactly once.
4
- * useMemo doesn't give this guarantee unfortunately -
5
- * https://reactjs.org/docs/hooks-faq.html#how-to-create-expensive-objects-lazily
6
- * https://reactjs.org/docs/hooks-reference.html#usememo
7
- * @param defineFn Function which returns defined value.
8
- */
9
- export declare const useDefineRef: <T>(defineFn: () => T) => MutableRefObject<T>;
10
- //# sourceMappingURL=use-define-ref.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-define-ref.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-define-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAU,MAAM,OAAO,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,UAAU,MAAM,CAAC,KAAG,gBAAgB,CAAC,CAAC,CAQrE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useElementRef: <T extends HTMLElement>(selector: () => T) => import('react').MutableRefObject<T | undefined>;
2
- //# sourceMappingURL=use-element-ref.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-element-ref.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-element-ref.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,WAAW,EAAE,UAAU,MAAM,CAAC,oDAQrE,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare const useEventListener: <EventName extends keyof HTMLElementEventMap>({ event, handler, options, deps, node, }: {
2
- event: EventName;
3
- handler: (e: HTMLElementEventMap[EventName]) => void;
4
- options?: boolean | AddEventListenerOptions;
5
- deps?: unknown[];
6
- node?: HTMLElement | Document | Window;
7
- }) => void;
8
- //# sourceMappingURL=use-event-listener.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-event-listener.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-event-listener.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,GAAI,SAAS,SAAS,MAAM,mBAAmB,EAAE,0CAM3E;IACD,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAAC;IAC5C,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;CACxC,SAYA,CAAC"}
@@ -1,3 +0,0 @@
1
- import { AnyFunction } from '../../utils/types.ts';
2
- export declare const useEvent: <H extends AnyFunction>(handler: H) => H;
3
- //# sourceMappingURL=use-event.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-event.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-event.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,WAAW,EAAE,SAAS,CAAC,KAAG,CAa5D,CAAC"}
@@ -1,8 +0,0 @@
1
- export interface FlagHook {
2
- enabled: boolean;
3
- toggle: VoidFunction;
4
- enable: VoidFunction;
5
- disable: VoidFunction;
6
- }
7
- export declare const useFlag: (defaultValue?: boolean) => FlagHook;
8
- //# sourceMappingURL=use-flag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-flag.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-flag.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,YAAY,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,GAAI,sBAAoB,KAAG,QAiB9C,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useForceUpdate: () => () => void;
2
- //# sourceMappingURL=use-force-update.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-force-update.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-force-update.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,kBAM1B,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const useInitialHeight: <T extends HTMLElement>() => {
2
- ref: import('react').MutableRefObject<T | null>;
3
- initialHeight: number | undefined;
4
- };
5
- //# sourceMappingURL=use-initial-height.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-initial-height.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-initial-height.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,WAAW;;;CAarD,CAAC"}
@@ -1,27 +0,0 @@
1
- export type InstanceCreateConfig<TPayload, TExtension = {}> = TExtension & {
2
- abortSignal: AbortSignal;
3
- payload: TPayload;
4
- };
5
- export declare const createUseInstanceHook: <TExtension = {}>(extension?: TExtension) => <TInstance, TPayload>(factory: (config: InstanceCreateConfig<NoInfer<TPayload>, TExtension>) => TInstance, config?: {
6
- payload?: TPayload;
7
- onUpdate?: (payload: TPayload) => void;
8
- }) => TInstance;
9
- /**
10
- * The `useInstance` hook is used to create and manage an instance of an object
11
- * that requires access to the root store and an abort signal.
12
- *
13
- * You can create YOUR OWN CUSTOM `useInstance` hook using `createUseInstanceHook` if you need
14
- * to provide some specific data
15
- *
16
- * @param factory - A factory function that takes a configuration and returns an instance.
17
- * @param config - An optional configuration containing additional input parameters and an update function.
18
- * @returns An instance created by the factory function.
19
- */
20
- export declare const useInstance: <TInstance, TPayload>(factory: (config: {
21
- abortSignal: AbortSignal;
22
- payload: NoInfer<TPayload>;
23
- }) => TInstance, config?: {
24
- payload?: TPayload | undefined;
25
- onUpdate?: ((payload: TPayload) => void) | undefined;
26
- } | undefined) => TInstance;
27
- //# sourceMappingURL=use-instance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-instance.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-instance.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,CAAC,QAAQ,EAAE,UAAU,GAAG,EAAE,IAAI,UAAU,GAAG;IACzE,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAC/B,UAAU,GAAG,EAAE,EAAE,YAAY,UAAU,MACvC,SAAS,EAAE,QAAQ,EAClB,SAAS,CACP,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,KACxD,SAAS,EACd,SAAS;IACP,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC;CACxC,cAiBF,CAAC;AAEJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GArCrB,SAAS,EAAE,QAAQ;iBANP,WAAW;;;;uCAYc,IAAI;2BA+BM,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useIntersectionObserver: (callback: IntersectionObserverCallback, options?: IntersectionObserverInit) => IntersectionObserver;
2
- //# sourceMappingURL=use-intersection-observer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-intersection-observer.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-intersection-observer.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,GAClC,UAAU,4BAA4B,EACtC,UAAU,wBAAwB,yBAanC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useLastDefinedValue: <T>(value: T) => T;
2
- //# sourceMappingURL=use-last-defined-value.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-last-defined-value.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-last-defined-value.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAE,OAAO,CAAC,MAM9C,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useLastValueRef: <T>(value: T | null | undefined) => import('react').MutableRefObject<T | null | undefined>;
2
- //# sourceMappingURL=use-last-value-ref.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-last-value-ref.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-last-value-ref.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,2DAQ7D,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const useLifeCycle: (fn: () => {
2
- mount?: VoidFunction;
3
- unmount?: VoidFunction;
4
- }) => void;
5
- //# sourceMappingURL=use-life-cycle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-life-cycle.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-life-cycle.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GACvB,IAAI,MAAM;IACR,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,SASF,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useResizeObserver: (callback: ResizeObserverCallback) => import('react').MutableRefObject<ResizeObserver>;
2
- //# sourceMappingURL=use-resize-observer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-resize-observer.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-resize-observer.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,GAAI,UAAU,sBAAsB,qDAUjE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useSyncRef: <T>(value: T) => import('react').MutableRefObject<T>;
2
- //# sourceMappingURL=use-sync-ref.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-sync-ref.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-sync-ref.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,OAAO,CAAC,wCAIrC,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useToggle: (initialState?: boolean) => readonly [boolean, () => void, import('react').Dispatch<import('react').SetStateAction<boolean>>];
2
- //# sourceMappingURL=use-toggle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-toggle.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-toggle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,eAAe,OAAO,sGAM/C,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const useValue: <T>(defaults: T | (() => T)) => {
2
- value: T;
3
- set: import('react').Dispatch<import('react').SetStateAction<T>>;
4
- };
5
- //# sourceMappingURL=use-value.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-value.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-value.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;;;CAOlD,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const useVisibilityState: () => DocumentVisibilityState | undefined;
2
- //# sourceMappingURL=use-visibility-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-visibility-state.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/use-visibility-state.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,2CAgB9B,CAAC"}
package/react/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './hooks/index.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
package/sound.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../src/sound.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,SAAS,GACpB,MAAM,MAAM,EACZ,aAAgB;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,kBASzC,CAAC"}