videomail-client 13.4.0 → 13.4.1
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.cjs +15 -6
- package/dist/esm/index.js +15 -6
- package/dist/umd/index.js +15 -6
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -10664,7 +10664,7 @@ var __webpack_exports__ = {};
|
|
|
10664
10664
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10665
10665
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10666
10666
|
var package_namespaceObject = {
|
|
10667
|
-
rE: "13.4.
|
|
10667
|
+
rE: "13.4.1"
|
|
10668
10668
|
};
|
|
10669
10669
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10670
10670
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -16190,7 +16190,9 @@ var __webpack_exports__ = {};
|
|
|
16190
16190
|
heightDimension = this.visuals.getRecorderHeight(true);
|
|
16191
16191
|
}
|
|
16192
16192
|
if (widthDimension) this.notifyElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
16193
|
+
else this.notifyElement.style.removeProperty("width");
|
|
16193
16194
|
if (heightDimension) this.notifyElement.style.height = `${heightDimension.value}${heightDimension.unit}`;
|
|
16195
|
+
else this.notifyElement.style.removeProperty("height");
|
|
16194
16196
|
}
|
|
16195
16197
|
}
|
|
16196
16198
|
show() {
|
|
@@ -17696,15 +17698,19 @@ var __webpack_exports__ = {};
|
|
|
17696
17698
|
correctDimensions() {
|
|
17697
17699
|
if (!this.recorderElement) return;
|
|
17698
17700
|
const widthDimension = dimensions_useFullWidth(this.options.video.mobileBreakPoint);
|
|
17699
|
-
if (this.options.video.stretch || widthDimension)
|
|
17700
|
-
|
|
17701
|
+
if (this.options.video.stretch || widthDimension) {
|
|
17702
|
+
this.recorderElement.style.width = "100%";
|
|
17703
|
+
this.recorderElement.style.removeProperty("height");
|
|
17704
|
+
} else {
|
|
17701
17705
|
if (this.options.video.width) {
|
|
17702
17706
|
const recorderWidth = this.getRecorderWidth(true);
|
|
17703
17707
|
if (null == recorderWidth ? void 0 : recorderWidth.value) this.recorderElement.width = recorderWidth.value;
|
|
17708
|
+
else this.recorderElement.style.removeProperty("width");
|
|
17704
17709
|
}
|
|
17705
17710
|
if (this.options.video.height) {
|
|
17706
17711
|
const recorderHeight = this.getRecorderHeight(true);
|
|
17707
17712
|
if (recorderHeight.value) this.recorderElement.height = recorderHeight.value;
|
|
17713
|
+
else this.recorderElement.style.removeProperty("height");
|
|
17708
17714
|
}
|
|
17709
17715
|
}
|
|
17710
17716
|
}
|
|
@@ -18230,7 +18236,9 @@ var __webpack_exports__ = {};
|
|
|
18230
18236
|
heightDimension = this.getRecorderHeight(true);
|
|
18231
18237
|
}
|
|
18232
18238
|
if (widthDimension) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
18239
|
+
else this.visualsElement.style.removeProperty("width");
|
|
18233
18240
|
if (heightDimension) this.visualsElement.style.height = `${heightDimension.value}${heightDimension.unit}`;
|
|
18241
|
+
else this.visualsElement.style.removeProperty("height");
|
|
18234
18242
|
}
|
|
18235
18243
|
}
|
|
18236
18244
|
removeDimensions() {
|
|
@@ -18621,9 +18629,10 @@ var __webpack_exports__ = {};
|
|
|
18621
18629
|
correctDimensions() {
|
|
18622
18630
|
if (this.options.video.stretch) this.removeDimensions();
|
|
18623
18631
|
else if (this.containerElement) {
|
|
18624
|
-
let
|
|
18625
|
-
if (!
|
|
18626
|
-
if (null ==
|
|
18632
|
+
let widthDimension = dimensions_useFullWidth(this.options.video.mobileBreakPoint);
|
|
18633
|
+
if (!widthDimension) widthDimension = this.visuals.getRecorderWidth(true);
|
|
18634
|
+
if (null == widthDimension ? void 0 : widthDimension.value) this.containerElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
18635
|
+
else this.containerElement.style.removeProperty("width");
|
|
18627
18636
|
}
|
|
18628
18637
|
}
|
|
18629
18638
|
removeDimensions() {
|
package/dist/esm/index.js
CHANGED
|
@@ -3606,7 +3606,7 @@ const constants = {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
};
|
|
3608
3608
|
var package_namespaceObject = {
|
|
3609
|
-
rE: "13.4.
|
|
3609
|
+
rE: "13.4.1"
|
|
3610
3610
|
};
|
|
3611
3611
|
function canPlayType_canPlayType(video, type) {
|
|
3612
3612
|
const canPlayType = video.canPlayType(`video/${type}`);
|
|
@@ -5624,7 +5624,9 @@ class Notifier extends util_Despot {
|
|
|
5624
5624
|
heightDimension = this.visuals.getRecorderHeight(true);
|
|
5625
5625
|
}
|
|
5626
5626
|
if (widthDimension) this.notifyElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
5627
|
+
else this.notifyElement.style.removeProperty("width");
|
|
5627
5628
|
if (heightDimension) this.notifyElement.style.height = `${heightDimension.value}${heightDimension.unit}`;
|
|
5629
|
+
else this.notifyElement.style.removeProperty("height");
|
|
5628
5630
|
}
|
|
5629
5631
|
}
|
|
5630
5632
|
show() {
|
|
@@ -7031,15 +7033,19 @@ class Recorder extends util_Despot {
|
|
|
7031
7033
|
correctDimensions() {
|
|
7032
7034
|
if (!this.recorderElement) return;
|
|
7033
7035
|
const widthDimension = dimensions_useFullWidth(this.options.video.mobileBreakPoint);
|
|
7034
|
-
if (this.options.video.stretch || widthDimension)
|
|
7035
|
-
|
|
7036
|
+
if (this.options.video.stretch || widthDimension) {
|
|
7037
|
+
this.recorderElement.style.width = "100%";
|
|
7038
|
+
this.recorderElement.style.removeProperty("height");
|
|
7039
|
+
} else {
|
|
7036
7040
|
if (this.options.video.width) {
|
|
7037
7041
|
const recorderWidth = this.getRecorderWidth(true);
|
|
7038
7042
|
if (recorderWidth?.value) this.recorderElement.width = recorderWidth.value;
|
|
7043
|
+
else this.recorderElement.style.removeProperty("width");
|
|
7039
7044
|
}
|
|
7040
7045
|
if (this.options.video.height) {
|
|
7041
7046
|
const recorderHeight = this.getRecorderHeight(true);
|
|
7042
7047
|
if (recorderHeight.value) this.recorderElement.height = recorderHeight.value;
|
|
7048
|
+
else this.recorderElement.style.removeProperty("height");
|
|
7043
7049
|
}
|
|
7044
7050
|
}
|
|
7045
7051
|
}
|
|
@@ -7534,7 +7540,9 @@ class Visuals extends util_Despot {
|
|
|
7534
7540
|
heightDimension = this.getRecorderHeight(true);
|
|
7535
7541
|
}
|
|
7536
7542
|
if (widthDimension) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
7543
|
+
else this.visualsElement.style.removeProperty("width");
|
|
7537
7544
|
if (heightDimension) this.visualsElement.style.height = `${heightDimension.value}${heightDimension.unit}`;
|
|
7545
|
+
else this.visualsElement.style.removeProperty("height");
|
|
7538
7546
|
}
|
|
7539
7547
|
}
|
|
7540
7548
|
removeDimensions() {
|
|
@@ -7892,9 +7900,10 @@ class Container extends util_Despot {
|
|
|
7892
7900
|
correctDimensions() {
|
|
7893
7901
|
if (this.options.video.stretch) this.removeDimensions();
|
|
7894
7902
|
else if (this.containerElement) {
|
|
7895
|
-
let
|
|
7896
|
-
if (!
|
|
7897
|
-
if (
|
|
7903
|
+
let widthDimension = dimensions_useFullWidth(this.options.video.mobileBreakPoint);
|
|
7904
|
+
if (!widthDimension) widthDimension = this.visuals.getRecorderWidth(true);
|
|
7905
|
+
if (widthDimension?.value) this.containerElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
7906
|
+
else this.containerElement.style.removeProperty("width");
|
|
7898
7907
|
}
|
|
7899
7908
|
}
|
|
7900
7909
|
removeDimensions() {
|
package/dist/umd/index.js
CHANGED
|
@@ -10670,7 +10670,7 @@
|
|
|
10670
10670
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10671
10671
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10672
10672
|
var package_namespaceObject = {
|
|
10673
|
-
rE: "13.4.
|
|
10673
|
+
rE: "13.4.1"
|
|
10674
10674
|
};
|
|
10675
10675
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10676
10676
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -15963,7 +15963,9 @@
|
|
|
15963
15963
|
heightDimension = this.visuals.getRecorderHeight(true);
|
|
15964
15964
|
}
|
|
15965
15965
|
if (widthDimension) this.notifyElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
15966
|
+
else this.notifyElement.style.removeProperty("width");
|
|
15966
15967
|
if (heightDimension) this.notifyElement.style.height = `${heightDimension.value}${heightDimension.unit}`;
|
|
15968
|
+
else this.notifyElement.style.removeProperty("height");
|
|
15967
15969
|
}
|
|
15968
15970
|
}
|
|
15969
15971
|
show() {
|
|
@@ -17446,15 +17448,19 @@
|
|
|
17446
17448
|
correctDimensions() {
|
|
17447
17449
|
if (!this.recorderElement) return;
|
|
17448
17450
|
const widthDimension = dimensions_useFullWidth(this.options.video.mobileBreakPoint);
|
|
17449
|
-
if (this.options.video.stretch || widthDimension)
|
|
17450
|
-
|
|
17451
|
+
if (this.options.video.stretch || widthDimension) {
|
|
17452
|
+
this.recorderElement.style.width = "100%";
|
|
17453
|
+
this.recorderElement.style.removeProperty("height");
|
|
17454
|
+
} else {
|
|
17451
17455
|
if (this.options.video.width) {
|
|
17452
17456
|
const recorderWidth = this.getRecorderWidth(true);
|
|
17453
17457
|
if (recorderWidth?.value) this.recorderElement.width = recorderWidth.value;
|
|
17458
|
+
else this.recorderElement.style.removeProperty("width");
|
|
17454
17459
|
}
|
|
17455
17460
|
if (this.options.video.height) {
|
|
17456
17461
|
const recorderHeight = this.getRecorderHeight(true);
|
|
17457
17462
|
if (recorderHeight.value) this.recorderElement.height = recorderHeight.value;
|
|
17463
|
+
else this.recorderElement.style.removeProperty("height");
|
|
17458
17464
|
}
|
|
17459
17465
|
}
|
|
17460
17466
|
}
|
|
@@ -17949,7 +17955,9 @@
|
|
|
17949
17955
|
heightDimension = this.getRecorderHeight(true);
|
|
17950
17956
|
}
|
|
17951
17957
|
if (widthDimension) this.visualsElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
17958
|
+
else this.visualsElement.style.removeProperty("width");
|
|
17952
17959
|
if (heightDimension) this.visualsElement.style.height = `${heightDimension.value}${heightDimension.unit}`;
|
|
17960
|
+
else this.visualsElement.style.removeProperty("height");
|
|
17953
17961
|
}
|
|
17954
17962
|
}
|
|
17955
17963
|
removeDimensions() {
|
|
@@ -18307,9 +18315,10 @@
|
|
|
18307
18315
|
correctDimensions() {
|
|
18308
18316
|
if (this.options.video.stretch) this.removeDimensions();
|
|
18309
18317
|
else if (this.containerElement) {
|
|
18310
|
-
let
|
|
18311
|
-
if (!
|
|
18312
|
-
if (
|
|
18318
|
+
let widthDimension = dimensions_useFullWidth(this.options.video.mobileBreakPoint);
|
|
18319
|
+
if (!widthDimension) widthDimension = this.visuals.getRecorderWidth(true);
|
|
18320
|
+
if (widthDimension?.value) this.containerElement.style.width = `${widthDimension.value}${widthDimension.unit}`;
|
|
18321
|
+
else this.containerElement.style.removeProperty("width");
|
|
18313
18322
|
}
|
|
18314
18323
|
}
|
|
18315
18324
|
removeDimensions() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.1",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@tsconfig/node22": "22.0.2",
|
|
89
89
|
"@tsconfig/strictest": "2.0.7",
|
|
90
90
|
"@types/defined": "1.0.2",
|
|
91
|
-
"@types/node": "24.10.
|
|
91
|
+
"@types/node": "24.10.1",
|
|
92
92
|
"@types/superagent": "8.1.9",
|
|
93
93
|
"@types/ua-parser-js": "0.7.39",
|
|
94
94
|
"@vitest/eslint-plugin": "1.4.2",
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
"eslint-plugin-de-morgan": "2.0.0",
|
|
101
101
|
"eslint-plugin-depend": "1.3.1",
|
|
102
102
|
"eslint-plugin-import-x": "4.16.1",
|
|
103
|
-
"eslint-plugin-package-json": "0.
|
|
103
|
+
"eslint-plugin-package-json": "0.68.0",
|
|
104
104
|
"eslint-plugin-promise": "7.2.1",
|
|
105
105
|
"eslint-plugin-regexp": "2.10.0",
|
|
106
106
|
"eslint-plugin-security": "3.0.1",
|
|
107
107
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
108
108
|
"eslint-plugin-storybook": "9.1.16",
|
|
109
109
|
"globals": "16.5.0",
|
|
110
|
-
"jsdom": "27.
|
|
110
|
+
"jsdom": "27.2.0",
|
|
111
111
|
"msw": "2.11.6",
|
|
112
112
|
"msw-storybook-addon": "2.0.6",
|
|
113
113
|
"prettier": "3.6.2",
|