@unicom-cloud/ui-common 0.1.6 → 0.1.7

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 (396) hide show
  1. package/Development.js +1 -1
  2. package/Empty.js +1 -1
  3. package/Flex.js +1 -1
  4. package/Motion.js +9 -0
  5. package/Progress.js +1 -1
  6. package/ResizeObserver.js +10 -0
  7. package/Space.js +1 -1
  8. package/SuspenseFallbackTest.js +1 -1
  9. package/TransitionGroup.js +30 -29
  10. package/development/index.js +38 -27
  11. package/empty/index.js +36 -32
  12. package/flex/index.js +56 -50
  13. package/flex/interface.js +1 -1
  14. package/higher-order/index.js +1 -1
  15. package/higher-order/with-speech-synthesis/index.js +33 -37
  16. package/higher-order/withSpeechSynthesis.js +1 -1
  17. package/hooks/create-deep-compare-effect/index.js +1 -1
  18. package/hooks/create-update-effect/index.js +1 -1
  19. package/hooks/create-use-storage-state/index.js +1 -1
  20. package/hooks/createDeepCompareEffect.js +1 -1
  21. package/hooks/createUpdateEffect.js +1 -1
  22. package/hooks/createUseStorageState.js +1 -1
  23. package/hooks/index.js +177 -171
  24. package/hooks/use-async-effect/index.js +1 -1
  25. package/hooks/use-boolean/index.js +1 -1
  26. package/hooks/use-click-away/index.js +19 -20
  27. package/hooks/use-computed-state/index.js +1 -1
  28. package/hooks/use-controllable-value/index.js +5 -5
  29. package/hooks/use-cookie-state/index.js +1 -1
  30. package/hooks/use-count-down/index.js +3 -3
  31. package/hooks/use-counter/index.js +1 -1
  32. package/hooks/use-create/index.js +1 -1
  33. package/hooks/use-creation/index.js +1 -1
  34. package/hooks/use-debounce/index.js +1 -1
  35. package/hooks/use-debounce-effect/index.js +1 -1
  36. package/hooks/use-debounce-fn/index.js +1 -1
  37. package/hooks/use-deep-compare-effect/index.js +1 -1
  38. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  39. package/hooks/use-document-visibility/index.js +1 -1
  40. package/hooks/use-drag/index.js +10 -10
  41. package/hooks/use-drop/index.js +1 -1
  42. package/hooks/use-event/index.js +10 -0
  43. package/hooks/use-event-listener/index.js +15 -16
  44. package/hooks/use-event-target/index.js +3 -3
  45. package/hooks/use-external/index.js +1 -1
  46. package/hooks/use-favicon/index.js +1 -1
  47. package/hooks/use-focus-within/index.js +1 -1
  48. package/hooks/use-force-update/index.js +1 -1
  49. package/hooks/use-fullscreen/index.js +13 -13
  50. package/hooks/use-get-state/index.js +6 -6
  51. package/hooks/use-history-travel/index.js +18 -18
  52. package/hooks/use-hover/index.js +1 -1
  53. package/hooks/use-id/index.js +1 -1
  54. package/hooks/use-in-view/index.js +1 -1
  55. package/hooks/use-in-viewport/index.js +17 -18
  56. package/hooks/use-infinite-scroll/index.js +1 -1
  57. package/hooks/use-intersection-observer/index.js +7 -6
  58. package/hooks/use-intersection-observers/index.js +34 -26
  59. package/hooks/use-interval/index.js +7 -7
  60. package/hooks/use-is-first-render/index.js +1 -1
  61. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  62. package/hooks/use-key-press/index.js +21 -21
  63. package/hooks/use-keyboard-event/index.js +1 -1
  64. package/hooks/use-latest/index.js +1 -1
  65. package/hooks/use-listen-window-resize/index.js +4 -4
  66. package/hooks/use-local-storage-state/index.js +1 -1
  67. package/hooks/use-lock-fn/index.js +1 -1
  68. package/hooks/use-long-press/index.js +24 -24
  69. package/hooks/use-map/index.js +1 -1
  70. package/hooks/use-media/index.js +1 -1
  71. package/hooks/use-memo/index.js +9 -0
  72. package/hooks/use-memoized-fn/index.js +1 -1
  73. package/hooks/use-merge-props/index.js +1 -1
  74. package/hooks/use-merge-value/index.js +1 -1
  75. package/hooks/use-mount/index.js +1 -1
  76. package/hooks/use-mouse/index.js +1 -1
  77. package/hooks/use-mutation-observer/index.js +9 -9
  78. package/hooks/use-mutation-observers/index.js +33 -25
  79. package/hooks/use-network/index.js +1 -1
  80. package/hooks/use-online-status/index.js +1 -1
  81. package/hooks/use-overflow-hidden/index.js +1 -1
  82. package/hooks/use-override-ref/index.js +3 -3
  83. package/hooks/use-pagination/index.js +1 -1
  84. package/hooks/use-persist-callback/index.js +1 -1
  85. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  86. package/hooks/use-previous/index.js +1 -1
  87. package/hooks/use-raf-interval/index.js +15 -15
  88. package/hooks/use-raf-state/index.js +1 -1
  89. package/hooks/use-raf-timeout/index.js +3 -3
  90. package/hooks/use-reactive/index.js +7 -7
  91. package/hooks/use-ref-latest/index.js +1 -1
  92. package/hooks/use-refs/index.js +4 -4
  93. package/hooks/use-request/index.js +1 -1
  94. package/hooks/use-request/src/Fetch.js +1 -1
  95. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  96. package/hooks/use-request/src/plugins/useCachePlugin.js +3 -3
  97. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  98. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +8 -8
  99. package/hooks/use-request/src/plugins/usePollingPlugin.js +13 -13
  100. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +3 -3
  101. package/hooks/use-request/src/plugins/useRetryPlugin.js +5 -5
  102. package/hooks/use-request/src/plugins/useThrottlePlugin.js +3 -3
  103. package/hooks/use-request/src/useRequest.js +1 -1
  104. package/hooks/use-request/src/useRequestImplement.js +7 -7
  105. package/hooks/use-request/src/utils/cache.js +1 -1
  106. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  107. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  108. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  109. package/hooks/use-request/src/utils/isOnline.js +1 -1
  110. package/hooks/use-request/src/utils/limit.js +1 -1
  111. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  112. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  113. package/hooks/use-reset-state/index.js +7 -7
  114. package/hooks/use-resize-observer/index.js +1 -1
  115. package/hooks/use-resize-observers/index.js +34 -26
  116. package/hooks/use-responsive/index.js +1 -1
  117. package/hooks/use-safe-state/index.js +4 -4
  118. package/hooks/use-scroll/index.js +1 -1
  119. package/hooks/use-selections/index.js +1 -1
  120. package/hooks/use-session-storage-state/index.js +1 -1
  121. package/hooks/use-set/index.js +1 -1
  122. package/hooks/use-set-state/index.js +1 -1
  123. package/hooks/use-size/index.js +20 -23
  124. package/hooks/use-state-callback/index.js +6 -6
  125. package/hooks/use-state-with-promise/index.js +1 -1
  126. package/hooks/use-sync-state/index.js +15 -0
  127. package/hooks/use-text-selection/index.js +13 -13
  128. package/hooks/use-theme/index.js +1 -1
  129. package/hooks/use-throttle/index.js +1 -1
  130. package/hooks/use-throttle-effect/index.js +1 -1
  131. package/hooks/use-throttle-fn/index.js +6 -6
  132. package/hooks/use-timeout/index.js +3 -3
  133. package/hooks/use-title/index.js +1 -1
  134. package/hooks/use-toggle/index.js +1 -1
  135. package/hooks/use-tracked-effect/index.js +1 -1
  136. package/hooks/use-unmount/index.js +1 -1
  137. package/hooks/use-unmounted-ref/index.js +4 -4
  138. package/hooks/use-update/index.js +1 -1
  139. package/hooks/use-update-effect/index.js +1 -1
  140. package/hooks/use-update-layout-effect/index.js +1 -1
  141. package/hooks/use-url-state/index.js +3 -3
  142. package/hooks/use-virtual-list/index.js +10 -10
  143. package/hooks/use-watch/index.js +1 -1
  144. package/hooks/use-web-socket/index.js +30 -30
  145. package/hooks/use-why-did-you-update/index.js +1 -1
  146. package/hooks/use-window-size/index.js +28 -25
  147. package/hooks/useAsyncEffect.js +1 -1
  148. package/hooks/useBoolean.js +1 -1
  149. package/hooks/useClickAway.js +4 -5
  150. package/hooks/useComputedState.js +1 -1
  151. package/hooks/useControllableValue.js +1 -1
  152. package/hooks/useCookieState.js +1 -1
  153. package/hooks/useCountDown.js +1 -1
  154. package/hooks/useCounter.js +1 -1
  155. package/hooks/useCreate.js +1 -1
  156. package/hooks/useCreation.js +1 -1
  157. package/hooks/useDebounce.js +1 -1
  158. package/hooks/useDebounceEffect.js +1 -1
  159. package/hooks/useDebounceFn.js +1 -1
  160. package/hooks/useDeepCompareEffect.js +1 -1
  161. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  162. package/hooks/useDocumentVisibility.js +1 -1
  163. package/hooks/useDrag.js +1 -1
  164. package/hooks/useDrop.js +1 -1
  165. package/hooks/useEvent.js +7 -0
  166. package/hooks/useEventListener.js +4 -5
  167. package/hooks/useEventTarget.js +1 -1
  168. package/hooks/useExternal.js +1 -1
  169. package/hooks/useFavicon.js +1 -1
  170. package/hooks/useFocusWithin.js +1 -1
  171. package/hooks/useForceUpdate.js +1 -1
  172. package/hooks/useFullscreen.js +1 -1
  173. package/hooks/useGetState.js +1 -1
  174. package/hooks/useHistoryTravel.js +1 -1
  175. package/hooks/useHover.js +1 -1
  176. package/hooks/useId.js +1 -1
  177. package/hooks/useInView.js +1 -1
  178. package/hooks/useInViewport.js +4 -5
  179. package/hooks/useInfiniteScroll.js +1 -1
  180. package/hooks/useIntersectionObserver.js +5 -4
  181. package/hooks/useIntersectionObservers.js +11 -7
  182. package/hooks/useInterval.js +1 -1
  183. package/hooks/useIsFirstRender.js +1 -1
  184. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  185. package/hooks/useKeyPress.js +1 -1
  186. package/hooks/useKeyboardEvent.js +1 -1
  187. package/hooks/useLatest.js +1 -1
  188. package/hooks/useListenWindowResize.js +1 -1
  189. package/hooks/useLocalStorageState.js +1 -1
  190. package/hooks/useLockFn.js +1 -1
  191. package/hooks/useLongPress.js +1 -1
  192. package/hooks/useMap.js +1 -1
  193. package/hooks/useMedia.js +1 -1
  194. package/hooks/useMemo.js +6 -0
  195. package/hooks/useMemoizedFn.js +1 -1
  196. package/hooks/useMergeProps.js +1 -1
  197. package/hooks/useMergeValue.js +1 -1
  198. package/hooks/useMount.js +1 -1
  199. package/hooks/useMouse.js +1 -1
  200. package/hooks/useMutationObserver.js +1 -1
  201. package/hooks/useMutationObservers.js +11 -7
  202. package/hooks/useNetwork.js +1 -1
  203. package/hooks/useOnlineStatus.js +1 -1
  204. package/hooks/useOverflowHidden.js +1 -1
  205. package/hooks/useOverrideRef.js +3 -3
  206. package/hooks/usePagination.js +1 -1
  207. package/hooks/usePersistCallback.js +1 -1
  208. package/hooks/usePrefersColorSchemeDark.js +1 -1
  209. package/hooks/usePrevious.js +1 -1
  210. package/hooks/useRafInterval.js +1 -1
  211. package/hooks/useRafState.js +1 -1
  212. package/hooks/useRafTimeout.js +1 -1
  213. package/hooks/useReactive.js +1 -1
  214. package/hooks/useRefLatest.js +1 -1
  215. package/hooks/useRefs.js +1 -1
  216. package/hooks/useRequest.js +1 -1
  217. package/hooks/useResetState.js +1 -1
  218. package/hooks/useResizeObserver.js +1 -1
  219. package/hooks/useResizeObservers.js +11 -7
  220. package/hooks/useResponsive.js +1 -1
  221. package/hooks/useSafeState.js +1 -1
  222. package/hooks/useScroll.js +1 -1
  223. package/hooks/useSelections.js +1 -1
  224. package/hooks/useSessionStorageState.js +1 -1
  225. package/hooks/useSet.js +1 -1
  226. package/hooks/useSetState.js +1 -1
  227. package/hooks/useSize.js +4 -3
  228. package/hooks/useStateCallback.js +1 -1
  229. package/hooks/useStateWithPromise.js +1 -1
  230. package/hooks/useSyncState.js +10 -0
  231. package/hooks/useTextSelection.js +1 -1
  232. package/hooks/useTheme.js +1 -1
  233. package/hooks/useThrottle.js +1 -1
  234. package/hooks/useThrottleEffect.js +1 -1
  235. package/hooks/useThrottleFn.js +1 -1
  236. package/hooks/useTimeout.js +1 -1
  237. package/hooks/useTitle.js +1 -1
  238. package/hooks/useToggle.js +1 -1
  239. package/hooks/useTrackedEffect.js +1 -1
  240. package/hooks/useUnmount.js +1 -1
  241. package/hooks/useUnmountedRef.js +1 -1
  242. package/hooks/useUpdate.js +1 -1
  243. package/hooks/useUpdateEffect.js +1 -1
  244. package/hooks/useUpdateLayoutEffect.js +1 -1
  245. package/hooks/useUrlState.js +1 -1
  246. package/hooks/useVirtualList.js +1 -1
  247. package/hooks/useWatch.js +1 -1
  248. package/hooks/useWebSocket.js +1 -1
  249. package/hooks/useWhyDidYouUpdate.js +1 -1
  250. package/hooks/useWindowSize.js +4 -3
  251. package/hooks/utils/createEffectWithTarget.js +11 -12
  252. package/hooks/utils/depsAreSame.js +1 -1
  253. package/hooks/utils/depsEqual.js +1 -1
  254. package/hooks/utils/domTarget.js +1 -1
  255. package/hooks/utils/getDocumentOrShadow.js +5 -6
  256. package/hooks/utils/index.js +1 -1
  257. package/hooks/utils/isAppleDevice.js +1 -1
  258. package/hooks/utils/isBrowser.js +1 -1
  259. package/hooks/utils/isDev.js +1 -1
  260. package/hooks/utils/rect.js +1 -1
  261. package/hooks/utils/useDeepCompareWithTarget.js +4 -4
  262. package/hooks/utils/useEffectWithTarget.js +1 -1
  263. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  264. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  265. package/hooks/utils.js +1 -1
  266. package/icons/file/index.js +31 -24
  267. package/icons/file.js +1 -1
  268. package/index.js +47 -46
  269. package/motion/CSSMotion.js +102 -0
  270. package/motion/CSSMotionList.js +100 -0
  271. package/motion/context.js +14 -0
  272. package/motion/hooks/useDomMotionEvents.js +21 -0
  273. package/motion/hooks/useNextFrame.js +24 -0
  274. package/motion/hooks/useStatus.js +121 -0
  275. package/motion/hooks/useStepQueue.js +44 -0
  276. package/motion/index.js +9 -0
  277. package/motion/interface.js +14 -0
  278. package/motion/util/diff.js +56 -0
  279. package/motion/util/motion.js +56 -0
  280. package/package.json +1 -1
  281. package/progress/index.js +1 -1
  282. package/resize-observer/Collection.js +25 -0
  283. package/resize-observer/SingleObserver.js +48 -0
  284. package/resize-observer/index.js +27 -0
  285. package/resize-observer/observerUtil.js +22 -0
  286. package/space/index.js +65 -52
  287. package/suspense-fallback-test/index.js +1 -1
  288. package/transition-group/CSSTransition.js +59 -54
  289. package/transition-group/ChildMapping.js +68 -0
  290. package/transition-group/PqbCSSTransition.js +22 -18
  291. package/transition-group/ReplaceTransition.js +7 -7
  292. package/transition-group/SwitchTransition.js +1 -1
  293. package/transition-group/Transition.js +56 -52
  294. package/transition-group/TransitionGroup.js +2 -3
  295. package/transition-group/TransitionGroupContext.js +1 -1
  296. package/transition-group/index.js +30 -29
  297. package/types/hooks/index.d.ts +3 -0
  298. package/types/hooks/use-event/index.d.ts +2 -0
  299. package/types/hooks/use-intersection-observers/index.d.ts +3 -1
  300. package/types/hooks/use-listen-window-resize/index.d.ts +4 -4
  301. package/types/hooks/use-memo/index.d.ts +2 -0
  302. package/types/hooks/use-mutation-observers/index.d.ts +3 -1
  303. package/types/hooks/use-resize-observers/index.d.ts +3 -1
  304. package/types/hooks/use-size/index.d.ts +1 -1
  305. package/types/hooks/use-sync-state/index.d.ts +10 -0
  306. package/types/hooks/use-window-size/index.d.ts +2 -3
  307. package/types/motion/CSSMotion.d.ts +77 -0
  308. package/types/motion/CSSMotionList.d.ts +34 -0
  309. package/types/motion/context.d.ts +9 -0
  310. package/types/motion/hooks/useDomMotionEvents.d.ts +3 -0
  311. package/types/motion/hooks/useNextFrame.d.ts +7 -0
  312. package/types/motion/hooks/useStatus.d.ts +5 -0
  313. package/types/motion/hooks/useStepQueue.d.ts +8 -0
  314. package/types/motion/index.d.ts +9 -0
  315. package/types/motion/interface.d.ts +22 -0
  316. package/types/motion/util/diff.d.ts +20 -0
  317. package/types/motion/util/motion.d.ts +10 -0
  318. package/types/resize-observer/Collection.d.ts +9 -0
  319. package/types/resize-observer/SingleObserver.d.ts +7 -0
  320. package/types/resize-observer/index.d.ts +7 -0
  321. package/types/resize-observer/interface.d.ts +25 -0
  322. package/types/resize-observer/observerUtil.d.ts +3 -0
  323. package/types/space/interface.d.ts +1 -1
  324. package/types/transition-group/CSSTransition.d.ts +0 -1
  325. package/types/transition-group/{utils/ChildMapping.d.ts → ChildMapping.d.ts} +4 -4
  326. package/types/transition-group/SwitchTransition.d.ts +3 -3
  327. package/types/transition-group/Transition.d.ts +1 -1
  328. package/types/transition-group/TransitionGroup.d.ts +1 -1
  329. package/types/transition-group/index.d.ts +1 -1
  330. package/types/utils/callbackOriginRef.d.ts +4 -0
  331. package/types/utils/dom.d.ts +2 -1
  332. package/types/utils/findRootElement.d.ts +23 -0
  333. package/types/utils/index.d.ts +4 -2
  334. package/types/utils/is.d.ts +5 -4
  335. package/types/utils/lodash.d.ts +2 -1
  336. package/types/utils/ref.d.ts +27 -0
  337. package/types/utils/setCreateRoot.d.ts +13 -0
  338. package/types/utils/toArray.d.ts +3 -3
  339. package/utils/callbackOriginRef.js +11 -0
  340. package/utils/caseName.js +1 -1
  341. package/utils/className.js +1 -1
  342. package/utils/compute.js +1 -1
  343. package/utils/constant.js +1 -1
  344. package/utils/copy.js +1 -1
  345. package/utils/date.js +1 -1
  346. package/utils/dayjs.js +1 -1
  347. package/utils/dom.js +12 -10
  348. package/utils/emitter.js +1 -1
  349. package/utils/fileToURL.js +1 -1
  350. package/utils/fillNBSP.js +1 -1
  351. package/utils/findRootElement.js +28 -0
  352. package/utils/findScrollParent.js +1 -1
  353. package/utils/getHighlightText.js +1 -1
  354. package/utils/getHotkeyHandler.js +1 -1
  355. package/utils/getStringLength.js +1 -1
  356. package/utils/include.js +1 -1
  357. package/utils/index.js +341 -329
  358. package/utils/intersectionObserver.js +1 -1
  359. package/utils/is.js +72 -81
  360. package/utils/keyboardCode.js +1 -1
  361. package/utils/lodash.js +45 -43
  362. package/utils/math.js +1 -1
  363. package/utils/mergeProps.js +1 -1
  364. package/utils/mergedToString.js +1 -1
  365. package/utils/mutationObserver.js +1 -1
  366. package/utils/omit.js +1 -1
  367. package/utils/pad.js +1 -1
  368. package/utils/pick.js +1 -1
  369. package/utils/pinyin.js +1 -1
  370. package/utils/react19Adapter.js +2 -2
  371. package/utils/ref.js +41 -0
  372. package/utils/resizeObserver.js +1 -1
  373. package/utils/saveAs.js +1 -1
  374. package/utils/screenfull.js +1 -1
  375. package/utils/scrollIntoViewIfNeeded.js +1 -1
  376. package/utils/setCreateRoot.js +53 -0
  377. package/utils/setDarkTheme.js +1 -1
  378. package/utils/setDir.js +1 -1
  379. package/utils/setPrimaryColor.js +1 -1
  380. package/utils/setTheme.js +1 -1
  381. package/utils/string.js +1 -1
  382. package/utils/style.js +1 -1
  383. package/utils/throttleByRaf.js +1 -1
  384. package/utils/throttleByRaf2.js +1 -1
  385. package/utils/tinycolor.js +1 -1
  386. package/utils/toArray.js +9 -9
  387. package/utils/tree.js +1 -1
  388. package/utils/tween.js +1 -1
  389. package/utils/uuid.js +1 -1
  390. package/utils/validate.js +1 -1
  391. package/utils/warning.js +1 -1
  392. package/transition-group/utils/ChildMapping.js +0 -66
  393. package/types/utils/reactDOM.d.ts +0 -34
  394. package/types/utils/supportRef.d.ts +0 -3
  395. package/utils/reactDOM.js +0 -87
  396. package/utils/supportRef.js +0 -10
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import o from "../create-use-storage-state/index.js";
3
3
  import { isBrowser as t } from "@unicom-cloud/utils/constant/platform";
4
4
  const a = o(
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as n, useCallback as u } from "react";
3
3
  function o(e) {
4
4
  const r = n(!1);
@@ -1,20 +1,20 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as s } from "react";
3
3
  import v from "../use-latest/index.js";
4
4
  import { getTargetElement as D } from "../utils/domTarget.js";
5
- import S from "../utils/useEffectWithTarget.js";
6
- function z(y, L, { delay: M = 300, moveThreshold: n, onClick: P, onLongPressEnd: R } = {}) {
7
- const w = v(y), i = v(P), m = v(R), t = s(void 0), c = s(!1), u = s({ x: 0, y: 0 }), o = s(!1), f = s(!1), a = !!(n?.x && n.x > 0 || n?.y && n.y > 0);
8
- S(
5
+ import I from "../utils/useEffectWithTarget.js";
6
+ function j(y, L, { delay: M = 300, moveThreshold: n, onClick: P, onLongPressEnd: w } = {}) {
7
+ const b = v(y), i = v(P), m = v(w), r = s(void 0), c = s(!1), u = s({ x: 0, y: 0 }), o = s(!1), f = s(!1), a = !!(n?.x && n.x > 0 || n?.y && n.y > 0);
8
+ I(
9
9
  () => {
10
- const r = D(L);
11
- if (!r?.addEventListener)
10
+ const t = D(L);
11
+ if (!t?.addEventListener)
12
12
  return;
13
- const b = (e) => {
14
- const { clientX: d, clientY: E } = p(e), C = Math.abs(d - u.current.x), k = Math.abs(E - u.current.y);
15
- return !!(n?.x && C > n.x || n?.y && k > n.y);
13
+ const C = (e) => {
14
+ const { clientX: d, clientY: E } = T(e), O = Math.abs(d - u.current.x), k = Math.abs(E - u.current.y);
15
+ return !!(n?.x && O > n.x || n?.y && k > n.y);
16
16
  };
17
- function p(e) {
17
+ function T(e) {
18
18
  return "TouchEvent" in window && e instanceof TouchEvent ? {
19
19
  clientX: e.touches[0].clientX,
20
20
  clientY: e.touches[0].clientY
@@ -23,31 +23,31 @@ function z(y, L, { delay: M = 300, moveThreshold: n, onClick: P, onLongPressEnd:
23
23
  clientY: e.clientY
24
24
  } : { clientX: 0, clientY: 0 };
25
25
  }
26
- const T = (e) => {
27
- t.current = setTimeout(() => {
28
- w.current(e), c.current = !0;
26
+ const p = (e) => {
27
+ r.current = setTimeout(() => {
28
+ b.current(e), c.current = !0;
29
29
  }, M);
30
30
  }, g = (e) => {
31
31
  if (!f.current) {
32
32
  if (f.current = !0, a) {
33
- const { clientX: d, clientY: E } = p(e);
33
+ const { clientX: d, clientY: E } = T(e);
34
34
  u.current.x = d, u.current.y = E;
35
35
  }
36
- T(e);
36
+ p(e);
37
37
  }
38
38
  }, h = (e) => {
39
- e?.sourceCapabilities?.firesTouchEvents || (o.current = !0, a && (u.current.x = e.clientX, u.current.y = e.clientY), T(e));
39
+ e?.sourceCapabilities?.firesTouchEvents || (o.current = !0, a && (u.current.x = e.clientX, u.current.y = e.clientY), p(e));
40
40
  }, l = (e) => {
41
- t.current && b(e) && (clearTimeout(t.current), t.current = void 0);
41
+ r.current && C(e) && (clearTimeout(r.current), r.current = void 0);
42
42
  }, x = (e) => {
43
- f.current && (f.current = !1, t.current && (clearTimeout(t.current), t.current = void 0), c.current ? m.current?.(e) : i.current && i.current(e), c.current = !1);
43
+ f.current && (f.current = !1, r.current && (clearTimeout(r.current), r.current = void 0), c.current ? m.current?.(e) : i.current && i.current(e), c.current = !1);
44
44
  }, X = (e) => {
45
- e?.sourceCapabilities?.firesTouchEvents || o.current && (o.current = !1, t.current && (clearTimeout(t.current), t.current = void 0), c.current ? m.current?.(e) : i.current && i.current(e), c.current = !1);
45
+ e?.sourceCapabilities?.firesTouchEvents || o.current && (o.current = !1, r.current && (clearTimeout(r.current), r.current = void 0), c.current ? m.current?.(e) : i.current && i.current(e), c.current = !1);
46
46
  }, Y = (e) => {
47
- o.current && (o.current = !1, t.current && (clearTimeout(t.current), t.current = void 0), c.current && (m.current?.(e), c.current = !1));
47
+ o.current && (o.current = !1, r.current && (clearTimeout(r.current), r.current = void 0), c.current && (m.current?.(e), c.current = !1));
48
48
  };
49
- return r.addEventListener("mousedown", h), r.addEventListener("mouseup", X), r.addEventListener("mouseleave", Y), r.addEventListener("touchstart", g), r.addEventListener("touchend", x), a && (r.addEventListener("mousemove", l), r.addEventListener("touchmove", l)), () => {
50
- t.current && (clearTimeout(t.current), c.current = !1), r.removeEventListener("mousedown", h), r.removeEventListener("mouseup", X), r.removeEventListener("mouseleave", Y), r.removeEventListener("touchstart", g), r.removeEventListener("touchend", x), a && (r.removeEventListener("mousemove", l), r.removeEventListener("touchmove", l));
49
+ return t.addEventListener("mousedown", h), t.addEventListener("mouseup", X), t.addEventListener("mouseleave", Y), t.addEventListener("touchstart", g), t.addEventListener("touchend", x), a && (t.addEventListener("mousemove", l), t.addEventListener("touchmove", l)), () => {
50
+ r.current && (clearTimeout(r.current), c.current = !1), t.removeEventListener("mousedown", h), t.removeEventListener("mouseup", X), t.removeEventListener("mouseleave", Y), t.removeEventListener("touchstart", g), t.removeEventListener("touchend", x), a && (t.removeEventListener("mousemove", l), t.removeEventListener("touchmove", l));
51
51
  };
52
52
  },
53
53
  [],
@@ -55,5 +55,5 @@ function z(y, L, { delay: M = 300, moveThreshold: n, onClick: P, onLongPressEnd:
55
55
  );
56
56
  }
57
57
  export {
58
- z as default
58
+ j as default
59
59
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useState as f } from "react";
3
3
  import t from "../use-memoized-fn/index.js";
4
4
  function d(c) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useState as o, useEffect as i } from "react";
3
3
  const r = (t, e) => e !== void 0 ? e : window.matchMedia(t).matches, d = (t, e) => {
4
4
  const [c, a] = o(r(t, e));
@@ -0,0 +1,9 @@
1
+ /* 2025-11-27 12:10:58 */
2
+ import n from "react";
3
+ function o(t, r, u) {
4
+ const e = n.useRef({});
5
+ return (!("value" in e.current) || u(e.current.condition, r)) && (e.current.value = t(), e.current.condition = r), e.current.value;
6
+ }
7
+ export {
8
+ o as default
9
+ };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as t, useMemo as n } from "react";
3
3
  import "../../utils/is.js";
4
4
  import u from "../utils/isDev.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useMemo as m } from "react";
3
3
  import { omit as u } from "../../utils/omit.js";
4
4
  function c(r, e, i = {}) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as n, useState as c, useEffect as m } from "react";
3
3
  import "../../utils/is.js";
4
4
  import d from "../use-previous/index.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useEffect as t } from "react";
3
3
  import "../../utils/is.js";
4
4
  import e from "../utils/isDev.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import p from "../use-event-listener/index.js";
3
3
  import P from "../use-raf-state/index.js";
4
4
  import { getTargetElement as d } from "../utils/domTarget.js";
@@ -1,20 +1,20 @@
1
- /* 2025-11-19 10:00:01 */
2
- import c from "../use-latest/index.js";
3
- import { getTargetElement as a } from "../utils/domTarget.js";
1
+ /* 2025-11-27 12:10:58 */
2
+ import a from "../use-latest/index.js";
3
+ import { getTargetElement as c } from "../utils/domTarget.js";
4
4
  import m from "../utils/useDeepCompareWithTarget.js";
5
- const b = (n, e, t = {}) => {
6
- const s = c(n);
5
+ const b = (n, e, r = {}) => {
6
+ const s = a(n);
7
7
  m(
8
8
  () => {
9
- const r = a(e);
10
- if (!r)
9
+ const t = c(e);
10
+ if (!t)
11
11
  return;
12
12
  const o = new MutationObserver(s.current);
13
- return o.observe(r, t), () => {
13
+ return o.observe(t, r), () => {
14
14
  o?.disconnect();
15
15
  };
16
16
  },
17
- [t],
17
+ [r],
18
18
  e
19
19
  );
20
20
  };
@@ -1,16 +1,19 @@
1
- /* 2025-11-19 10:00:01 */
2
- import a from "lodash/throttle";
3
- import { useState as l, useRef as b, useEffect as h } from "react";
1
+ /* 2025-11-27 12:10:58 */
2
+ import h from "lodash/throttle";
3
+ import { useState as v, useDeferredValue as O, useEffect as E } from "react";
4
+ import "react-is";
5
+ import "../../utils/is.js";
4
6
  import "@unicom-cloud/utils/case-name";
5
7
  import "@unicom-cloud/utils/class-name";
6
- import { NOOP as v } from "../../utils/constant.js";
8
+ import { NOOP as s } from "../../utils/constant.js";
7
9
  import "@unicom-cloud/utils/clipboard-copy";
8
10
  import "@unicom-cloud/utils/date";
9
11
  import "../../utils/dayjs.js";
12
+ import "@unicom-cloud/utils/dom-helpers/canUseDOM";
10
13
  import "@unicom-cloud/utils/dom-helpers/reflow";
11
- import "../../utils/is.js";
12
14
  import "@unicom-cloud/utils/emitter";
13
15
  import "@unicom-cloud/utils/file/fileToURL";
16
+ import "../../utils/findRootElement.js";
14
17
  import "lodash/escapeRegExp";
15
18
  import "lodash/assign";
16
19
  import "lodash/assignIn";
@@ -56,11 +59,12 @@ import "lodash/set";
56
59
  import "lodash/setWith";
57
60
  import "lodash/shuffle";
58
61
  import "lodash/snakeCase";
62
+ import "lodash/sortBy";
59
63
  import "lodash/startCase";
60
64
  import "lodash/toPath";
61
65
  import "lodash/truncate";
62
66
  import "lodash/union";
63
- import "lodash/uniq";
67
+ import g from "lodash/uniq";
64
68
  import "lodash/uniqueId";
65
69
  import "lodash/unset";
66
70
  import "lodash/update";
@@ -72,45 +76,49 @@ import "lodash/xor";
72
76
  import "lodash/zip";
73
77
  import "@unicom-cloud/utils/math";
74
78
  import "@unicom-cloud/utils/pinyin";
75
- import "../../utils/reactDOM.js";
76
79
  import "@unicom-cloud/utils/file/saveAs";
77
80
  import "@unicom-cloud/utils/screenfull";
81
+ import "../../utils/setCreateRoot.js";
78
82
  import "@unicom-cloud/utils/constant/ui";
79
83
  import "@unicom-cloud/utils/constant/ui.js";
80
84
  import "@unicom-cloud/utils/tinycolor";
81
85
  import "@unicom-cloud/utils/ui-color";
82
86
  import "@unicom-cloud/utils/string";
83
- import "react-is";
84
87
  import "@unicom-cloud/utils/tree";
85
88
  import "@unicom-cloud/utils/tween";
86
89
  import "uuid";
87
90
  import "@unicom-cloud/utils/validate";
88
91
  import "@unicom-cloud/utils/constant/keyboardCode";
89
- import { isFunction as O } from "@unicom-cloud/utils/is";
90
- function _t(m, o = [], s) {
91
- const [c, u] = l(), p = b(m);
92
- return p.current = m, h(() => {
93
- if (!o.length) return v;
94
- const e = a(
95
- (t, i) => {
96
- const r = p.current;
97
- O(r) && r(t, i), u(t);
92
+ import k from "../use-latest/index.js";
93
+ import { isFunction as C } from "@unicom-cloud/utils/is";
94
+ function nr(c, o = [], u = {}) {
95
+ const { immediate: i, ...a } = u, [f, l] = v(), b = O(f), d = k(c);
96
+ return E(() => {
97
+ if (!(o.length || i)) return s;
98
+ const e = g(
99
+ [].concat(o).filter((t, p, r) => t instanceof Element)
100
+ );
101
+ if (!(e.length || i)) return s;
102
+ const m = h(
103
+ (t, p) => {
104
+ const r = d.current;
105
+ C(r) && r(t, p), l(t);
98
106
  },
99
107
  227
100
- ), f = [].concat(o).filter((t, i, r) => t instanceof Element), n = new MutationObserver(e);
101
- return f.forEach((t, i, r) => {
108
+ ), n = new MutationObserver(m);
109
+ return e.forEach((t, p, r) => {
102
110
  n.observe(t, {
103
111
  attributes: !0,
104
112
  childList: !0,
105
113
  subtree: !0,
106
- ...s
114
+ ...a
107
115
  });
108
- }), () => {
109
- n.disconnect(), e.cancel();
116
+ }), i && m(), () => {
117
+ n.disconnect(), m.cancel();
110
118
  };
111
- }, o), c;
119
+ }, o), b;
112
120
  }
113
121
  export {
114
- _t as default,
115
- _t as useMutationObservers
122
+ nr as default,
123
+ nr as useMutationObservers
116
124
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useState as f, useEffect as l } from "react";
3
3
  import "../../utils/is.js";
4
4
  import { isObject as v } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useSyncExternalStore as n, useDebugValue as i } from "react";
3
3
  function t(e) {
4
4
  return window.addEventListener("online", e), window.addEventListener("offline", e), () => {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as d, useEffect as f } from "react";
3
3
  function a(o, { hidden: s }) {
4
4
  const c = d(!1), r = d({}), u = (t) => t === document.body || t.tagName?.toLowerCase?.() === "body" ? window.innerWidth - (document.body.clientWidth || document.documentElement.clientWidth) : t.offsetWidth - t.clientWidth, l = () => {
@@ -1,7 +1,7 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import f, { useCallback as l, isValidElement as u, cloneElement as c } from "react";
3
- import { callbackOriginRef as a } from "../../utils/reactDOM.js";
4
- import { supportRef as m } from "../../utils/supportRef.js";
3
+ import { callbackOriginRef as a } from "../../utils/callbackOriginRef.js";
4
+ import { supportRef as m } from "../../utils/ref.js";
5
5
  function R() {
6
6
  const r = f.useRef(null);
7
7
  return [l((e) => u(e) && m(e) ? c(e, {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useMemo as M } from "react";
3
3
  import s from "../use-memoized-fn/index.js";
4
4
  import x from "../use-request/src/useRequest.js";
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as u, useCallback as s } from "react";
3
3
  function c(r) {
4
4
  const e = u(r);
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { MATCH_MEDIA_PREFERS_COLOR_SCHEME_DARK as e } from "@unicom-cloud/utils/constant";
3
3
  import { useState as o, useEffect as s } from "react";
4
4
  function m() {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as t, useEffect as u } from "react";
3
3
  function n(r) {
4
4
  const e = t(void 0);
@@ -1,36 +1,36 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as s, useCallback as m, useEffect as u } from "react";
3
3
  import "../../utils/is.js";
4
4
  import f from "../use-latest/index.js";
5
5
  import { isNumber as d, isUndefined as c } from "@unicom-cloud/utils/is";
6
- const l = (t, e = 0) => {
6
+ const l = (e, t = 0) => {
7
7
  if (c(requestAnimationFrame))
8
8
  return {
9
- id: setInterval(t, e)
9
+ id: setInterval(e, t)
10
10
  };
11
11
  let i = Date.now();
12
12
  const r = {
13
13
  id: 0
14
14
  }, n = () => {
15
- Date.now() - i >= e && (t(), i = Date.now()), r.id = requestAnimationFrame(n);
15
+ Date.now() - i >= t && (e(), i = Date.now()), r.id = requestAnimationFrame(n);
16
16
  };
17
17
  return r.id = requestAnimationFrame(n), r;
18
- }, p = (t) => c(cancelAnimationFrame), v = (t) => {
19
- if (p(t.id))
20
- return clearInterval(t.id);
21
- cancelAnimationFrame(t.id);
18
+ }, F = (e) => c(cancelAnimationFrame), p = (e) => {
19
+ if (F(e.id))
20
+ return clearInterval(e.id);
21
+ cancelAnimationFrame(e.id);
22
22
  };
23
- function D(t, e, i) {
24
- const r = i?.immediate, n = f(t), o = s(void 0), a = m(() => {
25
- o.current && v(o.current);
23
+ function R(e, t, i) {
24
+ const r = i?.immediate, n = f(e), o = s(void 0), a = m(() => {
25
+ o.current && p(o.current);
26
26
  }, []);
27
27
  return u(() => {
28
- if (!(!d(e) || e < 0))
28
+ if (!(!d(t) || t < 0))
29
29
  return r && n.current(), o.current = l(() => {
30
30
  n.current();
31
- }, e), a;
32
- }, [e]), a;
31
+ }, t), a;
32
+ }, [t]), a;
33
33
  }
34
34
  export {
35
- D as default
35
+ R as default
36
36
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as s, useState as u, useCallback as c } from "react";
3
3
  import m from "../use-unmount/index.js";
4
4
  function l(e) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as u, useCallback as m, useEffect as s } from "react";
3
3
  import "../../utils/is.js";
4
4
  import c from "../use-latest/index.js";
@@ -14,14 +14,14 @@ const f = (e, t = 0) => {
14
14
  Date.now() - n >= t ? e() : r.id = requestAnimationFrame(i);
15
15
  };
16
16
  return r.id = requestAnimationFrame(i), r;
17
- }, d = (e) => o(cancelAnimationFrame), p = (e) => {
17
+ }, d = (e) => o(cancelAnimationFrame), F = (e) => {
18
18
  if (d(e.id))
19
19
  return clearTimeout(e.id);
20
20
  cancelAnimationFrame(e.id);
21
21
  };
22
22
  function q(e, t) {
23
23
  const r = c(e), n = u(void 0), i = m(() => {
24
- n.current && p(n.current);
24
+ n.current && F(n.current);
25
25
  }, []);
26
26
  return s(() => {
27
27
  if (!(!a(t) || t < 0))
@@ -1,9 +1,9 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as y } from "react";
3
3
  import "../../utils/is.js";
4
- import R from "../use-creation/index.js";
5
- import d from "../use-update/index.js";
6
- import { isPlainObject as i, isArray as w } from "@unicom-cloud/utils/is";
4
+ import d from "../use-creation/index.js";
5
+ import i from "../use-update/index.js";
6
+ import { isPlainObject as w, isArray as x } from "@unicom-cloud/utils/is";
7
7
  const f = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
8
8
  function m(e, s) {
9
9
  const c = f.get(e);
@@ -14,7 +14,7 @@ function m(e, s) {
14
14
  const p = new Proxy(e, {
15
15
  get(r, o, n) {
16
16
  const t = Reflect.get(r, o, n), u = Reflect.getOwnPropertyDescriptor(r, o);
17
- return !u?.configurable && !u?.writable ? t : i(t) || w(t) ? m(t, s) : t;
17
+ return !u?.configurable && !u?.writable ? t : w(t) || x(t) ? m(t, s) : t;
18
18
  },
19
19
  set(r, o, n) {
20
20
  const t = Reflect.set(r, o, n);
@@ -28,8 +28,8 @@ function m(e, s) {
28
28
  return f.set(e, p), a.set(p, e), p;
29
29
  }
30
30
  function v(e) {
31
- const s = d(), c = y(e);
32
- return R(() => m(c.current, () => {
31
+ const s = i(), c = y(e);
32
+ return d(() => m(c.current, () => {
33
33
  s();
34
34
  }), []);
35
35
  }
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import e from "../use-latest/index.js";
3
3
  export {
4
4
  e as default
@@ -1,10 +1,10 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as f } from "react";
3
3
  function c(s = []) {
4
- const t = f(s), u = (e, r) => {
5
- r === void 0 ? t.current.push(e) : t.current[r] = e;
4
+ const r = f(s), u = (t, e) => {
5
+ e === void 0 ? r.current.push(t) : r.current[e] = t;
6
6
  };
7
- return [t.current, u];
7
+ return [r.current, u];
8
8
  }
9
9
  export {
10
10
  c as default
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import r from "./src/useRequest.js";
3
3
  import { clearCache as a } from "./src/utils/cache.js";
4
4
  export {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import "../../../utils/is.js";
3
3
  import { isFunction as u } from "@unicom-cloud/utils/is";
4
4
  class c {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as s } from "react";
3
3
  import o from "../../../use-update-effect/index.js";
4
4
  const l = (r, {
@@ -1,11 +1,11 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as l } from "react";
3
3
  import C from "../../../use-creation/index.js";
4
4
  import w from "../../../use-unmount/index.js";
5
5
  import { getCache as P, setCache as b } from "../utils/cache.js";
6
6
  import { getCachePromise as v, setCachePromise as D } from "../utils/cachePromise.js";
7
7
  import { subscribe as n, trigger as O } from "../utils/cacheSubscribe.js";
8
- const B = (a, {
8
+ const x = (a, {
9
9
  cacheKey: e,
10
10
  cacheTime: g = 300 * 1e3,
11
11
  staleTime: s = 0,
@@ -62,5 +62,5 @@ const B = (a, {
62
62
  } : {};
63
63
  };
64
64
  export {
65
- B as default
65
+ x as default
66
66
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import l from "lodash/debounce";
3
3
  import { useRef as p, useMemo as v, useEffect as y } from "react";
4
4
  const P = (n, { debounceWait: o, debounceLeading: s, debounceTrailing: u, debounceMaxWait: i }) => {
@@ -1,25 +1,25 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-27 12:10:58 */
2
2
  import { useRef as u } from "react";
3
- const a = (n, { loadingDelay: r, ready: o }) => {
3
+ const a = (n, { loadingDelay: t, ready: o }) => {
4
4
  const e = u(void 0);
5
- if (!r)
5
+ if (!t)
6
6
  return {};
7
- const t = () => {
7
+ const r = () => {
8
8
  e.current && clearTimeout(e.current);
9
9
  };
10
10
  return {
11
- onBefore: () => (t(), o !== !1 && (e.current = setTimeout(() => {
11
+ onBefore: () => (r(), o !== !1 && (e.current = setTimeout(() => {
12
12
  n.setState({
13
13
  loading: !0
14
14
  });
15
- }, r)), {
15
+ }, t)), {
16
16
  loading: !1
17
17
  }),
18
18
  onFinally: () => {
19
- t();
19
+ r();
20
20
  },
21
21
  onCancel: () => {
22
- t();
22
+ r();
23
23
  }
24
24
  };
25
25
  };