@myinterview/widget-react 1.0.56-experimental-8647f49-4c92db4 → 1.0.57-ada6b21
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/dist/cjs/index.js +1 -36
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/microphoneInterface.d.ts +0 -1
- package/dist/cjs/utils/sentry.utils.d.ts +0 -2
- package/dist/esm/index.js +1 -36
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/microphoneInterface.d.ts +0 -1
- package/dist/esm/utils/sentry.utils.d.ts +0 -2
- package/package.json +23 -23
package/dist/cjs/index.js
CHANGED
|
@@ -32072,16 +32072,6 @@ const SentryTrackingFn = (event, context, name, level) => {
|
|
|
32072
32072
|
SentryHub.captureMessage(name, level);
|
|
32073
32073
|
});
|
|
32074
32074
|
};
|
|
32075
|
-
const SentryBreadcrumb = ({ type, level, event_id, category, message, data }) => {
|
|
32076
|
-
SentryHub.addBreadcrumb({
|
|
32077
|
-
type,
|
|
32078
|
-
level,
|
|
32079
|
-
event_id,
|
|
32080
|
-
category,
|
|
32081
|
-
message,
|
|
32082
|
-
data,
|
|
32083
|
-
});
|
|
32084
|
-
};
|
|
32085
32075
|
|
|
32086
32076
|
const PlayIcon = ({ playing }) => (React__default["default"].createElement("div", { className: "myinterview-widget-icons__play-button" },
|
|
32087
32077
|
React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", fill: "currentColor", viewBox: "0 0 50 50" },
|
|
@@ -43244,7 +43234,6 @@ var STATES$3;
|
|
|
43244
43234
|
})(STATES$3 || (STATES$3 = {}));
|
|
43245
43235
|
var ACTIONS$3;
|
|
43246
43236
|
(function (ACTIONS) {
|
|
43247
|
-
ACTIONS["COLLECT_BREADCRUMB"] = "collectBreadcrumb";
|
|
43248
43237
|
ACTIONS["INIT_WEB_WORKER"] = "initWebWorker";
|
|
43249
43238
|
ACTIONS["CONSOLE_LOG"] = "consoleLog";
|
|
43250
43239
|
ACTIONS["SET_MEDIA_STREAM"] = "setMediaStream";
|
|
@@ -43406,7 +43395,7 @@ const microphoneMachine = createMachine({
|
|
|
43406
43395
|
},
|
|
43407
43396
|
},
|
|
43408
43397
|
[STATES$3.NOT_RECEIVING_DATA]: {
|
|
43409
|
-
entry: [
|
|
43398
|
+
entry: [
|
|
43410
43399
|
sendParent((context, event) => ({
|
|
43411
43400
|
data: recorderErrors.NoSoundError,
|
|
43412
43401
|
type: EVENTS$5.RECORDER_DEVICE_ERROR,
|
|
@@ -43437,22 +43426,6 @@ const microphoneMachine = createMachine({
|
|
|
43437
43426
|
},
|
|
43438
43427
|
}, {
|
|
43439
43428
|
actions: {
|
|
43440
|
-
[ACTIONS$3.COLLECT_BREADCRUMB]: (context) => {
|
|
43441
|
-
var _a, _b, _c;
|
|
43442
|
-
SentryBreadcrumb({
|
|
43443
|
-
type: 'debug',
|
|
43444
|
-
level: 'warning',
|
|
43445
|
-
category: 'mic',
|
|
43446
|
-
message: 'mic is inactive, this is the status of audioTrack',
|
|
43447
|
-
data: {
|
|
43448
|
-
audioTrack: {
|
|
43449
|
-
enabled: (_a = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _a === void 0 ? void 0 : _a.getAudioTracks()[0].enabled,
|
|
43450
|
-
label: (_b = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _b === void 0 ? void 0 : _b.getAudioTracks()[0].label,
|
|
43451
|
-
muted: (_c = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _c === void 0 ? void 0 : _c.getAudioTracks()[0].muted,
|
|
43452
|
-
},
|
|
43453
|
-
},
|
|
43454
|
-
});
|
|
43455
|
-
},
|
|
43456
43429
|
[ACTIONS$3.INIT_WEB_WORKER]: assign({
|
|
43457
43430
|
webWorker: (context, _event) => (context.mediaStream ? new Builder(Worker$1) : null),
|
|
43458
43431
|
}),
|
|
@@ -43517,14 +43490,6 @@ const microphoneMachine = createMachine({
|
|
|
43517
43490
|
};
|
|
43518
43491
|
}
|
|
43519
43492
|
getVolume(0);
|
|
43520
|
-
ctx.onstatechange = () => {
|
|
43521
|
-
var _a, _b;
|
|
43522
|
-
if (ctx.state === 'suspended') {
|
|
43523
|
-
SentryTrackingFn({ type: 'status === suspended', data: ctx.state }, { label: (_a = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _a === void 0 ? void 0 : _a.getAudioTracks()[0].label,
|
|
43524
|
-
muted: (_b = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _b === void 0 ? void 0 : _b.getAudioTracks()[0].muted,
|
|
43525
|
-
status: ctx.state }, 'mic onstatechange', 'fatal');
|
|
43526
|
-
}
|
|
43527
|
-
};
|
|
43528
43493
|
return () => {
|
|
43529
43494
|
var _a;
|
|
43530
43495
|
mic = null;
|