@veltdev/react 3.0.40 → 3.0.42
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 +3 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -1
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentElement.d.ts +4 -4
- package/esm/index.js +3 -3
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -1
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentElement.d.ts +4 -4
- package/index.d.ts +5 -5
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ export interface IVeltCommentsSidebarProps {
|
|
|
61
61
|
darkMode?: boolean;
|
|
62
62
|
position?: "right" | "left";
|
|
63
63
|
filterPanelLayout?: 'menu' | 'bottomSheet';
|
|
64
|
-
|
|
64
|
+
customActions?: boolean;
|
|
65
65
|
}
|
|
66
66
|
declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
|
|
67
67
|
export default SnippylyCommentsSidebar;
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData,
|
|
1
|
+
import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData } from "@veltdev/types";
|
|
2
2
|
export declare function useCommentUtils(): CommentElement | undefined;
|
|
3
3
|
export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null | undefined;
|
|
4
4
|
export declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
|
|
@@ -28,6 +28,6 @@ export declare function useCommentAnnotationById(config: {
|
|
|
28
28
|
annotationId: string;
|
|
29
29
|
documentId?: string;
|
|
30
30
|
}): CommentAnnotation | null | undefined;
|
|
31
|
-
export declare function useCommentSidebarActionButtonClick():
|
|
32
|
-
export declare function useCommentSidebarInit():
|
|
33
|
-
export declare function useCommentSidebarData():
|
|
31
|
+
export declare function useCommentSidebarActionButtonClick(): CommentSidebarCustomActionEventData | null;
|
|
32
|
+
export declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData | null;
|
|
33
|
+
export declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
|
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.
|
|
135
|
+
var VELT_SDK_VERSION = '3.0.42';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -355,7 +355,7 @@ var SnippylyComments = function (props) {
|
|
|
355
355
|
};
|
|
356
356
|
|
|
357
357
|
var SnippylyCommentsSidebar = function (props) {
|
|
358
|
-
var embedMode = props.embedMode; props.floatingMode; var enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, queryParamsComments = props.queryParamsComments, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, onSidebarClose = props.onSidebarClose, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout,
|
|
358
|
+
var embedMode = props.embedMode; props.floatingMode; var enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, queryParamsComments = props.queryParamsComments, pageMode = props.pageMode, currentLocationSuffix = props.currentLocationSuffix, sortData = props.sortData, filterConfig = props.filterConfig, groupConfig = props.groupConfig, filters = props.filters, excludeLocationIds = props.excludeLocationIds, variant = props.variant, pageModeComposerVariant = props.pageModeComposerVariant, dialogVariant = props.dialogVariant, shadowDom = props.shadowDom, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick, onCommentClick = props.onCommentClick, onSidebarClose = props.onSidebarClose, darkMode = props.darkMode, position = props.position, filterPanelLayout = props.filterPanelLayout, customActions = props.customActions;
|
|
359
359
|
var ref = useRef();
|
|
360
360
|
var openSidebarRef = useRef(openSidebar);
|
|
361
361
|
var onSidebarOpenRef = useRef(onSidebarOpen);
|
|
@@ -417,7 +417,7 @@ var SnippylyCommentsSidebar = function (props) {
|
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
}, []);
|
|
420
|
-
return (React.createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "custom-
|
|
420
|
+
return (React.createElement("velt-comments-sidebar", { ref: ref, position: position, "filter-panel-layout": filterPanelLayout, "custom-actions": [true, false].includes(customActions) ? (customActions ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "enable-url-navigation": [true, false].includes(enableUrlNavigation) ? (enableUrlNavigation ? 'true' : 'false') : undefined, "url-navigation": [true, false].includes(urlNavigation) ? (urlNavigation ? 'true' : 'false') : undefined, "query-params-comments": [true, false].includes(queryParamsComments) ? (queryParamsComments ? 'true' : 'false') : undefined, "page-mode": [true, false].includes(pageMode) ? (pageMode ? 'true' : 'false') : undefined, "current-location-suffix": [true, false].includes(currentLocationSuffix) ? (currentLocationSuffix ? 'true' : 'false') : undefined, "filter-config": filterConfig ? JSON.stringify(filterConfig) : undefined, "group-config": groupConfig ? JSON.stringify(groupConfig) : undefined, filters: filters ? JSON.stringify(filters) : undefined, "exclude-location-ids": excludeLocationIds ? JSON.stringify(excludeLocationIds) : undefined, variant: variant, "page-mode-composer-variant": pageModeComposerVariant, "dialog-variant": dialogVariant, "sort-data": sortData, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined }));
|
|
421
421
|
};
|
|
422
422
|
|
|
423
423
|
var SnippylyCommentTool = function (props) {
|