@veltdev/react 1.0.95 → 1.0.97
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 +87 -19
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/Snippyly/Snippyly.stories.d.ts +1 -2
- package/cjs/types/components/SnippylyArrowTool/SnippylyArrowTool.d.ts +1 -0
- package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/cjs/types/components/SnippylyHuddleTool/SnippylyHuddleTool.d.ts +1 -0
- package/cjs/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
- package/cjs/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/cjs/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/cjs/types/components/VeltNivoChartComments/VeltNivoChartComments.d.ts +6 -0
- package/cjs/types/components/VeltNivoChartComments/index.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsHistoryPanel/VeltNotificationsHistoryPanel.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/cjs/types/components/index.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +87 -20
- package/esm/index.js.map +1 -1
- package/esm/types/components/Snippyly/Snippyly.stories.d.ts +1 -2
- package/esm/types/components/SnippylyArrowTool/SnippylyArrowTool.d.ts +1 -0
- package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/esm/types/components/SnippylyHuddleTool/SnippylyHuddleTool.d.ts +1 -0
- package/esm/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +1 -0
- package/esm/types/components/SnippylySidebarButton/SnippylySidebarButton.d.ts +1 -0
- package/esm/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/esm/types/components/VeltNivoChartComments/VeltNivoChartComments.d.ts +6 -0
- package/esm/types/components/VeltNivoChartComments/index.d.ts +1 -0
- package/esm/types/components/VeltNotificationsHistoryPanel/VeltNotificationsHistoryPanel.d.ts +1 -0
- package/esm/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/esm/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/esm/types/components/index.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +15 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
declare const _default: ComponentMeta<React.FC<import("./Snippyly").IVeltProps>>;
|
|
4
3
|
export default _default;
|
|
5
|
-
export declare const Snippyly1:
|
|
4
|
+
export declare const Snippyly1: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltArrowToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
darkMode?: boolean;
|
|
3
4
|
}
|
|
4
5
|
declare const SnippylyArrowTool: React.FC<IVeltArrowToolProps>;
|
|
5
6
|
export default SnippylyArrowTool;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export interface IVeltCommentToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
targetCommentElementId?: string;
|
|
4
4
|
onCommentModeChange?: Function;
|
|
5
|
+
darkMode?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const SnippylyCommentTool: React.FC<IVeltCommentToolProps>;
|
|
7
8
|
export default SnippylyCommentTool;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltHuddleToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
type?: string;
|
|
4
|
+
darkMode?: boolean;
|
|
4
5
|
}
|
|
5
6
|
declare const SnippylyHuddleTool: React.FC<IVeltHuddleToolProps>;
|
|
6
7
|
export default SnippylyHuddleTool;
|
|
@@ -3,6 +3,7 @@ export interface IVeltRecorderToolProps extends React.DetailedHTMLProps<React.HT
|
|
|
3
3
|
type?: string;
|
|
4
4
|
panelId?: string;
|
|
5
5
|
buttonLabel?: string;
|
|
6
|
+
darkMode?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const SnippylyRecorderTool: React.FC<IVeltRecorderToolProps>;
|
|
8
9
|
export default SnippylyRecorderTool;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
tooltipText?: string;
|
|
4
|
+
darkMode?: boolean;
|
|
4
5
|
}
|
|
5
6
|
declare const SnippylySidebarButton: React.FC<IVeltSidebarButtonProps>;
|
|
6
7
|
export default SnippylySidebarButton;
|
|
@@ -7,6 +7,7 @@ export interface IVeltUserInviteToolProps extends React.DetailedHTMLProps<React.
|
|
|
7
7
|
inviteUrl?: string;
|
|
8
8
|
accessControlDropdown?: boolean;
|
|
9
9
|
documentUserAccessList?: boolean;
|
|
10
|
+
darkMode?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const SnippylyUserInviteTool: React.FC<IVeltUserInviteToolProps>;
|
|
12
13
|
export default SnippylyUserInviteTool;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VeltNivoChartComments";
|
package/cjs/types/components/VeltNotificationsHistoryPanel/VeltNotificationsHistoryPanel.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export interface IVeltNotificationsHistoryPanelProps {
|
|
3
3
|
embedMode?: boolean;
|
|
4
4
|
onNotificationClick?: Function;
|
|
5
|
+
darkMode?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const VeltNotificationsHistoryPanel: React.FC<IVeltNotificationsHistoryPanelProps>;
|
|
7
8
|
export default VeltNotificationsHistoryPanel;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
darkMode?: boolean;
|
|
3
4
|
onNotificationClick?: Function;
|
|
4
5
|
}
|
|
5
6
|
declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
|
|
@@ -25,3 +25,4 @@ export { default as VeltCommentThread } from "./VeltCommentThread";
|
|
|
25
25
|
export { default as VeltNotificationsTool } from "./VeltNotificationsTool";
|
|
26
26
|
export { default as VeltNotificationsPanel } from "./VeltNotificationsPanel";
|
|
27
27
|
export { default as VeltNotificationsHistoryPanel } from "./VeltNotificationsHistoryPanel";
|
|
28
|
+
export { default as VeltNivoChartComments } from "./VeltNivoChartComments";
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VELT_SDK_VERSION = "1.0.
|
|
1
|
+
export declare const VELT_SDK_VERSION = "1.0.111";
|
|
2
2
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
package/esm/index.js
CHANGED
|
@@ -101,7 +101,7 @@ var loadVelt = function (callback, version, staging, develop) {
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
var VELT_SDK_VERSION = '1.0.
|
|
104
|
+
var VELT_SDK_VERSION = '1.0.111';
|
|
105
105
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
106
106
|
|
|
107
107
|
var SnippylyProvider = function (props) {
|
|
@@ -269,7 +269,7 @@ var SnippylyCommentsSidebar = function (props) {
|
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
var SnippylyCommentTool = function (props) {
|
|
272
|
-
var targetCommentElementId = props.targetCommentElementId, onCommentModeChange = props.onCommentModeChange, children = props.children;
|
|
272
|
+
var targetCommentElementId = props.targetCommentElementId, onCommentModeChange = props.onCommentModeChange, children = props.children, darkMode = props.darkMode;
|
|
273
273
|
var ref = useRef();
|
|
274
274
|
useEffect(function () {
|
|
275
275
|
if (ref.current) {
|
|
@@ -281,7 +281,7 @@ var SnippylyCommentTool = function (props) {
|
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
283
|
}, []);
|
|
284
|
-
return (React.createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId }, children));
|
|
284
|
+
return (React.createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
var SnippylyCursor = function (props) {
|
|
@@ -308,8 +308,8 @@ var SnippylyHuddle = function (props) {
|
|
|
308
308
|
};
|
|
309
309
|
|
|
310
310
|
var SnippylyHuddleTool = function (props) {
|
|
311
|
-
var type = props.type, children = props.children;
|
|
312
|
-
return (React.createElement("velt-huddle-tool", { type: type }, children));
|
|
311
|
+
var type = props.type, children = props.children, darkMode = props.darkMode;
|
|
312
|
+
return (React.createElement("velt-huddle-tool", { type: type, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
313
313
|
};
|
|
314
314
|
|
|
315
315
|
var SnippylyPresence = function (props) {
|
|
@@ -378,13 +378,13 @@ var SnippylyRecorderPlayer = function (props) {
|
|
|
378
378
|
};
|
|
379
379
|
|
|
380
380
|
var SnippylyRecorderTool = function (props) {
|
|
381
|
-
var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children;
|
|
382
|
-
return (React.createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel }, children));
|
|
381
|
+
var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children, darkMode = props.darkMode;
|
|
382
|
+
return (React.createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
383
383
|
};
|
|
384
384
|
|
|
385
385
|
var SnippylySidebarButton = function (props) {
|
|
386
|
-
var tooltipText = props.tooltipText, children = props.children;
|
|
387
|
-
return (React.createElement("velt-sidebar-button", { "tooltip-text": tooltipText }, children));
|
|
386
|
+
var tooltipText = props.tooltipText, children = props.children, darkMode = props.darkMode;
|
|
387
|
+
return (React.createElement("velt-sidebar-button", { "tooltip-text": tooltipText, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
388
388
|
};
|
|
389
389
|
|
|
390
390
|
var SnippylyTags = function (props) {
|
|
@@ -402,13 +402,13 @@ var SnippylyArrows = function () {
|
|
|
402
402
|
};
|
|
403
403
|
|
|
404
404
|
var SnippylyArrowTool = function (props) {
|
|
405
|
-
var children = props.children;
|
|
406
|
-
return (React.createElement("velt-arrow-tool",
|
|
405
|
+
var children = props.children, darkMode = props.darkMode;
|
|
406
|
+
return (React.createElement("velt-arrow-tool", { "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
407
407
|
};
|
|
408
408
|
|
|
409
409
|
var SnippylyUserInviteTool = function (props) {
|
|
410
|
-
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;
|
|
411
|
-
return (React.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));
|
|
410
|
+
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, darkMode = props.darkMode;
|
|
411
|
+
return (React.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, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
412
412
|
};
|
|
413
413
|
|
|
414
414
|
var SnippylyUserRequestTool = function (props) {
|
|
@@ -448,7 +448,7 @@ var VeltCommentThread = function (props) {
|
|
|
448
448
|
};
|
|
449
449
|
|
|
450
450
|
var VeltNotificationsTool = function (props) {
|
|
451
|
-
var children = props.children, onNotificationClick = props.onNotificationClick;
|
|
451
|
+
var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick;
|
|
452
452
|
var ref = useRef();
|
|
453
453
|
useEffect(function () {
|
|
454
454
|
if (ref.current) {
|
|
@@ -460,11 +460,11 @@ var VeltNotificationsTool = function (props) {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
}, []);
|
|
463
|
-
return (React.createElement("velt-notifications-tool", { ref: ref }, children));
|
|
463
|
+
return (React.createElement("velt-notifications-tool", { ref: ref, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
var VeltNotificationsPanel = function (props) {
|
|
467
|
-
var onNotificationClick = props.onNotificationClick;
|
|
467
|
+
var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick;
|
|
468
468
|
var ref = useRef();
|
|
469
469
|
useEffect(function () {
|
|
470
470
|
if (ref.current) {
|
|
@@ -476,11 +476,11 @@ var VeltNotificationsPanel = function (props) {
|
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
}, []);
|
|
479
|
-
return (React.createElement("velt-notifications-panel", { ref: ref }));
|
|
479
|
+
return (React.createElement("velt-notifications-panel", { ref: ref, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
480
480
|
};
|
|
481
481
|
|
|
482
482
|
var VeltNotificationsHistoryPanel = function (props) {
|
|
483
|
-
var embedMode = props.embedMode, onNotificationClick = props.onNotificationClick;
|
|
483
|
+
var embedMode = props.embedMode, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick;
|
|
484
484
|
var ref = useRef();
|
|
485
485
|
useEffect(function () {
|
|
486
486
|
if (ref.current) {
|
|
@@ -492,7 +492,74 @@ var VeltNotificationsHistoryPanel = function (props) {
|
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
494
|
}, []);
|
|
495
|
-
return (React.createElement("velt-notifications-history-panel", { ref: ref, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined }));
|
|
495
|
+
return (React.createElement("velt-notifications-history-panel", { ref: ref, "embed-mode": [true, false].includes(embedMode) ? (embedMode ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
var VeltNivoChartComments = function (_a) {
|
|
499
|
+
var _b, _c, _d;
|
|
500
|
+
var props = _a.props;
|
|
501
|
+
var polarToCartesian = function (centerX, centerY, radius, angleInRadians) {
|
|
502
|
+
return {
|
|
503
|
+
x: centerX + radius * Math.cos(angleInRadians - Math.PI / 2),
|
|
504
|
+
y: centerY + radius * Math.sin(angleInRadians - Math.PI / 2)
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
return (React.createElement(React.Fragment, null,
|
|
508
|
+
React.createElement("foreignObject", null,
|
|
509
|
+
React.createElement("style", null, "\n .nivo-chart-comment-point {\n opacity: 0 !important;\n visibility: hidden !important;\n }\n \n .nivo-chart-comment-tool {\n opacity: 0;\n }\n \n .nivo-chart-comment-tool:hover {\n opacity: 1;\n visibility: visible;\n transition: 0.3s;\n }\n \n .nivo-chart-comment-container {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n /* justify-content: center; */\n width: 100%;\n height: 100%;\n }\n \n .nivo-chart-comment-container velt-comment-tool {\n display: flex;\n cursor: pointer;\n }\n \n .nivo-chart-container snippyly-comment-pin-portal {\n /* hide it */\n display: none;\n }\n ")),
|
|
510
|
+
((_b = props === null || props === void 0 ? void 0 : props.points) === null || _b === void 0 ? void 0 : _b.length) && props.points.map(function (point, index) {
|
|
511
|
+
var _a, _b;
|
|
512
|
+
var targetCommentElementId = "".concat((_a = point === null || point === void 0 ? void 0 : point.data) === null || _a === void 0 ? void 0 : _a.x, "-").concat((_b = point === null || point === void 0 ? void 0 : point.data) === null || _b === void 0 ? void 0 : _b.y);
|
|
513
|
+
return (React.createElement("g", { transform: "translate(".concat(point.x, ", ").concat(point.y, ")"), key: point.id },
|
|
514
|
+
React.createElement("foreignObject", { x: -20, y: -40, width: "40", height: "40" },
|
|
515
|
+
React.createElement("div", { className: 'nivo-chart-comment-container' },
|
|
516
|
+
React.createElement("div", { className: 'nivo-chart-comment-point', id: targetCommentElementId }),
|
|
517
|
+
React.createElement("div", { className: 'nivo-chart-comment-tool' },
|
|
518
|
+
React.createElement(SnippylyCommentTool, { targetCommentElementId: targetCommentElementId },
|
|
519
|
+
React.createElement("div", { slot: 'button' },
|
|
520
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: '#625DF5', className: "bi bi-chat", viewBox: "0 0 16 16" },
|
|
521
|
+
React.createElement("path", { d: "M2.678 11.894a1 1 0 0 1 .287.801 11 11 0 0 1-.398 2c1.395-.323 2.247-.697 2.634-.893a1 1 0 0 1 .71-.074A8 8 0 0 0 8 14c3.996 0 7-2.807 7-6s-3.004-6-7-6-7 2.808-7 6c0 1.468.617 2.83 1.678 3.894m-.493 3.905a22 22 0 0 1-.713.129c-.2.032-.352-.176-.273-.362a10 10 0 0 0 .244-.637l.003-.01c.248-.72.45-1.548.524-2.319C.743 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7-3.582 7-8 7a9 9 0 0 1-2.347-.306c-.52.263-1.639.742-3.468 1.105" }))))),
|
|
522
|
+
React.createElement(SnippylyCommentBubble, { targetCommentElementId: targetCommentElementId },
|
|
523
|
+
React.createElement("div", { slot: 'content' },
|
|
524
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: point.serieColor, className: "bi bi-chat-fill", viewBox: "0 0 16 16" },
|
|
525
|
+
React.createElement("path", { d: "M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15" }))))))));
|
|
526
|
+
}),
|
|
527
|
+
((_c = props === null || props === void 0 ? void 0 : props.bars) === null || _c === void 0 ? void 0 : _c.length) && props.bars.map(function (point, index) {
|
|
528
|
+
var _a, _b;
|
|
529
|
+
var targetCommentElementId = "".concat(point === null || point === void 0 ? void 0 : point.key, "-").concat((_a = point === null || point === void 0 ? void 0 : point.data) === null || _a === void 0 ? void 0 : _a.value);
|
|
530
|
+
return (React.createElement("g", { transform: "translate(".concat(point.x + point.width, ", ").concat(point.y, ")"), key: point.key },
|
|
531
|
+
React.createElement("foreignObject", { x: 0, y: -8, width: "24", height: "24" },
|
|
532
|
+
React.createElement("div", { className: 'nivo-chart-comment-container' },
|
|
533
|
+
React.createElement("div", { className: 'nivo-chart-comment-point', id: targetCommentElementId }),
|
|
534
|
+
React.createElement("div", { className: 'nivo-chart-comment-tool' },
|
|
535
|
+
React.createElement(SnippylyCommentTool, { targetCommentElementId: targetCommentElementId },
|
|
536
|
+
React.createElement("div", { slot: 'button' },
|
|
537
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: '#625DF5', className: "bi bi-chat", viewBox: "0 0 16 16" },
|
|
538
|
+
React.createElement("path", { d: "M2.678 11.894a1 1 0 0 1 .287.801 11 11 0 0 1-.398 2c1.395-.323 2.247-.697 2.634-.893a1 1 0 0 1 .71-.074A8 8 0 0 0 8 14c3.996 0 7-2.807 7-6s-3.004-6-7-6-7 2.808-7 6c0 1.468.617 2.83 1.678 3.894m-.493 3.905a22 22 0 0 1-.713.129c-.2.032-.352-.176-.273-.362a10 10 0 0 0 .244-.637l.003-.01c.248-.72.45-1.548.524-2.319C.743 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7-3.582 7-8 7a9 9 0 0 1-2.347-.306c-.52.263-1.639.742-3.468 1.105" }))))),
|
|
539
|
+
React.createElement(SnippylyCommentBubble, { targetCommentElementId: targetCommentElementId },
|
|
540
|
+
React.createElement("div", { slot: 'content' },
|
|
541
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: ((_b = point === null || point === void 0 ? void 0 : point.data) === null || _b === void 0 ? void 0 : _b.fill) || point.color, className: "bi bi-chat-fill", viewBox: "0 0 16 16" },
|
|
542
|
+
React.createElement("path", { d: "M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15" }))))))));
|
|
543
|
+
}),
|
|
544
|
+
((_d = props === null || props === void 0 ? void 0 : props.dataWithArc) === null || _d === void 0 ? void 0 : _d.length) && props.dataWithArc.map(function (arcData, index) {
|
|
545
|
+
var midAngle = (arcData.arc.startAngle + arcData.arc.endAngle) / 2;
|
|
546
|
+
var radiusOffset = 20; // Extend beyond the outer radius for visibility
|
|
547
|
+
var position = polarToCartesian(props.centerX, props.centerY, arcData.arc.outerRadius + radiusOffset, midAngle);
|
|
548
|
+
var targetCommentElementId = "".concat(arcData === null || arcData === void 0 ? void 0 : arcData.id, "-").concat(arcData === null || arcData === void 0 ? void 0 : arcData.value);
|
|
549
|
+
return (React.createElement("g", { transform: "translate(".concat(position.x, ", ").concat(position.y, ")"), key: arcData.id },
|
|
550
|
+
React.createElement("foreignObject", { width: "100", height: "50", x: "-50", y: "-25", style: { overflow: 'visible' } },
|
|
551
|
+
React.createElement("div", { className: 'nivo-chart-comment-container' },
|
|
552
|
+
React.createElement("div", { className: 'nivo-chart-comment-point', id: targetCommentElementId }),
|
|
553
|
+
React.createElement("div", { className: 'nivo-chart-comment-tool' },
|
|
554
|
+
React.createElement(SnippylyCommentTool, { targetCommentElementId: targetCommentElementId },
|
|
555
|
+
React.createElement("div", { slot: 'button' },
|
|
556
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: '#625DF5', className: "bi bi-chat", viewBox: "0 0 16 16" },
|
|
557
|
+
React.createElement("path", { d: "M2.678 11.894a1 1 0 0 1 .287.801 11 11 0 0 1-.398 2c1.395-.323 2.247-.697 2.634-.893a1 1 0 0 1 .71-.074A8 8 0 0 0 8 14c3.996 0 7-2.807 7-6s-3.004-6-7-6-7 2.808-7 6c0 1.468.617 2.83 1.678 3.894m-.493 3.905a22 22 0 0 1-.713.129c-.2.032-.352-.176-.273-.362a10 10 0 0 0 .244-.637l.003-.01c.248-.72.45-1.548.524-2.319C.743 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7-3.582 7-8 7a9 9 0 0 1-2.347-.306c-.52.263-1.639.742-3.468 1.105" }))))),
|
|
558
|
+
React.createElement(SnippylyCommentBubble, { targetCommentElementId: targetCommentElementId },
|
|
559
|
+
React.createElement("div", { slot: 'content' },
|
|
560
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: (arcData === null || arcData === void 0 ? void 0 : arcData.fill) || arcData.color, className: "bi bi-chat-fill", viewBox: "0 0 16 16" },
|
|
561
|
+
React.createElement("path", { d: "M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15" }))))))));
|
|
562
|
+
})));
|
|
496
563
|
};
|
|
497
564
|
|
|
498
565
|
/**
|
|
@@ -1129,5 +1196,5 @@ var logLiveState = function (action, liveStateDataId) {
|
|
|
1129
1196
|
}
|
|
1130
1197
|
};
|
|
1131
1198
|
|
|
1132
|
-
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, SnippylyCommentBubble as VeltCommentBubble, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, SnippylyCursor as VeltCursor, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, 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, VeltVideoPlayer, VeltViewAnalytics, createLiveStateMiddleware, useAIRewriterUtils, useAddLocation, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUserEditorState, useVeltClient, useViewsUtils };
|
|
1199
|
+
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, SnippylyCommentBubble as VeltCommentBubble, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, SnippylyCursor as VeltCursor, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, 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, VeltVideoPlayer, VeltViewAnalytics, createLiveStateMiddleware, useAIRewriterUtils, useAddLocation, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUserEditorState, useVeltClient, useViewsUtils };
|
|
1133
1200
|
//# sourceMappingURL=index.js.map
|