@veltdev/react 1.0.118 → 1.0.119
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 +31 -4
- package/cjs/index.js.map +1 -1
- package/cjs/types/hooks/LiveStateSyncElement.d.ts +4 -1
- package/esm/index.js +31 -4
- package/esm/index.js.map +1 -1
- package/esm/types/hooks/LiveStateSyncElement.d.ts +4 -1
- package/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -33,4 +33,7 @@ export declare function useEditorAccessRequestHandler(): {
|
|
|
33
33
|
/**
|
|
34
34
|
* @beta This hook is in beta
|
|
35
35
|
*/
|
|
36
|
-
export declare function useLiveState<T>(liveStateDataId: string, initialValue?: any,
|
|
36
|
+
export declare function useLiveState<T>(liveStateDataId: string, initialValue?: any, options?: {
|
|
37
|
+
syncDuration?: number;
|
|
38
|
+
resetLiveState?: boolean;
|
|
39
|
+
}): [T, (value: T) => void];
|
package/index.d.ts
CHANGED
|
@@ -849,7 +849,10 @@ declare function useEditorAccessRequestHandler(): {
|
|
|
849
849
|
/**
|
|
850
850
|
* @beta This hook is in beta
|
|
851
851
|
*/
|
|
852
|
-
declare function useLiveState<T>(liveStateDataId: string, initialValue?: any,
|
|
852
|
+
declare function useLiveState<T>(liveStateDataId: string, initialValue?: any, options?: {
|
|
853
|
+
syncDuration?: number;
|
|
854
|
+
resetLiveState?: boolean;
|
|
855
|
+
}): [T, (value: T) => void];
|
|
853
856
|
|
|
854
857
|
/**
|
|
855
858
|
* @beta This hook is in beta
|