@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/exporters/index.js
CHANGED
|
@@ -9978,7 +9978,7 @@ const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000;
|
|
|
9978
9978
|
const SESSION_RESPONSE = 'multiplayer-debug-session-response';
|
|
9979
9979
|
const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
9980
9980
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
9981
|
-
const PACKAGE_VERSION_EXPORT = "1.2.
|
|
9981
|
+
const PACKAGE_VERSION_EXPORT = "1.2.32" || 0;
|
|
9982
9982
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
9983
9983
|
const OTEL_IGNORE_URLS = [
|
|
9984
9984
|
// Traces endpoint
|
package/dist/index.js
CHANGED
|
@@ -24143,7 +24143,7 @@ const DEFAULT_MAX_HTTP_CAPTURING_PAYLOAD_SIZE = 100000;
|
|
|
24143
24143
|
const SESSION_RESPONSE = 'multiplayer-debug-session-response';
|
|
24144
24144
|
const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
|
|
24145
24145
|
const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
|
|
24146
|
-
const PACKAGE_VERSION_EXPORT = "1.2.
|
|
24146
|
+
const PACKAGE_VERSION_EXPORT = "1.2.32" || 0;
|
|
24147
24147
|
// Regex patterns for OpenTelemetry ignore URLs
|
|
24148
24148
|
const OTEL_IGNORE_URLS = [
|
|
24149
24149
|
// Traces endpoint
|
|
@@ -27309,13 +27309,13 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27309
27309
|
this._isStarted = false;
|
|
27310
27310
|
this._isPaused = false;
|
|
27311
27311
|
this._isInitialized = false;
|
|
27312
|
-
this._error = '';
|
|
27313
27312
|
this._recorderPlacement = '';
|
|
27314
|
-
this.
|
|
27313
|
+
this._error = '';
|
|
27315
27314
|
this._initialPopoverVisible = false;
|
|
27315
|
+
this._finalPopoverVisible = false;
|
|
27316
|
+
this._buttonState = _buttonStateConfigs__WEBPACK_IMPORTED_MODULE_6__.ButtonState.IDLE;
|
|
27316
27317
|
this._continuousRecording = false;
|
|
27317
27318
|
this._showContinuousRecording = true;
|
|
27318
|
-
this._buttonState = _buttonStateConfigs__WEBPACK_IMPORTED_MODULE_6__.ButtonState.IDLE;
|
|
27319
27319
|
this._widgetTextOverrides = _config__WEBPACK_IMPORTED_MODULE_4__.DEFAULT_WIDGET_TEXT_CONFIG;
|
|
27320
27320
|
this.commentTextarea = null;
|
|
27321
27321
|
this.dragManager = null;
|
|
@@ -27341,6 +27341,21 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27341
27341
|
}
|
|
27342
27342
|
}
|
|
27343
27343
|
};
|
|
27344
|
+
this.recorderButton = document.createElement('button');
|
|
27345
|
+
this.initialPopover = document.createElement('div');
|
|
27346
|
+
this.finalPopover = document.createElement('div');
|
|
27347
|
+
this.overlay = document.createElement('div');
|
|
27348
|
+
this.toast = document.createElement('div');
|
|
27349
|
+
this.submitSessionDialog = document.createElement('div');
|
|
27350
|
+
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);
|
|
27351
|
+
this.uiManager.setRecorderButtonProps();
|
|
27352
|
+
this.uiManager.setInitialPopoverProps();
|
|
27353
|
+
this.uiManager.setFinalPopoverProps();
|
|
27354
|
+
this.uiManager.setOverlayProps();
|
|
27355
|
+
this.uiManager.setSubmitSessionDialogProps();
|
|
27356
|
+
this.uiManager.setToastProps();
|
|
27357
|
+
this.commentTextarea = this.finalPopover.querySelector('.mp-session-debugger-popover-textarea');
|
|
27358
|
+
this.observeButtonDraggableMode();
|
|
27344
27359
|
}
|
|
27345
27360
|
updateState(state, continuousRecording) {
|
|
27346
27361
|
this._continuousRecording = continuousRecording;
|
|
@@ -27411,32 +27426,9 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27411
27426
|
}
|
|
27412
27427
|
});
|
|
27413
27428
|
}
|
|
27414
|
-
initUiManager() {
|
|
27415
|
-
this.recorderButton = document.createElement('button');
|
|
27416
|
-
this.initialPopover = document.createElement('div');
|
|
27417
|
-
this.finalPopover = document.createElement('div');
|
|
27418
|
-
this.overlay = document.createElement('div');
|
|
27419
|
-
this.toast = document.createElement('div');
|
|
27420
|
-
this.submitSessionDialog = document.createElement('div');
|
|
27421
|
-
// Recreate UIManager with proper config
|
|
27422
|
-
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);
|
|
27423
|
-
// Re-initialize templates with new config
|
|
27424
|
-
this.uiManager.setRecorderButtonProps();
|
|
27425
|
-
this.uiManager.setInitialPopoverProps();
|
|
27426
|
-
this.uiManager.setFinalPopoverProps();
|
|
27427
|
-
this.uiManager.setOverlayProps();
|
|
27428
|
-
this.uiManager.setSubmitSessionDialogProps();
|
|
27429
|
-
this.uiManager.setToastProps();
|
|
27430
|
-
this.commentTextarea = this.finalPopover.querySelector('.mp-session-debugger-popover-textarea');
|
|
27431
|
-
this.observeButtonDraggableMode();
|
|
27432
|
-
}
|
|
27433
27429
|
init(options) {
|
|
27434
27430
|
if (this._isInitialized)
|
|
27435
27431
|
return;
|
|
27436
|
-
// Safety guard: avoid DOM access in SSR/non-browser environments
|
|
27437
|
-
if (typeof document === 'undefined') {
|
|
27438
|
-
return;
|
|
27439
|
-
}
|
|
27440
27432
|
this._isInitialized = true;
|
|
27441
27433
|
this.showRecorderButton = options.showWidget;
|
|
27442
27434
|
this._showContinuousRecording = options.showContinuousRecording;
|
|
@@ -27444,7 +27436,15 @@ class SessionWidget extends lib0_observable__WEBPACK_IMPORTED_MODULE_7__.Observa
|
|
|
27444
27436
|
...this._widgetTextOverrides,
|
|
27445
27437
|
...options.widgetTextOverrides,
|
|
27446
27438
|
};
|
|
27447
|
-
|
|
27439
|
+
// Recreate UIManager with proper config
|
|
27440
|
+
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);
|
|
27441
|
+
// Re-initialize templates with new config
|
|
27442
|
+
this.uiManager.setRecorderButtonProps();
|
|
27443
|
+
this.uiManager.setInitialPopoverProps();
|
|
27444
|
+
this.uiManager.setFinalPopoverProps();
|
|
27445
|
+
this.uiManager.setOverlayProps();
|
|
27446
|
+
this.uiManager.setSubmitSessionDialogProps();
|
|
27447
|
+
this.uiManager.setToastProps();
|
|
27448
27448
|
const elements = [this.toast];
|
|
27449
27449
|
if (options.showWidget) {
|
|
27450
27450
|
elements.push(this.recorderButton, this.initialPopover, this.finalPopover, this.submitSessionDialog);
|