@dxos/react-hooks 0.5.3-main.bc67fdb → 0.5.3-main.bfb5bca
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/dist/types/src/useDefaultValue.d.ts +1 -1
- package/dist/types/src/useDefaultValue.d.ts.map +1 -1
- package/dist/types/src/useFileDownload.d.ts +1 -1
- package/dist/types/src/useFileDownload.d.ts.map +1 -1
- package/dist/types/src/useForwardedRef.d.ts +1 -1
- package/dist/types/src/useForwardedRef.d.ts.map +1 -1
- package/dist/types/src/useRefCallback.d.ts.map +1 -1
- package/dist/types/src/useTransitions.d.ts +1 -1
- package/dist/types/src/useTransitions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* @param defaultValue - The initial value used when the reactiveValue is undefined. This value is not reactive.
|
|
10
10
|
* @returns - The reactiveValue if it's defined, otherwise the defaultValue.
|
|
11
11
|
*/
|
|
12
|
-
export declare const useDefaultValue: <T>(reactiveValue: T |
|
|
12
|
+
export declare const useDefaultValue: <T>(reactiveValue: T | undefined | null, defaultValue: T) => T;
|
|
13
13
|
//# sourceMappingURL=useDefaultValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDefaultValue.d.ts","sourceRoot":"","sources":["../../../src/useDefaultValue.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useDefaultValue.d.ts","sourceRoot":"","sources":["../../../src/useDefaultValue.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,qBAAsB,CAAC,GAAG,SAAS,GAAG,IAAI,gBAAgB,CAAC,KAAG,CAUzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFileDownload.d.ts","sourceRoot":"","sources":["../../../src/useFileDownload.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useFileDownload.d.ts","sourceRoot":"","sources":["../../../src/useFileDownload.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,QAAO,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAYlF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useForwardedRef: <T>(ref:
|
|
1
|
+
export declare const useForwardedRef: <T>(ref: React.ForwardedRef<T>) => import("react").RefObject<T>;
|
|
2
2
|
//# sourceMappingURL=useForwardedRef.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForwardedRef.d.ts","sourceRoot":"","sources":["../../../src/useForwardedRef.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useForwardedRef.d.ts","sourceRoot":"","sources":["../../../src/useForwardedRef.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,WAAY,MAAM,YAAY,CAAC,CAAC,CAAC,iCAe5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRefCallback.d.ts","sourceRoot":"","sources":["../../../src/useRefCallback.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,OAAO,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"useRefCallback.d.ts","sourceRoot":"","sources":["../../../src/useRefCallback.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,OAAO,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,iBAAgB;IAAE,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;CAGxF,CAAC"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This function utilizes the `useDidTransition` hook to monitor changes in `currentValue`.
|
|
5
5
|
* When `currentValue` transitions from `fromValue` to `toValue`, the provided `callback` function is executed. */
|
|
6
|
-
export declare const useOnTransition: <T>(currentValue: T, fromValue: T | ((value: T) => boolean), toValue:
|
|
6
|
+
export declare const useOnTransition: <T>(currentValue: T, fromValue: T | ((value: T) => boolean), toValue: ((value: T) => boolean) | T, callback: () => void) => void;
|
|
7
7
|
//# sourceMappingURL=useTransitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransitions.d.ts","sourceRoot":"","sources":["../../../src/useTransitions.ts"],"names":[],"mappings":"AAiDA;;;;kHAIkH;AAClH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useTransitions.d.ts","sourceRoot":"","sources":["../../../src/useTransitions.ts"],"names":[],"mappings":"AAiDA;;;;kHAIkH;AAClH,eAAO,MAAM,eAAe,oBACZ,CAAC,aACJ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,WAC7B,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,YAC1B,MAAM,IAAI,SAerB,CAAC"}
|
package/package.json
CHANGED