@veltdev/react 1.0.1

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 (100) hide show
  1. package/cjs/index.js +381 -0
  2. package/cjs/index.js.map +1 -0
  3. package/cjs/types/components/Snippyly/Snippyly.d.ts +11 -0
  4. package/cjs/types/components/Snippyly/Snippyly.stories.d.ts +5 -0
  5. package/cjs/types/components/Snippyly/index.d.ts +1 -0
  6. package/cjs/types/components/SnippylyArrowTool/SnippylyArrowTool.d.ts +3 -0
  7. package/cjs/types/components/SnippylyArrowTool/index.d.ts +1 -0
  8. package/cjs/types/components/SnippylyArrows/SnippylyArrows.d.ts +3 -0
  9. package/cjs/types/components/SnippylyArrows/index.d.ts +1 -0
  10. package/cjs/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +12 -0
  11. package/cjs/types/components/SnippylyCommentBubble/index.d.ts +1 -0
  12. package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +6 -0
  13. package/cjs/types/components/SnippylyCommentTool/index.d.ts +1 -0
  14. package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +134 -0
  15. package/cjs/types/components/SnippylyComments/index.d.ts +1 -0
  16. package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +17 -0
  17. package/cjs/types/components/SnippylyCommentsSidebar/index.d.ts +1 -0
  18. package/cjs/types/components/SnippylyCursor/SnippylyCursor.d.ts +13 -0
  19. package/cjs/types/components/SnippylyCursor/index.d.ts +1 -0
  20. package/cjs/types/components/SnippylyHuddle/SnippylyHuddle.d.ts +5 -0
  21. package/cjs/types/components/SnippylyHuddle/index.d.ts +1 -0
  22. package/cjs/types/components/SnippylyHuddleTool/SnippylyHuddleTool.d.ts +6 -0
  23. package/cjs/types/components/SnippylyHuddleTool/index.d.ts +1 -0
  24. package/cjs/types/components/SnippylyPresence/SnippylyPresence.d.ts +25 -0
  25. package/cjs/types/components/SnippylyPresence/index.d.ts +1 -0
  26. package/cjs/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +8 -0
  27. package/cjs/types/components/SnippylyRecorderControlPanel/index.d.ts +1 -0
  28. package/cjs/types/components/SnippylyRecorderNotes/SnippylyRecorderNotes.d.ts +5 -0
  29. package/cjs/types/components/SnippylyRecorderNotes/index.d.ts +1 -0
  30. package/cjs/types/components/SnippylyRecorderPlayer/SnippylyRecorderPlayer.d.ts +12 -0
  31. package/cjs/types/components/SnippylyRecorderPlayer/index.d.ts +1 -0
  32. package/cjs/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +8 -0
  33. package/cjs/types/components/SnippylyRecorderTool/index.d.ts +1 -0
  34. package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +6 -0
  35. package/cjs/types/components/SnippylySidebarButton/index.d.ts +1 -0
  36. package/cjs/types/components/SnippylyTagTool/SnippylyTagTool.d.ts +6 -0
  37. package/cjs/types/components/SnippylyTagTool/index.d.ts +1 -0
  38. package/cjs/types/components/SnippylyTags/SnippylyTags.d.ts +6 -0
  39. package/cjs/types/components/SnippylyTags/index.d.ts +1 -0
  40. package/cjs/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +10 -0
  41. package/cjs/types/components/SnippylyUserInviteTool/index.d.ts +1 -0
  42. package/cjs/types/components/SnippylyUserRequestTool/SnippylyUserRequestTool.d.ts +11 -0
  43. package/cjs/types/components/SnippylyUserRequestTool/index.d.ts +1 -0
  44. package/cjs/types/components/index.d.ts +20 -0
  45. package/cjs/types/constants.d.ts +1 -0
  46. package/cjs/types/context/SnippylyContext.d.ts +8 -0
  47. package/cjs/types/context/index.d.ts +1 -0
  48. package/cjs/types/index.d.ts +3 -0
  49. package/cjs/types/loadSnippyly.d.ts +2 -0
  50. package/esm/index.js +353 -0
  51. package/esm/index.js.map +1 -0
  52. package/esm/types/components/Snippyly/Snippyly.d.ts +11 -0
  53. package/esm/types/components/Snippyly/Snippyly.stories.d.ts +5 -0
  54. package/esm/types/components/Snippyly/index.d.ts +1 -0
  55. package/esm/types/components/SnippylyArrowTool/SnippylyArrowTool.d.ts +3 -0
  56. package/esm/types/components/SnippylyArrowTool/index.d.ts +1 -0
  57. package/esm/types/components/SnippylyArrows/SnippylyArrows.d.ts +3 -0
  58. package/esm/types/components/SnippylyArrows/index.d.ts +1 -0
  59. package/esm/types/components/SnippylyCommentBubble/SnippylyCommentBubble.d.ts +12 -0
  60. package/esm/types/components/SnippylyCommentBubble/index.d.ts +1 -0
  61. package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +6 -0
  62. package/esm/types/components/SnippylyCommentTool/index.d.ts +1 -0
  63. package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +134 -0
  64. package/esm/types/components/SnippylyComments/index.d.ts +1 -0
  65. package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +17 -0
  66. package/esm/types/components/SnippylyCommentsSidebar/index.d.ts +1 -0
  67. package/esm/types/components/SnippylyCursor/SnippylyCursor.d.ts +13 -0
  68. package/esm/types/components/SnippylyCursor/index.d.ts +1 -0
  69. package/esm/types/components/SnippylyHuddle/SnippylyHuddle.d.ts +5 -0
  70. package/esm/types/components/SnippylyHuddle/index.d.ts +1 -0
  71. package/esm/types/components/SnippylyHuddleTool/SnippylyHuddleTool.d.ts +6 -0
  72. package/esm/types/components/SnippylyHuddleTool/index.d.ts +1 -0
  73. package/esm/types/components/SnippylyPresence/SnippylyPresence.d.ts +25 -0
  74. package/esm/types/components/SnippylyPresence/index.d.ts +1 -0
  75. package/esm/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +8 -0
  76. package/esm/types/components/SnippylyRecorderControlPanel/index.d.ts +1 -0
  77. package/esm/types/components/SnippylyRecorderNotes/SnippylyRecorderNotes.d.ts +5 -0
  78. package/esm/types/components/SnippylyRecorderNotes/index.d.ts +1 -0
  79. package/esm/types/components/SnippylyRecorderPlayer/SnippylyRecorderPlayer.d.ts +12 -0
  80. package/esm/types/components/SnippylyRecorderPlayer/index.d.ts +1 -0
  81. package/esm/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +8 -0
  82. package/esm/types/components/SnippylyRecorderTool/index.d.ts +1 -0
  83. package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +6 -0
  84. package/esm/types/components/SnippylySidebarButton/index.d.ts +1 -0
  85. package/esm/types/components/SnippylyTagTool/SnippylyTagTool.d.ts +6 -0
  86. package/esm/types/components/SnippylyTagTool/index.d.ts +1 -0
  87. package/esm/types/components/SnippylyTags/SnippylyTags.d.ts +6 -0
  88. package/esm/types/components/SnippylyTags/index.d.ts +1 -0
  89. package/esm/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +10 -0
  90. package/esm/types/components/SnippylyUserInviteTool/index.d.ts +1 -0
  91. package/esm/types/components/SnippylyUserRequestTool/SnippylyUserRequestTool.d.ts +11 -0
  92. package/esm/types/components/SnippylyUserRequestTool/index.d.ts +1 -0
  93. package/esm/types/components/index.d.ts +20 -0
  94. package/esm/types/constants.d.ts +1 -0
  95. package/esm/types/context/SnippylyContext.d.ts +8 -0
  96. package/esm/types/context/index.d.ts +1 -0
  97. package/esm/types/index.d.ts +3 -0
  98. package/esm/types/loadSnippyly.d.ts +2 -0
  99. package/index.d.ts +295 -0
  100. package/package.json +19 -0
package/esm/index.js ADDED
@@ -0,0 +1,353 @@
1
+ import React, { createContext, useContext, useState, useEffect, useRef } from 'react';
2
+
3
+ /******************************************************************************
4
+ Copyright (c) Microsoft Corporation.
5
+
6
+ Permission to use, copy, modify, and/or distribute this software for any
7
+ purpose with or without fee is hereby granted.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+ ***************************************************************************** */
17
+
18
+ function __awaiter(thisArg, _arguments, P, generator) {
19
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20
+ return new (P || (P = Promise))(function (resolve, reject) {
21
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
22
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
23
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
24
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
25
+ });
26
+ }
27
+
28
+ function __generator(thisArg, body) {
29
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
30
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
31
+ function verb(n) { return function (v) { return step([n, v]); }; }
32
+ function step(op) {
33
+ if (f) throw new TypeError("Generator is already executing.");
34
+ while (_) try {
35
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
36
+ if (y = 0, t) op = [op[0] & 2, t.value];
37
+ switch (op[0]) {
38
+ case 0: case 1: t = op; break;
39
+ case 4: _.label++; return { value: op[1], done: false };
40
+ case 5: _.label++; y = op[1]; op = [0]; continue;
41
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
42
+ default:
43
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
44
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
45
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
46
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
47
+ if (t[2]) _.ops.pop();
48
+ _.trys.pop(); continue;
49
+ }
50
+ op = body.call(thisArg, _);
51
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
52
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
53
+ }
54
+ }
55
+
56
+ var VeltContext = createContext({ client: null });
57
+ function useVeltClient() {
58
+ return useContext(VeltContext);
59
+ }
60
+
61
+ var loadVelt = function (callback, version, staging) {
62
+ if (version === void 0) { version = 'latest'; }
63
+ if (staging === void 0) { staging = false; }
64
+ var existingScript = document.getElementById('veltScript');
65
+ if (!existingScript) {
66
+ var script = document.createElement('script');
67
+ script.src = "https://cdn.jsdelivr.net/npm/@veltdev/sdk".concat(staging ? '-staging' : '', "@").concat(version, "/velt.js");
68
+ script.id = 'veltScript';
69
+ script.type = 'module';
70
+ document.body.appendChild(script);
71
+ script.onload = function () {
72
+ if (callback) {
73
+ callback();
74
+ }
75
+ };
76
+ }
77
+ else {
78
+ if (callback) {
79
+ callback();
80
+ }
81
+ }
82
+ };
83
+
84
+ var VELT_SDK_VERSION = '1.0.0';
85
+
86
+ var SnippylyProvider = function (props) {
87
+ var apiKey = props.apiKey, user = props.user, config = props.config, documentId = props.documentId, onClientLoad = props.onClientLoad, children = props.children;
88
+ var _a = useState(null), client = _a[0], setClient = _a[1];
89
+ useEffect(function () {
90
+ if (apiKey) {
91
+ loadVelt(function () {
92
+ initSnippyly();
93
+ }, (config === null || config === void 0 ? void 0 : config.version) || VELT_SDK_VERSION, config === null || config === void 0 ? void 0 : config.staging);
94
+ }
95
+ }, []);
96
+ var initSnippyly = function () { return __awaiter(void 0, void 0, void 0, function () {
97
+ var snippyly;
98
+ var _a, _b;
99
+ return __generator(this, function (_c) {
100
+ switch (_c.label) {
101
+ case 0:
102
+ if (!config) return [3 /*break*/, 2];
103
+ if (config.staging) {
104
+ delete config.staging;
105
+ }
106
+ if (config.version) {
107
+ delete config.version;
108
+ }
109
+ return [4 /*yield*/, ((_a = window.Snippyly) === null || _a === void 0 ? void 0 : _a.init(apiKey, config))];
110
+ case 1:
111
+ snippyly = _c.sent();
112
+ return [3 /*break*/, 4];
113
+ case 2: return [4 /*yield*/, ((_b = window.Snippyly) === null || _b === void 0 ? void 0 : _b.init(apiKey))];
114
+ case 3:
115
+ snippyly = _c.sent();
116
+ _c.label = 4;
117
+ case 4:
118
+ if (snippyly === null || snippyly === void 0 ? void 0 : snippyly.st) {
119
+ snippyly === null || snippyly === void 0 ? void 0 : snippyly.st('react');
120
+ }
121
+ setClient(snippyly);
122
+ if (onClientLoad) {
123
+ onClientLoad(snippyly);
124
+ }
125
+ if (!user) return [3 /*break*/, 6];
126
+ return [4 /*yield*/, (snippyly === null || snippyly === void 0 ? void 0 : snippyly.identify(user))];
127
+ case 5:
128
+ _c.sent();
129
+ _c.label = 6;
130
+ case 6:
131
+ if (documentId) {
132
+ snippyly === null || snippyly === void 0 ? void 0 : snippyly.setDocumentId(documentId);
133
+ }
134
+ return [2 /*return*/];
135
+ }
136
+ });
137
+ }); };
138
+ return (React.createElement(React.Fragment, null,
139
+ React.createElement(VeltContext.Provider, { value: { client: client } }, children)));
140
+ };
141
+
142
+ var SnippylyCommentBubble = function (props) {
143
+ var targetCommentElementId = props.targetCommentElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children;
144
+ return (React.createElement("velt-comment-bubble", { "target-comment-element-id": targetCommentElementId, "show-avatar": [true, false].includes(showAvatar) ? (showAvatar ? 'true' : 'false') : undefined, avatar: [true, false].includes(avatar) ? (avatar ? 'true' : 'false') : undefined, "comment-bubble-target-pin-hover": commentBubbleTargetPinHover ? 'true' : undefined }, children));
145
+ };
146
+
147
+ var SnippylyComments = function (props) {
148
+ var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, pinHighlighterClass = props.pinHighlighterClass, textHighlighterClass = props.textHighlighterClass, signIn = props.signIn, onSignIn = props.onSignIn, textMode = props.textMode, popoverMode = props.popoverMode, floatingCommentsMode = props.floatingCommentsMode, floatingMode = props.floatingMode, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, allowAttachments = props.allowAttachments, attachments = props.attachments, showDeviceInfo = props.showDeviceInfo, deviceInfo = props.deviceInfo, showCommentIndex = props.showCommentIndex, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, showPriority = props.showPriority, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, ghostComments = props.ghostComments, ghostCommentsMessage = props.ghostCommentsMessage, ghostCommentsIndicator = props.ghostCommentsIndicator, allowedElementIds = props.allowedElementIds, commentAdded = props.commentAdded, onCommentUpdate = props.onCommentUpdate, commentAccepted = props.commentAccepted, onCommentAccept = props.onCommentAccept, commentRejected = props.commentRejected, onCommentReject = props.onCommentReject, customStatuses = props.customStatuses, customStatus = props.customStatus, customPriorities = props.customPriorities, customPriority = props.customPriority, customCategories = props.customCategories, customCategory = props.customCategory, showStatus = props.showStatus, status = props.status, showResolveButton = props.showResolveButton, resolveButton = props.resolveButton, darkMode = props.darkMode, onCustomPinInject = props.onCustomPinInject, children = props.children;
149
+ var ref = useRef();
150
+ useEffect(function () {
151
+ if (ref.current) {
152
+ var element = ref.current;
153
+ element.addEventListener('onSignIn', function (event) {
154
+ if (signIn) {
155
+ signIn(event === null || event === void 0 ? void 0 : event.detail);
156
+ }
157
+ if (onSignIn) {
158
+ onSignIn(event === null || event === void 0 ? void 0 : event.detail);
159
+ }
160
+ });
161
+ element.addEventListener('commentAdded', function (event) {
162
+ if (commentAdded) {
163
+ commentAdded(event === null || event === void 0 ? void 0 : event.detail);
164
+ }
165
+ });
166
+ element.addEventListener('onCommentUpdate', function (event) {
167
+ if (onCommentUpdate) {
168
+ onCommentUpdate(event === null || event === void 0 ? void 0 : event.detail);
169
+ }
170
+ });
171
+ element.addEventListener('onCommentAccept', function (event) {
172
+ if (commentAccepted) {
173
+ commentAccepted(event === null || event === void 0 ? void 0 : event.detail);
174
+ }
175
+ if (onCommentAccept) {
176
+ onCommentAccept(event === null || event === void 0 ? void 0 : event.detail);
177
+ }
178
+ });
179
+ element.addEventListener('onCommentReject', function (event) {
180
+ if (commentRejected) {
181
+ commentRejected(event === null || event === void 0 ? void 0 : event.detail);
182
+ }
183
+ if (onCommentReject) {
184
+ onCommentReject(event === null || event === void 0 ? void 0 : event.detail);
185
+ }
186
+ });
187
+ element.addEventListener('onCustomPinInject', function (event) {
188
+ if (onCustomPinInject) {
189
+ onCustomPinInject(event === null || event === void 0 ? void 0 : event.detail);
190
+ }
191
+ });
192
+ }
193
+ }, []);
194
+ return (React.createElement("velt-comments", { ref: ref, "auto-categorize": [true, false].includes(autoCategorize) ? (autoCategorize ? 'true' : 'false') : undefined, "data-stream-view-container-id": streamViewContainerId, "pin-highlighter-class": pinHighlighterClass, "text-highlighter-class": textHighlighterClass, "text-mode": [true, false].includes(textMode) ? (textMode ? 'true' : 'false') : undefined, "popover-mode": [true, false].includes(popoverMode) ? (popoverMode ? 'true' : 'false') : undefined, "floating-comments-mode": [true, false].includes(floatingCommentsMode) ? (floatingCommentsMode ? 'true' : 'false') : undefined, "floating-mode": [true, false].includes(floatingMode) ? (floatingMode ? '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, "allow-attachments": [true, false].includes(allowAttachments) ? (allowAttachments ? 'true' : 'false') : undefined, attachments: [true, false].includes(attachments) ? (attachments ? 'true' : 'false') : undefined, "show-device-info": [true, false].includes(showDeviceInfo) ? (showDeviceInfo ? 'true' : 'false') : undefined, "device-info": [true, false].includes(deviceInfo) ? (deviceInfo ? 'true' : 'false') : undefined, "show-comment-index": [true, false].includes(showCommentIndex) ? (showCommentIndex ? '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, "show-priority": [true, false].includes(showPriority) ? (showPriority ? 'true' : 'false') : undefined, priority: [true, false].includes(priority) ? (priority ? 'true' : 'false') : undefined, "show-status": [true, false].includes(showStatus) ? (showStatus ? 'true' : 'false') : undefined, status: [true, false].includes(status) ? (status ? 'true' : 'false') : undefined, "show-resolve-button": [true, false].includes(showResolveButton) ? (showResolveButton ? '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, "ghost-comments": [true, false].includes(ghostComments) ? (ghostComments ? 'true' : 'false') : undefined, "ghost-comments-message": [true, false].includes(ghostCommentsMessage) ? (ghostCommentsMessage ? 'true' : 'false') : undefined, "ghost-comments-indicator": [true, false].includes(ghostCommentsIndicator) ? (ghostCommentsIndicator ? 'true' : 'false') : undefined, "allowed-element-ids": JSON.stringify(allowedElementIds), "custom-statuses": JSON.stringify(customStatuses), "custom-status": JSON.stringify(customStatus), "custom-priorities": JSON.stringify(customPriorities), "custom-priority": JSON.stringify(customPriority), "custom-categories": JSON.stringify(customCategories), "custom-category": JSON.stringify(customCategory), "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
195
+ };
196
+
197
+ var SnippylyCommentsSidebar = function (props) {
198
+ var embedMode = props.embedMode, enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick;
199
+ var ref = useRef();
200
+ useEffect(function () {
201
+ if (ref.current) {
202
+ var element = ref.current;
203
+ element.addEventListener('onSidebarOpen', function (event) {
204
+ if (openSidebar) {
205
+ openSidebar(event === null || event === void 0 ? void 0 : event.detail);
206
+ }
207
+ if (onSidebarOpen) {
208
+ onSidebarOpen(event === null || event === void 0 ? void 0 : event.detail);
209
+ }
210
+ });
211
+ element.addEventListener('onSidebarCommentClick', function (event) {
212
+ if (onSidebarCommentClick) {
213
+ onSidebarCommentClick(event === null || event === void 0 ? void 0 : event.detail);
214
+ }
215
+ });
216
+ }
217
+ }, []);
218
+ return (React.createElement("velt-comments-sidebar", { ref: ref, "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 }));
219
+ };
220
+
221
+ var SnippylyCommentTool = function (props) {
222
+ var targetCommentElementId = props.targetCommentElementId, children = props.children;
223
+ return (React.createElement("velt-comment-tool", { "target-comment-element-id": targetCommentElementId }, children));
224
+ };
225
+
226
+ var SnippylyCursor = function (props) {
227
+ var allowedElementIds = props.allowedElementIds, avatarMode = props.avatarMode, inactivityTime = props.inactivityTime, onCursorUsersChanged = props.onCursorUsersChanged, onCursorUserChange = props.onCursorUserChange, children = props.children;
228
+ var ref = useRef();
229
+ useEffect(function () {
230
+ if (ref.current) {
231
+ var element = ref.current;
232
+ element.addEventListener('onCursorUserChange', function (event) {
233
+ if (onCursorUsersChanged) {
234
+ onCursorUsersChanged(event === null || event === void 0 ? void 0 : event.detail);
235
+ }
236
+ if (onCursorUserChange) {
237
+ onCursorUserChange(event === null || event === void 0 ? void 0 : event.detail);
238
+ }
239
+ });
240
+ }
241
+ }, []);
242
+ return (React.createElement("velt-cursor", { ref: ref, "allowed-element-ids": allowedElementIds, "avatar-mode": avatarMode ? 'true' : undefined, "inactivity-time": inactivityTime }, children));
243
+ };
244
+
245
+ var SnippylyHuddle = function (props) {
246
+ return (React.createElement("velt-huddle", null));
247
+ };
248
+
249
+ var SnippylyHuddleTool = function (props) {
250
+ var type = props.type;
251
+ return (React.createElement("velt-huddle-tool", { type: type }));
252
+ };
253
+
254
+ var SnippylyPresence = function (props) {
255
+ var maxUsers = props.maxUsers, inactivityTime = props.inactivityTime, documentParams = props.documentParams, location = props.location, onUsersChanged = props.onUsersChanged, onPresenceUserChange = props.onPresenceUserChange, disableFlockNavigation = props.disableFlockNavigation, defaultFlockNavigation = props.defaultFlockNavigation, onNavigate = props.onNavigate, flockMode = props.flockMode;
256
+ var ref = useRef();
257
+ useEffect(function () {
258
+ if (ref.current) {
259
+ var element = ref.current;
260
+ element.addEventListener('onPresenceUserChange', function (event) {
261
+ if (onUsersChanged) {
262
+ onUsersChanged(event === null || event === void 0 ? void 0 : event.detail);
263
+ }
264
+ if (onPresenceUserChange) {
265
+ onPresenceUserChange(event === null || event === void 0 ? void 0 : event.detail);
266
+ }
267
+ });
268
+ element.addEventListener('navigate', function (event) {
269
+ if (onNavigate) {
270
+ onNavigate(event === null || event === void 0 ? void 0 : event.detail);
271
+ }
272
+ });
273
+ }
274
+ }, []);
275
+ return (React.createElement("velt-presence", { ref: ref, "flock-mode": [true, false].includes(flockMode) ? (flockMode ? 'true' : 'false') : undefined, "max-users": maxUsers, "inactivity-time": inactivityTime, "document-params": (typeof documentParams === 'object') ? JSON.stringify(documentParams) : (documentParams ? documentParams : undefined), "disable-flock-navigation": [true, false].includes(disableFlockNavigation) ? (disableFlockNavigation ? 'true' : 'false') : undefined, "default-flock-navigation": [true, false].includes(defaultFlockNavigation) ? (defaultFlockNavigation ? 'true' : 'false') : undefined, location: (typeof location === 'object') ? JSON.stringify(location) : (location ? location : undefined) }));
276
+ };
277
+
278
+ var SnippylyRecorderControlPanel = function (props) {
279
+ var mode = props.mode, panelId = props.panelId, onRecordedData = props.onRecordedData;
280
+ var ref = useRef();
281
+ useEffect(function () {
282
+ if (ref.current) {
283
+ var element = ref.current;
284
+ element.addEventListener('onRecordedData', function (event) {
285
+ if (onRecordedData) {
286
+ onRecordedData(event === null || event === void 0 ? void 0 : event.detail);
287
+ }
288
+ });
289
+ }
290
+ }, []);
291
+ return (React.createElement("velt-recorder-control-panel", { ref: ref, mode: mode, "panel-id": panelId }));
292
+ };
293
+
294
+ var SnippylyRecorderNotes = function (props) {
295
+ return (React.createElement("velt-recorder-notes", null));
296
+ };
297
+
298
+ var SnippylyRecorderPlayer = function (props) {
299
+ var recorderId = props.recorderId, onDelete = props.onDelete, showSummary = props.showSummary, summary = props.summary;
300
+ var ref = useRef();
301
+ useEffect(function () {
302
+ if (ref.current) {
303
+ var element = ref.current;
304
+ element === null || element === void 0 ? void 0 : element.addEventListener('onDelete', function (event) {
305
+ if (onDelete) {
306
+ onDelete(event === null || event === void 0 ? void 0 : event.detail);
307
+ }
308
+ });
309
+ }
310
+ }, []);
311
+ return (React.createElement("velt-recorder-player", { ref: ref, "recorder-id": recorderId, "show-summary": [true, false].includes(showSummary) ? (showSummary ? 'true' : 'false') : undefined, summary: [true, false].includes(summary) ? (summary ? 'true' : 'false') : undefined }));
312
+ };
313
+
314
+ var SnippylyRecorderTool = function (props) {
315
+ var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children;
316
+ return (React.createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel }, children));
317
+ };
318
+
319
+ var SnippylySidebarButton = function (props) {
320
+ var tooltipText = props.tooltipText, children = props.children;
321
+ return (React.createElement("velt-sidebar-button", { "tooltip-text": tooltipText }, children));
322
+ };
323
+
324
+ var SnippylyTags = function (props) {
325
+ var pinHighlighterClass = props.pinHighlighterClass;
326
+ return (React.createElement("velt-tags", { "pin-highlighter-class": pinHighlighterClass }));
327
+ };
328
+
329
+ var SnippylyTagTool = function (props) {
330
+ var targetTagElementId = props.targetTagElementId, children = props.children;
331
+ return (React.createElement("velt-tag-tool", { "target-tag-element-id": targetTagElementId }, children));
332
+ };
333
+
334
+ var SnippylyArrows = function () {
335
+ return (React.createElement("velt-arrows", null));
336
+ };
337
+
338
+ var SnippylyArrowTool = function () {
339
+ return (React.createElement("velt-arrow-tool", null));
340
+ };
341
+
342
+ var SnippylyUserInviteTool = function (props) {
343
+ var type = props.type, source = props.source, title = props.title, placeholder = props.placeholder, accessControlDropdown = props.accessControlDropdown;
344
+ return (React.createElement("velt-user-invite-tool", { type: type, source: source, title: title, placeholder: placeholder, "access-control-dropdown": [true, false].includes(accessControlDropdown) ? accessControlDropdown : undefined }));
345
+ };
346
+
347
+ var SnippylyUserRequestTool = function (props) {
348
+ var type = props.type;
349
+ return (React.createElement("velt-user-request-tool", { type: type }));
350
+ };
351
+
352
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, SnippylyCommentBubble as VeltCommentBubble, SnippylyCommentTool as VeltCommentTool, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, SnippylyCursor as VeltCursor, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, 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, useVeltClient };
353
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/context/SnippylyContext.ts","../../src/loadSnippyly.ts","../../src/constants.ts","../../src/components/Snippyly/Snippyly.tsx","../../src/components/SnippylyCommentBubble/SnippylyCommentBubble.tsx","../../src/components/SnippylyComments/SnippylyComments.tsx","../../src/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.tsx","../../src/components/SnippylyCommentTool/SnippylyCommentTool.tsx","../../src/components/SnippylyCursor/SnippylyCursor.tsx","../../src/components/SnippylyHuddle/SnippylyHuddle.tsx","../../src/components/SnippylyHuddleTool/SnippylyHuddleTool.tsx","../../src/components/SnippylyPresence/SnippylyPresence.tsx","../../src/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.tsx","../../src/components/SnippylyRecorderNotes/SnippylyRecorderNotes.tsx","../../src/components/SnippylyRecorderPlayer/SnippylyRecorderPlayer.tsx","../../src/components/SnippylyRecorderTool/SnippylyRecorderTool.tsx","../../src/components/SnippylySidebarButton/SnippylySidebarButton.tsx","../../src/components/SnippylyTags/SnippylyTags.tsx","../../src/components/SnippylyTagTool/SnippylyTagTool.tsx","../../src/components/SnippylyArrows/SnippylyArrows.tsx","../../src/components/SnippylyArrowTool/SnippylyArrowTool.tsx","../../src/components/SnippylyUserInviteTool/SnippylyUserInviteTool.tsx","../../src/components/SnippylyUserRequestTool/SnippylyUserRequestTool.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import { createContext, useContext } from 'react';\nexport var VeltContext = createContext({ client: null });\nexport function useVeltClient() {\n return useContext(VeltContext);\n}\n","var loadVelt = function (callback, version, staging) {\n if (version === void 0) { version = 'latest'; }\n if (staging === void 0) { staging = false; }\n var existingScript = document.getElementById('veltScript');\n if (!existingScript) {\n var script = document.createElement('script');\n script.src = \"https://cdn.jsdelivr.net/npm/@veltdev/sdk\".concat(staging ? '-staging' : '', \"@\").concat(version, \"/velt.js\");\n script.id = 'veltScript';\n script.type = 'module';\n document.body.appendChild(script);\n script.onload = function () {\n if (callback) {\n callback();\n }\n };\n }\n else {\n if (callback) {\n callback();\n }\n }\n};\nexport default loadVelt;\n","export var VELT_SDK_VERSION = '1.0.0';\n","import { __awaiter, __generator } from \"tslib\";\nimport React, { useEffect, useState } from 'react';\nimport { VeltContext } from '../../context/SnippylyContext';\nimport loadVelt from '../../loadSnippyly';\nimport { VELT_SDK_VERSION } from '../../constants';\nvar SnippylyProvider = function (props) {\n var apiKey = props.apiKey, user = props.user, config = props.config, documentId = props.documentId, onClientLoad = props.onClientLoad, children = props.children;\n var _a = useState(null), client = _a[0], setClient = _a[1];\n useEffect(function () {\n if (apiKey) {\n loadVelt(function () {\n initSnippyly();\n }, (config === null || config === void 0 ? void 0 : config.version) || VELT_SDK_VERSION, config === null || config === void 0 ? void 0 : config.staging);\n }\n }, []);\n var initSnippyly = function () { return __awaiter(void 0, void 0, void 0, function () {\n var snippyly;\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (!config) return [3 /*break*/, 2];\n if (config.staging) {\n delete config.staging;\n }\n if (config.version) {\n delete config.version;\n }\n return [4 /*yield*/, ((_a = window.Snippyly) === null || _a === void 0 ? void 0 : _a.init(apiKey, config))];\n case 1:\n snippyly = _c.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, ((_b = window.Snippyly) === null || _b === void 0 ? void 0 : _b.init(apiKey))];\n case 3:\n snippyly = _c.sent();\n _c.label = 4;\n case 4:\n if (snippyly === null || snippyly === void 0 ? void 0 : snippyly.st) {\n snippyly === null || snippyly === void 0 ? void 0 : snippyly.st('react');\n }\n setClient(snippyly);\n if (onClientLoad) {\n onClientLoad(snippyly);\n }\n if (!user) return [3 /*break*/, 6];\n return [4 /*yield*/, (snippyly === null || snippyly === void 0 ? void 0 : snippyly.identify(user))];\n case 5:\n _c.sent();\n _c.label = 6;\n case 6:\n if (documentId) {\n snippyly === null || snippyly === void 0 ? void 0 : snippyly.setDocumentId(documentId);\n }\n return [2 /*return*/];\n }\n });\n }); };\n return (React.createElement(React.Fragment, null,\n React.createElement(VeltContext.Provider, { value: { client: client } }, children)));\n};\nexport default SnippylyProvider;\n","import React from 'react';\nvar SnippylyCommentBubble = function (props) {\n var targetCommentElementId = props.targetCommentElementId, avatar = props.avatar, showAvatar = props.showAvatar, commentBubbleTargetPinHover = props.commentBubbleTargetPinHover, children = props.children;\n return (React.createElement(\"velt-comment-bubble\", { \"target-comment-element-id\": targetCommentElementId, \"show-avatar\": [true, false].includes(showAvatar) ? (showAvatar ? 'true' : 'false') : undefined, avatar: [true, false].includes(avatar) ? (avatar ? 'true' : 'false') : undefined, \"comment-bubble-target-pin-hover\": commentBubbleTargetPinHover ? 'true' : undefined }, children));\n};\nexport default SnippylyCommentBubble;\n","import React, { useEffect, useRef } from 'react';\nvar SnippylyComments = function (props) {\n var autoCategorize = props.autoCategorize, streamViewContainerId = props.streamViewContainerId, pinHighlighterClass = props.pinHighlighterClass, textHighlighterClass = props.textHighlighterClass, signIn = props.signIn, onSignIn = props.onSignIn, textMode = props.textMode, popoverMode = props.popoverMode, floatingCommentsMode = props.floatingCommentsMode, floatingMode = props.floatingMode, moderatorMode = props.moderatorMode, streamMode = props.streamMode, signInButton = props.signInButton, allowAttachments = props.allowAttachments, attachments = props.attachments, showDeviceInfo = props.showDeviceInfo, deviceInfo = props.deviceInfo, showCommentIndex = props.showCommentIndex, commentIndex = props.commentIndex, dialogOnHover = props.dialogOnHover, dialogOnTargetElementClick = props.dialogOnTargetElementClick, showPriority = props.showPriority, priority = props.priority, inboxMode = props.inboxMode, suggestionMode = props.suggestionMode, ghostComments = props.ghostComments, ghostCommentsMessage = props.ghostCommentsMessage, ghostCommentsIndicator = props.ghostCommentsIndicator, allowedElementIds = props.allowedElementIds, commentAdded = props.commentAdded, onCommentUpdate = props.onCommentUpdate, commentAccepted = props.commentAccepted, onCommentAccept = props.onCommentAccept, commentRejected = props.commentRejected, onCommentReject = props.onCommentReject, customStatuses = props.customStatuses, customStatus = props.customStatus, customPriorities = props.customPriorities, customPriority = props.customPriority, customCategories = props.customCategories, customCategory = props.customCategory, showStatus = props.showStatus, status = props.status, showResolveButton = props.showResolveButton, resolveButton = props.resolveButton, darkMode = props.darkMode, onCustomPinInject = props.onCustomPinInject, children = props.children;\n var ref = useRef();\n useEffect(function () {\n if (ref.current) {\n var element = ref.current;\n element.addEventListener('onSignIn', function (event) {\n if (signIn) {\n signIn(event === null || event === void 0 ? void 0 : event.detail);\n }\n if (onSignIn) {\n onSignIn(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n element.addEventListener('commentAdded', function (event) {\n if (commentAdded) {\n commentAdded(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n element.addEventListener('onCommentUpdate', function (event) {\n if (onCommentUpdate) {\n onCommentUpdate(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n element.addEventListener('onCommentAccept', function (event) {\n if (commentAccepted) {\n commentAccepted(event === null || event === void 0 ? void 0 : event.detail);\n }\n if (onCommentAccept) {\n onCommentAccept(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n element.addEventListener('onCommentReject', function (event) {\n if (commentRejected) {\n commentRejected(event === null || event === void 0 ? void 0 : event.detail);\n }\n if (onCommentReject) {\n onCommentReject(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n element.addEventListener('onCustomPinInject', function (event) {\n if (onCustomPinInject) {\n onCustomPinInject(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n }\n }, []);\n return (React.createElement(\"velt-comments\", { ref: ref, \"auto-categorize\": [true, false].includes(autoCategorize) ? (autoCategorize ? 'true' : 'false') : undefined, \"data-stream-view-container-id\": streamViewContainerId, \"pin-highlighter-class\": pinHighlighterClass, \"text-highlighter-class\": textHighlighterClass, \"text-mode\": [true, false].includes(textMode) ? (textMode ? 'true' : 'false') : undefined, \"popover-mode\": [true, false].includes(popoverMode) ? (popoverMode ? 'true' : 'false') : undefined, \"floating-comments-mode\": [true, false].includes(floatingCommentsMode) ? (floatingCommentsMode ? 'true' : 'false') : undefined, \"floating-mode\": [true, false].includes(floatingMode) ? (floatingMode ? '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, \"allow-attachments\": [true, false].includes(allowAttachments) ? (allowAttachments ? 'true' : 'false') : undefined, attachments: [true, false].includes(attachments) ? (attachments ? 'true' : 'false') : undefined, \"show-device-info\": [true, false].includes(showDeviceInfo) ? (showDeviceInfo ? 'true' : 'false') : undefined, \"device-info\": [true, false].includes(deviceInfo) ? (deviceInfo ? 'true' : 'false') : undefined, \"show-comment-index\": [true, false].includes(showCommentIndex) ? (showCommentIndex ? '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, \"show-priority\": [true, false].includes(showPriority) ? (showPriority ? 'true' : 'false') : undefined, priority: [true, false].includes(priority) ? (priority ? 'true' : 'false') : undefined, \"show-status\": [true, false].includes(showStatus) ? (showStatus ? 'true' : 'false') : undefined, status: [true, false].includes(status) ? (status ? 'true' : 'false') : undefined, \"show-resolve-button\": [true, false].includes(showResolveButton) ? (showResolveButton ? '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, \"ghost-comments\": [true, false].includes(ghostComments) ? (ghostComments ? 'true' : 'false') : undefined, \"ghost-comments-message\": [true, false].includes(ghostCommentsMessage) ? (ghostCommentsMessage ? 'true' : 'false') : undefined, \"ghost-comments-indicator\": [true, false].includes(ghostCommentsIndicator) ? (ghostCommentsIndicator ? 'true' : 'false') : undefined, \"allowed-element-ids\": JSON.stringify(allowedElementIds), \"custom-statuses\": JSON.stringify(customStatuses), \"custom-status\": JSON.stringify(customStatus), \"custom-priorities\": JSON.stringify(customPriorities), \"custom-priority\": JSON.stringify(customPriority), \"custom-categories\": JSON.stringify(customCategories), \"custom-category\": JSON.stringify(customCategory), \"dark-mode\": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));\n};\nexport default SnippylyComments;\n","import React, { useEffect, useRef } from 'react';\nvar SnippylyCommentsSidebar = function (props) {\n var embedMode = props.embedMode, enableUrlNavigation = props.enableUrlNavigation, urlNavigation = props.urlNavigation, openSidebar = props.openSidebar, onSidebarOpen = props.onSidebarOpen, onSidebarCommentClick = props.onSidebarCommentClick;\n var ref = useRef();\n useEffect(function () {\n if (ref.current) {\n var element = ref.current;\n element.addEventListener('onSidebarOpen', function (event) {\n if (openSidebar) {\n openSidebar(event === null || event === void 0 ? void 0 : event.detail);\n }\n if (onSidebarOpen) {\n onSidebarOpen(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n element.addEventListener('onSidebarCommentClick', function (event) {\n if (onSidebarCommentClick) {\n onSidebarCommentClick(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n }\n }, []);\n return (React.createElement(\"velt-comments-sidebar\", { ref: ref, \"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 }));\n};\nexport default SnippylyCommentsSidebar;\n","import React from 'react';\nvar SnippylyCommentTool = function (props) {\n var targetCommentElementId = props.targetCommentElementId, children = props.children;\n return (React.createElement(\"velt-comment-tool\", { \"target-comment-element-id\": targetCommentElementId }, children));\n};\nexport default SnippylyCommentTool;\n","import React, { useEffect, useRef } from 'react';\nvar SnippylyCursor = function (props) {\n var allowedElementIds = props.allowedElementIds, avatarMode = props.avatarMode, inactivityTime = props.inactivityTime, onCursorUsersChanged = props.onCursorUsersChanged, onCursorUserChange = props.onCursorUserChange, children = props.children;\n var ref = useRef();\n useEffect(function () {\n if (ref.current) {\n var element = ref.current;\n element.addEventListener('onCursorUserChange', function (event) {\n if (onCursorUsersChanged) {\n onCursorUsersChanged(event === null || event === void 0 ? void 0 : event.detail);\n }\n if (onCursorUserChange) {\n onCursorUserChange(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n }\n }, []);\n return (React.createElement(\"velt-cursor\", { ref: ref, \"allowed-element-ids\": allowedElementIds, \"avatar-mode\": avatarMode ? 'true' : undefined, \"inactivity-time\": inactivityTime }, children));\n};\nexport default SnippylyCursor;\n","import React from 'react';\nvar SnippylyHuddle = function (props) {\n return (React.createElement(\"velt-huddle\", null));\n};\nexport default SnippylyHuddle;\n","import React from 'react';\nvar SnippylyHuddleTool = function (props) {\n var type = props.type;\n return (React.createElement(\"velt-huddle-tool\", { type: type }));\n};\nexport default SnippylyHuddleTool;\n","import React, { useEffect, useRef } from 'react';\nvar SnippylyPresence = function (props) {\n var maxUsers = props.maxUsers, inactivityTime = props.inactivityTime, documentParams = props.documentParams, location = props.location, onUsersChanged = props.onUsersChanged, onPresenceUserChange = props.onPresenceUserChange, disableFlockNavigation = props.disableFlockNavigation, defaultFlockNavigation = props.defaultFlockNavigation, onNavigate = props.onNavigate, flockMode = props.flockMode;\n var ref = useRef();\n useEffect(function () {\n if (ref.current) {\n var element = ref.current;\n element.addEventListener('onPresenceUserChange', function (event) {\n if (onUsersChanged) {\n onUsersChanged(event === null || event === void 0 ? void 0 : event.detail);\n }\n if (onPresenceUserChange) {\n onPresenceUserChange(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n element.addEventListener('navigate', function (event) {\n if (onNavigate) {\n onNavigate(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n }\n }, []);\n return (React.createElement(\"velt-presence\", { ref: ref, \"flock-mode\": [true, false].includes(flockMode) ? (flockMode ? 'true' : 'false') : undefined, \"max-users\": maxUsers, \"inactivity-time\": inactivityTime, \"document-params\": (typeof documentParams === 'object') ? JSON.stringify(documentParams) : (documentParams ? documentParams : undefined), \"disable-flock-navigation\": [true, false].includes(disableFlockNavigation) ? (disableFlockNavigation ? 'true' : 'false') : undefined, \"default-flock-navigation\": [true, false].includes(defaultFlockNavigation) ? (defaultFlockNavigation ? 'true' : 'false') : undefined, location: (typeof location === 'object') ? JSON.stringify(location) : (location ? location : undefined) }));\n};\nexport default SnippylyPresence;\n","import React, { useEffect, useRef } from 'react';\nvar SnippylyRecorderControlPanel = function (props) {\n var mode = props.mode, panelId = props.panelId, onRecordedData = props.onRecordedData;\n var ref = useRef();\n useEffect(function () {\n if (ref.current) {\n var element = ref.current;\n element.addEventListener('onRecordedData', function (event) {\n if (onRecordedData) {\n onRecordedData(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n }\n }, []);\n return (React.createElement(\"velt-recorder-control-panel\", { ref: ref, mode: mode, \"panel-id\": panelId }));\n};\nexport default SnippylyRecorderControlPanel;\n","import React from 'react';\nvar SnippylyRecorderNotes = function (props) {\n return (React.createElement(\"velt-recorder-notes\", null));\n};\nexport default SnippylyRecorderNotes;\n","import React, { useEffect, useRef } from 'react';\nvar SnippylyRecorderPlayer = function (props) {\n var recorderId = props.recorderId, onDelete = props.onDelete, showSummary = props.showSummary, summary = props.summary;\n var ref = useRef();\n useEffect(function () {\n if (ref.current) {\n var element = ref.current;\n element === null || element === void 0 ? void 0 : element.addEventListener('onDelete', function (event) {\n if (onDelete) {\n onDelete(event === null || event === void 0 ? void 0 : event.detail);\n }\n });\n }\n }, []);\n return (React.createElement(\"velt-recorder-player\", { ref: ref, \"recorder-id\": recorderId, \"show-summary\": [true, false].includes(showSummary) ? (showSummary ? 'true' : 'false') : undefined, summary: [true, false].includes(summary) ? (summary ? 'true' : 'false') : undefined }));\n};\nexport default SnippylyRecorderPlayer;\n","import React from 'react';\nvar SnippylyRecorderTool = function (props) {\n var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children;\n return (React.createElement(\"velt-recorder-tool\", { type: type, \"panel-id\": panelId, \"button-label\": buttonLabel }, children));\n};\nexport default SnippylyRecorderTool;\n","import React from 'react';\nvar SnippylySidebarButton = function (props) {\n var tooltipText = props.tooltipText, children = props.children;\n return (React.createElement(\"velt-sidebar-button\", { \"tooltip-text\": tooltipText }, children));\n};\nexport default SnippylySidebarButton;\n","import React from 'react';\nvar SnippylyTags = function (props) {\n var pinHighlighterClass = props.pinHighlighterClass;\n return (React.createElement(\"velt-tags\", { \"pin-highlighter-class\": pinHighlighterClass }));\n};\nexport default SnippylyTags;\n","import React from 'react';\nvar SnippylyTagTool = function (props) {\n var targetTagElementId = props.targetTagElementId, children = props.children;\n return (React.createElement(\"velt-tag-tool\", { \"target-tag-element-id\": targetTagElementId }, children));\n};\nexport default SnippylyTagTool;\n","import React from 'react';\nvar SnippylyArrows = function () {\n return (React.createElement(\"velt-arrows\", null));\n};\nexport default SnippylyArrows;\n","import React from 'react';\nvar SnippylyArrowTool = function () {\n return (React.createElement(\"velt-arrow-tool\", null));\n};\nexport default SnippylyArrowTool;\n","import React from 'react';\nvar SnippylyUserInviteTool = function (props) {\n var type = props.type, source = props.source, title = props.title, placeholder = props.placeholder, accessControlDropdown = props.accessControlDropdown;\n return (React.createElement(\"velt-user-invite-tool\", { type: type, source: source, title: title, placeholder: placeholder, \"access-control-dropdown\": [true, false].includes(accessControlDropdown) ? accessControlDropdown : undefined }));\n};\nexport default SnippylyUserInviteTool;\n","import React from 'react';\nvar SnippylyUserRequestTool = function (props) {\n var type = props.type;\n return (React.createElement(\"velt-user-request-tool\", { type: type }));\n};\nexport default SnippylyUserRequestTool;\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuDA;AACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CA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AM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,GAAG,SAAS,EAAE,CAAC,EAAE;AAChP;;ACHG,IAAC,uBAAuB,GAAG,UAAU,KAAK,EAAE;AAC/C,IAAI,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;AAC1B,IAAI,QAAQ,KAAK,CAAC,aAAa,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE;AAC3E;;;;"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Config, Snippyly } from '@snippyly/types';
3
+ export interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
4
+ apiKey: string;
5
+ config?: Config;
6
+ user?: any;
7
+ documentId?: string;
8
+ onClientLoad?: (snippylyClient?: Snippyly) => any;
9
+ }
10
+ declare const SnippylyProvider: React.FC<IVeltProps>;
11
+ export default SnippylyProvider;
@@ -0,0 +1,5 @@
1
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
2
+ import React from 'react';
3
+ declare const _default: ComponentMeta<React.FC<import("./Snippyly").IVeltProps>>;
4
+ export default _default;
5
+ export declare const Snippyly1: ComponentStory<React.FC<import("./Snippyly").IVeltProps>>;
@@ -0,0 +1 @@
1
+ export { default } from "./Snippyly";
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SnippylyArrowTool: React.FC<any>;
3
+ export default SnippylyArrowTool;
@@ -0,0 +1 @@
1
+ export { default } from "./SnippylyArrowTool";
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SnippylyArrows: React.FC<any>;
3
+ export default SnippylyArrows;
@@ -0,0 +1 @@
1
+ export { default } from "./SnippylyArrows";
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentBubbleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ targetCommentElementId?: string;
4
+ /**
5
+ * @deprecated Use `avatar` instead
6
+ */
7
+ showAvatar?: boolean;
8
+ avatar?: boolean;
9
+ commentBubbleTargetPinHover?: boolean;
10
+ }
11
+ declare const SnippylyCommentBubble: React.FC<IVeltCommentBubbleProps>;
12
+ export default SnippylyCommentBubble;
@@ -0,0 +1 @@
1
+ export { default } from "./SnippylyCommentBubble";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ targetCommentElementId?: string;
4
+ }
5
+ declare const SnippylyCommentTool: React.FC<IVeltCommentToolProps>;
6
+ export default SnippylyCommentTool;
@@ -0,0 +1 @@
1
+ export { default } from "./SnippylyCommentTool";