@veltdev/react 4.5.2-beta.11 → 4.5.2-beta.13

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 (24) hide show
  1. package/cjs/index.js +29 -7
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +2 -0
  4. package/cjs/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +2 -0
  5. package/cjs/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarPipWireframe/VeltRecorderControlPanelActionBarPipWireframe.d.ts +8 -0
  6. package/cjs/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarPipWireframe/index.d.ts +1 -0
  7. package/cjs/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarWireframe.d.ts +2 -0
  8. package/cjs/types/components/VeltRecordingPreviewStepsDialogWireframe/VeltRecordingPreviewStepsDialogScreenPlayerWireframe/VeltRecordingPreviewStepsDialogScreenPlayerWireframe.d.ts +8 -0
  9. package/cjs/types/components/VeltRecordingPreviewStepsDialogWireframe/VeltRecordingPreviewStepsDialogScreenPlayerWireframe/index.d.ts +1 -0
  10. package/cjs/types/components/VeltRecordingPreviewStepsDialogWireframe/VeltRecordingPreviewStepsDialogVideoWireframe/VeltRecordingPreviewStepsDialogVideoWireframe.d.ts +2 -0
  11. package/cjs/types/constants.d.ts +1 -1
  12. package/esm/index.js +29 -7
  13. package/esm/index.js.map +1 -1
  14. package/esm/types/components/SnippylyRecorderControlPanel/SnippylyRecorderControlPanel.d.ts +2 -0
  15. package/esm/types/components/SnippylyRecorderTool/SnippylyRecorderTool.d.ts +2 -0
  16. package/esm/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarPipWireframe/VeltRecorderControlPanelActionBarPipWireframe.d.ts +8 -0
  17. package/esm/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarPipWireframe/index.d.ts +1 -0
  18. package/esm/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarWireframe.d.ts +2 -0
  19. package/esm/types/components/VeltRecordingPreviewStepsDialogWireframe/VeltRecordingPreviewStepsDialogScreenPlayerWireframe/VeltRecordingPreviewStepsDialogScreenPlayerWireframe.d.ts +8 -0
  20. package/esm/types/components/VeltRecordingPreviewStepsDialogWireframe/VeltRecordingPreviewStepsDialogScreenPlayerWireframe/index.d.ts +1 -0
  21. package/esm/types/components/VeltRecordingPreviewStepsDialogWireframe/VeltRecordingPreviewStepsDialogVideoWireframe/VeltRecordingPreviewStepsDialogVideoWireframe.d.ts +2 -0
  22. package/esm/types/constants.d.ts +1 -1
  23. package/index.d.ts +16 -0
  24. package/package.json +1 -1
package/cjs/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
+ var reactDom = require('react-dom');
6
7
 
7
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9
 
@@ -144,13 +145,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
144
145
  }
145
146
  };
146
147
 
147
- var VELT_SDK_VERSION = '4.5.2-beta.11';
148
+ var VELT_SDK_VERSION = '4.5.2-beta.13';
148
149
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
149
150
  var VELT_TAB_ID = 'veltTabId';
150
151
  // integrity map for the Velt SDK
151
152
  // Note: generate integrity hashes with: https://www.srihash.org/
152
153
  var INTEGRITY_MAP = {
153
- '4.5.2-beta.11': 'sha384-zlXomcC9rDwpcmKm3m5xVdanWaZNX/TlUXH7Sa94bqjIGhJjHlwxEU8KcIeosOa0',
154
+ '4.5.2-beta.13': 'sha384-9fs09QQnU0co3WsdHf2mQriSxbEKITWuSF6zSus29XbBJYrOZTR27Duzwq27MWFO',
154
155
  };
155
156
 
156
157
  var SnippylyProvider = function (props) {
@@ -628,7 +629,7 @@ var SnippylyPresence = function (props) {
628
629
  };
629
630
 
630
631
  var SnippylyRecorderControlPanel = function (props) {
631
- var mode = props.mode, panelId = props.panelId, onRecordedData = props.onRecordedData, recordingCountdown = props.recordingCountdown, recordingTranscription = props.recordingTranscription, videoEditor = props.videoEditor, settingsEmbedded = props.settingsEmbedded, autoOpenVideoEditor = props.autoOpenVideoEditor, playVideoInFullScreen = props.playVideoInFullScreen, retakeOnVideoEditor = props.retakeOnVideoEditor;
632
+ var mode = props.mode, panelId = props.panelId, onRecordedData = props.onRecordedData, recordingCountdown = props.recordingCountdown, recordingTranscription = props.recordingTranscription, videoEditor = props.videoEditor, settingsEmbedded = props.settingsEmbedded, autoOpenVideoEditor = props.autoOpenVideoEditor, playVideoInFullScreen = props.playVideoInFullScreen, retakeOnVideoEditor = props.retakeOnVideoEditor, pictureInPicture = props.pictureInPicture, maxLength = props.maxLength;
632
633
  var ref = React.useRef();
633
634
  var onRecordedDataRef = React.useRef(onRecordedData);
634
635
  // Update the ref to always point to the latest callback function
@@ -654,7 +655,7 @@ var SnippylyRecorderControlPanel = function (props) {
654
655
  }
655
656
  };
656
657
  }, []);
657
- return (React__default["default"].createElement("velt-recorder-control-panel", { ref: ref, mode: mode, "panel-id": panelId, "retake-on-video-editor": [true, false].includes(retakeOnVideoEditor) ? (retakeOnVideoEditor ? 'true' : 'false') : undefined, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined, "recording-transcription": [true, false].includes(recordingTranscription) ? (recordingTranscription ? 'true' : 'false') : undefined, "video-editor": [true, false].includes(videoEditor) ? (videoEditor ? 'true' : 'false') : undefined, "settings-embedded": [true, false].includes(settingsEmbedded) ? (settingsEmbedded ? 'true' : 'false') : undefined, "auto-open-video-editor": [true, false].includes(autoOpenVideoEditor) ? (autoOpenVideoEditor ? 'true' : 'false') : undefined, "play-video-in-full-screen": [true, false].includes(playVideoInFullScreen) ? (playVideoInFullScreen ? 'true' : 'false') : undefined }));
658
+ return (React__default["default"].createElement("velt-recorder-control-panel", { ref: ref, mode: mode, "panel-id": panelId, "retake-on-video-editor": [true, false].includes(retakeOnVideoEditor) ? (retakeOnVideoEditor ? 'true' : 'false') : undefined, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined, "recording-transcription": [true, false].includes(recordingTranscription) ? (recordingTranscription ? 'true' : 'false') : undefined, "video-editor": [true, false].includes(videoEditor) ? (videoEditor ? 'true' : 'false') : undefined, "settings-embedded": [true, false].includes(settingsEmbedded) ? (settingsEmbedded ? 'true' : 'false') : undefined, "auto-open-video-editor": [true, false].includes(autoOpenVideoEditor) ? (autoOpenVideoEditor ? 'true' : 'false') : undefined, "play-video-in-full-screen": [true, false].includes(playVideoInFullScreen) ? (playVideoInFullScreen ? 'true' : 'false') : undefined, "picture-in-picture": [true, false].includes(pictureInPicture) ? (pictureInPicture ? 'true' : 'false') : undefined, "max-length": maxLength }));
658
659
  };
659
660
 
660
661
  var SnippylyRecorderNotes = function (props) {
@@ -693,8 +694,8 @@ var SnippylyRecorderPlayer = function (props) {
693
694
  };
694
695
 
695
696
  var SnippylyRecorderTool = function (props) {
696
- var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom, recordingCountdown = props.recordingCountdown, variant = props.variant, retakeOnVideoEditor = props.retakeOnVideoEditor;
697
- return (React__default["default"].createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "retake-on-video-editor": [true, false].includes(retakeOnVideoEditor) ? (retakeOnVideoEditor ? 'true' : 'false') : undefined, variant: variant, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined }, children));
697
+ var type = props.type, panelId = props.panelId, buttonLabel = props.buttonLabel, children = props.children, darkMode = props.darkMode, shadowDom = props.shadowDom, recordingCountdown = props.recordingCountdown, variant = props.variant, retakeOnVideoEditor = props.retakeOnVideoEditor, pictureInPicture = props.pictureInPicture, maxLength = props.maxLength;
698
+ return (React__default["default"].createElement("velt-recorder-tool", { type: type, "panel-id": panelId, "button-label": buttonLabel, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "retake-on-video-editor": [true, false].includes(retakeOnVideoEditor) ? (retakeOnVideoEditor ? 'true' : 'false') : undefined, variant: variant, "recording-countdown": [true, false].includes(recordingCountdown) ? (recordingCountdown ? 'true' : 'false') : undefined, "picture-in-picture": [true, false].includes(pictureInPicture) ? (pictureInPicture ? 'true' : 'false') : undefined, "max-length": maxLength }, children));
698
699
  };
699
700
 
700
701
  var SnippylySidebarButton = function (props) {
@@ -4668,6 +4669,12 @@ var VeltRecordingPreviewStepsDialogVideoPlayerWireframe = function (props) {
4668
4669
  return (React__default["default"].createElement("velt-recording-preview-steps-dialog-video-player-wireframe", __assign({}, transformedProps), children));
4669
4670
  };
4670
4671
 
4672
+ var VeltRecordingPreviewStepsDialogScreenPlayerWireframe = function (props) {
4673
+ var children = props.children, remainingProps = __rest(props, ["children"]);
4674
+ var transformedProps = transformWireframeProps(remainingProps);
4675
+ return (React__default["default"].createElement("velt-recording-preview-steps-dialog-screen-player-wireframe", __assign({}, transformedProps), children));
4676
+ };
4677
+
4671
4678
  var VeltRecordingPreviewStepsDialogVideoWireframe = function (props) {
4672
4679
  var children = props.children, remainingProps = __rest(props, ["children"]);
4673
4680
  var transformedProps = transformWireframeProps(remainingProps);
@@ -4685,6 +4692,7 @@ VeltRecordingPreviewStepsDialogVideoWireframe.StartRecording = VeltRecordingPrev
4685
4692
  VeltRecordingPreviewStepsDialogVideoWireframe.Timer = VeltRecordingPreviewStepsDialogTimerWireframe;
4686
4693
  VeltRecordingPreviewStepsDialogVideoWireframe.VideoPlayer = VeltRecordingPreviewStepsDialogVideoPlayerWireframe;
4687
4694
  VeltRecordingPreviewStepsDialogVideoWireframe.Waveform = VeltRecordingPreviewStepsDialogWaveformWireframe;
4695
+ VeltRecordingPreviewStepsDialogVideoWireframe.ScreenPlayer = VeltRecordingPreviewStepsDialogScreenPlayerWireframe;
4688
4696
 
4689
4697
  var VeltRecordingPreviewStepsDialogWireframe = function (props) {
4690
4698
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -4756,6 +4764,12 @@ var VeltRecorderControlPanelActionBarTypeIconWireframe = function (props) {
4756
4764
  return (React__default["default"].createElement("velt-recorder-control-panel-action-bar-type-icon-wireframe", __assign({}, transformedProps), children));
4757
4765
  };
4758
4766
 
4767
+ var VeltRecorderControlPanelActionBarPipWireframe = function (props) {
4768
+ var children = props.children, remainingProps = __rest(props, ["children"]);
4769
+ var transformedProps = transformWireframeProps(remainingProps);
4770
+ return (React__default["default"].createElement("velt-recorder-control-panel-action-bar-pip-wireframe", __assign({}, transformedProps), children));
4771
+ };
4772
+
4759
4773
  var VeltRecorderControlPanelActionBarWireframe = function (props) {
4760
4774
  var children = props.children, remainingProps = __rest(props, ["children"]);
4761
4775
  var transformedProps = transformWireframeProps(remainingProps);
@@ -4767,6 +4781,7 @@ VeltRecorderControlPanelActionBarWireframe.Time = VeltRecorderControlPanelAction
4767
4781
  VeltRecorderControlPanelActionBarWireframe.Toggle = VeltRecorderControlPanelActionBarToggleWireframe;
4768
4782
  VeltRecorderControlPanelActionBarWireframe.TypeIcon = VeltRecorderControlPanelActionBarTypeIconWireframe;
4769
4783
  VeltRecorderControlPanelActionBarWireframe.Waveform = VeltRecorderControlPanelActionBarWaveformWireframe;
4784
+ VeltRecorderControlPanelActionBarWireframe.Pip = VeltRecorderControlPanelActionBarPipWireframe;
4770
4785
 
4771
4786
  var VeltRecorderControlPanelCollapsedButtonOffWireframe = function (props) {
4772
4787
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -6803,7 +6818,14 @@ function useVeltEventCallback(action) {
6803
6818
  subscriptionRef.current.unsubscribe();
6804
6819
  }
6805
6820
  var subscription = (_a = client === null || client === void 0 ? void 0 : client.on(memoizedAction)) === null || _a === void 0 ? void 0 : _a.subscribe(function (data) {
6806
- setData(data);
6821
+ if (memoizedAction === 'initUpdate') {
6822
+ reactDom.flushSync(function () {
6823
+ setData(data);
6824
+ });
6825
+ }
6826
+ else {
6827
+ setData(data);
6828
+ }
6807
6829
  });
6808
6830
  // Store the new subscription
6809
6831
  subscriptionRef.current = subscription;