@multiplayer-app/session-recorder-browser 1.2.30 → 1.2.32
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/README.md +3 -81
- package/dist/browser/index.js +28 -28
- package/dist/browser/index.js.map +1 -1
- package/dist/exporters/index.js +1 -1
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +28 -28
- package/dist/index.umd.js.map +1 -1
- package/dist/sessionWidget/index.d.ts +11 -12
- package/dist/sessionWidget/index.d.ts.map +1 -1
- package/dist/sessionWidget/index.js +27 -27
- package/dist/sessionWidget/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -24317,7 +24317,7 @@ const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000;
|
|
|
24317
24317
|
const SESSION_RESPONSE = 'multiplayer-debug-session-response';
|
|
24318
24318
|
const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
24319
24319
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
24320
|
-
const PACKAGE_VERSION_EXPORT = "1.2.
|
|
24320
|
+
const PACKAGE_VERSION_EXPORT = "1.2.32" || 0;
|
|
24321
24321
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
24322
24322
|
const OTEL_IGNORE_URLS = [
|
|
24323
24323
|
// Traces endpoint
|
|
@@ -27509,13 +27509,13 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27509
27509
|
this._isStarted = false;
|
|
27510
27510
|
this._isPaused = false;
|
|
27511
27511
|
this._isInitialized = false;
|
|
27512
|
-
this._error = '';
|
|
27513
27512
|
this._recorderPlacement = '';
|
|
27514
|
-
this.
|
|
27513
|
+
this._error = '';
|
|
27515
27514
|
this._initialPopoverVisible = false;
|
|
27515
|
+
this._finalPopoverVisible = false;
|
|
27516
|
+
this._buttonState = _buttonStateConfigs__WEBPACK_IMPORTED_MODULE_6__.ButtonState.IDLE;
|
|
27516
27517
|
this._continuousRecording = false;
|
|
27517
27518
|
this._showContinuousRecording = true;
|
|
27518
|
-
this._buttonState = _buttonStateConfigs__WEBPACK_IMPORTED_MODULE_6__.ButtonState.IDLE;
|
|
27519
27519
|
this._widgetTextOverrides = _config__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_WIDGET_TEXT_CONFIG;
|
|
27520
27520
|
this.commentTextarea = null;
|
|
27521
27521
|
this.dragManager = null;
|
|
@@ -27541,6 +27541,21 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27541
27541
|
}
|
|
27542
27542
|
}
|
|
27543
27543
|
};
|
|
27544
|
+
this.recorderButton = document.createElement('button');
|
|
27545
|
+
this.initialPopover = document.createElement('div');
|
|
27546
|
+
this.finalPopover = document.createElement('div');
|
|
27547
|
+
this.overlay = document.createElement('div');
|
|
27548
|
+
this.toast = document.createElement('div');
|
|
27549
|
+
this.submitSessionDialog = document.createElement('div');
|
|
27550
|
+
this.uiManager = new _UIManager__WEBPACK_IMPORTED_MODULE_5__.UIManager(this.recorderButton, this.initialPopover, this.finalPopover, this.overlay, this.submitSessionDialog, this.toast, _config__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_WIDGET_TEXT_CONFIG, true);
|
|
27551
|
+
this.uiManager.setRecorderButtonProps();
|
|
27552
|
+
this.uiManager.setInitialPopoverProps();
|
|
27553
|
+
this.uiManager.setFinalPopoverProps();
|
|
27554
|
+
this.uiManager.setOverlayProps();
|
|
27555
|
+
this.uiManager.setSubmitSessionDialogProps();
|
|
27556
|
+
this.uiManager.setToastProps();
|
|
27557
|
+
this.commentTextarea = this.finalPopover.querySelector('.mp-session-debugger-popover-textarea');
|
|
27558
|
+
this.observeButtonDraggableMode();
|
|
27544
27559
|
}
|
|
27545
27560
|
updateState(state, continuousRecording) {
|
|
27546
27561
|
this._continuousRecording = continuousRecording;
|
|
@@ -27611,32 +27626,9 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27611
27626
|
}
|
|
27612
27627
|
});
|
|
27613
27628
|
}
|
|
27614
|
-
initUiManager() {
|
|
27615
|
-
this.recorderButton = document.createElement('button');
|
|
27616
|
-
this.initialPopover = document.createElement('div');
|
|
27617
|
-
this.finalPopover = document.createElement('div');
|
|
27618
|
-
this.overlay = document.createElement('div');
|
|
27619
|
-
this.toast = document.createElement('div');
|
|
27620
|
-
this.submitSessionDialog = document.createElement('div');
|
|
27621
|
-
// Recreate UIManager with proper config
|
|
27622
|
-
this.uiManager = new _UIManager__WEBPACK_IMPORTED_MODULE_5__.UIManager(this.recorderButton, this.initialPopover, this.finalPopover, this.overlay, this.submitSessionDialog, this.toast, this._widgetTextOverrides, this._showContinuousRecording);
|
|
27623
|
-
// Re-initialize templates with new config
|
|
27624
|
-
this.uiManager.setRecorderButtonProps();
|
|
27625
|
-
this.uiManager.setInitialPopoverProps();
|
|
27626
|
-
this.uiManager.setFinalPopoverProps();
|
|
27627
|
-
this.uiManager.setOverlayProps();
|
|
27628
|
-
this.uiManager.setSubmitSessionDialogProps();
|
|
27629
|
-
this.uiManager.setToastProps();
|
|
27630
|
-
this.commentTextarea = this.finalPopover.querySelector('.mp-session-debugger-popover-textarea');
|
|
27631
|
-
this.observeButtonDraggableMode();
|
|
27632
|
-
}
|
|
27633
27629
|
init(options) {
|
|
27634
27630
|
if (this._isInitialized)
|
|
27635
27631
|
return;
|
|
27636
|
-
// Safety guard: avoid DOM access in SSR/non-browser environments
|
|
27637
|
-
if (typeof document === 'undefined') {
|
|
27638
|
-
return;
|
|
27639
|
-
}
|
|
27640
27632
|
this._isInitialized = true;
|
|
27641
27633
|
this.showRecorderButton = options.showWidget;
|
|
27642
27634
|
this._showContinuousRecording = options.showContinuousRecording;
|
|
@@ -27644,7 +27636,15 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27644
27636
|
...this._widgetTextOverrides,
|
|
27645
27637
|
...options.widgetTextOverrides,
|
|
27646
27638
|
};
|
|
27647
|
-
|
|
27639
|
+
// Recreate UIManager with proper config
|
|
27640
|
+
this.uiManager = new _UIManager__WEBPACK_IMPORTED_MODULE_5__.UIManager(this.recorderButton, this.initialPopover, this.finalPopover, this.overlay, this.submitSessionDialog, this.toast, this._widgetTextOverrides, this._showContinuousRecording);
|
|
27641
|
+
// Re-initialize templates with new config
|
|
27642
|
+
this.uiManager.setRecorderButtonProps();
|
|
27643
|
+
this.uiManager.setInitialPopoverProps();
|
|
27644
|
+
this.uiManager.setFinalPopoverProps();
|
|
27645
|
+
this.uiManager.setOverlayProps();
|
|
27646
|
+
this.uiManager.setSubmitSessionDialogProps();
|
|
27647
|
+
this.uiManager.setToastProps();
|
|
27648
27648
|
const elements = [this.toast];
|
|
27649
27649
|
if (options.showWidget) {
|
|
27650
27650
|
elements.push(this.recorderButton, this.initialPopover, this.finalPopover, this.submitSessionDialog);
|