@veltdev/react 4.5.0-beta.1 → 4.5.0-beta.11

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 (94) hide show
  1. package/cjs/index.js +213 -5
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +3 -0
  4. package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +5 -0
  5. package/cjs/types/components/SnippylyPresence/SnippylyPresence.d.ts +1 -0
  6. package/cjs/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +2 -2
  7. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/VeltCommentsSidebarDocumentFilterDropdownContent.d.ts +8 -0
  8. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/index.d.ts +1 -0
  9. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTrigger.d.ts +10 -0
  10. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel.d.ts +8 -0
  11. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/index.d.ts +1 -0
  12. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/index.d.ts +1 -0
  13. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe.d.ts +12 -0
  14. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/index.d.ts +1 -0
  15. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
  16. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/VeltCommentsSidebarFilterDocument.d.ts +16 -0
  17. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/index.d.ts +1 -0
  18. package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  19. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineContainerWireframe/VeltVideoEditorPlayerTimelineContainerWireframe.d.ts +8 -0
  20. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineContainerWireframe/index.d.ts +1 -0
  21. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineMarkerWireframe/VeltVideoEditorPlayerTimelineMarkerWireframe.d.ts +8 -0
  22. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineMarkerWireframe/index.d.ts +1 -0
  23. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelinePlayheadWireframe/VeltVideoEditorPlayerTimelinePlayheadWireframe.d.ts +8 -0
  24. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelinePlayheadWireframe/index.d.ts +1 -0
  25. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineScaleWireframe/VeltVideoEditorPlayerTimelineScaleWireframe.d.ts +10 -0
  26. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineScaleWireframe/index.d.ts +1 -0
  27. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineTrimWireframe/VeltVideoEditorPlayerTimelineTrimWireframe.d.ts +8 -0
  28. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineTrimWireframe/index.d.ts +1 -0
  29. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineWireframe.d.ts +10 -0
  30. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsInputWireframe/VeltVideoEditorPlayerZoomButtonOptionsInputWireframe.d.ts +8 -0
  31. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsInputWireframe/index.d.ts +1 -0
  32. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe/VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe.d.ts +8 -0
  33. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe/index.d.ts +1 -0
  34. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe.d.ts +10 -0
  35. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/index.d.ts +1 -0
  36. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe.d.ts +12 -0
  37. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/index.d.ts +1 -0
  38. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonTriggerWireframe/VeltVideoEditorPlayerZoomButtonTriggerWireframe.d.ts +8 -0
  39. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonTriggerWireframe/index.d.ts +1 -0
  40. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonWireframe.d.ts +12 -0
  41. package/cjs/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/index.d.ts +1 -0
  42. package/cjs/types/constants.d.ts +1 -1
  43. package/cjs/types/hooks/LiveStateSyncActions.d.ts +2 -0
  44. package/cjs/types/hooks/PresenceActions.d.ts +2 -0
  45. package/cjs/types/hooks/PresenceElement.d.ts +2 -1
  46. package/cjs/types/hooks/index.d.ts +3 -1
  47. package/esm/index.js +211 -6
  48. package/esm/index.js.map +1 -1
  49. package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +3 -0
  50. package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +5 -0
  51. package/esm/types/components/SnippylyPresence/SnippylyPresence.d.ts +1 -0
  52. package/esm/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +2 -2
  53. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/VeltCommentsSidebarDocumentFilterDropdownContent.d.ts +8 -0
  54. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownContent/index.d.ts +1 -0
  55. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTrigger.d.ts +10 -0
  56. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel.d.ts +8 -0
  57. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/VeltCommentsSidebarDocumentFilterDropdownTriggerLabel/index.d.ts +1 -0
  58. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownTrigger/index.d.ts +1 -0
  59. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe.d.ts +12 -0
  60. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarDocumentFilterDropdownWireframe/index.d.ts +1 -0
  61. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
  62. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/VeltCommentsSidebarFilterDocument.d.ts +16 -0
  63. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterDocument/index.d.ts +1 -0
  64. package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarWireframe.d.ts +2 -0
  65. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineContainerWireframe/VeltVideoEditorPlayerTimelineContainerWireframe.d.ts +8 -0
  66. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineContainerWireframe/index.d.ts +1 -0
  67. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineMarkerWireframe/VeltVideoEditorPlayerTimelineMarkerWireframe.d.ts +8 -0
  68. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineMarkerWireframe/index.d.ts +1 -0
  69. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelinePlayheadWireframe/VeltVideoEditorPlayerTimelinePlayheadWireframe.d.ts +8 -0
  70. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelinePlayheadWireframe/index.d.ts +1 -0
  71. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineScaleWireframe/VeltVideoEditorPlayerTimelineScaleWireframe.d.ts +10 -0
  72. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineScaleWireframe/index.d.ts +1 -0
  73. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineTrimWireframe/VeltVideoEditorPlayerTimelineTrimWireframe.d.ts +8 -0
  74. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineTrimWireframe/index.d.ts +1 -0
  75. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerTimelineWireframe/VeltVideoEditorPlayerTimelineWireframe.d.ts +10 -0
  76. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsInputWireframe/VeltVideoEditorPlayerZoomButtonOptionsInputWireframe.d.ts +8 -0
  77. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsInputWireframe/index.d.ts +1 -0
  78. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe/VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe.d.ts +8 -0
  79. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe/index.d.ts +1 -0
  80. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe.d.ts +10 -0
  81. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsListWireframe/index.d.ts +1 -0
  82. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe.d.ts +12 -0
  83. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonOptionsWireframe/index.d.ts +1 -0
  84. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonTriggerWireframe/VeltVideoEditorPlayerZoomButtonTriggerWireframe.d.ts +8 -0
  85. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonTriggerWireframe/index.d.ts +1 -0
  86. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/VeltVideoEditorPlayerZoomButtonWireframe.d.ts +12 -0
  87. package/esm/types/components/VeltVideoEditorPlayerWireframe/VeltVideoEditorPlayerZoomButtonWireframe/index.d.ts +1 -0
  88. package/esm/types/constants.d.ts +1 -1
  89. package/esm/types/hooks/LiveStateSyncActions.d.ts +2 -0
  90. package/esm/types/hooks/PresenceActions.d.ts +2 -0
  91. package/esm/types/hooks/PresenceElement.d.ts +2 -1
  92. package/esm/types/hooks/index.d.ts +3 -1
  93. package/index.d.ts +117 -3
  94. 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.1';
143
+ var VELT_SDK_VERSION = '4.5.0-beta.11';
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) {
@@ -531,7 +531,7 @@ var SnippylyHuddleTool = function (props) {
531
531
  };
532
532
 
533
533
  var SnippylyPresence = function (props) {
534
- var maxUsers = props.maxUsers, inactivityTime = props.inactivityTime, documentParams = props.documentParams, location = props.location, locationId = props.locationId, self = props.self, onPresenceUserClick = props.onPresenceUserClick, onUsersChanged = props.onUsersChanged, onPresenceUserChange = props.onPresenceUserChange, disableFlockNavigation = props.disableFlockNavigation, defaultFlockNavigation = props.defaultFlockNavigation, onNavigate = props.onNavigate, flockMode = props.flockMode, shadowDom = props.shadowDom;
534
+ var maxUsers = props.maxUsers, inactivityTime = props.inactivityTime, offlineInactivityTime = props.offlineInactivityTime, documentParams = props.documentParams, location = props.location, locationId = props.locationId, self = props.self, onPresenceUserClick = props.onPresenceUserClick, onUsersChanged = props.onUsersChanged, onPresenceUserChange = props.onPresenceUserChange, disableFlockNavigation = props.disableFlockNavigation, defaultFlockNavigation = props.defaultFlockNavigation, onNavigate = props.onNavigate, flockMode = props.flockMode, shadowDom = props.shadowDom;
535
535
  var ref = React.useRef();
536
536
  var onUsersChangedRef = React.useRef(onUsersChanged);
537
537
  var onPresenceUserChangeRef = React.useRef(onPresenceUserChange);
@@ -586,7 +586,7 @@ var SnippylyPresence = function (props) {
586
586
  }
587
587
  };
588
588
  }, []);
589
- return (React__default["default"].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, self: [true, false].includes(self) ? (self ? 'true' : 'false') : undefined, location: (typeof location === 'object') ? JSON.stringify(location) : (location ? location : undefined), "location-id": locationId, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }));
589
+ return (React__default["default"].createElement("velt-presence", { ref: ref, "flock-mode": [true, false].includes(flockMode) ? (flockMode ? 'true' : 'false') : undefined, "max-users": maxUsers, "inactivity-time": inactivityTime, "offline-inactivity-time": offlineInactivityTime, "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, self: [true, false].includes(self) ? (self ? 'true' : 'false') : undefined, location: (typeof location === 'object') ? JSON.stringify(location) : (location ? location : undefined), "location-id": locationId, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }));
590
590
  };
591
591
 
592
592
  var SnippylyRecorderControlPanel = 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;
@@ -4965,11 +5004,88 @@ var VeltVideoEditorPlayerDeleteButtonWireframe = function (props) {
4965
5004
  return (React__default["default"].createElement("velt-video-editor-player-delete-button-wireframe", __assign({}, transformedProps), children));
4966
5005
  };
4967
5006
 
5007
+ var VeltVideoEditorPlayerTimelineMarkerWireframe = function (props) {
5008
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5009
+ var transformedProps = transformWireframeProps(remainingProps);
5010
+ return (React__default["default"].createElement("velt-video-editor-player-timeline-marker-wireframe", __assign({}, transformedProps), children));
5011
+ };
5012
+
5013
+ var VeltVideoEditorPlayerZoomButtonTriggerWireframe = function (props) {
5014
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5015
+ var transformedProps = transformWireframeProps(remainingProps);
5016
+ return (React__default["default"].createElement("velt-video-editor-player-zoom-button-trigger-wireframe", __assign({}, transformedProps), children));
5017
+ };
5018
+
5019
+ var VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe = function (props) {
5020
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5021
+ var transformedProps = transformWireframeProps(remainingProps);
5022
+ return (React__default["default"].createElement("velt-video-editor-player-zoom-button-options-list-item-wireframe", __assign({}, transformedProps), children));
5023
+ };
5024
+
5025
+ var VeltVideoEditorPlayerZoomButtonOptionsListWireframe = function (props) {
5026
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5027
+ var transformedProps = transformWireframeProps(remainingProps);
5028
+ return (React__default["default"].createElement("velt-video-editor-player-zoom-button-options-list-wireframe", __assign({}, transformedProps), children));
5029
+ };
5030
+ VeltVideoEditorPlayerZoomButtonOptionsListWireframe.Item = VeltVideoEditorPlayerZoomButtonOptionsListItemWireframe;
5031
+
5032
+ var VeltVideoEditorPlayerZoomButtonOptionsInputWireframe = function (props) {
5033
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5034
+ var transformedProps = transformWireframeProps(remainingProps);
5035
+ return (React__default["default"].createElement("velt-video-editor-player-zoom-button-options-input-wireframe", __assign({}, transformedProps), children));
5036
+ };
5037
+
5038
+ var VeltVideoEditorPlayerZoomButtonOptionsWireframe = function (props) {
5039
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5040
+ var transformedProps = transformWireframeProps(remainingProps);
5041
+ return (React__default["default"].createElement("velt-video-editor-player-zoom-button-options-wireframe", __assign({}, transformedProps), children));
5042
+ };
5043
+ VeltVideoEditorPlayerZoomButtonOptionsWireframe.List = VeltVideoEditorPlayerZoomButtonOptionsListWireframe;
5044
+ VeltVideoEditorPlayerZoomButtonOptionsWireframe.Input = VeltVideoEditorPlayerZoomButtonOptionsInputWireframe;
5045
+
5046
+ var VeltVideoEditorPlayerZoomButtonWireframe = function (props) {
5047
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5048
+ var transformedProps = transformWireframeProps(remainingProps);
5049
+ return (React__default["default"].createElement("velt-video-editor-player-zoom-button-wireframe", __assign({}, transformedProps), children));
5050
+ };
5051
+ VeltVideoEditorPlayerZoomButtonWireframe.Trigger = VeltVideoEditorPlayerZoomButtonTriggerWireframe;
5052
+ VeltVideoEditorPlayerZoomButtonWireframe.Options = VeltVideoEditorPlayerZoomButtonOptionsWireframe;
5053
+
5054
+ var VeltVideoEditorPlayerTimelineScaleWireframe = function (props) {
5055
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5056
+ var transformedProps = transformWireframeProps(remainingProps);
5057
+ return (React__default["default"].createElement("velt-video-editor-player-timeline-scale-wireframe", __assign({}, transformedProps), children));
5058
+ };
5059
+ VeltVideoEditorPlayerTimelineScaleWireframe.ZoomButton = VeltVideoEditorPlayerZoomButtonWireframe;
5060
+
5061
+ var VeltVideoEditorPlayerTimelineTrimWireframe = function (props) {
5062
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5063
+ var transformedProps = transformWireframeProps(remainingProps);
5064
+ return (React__default["default"].createElement("velt-video-editor-player-timeline-trim-wireframe", __assign({}, transformedProps), children));
5065
+ };
5066
+
5067
+ var VeltVideoEditorPlayerTimelineContainerWireframe = function (props) {
5068
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5069
+ var transformedProps = transformWireframeProps(remainingProps);
5070
+ return (React__default["default"].createElement("velt-video-editor-player-timeline-container-wireframe", __assign({}, transformedProps), children));
5071
+ };
5072
+
5073
+ var VeltVideoEditorPlayerTimelinePlayheadWireframe = function (props) {
5074
+ var children = props.children, remainingProps = __rest(props, ["children"]);
5075
+ var transformedProps = transformWireframeProps(remainingProps);
5076
+ return (React__default["default"].createElement("velt-video-editor-player-timeline-playhead-wireframe", __assign({}, transformedProps), children));
5077
+ };
5078
+
4968
5079
  var VeltVideoEditorPlayerTimelineWireframe = function (props) {
4969
5080
  var children = props.children, remainingProps = __rest(props, ["children"]);
4970
5081
  var transformedProps = transformWireframeProps(remainingProps);
4971
5082
  return (React__default["default"].createElement("velt-video-editor-player-timeline-wireframe", __assign({}, transformedProps), children));
4972
5083
  };
5084
+ VeltVideoEditorPlayerTimelineWireframe.Marker = VeltVideoEditorPlayerTimelineMarkerWireframe;
5085
+ VeltVideoEditorPlayerTimelineWireframe.Scale = VeltVideoEditorPlayerTimelineScaleWireframe;
5086
+ VeltVideoEditorPlayerTimelineWireframe.Trim = VeltVideoEditorPlayerTimelineTrimWireframe;
5087
+ VeltVideoEditorPlayerTimelineWireframe.Container = VeltVideoEditorPlayerTimelineContainerWireframe;
5088
+ VeltVideoEditorPlayerTimelineWireframe.Playhead = VeltVideoEditorPlayerTimelinePlayheadWireframe;
4973
5089
 
4974
5090
  var VeltVideoEditorPlayerWireframe = function (props) {
4975
5091
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -6377,6 +6493,33 @@ function useLiveState(liveStateDataId, initialValue, options) {
6377
6493
  return [data, setDataFunction, serverConnectionState];
6378
6494
  }
6379
6495
 
6496
+ function useLiveStateSyncEventCallback(action) {
6497
+ var liveStateSyncElement = useLiveStateSyncUtils();
6498
+ var _a = React.useState(null), data = _a[0], setData = _a[1];
6499
+ var subscriptionRef = React.useRef(null);
6500
+ var memoizedAction = React.useMemo(function () { return action; }, [action]);
6501
+ React.useEffect(function () {
6502
+ var _a;
6503
+ if (!(liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.on))
6504
+ return;
6505
+ if (subscriptionRef.current) {
6506
+ subscriptionRef.current.unsubscribe();
6507
+ }
6508
+ var subscription = (_a = liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.on(memoizedAction)) === null || _a === void 0 ? void 0 : _a.subscribe(function (data) {
6509
+ setData(data);
6510
+ });
6511
+ // Store the new subscription
6512
+ subscriptionRef.current = subscription;
6513
+ // Cleanup function
6514
+ return function () {
6515
+ if (subscriptionRef.current) {
6516
+ subscriptionRef.current.unsubscribe();
6517
+ }
6518
+ };
6519
+ }, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.on, memoizedAction]);
6520
+ return data;
6521
+ }
6522
+
6380
6523
  function usePresenceUtils() {
6381
6524
  var _a = React__default["default"].useState(), presenceElement = _a[0], setPresenceElement = _a[1];
6382
6525
  var client = useVeltClient().client;
@@ -6403,6 +6546,68 @@ function usePresenceUsers() {
6403
6546
  }, [presenceElement]);
6404
6547
  return data;
6405
6548
  }
6549
+ function usePresenceData(query) {
6550
+ var presenceElement = usePresenceUtils();
6551
+ var _a = React.useState({ data: null }), data = _a[0], setData = _a[1];
6552
+ var subscriptionRef = React.useRef();
6553
+ // Memoize the inputs
6554
+ var memoizedData = React.useMemo(function () {
6555
+ return query;
6556
+ }, [JSON.stringify(query)]);
6557
+ React.useEffect(function () {
6558
+ if (!(presenceElement === null || presenceElement === void 0 ? void 0 : presenceElement.getData))
6559
+ return;
6560
+ // Unsubscribe from the previous subscription if it exists
6561
+ if (subscriptionRef.current) {
6562
+ subscriptionRef.current.unsubscribe();
6563
+ }
6564
+ var subscription = presenceElement.getData(memoizedData)
6565
+ .subscribe(function (res) {
6566
+ if (res) {
6567
+ setData(res);
6568
+ }
6569
+ else {
6570
+ setData({ data: null });
6571
+ }
6572
+ });
6573
+ // Store the new subscription
6574
+ subscriptionRef.current = subscription;
6575
+ // Cleanup function
6576
+ return function () {
6577
+ if (subscriptionRef.current) {
6578
+ subscriptionRef.current.unsubscribe();
6579
+ }
6580
+ };
6581
+ }, [presenceElement === null || presenceElement === void 0 ? void 0 : presenceElement.getData, memoizedData]);
6582
+ return data;
6583
+ }
6584
+
6585
+ function usePresenceEventCallback(action) {
6586
+ var presenceElement = usePresenceUtils();
6587
+ var _a = React.useState(null), data = _a[0], setData = _a[1];
6588
+ var subscriptionRef = React.useRef(null);
6589
+ var memoizedAction = React.useMemo(function () { return action; }, [action]);
6590
+ React.useEffect(function () {
6591
+ var _a;
6592
+ if (!(presenceElement === null || presenceElement === void 0 ? void 0 : presenceElement.on))
6593
+ return;
6594
+ if (subscriptionRef.current) {
6595
+ subscriptionRef.current.unsubscribe();
6596
+ }
6597
+ var subscription = (_a = presenceElement === null || presenceElement === void 0 ? void 0 : presenceElement.on(memoizedAction)) === null || _a === void 0 ? void 0 : _a.subscribe(function (data) {
6598
+ setData(data);
6599
+ });
6600
+ // Store the new subscription
6601
+ subscriptionRef.current = subscription;
6602
+ // Cleanup function
6603
+ return function () {
6604
+ if (subscriptionRef.current) {
6605
+ subscriptionRef.current.unsubscribe();
6606
+ }
6607
+ };
6608
+ }, [presenceElement === null || presenceElement === void 0 ? void 0 : presenceElement.on, memoizedAction]);
6609
+ return data;
6610
+ }
6406
6611
 
6407
6612
  function useRecorderUtils() {
6408
6613
  var _a = React__default["default"].useState(), recorderElement = _a[0], setRecorderElement = _a[1];
@@ -7041,9 +7246,12 @@ exports.useLiveSelectionDataHandler = useLiveSelectionDataHandler;
7041
7246
  exports.useLiveSelectionUtils = useLiveSelectionUtils;
7042
7247
  exports.useLiveState = useLiveState;
7043
7248
  exports.useLiveStateData = useLiveStateData;
7249
+ exports.useLiveStateSyncEventCallback = useLiveStateSyncEventCallback;
7044
7250
  exports.useLiveStateSyncUtils = useLiveStateSyncUtils;
7045
7251
  exports.useNotificationUtils = useNotificationUtils;
7046
7252
  exports.useNotificationsData = useNotificationsData;
7253
+ exports.usePresenceData = usePresenceData;
7254
+ exports.usePresenceEventCallback = usePresenceEventCallback;
7047
7255
  exports.usePresenceUsers = usePresenceUsers;
7048
7256
  exports.usePresenceUtils = usePresenceUtils;
7049
7257
  exports.useRecorderAddHandler = useRecorderAddHandler;