@kubed/hooks 0.0.18 → 0.2.11
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/cjs/index.js +1 -1
- package/cjs/useClickOutside/index.js +1 -1
- package/cjs/useClickOutside/index.js.map +1 -1
- package/cjs/useClipboard/index.js +1 -1
- package/cjs/useClipboard/index.js.map +1 -1
- package/cjs/useDebouncedValue/index.js +1 -1
- package/cjs/useDebouncedValue/index.js.map +1 -1
- package/cjs/useDidMount/index.js +1 -1
- package/cjs/useDidMount/index.js.map +1 -1
- package/cjs/useDidUpdate/index.js +1 -1
- package/cjs/useDidUpdate/index.js.map +1 -1
- package/cjs/useDisclosure/index.js +1 -1
- package/cjs/useDisclosure/index.js.map +1 -1
- package/cjs/useForceUpdate/index.js +1 -1
- package/cjs/useForceUpdate/index.js.map +1 -1
- package/cjs/useHotkeys/index.js +1 -1
- package/cjs/useHotkeys/index.js.map +1 -1
- package/cjs/useHotkeys/parseHotkey.js +1 -1
- package/cjs/useHotkeys/parseHotkey.js.map +1 -1
- package/cjs/useHover/index.js +1 -1
- package/cjs/useHover/index.js.map +1 -1
- package/cjs/useId/index.js +1 -1
- package/cjs/useId/index.js.map +1 -1
- package/cjs/useLocalStorage/index.js +1 -1
- package/cjs/useLocalStorage/index.js.map +1 -1
- package/cjs/useMediaQuery/index.js +1 -1
- package/cjs/useMediaQuery/index.js.map +1 -1
- package/cjs/useMergedRef/index.js +1 -1
- package/cjs/useMergedRef/index.js.map +1 -1
- package/cjs/useMove/index.js +1 -1
- package/cjs/useMove/index.js.map +1 -1
- package/cjs/usePrevious/index.js +1 -1
- package/cjs/usePrevious/index.js.map +1 -1
- package/cjs/useQueue/index.js +1 -1
- package/cjs/useQueue/index.js.map +1 -1
- package/cjs/useReducedMotion/index.js +1 -1
- package/cjs/useReducedMotion/index.js.map +1 -1
- package/cjs/useScrollLock/index.js +1 -1
- package/cjs/useScrollLock/index.js.map +1 -1
- package/cjs/useToggle/index.js +1 -1
- package/cjs/useToggle/index.js.map +1 -1
- package/cjs/useUncontrolled/index.js +1 -1
- package/cjs/useUncontrolled/index.js.map +1 -1
- package/cjs/useUnmount/index.js +1 -1
- package/cjs/useUnmount/index.js.map +1 -1
- package/cjs/useWindowEvent/index.js +1 -1
- package/cjs/useWindowEvent/index.js.map +1 -1
- package/cjs/useWindowResize/index.js +1 -1
- package/cjs/useWindowResize/index.js.map +1 -1
- package/cjs/utils/index.js +1 -1
- package/cjs/utils/index.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/useClickOutside/index.js +1 -1
- package/esm/useClickOutside/index.js.map +1 -1
- package/esm/useClipboard/index.js +1 -1
- package/esm/useClipboard/index.js.map +1 -1
- package/esm/useDebouncedValue/index.js +1 -1
- package/esm/useDebouncedValue/index.js.map +1 -1
- package/esm/useDidMount/index.js +1 -1
- package/esm/useDidMount/index.js.map +1 -1
- package/esm/useDidUpdate/index.js +1 -1
- package/esm/useDidUpdate/index.js.map +1 -1
- package/esm/useDisclosure/index.js +1 -1
- package/esm/useDisclosure/index.js.map +1 -1
- package/esm/useForceUpdate/index.js +1 -1
- package/esm/useForceUpdate/index.js.map +1 -1
- package/esm/useHotkeys/index.js +1 -1
- package/esm/useHotkeys/index.js.map +1 -1
- package/esm/useHotkeys/parseHotkey.js +1 -1
- package/esm/useHotkeys/parseHotkey.js.map +1 -1
- package/esm/useHover/index.js +1 -1
- package/esm/useHover/index.js.map +1 -1
- package/esm/useId/index.js +1 -1
- package/esm/useId/index.js.map +1 -1
- package/esm/useLocalStorage/index.js +1 -1
- package/esm/useLocalStorage/index.js.map +1 -1
- package/esm/useMediaQuery/index.js +1 -1
- package/esm/useMediaQuery/index.js.map +1 -1
- package/esm/useMergedRef/index.js +1 -1
- package/esm/useMergedRef/index.js.map +1 -1
- package/esm/useMove/index.js +1 -1
- package/esm/useMove/index.js.map +1 -1
- package/esm/usePrevious/index.js +1 -1
- package/esm/usePrevious/index.js.map +1 -1
- package/esm/useQueue/index.js +1 -1
- package/esm/useQueue/index.js.map +1 -1
- package/esm/useReducedMotion/index.js.map +1 -1
- package/esm/useScrollLock/index.js +1 -1
- package/esm/useScrollLock/index.js.map +1 -1
- package/esm/useToggle/index.js +1 -1
- package/esm/useToggle/index.js.map +1 -1
- package/esm/useUncontrolled/index.js +1 -1
- package/esm/useUncontrolled/index.js.map +1 -1
- package/esm/useUnmount/index.js +1 -1
- package/esm/useUnmount/index.js.map +1 -1
- package/esm/useWindowEvent/index.js +1 -1
- package/esm/useWindowEvent/index.js.map +1 -1
- package/esm/useWindowResize/index.js +1 -1
- package/esm/useWindowResize/index.js.map +1 -1
- package/esm/utils/index.js +1 -1
- package/esm/utils/index.js.map +1 -1
- package/lib/useHover/index.d.ts +0 -1
- package/lib/useHover/index.d.ts.map +1 -1
- package/lib/useMove/index.d.ts +0 -1
- package/lib/useMove/index.d.ts.map +1 -1
- package/package.json +10 -12
- package/CHANGELOG.md +0 -108
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useRef as
|
|
1
|
+
import{useRef as m,useState as y,useEffect as U}from"react";function g({value:l,defaultValue:r,finalValue:u,rule:c,onChange:f,onValueUpdate:a}){const t=c(l),n=m("initial"),s=c(r)?r:u,[p,d]=y(s);let e=t?l:p;!t&&n.current==="controlled"&&(e=u),n.current=t?"controlled":"uncontrolled";const o=n.current,V=i=>{typeof f=="function"&&f(i),o==="uncontrolled"&&d(i)};return U(()=>{o==="uncontrolled"&&d(e),typeof a=="function"&&a(e)},[o,e]),[e,V,n.current]}export{g as useUncontrolled};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/useUncontrolled/index.ts"],"sourcesContent":["// https://github.com/mantinedev/mantine/blob/master/src/mantine-hooks/src/use-uncontrolled/use-uncontrolled.ts\nimport { useEffect, useRef, useState } from 'react';\n\nexport type UncontrolledMode = 'initial' | 'controlled' | 'uncontrolled';\n\nexport interface UncontrolledOptions<T> {\n value: T | null | undefined;\n defaultValue: T | null | undefined;\n finalValue: T | null;\n onChange(value: T | null): void;\n onValueUpdate?(value: T | null): void;\n rule: (value: T | null | undefined) => boolean;\n}\n\nexport function useUncontrolled<T>({\n value,\n defaultValue,\n finalValue,\n rule,\n onChange,\n onValueUpdate,\n}: UncontrolledOptions<T>): readonly [T | null, (nextValue: T | null) => void, UncontrolledMode] {\n // determine, whether new props indicate controlled state\n const shouldBeControlled = rule(value);\n\n // initialize state\n const modeRef = useRef<UncontrolledMode>('initial');\n const initialValue = rule(defaultValue) ? defaultValue : finalValue;\n const [uncontrolledValue, setUncontrolledValue] = useState(initialValue);\n\n // compute effective value\n let effectiveValue = shouldBeControlled ? value : uncontrolledValue;\n\n if (!shouldBeControlled && modeRef.current === 'controlled') {\n // We are transitioning from controlled to uncontrolled\n // this transition is special as it happens when clearing out\n // the input using \"invalid\" value (typically null or undefined).\n //\n // Since the value is invalid, doing nothing would mean just\n // transitioning to uncontrolled state and using whatever value\n // it currently holds which is likely not the bavior\n // user expects, so lets change the state to finalValue.\n //\n // The value will be propagated to internal state by useEffect below.\n\n effectiveValue = finalValue;\n }\n modeRef.current = shouldBeControlled ? 'controlled' : 'uncontrolled';\n const mode = modeRef.current;\n\n const handleChange = (nextValue: T | null) => {\n typeof onChange === 'function' && onChange(nextValue);\n\n // Controlled input only triggers onChange event and expects\n // the controller to propagate new value back.\n if (mode === 'uncontrolled') {\n setUncontrolledValue(nextValue);\n }\n };\n\n useEffect(() => {\n if (mode === 'uncontrolled') {\n setUncontrolledValue(effectiveValue);\n }\n typeof onValueUpdate === 'function' && onValueUpdate(effectiveValue);\n }, [mode, effectiveValue]);\n\n return [effectiveValue, handleChange, modeRef.current] as const;\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/useUncontrolled/index.ts"],"sourcesContent":["// https://github.com/mantinedev/mantine/blob/master/src/mantine-hooks/src/use-uncontrolled/use-uncontrolled.ts\nimport { useEffect, useRef, useState } from 'react';\n\nexport type UncontrolledMode = 'initial' | 'controlled' | 'uncontrolled';\n\nexport interface UncontrolledOptions<T> {\n value: T | null | undefined;\n defaultValue: T | null | undefined;\n finalValue: T | null;\n onChange(value: T | null): void;\n onValueUpdate?(value: T | null): void;\n rule: (value: T | null | undefined) => boolean;\n}\n\nexport function useUncontrolled<T>({\n value,\n defaultValue,\n finalValue,\n rule,\n onChange,\n onValueUpdate,\n}: UncontrolledOptions<T>): readonly [T | null, (nextValue: T | null) => void, UncontrolledMode] {\n // determine, whether new props indicate controlled state\n const shouldBeControlled = rule(value);\n\n // initialize state\n const modeRef = useRef<UncontrolledMode>('initial');\n const initialValue = rule(defaultValue) ? defaultValue : finalValue;\n const [uncontrolledValue, setUncontrolledValue] = useState(initialValue);\n\n // compute effective value\n let effectiveValue = shouldBeControlled ? value : uncontrolledValue;\n\n if (!shouldBeControlled && modeRef.current === 'controlled') {\n // We are transitioning from controlled to uncontrolled\n // this transition is special as it happens when clearing out\n // the input using \"invalid\" value (typically null or undefined).\n //\n // Since the value is invalid, doing nothing would mean just\n // transitioning to uncontrolled state and using whatever value\n // it currently holds which is likely not the bavior\n // user expects, so lets change the state to finalValue.\n //\n // The value will be propagated to internal state by useEffect below.\n\n effectiveValue = finalValue;\n }\n modeRef.current = shouldBeControlled ? 'controlled' : 'uncontrolled';\n const mode = modeRef.current;\n\n const handleChange = (nextValue: T | null) => {\n typeof onChange === 'function' && onChange(nextValue);\n\n // Controlled input only triggers onChange event and expects\n // the controller to propagate new value back.\n if (mode === 'uncontrolled') {\n setUncontrolledValue(nextValue);\n }\n };\n\n useEffect(() => {\n if (mode === 'uncontrolled') {\n setUncontrolledValue(effectiveValue);\n }\n typeof onValueUpdate === 'function' && onValueUpdate(effectiveValue);\n }, [mode, effectiveValue]);\n\n return [effectiveValue, handleChange, modeRef.current] as const;\n}\n"],"names":["U","m","v"],"mappings":";;AAAmE,SAAS,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAACA,MAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,QAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,GAAG,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,OAAOC,SAAC,CAAC,IAAI,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;;;;"}
|
package/esm/useUnmount/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useRef as r,useEffect as n}from"react";function u(
|
|
1
|
+
import{useRef as r,useEffect as n}from"react";function u(t){const e=r(t);e.current=t,n(()=>()=>{e.current()},[])}export{u as useUnmount};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/useUnmount/index.ts"],"sourcesContent":["import { useRef, useEffect } from 'react';\n\nexport function useUnmount(fn: () => void) {\n const fnRef = useRef(fn);\n fnRef.current = fn;\n\n useEffect(\n () => () => {\n fnRef.current();\n },\n []\n );\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/useUnmount/index.ts"],"sourcesContent":["import { useRef, useEffect } from 'react';\n\nexport function useUnmount(fn: () => void) {\n const fnRef = useRef(fn);\n fnRef.current = fn;\n\n useEffect(\n () => () => {\n fnRef.current();\n },\n []\n );\n}\n"],"names":["r","n"],"mappings":";;AAAqD,SAAS,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAACA,MAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAACC,SAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,OAAO,GAAE,CAAC,CAAC,EAAE,EAAC;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useEffect as
|
|
1
|
+
import{useEffect as o}from"react";function i(e,n,t){o(()=>(window.addEventListener(e,n,t),()=>window.removeEventListener(e,n,t)),[])}export{i as useWindowEvent};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/useWindowEvent/index.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nexport function useWindowEvent<K extends keyof WindowEventMap>(\n type: K,\n listener: (this: Window, ev: WindowEventMap[K]) => any,\n options?: boolean | AddEventListenerOptions\n) {\n useEffect(() => {\n window.addEventListener(type, listener, options);\n return () => window.removeEventListener(type, listener, options);\n }, []);\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/useWindowEvent/index.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nexport function useWindowEvent<K extends keyof WindowEventMap>(\n type: K,\n listener: (this: Window, ev: WindowEventMap[K]) => any,\n options?: boolean | AddEventListenerOptions\n) {\n useEffect(() => {\n window.addEventListener(type, listener, options);\n return () => window.removeEventListener(type, listener, options);\n }, []);\n}\n"],"names":["o"],"mappings":";;AAAyC,SAAS,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAACA,SAAC,CAAC,KAAK,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAC;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useState as r,useEffect as s}from"react";function d(
|
|
1
|
+
import{useState as r,useEffect as s}from"react";function d(t,n){const[i,o]=r(n);s(()=>{const e=()=>{o(window.innerWidth),t()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i])}export{d as useWindowResize};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/useWindowResize/index.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport function useWindowResize(handler: { (): void }, initialWindowSize?: number) {\n const [windowSize, setWindowSize] = useState<undefined | number>(initialWindowSize);\n useEffect(() => {\n const handleResize = () => {\n setWindowSize(window.innerWidth);\n handler();\n };\n window.addEventListener('resize', handleResize);\n\n return () => window.removeEventListener('resize', handleResize);\n }, [windowSize]);\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/useWindowResize/index.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport function useWindowResize(handler: { (): void }, initialWindowSize?: number) {\n const [windowSize, setWindowSize] = useState<undefined | number>(initialWindowSize);\n useEffect(() => {\n const handleResize = () => {\n setWindowSize(window.innerWidth);\n handler();\n };\n window.addEventListener('resize', handleResize);\n\n return () => window.removeEventListener('resize', handleResize);\n }, [windowSize]);\n}\n"],"names":["d","r"],"mappings":";;AAAuD,SAAS,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACA,QAAC,CAAC,CAAC,CAAC,CAACC,SAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,GAAE,CAAC,CAAC,OAAO,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC;;;;"}
|
package/esm/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
1
|
+
function u(){return`kubed-${Math.random().toString(36).substr(2,9)}`}function e({value:t,min:n,max:r}){return Math.min(Math.max(t,n),r)}function o(t,n){typeof t=="function"?t(n):typeof t=="object"&&t!==null&&"current"in t&&(t.current=n)}export{o as assignRef,e as clamp,u as randomId};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/esm/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import React from 'react';\n\nexport function randomId() {\n return `kubed-${Math.random().toString(36).substr(2, 9)}`;\n}\n\ninterface Clamp {\n value: number;\n min: number;\n max: number;\n}\n\nexport function clamp({ value, min, max }: Clamp) {\n return Math.min(Math.max(value, min), max);\n}\n\nexport function assignRef<T = any>(ref: React.ForwardedRef<T>, value: T | null) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (typeof ref === 'object' && ref !== null && 'current' in ref) {\n // eslint-disable-next-line no-param-reassign\n ref.current = value;\n }\n}\n"],"names":[],"mappings":"AAAO,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":["import React from 'react';\n\nexport function randomId() {\n return `kubed-${Math.random().toString(36).substr(2, 9)}`;\n}\n\ninterface Clamp {\n value: number;\n min: number;\n max: number;\n}\n\nexport function clamp({ value, min, max }: Clamp) {\n return Math.min(Math.max(value, min), max);\n}\n\nexport function assignRef<T = any>(ref: React.ForwardedRef<T>, value: T | null) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (typeof ref === 'object' && ref !== null && 'current' in ref) {\n // eslint-disable-next-line no-param-reassign\n ref.current = value;\n }\n}\n"],"names":[],"mappings":"AAAO,SAAS,QAAQ,EAAE,CAAC,OAAM,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAQ,SAAS,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAQ,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAAC;;;;"}
|
package/lib/useHover/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useHover/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useHover/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;;;EAwB3D"}
|
package/lib/useMove/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useMove/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/useMove/index.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,eAAO,MAAM,oBAAoB,aAAc,eAAe;;;CAG5D,CAAC;AAEH,UAAU,eAAe;IACvB,YAAY,CAAC,IAAI,IAAI,CAAC;IACtB,UAAU,CAAC,IAAI,IAAI,CAAC;CACrB;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,WAAW,GAAG,cAAc,EAC5D,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,EAC1C,QAAQ,CAAC,EAAE,eAAe;;;EA6F3B"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubed/hooks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.11",
|
|
4
|
+
"homepage": "https://github.com/kubesphere/kube-design",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/kubesphere/kube-design.git",
|
|
8
|
+
"directory": "packages/hooks"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"sideEffects": false,
|
|
4
12
|
"main": "cjs/index.js",
|
|
5
13
|
"module": "esm/index.js",
|
|
6
14
|
"types": "lib/index.d.ts",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"homepage": "https://github.com/kubesphere/kube-design",
|
|
10
15
|
"files": [
|
|
11
16
|
"cjs",
|
|
12
17
|
"esm",
|
|
13
18
|
"lib"
|
|
14
19
|
],
|
|
15
|
-
"repository": {
|
|
16
|
-
"url": "https://github.com/kubesphere/kube-design.git",
|
|
17
|
-
"type": "git",
|
|
18
|
-
"directory": "packages/hooks"
|
|
19
|
-
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.8.6"
|
|
22
|
-
}
|
|
23
|
-
"dependencies": {},
|
|
24
|
-
"devDependencies": {}
|
|
22
|
+
}
|
|
25
23
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
# @kubed/hooks
|
|
2
|
-
|
|
3
|
-
## 0.0.18
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#241](https://github.com/kubesphere/kube-design/pull/241) [`5e80314`](https://github.com/kubesphere/kube-design/commit/5e80314a3681d64d5797f6ffe10019964a10d166) Thanks [@yazhouio](https://github.com/yazhouio)! - chore: Update version
|
|
8
|
-
|
|
9
|
-
## 0.0.17
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- [#221](https://github.com/kubesphere/kube-design/pull/221) [`1e8bc0e`](https://github.com/kubesphere/kube-design/commit/1e8bc0ec1482d3a2aeca4040f32bf0f10008ae0b) Thanks [@donniean](https://github.com/donniean)! - feat: update TopicCircle icon
|
|
14
|
-
|
|
15
|
-
## 0.0.16
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- [#218](https://github.com/kubesphere/kube-design/pull/218) [`b9714b7`](https://github.com/kubesphere/kube-design/commit/b9714b7cc77c3899f1f63c94f3a62d75739fc324) Thanks [@donniean](https://github.com/donniean)! - feat: add TopicCircle icon
|
|
20
|
-
|
|
21
|
-
## 0.0.15
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- [#210](https://github.com/kubesphere/kube-design/pull/210) [`20358b2`](https://github.com/kubesphere/kube-design/commit/20358b232e3c6515fc7d847da10862f20eaaee7f) Thanks [@donniean](https://github.com/donniean)! - docs: add hooks docs
|
|
26
|
-
|
|
27
|
-
## 0.0.14
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- [`1576c58`](https://github.com/kubesphere/kube-design/commit/1576c58579736e11a02c47494ac4785f12ffec4b) Thanks [@donniean](https://github.com/donniean)! - feat: add useDisclosure
|
|
32
|
-
|
|
33
|
-
## 0.0.13
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- [`cc0f605`](https://github.com/kubesphere/kube-design/commit/cc0f6050d1755b883b9649897e80922c90ff108e) Thanks [@chenz24](https://github.com/chenz24)! - add pie chart
|
|
38
|
-
|
|
39
|
-
## 0.0.12
|
|
40
|
-
|
|
41
|
-
### Patch Changes
|
|
42
|
-
|
|
43
|
-
- [`6c72c31`](https://github.com/kubesphere/kube-design/commit/6c72c31c60ea33241528031c5e5de807c402dcdf) Thanks [@chenz24](https://github.com/chenz24)! - 1. add chart components
|
|
44
|
-
|
|
45
|
-
## 0.0.11
|
|
46
|
-
|
|
47
|
-
### Patch Changes
|
|
48
|
-
|
|
49
|
-
- [`d12bdca`](https://github.com/kubesphere/kube-design/commit/d12bdcade70d7b8bac20731e4cf1f3a58c183763) Thanks [@donniean](https://github.com/donniean)! - feat: add useHover; add Instance type in Tooltip and Popover
|
|
50
|
-
|
|
51
|
-
## 0.0.10
|
|
52
|
-
|
|
53
|
-
### Patch Changes
|
|
54
|
-
|
|
55
|
-
- [`7bdb130`](https://github.com/kubesphere/kube-design/commit/7bdb130dcbbe3f65870b564f811556462fd727d4) Thanks [@chenz24](https://github.com/chenz24)! - 1. export useScreenLock hook
|
|
56
|
-
|
|
57
|
-
## 0.0.9
|
|
58
|
-
|
|
59
|
-
### Patch Changes
|
|
60
|
-
|
|
61
|
-
- [`d589bc9`](https://github.com/kubesphere/kube-design/commit/d589bc9b5a8d42390fc1a2f494ccb4b5bda34bd9) Thanks [@chenz24](https://github.com/chenz24)! - 1. fix: Fix AutoComplete 'omit' import bug.
|
|
62
|
-
2. refactor: Improve Slider.
|
|
63
|
-
|
|
64
|
-
## 0.0.8
|
|
65
|
-
|
|
66
|
-
### Patch Changes
|
|
67
|
-
|
|
68
|
-
- [`7f2e134`](https://github.com/kubesphere/kube-design/commit/7f2e134aaff15b0552889f02ca0ae929848877d4) Thanks [@chenz24](https://github.com/chenz24)! - 1. feat: Add usePrevious hook.
|
|
69
|
-
|
|
70
|
-
## 0.0.7
|
|
71
|
-
|
|
72
|
-
### Patch Changes
|
|
73
|
-
|
|
74
|
-
- [`f5ed279`](https://github.com/kubesphere/kube-design/commit/f5ed279be5140890fd91e762c02593988576ca46) Thanks [@chenz24](https://github.com/chenz24)! - 1. Add useUnmount hook.
|
|
75
|
-
|
|
76
|
-
## 0.0.6
|
|
77
|
-
|
|
78
|
-
### Patch Changes
|
|
79
|
-
|
|
80
|
-
- [`db858ee`](https://github.com/kubesphere/kube-design/commit/db858ee70bc841176d9dd8cf3d52ce6a3927fc2c) Thanks [@chenz24](https://github.com/chenz24)! - 1. add useDidUpdate hook.
|
|
81
|
-
|
|
82
|
-
## 0.0.5
|
|
83
|
-
|
|
84
|
-
### Patch Changes
|
|
85
|
-
|
|
86
|
-
- [`f39c7e8`](https://github.com/kubesphere/kube-design/commit/f39c7e8d9550ddd329dc057bf6a737835b738d33) Thanks [@chenz24](https://github.com/chenz24)! - 1. Completely Refactor Empty component.
|
|
87
|
-
2. Add useDebouncedValue hook.
|
|
88
|
-
3. Reset default props for LoadingOverlay.
|
|
89
|
-
|
|
90
|
-
## 0.0.4
|
|
91
|
-
|
|
92
|
-
### Patch Changes
|
|
93
|
-
|
|
94
|
-
- [`bf37ccc`](https://github.com/kubesphere/kube-design/commit/bf37cccbf64598b67b6e599b61c9d4ed33ec8504) Thanks [@chenz24](https://github.com/chenz24)! - 1. Add hotkey hook.
|
|
95
|
-
2. Fix Banner cannot set className
|
|
96
|
-
|
|
97
|
-
## 0.0.3
|
|
98
|
-
|
|
99
|
-
### Patch Changes
|
|
100
|
-
|
|
101
|
-
- [`de74de1`](https://github.com/kubesphere/kube-design/commit/de74de1786e2dcef25f7fea435d24dc146527b78) Thanks [@chenz24](https://github.com/chenz24)! - 1. Remove umd build and browser field in package.json.
|
|
102
|
-
2. Remove useless export in Select.
|
|
103
|
-
|
|
104
|
-
## 0.0.2
|
|
105
|
-
|
|
106
|
-
### Patch Changes
|
|
107
|
-
|
|
108
|
-
- [`df0624c`](https://github.com/kubesphere/kube-design/commit/df0624c146781210b3eb8849bdb7ceea65c064e5) Thanks [@chenz24](https://github.com/chenz24)! - add useScrollLock hook
|