@unicom-cloud/ui-common 0.1.18 → 0.1.20
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/.virtual/_rolldown/runtime.js +1 -1
- package/.vite/manifest.json +127 -191
- package/development/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/index.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +8 -7
- package/hooks/create-update-effect/index.d.ts +1 -1
- package/hooks/create-update-effect/index.js +9 -10
- package/hooks/create-use-storage-state/index.d.ts +2 -1
- package/hooks/create-use-storage-state/index.js +44 -35
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +82 -81
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.d.ts +2 -2
- package/hooks/use-click-away/index.js +7 -3
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-cookie-state/index.d.ts +34 -1
- package/hooks/use-cookie-state/index.js +16 -16
- package/hooks/use-count-down/index.js +1 -1
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.d.ts +4 -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 +1 -1
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-emitter/demo/demo1.d.ts +10 -0
- package/hooks/use-event-emitter/index.d.ts +8 -0
- package/hooks/use-event-emitter/index.js +26 -0
- package/hooks/use-event-listener/index.d.ts +3 -2
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-event-target/index.js +1 -1
- package/hooks/use-external/index.js +25 -24
- 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 +1 -1
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.js +1 -1
- 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 +1 -1
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +25 -25
- package/hooks/use-interval/index.js +1 -1
- 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 +1 -1
- package/hooks/use-keyboard-event/index.js +3 -3
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.d.ts +1 -1
- package/hooks/use-listen-window-resize/index.js +3 -3
- 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 +1 -1
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +1 -1
- package/hooks/use-memoized-fn/index.d.ts +1 -1
- package/hooks/use-memoized-fn/index.js +3 -3
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/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 +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +24 -24
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +17 -16
- package/hooks/use-override-ref/index.js +1 -1
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-paste-image/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 +1 -1
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +1 -1
- package/hooks/use-reactive/index.js +1 -1
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-refs/index.js +13 -12
- 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 +1 -1
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/useRequest.d.ts +6 -2
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +1 -1
- 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 +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +25 -25
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- 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 +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.d.ts +11 -1
- package/hooks/use-state-with-promise/index.js +21 -20
- package/hooks/use-sync-state/index.js +1 -1
- package/hooks/use-text-selection/index.js +1 -1
- 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 +1 -1
- package/hooks/use-timeout/index.js +1 -1
- package/hooks/use-title/index.js +1 -1
- package/hooks/use-toggle/index.js +12 -11
- package/hooks/use-tracked-effect/index.js +1 -1
- package/hooks/use-unmount/index.js +1 -1
- package/hooks/use-unmounted-ref/index.js +1 -1
- package/hooks/use-update/index.d.ts +3 -1
- package/hooks/use-update/index.js +5 -5
- 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 +1 -1
- package/hooks/use-virtual-list/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +1 -1
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.d.ts +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/utils/createEffectWithTarget.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/icons/file/index.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +574 -537
- package/package.json +1 -1
- package/progress/index.js +43 -43
- package/resize-observer/Collection.d.ts +2 -2
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/index.js +2 -2
- package/resize-observer/observerUtil.js +1 -1
- package/space/index.js +1 -1
- package/style/animation.less +16 -4
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/test.d.ts +0 -0
- package/test.js +5 -0
- package/timer/index.js +1 -1
- package/transition/Transition.d.ts +11 -0
- package/transition/Transition.js +92 -0
- package/transition/TransitionCSS.d.ts +11 -0
- package/transition/TransitionCSS.js +33 -0
- package/transition/TransitionGroup.d.ts +11 -0
- package/transition/TransitionGroup.js +62 -0
- package/transition/TransitionStyle.d.ts +11 -0
- package/transition/TransitionStyle.js +46 -0
- package/transition/constants.d.ts +43 -0
- package/transition/constants.js +46 -0
- package/transition/index.d.ts +12 -0
- package/transition/index.js +12 -0
- package/transition/interface.d.ts +192 -0
- package/transition/utils.d.ts +19 -0
- package/transition/utils.js +97 -0
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.d.ts +1 -1
- package/utils/dayjs.js +19 -13
- package/utils/dom.js +15 -15
- package/utils/emitter.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.d.ts +6 -4
- package/utils/findRootElement.js +2 -2
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.d.ts +3 -0
- package/utils/getScrollBarHeight.js +7 -0
- package/utils/getScrollBarSize.d.ts +3 -0
- package/utils/getScrollBarSize.js +10 -0
- package/utils/getScrollBarWidth.d.ts +3 -0
- package/utils/getScrollBarWidth.js +7 -0
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +3 -0
- package/utils/index.js +277 -269
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.d.ts +8 -7
- package/utils/is.js +23 -20
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- 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.d.ts +5 -1
- package/utils/omit.js +4 -8
- package/utils/pad.js +1 -1
- package/utils/pick.d.ts +4 -1
- package/utils/pick.js +5 -10
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +2 -2
- package/utils/resizeObserver.js +21 -21
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- 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 +1 -1
- 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/version/index.js +11 -14
- package/motion/CSSMotion.d.ts +0 -77
- package/motion/CSSMotion.js +0 -76
- package/motion/CSSMotionList.d.ts +0 -34
- package/motion/CSSMotionList.js +0 -82
- package/motion/context.d.ts +0 -9
- package/motion/context.js +0 -14
- package/motion/hooks/useDomMotionEvents.d.ts +0 -3
- package/motion/hooks/useDomMotionEvents.js +0 -19
- package/motion/hooks/useNextFrame.d.ts +0 -7
- package/motion/hooks/useNextFrame.js +0 -22
- package/motion/hooks/useStatus.d.ts +0 -5
- package/motion/hooks/useStatus.js +0 -92
- package/motion/hooks/useStepQueue.d.ts +0 -8
- package/motion/hooks/useStepQueue.js +0 -39
- package/motion/index.d.ts +0 -9
- package/motion/index.js +0 -9
- package/motion/interface.d.ts +0 -22
- package/motion/interface.js +0 -6
- package/motion/util/diff.d.ts +0 -20
- package/motion/util/diff.js +0 -50
- package/motion/util/motion.d.ts +0 -10
- package/motion/util/motion.js +0 -37
- package/transition-group/CSSTransition.d.ts +0 -97
- package/transition-group/CSSTransition.js +0 -73
- package/transition-group/ChildMapping.d.ts +0 -27
- package/transition-group/ChildMapping.js +0 -61
- package/transition-group/PqbCSSTransition.d.ts +0 -4
- package/transition-group/PqbCSSTransition.js +0 -34
- package/transition-group/ReplaceTransition.d.ts +0 -23
- package/transition-group/ReplaceTransition.js +0 -38
- package/transition-group/SwitchTransition.d.ts +0 -88
- package/transition-group/SwitchTransition.js +0 -84
- package/transition-group/Transition.d.ts +0 -130
- package/transition-group/Transition.js +0 -139
- package/transition-group/TransitionGroup.d.ts +0 -31
- package/transition-group/TransitionGroup.js +0 -54
- package/transition-group/TransitionGroupContext.d.ts +0 -3
- package/transition-group/TransitionGroupContext.js +0 -7
- package/transition-group/index.d.ts +0 -9
- package/transition-group/index.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:51:31 星期二 */
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.prototype.hasOwnProperty, i = (t, n) => {
|
|
4
4
|
let r = {};
|
package/.vite/manifest.json
CHANGED
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
"src": "components/common/hooks/create-deep-compare-effect/index.ts",
|
|
59
59
|
"isEntry": true,
|
|
60
60
|
"imports": [
|
|
61
|
-
"components/common/hooks/utils/depsEqual.ts"
|
|
61
|
+
"components/common/hooks/utils/depsEqual.ts",
|
|
62
|
+
"components/common/utils/is.ts"
|
|
62
63
|
]
|
|
63
64
|
},
|
|
64
65
|
"components/common/hooks/create-update-effect/index.ts": {
|
|
@@ -75,6 +76,7 @@
|
|
|
75
76
|
"imports": [
|
|
76
77
|
"components/common/hooks/use-event-listener/index.ts",
|
|
77
78
|
"components/common/hooks/use-memoized-fn/index.ts",
|
|
79
|
+
"components/common/hooks/use-mount/index.ts",
|
|
78
80
|
"components/common/hooks/use-update-effect/index.ts",
|
|
79
81
|
"components/common/utils/is.ts"
|
|
80
82
|
]
|
|
@@ -104,6 +106,7 @@
|
|
|
104
106
|
"components/common/hooks/use-document-visibility/index.ts",
|
|
105
107
|
"components/common/hooks/use-drag/index.ts",
|
|
106
108
|
"components/common/hooks/use-drop/index.ts",
|
|
109
|
+
"components/common/hooks/use-event-emitter/index.ts",
|
|
107
110
|
"components/common/hooks/use-event-listener/index.ts",
|
|
108
111
|
"components/common/hooks/use-event-target/index.ts",
|
|
109
112
|
"components/common/hooks/use-event/index.ts",
|
|
@@ -376,6 +379,12 @@
|
|
|
376
379
|
"src": "components/common/hooks/use-effect-event/index.ts",
|
|
377
380
|
"isEntry": true
|
|
378
381
|
},
|
|
382
|
+
"components/common/hooks/use-event-emitter/index.ts": {
|
|
383
|
+
"file": "hooks/use-event-emitter/index.js",
|
|
384
|
+
"name": "hooks/use-event-emitter/index",
|
|
385
|
+
"src": "components/common/hooks/use-event-emitter/index.ts",
|
|
386
|
+
"isEntry": true
|
|
387
|
+
},
|
|
379
388
|
"components/common/hooks/use-event-listener/index.ts": {
|
|
380
389
|
"file": "hooks/use-event-listener/index.js",
|
|
381
390
|
"name": "hooks/use-event-listener/index",
|
|
@@ -410,7 +419,10 @@
|
|
|
410
419
|
"file": "hooks/use-external/index.js",
|
|
411
420
|
"name": "hooks/use-external/index",
|
|
412
421
|
"src": "components/common/hooks/use-external/index.ts",
|
|
413
|
-
"isEntry": true
|
|
422
|
+
"isEntry": true,
|
|
423
|
+
"imports": [
|
|
424
|
+
"components/common/utils/is.ts"
|
|
425
|
+
]
|
|
414
426
|
},
|
|
415
427
|
"components/common/hooks/use-favicon/index.ts": {
|
|
416
428
|
"file": "hooks/use-favicon/index.js",
|
|
@@ -759,7 +771,10 @@
|
|
|
759
771
|
"file": "hooks/use-overflow-hidden/index.js",
|
|
760
772
|
"name": "hooks/use-overflow-hidden/index",
|
|
761
773
|
"src": "components/common/hooks/use-overflow-hidden/index.ts",
|
|
762
|
-
"isEntry": true
|
|
774
|
+
"isEntry": true,
|
|
775
|
+
"imports": [
|
|
776
|
+
"components/common/utils/getScrollBarWidth.ts"
|
|
777
|
+
]
|
|
763
778
|
},
|
|
764
779
|
"components/common/hooks/use-override-ref/index.ts": {
|
|
765
780
|
"file": "hooks/use-override-ref/index.js",
|
|
@@ -862,7 +877,10 @@
|
|
|
862
877
|
"file": "hooks/use-refs/index.js",
|
|
863
878
|
"name": "hooks/use-refs/index",
|
|
864
879
|
"src": "components/common/hooks/use-refs/index.ts",
|
|
865
|
-
"isEntry": true
|
|
880
|
+
"isEntry": true,
|
|
881
|
+
"imports": [
|
|
882
|
+
"components/common/utils/is.ts"
|
|
883
|
+
]
|
|
866
884
|
},
|
|
867
885
|
"components/common/hooks/use-request/index.ts": {
|
|
868
886
|
"file": "hooks/use-request/index.js",
|
|
@@ -1265,7 +1283,10 @@
|
|
|
1265
1283
|
"file": "hooks/use-toggle/index.js",
|
|
1266
1284
|
"name": "hooks/use-toggle/index",
|
|
1267
1285
|
"src": "components/common/hooks/use-toggle/index.ts",
|
|
1268
|
-
"isEntry": true
|
|
1286
|
+
"isEntry": true,
|
|
1287
|
+
"imports": [
|
|
1288
|
+
"components/common/utils/is.ts"
|
|
1289
|
+
]
|
|
1269
1290
|
},
|
|
1270
1291
|
"components/common/hooks/use-tracked-effect/index.ts": {
|
|
1271
1292
|
"file": "hooks/use-tracked-effect/index.js",
|
|
@@ -1536,6 +1557,7 @@
|
|
|
1536
1557
|
"components/common/hooks/use-document-visibility/index.ts",
|
|
1537
1558
|
"components/common/hooks/use-drag/index.ts",
|
|
1538
1559
|
"components/common/hooks/use-drop/index.ts",
|
|
1560
|
+
"components/common/hooks/use-event-emitter/index.ts",
|
|
1539
1561
|
"components/common/hooks/use-event-listener/index.ts",
|
|
1540
1562
|
"components/common/hooks/use-event-target/index.ts",
|
|
1541
1563
|
"components/common/hooks/use-event/index.ts",
|
|
@@ -1629,14 +1651,13 @@
|
|
|
1629
1651
|
"components/common/space/index.tsx",
|
|
1630
1652
|
"components/common/suspense-fallback-test/index.tsx",
|
|
1631
1653
|
"components/common/timer/index.tsx",
|
|
1632
|
-
"components/common/transition
|
|
1633
|
-
"components/common/transition
|
|
1634
|
-
"components/common/transition
|
|
1635
|
-
"components/common/transition
|
|
1636
|
-
"components/common/transition
|
|
1637
|
-
"components/common/transition
|
|
1638
|
-
"components/common/transition
|
|
1639
|
-
"components/common/transition-group/index.ts",
|
|
1654
|
+
"components/common/transition/Transition.tsx",
|
|
1655
|
+
"components/common/transition/TransitionCSS.tsx",
|
|
1656
|
+
"components/common/transition/TransitionGroup.tsx",
|
|
1657
|
+
"components/common/transition/TransitionStyle.tsx",
|
|
1658
|
+
"components/common/transition/constants.ts",
|
|
1659
|
+
"components/common/transition/index.ts",
|
|
1660
|
+
"components/common/transition/utils.ts",
|
|
1640
1661
|
"components/common/utils/callOrReturn.ts",
|
|
1641
1662
|
"components/common/utils/callbackOriginRef.ts",
|
|
1642
1663
|
"components/common/utils/caseName.ts",
|
|
@@ -1653,6 +1674,9 @@
|
|
|
1653
1674
|
"components/common/utils/findRootElement.ts",
|
|
1654
1675
|
"components/common/utils/getHighlightText.ts",
|
|
1655
1676
|
"components/common/utils/getHotkeyHandler.ts",
|
|
1677
|
+
"components/common/utils/getScrollBarHeight.ts",
|
|
1678
|
+
"components/common/utils/getScrollBarSize.ts",
|
|
1679
|
+
"components/common/utils/getScrollBarWidth.ts",
|
|
1656
1680
|
"components/common/utils/getStringLength.ts",
|
|
1657
1681
|
"components/common/utils/include.ts",
|
|
1658
1682
|
"components/common/utils/index.ts",
|
|
@@ -1691,118 +1715,6 @@
|
|
|
1691
1715
|
"components/common/version/index.ts"
|
|
1692
1716
|
]
|
|
1693
1717
|
},
|
|
1694
|
-
"components/common/motion/CSSMotion.tsx": {
|
|
1695
|
-
"file": "motion/CSSMotion.js",
|
|
1696
|
-
"name": "motion/CSSMotion",
|
|
1697
|
-
"src": "components/common/motion/CSSMotion.tsx",
|
|
1698
|
-
"isEntry": true,
|
|
1699
|
-
"imports": [
|
|
1700
|
-
"components/common/motion/context.tsx",
|
|
1701
|
-
"components/common/motion/hooks/useStatus.ts",
|
|
1702
|
-
"components/common/motion/hooks/useStepQueue.ts",
|
|
1703
|
-
"components/common/motion/interface.ts",
|
|
1704
|
-
"components/common/motion/util/motion.ts",
|
|
1705
|
-
"components/common/utils/className.ts",
|
|
1706
|
-
"components/common/utils/findRootElement.ts",
|
|
1707
|
-
"components/common/utils/is.ts",
|
|
1708
|
-
"components/common/utils/ref.ts"
|
|
1709
|
-
]
|
|
1710
|
-
},
|
|
1711
|
-
"components/common/motion/CSSMotionList.tsx": {
|
|
1712
|
-
"file": "motion/CSSMotionList.js",
|
|
1713
|
-
"name": "motion/CSSMotionList",
|
|
1714
|
-
"src": "components/common/motion/CSSMotionList.tsx",
|
|
1715
|
-
"isEntry": true,
|
|
1716
|
-
"imports": [
|
|
1717
|
-
"components/common/motion/CSSMotion.tsx",
|
|
1718
|
-
"components/common/motion/util/diff.ts",
|
|
1719
|
-
"components/common/motion/util/motion.ts"
|
|
1720
|
-
]
|
|
1721
|
-
},
|
|
1722
|
-
"components/common/motion/context.tsx": {
|
|
1723
|
-
"file": "motion/context.js",
|
|
1724
|
-
"name": "motion/context",
|
|
1725
|
-
"src": "components/common/motion/context.tsx",
|
|
1726
|
-
"isEntry": true
|
|
1727
|
-
},
|
|
1728
|
-
"components/common/motion/hooks/useDomMotionEvents.ts": {
|
|
1729
|
-
"file": "motion/hooks/useDomMotionEvents.js",
|
|
1730
|
-
"name": "motion/hooks/useDomMotionEvents",
|
|
1731
|
-
"src": "components/common/motion/hooks/useDomMotionEvents.ts",
|
|
1732
|
-
"isDynamicEntry": true,
|
|
1733
|
-
"imports": [
|
|
1734
|
-
"components/common/motion/util/motion.ts"
|
|
1735
|
-
]
|
|
1736
|
-
},
|
|
1737
|
-
"components/common/motion/hooks/useNextFrame.ts": {
|
|
1738
|
-
"file": "motion/hooks/useNextFrame.js",
|
|
1739
|
-
"name": "motion/hooks/useNextFrame",
|
|
1740
|
-
"src": "components/common/motion/hooks/useNextFrame.ts",
|
|
1741
|
-
"isDynamicEntry": true
|
|
1742
|
-
},
|
|
1743
|
-
"components/common/motion/hooks/useStatus.ts": {
|
|
1744
|
-
"file": "motion/hooks/useStatus.js",
|
|
1745
|
-
"name": "motion/hooks/useStatus",
|
|
1746
|
-
"src": "components/common/motion/hooks/useStatus.ts",
|
|
1747
|
-
"isDynamicEntry": true,
|
|
1748
|
-
"imports": [
|
|
1749
|
-
"components/common/hooks/use-event/index.ts",
|
|
1750
|
-
"components/common/hooks/use-isomorphic-layout-effect/index.ts",
|
|
1751
|
-
"components/common/hooks/use-safe-state/index.ts",
|
|
1752
|
-
"components/common/hooks/use-sync-state/index.ts",
|
|
1753
|
-
"components/common/motion/hooks/useDomMotionEvents.ts",
|
|
1754
|
-
"components/common/motion/hooks/useStepQueue.ts",
|
|
1755
|
-
"components/common/motion/interface.ts"
|
|
1756
|
-
]
|
|
1757
|
-
},
|
|
1758
|
-
"components/common/motion/hooks/useStepQueue.ts": {
|
|
1759
|
-
"file": "motion/hooks/useStepQueue.js",
|
|
1760
|
-
"name": "motion/hooks/useStepQueue",
|
|
1761
|
-
"src": "components/common/motion/hooks/useStepQueue.ts",
|
|
1762
|
-
"isDynamicEntry": true,
|
|
1763
|
-
"imports": [
|
|
1764
|
-
"components/common/hooks/use-isomorphic-layout-effect/index.ts",
|
|
1765
|
-
"components/common/hooks/use-safe-state/index.ts",
|
|
1766
|
-
"components/common/motion/hooks/useNextFrame.ts",
|
|
1767
|
-
"components/common/motion/interface.ts"
|
|
1768
|
-
]
|
|
1769
|
-
},
|
|
1770
|
-
"components/common/motion/index.tsx": {
|
|
1771
|
-
"file": "motion/index.js",
|
|
1772
|
-
"name": "motion/index",
|
|
1773
|
-
"src": "components/common/motion/index.tsx",
|
|
1774
|
-
"isEntry": true,
|
|
1775
|
-
"imports": [
|
|
1776
|
-
"components/common/motion/CSSMotion.tsx",
|
|
1777
|
-
"components/common/motion/CSSMotionList.tsx",
|
|
1778
|
-
"components/common/motion/context.tsx"
|
|
1779
|
-
]
|
|
1780
|
-
},
|
|
1781
|
-
"components/common/motion/interface.ts": {
|
|
1782
|
-
"file": "motion/interface.js",
|
|
1783
|
-
"name": "motion/interface",
|
|
1784
|
-
"src": "components/common/motion/interface.ts",
|
|
1785
|
-
"isDynamicEntry": true
|
|
1786
|
-
},
|
|
1787
|
-
"components/common/motion/util/diff.ts": {
|
|
1788
|
-
"file": "motion/util/diff.js",
|
|
1789
|
-
"name": "motion/util/diff",
|
|
1790
|
-
"src": "components/common/motion/util/diff.ts",
|
|
1791
|
-
"isDynamicEntry": true,
|
|
1792
|
-
"imports": [
|
|
1793
|
-
"components/common/utils/is.ts"
|
|
1794
|
-
]
|
|
1795
|
-
},
|
|
1796
|
-
"components/common/motion/util/motion.ts": {
|
|
1797
|
-
"file": "motion/util/motion.js",
|
|
1798
|
-
"name": "motion/util/motion",
|
|
1799
|
-
"src": "components/common/motion/util/motion.ts",
|
|
1800
|
-
"isDynamicEntry": true,
|
|
1801
|
-
"imports": [
|
|
1802
|
-
"components/common/utils/dom.ts",
|
|
1803
|
-
"components/common/utils/is.ts"
|
|
1804
|
-
]
|
|
1805
|
-
},
|
|
1806
1718
|
"components/common/progress/index.js": {
|
|
1807
1719
|
"file": "progress/index.js",
|
|
1808
1720
|
"name": "progress/index",
|
|
@@ -1867,6 +1779,12 @@
|
|
|
1867
1779
|
"src": "components/common/suspense-fallback-test/index.tsx",
|
|
1868
1780
|
"isEntry": true
|
|
1869
1781
|
},
|
|
1782
|
+
"components/common/test.js": {
|
|
1783
|
+
"file": "test.js",
|
|
1784
|
+
"name": "test",
|
|
1785
|
+
"src": "components/common/test.js",
|
|
1786
|
+
"isEntry": true
|
|
1787
|
+
},
|
|
1870
1788
|
"components/common/timer/index.tsx": {
|
|
1871
1789
|
"file": "timer/index.js",
|
|
1872
1790
|
"name": "timer/index",
|
|
@@ -1877,100 +1795,91 @@
|
|
|
1877
1795
|
"components/common/utils/is.ts"
|
|
1878
1796
|
]
|
|
1879
1797
|
},
|
|
1880
|
-
"components/common/transition
|
|
1881
|
-
"file": "transition
|
|
1882
|
-
"name": "transition
|
|
1883
|
-
"src": "components/common/transition
|
|
1798
|
+
"components/common/transition/Transition.tsx": {
|
|
1799
|
+
"file": "transition/Transition.js",
|
|
1800
|
+
"name": "transition/Transition",
|
|
1801
|
+
"src": "components/common/transition/Transition.tsx",
|
|
1884
1802
|
"isEntry": true,
|
|
1885
1803
|
"imports": [
|
|
1886
|
-
"components/common/
|
|
1804
|
+
"components/common/hooks/index.ts",
|
|
1805
|
+
"components/common/hooks/use-create/index.ts",
|
|
1806
|
+
"components/common/hooks/use-is-first-render/index.ts",
|
|
1807
|
+
"components/common/hooks/use-latest/index.ts",
|
|
1808
|
+
"components/common/hooks/use-update-effect/index.ts",
|
|
1809
|
+
"components/common/hooks/use-update-layout-effect/index.ts",
|
|
1810
|
+
"components/common/transition/constants.ts",
|
|
1811
|
+
"components/common/transition/utils.ts",
|
|
1887
1812
|
"components/common/utils/dom.ts",
|
|
1888
1813
|
"components/common/utils/findRootElement.ts",
|
|
1889
|
-
"components/common/utils/is.ts"
|
|
1814
|
+
"components/common/utils/is.ts",
|
|
1815
|
+
"components/common/utils/lodash.ts"
|
|
1890
1816
|
]
|
|
1891
1817
|
},
|
|
1892
|
-
"components/common/transition
|
|
1893
|
-
"file": "transition
|
|
1894
|
-
"name": "transition
|
|
1895
|
-
"src": "components/common/transition
|
|
1896
|
-
"isEntry": true
|
|
1897
|
-
},
|
|
1898
|
-
"components/common/transition-group/PqbCSSTransition.tsx": {
|
|
1899
|
-
"file": "transition-group/PqbCSSTransition.js",
|
|
1900
|
-
"name": "transition-group/PqbCSSTransition",
|
|
1901
|
-
"src": "components/common/transition-group/PqbCSSTransition.tsx",
|
|
1818
|
+
"components/common/transition/TransitionCSS.tsx": {
|
|
1819
|
+
"file": "transition/TransitionCSS.js",
|
|
1820
|
+
"name": "transition/TransitionCSS",
|
|
1821
|
+
"src": "components/common/transition/TransitionCSS.tsx",
|
|
1902
1822
|
"isEntry": true,
|
|
1903
1823
|
"imports": [
|
|
1904
|
-
"components/common/transition
|
|
1905
|
-
"components/common/
|
|
1906
|
-
"components/common/utils/
|
|
1907
|
-
"components/common/utils/is.ts"
|
|
1908
|
-
"components/common/utils/ref.ts"
|
|
1824
|
+
"components/common/transition/Transition.tsx",
|
|
1825
|
+
"components/common/transition/constants.ts",
|
|
1826
|
+
"components/common/utils/className.ts",
|
|
1827
|
+
"components/common/utils/is.ts"
|
|
1909
1828
|
]
|
|
1910
1829
|
},
|
|
1911
|
-
"components/common/transition
|
|
1912
|
-
"file": "transition
|
|
1913
|
-
"name": "transition
|
|
1914
|
-
"src": "components/common/transition
|
|
1830
|
+
"components/common/transition/TransitionGroup.tsx": {
|
|
1831
|
+
"file": "transition/TransitionGroup.js",
|
|
1832
|
+
"name": "transition/TransitionGroup",
|
|
1833
|
+
"src": "components/common/transition/TransitionGroup.tsx",
|
|
1915
1834
|
"isEntry": true,
|
|
1916
1835
|
"imports": [
|
|
1917
|
-
"components/common/
|
|
1918
|
-
"components/common/
|
|
1836
|
+
"components/common/hooks/use-isomorphic-layout-effect/index.ts",
|
|
1837
|
+
"components/common/transition/constants.ts",
|
|
1838
|
+
"components/common/transition/utils.ts",
|
|
1839
|
+
"components/common/utils/lodash.ts"
|
|
1919
1840
|
]
|
|
1920
1841
|
},
|
|
1921
|
-
"components/common/transition
|
|
1922
|
-
"file": "transition
|
|
1923
|
-
"name": "transition
|
|
1924
|
-
"src": "components/common/transition
|
|
1842
|
+
"components/common/transition/TransitionStyle.tsx": {
|
|
1843
|
+
"file": "transition/TransitionStyle.js",
|
|
1844
|
+
"name": "transition/TransitionStyle",
|
|
1845
|
+
"src": "components/common/transition/TransitionStyle.tsx",
|
|
1925
1846
|
"isEntry": true,
|
|
1926
1847
|
"imports": [
|
|
1927
|
-
"components/common/transition
|
|
1928
|
-
"components/common/transition
|
|
1848
|
+
"components/common/transition/Transition.tsx",
|
|
1849
|
+
"components/common/transition/constants.ts"
|
|
1929
1850
|
]
|
|
1930
1851
|
},
|
|
1931
|
-
"components/common/transition
|
|
1932
|
-
"file": "transition
|
|
1933
|
-
"name": "transition
|
|
1934
|
-
"src": "components/common/transition
|
|
1852
|
+
"components/common/transition/constants.ts": {
|
|
1853
|
+
"file": "transition/constants.js",
|
|
1854
|
+
"name": "transition/constants",
|
|
1855
|
+
"src": "components/common/transition/constants.ts",
|
|
1935
1856
|
"isEntry": true,
|
|
1936
1857
|
"imports": [
|
|
1937
|
-
"components/common/
|
|
1938
|
-
"components/common/utils/constant.ts",
|
|
1939
|
-
"components/common/utils/dom.ts",
|
|
1940
|
-
"components/common/utils/findRootElement.ts",
|
|
1941
|
-
"components/common/utils/is.ts"
|
|
1858
|
+
"components/common/utils/lodash.ts"
|
|
1942
1859
|
]
|
|
1943
1860
|
},
|
|
1944
|
-
"components/common/transition
|
|
1945
|
-
"file": "transition
|
|
1946
|
-
"name": "transition
|
|
1947
|
-
"src": "components/common/transition
|
|
1861
|
+
"components/common/transition/index.ts": {
|
|
1862
|
+
"file": "transition/index.js",
|
|
1863
|
+
"name": "transition/index",
|
|
1864
|
+
"src": "components/common/transition/index.ts",
|
|
1948
1865
|
"isEntry": true,
|
|
1949
1866
|
"imports": [
|
|
1950
|
-
"components/common/transition
|
|
1951
|
-
"components/common/transition
|
|
1867
|
+
"components/common/transition/Transition.tsx",
|
|
1868
|
+
"components/common/transition/TransitionCSS.tsx",
|
|
1869
|
+
"components/common/transition/TransitionGroup.tsx",
|
|
1870
|
+
"components/common/transition/TransitionStyle.tsx",
|
|
1871
|
+
"components/common/transition/constants.ts",
|
|
1872
|
+
"components/common/transition/utils.ts"
|
|
1952
1873
|
]
|
|
1953
1874
|
},
|
|
1954
|
-
"components/common/transition
|
|
1955
|
-
"file": "transition
|
|
1956
|
-
"name": "transition
|
|
1957
|
-
"src": "components/common/transition
|
|
1958
|
-
"isEntry": true
|
|
1959
|
-
},
|
|
1960
|
-
"components/common/transition-group/index.ts": {
|
|
1961
|
-
"file": "transition-group/index.js",
|
|
1962
|
-
"name": "transition-group/index",
|
|
1963
|
-
"src": "components/common/transition-group/index.ts",
|
|
1875
|
+
"components/common/transition/utils.ts": {
|
|
1876
|
+
"file": "transition/utils.js",
|
|
1877
|
+
"name": "transition/utils",
|
|
1878
|
+
"src": "components/common/transition/utils.ts",
|
|
1964
1879
|
"isEntry": true,
|
|
1965
1880
|
"imports": [
|
|
1966
|
-
"components/common/transition
|
|
1967
|
-
"components/common/
|
|
1968
|
-
"components/common/transition-group/ReplaceTransition.tsx",
|
|
1969
|
-
"components/common/transition-group/SwitchTransition.tsx",
|
|
1970
|
-
"components/common/transition-group/Transition.tsx",
|
|
1971
|
-
"components/common/transition-group/TransitionGroup.tsx",
|
|
1972
|
-
"components/common/transition-group/TransitionGroupContext.ts",
|
|
1973
|
-
"components/common/utils/dom.ts"
|
|
1881
|
+
"components/common/transition/constants.ts",
|
|
1882
|
+
"components/common/utils/is.ts"
|
|
1974
1883
|
]
|
|
1975
1884
|
},
|
|
1976
1885
|
"components/common/utils/callOrReturn.ts": {
|
|
@@ -2094,6 +2003,30 @@
|
|
|
2094
2003
|
"components/common/utils/is.ts"
|
|
2095
2004
|
]
|
|
2096
2005
|
},
|
|
2006
|
+
"components/common/utils/getScrollBarHeight.ts": {
|
|
2007
|
+
"file": "utils/getScrollBarHeight.js",
|
|
2008
|
+
"name": "utils/getScrollBarHeight",
|
|
2009
|
+
"src": "components/common/utils/getScrollBarHeight.ts",
|
|
2010
|
+
"isEntry": true,
|
|
2011
|
+
"imports": [
|
|
2012
|
+
"components/common/utils/getScrollBarSize.ts"
|
|
2013
|
+
]
|
|
2014
|
+
},
|
|
2015
|
+
"components/common/utils/getScrollBarSize.ts": {
|
|
2016
|
+
"file": "utils/getScrollBarSize.js",
|
|
2017
|
+
"name": "utils/getScrollBarSize",
|
|
2018
|
+
"src": "components/common/utils/getScrollBarSize.ts",
|
|
2019
|
+
"isEntry": true
|
|
2020
|
+
},
|
|
2021
|
+
"components/common/utils/getScrollBarWidth.ts": {
|
|
2022
|
+
"file": "utils/getScrollBarWidth.js",
|
|
2023
|
+
"name": "utils/getScrollBarWidth",
|
|
2024
|
+
"src": "components/common/utils/getScrollBarWidth.ts",
|
|
2025
|
+
"isEntry": true,
|
|
2026
|
+
"imports": [
|
|
2027
|
+
"components/common/utils/getScrollBarSize.ts"
|
|
2028
|
+
]
|
|
2029
|
+
},
|
|
2097
2030
|
"components/common/utils/getStringLength.ts": {
|
|
2098
2031
|
"file": "utils/getStringLength.js",
|
|
2099
2032
|
"name": "utils/getStringLength",
|
|
@@ -2129,6 +2062,9 @@
|
|
|
2129
2062
|
"components/common/utils/findRootElement.ts",
|
|
2130
2063
|
"components/common/utils/getHighlightText.ts",
|
|
2131
2064
|
"components/common/utils/getHotkeyHandler.ts",
|
|
2065
|
+
"components/common/utils/getScrollBarHeight.ts",
|
|
2066
|
+
"components/common/utils/getScrollBarSize.ts",
|
|
2067
|
+
"components/common/utils/getScrollBarWidth.ts",
|
|
2132
2068
|
"components/common/utils/getStringLength.ts",
|
|
2133
2069
|
"components/common/utils/include.ts",
|
|
2134
2070
|
"components/common/utils/intersectionObserver.ts",
|
package/development/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:51:31 星期二 */
|
|
2
2
|
import { forwardRef as e, useImperativeHandle as t, useMemo as n, useRef as r } from "react";
|
|
3
3
|
import { UI_COMMON_PREFIX as i } from "@unicom-cloud/utils/constant/ui";
|
|
4
4
|
import a from "@unicom-cloud/utils/class-name";
|
package/empty/index.js
CHANGED
package/flex/index.js
CHANGED
package/flex/utils.js
CHANGED
package/higher-order/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:51:31 星期二 */
|
|
2
2
|
import { forwardRef as e, memo as t, useCallback as n, useEffect as r, useImperativeHandle as i, useMemo as a, useState as o } from "react";
|
|
3
3
|
import { jsx as s } from "react/jsx-runtime";
|
|
4
4
|
import c from "@unicom-cloud/icons/IconUiMute";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/* 潘启宝 2026-04-14 16:51:31 星期二 */
|
|
2
|
+
import { isUndefined as e } from "../../utils/is.js";
|
|
3
|
+
import { depsEqual as t } from "../utils/depsEqual.js";
|
|
4
|
+
import { useRef as n } from "react";
|
|
4
5
|
//#region components/common/hooks/create-deep-compare-effect/index.ts
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
(
|
|
6
|
+
var r = (r) => (i, a) => {
|
|
7
|
+
let o = n(void 0), s = n(0);
|
|
8
|
+
(e(a) || !t(a, o.current)) && (s.current += 1), o.current = a, r(i, [s.current]);
|
|
8
9
|
};
|
|
9
10
|
//#endregion
|
|
10
|
-
export {
|
|
11
|
+
export { r as default };
|
|
11
12
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { useEffect, useLayoutEffect } from 'react';
|
|
2
2
|
type EffectHookType = typeof useEffect | typeof useLayoutEffect;
|
|
3
|
-
declare
|
|
3
|
+
declare function createUpdateEffect(hook: EffectHookType): EffectHookType;
|
|
4
4
|
export default createUpdateEffect;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:51:31 星期二 */
|
|
2
2
|
import e from "react";
|
|
3
3
|
//#region components/common/hooks/create-update-effect/index.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
4
|
+
function t(t) {
|
|
5
|
+
return (n, r) => {
|
|
6
|
+
let i = e.useRef(!1);
|
|
7
|
+
t(() => () => {
|
|
8
|
+
i.current = !1;
|
|
9
|
+
}, []), t(() => i.current ? n() : (i.current = !0, () => {}), r);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
13
12
|
//#endregion
|
|
14
13
|
export { t as default };
|
|
15
14
|
/* 独立思考,明辨是非 */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const SYNC_STORAGE_EVENT_NAME = "
|
|
1
|
+
export declare const SYNC_STORAGE_EVENT_NAME = "AHOOKS_SYNC_STORAGE_EVENT_NAME";
|
|
2
2
|
export type SetState<S> = S | ((prevState?: S) => S);
|
|
3
3
|
export interface Options<T> {
|
|
4
4
|
defaultValue?: T | (() => T);
|
|
5
|
+
getInitialValueInEffect?: boolean;
|
|
5
6
|
listenStorageChange?: boolean;
|
|
6
7
|
serializer?: (value: T) => string;
|
|
7
8
|
deserializer?: (value: string) => T;
|