@veltdev/react 4.5.0-beta.6 → 4.5.0-beta.8
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 +42 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +3 -0
- package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +5 -0
- package/cjs/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +2 -2
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/VeltCommentsSidebarDocumentFilterDropdownContent.d.ts +8 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTrigger.d.ts +10 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel.d.ts +8 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe.d.ts +12 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/VeltCommentsSidebarFilterDocument.d.ts +16 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +42 -3
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +3 -0
- package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +5 -0
- package/esm/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +2 -2
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/VeltCommentsSidebarDocumentFilterDropdownContent.d.ts +8 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/index.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTrigger.d.ts +10 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel.d.ts +8 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/index.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/index.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe.d.ts +12 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/VeltCommentsSidebarFilterDocument.d.ts +16 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/index.d.ts +1 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +44 -2
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -140,7 +140,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
var VELT_SDK_VERSION = '4.5.0-beta.
|
|
143
|
+
var VELT_SDK_VERSION = '4.5.0-beta.8';
|
|
144
144
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
145
145
|
var VELT_TAB_ID = 'veltTabId';
|
|
146
146
|
|
|
@@ -454,7 +454,7 @@ var SnippylyCommentsSidebar = function (props) {
|
|
|
454
454
|
};
|
|
455
455
|
|
|
456
456
|
var SnippylyCommentTool = function (props) {
|
|
457
|
-
var targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, onCommentModeChange = props.onCommentModeChange, sourceId = props.sourceId, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom;
|
|
457
|
+
var targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, onCommentModeChange = props.onCommentModeChange, sourceId = props.sourceId, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, context = props.context;
|
|
458
458
|
var ref = React.useRef();
|
|
459
459
|
var onCommentModeChangeRef = React.useRef(onCommentModeChange);
|
|
460
460
|
// Update the ref to always point to the latest callback function
|
|
@@ -480,7 +480,7 @@ var SnippylyCommentTool = function (props) {
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
}, []);
|
|
483
|
-
return (React__default["default"].createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, "source-id": sourceId, variant: variant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
483
|
+
return (React__default["default"].createElement("velt-comment-tool", { ref: ref, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, "source-id": sourceId, variant: variant, context: JSON.stringify(context), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
484
484
|
};
|
|
485
485
|
|
|
486
486
|
var SnippylyCursor = function (props) {
|
|
@@ -2686,6 +2686,16 @@ VeltCommentsSidebarFilterTagged.Name = VeltCommentsSidebarFilterName;
|
|
|
2686
2686
|
VeltCommentsSidebarFilterTagged.Item = VeltCommentsSidebarFilterItem;
|
|
2687
2687
|
VeltCommentsSidebarFilterTagged.Search = VeltCommentsSidebarFilterSearch;
|
|
2688
2688
|
|
|
2689
|
+
var VeltCommentsSidebarFilterDocument = function (props) {
|
|
2690
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2691
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2692
|
+
return (React__default["default"].createElement("velt-comments-sidebar-filter-document-wireframe", __assign({}, transformedProps), children));
|
|
2693
|
+
};
|
|
2694
|
+
VeltCommentsSidebarFilterDocument.Name = VeltCommentsSidebarFilterName;
|
|
2695
|
+
VeltCommentsSidebarFilterDocument.Item = VeltCommentsSidebarFilterItem;
|
|
2696
|
+
VeltCommentsSidebarFilterDocument.ViewAll = VeltCommentsSidebarFilterViewAll;
|
|
2697
|
+
VeltCommentsSidebarFilterDocument.Search = VeltCommentsSidebarFilterSearch;
|
|
2698
|
+
|
|
2689
2699
|
var VeltCommentsSidebarFilter = function (props) {
|
|
2690
2700
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2691
2701
|
var transformedProps = transformWireframeProps(remainingProps);
|
|
@@ -2707,6 +2717,7 @@ VeltCommentsSidebarFilter.Item = VeltCommentsSidebarFilterItem;
|
|
|
2707
2717
|
VeltCommentsSidebarFilter.Status = VeltCommentsSidebarFilterStatus;
|
|
2708
2718
|
VeltCommentsSidebarFilter.ResetButton = VeltCommentsSidebarFilterResetButton;
|
|
2709
2719
|
VeltCommentsSidebarFilter.Search = VeltCommentsSidebarFilterSearch;
|
|
2720
|
+
VeltCommentsSidebarFilter.Document = VeltCommentsSidebarFilterDocument;
|
|
2710
2721
|
|
|
2711
2722
|
var VeltCommentsSidebarFilterButton = function (props) {
|
|
2712
2723
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
@@ -2795,6 +2806,33 @@ var VeltCommentsSidebarLocationFilterDropdown = function (props) {
|
|
|
2795
2806
|
VeltCommentsSidebarLocationFilterDropdown.Trigger = VeltCommentsSidebarLocationFilterDropdownTrigger;
|
|
2796
2807
|
VeltCommentsSidebarLocationFilterDropdown.Content = VeltCommentsSidebarLocationFilterDropdownContent;
|
|
2797
2808
|
|
|
2809
|
+
var VeltCommentsSidebarDocumentFilterDropdownContent = function (props) {
|
|
2810
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2811
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2812
|
+
return (React__default["default"].createElement("velt-comments-sidebar-document-filter-dropdown-content-wireframe", __assign({}, transformedProps), children));
|
|
2813
|
+
};
|
|
2814
|
+
|
|
2815
|
+
var VeltCommentsSidebarDocumentFilterDropdownTriggerLabel = function (props) {
|
|
2816
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2817
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2818
|
+
return (React__default["default"].createElement("velt-comments-sidebar-document-filter-dropdown-trigger-label-wireframe", __assign({}, transformedProps), children));
|
|
2819
|
+
};
|
|
2820
|
+
|
|
2821
|
+
var VeltCommentsSidebarDocumentFilterDropdownTrigger = function (props) {
|
|
2822
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2823
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2824
|
+
return (React__default["default"].createElement("velt-comments-sidebar-document-filter-dropdown-trigger-wireframe", __assign({}, transformedProps), children));
|
|
2825
|
+
};
|
|
2826
|
+
VeltCommentsSidebarDocumentFilterDropdownTrigger.Label = VeltCommentsSidebarDocumentFilterDropdownTriggerLabel;
|
|
2827
|
+
|
|
2828
|
+
var VeltCommentsSidebarDocumentFilterDropdownWireframe = function (props) {
|
|
2829
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2830
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2831
|
+
return (React__default["default"].createElement("velt-comments-sidebar-document-filter-dropdown-wireframe", __assign({}, transformedProps), children));
|
|
2832
|
+
};
|
|
2833
|
+
VeltCommentsSidebarDocumentFilterDropdownWireframe.Trigger = VeltCommentsSidebarDocumentFilterDropdownTrigger;
|
|
2834
|
+
VeltCommentsSidebarDocumentFilterDropdownWireframe.Content = VeltCommentsSidebarDocumentFilterDropdownContent;
|
|
2835
|
+
|
|
2798
2836
|
var VeltCommentsSidebarMinimalActionsDropdownContentMarkAllReadWireframe = function (props) {
|
|
2799
2837
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2800
2838
|
var transformedProps = transformWireframeProps(remainingProps);
|
|
@@ -3062,6 +3100,7 @@ VeltCommentsSidebarWireframe.Skeleton = VeltCommentsSidebarSkeleton;
|
|
|
3062
3100
|
VeltCommentsSidebarWireframe.Panel = VeltCommentsSidebarPanel;
|
|
3063
3101
|
VeltCommentsSidebarWireframe.MinimalFilterDropdown = VeltCommentsSidebarMinimalFilterDropdown;
|
|
3064
3102
|
VeltCommentsSidebarWireframe.LocationFilterDropdown = VeltCommentsSidebarLocationFilterDropdown;
|
|
3103
|
+
VeltCommentsSidebarWireframe.DocumentFilterDropdown = VeltCommentsSidebarDocumentFilterDropdownWireframe;
|
|
3065
3104
|
VeltCommentsSidebarWireframe.MinimalActionsDropdown = VeltCommentsSidebarMinimalActionsDropdownWireframe;
|
|
3066
3105
|
VeltCommentsSidebarWireframe.ResetFilterButton = VeltCommentsSidebarResetFilterButtonWireframe;
|
|
3067
3106
|
VeltCommentsSidebarWireframe.ActionButton = VeltCommentsSidebarActionButton;
|