@veltdev/react 1.0.94 → 1.0.96
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 -21
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyArrowTool/SnippylyArrowTool.d.ts +1 -0
- package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/cjs/types/components/SnippylyHuddleTool/SnippylyHuddleTool.d.ts +1 -0
- package/cjs/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
- package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/cjs/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsHistoryPanel/VeltNotificationsHistoryPanel.d.ts +8 -0
- package/cjs/types/components/VeltNotificationsHistoryPanel/index.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/cjs/types/components/index.d.ts +1 -1
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/NotificationElement.d.ts +9 -0
- package/cjs/types/hooks/index.d.ts +1 -0
- package/esm/index.js +54 -21
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyArrowTool/SnippylyArrowTool.d.ts +1 -0
- package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/esm/types/components/SnippylyHuddleTool/SnippylyHuddleTool.d.ts +1 -0
- package/esm/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
- package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/esm/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/esm/types/components/VeltNotificationsHistoryPanel/VeltNotificationsHistoryPanel.d.ts +8 -0
- package/esm/types/components/VeltNotificationsHistoryPanel/index.d.ts +1 -0
- package/esm/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/esm/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/esm/types/components/index.d.ts +1 -1
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/NotificationElement.d.ts +9 -0
- package/esm/types/hooks/index.d.ts +1 -0
- package/index.d.ts +22 -4
- package/package.json +1 -1
- package/cjs/types/components/VeltNotificationsHistory/VeltNotificationsHistory.d.ts +0 -7
- package/cjs/types/components/VeltNotificationsHistory/index.d.ts +0 -1
- package/esm/types/components/VeltNotificationsHistory/VeltNotificationsHistory.d.ts +0 -7
- package/esm/types/components/VeltNotificationsHistory/index.d.ts +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltArrowToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
darkMode?: boolean;
|
|
3
4
|
}
|
|
4
5
|
declare const SnippylyArrowTool: React.FC<IVeltArrowToolProps>;
|
|
5
6
|
export default SnippylyArrowTool;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export interface IVeltCommentToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
targetCommentElementId?: string;
|
|
4
4
|
onCommentModeChange?: Function;
|
|
5
|
+
darkMode?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const SnippylyCommentTool: React.FC<IVeltCommentToolProps>;
|
|
7
8
|
export default SnippylyCommentTool;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltHuddleToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
type?: string;
|
|
4
|
+
darkMode?: boolean;
|
|
4
5
|
}
|
|
5
6
|
declare const SnippylyHuddleTool: React.FC<IVeltHuddleToolProps>;
|
|
6
7
|
export default SnippylyHuddleTool;
|
|
@@ -3,6 +3,7 @@ export interface IVeltRecorderToolProps extends React.DetailedHTMLProps<React.HT
|
|
|
3
3
|
type?: string;
|
|
4
4
|
panelId?: string;
|
|
5
5
|
buttonLabel?: string;
|
|
6
|
+
darkMode?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const SnippylyRecorderTool: React.FC<IVeltRecorderToolProps>;
|
|
8
9
|
export default SnippylyRecorderTool;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
tooltipText?: string;
|
|
4
|
+
darkMode?: boolean;
|
|
4
5
|
}
|
|
5
6
|
declare const SnippylySidebarButton: React.FC<IVeltSidebarButtonProps>;
|
|
6
7
|
export default SnippylySidebarButton;
|
|
@@ -7,6 +7,7 @@ export interface IVeltUserInviteToolProps extends React.DetailedHTMLProps<React.
|
|
|
7
7
|
inviteUrl?: string;
|
|
8
8
|
accessControlDropdown?: boolean;
|
|
9
9
|
documentUserAccessList?: boolean;
|
|
10
|
+
darkMode?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const SnippylyUserInviteTool: React.FC<IVeltUserInviteToolProps>;
|
|
12
13
|
export default SnippylyUserInviteTool;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IVeltNotificationsHistoryPanelProps {
|
|
3
|
+
embedMode?: boolean;
|
|
4
|
+
onNotificationClick?: Function;
|
|
5
|
+
darkMode?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const VeltNotificationsHistoryPanel: React.FC<IVeltNotificationsHistoryPanelProps>;
|
|
8
|
+
export default VeltNotificationsHistoryPanel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VeltNotificationsHistoryPanel";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
darkMode?: boolean;
|
|
3
4
|
onNotificationClick?: Function;
|
|
4
5
|
}
|
|
5
6
|
declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
|
|
@@ -24,4 +24,4 @@ export { default as VeltViewAnalytics } from "./VeltViewAnalytics";
|
|
|
24
24
|
export { default as VeltCommentThread } from "./VeltCommentThread";
|
|
25
25
|
export { default as VeltNotificationsTool } from "./VeltNotificationsTool";
|
|
26
26
|
export { default as VeltNotificationsPanel } from "./VeltNotificationsPanel";
|
|
27
|
-
export { default as
|
|
27
|
+
export { default as VeltNotificationsHistoryPanel } from "./VeltNotificationsHistoryPanel";
|
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.111";
|
|
2
2
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Notification, NotificationElement } from "@veltdev/types";
|
|
2
|
+
/**
|
|
3
|
+
* @beta This hook is in beta
|
|
4
|
+
*/
|
|
5
|
+
export declare function useNotificationUtils(): NotificationElement | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* @beta This hook is in beta
|
|
8
|
+
*/
|
|
9
|
+
export declare function useNotificationsData(): Notification[] | null;
|
|
@@ -9,3 +9,4 @@ export { useAIRewriterUtils, } from './RewriterElement';
|
|
|
9
9
|
export { useLiveSelectionUtils, } from './SelectionElement';
|
|
10
10
|
export { useTagUtils, useTagAnnotations, } from './TagElement';
|
|
11
11
|
export { useViewsUtils, useUniqueViewsByDate, useUniqueViewsByUser, } from './ViewsElement';
|
|
12
|
+
export { useNotificationUtils, useNotificationsData, } from './NotificationElement';
|
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 } from '@veltdev/types';
|
|
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';
|
|
4
4
|
|
|
5
5
|
interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
6
6
|
apiKey: string;
|
|
@@ -163,6 +163,7 @@ declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
|
|
|
163
163
|
interface IVeltCommentToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
164
164
|
targetCommentElementId?: string;
|
|
165
165
|
onCommentModeChange?: Function;
|
|
166
|
+
darkMode?: boolean;
|
|
166
167
|
}
|
|
167
168
|
declare const SnippylyCommentTool: React.FC<IVeltCommentToolProps>;
|
|
168
169
|
|
|
@@ -184,6 +185,7 @@ declare const SnippylyHuddle: React.FC<IVeltHuddleProps>;
|
|
|
184
185
|
|
|
185
186
|
interface IVeltHuddleToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
186
187
|
type?: string;
|
|
188
|
+
darkMode?: boolean;
|
|
187
189
|
}
|
|
188
190
|
declare const SnippylyHuddleTool: React.FC<IVeltHuddleToolProps>;
|
|
189
191
|
|
|
@@ -239,11 +241,13 @@ interface IVeltRecorderToolProps extends React.DetailedHTMLProps<React.HTMLAttri
|
|
|
239
241
|
type?: string;
|
|
240
242
|
panelId?: string;
|
|
241
243
|
buttonLabel?: string;
|
|
244
|
+
darkMode?: boolean;
|
|
242
245
|
}
|
|
243
246
|
declare const SnippylyRecorderTool: React.FC<IVeltRecorderToolProps>;
|
|
244
247
|
|
|
245
248
|
interface IVeltSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
246
249
|
tooltipText?: string;
|
|
250
|
+
darkMode?: boolean;
|
|
247
251
|
}
|
|
248
252
|
declare const SnippylySidebarButton: React.FC<IVeltSidebarButtonProps>;
|
|
249
253
|
|
|
@@ -260,6 +264,7 @@ declare const SnippylyTagTool: React.FC<IVeltTagToolProps>;
|
|
|
260
264
|
declare const SnippylyArrows: React.FC<any>;
|
|
261
265
|
|
|
262
266
|
interface IVeltArrowToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
267
|
+
darkMode?: boolean;
|
|
263
268
|
}
|
|
264
269
|
declare const SnippylyArrowTool: React.FC<IVeltArrowToolProps>;
|
|
265
270
|
|
|
@@ -271,6 +276,7 @@ interface IVeltUserInviteToolProps extends React.DetailedHTMLProps<React.HTMLAtt
|
|
|
271
276
|
inviteUrl?: string;
|
|
272
277
|
accessControlDropdown?: boolean;
|
|
273
278
|
documentUserAccessList?: boolean;
|
|
279
|
+
darkMode?: boolean;
|
|
274
280
|
}
|
|
275
281
|
declare const SnippylyUserInviteTool: React.FC<IVeltUserInviteToolProps>;
|
|
276
282
|
|
|
@@ -310,20 +316,23 @@ interface IVeltCommentThreadProps {
|
|
|
310
316
|
declare const VeltCommentThread: React.FC<IVeltCommentThreadProps>;
|
|
311
317
|
|
|
312
318
|
interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
319
|
+
darkMode?: boolean;
|
|
313
320
|
onNotificationClick?: Function;
|
|
314
321
|
}
|
|
315
322
|
declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
|
|
316
323
|
|
|
317
324
|
interface IVeltNotificationsPanelProps {
|
|
325
|
+
darkMode?: boolean;
|
|
318
326
|
onNotificationClick?: Function;
|
|
319
327
|
}
|
|
320
328
|
declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
|
|
321
329
|
|
|
322
|
-
interface
|
|
330
|
+
interface IVeltNotificationsHistoryPanelProps {
|
|
323
331
|
embedMode?: boolean;
|
|
324
332
|
onNotificationClick?: Function;
|
|
333
|
+
darkMode?: boolean;
|
|
325
334
|
}
|
|
326
|
-
declare const
|
|
335
|
+
declare const VeltNotificationsHistoryPanel: React.FC<IVeltNotificationsHistoryPanelProps>;
|
|
327
336
|
|
|
328
337
|
declare function useVeltClient(): {
|
|
329
338
|
client: Velt;
|
|
@@ -471,6 +480,15 @@ declare function useUniqueViewsByUser(clientLocationId?: string): ViewsByUser |
|
|
|
471
480
|
*/
|
|
472
481
|
declare function useUniqueViewsByDate(clientLocationId?: string): ViewsByDate | null;
|
|
473
482
|
|
|
483
|
+
/**
|
|
484
|
+
* @beta This hook is in beta
|
|
485
|
+
*/
|
|
486
|
+
declare function useNotificationUtils(): NotificationElement | undefined;
|
|
487
|
+
/**
|
|
488
|
+
* @beta This hook is in beta
|
|
489
|
+
*/
|
|
490
|
+
declare function useNotificationsData(): Notification[] | null;
|
|
491
|
+
|
|
474
492
|
declare type LiveStateMiddlewareConfig = {
|
|
475
493
|
allowedActionTypes?: Set<string>;
|
|
476
494
|
disabledActionTypes?: Set<string>;
|
|
@@ -479,4 +497,4 @@ declare type LiveStateMiddlewareConfig = {
|
|
|
479
497
|
};
|
|
480
498
|
declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => (store: any) => (next: any) => (action: any) => any;
|
|
481
499
|
|
|
482
|
-
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,
|
|
500
|
+
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, 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 };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./VeltNotificationsHistory";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./VeltNotificationsHistory";
|