videomail-client 10.2.7 → 10.2.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/cjs/index.cjs +7 -10
- package/dist/esm/index.js +7 -10
- package/dist/esm/types/Videomail.d.ts +10 -10
- package/dist/esm/util/trimEmail.d.ts +1 -1
- package/dist/umd/index.js +7 -10
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -13602,8 +13602,8 @@ var __webpack_exports__ = {};
|
|
|
13602
13602
|
return email.replace(REGEX, "");
|
|
13603
13603
|
}
|
|
13604
13604
|
function trimEmails(emails) {
|
|
13605
|
-
const
|
|
13606
|
-
return
|
|
13605
|
+
const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
|
|
13606
|
+
return trimmedEmails;
|
|
13607
13607
|
}
|
|
13608
13608
|
function isNotButton(element) {
|
|
13609
13609
|
return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
|
|
@@ -13673,10 +13673,7 @@ var __webpack_exports__ = {};
|
|
|
13673
13673
|
case "INPUT":
|
|
13674
13674
|
{
|
|
13675
13675
|
const inputControl = formControl;
|
|
13676
|
-
if (value
|
|
13677
|
-
...value
|
|
13678
|
-
].join(", ");
|
|
13679
|
-
else if (Array.isArray(value)) inputControl.value = value.join(", ");
|
|
13676
|
+
if (Array.isArray(value)) inputControl.value = value.join(", ");
|
|
13680
13677
|
else inputControl.value = value;
|
|
13681
13678
|
break;
|
|
13682
13679
|
}
|
|
@@ -13874,7 +13871,7 @@ var __webpack_exports__ = {};
|
|
|
13874
13871
|
}
|
|
13875
13872
|
const wrappers_form = Form;
|
|
13876
13873
|
var package_namespaceObject = {
|
|
13877
|
-
i8: "10.2.
|
|
13874
|
+
i8: "10.2.8"
|
|
13878
13875
|
};
|
|
13879
13876
|
function resource_define_property(obj, key, value) {
|
|
13880
13877
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -17787,9 +17784,9 @@ var __webpack_exports__ = {};
|
|
|
17787
17784
|
const toIsConfigured = "to" in recipients;
|
|
17788
17785
|
const ccIsConfigured = "cc" in recipients;
|
|
17789
17786
|
const bccIsConfigured = "bcc" in recipients;
|
|
17790
|
-
const hasTo = recipients.to && recipients.to.
|
|
17791
|
-
const hasCc = recipients.cc && recipients.cc.
|
|
17792
|
-
const hasBcc = recipients.bcc && recipients.bcc.
|
|
17787
|
+
const hasTo = recipients.to && recipients.to.length > 0;
|
|
17788
|
+
const hasCc = recipients.cc && recipients.cc.length > 0;
|
|
17789
|
+
const hasBcc = recipients.bcc && recipients.bcc.length > 0;
|
|
17793
17790
|
if (toIsConfigured) {
|
|
17794
17791
|
if (!hasTo) {
|
|
17795
17792
|
if (ccIsConfigured && bccIsConfigured) {
|
package/dist/esm/index.js
CHANGED
|
@@ -3707,8 +3707,8 @@ function trimEmail(email) {
|
|
|
3707
3707
|
return email.replace(REGEX, "");
|
|
3708
3708
|
}
|
|
3709
3709
|
function trimEmails(emails) {
|
|
3710
|
-
const
|
|
3711
|
-
return
|
|
3710
|
+
const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
|
|
3711
|
+
return trimmedEmails;
|
|
3712
3712
|
}
|
|
3713
3713
|
function isNotButton(element) {
|
|
3714
3714
|
return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
|
|
@@ -3788,10 +3788,7 @@ class Form extends Despot {
|
|
|
3788
3788
|
case "INPUT":
|
|
3789
3789
|
{
|
|
3790
3790
|
const inputControl = formControl;
|
|
3791
|
-
if (value
|
|
3792
|
-
...value
|
|
3793
|
-
].join(", ");
|
|
3794
|
-
else if (Array.isArray(value)) inputControl.value = value.join(", ");
|
|
3791
|
+
if (Array.isArray(value)) inputControl.value = value.join(", ");
|
|
3795
3792
|
else inputControl.value = value;
|
|
3796
3793
|
break;
|
|
3797
3794
|
}
|
|
@@ -3970,7 +3967,7 @@ class Form extends Despot {
|
|
|
3970
3967
|
}
|
|
3971
3968
|
const wrappers_form = Form;
|
|
3972
3969
|
var package_namespaceObject = {
|
|
3973
|
-
i8: "10.2.
|
|
3970
|
+
i8: "10.2.8"
|
|
3974
3971
|
};
|
|
3975
3972
|
function findOriginalExc(exc) {
|
|
3976
3973
|
if (exc instanceof Error && "response" in exc) {
|
|
@@ -7618,9 +7615,9 @@ class Container extends Despot {
|
|
|
7618
7615
|
const toIsConfigured = "to" in recipients;
|
|
7619
7616
|
const ccIsConfigured = "cc" in recipients;
|
|
7620
7617
|
const bccIsConfigured = "bcc" in recipients;
|
|
7621
|
-
const hasTo = recipients.to && recipients.to.
|
|
7622
|
-
const hasCc = recipients.cc && recipients.cc.
|
|
7623
|
-
const hasBcc = recipients.bcc && recipients.bcc.
|
|
7618
|
+
const hasTo = recipients.to && recipients.to.length > 0;
|
|
7619
|
+
const hasCc = recipients.cc && recipients.cc.length > 0;
|
|
7620
|
+
const hasBcc = recipients.bcc && recipients.bcc.length > 0;
|
|
7624
7621
|
if (toIsConfigured) {
|
|
7625
7622
|
if (!hasTo) {
|
|
7626
7623
|
if (ccIsConfigured && bccIsConfigured) {
|
|
@@ -3,9 +3,9 @@ import RecordingStats from "./RecordingStats";
|
|
|
3
3
|
import VideoFormat from "./VideoFormat";
|
|
4
4
|
interface Videomail {
|
|
5
5
|
alias: string;
|
|
6
|
-
bcc?:
|
|
6
|
+
bcc?: string[] | undefined;
|
|
7
7
|
body?: string;
|
|
8
|
-
cc?:
|
|
8
|
+
cc?: string[] | undefined;
|
|
9
9
|
connection?: Record<string, number | string>;
|
|
10
10
|
correctUrl: string;
|
|
11
11
|
dateCreated: number;
|
|
@@ -24,24 +24,24 @@ interface Videomail {
|
|
|
24
24
|
parentKey?: string;
|
|
25
25
|
poster: string;
|
|
26
26
|
recordingStats?: RecordingStats | undefined;
|
|
27
|
-
rejectedBcc?:
|
|
28
|
-
rejectedCc?:
|
|
29
|
-
rejectedTo?:
|
|
30
|
-
accepted?:
|
|
27
|
+
rejectedBcc?: string[];
|
|
28
|
+
rejectedCc?: string[];
|
|
29
|
+
rejectedTo?: string[];
|
|
30
|
+
accepted?: string[];
|
|
31
31
|
replyAllUrl?: string;
|
|
32
32
|
replyUrl: string;
|
|
33
33
|
sending: boolean;
|
|
34
34
|
sent?: boolean;
|
|
35
|
-
sentBcc?:
|
|
36
|
-
sentCc?:
|
|
35
|
+
sentBcc?: string[];
|
|
36
|
+
sentCc?: string[];
|
|
37
37
|
sentDate?: number;
|
|
38
38
|
sentDateIso?: string;
|
|
39
39
|
sentDatePretty?: string;
|
|
40
|
-
sentTo?:
|
|
40
|
+
sentTo?: string[];
|
|
41
41
|
siteName: string;
|
|
42
42
|
siteTitle?: string;
|
|
43
43
|
subject?: string;
|
|
44
|
-
to?:
|
|
44
|
+
to?: string[] | undefined;
|
|
45
45
|
url: string;
|
|
46
46
|
versions: {
|
|
47
47
|
ninjaFormPlugin?: string;
|
package/dist/umd/index.js
CHANGED
|
@@ -13579,8 +13579,8 @@
|
|
|
13579
13579
|
return email.replace(REGEX, "");
|
|
13580
13580
|
}
|
|
13581
13581
|
function trimEmails(emails) {
|
|
13582
|
-
const
|
|
13583
|
-
return
|
|
13582
|
+
const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
|
|
13583
|
+
return trimmedEmails;
|
|
13584
13584
|
}
|
|
13585
13585
|
function isNotButton(element) {
|
|
13586
13586
|
return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
|
|
@@ -13660,10 +13660,7 @@
|
|
|
13660
13660
|
case "INPUT":
|
|
13661
13661
|
{
|
|
13662
13662
|
const inputControl = formControl;
|
|
13663
|
-
if (value
|
|
13664
|
-
...value
|
|
13665
|
-
].join(", ");
|
|
13666
|
-
else if (Array.isArray(value)) inputControl.value = value.join(", ");
|
|
13663
|
+
if (Array.isArray(value)) inputControl.value = value.join(", ");
|
|
13667
13664
|
else inputControl.value = value;
|
|
13668
13665
|
break;
|
|
13669
13666
|
}
|
|
@@ -13842,7 +13839,7 @@
|
|
|
13842
13839
|
}
|
|
13843
13840
|
const wrappers_form = Form;
|
|
13844
13841
|
var package_namespaceObject = {
|
|
13845
|
-
i8: "10.2.
|
|
13842
|
+
i8: "10.2.8"
|
|
13846
13843
|
};
|
|
13847
13844
|
function findOriginalExc(exc) {
|
|
13848
13845
|
if (exc instanceof Error && "response" in exc) {
|
|
@@ -17568,9 +17565,9 @@
|
|
|
17568
17565
|
const toIsConfigured = "to" in recipients;
|
|
17569
17566
|
const ccIsConfigured = "cc" in recipients;
|
|
17570
17567
|
const bccIsConfigured = "bcc" in recipients;
|
|
17571
|
-
const hasTo = recipients.to && recipients.to.
|
|
17572
|
-
const hasCc = recipients.cc && recipients.cc.
|
|
17573
|
-
const hasBcc = recipients.bcc && recipients.bcc.
|
|
17568
|
+
const hasTo = recipients.to && recipients.to.length > 0;
|
|
17569
|
+
const hasCc = recipients.cc && recipients.cc.length > 0;
|
|
17570
|
+
const hasBcc = recipients.bcc && recipients.bcc.length > 0;
|
|
17574
17571
|
if (toIsConfigured) {
|
|
17575
17572
|
if (!hasTo) {
|
|
17576
17573
|
if (ccIsConfigured && bccIsConfigured) {
|