@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.
- package/Development.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +1 -1
- package/Motion.js +9 -0
- package/Progress.js +1 -1
- package/ResizeObserver.js +10 -0
- package/Space.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/TransitionGroup.js +30 -29
- package/development/index.js +38 -27
- package/empty/index.js +36 -32
- package/flex/index.js +56 -50
- package/flex/interface.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/index.js +33 -37
- package/higher-order/withSpeechSynthesis.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +1 -1
- package/hooks/create-use-storage-state/index.js +1 -1
- package/hooks/createDeepCompareEffect.js +1 -1
- package/hooks/createUpdateEffect.js +1 -1
- package/hooks/createUseStorageState.js +1 -1
- package/hooks/index.js +181 -173
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.js +19 -20
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +5 -5
- package/hooks/use-cookie-state/index.js +1 -1
- package/hooks/use-count-down/index.js +3 -3
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-debounce/index.js +1 -1
- package/hooks/use-debounce-effect/index.js +1 -1
- package/hooks/use-debounce-fn/index.js +1 -1
- package/hooks/use-deep-compare-effect/index.js +1 -1
- package/hooks/use-deep-compare-layout-effect/index.js +1 -1
- package/hooks/use-document-visibility/index.js +1 -1
- package/hooks/use-drag/index.js +10 -10
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-event/index.js +10 -0
- package/hooks/use-event-listener/index.js +15 -16
- package/hooks/use-event-target/index.js +3 -3
- package/hooks/use-external/index.js +1 -1
- package/hooks/use-favicon/index.js +1 -1
- package/hooks/use-focus-within/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +13 -13
- package/hooks/use-get-state/index.js +6 -6
- package/hooks/use-history-travel/index.js +18 -18
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-view/index.js +1 -1
- package/hooks/use-in-viewport/index.js +17 -18
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +7 -6
- package/hooks/use-intersection-observers/index.js +34 -26
- package/hooks/use-interval/index.js +7 -7
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-key-press/index.js +21 -21
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +4 -4
- package/hooks/use-local-storage-state/index.js +1 -1
- package/hooks/use-lock-fn/index.js +1 -1
- package/hooks/use-long-press/index.js +24 -24
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +9 -0
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-move/index.js +69 -0
- package/hooks/use-mutation-observer/index.js +9 -9
- package/hooks/use-mutation-observers/index.js +33 -25
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.js +3 -3
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +15 -15
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +3 -3
- package/hooks/use-reactive/index.js +7 -7
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-refs/index.js +4 -4
- package/hooks/use-request/index.js +1 -1
- package/hooks/use-request/src/Fetch.js +1 -1
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +3 -3
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +8 -8
- package/hooks/use-request/src/plugins/usePollingPlugin.js +13 -13
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +3 -3
- package/hooks/use-request/src/plugins/useRetryPlugin.js +5 -5
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +3 -3
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +7 -7
- package/hooks/use-request/src/utils/cache.js +1 -1
- package/hooks/use-request/src/utils/cachePromise.js +1 -1
- package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
- package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
- package/hooks/use-request/src/utils/isOnline.js +1 -1
- package/hooks/use-request/src/utils/limit.js +1 -1
- package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
- package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
- package/hooks/use-reset-state/index.js +7 -7
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +34 -26
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +4 -4
- package/hooks/use-scroll/index.js +1 -1
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-size/index.js +20 -23
- package/hooks/use-state-callback/index.js +6 -6
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-sync-state/index.js +15 -0
- package/hooks/use-text-selection/index.js +13 -13
- package/hooks/use-theme/index.js +1 -1
- package/hooks/use-throttle/index.js +1 -1
- package/hooks/use-throttle-effect/index.js +1 -1
- package/hooks/use-throttle-fn/index.js +6 -6
- package/hooks/use-timeout/index.js +3 -3
- package/hooks/use-title/index.js +1 -1
- package/hooks/use-toggle/index.js +1 -1
- package/hooks/use-tracked-effect/index.js +1 -1
- package/hooks/use-unmount/index.js +1 -1
- package/hooks/use-unmounted-ref/index.js +4 -4
- package/hooks/use-update/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-url-state/index.js +3 -3
- package/hooks/use-virtual-list/index.js +10 -10
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +30 -30
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.js +28 -25
- package/hooks/useAsyncEffect.js +1 -1
- package/hooks/useBoolean.js +1 -1
- package/hooks/useClickAway.js +4 -5
- package/hooks/useComputedState.js +1 -1
- package/hooks/useControllableValue.js +1 -1
- package/hooks/useCookieState.js +1 -1
- package/hooks/useCountDown.js +1 -1
- package/hooks/useCounter.js +1 -1
- package/hooks/useCreate.js +1 -1
- package/hooks/useCreation.js +1 -1
- package/hooks/useDebounce.js +1 -1
- package/hooks/useDebounceEffect.js +1 -1
- package/hooks/useDebounceFn.js +1 -1
- package/hooks/useDeepCompareEffect.js +1 -1
- package/hooks/useDeepCompareLayoutEffect.js +1 -1
- package/hooks/useDocumentVisibility.js +1 -1
- package/hooks/useDrag.js +1 -1
- package/hooks/useDrop.js +1 -1
- package/hooks/useEvent.js +7 -0
- package/hooks/useEventListener.js +4 -5
- package/hooks/useEventTarget.js +1 -1
- package/hooks/useExternal.js +1 -1
- package/hooks/useFavicon.js +1 -1
- package/hooks/useFocusWithin.js +1 -1
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useFullscreen.js +1 -1
- package/hooks/useGetState.js +1 -1
- package/hooks/useHistoryTravel.js +1 -1
- package/hooks/useHover.js +1 -1
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useInViewport.js +4 -5
- package/hooks/useInfiniteScroll.js +1 -1
- package/hooks/useIntersectionObserver.js +5 -4
- package/hooks/useIntersectionObservers.js +11 -7
- package/hooks/useInterval.js +1 -1
- package/hooks/useIsFirstRender.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyPress.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useLatest.js +1 -1
- package/hooks/useListenWindowResize.js +1 -1
- package/hooks/useLocalStorageState.js +1 -1
- package/hooks/useLockFn.js +1 -1
- package/hooks/useLongPress.js +1 -1
- package/hooks/useMap.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/useMemo.js +6 -0
- package/hooks/useMemoizedFn.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useMount.js +1 -1
- package/hooks/useMouse.js +1 -1
- package/hooks/useMove.js +10 -0
- package/hooks/useMutationObserver.js +1 -1
- package/hooks/useMutationObservers.js +11 -7
- package/hooks/useNetwork.js +1 -1
- package/hooks/useOnlineStatus.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +3 -3
- package/hooks/usePagination.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/useRafInterval.js +1 -1
- package/hooks/useRafState.js +1 -1
- package/hooks/useRafTimeout.js +1 -1
- package/hooks/useReactive.js +1 -1
- package/hooks/useRefLatest.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useRequest.js +1 -1
- package/hooks/useResetState.js +1 -1
- package/hooks/useResizeObserver.js +1 -1
- package/hooks/useResizeObservers.js +11 -7
- package/hooks/useResponsive.js +1 -1
- package/hooks/useSafeState.js +1 -1
- package/hooks/useScroll.js +1 -1
- package/hooks/useSelections.js +1 -1
- package/hooks/useSessionStorageState.js +1 -1
- package/hooks/useSet.js +1 -1
- package/hooks/useSetState.js +1 -1
- package/hooks/useSize.js +4 -3
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useSyncState.js +10 -0
- package/hooks/useTextSelection.js +1 -1
- package/hooks/useTheme.js +1 -1
- package/hooks/useThrottle.js +1 -1
- package/hooks/useThrottleEffect.js +1 -1
- package/hooks/useThrottleFn.js +1 -1
- package/hooks/useTimeout.js +1 -1
- package/hooks/useTitle.js +1 -1
- package/hooks/useToggle.js +1 -1
- package/hooks/useTrackedEffect.js +1 -1
- package/hooks/useUnmount.js +1 -1
- package/hooks/useUnmountedRef.js +1 -1
- package/hooks/useUpdate.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useUpdateLayoutEffect.js +1 -1
- package/hooks/useUrlState.js +1 -1
- package/hooks/useVirtualList.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWebSocket.js +1 -1
- package/hooks/useWhyDidYouUpdate.js +1 -1
- package/hooks/useWindowSize.js +4 -3
- package/hooks/utils/createEffectWithTarget.js +11 -12
- package/hooks/utils/depsAreSame.js +1 -1
- package/hooks/utils/depsEqual.js +1 -1
- package/hooks/utils/domTarget.js +1 -1
- package/hooks/utils/getDocumentOrShadow.js +5 -6
- package/hooks/utils/index.js +1 -1
- package/hooks/utils/isAppleDevice.js +1 -1
- package/hooks/utils/isBrowser.js +1 -1
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +4 -4
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/hooks/utils.js +1 -1
- package/icons/file/index.js +31 -24
- package/icons/file.js +1 -1
- package/index.js +47 -46
- package/motion/CSSMotion.js +102 -0
- package/motion/CSSMotionList.js +100 -0
- package/motion/context.js +14 -0
- package/motion/hooks/useDomMotionEvents.js +21 -0
- package/motion/hooks/useNextFrame.js +24 -0
- package/motion/hooks/useStatus.js +121 -0
- package/motion/hooks/useStepQueue.js +44 -0
- package/motion/index.js +9 -0
- package/motion/interface.js +14 -0
- package/motion/util/diff.js +56 -0
- package/motion/util/motion.js +56 -0
- package/package.json +1 -1
- package/progress/index.js +1 -1
- package/resize-observer/Collection.js +25 -0
- package/resize-observer/SingleObserver.js +48 -0
- package/resize-observer/index.js +27 -0
- package/resize-observer/observerUtil.js +22 -0
- package/space/index.js +65 -52
- package/suspense-fallback-test/index.js +1 -1
- package/transition-group/CSSTransition.js +59 -54
- package/transition-group/ChildMapping.js +68 -0
- package/transition-group/PqbCSSTransition.js +22 -18
- package/transition-group/ReplaceTransition.js +7 -7
- package/transition-group/SwitchTransition.js +1 -1
- package/transition-group/Transition.js +56 -52
- package/transition-group/TransitionGroup.js +2 -3
- package/transition-group/TransitionGroupContext.js +1 -1
- package/transition-group/index.js +30 -29
- package/types/hooks/index.d.ts +4 -0
- package/types/hooks/use-event/index.d.ts +2 -0
- package/types/hooks/use-intersection-observers/index.d.ts +3 -1
- package/types/hooks/use-listen-window-resize/index.d.ts +4 -4
- package/types/hooks/use-memo/index.d.ts +2 -0
- package/types/hooks/use-move/index.d.ts +4 -0
- package/types/hooks/use-mutation-observers/index.d.ts +3 -1
- package/types/hooks/use-resize-observers/index.d.ts +3 -1
- package/types/hooks/use-size/index.d.ts +1 -1
- package/types/hooks/use-sync-state/index.d.ts +10 -0
- package/types/hooks/use-window-size/index.d.ts +2 -3
- package/types/motion/CSSMotion.d.ts +77 -0
- package/types/motion/CSSMotionList.d.ts +34 -0
- package/types/motion/context.d.ts +9 -0
- package/types/motion/hooks/useDomMotionEvents.d.ts +3 -0
- package/types/motion/hooks/useNextFrame.d.ts +7 -0
- package/types/motion/hooks/useStatus.d.ts +5 -0
- package/types/motion/hooks/useStepQueue.d.ts +8 -0
- package/types/motion/index.d.ts +9 -0
- package/types/motion/interface.d.ts +22 -0
- package/types/motion/util/diff.d.ts +20 -0
- package/types/motion/util/motion.d.ts +10 -0
- package/types/resize-observer/Collection.d.ts +9 -0
- package/types/resize-observer/SingleObserver.d.ts +7 -0
- package/types/resize-observer/index.d.ts +7 -0
- package/types/resize-observer/interface.d.ts +25 -0
- package/types/resize-observer/observerUtil.d.ts +3 -0
- package/types/space/interface.d.ts +1 -1
- package/types/transition-group/CSSTransition.d.ts +0 -1
- package/types/transition-group/{utils/ChildMapping.d.ts → ChildMapping.d.ts} +4 -4
- package/types/transition-group/SwitchTransition.d.ts +3 -3
- package/types/transition-group/Transition.d.ts +1 -1
- package/types/transition-group/TransitionGroup.d.ts +1 -1
- package/types/transition-group/index.d.ts +1 -1
- package/types/utils/callbackOriginRef.d.ts +4 -0
- package/types/utils/dom.d.ts +2 -1
- package/types/utils/findRootElement.d.ts +23 -0
- package/types/utils/index.d.ts +4 -2
- package/types/utils/is.d.ts +5 -4
- package/types/utils/lodash.d.ts +2 -1
- package/types/utils/ref.d.ts +27 -0
- package/types/utils/setCreateRoot.d.ts +13 -0
- package/types/utils/toArray.d.ts +3 -3
- package/utils/callbackOriginRef.js +11 -0
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/compute.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +12 -10
- package/utils/emitter.js +1 -1
- package/utils/fileToURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +28 -0
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +341 -329
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +72 -81
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +45 -43
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +2 -2
- package/utils/ref.js +41 -0
- package/utils/resizeObserver.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +53 -0
- package/utils/setDarkTheme.js +1 -1
- package/utils/setDir.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +9 -9
- package/utils/tree.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
- package/transition-group/utils/ChildMapping.js +0 -66
- package/types/utils/reactDOM.d.ts +0 -34
- package/types/utils/supportRef.d.ts +0 -3
- package/utils/reactDOM.js +0 -87
- package/utils/supportRef.js +0 -10
package/hooks/useInViewport.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
|
+
import "lodash/castArray";
|
|
2
3
|
import "react";
|
|
3
|
-
import "../utils/is.js";
|
|
4
4
|
import "./utils/domTarget.js";
|
|
5
5
|
import "./utils/useEffectWithTarget.js";
|
|
6
|
-
import "
|
|
7
|
-
import { default as f } from "./use-in-viewport/index.js";
|
|
6
|
+
import { default as e } from "./use-in-viewport/index.js";
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
e as default
|
|
10
9
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
2
|
import "react";
|
|
3
|
+
import "@unicom-cloud/utils/dom-helpers/canUseDOM";
|
|
3
4
|
import "@unicom-cloud/utils/dom-helpers/reflow";
|
|
4
5
|
import "../utils/is.js";
|
|
5
6
|
import "@unicom-cloud/utils/is";
|
|
6
|
-
import { default as
|
|
7
|
+
import { default as s, supportIntersectionObserver as f } from "./use-intersection-observer/index.js";
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
s as default,
|
|
10
|
+
f as supportIntersectionObserver
|
|
10
11
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
2
|
import "lodash/throttle";
|
|
3
3
|
import "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
8
|
import "../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,6 +59,7 @@ 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";
|
|
@@ -72,23 +76,23 @@ 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";
|
|
92
|
+
import "./use-latest/index.js";
|
|
89
93
|
import "@unicom-cloud/utils/is";
|
|
90
|
-
import { useIntersectionObservers as
|
|
94
|
+
import { useIntersectionObservers as Nr, useIntersectionObservers as Pr } from "./use-intersection-observers/index.js";
|
|
91
95
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
Nr as default,
|
|
97
|
+
Pr as useIntersectionObservers
|
|
94
98
|
};
|
package/hooks/useInterval.js
CHANGED
package/hooks/useKeyPress.js
CHANGED
package/hooks/useLatest.js
CHANGED
package/hooks/useLockFn.js
CHANGED
package/hooks/useLongPress.js
CHANGED
package/hooks/useMap.js
CHANGED
package/hooks/useMedia.js
CHANGED
package/hooks/useMemo.js
ADDED
package/hooks/useMemoizedFn.js
CHANGED
package/hooks/useMergeProps.js
CHANGED
package/hooks/useMergeValue.js
CHANGED
package/hooks/useMount.js
CHANGED
package/hooks/useMouse.js
CHANGED
package/hooks/useMove.js
ADDED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
2
|
import "lodash/throttle";
|
|
3
3
|
import "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
8
|
import "../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,6 +59,7 @@ 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";
|
|
@@ -72,23 +76,23 @@ 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";
|
|
92
|
+
import "./use-latest/index.js";
|
|
89
93
|
import "@unicom-cloud/utils/is";
|
|
90
|
-
import { useMutationObservers as
|
|
94
|
+
import { useMutationObservers as Nr, useMutationObservers as Pr } from "./use-mutation-observers/index.js";
|
|
91
95
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
Nr as default,
|
|
97
|
+
Pr as useMutationObservers
|
|
94
98
|
};
|
package/hooks/useNetwork.js
CHANGED
package/hooks/useOnlineStatus.js
CHANGED
package/hooks/useOverrideRef.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
2
|
import "react";
|
|
3
|
-
import "../utils/
|
|
4
|
-
import "../utils/
|
|
3
|
+
import "../utils/callbackOriginRef.js";
|
|
4
|
+
import "../utils/ref.js";
|
|
5
5
|
import { default as i } from "./use-override-ref/index.js";
|
|
6
6
|
export {
|
|
7
7
|
i as default
|
package/hooks/usePagination.js
CHANGED
package/hooks/usePrevious.js
CHANGED
package/hooks/useRafInterval.js
CHANGED
package/hooks/useRafState.js
CHANGED
package/hooks/useRafTimeout.js
CHANGED
package/hooks/useReactive.js
CHANGED
package/hooks/useRefLatest.js
CHANGED
package/hooks/useRefs.js
CHANGED
package/hooks/useRequest.js
CHANGED
package/hooks/useResetState.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
2
|
import "lodash/throttle";
|
|
3
3
|
import "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
8
|
import "../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,6 +59,7 @@ 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";
|
|
@@ -72,23 +76,23 @@ 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";
|
|
92
|
+
import "./use-latest/index.js";
|
|
89
93
|
import "@unicom-cloud/utils/is";
|
|
90
|
-
import { useResizeObservers as
|
|
94
|
+
import { useResizeObservers as Mr, useResizeObservers as Nr } from "./use-resize-observers/index.js";
|
|
91
95
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
Mr as default,
|
|
97
|
+
Nr as useResizeObservers
|
|
94
98
|
};
|
package/hooks/useResponsive.js
CHANGED
package/hooks/useSafeState.js
CHANGED
package/hooks/useScroll.js
CHANGED
package/hooks/useSelections.js
CHANGED
package/hooks/useSet.js
CHANGED
package/hooks/useSetState.js
CHANGED
package/hooks/useSize.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
2
|
import "react";
|
|
3
3
|
import "../utils/is.js";
|
|
4
|
+
import "./use-latest/index.js";
|
|
4
5
|
import "./use-raf-state/index.js";
|
|
5
6
|
import "./utils/domTarget.js";
|
|
6
7
|
import "./utils/useIsomorphicLayoutEffectWithTarget.js";
|
|
7
8
|
import "@unicom-cloud/utils/is";
|
|
8
|
-
import { default as
|
|
9
|
+
import { default as d } from "./use-size/index.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
d as default
|
|
11
12
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* 2025-11-28 16:31:16 */
|
|
2
|
+
import "react";
|
|
3
|
+
import "../utils/is.js";
|
|
4
|
+
import "./use-event/index.js";
|
|
5
|
+
import "./use-update/index.js";
|
|
6
|
+
import "@unicom-cloud/utils/is";
|
|
7
|
+
import { default as f } from "./use-sync-state/index.js";
|
|
8
|
+
export {
|
|
9
|
+
f as default
|
|
10
|
+
};
|
package/hooks/useTheme.js
CHANGED
package/hooks/useThrottle.js
CHANGED