@veltdev/react 4.4.0-beta.2 → 4.4.0-beta.4
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 +135 -42
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltLiveStateSyncPanel/VeltLiveStateSyncPanel.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanel/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelAcceptRequestWireframe/VeltLiveStateSyncPanelAcceptRequestWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelAcceptRequestWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCancelRequestWireframe/VeltLiveStateSyncPanelCancelRequestWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCancelRequestWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCountdownWireframe/VeltLiveStateSyncPanelCountdownWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCountdownWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditHereWireframe/VeltLiveStateSyncPanelEditHereWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditHereWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditorTextWireframe/VeltLiveStateSyncPanelEditorTextWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditorTextWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelReaderTextWireframe/VeltLiveStateSyncPanelReaderTextWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelReaderTextWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRejectRequestWireframe/VeltLiveStateSyncPanelRejectRequestWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRejectRequestWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRequestAccessWireframe/VeltLiveStateSyncPanelRequestAccessWireframe.d.ts +8 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRequestAccessWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelWireframe.d.ts +24 -0
- package/cjs/types/components/VeltLiveStateSyncPanelWireframe/index.d.ts +1 -0
- package/cjs/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarToggleWireframe/VeltRecorderControlPanelActionBarToggleWireframe.d.ts +2 -1
- package/cjs/types/components/index.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/LiveStateSyncElement.d.ts +2 -2
- package/esm/index.js +134 -43
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltLiveStateSyncPanel/VeltLiveStateSyncPanel.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanel/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelAcceptRequestWireframe/VeltLiveStateSyncPanelAcceptRequestWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelAcceptRequestWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCancelRequestWireframe/VeltLiveStateSyncPanelCancelRequestWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCancelRequestWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCountdownWireframe/VeltLiveStateSyncPanelCountdownWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelCountdownWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditHereWireframe/VeltLiveStateSyncPanelEditHereWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditHereWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditorTextWireframe/VeltLiveStateSyncPanelEditorTextWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelEditorTextWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelReaderTextWireframe/VeltLiveStateSyncPanelReaderTextWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelReaderTextWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRejectRequestWireframe/VeltLiveStateSyncPanelRejectRequestWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRejectRequestWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRequestAccessWireframe/VeltLiveStateSyncPanelRequestAccessWireframe.d.ts +8 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelRequestAccessWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/VeltLiveStateSyncPanelWireframe.d.ts +24 -0
- package/esm/types/components/VeltLiveStateSyncPanelWireframe/index.d.ts +1 -0
- package/esm/types/components/VeltRecorderControlPanelWireframe/VeltRecorderControlPanelActionBarWireframe/VeltRecorderControlPanelActionBarToggleWireframe/VeltRecorderControlPanelActionBarToggleWireframe.d.ts +2 -1
- package/esm/types/components/index.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/LiveStateSyncElement.d.ts +2 -2
- package/index.d.ts +70 -4
- 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.4.0-beta.
|
|
143
|
+
var VELT_SDK_VERSION = '4.4.0-beta.4';
|
|
144
144
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
145
145
|
var VELT_TAB_ID = 'veltTabId';
|
|
146
146
|
|
|
@@ -1483,6 +1483,12 @@ var VeltCommentComposer = function (props) {
|
|
|
1483
1483
|
return (React__default["default"].createElement("velt-comment-composer", { variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
1484
1484
|
};
|
|
1485
1485
|
|
|
1486
|
+
var VeltLiveStateSyncPanel = function (props) {
|
|
1487
|
+
var children = props.children, shadowDom = props.shadowDom, variant = props.variant, darkMode = props.darkMode;
|
|
1488
|
+
var ref = React.useRef();
|
|
1489
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel", { ref: ref, variant: variant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1486
1492
|
var VeltWireframe = function (props) {
|
|
1487
1493
|
var children = props.children;
|
|
1488
1494
|
return (React__default["default"].createElement("velt-wireframe", { style: { display: 'none' } }, children));
|
|
@@ -4439,12 +4445,18 @@ var VeltRecorderControlPanelActionBarTogglePlayWireframe = function (props) {
|
|
|
4439
4445
|
return (React__default["default"].createElement("velt-recorder-control-panel-action-bar-toggle-play-wireframe", __assign({}, transformedProps), children));
|
|
4440
4446
|
};
|
|
4441
4447
|
|
|
4448
|
+
var VeltRecorderControlPanelActionBarTogglePauseWireframe = function (props) {
|
|
4449
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
4450
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
4451
|
+
return (React__default["default"].createElement("velt-recorder-control-panel-action-bar-toggle-pause-wireframe", __assign({}, transformedProps), children));
|
|
4452
|
+
};
|
|
4453
|
+
|
|
4442
4454
|
var VeltRecorderControlPanelActionBarToggleWireframe = function (props) {
|
|
4443
4455
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
4444
4456
|
var transformedProps = transformWireframeProps(remainingProps);
|
|
4445
4457
|
return (React__default["default"].createElement("velt-recorder-control-panel-action-bar-toggle-wireframe", __assign({}, transformedProps), children));
|
|
4446
4458
|
};
|
|
4447
|
-
VeltRecorderControlPanelActionBarToggleWireframe.Pause =
|
|
4459
|
+
VeltRecorderControlPanelActionBarToggleWireframe.Pause = VeltRecorderControlPanelActionBarTogglePauseWireframe;
|
|
4448
4460
|
VeltRecorderControlPanelActionBarToggleWireframe.Play = VeltRecorderControlPanelActionBarTogglePlayWireframe;
|
|
4449
4461
|
|
|
4450
4462
|
var VeltRecorderControlPanelActionBarTypeIconWireframe = function (props) {
|
|
@@ -5177,6 +5189,68 @@ var VeltButtonWireframe = function (props) {
|
|
|
5177
5189
|
return (React__default["default"].createElement("velt-button-wireframe", __assign({ ref: ref, id: id, disabled: [true, false].includes(disabled) ? (disabled ? 'true' : 'false') : undefined, active: [true, false].includes(active) ? (active ? 'true' : 'false') : undefined, type: type, group: group }, transformedProps), children));
|
|
5178
5190
|
};
|
|
5179
5191
|
|
|
5192
|
+
var VeltLiveStateSyncPanelRequestAccessWireframe = function (props) {
|
|
5193
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5194
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5195
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-request-access-wireframe", __assign({}, transformedProps), children));
|
|
5196
|
+
};
|
|
5197
|
+
|
|
5198
|
+
var VeltLiveStateSyncPanelRejectRequestWireframe = function (props) {
|
|
5199
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5200
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5201
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-reject-request-wireframe", __assign({}, transformedProps), children));
|
|
5202
|
+
};
|
|
5203
|
+
|
|
5204
|
+
var VeltLiveStateSyncPanelReaderTextWireframe = function (props) {
|
|
5205
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5206
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5207
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-reader-text-wireframe", __assign({}, transformedProps), children));
|
|
5208
|
+
};
|
|
5209
|
+
|
|
5210
|
+
var VeltLiveStateSyncPanelEditorTextWireframe = function (props) {
|
|
5211
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5212
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5213
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-editor-text-wireframe", __assign({}, transformedProps), children));
|
|
5214
|
+
};
|
|
5215
|
+
|
|
5216
|
+
var VeltLiveStateSyncPanelEditHereWireframe = function (props) {
|
|
5217
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5218
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5219
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-edit-here-wireframe", __assign({}, transformedProps), children));
|
|
5220
|
+
};
|
|
5221
|
+
|
|
5222
|
+
var VeltLiveStateSyncPanelCountdownWireframe = function (props) {
|
|
5223
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5224
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5225
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-countdown-wireframe", __assign({}, transformedProps), children));
|
|
5226
|
+
};
|
|
5227
|
+
|
|
5228
|
+
var VeltLiveStateSyncPanelCancelRequestWireframe = function (props) {
|
|
5229
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5230
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5231
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-cancel-request-wireframe", __assign({}, transformedProps), children));
|
|
5232
|
+
};
|
|
5233
|
+
|
|
5234
|
+
var VeltLiveStateSyncPanelAcceptRequestWireframe = function (props) {
|
|
5235
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5236
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5237
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-accept-request-wireframe", __assign({}, transformedProps), children));
|
|
5238
|
+
};
|
|
5239
|
+
|
|
5240
|
+
var VeltLiveStateSyncPanelWireframe = function (props) {
|
|
5241
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
5242
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
5243
|
+
return (React__default["default"].createElement("velt-live-state-sync-panel-wireframe", __assign({}, transformedProps), children));
|
|
5244
|
+
};
|
|
5245
|
+
VeltLiveStateSyncPanelWireframe.RequestAccess = VeltLiveStateSyncPanelRequestAccessWireframe;
|
|
5246
|
+
VeltLiveStateSyncPanelWireframe.RejectRequest = VeltLiveStateSyncPanelRejectRequestWireframe;
|
|
5247
|
+
VeltLiveStateSyncPanelWireframe.ReaderText = VeltLiveStateSyncPanelReaderTextWireframe;
|
|
5248
|
+
VeltLiveStateSyncPanelWireframe.EditorText = VeltLiveStateSyncPanelEditorTextWireframe;
|
|
5249
|
+
VeltLiveStateSyncPanelWireframe.EditHere = VeltLiveStateSyncPanelEditHereWireframe;
|
|
5250
|
+
VeltLiveStateSyncPanelWireframe.Countdown = VeltLiveStateSyncPanelCountdownWireframe;
|
|
5251
|
+
VeltLiveStateSyncPanelWireframe.CancelRequest = VeltLiveStateSyncPanelCancelRequestWireframe;
|
|
5252
|
+
VeltLiveStateSyncPanelWireframe.AcceptRequest = VeltLiveStateSyncPanelAcceptRequestWireframe;
|
|
5253
|
+
|
|
5180
5254
|
function useClient() {
|
|
5181
5255
|
var client = useVeltClient().client;
|
|
5182
5256
|
var _a = React__default["default"].useState(), veltClient = _a[0], setVeltClient = _a[1];
|
|
@@ -6142,17 +6216,17 @@ function useLiveStateData(liveStateDataId, liveStateDataConfig) {
|
|
|
6142
6216
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.getLiveStateData, inputs]);
|
|
6143
6217
|
return data;
|
|
6144
6218
|
}
|
|
6145
|
-
function useSetLiveStateData(liveStateDataId, liveStateData) {
|
|
6219
|
+
function useSetLiveStateData(liveStateDataId, liveStateData, config) {
|
|
6146
6220
|
var liveStateSyncElement = useLiveStateSyncUtils();
|
|
6147
6221
|
// Memoize inputs
|
|
6148
6222
|
var inputs = React__default["default"].useMemo(function () {
|
|
6149
|
-
return { liveStateDataId: liveStateDataId, liveStateData: liveStateData };
|
|
6150
|
-
}, [liveStateDataId, JSON.stringify(liveStateData)]);
|
|
6223
|
+
return { liveStateDataId: liveStateDataId, liveStateData: liveStateData, config: config };
|
|
6224
|
+
}, [liveStateDataId, JSON.stringify(liveStateData), JSON.stringify(config)]);
|
|
6151
6225
|
React__default["default"].useEffect(function () {
|
|
6152
6226
|
if (!(liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.setLiveStateData))
|
|
6153
6227
|
return;
|
|
6154
6228
|
if (inputs.liveStateDataId && inputs.liveStateData) {
|
|
6155
|
-
liveStateSyncElement.setLiveStateData(inputs.liveStateDataId, inputs.liveStateData);
|
|
6229
|
+
liveStateSyncElement.setLiveStateData(inputs.liveStateDataId, inputs.liveStateData, inputs.config);
|
|
6156
6230
|
}
|
|
6157
6231
|
}, [liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.setLiveStateData, inputs]);
|
|
6158
6232
|
}
|
|
@@ -6710,39 +6784,55 @@ var createLiveStateMiddleware = function (config) {
|
|
|
6710
6784
|
var isSdkInitialized = false;
|
|
6711
6785
|
var setupGetDataSubscription = function () {
|
|
6712
6786
|
var _a, _b;
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6787
|
+
try {
|
|
6788
|
+
if (!dataSubscription && window.Velt && ((_a = window.Velt) === null || _a === void 0 ? void 0 : _a.getLiveStateSyncElement)) {
|
|
6789
|
+
var liveStateSyncElement = (_b = window.Velt) === null || _b === void 0 ? void 0 : _b.getLiveStateSyncElement();
|
|
6790
|
+
dataSubscription = liveStateSyncElement === null || liveStateSyncElement === void 0 ? void 0 : liveStateSyncElement.getLiveStateData(liveStateDataId).subscribe(function (data) {
|
|
6791
|
+
// Dispatch action to update local state, marking it as remote
|
|
6792
|
+
if (data) {
|
|
6793
|
+
var sessionId_1 = getSessionId();
|
|
6794
|
+
if (data.id === sessionId_1) {
|
|
6795
|
+
return;
|
|
6796
|
+
}
|
|
6797
|
+
else {
|
|
6798
|
+
internalStore === null || internalStore === void 0 ? void 0 : internalStore.dispatch(__assign(__assign({}, data.action), { isRemote: true }));
|
|
6799
|
+
}
|
|
6724
6800
|
}
|
|
6725
|
-
}
|
|
6726
|
-
}
|
|
6801
|
+
});
|
|
6802
|
+
}
|
|
6803
|
+
}
|
|
6804
|
+
catch (err) {
|
|
6727
6805
|
}
|
|
6728
6806
|
};
|
|
6729
6807
|
var updateLiveStateDataId = function (newId) {
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
dataSubscription
|
|
6733
|
-
|
|
6808
|
+
try {
|
|
6809
|
+
liveStateDataId = newId || VELT_DEFAULT_LIVE_STATE_ID;
|
|
6810
|
+
if (dataSubscription) {
|
|
6811
|
+
dataSubscription.unsubscribe();
|
|
6812
|
+
dataSubscription = null;
|
|
6813
|
+
}
|
|
6814
|
+
if (isSdkInitialized) {
|
|
6815
|
+
setupGetDataSubscription();
|
|
6816
|
+
}
|
|
6734
6817
|
}
|
|
6735
|
-
|
|
6736
|
-
|
|
6818
|
+
catch (err) {
|
|
6819
|
+
// handle error
|
|
6737
6820
|
}
|
|
6738
6821
|
};
|
|
6739
6822
|
var middleware = function (store) {
|
|
6740
6823
|
internalStore = store;
|
|
6741
6824
|
var veltSdkInitializedListener = function () {
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6825
|
+
try {
|
|
6826
|
+
if (window.Velt) {
|
|
6827
|
+
isSdkInitialized = true;
|
|
6828
|
+
setupGetDataSubscription();
|
|
6829
|
+
// Remove the event listener after it's triggered
|
|
6830
|
+
window.removeEventListener(VELT_SDK_INIT_EVENT, veltSdkInitializedListener);
|
|
6831
|
+
}
|
|
6832
|
+
}
|
|
6833
|
+
catch (err) {
|
|
6834
|
+
// handle error
|
|
6835
|
+
}
|
|
6746
6836
|
};
|
|
6747
6837
|
// Add the event listener for the veltSdkInitialized event
|
|
6748
6838
|
window.addEventListener(VELT_SDK_INIT_EVENT, veltSdkInitializedListener);
|
|
@@ -6762,20 +6852,21 @@ var createLiveStateMiddleware = function (config) {
|
|
|
6762
6852
|
};
|
|
6763
6853
|
};
|
|
6764
6854
|
var logLiveState = function (action, liveStateDataId) {
|
|
6765
|
-
var _a;
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
liveStateElement.setLiveStateData
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6855
|
+
var _a, _b;
|
|
6856
|
+
try {
|
|
6857
|
+
if (window.Velt && ((_a = window === null || window === void 0 ? void 0 : window.Velt) === null || _a === void 0 ? void 0 : _a.getLiveStateSyncElement)) {
|
|
6858
|
+
var sessionId_2 = getSessionId();
|
|
6859
|
+
var liveStateElement = (_b = window === null || window === void 0 ? void 0 : window.Velt) === null || _b === void 0 ? void 0 : _b.getLiveStateSyncElement();
|
|
6860
|
+
if (liveStateElement === null || liveStateElement === void 0 ? void 0 : liveStateElement.setLiveStateData) {
|
|
6861
|
+
liveStateElement.setLiveStateData(liveStateDataId, {
|
|
6862
|
+
id: sessionId_2,
|
|
6863
|
+
action: action
|
|
6864
|
+
});
|
|
6865
|
+
}
|
|
6774
6866
|
}
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
});
|
|
6867
|
+
}
|
|
6868
|
+
catch (err) {
|
|
6869
|
+
// handle error
|
|
6779
6870
|
}
|
|
6780
6871
|
};
|
|
6781
6872
|
|
|
@@ -6824,6 +6915,8 @@ exports.VeltInlineCommentsSection = VeltInlineCommentsSection;
|
|
|
6824
6915
|
exports.VeltInlineCommentsSectionWireframe = VeltInlineCommentsSectionWireframe;
|
|
6825
6916
|
exports.VeltInlineReactionsSection = VeltInlineReactionsSection;
|
|
6826
6917
|
exports.VeltInlineReactionsSectionWireframe = VeltInlineReactionsSectionWireframe;
|
|
6918
|
+
exports.VeltLiveStateSyncPanel = VeltLiveStateSyncPanel;
|
|
6919
|
+
exports.VeltLiveStateSyncPanelWireframe = VeltLiveStateSyncPanelWireframe;
|
|
6827
6920
|
exports.VeltMediaSourceSettingsWireframe = VeltMediaSourceSettingsWireframe;
|
|
6828
6921
|
exports.VeltMultiThreadCommentDialogWireframe = VeltMultiThreadCommentDialogWireframe;
|
|
6829
6922
|
exports.VeltNivoChartComments = VeltNivoChartComments;
|