@veltdev/react 1.0.79 → 1.0.81
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 +76 -9
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
- package/cjs/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/cjs/types/components/VeltDocumentViewerTrend/VeltDocumentViewerTrend.d.ts +7 -0
- package/cjs/types/components/VeltDocumentViewerTrend/index.d.ts +1 -0
- package/cjs/types/components/VeltVideoPlayer/VeltVideoPlayer.d.ts +1 -0
- package/cjs/types/components/index.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/ViewsElement.d.ts +13 -0
- package/cjs/types/hooks/index.d.ts +1 -0
- package/cjs/types/loadSnippyly.d.ts +1 -1
- package/esm/index.js +73 -10
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +2 -0
- package/esm/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/esm/types/components/VeltDocumentViewerTrend/VeltDocumentViewerTrend.d.ts +7 -0
- package/esm/types/components/VeltDocumentViewerTrend/index.d.ts +1 -0
- package/esm/types/components/VeltVideoPlayer/VeltVideoPlayer.d.ts +1 -0
- package/esm/types/components/index.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/ViewsElement.d.ts +13 -0
- package/esm/types/hooks/index.d.ts +1 -0
- package/esm/types/loadSnippyly.d.ts +1 -1
- package/index.d.ts +25 -2
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -77,15 +77,19 @@ function useVeltClient() {
|
|
|
77
77
|
return React.useContext(VeltContext);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
var loadVelt = function (callback, version, staging) {
|
|
80
|
+
var loadVelt = function (callback, version, staging, develop) {
|
|
81
81
|
if (version === void 0) { version = 'latest'; }
|
|
82
82
|
if (staging === void 0) { staging = false; }
|
|
83
|
+
if (develop === void 0) { develop = false; }
|
|
83
84
|
var existingScript = document.getElementById('veltScript');
|
|
84
85
|
if (!existingScript) {
|
|
85
86
|
var script = document.createElement('script');
|
|
86
87
|
if (staging) {
|
|
87
88
|
script.src = "https://us-central1-snipply-sdk-staging.cloudfunctions.net/getPrivateNpmPackageFile?packageName=sdk-staging&packageVersion=".concat((!version || version === 'latest') ? '1.0.1' : version, "&filePath=velt.js&orgName=@veltdev");
|
|
88
89
|
}
|
|
90
|
+
else if (develop) {
|
|
91
|
+
script.src = "https://us-central1-snipply-sdk-staging.cloudfunctions.net/getPrivateNpmPackageFile?packageName=sdk-dev&packageVersion=".concat((!version || version === 'latest') ? '1.0.1' : version, "&filePath=velt.js&orgName=@veltdev");
|
|
92
|
+
}
|
|
89
93
|
else {
|
|
90
94
|
script.src = "https://cdn.jsdelivr.net/npm/@veltdev/sdk@".concat(version, "/velt.js");
|
|
91
95
|
}
|
|
@@ -105,7 +109,7 @@ var loadVelt = function (callback, version, staging) {
|
|
|
105
109
|
}
|
|
106
110
|
};
|
|
107
111
|
|
|
108
|
-
var VELT_SDK_VERSION = '1.0.
|
|
112
|
+
var VELT_SDK_VERSION = '1.0.98';
|
|
109
113
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
110
114
|
|
|
111
115
|
var SnippylyProvider = function (props) {
|
|
@@ -115,7 +119,7 @@ var SnippylyProvider = function (props) {
|
|
|
115
119
|
if (apiKey) {
|
|
116
120
|
loadVelt(function () {
|
|
117
121
|
initVelt();
|
|
118
|
-
}, (config === null || config === void 0 ? void 0 : config.version) || VELT_SDK_VERSION, config === null || config === void 0 ? void 0 : config.staging);
|
|
122
|
+
}, (config === null || config === void 0 ? void 0 : config.version) || VELT_SDK_VERSION, config === null || config === void 0 ? void 0 : config.staging, config === null || config === void 0 ? void 0 : config.develop);
|
|
119
123
|
}
|
|
120
124
|
}, []);
|
|
121
125
|
var initVelt = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -128,6 +132,9 @@ var SnippylyProvider = function (props) {
|
|
|
128
132
|
if (config.staging) {
|
|
129
133
|
delete config.staging;
|
|
130
134
|
}
|
|
135
|
+
if (config.develop) {
|
|
136
|
+
delete config.develop;
|
|
137
|
+
}
|
|
131
138
|
if (config.version) {
|
|
132
139
|
delete config.version;
|
|
133
140
|
}
|
|
@@ -192,7 +199,7 @@ var SnippylyCommentBubble = function (props) {
|
|
|
192
199
|
};
|
|
193
200
|
|
|
194
201
|
var SnippylyComments = function (props) {
|
|
195
|
-
var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, onSignIn = props.onSignIn, onUpgrade = props.onUpgrade, textMode = props.textMode, popoverMode = props.popoverMode, popoverTriangleComponent = props.popoverTriangleComponent, floatingCommentDialog = props.floatingCommentDialog, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, upgradeButton = props.upgradeButton, attachments = props.attachments, recordings = props.recordings, reactions = props.reactions, deviceInfo = props.deviceInfo, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, mobileMode = props.mobileMode, inlineCommentMode = props.inlineCommentMode, privateCommentMode = props.privateCommentMode, minimap = props.minimap, persistentCommentMode = props.persistentCommentMode, ghostComments = props.ghostComments, ghostCommentsIndicator = props.ghostCommentsIndicator, commentsOnDom = props.commentsOnDom, commentTool = props.commentTool, sidebarButtonOnCommentDialog = props.sidebarButtonOnCommentDialog, scrollToComment = props.scrollToComment, userMentions = props.userMentions, deleteOnBackspace = props.deleteOnBackspace, hotkey = props.hotkey, allowedElementIds = props.allowedElementIds, onCommentAdd = props.onCommentAdd, onCommentUpdate = props.onCommentUpdate, onCommentAccept = props.onCommentAccept, onCommentReject = props.onCommentReject, onSidebarButtonOnCommentDialogClick = props.onSidebarButtonOnCommentDialogClick, customStatus = props.customStatus, customPriority = props.customPriority, customCategory = props.customCategory, status = props.status, resolveButton = props.resolveButton, darkMode = props.darkMode, onCustomPinInject = props.onCustomPinInject, children = props.children;
|
|
202
|
+
var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, onSignIn = props.onSignIn, onUpgrade = props.onUpgrade, textMode = props.textMode, popoverMode = props.popoverMode, popoverTriangleComponent = props.popoverTriangleComponent, floatingCommentDialog = props.floatingCommentDialog, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, upgradeButton = props.upgradeButton, attachments = props.attachments, recordings = props.recordings, reactions = props.reactions, deviceInfo = props.deviceInfo, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, mobileMode = props.mobileMode, inlineCommentMode = props.inlineCommentMode, privateCommentMode = props.privateCommentMode, minimap = props.minimap, persistentCommentMode = props.persistentCommentMode, ghostComments = props.ghostComments, ghostCommentsIndicator = props.ghostCommentsIndicator, commentsOnDom = props.commentsOnDom, commentTool = props.commentTool, sidebarButtonOnCommentDialog = props.sidebarButtonOnCommentDialog, scrollToComment = props.scrollToComment, userMentions = props.userMentions, deleteOnBackspace = props.deleteOnBackspace, hotkey = props.hotkey, allowedElementIds = props.allowedElementIds, allowedElementClassNames = props.allowedElementClassNames, allowedElementQuerySelectors = props.allowedElementQuerySelectors, onCommentAdd = props.onCommentAdd, onCommentUpdate = props.onCommentUpdate, onCommentAccept = props.onCommentAccept, onCommentReject = props.onCommentReject, onSidebarButtonOnCommentDialogClick = props.onSidebarButtonOnCommentDialogClick, customStatus = props.customStatus, customPriority = props.customPriority, customCategory = props.customCategory, status = props.status, resolveButton = props.resolveButton, darkMode = props.darkMode, onCustomPinInject = props.onCustomPinInject, children = props.children;
|
|
196
203
|
var ref = React.useRef();
|
|
197
204
|
React.useEffect(function () {
|
|
198
205
|
if (ref.current) {
|
|
@@ -239,7 +246,7 @@ var SnippylyComments = function (props) {
|
|
|
239
246
|
});
|
|
240
247
|
}
|
|
241
248
|
}, []);
|
|
242
|
-
return (React__default["default"].createElement("velt-comments", { ref: ref, "auto-categorize": [true, false].includes(autoCategorize) ? (autoCategorize ? 'true' : 'false') : undefined, "data-stream-view-container-id": streamViewContainerId, "text-mode": [true, false].includes(textMode) ? (textMode ? 'true' : 'false') : undefined, "popover-mode": [true, false].includes(popoverMode) ? (popoverMode ? 'true' : 'false') : undefined, "popover-triangle-component": [true, false].includes(popoverTriangleComponent) ? (popoverTriangleComponent ? 'true' : 'false') : undefined, "floating-comment-dialog": [true, false].includes(floatingCommentDialog) ? (floatingCommentDialog ? 'true' : 'false') : undefined, "moderator-mode": [true, false].includes(moderatorMode) ? (moderatorMode ? 'true' : 'false') : undefined, "stream-mode": [true, false].includes(streamMode) ? (streamMode ? 'true' : 'false') : undefined, "sign-in-button": [true, false].includes(signInButton) ? (signInButton ? 'true' : 'false') : undefined, "upgrade-button": [true, false].includes(upgradeButton) ? (upgradeButton ? 'true' : 'false') : undefined, attachments: [true, false].includes(attachments) ? (attachments ? 'true' : 'false') : undefined, recordings: recordings, reactions: [true, false].includes(reactions) ? (reactions ? 'true' : 'false') : undefined, "device-info": [true, false].includes(deviceInfo) ? (deviceInfo ? 'true' : 'false') : undefined, "comment-index": [true, false].includes(commentIndex) ? (commentIndex ? 'true' : 'false') : undefined, "dialog-on-hover": [true, false].includes(dialogOnHover) ? (dialogOnHover ? 'true' : 'false') : undefined, "dialog-on-target-element-click": [true, false].includes(dialogOnTargetElementClick) ? (dialogOnTargetElementClick ? 'true' : 'false') : undefined, priority: [true, false].includes(priority) ? (priority ? 'true' : 'false') : undefined, status: [true, false].includes(status) ? (status ? 'true' : 'false') : undefined, "resolve-button": [true, false].includes(resolveButton) ? (resolveButton ? 'true' : 'false') : undefined, "inbox-mode": [true, false].includes(inboxMode) ? (inboxMode ? 'true' : 'false') : undefined, "suggestion-mode": [true, false].includes(suggestionMode) ? (suggestionMode ? 'true' : 'false') : undefined, "mobile-mode": [true, false].includes(mobileMode) ? (mobileMode ? 'true' : 'false') : undefined, "inline-comment-mode": [true, false].includes(inlineCommentMode) ? (inlineCommentMode ? 'true' : 'false') : undefined, "private-comment-mode": [true, false].includes(privateCommentMode) ? (privateCommentMode ? 'true' : 'false') : undefined, minimap: [true, false].includes(minimap) ? (minimap ? 'true' : 'false') : undefined, "persistent-comment-mode": [true, false].includes(persistentCommentMode) ? (persistentCommentMode ? 'true' : 'false') : undefined, "ghost-comments": [true, false].includes(ghostComments) ? (ghostComments ? 'true' : 'false') : undefined, "ghost-comments-indicator": [true, false].includes(ghostCommentsIndicator) ? (ghostCommentsIndicator ? 'true' : 'false') : undefined, "comments-on-dom": [true, false].includes(commentsOnDom) ? (commentsOnDom ? 'true' : 'false') : undefined, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined, "sidebar-button-on-comment-dialog": [true, false].includes(sidebarButtonOnCommentDialog) ? (sidebarButtonOnCommentDialog ? 'true' : 'false') : undefined, "scroll-to-comment": [true, false].includes(scrollToComment) ? (scrollToComment ? 'true' : 'false') : undefined, "user-mentions": [true, false].includes(userMentions) ? (userMentions ? 'true' : 'false') : undefined, "delete-on-backspace": [true, false].includes(deleteOnBackspace) ? (deleteOnBackspace ? 'true' : 'false') : undefined, hotkey: [true, false].includes(hotkey) ? (hotkey ? 'true' : 'false') : undefined, "allowed-element-ids": JSON.stringify(allowedElementIds), "custom-status": JSON.stringify(customStatus), "custom-priority": JSON.stringify(customPriority), "custom-category": JSON.stringify(customCategory), "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
249
|
+
return (React__default["default"].createElement("velt-comments", { ref: ref, "auto-categorize": [true, false].includes(autoCategorize) ? (autoCategorize ? 'true' : 'false') : undefined, "data-stream-view-container-id": streamViewContainerId, "text-mode": [true, false].includes(textMode) ? (textMode ? 'true' : 'false') : undefined, "popover-mode": [true, false].includes(popoverMode) ? (popoverMode ? 'true' : 'false') : undefined, "popover-triangle-component": [true, false].includes(popoverTriangleComponent) ? (popoverTriangleComponent ? 'true' : 'false') : undefined, "floating-comment-dialog": [true, false].includes(floatingCommentDialog) ? (floatingCommentDialog ? 'true' : 'false') : undefined, "moderator-mode": [true, false].includes(moderatorMode) ? (moderatorMode ? 'true' : 'false') : undefined, "stream-mode": [true, false].includes(streamMode) ? (streamMode ? 'true' : 'false') : undefined, "sign-in-button": [true, false].includes(signInButton) ? (signInButton ? 'true' : 'false') : undefined, "upgrade-button": [true, false].includes(upgradeButton) ? (upgradeButton ? 'true' : 'false') : undefined, attachments: [true, false].includes(attachments) ? (attachments ? 'true' : 'false') : undefined, recordings: recordings, reactions: [true, false].includes(reactions) ? (reactions ? 'true' : 'false') : undefined, "device-info": [true, false].includes(deviceInfo) ? (deviceInfo ? 'true' : 'false') : undefined, "comment-index": [true, false].includes(commentIndex) ? (commentIndex ? 'true' : 'false') : undefined, "dialog-on-hover": [true, false].includes(dialogOnHover) ? (dialogOnHover ? 'true' : 'false') : undefined, "dialog-on-target-element-click": [true, false].includes(dialogOnTargetElementClick) ? (dialogOnTargetElementClick ? 'true' : 'false') : undefined, priority: [true, false].includes(priority) ? (priority ? 'true' : 'false') : undefined, status: [true, false].includes(status) ? (status ? 'true' : 'false') : undefined, "resolve-button": [true, false].includes(resolveButton) ? (resolveButton ? 'true' : 'false') : undefined, "inbox-mode": [true, false].includes(inboxMode) ? (inboxMode ? 'true' : 'false') : undefined, "suggestion-mode": [true, false].includes(suggestionMode) ? (suggestionMode ? 'true' : 'false') : undefined, "mobile-mode": [true, false].includes(mobileMode) ? (mobileMode ? 'true' : 'false') : undefined, "inline-comment-mode": [true, false].includes(inlineCommentMode) ? (inlineCommentMode ? 'true' : 'false') : undefined, "private-comment-mode": [true, false].includes(privateCommentMode) ? (privateCommentMode ? 'true' : 'false') : undefined, minimap: [true, false].includes(minimap) ? (minimap ? 'true' : 'false') : undefined, "persistent-comment-mode": [true, false].includes(persistentCommentMode) ? (persistentCommentMode ? 'true' : 'false') : undefined, "ghost-comments": [true, false].includes(ghostComments) ? (ghostComments ? 'true' : 'false') : undefined, "ghost-comments-indicator": [true, false].includes(ghostCommentsIndicator) ? (ghostCommentsIndicator ? 'true' : 'false') : undefined, "comments-on-dom": [true, false].includes(commentsOnDom) ? (commentsOnDom ? 'true' : 'false') : undefined, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined, "sidebar-button-on-comment-dialog": [true, false].includes(sidebarButtonOnCommentDialog) ? (sidebarButtonOnCommentDialog ? 'true' : 'false') : undefined, "scroll-to-comment": [true, false].includes(scrollToComment) ? (scrollToComment ? 'true' : 'false') : undefined, "user-mentions": [true, false].includes(userMentions) ? (userMentions ? 'true' : 'false') : undefined, "delete-on-backspace": [true, false].includes(deleteOnBackspace) ? (deleteOnBackspace ? 'true' : 'false') : undefined, hotkey: [true, false].includes(hotkey) ? (hotkey ? 'true' : 'false') : undefined, "allowed-element-ids": JSON.stringify(allowedElementIds), "allowed-element-class-names": JSON.stringify(allowedElementClassNames), "allowed-element-query-selectors": JSON.stringify(allowedElementQuerySelectors), "custom-status": JSON.stringify(customStatus), "custom-priority": JSON.stringify(customPriority), "custom-category": JSON.stringify(customCategory), "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
243
250
|
};
|
|
244
251
|
|
|
245
252
|
var SnippylyCommentsSidebar = function (props) {
|
|
@@ -403,8 +410,8 @@ var SnippylyArrowTool = function (props) {
|
|
|
403
410
|
};
|
|
404
411
|
|
|
405
412
|
var SnippylyUserInviteTool = function (props) {
|
|
406
|
-
var type = props.type, source = props.source, title = props.title, placeholder = props.placeholder, accessControlDropdown = props.accessControlDropdown, documentUserAccessList = props.documentUserAccessList, children = props.children;
|
|
407
|
-
return (React__default["default"].createElement("velt-user-invite-tool", { type: type, source: source, title: title, placeholder: placeholder, "access-control-dropdown": [true, false].includes(accessControlDropdown) ? accessControlDropdown : undefined, "document-user-access-list": [true, false].includes(documentUserAccessList) ? documentUserAccessList : undefined }, children));
|
|
413
|
+
var type = props.type, source = props.source, title = props.title, placeholder = props.placeholder, inviteUrl = props.inviteUrl, accessControlDropdown = props.accessControlDropdown, documentUserAccessList = props.documentUserAccessList, children = props.children;
|
|
414
|
+
return (React__default["default"].createElement("velt-user-invite-tool", { type: type, source: source, title: title, placeholder: placeholder, "invite-url": inviteUrl, "access-control-dropdown": [true, false].includes(accessControlDropdown) ? accessControlDropdown : undefined, "document-user-access-list": [true, false].includes(documentUserAccessList) ? documentUserAccessList : undefined }, children));
|
|
408
415
|
};
|
|
409
416
|
|
|
410
417
|
var SnippylyUserRequestTool = function (props) {
|
|
@@ -429,8 +436,13 @@ var VeltCommentPlayerTimeline = function (props) {
|
|
|
429
436
|
};
|
|
430
437
|
|
|
431
438
|
var VeltVideoPlayer = function (props) {
|
|
432
|
-
var darkMode = props.darkMode, src = props.src, sync = props.sync;
|
|
433
|
-
return (React__default["default"].createElement("velt-video-player", { src: src, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, sync: [true, false].includes(sync) ? (sync ? 'true' : 'false') : undefined }));
|
|
439
|
+
var darkMode = props.darkMode, src = props.src, sync = props.sync, commentTool = props.commentTool;
|
|
440
|
+
return (React__default["default"].createElement("velt-video-player", { src: src, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, sync: [true, false].includes(sync) ? (sync ? 'true' : 'false') : undefined, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined }));
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
var VeltDocumentViewerTrend = function (props) {
|
|
444
|
+
var type = props.type, locationId = props.locationId;
|
|
445
|
+
return (React__default["default"].createElement("velt-document-viewer-trend", { type: type, "location-id": locationId }));
|
|
434
446
|
};
|
|
435
447
|
|
|
436
448
|
/**
|
|
@@ -907,6 +919,57 @@ function useTagAnnotations(documentId, location) {
|
|
|
907
919
|
return data;
|
|
908
920
|
}
|
|
909
921
|
|
|
922
|
+
/**
|
|
923
|
+
* @beta This hook is in beta
|
|
924
|
+
*/
|
|
925
|
+
function useViewsUtils() {
|
|
926
|
+
var _a = React__default["default"].useState(), viewsElement = _a[0], setViewsElement = _a[1];
|
|
927
|
+
var client = useVeltClient().client;
|
|
928
|
+
React__default["default"].useEffect(function () {
|
|
929
|
+
if (!client || viewsElement)
|
|
930
|
+
return;
|
|
931
|
+
var loadedViewsElement = client.getViewsElement();
|
|
932
|
+
setViewsElement(loadedViewsElement);
|
|
933
|
+
}, [client, setViewsElement, viewsElement]);
|
|
934
|
+
return viewsElement;
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* @beta This hook is in beta
|
|
938
|
+
*/
|
|
939
|
+
function useUniqueViewsByUser(clientLocationId) {
|
|
940
|
+
var viewsElement = useViewsUtils();
|
|
941
|
+
var _a = React__default["default"].useState(null), data = _a[0], setData = _a[1];
|
|
942
|
+
React.useEffect(function () {
|
|
943
|
+
if (!(viewsElement === null || viewsElement === void 0 ? void 0 : viewsElement.getUniqueViewsByUser))
|
|
944
|
+
return;
|
|
945
|
+
var subscription = viewsElement.getUniqueViewsByUser(clientLocationId).subscribe(function (res) {
|
|
946
|
+
setData(res);
|
|
947
|
+
});
|
|
948
|
+
return function () {
|
|
949
|
+
subscription.unsubscribe();
|
|
950
|
+
};
|
|
951
|
+
}, [viewsElement === null || viewsElement === void 0 ? void 0 : viewsElement.getUniqueViewsByUser]);
|
|
952
|
+
return data;
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* @beta This hook is in beta
|
|
956
|
+
*/
|
|
957
|
+
function useUniqueViewsByDate(clientLocationId) {
|
|
958
|
+
var viewsElement = useViewsUtils();
|
|
959
|
+
var _a = React__default["default"].useState(null), data = _a[0], setData = _a[1];
|
|
960
|
+
React.useEffect(function () {
|
|
961
|
+
if (!(viewsElement === null || viewsElement === void 0 ? void 0 : viewsElement.getUniqueViewsByDate))
|
|
962
|
+
return;
|
|
963
|
+
var subscription = viewsElement.getUniqueViewsByDate(clientLocationId).subscribe(function (res) {
|
|
964
|
+
setData(res);
|
|
965
|
+
});
|
|
966
|
+
return function () {
|
|
967
|
+
subscription.unsubscribe();
|
|
968
|
+
};
|
|
969
|
+
}, [viewsElement === null || viewsElement === void 0 ? void 0 : viewsElement.getUniqueViewsByDate]);
|
|
970
|
+
return data;
|
|
971
|
+
}
|
|
972
|
+
|
|
910
973
|
var sessionId = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
911
974
|
var getSessionId = function () {
|
|
912
975
|
return sessionId;
|
|
@@ -991,6 +1054,7 @@ exports.VeltCommentTool = SnippylyCommentTool;
|
|
|
991
1054
|
exports.VeltComments = SnippylyComments;
|
|
992
1055
|
exports.VeltCommentsSidebar = SnippylyCommentsSidebar;
|
|
993
1056
|
exports.VeltCursor = SnippylyCursor;
|
|
1057
|
+
exports.VeltDocumentViewerTrend = VeltDocumentViewerTrend;
|
|
994
1058
|
exports.VeltHuddle = SnippylyHuddle;
|
|
995
1059
|
exports.VeltHuddleTool = SnippylyHuddleTool;
|
|
996
1060
|
exports.VeltPresence = SnippylyPresence;
|
|
@@ -1034,6 +1098,9 @@ exports.useSetLiveStateData = useSetLiveStateData;
|
|
|
1034
1098
|
exports.useSetLocation = useSetLocation;
|
|
1035
1099
|
exports.useTagAnnotations = useTagAnnotations;
|
|
1036
1100
|
exports.useTagUtils = useTagUtils;
|
|
1101
|
+
exports.useUniqueViewsByDate = useUniqueViewsByDate;
|
|
1102
|
+
exports.useUniqueViewsByUser = useUniqueViewsByUser;
|
|
1037
1103
|
exports.useUserEditorState = useUserEditorState;
|
|
1038
1104
|
exports.useVeltClient = useVeltClient;
|
|
1105
|
+
exports.useViewsUtils = useViewsUtils;
|
|
1039
1106
|
//# sourceMappingURL=index.js.map
|