@veltdev/react 3.0.18 → 3.0.20

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 (24) hide show
  1. package/cjs/index.js +19 -7
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +9 -0
  4. package/cjs/types/components/VeltCommentComposer/index.d.ts +1 -0
  5. package/cjs/types/components/VeltCommentComposerWireframe/VeltInlineCommentsSectionWireframe.d.ts +8 -0
  6. package/cjs/types/components/VeltCommentComposerWireframe/index.d.ts +1 -0
  7. package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
  8. package/cjs/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
  9. package/cjs/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
  10. package/cjs/types/components/index.d.ts +2 -0
  11. package/cjs/types/constants.d.ts +1 -1
  12. package/esm/index.js +18 -8
  13. package/esm/index.js.map +1 -1
  14. package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +9 -0
  15. package/esm/types/components/VeltCommentComposer/index.d.ts +1 -0
  16. package/esm/types/components/VeltCommentComposerWireframe/VeltInlineCommentsSectionWireframe.d.ts +8 -0
  17. package/esm/types/components/VeltCommentComposerWireframe/index.d.ts +1 -0
  18. package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
  19. package/esm/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
  20. package/esm/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
  21. package/esm/types/components/index.d.ts +2 -0
  22. package/esm/types/constants.d.ts +1 -1
  23. package/index.d.ts +19 -1
  24. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentComposerProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ darkMode?: boolean;
4
+ variant?: string;
5
+ dialogVariant?: string;
6
+ shadowDom?: boolean;
7
+ }
8
+ declare const VeltCommentComposer: React.FC<IVeltCommentComposerProps>;
9
+ export default VeltCommentComposer;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentComposer";
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentComposerWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ variant?: string;
4
+ }
5
+ export interface IVeltCommentComposerWireframe extends React.FC<IVeltCommentComposerWireframeProps> {
6
+ }
7
+ declare const VeltCommentComposerWireframe: IVeltCommentComposerWireframe;
8
+ export default VeltCommentComposerWireframe;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltInlineCommentsSectionWireframe";
@@ -17,6 +17,7 @@ export interface IVeltInlineCommentsSectionProps extends React.DetailedHTMLProps
17
17
  variant?: string;
18
18
  dialogVariant?: string;
19
19
  shadowDom?: boolean;
20
+ multiThread?: boolean;
20
21
  }
21
22
  declare const VeltInlineCommentsSection: React.FC<IVeltInlineCommentsSectionProps>;
22
23
  export default VeltInlineCommentsSection;
@@ -15,6 +15,7 @@ export interface IVeltNotificationsPanelProps {
15
15
  shadowDom?: boolean;
16
16
  variant?: string;
17
17
  tabConfig?: NotificationTabConfig;
18
+ readNotificationsOnForYouTab?: boolean;
18
19
  }
19
20
  declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
20
21
  export default VeltNotificationsPanel;
@@ -19,6 +19,7 @@ export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<Rea
19
19
  panelOpenMode?: 'popover' | 'sidebar';
20
20
  panelVariant?: string;
21
21
  maxDays?: number;
22
+ readNotificationsOnForYouTab?: boolean;
22
23
  }
23
24
  declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
24
25
  export default VeltNotificationsTool;
@@ -38,6 +38,7 @@ export { default as VeltIf } from "./VeltIf";
38
38
  export { default as VeltCommentsMinimap } from "./VeltCommentsMinimap";
39
39
  export { default as VeltReactionTool } from "./VeltReactionTool";
40
40
  export { default as VeltInlineReactionsSection } from "./VeltInlineReactionsSection";
41
+ export { default as VeltCommentComposer } from "./VeltCommentComposer";
41
42
  export { default as VeltWireframe } from "./VeltWireframe";
42
43
  export { default as VeltCommentDialogWireframe } from "./VeltCommentDialogWireframe";
43
44
  export { default as VeltCommentsSidebarWireframe } from "./VeltCommentsSidebarWireframe";
@@ -68,3 +69,4 @@ export { default as VeltConfirmDialogWireframe } from "./VeltConfirmDialogWirefr
68
69
  export { default as VeltInlineReactionsSectionWireframe } from "./VeltInlineReactionsSectionWireframe";
69
70
  export { default as VeltPersistentCommentModeWireframe } from "./VeltPersistentCommentModeWireframe";
70
71
  export { default as VeltMultiThreadCommentDialogWireframe } from "./VeltMultiThreadCommentDialogWireframe";
72
+ export { default as VeltCommentComposerWireframe } from "./VeltCommentComposerWireframe";
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.18";
1
+ export declare const VELT_SDK_VERSION = "3.0.20";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
package/esm/index.js CHANGED
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
132
132
  }
133
133
  };
134
134
 
135
- var VELT_SDK_VERSION = '3.0.18';
135
+ var VELT_SDK_VERSION = '3.0.20';
136
136
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
137
137
  var VELT_TAB_ID = 'veltTabId';
138
138
 
@@ -804,7 +804,7 @@ var VeltCommentThread = function (props) {
804
804
  };
805
805
 
806
806
  var VeltNotificationsTool = function (props) {
807
- var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant;
807
+ var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab;
808
808
  var ref = useRef();
809
809
  var onNotificationClickRef = useRef(onNotificationClick);
810
810
  // Update the ref to always point to the latest callback function
@@ -830,11 +830,11 @@ var VeltNotificationsTool = function (props) {
830
830
  }
831
831
  };
832
832
  }, []);
833
- return (React.createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, panelVariant: panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
833
+ return (React.createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, panelVariant: panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined }, children));
834
834
  };
835
835
 
836
836
  var VeltNotificationsPanel = function (props) {
837
- var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant;
837
+ var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab;
838
838
  var ref = useRef();
839
839
  var onNotificationClickRef = useRef(onNotificationClick);
840
840
  // Update the ref to always point to the latest callback function
@@ -860,7 +860,7 @@ var VeltNotificationsPanel = function (props) {
860
860
  }
861
861
  };
862
862
  }, []);
863
- return (React.createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
863
+ return (React.createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined }));
864
864
  };
865
865
 
866
866
  var VeltNotificationsHistoryPanel = function (props) {
@@ -1363,8 +1363,8 @@ var VeltAutocomplete = function (props) {
1363
1363
  };
1364
1364
 
1365
1365
  var VeltInlineCommentsSection = function (props) {
1366
- var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId;
1367
- return (React.createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
1366
+ var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, multiThread = props.multiThread;
1367
+ return (React.createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined }, children));
1368
1368
  };
1369
1369
 
1370
1370
  var VeltCommentPin = function (props) {
@@ -1428,6 +1428,11 @@ var VeltInlineReactionsSection = function (props) {
1428
1428
  return (React.createElement("velt-inline-reactions-section", { "target-reaction-element-id": targetReactionElementId, variant: variant, "custom-reactions": JSON.stringify(customReactions), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
1429
1429
  };
1430
1430
 
1431
+ var VeltCommentComposer = function (props) {
1432
+ var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant;
1433
+ return (React.createElement("velt-comment-composer", { variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
1434
+ };
1435
+
1431
1436
  var VeltWireframe = function (props) {
1432
1437
  var children = props.children;
1433
1438
  return (React.createElement("velt-wireframe", { style: { display: 'none' } }, children));
@@ -3295,6 +3300,11 @@ VeltMultiThreadCommentDialogWireframe.CloseButton = VeltMultiThreadCommentDialog
3295
3300
  VeltMultiThreadCommentDialogWireframe.MinimalFilterDropdown = VeltMultiThreadCommentDialogMinimalFilterDropdownWireframe;
3296
3301
  VeltMultiThreadCommentDialogWireframe.EmptyPlaceholder = VeltMultiThreadCommentDialogEmptyPlaceholderWireframe;
3297
3302
 
3303
+ var VeltCommentComposerWireframe = function (props) {
3304
+ var children = props.children, remainingProps = __rest(props, ["children"]);
3305
+ return (React.createElement("velt-comment-composer-wireframe", __assign({}, remainingProps), children));
3306
+ };
3307
+
3298
3308
  function useClient() {
3299
3309
  var client = useVeltClient().client;
3300
3310
  var _a = React.useState(), veltClient = _a[0], setVeltClient = _a[1];
@@ -4065,5 +4075,5 @@ var logLiveState = function (action, liveStateDataId) {
4065
4075
  }
4066
4076
  };
4067
4077
 
4068
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
4078
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
4069
4079
  //# sourceMappingURL=index.js.map