@veltdev/react 1.0.94 → 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.
@@ -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";
@@ -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 VeltNotificationsHistory } from "./VeltNotificationsHistory";
27
+ export { default as VeltNotificationsHistoryPanel } from "./VeltNotificationsHistoryPanel";
@@ -1,2 +1,2 @@
1
- export declare const VELT_SDK_VERSION = "1.0.109";
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;
@@ -319,11 +319,11 @@ interface IVeltNotificationsPanelProps {
319
319
  }
320
320
  declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
321
321
 
322
- interface IVeltNotificationsHistoryProps {
322
+ interface IVeltNotificationsHistoryPanelProps {
323
323
  embedMode?: boolean;
324
324
  onNotificationClick?: Function;
325
325
  }
326
- declare const VeltNotificationsHistory: React.FC<IVeltNotificationsHistoryProps>;
326
+ declare const VeltNotificationsHistoryPanel: React.FC<IVeltNotificationsHistoryPanelProps>;
327
327
 
328
328
  declare function useVeltClient(): {
329
329
  client: Velt;
@@ -471,6 +471,15 @@ declare function useUniqueViewsByUser(clientLocationId?: string): ViewsByUser |
471
471
  */
472
472
  declare function useUniqueViewsByDate(clientLocationId?: string): ViewsByDate | null;
473
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
+
474
483
  declare type LiveStateMiddlewareConfig = {
475
484
  allowedActionTypes?: Set<string>;
476
485
  disabledActionTypes?: Set<string>;
@@ -479,4 +488,4 @@ declare type LiveStateMiddlewareConfig = {
479
488
  };
480
489
  declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => (store: any) => (next: any) => (action: any) => any;
481
490
 
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, VeltNotificationsHistory, 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, 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.94",
3
+ "version": "1.0.95",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface IVeltNotificationsHistoryProps {
3
- embedMode?: boolean;
4
- onNotificationClick?: Function;
5
- }
6
- declare const VeltNotificationsHistory: React.FC<IVeltNotificationsHistoryProps>;
7
- export default VeltNotificationsHistory;
@@ -1 +0,0 @@
1
- export { default } from "./VeltNotificationsHistory";
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface IVeltNotificationsHistoryProps {
3
- embedMode?: boolean;
4
- onNotificationClick?: Function;
5
- }
6
- declare const VeltNotificationsHistory: React.FC<IVeltNotificationsHistoryProps>;
7
- export default VeltNotificationsHistory;
@@ -1 +0,0 @@
1
- export { default } from "./VeltNotificationsHistory";