diff --git a/hooks/useClickAway/package.json b/hooks/useClickAway/package.json index 24582bd5..c43afa5d 100644 --- a/hooks/useClickAway/package.json +++ b/hooks/useClickAway/package.json @@ -15,7 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-latest": "0.2.4" }, diff --git a/hooks/useControllableValue/package.json b/hooks/useControllableValue/package.json index 9f229cf5..c097d514 100644 --- a/hooks/useControllableValue/package.json +++ b/hooks/useControllableValue/package.json @@ -15,7 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/use-memoized-fn": "0.2.5", "@pansy/use-update": "0.2.4" }, diff --git a/hooks/useCookieState/package.json b/hooks/useCookieState/package.json index faacc251..c8eb4588 100644 --- a/hooks/useCookieState/package.json +++ b/hooks/useCookieState/package.json @@ -16,7 +16,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/use-memoized-fn": "0.2.5", "@types/js-cookie": "^2.x.x", "js-cookie": "^2.x.x" diff --git a/hooks/useCreation/package.json b/hooks/useCreation/package.json index 53d820c7..57abdc80 100644 --- a/hooks/useCreation/package.json +++ b/hooks/useCreation/package.json @@ -16,6 +16,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0" }, "publishConfig": { diff --git a/hooks/useCreation/src/index.ts b/hooks/useCreation/src/index.ts index 7d8cd2b6..6fcc339c 100644 --- a/hooks/useCreation/src/index.ts +++ b/hooks/useCreation/src/index.ts @@ -1,6 +1,6 @@ import type { DependencyList } from 'react'; import { useRef } from 'react'; -import { depsAreSame } from '@pansy/hook-utils'; +import { depsAreSame } from '@pansy/shared/react'; export function useCreation(factory: () => T, deps: DependencyList) { const { current } = useRef({ diff --git a/hooks/useDocumentVisibility/package.json b/hooks/useDocumentVisibility/package.json index f35f86f0..c755d381 100644 --- a/hooks/useDocumentVisibility/package.json +++ b/hooks/useDocumentVisibility/package.json @@ -15,6 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-event-listener": "0.2.8" }, diff --git a/hooks/useDocumentVisibility/src/index.ts b/hooks/useDocumentVisibility/src/index.ts index 5e4c62a7..e1dbf1ec 100644 --- a/hooks/useDocumentVisibility/src/index.ts +++ b/hooks/useDocumentVisibility/src/index.ts @@ -1,6 +1,6 @@ import { useState } from 'react'; import { useEventListener } from '@pansy/use-event-listener'; -import { isBrowser } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; type VisibilityState = 'hidden' | 'visible' | 'prerender' | undefined; @@ -14,7 +14,7 @@ const getVisibility = () => { * 监听页面是否可见 * @returns */ - export function useDocumentVisibility(): VisibilityState { +export function useDocumentVisibility(): VisibilityState { const [documentVisibility, setDocumentVisibility] = useState(() => getVisibility()); useEventListener( diff --git a/hooks/useEventListener/package.json b/hooks/useEventListener/package.json index d8210163..064cfbba 100644 --- a/hooks/useEventListener/package.json +++ b/hooks/useEventListener/package.json @@ -15,7 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-latest": "0.2.4" }, diff --git a/hooks/useHover/package.json b/hooks/useHover/package.json index 075c316b..6c90e5a6 100644 --- a/hooks/useHover/package.json +++ b/hooks/useHover/package.json @@ -15,7 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/use-boolean": "0.2.5", "@pansy/use-event-listener": "0.2.8" }, diff --git a/hooks/useInViewport/package.json b/hooks/useInViewport/package.json index 4bcb9264..fc84c412 100644 --- a/hooks/useInViewport/package.json +++ b/hooks/useInViewport/package.json @@ -15,7 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "intersection-observer": "^0.12.0" }, diff --git a/hooks/useKeyPress/package.json b/hooks/useKeyPress/package.json index d3977cf4..f765e4bd 100644 --- a/hooks/useKeyPress/package.json +++ b/hooks/useKeyPress/package.json @@ -16,7 +16,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-latest": "0.2.4" }, diff --git a/hooks/useLocalStorageState/package.json b/hooks/useLocalStorageState/package.json index b113dd76..f92b9fd9 100644 --- a/hooks/useLocalStorageState/package.json +++ b/hooks/useLocalStorageState/package.json @@ -15,6 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0" }, "publishConfig": { diff --git a/hooks/useLocalStorageState/src/index.ts b/hooks/useLocalStorageState/src/index.ts index c952c34f..85238686 100644 --- a/hooks/useLocalStorageState/src/index.ts +++ b/hooks/useLocalStorageState/src/index.ts @@ -1,4 +1,5 @@ -import { createUseStorageState, isBrowser } from '@pansy/hook-utils'; +import { createUseStorageState } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; /** * 将状态存储在 localStorage 中的 Hook diff --git a/hooks/useMouse/package.json b/hooks/useMouse/package.json index 6369565d..55fbe15c 100644 --- a/hooks/useMouse/package.json +++ b/hooks/useMouse/package.json @@ -16,7 +16,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/use-event-listener": "0.2.8", "@pansy/use-raf-state": "0.2.5" }, diff --git a/hooks/useRequest/package.json b/hooks/useRequest/package.json index 015e5868..65a7d11b 100644 --- a/hooks/useRequest/package.json +++ b/hooks/useRequest/package.json @@ -16,7 +16,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-creation": "0.1.4", "@pansy/use-latest": "0.2.4", diff --git a/hooks/useRequest/src/utils/isDocumentVisible.ts b/hooks/useRequest/src/utils/isDocumentVisible.ts index 081dfb82..55cced83 100644 --- a/hooks/useRequest/src/utils/isDocumentVisible.ts +++ b/hooks/useRequest/src/utils/isDocumentVisible.ts @@ -1,7 +1,7 @@ -import { canUseDom } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; export function isDocumentVisible(): boolean { - if (canUseDom()) { + if (isBrowser) { return document.visibilityState !== 'hidden'; } return true; diff --git a/hooks/useRequest/src/utils/isOnline.ts b/hooks/useRequest/src/utils/isOnline.ts index 3d233ea5..d830c378 100644 --- a/hooks/useRequest/src/utils/isOnline.ts +++ b/hooks/useRequest/src/utils/isOnline.ts @@ -1,7 +1,7 @@ -import { canUseDom } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; export function isOnline(): boolean { - if (canUseDom() && typeof navigator.onLine !== 'undefined') { + if (isBrowser && typeof navigator.onLine !== 'undefined') { return navigator.onLine; } return true; diff --git a/hooks/useRequest/src/utils/subscribeFocus.ts b/hooks/useRequest/src/utils/subscribeFocus.ts index f69be458..7ad586fc 100644 --- a/hooks/useRequest/src/utils/subscribeFocus.ts +++ b/hooks/useRequest/src/utils/subscribeFocus.ts @@ -1,4 +1,4 @@ -import { canUseDom } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; import { isDocumentVisible } from './isDocumentVisible'; import { isOnline } from './isOnline'; @@ -13,7 +13,7 @@ export function subscribeFocus(listener: () => void) { }; } -if (canUseDom()) { +if (isBrowser) { const revalidate = () => { if (!isDocumentVisible() || !isOnline()) return; for (let i = 0; i < listeners.length; i++) { diff --git a/hooks/useRequest/src/utils/subscribeReVisible.ts b/hooks/useRequest/src/utils/subscribeReVisible.ts index c7d39f0d..5d2f3e05 100644 --- a/hooks/useRequest/src/utils/subscribeReVisible.ts +++ b/hooks/useRequest/src/utils/subscribeReVisible.ts @@ -1,4 +1,4 @@ -import { canUseDom } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; import { isDocumentVisible, } from './isDocumentVisible'; @@ -12,7 +12,7 @@ export function subscribeReVisible(listener: () => void) { }; } -if (canUseDom()) { +if (isBrowser) { const revalidate = () => { if (!isDocumentVisible()) return; for (let i = 0; i < listeners.length; i++) { diff --git a/hooks/useScroll/package.json b/hooks/useScroll/package.json index 5186d6a7..173b4089 100644 --- a/hooks/useScroll/package.json +++ b/hooks/useScroll/package.json @@ -16,7 +16,7 @@ }, "dependencies": { "@pansy/hook-utils": "0.3.0", - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/use-latest": "0.2.4", "@pansy/use-raf-state": "0.2.5" }, diff --git a/hooks/useScrollLock/package.json b/hooks/useScrollLock/package.json index d8f4d6c2..d01642b1 100644 --- a/hooks/useScrollLock/package.json +++ b/hooks/useScrollLock/package.json @@ -18,7 +18,7 @@ "dependencies": { "@pansy/use-get-state": "^0.2.5", "@pansy/use-event-listener": "^0.2.8", - "@pansy/shared": "^1.2.0" + "@pansy/shared": "^1.3.1" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/hooks/useSessionStorageState/package.json b/hooks/useSessionStorageState/package.json index 6b136537..71d17665 100644 --- a/hooks/useSessionStorageState/package.json +++ b/hooks/useSessionStorageState/package.json @@ -15,6 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0" }, "publishConfig": { diff --git a/hooks/useSessionStorageState/src/index.ts b/hooks/useSessionStorageState/src/index.ts index b3d9d400..282f764f 100644 --- a/hooks/useSessionStorageState/src/index.ts +++ b/hooks/useSessionStorageState/src/index.ts @@ -1,4 +1,5 @@ -import { isBrowser, createUseStorageState } from '@pansy/hook-utils'; +import { createUseStorageState } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; /** * 将状态存储在 sessionStorage 中的 Hook diff --git a/hooks/useSize/package.json b/hooks/useSize/package.json index f5979c47..40441d0d 100644 --- a/hooks/useSize/package.json +++ b/hooks/useSize/package.json @@ -16,7 +16,7 @@ }, "dependencies": { "@juggle/resize-observer": "^3.3.1", - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-raf-state": "0.2.5" }, diff --git a/hooks/useTitle/package.json b/hooks/useTitle/package.json index 1d98a595..ae1b3174 100644 --- a/hooks/useTitle/package.json +++ b/hooks/useTitle/package.json @@ -15,6 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-unmount": "0.2.5" }, diff --git a/hooks/useTitle/src/index.ts b/hooks/useTitle/src/index.ts index 9a44fe7c..84c10649 100644 --- a/hooks/useTitle/src/index.ts +++ b/hooks/useTitle/src/index.ts @@ -1,6 +1,6 @@ import { useEffect, useRef } from 'react'; import { useUnmount } from '@pansy/use-unmount'; -import { isBrowser } from '@pansy/hook-utils'; +import { isBrowser } from '@pansy/shared'; export interface Options { /** 组件卸载时,是否恢复上一个页面标题 */ diff --git a/hooks/useWatermark/package.json b/hooks/useWatermark/package.json index 94d37d27..962205c8 100644 --- a/hooks/useWatermark/package.json +++ b/hooks/useWatermark/package.json @@ -15,7 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/hook-utils": "0.3.0", "@pansy/use-memoized-fn": "0.2.5", "@pansy/use-unmount": "0.2.5", diff --git a/hooks/utils/package.json b/hooks/utils/package.json index b8414d97..3a63834c 100644 --- a/hooks/utils/package.json +++ b/hooks/utils/package.json @@ -15,7 +15,7 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@pansy/shared": "^1.2.0", + "@pansy/shared": "^1.3.1", "@pansy/use-memoized-fn": "0.2.5", "@pansy/use-unmount": "0.2.5", "@pansy/use-update-effect": "0.2.4", diff --git a/hooks/utils/src/index.ts b/hooks/utils/src/index.ts index e1d1e97d..022b999f 100644 --- a/hooks/utils/src/index.ts +++ b/hooks/utils/src/index.ts @@ -1,13 +1,10 @@ export { createUpdateEffect } from '@pansy/use-update-effect'; export { createUseStorageState } from './utils/createUseStorageState'; -export { depsAreSame } from './utils/depsAreSame'; -export { isBrowser } from './utils/isBrowser'; export { createEffectWithTarget, useEffectWithTarget, useLayoutEffectWithTarget } from './utils/useEffectWithTarget'; -export { canUseDom } from './utils/canUseDom'; export { useIsomorphicLayoutEffectWithTarget } from './utils/useIsomorphicLayoutEffectWithTarget'; export { useDeepCompareEffectWithTarget } from './utils/useDeepCompareWithTarget'; diff --git a/hooks/utils/src/utils/canUseDom.ts b/hooks/utils/src/utils/canUseDom.ts deleted file mode 100644 index 0b80453c..00000000 --- a/hooks/utils/src/utils/canUseDom.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function canUseDom() { - return !!(typeof window !== 'undefined' && window.document && window.document.createElement); -} diff --git a/hooks/utils/src/utils/depsAreSame.ts b/hooks/utils/src/utils/depsAreSame.ts deleted file mode 100644 index bc58975e..00000000 --- a/hooks/utils/src/utils/depsAreSame.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { DependencyList } from 'react'; - -/** - * 判断依赖是否为同一个值 - * @param oldDeps - * @param deps - * @returns - */ -export function depsAreSame(oldDeps: DependencyList, deps: DependencyList) { - if (oldDeps === deps) return true; - - for (let i = 0; i < oldDeps.length; i++) { - if (!Object.is(oldDeps[i], deps[i])) return false; - } - - return true; -} diff --git a/hooks/utils/src/utils/isBrowser.ts b/hooks/utils/src/utils/isBrowser.ts deleted file mode 100644 index 9da43609..00000000 --- a/hooks/utils/src/utils/isBrowser.ts +++ /dev/null @@ -1,6 +0,0 @@ -export const isBrowser = !!( - // eslint-disable-next-line valid-typeof - typeof window !== undefined && - window.document && - window.document.createElement -) diff --git a/hooks/utils/src/utils/useEffectWithTarget.ts b/hooks/utils/src/utils/useEffectWithTarget.ts index 40a07c77..641953e5 100644 --- a/hooks/utils/src/utils/useEffectWithTarget.ts +++ b/hooks/utils/src/utils/useEffectWithTarget.ts @@ -1,7 +1,6 @@ import { useEffect, useLayoutEffect, useRef } from 'react'; import { useUnmount } from '@pansy/use-unmount'; -import { depsAreSame } from './depsAreSame'; -import { getTargetElement } from '@pansy/shared/react'; +import { getTargetElement, depsAreSame } from '@pansy/shared/react'; import type { DependencyList, EffectCallback } from 'react'; import type { BasicTarget } from '@pansy/shared/react'; diff --git a/hooks/utils/src/utils/useIsomorphicLayoutEffectWithTarget.ts b/hooks/utils/src/utils/useIsomorphicLayoutEffectWithTarget.ts index f313fc5b..9059d6ce 100644 --- a/hooks/utils/src/utils/useIsomorphicLayoutEffectWithTarget.ts +++ b/hooks/utils/src/utils/useIsomorphicLayoutEffectWithTarget.ts @@ -1,4 +1,4 @@ -import { isBrowser } from './isBrowser'; +import { isBrowser } from '@pansy/shared'; import { useEffectWithTarget, useLayoutEffectWithTarget } from './useEffectWithTarget'; export const useIsomorphicLayoutEffectWithTarget = isBrowser diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5a601703..f30337e1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -285,31 +285,31 @@ importers: hooks/useClickAway: specifiers: '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-latest': 0.2.4 dependencies: '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-latest': link:../useLatest hooks/useControllableValue: specifiers: - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-memoized-fn': 0.2.5 '@pansy/use-update': 0.2.4 dependencies: - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-memoized-fn': link:../useMemoizedFn '@pansy/use-update': link:../useUpdate hooks/useCookieState: specifiers: - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-memoized-fn': 0.2.5 '@types/js-cookie': ^2.x.x js-cookie: ^2.x.x dependencies: - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-memoized-fn': link:../useMemoizedFn '@types/js-cookie': 2.2.7 js-cookie: 2.2.1 @@ -317,8 +317,10 @@ importers: hooks/useCreation: specifiers: '@pansy/hook-utils': 0.3.0 + '@pansy/shared': ^1.3.1 dependencies: '@pansy/hook-utils': link:../utils + '@pansy/shared': 1.3.1 hooks/useDeepCompareEffect: specifiers: @@ -329,19 +331,21 @@ importers: hooks/useDocumentVisibility: specifiers: '@pansy/hook-utils': 0.3.0 + '@pansy/shared': ^1.3.1 '@pansy/use-event-listener': 0.2.8 dependencies: '@pansy/hook-utils': link:../utils + '@pansy/shared': 1.3.1 '@pansy/use-event-listener': link:../useEventListener hooks/useEventListener: specifiers: '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-latest': 0.2.4 dependencies: '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-latest': link:../useLatest hooks/useEventTarget: @@ -364,27 +368,24 @@ importers: hooks/useHover: specifiers: - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-boolean': 0.2.5 '@pansy/use-event-listener': 0.2.8 dependencies: - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-boolean': link:../useBoolean '@pansy/use-event-listener': link:../useEventListener hooks/useInViewport: specifiers: '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 intersection-observer: ^0.12.0 dependencies: '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 intersection-observer: 0.12.2 - hooks/useInfiniteScroll: - specifiers: {} - hooks/useInterval: specifiers: '@pansy/use-latest': 0.2.4 @@ -394,11 +395,11 @@ importers: hooks/useKeyPress: specifiers: '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-latest': 0.2.4 dependencies: '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-latest': link:../useLatest hooks/useLatest: @@ -407,8 +408,10 @@ importers: hooks/useLocalStorageState: specifiers: '@pansy/hook-utils': 0.3.0 + '@pansy/shared': ^1.3.1 dependencies: '@pansy/hook-utils': link:../utils + '@pansy/shared': 1.3.1 hooks/useLockFn: specifiers: {} @@ -432,11 +435,11 @@ importers: hooks/useMouse: specifiers: - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-event-listener': 0.2.8 '@pansy/use-raf-state': 0.2.5 dependencies: - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-event-listener': link:../useEventListener '@pansy/use-raf-state': link:../useRafState @@ -466,7 +469,7 @@ importers: hooks/useRequest: specifiers: '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-creation': 0.1.4 '@pansy/use-latest': 0.2.4 '@pansy/use-memoized-fn': 0.2.5 @@ -476,7 +479,7 @@ importers: lodash: ^4.17.21 dependencies: '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-creation': link:../useCreation '@pansy/use-latest': link:../useLatest '@pansy/use-memoized-fn': link:../useMemoizedFn @@ -488,22 +491,22 @@ importers: hooks/useScroll: specifiers: '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-latest': 0.2.4 '@pansy/use-raf-state': 0.2.5 dependencies: '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-latest': link:../useLatest '@pansy/use-raf-state': link:../useRafState hooks/useScrollLock: specifiers: - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-event-listener': ^0.2.8 '@pansy/use-get-state': ^0.2.5 dependencies: - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-event-listener': link:../useEventListener '@pansy/use-get-state': link:../useGetState @@ -516,19 +519,21 @@ importers: hooks/useSessionStorageState: specifiers: '@pansy/hook-utils': 0.3.0 + '@pansy/shared': ^1.3.1 dependencies: '@pansy/hook-utils': link:../utils + '@pansy/shared': 1.3.1 hooks/useSize: specifiers: '@juggle/resize-observer': ^3.3.1 '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-raf-state': 0.2.5 dependencies: '@juggle/resize-observer': 3.3.1 '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-raf-state': link:../useRafState hooks/useTimeout: @@ -540,9 +545,11 @@ importers: hooks/useTitle: specifiers: '@pansy/hook-utils': 0.3.0 + '@pansy/shared': ^1.3.1 '@pansy/use-unmount': 0.2.5 dependencies: '@pansy/hook-utils': link:../utils + '@pansy/shared': 1.3.1 '@pansy/use-unmount': link:../useUnmount hooks/useToggle: @@ -579,13 +586,13 @@ importers: hooks/useWatermark: specifiers: '@pansy/hook-utils': 0.3.0 - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-memoized-fn': 0.2.5 '@pansy/use-unmount': 0.2.5 '@pansy/watermark': ^2.2.1 dependencies: '@pansy/hook-utils': link:../utils - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-memoized-fn': link:../useMemoizedFn '@pansy/use-unmount': link:../useUnmount '@pansy/watermark': 2.2.1 @@ -602,13 +609,13 @@ importers: hooks/utils: specifiers: - '@pansy/shared': ^1.2.0 + '@pansy/shared': ^1.3.1 '@pansy/use-memoized-fn': 0.2.5 '@pansy/use-unmount': 0.2.5 '@pansy/use-update-effect': 0.2.4 lodash: ^4.17.21 dependencies: - '@pansy/shared': 1.2.0 + '@pansy/shared': 1.3.1 '@pansy/use-memoized-fn': link:../useMemoizedFn '@pansy/use-unmount': link:../useUnmount '@pansy/use-update-effect': link:../useUpdateEffect @@ -6656,8 +6663,8 @@ packages: '@octokit/openapi-types': 12.10.1 dev: true - /@pansy/shared/1.2.0: - resolution: {integrity: sha512-NpUd8INjhbI2u7erxN6ug3HUfH5I7yTNo3lts75PBsAKBSF2uQIu+GuDTCzXXoYowGRnUaT+y3JKCdIx9k+1Xg==} + /@pansy/shared/1.3.1: + resolution: {integrity: sha512-98+UG37dQbe8hAayaIQnbkEvFNLv2HiIiUjHtxNZRe9lFUXPyv/cwKo8dCR59B7epEx9hgXgo++ohR3JIPATzw==} dev: false /@pansy/types/0.2.0: