videomail-client 10.2.32 → 10.2.34
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 +9 -11
- package/dist/esm/index.js +9 -11
- package/dist/esm/wrappers/buttons.d.ts +2 -2
- package/dist/umd/index.js +9 -11
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -14373,7 +14373,7 @@ var __webpack_exports__ = {};
|
|
|
14373
14373
|
}
|
|
14374
14374
|
const wrappers_form = Form;
|
|
14375
14375
|
var package_namespaceObject = {
|
|
14376
|
-
i8: "10.2.
|
|
14376
|
+
i8: "10.2.34"
|
|
14377
14377
|
};
|
|
14378
14378
|
function resource_define_property(obj, key, value) {
|
|
14379
14379
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -14612,10 +14612,7 @@ var __webpack_exports__ = {};
|
|
|
14612
14612
|
makeRadioButtonPair(options) {
|
|
14613
14613
|
let radioButtonElement;
|
|
14614
14614
|
let radioButtonGroup;
|
|
14615
|
-
if (options.id) {
|
|
14616
|
-
radioButtonElement = document.querySelector(`#${options.id}`);
|
|
14617
|
-
if (!options.show) html_hideElement(radioButtonElement);
|
|
14618
|
-
}
|
|
14615
|
+
if (options.id) radioButtonElement = document.querySelector(`#${options.id}`);
|
|
14619
14616
|
if (!radioButtonElement) {
|
|
14620
14617
|
radioButtonElement = document.createElement("input");
|
|
14621
14618
|
radioButtonElement.id = options.id;
|
|
@@ -14630,7 +14627,6 @@ var __webpack_exports__ = {};
|
|
|
14630
14627
|
radioLabel.htmlFor = options.id;
|
|
14631
14628
|
radioLabel.textContent = options.label;
|
|
14632
14629
|
radioButtonGroup.appendChild(radioLabel);
|
|
14633
|
-
if (!options.show) html_hideElement(radioButtonGroup);
|
|
14634
14630
|
if (this.submitButton && contains_default()(this.buttonsElement, this.submitButton)) {
|
|
14635
14631
|
var _this_buttonsElement;
|
|
14636
14632
|
null == (_this_buttonsElement = this.buttonsElement) || _this_buttonsElement.insertBefore(radioButtonGroup, this.submitButton);
|
|
@@ -14688,7 +14684,6 @@ var __webpack_exports__ = {};
|
|
|
14688
14684
|
value: "off",
|
|
14689
14685
|
label: this.options.text.audioOff,
|
|
14690
14686
|
checked: !isAudioEnabled(this.options),
|
|
14691
|
-
show: false,
|
|
14692
14687
|
changeHandler: ()=>{
|
|
14693
14688
|
this.container.disableAudio();
|
|
14694
14689
|
}
|
|
@@ -14699,7 +14694,6 @@ var __webpack_exports__ = {};
|
|
|
14699
14694
|
value: "on",
|
|
14700
14695
|
label: this.options.text.audioOn,
|
|
14701
14696
|
checked: isAudioEnabled(this.options),
|
|
14702
|
-
show: false,
|
|
14703
14697
|
changeHandler: ()=>{
|
|
14704
14698
|
this.container.enableAudio();
|
|
14705
14699
|
}
|
|
@@ -14707,8 +14701,6 @@ var __webpack_exports__ = {};
|
|
|
14707
14701
|
}
|
|
14708
14702
|
}
|
|
14709
14703
|
onFormReady(params) {
|
|
14710
|
-
showElement(this.audioOnRadioPair);
|
|
14711
|
-
showElement(this.audioOffRadioPair);
|
|
14712
14704
|
if (!html_isShown(this.recordAgainButton)) {
|
|
14713
14705
|
if (!(null == params ? void 0 : params.paused)) showElement(this.recordButton);
|
|
14714
14706
|
}
|
|
@@ -14728,6 +14720,9 @@ var __webpack_exports__ = {};
|
|
|
14728
14720
|
}
|
|
14729
14721
|
onUserMediaReady(params) {
|
|
14730
14722
|
this.onFormReady();
|
|
14723
|
+
showElement(this.buttonsElement);
|
|
14724
|
+
showElement(this.audioOnRadioPair);
|
|
14725
|
+
showElement(this.audioOffRadioPair);
|
|
14731
14726
|
if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
|
|
14732
14727
|
else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
|
|
14733
14728
|
if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
|
|
@@ -14964,6 +14959,7 @@ var __webpack_exports__ = {};
|
|
|
14964
14959
|
this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
|
|
14965
14960
|
this.container.appendChild(this.buttonsElement);
|
|
14966
14961
|
}
|
|
14962
|
+
html_hideElement(this.buttonsElement);
|
|
14967
14963
|
this.buildButtons();
|
|
14968
14964
|
if (!this.built) this.initEvents();
|
|
14969
14965
|
this.built = true;
|
|
@@ -16873,7 +16869,7 @@ var __webpack_exports__ = {};
|
|
|
16873
16869
|
let explanation = "(No explanation given)";
|
|
16874
16870
|
if (null == (_command_args = command.args) ? void 0 : null == (_command_args_err = _command_args.err) ? void 0 : _command_args_err.message) explanation = command.args.err.message;
|
|
16875
16871
|
const err = createError({
|
|
16876
|
-
message: "Oh no, server error!",
|
|
16872
|
+
message: "Oh no, websocket server error!",
|
|
16877
16873
|
explanation,
|
|
16878
16874
|
err: deserializeError(null == (_command_args1 = command.args) ? void 0 : _command_args1.err),
|
|
16879
16875
|
options: this.options
|
|
@@ -17526,6 +17522,8 @@ var __webpack_exports__ = {};
|
|
|
17526
17522
|
var _this_replayElement1;
|
|
17527
17523
|
null == (_this_replayElement1 = this.replayElement) || _this_replayElement1.pause();
|
|
17528
17524
|
}
|
|
17525
|
+
}, {
|
|
17526
|
+
passive: true
|
|
17529
17527
|
});
|
|
17530
17528
|
this.replayElement.addEventListener("click", (e)=>{
|
|
17531
17529
|
var _this_replayElement;
|
package/dist/esm/index.js
CHANGED
|
@@ -4180,7 +4180,7 @@ class Form extends util_Despot {
|
|
|
4180
4180
|
}
|
|
4181
4181
|
const wrappers_form = Form;
|
|
4182
4182
|
var package_namespaceObject = {
|
|
4183
|
-
i8: "10.2.
|
|
4183
|
+
i8: "10.2.34"
|
|
4184
4184
|
};
|
|
4185
4185
|
function findOriginalExc(exc) {
|
|
4186
4186
|
if (exc instanceof Error && "response" in exc) {
|
|
@@ -4409,10 +4409,7 @@ class Buttons extends util_Despot {
|
|
|
4409
4409
|
makeRadioButtonPair(options) {
|
|
4410
4410
|
let radioButtonElement;
|
|
4411
4411
|
let radioButtonGroup;
|
|
4412
|
-
if (options.id) {
|
|
4413
|
-
radioButtonElement = document.querySelector(`#${options.id}`);
|
|
4414
|
-
if (!options.show) html_hideElement(radioButtonElement);
|
|
4415
|
-
}
|
|
4412
|
+
if (options.id) radioButtonElement = document.querySelector(`#${options.id}`);
|
|
4416
4413
|
if (!radioButtonElement) {
|
|
4417
4414
|
radioButtonElement = document.createElement("input");
|
|
4418
4415
|
radioButtonElement.id = options.id;
|
|
@@ -4427,7 +4424,6 @@ class Buttons extends util_Despot {
|
|
|
4427
4424
|
radioLabel.htmlFor = options.id;
|
|
4428
4425
|
radioLabel.textContent = options.label;
|
|
4429
4426
|
radioButtonGroup.appendChild(radioLabel);
|
|
4430
|
-
if (!options.show) html_hideElement(radioButtonGroup);
|
|
4431
4427
|
if (this.submitButton && (0, __WEBPACK_EXTERNAL_MODULE_contains__["default"])(this.buttonsElement, this.submitButton)) this.buttonsElement?.insertBefore(radioButtonGroup, this.submitButton);
|
|
4432
4428
|
else this.buttonsElement?.appendChild(radioButtonGroup);
|
|
4433
4429
|
}
|
|
@@ -4469,7 +4465,6 @@ class Buttons extends util_Despot {
|
|
|
4469
4465
|
value: "off",
|
|
4470
4466
|
label: this.options.text.audioOff,
|
|
4471
4467
|
checked: !isAudioEnabled(this.options),
|
|
4472
|
-
show: false,
|
|
4473
4468
|
changeHandler: ()=>{
|
|
4474
4469
|
this.container.disableAudio();
|
|
4475
4470
|
}
|
|
@@ -4480,7 +4475,6 @@ class Buttons extends util_Despot {
|
|
|
4480
4475
|
value: "on",
|
|
4481
4476
|
label: this.options.text.audioOn,
|
|
4482
4477
|
checked: isAudioEnabled(this.options),
|
|
4483
|
-
show: false,
|
|
4484
4478
|
changeHandler: ()=>{
|
|
4485
4479
|
this.container.enableAudio();
|
|
4486
4480
|
}
|
|
@@ -4488,8 +4482,6 @@ class Buttons extends util_Despot {
|
|
|
4488
4482
|
}
|
|
4489
4483
|
}
|
|
4490
4484
|
onFormReady(params) {
|
|
4491
|
-
html_showElement(this.audioOnRadioPair);
|
|
4492
|
-
html_showElement(this.audioOffRadioPair);
|
|
4493
4485
|
if (!html_isShown(this.recordAgainButton)) {
|
|
4494
4486
|
if (!params?.paused) html_showElement(this.recordButton);
|
|
4495
4487
|
}
|
|
@@ -4509,6 +4501,9 @@ class Buttons extends util_Despot {
|
|
|
4509
4501
|
}
|
|
4510
4502
|
onUserMediaReady(params) {
|
|
4511
4503
|
this.onFormReady();
|
|
4504
|
+
html_showElement(this.buttonsElement);
|
|
4505
|
+
html_showElement(this.audioOnRadioPair);
|
|
4506
|
+
html_showElement(this.audioOffRadioPair);
|
|
4512
4507
|
if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
|
|
4513
4508
|
else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
|
|
4514
4509
|
if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
|
|
@@ -4742,6 +4737,7 @@ class Buttons extends util_Despot {
|
|
|
4742
4737
|
this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
|
|
4743
4738
|
this.container.appendChild(this.buttonsElement);
|
|
4744
4739
|
}
|
|
4740
|
+
html_hideElement(this.buttonsElement);
|
|
4745
4741
|
this.buildButtons();
|
|
4746
4742
|
if (!this.built) this.initEvents();
|
|
4747
4743
|
this.built = true;
|
|
@@ -6477,7 +6473,7 @@ class Recorder extends util_Despot {
|
|
|
6477
6473
|
let explanation = "(No explanation given)";
|
|
6478
6474
|
if (command.args?.err?.message) explanation = command.args.err.message;
|
|
6479
6475
|
const err = error_createError({
|
|
6480
|
-
message: "Oh no, server error!",
|
|
6476
|
+
message: "Oh no, websocket server error!",
|
|
6481
6477
|
explanation,
|
|
6482
6478
|
err: (0, __WEBPACK_EXTERNAL_MODULE_serialize_error_ecb1f3fc__.deserializeError)(command.args?.err),
|
|
6483
6479
|
options: this.options
|
|
@@ -7096,6 +7092,8 @@ class Replay extends util_Despot {
|
|
|
7096
7092
|
throw err;
|
|
7097
7093
|
});
|
|
7098
7094
|
else this.replayElement?.pause();
|
|
7095
|
+
}, {
|
|
7096
|
+
passive: true
|
|
7099
7097
|
});
|
|
7100
7098
|
this.replayElement.addEventListener("click", (e)=>{
|
|
7101
7099
|
e.preventDefault();
|
|
@@ -10,8 +10,8 @@ declare class Buttons extends Despot {
|
|
|
10
10
|
private previewButton?;
|
|
11
11
|
private recordAgainButton?;
|
|
12
12
|
private submitButton?;
|
|
13
|
-
private audioOnRadioPair
|
|
14
|
-
private audioOffRadioPair
|
|
13
|
+
private audioOnRadioPair?;
|
|
14
|
+
private audioOffRadioPair?;
|
|
15
15
|
private built;
|
|
16
16
|
constructor(container: Container, options: VideomailClientOptions);
|
|
17
17
|
private replaceClickHandler;
|
package/dist/umd/index.js
CHANGED
|
@@ -14340,7 +14340,7 @@
|
|
|
14340
14340
|
}
|
|
14341
14341
|
const wrappers_form = Form;
|
|
14342
14342
|
var package_namespaceObject = {
|
|
14343
|
-
i8: "10.2.
|
|
14343
|
+
i8: "10.2.34"
|
|
14344
14344
|
};
|
|
14345
14345
|
function findOriginalExc(exc) {
|
|
14346
14346
|
if (exc instanceof Error && "response" in exc) {
|
|
@@ -14573,10 +14573,7 @@
|
|
|
14573
14573
|
makeRadioButtonPair(options) {
|
|
14574
14574
|
let radioButtonElement;
|
|
14575
14575
|
let radioButtonGroup;
|
|
14576
|
-
if (options.id) {
|
|
14577
|
-
radioButtonElement = document.querySelector(`#${options.id}`);
|
|
14578
|
-
if (!options.show) html_hideElement(radioButtonElement);
|
|
14579
|
-
}
|
|
14576
|
+
if (options.id) radioButtonElement = document.querySelector(`#${options.id}`);
|
|
14580
14577
|
if (!radioButtonElement) {
|
|
14581
14578
|
radioButtonElement = document.createElement("input");
|
|
14582
14579
|
radioButtonElement.id = options.id;
|
|
@@ -14591,7 +14588,6 @@
|
|
|
14591
14588
|
radioLabel.htmlFor = options.id;
|
|
14592
14589
|
radioLabel.textContent = options.label;
|
|
14593
14590
|
radioButtonGroup.appendChild(radioLabel);
|
|
14594
|
-
if (!options.show) html_hideElement(radioButtonGroup);
|
|
14595
14591
|
if (this.submitButton && contains_default()(this.buttonsElement, this.submitButton)) this.buttonsElement?.insertBefore(radioButtonGroup, this.submitButton);
|
|
14596
14592
|
else this.buttonsElement?.appendChild(radioButtonGroup);
|
|
14597
14593
|
}
|
|
@@ -14633,7 +14629,6 @@
|
|
|
14633
14629
|
value: "off",
|
|
14634
14630
|
label: this.options.text.audioOff,
|
|
14635
14631
|
checked: !isAudioEnabled(this.options),
|
|
14636
|
-
show: false,
|
|
14637
14632
|
changeHandler: ()=>{
|
|
14638
14633
|
this.container.disableAudio();
|
|
14639
14634
|
}
|
|
@@ -14644,7 +14639,6 @@
|
|
|
14644
14639
|
value: "on",
|
|
14645
14640
|
label: this.options.text.audioOn,
|
|
14646
14641
|
checked: isAudioEnabled(this.options),
|
|
14647
|
-
show: false,
|
|
14648
14642
|
changeHandler: ()=>{
|
|
14649
14643
|
this.container.enableAudio();
|
|
14650
14644
|
}
|
|
@@ -14652,8 +14646,6 @@
|
|
|
14652
14646
|
}
|
|
14653
14647
|
}
|
|
14654
14648
|
onFormReady(params) {
|
|
14655
|
-
showElement(this.audioOnRadioPair);
|
|
14656
|
-
showElement(this.audioOffRadioPair);
|
|
14657
14649
|
if (!html_isShown(this.recordAgainButton)) {
|
|
14658
14650
|
if (!params?.paused) showElement(this.recordButton);
|
|
14659
14651
|
}
|
|
@@ -14673,6 +14665,9 @@
|
|
|
14673
14665
|
}
|
|
14674
14666
|
onUserMediaReady(params) {
|
|
14675
14667
|
this.onFormReady();
|
|
14668
|
+
showElement(this.buttonsElement);
|
|
14669
|
+
showElement(this.audioOnRadioPair);
|
|
14670
|
+
showElement(this.audioOffRadioPair);
|
|
14676
14671
|
if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
|
|
14677
14672
|
else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
|
|
14678
14673
|
if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
|
|
@@ -14906,6 +14901,7 @@
|
|
|
14906
14901
|
this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
|
|
14907
14902
|
this.container.appendChild(this.buttonsElement);
|
|
14908
14903
|
}
|
|
14904
|
+
html_hideElement(this.buttonsElement);
|
|
14909
14905
|
this.buildButtons();
|
|
14910
14906
|
if (!this.built) this.initEvents();
|
|
14911
14907
|
this.built = true;
|
|
@@ -16715,7 +16711,7 @@
|
|
|
16715
16711
|
let explanation = "(No explanation given)";
|
|
16716
16712
|
if (command.args?.err?.message) explanation = command.args.err.message;
|
|
16717
16713
|
const err = error_createError({
|
|
16718
|
-
message: "Oh no, server error!",
|
|
16714
|
+
message: "Oh no, websocket server error!",
|
|
16719
16715
|
explanation,
|
|
16720
16716
|
err: deserializeError(command.args?.err),
|
|
16721
16717
|
options: this.options
|
|
@@ -17334,6 +17330,8 @@
|
|
|
17334
17330
|
throw err;
|
|
17335
17331
|
});
|
|
17336
17332
|
else this.replayElement?.pause();
|
|
17333
|
+
}, {
|
|
17334
|
+
passive: true
|
|
17337
17335
|
});
|
|
17338
17336
|
this.replayElement.addEventListener("click", (e)=>{
|
|
17339
17337
|
e.preventDefault();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.34",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -107,13 +107,13 @@
|
|
|
107
107
|
"eslint-plugin-storybook": "0.12.0",
|
|
108
108
|
"globals": "16.0.0",
|
|
109
109
|
"jsdom": "26.1.0",
|
|
110
|
-
"msw": "2.7.
|
|
110
|
+
"msw": "2.7.6",
|
|
111
111
|
"msw-storybook-addon": "2.0.4",
|
|
112
112
|
"prettier": "3.5.3",
|
|
113
113
|
"prettier-plugin-curly": "0.3.2",
|
|
114
114
|
"prettier-plugin-packagejson": "2.5.10",
|
|
115
115
|
"prettier-plugin-sh": "0.17.2",
|
|
116
|
-
"release-it": "19.0.
|
|
116
|
+
"release-it": "19.0.2",
|
|
117
117
|
"storybook": "8.6.12",
|
|
118
118
|
"storybook-html-rsbuild": "1.0.1",
|
|
119
119
|
"type-fest": "4.40.1",
|