@veltdev/react 1.0.117 → 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 +194 -56
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
- package/cjs/types/hooks/LiveStateSyncElement.d.ts +4 -1
- package/esm/index.js +194 -56
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
- package/esm/types/hooks/LiveStateSyncElement.d.ts +4 -1
- package/index.d.ts +5 -1
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
|
|
|
51
51
|
pinShadowDom?: boolean;
|
|
52
52
|
dialogShadowDom?: boolean;
|
|
53
53
|
shadowDom?: boolean;
|
|
54
|
+
changeDetectionInCommentMode?: boolean;
|
|
54
55
|
allowedElementIds?: string[];
|
|
55
56
|
allowedElementClassNames?: string[];
|
|
56
57
|
allowedElementQuerySelectors?: string[];
|
|
@@ -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
|
@@ -84,6 +84,7 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
|
|
|
84
84
|
pinShadowDom?: boolean;
|
|
85
85
|
dialogShadowDom?: boolean;
|
|
86
86
|
shadowDom?: boolean;
|
|
87
|
+
changeDetectionInCommentMode?: boolean;
|
|
87
88
|
allowedElementIds?: string[];
|
|
88
89
|
allowedElementClassNames?: string[];
|
|
89
90
|
allowedElementQuerySelectors?: string[];
|
|
@@ -848,7 +849,10 @@ declare function useEditorAccessRequestHandler(): {
|
|
|
848
849
|
/**
|
|
849
850
|
* @beta This hook is in beta
|
|
850
851
|
*/
|
|
851
|
-
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];
|
|
852
856
|
|
|
853
857
|
/**
|
|
854
858
|
* @beta This hook is in beta
|