@veltdev/react 1.0.97 → 1.0.99
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 +56 -22
- package/cjs/index.js.map +1 -1
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/LiveStateSyncElement.d.ts +5 -1
- package/cjs/types/hooks/index.d.ts +1 -1
- package/cjs/types/redux/veltLiveStateSynceMiddleware.d.ts +4 -1
- package/esm/index.js +56 -23
- package/esm/index.js.map +1 -1
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/LiveStateSyncElement.d.ts +5 -1
- package/esm/types/hooks/index.d.ts +1 -1
- package/esm/types/redux/veltLiveStateSynceMiddleware.d.ts +4 -1
- package/index.d.ts +10 -3
- package/package.json +1 -1
package/esm/types/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VELT_SDK_VERSION = "1.0.
|
|
1
|
+
export declare const VELT_SDK_VERSION = "1.0.112";
|
|
2
2
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LiveStateSyncElement, User, UserEditorAccess } from "@veltdev/types";
|
|
1
|
+
import { EditorAccessTimer, LiveStateSyncElement, User, UserEditorAccess } from "@veltdev/types";
|
|
2
2
|
/**
|
|
3
3
|
* @beta This hook is in beta
|
|
4
4
|
*/
|
|
@@ -19,6 +19,10 @@ export declare function useUserEditorState(): UserEditorAccess | null;
|
|
|
19
19
|
* @beta This hook is in beta
|
|
20
20
|
*/
|
|
21
21
|
export declare function useEditor(): User | null;
|
|
22
|
+
/**
|
|
23
|
+
* @beta This hook is in beta
|
|
24
|
+
*/
|
|
25
|
+
export declare function useEditorAccessTimer(): EditorAccessTimer;
|
|
22
26
|
/**
|
|
23
27
|
* @beta This hook is in beta
|
|
24
28
|
*/
|
|
@@ -2,7 +2,7 @@ export { useAddLocation, useSetLocation, useSetDocumentId, useIdentify, useClien
|
|
|
2
2
|
export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, } from './CommentElement';
|
|
3
3
|
export { useCursorUtils, useCursorUsers, } from './CursorElement';
|
|
4
4
|
export { useHuddleUtils, } from './HuddleElement';
|
|
5
|
-
export { useLiveStateSyncUtils, useLiveStateData, useSetLiveStateData, useUserEditorState, useEditor, useEditorAccessRequestHandler, useLiveState, } from './LiveStateSyncElement';
|
|
5
|
+
export { useLiveStateSyncUtils, useLiveStateData, useSetLiveStateData, useUserEditorState, useEditor, useEditorAccessTimer, useEditorAccessRequestHandler, useLiveState, } from './LiveStateSyncElement';
|
|
6
6
|
export { usePresenceUtils, usePresenceUsers, } from './PresenceElement';
|
|
7
7
|
export { useRecorderUtils, useRecorderAddHandler, } from './RecorderElement';
|
|
8
8
|
export { useAIRewriterUtils, } from './RewriterElement';
|
|
@@ -4,5 +4,8 @@ declare type LiveStateMiddlewareConfig = {
|
|
|
4
4
|
allowAction?: (action: any) => boolean;
|
|
5
5
|
liveStateDataId?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
|
|
7
|
+
export declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => {
|
|
8
|
+
middleware: (store: any) => (next: any) => (action: any) => any;
|
|
9
|
+
updateLiveStateDataId: (newId?: string) => void;
|
|
10
|
+
};
|
|
8
11
|
export {};
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Config, Velt, User, UserOptions, Location as Location$1, CommentElement, CommentAnnotation, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification } from '@veltdev/types';
|
|
3
|
+
import { Config, Velt, User, UserOptions, Location as Location$1, CommentElement, CommentAnnotation, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification } from '@veltdev/types';
|
|
4
4
|
|
|
5
5
|
interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
6
6
|
apiKey: string;
|
|
@@ -423,6 +423,10 @@ declare function useUserEditorState(): UserEditorAccess | null;
|
|
|
423
423
|
* @beta This hook is in beta
|
|
424
424
|
*/
|
|
425
425
|
declare function useEditor(): User | null;
|
|
426
|
+
/**
|
|
427
|
+
* @beta This hook is in beta
|
|
428
|
+
*/
|
|
429
|
+
declare function useEditorAccessTimer(): EditorAccessTimer;
|
|
426
430
|
/**
|
|
427
431
|
* @beta This hook is in beta
|
|
428
432
|
*/
|
|
@@ -500,6 +504,9 @@ declare type LiveStateMiddlewareConfig = {
|
|
|
500
504
|
allowAction?: (action: any) => boolean;
|
|
501
505
|
liveStateDataId?: string;
|
|
502
506
|
};
|
|
503
|
-
declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
|
|
507
|
+
declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => {
|
|
508
|
+
middleware: (store: any) => (next: any) => (action: any) => any;
|
|
509
|
+
updateLiveStateDataId: (newId?: string) => void;
|
|
510
|
+
};
|
|
504
511
|
|
|
505
|
-
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, SnippylyCommentBubble as VeltCommentBubble, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, SnippylyCursor as VeltCursor, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltVideoPlayer, VeltViewAnalytics, createLiveStateMiddleware, useAIRewriterUtils, useAddLocation, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUserEditorState, useVeltClient, useViewsUtils };
|
|
512
|
+
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, SnippylyCommentBubble as VeltCommentBubble, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, SnippylyCursor as VeltCursor, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltVideoPlayer, VeltViewAnalytics, createLiveStateMiddleware, useAIRewriterUtils, useAddLocation, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUserEditorState, useVeltClient, useViewsUtils };
|