@veltdev/react 4.0.0-beta.17 → 4.0.0-beta.19
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 +10 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +6 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/Client.d.ts +1 -0
- package/cjs/types/hooks/index.d.ts +1 -1
- package/esm/index.js +10 -4
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +6 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/Client.d.ts +1 -0
- package/esm/types/hooks/index.d.ts +1 -1
- package/index.d.ts +8 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -140,7 +140,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
var VELT_SDK_VERSION = '4.0.0-beta.
|
|
143
|
+
var VELT_SDK_VERSION = '4.0.0-beta.19';
|
|
144
144
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
145
145
|
var VELT_TAB_ID = 'veltTabId';
|
|
146
146
|
|
|
@@ -1401,8 +1401,8 @@ var VeltAutocomplete = function (props) {
|
|
|
1401
1401
|
};
|
|
1402
1402
|
|
|
1403
1403
|
var VeltInlineCommentsSection = function (props) {
|
|
1404
|
-
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, sortData = props.sortData, composerVariant = props.composerVariant;
|
|
1405
|
-
return (React__default["default"].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, "sort-data": sortData, "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, "composer-variant": composerVariant }, children));
|
|
1404
|
+
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, sortData = props.sortData, composerVariant = props.composerVariant, composerPosition = props.composerPosition, sortBy = props.sortBy, sortOrder = props.sortOrder;
|
|
1405
|
+
return (React__default["default"].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, "sort-data": sortData, "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, "composer-variant": composerVariant, "composer-position": composerPosition, "sort-by": sortBy, "sort-order": sortOrder }, children));
|
|
1406
1406
|
};
|
|
1407
1407
|
|
|
1408
1408
|
var VeltCommentPin = function (props) {
|
|
@@ -4425,6 +4425,12 @@ function useUnsetDocumentId() {
|
|
|
4425
4425
|
client && client.unsetDocumentId && client.unsetDocumentId();
|
|
4426
4426
|
}, [client]);
|
|
4427
4427
|
}
|
|
4428
|
+
function useUnsetDocuments() {
|
|
4429
|
+
var client = useVeltClient().client;
|
|
4430
|
+
React__default["default"].useEffect(function () {
|
|
4431
|
+
client && client.unsetDocuments && client.unsetDocuments();
|
|
4432
|
+
}, [client]);
|
|
4433
|
+
}
|
|
4428
4434
|
function useSetLocation(location, appendLocation) {
|
|
4429
4435
|
var client = useVeltClient().client;
|
|
4430
4436
|
// Memoize the setLocation call
|
|
@@ -6049,6 +6055,7 @@ exports.useUnreadCommentCountByLocationId = useUnreadCommentCountByLocationId;
|
|
|
6049
6055
|
exports.useUnreadCommentCountOnCurrentDocument = useUnreadCommentCountOnCurrentDocument;
|
|
6050
6056
|
exports.useUnreadNotificationsCount = useUnreadNotificationsCount;
|
|
6051
6057
|
exports.useUnsetDocumentId = useUnsetDocumentId;
|
|
6058
|
+
exports.useUnsetDocuments = useUnsetDocuments;
|
|
6052
6059
|
exports.useUnsubscribeCommentAnnotation = useUnsubscribeCommentAnnotation;
|
|
6053
6060
|
exports.useUpdateAccess = useUpdateAccess;
|
|
6054
6061
|
exports.useUpdateComment = useUpdateComment;
|