@unicom-cloud/ui-common 0.1.6 → 0.1.8

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 (399) 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 +181 -173
  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-move/index.js +69 -0
  78. package/hooks/use-mutation-observer/index.js +9 -9
  79. package/hooks/use-mutation-observers/index.js +33 -25
  80. package/hooks/use-network/index.js +1 -1
  81. package/hooks/use-online-status/index.js +1 -1
  82. package/hooks/use-overflow-hidden/index.js +1 -1
  83. package/hooks/use-override-ref/index.js +3 -3
  84. package/hooks/use-pagination/index.js +1 -1
  85. package/hooks/use-persist-callback/index.js +1 -1
  86. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  87. package/hooks/use-previous/index.js +1 -1
  88. package/hooks/use-raf-interval/index.js +15 -15
  89. package/hooks/use-raf-state/index.js +1 -1
  90. package/hooks/use-raf-timeout/index.js +3 -3
  91. package/hooks/use-reactive/index.js +7 -7
  92. package/hooks/use-ref-latest/index.js +1 -1
  93. package/hooks/use-refs/index.js +4 -4
  94. package/hooks/use-request/index.js +1 -1
  95. package/hooks/use-request/src/Fetch.js +1 -1
  96. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  97. package/hooks/use-request/src/plugins/useCachePlugin.js +3 -3
  98. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  99. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +8 -8
  100. package/hooks/use-request/src/plugins/usePollingPlugin.js +13 -13
  101. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +3 -3
  102. package/hooks/use-request/src/plugins/useRetryPlugin.js +5 -5
  103. package/hooks/use-request/src/plugins/useThrottlePlugin.js +3 -3
  104. package/hooks/use-request/src/useRequest.js +1 -1
  105. package/hooks/use-request/src/useRequestImplement.js +7 -7
  106. package/hooks/use-request/src/utils/cache.js +1 -1
  107. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  108. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  109. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  110. package/hooks/use-request/src/utils/isOnline.js +1 -1
  111. package/hooks/use-request/src/utils/limit.js +1 -1
  112. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  113. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  114. package/hooks/use-reset-state/index.js +7 -7
  115. package/hooks/use-resize-observer/index.js +1 -1
  116. package/hooks/use-resize-observers/index.js +34 -26
  117. package/hooks/use-responsive/index.js +1 -1
  118. package/hooks/use-safe-state/index.js +4 -4
  119. package/hooks/use-scroll/index.js +1 -1
  120. package/hooks/use-selections/index.js +1 -1
  121. package/hooks/use-session-storage-state/index.js +1 -1
  122. package/hooks/use-set/index.js +1 -1
  123. package/hooks/use-set-state/index.js +1 -1
  124. package/hooks/use-size/index.js +20 -23
  125. package/hooks/use-state-callback/index.js +6 -6
  126. package/hooks/use-state-with-promise/index.js +1 -1
  127. package/hooks/use-sync-state/index.js +15 -0
  128. package/hooks/use-text-selection/index.js +13 -13
  129. package/hooks/use-theme/index.js +1 -1
  130. package/hooks/use-throttle/index.js +1 -1
  131. package/hooks/use-throttle-effect/index.js +1 -1
  132. package/hooks/use-throttle-fn/index.js +6 -6
  133. package/hooks/use-timeout/index.js +3 -3
  134. package/hooks/use-title/index.js +1 -1
  135. package/hooks/use-toggle/index.js +1 -1
  136. package/hooks/use-tracked-effect/index.js +1 -1
  137. package/hooks/use-unmount/index.js +1 -1
  138. package/hooks/use-unmounted-ref/index.js +4 -4
  139. package/hooks/use-update/index.js +1 -1
  140. package/hooks/use-update-effect/index.js +1 -1
  141. package/hooks/use-update-layout-effect/index.js +1 -1
  142. package/hooks/use-url-state/index.js +3 -3
  143. package/hooks/use-virtual-list/index.js +10 -10
  144. package/hooks/use-watch/index.js +1 -1
  145. package/hooks/use-web-socket/index.js +30 -30
  146. package/hooks/use-why-did-you-update/index.js +1 -1
  147. package/hooks/use-window-size/index.js +28 -25
  148. package/hooks/useAsyncEffect.js +1 -1
  149. package/hooks/useBoolean.js +1 -1
  150. package/hooks/useClickAway.js +4 -5
  151. package/hooks/useComputedState.js +1 -1
  152. package/hooks/useControllableValue.js +1 -1
  153. package/hooks/useCookieState.js +1 -1
  154. package/hooks/useCountDown.js +1 -1
  155. package/hooks/useCounter.js +1 -1
  156. package/hooks/useCreate.js +1 -1
  157. package/hooks/useCreation.js +1 -1
  158. package/hooks/useDebounce.js +1 -1
  159. package/hooks/useDebounceEffect.js +1 -1
  160. package/hooks/useDebounceFn.js +1 -1
  161. package/hooks/useDeepCompareEffect.js +1 -1
  162. package/hooks/useDeepCompareLayoutEffect.js +1 -1
  163. package/hooks/useDocumentVisibility.js +1 -1
  164. package/hooks/useDrag.js +1 -1
  165. package/hooks/useDrop.js +1 -1
  166. package/hooks/useEvent.js +7 -0
  167. package/hooks/useEventListener.js +4 -5
  168. package/hooks/useEventTarget.js +1 -1
  169. package/hooks/useExternal.js +1 -1
  170. package/hooks/useFavicon.js +1 -1
  171. package/hooks/useFocusWithin.js +1 -1
  172. package/hooks/useForceUpdate.js +1 -1
  173. package/hooks/useFullscreen.js +1 -1
  174. package/hooks/useGetState.js +1 -1
  175. package/hooks/useHistoryTravel.js +1 -1
  176. package/hooks/useHover.js +1 -1
  177. package/hooks/useId.js +1 -1
  178. package/hooks/useInView.js +1 -1
  179. package/hooks/useInViewport.js +4 -5
  180. package/hooks/useInfiniteScroll.js +1 -1
  181. package/hooks/useIntersectionObserver.js +5 -4
  182. package/hooks/useIntersectionObservers.js +11 -7
  183. package/hooks/useInterval.js +1 -1
  184. package/hooks/useIsFirstRender.js +1 -1
  185. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  186. package/hooks/useKeyPress.js +1 -1
  187. package/hooks/useKeyboardEvent.js +1 -1
  188. package/hooks/useLatest.js +1 -1
  189. package/hooks/useListenWindowResize.js +1 -1
  190. package/hooks/useLocalStorageState.js +1 -1
  191. package/hooks/useLockFn.js +1 -1
  192. package/hooks/useLongPress.js +1 -1
  193. package/hooks/useMap.js +1 -1
  194. package/hooks/useMedia.js +1 -1
  195. package/hooks/useMemo.js +6 -0
  196. package/hooks/useMemoizedFn.js +1 -1
  197. package/hooks/useMergeProps.js +1 -1
  198. package/hooks/useMergeValue.js +1 -1
  199. package/hooks/useMount.js +1 -1
  200. package/hooks/useMouse.js +1 -1
  201. package/hooks/useMove.js +10 -0
  202. package/hooks/useMutationObserver.js +1 -1
  203. package/hooks/useMutationObservers.js +11 -7
  204. package/hooks/useNetwork.js +1 -1
  205. package/hooks/useOnlineStatus.js +1 -1
  206. package/hooks/useOverflowHidden.js +1 -1
  207. package/hooks/useOverrideRef.js +3 -3
  208. package/hooks/usePagination.js +1 -1
  209. package/hooks/usePersistCallback.js +1 -1
  210. package/hooks/usePrefersColorSchemeDark.js +1 -1
  211. package/hooks/usePrevious.js +1 -1
  212. package/hooks/useRafInterval.js +1 -1
  213. package/hooks/useRafState.js +1 -1
  214. package/hooks/useRafTimeout.js +1 -1
  215. package/hooks/useReactive.js +1 -1
  216. package/hooks/useRefLatest.js +1 -1
  217. package/hooks/useRefs.js +1 -1
  218. package/hooks/useRequest.js +1 -1
  219. package/hooks/useResetState.js +1 -1
  220. package/hooks/useResizeObserver.js +1 -1
  221. package/hooks/useResizeObservers.js +11 -7
  222. package/hooks/useResponsive.js +1 -1
  223. package/hooks/useSafeState.js +1 -1
  224. package/hooks/useScroll.js +1 -1
  225. package/hooks/useSelections.js +1 -1
  226. package/hooks/useSessionStorageState.js +1 -1
  227. package/hooks/useSet.js +1 -1
  228. package/hooks/useSetState.js +1 -1
  229. package/hooks/useSize.js +4 -3
  230. package/hooks/useStateCallback.js +1 -1
  231. package/hooks/useStateWithPromise.js +1 -1
  232. package/hooks/useSyncState.js +10 -0
  233. package/hooks/useTextSelection.js +1 -1
  234. package/hooks/useTheme.js +1 -1
  235. package/hooks/useThrottle.js +1 -1
  236. package/hooks/useThrottleEffect.js +1 -1
  237. package/hooks/useThrottleFn.js +1 -1
  238. package/hooks/useTimeout.js +1 -1
  239. package/hooks/useTitle.js +1 -1
  240. package/hooks/useToggle.js +1 -1
  241. package/hooks/useTrackedEffect.js +1 -1
  242. package/hooks/useUnmount.js +1 -1
  243. package/hooks/useUnmountedRef.js +1 -1
  244. package/hooks/useUpdate.js +1 -1
  245. package/hooks/useUpdateEffect.js +1 -1
  246. package/hooks/useUpdateLayoutEffect.js +1 -1
  247. package/hooks/useUrlState.js +1 -1
  248. package/hooks/useVirtualList.js +1 -1
  249. package/hooks/useWatch.js +1 -1
  250. package/hooks/useWebSocket.js +1 -1
  251. package/hooks/useWhyDidYouUpdate.js +1 -1
  252. package/hooks/useWindowSize.js +4 -3
  253. package/hooks/utils/createEffectWithTarget.js +11 -12
  254. package/hooks/utils/depsAreSame.js +1 -1
  255. package/hooks/utils/depsEqual.js +1 -1
  256. package/hooks/utils/domTarget.js +1 -1
  257. package/hooks/utils/getDocumentOrShadow.js +5 -6
  258. package/hooks/utils/index.js +1 -1
  259. package/hooks/utils/isAppleDevice.js +1 -1
  260. package/hooks/utils/isBrowser.js +1 -1
  261. package/hooks/utils/isDev.js +1 -1
  262. package/hooks/utils/rect.js +1 -1
  263. package/hooks/utils/useDeepCompareWithTarget.js +4 -4
  264. package/hooks/utils/useEffectWithTarget.js +1 -1
  265. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  266. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  267. package/hooks/utils.js +1 -1
  268. package/icons/file/index.js +31 -24
  269. package/icons/file.js +1 -1
  270. package/index.js +47 -46
  271. package/motion/CSSMotion.js +102 -0
  272. package/motion/CSSMotionList.js +100 -0
  273. package/motion/context.js +14 -0
  274. package/motion/hooks/useDomMotionEvents.js +21 -0
  275. package/motion/hooks/useNextFrame.js +24 -0
  276. package/motion/hooks/useStatus.js +121 -0
  277. package/motion/hooks/useStepQueue.js +44 -0
  278. package/motion/index.js +9 -0
  279. package/motion/interface.js +14 -0
  280. package/motion/util/diff.js +56 -0
  281. package/motion/util/motion.js +56 -0
  282. package/package.json +1 -1
  283. package/progress/index.js +1 -1
  284. package/resize-observer/Collection.js +25 -0
  285. package/resize-observer/SingleObserver.js +48 -0
  286. package/resize-observer/index.js +27 -0
  287. package/resize-observer/observerUtil.js +22 -0
  288. package/space/index.js +65 -52
  289. package/suspense-fallback-test/index.js +1 -1
  290. package/transition-group/CSSTransition.js +59 -54
  291. package/transition-group/ChildMapping.js +68 -0
  292. package/transition-group/PqbCSSTransition.js +22 -18
  293. package/transition-group/ReplaceTransition.js +7 -7
  294. package/transition-group/SwitchTransition.js +1 -1
  295. package/transition-group/Transition.js +56 -52
  296. package/transition-group/TransitionGroup.js +2 -3
  297. package/transition-group/TransitionGroupContext.js +1 -1
  298. package/transition-group/index.js +30 -29
  299. package/types/hooks/index.d.ts +4 -0
  300. package/types/hooks/use-event/index.d.ts +2 -0
  301. package/types/hooks/use-intersection-observers/index.d.ts +3 -1
  302. package/types/hooks/use-listen-window-resize/index.d.ts +4 -4
  303. package/types/hooks/use-memo/index.d.ts +2 -0
  304. package/types/hooks/use-move/index.d.ts +4 -0
  305. package/types/hooks/use-mutation-observers/index.d.ts +3 -1
  306. package/types/hooks/use-resize-observers/index.d.ts +3 -1
  307. package/types/hooks/use-size/index.d.ts +1 -1
  308. package/types/hooks/use-sync-state/index.d.ts +10 -0
  309. package/types/hooks/use-window-size/index.d.ts +2 -3
  310. package/types/motion/CSSMotion.d.ts +77 -0
  311. package/types/motion/CSSMotionList.d.ts +34 -0
  312. package/types/motion/context.d.ts +9 -0
  313. package/types/motion/hooks/useDomMotionEvents.d.ts +3 -0
  314. package/types/motion/hooks/useNextFrame.d.ts +7 -0
  315. package/types/motion/hooks/useStatus.d.ts +5 -0
  316. package/types/motion/hooks/useStepQueue.d.ts +8 -0
  317. package/types/motion/index.d.ts +9 -0
  318. package/types/motion/interface.d.ts +22 -0
  319. package/types/motion/util/diff.d.ts +20 -0
  320. package/types/motion/util/motion.d.ts +10 -0
  321. package/types/resize-observer/Collection.d.ts +9 -0
  322. package/types/resize-observer/SingleObserver.d.ts +7 -0
  323. package/types/resize-observer/index.d.ts +7 -0
  324. package/types/resize-observer/interface.d.ts +25 -0
  325. package/types/resize-observer/observerUtil.d.ts +3 -0
  326. package/types/space/interface.d.ts +1 -1
  327. package/types/transition-group/CSSTransition.d.ts +0 -1
  328. package/types/transition-group/{utils/ChildMapping.d.ts → ChildMapping.d.ts} +4 -4
  329. package/types/transition-group/SwitchTransition.d.ts +3 -3
  330. package/types/transition-group/Transition.d.ts +1 -1
  331. package/types/transition-group/TransitionGroup.d.ts +1 -1
  332. package/types/transition-group/index.d.ts +1 -1
  333. package/types/utils/callbackOriginRef.d.ts +4 -0
  334. package/types/utils/dom.d.ts +2 -1
  335. package/types/utils/findRootElement.d.ts +23 -0
  336. package/types/utils/index.d.ts +4 -2
  337. package/types/utils/is.d.ts +5 -4
  338. package/types/utils/lodash.d.ts +2 -1
  339. package/types/utils/ref.d.ts +27 -0
  340. package/types/utils/setCreateRoot.d.ts +13 -0
  341. package/types/utils/toArray.d.ts +3 -3
  342. package/utils/callbackOriginRef.js +11 -0
  343. package/utils/caseName.js +1 -1
  344. package/utils/className.js +1 -1
  345. package/utils/compute.js +1 -1
  346. package/utils/constant.js +1 -1
  347. package/utils/copy.js +1 -1
  348. package/utils/date.js +1 -1
  349. package/utils/dayjs.js +1 -1
  350. package/utils/dom.js +12 -10
  351. package/utils/emitter.js +1 -1
  352. package/utils/fileToURL.js +1 -1
  353. package/utils/fillNBSP.js +1 -1
  354. package/utils/findRootElement.js +28 -0
  355. package/utils/findScrollParent.js +1 -1
  356. package/utils/getHighlightText.js +1 -1
  357. package/utils/getHotkeyHandler.js +1 -1
  358. package/utils/getStringLength.js +1 -1
  359. package/utils/include.js +1 -1
  360. package/utils/index.js +341 -329
  361. package/utils/intersectionObserver.js +1 -1
  362. package/utils/is.js +72 -81
  363. package/utils/keyboardCode.js +1 -1
  364. package/utils/lodash.js +45 -43
  365. package/utils/math.js +1 -1
  366. package/utils/mergeProps.js +1 -1
  367. package/utils/mergedToString.js +1 -1
  368. package/utils/mutationObserver.js +1 -1
  369. package/utils/omit.js +1 -1
  370. package/utils/pad.js +1 -1
  371. package/utils/pick.js +1 -1
  372. package/utils/pinyin.js +1 -1
  373. package/utils/react19Adapter.js +2 -2
  374. package/utils/ref.js +41 -0
  375. package/utils/resizeObserver.js +1 -1
  376. package/utils/saveAs.js +1 -1
  377. package/utils/screenfull.js +1 -1
  378. package/utils/scrollIntoViewIfNeeded.js +1 -1
  379. package/utils/setCreateRoot.js +53 -0
  380. package/utils/setDarkTheme.js +1 -1
  381. package/utils/setDir.js +1 -1
  382. package/utils/setPrimaryColor.js +1 -1
  383. package/utils/setTheme.js +1 -1
  384. package/utils/string.js +1 -1
  385. package/utils/style.js +1 -1
  386. package/utils/throttleByRaf.js +1 -1
  387. package/utils/throttleByRaf2.js +1 -1
  388. package/utils/tinycolor.js +1 -1
  389. package/utils/toArray.js +9 -9
  390. package/utils/tree.js +1 -1
  391. package/utils/tween.js +1 -1
  392. package/utils/uuid.js +1 -1
  393. package/utils/validate.js +1 -1
  394. package/utils/warning.js +1 -1
  395. package/transition-group/utils/ChildMapping.js +0 -66
  396. package/types/utils/reactDOM.d.ts +0 -34
  397. package/types/utils/supportRef.d.ts +0 -3
  398. package/utils/reactDOM.js +0 -87
  399. package/utils/supportRef.js +0 -10
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useRef as D } from "react";
3
3
  import "../../utils/is.js";
4
4
  import E from "../use-latest/index.js";
@@ -0,0 +1,10 @@
1
+ /* 2025-11-28 16:31:16 */
2
+ import r from "react";
3
+ import o from "../use-latest/index.js";
4
+ function a(e) {
5
+ const t = o(e);
6
+ return r.useCallback((...n) => t.current?.(...n), []);
7
+ }
8
+ export {
9
+ a as default
10
+ };
@@ -1,37 +1,36 @@
1
- /* 2025-11-19 10:00:01 */
2
- import "../../utils/is.js";
3
- import i from "../use-latest/index.js";
4
- import { getTargetElement as m } from "../utils/domTarget.js";
5
- import E from "../utils/useEffectWithTarget.js";
6
- import { isArray as d } from "@unicom-cloud/utils/is";
7
- function p(t, f, e = {}) {
8
- const { enable: n = !0 } = e, s = i(f);
9
- E(
1
+ /* 2025-11-28 16:31:16 */
2
+ import m from "lodash/castArray";
3
+ import v from "../use-latest/index.js";
4
+ import { getTargetElement as E } from "../utils/domTarget.js";
5
+ import i from "../utils/useEffectWithTarget.js";
6
+ function o(a, f, e = {}) {
7
+ const { enable: n = !0 } = e, s = v(f);
8
+ i(
10
9
  () => {
11
10
  if (!n)
12
11
  return;
13
- const a = m(e.target, window);
14
- if (!a?.addEventListener)
12
+ const t = E(e.target, window);
13
+ if (!t?.addEventListener)
15
14
  return;
16
- const c = (r) => s.current(r), u = d(t) ? t : [t];
15
+ const c = (r) => s.current(r), u = m(a);
17
16
  return u.forEach((r) => {
18
- a.addEventListener(r, c, {
17
+ t.addEventListener(r, c, {
19
18
  capture: e.capture,
20
19
  once: e.once,
21
20
  passive: e.passive
22
21
  });
23
22
  }), () => {
24
23
  u.forEach((r) => {
25
- a.removeEventListener(r, c, {
24
+ t.removeEventListener(r, c, {
26
25
  capture: e.capture
27
26
  });
28
27
  });
29
28
  };
30
29
  },
31
- [t, e.capture, e.once, e.passive, n],
30
+ [a, e.capture, e.once, e.passive, n],
32
31
  e.target
33
32
  );
34
33
  }
35
34
  export {
36
- p as default
35
+ o as default
37
36
  };
@@ -1,9 +1,9 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useState as l, useCallback as o } from "react";
3
3
  import "../../utils/is.js";
4
4
  import m from "../use-latest/index.js";
5
5
  import { isFunction as p } from "@unicom-cloud/utils/is";
6
- function b(a) {
6
+ function V(a) {
7
7
  const { initialValue: e, transformer: s } = a || {}, [u, t] = l(e), r = m(s), c = o(() => t(e), []), i = o((f) => {
8
8
  const n = f.target.value;
9
9
  return p(r.current) ? t(r.current(n)) : t(n);
@@ -17,5 +17,5 @@ function b(a) {
17
17
  ];
18
18
  }
19
19
  export {
20
- b as default
20
+ V as default
21
21
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useState as i, useRef as l, useEffect as f } from "react";
3
3
  const a = {}, y = (t, s = {}) => {
4
4
  const n = document.querySelector(`script[src="${t}"]`);
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useEffect as c } from "react";
3
3
  const i = {
4
4
  SVG: "image/svg+xml",
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useState as f } from "react";
3
3
  import u from "../use-event-listener/index.js";
4
4
  function h(e, i) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import t from "../use-update/index.js";
3
3
  export {
4
4
  t as default
@@ -1,20 +1,20 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import t from "@unicom-cloud/utils/screenfull";
3
- import { useState as z, useRef as I, useEffect as L } from "react";
3
+ import { useState as I, useRef as L, useEffect as q } from "react";
4
4
  import "../../utils/is.js";
5
5
  import F from "../use-latest/index.js";
6
6
  import u from "../use-memoized-fn/index.js";
7
7
  import { getTargetElement as i } from "../utils/domTarget.js";
8
- import { isBoolean as q } from "@unicom-cloud/utils/is";
9
- const T = (l, b) => {
10
- const { onExit: h, onEnter: x, pageFullscreen: r = !1 } = b || {}, { className: o = "@unicom-cloud-ui-hooks-page-fullscreen", zIndex: y = 999999 } = q(r) || !r ? {} : r, C = F(h), R = F(x), [a, S] = z(c), f = I(c());
8
+ import { isBoolean as B } from "@unicom-cloud/utils/is";
9
+ const R = (l, b) => {
10
+ const { onExit: h, onEnter: x, pageFullscreen: r = !1 } = b || {}, { className: o = "@unicom-cloud-ui-hooks-page-fullscreen", zIndex: S = 999999 } = B(r) || !r ? {} : r, y = F(h), C = F(x), [a, k] = I(c), f = L(c());
11
11
  function c() {
12
12
  return t.isEnabled && !!t.element && t.element === i(l);
13
13
  }
14
- const k = (e) => {
15
- e ? R.current?.() : C.current?.();
14
+ const v = (e) => {
15
+ e ? C.current?.() : y.current?.();
16
16
  }, m = (e) => {
17
- f.current !== e && (k(e), S(e), f.current = e);
17
+ f.current !== e && (v(e), k(e), f.current = e);
18
18
  }, d = () => {
19
19
  const e = c();
20
20
  m(e);
@@ -27,7 +27,7 @@ const T = (l, b) => {
27
27
  .${o} {
28
28
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
29
29
  width: 100% !important; height: 100% !important;
30
- z-index: ${y};
30
+ z-index: ${S};
31
31
  }`, s.appendChild(n))) : (s.classList.remove(o), n && n.remove()), m(e);
32
32
  }, g = () => {
33
33
  const e = i(l);
@@ -52,10 +52,10 @@ const T = (l, b) => {
52
52
  }
53
53
  t.isEnabled && t.element === e && t.exit();
54
54
  }
55
- }, v = () => {
55
+ }, z = () => {
56
56
  a ? E() : g();
57
57
  };
58
- return L(() => {
58
+ return q(() => {
59
59
  if (!(!t.isEnabled || r))
60
60
  return t.on("change", d), () => {
61
61
  t.off("change", d);
@@ -65,11 +65,11 @@ const T = (l, b) => {
65
65
  {
66
66
  enterFullscreen: u(g),
67
67
  exitFullscreen: u(E),
68
- toggleFullscreen: u(v),
68
+ toggleFullscreen: u(z),
69
69
  isEnabled: t.isEnabled
70
70
  }
71
71
  ];
72
72
  };
73
73
  export {
74
- T as default
74
+ R as default
75
75
  };
@@ -1,10 +1,10 @@
1
- /* 2025-11-19 10:00:01 */
2
- import { useState as r, useCallback as u } from "react";
1
+ /* 2025-11-28 16:31:16 */
2
+ import { useState as o, useCallback as u } from "react";
3
3
  import n from "../use-latest/index.js";
4
- function m(e) {
5
- const [t, s] = r(e), a = n(t), o = u(() => a.current, []);
6
- return [t, s, o];
4
+ function S(e) {
5
+ const [t, a] = o(e), s = n(t), r = u(() => s.current, []);
6
+ return [t, a, r];
7
7
  }
8
8
  export {
9
- m as default
9
+ S as default
10
10
  };
@@ -1,58 +1,58 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useState as w, useRef as k } from "react";
3
3
  import "../../utils/is.js";
4
4
  import c from "../use-memoized-fn/index.js";
5
5
  import { isNumber as m } from "@unicom-cloud/utils/is";
6
6
  const x = (s, t) => {
7
- let r = s > 0 ? s - 1 : t.length + s;
8
- return r >= t.length - 1 && (r = t.length - 1), r < 0 && (r = 0), r;
7
+ let n = s > 0 ? s - 1 : t.length + s;
8
+ return n >= t.length - 1 && (n = t.length - 1), n < 0 && (n = 0), n;
9
9
  }, d = (s, t) => {
10
- const r = x(s, t);
10
+ const n = x(s, t);
11
11
  return {
12
- _current: t[r],
13
- _before: t.slice(0, r),
14
- _after: t.slice(r + 1)
12
+ _current: t[n],
13
+ _before: t.slice(0, n),
14
+ _after: t.slice(n + 1)
15
15
  };
16
16
  };
17
17
  function V(s, t = 0) {
18
- const [r, f] = w({
18
+ const [n, f] = w({
19
19
  present: s,
20
20
  past: [],
21
21
  future: []
22
- }), { present: i, past: o, future: l } = r, _ = k(s), h = (...n) => {
23
- const e = n.length > 0 ? n[0] : _.current;
22
+ }), { present: i, past: o, future: l } = n, _ = k(s), h = (...r) => {
23
+ const e = r.length > 0 ? r[0] : _.current;
24
24
  _.current = e, f({
25
25
  present: e,
26
26
  future: [],
27
27
  past: []
28
28
  });
29
- }, b = (n) => {
29
+ }, b = (r) => {
30
30
  const e = [...o, i], u = m(t) ? t : Number(t);
31
31
  u > 0 && e.length > u && e.splice(0, 1), f({
32
- present: n,
32
+ present: r,
33
33
  future: [],
34
34
  past: e
35
35
  });
36
- }, g = (n = 1) => {
36
+ }, g = (r = 1) => {
37
37
  if (l.length === 0)
38
38
  return;
39
- const { _before: e, _current: u, _after: p } = d(n, l);
39
+ const { _before: e, _current: u, _after: p } = d(r, l);
40
40
  f({
41
41
  past: [...o, i, ...e],
42
42
  present: u,
43
43
  future: p
44
44
  });
45
- }, N = (n = -1) => {
45
+ }, N = (r = -1) => {
46
46
  if (o.length === 0)
47
47
  return;
48
- const { _before: e, _current: u, _after: p } = d(n, o);
48
+ const { _before: e, _current: u, _after: p } = d(r, o);
49
49
  f({
50
50
  past: e,
51
51
  present: u,
52
52
  future: [...p, i, ...l]
53
53
  });
54
- }, a = (n) => {
55
- const e = m(n) ? n : Number(n);
54
+ }, a = (r) => {
55
+ const e = m(r) ? r : Number(r);
56
56
  if (e !== 0) {
57
57
  if (e > 0)
58
58
  return g(e);
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import m from "../use-boolean/index.js";
3
3
  import s from "../use-event-listener/index.js";
4
4
  const c = (e, t) => {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import o from "react";
3
3
  import "../../utils/is.js";
4
4
  import { isString as i } from "@unicom-cloud/utils/is";
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useState as I, useCallback as w, useEffect as m } from "react";
3
3
  import p, { supportIntersectionObserver as O } from "../use-intersection-observer/index.js";
4
4
  function k(u) {
@@ -1,34 +1,33 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
+ import h from "lodash/castArray";
2
3
  import { useState as c } from "react";
3
- import "../../utils/is.js";
4
- import { getTargetElement as a } from "../utils/domTarget.js";
5
- import g from "../utils/useEffectWithTarget.js";
6
- import { isArray as h } from "@unicom-cloud/utils/is";
7
- function y(e, r) {
8
- const { callback: n, ...f } = r || {}, [m, l] = c(), [u, p] = c();
9
- return g(
4
+ import { getTargetElement as i } from "../utils/domTarget.js";
5
+ import p from "../utils/useEffectWithTarget.js";
6
+ function w(o, e) {
7
+ const { callback: n, ...f } = e || {}, [m, l] = c(), [u, g] = c();
8
+ return p(
10
9
  () => {
11
- const s = (h(e) ? e : [e]).map((t) => a(t)).filter(Boolean);
10
+ const s = h(o).map((t) => i(t)).filter(Boolean);
12
11
  if (!s.length)
13
12
  return;
14
- const i = new IntersectionObserver(
13
+ const a = new IntersectionObserver(
15
14
  (t) => {
16
- for (const o of t)
17
- p(o.intersectionRatio), l(o.isIntersecting), n?.(o);
15
+ for (const r of t)
16
+ g(r.intersectionRatio), l(r.isIntersecting), n?.(r);
18
17
  },
19
18
  {
20
19
  ...f,
21
- root: a(r?.root)
20
+ root: i(e?.root)
22
21
  }
23
22
  );
24
- return s.forEach((t) => i.observe(t)), () => {
25
- i.disconnect();
23
+ return s.forEach((t) => a.observe(t)), () => {
24
+ a.disconnect();
26
25
  };
27
26
  },
28
- [r?.rootMargin, r?.threshold, n],
29
- e
27
+ [e?.rootMargin, e?.threshold, n],
28
+ o
30
29
  ), [m, u];
31
30
  }
32
31
  export {
33
- y as default
32
+ w as default
34
33
  };
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useState as S, useRef as T, useMemo as _ } from "react";
3
3
  import k from "../use-event-listener/index.js";
4
4
  import s from "../use-memoized-fn/index.js";
@@ -1,17 +1,18 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useRef as i } from "react";
3
+ import "@unicom-cloud/utils/dom-helpers/canUseDOM";
3
4
  import "@unicom-cloud/utils/dom-helpers/reflow";
4
5
  import { isServerRendering as c } from "../../utils/is.js";
5
6
  import { isUndefined as u } from "@unicom-cloud/utils/is";
6
7
  const v = !c && !u(window?.IntersectionObserver);
7
- function O(t, o = {}) {
8
+ function O(n, o = {}) {
8
9
  const r = i(void 0), e = () => {
9
10
  r.current && (r.current.disconnect(), r.current = null);
10
- }, s = (n) => {
11
- n && (e(), v && (r.current = new IntersectionObserver(
12
- t,
11
+ }, s = (t) => {
12
+ t && (e(), v && (r.current = new IntersectionObserver(
13
+ n,
13
14
  o
14
- ), r.current.observe(n)));
15
+ ), r.current.observe(t)));
15
16
  };
16
17
  return {
17
18
  observer: r.current,
@@ -1,16 +1,19 @@
1
- /* 2025-11-19 10:00:01 */
2
- import u from "lodash/throttle";
3
- import { useState as l, useRef as b, useEffect as v } from "react";
1
+ /* 2025-11-28 16:31:16 */
2
+ import v from "lodash/throttle";
3
+ import { useState as d, useDeferredValue as E, useEffect as O } 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 h } 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,42 +76,46 @@ 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 E } from "@unicom-cloud/utils/is";
90
- function _t(p, i = [], c) {
91
- const [f, a] = l(), e = b(p);
92
- return e.current = p, v(() => {
93
- if (!i.length) return h;
94
- const n = u(
92
+ import k from "../use-latest/index.js";
93
+ import { isFunction as C } from "@unicom-cloud/utils/is";
94
+ function nr(c, i = [], f = {}) {
95
+ const { immediate: m, ...a } = f, [u, l] = d(), b = E(u), h = k(c);
96
+ return O(() => {
97
+ if (!(i.length || m)) return s;
98
+ const p = g(
99
+ [].concat(i).filter((t, o, r) => t instanceof Element)
100
+ );
101
+ if (!(p.length || m)) return s;
102
+ const e = v(
95
103
  (t, o) => {
96
- const r = e.current;
97
- E(r) && r(t, o), a(t);
104
+ const r = h.current;
105
+ C(r) && r(t, o), l(t);
98
106
  },
99
107
  227
100
- ), s = [].concat(i).filter((t, o, r) => t instanceof Element), m = new IntersectionObserver(n, c);
101
- return s.forEach((t, o, r) => {
102
- m.observe(t);
103
- }), () => {
104
- s.forEach((t, o, r) => {
105
- m.unobserve(t);
106
- }), m.disconnect(), n.cancel();
108
+ ), n = new IntersectionObserver(e, { ...a });
109
+ return p.forEach((t, o, r) => {
110
+ n.observe(t);
111
+ }), m && e(), () => {
112
+ p.forEach((t, o, r) => {
113
+ n.unobserve(t);
114
+ }), n.disconnect(), e.cancel();
107
115
  };
108
- }, i), f;
116
+ }, i), b;
109
117
  }
110
118
  export {
111
- _t as default,
112
- _t as useIntersectionObservers
119
+ nr as default,
120
+ nr as useIntersectionObservers
113
121
  };
@@ -1,16 +1,16 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useRef as u, useCallback as c, useEffect as f } from "react";
3
3
  import "../../utils/is.js";
4
4
  import o from "../use-memoized-fn/index.js";
5
5
  import { isNumber as s } from "@unicom-cloud/utils/is";
6
- const v = (n, e, t = {}) => {
7
- const m = o(n), r = u(null), i = c(() => {
8
- r.current && clearInterval(r.current);
6
+ const v = (n, r, t = {}) => {
7
+ const m = o(n), e = u(null), i = c(() => {
8
+ e.current && clearInterval(e.current);
9
9
  }, []);
10
10
  return f(() => {
11
- if (!(!s(e) || e < 0))
12
- return t.immediate && m(), r.current = setInterval(m, e), i;
13
- }, [e, t.immediate]), i;
11
+ if (!(!s(r) || r < 0))
12
+ return t.immediate && m(), e.current = setInterval(m, r), i;
13
+ }, [r, t.immediate]), i;
14
14
  };
15
15
  export {
16
16
  v as default
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useRef as r, useEffect as t } from "react";
3
3
  function u() {
4
4
  const e = r(!0);
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useLayoutEffect as o, useEffect as t } from "react";
3
3
  import { isBrowser as e } from "@unicom-cloud/utils/constant/platform";
4
4
  const s = e ? o : t;
@@ -1,7 +1,7 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import "../../utils/is.js";
3
3
  import l from "../use-latest/index.js";
4
- import { getTargetElement as K } from "../utils/domTarget.js";
4
+ import { getTargetElement as k } from "../utils/domTarget.js";
5
5
  import { isAppleDevice as b } from "@unicom-cloud/utils/constant/platform";
6
6
  import C from "../utils/useDeepCompareWithTarget.js";
7
7
  import { isFunction as E, isArray as L, isString as q, isNumber as g } from "@unicom-cloud/utils/is";
@@ -116,51 +116,51 @@ function w(e) {
116
116
  return q(e) || g(e);
117
117
  }
118
118
  function v(e) {
119
- const n = Object.keys(d).reduce((t, r) => d[r](e) ? t + 1 : t, 0);
120
- return [16, 17, 18, 91, 92].includes(e.keyCode) ? n : n + 1;
119
+ const r = Object.keys(d).reduce((t, n) => d[n](e) ? t + 1 : t, 0);
120
+ return [16, 17, 18, 91, 92].includes(e.keyCode) ? r : r + 1;
121
121
  }
122
- function p(e, n, t) {
122
+ function p(e, r, t) {
123
123
  if (!e.key)
124
124
  return !1;
125
- if (g(n))
126
- return e.keyCode === n ? n : !1;
127
- const r = n.split(".");
125
+ if (g(r))
126
+ return e.keyCode === r ? r : !1;
127
+ const n = r.split(".");
128
128
  let a = 0;
129
- for (const f of r) {
129
+ for (const f of n) {
130
130
  const s = d[f], c = y[f.toLowerCase()];
131
131
  (s && s(e) || c && c === e.keyCode) && a++;
132
132
  }
133
- return t ? a === r.length && v(e) === r.length ? n : !1 : a === r.length ? n : !1;
133
+ return t ? a === n.length && v(e) === n.length ? r : !1 : a === n.length ? r : !1;
134
134
  }
135
- function A(e, n) {
136
- return E(e) ? e : w(e) ? (t) => p(t, e, n) : L(e) ? (t) => e.find((r) => p(t, r, n)) : () => !!e;
135
+ function A(e, r) {
136
+ return E(e) ? e : w(e) ? (t) => p(t, e, r) : L(e) ? (t) => e.find((n) => p(t, n, r)) : () => !!e;
137
137
  }
138
138
  const G = ["keydown"];
139
- function H(e, n, t) {
139
+ function H(e, r, t) {
140
140
  const {
141
- events: r = G,
141
+ events: n = G,
142
142
  target: a,
143
143
  exactMatch: f = !1,
144
144
  useCapture: s = !1
145
- } = t || {}, c = l(n), h = l(e);
145
+ } = t || {}, c = l(r), h = l(e);
146
146
  C(
147
147
  () => {
148
- const u = K(a, window);
148
+ const u = k(a, window);
149
149
  if (!u)
150
150
  return;
151
151
  const m = (o) => {
152
- const i = A(h.current, f)(o), k = w(i) ? i : o.key;
152
+ const i = A(h.current, f)(o), K = w(i) ? i : o.key;
153
153
  if (i)
154
- return c.current?.(o, k);
154
+ return c.current?.(o, K);
155
155
  };
156
- for (const o of r)
156
+ for (const o of n)
157
157
  u?.addEventListener?.(o, m, s);
158
158
  return () => {
159
- for (const o of r)
159
+ for (const o of n)
160
160
  u?.removeEventListener?.(o, m, s);
161
161
  };
162
162
  },
163
- [r],
163
+ [n],
164
164
  a
165
165
  );
166
166
  }
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { Enter as t, ArrowDown as i, ArrowLeft as w, ArrowRight as f, ArrowUp as y } from "@unicom-cloud/utils/constant/keyboardCode";
3
3
  import { useCallback as A } from "react";
4
4
  function E(n) {
@@ -1,4 +1,4 @@
1
- /* 2025-11-19 10:00:01 */
1
+ /* 2025-11-28 16:31:16 */
2
2
  import { useRef as r } from "react";
3
3
  function n(t) {
4
4
  const e = r(t);
@@ -1,9 +1,9 @@
1
- /* 2025-11-19 10:00:01 */
2
- import { useEffect as t } from "react";
1
+ /* 2025-11-28 16:31:16 */
2
+ import { useEffect as i } from "react";
3
3
  function o(e, n = []) {
4
- t(() => (window.addEventListener("resize", e), window.addEventListener("orientationchange", e), () => {
4
+ i(() => (window.addEventListener("resize", e), window.addEventListener("orientationchange", e), () => {
5
5
  window.removeEventListener("resize", e), window.removeEventListener("orientationchange", e);
6
- }), [...n]);
6
+ }), n);
7
7
  }
8
8
  export {
9
9
  o as default