videomail-client 11.0.1 → 11.0.3
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 +180 -186
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +179 -185
- package/dist/esm/types/DeliveryRecord.d.ts +2 -2
- package/dist/esm/wrappers/form.d.ts +22 -22
- package/dist/umd/99.js +13754 -0
- package/dist/umd/index.js +4639 -18288
- package/package.json +14 -14
package/dist/esm/index.js
CHANGED
|
@@ -14,6 +14,158 @@ import websocket_stream from "websocket-stream";
|
|
|
14
14
|
import audio_sample from "audio-sample";
|
|
15
15
|
import is_power_of_two from "is-power-of-two";
|
|
16
16
|
var __webpack_modules__ = {
|
|
17
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
|
|
18
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
A: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
20
|
+
});
|
|
21
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
22
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
24
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
26
|
+
___CSS_LOADER_EXPORT___.push([
|
|
27
|
+
module.id,
|
|
28
|
+
`@keyframes blink {
|
|
29
|
+
0% {
|
|
30
|
+
opacity: .9;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
35% {
|
|
34
|
+
opacity: .9;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
50% {
|
|
38
|
+
opacity: .1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
85% {
|
|
42
|
+
opacity: .1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
100% {
|
|
46
|
+
opacity: .9;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.videomail .visuals {
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.videomail .visuals video.replay {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint {
|
|
60
|
+
height: auto;
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .paused, .videomail .facingMode, .videomail noscript {
|
|
65
|
+
z-index: 100;
|
|
66
|
+
position: absolute;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint, .videomail noscript {
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.videomail .countdown, .videomail .paused, .videomail noscript {
|
|
74
|
+
width: 100%;
|
|
75
|
+
top: 50%;
|
|
76
|
+
transform: translateY(-50%);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.videomail .pausedHeader, .videomail .pausedHint, .videomail .countdown {
|
|
80
|
+
text-align: center;
|
|
81
|
+
letter-spacing: 4px;
|
|
82
|
+
text-shadow: -2px 0 #fff, 0 2px #fff, 2px 0 #fff, 0 -2px #fff;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.videomail .pausedHeader, .videomail .countdown {
|
|
86
|
+
opacity: .9;
|
|
87
|
+
font-size: 460%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.videomail .pausedHint {
|
|
91
|
+
font-size: 150%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.videomail .facingMode {
|
|
95
|
+
color: #f5f5f5e6;
|
|
96
|
+
z-index: 10;
|
|
97
|
+
background: #1e1e1e80;
|
|
98
|
+
border: none;
|
|
99
|
+
outline: none;
|
|
100
|
+
padding: .1em .3em;
|
|
101
|
+
font-family: monospace;
|
|
102
|
+
font-size: 1.2em;
|
|
103
|
+
transition: all .2s;
|
|
104
|
+
bottom: .6em;
|
|
105
|
+
right: .7em;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.videomail .facingMode:hover {
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
background: #323232b3;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.videomail .recordTimer, .videomail .recordNote {
|
|
114
|
+
color: #00d814;
|
|
115
|
+
opacity: .9;
|
|
116
|
+
background: #0a0a0acc;
|
|
117
|
+
padding: .3em .4em;
|
|
118
|
+
font-family: monospace;
|
|
119
|
+
transition: all 1s;
|
|
120
|
+
right: .7em;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.videomail .recordTimer.near, .videomail .recordNote.near {
|
|
124
|
+
color: #eb9369;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.videomail .recordTimer.nigh, .videomail .recordNote.nigh {
|
|
128
|
+
color: #ea4b2a;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.videomail .recordTimer {
|
|
132
|
+
top: .7em;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.videomail .recordNote {
|
|
136
|
+
top: 3.6em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.videomail .recordNote:before {
|
|
140
|
+
content: "REC";
|
|
141
|
+
animation: 1s infinite blink;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.videomail .notifier {
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.videomail .radioGroup {
|
|
150
|
+
display: block;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.videomail .radioGroup label {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.videomail video {
|
|
158
|
+
margin-bottom: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.videomail video.userMedia {
|
|
162
|
+
background-color: #3232321a;
|
|
163
|
+
}
|
|
164
|
+
`,
|
|
165
|
+
""
|
|
166
|
+
]);
|
|
167
|
+
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
168
|
+
},
|
|
17
169
|
"./node_modules/base64-js/index.js": function(__unused_webpack_module, exports) {
|
|
18
170
|
exports.byteLength = byteLength;
|
|
19
171
|
exports.toByteArray = toByteArray;
|
|
@@ -3168,159 +3320,7 @@ var __webpack_modules__ = {
|
|
|
3168
3320
|
return tryTypedArrays(value);
|
|
3169
3321
|
};
|
|
3170
3322
|
},
|
|
3171
|
-
"./node_modules/@rsbuild/core/compiled/css-loader/
|
|
3172
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
3173
|
-
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
3174
|
-
});
|
|
3175
|
-
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
3176
|
-
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
3177
|
-
var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
3178
|
-
var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
3179
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
3180
|
-
___CSS_LOADER_EXPORT___.push([
|
|
3181
|
-
module.id,
|
|
3182
|
-
`@keyframes blink {
|
|
3183
|
-
0% {
|
|
3184
|
-
opacity: .9;
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
35% {
|
|
3188
|
-
opacity: .9;
|
|
3189
|
-
}
|
|
3190
|
-
|
|
3191
|
-
50% {
|
|
3192
|
-
opacity: .1;
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
|
-
85% {
|
|
3196
|
-
opacity: .1;
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
|
-
100% {
|
|
3200
|
-
opacity: .9;
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
|
-
.videomail .visuals {
|
|
3205
|
-
position: relative;
|
|
3206
|
-
}
|
|
3207
|
-
|
|
3208
|
-
.videomail .visuals video.replay {
|
|
3209
|
-
width: 100%;
|
|
3210
|
-
height: 100%;
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint {
|
|
3214
|
-
height: auto;
|
|
3215
|
-
margin: 0;
|
|
3216
|
-
}
|
|
3217
|
-
|
|
3218
|
-
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .paused, .videomail .facingMode, .videomail noscript {
|
|
3219
|
-
z-index: 100;
|
|
3220
|
-
position: absolute;
|
|
3221
|
-
}
|
|
3222
|
-
|
|
3223
|
-
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint, .videomail noscript {
|
|
3224
|
-
font-weight: bold;
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
.videomail .countdown, .videomail .paused, .videomail noscript {
|
|
3228
|
-
width: 100%;
|
|
3229
|
-
top: 50%;
|
|
3230
|
-
transform: translateY(-50%);
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
.videomail .pausedHeader, .videomail .pausedHint, .videomail .countdown {
|
|
3234
|
-
text-align: center;
|
|
3235
|
-
letter-spacing: 4px;
|
|
3236
|
-
text-shadow: -2px 0 #fff, 0 2px #fff, 2px 0 #fff, 0 -2px #fff;
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
.videomail .pausedHeader, .videomail .countdown {
|
|
3240
|
-
opacity: .9;
|
|
3241
|
-
font-size: 460%;
|
|
3242
|
-
}
|
|
3243
|
-
|
|
3244
|
-
.videomail .pausedHint {
|
|
3245
|
-
font-size: 150%;
|
|
3246
|
-
}
|
|
3247
|
-
|
|
3248
|
-
.videomail .facingMode {
|
|
3249
|
-
color: #f5f5f5e6;
|
|
3250
|
-
z-index: 10;
|
|
3251
|
-
background: #1e1e1e80;
|
|
3252
|
-
border: none;
|
|
3253
|
-
outline: none;
|
|
3254
|
-
padding: .1em .3em;
|
|
3255
|
-
font-family: monospace;
|
|
3256
|
-
font-size: 1.2em;
|
|
3257
|
-
transition: all .2s;
|
|
3258
|
-
bottom: .6em;
|
|
3259
|
-
right: .7em;
|
|
3260
|
-
}
|
|
3261
|
-
|
|
3262
|
-
.videomail .facingMode:hover {
|
|
3263
|
-
cursor: pointer;
|
|
3264
|
-
background: #323232b3;
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3267
|
-
.videomail .recordTimer, .videomail .recordNote {
|
|
3268
|
-
color: #00d814;
|
|
3269
|
-
opacity: .9;
|
|
3270
|
-
background: #0a0a0acc;
|
|
3271
|
-
padding: .3em .4em;
|
|
3272
|
-
font-family: monospace;
|
|
3273
|
-
transition: all 1s;
|
|
3274
|
-
right: .7em;
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
.videomail .recordTimer.near, .videomail .recordNote.near {
|
|
3278
|
-
color: #eb9369;
|
|
3279
|
-
}
|
|
3280
|
-
|
|
3281
|
-
.videomail .recordTimer.nigh, .videomail .recordNote.nigh {
|
|
3282
|
-
color: #ea4b2a;
|
|
3283
|
-
}
|
|
3284
|
-
|
|
3285
|
-
.videomail .recordTimer {
|
|
3286
|
-
top: .7em;
|
|
3287
|
-
}
|
|
3288
|
-
|
|
3289
|
-
.videomail .recordNote {
|
|
3290
|
-
top: 3.6em;
|
|
3291
|
-
}
|
|
3292
|
-
|
|
3293
|
-
.videomail .recordNote:before {
|
|
3294
|
-
content: "REC";
|
|
3295
|
-
animation: 1s infinite blink;
|
|
3296
|
-
}
|
|
3297
|
-
|
|
3298
|
-
.videomail .notifier {
|
|
3299
|
-
box-sizing: border-box;
|
|
3300
|
-
overflow: hidden;
|
|
3301
|
-
}
|
|
3302
|
-
|
|
3303
|
-
.videomail .radioGroup {
|
|
3304
|
-
display: block;
|
|
3305
|
-
}
|
|
3306
|
-
|
|
3307
|
-
.videomail .radioGroup label {
|
|
3308
|
-
cursor: pointer;
|
|
3309
|
-
}
|
|
3310
|
-
|
|
3311
|
-
.videomail video {
|
|
3312
|
-
margin-bottom: 0;
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
.videomail video.userMedia {
|
|
3316
|
-
background-color: #3232321a;
|
|
3317
|
-
}
|
|
3318
|
-
`,
|
|
3319
|
-
""
|
|
3320
|
-
]);
|
|
3321
|
-
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
3322
|
-
},
|
|
3323
|
-
"./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
3323
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
3324
3324
|
module.exports = function(cssWithMappingToString) {
|
|
3325
3325
|
var list = [];
|
|
3326
3326
|
list.toString = function() {
|
|
@@ -3373,12 +3373,12 @@ var __webpack_modules__ = {
|
|
|
3373
3373
|
return list;
|
|
3374
3374
|
};
|
|
3375
3375
|
},
|
|
3376
|
-
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
3376
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
3377
3377
|
module.exports = function(i) {
|
|
3378
3378
|
return i[1];
|
|
3379
3379
|
};
|
|
3380
3380
|
},
|
|
3381
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
3381
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
3382
3382
|
var stylesInDOM = [];
|
|
3383
3383
|
function getIndexByIdentifier(identifier) {
|
|
3384
3384
|
var result = -1;
|
|
@@ -3456,7 +3456,7 @@ var __webpack_modules__ = {
|
|
|
3456
3456
|
};
|
|
3457
3457
|
};
|
|
3458
3458
|
},
|
|
3459
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
3459
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
3460
3460
|
var memo = {};
|
|
3461
3461
|
function getTarget(target) {
|
|
3462
3462
|
if (void 0 === memo[target]) {
|
|
@@ -3477,7 +3477,7 @@ var __webpack_modules__ = {
|
|
|
3477
3477
|
}
|
|
3478
3478
|
module.exports = insertBySelector;
|
|
3479
3479
|
},
|
|
3480
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
3480
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
3481
3481
|
function insertStyleElement(options) {
|
|
3482
3482
|
var element = document.createElement("style");
|
|
3483
3483
|
options.setAttributes(element, options.attributes);
|
|
@@ -3486,14 +3486,14 @@ var __webpack_modules__ = {
|
|
|
3486
3486
|
}
|
|
3487
3487
|
module.exports = insertStyleElement;
|
|
3488
3488
|
},
|
|
3489
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3489
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3490
3490
|
function setAttributesWithoutAttributes(styleElement) {
|
|
3491
3491
|
var nonce = __webpack_require__.nc;
|
|
3492
3492
|
if (nonce) styleElement.setAttribute("nonce", nonce);
|
|
3493
3493
|
}
|
|
3494
3494
|
module.exports = setAttributesWithoutAttributes;
|
|
3495
3495
|
},
|
|
3496
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
3496
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
3497
3497
|
function apply(styleElement, options, obj) {
|
|
3498
3498
|
var css = "";
|
|
3499
3499
|
if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
|
|
@@ -3529,7 +3529,7 @@ var __webpack_modules__ = {
|
|
|
3529
3529
|
}
|
|
3530
3530
|
module.exports = domAPI;
|
|
3531
3531
|
},
|
|
3532
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
3532
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
3533
3533
|
function styleTagTransform(css, styleElement) {
|
|
3534
3534
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
3535
3535
|
else {
|
|
@@ -3602,7 +3602,7 @@ const constants = {
|
|
|
3602
3602
|
}
|
|
3603
3603
|
};
|
|
3604
3604
|
var package_namespaceObject = {
|
|
3605
|
-
|
|
3605
|
+
rE: "11.0.3"
|
|
3606
3606
|
};
|
|
3607
3607
|
var VideoType_VideoType = /*#__PURE__*/ function(VideoType) {
|
|
3608
3608
|
VideoType["WebM"] = "webm";
|
|
@@ -3994,12 +3994,6 @@ function trimEmails(emails) {
|
|
|
3994
3994
|
const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
|
|
3995
3995
|
return trimmedEmails;
|
|
3996
3996
|
}
|
|
3997
|
-
var form_FormMethod = /*#__PURE__*/ function(FormMethod) {
|
|
3998
|
-
FormMethod["POST"] = "post";
|
|
3999
|
-
FormMethod["PUT"] = "put";
|
|
4000
|
-
FormMethod["GET"] = "get";
|
|
4001
|
-
return FormMethod;
|
|
4002
|
-
}({});
|
|
4003
3997
|
class Form extends util_Despot {
|
|
4004
3998
|
container;
|
|
4005
3999
|
formElement;
|
|
@@ -4306,7 +4300,7 @@ class Resource {
|
|
|
4306
4300
|
[constants.SITE_NAME_LABEL]: this.options.siteName
|
|
4307
4301
|
};
|
|
4308
4302
|
let url = `${this.options.baseUrl}/videomail/`;
|
|
4309
|
-
if (
|
|
4303
|
+
if ("put" === method && videomail.key) url += videomail.key;
|
|
4310
4304
|
try {
|
|
4311
4305
|
const request = await superagent(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
|
|
4312
4306
|
return request;
|
|
@@ -4349,24 +4343,24 @@ class Resource {
|
|
|
4349
4343
|
message: err.message,
|
|
4350
4344
|
stack: err.stack,
|
|
4351
4345
|
versions: {
|
|
4352
|
-
videomailClient: package_namespaceObject.
|
|
4346
|
+
videomailClient: package_namespaceObject.rE,
|
|
4353
4347
|
videomailNinjaFormPlugin: this.options.versions?.videomailNinjaFormPlugin
|
|
4354
4348
|
}
|
|
4355
4349
|
};
|
|
4356
|
-
await superagent(
|
|
4350
|
+
await superagent("post", url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
4357
4351
|
} catch (exc) {
|
|
4358
4352
|
console.error(exc);
|
|
4359
4353
|
}
|
|
4360
4354
|
}
|
|
4361
4355
|
async post(videomail) {
|
|
4362
4356
|
const newVideomail = this.applyDefaultValues(videomail);
|
|
4363
|
-
newVideomail[constants.VERSION_LABEL] = package_namespaceObject.
|
|
4357
|
+
newVideomail[constants.VERSION_LABEL] = package_namespaceObject.rE;
|
|
4364
4358
|
try {
|
|
4365
4359
|
let res;
|
|
4366
4360
|
if (this.options.callbacks.adjustFormDataBeforePosting) {
|
|
4367
4361
|
const adjustedVideomail = this.options.callbacks.adjustFormDataBeforePosting(newVideomail);
|
|
4368
|
-
res = await this.write(
|
|
4369
|
-
} else res = await this.write(
|
|
4362
|
+
res = await this.write("post", adjustedVideomail);
|
|
4363
|
+
} else res = await this.write("post", newVideomail);
|
|
4370
4364
|
return res;
|
|
4371
4365
|
} catch (exc) {
|
|
4372
4366
|
throw error_createError({
|
|
@@ -4376,7 +4370,7 @@ class Resource {
|
|
|
4376
4370
|
}
|
|
4377
4371
|
}
|
|
4378
4372
|
async put(videomail) {
|
|
4379
|
-
return await this.write(
|
|
4373
|
+
return await this.write("put", videomail);
|
|
4380
4374
|
}
|
|
4381
4375
|
async form(formData, url) {
|
|
4382
4376
|
let formType;
|
|
@@ -4591,27 +4585,27 @@ function mergeWithDefaultOptions_mergeWithDefaultOptions(options = {}) {
|
|
|
4591
4585
|
return newOptions;
|
|
4592
4586
|
}
|
|
4593
4587
|
const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
|
|
4594
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
4588
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
4595
4589
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
4596
|
-
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
4590
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
4597
4591
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
4598
|
-
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
4592
|
+
var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
4599
4593
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
4600
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
4594
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
4601
4595
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
4602
|
-
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
4596
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
4603
4597
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
4604
|
-
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
4598
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
4605
4599
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
4606
|
-
var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
|
|
4600
|
+
var main = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
|
|
4607
4601
|
var main_options = {};
|
|
4608
4602
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
4609
4603
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
4610
4604
|
main_options.insert = insertBySelector_default().bind(null, "head");
|
|
4611
4605
|
main_options.domAPI = styleDomAPI_default();
|
|
4612
4606
|
main_options.insertStyleElement = insertStyleElement_default();
|
|
4613
|
-
injectStylesIntoStyleTag_default()(main.
|
|
4614
|
-
main.
|
|
4607
|
+
injectStylesIntoStyleTag_default()(main.A, main_options);
|
|
4608
|
+
main.A && main.A.locals && main.A.locals;
|
|
4615
4609
|
function limitHeight(height, options, calledFrom) {
|
|
4616
4610
|
let limitedHeight = document.documentElement.clientHeight;
|
|
4617
4611
|
if (height) limitedHeight = Math.min(height, limitedHeight);
|
|
@@ -7789,13 +7783,13 @@ class Container extends util_Despot {
|
|
|
7789
7783
|
async submitVideomail(formInputs, method) {
|
|
7790
7784
|
const videomailFormData = this.form?.transformFormData(formInputs);
|
|
7791
7785
|
if (!videomailFormData) throw new Error("No videomail form data defined");
|
|
7792
|
-
if (
|
|
7786
|
+
if ("post" === method) {
|
|
7793
7787
|
videomailFormData.recordingStats = this.visuals.getRecordingStats();
|
|
7794
7788
|
videomailFormData.width = this.visuals.getRecorderWidth(true);
|
|
7795
7789
|
videomailFormData.height = this.visuals.getRecorderHeight(true);
|
|
7796
7790
|
return await this.resource.post(videomailFormData);
|
|
7797
7791
|
}
|
|
7798
|
-
if (
|
|
7792
|
+
if ("put" === method) return await this.resource.put(videomailFormData);
|
|
7799
7793
|
throw error_createError({
|
|
7800
7794
|
message: `Unsupported form method ${method}, unable to submit videomail.`,
|
|
7801
7795
|
options: this.options
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmailAddress } from "./EmailAddress";
|
|
2
2
|
interface DeliveryReport {
|
|
3
|
-
userKey
|
|
3
|
+
userKey: string | false;
|
|
4
4
|
}
|
|
5
|
-
type DeliveryRecord = Record<EmailAddress, DeliveryReport
|
|
5
|
+
type DeliveryRecord = Record<EmailAddress, DeliveryReport>;
|
|
6
6
|
export default DeliveryRecord;
|
|
@@ -18,10 +18,10 @@ declare class Form extends Despot {
|
|
|
18
18
|
transformFormData(formInputs: FormInputs): {
|
|
19
19
|
subject?: string;
|
|
20
20
|
body?: string;
|
|
21
|
-
from?: import("
|
|
22
|
-
to?: import("
|
|
23
|
-
bcc?: import("
|
|
24
|
-
cc?: import("
|
|
21
|
+
from?: import("..").EmailAddress;
|
|
22
|
+
to?: import("..").EmailAddresses | undefined;
|
|
23
|
+
bcc?: import("..").EmailAddresses | undefined;
|
|
24
|
+
cc?: import("..").EmailAddresses | undefined;
|
|
25
25
|
alias?: string;
|
|
26
26
|
connection?: {
|
|
27
27
|
[x: string]: string | number | undefined;
|
|
@@ -77,47 +77,47 @@ declare class Form extends Despot {
|
|
|
77
77
|
width?: number | undefined | undefined;
|
|
78
78
|
sentTo?: {
|
|
79
79
|
[x: string]: {
|
|
80
|
-
userKey?: string |
|
|
80
|
+
userKey?: string | false;
|
|
81
81
|
} | undefined;
|
|
82
82
|
};
|
|
83
83
|
sentCc?: {
|
|
84
84
|
[x: string]: {
|
|
85
|
-
userKey?: string |
|
|
85
|
+
userKey?: string | false;
|
|
86
86
|
} | undefined;
|
|
87
87
|
};
|
|
88
88
|
sentBcc?: {
|
|
89
89
|
[x: string]: {
|
|
90
|
-
userKey?: string |
|
|
90
|
+
userKey?: string | false;
|
|
91
91
|
} | undefined;
|
|
92
92
|
};
|
|
93
93
|
rejectedTo?: {
|
|
94
94
|
[x: string]: {
|
|
95
|
-
userKey?: string |
|
|
95
|
+
userKey?: string | false;
|
|
96
96
|
} | undefined;
|
|
97
97
|
};
|
|
98
98
|
rejectedCc?: {
|
|
99
99
|
[x: string]: {
|
|
100
|
-
userKey?: string |
|
|
100
|
+
userKey?: string | false;
|
|
101
101
|
} | undefined;
|
|
102
102
|
};
|
|
103
103
|
rejectedBcc?: {
|
|
104
104
|
[x: string]: {
|
|
105
|
-
userKey?: string |
|
|
105
|
+
userKey?: string | false;
|
|
106
106
|
} | undefined;
|
|
107
107
|
};
|
|
108
108
|
accepted?: {
|
|
109
109
|
[x: string]: {
|
|
110
|
-
userKey?: string |
|
|
110
|
+
userKey?: string | false;
|
|
111
111
|
} | undefined;
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
getRecipients(): {
|
|
115
115
|
subject?: string;
|
|
116
116
|
body?: string;
|
|
117
|
-
from?: import("
|
|
118
|
-
to?: import("
|
|
119
|
-
bcc?: import("
|
|
120
|
-
cc?: import("
|
|
117
|
+
from?: import("..").EmailAddress;
|
|
118
|
+
to?: import("..").EmailAddresses | undefined;
|
|
119
|
+
bcc?: import("..").EmailAddresses | undefined;
|
|
120
|
+
cc?: import("..").EmailAddresses | undefined;
|
|
121
121
|
alias?: string;
|
|
122
122
|
connection?: {
|
|
123
123
|
[x: string]: string | number | undefined;
|
|
@@ -173,37 +173,37 @@ declare class Form extends Despot {
|
|
|
173
173
|
width?: number | undefined | undefined;
|
|
174
174
|
sentTo?: {
|
|
175
175
|
[x: string]: {
|
|
176
|
-
userKey?: string |
|
|
176
|
+
userKey?: string | false;
|
|
177
177
|
} | undefined;
|
|
178
178
|
};
|
|
179
179
|
sentCc?: {
|
|
180
180
|
[x: string]: {
|
|
181
|
-
userKey?: string |
|
|
181
|
+
userKey?: string | false;
|
|
182
182
|
} | undefined;
|
|
183
183
|
};
|
|
184
184
|
sentBcc?: {
|
|
185
185
|
[x: string]: {
|
|
186
|
-
userKey?: string |
|
|
186
|
+
userKey?: string | false;
|
|
187
187
|
} | undefined;
|
|
188
188
|
};
|
|
189
189
|
rejectedTo?: {
|
|
190
190
|
[x: string]: {
|
|
191
|
-
userKey?: string |
|
|
191
|
+
userKey?: string | false;
|
|
192
192
|
} | undefined;
|
|
193
193
|
};
|
|
194
194
|
rejectedCc?: {
|
|
195
195
|
[x: string]: {
|
|
196
|
-
userKey?: string |
|
|
196
|
+
userKey?: string | false;
|
|
197
197
|
} | undefined;
|
|
198
198
|
};
|
|
199
199
|
rejectedBcc?: {
|
|
200
200
|
[x: string]: {
|
|
201
|
-
userKey?: string |
|
|
201
|
+
userKey?: string | false;
|
|
202
202
|
} | undefined;
|
|
203
203
|
};
|
|
204
204
|
accepted?: {
|
|
205
205
|
[x: string]: {
|
|
206
|
-
userKey?: string |
|
|
206
|
+
userKey?: string | false;
|
|
207
207
|
} | undefined;
|
|
208
208
|
};
|
|
209
209
|
};
|