@studiometa/js-toolkit 3.9.0 → 4.0.0-alpha.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 (1714) hide show
  1. package/README.md +26 -101
  2. package/dist/Base.d.ts +371 -0
  3. package/dist/Base.js +907 -0
  4. package/dist/Base.js.map +1 -0
  5. package/dist/attribute-namespaces.d.ts +67 -0
  6. package/dist/attribute-namespaces.js +97 -0
  7. package/dist/attribute-namespaces.js.map +1 -0
  8. package/dist/attributes.d.ts +137 -0
  9. package/dist/attributes.js +166 -0
  10. package/dist/attributes.js.map +1 -0
  11. package/dist/children-watchers.d.ts +23 -0
  12. package/dist/children-watchers.js +48 -0
  13. package/dist/children-watchers.js.map +1 -0
  14. package/dist/component-brand.d.ts +11 -0
  15. package/dist/component-brand.js +17 -0
  16. package/dist/component-brand.js.map +1 -0
  17. package/dist/component-declarations.d.ts +15 -0
  18. package/dist/component-declarations.js +31 -0
  19. package/dist/component-declarations.js.map +1 -0
  20. package/dist/context-subscription.d.ts +24 -0
  21. package/dist/context-subscription.js +123 -0
  22. package/dist/context-subscription.js.map +1 -0
  23. package/dist/context.d.ts +82 -0
  24. package/dist/context.js +173 -0
  25. package/dist/context.js.map +1 -0
  26. package/dist/decorators.d.ts +70 -0
  27. package/dist/decorators.js +189 -0
  28. package/dist/decorators.js.map +1 -0
  29. package/dist/diagnostic-contract.d.ts +104 -0
  30. package/dist/diagnostic-contract.js +66 -0
  31. package/dist/diagnostic-contract.js.map +1 -0
  32. package/dist/diagnostics.d.ts +41 -0
  33. package/dist/diagnostics.js +102 -0
  34. package/dist/diagnostics.js.map +1 -0
  35. package/dist/document-order.d.ts +10 -0
  36. package/dist/document-order.js +17 -0
  37. package/dist/document-order.js.map +1 -0
  38. package/dist/dom-mutations.d.ts +77 -0
  39. package/dist/dom-mutations.js +238 -0
  40. package/dist/dom-mutations.js.map +1 -0
  41. package/dist/events.d.ts +17 -0
  42. package/dist/events.js +19 -0
  43. package/dist/events.js.map +1 -0
  44. package/dist/group.d.ts +55 -0
  45. package/dist/group.js +34 -0
  46. package/dist/group.js.map +1 -0
  47. package/dist/index.d.ts +40 -7
  48. package/dist/index.js +38 -143
  49. package/dist/instances.d.ts +86 -0
  50. package/dist/instances.js +71 -0
  51. package/dist/instances.js.map +1 -0
  52. package/dist/manifest.d.ts +36 -0
  53. package/dist/manifest.js +49 -0
  54. package/dist/manifest.js.map +1 -0
  55. package/dist/mount-strategies.d.ts +46 -0
  56. package/dist/mount-strategies.js +213 -0
  57. package/dist/mount-strategies.js.map +1 -0
  58. package/dist/negotiated-events.d.ts +43 -0
  59. package/dist/negotiated-events.js +98 -0
  60. package/dist/negotiated-events.js.map +1 -0
  61. package/dist/protocol-symbols.d.ts +24 -0
  62. package/dist/protocol-symbols.js +26 -0
  63. package/dist/protocol-symbols.js.map +1 -0
  64. package/dist/registry.d.ts +68 -0
  65. package/dist/registry.js +442 -0
  66. package/dist/registry.js.map +1 -0
  67. package/dist/responsive-options.d.ts +34 -0
  68. package/dist/responsive-options.js +106 -0
  69. package/dist/responsive-options.js.map +1 -0
  70. package/dist/scheduler.d.ts +51 -0
  71. package/dist/scheduler.js +217 -0
  72. package/dist/scheduler.js.map +1 -0
  73. package/dist/services/breakpoint.d.ts +35 -0
  74. package/dist/services/breakpoint.js +130 -0
  75. package/dist/services/breakpoint.js.map +1 -0
  76. package/dist/services/drag.d.ts +65 -0
  77. package/dist/services/drag.js +271 -0
  78. package/dist/services/drag.js.map +1 -0
  79. package/dist/services/in-view.d.ts +26 -0
  80. package/dist/services/in-view.js +83 -0
  81. package/dist/services/in-view.js.map +1 -0
  82. package/dist/services/key.d.ts +70 -0
  83. package/dist/services/key.js +92 -0
  84. package/dist/services/key.js.map +1 -0
  85. package/dist/services/media.d.ts +18 -0
  86. package/dist/services/media.js +50 -0
  87. package/dist/services/media.js.map +1 -0
  88. package/dist/services/mixin.d.ts +82 -0
  89. package/dist/services/mixin.js +141 -0
  90. package/dist/services/mixin.js.map +1 -0
  91. package/dist/services/mutation.d.ts +41 -0
  92. package/dist/services/mutation.js +95 -0
  93. package/dist/services/mutation.js.map +1 -0
  94. package/dist/services/pointer.d.ts +49 -0
  95. package/dist/services/pointer.js +167 -0
  96. package/dist/services/pointer.js.map +1 -0
  97. package/dist/services/raf.d.ts +27 -0
  98. package/dist/services/raf.js +70 -0
  99. package/dist/services/raf.js.map +1 -0
  100. package/dist/services/resize.d.ts +38 -0
  101. package/dist/services/resize.js +82 -0
  102. package/dist/services/resize.js.map +1 -0
  103. package/dist/services/scroll-progress-offset.d.ts +17 -0
  104. package/dist/services/scroll-progress-offset.js +35 -0
  105. package/dist/services/scroll-progress-offset.js.map +1 -0
  106. package/dist/services/scroll-progress.d.ts +41 -0
  107. package/dist/services/scroll-progress.js +125 -0
  108. package/dist/services/scroll-progress.js.map +1 -0
  109. package/dist/services/scroll.d.ts +47 -0
  110. package/dist/services/scroll.js +170 -0
  111. package/dist/services/scroll.js.map +1 -0
  112. package/dist/services/service.d.ts +60 -0
  113. package/dist/services/service.js +110 -0
  114. package/dist/services/service.js.map +1 -0
  115. package/dist/services/toggle.d.ts +20 -0
  116. package/dist/services/toggle.js +42 -0
  117. package/dist/services/toggle.js.map +1 -0
  118. package/dist/services/until.d.ts +11 -0
  119. package/dist/services/until.js +25 -0
  120. package/dist/services/until.js.map +1 -0
  121. package/dist/shared-runtime.d.ts +8 -0
  122. package/dist/shared-runtime.js +43 -0
  123. package/dist/shared-runtime.js.map +1 -0
  124. package/dist/storage/createStorage.d.ts +12 -0
  125. package/dist/storage/createStorage.js +120 -0
  126. package/dist/storage/createStorage.js.map +1 -0
  127. package/dist/storage/index.d.ts +28 -0
  128. package/dist/storage/index.js +50 -0
  129. package/dist/storage/index.js.map +1 -0
  130. package/dist/storage/providers.d.ts +52 -0
  131. package/dist/storage/providers.js +172 -0
  132. package/dist/storage/providers.js.map +1 -0
  133. package/dist/storage/serializers.d.ts +10 -0
  134. package/dist/storage/serializers.js +14 -0
  135. package/dist/storage/serializers.js.map +1 -0
  136. package/dist/storage/sync.d.ts +19 -0
  137. package/dist/storage/sync.js +39 -0
  138. package/dist/storage/sync.js.map +1 -0
  139. package/dist/storage/types.d.ts +65 -0
  140. package/dist/storage/types.js +0 -0
  141. package/dist/subpaths/BREAKPOINTS.d.ts +2 -0
  142. package/dist/subpaths/BREAKPOINTS.js +2 -0
  143. package/dist/subpaths/Base.d.ts +2 -1
  144. package/dist/subpaths/Base.js +2 -6
  145. package/dist/subpaths/DIAGNOSTICS.d.ts +2 -0
  146. package/dist/subpaths/DIAGNOSTICS.js +2 -0
  147. package/dist/subpaths/DRAG_MODES.d.ts +2 -0
  148. package/dist/subpaths/DRAG_MODES.js +2 -0
  149. package/dist/subpaths/EVENTS.d.ts +2 -0
  150. package/dist/subpaths/EVENTS.js +2 -0
  151. package/dist/subpaths/MOUNT_ATTRIBUTE.d.ts +2 -0
  152. package/dist/subpaths/MOUNT_ATTRIBUTE.js +2 -0
  153. package/dist/subpaths/SWAP_MODES.d.ts +2 -0
  154. package/dist/subpaths/SWAP_MODES.js +2 -0
  155. package/dist/subpaths/children.d.ts +2 -0
  156. package/dist/subpaths/children.js +2 -0
  157. package/dist/subpaths/component.d.ts +2 -0
  158. package/dist/subpaths/component.js +2 -0
  159. package/dist/subpaths/createContext.d.ts +2 -0
  160. package/dist/subpaths/createContext.js +2 -0
  161. package/dist/subpaths/createFallbackProvider.d.ts +2 -0
  162. package/dist/subpaths/createFallbackProvider.js +2 -0
  163. package/dist/subpaths/createGroup.d.ts +2 -0
  164. package/dist/subpaths/createGroup.js +2 -0
  165. package/dist/subpaths/createLocalStorage.d.ts +2 -0
  166. package/dist/subpaths/createLocalStorage.js +2 -0
  167. package/dist/subpaths/createMemoryStorageProvider.d.ts +2 -0
  168. package/dist/subpaths/createMemoryStorageProvider.js +2 -0
  169. package/dist/subpaths/createService.d.ts +2 -0
  170. package/dist/subpaths/createService.js +2 -0
  171. package/dist/subpaths/createServiceMixin.d.ts +2 -0
  172. package/dist/subpaths/createServiceMixin.js +2 -0
  173. package/dist/subpaths/createSessionStorage.d.ts +2 -0
  174. package/dist/subpaths/createSessionStorage.js +2 -0
  175. package/dist/subpaths/createStorage.d.ts +2 -0
  176. package/dist/subpaths/createStorage.js +2 -0
  177. package/dist/subpaths/createUrlSearchParamsInHashProvider.d.ts +2 -0
  178. package/dist/subpaths/createUrlSearchParamsInHashProvider.js +2 -0
  179. package/dist/subpaths/createUrlSearchParamsInHashStorage.d.ts +2 -0
  180. package/dist/subpaths/createUrlSearchParamsInHashStorage.js +2 -0
  181. package/dist/subpaths/createUrlSearchParamsProvider.d.ts +2 -0
  182. package/dist/subpaths/createUrlSearchParamsProvider.js +2 -0
  183. package/dist/subpaths/createUrlSearchParamsStorage.d.ts +2 -0
  184. package/dist/subpaths/createUrlSearchParamsStorage.js +2 -0
  185. package/dist/subpaths/defaultScheduler.d.ts +2 -0
  186. package/dist/subpaths/defaultScheduler.js +2 -0
  187. package/dist/subpaths/defineManifest.d.ts +2 -1
  188. package/dist/subpaths/defineManifest.js +2 -6
  189. package/dist/subpaths/domUpdate.d.ts +2 -0
  190. package/dist/subpaths/domUpdate.js +2 -0
  191. package/dist/subpaths/emitExtendable.d.ts +2 -0
  192. package/dist/subpaths/emitExtendable.js +2 -0
  193. package/dist/subpaths/fromMetaGlob.d.ts +2 -1
  194. package/dist/subpaths/fromMetaGlob.js +2 -6
  195. package/dist/subpaths/fromWebpackContext.d.ts +2 -1
  196. package/dist/subpaths/fromWebpackContext.js +2 -6
  197. package/dist/subpaths/getBreakpoints.d.ts +2 -0
  198. package/dist/subpaths/getBreakpoints.js +2 -0
  199. package/dist/subpaths/getInstance.d.ts +2 -0
  200. package/dist/subpaths/getInstance.js +2 -0
  201. package/dist/subpaths/getInstances.d.ts +2 -1
  202. package/dist/subpaths/getInstances.js +2 -6
  203. package/dist/subpaths/getMountedInstances.d.ts +2 -0
  204. package/dist/subpaths/getMountedInstances.js +2 -0
  205. package/dist/subpaths/getUnmountedInstances.d.ts +2 -0
  206. package/dist/subpaths/getUnmountedInstances.js +2 -0
  207. package/dist/subpaths/inject.d.ts +2 -0
  208. package/dist/subpaths/inject.js +2 -0
  209. package/dist/subpaths/injectContext.d.ts +2 -0
  210. package/dist/subpaths/injectContext.js +2 -0
  211. package/dist/subpaths/injectContextSync.d.ts +2 -0
  212. package/dist/subpaths/injectContextSync.js +2 -0
  213. package/dist/subpaths/jsonSerializer.d.ts +2 -0
  214. package/dist/subpaths/jsonSerializer.js +2 -0
  215. package/dist/subpaths/localStorageProvider.d.ts +2 -0
  216. package/dist/subpaths/localStorageProvider.js +2 -0
  217. package/dist/subpaths/memoryStorageProvider.d.ts +2 -0
  218. package/dist/subpaths/memoryStorageProvider.js +2 -0
  219. package/dist/subpaths/namespaceQualifier.d.ts +2 -0
  220. package/dist/subpaths/namespaceQualifier.js +2 -0
  221. package/dist/subpaths/nextFrame.d.ts +2 -0
  222. package/dist/subpaths/nextFrame.js +2 -0
  223. package/dist/subpaths/on.d.ts +2 -0
  224. package/dist/subpaths/on.js +2 -0
  225. package/dist/subpaths/perTarget.d.ts +2 -0
  226. package/dist/subpaths/perTarget.js +2 -0
  227. package/dist/subpaths/provide.d.ts +2 -0
  228. package/dist/subpaths/provide.js +2 -0
  229. package/dist/subpaths/provideContext.d.ts +2 -0
  230. package/dist/subpaths/provideContext.js +2 -0
  231. package/dist/subpaths/provideRootContext.d.ts +2 -0
  232. package/dist/subpaths/provideRootContext.js +2 -0
  233. package/dist/subpaths/read.d.ts +2 -0
  234. package/dist/subpaths/read.js +2 -0
  235. package/dist/subpaths/registerComponent.d.ts +2 -1
  236. package/dist/subpaths/registerComponent.js +2 -6
  237. package/dist/subpaths/registerComponents.d.ts +2 -1
  238. package/dist/subpaths/registerComponents.js +2 -6
  239. package/dist/subpaths/registerManifest.d.ts +2 -1
  240. package/dist/subpaths/registerManifest.js +2 -6
  241. package/dist/subpaths/reportDiagnostic.d.ts +2 -0
  242. package/dist/subpaths/reportDiagnostic.js +2 -0
  243. package/dist/subpaths/sessionStorageProvider.d.ts +2 -0
  244. package/dist/subpaths/sessionStorageProvider.js +2 -0
  245. package/dist/subpaths/setBreakpoints.d.ts +2 -0
  246. package/dist/subpaths/setBreakpoints.js +2 -0
  247. package/dist/subpaths/signal.d.ts +2 -0
  248. package/dist/subpaths/signal.js +2 -0
  249. package/dist/subpaths/subscribeContext.d.ts +2 -0
  250. package/dist/subpaths/subscribeContext.js +2 -0
  251. package/dist/subpaths/swap.d.ts +2 -0
  252. package/dist/subpaths/swap.js +2 -0
  253. package/dist/subpaths/toggle.d.ts +2 -0
  254. package/dist/subpaths/toggle.js +2 -0
  255. package/dist/subpaths/until.d.ts +2 -0
  256. package/dist/subpaths/until.js +2 -0
  257. package/dist/subpaths/urlSearchParamsInHashProvider.d.ts +2 -0
  258. package/dist/subpaths/urlSearchParamsInHashProvider.js +2 -0
  259. package/dist/subpaths/urlSearchParamsProvider.d.ts +2 -0
  260. package/dist/subpaths/urlSearchParamsProvider.js +2 -0
  261. package/dist/subpaths/useBreakpoint.d.ts +2 -0
  262. package/dist/subpaths/useBreakpoint.js +2 -0
  263. package/dist/subpaths/useDrag.d.ts +2 -1
  264. package/dist/subpaths/useDrag.js +2 -6
  265. package/dist/subpaths/useInView.d.ts +2 -0
  266. package/dist/subpaths/useInView.js +2 -0
  267. package/dist/subpaths/useKey.d.ts +2 -1
  268. package/dist/subpaths/useKey.js +2 -6
  269. package/dist/subpaths/useMediaQuery.d.ts +2 -0
  270. package/dist/subpaths/useMediaQuery.js +2 -0
  271. package/dist/subpaths/useMutation.d.ts +2 -1
  272. package/dist/subpaths/useMutation.js +2 -6
  273. package/dist/subpaths/usePointer.d.ts +2 -1
  274. package/dist/subpaths/usePointer.js +2 -6
  275. package/dist/subpaths/usePrefersReducedMotion.d.ts +2 -0
  276. package/dist/subpaths/usePrefersReducedMotion.js +2 -0
  277. package/dist/subpaths/useRaf.d.ts +2 -1
  278. package/dist/subpaths/useRaf.js +2 -6
  279. package/dist/subpaths/useResize.d.ts +2 -1
  280. package/dist/subpaths/useResize.js +2 -6
  281. package/dist/subpaths/useScroll.d.ts +2 -1
  282. package/dist/subpaths/useScroll.js +2 -6
  283. package/dist/subpaths/useScrollProgress.d.ts +2 -0
  284. package/dist/subpaths/useScrollProgress.js +2 -0
  285. package/dist/subpaths/useWindowScroll.d.ts +2 -0
  286. package/dist/subpaths/useWindowScroll.js +2 -0
  287. package/dist/subpaths/useWindowSize.d.ts +2 -0
  288. package/dist/subpaths/useWindowSize.js +2 -0
  289. package/dist/subpaths/utils/DEFAULT_DAMP_FACTOR.d.ts +2 -0
  290. package/dist/subpaths/utils/DEFAULT_DAMP_FACTOR.js +2 -0
  291. package/dist/subpaths/utils/INERTIA_FRAME.d.ts +2 -0
  292. package/dist/subpaths/utils/INERTIA_FRAME.js +2 -0
  293. package/dist/subpaths/utils/MAX_SPRING_RATIO.d.ts +2 -0
  294. package/dist/subpaths/utils/MAX_SPRING_RATIO.js +2 -0
  295. package/dist/subpaths/utils/SCROLL_ALIGNMENTS.d.ts +2 -0
  296. package/dist/subpaths/utils/SCROLL_ALIGNMENTS.js +2 -0
  297. package/dist/subpaths/utils/SCROLL_AXES.d.ts +2 -0
  298. package/dist/subpaths/utils/SCROLL_AXES.js +2 -0
  299. package/dist/subpaths/utils/TRANSFORM_PROPS.d.ts +2 -0
  300. package/dist/subpaths/utils/TRANSFORM_PROPS.js +2 -0
  301. package/dist/subpaths/utils/TRANSITION_OPTIONS.d.ts +2 -0
  302. package/dist/subpaths/utils/TRANSITION_OPTIONS.js +2 -0
  303. package/dist/subpaths/utils/camelCase.d.ts +2 -1
  304. package/dist/subpaths/utils/camelCase.js +2 -6
  305. package/dist/subpaths/utils/capitalize.d.ts +2 -0
  306. package/dist/subpaths/utils/capitalize.js +2 -0
  307. package/dist/subpaths/utils/clamp.d.ts +2 -1
  308. package/dist/subpaths/utils/clamp.js +2 -6
  309. package/dist/subpaths/utils/clamp01.d.ts +2 -1
  310. package/dist/subpaths/utils/clamp01.js +2 -6
  311. package/dist/subpaths/utils/clampDampFactor.d.ts +2 -0
  312. package/dist/subpaths/utils/clampDampFactor.js +2 -0
  313. package/dist/subpaths/utils/createEaseInOut.d.ts +2 -1
  314. package/dist/subpaths/utils/createEaseInOut.js +2 -6
  315. package/dist/subpaths/utils/createEaseOut.d.ts +2 -1
  316. package/dist/subpaths/utils/createEaseOut.js +2 -6
  317. package/dist/subpaths/utils/createElement.d.ts +2 -1
  318. package/dist/subpaths/utils/createElement.js +2 -6
  319. package/dist/subpaths/utils/createRange.d.ts +2 -1
  320. package/dist/subpaths/utils/createRange.js +2 -6
  321. package/dist/subpaths/utils/damp.d.ts +2 -1
  322. package/dist/subpaths/utils/damp.js +2 -6
  323. package/dist/subpaths/utils/debounce.d.ts +2 -1
  324. package/dist/subpaths/utils/debounce.js +2 -6
  325. package/dist/subpaths/utils/decayOver.d.ts +2 -0
  326. package/dist/subpaths/utils/decayOver.js +2 -0
  327. package/dist/subpaths/utils/deepmerge.d.ts +2 -0
  328. package/dist/subpaths/utils/deepmerge.js +2 -0
  329. package/dist/subpaths/utils/easeInCirc.d.ts +2 -1
  330. package/dist/subpaths/utils/easeInCirc.js +2 -6
  331. package/dist/subpaths/utils/easeInCubic.d.ts +2 -1
  332. package/dist/subpaths/utils/easeInCubic.js +2 -6
  333. package/dist/subpaths/utils/easeInExpo.d.ts +2 -1
  334. package/dist/subpaths/utils/easeInExpo.js +2 -6
  335. package/dist/subpaths/utils/easeInOutCirc.d.ts +2 -1
  336. package/dist/subpaths/utils/easeInOutCirc.js +2 -6
  337. package/dist/subpaths/utils/easeInOutCubic.d.ts +2 -1
  338. package/dist/subpaths/utils/easeInOutCubic.js +2 -6
  339. package/dist/subpaths/utils/easeInOutExpo.d.ts +2 -1
  340. package/dist/subpaths/utils/easeInOutExpo.js +2 -6
  341. package/dist/subpaths/utils/easeInOutQuad.d.ts +2 -1
  342. package/dist/subpaths/utils/easeInOutQuad.js +2 -6
  343. package/dist/subpaths/utils/easeInOutQuart.d.ts +2 -1
  344. package/dist/subpaths/utils/easeInOutQuart.js +2 -6
  345. package/dist/subpaths/utils/easeInOutQuint.d.ts +2 -1
  346. package/dist/subpaths/utils/easeInOutQuint.js +2 -6
  347. package/dist/subpaths/utils/easeInOutSine.d.ts +2 -1
  348. package/dist/subpaths/utils/easeInOutSine.js +2 -6
  349. package/dist/subpaths/utils/easeInQuad.d.ts +2 -1
  350. package/dist/subpaths/utils/easeInQuad.js +2 -6
  351. package/dist/subpaths/utils/easeInQuart.d.ts +2 -1
  352. package/dist/subpaths/utils/easeInQuart.js +2 -6
  353. package/dist/subpaths/utils/easeInQuint.d.ts +2 -1
  354. package/dist/subpaths/utils/easeInQuint.js +2 -6
  355. package/dist/subpaths/utils/easeInSine.d.ts +2 -1
  356. package/dist/subpaths/utils/easeInSine.js +2 -6
  357. package/dist/subpaths/utils/easeLinear.d.ts +2 -1
  358. package/dist/subpaths/utils/easeLinear.js +2 -6
  359. package/dist/subpaths/utils/easeOutCirc.d.ts +2 -1
  360. package/dist/subpaths/utils/easeOutCirc.js +2 -6
  361. package/dist/subpaths/utils/easeOutCubic.d.ts +2 -1
  362. package/dist/subpaths/utils/easeOutCubic.js +2 -6
  363. package/dist/subpaths/utils/easeOutExpo.d.ts +2 -1
  364. package/dist/subpaths/utils/easeOutExpo.js +2 -6
  365. package/dist/subpaths/utils/easeOutQuad.d.ts +2 -1
  366. package/dist/subpaths/utils/easeOutQuad.js +2 -6
  367. package/dist/subpaths/utils/easeOutQuart.d.ts +2 -1
  368. package/dist/subpaths/utils/easeOutQuart.js +2 -6
  369. package/dist/subpaths/utils/easeOutQuint.d.ts +2 -1
  370. package/dist/subpaths/utils/easeOutQuint.js +2 -6
  371. package/dist/subpaths/utils/easeOutSine.d.ts +2 -1
  372. package/dist/subpaths/utils/easeOutSine.js +2 -6
  373. package/dist/subpaths/utils/enterTransition.d.ts +2 -0
  374. package/dist/subpaths/utils/enterTransition.js +2 -0
  375. package/dist/subpaths/utils/fold.d.ts +2 -1
  376. package/dist/subpaths/utils/fold.js +2 -6
  377. package/dist/subpaths/utils/getOffsetSizes.d.ts +2 -1
  378. package/dist/subpaths/utils/getOffsetSizes.js +2 -6
  379. package/dist/subpaths/utils/historyPush.d.ts +2 -1
  380. package/dist/subpaths/utils/historyPush.js +2 -6
  381. package/dist/subpaths/utils/historyReplace.d.ts +2 -1
  382. package/dist/subpaths/utils/historyReplace.js +2 -6
  383. package/dist/subpaths/utils/inertiaDecay.d.ts +2 -0
  384. package/dist/subpaths/utils/inertiaDecay.js +2 -0
  385. package/dist/subpaths/utils/inertiaFinalValue.d.ts +2 -1
  386. package/dist/subpaths/utils/inertiaFinalValue.js +2 -6
  387. package/dist/subpaths/utils/inertiaStep.d.ts +2 -0
  388. package/dist/subpaths/utils/inertiaStep.js +2 -0
  389. package/dist/subpaths/utils/inertiaTimeConstant.d.ts +2 -0
  390. package/dist/subpaths/utils/inertiaTimeConstant.js +2 -0
  391. package/dist/subpaths/utils/isBoolean.d.ts +2 -1
  392. package/dist/subpaths/utils/isBoolean.js +2 -6
  393. package/dist/subpaths/utils/isDefined.d.ts +2 -1
  394. package/dist/subpaths/utils/isDefined.js +2 -6
  395. package/dist/subpaths/utils/isFunction.d.ts +2 -1
  396. package/dist/subpaths/utils/isFunction.js +2 -6
  397. package/dist/subpaths/utils/isNull.d.ts +2 -1
  398. package/dist/subpaths/utils/isNull.js +2 -6
  399. package/dist/subpaths/utils/isNumber.d.ts +2 -1
  400. package/dist/subpaths/utils/isNumber.js +2 -6
  401. package/dist/subpaths/utils/isObject.d.ts +2 -1
  402. package/dist/subpaths/utils/isObject.js +2 -6
  403. package/dist/subpaths/utils/isString.d.ts +2 -1
  404. package/dist/subpaths/utils/isString.js +2 -6
  405. package/dist/subpaths/utils/kebabCase.d.ts +2 -0
  406. package/dist/subpaths/utils/kebabCase.js +2 -0
  407. package/dist/subpaths/utils/leaveTransition.d.ts +2 -0
  408. package/dist/subpaths/utils/leaveTransition.js +2 -0
  409. package/dist/subpaths/utils/lerp.d.ts +2 -1
  410. package/dist/subpaths/utils/lerp.js +2 -6
  411. package/dist/subpaths/utils/loadImage.d.ts +2 -1
  412. package/dist/subpaths/utils/loadImage.js +2 -6
  413. package/dist/subpaths/utils/loadLink.d.ts +2 -1
  414. package/dist/subpaths/utils/loadLink.js +2 -6
  415. package/dist/subpaths/utils/loadScript.d.ts +2 -1
  416. package/dist/subpaths/utils/loadScript.js +2 -6
  417. package/dist/subpaths/utils/lockScroll.d.ts +2 -0
  418. package/dist/subpaths/utils/lockScroll.js +2 -0
  419. package/dist/subpaths/utils/lowerCase.d.ts +2 -1
  420. package/dist/subpaths/utils/lowerCase.js +2 -6
  421. package/dist/subpaths/utils/map.d.ts +2 -1
  422. package/dist/subpaths/utils/map.js +2 -6
  423. package/dist/subpaths/utils/matrix.d.ts +2 -1
  424. package/dist/subpaths/utils/matrix.js +2 -6
  425. package/dist/subpaths/utils/mean.d.ts +2 -1
  426. package/dist/subpaths/utils/mean.js +2 -6
  427. package/dist/subpaths/utils/memo.d.ts +2 -1
  428. package/dist/subpaths/utils/memo.js +2 -6
  429. package/dist/subpaths/utils/noop.d.ts +2 -1
  430. package/dist/subpaths/utils/noop.js +2 -6
  431. package/dist/subpaths/utils/noopValue.d.ts +2 -1
  432. package/dist/subpaths/utils/noopValue.js +2 -6
  433. package/dist/subpaths/utils/objectToURLSearchParams.d.ts +2 -1
  434. package/dist/subpaths/utils/objectToURLSearchParams.js +2 -6
  435. package/dist/subpaths/utils/pascalCase.d.ts +2 -1
  436. package/dist/subpaths/utils/pascalCase.js +2 -6
  437. package/dist/subpaths/utils/random.d.ts +2 -1
  438. package/dist/subpaths/utils/random.js +2 -6
  439. package/dist/subpaths/utils/randomInt.d.ts +2 -1
  440. package/dist/subpaths/utils/randomInt.js +2 -6
  441. package/dist/subpaths/utils/randomItem.d.ts +2 -1
  442. package/dist/subpaths/utils/randomItem.js +2 -6
  443. package/dist/subpaths/utils/round.d.ts +2 -1
  444. package/dist/subpaths/utils/round.js +2 -6
  445. package/dist/subpaths/utils/saveActiveElement.d.ts +2 -1
  446. package/dist/subpaths/utils/saveActiveElement.js +2 -6
  447. package/dist/subpaths/utils/scrollPosition.d.ts +2 -0
  448. package/dist/subpaths/utils/scrollPosition.js +2 -0
  449. package/dist/subpaths/utils/scrollTo.d.ts +2 -1
  450. package/dist/subpaths/utils/scrollTo.js +2 -6
  451. package/dist/subpaths/utils/selectorFor.d.ts +2 -0
  452. package/dist/subpaths/utils/selectorFor.js +2 -0
  453. package/dist/subpaths/utils/setClassesOrStyles.d.ts +2 -0
  454. package/dist/subpaths/utils/setClassesOrStyles.js +2 -0
  455. package/dist/subpaths/utils/smoothTo.d.ts +2 -1
  456. package/dist/subpaths/utils/smoothTo.js +2 -6
  457. package/dist/subpaths/utils/snakeCase.d.ts +2 -1
  458. package/dist/subpaths/utils/snakeCase.js +2 -6
  459. package/dist/subpaths/utils/spring.d.ts +2 -1
  460. package/dist/subpaths/utils/spring.js +2 -6
  461. package/dist/subpaths/utils/throttle.d.ts +2 -1
  462. package/dist/subpaths/utils/throttle.js +2 -6
  463. package/dist/subpaths/utils/transform.d.ts +2 -1
  464. package/dist/subpaths/utils/transform.js +2 -6
  465. package/dist/subpaths/utils/transition.d.ts +2 -1
  466. package/dist/subpaths/utils/transition.js +2 -6
  467. package/dist/subpaths/utils/trapFocus.d.ts +2 -1
  468. package/dist/subpaths/utils/trapFocus.js +2 -6
  469. package/dist/subpaths/utils/untrapFocus.d.ts +2 -1
  470. package/dist/subpaths/utils/untrapFocus.js +2 -6
  471. package/dist/subpaths/utils/upperCase.d.ts +2 -1
  472. package/dist/subpaths/utils/upperCase.js +2 -6
  473. package/dist/subpaths/utils/wait.d.ts +2 -1
  474. package/dist/subpaths/utils/wait.js +2 -6
  475. package/dist/subpaths/utils/withLeadingCharacters.d.ts +2 -1
  476. package/dist/subpaths/utils/withLeadingCharacters.js +2 -6
  477. package/dist/subpaths/utils/withLeadingSlash.d.ts +2 -1
  478. package/dist/subpaths/utils/withLeadingSlash.js +2 -6
  479. package/dist/subpaths/utils/withTrailingCharacters.d.ts +2 -1
  480. package/dist/subpaths/utils/withTrailingCharacters.js +2 -6
  481. package/dist/subpaths/utils/withTrailingSlash.d.ts +2 -1
  482. package/dist/subpaths/utils/withTrailingSlash.js +2 -6
  483. package/dist/subpaths/utils/withoutLeadingCharacters.d.ts +2 -1
  484. package/dist/subpaths/utils/withoutLeadingCharacters.js +2 -6
  485. package/dist/subpaths/utils/withoutLeadingCharactersRecursive.d.ts +2 -1
  486. package/dist/subpaths/utils/withoutLeadingCharactersRecursive.js +2 -6
  487. package/dist/subpaths/utils/withoutLeadingSlash.d.ts +2 -1
  488. package/dist/subpaths/utils/withoutLeadingSlash.js +2 -6
  489. package/dist/subpaths/utils/withoutTrailingCharacters.d.ts +2 -1
  490. package/dist/subpaths/utils/withoutTrailingCharacters.js +2 -6
  491. package/dist/subpaths/utils/withoutTrailingCharactersRecursive.d.ts +2 -1
  492. package/dist/subpaths/utils/withoutTrailingCharactersRecursive.js +2 -6
  493. package/dist/subpaths/utils/withoutTrailingSlash.d.ts +2 -1
  494. package/dist/subpaths/utils/withoutTrailingSlash.js +2 -6
  495. package/dist/subpaths/utils/wrap.d.ts +2 -1
  496. package/dist/subpaths/utils/wrap.js +2 -6
  497. package/dist/subpaths/viewTransition.d.ts +2 -0
  498. package/dist/subpaths/viewTransition.js +2 -0
  499. package/dist/subpaths/warn.d.ts +2 -0
  500. package/dist/subpaths/warn.js +2 -0
  501. package/dist/subpaths/watchAttributeNamespace.d.ts +2 -0
  502. package/dist/subpaths/watchAttributeNamespace.js +2 -0
  503. package/dist/subpaths/watchAttributes.d.ts +2 -0
  504. package/dist/subpaths/watchAttributes.js +2 -0
  505. package/dist/subpaths/whenDOMSettled.d.ts +2 -0
  506. package/dist/subpaths/whenDOMSettled.js +2 -0
  507. package/dist/subpaths/withDrag.d.ts +2 -1
  508. package/dist/subpaths/withDrag.js +2 -6
  509. package/dist/subpaths/withInView.d.ts +2 -0
  510. package/dist/subpaths/withInView.js +2 -0
  511. package/dist/subpaths/withKey.d.ts +2 -0
  512. package/dist/subpaths/withKey.js +2 -0
  513. package/dist/subpaths/withMutation.d.ts +2 -1
  514. package/dist/subpaths/withMutation.js +2 -6
  515. package/dist/subpaths/withPointer.d.ts +2 -0
  516. package/dist/subpaths/withPointer.js +2 -0
  517. package/dist/subpaths/withRaf.d.ts +2 -0
  518. package/dist/subpaths/withRaf.js +2 -0
  519. package/dist/subpaths/withResize.d.ts +2 -0
  520. package/dist/subpaths/withResize.js +2 -0
  521. package/dist/subpaths/withScroll.d.ts +2 -0
  522. package/dist/subpaths/withScroll.js +2 -0
  523. package/dist/subpaths/withScrollProgress.d.ts +2 -0
  524. package/dist/subpaths/withScrollProgress.js +2 -0
  525. package/dist/subpaths/write.d.ts +2 -0
  526. package/dist/subpaths/write.js +2 -0
  527. package/dist/swap.d.ts +45 -0
  528. package/dist/swap.js +84 -0
  529. package/dist/swap.js.map +1 -0
  530. package/dist/test/index.d.ts +205 -0
  531. package/dist/test/index.js +249 -0
  532. package/dist/test/index.js.map +1 -0
  533. package/dist/utils/deepmerge.d.ts +31 -0
  534. package/dist/utils/deepmerge.js +76 -0
  535. package/dist/utils/deepmerge.js.map +1 -0
  536. package/dist/utils/dom.d.ts +51 -0
  537. package/dist/utils/dom.js +55 -0
  538. package/dist/utils/dom.js.map +1 -0
  539. package/dist/utils/easings.d.ts +130 -0
  540. package/dist/utils/easings.js +148 -0
  541. package/dist/utils/easings.js.map +1 -0
  542. package/dist/utils/focus.d.ts +18 -0
  543. package/dist/utils/focus.js +63 -0
  544. package/dist/utils/focus.js.map +1 -0
  545. package/dist/utils/history.d.ts +29 -28
  546. package/dist/utils/history.js +60 -64
  547. package/dist/utils/history.js.map +1 -7
  548. package/dist/utils/index.d.ts +20 -29
  549. package/dist/utils/index.js +18 -281
  550. package/dist/utils/is.d.ts +29 -40
  551. package/dist/utils/is.js +59 -36
  552. package/dist/utils/is.js.map +1 -7
  553. package/dist/utils/load.d.ts +46 -0
  554. package/dist/utils/load.js +144 -0
  555. package/dist/utils/load.js.map +1 -0
  556. package/dist/utils/maths.d.ts +122 -0
  557. package/dist/utils/maths.js +177 -0
  558. package/dist/utils/maths.js.map +1 -0
  559. package/dist/utils/memo.d.ts +14 -4
  560. package/dist/utils/memo.js +33 -12
  561. package/dist/utils/memo.js.map +1 -7
  562. package/dist/utils/noop.d.ts +10 -6
  563. package/dist/utils/noop.js +16 -8
  564. package/dist/utils/noop.js.map +1 -7
  565. package/dist/utils/random.d.ts +17 -19
  566. package/dist/utils/random.js +22 -13
  567. package/dist/utils/random.js.map +1 -7
  568. package/dist/utils/scroll-lock.d.ts +27 -0
  569. package/dist/utils/scroll-lock.js +58 -0
  570. package/dist/utils/scroll-lock.js.map +1 -0
  571. package/dist/utils/scrollTo.d.ts +82 -29
  572. package/dist/utils/scrollTo.js +158 -106
  573. package/dist/utils/scrollTo.js.map +1 -7
  574. package/dist/utils/selectors.d.ts +19 -0
  575. package/dist/utils/selectors.js +25 -0
  576. package/dist/utils/selectors.js.map +1 -0
  577. package/dist/utils/smoothTo.d.ts +77 -0
  578. package/dist/utils/smoothTo.js +93 -0
  579. package/dist/utils/smoothTo.js.map +1 -0
  580. package/dist/utils/strings.d.ts +101 -0
  581. package/dist/utils/strings.js +169 -0
  582. package/dist/utils/strings.js.map +1 -0
  583. package/dist/utils/timing.d.ts +21 -0
  584. package/dist/utils/timing.js +41 -0
  585. package/dist/utils/timing.js.map +1 -0
  586. package/dist/utils/transform.d.ts +67 -0
  587. package/dist/utils/transform.js +74 -0
  588. package/dist/utils/transform.js.map +1 -0
  589. package/dist/utils/transition.d.ts +61 -0
  590. package/dist/utils/transition.js +134 -0
  591. package/dist/utils/transition.js.map +1 -0
  592. package/dist/viewTransition.d.ts +17 -0
  593. package/dist/viewTransition.js +52 -0
  594. package/dist/viewTransition.js.map +1 -0
  595. package/package.json +520 -870
  596. package/dist/Base/Base.d.ts +0 -278
  597. package/dist/Base/Base.js +0 -535
  598. package/dist/Base/Base.js.map +0 -7
  599. package/dist/Base/features.d.ts +0 -16
  600. package/dist/Base/features.js +0 -36
  601. package/dist/Base/features.js.map +0 -7
  602. package/dist/Base/index.d.ts +0 -2
  603. package/dist/Base/index.js +0 -9
  604. package/dist/Base/index.js.map +0 -7
  605. package/dist/Base/managers/AbstractManager.d.ts +0 -30
  606. package/dist/Base/managers/AbstractManager.js +0 -38
  607. package/dist/Base/managers/AbstractManager.js.map +0 -7
  608. package/dist/Base/managers/ChildrenManager.d.ts +0 -81
  609. package/dist/Base/managers/ChildrenManager.js +0 -168
  610. package/dist/Base/managers/ChildrenManager.js.map +0 -7
  611. package/dist/Base/managers/EventsManager.d.ts +0 -109
  612. package/dist/Base/managers/EventsManager.js +0 -254
  613. package/dist/Base/managers/EventsManager.js.map +0 -7
  614. package/dist/Base/managers/OptionsManager.d.ts +0 -80
  615. package/dist/Base/managers/OptionsManager.js +0 -163
  616. package/dist/Base/managers/OptionsManager.js.map +0 -7
  617. package/dist/Base/managers/RefsManager.d.ts +0 -34
  618. package/dist/Base/managers/RefsManager.js +0 -101
  619. package/dist/Base/managers/RefsManager.js.map +0 -7
  620. package/dist/Base/managers/ResponsiveOptionsManager.d.ts +0 -33
  621. package/dist/Base/managers/ResponsiveOptionsManager.js +0 -67
  622. package/dist/Base/managers/ResponsiveOptionsManager.js.map +0 -7
  623. package/dist/Base/managers/ServicesManager.d.ts +0 -85
  624. package/dist/Base/managers/ServicesManager.js +0 -137
  625. package/dist/Base/managers/ServicesManager.js.map +0 -7
  626. package/dist/Base/managers/index.d.ts +0 -7
  627. package/dist/Base/managers/index.js +0 -17
  628. package/dist/Base/managers/index.js.map +0 -7
  629. package/dist/Base/types.d.ts +0 -1682
  630. package/dist/Base/types.js +0 -1
  631. package/dist/Base/types.js.map +0 -7
  632. package/dist/Base/utils.d.ts +0 -54
  633. package/dist/Base/utils.js +0 -172
  634. package/dist/Base/utils.js.map +0 -7
  635. package/dist/autoload/autoload.d.ts +0 -37
  636. package/dist/autoload/autoload.js +0 -29
  637. package/dist/autoload/autoload.js.map +0 -7
  638. package/dist/autoload/define-manifest.d.ts +0 -60
  639. package/dist/autoload/define-manifest.js +0 -51
  640. package/dist/autoload/define-manifest.js.map +0 -7
  641. package/dist/autoload/index.d.ts +0 -6
  642. package/dist/autoload/index.js +0 -34
  643. package/dist/autoload/index.js.map +0 -7
  644. package/dist/autoload/loader.d.ts +0 -108
  645. package/dist/autoload/loader.js +0 -381
  646. package/dist/autoload/loader.js.map +0 -7
  647. package/dist/autoload/modules.d.ts +0 -31
  648. package/dist/autoload/modules.js +0 -21
  649. package/dist/autoload/modules.js.map +0 -7
  650. package/dist/autoload/runtime.d.ts +0 -93
  651. package/dist/autoload/runtime.js +0 -100
  652. package/dist/autoload/runtime.js.map +0 -7
  653. package/dist/autoload/types.d.ts +0 -49
  654. package/dist/autoload/types.js +0 -1
  655. package/dist/autoload/types.js.map +0 -7
  656. package/dist/decorators/index.d.ts +0 -15
  657. package/dist/decorators/index.js +0 -51
  658. package/dist/decorators/index.js.map +0 -7
  659. package/dist/decorators/withBreakpointManager.d.ts +0 -7
  660. package/dist/decorators/withBreakpointManager.js +0 -82
  661. package/dist/decorators/withBreakpointManager.js.map +0 -7
  662. package/dist/decorators/withBreakpointObserver.d.ts +0 -15
  663. package/dist/decorators/withBreakpointObserver.js +0 -112
  664. package/dist/decorators/withBreakpointObserver.js.map +0 -7
  665. package/dist/decorators/withDrag.d.ts +0 -14
  666. package/dist/decorators/withDrag.js +0 -36
  667. package/dist/decorators/withDrag.js.map +0 -7
  668. package/dist/decorators/withExtraConfig.d.ts +0 -8
  669. package/dist/decorators/withExtraConfig.js +0 -18
  670. package/dist/decorators/withExtraConfig.js.map +0 -7
  671. package/dist/decorators/withFreezedOptions.d.ts +0 -10
  672. package/dist/decorators/withFreezedOptions.js +0 -28
  673. package/dist/decorators/withFreezedOptions.js.map +0 -7
  674. package/dist/decorators/withGroup.d.ts +0 -39
  675. package/dist/decorators/withGroup.js +0 -81
  676. package/dist/decorators/withGroup.js.map +0 -7
  677. package/dist/decorators/withIntersectionObserver.d.ts +0 -17
  678. package/dist/decorators/withIntersectionObserver.js +0 -45
  679. package/dist/decorators/withIntersectionObserver.js.map +0 -7
  680. package/dist/decorators/withMountOnMediaQuery.d.ts +0 -18
  681. package/dist/decorators/withMountOnMediaQuery.js +0 -62
  682. package/dist/decorators/withMountOnMediaQuery.js.map +0 -7
  683. package/dist/decorators/withMountWhenInView.d.ts +0 -22
  684. package/dist/decorators/withMountWhenInView.js +0 -68
  685. package/dist/decorators/withMountWhenInView.js.map +0 -7
  686. package/dist/decorators/withMountWhenPrefersMotion.d.ts +0 -6
  687. package/dist/decorators/withMountWhenPrefersMotion.js +0 -8
  688. package/dist/decorators/withMountWhenPrefersMotion.js.map +0 -7
  689. package/dist/decorators/withMutation.d.ts +0 -14
  690. package/dist/decorators/withMutation.js +0 -36
  691. package/dist/decorators/withMutation.js.map +0 -7
  692. package/dist/decorators/withName.d.ts +0 -6
  693. package/dist/decorators/withName.js +0 -12
  694. package/dist/decorators/withName.js.map +0 -7
  695. package/dist/decorators/withRelativePointer.d.ts +0 -14
  696. package/dist/decorators/withRelativePointer.js +0 -34
  697. package/dist/decorators/withRelativePointer.js.map +0 -7
  698. package/dist/decorators/withResponsiveOptions.d.ts +0 -9
  699. package/dist/decorators/withResponsiveOptions.js +0 -39
  700. package/dist/decorators/withResponsiveOptions.js.map +0 -7
  701. package/dist/decorators/withScrolledInView/index.d.ts +0 -2
  702. package/dist/decorators/withScrolledInView/index.js +0 -7
  703. package/dist/decorators/withScrolledInView/index.js.map +0 -7
  704. package/dist/decorators/withScrolledInView/types.d.ts +0 -2
  705. package/dist/decorators/withScrolledInView/types.js +0 -1
  706. package/dist/decorators/withScrolledInView/types.js.map +0 -7
  707. package/dist/decorators/withScrolledInView/utils.d.ts +0 -28
  708. package/dist/decorators/withScrolledInView/utils.js +0 -78
  709. package/dist/decorators/withScrolledInView/utils.js.map +0 -7
  710. package/dist/decorators/withScrolledInView/withScrolledInView.d.ts +0 -59
  711. package/dist/decorators/withScrolledInView/withScrolledInView.js +0 -176
  712. package/dist/decorators/withScrolledInView/withScrolledInView.js.map +0 -7
  713. package/dist/helpers/createApp.d.ts +0 -11
  714. package/dist/helpers/createApp.js +0 -38
  715. package/dist/helpers/createApp.js.map +0 -7
  716. package/dist/helpers/defineFeatures.d.ts +0 -7
  717. package/dist/helpers/defineFeatures.js +0 -21
  718. package/dist/helpers/defineFeatures.js.map +0 -7
  719. package/dist/helpers/getClosestParent.d.ts +0 -6
  720. package/dist/helpers/getClosestParent.js +0 -13
  721. package/dist/helpers/getClosestParent.js.map +0 -7
  722. package/dist/helpers/getDirectChildren.d.ts +0 -23
  723. package/dist/helpers/getDirectChildren.js +0 -31
  724. package/dist/helpers/getDirectChildren.js.map +0 -7
  725. package/dist/helpers/getInstanceFromElement.d.ts +0 -6
  726. package/dist/helpers/getInstanceFromElement.js +0 -10
  727. package/dist/helpers/getInstanceFromElement.js.map +0 -7
  728. package/dist/helpers/importOnInteraction.d.ts +0 -19
  729. package/dist/helpers/importOnInteraction.js +0 -27
  730. package/dist/helpers/importOnInteraction.js.map +0 -7
  731. package/dist/helpers/importOnMediaQuery.d.ts +0 -15
  732. package/dist/helpers/importOnMediaQuery.js +0 -22
  733. package/dist/helpers/importOnMediaQuery.js.map +0 -7
  734. package/dist/helpers/importWhenIdle.d.ts +0 -19
  735. package/dist/helpers/importWhenIdle.js +0 -24
  736. package/dist/helpers/importWhenIdle.js.map +0 -7
  737. package/dist/helpers/importWhenPrefersMotion.d.ts +0 -12
  738. package/dist/helpers/importWhenPrefersMotion.js +0 -8
  739. package/dist/helpers/importWhenPrefersMotion.js.map +0 -7
  740. package/dist/helpers/importWhenVisible.d.ts +0 -19
  741. package/dist/helpers/importWhenVisible.js +0 -21
  742. package/dist/helpers/importWhenVisible.js.map +0 -7
  743. package/dist/helpers/index.d.ts +0 -14
  744. package/dist/helpers/index.js +0 -38
  745. package/dist/helpers/index.js.map +0 -7
  746. package/dist/helpers/logTree.d.ts +0 -17
  747. package/dist/helpers/logTree.js +0 -59
  748. package/dist/helpers/logTree.js.map +0 -7
  749. package/dist/helpers/queryComponent.d.ts +0 -28
  750. package/dist/helpers/queryComponent.js +0 -88
  751. package/dist/helpers/queryComponent.js.map +0 -7
  752. package/dist/helpers/registerComponent.d.ts +0 -24
  753. package/dist/helpers/registerComponent.js +0 -30
  754. package/dist/helpers/registerComponent.js.map +0 -7
  755. package/dist/helpers/registerComponents.d.ts +0 -22
  756. package/dist/helpers/registerComponents.js +0 -21
  757. package/dist/helpers/registerComponents.js.map +0 -7
  758. package/dist/helpers/utils.d.ts +0 -10
  759. package/dist/helpers/utils.js +0 -15
  760. package/dist/helpers/utils.js.map +0 -7
  761. package/dist/index.js.map +0 -7
  762. package/dist/services/AbstractService.d.ts +0 -98
  763. package/dist/services/AbstractService.js +0 -114
  764. package/dist/services/AbstractService.js.map +0 -7
  765. package/dist/services/DragService.d.ts +0 -138
  766. package/dist/services/DragService.js +0 -227
  767. package/dist/services/DragService.js.map +0 -7
  768. package/dist/services/KeyService.d.ts +0 -30
  769. package/dist/services/KeyService.js +0 -48
  770. package/dist/services/KeyService.js.map +0 -7
  771. package/dist/services/LoadService.d.ts +0 -16
  772. package/dist/services/LoadService.js +0 -19
  773. package/dist/services/LoadService.js.map +0 -7
  774. package/dist/services/MutationService.d.ts +0 -21
  775. package/dist/services/MutationService.js +0 -34
  776. package/dist/services/MutationService.js.map +0 -7
  777. package/dist/services/PointerService.d.ts +0 -57
  778. package/dist/services/PointerService.js +0 -129
  779. package/dist/services/PointerService.js.map +0 -7
  780. package/dist/services/RafService.d.ts +0 -27
  781. package/dist/services/RafService.js +0 -60
  782. package/dist/services/RafService.js.map +0 -7
  783. package/dist/services/ResizeService.d.ts +0 -30
  784. package/dist/services/ResizeService.js +0 -70
  785. package/dist/services/ResizeService.js.map +0 -7
  786. package/dist/services/ScrollService.d.ts +0 -87
  787. package/dist/services/ScrollService.js +0 -142
  788. package/dist/services/ScrollService.js.map +0 -7
  789. package/dist/services/index.d.ts +0 -9
  790. package/dist/services/index.js +0 -53
  791. package/dist/services/index.js.map +0 -7
  792. package/dist/services/utils.d.ts +0 -14
  793. package/dist/services/utils.js +0 -11
  794. package/dist/services/utils.js.map +0 -7
  795. package/dist/subpaths/AbstractService.d.ts +0 -1
  796. package/dist/subpaths/AbstractService.js +0 -6
  797. package/dist/subpaths/AbstractService.js.map +0 -7
  798. package/dist/subpaths/AutoloadHandle.d.ts +0 -1
  799. package/dist/subpaths/AutoloadHandle.js +0 -1
  800. package/dist/subpaths/AutoloadHandle.js.map +0 -7
  801. package/dist/subpaths/AutoloadOptions.d.ts +0 -1
  802. package/dist/subpaths/AutoloadOptions.js +0 -1
  803. package/dist/subpaths/AutoloadOptions.js.map +0 -7
  804. package/dist/subpaths/AutoloadRuntime.d.ts +0 -1
  805. package/dist/subpaths/AutoloadRuntime.js +0 -1
  806. package/dist/subpaths/AutoloadRuntime.js.map +0 -7
  807. package/dist/subpaths/Base.js.map +0 -7
  808. package/dist/subpaths/BaseAsyncConstructor.d.ts +0 -1
  809. package/dist/subpaths/BaseAsyncConstructor.js +0 -1
  810. package/dist/subpaths/BaseAsyncConstructor.js.map +0 -7
  811. package/dist/subpaths/BaseChildren.d.ts +0 -1
  812. package/dist/subpaths/BaseChildren.js +0 -1
  813. package/dist/subpaths/BaseChildren.js.map +0 -7
  814. package/dist/subpaths/BaseConfig.d.ts +0 -1
  815. package/dist/subpaths/BaseConfig.js +0 -1
  816. package/dist/subpaths/BaseConfig.js.map +0 -7
  817. package/dist/subpaths/BaseConfigComponents.d.ts +0 -1
  818. package/dist/subpaths/BaseConfigComponents.js +0 -1
  819. package/dist/subpaths/BaseConfigComponents.js.map +0 -7
  820. package/dist/subpaths/BaseConstructor.d.ts +0 -1
  821. package/dist/subpaths/BaseConstructor.js +0 -1
  822. package/dist/subpaths/BaseConstructor.js.map +0 -7
  823. package/dist/subpaths/BaseDecorator.d.ts +0 -1
  824. package/dist/subpaths/BaseDecorator.js +0 -1
  825. package/dist/subpaths/BaseDecorator.js.map +0 -7
  826. package/dist/subpaths/BaseEl.d.ts +0 -1
  827. package/dist/subpaths/BaseEl.js +0 -1
  828. package/dist/subpaths/BaseEl.js.map +0 -7
  829. package/dist/subpaths/BaseEventHookParams.d.ts +0 -1
  830. package/dist/subpaths/BaseEventHookParams.js +0 -1
  831. package/dist/subpaths/BaseEventHookParams.js.map +0 -7
  832. package/dist/subpaths/BaseInterface.d.ts +0 -1
  833. package/dist/subpaths/BaseInterface.js +0 -1
  834. package/dist/subpaths/BaseInterface.js.map +0 -7
  835. package/dist/subpaths/BaseOptions.d.ts +0 -1
  836. package/dist/subpaths/BaseOptions.js +0 -1
  837. package/dist/subpaths/BaseOptions.js.map +0 -7
  838. package/dist/subpaths/BaseProps.d.ts +0 -1
  839. package/dist/subpaths/BaseProps.js +0 -1
  840. package/dist/subpaths/BaseProps.js.map +0 -7
  841. package/dist/subpaths/BaseRefs.d.ts +0 -1
  842. package/dist/subpaths/BaseRefs.js +0 -1
  843. package/dist/subpaths/BaseRefs.js.map +0 -7
  844. package/dist/subpaths/ComponentLoadStrategy.d.ts +0 -1
  845. package/dist/subpaths/ComponentLoadStrategy.js +0 -1
  846. package/dist/subpaths/ComponentLoadStrategy.js.map +0 -7
  847. package/dist/subpaths/ComponentLoader.d.ts +0 -1
  848. package/dist/subpaths/ComponentLoader.js +0 -6
  849. package/dist/subpaths/ComponentLoader.js.map +0 -7
  850. package/dist/subpaths/ComponentLoaderOptions.d.ts +0 -1
  851. package/dist/subpaths/ComponentLoaderOptions.js +0 -1
  852. package/dist/subpaths/ComponentLoaderOptions.js.map +0 -7
  853. package/dist/subpaths/ComponentLoaderStartOptions.d.ts +0 -1
  854. package/dist/subpaths/ComponentLoaderStartOptions.js +0 -1
  855. package/dist/subpaths/ComponentLoaderStartOptions.js.map +0 -7
  856. package/dist/subpaths/ComponentManifest.d.ts +0 -1
  857. package/dist/subpaths/ComponentManifest.js +0 -1
  858. package/dist/subpaths/ComponentManifest.js.map +0 -7
  859. package/dist/subpaths/ComponentManifestEntry.d.ts +0 -1
  860. package/dist/subpaths/ComponentManifestEntry.js +0 -1
  861. package/dist/subpaths/ComponentManifestEntry.js.map +0 -7
  862. package/dist/subpaths/ComponentOverride.d.ts +0 -1
  863. package/dist/subpaths/ComponentOverride.js +0 -1
  864. package/dist/subpaths/ComponentOverride.js.map +0 -7
  865. package/dist/subpaths/CreateAppOptions.d.ts +0 -1
  866. package/dist/subpaths/CreateAppOptions.js +0 -1
  867. package/dist/subpaths/CreateAppOptions.js.map +0 -7
  868. package/dist/subpaths/DEFAULT_DIAGNOSTIC_PREFIX.d.ts +0 -1
  869. package/dist/subpaths/DEFAULT_DIAGNOSTIC_PREFIX.js +0 -6
  870. package/dist/subpaths/DEFAULT_DIAGNOSTIC_PREFIX.js.map +0 -7
  871. package/dist/subpaths/DefineManifestOptions.d.ts +0 -1
  872. package/dist/subpaths/DefineManifestOptions.js +0 -1
  873. package/dist/subpaths/DefineManifestOptions.js.map +0 -7
  874. package/dist/subpaths/DragDecoratorOptions.d.ts +0 -1
  875. package/dist/subpaths/DragDecoratorOptions.js +0 -1
  876. package/dist/subpaths/DragDecoratorOptions.js.map +0 -7
  877. package/dist/subpaths/DragService.d.ts +0 -1
  878. package/dist/subpaths/DragService.js +0 -6
  879. package/dist/subpaths/DragService.js.map +0 -7
  880. package/dist/subpaths/DragServiceInterface.d.ts +0 -1
  881. package/dist/subpaths/DragServiceInterface.js +0 -1
  882. package/dist/subpaths/DragServiceInterface.js.map +0 -7
  883. package/dist/subpaths/DragServiceOptions.d.ts +0 -1
  884. package/dist/subpaths/DragServiceOptions.js +0 -1
  885. package/dist/subpaths/DragServiceOptions.js.map +0 -7
  886. package/dist/subpaths/DragServiceProps.d.ts +0 -1
  887. package/dist/subpaths/DragServiceProps.js +0 -1
  888. package/dist/subpaths/DragServiceProps.js.map +0 -7
  889. package/dist/subpaths/IDLE_TIMEOUT.d.ts +0 -1
  890. package/dist/subpaths/IDLE_TIMEOUT.js +0 -6
  891. package/dist/subpaths/IDLE_TIMEOUT.js.map +0 -7
  892. package/dist/subpaths/KeyService.d.ts +0 -1
  893. package/dist/subpaths/KeyService.js +0 -6
  894. package/dist/subpaths/KeyService.js.map +0 -7
  895. package/dist/subpaths/KeyServiceInterface.d.ts +0 -1
  896. package/dist/subpaths/KeyServiceInterface.js +0 -1
  897. package/dist/subpaths/KeyServiceInterface.js.map +0 -7
  898. package/dist/subpaths/KeyServiceProps.d.ts +0 -1
  899. package/dist/subpaths/KeyServiceProps.js +0 -1
  900. package/dist/subpaths/KeyServiceProps.js.map +0 -7
  901. package/dist/subpaths/LoadService.d.ts +0 -1
  902. package/dist/subpaths/LoadService.js +0 -6
  903. package/dist/subpaths/LoadService.js.map +0 -7
  904. package/dist/subpaths/LoadServiceInterface.d.ts +0 -1
  905. package/dist/subpaths/LoadServiceInterface.js +0 -1
  906. package/dist/subpaths/LoadServiceInterface.js.map +0 -7
  907. package/dist/subpaths/LoadServiceProps.d.ts +0 -1
  908. package/dist/subpaths/LoadServiceProps.js +0 -1
  909. package/dist/subpaths/LoadServiceProps.js.map +0 -7
  910. package/dist/subpaths/LoaderDependencies.d.ts +0 -1
  911. package/dist/subpaths/LoaderDependencies.js +0 -1
  912. package/dist/subpaths/LoaderDependencies.js.map +0 -7
  913. package/dist/subpaths/Managers.d.ts +0 -1
  914. package/dist/subpaths/Managers.js +0 -1
  915. package/dist/subpaths/Managers.js.map +0 -7
  916. package/dist/subpaths/ModuleRecord.d.ts +0 -1
  917. package/dist/subpaths/ModuleRecord.js +0 -1
  918. package/dist/subpaths/ModuleRecord.js.map +0 -7
  919. package/dist/subpaths/MutationDecoratorOptions.d.ts +0 -1
  920. package/dist/subpaths/MutationDecoratorOptions.js +0 -1
  921. package/dist/subpaths/MutationDecoratorOptions.js.map +0 -7
  922. package/dist/subpaths/MutationService.d.ts +0 -1
  923. package/dist/subpaths/MutationService.js +0 -6
  924. package/dist/subpaths/MutationService.js.map +0 -7
  925. package/dist/subpaths/MutationServiceInterface.d.ts +0 -1
  926. package/dist/subpaths/MutationServiceInterface.js +0 -1
  927. package/dist/subpaths/MutationServiceInterface.js.map +0 -7
  928. package/dist/subpaths/MutationServiceOptions.d.ts +0 -1
  929. package/dist/subpaths/MutationServiceOptions.js +0 -1
  930. package/dist/subpaths/MutationServiceOptions.js.map +0 -7
  931. package/dist/subpaths/MutationServiceProps.d.ts +0 -1
  932. package/dist/subpaths/MutationServiceProps.js +0 -1
  933. package/dist/subpaths/MutationServiceProps.js.map +0 -7
  934. package/dist/subpaths/NormalizedOffset.d.ts +0 -1
  935. package/dist/subpaths/NormalizedOffset.js +0 -1
  936. package/dist/subpaths/NormalizedOffset.js.map +0 -7
  937. package/dist/subpaths/OffsetValue.d.ts +0 -1
  938. package/dist/subpaths/OffsetValue.js +0 -1
  939. package/dist/subpaths/OffsetValue.js.map +0 -7
  940. package/dist/subpaths/PointerService.d.ts +0 -1
  941. package/dist/subpaths/PointerService.js +0 -6
  942. package/dist/subpaths/PointerService.js.map +0 -7
  943. package/dist/subpaths/PointerServiceInterface.d.ts +0 -1
  944. package/dist/subpaths/PointerServiceInterface.js +0 -1
  945. package/dist/subpaths/PointerServiceInterface.js.map +0 -7
  946. package/dist/subpaths/PointerServiceProps.d.ts +0 -1
  947. package/dist/subpaths/PointerServiceProps.js +0 -1
  948. package/dist/subpaths/PointerServiceProps.js.map +0 -7
  949. package/dist/subpaths/QueryOptions.d.ts +0 -1
  950. package/dist/subpaths/QueryOptions.js +0 -1
  951. package/dist/subpaths/QueryOptions.js.map +0 -7
  952. package/dist/subpaths/RafService.d.ts +0 -1
  953. package/dist/subpaths/RafService.js +0 -6
  954. package/dist/subpaths/RafService.js.map +0 -7
  955. package/dist/subpaths/RafServiceInterface.d.ts +0 -1
  956. package/dist/subpaths/RafServiceInterface.js +0 -1
  957. package/dist/subpaths/RafServiceInterface.js.map +0 -7
  958. package/dist/subpaths/RafServiceProps.d.ts +0 -1
  959. package/dist/subpaths/RafServiceProps.js +0 -1
  960. package/dist/subpaths/RafServiceProps.js.map +0 -7
  961. package/dist/subpaths/RegisterManifestOptions.d.ts +0 -1
  962. package/dist/subpaths/RegisterManifestOptions.js +0 -1
  963. package/dist/subpaths/RegisterManifestOptions.js.map +0 -7
  964. package/dist/subpaths/RelativePointerDecoratorOptions.d.ts +0 -1
  965. package/dist/subpaths/RelativePointerDecoratorOptions.js +0 -1
  966. package/dist/subpaths/RelativePointerDecoratorOptions.js.map +0 -7
  967. package/dist/subpaths/RelativePointerInterface.d.ts +0 -1
  968. package/dist/subpaths/RelativePointerInterface.js +0 -1
  969. package/dist/subpaths/RelativePointerInterface.js.map +0 -7
  970. package/dist/subpaths/ResizeService.d.ts +0 -1
  971. package/dist/subpaths/ResizeService.js +0 -6
  972. package/dist/subpaths/ResizeService.js.map +0 -7
  973. package/dist/subpaths/ResizeServiceInterface.d.ts +0 -1
  974. package/dist/subpaths/ResizeServiceInterface.js +0 -1
  975. package/dist/subpaths/ResizeServiceInterface.js.map +0 -7
  976. package/dist/subpaths/ResizeServiceProps.d.ts +0 -1
  977. package/dist/subpaths/ResizeServiceProps.js +0 -1
  978. package/dist/subpaths/ResizeServiceProps.js.map +0 -7
  979. package/dist/subpaths/ScrollInViewProps.d.ts +0 -1
  980. package/dist/subpaths/ScrollInViewProps.js +0 -1
  981. package/dist/subpaths/ScrollInViewProps.js.map +0 -7
  982. package/dist/subpaths/ScrollService.d.ts +0 -1
  983. package/dist/subpaths/ScrollService.js +0 -6
  984. package/dist/subpaths/ScrollService.js.map +0 -7
  985. package/dist/subpaths/ScrollServiceInterface.d.ts +0 -1
  986. package/dist/subpaths/ScrollServiceInterface.js +0 -1
  987. package/dist/subpaths/ScrollServiceInterface.js.map +0 -7
  988. package/dist/subpaths/ScrollServiceProps.d.ts +0 -1
  989. package/dist/subpaths/ScrollServiceProps.js +0 -1
  990. package/dist/subpaths/ScrollServiceProps.js.map +0 -7
  991. package/dist/subpaths/ServiceConfig.d.ts +0 -1
  992. package/dist/subpaths/ServiceConfig.js +0 -1
  993. package/dist/subpaths/ServiceConfig.js.map +0 -7
  994. package/dist/subpaths/ServiceInterface.d.ts +0 -1
  995. package/dist/subpaths/ServiceInterface.js +0 -1
  996. package/dist/subpaths/ServiceInterface.js.map +0 -7
  997. package/dist/subpaths/VISIBLE_ROOT_MARGIN.d.ts +0 -1
  998. package/dist/subpaths/VISIBLE_ROOT_MARGIN.js +0 -6
  999. package/dist/subpaths/VISIBLE_ROOT_MARGIN.js.map +0 -7
  1000. package/dist/subpaths/WebpackContextLike.d.ts +0 -1
  1001. package/dist/subpaths/WebpackContextLike.js +0 -1
  1002. package/dist/subpaths/WebpackContextLike.js.map +0 -7
  1003. package/dist/subpaths/WithBreakpointObserverInterface.d.ts +0 -1
  1004. package/dist/subpaths/WithBreakpointObserverInterface.js +0 -1
  1005. package/dist/subpaths/WithBreakpointObserverInterface.js.map +0 -7
  1006. package/dist/subpaths/WithBreakpointObserverProps.d.ts +0 -1
  1007. package/dist/subpaths/WithBreakpointObserverProps.js +0 -1
  1008. package/dist/subpaths/WithBreakpointObserverProps.js.map +0 -7
  1009. package/dist/subpaths/WithDragInterface.d.ts +0 -1
  1010. package/dist/subpaths/WithDragInterface.js +0 -1
  1011. package/dist/subpaths/WithDragInterface.js.map +0 -7
  1012. package/dist/subpaths/WithFreezedOptionsInterface.d.ts +0 -1
  1013. package/dist/subpaths/WithFreezedOptionsInterface.js +0 -1
  1014. package/dist/subpaths/WithFreezedOptionsInterface.js.map +0 -7
  1015. package/dist/subpaths/WithGroupInterface.d.ts +0 -1
  1016. package/dist/subpaths/WithGroupInterface.js +0 -1
  1017. package/dist/subpaths/WithGroupInterface.js.map +0 -7
  1018. package/dist/subpaths/WithGroupOptions.d.ts +0 -1
  1019. package/dist/subpaths/WithGroupOptions.js +0 -1
  1020. package/dist/subpaths/WithGroupOptions.js.map +0 -7
  1021. package/dist/subpaths/WithGroupProps.d.ts +0 -1
  1022. package/dist/subpaths/WithGroupProps.js +0 -1
  1023. package/dist/subpaths/WithGroupProps.js.map +0 -7
  1024. package/dist/subpaths/WithIntersectionObserverInterface.d.ts +0 -1
  1025. package/dist/subpaths/WithIntersectionObserverInterface.js +0 -1
  1026. package/dist/subpaths/WithIntersectionObserverInterface.js.map +0 -7
  1027. package/dist/subpaths/WithIntersectionObserverProps.d.ts +0 -1
  1028. package/dist/subpaths/WithIntersectionObserverProps.js +0 -1
  1029. package/dist/subpaths/WithIntersectionObserverProps.js.map +0 -7
  1030. package/dist/subpaths/WithMountWhenInViewInterface.d.ts +0 -1
  1031. package/dist/subpaths/WithMountWhenInViewInterface.js +0 -1
  1032. package/dist/subpaths/WithMountWhenInViewInterface.js.map +0 -7
  1033. package/dist/subpaths/WithMountWhenInViewProps.d.ts +0 -1
  1034. package/dist/subpaths/WithMountWhenInViewProps.js +0 -1
  1035. package/dist/subpaths/WithMountWhenInViewProps.js.map +0 -7
  1036. package/dist/subpaths/WithMutationInterface.d.ts +0 -1
  1037. package/dist/subpaths/WithMutationInterface.js +0 -1
  1038. package/dist/subpaths/WithMutationInterface.js.map +0 -7
  1039. package/dist/subpaths/WithScrolledInViewInterface.d.ts +0 -1
  1040. package/dist/subpaths/WithScrolledInViewInterface.js +0 -1
  1041. package/dist/subpaths/WithScrolledInViewInterface.js.map +0 -7
  1042. package/dist/subpaths/WithScrolledInViewOptions.d.ts +0 -1
  1043. package/dist/subpaths/WithScrolledInViewOptions.js +0 -1
  1044. package/dist/subpaths/WithScrolledInViewOptions.js.map +0 -7
  1045. package/dist/subpaths/WithScrolledInViewProps.d.ts +0 -1
  1046. package/dist/subpaths/WithScrolledInViewProps.js +0 -1
  1047. package/dist/subpaths/WithScrolledInViewProps.js.map +0 -7
  1048. package/dist/subpaths/autoload.d.ts +0 -1
  1049. package/dist/subpaths/autoload.js +0 -6
  1050. package/dist/subpaths/autoload.js.map +0 -7
  1051. package/dist/subpaths/closestComponent.d.ts +0 -1
  1052. package/dist/subpaths/closestComponent.js +0 -6
  1053. package/dist/subpaths/closestComponent.js.map +0 -7
  1054. package/dist/subpaths/composeManifests.d.ts +0 -1
  1055. package/dist/subpaths/composeManifests.js +0 -6
  1056. package/dist/subpaths/composeManifests.js.map +0 -7
  1057. package/dist/subpaths/createApp.d.ts +0 -1
  1058. package/dist/subpaths/createApp.js +0 -6
  1059. package/dist/subpaths/createApp.js.map +0 -7
  1060. package/dist/subpaths/defineFeatures.d.ts +0 -1
  1061. package/dist/subpaths/defineFeatures.js +0 -6
  1062. package/dist/subpaths/defineFeatures.js.map +0 -7
  1063. package/dist/subpaths/defineManifest.js.map +0 -7
  1064. package/dist/subpaths/fromMetaGlob.js.map +0 -7
  1065. package/dist/subpaths/fromWebpackContext.js.map +0 -7
  1066. package/dist/subpaths/getClosestParent.d.ts +0 -1
  1067. package/dist/subpaths/getClosestParent.js +0 -6
  1068. package/dist/subpaths/getClosestParent.js.map +0 -7
  1069. package/dist/subpaths/getDirectChildren.d.ts +0 -1
  1070. package/dist/subpaths/getDirectChildren.js +0 -6
  1071. package/dist/subpaths/getDirectChildren.js.map +0 -7
  1072. package/dist/subpaths/getInstanceFromElement.d.ts +0 -1
  1073. package/dist/subpaths/getInstanceFromElement.js +0 -6
  1074. package/dist/subpaths/getInstanceFromElement.js.map +0 -7
  1075. package/dist/subpaths/getInstances.js.map +0 -7
  1076. package/dist/subpaths/getScopedGroups.d.ts +0 -1
  1077. package/dist/subpaths/getScopedGroups.js +0 -6
  1078. package/dist/subpaths/getScopedGroups.js.map +0 -7
  1079. package/dist/subpaths/importOnInteraction.d.ts +0 -1
  1080. package/dist/subpaths/importOnInteraction.js +0 -6
  1081. package/dist/subpaths/importOnInteraction.js.map +0 -7
  1082. package/dist/subpaths/importOnMediaQuery.d.ts +0 -1
  1083. package/dist/subpaths/importOnMediaQuery.js +0 -6
  1084. package/dist/subpaths/importOnMediaQuery.js.map +0 -7
  1085. package/dist/subpaths/importWhenIdle.d.ts +0 -1
  1086. package/dist/subpaths/importWhenIdle.js +0 -6
  1087. package/dist/subpaths/importWhenIdle.js.map +0 -7
  1088. package/dist/subpaths/importWhenPrefersMotion.d.ts +0 -1
  1089. package/dist/subpaths/importWhenPrefersMotion.js +0 -6
  1090. package/dist/subpaths/importWhenPrefersMotion.js.map +0 -7
  1091. package/dist/subpaths/importWhenVisible.d.ts +0 -1
  1092. package/dist/subpaths/importWhenVisible.js +0 -6
  1093. package/dist/subpaths/importWhenVisible.js.map +0 -7
  1094. package/dist/subpaths/isDirectChild.d.ts +0 -1
  1095. package/dist/subpaths/isDirectChild.js +0 -6
  1096. package/dist/subpaths/isDirectChild.js.map +0 -7
  1097. package/dist/subpaths/logTree.d.ts +0 -1
  1098. package/dist/subpaths/logTree.js +0 -6
  1099. package/dist/subpaths/logTree.js.map +0 -7
  1100. package/dist/subpaths/queryComponent.d.ts +0 -1
  1101. package/dist/subpaths/queryComponent.js +0 -6
  1102. package/dist/subpaths/queryComponent.js.map +0 -7
  1103. package/dist/subpaths/queryComponentAll.d.ts +0 -1
  1104. package/dist/subpaths/queryComponentAll.js +0 -6
  1105. package/dist/subpaths/queryComponentAll.js.map +0 -7
  1106. package/dist/subpaths/readEagerTokens.d.ts +0 -1
  1107. package/dist/subpaths/readEagerTokens.js +0 -6
  1108. package/dist/subpaths/readEagerTokens.js.map +0 -7
  1109. package/dist/subpaths/registerComponent.js.map +0 -7
  1110. package/dist/subpaths/registerComponents.js.map +0 -7
  1111. package/dist/subpaths/registerManifest.js.map +0 -7
  1112. package/dist/subpaths/registerManifests.d.ts +0 -1
  1113. package/dist/subpaths/registerManifests.js +0 -6
  1114. package/dist/subpaths/registerManifests.js.map +0 -7
  1115. package/dist/subpaths/useDrag.js.map +0 -7
  1116. package/dist/subpaths/useKey.js.map +0 -7
  1117. package/dist/subpaths/useLoad.d.ts +0 -1
  1118. package/dist/subpaths/useLoad.js +0 -6
  1119. package/dist/subpaths/useLoad.js.map +0 -7
  1120. package/dist/subpaths/useMutation.js.map +0 -7
  1121. package/dist/subpaths/usePointer.js.map +0 -7
  1122. package/dist/subpaths/useRaf.js.map +0 -7
  1123. package/dist/subpaths/useResize.js.map +0 -7
  1124. package/dist/subpaths/useScroll.js.map +0 -7
  1125. package/dist/subpaths/utils/Animate.1.d.ts +0 -1
  1126. package/dist/subpaths/utils/Animate.1.js +0 -1
  1127. package/dist/subpaths/utils/Animate.1.js.map +0 -7
  1128. package/dist/subpaths/utils/AnimateOptions.d.ts +0 -1
  1129. package/dist/subpaths/utils/AnimateOptions.js +0 -1
  1130. package/dist/subpaths/utils/AnimateOptions.js.map +0 -7
  1131. package/dist/subpaths/utils/CSSCustomPropertyName.d.ts +0 -1
  1132. package/dist/subpaths/utils/CSSCustomPropertyName.js +0 -1
  1133. package/dist/subpaths/utils/CSSCustomPropertyName.js.map +0 -7
  1134. package/dist/subpaths/utils/EasingFunction.d.ts +0 -1
  1135. package/dist/subpaths/utils/EasingFunction.js +0 -1
  1136. package/dist/subpaths/utils/EasingFunction.js.map +0 -7
  1137. package/dist/subpaths/utils/Keyframe.d.ts +0 -1
  1138. package/dist/subpaths/utils/Keyframe.js +0 -1
  1139. package/dist/subpaths/utils/Keyframe.js.map +0 -7
  1140. package/dist/subpaths/utils/LoadElementsOptions.d.ts +0 -1
  1141. package/dist/subpaths/utils/LoadElementsOptions.js +0 -1
  1142. package/dist/subpaths/utils/LoadElementsOptions.js.map +0 -7
  1143. package/dist/subpaths/utils/LoadElementsReturnType.d.ts +0 -1
  1144. package/dist/subpaths/utils/LoadElementsReturnType.js +0 -1
  1145. package/dist/subpaths/utils/LoadElementsReturnType.js.map +0 -7
  1146. package/dist/subpaths/utils/LoadableElements.d.ts +0 -1
  1147. package/dist/subpaths/utils/LoadableElements.js +0 -1
  1148. package/dist/subpaths/utils/LoadableElements.js.map +0 -7
  1149. package/dist/subpaths/utils/LoadableElementsNames.d.ts +0 -1
  1150. package/dist/subpaths/utils/LoadableElementsNames.js +0 -1
  1151. package/dist/subpaths/utils/LoadableElementsNames.js.map +0 -7
  1152. package/dist/subpaths/utils/NormalizedKeyframe.d.ts +0 -1
  1153. package/dist/subpaths/utils/NormalizedKeyframe.js +0 -1
  1154. package/dist/subpaths/utils/NormalizedKeyframe.js.map +0 -7
  1155. package/dist/subpaths/utils/Queue.d.ts +0 -1
  1156. package/dist/subpaths/utils/Queue.js +0 -6
  1157. package/dist/subpaths/utils/Queue.js.map +0 -7
  1158. package/dist/subpaths/utils/SmartQueue.d.ts +0 -1
  1159. package/dist/subpaths/utils/SmartQueue.js +0 -6
  1160. package/dist/subpaths/utils/SmartQueue.js.map +0 -7
  1161. package/dist/subpaths/utils/StorageInstance.d.ts +0 -1
  1162. package/dist/subpaths/utils/StorageInstance.js +0 -1
  1163. package/dist/subpaths/utils/StorageInstance.js.map +0 -7
  1164. package/dist/subpaths/utils/StorageOptions.d.ts +0 -1
  1165. package/dist/subpaths/utils/StorageOptions.js +0 -1
  1166. package/dist/subpaths/utils/StorageOptions.js.map +0 -7
  1167. package/dist/subpaths/utils/StorageProvider.d.ts +0 -1
  1168. package/dist/subpaths/utils/StorageProvider.js +0 -1
  1169. package/dist/subpaths/utils/StorageProvider.js.map +0 -7
  1170. package/dist/subpaths/utils/StorageSerializer.d.ts +0 -1
  1171. package/dist/subpaths/utils/StorageSerializer.js +0 -1
  1172. package/dist/subpaths/utils/StorageSerializer.js.map +0 -7
  1173. package/dist/subpaths/utils/TransformProps.d.ts +0 -1
  1174. package/dist/subpaths/utils/TransformProps.js +0 -1
  1175. package/dist/subpaths/utils/TransformProps.js.map +0 -7
  1176. package/dist/subpaths/utils/UrlProviderOptions.d.ts +0 -1
  1177. package/dist/subpaths/utils/UrlProviderOptions.js +0 -1
  1178. package/dist/subpaths/utils/UrlProviderOptions.js.map +0 -7
  1179. package/dist/subpaths/utils/addClass.d.ts +0 -1
  1180. package/dist/subpaths/utils/addClass.js +0 -6
  1181. package/dist/subpaths/utils/addClass.js.map +0 -7
  1182. package/dist/subpaths/utils/addStyle.d.ts +0 -1
  1183. package/dist/subpaths/utils/addStyle.js +0 -6
  1184. package/dist/subpaths/utils/addStyle.js.map +0 -7
  1185. package/dist/subpaths/utils/animate.d.ts +0 -1
  1186. package/dist/subpaths/utils/animate.js +0 -6
  1187. package/dist/subpaths/utils/animate.js.map +0 -7
  1188. package/dist/subpaths/utils/boundingRectToCircle.d.ts +0 -1
  1189. package/dist/subpaths/utils/boundingRectToCircle.js +0 -6
  1190. package/dist/subpaths/utils/boundingRectToCircle.js.map +0 -7
  1191. package/dist/subpaths/utils/cache.d.ts +0 -1
  1192. package/dist/subpaths/utils/cache.js +0 -6
  1193. package/dist/subpaths/utils/cache.js.map +0 -7
  1194. package/dist/subpaths/utils/camelCase.js.map +0 -7
  1195. package/dist/subpaths/utils/clamp.js.map +0 -7
  1196. package/dist/subpaths/utils/clamp01.js.map +0 -7
  1197. package/dist/subpaths/utils/collideCircleCircle.d.ts +0 -1
  1198. package/dist/subpaths/utils/collideCircleCircle.js +0 -6
  1199. package/dist/subpaths/utils/collideCircleCircle.js.map +0 -7
  1200. package/dist/subpaths/utils/collideCircleRect.d.ts +0 -1
  1201. package/dist/subpaths/utils/collideCircleRect.js +0 -6
  1202. package/dist/subpaths/utils/collideCircleRect.js.map +0 -7
  1203. package/dist/subpaths/utils/collidePointCircle.d.ts +0 -1
  1204. package/dist/subpaths/utils/collidePointCircle.js +0 -6
  1205. package/dist/subpaths/utils/collidePointCircle.js.map +0 -7
  1206. package/dist/subpaths/utils/collidePointRect.d.ts +0 -1
  1207. package/dist/subpaths/utils/collidePointRect.js +0 -6
  1208. package/dist/subpaths/utils/collidePointRect.js.map +0 -7
  1209. package/dist/subpaths/utils/collideRectRect.d.ts +0 -1
  1210. package/dist/subpaths/utils/collideRectRect.js +0 -6
  1211. package/dist/subpaths/utils/collideRectRect.js.map +0 -7
  1212. package/dist/subpaths/utils/createEaseInOut.js.map +0 -7
  1213. package/dist/subpaths/utils/createEaseOut.js.map +0 -7
  1214. package/dist/subpaths/utils/createElement.js.map +0 -7
  1215. package/dist/subpaths/utils/createLocalStorage.d.ts +0 -1
  1216. package/dist/subpaths/utils/createLocalStorage.js +0 -6
  1217. package/dist/subpaths/utils/createLocalStorage.js.map +0 -7
  1218. package/dist/subpaths/utils/createLocalStorageProvider.d.ts +0 -1
  1219. package/dist/subpaths/utils/createLocalStorageProvider.js +0 -6
  1220. package/dist/subpaths/utils/createLocalStorageProvider.js.map +0 -7
  1221. package/dist/subpaths/utils/createMemoryStorageProvider.d.ts +0 -1
  1222. package/dist/subpaths/utils/createMemoryStorageProvider.js +0 -6
  1223. package/dist/subpaths/utils/createMemoryStorageProvider.js.map +0 -7
  1224. package/dist/subpaths/utils/createNoopProvider.d.ts +0 -1
  1225. package/dist/subpaths/utils/createNoopProvider.js +0 -6
  1226. package/dist/subpaths/utils/createNoopProvider.js.map +0 -7
  1227. package/dist/subpaths/utils/createRange.js.map +0 -7
  1228. package/dist/subpaths/utils/createSessionStorage.d.ts +0 -1
  1229. package/dist/subpaths/utils/createSessionStorage.js +0 -6
  1230. package/dist/subpaths/utils/createSessionStorage.js.map +0 -7
  1231. package/dist/subpaths/utils/createSessionStorageProvider.d.ts +0 -1
  1232. package/dist/subpaths/utils/createSessionStorageProvider.js +0 -6
  1233. package/dist/subpaths/utils/createSessionStorageProvider.js.map +0 -7
  1234. package/dist/subpaths/utils/createStorage.d.ts +0 -1
  1235. package/dist/subpaths/utils/createStorage.js +0 -6
  1236. package/dist/subpaths/utils/createStorage.js.map +0 -7
  1237. package/dist/subpaths/utils/createUrlSearchParamsInHashProvider.d.ts +0 -1
  1238. package/dist/subpaths/utils/createUrlSearchParamsInHashProvider.js +0 -6
  1239. package/dist/subpaths/utils/createUrlSearchParamsInHashProvider.js.map +0 -7
  1240. package/dist/subpaths/utils/createUrlSearchParamsInHashStorage.d.ts +0 -1
  1241. package/dist/subpaths/utils/createUrlSearchParamsInHashStorage.js +0 -6
  1242. package/dist/subpaths/utils/createUrlSearchParamsInHashStorage.js.map +0 -7
  1243. package/dist/subpaths/utils/createUrlSearchParamsProvider.d.ts +0 -1
  1244. package/dist/subpaths/utils/createUrlSearchParamsProvider.js +0 -6
  1245. package/dist/subpaths/utils/createUrlSearchParamsProvider.js.map +0 -7
  1246. package/dist/subpaths/utils/createUrlSearchParamsStorage.d.ts +0 -1
  1247. package/dist/subpaths/utils/createUrlSearchParamsStorage.js +0 -6
  1248. package/dist/subpaths/utils/createUrlSearchParamsStorage.js.map +0 -7
  1249. package/dist/subpaths/utils/damp.js.map +0 -7
  1250. package/dist/subpaths/utils/dashCase.d.ts +0 -1
  1251. package/dist/subpaths/utils/dashCase.js +0 -6
  1252. package/dist/subpaths/utils/dashCase.js.map +0 -7
  1253. package/dist/subpaths/utils/debounce.js.map +0 -7
  1254. package/dist/subpaths/utils/domScheduler.d.ts +0 -1
  1255. package/dist/subpaths/utils/domScheduler.js +0 -6
  1256. package/dist/subpaths/utils/domScheduler.js.map +0 -7
  1257. package/dist/subpaths/utils/ease.d.ts +0 -1
  1258. package/dist/subpaths/utils/ease.js +0 -6
  1259. package/dist/subpaths/utils/ease.js.map +0 -7
  1260. package/dist/subpaths/utils/easeInCirc.js.map +0 -7
  1261. package/dist/subpaths/utils/easeInCubic.js.map +0 -7
  1262. package/dist/subpaths/utils/easeInExpo.js.map +0 -7
  1263. package/dist/subpaths/utils/easeInOutCirc.js.map +0 -7
  1264. package/dist/subpaths/utils/easeInOutCubic.js.map +0 -7
  1265. package/dist/subpaths/utils/easeInOutExpo.js.map +0 -7
  1266. package/dist/subpaths/utils/easeInOutQuad.js.map +0 -7
  1267. package/dist/subpaths/utils/easeInOutQuart.js.map +0 -7
  1268. package/dist/subpaths/utils/easeInOutQuint.js.map +0 -7
  1269. package/dist/subpaths/utils/easeInOutSine.js.map +0 -7
  1270. package/dist/subpaths/utils/easeInQuad.js.map +0 -7
  1271. package/dist/subpaths/utils/easeInQuart.js.map +0 -7
  1272. package/dist/subpaths/utils/easeInQuint.js.map +0 -7
  1273. package/dist/subpaths/utils/easeInSine.js.map +0 -7
  1274. package/dist/subpaths/utils/easeLinear.js.map +0 -7
  1275. package/dist/subpaths/utils/easeOutCirc.js.map +0 -7
  1276. package/dist/subpaths/utils/easeOutCubic.js.map +0 -7
  1277. package/dist/subpaths/utils/easeOutExpo.js.map +0 -7
  1278. package/dist/subpaths/utils/easeOutQuad.js.map +0 -7
  1279. package/dist/subpaths/utils/easeOutQuart.js.map +0 -7
  1280. package/dist/subpaths/utils/easeOutQuint.js.map +0 -7
  1281. package/dist/subpaths/utils/easeOutSine.js.map +0 -7
  1282. package/dist/subpaths/utils/endsWith.d.ts +0 -1
  1283. package/dist/subpaths/utils/endsWith.js +0 -6
  1284. package/dist/subpaths/utils/endsWith.js.map +0 -7
  1285. package/dist/subpaths/utils/fold.js.map +0 -7
  1286. package/dist/subpaths/utils/getAncestorWhere.d.ts +0 -1
  1287. package/dist/subpaths/utils/getAncestorWhere.js +0 -6
  1288. package/dist/subpaths/utils/getAncestorWhere.js.map +0 -7
  1289. package/dist/subpaths/utils/getAncestorWhereUntil.d.ts +0 -1
  1290. package/dist/subpaths/utils/getAncestorWhereUntil.js +0 -6
  1291. package/dist/subpaths/utils/getAncestorWhereUntil.js.map +0 -7
  1292. package/dist/subpaths/utils/getComponentResolver.d.ts +0 -1
  1293. package/dist/subpaths/utils/getComponentResolver.js +0 -6
  1294. package/dist/subpaths/utils/getComponentResolver.js.map +0 -7
  1295. package/dist/subpaths/utils/getOffsetSizes.js.map +0 -7
  1296. package/dist/subpaths/utils/hasWindow.d.ts +0 -1
  1297. package/dist/subpaths/utils/hasWindow.js +0 -6
  1298. package/dist/subpaths/utils/hasWindow.js.map +0 -7
  1299. package/dist/subpaths/utils/historyPush.js.map +0 -7
  1300. package/dist/subpaths/utils/historyReplace.js.map +0 -7
  1301. package/dist/subpaths/utils/inertiaFinalValue.js.map +0 -7
  1302. package/dist/subpaths/utils/isArray.d.ts +0 -1
  1303. package/dist/subpaths/utils/isArray.js +0 -6
  1304. package/dist/subpaths/utils/isArray.js.map +0 -7
  1305. package/dist/subpaths/utils/isBoolean.js.map +0 -7
  1306. package/dist/subpaths/utils/isDefined.js.map +0 -7
  1307. package/dist/subpaths/utils/isDev.d.ts +0 -1
  1308. package/dist/subpaths/utils/isDev.js +0 -6
  1309. package/dist/subpaths/utils/isDev.js.map +0 -7
  1310. package/dist/subpaths/utils/isEmpty.d.ts +0 -1
  1311. package/dist/subpaths/utils/isEmpty.js +0 -6
  1312. package/dist/subpaths/utils/isEmpty.js.map +0 -7
  1313. package/dist/subpaths/utils/isEmptyString.d.ts +0 -1
  1314. package/dist/subpaths/utils/isEmptyString.js +0 -6
  1315. package/dist/subpaths/utils/isEmptyString.js.map +0 -7
  1316. package/dist/subpaths/utils/isFunction.js.map +0 -7
  1317. package/dist/subpaths/utils/isNull.js.map +0 -7
  1318. package/dist/subpaths/utils/isNumber.js.map +0 -7
  1319. package/dist/subpaths/utils/isObject.js.map +0 -7
  1320. package/dist/subpaths/utils/isString.js.map +0 -7
  1321. package/dist/subpaths/utils/keyCodes.d.ts +0 -1
  1322. package/dist/subpaths/utils/keyCodes.js +0 -6
  1323. package/dist/subpaths/utils/keyCodes.js.map +0 -7
  1324. package/dist/subpaths/utils/lerp.js.map +0 -7
  1325. package/dist/subpaths/utils/loadElement.d.ts +0 -1
  1326. package/dist/subpaths/utils/loadElement.js +0 -6
  1327. package/dist/subpaths/utils/loadElement.js.map +0 -7
  1328. package/dist/subpaths/utils/loadIframe.d.ts +0 -1
  1329. package/dist/subpaths/utils/loadIframe.js +0 -6
  1330. package/dist/subpaths/utils/loadIframe.js.map +0 -7
  1331. package/dist/subpaths/utils/loadImage.js.map +0 -7
  1332. package/dist/subpaths/utils/loadLink.js.map +0 -7
  1333. package/dist/subpaths/utils/loadScript.js.map +0 -7
  1334. package/dist/subpaths/utils/localStorageProvider.d.ts +0 -1
  1335. package/dist/subpaths/utils/localStorageProvider.js +0 -6
  1336. package/dist/subpaths/utils/localStorageProvider.js.map +0 -7
  1337. package/dist/subpaths/utils/lowerCase.js.map +0 -7
  1338. package/dist/subpaths/utils/map.js.map +0 -7
  1339. package/dist/subpaths/utils/matrix.js.map +0 -7
  1340. package/dist/subpaths/utils/mean.js.map +0 -7
  1341. package/dist/subpaths/utils/memo.js.map +0 -7
  1342. package/dist/subpaths/utils/memoize.d.ts +0 -1
  1343. package/dist/subpaths/utils/memoize.js +0 -6
  1344. package/dist/subpaths/utils/memoize.js.map +0 -7
  1345. package/dist/subpaths/utils/memoryStorageProvider.d.ts +0 -1
  1346. package/dist/subpaths/utils/memoryStorageProvider.js +0 -6
  1347. package/dist/subpaths/utils/memoryStorageProvider.js.map +0 -7
  1348. package/dist/subpaths/utils/nextFrame.d.ts +0 -1
  1349. package/dist/subpaths/utils/nextFrame.js +0 -6
  1350. package/dist/subpaths/utils/nextFrame.js.map +0 -7
  1351. package/dist/subpaths/utils/nextMicrotask.d.ts +0 -1
  1352. package/dist/subpaths/utils/nextMicrotask.js +0 -6
  1353. package/dist/subpaths/utils/nextMicrotask.js.map +0 -7
  1354. package/dist/subpaths/utils/nextTick.d.ts +0 -1
  1355. package/dist/subpaths/utils/nextTick.js +0 -6
  1356. package/dist/subpaths/utils/nextTick.js.map +0 -7
  1357. package/dist/subpaths/utils/noop.js.map +0 -7
  1358. package/dist/subpaths/utils/noopValue.js.map +0 -7
  1359. package/dist/subpaths/utils/objectToURLSearchParams.js.map +0 -7
  1360. package/dist/subpaths/utils/pascalCase.js.map +0 -7
  1361. package/dist/subpaths/utils/random.js.map +0 -7
  1362. package/dist/subpaths/utils/randomInt.js.map +0 -7
  1363. package/dist/subpaths/utils/randomItem.js.map +0 -7
  1364. package/dist/subpaths/utils/removeClass.d.ts +0 -1
  1365. package/dist/subpaths/utils/removeClass.js +0 -6
  1366. package/dist/subpaths/utils/removeClass.js.map +0 -7
  1367. package/dist/subpaths/utils/removeStyle.d.ts +0 -1
  1368. package/dist/subpaths/utils/removeStyle.js +0 -6
  1369. package/dist/subpaths/utils/removeStyle.js.map +0 -7
  1370. package/dist/subpaths/utils/round.js.map +0 -7
  1371. package/dist/subpaths/utils/saveActiveElement.js.map +0 -7
  1372. package/dist/subpaths/utils/scrollTo.js.map +0 -7
  1373. package/dist/subpaths/utils/sessionStorageProvider.d.ts +0 -1
  1374. package/dist/subpaths/utils/sessionStorageProvider.js +0 -6
  1375. package/dist/subpaths/utils/sessionStorageProvider.js.map +0 -7
  1376. package/dist/subpaths/utils/smoothTo.js.map +0 -7
  1377. package/dist/subpaths/utils/snakeCase.js.map +0 -7
  1378. package/dist/subpaths/utils/spring.js.map +0 -7
  1379. package/dist/subpaths/utils/startsWith.d.ts +0 -1
  1380. package/dist/subpaths/utils/startsWith.js +0 -6
  1381. package/dist/subpaths/utils/startsWith.js.map +0 -7
  1382. package/dist/subpaths/utils/throttle.js.map +0 -7
  1383. package/dist/subpaths/utils/toggleClass.d.ts +0 -1
  1384. package/dist/subpaths/utils/toggleClass.js +0 -6
  1385. package/dist/subpaths/utils/toggleClass.js.map +0 -7
  1386. package/dist/subpaths/utils/transform.js.map +0 -7
  1387. package/dist/subpaths/utils/transition.js.map +0 -7
  1388. package/dist/subpaths/utils/trapFocus.js.map +0 -7
  1389. package/dist/subpaths/utils/tween.d.ts +0 -1
  1390. package/dist/subpaths/utils/tween.js +0 -6
  1391. package/dist/subpaths/utils/tween.js.map +0 -7
  1392. package/dist/subpaths/utils/untrapFocus.js.map +0 -7
  1393. package/dist/subpaths/utils/upperCase.js.map +0 -7
  1394. package/dist/subpaths/utils/urlSearchParamsInHashProvider.d.ts +0 -1
  1395. package/dist/subpaths/utils/urlSearchParamsInHashProvider.js +0 -6
  1396. package/dist/subpaths/utils/urlSearchParamsInHashProvider.js.map +0 -7
  1397. package/dist/subpaths/utils/urlSearchParamsProvider.d.ts +0 -1
  1398. package/dist/subpaths/utils/urlSearchParamsProvider.js +0 -6
  1399. package/dist/subpaths/utils/urlSearchParamsProvider.js.map +0 -7
  1400. package/dist/subpaths/utils/useScheduler.d.ts +0 -1
  1401. package/dist/subpaths/utils/useScheduler.js +0 -6
  1402. package/dist/subpaths/utils/useScheduler.js.map +0 -7
  1403. package/dist/subpaths/utils/wait.js.map +0 -7
  1404. package/dist/subpaths/utils/withLeadingCharacters.js.map +0 -7
  1405. package/dist/subpaths/utils/withLeadingSlash.js.map +0 -7
  1406. package/dist/subpaths/utils/withTrailingCharacters.js.map +0 -7
  1407. package/dist/subpaths/utils/withTrailingSlash.js.map +0 -7
  1408. package/dist/subpaths/utils/withoutLeadingCharacters.js.map +0 -7
  1409. package/dist/subpaths/utils/withoutLeadingCharactersRecursive.js.map +0 -7
  1410. package/dist/subpaths/utils/withoutLeadingSlash.js.map +0 -7
  1411. package/dist/subpaths/utils/withoutTrailingCharacters.js.map +0 -7
  1412. package/dist/subpaths/utils/withoutTrailingCharactersRecursive.js.map +0 -7
  1413. package/dist/subpaths/utils/withoutTrailingSlash.js.map +0 -7
  1414. package/dist/subpaths/utils/wrap.js.map +0 -7
  1415. package/dist/subpaths/version.d.ts +0 -1
  1416. package/dist/subpaths/version.js +0 -6
  1417. package/dist/subpaths/version.js.map +0 -7
  1418. package/dist/subpaths/withBreakpointManager.d.ts +0 -1
  1419. package/dist/subpaths/withBreakpointManager.js +0 -6
  1420. package/dist/subpaths/withBreakpointManager.js.map +0 -7
  1421. package/dist/subpaths/withBreakpointObserver.d.ts +0 -1
  1422. package/dist/subpaths/withBreakpointObserver.js +0 -6
  1423. package/dist/subpaths/withBreakpointObserver.js.map +0 -7
  1424. package/dist/subpaths/withDrag.js.map +0 -7
  1425. package/dist/subpaths/withExtraConfig.d.ts +0 -1
  1426. package/dist/subpaths/withExtraConfig.js +0 -6
  1427. package/dist/subpaths/withExtraConfig.js.map +0 -7
  1428. package/dist/subpaths/withFreezedOptions.d.ts +0 -1
  1429. package/dist/subpaths/withFreezedOptions.js +0 -6
  1430. package/dist/subpaths/withFreezedOptions.js.map +0 -7
  1431. package/dist/subpaths/withGroup.d.ts +0 -1
  1432. package/dist/subpaths/withGroup.js +0 -6
  1433. package/dist/subpaths/withGroup.js.map +0 -7
  1434. package/dist/subpaths/withIntersectionObserver.d.ts +0 -1
  1435. package/dist/subpaths/withIntersectionObserver.js +0 -6
  1436. package/dist/subpaths/withIntersectionObserver.js.map +0 -7
  1437. package/dist/subpaths/withMountOnMediaQuery.d.ts +0 -1
  1438. package/dist/subpaths/withMountOnMediaQuery.js +0 -6
  1439. package/dist/subpaths/withMountOnMediaQuery.js.map +0 -7
  1440. package/dist/subpaths/withMountOnMediaQueryInterface.d.ts +0 -1
  1441. package/dist/subpaths/withMountOnMediaQueryInterface.js +0 -1
  1442. package/dist/subpaths/withMountOnMediaQueryInterface.js.map +0 -7
  1443. package/dist/subpaths/withMountOnMediaQueryProps.d.ts +0 -1
  1444. package/dist/subpaths/withMountOnMediaQueryProps.js +0 -1
  1445. package/dist/subpaths/withMountOnMediaQueryProps.js.map +0 -7
  1446. package/dist/subpaths/withMountWhenInView.d.ts +0 -1
  1447. package/dist/subpaths/withMountWhenInView.js +0 -6
  1448. package/dist/subpaths/withMountWhenInView.js.map +0 -7
  1449. package/dist/subpaths/withMountWhenPrefersMotion.d.ts +0 -1
  1450. package/dist/subpaths/withMountWhenPrefersMotion.js +0 -6
  1451. package/dist/subpaths/withMountWhenPrefersMotion.js.map +0 -7
  1452. package/dist/subpaths/withMutation.js.map +0 -7
  1453. package/dist/subpaths/withName.d.ts +0 -1
  1454. package/dist/subpaths/withName.js +0 -6
  1455. package/dist/subpaths/withName.js.map +0 -7
  1456. package/dist/subpaths/withRelativePointer.d.ts +0 -1
  1457. package/dist/subpaths/withRelativePointer.js +0 -6
  1458. package/dist/subpaths/withRelativePointer.js.map +0 -7
  1459. package/dist/subpaths/withResponsiveOptions.d.ts +0 -1
  1460. package/dist/subpaths/withResponsiveOptions.js +0 -6
  1461. package/dist/subpaths/withResponsiveOptions.js.map +0 -7
  1462. package/dist/subpaths/withScrolledInView.d.ts +0 -1
  1463. package/dist/subpaths/withScrolledInView.js +0 -6
  1464. package/dist/subpaths/withScrolledInView.js.map +0 -7
  1465. package/dist/utils/Queue.d.ts +0 -44
  1466. package/dist/utils/Queue.js +0 -71
  1467. package/dist/utils/Queue.js.map +0 -7
  1468. package/dist/utils/SmartQueue.d.ts +0 -25
  1469. package/dist/utils/SmartQueue.js +0 -41
  1470. package/dist/utils/SmartQueue.js.map +0 -7
  1471. package/dist/utils/cache.d.ts +0 -5
  1472. package/dist/utils/cache.js +0 -19
  1473. package/dist/utils/cache.js.map +0 -7
  1474. package/dist/utils/collide/boundingRectToCircle.d.ts +0 -24
  1475. package/dist/utils/collide/boundingRectToCircle.js +0 -14
  1476. package/dist/utils/collide/boundingRectToCircle.js.map +0 -7
  1477. package/dist/utils/collide/collideCircleCircle.d.ts +0 -16
  1478. package/dist/utils/collide/collideCircleCircle.js +0 -13
  1479. package/dist/utils/collide/collideCircleCircle.js.map +0 -7
  1480. package/dist/utils/collide/collideCircleRect.d.ts +0 -23
  1481. package/dist/utils/collide/collideCircleRect.js +0 -25
  1482. package/dist/utils/collide/collideCircleRect.js.map +0 -7
  1483. package/dist/utils/collide/collidePointCircle.d.ts +0 -21
  1484. package/dist/utils/collide/collidePointCircle.js +0 -10
  1485. package/dist/utils/collide/collidePointCircle.js.map +0 -7
  1486. package/dist/utils/collide/collidePointRect.d.ts +0 -22
  1487. package/dist/utils/collide/collidePointRect.js +0 -10
  1488. package/dist/utils/collide/collidePointRect.js.map +0 -7
  1489. package/dist/utils/collide/collideRectRect.d.ts +0 -17
  1490. package/dist/utils/collide/collideRectRect.js +0 -10
  1491. package/dist/utils/collide/collideRectRect.js.map +0 -7
  1492. package/dist/utils/collide/index.d.ts +0 -9
  1493. package/dist/utils/collide/index.js +0 -15
  1494. package/dist/utils/collide/index.js.map +0 -7
  1495. package/dist/utils/css/animate.d.ts +0 -46
  1496. package/dist/utils/css/animate.js +0 -279
  1497. package/dist/utils/css/animate.js.map +0 -7
  1498. package/dist/utils/css/classes.d.ts +0 -15
  1499. package/dist/utils/css/classes.js +0 -29
  1500. package/dist/utils/css/classes.js.map +0 -7
  1501. package/dist/utils/css/getOffsetSizes.d.ts +0 -14
  1502. package/dist/utils/css/getOffsetSizes.js +0 -26
  1503. package/dist/utils/css/getOffsetSizes.js.map +0 -7
  1504. package/dist/utils/css/index.d.ts +0 -8
  1505. package/dist/utils/css/index.js +0 -22
  1506. package/dist/utils/css/index.js.map +0 -7
  1507. package/dist/utils/css/matrix.d.ts +0 -28
  1508. package/dist/utils/css/matrix.js +0 -8
  1509. package/dist/utils/css/matrix.js.map +0 -7
  1510. package/dist/utils/css/styles.d.ts +0 -10
  1511. package/dist/utils/css/styles.js +0 -23
  1512. package/dist/utils/css/styles.js.map +0 -7
  1513. package/dist/utils/css/transform.d.ts +0 -22
  1514. package/dist/utils/css/transform.js +0 -69
  1515. package/dist/utils/css/transform.js.map +0 -7
  1516. package/dist/utils/css/transition.d.ts +0 -20
  1517. package/dist/utils/css/transition.js +0 -113
  1518. package/dist/utils/css/transition.js.map +0 -7
  1519. package/dist/utils/css/utils.d.ts +0 -1
  1520. package/dist/utils/css/utils.js +0 -10
  1521. package/dist/utils/css/utils.js.map +0 -7
  1522. package/dist/utils/debounce.d.ts +0 -11
  1523. package/dist/utils/debounce.js +0 -13
  1524. package/dist/utils/debounce.js.map +0 -7
  1525. package/dist/utils/dom/ancestors.d.ts +0 -8
  1526. package/dist/utils/dom/ancestors.js +0 -15
  1527. package/dist/utils/dom/ancestors.js.map +0 -7
  1528. package/dist/utils/dom/createElement.d.ts +0 -33
  1529. package/dist/utils/dom/createElement.js +0 -27
  1530. package/dist/utils/dom/createElement.js.map +0 -7
  1531. package/dist/utils/dom/index.d.ts +0 -2
  1532. package/dist/utils/dom/index.js +0 -8
  1533. package/dist/utils/dom/index.js.map +0 -7
  1534. package/dist/utils/getComponentResolver.d.ts +0 -7
  1535. package/dist/utils/getComponentResolver.js +0 -16
  1536. package/dist/utils/getComponentResolver.js.map +0 -7
  1537. package/dist/utils/has.d.ts +0 -4
  1538. package/dist/utils/has.js +0 -7
  1539. package/dist/utils/has.js.map +0 -7
  1540. package/dist/utils/index.js.map +0 -7
  1541. package/dist/utils/keyCodes.d.ts +0 -13
  1542. package/dist/utils/keyCodes.js +0 -14
  1543. package/dist/utils/keyCodes.js.map +0 -7
  1544. package/dist/utils/loadElement.d.ts +0 -47
  1545. package/dist/utils/loadElement.js +0 -33
  1546. package/dist/utils/loadElement.js.map +0 -7
  1547. package/dist/utils/math/clamp.d.ts +0 -5
  1548. package/dist/utils/math/clamp.js +0 -7
  1549. package/dist/utils/math/clamp.js.map +0 -7
  1550. package/dist/utils/math/clamp01.d.ts +0 -5
  1551. package/dist/utils/math/clamp01.js +0 -8
  1552. package/dist/utils/math/clamp01.js.map +0 -7
  1553. package/dist/utils/math/createEases.d.ts +0 -23
  1554. package/dist/utils/math/createEases.js +0 -11
  1555. package/dist/utils/math/createEases.js.map +0 -7
  1556. package/dist/utils/math/createRange.d.ts +0 -5
  1557. package/dist/utils/math/createRange.js +0 -13
  1558. package/dist/utils/math/createRange.js.map +0 -7
  1559. package/dist/utils/math/damp.d.ts +0 -11
  1560. package/dist/utils/math/damp.js +0 -7
  1561. package/dist/utils/math/damp.js.map +0 -7
  1562. package/dist/utils/math/ease.d.ts +0 -71
  1563. package/dist/utils/math/ease.js +0 -62
  1564. package/dist/utils/math/ease.js.map +0 -7
  1565. package/dist/utils/math/fold.d.ts +0 -5
  1566. package/dist/utils/math/fold.js +0 -14
  1567. package/dist/utils/math/fold.js.map +0 -7
  1568. package/dist/utils/math/index.d.ts +0 -16
  1569. package/dist/utils/math/index.js +0 -80
  1570. package/dist/utils/math/index.js.map +0 -7
  1571. package/dist/utils/math/inertiaFinalValue.d.ts +0 -10
  1572. package/dist/utils/math/inertiaFinalValue.js +0 -15
  1573. package/dist/utils/math/inertiaFinalValue.js.map +0 -7
  1574. package/dist/utils/math/lerp.d.ts +0 -10
  1575. package/dist/utils/math/lerp.js +0 -7
  1576. package/dist/utils/math/lerp.js.map +0 -7
  1577. package/dist/utils/math/map.d.ts +0 -12
  1578. package/dist/utils/math/map.js +0 -7
  1579. package/dist/utils/math/map.js.map +0 -7
  1580. package/dist/utils/math/mean.d.ts +0 -4
  1581. package/dist/utils/math/mean.js +0 -17
  1582. package/dist/utils/math/mean.js.map +0 -7
  1583. package/dist/utils/math/round.d.ts +0 -9
  1584. package/dist/utils/math/round.js +0 -7
  1585. package/dist/utils/math/round.js.map +0 -7
  1586. package/dist/utils/math/smoothTo.d.ts +0 -69
  1587. package/dist/utils/math/smoothTo.js +0 -56
  1588. package/dist/utils/math/smoothTo.js.map +0 -7
  1589. package/dist/utils/math/spring.d.ts +0 -13
  1590. package/dist/utils/math/spring.js +0 -11
  1591. package/dist/utils/math/spring.js.map +0 -7
  1592. package/dist/utils/math/wrap.d.ts +0 -5
  1593. package/dist/utils/math/wrap.js +0 -11
  1594. package/dist/utils/math/wrap.js.map +0 -7
  1595. package/dist/utils/memoize.d.ts +0 -21
  1596. package/dist/utils/memoize.js +0 -26
  1597. package/dist/utils/memoize.js.map +0 -7
  1598. package/dist/utils/nextFrame.d.ts +0 -8
  1599. package/dist/utils/nextFrame.js +0 -12
  1600. package/dist/utils/nextFrame.js.map +0 -7
  1601. package/dist/utils/nextMicrotask.d.ts +0 -8
  1602. package/dist/utils/nextMicrotask.js +0 -8
  1603. package/dist/utils/nextMicrotask.js.map +0 -7
  1604. package/dist/utils/nextTick.d.ts +0 -8
  1605. package/dist/utils/nextTick.js +0 -9
  1606. package/dist/utils/nextTick.js.map +0 -7
  1607. package/dist/utils/object/getAllProperties.d.ts +0 -11
  1608. package/dist/utils/object/getAllProperties.js +0 -19
  1609. package/dist/utils/object/getAllProperties.js.map +0 -7
  1610. package/dist/utils/scheduler.d.ts +0 -15
  1611. package/dist/utils/scheduler.js +0 -53
  1612. package/dist/utils/scheduler.js.map +0 -7
  1613. package/dist/utils/storage/createLocalStorageProvider.d.ts +0 -2
  1614. package/dist/utils/storage/createLocalStorageProvider.js +0 -32
  1615. package/dist/utils/storage/createLocalStorageProvider.js.map +0 -7
  1616. package/dist/utils/storage/createMemoryStorageProvider.d.ts +0 -2
  1617. package/dist/utils/storage/createMemoryStorageProvider.js +0 -27
  1618. package/dist/utils/storage/createMemoryStorageProvider.js.map +0 -7
  1619. package/dist/utils/storage/createNoopProvider.d.ts +0 -2
  1620. package/dist/utils/storage/createNoopProvider.js +0 -23
  1621. package/dist/utils/storage/createNoopProvider.js.map +0 -7
  1622. package/dist/utils/storage/createSessionStorageProvider.d.ts +0 -2
  1623. package/dist/utils/storage/createSessionStorageProvider.js +0 -31
  1624. package/dist/utils/storage/createSessionStorageProvider.js.map +0 -7
  1625. package/dist/utils/storage/createStorage.d.ts +0 -2
  1626. package/dist/utils/storage/createStorage.js +0 -96
  1627. package/dist/utils/storage/createStorage.js.map +0 -7
  1628. package/dist/utils/storage/createUrlSearchParamsInHashProvider.d.ts +0 -2
  1629. package/dist/utils/storage/createUrlSearchParamsInHashProvider.js +0 -57
  1630. package/dist/utils/storage/createUrlSearchParamsInHashProvider.js.map +0 -7
  1631. package/dist/utils/storage/createUrlSearchParamsProvider.d.ts +0 -2
  1632. package/dist/utils/storage/createUrlSearchParamsProvider.js +0 -41
  1633. package/dist/utils/storage/createUrlSearchParamsProvider.js.map +0 -7
  1634. package/dist/utils/storage/getBrowserContext.d.ts +0 -1
  1635. package/dist/utils/storage/getBrowserContext.js +0 -17
  1636. package/dist/utils/storage/getBrowserContext.js.map +0 -7
  1637. package/dist/utils/storage/getGlobalStorage.d.ts +0 -1
  1638. package/dist/utils/storage/getGlobalStorage.js +0 -7
  1639. package/dist/utils/storage/getGlobalStorage.js.map +0 -7
  1640. package/dist/utils/storage/getStorageKeys.d.ts +0 -1
  1641. package/dist/utils/storage/getStorageKeys.js +0 -12
  1642. package/dist/utils/storage/getStorageKeys.js.map +0 -7
  1643. package/dist/utils/storage/index.d.ts +0 -8
  1644. package/dist/utils/storage/index.js +0 -62
  1645. package/dist/utils/storage/index.js.map +0 -7
  1646. package/dist/utils/storage/providers.d.ts +0 -11
  1647. package/dist/utils/storage/providers.js +0 -30
  1648. package/dist/utils/storage/providers.js.map +0 -7
  1649. package/dist/utils/storage/serializers.d.ts +0 -2
  1650. package/dist/utils/storage/serializers.js +0 -14
  1651. package/dist/utils/storage/serializers.js.map +0 -7
  1652. package/dist/utils/storage/types.d.ts +0 -33
  1653. package/dist/utils/storage/types.js +0 -1
  1654. package/dist/utils/storage/types.js.map +0 -7
  1655. package/dist/utils/storage.d.ts +0 -1
  1656. package/dist/utils/storage.js +0 -37
  1657. package/dist/utils/storage.js.map +0 -7
  1658. package/dist/utils/string/changeCase.d.ts +0 -30
  1659. package/dist/utils/string/changeCase.js +0 -47
  1660. package/dist/utils/string/changeCase.js.map +0 -7
  1661. package/dist/utils/string/endsWith.d.ts +0 -9
  1662. package/dist/utils/string/endsWith.js +0 -13
  1663. package/dist/utils/string/endsWith.js.map +0 -7
  1664. package/dist/utils/string/index.d.ts +0 -13
  1665. package/dist/utils/string/index.js +0 -34
  1666. package/dist/utils/string/index.js.map +0 -7
  1667. package/dist/utils/string/startsWith.d.ts +0 -9
  1668. package/dist/utils/string/startsWith.js +0 -13
  1669. package/dist/utils/string/startsWith.js.map +0 -7
  1670. package/dist/utils/string/withLeadingCharacters.d.ts +0 -9
  1671. package/dist/utils/string/withLeadingCharacters.js +0 -8
  1672. package/dist/utils/string/withLeadingCharacters.js.map +0 -7
  1673. package/dist/utils/string/withLeadingSlash.d.ts +0 -8
  1674. package/dist/utils/string/withLeadingSlash.js +0 -8
  1675. package/dist/utils/string/withLeadingSlash.js.map +0 -7
  1676. package/dist/utils/string/withTrailingCharacters.d.ts +0 -9
  1677. package/dist/utils/string/withTrailingCharacters.js +0 -8
  1678. package/dist/utils/string/withTrailingCharacters.js.map +0 -7
  1679. package/dist/utils/string/withTrailingSlash.d.ts +0 -8
  1680. package/dist/utils/string/withTrailingSlash.js +0 -8
  1681. package/dist/utils/string/withTrailingSlash.js.map +0 -7
  1682. package/dist/utils/string/withoutLeadingCharacters.d.ts +0 -9
  1683. package/dist/utils/string/withoutLeadingCharacters.js +0 -7
  1684. package/dist/utils/string/withoutLeadingCharacters.js.map +0 -7
  1685. package/dist/utils/string/withoutLeadingCharactersRecursive.d.ts +0 -9
  1686. package/dist/utils/string/withoutLeadingCharactersRecursive.js +0 -13
  1687. package/dist/utils/string/withoutLeadingCharactersRecursive.js.map +0 -7
  1688. package/dist/utils/string/withoutLeadingSlash.d.ts +0 -8
  1689. package/dist/utils/string/withoutLeadingSlash.js +0 -8
  1690. package/dist/utils/string/withoutLeadingSlash.js.map +0 -7
  1691. package/dist/utils/string/withoutTrailingCharacters.d.ts +0 -9
  1692. package/dist/utils/string/withoutTrailingCharacters.js +0 -7
  1693. package/dist/utils/string/withoutTrailingCharacters.js.map +0 -7
  1694. package/dist/utils/string/withoutTrailingCharactersRecursive.d.ts +0 -9
  1695. package/dist/utils/string/withoutTrailingCharactersRecursive.js +0 -13
  1696. package/dist/utils/string/withoutTrailingCharactersRecursive.js.map +0 -7
  1697. package/dist/utils/string/withoutTrailingSlash.d.ts +0 -8
  1698. package/dist/utils/string/withoutTrailingSlash.js +0 -8
  1699. package/dist/utils/string/withoutTrailingSlash.js.map +0 -7
  1700. package/dist/utils/throttle.d.ts +0 -9
  1701. package/dist/utils/throttle.js +0 -15
  1702. package/dist/utils/throttle.js.map +0 -7
  1703. package/dist/utils/trapFocus.d.ts +0 -17
  1704. package/dist/utils/trapFocus.js +0 -57
  1705. package/dist/utils/trapFocus.js.map +0 -7
  1706. package/dist/utils/tween.d.ts +0 -83
  1707. package/dist/utils/tween.js +0 -119
  1708. package/dist/utils/tween.js.map +0 -7
  1709. package/dist/utils/wait.d.ts +0 -1
  1710. package/dist/utils/wait.js +0 -9
  1711. package/dist/utils/wait.js.map +0 -7
  1712. package/dist/version.d.ts +0 -1
  1713. package/dist/version.js +0 -5
  1714. package/dist/version.js.map +0 -7
@@ -0,0 +1,173 @@
1
+ import { getSharedRuntimeSlot } from "./shared-runtime.js";
2
+ import { isolateCallbackFailure } from "./diagnostics.js";
3
+ //#region src/context.ts
4
+ const CONTEXT_REQUEST = "js-toolkit:context:request";
5
+ /**
6
+ * Create a typed context key.
7
+ * @link https://js-toolkit-v4.studiometa.dev/api/context/createContext.html
8
+ */
9
+ function createContext(description = "context") {
10
+ return Symbol(description);
11
+ }
12
+ /**
13
+ * Create a reactive value.
14
+ *
15
+ * Writes settle synchronously. A reentrant write supersedes the current delivery, so no subscriber observes an older value after a newer one.
16
+ * @link https://js-toolkit-v4.studiometa.dev/api/context/signal.html
17
+ */
18
+ function signal(initialValue) {
19
+ let current = initialValue;
20
+ let delivered = initialValue;
21
+ let isSettling = false;
22
+ const subscribers = /* @__PURE__ */ new Set();
23
+ function settle() {
24
+ if (isSettling) return;
25
+ isSettling = true;
26
+ try {
27
+ while (delivered !== current) {
28
+ delivered = current;
29
+ for (const subscriber of [...subscribers]) {
30
+ if (!subscriber.isActive) continue;
31
+ isolateCallbackFailure("callback.signal-failed", "A signal subscriber failed.", () => subscriber.callback(delivered));
32
+ if (current !== delivered) break;
33
+ }
34
+ }
35
+ } finally {
36
+ isSettling = false;
37
+ }
38
+ }
39
+ return {
40
+ get value() {
41
+ return current;
42
+ },
43
+ set value(next) {
44
+ if (next === current) return;
45
+ current = next;
46
+ settle();
47
+ },
48
+ subscribe(callback, { immediate = false } = {}) {
49
+ const subscriber = {
50
+ callback,
51
+ isActive: true
52
+ };
53
+ subscribers.add(subscriber);
54
+ if (immediate) isolateCallbackFailure("callback.signal-failed", "An immediate signal subscriber failed.", () => callback(current));
55
+ return () => {
56
+ subscriber.isActive = false;
57
+ subscribers.delete(subscriber);
58
+ };
59
+ }
60
+ };
61
+ }
62
+ const { pendingRequests, rootProviders } = /* @__PURE__ */ getSharedRuntimeSlot("context", 2, () => ({
63
+ pendingRequests: /* @__PURE__ */ new Set(),
64
+ rootProviders: /* @__PURE__ */ new Map()
65
+ }));
66
+ /**
67
+ * Dispatch one request and report whether a provider answered synchronously.
68
+ *
69
+ * @internal
70
+ */
71
+ function dispatchContextRequest(request) {
72
+ let isAnswered = false;
73
+ let event;
74
+ const detail = {
75
+ key: request.key,
76
+ subscribe: request.subscribe,
77
+ provide(value) {
78
+ isAnswered = true;
79
+ pendingRequests.delete(request);
80
+ const provider = event.currentTarget;
81
+ request.resolve(value, provider !== null && "contains" in provider ? provider : null);
82
+ }
83
+ };
84
+ event = new CustomEvent(CONTEXT_REQUEST, {
85
+ bubbles: true,
86
+ detail
87
+ });
88
+ request.el.dispatchEvent(event);
89
+ return isAnswered;
90
+ }
91
+ /** Keep an unanswered request available for a provider that appears later. @internal */
92
+ function retainContextRequest(request) {
93
+ pendingRequests.add(request);
94
+ }
95
+ /** Stop replaying an unanswered request. @internal */
96
+ function cancelContextRequest(request) {
97
+ pendingRequests.delete(request);
98
+ }
99
+ /**
100
+ * Provide a value verbatim for a subtree. The nearest provider wins.
101
+ * @link https://js-toolkit-v4.studiometa.dev/api/context/provideContext.html
102
+ */
103
+ function provideContext(el, key, value) {
104
+ const onRequest = (event) => {
105
+ const { detail } = event;
106
+ if (detail?.key !== key) return;
107
+ event.stopPropagation();
108
+ detail.provide(value);
109
+ };
110
+ el.addEventListener(CONTEXT_REQUEST, onRequest);
111
+ for (const request of [...pendingRequests]) if (request.key === key && el.contains(request.el)) dispatchContextRequest(request);
112
+ return {
113
+ value,
114
+ dispose: () => el.removeEventListener(CONTEXT_REQUEST, onRequest)
115
+ };
116
+ }
117
+ /**
118
+ * Provide a document-wide value created once per key. Nearer providers override it.
119
+ *
120
+ * Root providers are page-lifetime and cannot be disposed.
121
+ * @link https://js-toolkit-v4.studiometa.dev/api/context/provideRootContext.html
122
+ */
123
+ function provideRootContext(key, create) {
124
+ if (rootProviders.has(key)) return rootProviders.get(key);
125
+ const value = create();
126
+ rootProviders.set(key, value);
127
+ provideContext(document.documentElement, key, value);
128
+ return value;
129
+ }
130
+ /**
131
+ * Resolve the nearest provided value for `key`, now or when a provider
132
+ * appears. This request is one-shot: the first answer settles the promise and
133
+ * removes the request.
134
+ *
135
+ * The promise stays pending while no provider exists. `cancel()` removes that
136
+ * pending request and does nothing after an answer.
137
+ * @link https://js-toolkit-v4.studiometa.dev/api/context/injectContext.html
138
+ */
139
+ function injectContext(el, key) {
140
+ let request;
141
+ return {
142
+ promise: new Promise((resolve) => {
143
+ request = {
144
+ el,
145
+ key,
146
+ subscribe: false,
147
+ resolve: (value) => resolve(value)
148
+ };
149
+ if (!dispatchContextRequest(request)) retainContextRequest(request);
150
+ }),
151
+ cancel: () => cancelContextRequest(request)
152
+ };
153
+ }
154
+ /**
155
+ * Resolve the nearest provided value synchronously, or return `undefined`.
156
+ * @link https://js-toolkit-v4.studiometa.dev/api/context/injectContextSync.html
157
+ */
158
+ function injectContextSync(el, key) {
159
+ let resolved;
160
+ dispatchContextRequest({
161
+ el,
162
+ key,
163
+ subscribe: false,
164
+ resolve: (value) => {
165
+ resolved = value;
166
+ }
167
+ });
168
+ return resolved;
169
+ }
170
+ //#endregion
171
+ export { cancelContextRequest, createContext, dispatchContextRequest, injectContext, injectContextSync, provideContext, provideRootContext, retainContextRequest, signal };
172
+
173
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","names":[],"sources":["../src/context.ts"],"sourcesContent":["import { isolateCallbackFailure } from './diagnostics.js';\nimport { getSharedRuntimeSlot } from './shared-runtime.js';\n\nconst CONTEXT_REQUEST = 'js-toolkit:context:request';\n\n/** A typed context key. `__context` is type-only. */\nexport type ContextKey<T = unknown> = symbol & { readonly __context?: T };\n\n/**\n * Create a typed context key.\n * @link https://js-toolkit-v4.studiometa.dev/api/context/createContext.html\n */\nexport function createContext<T = unknown>(description = 'context'): ContextKey<T> {\n return Symbol(description);\n}\n\n/** A reactive value with synchronous subscriptions. */\nexport interface Signal<T = unknown> {\n /** The latest value, including during delivery. */\n value: T;\n /** @returns Unsubscribe. */\n subscribe(callback: (value: T) => void, options?: { immediate?: boolean }): () => void;\n}\n\n/** Each subscription has independent ownership and active state. */\ninterface Subscriber<T> {\n callback: (value: T) => void;\n isActive: boolean;\n}\n\n/**\n * Create a reactive value.\n *\n * Writes settle synchronously. A reentrant write supersedes the current delivery, so no subscriber observes an older value after a newer one.\n * @link https://js-toolkit-v4.studiometa.dev/api/context/signal.html\n */\nexport function signal<T>(initialValue: T): Signal<T> {\n let current = initialValue;\n let delivered = initialValue;\n let isSettling = false;\n const subscribers = new Set<Subscriber<T>>();\n\n function settle() {\n // The active loop drains reentrant writes without nesting delivery.\n if (isSettling) {\n return;\n }\n isSettling = true;\n try {\n while (delivered !== current) {\n delivered = current;\n // Snapshot delivery excludes later additions; `isActive` handles removals.\n for (const subscriber of [...subscribers]) {\n if (!subscriber.isActive) {\n continue;\n }\n isolateCallbackFailure('callback.signal-failed', 'A signal subscriber failed.', () =>\n subscriber.callback(delivered),\n );\n if (current !== delivered) {\n break;\n }\n }\n }\n } finally {\n isSettling = false;\n }\n }\n\n return {\n get value(): T {\n return current;\n },\n set value(next: T) {\n if (next === current) {\n return;\n }\n current = next;\n settle();\n },\n subscribe(callback: (value: T) => void, { immediate = false } = {}): () => void {\n const subscriber: Subscriber<T> = { callback, isActive: true };\n subscribers.add(subscriber);\n if (immediate) {\n isolateCallbackFailure(\n 'callback.signal-failed',\n 'An immediate signal subscriber failed.',\n () => callback(current),\n );\n }\n return () => {\n subscriber.isActive = false;\n subscribers.delete(subscriber);\n };\n },\n };\n}\n\ninterface ContextRequestDetail {\n key: symbol;\n /** Required by the WICG protocol for subscribed third-party requests. */\n subscribe: boolean;\n provide(value: unknown): void;\n}\n\n/**\n * One context request on the private event transport.\n *\n * @internal\n */\nexport interface ContextRequest {\n el: Element;\n key: symbol;\n subscribe: boolean;\n resolve(value: unknown, providerNode: Node | null): void;\n}\n\ninterface ContextRuntimeState {\n pendingRequests: Set<ContextRequest>;\n rootProviders: Map<symbol, unknown>;\n}\n\nconst contextState = /* @__PURE__ */ getSharedRuntimeSlot<ContextRuntimeState>(\n 'context',\n 2,\n () => ({\n pendingRequests: new Set(),\n rootProviders: new Map(),\n }),\n);\nconst { pendingRequests, rootProviders } = contextState;\n\n/**\n * Dispatch one request and report whether a provider answered synchronously.\n *\n * @internal\n */\nexport function dispatchContextRequest(request: ContextRequest): boolean {\n let isAnswered = false;\n let event!: CustomEvent<ContextRequestDetail>;\n const detail: ContextRequestDetail = {\n key: request.key,\n subscribe: request.subscribe,\n provide(value) {\n isAnswered = true;\n pendingRequests.delete(request);\n const provider = event.currentTarget;\n request.resolve(\n value,\n provider !== null && 'contains' in provider ? (provider as Node) : null,\n );\n },\n };\n event = new CustomEvent(CONTEXT_REQUEST, { bubbles: true, detail });\n request.el.dispatchEvent(event);\n return isAnswered;\n}\n\n/** Keep an unanswered request available for a provider that appears later. @internal */\nexport function retainContextRequest(request: ContextRequest): void {\n pendingRequests.add(request);\n}\n\n/** Stop replaying an unanswered request. @internal */\nexport function cancelContextRequest(request: ContextRequest): void {\n pendingRequests.delete(request);\n}\n\n/**\n * Provide a value verbatim for a subtree. The nearest provider wins.\n * @link https://js-toolkit-v4.studiometa.dev/api/context/provideContext.html\n */\nexport function provideContext<T>(\n el: Element,\n key: ContextKey<T>,\n value: T,\n): { value: T; dispose: () => void } {\n const onRequest = (event: Event) => {\n const { detail } = event as CustomEvent<ContextRequestDetail>;\n if (detail?.key !== key) {\n return;\n }\n event.stopPropagation();\n detail.provide(value);\n };\n el.addEventListener(CONTEXT_REQUEST, onRequest);\n\n // Re-dispatch pending subtree requests so the nearest provider still wins.\n // oxlint-disable-next-line no-useless-spread\n for (const request of [...pendingRequests]) {\n if (request.key === key && el.contains(request.el)) {\n dispatchContextRequest(request);\n }\n }\n\n return {\n value,\n dispose: () => el.removeEventListener(CONTEXT_REQUEST, onRequest),\n };\n}\n\n/**\n * Provide a document-wide value created once per key. Nearer providers override it.\n *\n * Root providers are page-lifetime and cannot be disposed.\n * @link https://js-toolkit-v4.studiometa.dev/api/context/provideRootContext.html\n */\nexport function provideRootContext<T>(key: ContextKey<T>, create: () => T): T {\n if (rootProviders.has(key)) {\n return rootProviders.get(key) as T;\n }\n const value = create();\n rootProviders.set(key, value);\n provideContext(document.documentElement, key, value);\n return value;\n}\n\n/**\n * Resolve the nearest provided value for `key`, now or when a provider\n * appears. This request is one-shot: the first answer settles the promise and\n * removes the request.\n *\n * The promise stays pending while no provider exists. `cancel()` removes that\n * pending request and does nothing after an answer.\n * @link https://js-toolkit-v4.studiometa.dev/api/context/injectContext.html\n */\nexport function injectContext<T>(\n el: Element,\n key: ContextKey<T>,\n): { promise: Promise<T>; cancel: () => void } {\n let request!: ContextRequest;\n const promise = new Promise<T>((resolve) => {\n request = {\n el,\n key,\n subscribe: false,\n resolve: (value) => resolve(value as T),\n };\n if (!dispatchContextRequest(request)) {\n retainContextRequest(request);\n }\n });\n return { promise, cancel: () => cancelContextRequest(request) };\n}\n\n/**\n * Resolve the nearest provided value synchronously, or return `undefined`.\n * @link https://js-toolkit-v4.studiometa.dev/api/context/injectContextSync.html\n */\nexport function injectContextSync<T>(el: Element, key: ContextKey<T>): T | undefined {\n let resolved: T | undefined;\n dispatchContextRequest({\n el,\n key,\n subscribe: false,\n resolve: (value) => {\n resolved = value as T;\n },\n });\n return resolved;\n}\n"],"mappings":";;;AAGA,MAAM,kBAAkB;;;;;AASxB,SAAgB,cAA2B,cAAc,WAA0B;CACjF,OAAO,OAAO,WAAW;AAC3B;;;;;;;AAsBA,SAAgB,OAAU,cAA4B;CACpD,IAAI,UAAU;CACd,IAAI,YAAY;CAChB,IAAI,aAAa;CACjB,MAAM,8BAAc,IAAI,IAAmB;CAE3C,SAAS,SAAS;EAEhB,IAAI,YACF;EAEF,aAAa;EACb,IAAI;GACF,OAAO,cAAc,SAAS;IAC5B,YAAY;IAEZ,KAAK,MAAM,cAAc,CAAC,GAAG,WAAW,GAAG;KACzC,IAAI,CAAC,WAAW,UACd;KAEF,uBAAuB,0BAA0B,qCAC/C,WAAW,SAAS,SAAS,CAC/B;KACA,IAAI,YAAY,WACd;IAEJ;GACF;EACF,UAAU;GACR,aAAa;EACf;CACF;CAEA,OAAO;EACL,IAAI,QAAW;GACb,OAAO;EACT;EACA,IAAI,MAAM,MAAS;GACjB,IAAI,SAAS,SACX;GAEF,UAAU;GACV,OAAO;EACT;EACA,UAAU,UAA8B,EAAE,YAAY,UAAU,CAAC,GAAe;GAC9E,MAAM,aAA4B;IAAE;IAAU,UAAU;GAAK;GAC7D,YAAY,IAAI,UAAU;GAC1B,IAAI,WACF,uBACE,0BACA,gDACM,SAAS,OAAO,CACxB;GAEF,aAAa;IACX,WAAW,WAAW;IACtB,YAAY,OAAO,UAAU;GAC/B;EACF;CACF;AACF;AAkCA,MAAM,EAAE,iBAAiB,kBARY,qCACnC,WACA,UACO;CACL,iCAAiB,IAAI,IAAI;CACzB,+BAAe,IAAI,IAAI;AACzB,EAEoD;;;;;;AAOtD,SAAgB,uBAAuB,SAAkC;CACvE,IAAI,aAAa;CACjB,IAAI;CACJ,MAAM,SAA+B;EACnC,KAAK,QAAQ;EACb,WAAW,QAAQ;EACnB,QAAQ,OAAO;GACb,aAAa;GACb,gBAAgB,OAAO,OAAO;GAC9B,MAAM,WAAW,MAAM;GACvB,QAAQ,QACN,OACA,aAAa,QAAQ,cAAc,WAAY,WAAoB,IACrE;EACF;CACF;CACA,QAAQ,IAAI,YAAY,iBAAiB;EAAE,SAAS;EAAM;CAAO,CAAC;CAClE,QAAQ,GAAG,cAAc,KAAK;CAC9B,OAAO;AACT;;AAGA,SAAgB,qBAAqB,SAA+B;CAClE,gBAAgB,IAAI,OAAO;AAC7B;;AAGA,SAAgB,qBAAqB,SAA+B;CAClE,gBAAgB,OAAO,OAAO;AAChC;;;;;AAMA,SAAgB,eACd,IACA,KACA,OACmC;CACnC,MAAM,aAAa,UAAiB;EAClC,MAAM,EAAE,WAAW;EACnB,IAAI,QAAQ,QAAQ,KAClB;EAEF,MAAM,gBAAgB;EACtB,OAAO,QAAQ,KAAK;CACtB;CACA,GAAG,iBAAiB,iBAAiB,SAAS;CAI9C,KAAK,MAAM,WAAW,CAAC,GAAG,eAAe,GACvC,IAAI,QAAQ,QAAQ,OAAO,GAAG,SAAS,QAAQ,EAAE,GAC/C,uBAAuB,OAAO;CAIlC,OAAO;EACL;EACA,eAAe,GAAG,oBAAoB,iBAAiB,SAAS;CAClE;AACF;;;;;;;AAQA,SAAgB,mBAAsB,KAAoB,QAAoB;CAC5E,IAAI,cAAc,IAAI,GAAG,GACvB,OAAO,cAAc,IAAI,GAAG;CAE9B,MAAM,QAAQ,OAAO;CACrB,cAAc,IAAI,KAAK,KAAK;CAC5B,eAAe,SAAS,iBAAiB,KAAK,KAAK;CACnD,OAAO;AACT;;;;;;;;;;AAWA,SAAgB,cACd,IACA,KAC6C;CAC7C,IAAI;CAYJ,OAAO;EAAE,SAAA,IAXW,SAAY,YAAY;GAC1C,UAAU;IACR;IACA;IACA,WAAW;IACX,UAAU,UAAU,QAAQ,KAAU;GACxC;GACA,IAAI,CAAC,uBAAuB,OAAO,GACjC,qBAAqB,OAAO;EAEhC,CACe;EAAG,cAAc,qBAAqB,OAAO;CAAE;AAChE;;;;;AAMA,SAAgB,kBAAqB,IAAa,KAAmC;CACnF,IAAI;CACJ,uBAAuB;EACrB;EACA;EACA,WAAW;EACX,UAAU,UAAU;GAClB,WAAW;EACb;CACF,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,70 @@
1
+ import { ContextKey } from "./context.js";
2
+ import { Base, BaseConfig, BaseConstructor, ChildrenCollection, DelegatedEvent, GlobalEvent, RefEvent, WatchChildrenCallbacks } from "./Base.js";
3
+ //#region src/decorators.d.ts
4
+ /** Decorator syntax requires transpilation; use the function APIs without a build step. */
5
+ type ChildHandler<T extends Base = Base, K extends string = string> = (this: any, payload: DelegatedEvent<T, K>) => void;
6
+ type RefHandler<T extends HTMLElement = HTMLElement> = (this: any, payload: RefEvent<T>) => void;
7
+ type GlobalHandler<T extends Event = Event> = (this: any, payload: GlobalEvent<T>) => void;
8
+ /** Maps known global event names to their platform type and custom names to `Event`. */
9
+ type PlatformEvent<M, K extends string> = K extends keyof M ? M[K] extends Event ? M[K] : Event : Event;
10
+ interface ValueDecorator<Value> {
11
+ <This extends Base>(target: undefined, context: ClassFieldDecoratorContext<This, Value>): (this: This, initial: Value) => Value;
12
+ <This extends Base>(target: ClassAccessorDecoratorTarget<This, Value>, context: ClassAccessorDecoratorContext<This, Value>): ClassAccessorDecoratorResult<This, Value>;
13
+ }
14
+ interface ValueObserver<Value> {
15
+ <This extends Base>(target: undefined, context: ClassFieldDecoratorContext<This, Value>): void;
16
+ <This extends Base>(target: ClassAccessorDecoratorTarget<This, Value>, context: ClassAccessorDecoratorContext<This, Value>): void;
17
+ }
18
+ /**
19
+ * Decorate a method as an event handler.
20
+ * One string binds an event on the component root. A string and event type bind a child or ref.
21
+ * A component class binds that child type. `window` and `document` bind global events.
22
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/on.html
23
+ */
24
+ declare function on<K extends keyof HTMLElementEventMap>(type: K): <This extends Base>(value: (this: This, event: HTMLElementEventMap[K]) => void, context: ClassMethodDecoratorContext<This, (this: This, event: HTMLElementEventMap[K]) => void>) => void;
25
+ /**
26
+ * A name outside the platform's map is a component event, whose detail only its
27
+ * emitter knows, so the handler declares the event type it expects.
28
+ */
29
+ declare function on<E extends Event = Event>(type: string): <This extends Base>(value: (this: This, event: E) => void, context: ClassMethodDecoratorContext<This, (this: This, event: E) => void>) => void;
30
+ declare function on<K extends string>(target: typeof window, type: K): <This extends Base>(value: GlobalHandler<PlatformEvent<WindowEventMap, K>>, context: ClassMethodDecoratorContext<This, GlobalHandler<PlatformEvent<WindowEventMap, K>>>) => void;
31
+ declare function on<K extends string>(target: typeof document, type: K): <This extends Base>(value: GlobalHandler<PlatformEvent<DocumentEventMap, K>>, context: ClassMethodDecoratorContext<This, GlobalHandler<PlatformEvent<DocumentEventMap, K>>>) => void;
32
+ declare function on<T extends BaseConstructor, K extends string>(child: T, type: K): <This extends Base>(value: ChildHandler<InstanceType<T>, K>, context: ClassMethodDecoratorContext<This, ChildHandler<InstanceType<T>, K>>) => void;
33
+ /** A string target can be a child or ref. Ref names must include the `[]` suffix declared in `config.refs`. */
34
+ declare function on(child: string, type: string): <T extends Base, E extends HTMLElement, This extends Base>(value: ChildHandler<T> | RefHandler<E>, context: ClassMethodDecoratorContext<This, ChildHandler<T> | RefHandler<E>>) => void;
35
+ type VoidMethod<This, Args extends unknown[]> = (this: This, ...args: Args) => void;
36
+ /**
37
+ * Schedule the method body in the next read phase. Destruction cancels pending work.
38
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/read-write.html
39
+ */
40
+ declare const read: <This extends Base, Args extends unknown[]>(value: VoidMethod<This, Args>, _context: ClassMethodDecoratorContext<This, VoidMethod<This, Args>>) => VoidMethod<This, Args>;
41
+ /**
42
+ * Schedule the method body in the next write phase. Destruction cancels pending work.
43
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/read-write.html
44
+ */
45
+ declare const write: <This extends Base, Args extends unknown[]>(value: VoidMethod<This, Args>, _context: ClassMethodDecoratorContext<This, VoidMethod<This, Args>>) => VoidMethod<This, Args>;
46
+ /**
47
+ * Set the component config and register the class when it is defined.
48
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/component.html
49
+ */
50
+ declare function component(config: BaseConfig): <T extends BaseConstructor>(value: T, context: ClassDecoratorContext<T>) => void;
51
+ /**
52
+ * Provide the decorated field to descendants. The nearest provider wins.
53
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/provide.html
54
+ */
55
+ declare function provide<T>(key: ContextKey<T>): ValueDecorator<T>;
56
+ /**
57
+ * Resolve the nearest provided value into the decorated field. The field stays `undefined` until resolution.
58
+ * Resolution starts once at construction and does not restart after destruction.
59
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/inject.html
60
+ */
61
+ declare function inject<T>(key: ContextKey<T>): ValueObserver<T | undefined>;
62
+ /**
63
+ * Track mounted descendants as a live collection. Strings match `config.name` exactly.
64
+ * Component classes include named subclasses. Callbacks bind to the host component.
65
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/children.html
66
+ */
67
+ declare function children<T extends Base = Base, Host = any>(name: string, callbacks?: WatchChildrenCallbacks<T> & ThisType<Host>): ValueDecorator<ChildrenCollection<T>>;
68
+ declare function children<T extends BaseConstructor, Host = any>(ComponentClass: T, callbacks?: WatchChildrenCallbacks<InstanceType<T>> & ThisType<Host>): ValueDecorator<ChildrenCollection<InstanceType<T>>>;
69
+ //#endregion
70
+ export { children, component, inject, on, provide, read, write };
@@ -0,0 +1,189 @@
1
+ import { isBaseConstructor } from "./component-brand.js";
2
+ import { warnOnce } from "./diagnostics.js";
3
+ import { HANDLER_REGISTRATIONS } from "./protocol-symbols.js";
4
+ import { resolveConfig } from "./Base.js";
5
+ import { registerComponent } from "./registry.js";
6
+ //#region src/decorators.ts
7
+ /**
8
+ * Global targets use identity checks. Component classes use their merged config name because it is their mount identity.
9
+ * Other `EventTarget` values are invalid because decorators have no component instance or mount cycle.
10
+ */
11
+ function resolveHandlerTarget(target, maybeType) {
12
+ if (typeof target === "string") return maybeType === void 0 ? {
13
+ target: null,
14
+ child: null,
15
+ type: target
16
+ } : {
17
+ target: null,
18
+ child: target,
19
+ type: maybeType
20
+ };
21
+ if (maybeType === void 0) throw new TypeError("[@on] a target value must be followed by an event type.");
22
+ if (isBaseConstructor(target)) return {
23
+ target: null,
24
+ child: resolveConfig(target).name,
25
+ type: maybeType
26
+ };
27
+ else if (target === window || target === document) return {
28
+ target,
29
+ child: null,
30
+ type: maybeType
31
+ };
32
+ throw new TypeError("[@on] the target must be a child name, a component class, `window` or `document`. Bind any other EventTarget from `mounted()`, where the instance and its cleanup exist.");
33
+ }
34
+ function withInitializer(context, initialize) {
35
+ return context.kind === "accessor" ? { init: initialize } : initialize;
36
+ }
37
+ function on(target, maybeType) {
38
+ const registration = resolveHandlerTarget(target, maybeType);
39
+ return function decorate(value, context) {
40
+ context.addInitializer(function initialize() {
41
+ (this[HANDLER_REGISTRATIONS] ??= []).push({
42
+ ...registration,
43
+ method: context.name,
44
+ handler: value
45
+ });
46
+ });
47
+ };
48
+ }
49
+ function inPhase(phase) {
50
+ return function decorate(value, _context) {
51
+ return function scheduled(...args) {
52
+ this[phase](() => value.apply(this, args));
53
+ };
54
+ };
55
+ }
56
+ /**
57
+ * Schedule the method body in the next read phase. Destruction cancels pending work.
58
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/read-write.html
59
+ */
60
+ const read = inPhase("$read");
61
+ /**
62
+ * Schedule the method body in the next write phase. Destruction cancels pending work.
63
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/read-write.html
64
+ */
65
+ const write = inPhase("$write");
66
+ /** Config keys that merge rather than override; the rest are compared as scalars. */
67
+ const COLLECTION_KEYS = /* @__PURE__ */ new Set([
68
+ "refs",
69
+ "options",
70
+ "components"
71
+ ]);
72
+ /**
73
+ * Merge the two config declarations one class can carry, by the rules
74
+ * `resolveConfig()` applies to a chain: collections merge, declared values
75
+ * override. A key neither side declares stays absent, so the written config
76
+ * keeps the shorthand shape the author wrote.
77
+ */
78
+ function mergeOwnConfigs(base, extra) {
79
+ const merged = {
80
+ ...base,
81
+ ...extra
82
+ };
83
+ if (base.refs && extra.refs) merged.refs = [.../* @__PURE__ */ new Set([...base.refs, ...extra.refs])];
84
+ if (base.options && extra.options) merged.options = {
85
+ ...base.options,
86
+ ...extra.options
87
+ };
88
+ if (base.components && extra.components) merged.components = {
89
+ ...base.components,
90
+ ...extra.components
91
+ };
92
+ return merged;
93
+ }
94
+ /**
95
+ * Keys the two declarations give different values, `options` and `components`
96
+ * entry by entry. `refs` are a union, so declaring one twice keeps it and is
97
+ * not reported. Only these keys make the precedence rule observable, so they
98
+ * are the only ones worth a warning.
99
+ */
100
+ function conflictingKeys(base, extra) {
101
+ return [
102
+ ...conflictingScalars(base, extra),
103
+ ...conflictingEntries("options", base, extra),
104
+ ...conflictingEntries("components", base, extra)
105
+ ];
106
+ }
107
+ /** Top-level keys both declare with different values; the collections are compared per entry. */
108
+ function conflictingScalars(base, extra) {
109
+ const conflicts = [];
110
+ const scalars = base;
111
+ for (const [key, value] of Object.entries(extra)) if (!COLLECTION_KEYS.has(key) && scalars[key] !== void 0 && scalars[key] !== value) conflicts.push(key);
112
+ return conflicts;
113
+ }
114
+ /** Entries of one collection both declare with different values. */
115
+ function conflictingEntries(key, base, extra) {
116
+ const own = base[key];
117
+ const incoming = extra[key];
118
+ if (!own || !incoming) return [];
119
+ const conflicts = [];
120
+ for (const [entry, value] of Object.entries(incoming)) if (own[entry] !== void 0 && own[entry] !== value) conflicts.push(`${key}.${entry}`);
121
+ return conflicts;
122
+ }
123
+ /**
124
+ * Set the component config and register the class when it is defined.
125
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/component.html
126
+ */
127
+ function component(config) {
128
+ return function decorate(value, context) {
129
+ const inherited = value.config;
130
+ const written = {
131
+ ...inherited,
132
+ ...config
133
+ };
134
+ value.config = written;
135
+ context.addInitializer(function initialize() {
136
+ if (this.config !== written) {
137
+ const field = this.config;
138
+ const merged = mergeOwnConfigs({
139
+ ...inherited,
140
+ ...field
141
+ }, config);
142
+ this.config = merged;
143
+ const conflicts = conflictingKeys(field, config);
144
+ if (conflicts.length > 0) warnOnce(this, "config", "component.config-conflict", `"${merged.name}" declares ${conflicts.join(", ")} in both @component() and its static config; the @component() value was kept. Declare each key once.`, { component: merged.name });
145
+ }
146
+ registerComponent(this);
147
+ });
148
+ };
149
+ }
150
+ /**
151
+ * Provide the decorated field to descendants. The nearest provider wins.
152
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/provide.html
153
+ */
154
+ function provide(key) {
155
+ return function decorate(_target, context) {
156
+ return withInitializer(context, function initialize(initial) {
157
+ return this.$provide(key, initial);
158
+ });
159
+ };
160
+ }
161
+ /**
162
+ * Resolve the nearest provided value into the decorated field. The field stays `undefined` until resolution.
163
+ * Resolution starts once at construction and does not restart after destruction.
164
+ * @link https://js-toolkit-v4.studiometa.dev/api/decorators/inject.html
165
+ */
166
+ function inject(key) {
167
+ return function decorate(_target, context) {
168
+ context.addInitializer(function initialize() {
169
+ this.$inject(key).then((value) => {
170
+ context.access.set(this, value);
171
+ });
172
+ });
173
+ };
174
+ }
175
+ function children(target, callbacks) {
176
+ return function decorate(_target, context) {
177
+ return withInitializer(context, function initialize() {
178
+ const bound = callbacks && {
179
+ added: callbacks.added?.bind(this),
180
+ removed: callbacks.removed?.bind(this)
181
+ };
182
+ return typeof target === "string" ? this.$watchChildren(target, bound) : this.$watchChildren(target, bound);
183
+ });
184
+ };
185
+ }
186
+ //#endregion
187
+ export { children, component, inject, on, provide, read, write };
188
+
189
+ //# sourceMappingURL=decorators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorators.js","names":[],"sources":["../src/decorators.ts"],"sourcesContent":["import {\n type Base,\n type BaseConfig,\n type BaseConstructor,\n type ChildrenCollection,\n type DelegatedEvent,\n type GlobalEvent,\n type HandlerRegistration,\n type RefEvent,\n resolveConfig,\n type WatchChildrenCallbacks,\n} from './Base.js';\nimport { isBaseConstructor } from './component-brand.js';\nimport type { ContextKey } from './context.js';\nimport { warnOnce } from './diagnostics.js';\nimport { HANDLER_REGISTRATIONS } from './protocol-symbols.js';\nimport { registerComponent } from './registry.js';\n\n/** Decorator syntax requires transpilation; use the function APIs without a build step. */\n\n// The decorator cannot know the host class of a decorated method.\ntype ChildHandler<T extends Base = Base, K extends string = string> = (\n this: any,\n payload: DelegatedEvent<T, K>,\n) => void;\ntype RefHandler<T extends HTMLElement = HTMLElement> = (this: any, payload: RefEvent<T>) => void;\ntype GlobalHandler<T extends Event = Event> = (this: any, payload: GlobalEvent<T>) => void;\n\n/** Maps known global event names to their platform type and custom names to `Event`. */\ntype PlatformEvent<M, K extends string> = K extends keyof M\n ? M[K] extends Event\n ? M[K]\n : Event\n : Event;\n\ntype OnTarget = string | BaseConstructor | typeof window | typeof document;\n\n/**\n * Global targets use identity checks. Component classes use their merged config name because it is their mount identity.\n * Other `EventTarget` values are invalid because decorators have no component instance or mount cycle.\n */\nfunction resolveHandlerTarget(\n target: OnTarget,\n maybeType?: string,\n): Omit<HandlerRegistration, 'handler' | 'method'> {\n if (typeof target === 'string') {\n return maybeType === undefined\n ? { target: null, child: null, type: target }\n : { target: null, child: target, type: maybeType };\n }\n\n if (maybeType === undefined) {\n throw new TypeError('[@on] a target value must be followed by an event type.');\n }\n\n if (isBaseConstructor(target)) {\n return { target: null, child: resolveConfig(target).name, type: maybeType };\n } else if (target === window || target === document) {\n return { target, child: null, type: maybeType };\n }\n\n throw new TypeError(\n '[@on] the target must be a child name, a component class, `window` or `document`. ' +\n 'Bind any other EventTarget from `mounted()`, where the instance and its cleanup exist.',\n );\n}\n\n/** A value decorator for a field or an `accessor` field. */\ntype ValueDecoratorContext<This, Value> =\n | ClassFieldDecoratorContext<This, Value>\n | ClassAccessorDecoratorContext<This, Value>;\n\ninterface ValueDecorator<Value> {\n <This extends Base>(\n target: undefined,\n context: ClassFieldDecoratorContext<This, Value>,\n ): (this: This, initial: Value) => Value;\n <This extends Base>(\n target: ClassAccessorDecoratorTarget<This, Value>,\n context: ClassAccessorDecoratorContext<This, Value>,\n ): ClassAccessorDecoratorResult<This, Value>;\n}\n\ninterface ValueObserver<Value> {\n <This extends Base>(target: undefined, context: ClassFieldDecoratorContext<This, Value>): void;\n <This extends Base>(\n target: ClassAccessorDecoratorTarget<This, Value>,\n context: ClassAccessorDecoratorContext<This, Value>,\n ): void;\n}\n\nfunction withInitializer<This extends Base, Value>(\n context: ValueDecoratorContext<This, Value>,\n initialize: (this: This, initial: Value) => Value,\n) {\n return context.kind === 'accessor' ? { init: initialize } : initialize;\n}\n\n/**\n * Decorate a method as an event handler.\n * One string binds an event on the component root. A string and event type bind a child or ref.\n * A component class binds that child type. `window` and `document` bind global events.\n * @link https://js-toolkit-v4.studiometa.dev/api/decorators/on.html\n */\nexport function on<K extends keyof HTMLElementEventMap>(\n type: K,\n): <This extends Base>(\n value: (this: This, event: HTMLElementEventMap[K]) => void,\n context: ClassMethodDecoratorContext<This, (this: This, event: HTMLElementEventMap[K]) => void>,\n) => void;\n/**\n * A name outside the platform's map is a component event, whose detail only its\n * emitter knows, so the handler declares the event type it expects.\n */\nexport function on<E extends Event = Event>(\n type: string,\n): <This extends Base>(\n value: (this: This, event: E) => void,\n context: ClassMethodDecoratorContext<This, (this: This, event: E) => void>,\n) => void;\nexport function on<K extends string>(\n target: typeof window,\n type: K,\n): <This extends Base>(\n value: GlobalHandler<PlatformEvent<WindowEventMap, K>>,\n context: ClassMethodDecoratorContext<This, GlobalHandler<PlatformEvent<WindowEventMap, K>>>,\n) => void;\nexport function on<K extends string>(\n target: typeof document,\n type: K,\n): <This extends Base>(\n value: GlobalHandler<PlatformEvent<DocumentEventMap, K>>,\n context: ClassMethodDecoratorContext<This, GlobalHandler<PlatformEvent<DocumentEventMap, K>>>,\n) => void;\nexport function on<T extends BaseConstructor, K extends string>(\n child: T,\n type: K,\n): <This extends Base>(\n value: ChildHandler<InstanceType<T>, K>,\n context: ClassMethodDecoratorContext<This, ChildHandler<InstanceType<T>, K>>,\n) => void;\n/** A string target can be a child or ref. Ref names must include the `[]` suffix declared in `config.refs`. */\nexport function on(\n child: string,\n type: string,\n): <T extends Base, E extends HTMLElement, This extends Base>(\n value: ChildHandler<T> | RefHandler<E>,\n context: ClassMethodDecoratorContext<This, ChildHandler<T> | RefHandler<E>>,\n) => void;\nexport function on(target: OnTarget, maybeType?: string) {\n const registration = resolveHandlerTarget(target, maybeType);\n return function decorate(\n value: HandlerRegistration['handler'],\n context: ClassMethodDecoratorContext<any, any>,\n ): void {\n context.addInitializer(function initialize(this: Base) {\n // `context.name` rather than `value.name`: `@read`/`@write` hand their\n // wrapper down, and it is named after the wrapper. The context names the\n // method being decorated whatever else is stacked on it, which is what\n // makes the magic name scan skip this handler in either order.\n (this[HANDLER_REGISTRATIONS] ??= []).push({\n ...registration,\n method: context.name,\n handler: value,\n });\n });\n };\n}\n\ntype VoidMethod<This, Args extends unknown[]> = (this: This, ...args: Args) => void;\n\nfunction inPhase(phase: '$read' | '$write') {\n return function decorate<This extends Base, Args extends unknown[]>(\n value: VoidMethod<This, Args>,\n _context: ClassMethodDecoratorContext<This, VoidMethod<This, Args>>,\n ): VoidMethod<This, Args> {\n return function scheduled(this: This, ...args: Args) {\n this[phase](() => value.apply(this, args));\n };\n };\n}\n\n/**\n * Schedule the method body in the next read phase. Destruction cancels pending work.\n * @link https://js-toolkit-v4.studiometa.dev/api/decorators/read-write.html\n */\nexport const read = inPhase('$read');\n\n/**\n * Schedule the method body in the next write phase. Destruction cancels pending work.\n * @link https://js-toolkit-v4.studiometa.dev/api/decorators/read-write.html\n */\nexport const write = inPhase('$write');\n\n/** Config keys that merge rather than override; the rest are compared as scalars. */\nconst COLLECTION_KEYS = new Set(['refs', 'options', 'components']);\n\n/**\n * Merge the two config declarations one class can carry, by the rules\n * `resolveConfig()` applies to a chain: collections merge, declared values\n * override. A key neither side declares stays absent, so the written config\n * keeps the shorthand shape the author wrote.\n */\nfunction mergeOwnConfigs(base: BaseConfig, extra: BaseConfig): BaseConfig {\n const merged: BaseConfig = { ...base, ...extra };\n if (base.refs && extra.refs) {\n merged.refs = [...new Set([...base.refs, ...extra.refs])];\n }\n if (base.options && extra.options) {\n merged.options = { ...base.options, ...extra.options };\n }\n if (base.components && extra.components) {\n merged.components = { ...base.components, ...extra.components };\n }\n return merged;\n}\n\n/**\n * Keys the two declarations give different values, `options` and `components`\n * entry by entry. `refs` are a union, so declaring one twice keeps it and is\n * not reported. Only these keys make the precedence rule observable, so they\n * are the only ones worth a warning.\n */\nfunction conflictingKeys(base: BaseConfig, extra: BaseConfig): string[] {\n return [\n ...conflictingScalars(base, extra),\n ...conflictingEntries('options', base, extra),\n ...conflictingEntries('components', base, extra),\n ];\n}\n\n/** Top-level keys both declare with different values; the collections are compared per entry. */\nfunction conflictingScalars(base: BaseConfig, extra: BaseConfig): string[] {\n const conflicts: string[] = [];\n const scalars = base as unknown as Record<string, unknown>;\n for (const [key, value] of Object.entries(extra)) {\n if (!COLLECTION_KEYS.has(key) && scalars[key] !== undefined && scalars[key] !== value) {\n conflicts.push(key);\n }\n }\n return conflicts;\n}\n\n/** Entries of one collection both declare with different values. */\nfunction conflictingEntries(\n key: 'options' | 'components',\n base: BaseConfig,\n extra: BaseConfig,\n): string[] {\n const own = base[key];\n const incoming = extra[key];\n if (!own || !incoming) {\n return [];\n }\n const conflicts: string[] = [];\n for (const [entry, value] of Object.entries(incoming)) {\n if (own[entry] !== undefined && own[entry] !== value) {\n conflicts.push(`${key}.${entry}`);\n }\n }\n return conflicts;\n}\n\n/**\n * Set the component config and register the class when it is defined.\n * @link https://js-toolkit-v4.studiometa.dev/api/decorators/component.html\n */\nexport function component(config: BaseConfig) {\n return function decorate<T extends BaseConstructor>(\n value: T,\n context: ClassDecoratorContext<T>,\n ): void {\n const inherited = value.config;\n // Copying the inherited config adds nothing to the merged one —\n // `resolveConfig()` walks the prototype chain — but `isBaseConstructor()`\n // reads `config.name` straight off the class, and cannot call\n // `resolveConfig()` because `Base` imports the brand. A config written\n // without a name, as an untyped subclass adding config to its parent's\n // does, would leave the class registered under the name it inherited yet\n // rejected by every brand check: `config.components` entries,\n // `@on(Class, type)` and lazy import resolution.\n const written = { ...inherited, ...config };\n value.config = written;\n\n context.addInitializer(function initialize(this: T) {\n // Static field initializers run after class decorators, so a `static\n // config` on the same class has replaced the object written above and\n // the decorator's declaration would be gone. Class initializers run\n // after those fields, which is the first moment both declarations exist:\n // merge them, decorator last — the direction it already has over the\n // inherited config. Initializers still run while the class definition\n // evaluates, so `this.config` is final before any statement following\n // the class, `registerComponent()` at module scope included.\n if (this.config !== written) {\n const field = this.config;\n const merged = mergeOwnConfigs({ ...inherited, ...field }, config);\n this.config = merged;\n const conflicts = conflictingKeys(field, config);\n if (conflicts.length > 0) {\n warnOnce(\n this,\n 'config',\n 'component.config-conflict',\n `\"${merged.name}\" declares ${conflicts.join(', ')} in both @component() and its static config; the @component() value was kept. Declare each key once.`,\n { component: merged.name },\n );\n }\n }\n registerComponent(this);\n });\n };\n}\n\n/**\n * Provide the decorated field to descendants. The nearest provider wins.\n * @link https://js-toolkit-v4.studiometa.dev/api/decorators/provide.html\n */\nexport function provide<T>(key: ContextKey<T>): ValueDecorator<T> {\n return function decorate<This extends Base>(\n _target: unknown,\n context: ValueDecoratorContext<This, T>,\n ) {\n return withInitializer(context, function initialize(this: This, initial: T) {\n return this.$provide(key, initial);\n });\n } as ValueDecorator<T>;\n}\n\n/**\n * Resolve the nearest provided value into the decorated field. The field stays `undefined` until resolution.\n * Resolution starts once at construction and does not restart after destruction.\n * @link https://js-toolkit-v4.studiometa.dev/api/decorators/inject.html\n */\nexport function inject<T>(key: ContextKey<T>): ValueObserver<T | undefined> {\n return function decorate<This extends Base>(\n _target: unknown,\n context: ValueDecoratorContext<This, T | undefined>,\n ): void {\n context.addInitializer(function initialize(this: This) {\n void this.$inject(key).then((value) => {\n context.access.set(this, value);\n });\n });\n };\n}\n\n/**\n * Track mounted descendants as a live collection. Strings match `config.name` exactly.\n * Component classes include named subclasses. Callbacks bind to the host component.\n * @link https://js-toolkit-v4.studiometa.dev/api/decorators/children.html\n */\nexport function children<T extends Base = Base, Host = any>(\n name: string,\n callbacks?: WatchChildrenCallbacks<T> & ThisType<Host>,\n): ValueDecorator<ChildrenCollection<T>>;\nexport function children<T extends BaseConstructor, Host = any>(\n ComponentClass: T,\n callbacks?: WatchChildrenCallbacks<InstanceType<T>> & ThisType<Host>,\n): ValueDecorator<ChildrenCollection<InstanceType<T>>>;\nexport function children(\n target: string | BaseConstructor,\n callbacks?: WatchChildrenCallbacks & ThisType<any>,\n): ValueDecorator<ChildrenCollection> {\n return function decorate<This extends Base>(\n _target: unknown,\n context: ValueDecoratorContext<This, ChildrenCollection>,\n ) {\n return withInitializer(context, function initialize(this: This) {\n const bound = callbacks && {\n added: callbacks.added?.bind(this),\n removed: callbacks.removed?.bind(this),\n };\n return typeof target === 'string'\n ? this.$watchChildren(target, bound)\n : this.$watchChildren(target, bound);\n });\n } as ValueDecorator<ChildrenCollection>;\n}\n"],"mappings":";;;;;;;;;;AAyCA,SAAS,qBACP,QACA,WACiD;CACjD,IAAI,OAAO,WAAW,UACpB,OAAO,cAAc,KAAA,IACjB;EAAE,QAAQ;EAAM,OAAO;EAAM,MAAM;CAAO,IAC1C;EAAE,QAAQ;EAAM,OAAO;EAAQ,MAAM;CAAU;CAGrD,IAAI,cAAc,KAAA,GAChB,MAAM,IAAI,UAAU,yDAAyD;CAG/E,IAAI,kBAAkB,MAAM,GAC1B,OAAO;EAAE,QAAQ;EAAM,OAAO,cAAc,MAAM,CAAC,CAAC;EAAM,MAAM;CAAU;MACrE,IAAI,WAAW,UAAU,WAAW,UACzC,OAAO;EAAE;EAAQ,OAAO;EAAM,MAAM;CAAU;CAGhD,MAAM,IAAI,UACR,0KAEF;AACF;AA0BA,SAAS,gBACP,SACA,YACA;CACA,OAAO,QAAQ,SAAS,aAAa,EAAE,MAAM,WAAW,IAAI;AAC9D;AAqDA,SAAgB,GAAG,QAAkB,WAAoB;CACvD,MAAM,eAAe,qBAAqB,QAAQ,SAAS;CAC3D,OAAO,SAAS,SACd,OACA,SACM;EACN,QAAQ,eAAe,SAAS,aAAuB;GAKrD,CAAC,KAAK,2BAA2B,CAAC,EAAA,CAAG,KAAK;IACxC,GAAG;IACH,QAAQ,QAAQ;IAChB,SAAS;GACX,CAAC;EACH,CAAC;CACH;AACF;AAIA,SAAS,QAAQ,OAA2B;CAC1C,OAAO,SAAS,SACd,OACA,UACwB;EACxB,OAAO,SAAS,UAAsB,GAAG,MAAY;GACnD,KAAK,MAAM,OAAO,MAAM,MAAM,MAAM,IAAI,CAAC;EAC3C;CACF;AACF;;;;;AAMA,MAAa,OAAO,QAAQ,OAAO;;;;;AAMnC,MAAa,QAAQ,QAAQ,QAAQ;;AAGrC,MAAM,kCAAkB,IAAI,IAAI;CAAC;CAAQ;CAAW;AAAY,CAAC;;;;;;;AAQjE,SAAS,gBAAgB,MAAkB,OAA+B;CACxE,MAAM,SAAqB;EAAE,GAAG;EAAM,GAAG;CAAM;CAC/C,IAAI,KAAK,QAAQ,MAAM,MACrB,OAAO,OAAO,CAAC,mBAAG,IAAI,IAAI,CAAC,GAAG,KAAK,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;CAE1D,IAAI,KAAK,WAAW,MAAM,SACxB,OAAO,UAAU;EAAE,GAAG,KAAK;EAAS,GAAG,MAAM;CAAQ;CAEvD,IAAI,KAAK,cAAc,MAAM,YAC3B,OAAO,aAAa;EAAE,GAAG,KAAK;EAAY,GAAG,MAAM;CAAW;CAEhE,OAAO;AACT;;;;;;;AAQA,SAAS,gBAAgB,MAAkB,OAA6B;CACtE,OAAO;EACL,GAAG,mBAAmB,MAAM,KAAK;EACjC,GAAG,mBAAmB,WAAW,MAAM,KAAK;EAC5C,GAAG,mBAAmB,cAAc,MAAM,KAAK;CACjD;AACF;;AAGA,SAAS,mBAAmB,MAAkB,OAA6B;CACzE,MAAM,YAAsB,CAAC;CAC7B,MAAM,UAAU;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAC7C,IAAI,CAAC,gBAAgB,IAAI,GAAG,KAAK,QAAQ,SAAS,KAAA,KAAa,QAAQ,SAAS,OAC9E,UAAU,KAAK,GAAG;CAGtB,OAAO;AACT;;AAGA,SAAS,mBACP,KACA,MACA,OACU;CACV,MAAM,MAAM,KAAK;CACjB,MAAM,WAAW,MAAM;CACvB,IAAI,CAAC,OAAO,CAAC,UACX,OAAO,CAAC;CAEV,MAAM,YAAsB,CAAC;CAC7B,KAAK,MAAM,CAAC,OAAO,UAAU,OAAO,QAAQ,QAAQ,GAClD,IAAI,IAAI,WAAW,KAAA,KAAa,IAAI,WAAW,OAC7C,UAAU,KAAK,GAAG,IAAI,GAAG,OAAO;CAGpC,OAAO;AACT;;;;;AAMA,SAAgB,UAAU,QAAoB;CAC5C,OAAO,SAAS,SACd,OACA,SACM;EACN,MAAM,YAAY,MAAM;EASxB,MAAM,UAAU;GAAE,GAAG;GAAW,GAAG;EAAO;EAC1C,MAAM,SAAS;EAEf,QAAQ,eAAe,SAAS,aAAoB;GASlD,IAAI,KAAK,WAAW,SAAS;IAC3B,MAAM,QAAQ,KAAK;IACnB,MAAM,SAAS,gBAAgB;KAAE,GAAG;KAAW,GAAG;IAAM,GAAG,MAAM;IACjE,KAAK,SAAS;IACd,MAAM,YAAY,gBAAgB,OAAO,MAAM;IAC/C,IAAI,UAAU,SAAS,GACrB,SACE,MACA,UACA,6BACA,IAAI,OAAO,KAAK,aAAa,UAAU,KAAK,IAAI,EAAE,uGAClD,EAAE,WAAW,OAAO,KAAK,CAC3B;GAEJ;GACA,kBAAkB,IAAI;EACxB,CAAC;CACH;AACF;;;;;AAMA,SAAgB,QAAW,KAAuC;CAChE,OAAO,SAAS,SACd,SACA,SACA;EACA,OAAO,gBAAgB,SAAS,SAAS,WAAuB,SAAY;GAC1E,OAAO,KAAK,SAAS,KAAK,OAAO;EACnC,CAAC;CACH;AACF;;;;;;AAOA,SAAgB,OAAU,KAAkD;CAC1E,OAAO,SAAS,SACd,SACA,SACM;EACN,QAAQ,eAAe,SAAS,aAAuB;GACrD,KAAU,QAAQ,GAAG,CAAC,CAAC,MAAM,UAAU;IACrC,QAAQ,OAAO,IAAI,MAAM,KAAK;GAChC,CAAC;EACH,CAAC;CACH;AACF;AAeA,SAAgB,SACd,QACA,WACoC;CACpC,OAAO,SAAS,SACd,SACA,SACA;EACA,OAAO,gBAAgB,SAAS,SAAS,aAAuB;GAC9D,MAAM,QAAQ,aAAa;IACzB,OAAO,UAAU,OAAO,KAAK,IAAI;IACjC,SAAS,UAAU,SAAS,KAAK,IAAI;GACvC;GACA,OAAO,OAAO,WAAW,WACrB,KAAK,eAAe,QAAQ,KAAK,IACjC,KAAK,eAAe,QAAQ,KAAK;EACvC,CAAC;CACH;AACF"}
@@ -0,0 +1,104 @@
1
+ //#region src/diagnostic-contract.d.ts
2
+ /**
3
+ * Stable codes carried by toolkit diagnostics.
4
+ * @link https://js-toolkit-v4.studiometa.dev/api/diagnostics/DIAGNOSTICS.html
5
+ */
6
+ declare const DIAGNOSTICS: Readonly<{
7
+ readonly attribute: Readonly<{
8
+ readonly unknownQualifier: 'attribute.unknown-qualifier';
9
+ }>;
10
+ readonly callback: Readonly<{
11
+ readonly signalFailed: 'callback.signal-failed';
12
+ readonly contextSubscriptionFailed: 'callback.context-subscription-failed';
13
+ readonly contextTeardownFailed: 'callback.context-teardown-failed';
14
+ readonly attributeWatcherFailed: 'callback.attribute-watcher-failed';
15
+ readonly serviceFailed: 'callback.service-failed';
16
+ readonly schedulerTickFailed: 'callback.scheduler-tick-failed';
17
+ readonly scheduledTaskFailed: 'callback.scheduled-task-failed';
18
+ readonly domUpdateRunnerFailed: 'callback.dom-update-runner-failed';
19
+ readonly extendableEventExtensionFailed: 'callback.extendable-event-extension-failed';
20
+ }>;
21
+ readonly component: Readonly<{
22
+ readonly loadFailed: 'component.load-failed';
23
+ readonly mountFailed: 'component.mount-failed';
24
+ readonly lifecycleFailed: 'component.lifecycle-failed';
25
+ readonly invalidMountStrategy: 'component.invalid-mount-strategy';
26
+ readonly invalidFamilyDeclaration: 'component.invalid-family-declaration';
27
+ readonly configConflict: 'component.config-conflict';
28
+ }>;
29
+ readonly event: Readonly<{
30
+ readonly invalidEmitPayload: 'event.invalid-emit-payload';
31
+ }>;
32
+ readonly manifest: Readonly<{
33
+ readonly duplicateToken: 'manifest.duplicate-token';
34
+ }>;
35
+ readonly option: Readonly<{
36
+ readonly literalDefault: 'option.literal-default';
37
+ }>;
38
+ readonly protocol: Readonly<{
39
+ readonly lateRegistration: 'protocol.late-registration';
40
+ readonly unappliedDomUpdate: 'protocol.unapplied-dom-update';
41
+ }>;
42
+ readonly ref: Readonly<{
43
+ readonly mismatch: 'ref.mismatch';
44
+ }>;
45
+ readonly registry: Readonly<{
46
+ readonly conflict: 'registry.conflict';
47
+ readonly lazyNameMismatch: 'registry.lazy-name-mismatch';
48
+ }>;
49
+ readonly responsive: Readonly<{
50
+ readonly unknownBreakpoint: 'responsive.unknown-breakpoint';
51
+ }>;
52
+ readonly scheduler: Readonly<{
53
+ readonly backgroundPostFailed: 'scheduler.background-post-failed';
54
+ }>;
55
+ readonly service: Readonly<{
56
+ readonly missingTarget: 'service.missing-target';
57
+ }>;
58
+ readonly storage: Readonly<{
59
+ readonly accessFailed: 'storage.access-failed';
60
+ readonly deserializeFailed: 'storage.deserialize-failed';
61
+ readonly serializeFailed: 'storage.serialize-failed';
62
+ }>;
63
+ readonly swap: Readonly<{
64
+ readonly selfIgnored: 'swap.self-ignored';
65
+ }>;
66
+ }>;
67
+ type ToolkitDiagnosticSeverity = 'warning' | 'error';
68
+ type NestedValue<T> = T extends string ? T : { [K in keyof T]: NestedValue<T[K]>; }[keyof T];
69
+ /** One stable value from {@link DIAGNOSTICS}. */
70
+ type ToolkitCoreDiagnosticCode = NestedValue<typeof DIAGNOSTICS>;
71
+ /**
72
+ * A code minted outside core, in the same `namespace.detail` shape.
73
+ *
74
+ * The channel is only worth having if a consumer can be told apart on it: a
75
+ * listener filters by code, so a component reporting through a shared generic
76
+ * code would be unfilterable, and one reporting through a core code would be
77
+ * indistinguishable from core itself. The template literal is the loosest
78
+ * thing that still keeps the shape a filter can rely on — `startsWith('figure.')`
79
+ * works because the namespace is mandatory.
80
+ */
81
+ type ToolkitConsumerDiagnosticCode = `${string}.${string}`;
82
+ /**
83
+ * A diagnostic code: one of core's own, or a consumer's namespaced one.
84
+ *
85
+ * Core's set stays enumerated and documented as {@link DIAGNOSTICS}; the union
86
+ * with the wider shape is what lets a component outside core report on the same
87
+ * channel rather than reaching for `console.warn`.
88
+ */
89
+ type ToolkitDiagnosticCode = ToolkitCoreDiagnosticCode | ToolkitConsumerDiagnosticCode;
90
+ interface ToolkitDiagnosticBaseDetail {
91
+ readonly code: ToolkitDiagnosticCode;
92
+ readonly message: string;
93
+ readonly component?: string;
94
+ }
95
+ /** The payload of the public diagnostic event. */
96
+ type ToolkitDiagnosticDetail = (ToolkitDiagnosticBaseDetail & {
97
+ readonly severity: 'warning';
98
+ readonly error?: never;
99
+ }) | (ToolkitDiagnosticBaseDetail & {
100
+ readonly severity: 'error';
101
+ readonly error: unknown;
102
+ });
103
+ //#endregion
104
+ export { DIAGNOSTICS, ToolkitConsumerDiagnosticCode, ToolkitCoreDiagnosticCode, ToolkitDiagnosticCode, ToolkitDiagnosticDetail, ToolkitDiagnosticSeverity };