@veltdev/react 1.0.93 → 1.0.95

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.
Files changed (26) hide show
  1. package/cjs/index.js +87 -1
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/VeltNotificationsHistoryPanel/VeltNotificationsHistoryPanel.d.ts +7 -0
  4. package/cjs/types/components/VeltNotificationsHistoryPanel/index.d.ts +1 -0
  5. package/cjs/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +6 -0
  6. package/cjs/types/components/VeltNotificationsPanel/index.d.ts +1 -0
  7. package/cjs/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +6 -0
  8. package/cjs/types/components/VeltNotificationsTool/index.d.ts +1 -0
  9. package/cjs/types/components/index.d.ts +3 -0
  10. package/cjs/types/constants.d.ts +1 -1
  11. package/cjs/types/hooks/NotificationElement.d.ts +9 -0
  12. package/cjs/types/hooks/index.d.ts +1 -0
  13. package/esm/index.js +83 -2
  14. package/esm/index.js.map +1 -1
  15. package/esm/types/components/VeltNotificationsHistoryPanel/VeltNotificationsHistoryPanel.d.ts +7 -0
  16. package/esm/types/components/VeltNotificationsHistoryPanel/index.d.ts +1 -0
  17. package/esm/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +6 -0
  18. package/esm/types/components/VeltNotificationsPanel/index.d.ts +1 -0
  19. package/esm/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +6 -0
  20. package/esm/types/components/VeltNotificationsTool/index.d.ts +1 -0
  21. package/esm/types/components/index.d.ts +3 -0
  22. package/esm/types/constants.d.ts +1 -1
  23. package/esm/types/hooks/NotificationElement.d.ts +9 -0
  24. package/esm/types/hooks/index.d.ts +1 -0
  25. package/index.d.ts +27 -2
  26. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface IVeltNotificationsHistoryPanelProps {
3
+ embedMode?: boolean;
4
+ onNotificationClick?: Function;
5
+ }
6
+ declare const VeltNotificationsHistoryPanel: React.FC<IVeltNotificationsHistoryPanelProps>;
7
+ export default VeltNotificationsHistoryPanel;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltNotificationsHistoryPanel";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltNotificationsPanelProps {
3
+ onNotificationClick?: Function;
4
+ }
5
+ declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
6
+ export default VeltNotificationsPanel;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltNotificationsPanel";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ onNotificationClick?: Function;
4
+ }
5
+ declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
6
+ export default VeltNotificationsTool;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltNotificationsTool";
@@ -22,3 +22,6 @@ export { default as VeltCommentPlayerTimeline } from "./VeltCommentPlayerTimelin
22
22
  export { default as VeltVideoPlayer } from "./VeltVideoPlayer";
23
23
  export { default as VeltViewAnalytics } from "./VeltViewAnalytics";
24
24
  export { default as VeltCommentThread } from "./VeltCommentThread";
25
+ export { default as VeltNotificationsTool } from "./VeltNotificationsTool";
26
+ export { default as VeltNotificationsPanel } from "./VeltNotificationsPanel";
27
+ export { default as VeltNotificationsHistoryPanel } from "./VeltNotificationsHistoryPanel";
@@ -1,2 +1,2 @@
1
- export declare const VELT_SDK_VERSION = "1.0.108";
1
+ export declare const VELT_SDK_VERSION = "1.0.110";
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;
@@ -309,6 +309,22 @@ interface IVeltCommentThreadProps {
309
309
  }
310
310
  declare const VeltCommentThread: React.FC<IVeltCommentThreadProps>;
311
311
 
312
+ interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
313
+ onNotificationClick?: Function;
314
+ }
315
+ declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
316
+
317
+ interface IVeltNotificationsPanelProps {
318
+ onNotificationClick?: Function;
319
+ }
320
+ declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
321
+
322
+ interface IVeltNotificationsHistoryPanelProps {
323
+ embedMode?: boolean;
324
+ onNotificationClick?: Function;
325
+ }
326
+ declare const VeltNotificationsHistoryPanel: React.FC<IVeltNotificationsHistoryPanelProps>;
327
+
312
328
  declare function useVeltClient(): {
313
329
  client: Velt;
314
330
  };
@@ -455,6 +471,15 @@ declare function useUniqueViewsByUser(clientLocationId?: string): ViewsByUser |
455
471
  */
456
472
  declare function useUniqueViewsByDate(clientLocationId?: string): ViewsByDate | null;
457
473
 
474
+ /**
475
+ * @beta This hook is in beta
476
+ */
477
+ declare function useNotificationUtils(): NotificationElement | undefined;
478
+ /**
479
+ * @beta This hook is in beta
480
+ */
481
+ declare function useNotificationsData(): Notification[] | null;
482
+
458
483
  declare type LiveStateMiddlewareConfig = {
459
484
  allowedActionTypes?: Set<string>;
460
485
  disabledActionTypes?: Set<string>;
@@ -463,4 +488,4 @@ declare type LiveStateMiddlewareConfig = {
463
488
  };
464
489
  declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => (store: any) => (next: any) => (action: any) => any;
465
490
 
466
- 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, 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, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUserEditorState, useVeltClient, useViewsUtils };
491
+ 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",