videomail-client 10.0.6 → 10.0.8
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/index.cjs +6 -9
- package/dist/index.js +6 -8
- package/dist/util/Browser.d.ts +5 -6
- package/package.json +21 -21
package/dist/index.cjs
CHANGED
|
@@ -3348,7 +3348,7 @@ var __webpack_modules__ = {
|
|
|
3348
3348
|
// Module
|
|
3349
3349
|
___CSS_LOADER_EXPORT___.push([
|
|
3350
3350
|
module.id,
|
|
3351
|
-
'@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.videomail .visuals{position:relative}.videomail .visuals video.replay{width:100%;height:100%}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint{height:auto;margin:0}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .paused,.videomail .facingMode,.videomail noscript{z-index:100;position:absolute}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{width:100%;top:50%;transform:translateY(-50%)}.videomail .pausedHeader,.videomail .pausedHint,.videomail .countdown{text-align:center;letter-spacing:4px;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .pausedHeader,.videomail .countdown{opacity:.9;font-size:460%}.videomail .pausedHint{font-size:150%}.videomail .facingMode{color:rgba(245,245,245,.9);z-index:10;background:rgba(30,30,30,.5);border:none;outline:none;padding:.1em .3em;font-family:monospace;font-size:1.2em;transition:all .2s;bottom:.6em;right:.7em}.videomail .facingMode:hover{cursor:pointer;background:rgba(50,50,50,.7)}.videomail .recordTimer,.videomail .recordNote{color:#00d814;opacity:.9;background:rgba(10,10,10,.8);padding:.3em .4em;font-family:monospace;transition:all 1s;right:.7em}.videomail .recordTimer.near,.videomail .recordNote.near{color:#eb9369}.videomail .recordTimer.nigh,.videomail .recordNote.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{content:"REC";animation:1s infinite blink}.videomail .notifier{box-sizing:border-box;
|
|
3351
|
+
'@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.videomail .visuals{position:relative}.videomail .visuals video.replay{width:100%;height:100%}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint{height:auto;margin:0}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .paused,.videomail .facingMode,.videomail noscript{z-index:100;position:absolute}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{width:100%;top:50%;transform:translateY(-50%)}.videomail .pausedHeader,.videomail .pausedHint,.videomail .countdown{text-align:center;letter-spacing:4px;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .pausedHeader,.videomail .countdown{opacity:.9;font-size:460%}.videomail .pausedHint{font-size:150%}.videomail .facingMode{color:rgba(245,245,245,.9);z-index:10;background:rgba(30,30,30,.5);border:none;outline:none;padding:.1em .3em;font-family:monospace;font-size:1.2em;transition:all .2s;bottom:.6em;right:.7em}.videomail .facingMode:hover{cursor:pointer;background:rgba(50,50,50,.7)}.videomail .recordTimer,.videomail .recordNote{color:#00d814;opacity:.9;background:rgba(10,10,10,.8);padding:.3em .4em;font-family:monospace;transition:all 1s;right:.7em}.videomail .recordTimer.near,.videomail .recordNote.near{color:#eb9369}.videomail .recordTimer.nigh,.videomail .recordNote.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{content:"REC";animation:1s infinite blink}.videomail .notifier{box-sizing:border-box;overflow:hidden}.videomail .radioGroup{display:block}.videomail .radioGroup label{cursor:pointer}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:rgba(50,50,50,.1)}',
|
|
3352
3352
|
""
|
|
3353
3353
|
]);
|
|
3354
3354
|
// Exports
|
|
@@ -3740,7 +3740,6 @@ function __webpack_require__(moduleId) {
|
|
|
3740
3740
|
const external_defined_namespaceObject = require("defined");
|
|
3741
3741
|
var external_defined_default = /*#__PURE__*/ __webpack_require__.n(external_defined_namespaceObject);
|
|
3742
3742
|
const external_ua_parser_js_namespaceObject = require("ua-parser-js");
|
|
3743
|
-
var external_ua_parser_js_default = /*#__PURE__*/ __webpack_require__.n(external_ua_parser_js_namespaceObject);
|
|
3744
3743
|
function canPlayType_canPlayType(video, type) {
|
|
3745
3744
|
const canPlayType = video.canPlayType(`video/${type}`);
|
|
3746
3745
|
// definitely cannot be played here
|
|
@@ -3837,7 +3836,7 @@ function __webpack_require__(moduleId) {
|
|
|
3837
3836
|
_define_property(this, "videoType", void 0);
|
|
3838
3837
|
this.options = options;
|
|
3839
3838
|
const ua = external_defined_default()(options.fakeUaString, window.navigator.userAgent, "");
|
|
3840
|
-
const userAgentParser = new (
|
|
3839
|
+
const userAgentParser = new external_ua_parser_js_namespaceObject.UAParser(ua);
|
|
3841
3840
|
this.result = userAgentParser.getResult();
|
|
3842
3841
|
}
|
|
3843
3842
|
}
|
|
@@ -5793,7 +5792,7 @@ function __webpack_require__(moduleId) {
|
|
|
5793
5792
|
const external_is_power_of_two_namespaceObject = require("is-power-of-two");
|
|
5794
5793
|
var external_is_power_of_two_default = /*#__PURE__*/ __webpack_require__.n(external_is_power_of_two_namespaceObject);
|
|
5795
5794
|
var package_namespaceObject = {
|
|
5796
|
-
i8: "10.0.
|
|
5795
|
+
i8: "10.0.8"
|
|
5797
5796
|
}; // CONCATENATED MODULE: ./src/types/env.ts
|
|
5798
5797
|
// ... and these actually define the runtime mode of Node.js and are
|
|
5799
5798
|
// set either in package.json, via Jest or in the Dockerfile
|
|
@@ -5940,10 +5939,8 @@ function __webpack_require__(moduleId) {
|
|
|
5940
5939
|
displayErrors: true,
|
|
5941
5940
|
// true = all form inputs get disabled and disappear when browser can't record
|
|
5942
5941
|
adjustFormOnBrowserError: true,
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
* ps: can be a function too returning a boolean
|
|
5946
|
-
*/ reportErrors: false,
|
|
5942
|
+
// when true, any errors will be sent to the videomail server for analysis
|
|
5943
|
+
reportErrors: true,
|
|
5947
5944
|
// just for testing purposes to simulate browser agent handling
|
|
5948
5945
|
fakeUaString: void 0,
|
|
5949
5946
|
version: package_namespaceObject.i8
|
|
@@ -6591,7 +6588,7 @@ function __webpack_require__(moduleId) {
|
|
|
6591
6588
|
function calculateHeight_calculateHeight(responsive, videoWidth, options, ratio, element) {
|
|
6592
6589
|
let width = videoWidth;
|
|
6593
6590
|
if (width < 1) throw error_createError({
|
|
6594
|
-
message:
|
|
6591
|
+
message: `Unable to calculate height when width is less than 1 (= ${width}) and responsive mode is set to ${responsive}`,
|
|
6595
6592
|
options
|
|
6596
6593
|
});
|
|
6597
6594
|
if (responsive && element) width = limitWidth(element, options, width);
|
package/dist/index.js
CHANGED
|
@@ -3329,7 +3329,7 @@ var __webpack_modules__ = {
|
|
|
3329
3329
|
// Module
|
|
3330
3330
|
___CSS_LOADER_EXPORT___.push([
|
|
3331
3331
|
module.id,
|
|
3332
|
-
'@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.videomail .visuals{position:relative}.videomail .visuals video.replay{width:100%;height:100%}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint{height:auto;margin:0}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .paused,.videomail .facingMode,.videomail noscript{z-index:100;position:absolute}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{width:100%;top:50%;transform:translateY(-50%)}.videomail .pausedHeader,.videomail .pausedHint,.videomail .countdown{text-align:center;letter-spacing:4px;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .pausedHeader,.videomail .countdown{opacity:.9;font-size:460%}.videomail .pausedHint{font-size:150%}.videomail .facingMode{color:#f5f5f5e6;z-index:10;background:#1e1e1e80;border:none;outline:none;padding:.1em .3em;font-family:monospace;font-size:1.2em;transition:all .2s;bottom:.6em;right:.7em}.videomail .facingMode:hover{cursor:pointer;background:#323232b3}.videomail .recordTimer,.videomail .recordNote{color:#00d814;opacity:.9;background:#0a0a0acc;padding:.3em .4em;font-family:monospace;transition:all 1s;right:.7em}.videomail .recordTimer.near,.videomail .recordNote.near{color:#eb9369}.videomail .recordTimer.nigh,.videomail .recordNote.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{content:"REC";animation:1s infinite blink}.videomail .notifier{box-sizing:border-box;
|
|
3332
|
+
'@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.videomail .visuals{position:relative}.videomail .visuals video.replay{width:100%;height:100%}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint{height:auto;margin:0}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .paused,.videomail .facingMode,.videomail noscript{z-index:100;position:absolute}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{width:100%;top:50%;transform:translateY(-50%)}.videomail .pausedHeader,.videomail .pausedHint,.videomail .countdown{text-align:center;letter-spacing:4px;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .pausedHeader,.videomail .countdown{opacity:.9;font-size:460%}.videomail .pausedHint{font-size:150%}.videomail .facingMode{color:#f5f5f5e6;z-index:10;background:#1e1e1e80;border:none;outline:none;padding:.1em .3em;font-family:monospace;font-size:1.2em;transition:all .2s;bottom:.6em;right:.7em}.videomail .facingMode:hover{cursor:pointer;background:#323232b3}.videomail .recordTimer,.videomail .recordNote{color:#00d814;opacity:.9;background:#0a0a0acc;padding:.3em .4em;font-family:monospace;transition:all 1s;right:.7em}.videomail .recordTimer.near,.videomail .recordNote.near{color:#eb9369}.videomail .recordTimer.nigh,.videomail .recordNote.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{content:"REC";animation:1s infinite blink}.videomail .notifier{box-sizing:border-box;overflow:hidden}.videomail .radioGroup{display:block}.videomail .radioGroup label{cursor:pointer}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:#3232321a}',
|
|
3333
3333
|
""
|
|
3334
3334
|
]);
|
|
3335
3335
|
// Exports
|
|
@@ -3704,7 +3704,7 @@ class Browser_Browser {
|
|
|
3704
3704
|
constructor(options){
|
|
3705
3705
|
this.options = options;
|
|
3706
3706
|
const ua = (0, __WEBPACK_EXTERNAL_MODULE_defined__["default"])(options.fakeUaString, window.navigator.userAgent, "");
|
|
3707
|
-
const userAgentParser = new __WEBPACK_EXTERNAL_MODULE_ua_parser_js__
|
|
3707
|
+
const userAgentParser = new __WEBPACK_EXTERNAL_MODULE_ua_parser_js__.UAParser(ua);
|
|
3708
3708
|
this.result = userAgentParser.getResult();
|
|
3709
3709
|
}
|
|
3710
3710
|
isIOS() {
|
|
@@ -5566,7 +5566,7 @@ function isPromise_isPromise(anything) {
|
|
|
5566
5566
|
}
|
|
5567
5567
|
/* ESM default export */ const isPromise = isPromise_isPromise;
|
|
5568
5568
|
var package_namespaceObject = {
|
|
5569
|
-
i8: "10.0.
|
|
5569
|
+
i8: "10.0.8"
|
|
5570
5570
|
}; // CONCATENATED MODULE: ./src/types/env.ts
|
|
5571
5571
|
// ... and these actually define the runtime mode of Node.js and are
|
|
5572
5572
|
// set either in package.json, via Jest or in the Dockerfile
|
|
@@ -5713,10 +5713,8 @@ const options_options = {
|
|
|
5713
5713
|
displayErrors: true,
|
|
5714
5714
|
// true = all form inputs get disabled and disappear when browser can't record
|
|
5715
5715
|
adjustFormOnBrowserError: true,
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
* ps: can be a function too returning a boolean
|
|
5719
|
-
*/ reportErrors: false,
|
|
5716
|
+
// when true, any errors will be sent to the videomail server for analysis
|
|
5717
|
+
reportErrors: true,
|
|
5720
5718
|
// just for testing purposes to simulate browser agent handling
|
|
5721
5719
|
fakeUaString: void 0,
|
|
5722
5720
|
version: package_namespaceObject.i8
|
|
@@ -6333,7 +6331,7 @@ function limitWidth_limitWidth(element, options, width) {
|
|
|
6333
6331
|
function calculateHeight_calculateHeight(responsive, videoWidth, options, ratio, element) {
|
|
6334
6332
|
let width = videoWidth;
|
|
6335
6333
|
if (width < 1) throw error_createError({
|
|
6336
|
-
message:
|
|
6334
|
+
message: `Unable to calculate height when width is less than 1 (= ${width}) and responsive mode is set to ${responsive}`,
|
|
6337
6335
|
options
|
|
6338
6336
|
});
|
|
6339
6337
|
if (responsive && element) width = limitWidth(element, options, width);
|
package/dist/util/Browser.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import UAParser from "ua-parser-js";
|
|
2
1
|
import { VideomailClientOptions } from "../types/options";
|
|
3
2
|
import { VideoType } from "../types/VideoType";
|
|
4
3
|
declare class Browser {
|
|
@@ -20,11 +19,11 @@ declare class Browser {
|
|
|
20
19
|
getNoAccessIssue(): import("./error/VideomailError").default;
|
|
21
20
|
getUsefulData(): {
|
|
22
21
|
ua: string;
|
|
23
|
-
browser:
|
|
24
|
-
cpu:
|
|
25
|
-
device:
|
|
26
|
-
engine:
|
|
27
|
-
os:
|
|
22
|
+
browser: import("ua-parser-js").IBrowser;
|
|
23
|
+
cpu: import("ua-parser-js").ICPU;
|
|
24
|
+
device: import("ua-parser-js").IDevice;
|
|
25
|
+
engine: import("ua-parser-js").IEngine;
|
|
26
|
+
os: import("ua-parser-js").IOS;
|
|
28
27
|
};
|
|
29
28
|
}
|
|
30
29
|
export default Browser;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.8",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -67,55 +67,55 @@
|
|
|
67
67
|
"is-power-of-two": "1.0.0",
|
|
68
68
|
"nanoevents": "9.1.0",
|
|
69
69
|
"superagent": "10.1.1",
|
|
70
|
-
"ua-parser-js": "
|
|
70
|
+
"ua-parser-js": "2.0.0",
|
|
71
71
|
"websocket-stream": "5.5.2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@chromatic-com/storybook": "3.2.2",
|
|
75
|
-
"@eslint/js": "9.
|
|
75
|
+
"@eslint/js": "9.15.0",
|
|
76
76
|
"@rsbuild/plugin-node-polyfill": "1.2.0",
|
|
77
77
|
"@rsbuild/plugin-stylus": "1.0.6",
|
|
78
78
|
"@rsdoctor/rspack-plugin": "0.4.8",
|
|
79
|
-
"@rslib/core": "0.0
|
|
80
|
-
"@storybook/addon-a11y": "8.4.
|
|
79
|
+
"@rslib/core": "0.1.0",
|
|
80
|
+
"@storybook/addon-a11y": "8.4.5",
|
|
81
81
|
"@storybook/addon-console": "3.0.0",
|
|
82
|
-
"@storybook/addon-essentials": "8.4.
|
|
83
|
-
"@storybook/addon-interactions": "8.4.
|
|
84
|
-
"@storybook/addon-links": "8.4.
|
|
85
|
-
"@storybook/html": "8.4.
|
|
86
|
-
"@storybook/manager-api": "8.4.
|
|
87
|
-
"@storybook/theming": "8.4.
|
|
82
|
+
"@storybook/addon-essentials": "8.4.5",
|
|
83
|
+
"@storybook/addon-interactions": "8.4.5",
|
|
84
|
+
"@storybook/addon-links": "8.4.5",
|
|
85
|
+
"@storybook/html": "8.4.5",
|
|
86
|
+
"@storybook/manager-api": "8.4.5",
|
|
87
|
+
"@storybook/theming": "8.4.5",
|
|
88
88
|
"@tsconfig/node22": "22.0.0",
|
|
89
89
|
"@tsconfig/strictest": "2.0.5",
|
|
90
90
|
"@types/defined": "1.0.2",
|
|
91
|
-
"@types/node": "22.9.
|
|
91
|
+
"@types/node": "22.9.3",
|
|
92
92
|
"@types/superagent": "8.1.9",
|
|
93
93
|
"@types/ua-parser-js": "0.7.39",
|
|
94
94
|
"@vitest/eslint-plugin": "1.1.10",
|
|
95
95
|
"audit-ci": "7.1.0",
|
|
96
96
|
"chromatic": "11.18.1",
|
|
97
97
|
"cross-env": "7.0.3",
|
|
98
|
-
"eslint": "9.
|
|
98
|
+
"eslint": "9.15.0",
|
|
99
99
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
100
100
|
"eslint-plugin-depend": "0.12.0",
|
|
101
|
-
"eslint-plugin-import-x": "4.4.
|
|
101
|
+
"eslint-plugin-import-x": "4.4.3",
|
|
102
102
|
"eslint-plugin-promise": "7.1.0",
|
|
103
103
|
"eslint-plugin-regexp": "2.7.0",
|
|
104
104
|
"eslint-plugin-security": "3.0.1",
|
|
105
|
-
"eslint-plugin-storybook": "0.11.
|
|
105
|
+
"eslint-plugin-storybook": "0.11.1",
|
|
106
106
|
"globals": "15.12.0",
|
|
107
107
|
"jsdom": "25.0.1",
|
|
108
|
-
"msw": "2.6.
|
|
108
|
+
"msw": "2.6.6",
|
|
109
109
|
"msw-storybook-addon": "2.0.4",
|
|
110
110
|
"prettier": "3.3.3",
|
|
111
111
|
"prettier-plugin-curly": "0.3.1",
|
|
112
|
-
"prettier-plugin-packagejson": "2.5.
|
|
112
|
+
"prettier-plugin-packagejson": "2.5.5",
|
|
113
113
|
"prettier-plugin-sh": "0.14.0",
|
|
114
114
|
"release-it": "17.10.0",
|
|
115
|
-
"storybook": "8.4.
|
|
116
|
-
"storybook-html-rsbuild": "0.1.
|
|
117
|
-
"typescript": "5.
|
|
118
|
-
"typescript-eslint": "8.
|
|
115
|
+
"storybook": "8.4.5",
|
|
116
|
+
"storybook-html-rsbuild": "0.1.5",
|
|
117
|
+
"typescript": "5.7.2",
|
|
118
|
+
"typescript-eslint": "8.15.0",
|
|
119
119
|
"vitest": "2.1.5"
|
|
120
120
|
},
|
|
121
121
|
"engines": {
|