videomail-client 11.5.1 → 11.5.2
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 +4 -4
- package/dist/esm/index.js +4 -3
- package/dist/esm/types/options.d.ts +1 -0
- package/dist/umd/index.js +4 -3
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -10660,7 +10660,7 @@ var __webpack_exports__ = {};
|
|
|
10660
10660
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10661
10661
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10662
10662
|
var package_namespaceObject = {
|
|
10663
|
-
rE: "11.5.
|
|
10663
|
+
rE: "11.5.2"
|
|
10664
10664
|
};
|
|
10665
10665
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10666
10666
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -14917,6 +14917,7 @@ var __webpack_exports__ = {};
|
|
|
14917
14917
|
displayErrors: true,
|
|
14918
14918
|
adjustFormOnBrowserError: true,
|
|
14919
14919
|
reportErrors: true,
|
|
14920
|
+
disableFormWhenSubmitting: true,
|
|
14920
14921
|
fakeUaString: void 0,
|
|
14921
14922
|
versions: {
|
|
14922
14923
|
videomailNinjaFormPlugin: void 0
|
|
@@ -18101,8 +18102,7 @@ var __webpack_exports__ = {};
|
|
|
18101
18102
|
null == (_this_visualsElement = this.visualsElement) || _this_visualsElement.appendChild(child);
|
|
18102
18103
|
}
|
|
18103
18104
|
removeChild(child) {
|
|
18104
|
-
|
|
18105
|
-
null == (_this_visualsElement = this.visualsElement) || _this_visualsElement.removeChild(child);
|
|
18105
|
+
child.remove();
|
|
18106
18106
|
}
|
|
18107
18107
|
reset() {
|
|
18108
18108
|
this.endWaiting();
|
|
@@ -18687,7 +18687,7 @@ var __webpack_exports__ = {};
|
|
|
18687
18687
|
].filter(Boolean).join(": ");
|
|
18688
18688
|
this.options.logger.debug(`Container: submitAll(${output})`);
|
|
18689
18689
|
this.beginWaiting();
|
|
18690
|
-
this.disableForm(true);
|
|
18690
|
+
if (this.options.disableFormWhenSubmitting) this.disableForm(true);
|
|
18691
18691
|
this.emit("SUBMITTING");
|
|
18692
18692
|
if (hasVideomailKey) {
|
|
18693
18693
|
response = await this.submitVideomail(formData, method);
|
package/dist/esm/index.js
CHANGED
|
@@ -3602,7 +3602,7 @@ const constants = {
|
|
|
3602
3602
|
}
|
|
3603
3603
|
};
|
|
3604
3604
|
var package_namespaceObject = {
|
|
3605
|
-
rE: "11.5.
|
|
3605
|
+
rE: "11.5.2"
|
|
3606
3606
|
};
|
|
3607
3607
|
const VideoType = {
|
|
3608
3608
|
WebM: "webm",
|
|
@@ -4536,6 +4536,7 @@ const options_options = {
|
|
|
4536
4536
|
displayErrors: true,
|
|
4537
4537
|
adjustFormOnBrowserError: true,
|
|
4538
4538
|
reportErrors: true,
|
|
4539
|
+
disableFormWhenSubmitting: true,
|
|
4539
4540
|
fakeUaString: void 0,
|
|
4540
4541
|
versions: {
|
|
4541
4542
|
videomailNinjaFormPlugin: void 0
|
|
@@ -7468,7 +7469,7 @@ class Visuals extends util_Despot {
|
|
|
7468
7469
|
this.visualsElement?.appendChild(child);
|
|
7469
7470
|
}
|
|
7470
7471
|
removeChild(child) {
|
|
7471
|
-
|
|
7472
|
+
child.remove();
|
|
7472
7473
|
}
|
|
7473
7474
|
reset() {
|
|
7474
7475
|
this.endWaiting();
|
|
@@ -8036,7 +8037,7 @@ class Container extends util_Despot {
|
|
|
8036
8037
|
].filter(Boolean).join(": ");
|
|
8037
8038
|
this.options.logger.debug(`Container: submitAll(${output})`);
|
|
8038
8039
|
this.beginWaiting();
|
|
8039
|
-
this.disableForm(true);
|
|
8040
|
+
if (this.options.disableFormWhenSubmitting) this.disableForm(true);
|
|
8040
8041
|
this.emit("SUBMITTING");
|
|
8041
8042
|
if (hasVideomailKey) {
|
|
8042
8043
|
response = await this.submitVideomail(formData, method);
|
|
@@ -111,6 +111,7 @@ export interface VideomailClientOptions {
|
|
|
111
111
|
displayErrors: boolean;
|
|
112
112
|
adjustFormOnBrowserError: boolean;
|
|
113
113
|
reportErrors: boolean;
|
|
114
|
+
disableFormWhenSubmitting?: boolean | undefined;
|
|
114
115
|
fakeUaString?: string | undefined;
|
|
115
116
|
versions?: {
|
|
116
117
|
videomailNinjaFormPlugin?: string | undefined;
|
package/dist/umd/index.js
CHANGED
|
@@ -10666,7 +10666,7 @@
|
|
|
10666
10666
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10667
10667
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10668
10668
|
var package_namespaceObject = {
|
|
10669
|
-
rE: "11.5.
|
|
10669
|
+
rE: "11.5.2"
|
|
10670
10670
|
};
|
|
10671
10671
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10672
10672
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -14871,6 +14871,7 @@
|
|
|
14871
14871
|
displayErrors: true,
|
|
14872
14872
|
adjustFormOnBrowserError: true,
|
|
14873
14873
|
reportErrors: true,
|
|
14874
|
+
disableFormWhenSubmitting: true,
|
|
14874
14875
|
fakeUaString: void 0,
|
|
14875
14876
|
versions: {
|
|
14876
14877
|
videomailNinjaFormPlugin: void 0
|
|
@@ -17883,7 +17884,7 @@
|
|
|
17883
17884
|
this.visualsElement?.appendChild(child);
|
|
17884
17885
|
}
|
|
17885
17886
|
removeChild(child) {
|
|
17886
|
-
|
|
17887
|
+
child.remove();
|
|
17887
17888
|
}
|
|
17888
17889
|
reset() {
|
|
17889
17890
|
this.endWaiting();
|
|
@@ -18451,7 +18452,7 @@
|
|
|
18451
18452
|
].filter(Boolean).join(": ");
|
|
18452
18453
|
this.options.logger.debug(`Container: submitAll(${output})`);
|
|
18453
18454
|
this.beginWaiting();
|
|
18454
|
-
this.disableForm(true);
|
|
18455
|
+
if (this.options.disableFormWhenSubmitting) this.disableForm(true);
|
|
18455
18456
|
this.emit("SUBMITTING");
|
|
18456
18457
|
if (hasVideomailKey) {
|
|
18457
18458
|
response = await this.submitVideomail(formData, method);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "11.5.
|
|
3
|
+
"version": "11.5.2",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"lint:fix": "eslint --color --fix .",
|
|
50
50
|
"lint:inspect": "eslint --inspect-config",
|
|
51
51
|
"prettier": "prettier --check ./etc ./src ./.storybook ./*.ts ./*.js",
|
|
52
|
-
"prettier:fix": "prettier --write ./etc ./src ./.storybook ./*.ts",
|
|
52
|
+
"prettier:fix": "prettier --write ./etc ./src ./.storybook ./*.ts ./*.js",
|
|
53
53
|
"release": "release-it --only-version --config ./etc/release-it.ts",
|
|
54
54
|
"storybook": "cross-env BROWSER=chromium storybook dev -p 8443 --https --ssl-cert ./etc/ssl-certs/localhost.crt --ssl-key ./etc/ssl-certs/localhost.key",
|
|
55
55
|
"test": "cross-env ENVIRON=test vitest --watch=false",
|