@myinterview/widget-react 1.1.23-development-7aa7a6d → 1.1.23-development-d71d851
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/components/CountDown.d.ts +2 -2
- package/dist/cjs/components/Counter.d.ts +2 -2
- package/dist/cjs/components/DeviceSelector.d.ts +1 -1
- package/dist/cjs/index.js +10 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/CountDown.d.ts +2 -2
- package/dist/esm/components/Counter.d.ts +2 -2
- package/dist/esm/components/DeviceSelector.d.ts +1 -1
- package/dist/esm/index.js +10 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface CountDownProps {
|
|
3
3
|
countDown: number;
|
|
4
4
|
forceMobileCounter?: boolean;
|
|
5
5
|
numberOfSecondsToHighlight?: number;
|
|
6
6
|
}
|
|
7
|
-
export declare const CountDown: ({ countDown, forceMobileCounter, numberOfSecondsToHighlight }: CountDownProps) => JSX.Element;
|
|
7
|
+
export declare const CountDown: ({ countDown, forceMobileCounter, numberOfSecondsToHighlight }: CountDownProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface CounterProps {
|
|
3
3
|
counter: number;
|
|
4
4
|
limit: number;
|
|
5
5
|
isRecording: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const Counter: ({ counter, limit, isRecording }: CounterProps) => JSX.Element;
|
|
7
|
+
export declare const Counter: ({ counter, limit, isRecording }: CounterProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -9,4 +9,4 @@ export interface IDeviceSelectorProps {
|
|
|
9
9
|
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
10
10
|
recordWithoutVideo?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, myinterviewRef, recordWithoutVideo, }: IDeviceSelectorProps) => JSX.Element;
|
|
12
|
+
export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, myinterviewRef, recordWithoutVideo, }: IDeviceSelectorProps) => React.JSX.Element;
|
package/dist/esm/index.js
CHANGED
|
@@ -30328,7 +30328,12 @@ const DEVICE = {
|
|
|
30328
30328
|
PLATFORM: PLATFORMS_OPTIONS.find((p) => { var _a, _b; return (_b = (_a = platform.os) === null || _a === void 0 ? void 0 : _a.family) === null || _b === void 0 ? void 0 : _b.toUpperCase().includes(p === 'MACBOOK' ? 'OS X' : p); }) || 'WINDOWS',
|
|
30329
30329
|
BROWSER: BROWSERS_OPTIONS.find((b) => { var _a; return (_a = platform.name) === null || _a === void 0 ? void 0 : _a.toUpperCase().includes(b); }) || 'CHROME',
|
|
30330
30330
|
};
|
|
30331
|
-
const isPortrait = () =>
|
|
30331
|
+
const isPortrait = () => {
|
|
30332
|
+
if (typeof window.matchMedia !== 'undefined') {
|
|
30333
|
+
return window.matchMedia('(orientation: portrait)').matches;
|
|
30334
|
+
}
|
|
30335
|
+
return window.innerHeight > window.innerWidth;
|
|
30336
|
+
};
|
|
30332
30337
|
const iPhoneModels = [
|
|
30333
30338
|
{ pixelRatio: 2, width: 640, height: 1136, model: 'iPhone SE (1st generation)' },
|
|
30334
30339
|
{ pixelRatio: 2, width: 750, height: 1334, model: 'iPhone SE (2nd generation)/6/6S/7/8' },
|
|
@@ -43479,7 +43484,9 @@ var AsapAction = (function (_super) {
|
|
|
43479
43484
|
var actions = scheduler.actions;
|
|
43480
43485
|
if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
|
|
43481
43486
|
immediateProvider.clearImmediate(id);
|
|
43482
|
-
scheduler._scheduled
|
|
43487
|
+
if (scheduler._scheduled === id) {
|
|
43488
|
+
scheduler._scheduled = undefined;
|
|
43489
|
+
}
|
|
43483
43490
|
}
|
|
43484
43491
|
return undefined;
|
|
43485
43492
|
};
|
|
@@ -44300,7 +44307,7 @@ const recorderMachineV2 = createMachine({
|
|
|
44300
44307
|
audio: {
|
|
44301
44308
|
deviceId: audioDeviceId ? { exact: audioDeviceId } : undefined,
|
|
44302
44309
|
},
|
|
44303
|
-
video: isVideoOff() ? false : Object.assign(Object.assign({}, context.constraint.video), {
|
|
44310
|
+
video: isVideoOff() ? false : Object.assign(Object.assign({}, context.constraint.video), { facingMode: context.facingMode, aspectRatio: 4 / 3 }),
|
|
44304
44311
|
};
|
|
44305
44312
|
const desktopConstraints = {
|
|
44306
44313
|
audio: {
|