@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
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as Sentry from '@sentry/browser';
|
|
2
2
|
import { DoneInvokeEvent } from 'xstate';
|
|
3
|
-
import { Breadcrumb } from '@sentry/types';
|
|
4
3
|
export declare const SentryHub: Sentry.Hub;
|
|
5
4
|
export declare const SentryTrackingFn: (event: DoneInvokeEvent<any>, context: any, name: string, level: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug') => void;
|
|
6
|
-
export declare const SentryBreadcrumb: ({ type, level, event_id, category, message, data }: Breadcrumb) => void;
|
package/dist/esm/index.js
CHANGED
|
@@ -32046,16 +32046,6 @@ const SentryTrackingFn = (event, context, name, level) => {
|
|
|
32046
32046
|
SentryHub.captureMessage(name, level);
|
|
32047
32047
|
});
|
|
32048
32048
|
};
|
|
32049
|
-
const SentryBreadcrumb = ({ type, level, event_id, category, message, data }) => {
|
|
32050
|
-
SentryHub.addBreadcrumb({
|
|
32051
|
-
type,
|
|
32052
|
-
level,
|
|
32053
|
-
event_id,
|
|
32054
|
-
category,
|
|
32055
|
-
message,
|
|
32056
|
-
data,
|
|
32057
|
-
});
|
|
32058
|
-
};
|
|
32059
32049
|
|
|
32060
32050
|
const PlayIcon = ({ playing }) => (React__default.createElement("div", { className: "myinterview-widget-icons__play-button" },
|
|
32061
32051
|
React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", fill: "currentColor", viewBox: "0 0 50 50" },
|
|
@@ -43218,7 +43208,6 @@ var STATES$3;
|
|
|
43218
43208
|
})(STATES$3 || (STATES$3 = {}));
|
|
43219
43209
|
var ACTIONS$3;
|
|
43220
43210
|
(function (ACTIONS) {
|
|
43221
|
-
ACTIONS["COLLECT_BREADCRUMB"] = "collectBreadcrumb";
|
|
43222
43211
|
ACTIONS["INIT_WEB_WORKER"] = "initWebWorker";
|
|
43223
43212
|
ACTIONS["CONSOLE_LOG"] = "consoleLog";
|
|
43224
43213
|
ACTIONS["SET_MEDIA_STREAM"] = "setMediaStream";
|
|
@@ -43380,7 +43369,7 @@ const microphoneMachine = createMachine({
|
|
|
43380
43369
|
},
|
|
43381
43370
|
},
|
|
43382
43371
|
[STATES$3.NOT_RECEIVING_DATA]: {
|
|
43383
|
-
entry: [
|
|
43372
|
+
entry: [
|
|
43384
43373
|
sendParent((context, event) => ({
|
|
43385
43374
|
data: recorderErrors.NoSoundError,
|
|
43386
43375
|
type: EVENTS$5.RECORDER_DEVICE_ERROR,
|
|
@@ -43411,22 +43400,6 @@ const microphoneMachine = createMachine({
|
|
|
43411
43400
|
},
|
|
43412
43401
|
}, {
|
|
43413
43402
|
actions: {
|
|
43414
|
-
[ACTIONS$3.COLLECT_BREADCRUMB]: (context) => {
|
|
43415
|
-
var _a, _b, _c;
|
|
43416
|
-
SentryBreadcrumb({
|
|
43417
|
-
type: 'debug',
|
|
43418
|
-
level: 'warning',
|
|
43419
|
-
category: 'mic',
|
|
43420
|
-
message: 'mic is inactive, this is the status of audioTrack',
|
|
43421
|
-
data: {
|
|
43422
|
-
audioTrack: {
|
|
43423
|
-
enabled: (_a = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _a === void 0 ? void 0 : _a.getAudioTracks()[0].enabled,
|
|
43424
|
-
label: (_b = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _b === void 0 ? void 0 : _b.getAudioTracks()[0].label,
|
|
43425
|
-
muted: (_c = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _c === void 0 ? void 0 : _c.getAudioTracks()[0].muted,
|
|
43426
|
-
},
|
|
43427
|
-
},
|
|
43428
|
-
});
|
|
43429
|
-
},
|
|
43430
43403
|
[ACTIONS$3.INIT_WEB_WORKER]: assign({
|
|
43431
43404
|
webWorker: (context, _event) => (context.mediaStream ? new Builder(Worker$1) : null),
|
|
43432
43405
|
}),
|
|
@@ -43491,14 +43464,6 @@ const microphoneMachine = createMachine({
|
|
|
43491
43464
|
};
|
|
43492
43465
|
}
|
|
43493
43466
|
getVolume(0);
|
|
43494
|
-
ctx.onstatechange = () => {
|
|
43495
|
-
var _a, _b;
|
|
43496
|
-
if (ctx.state === 'suspended') {
|
|
43497
|
-
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,
|
|
43498
|
-
muted: (_b = context === null || context === void 0 ? void 0 : context.mediaStream) === null || _b === void 0 ? void 0 : _b.getAudioTracks()[0].muted,
|
|
43499
|
-
status: ctx.state }, 'mic onstatechange', 'fatal');
|
|
43500
|
-
}
|
|
43501
|
-
};
|
|
43502
43467
|
return () => {
|
|
43503
43468
|
var _a;
|
|
43504
43469
|
mic = null;
|