@nylas/react 1.1.0 → 1.1.1
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/add-circle-icon_2.entry-b14ecb5c.js +25 -0
- package/dist/add-circle-icon_2.entry-c6211866.cjs +1 -0
- package/dist/{archive-icon_7.entry-7411c224.js → archive-icon_7.entry-3fe7721a.js} +13 -13
- package/dist/{archive-icon_7.entry-e3df60ed.cjs → archive-icon_7.entry-54fc1f03.cjs} +1 -1
- package/dist/{arrow-icon.entry-280e18b0.cjs → arrow-icon.entry-1dfee3bc.cjs} +1 -1
- package/dist/arrow-icon.entry-cc936041.js +15 -0
- package/dist/{bold-icon_3.entry-5dffbedd.cjs → bold-icon_3.entry-4b9de887.cjs} +1 -1
- package/dist/{bold-icon_3.entry-5963945c.js → bold-icon_3.entry-e2a1d434.js} +6 -6
- package/dist/{button-component_2.entry-237733b4.js → button-component_2.entry-3639ade6.js} +5 -5
- package/dist/{button-component_2.entry-b29d2873.cjs → button-component_2.entry-5666fdfa.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_48.entry-9afba869.js → calendar-agenda-fill-icon_48.entry-56e364cd.js} +1548 -1397
- package/dist/calendar-agenda-fill-icon_48.entry-bf278e34.cjs +7 -0
- package/dist/{calendar-cancel-icon.entry-77ccf227.cjs → calendar-cancel-icon.entry-ac1cb5dd.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-780723a6.js → calendar-cancel-icon.entry-dcd777cd.js} +4 -4
- package/dist/{calendar-check-icon_2.entry-2c89c230.js → calendar-check-icon_2.entry-6330bd2d.js} +9 -9
- package/dist/{calendar-check-icon_2.entry-b37ac7f0.cjs → calendar-check-icon_2.entry-7ad1b2a0.cjs} +1 -1
- package/dist/{calendar-icon.entry-ffc93569.cjs → calendar-icon.entry-5849a547.cjs} +1 -1
- package/dist/{calendar-icon.entry-02dd3990.js → calendar-icon.entry-8559fa0d.js} +5 -5
- package/dist/{checkbox-component_2.entry-ee9d0e6c.js → checkbox-component_2.entry-1474c465.js} +35 -12
- package/dist/checkbox-component_2.entry-6cf5da6b.cjs +1 -0
- package/dist/chevron-icon_3.entry-41170718.cjs +1 -0
- package/dist/{chevron-icon_3.entry-f62e9ef1.js → chevron-icon_3.entry-cb757aa3.js} +13 -10
- package/dist/{clock-icon_4.entry-7dc2cc4a.cjs → clock-icon_4.entry-36a33de5.cjs} +1 -1
- package/dist/{clock-icon_4.entry-766a1b23.js → clock-icon_4.entry-642f4dc6.js} +13 -13
- package/dist/{constants-50c3e067-9f2a6372.cjs → constants-50c3e067-4e027da4.cjs} +1 -1
- package/dist/{constants-50c3e067-8a40a5fe.js → constants-50c3e067-83f1d865.js} +1 -1
- package/dist/{copy-icon.entry-2a841508.js → copy-icon.entry-60740516.js} +7 -7
- package/dist/{copy-icon.entry-e5251410.cjs → copy-icon.entry-fb63cf53.cjs} +1 -1
- package/dist/{delete-icon_2.entry-64555a2f.js → delete-icon_2.entry-45851bc5.js} +9 -9
- package/dist/{delete-icon_2.entry-1a5c39dc.cjs → delete-icon_2.entry-d1af0606.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-fdc7ddda.cjs → document-refresh-icon.entry-1731d4d9.cjs} +1 -1
- package/dist/document-refresh-icon.entry-5db0830a.js +15 -0
- package/dist/elements/index.d.ts +1 -0
- package/dist/{elements-dc5b338e-2da1fe61.js → elements-dc5b338e-3099ee02.js} +1 -1
- package/dist/{elements-dc5b338e-c8016c3d.cjs → elements-dc5b338e-ab9afb63.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-9d0c98c0.js → focus-visible-e8093c16-067a8f23.js} +1 -1
- package/dist/{focus-visible-e8093c16-0a38a184.cjs → focus-visible-e8093c16-811f50fa.cjs} +1 -1
- package/dist/{forward-icon_6.entry-7238ef38.cjs → forward-icon_6.entry-4e9c9686.cjs} +2 -2
- package/dist/{forward-icon_6.entry-390ef70a.js → forward-icon_6.entry-e7c5fa46.js} +9 -9
- package/dist/{globe-icon.entry-81f42f89.cjs → globe-icon.entry-74f79652.cjs} +1 -1
- package/dist/{globe-icon.entry-8d106260.js → globe-icon.entry-aa3f3ea3.js} +5 -5
- package/dist/google-logo-icon_4.entry-0332a181.cjs +1 -0
- package/dist/{google-logo-icon_4.entry-aabd3886.js → google-logo-icon_4.entry-3fe41d69.js} +245 -252
- package/dist/index-2a53b6a8.cjs +82 -0
- package/dist/index-a134f625.js +12842 -0
- package/dist/{index.es-c9454237-b64161d1.cjs → index.es-79f5b771-64a1baf0.cjs} +1 -1
- package/dist/{index.es-c9454237-00ccd1e6.js → index.es-79f5b771-ce07d6fc.js} +1 -1
- package/dist/{info-icon_2.entry-b2e11336.cjs → info-icon_2.entry-a3f40027.cjs} +1 -1
- package/dist/{info-icon_2.entry-bb8ed71c.js → info-icon_2.entry-fed731f4.js} +5 -5
- package/dist/input-color-picker.entry-37826630.js +48 -0
- package/dist/input-color-picker.entry-cbdce7a1.cjs +1 -0
- package/dist/{input-component.entry-cb86170f.js → input-component.entry-b83b7103.js} +19 -14
- package/dist/input-component.entry-e71b7062.cjs +1 -0
- package/dist/input-dropdown.entry-150819cd.cjs +1 -0
- package/dist/{input-dropdown.entry-a76c339e.js → input-dropdown.entry-db0dae5f.js} +6 -6
- package/dist/{mailbox-store-edc386fc-156b7236.cjs → mailbox-store-9c52a3fa-04f22f60.cjs} +1 -1
- package/dist/{mailbox-store-edc386fc-8bc7558b.js → mailbox-store-9c52a3fa-80fe343c.js} +2 -2
- package/dist/multi-select-dropdown.entry-629329d7.cjs +1 -0
- package/dist/{multi-select-dropdown.entry-6b686695.js → multi-select-dropdown.entry-6b429b39.js} +11 -7
- package/dist/nylas-booked-event-card_12.entry-660af56a.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-e861bb16.js → nylas-booked-event-card_12.entry-c22c02b4.js} +170 -171
- package/dist/{nylas-form-card.entry-ca4a8746.cjs → nylas-form-card.entry-2ced5eef.cjs} +1 -1
- package/dist/{nylas-form-card.entry-b158d789.js → nylas-form-card.entry-f3d6a1e4.js} +15 -15
- package/dist/{nylas-if-state.entry-95fac42d.cjs → nylas-if-state.entry-55c32c0c.cjs} +1 -1
- package/dist/{nylas-if-state.entry-8e4d922c.js → nylas-if-state.entry-862ad978.js} +8 -8
- package/dist/{nylas-list-folders.entry-83c39684.js → nylas-list-folders.entry-544fd38d.js} +3 -3
- package/dist/{nylas-list-folders.entry-8a22e0c8.cjs → nylas-list-folders.entry-77e936f7.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-7ea370e1.js → nylas-list-threads.entry-71411da7.js} +3 -3
- package/dist/{nylas-list-threads.entry-54c582af.cjs → nylas-list-threads.entry-82e04782.cjs} +1 -1
- package/dist/{nylas-login.entry-fb627e40.cjs → nylas-login.entry-3ccc2bef.cjs} +1 -1
- package/dist/{nylas-login.entry-9115fd81.js → nylas-login.entry-48179c01.js} +7 -7
- package/dist/{nylas-mailbox-pagination.entry-3ff02cf9.js → nylas-mailbox-pagination.entry-77cf03b5.js} +2 -2
- package/dist/{nylas-mailbox-pagination.entry-04626d27.cjs → nylas-mailbox-pagination.entry-d31f9aa4.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-8d00c789.cjs → nylas-mailbox-toolbar-button.entry-33aad610.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-f752e925.js → nylas-mailbox-toolbar-button.entry-40e3c373.js} +8 -8
- package/dist/{nylas-mailbox.entry-b3974f4e.cjs → nylas-mailbox.entry-963de1c3.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-99c27b6c.js → nylas-mailbox.entry-f4066fb2.js} +4 -4
- package/dist/{nylas-provider.entry-a3ad02a5.cjs → nylas-provider.entry-08767da3.cjs} +1 -1
- package/dist/{nylas-provider.entry-c206aa32.js → nylas-provider.entry-c61428b1.js} +8 -8
- package/dist/{nylas-reminder-emails.entry-414ce6fe.js → nylas-reminder-emails.entry-cd8e1d2e.js} +9 -9
- package/dist/{nylas-reminder-emails.entry-59c07bfe.cjs → nylas-reminder-emails.entry-d42a7f1d.cjs} +2 -2
- package/dist/{nylas-reminder-time_2.entry-197d83a0.js → nylas-reminder-time_2.entry-d7115393.js} +5 -5
- package/dist/{nylas-reminder-time_2.entry-d79dcd85.cjs → nylas-reminder-time_2.entry-e5540fdd.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-7f389982.js → nylas-scheduler-editor.entry-65eb4938.js} +64 -64
- package/dist/nylas-scheduler-editor.entry-67904653.cjs +2 -0
- package/dist/{nylas-scheduling.entry-1a8bd6fc.cjs → nylas-scheduling.entry-50e41d85.cjs} +1 -1
- package/dist/{nylas-scheduling.entry-4fa5381d.js → nylas-scheduling.entry-7aad4f63.js} +4 -4
- package/dist/{nylas-threads-refresh.entry-56b53449.cjs → nylas-threads-refresh.entry-1b8befab.cjs} +1 -1
- package/dist/{nylas-threads-refresh.entry-20602e7b.js → nylas-threads-refresh.entry-d025575a.js} +4 -4
- package/dist/{nylas-threads-search.entry-8e0ec3ae.cjs → nylas-threads-search.entry-78c06183.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-8872473c.js → nylas-threads-search.entry-a254c36e.js} +16 -16
- package/dist/{nylas-time-window-picker.entry-ca47f721.cjs → nylas-time-window-picker.entry-30baeb50.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-9ac542b7.js → nylas-time-window-picker.entry-89c15823.js} +18 -18
- package/dist/{nylas-view-thread.entry-1f758e43.cjs → nylas-view-thread.entry-939a4561.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-dcd3d5be.js → nylas-view-thread.entry-c8d56573.js} +9 -9
- package/dist/{person-icon.entry-63b28ace.cjs → person-icon.entry-5ab75598.cjs} +1 -1
- package/dist/{person-icon.entry-93130c05.js → person-icon.entry-8aef4041.js} +2 -2
- package/dist/play-icon_2.entry-392ad303.cjs +1 -0
- package/dist/{play-icon_2.entry-6a99c32d.js → play-icon_2.entry-4b068c1b.js} +8 -8
- package/dist/react.cjs +1 -1
- package/dist/react.js +100 -99
- package/dist/{refresh-icon.entry-b49792fc.cjs → refresh-icon.entry-9ea254c9.cjs} +1 -1
- package/dist/{refresh-icon.entry-84783c91.js → refresh-icon.entry-a754a2b5.js} +4 -4
- package/dist/{register-component-887199a9-003f96c5.cjs → register-component-ea95564d-ab3d630f.cjs} +1 -1
- package/dist/{register-component-887199a9-b41dfa7a.js → register-component-ea95564d-e19ec159.js} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-a5e3433a.cjs → scheduler-config-store-2a3b403d-4e10b542.cjs} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-73610089.js → scheduler-config-store-2a3b403d-581c70cf.js} +1 -1
- package/dist/scheduler-store-9ff4914b-6e28240e.cjs +1 -0
- package/dist/{scheduler-store-fe281404-bddb1b6a.js → scheduler-store-9ff4914b-b71a0aca.js} +87 -82
- package/dist/textarea-component.entry-70bb02bf.cjs +1 -0
- package/dist/{textarea-component.entry-40e959e5.js → textarea-component.entry-a5daab6c.js} +10 -9
- package/dist/time-period-selector.entry-25348de7.js +80 -0
- package/dist/time-period-selector.entry-6306e456.cjs +1 -0
- package/dist/{translate-icon.entry-a2ed4f76.cjs → translate-icon.entry-785fa109.cjs} +1 -1
- package/dist/{translate-icon.entry-92b83635.js → translate-icon.entry-b6094ecc.js} +4 -4
- package/dist/{warning-icon.entry-19f721c3.js → warning-icon.entry-4b400ee2.js} +4 -4
- package/dist/{warning-icon.entry-3ab9a59e.cjs → warning-icon.entry-94e34c58.cjs} +1 -1
- package/package.json +2 -2
- package/dist/add-circle-icon_2.entry-7165bd0e.js +0 -25
- package/dist/add-circle-icon_2.entry-f1ddca18.cjs +0 -1
- package/dist/arrow-icon.entry-38949317.js +0 -15
- package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +0 -7
- package/dist/checkbox-component_2.entry-00b6a1e9.cjs +0 -1
- package/dist/chevron-icon_3.entry-468abc26.cjs +0 -1
- package/dist/document-refresh-icon.entry-4bf6398b.js +0 -15
- package/dist/google-logo-icon_4.entry-fa2b8999.cjs +0 -1
- package/dist/index-53420959-5fc8ad2b.js +0 -5
- package/dist/index-53420959-fcf45780.cjs +0 -1
- package/dist/index-5ccfd9df.js +0 -7859
- package/dist/index-6d9eeb53-58c8980a.js +0 -4971
- package/dist/index-6d9eeb53-b2a6d09f.cjs +0 -41
- package/dist/index-eb33703c.cjs +0 -42
- package/dist/input-component.entry-378b1ccc.cjs +0 -1
- package/dist/input-dropdown.entry-98954c93.cjs +0 -1
- package/dist/multi-select-dropdown.entry-40b855e1.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-9d693125.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-f1c6964a.cjs +0 -2
- package/dist/play-icon_2.entry-b67fb649.cjs +0 -1
- package/dist/scheduler-store-fe281404-c3e477f6.cjs +0 -1
- package/dist/textarea-component.entry-28c4bc05.cjs +0 -1
- package/dist/time-period-selector.entry-af71523a.cjs +0 -1
- package/dist/time-period-selector.entry-da5d8652.js +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ae,
|
|
1
|
+
import { i as ae, Z as C, r as oe, c as X, _ as B, $ as V, a0 as G, a1 as q, h as k, H as he, g as me } from "./index-a134f625.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
var J = { exports: {} };
|
|
@@ -6,7 +6,7 @@ var J = { exports: {} };
|
|
|
6
6
|
(function(n, i) {
|
|
7
7
|
e.exports = i();
|
|
8
8
|
})(ae, function() {
|
|
9
|
-
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d\d/, o = /\d\d?/, v = /\d*[^-_:/,()\s\d]+/, x = {},
|
|
9
|
+
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d\d/, o = /\d\d?/, v = /\d*[^-_:/,()\s\d]+/, x = {}, W = function(s) {
|
|
10
10
|
return (s = +s) + (s > 68 ? 1900 : 2e3);
|
|
11
11
|
}, l = function(s) {
|
|
12
12
|
return function(a) {
|
|
@@ -22,7 +22,7 @@ var J = { exports: {} };
|
|
|
22
22
|
}], P = function(s) {
|
|
23
23
|
var a = x[s];
|
|
24
24
|
return a && (a.indexOf ? a : a.s.concat(a.f));
|
|
25
|
-
},
|
|
25
|
+
}, j = function(s, a) {
|
|
26
26
|
var h, m = x.meridiem;
|
|
27
27
|
if (m) {
|
|
28
28
|
for (var f = 1; f <= 24; f += 1)
|
|
@@ -34,9 +34,9 @@ var J = { exports: {} };
|
|
|
34
34
|
h = s === (a ? "pm" : "PM");
|
|
35
35
|
return h;
|
|
36
36
|
}, Q = { A: [v, function(s) {
|
|
37
|
-
this.afternoon =
|
|
37
|
+
this.afternoon = j(s, !1);
|
|
38
38
|
}], a: [v, function(s) {
|
|
39
|
-
this.afternoon =
|
|
39
|
+
this.afternoon = j(s, !0);
|
|
40
40
|
}], S: [/\d/, function(s) {
|
|
41
41
|
this.milliseconds = 100 * +s;
|
|
42
42
|
}], SS: [r, function(s) {
|
|
@@ -61,7 +61,7 @@ var J = { exports: {} };
|
|
|
61
61
|
throw new Error();
|
|
62
62
|
this.month = a % 12 || a;
|
|
63
63
|
}], Y: [/[+-]?\d+/, l("year")], YY: [r, function(s) {
|
|
64
|
-
this.year =
|
|
64
|
+
this.year = W(s);
|
|
65
65
|
}], YYYY: [/\d{4}/, l("year")], Z: U, ZZ: U };
|
|
66
66
|
function ee(s) {
|
|
67
67
|
var a, h;
|
|
@@ -95,7 +95,7 @@ var J = { exports: {} };
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
return function(s, a, h) {
|
|
98
|
-
h.p.customParseFormat = !0, s && s.parseTwoDigitYear && (
|
|
98
|
+
h.p.customParseFormat = !0, s && s.parseTwoDigitYear && (W = s.parseTwoDigitYear);
|
|
99
99
|
var m = a.prototype, f = m.parse;
|
|
100
100
|
m.parse = function(p) {
|
|
101
101
|
var L = p.date, I = p.utc, y = p.args;
|
|
@@ -107,10 +107,10 @@ var J = { exports: {} };
|
|
|
107
107
|
try {
|
|
108
108
|
if (["x", "X"].indexOf(A) > -1)
|
|
109
109
|
return new Date((A === "X" ? 1e3 : 1) * E);
|
|
110
|
-
var c = ee(A)(E), Y = c.year, O = c.month, te = c.day, ie = c.hours, se = c.minutes, ne = c.seconds, re = c.milliseconds,
|
|
110
|
+
var c = ee(A)(E), Y = c.year, O = c.month, te = c.day, ie = c.hours, se = c.minutes, ne = c.seconds, re = c.milliseconds, N = c.zone, z = /* @__PURE__ */ new Date(), F = te || (Y || O ? 1 : z.getDate()), H = Y || z.getFullYear(), $ = 0;
|
|
111
111
|
Y && !O || ($ = O > 0 ? O - 1 : z.getMonth());
|
|
112
|
-
var K = ie || 0, Z = se || 0, R = ne || 0,
|
|
113
|
-
return
|
|
112
|
+
var K = ie || 0, Z = se || 0, R = ne || 0, _ = re || 0;
|
|
113
|
+
return N ? new Date(Date.UTC(H, $, F, K, Z, R, _ + 60 * N.offset * 1e3)) : M ? new Date(Date.UTC(H, $, F, K, Z, R, _)) : new Date(H, $, F, K, Z, R, _);
|
|
114
114
|
} catch {
|
|
115
115
|
return /* @__PURE__ */ new Date("");
|
|
116
116
|
}
|
|
@@ -135,7 +135,7 @@ const le = J.exports, de = ':host{display:block;position:relative;--nylas-primar
|
|
|
135
135
|
C.extend(le);
|
|
136
136
|
const ue = class {
|
|
137
137
|
constructor(e) {
|
|
138
|
-
oe(this, e), this.timeChange =
|
|
138
|
+
oe(this, e), this.timeChange = X(this, "timeChange", 7), this.formError = X(this, "formError", 7), this.time = void 0, this.minimumStartTime = null, this.placeholder = "hh:mmam/pm", this.name = void 0, this.hasError = !1, this.err = "", this.showTimes = !1, this.ariaActivedescendant = "", this.times = this.generateTimes(), this.shouldAutoScroll = !1;
|
|
139
139
|
}
|
|
140
140
|
handleOutsideClick(e) {
|
|
141
141
|
!e.composedPath().includes(this.el) && this.showTimes && (this.showTimes = !1);
|
|
@@ -153,7 +153,7 @@ const ue = class {
|
|
|
153
153
|
}
|
|
154
154
|
componentDidRender() {
|
|
155
155
|
if (this.showTimes && this.shouldAutoScroll) {
|
|
156
|
-
const e =
|
|
156
|
+
const e = B(this.time), t = this.times.findIndex((n) => n.value === e);
|
|
157
157
|
t > -1 && (this.shouldAutoScroll = !1, this.scrollToViewWithinParent(t));
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
@@ -163,7 +163,7 @@ const ue = class {
|
|
|
163
163
|
n[0] === "00" && n[1].slice(-2) == "pm" && (this.err = "Invalid", this.formError.emit({
|
|
164
164
|
key: this.el.id,
|
|
165
165
|
message: "Invalid"
|
|
166
|
-
})),
|
|
166
|
+
})), V(t) ? (this.err = "", this.formError.emit({
|
|
167
167
|
key: this.el.id,
|
|
168
168
|
message: ""
|
|
169
169
|
})) : (this.err = "Invalid", this.formError.emit({
|
|
@@ -177,7 +177,7 @@ const ue = class {
|
|
|
177
177
|
handleTimeAutocomplete(e) {
|
|
178
178
|
var n;
|
|
179
179
|
const t = (n = e.target) == null ? void 0 : n.value;
|
|
180
|
-
if (!
|
|
180
|
+
if (!V(t)) {
|
|
181
181
|
this.err = "Invalid", this.formError.emit({
|
|
182
182
|
key: this.el.id,
|
|
183
183
|
message: "Invalid"
|
|
@@ -193,7 +193,7 @@ const ue = class {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (!q(t)) {
|
|
196
|
-
const i =
|
|
196
|
+
const i = B(t);
|
|
197
197
|
this.timeChange.emit({
|
|
198
198
|
key: this.el.id,
|
|
199
199
|
value: i
|
|
@@ -208,14 +208,14 @@ const ue = class {
|
|
|
208
208
|
handleOnInput(e) {
|
|
209
209
|
var n;
|
|
210
210
|
const t = (n = e.target) == null ? void 0 : n.value;
|
|
211
|
-
if (
|
|
211
|
+
if (V(t)) {
|
|
212
212
|
if (t === "") {
|
|
213
213
|
const i = G().format("hh:mma"), r = this.times.findIndex((o) => o.value === i);
|
|
214
214
|
r > -1 && this.scrollToViewWithinParent(r);
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
if (!q(t)) {
|
|
218
|
-
const i =
|
|
218
|
+
const i = B(t), r = this.times.findIndex((o) => o.value === i);
|
|
219
219
|
r > -1 && this.scrollToViewWithinParent(r);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
@@ -290,7 +290,7 @@ const ue = class {
|
|
|
290
290
|
i && (i.focus(), i.scrollIntoView({ behavior: "smooth", block: "nearest" }));
|
|
291
291
|
}
|
|
292
292
|
render() {
|
|
293
|
-
return k(he, { key: "
|
|
293
|
+
return k(he, { key: "efbf43a69aaa2bb323ca70eba72dec4245b8e103" }, k("div", { key: "0a366760ae64c61e4b61f973f8fe1150f2c4ec33", class: "time-picker", part: "time-picker" }, k("input", { key: "21c71cd1390364c13c9e7c72c5cd975df42b9c52", type: "text", name: this.name, id: this.name, part: "time-input", class: {
|
|
294
294
|
"time-input": !0,
|
|
295
295
|
error: !!this.err || this.hasError
|
|
296
296
|
}, ref: (e) => this.timeInput = e, value: this.time, onClick: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-eb33703c.cjs"),w=require("./register-component-887199a9-003f96c5.cjs");require("react");require("react-dom");function b(t,a,s,o,r){if(!o||!s||s.children.length>0)return;e.debug("[nylas-view-thread] Rendering email",{message:t,attachments:a,viewEmailElement:o});const n=o.cloneNode(!0);n.message=t.data,n.parent=r,s.appendChild(n)}const c=({viewEmailElement:t,message:a,attachments:s,onMessageClick:o,onShowContactDataClick:r,parent:n})=>{var l,i,d,g,u,v,y;return e.h(e.Fragment,null,e.h("div",{key:a.id,class:"message"},e.h("div",{class:"sub-header","data-id":a.data.id,onClick:o},e.h("div",{class:"avatar"},a.data.from&&((l=a.data.from[0])==null?void 0:l.name)&&((d=(i=a.data.from[0])==null?void 0:i.name[0])==null?void 0:d.toUpperCase())),e.h("div",{class:"from"},e.h("span",{class:"name"},a.data.from&&((g=a.data.from[0])==null?void 0:g.name))," ",e.h("span",{class:"email"},a.data.from&&((u=a.data.from[0])==null?void 0:u.email))),e.h("div",{class:"date"},new Date(a.data.date*1e3).toLocaleTimeString(void 0,{timeStyle:"short"})," ","(",e.formatTimeAgo(new Date(a.data.date*1e3)),")"),e.h("sp-button-group",{class:"buttons"},e.h("nylas-summarize-message-button",{message:a.data})),a.collapse&&e.h("div",{class:"snippet"},a.data.snippet),!a.collapse&&a.data.to&&e.h("div",{class:"to"},e.h("span",null,"to")," ",e.formatParticipants(a.data.to)," ",e.h("button",{type:"button",value:a.data.id,onClick:r,class:{expand:!0,"expand--showContactData":a.showContactData}},e.h("chevron-icon",null)))),a.showContactData&&e.h("div",{class:"address-info"},e.h("div",{class:"label"},"From"),e.h("div",{class:"value"},e.formatRecipient((v=a.data)!=null&&v.from?(y=a==null?void 0:a.data)==null?void 0:y.from[0]:{name:"",email:""})),a.data.to&&e.h(e.Fragment,null,e.h("div",{class:"label"},"To"),e.h("div",{class:"value"},a.data.to.map(h=>e.h("div",null,e.formatRecipient(h))))),typeof a.data.cc<"u"&&a.data.cc.length>0&&e.h(e.Fragment,null,e.h("div",{class:"label"},"CC"),e.h("div",{class:"value"},a.data.cc.map(h=>e.h("div",null,e.formatRecipient(h)))))),!a.collapse&&t&&e.h("div",{key:a.id,ref:h=>b(a,s,h,t,n)}),!a.collapse&&!t&&e.h("nylas-view-email",{key:a.id,message:a.data,parent:n})),e.h("hr",null))},f=':host{display:block;font-size:inherit}.avatar{z-index:1;border-radius:100%;background-color:var(--nylas-color-primary-200);height:40px;width:40px;align-items:center;display:flex;justify-content:center;border:1px solid var(--nylas-color-primary-200)}.view-thread{display:grid;grid-auto-flow:row;width:100%}.view-thread .header{display:grid;grid-gap:1rem;align-items:center;margin-bottom:1rem}.view-thread .header .subject{font-size:1.25rem;font-weight:600;line-height:1.5rem}.view-thread .header .folders{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;overflow-x:auto;gap:1rem}.view-thread .header .folders .folder{padding:0 0.5rem;font-size:0.9rem;color:var(--nylas-color-primary-900);background-color:var(--nylas-color-primary-300)}.view-thread .messages{display:grid;gap:1rem}.view-thread .messages hr{margin:0;width:100%;border:1px solid var(--nylas-color-primary-200)}.view-thread .messages hr:last-of-type{display:none}.view-thread .messages .message{display:grid;grid-auto-flow:row;gap:1rem}.view-thread .messages .message:last-of-type .sub-header{cursor:default}.view-thread .messages .message .sub-header{display:grid;grid-template:"avatar from date buttons" "avatar to to buttons";grid-column-gap:1rem;grid-template-columns:auto 1fr auto auto;cursor:pointer}.view-thread .messages .message .sub-header>*{pointer-events:none}.view-thread .messages .message .sub-header .avatar{grid-area:avatar}.view-thread .messages .message .sub-header .from{grid-area:from}.view-thread .messages .message .sub-header .from span.email{display:none;color:var(--nylas-color-primary-400);font-weight:600}.view-thread .messages .message .sub-header .buttons{grid-area:buttons;align-self:center}.view-thread .messages .message .sub-header .buttons *{pointer-events:all}.view-thread .messages .message .sub-header .date{grid-area:date;align-self:center;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .snippet{width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--nylas-color-primary-600)}.view-thread .messages .message .sub-header .to{grid-area:to;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to>span{color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to button{border:0;background-color:transparent;cursor:pointer;pointer-events:all;padding:0;margin:0}.view-thread .messages .message .sub-header .to button>*{pointer-events:none}.view-thread .messages .message .sub-header .to button chevron-icon{display:inline-table;fill:var(--nylas-color-primary-400);width:15px;height:15px;vertical-align:middle}.view-thread .messages .message .sub-header .to button chevron-icon svg{width:15px;height:15px;transform:rotate(90deg)}.view-thread .messages .message .sub-header .to button.expand--showContactData chevron-icon svg{transform:rotate(270deg)}.view-thread .messages .message .address-info{display:grid;column-gap:1rem;row-gap:0.5rem;grid-template-columns:auto 1fr;grid-template-rows:1fr;padding:1rem 2rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-color-primary-200);align-items:flex-start;color:var(--nylas-color-primary-600)}.view-thread .messages .message .address-info .label{color:var(--nylas-color-primary-400);font-weight:600}.show-more{position:relative;display:flex;width:100%}.show-more .sr-only{display:none}.show-more button{position:relative;display:inline-flex;width:100%;padding:0;border:0;background-color:transparent;cursor:pointer;text-align:left;overflow:hidden}.show-more button span{border:1px solid var(--nylas-color-primary-400)}.show-more button:hover span{background-color:var(--nylas-color-primary-700)}.show-more button::after{border-top:1px solid rgba(100, 121, 143, 0.122);border-bottom:1px solid rgba(100, 121, 143, 0.122);content:"";height:4px;width:100%;position:absolute;top:50%}.loading{position:absolute;width:100%;height:100%;background-color:var(--loading__background-color);top:0;bottom:0;left:0;z-index:1;display:grid;justify-content:center;align-items:center;font-weight:600;overflow:hidden}.reply-buttons{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;gap:1rem;margin-top:1rem}.reply-buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.reply-buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.reply-buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.reply-buttons sp-button chevron-icon{display:inline-block}@media only screen and (min-width: 768px){.view-thread .messages .message .sub-header .from span.email{display:inline}}',C=f;var k=function(t,a,s,o){var r=arguments.length,n=r<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,a,s,o);else for(var i=t.length-1;i>=0;i--)(l=t[i])&&(n=(r<3?l(n):r>3?l(a,s,n):l(a,s))||n);return r>3&&n&&Object.defineProperty(a,s,n),n},m=function(t,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,a)};const p=class{constructor(t){e.registerInstance(this,t),this.threadSelected=e.createEvent(this,"threadSelected",7),this.showContactDataClicked=e.createEvent(this,"showContactDataClicked",7),this.messageClicked=e.createEvent(this,"messageClicked",7),this.nylasViewEmailElement=null,this.nylasComposerElement=null,this.onShowContactDataClick=a=>{a.stopPropagation();const o=a.target.value,r=this.internalMessages.find(l=>l.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.showContactDataClicked.emit(r.data).defaultPrevented||(r.showContactData=!r.showContactData,this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] show contact data clicked ${o} ${r.showContactData?"collapsed":"expanded"}`)},this.onMessageClick=a=>{var l;const o=a.target.dataset.id,r=this.internalMessages.find(i=>i.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.messageClicked.emit(r.data).defaultPrevented||(r.id!==((l=this.internalMessages[this.internalMessages.length-1])==null?void 0:l.id)&&(r.collapse=!r.collapse,r.collapse&&(r.showContactData=!1)),this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] message clicked ${o} ${r.collapse?"collapsed":"expanded"}`)},this.onShowAllEmailsClick=()=>{this.showAllEmails=!this.showAllEmails},this.showComposerClick=()=>{this.showComposer=!this.showComposer},this.draft=void 0,this.thread=void 0,this.messages=[],this.attachments=[],this.state="loading",this.internalMessages=[],this.showAllEmails=!1,this.showComposer=!1}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){e.debug("[nylas-view-thread] Component will load"),this.updateInternalMessages(this.messages);const t=this.host.querySelector("template.nylas-view-email");if(!t){e.debug("[nylas-view-thread] Could not find template");return}const a=document.importNode(t.content,!0);this.nylasViewEmailElement=a.querySelector("nylas-view-email");const s=this.host.querySelector("template.nylas-composer");if(!s){e.debug("[nylas-view-thread] Could not find composer template");return}const o=document.importNode(s.content,!0);this.nylasComposerElement=o.querySelector("nylas-composer")}async componentDidLoad(){e.debug("[nylas-view-thread] Component did load")}async threadChanged(t){e.debug("[nylas-view-thread] Thread changed",{thread:t}),this.internalMessages=[],this.threadSelected.emit(t).defaultPrevented||e.debug("[nylas-view-thread] Default event not prevented, initializing")}updateInternalMessages(t){e.debug("[nylas-view-thread] Updating internal messages",{messages:t});const a=t.sort((s,o)=>s.date>o.date?1:-1).map((s,o)=>({id:s.id,data:s,collapse:o!==t.length-1,showContactData:!1}));this.internalMessages=a}render(){var r,n,l;const t=this.internalMessages.length>2?this.internalMessages[0]:null,a=this.internalMessages.slice(this.internalMessages.length-2,this.internalMessages.length),s=this.internalMessages.slice(1,this.internalMessages.length-2),o=this.internalMessages[this.internalMessages.length-1];return e.h(e.Host,{key:"8ded7fac7238425d362b59a6754cc8c0ee36dc13"},e.h("sp-theme",{key:"709b8e7877cb108bb09199db5ba6306ea9b130a0",scale:"medium",color:"dark"},e.h("div",{key:"19d5912e09475417c50b27b24979e5337806b94c",class:"view-thread"},e.h("div",{key:"46c2022b7a45b8d05f8f23068828579b4294fee4",class:"header"},e.h("div",{key:"5e748e44ef6683d4215fbe0afff040f2091e376c",class:"subject"},(r=this.thread)==null?void 0:r.subject),e.h("div",{key:"3106d62c0ecf951ccf58fd32bb171ae4ce846909",class:"folders"},(l=(n=this.thread)==null?void 0:n.folders)==null?void 0:l.map(i=>e.h("sp-tag",{size:"s"},e.toTitleCase(i.replace("CATEGORY_","").replace("_"," ")))))),e.h("div",{key:"f2c2bfb336520c4dafa6597c417efee372648354",class:"messages"},t&&e.h(c,{message:t,attachments:this.attachments.filter(i=>i.messageId===t.id),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}),s.length>0&&this.messages.length>1&&!this.showAllEmails&&a.length>0&&e.h(e.Fragment,null,e.h("div",{class:"show-more"},e.h("button",{type:"button",onClick:this.onShowAllEmailsClick},e.h("span",{class:"avatar"},s.length)," ",e.h("span",{class:"sr-only"},"Show ",s.length," more emails"))),e.h("hr",null)),s.length>0&&this.showAllEmails&&this.messages.length>2&&s.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement})),a.length>0&&a.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}))),!(this.showComposer&&o)&&e.h("div",{class:"reply-buttons"},e.h("sp-button",{variant:"cta",type:"button",onClick:this.showComposerClick},e.h("span",{slot:"icon"},e.h("reply-icon",null)),e.h("span",null,"Reply")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("reply-all-icon",null)),e.h("span",null,"Reply All")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("forward-icon",null)),e.h("span",null,"Forward"))),this.showComposer&&o&&e.h("div",{class:"composer"},e.h("nylas-composer",{message:o.data,onClose:this.showComposerClick,onSend:i=>{e.debug("[nylas-view-thread] Send event",{message:i.detail.message,replyBody:i.detail.replyBody})}})))))}get host(){return e.getElement(this)}static get watchers(){return{thread:["threadChanged"],messages:["updateInternalMessages"]}}};k([w.RegisterComponent({name:"nylas-view-thread",stateToProps:new Map([["mailbox.selectedThread","thread"],["mailbox.messages","messages"],["mailbox.state","state"]]),eventToProps:{threadSelected:async(t,a)=>{e.debug("[nylas-view-thread] Nylas init event. Fetching thread messages.",{event:t});const s=t.detail;s&&s.id&&await a.messages.getThreadMessages(s.id)}},fireRegisterEvent:!0}),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],p.prototype,"render",null);p.style=C;exports.nylas_view_thread=p;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2a53b6a8.cjs"),w=require("./register-component-ea95564d-ab3d630f.cjs");require("react");require("react-dom");function f(t,a,s,o,r){if(!o||!s||s.children.length>0)return;e.debug("[nylas-view-thread] Rendering email",{message:t,attachments:a,viewEmailElement:o});const n=o.cloneNode(!0);n.message=t.data,n.parent=r,s.appendChild(n)}const c=({viewEmailElement:t,message:a,attachments:s,onMessageClick:o,onShowContactDataClick:r,parent:n})=>{var l,i,d,g,u,v,y;return e.h(e.Fragment,null,e.h("div",{key:a.id,class:"message"},e.h("div",{class:"sub-header","data-id":a.data.id,onClick:o},e.h("div",{class:"avatar"},a.data.from&&((l=a.data.from[0])==null?void 0:l.name)&&((d=(i=a.data.from[0])==null?void 0:i.name[0])==null?void 0:d.toUpperCase())),e.h("div",{class:"from"},e.h("span",{class:"name"},a.data.from&&((g=a.data.from[0])==null?void 0:g.name))," ",e.h("span",{class:"email"},a.data.from&&((u=a.data.from[0])==null?void 0:u.email))),e.h("div",{class:"date"},new Date(a.data.date*1e3).toLocaleTimeString(void 0,{timeStyle:"short"})," ","(",e.formatTimeAgo(new Date(a.data.date*1e3)),")"),e.h("sp-button-group",{class:"buttons"},e.h("nylas-summarize-message-button",{message:a.data})),a.collapse&&e.h("div",{class:"snippet"},a.data.snippet),!a.collapse&&a.data.to&&e.h("div",{class:"to"},e.h("span",null,"to")," ",e.formatParticipants(a.data.to)," ",e.h("button",{type:"button",value:a.data.id,onClick:r,class:{expand:!0,"expand--showContactData":a.showContactData}},e.h("chevron-icon",null)))),a.showContactData&&e.h("div",{class:"address-info"},e.h("div",{class:"label"},"From"),e.h("div",{class:"value"},e.formatRecipient((v=a.data)!=null&&v.from?(y=a==null?void 0:a.data)==null?void 0:y.from[0]:{name:"",email:""})),a.data.to&&e.h(e.Fragment,null,e.h("div",{class:"label"},"To"),e.h("div",{class:"value"},a.data.to.map(h=>e.h("div",null,e.formatRecipient(h))))),typeof a.data.cc<"u"&&a.data.cc.length>0&&e.h(e.Fragment,null,e.h("div",{class:"label"},"CC"),e.h("div",{class:"value"},a.data.cc.map(h=>e.h("div",null,e.formatRecipient(h)))))),!a.collapse&&t&&e.h("div",{key:a.id,ref:h=>f(a,s,h,t,n)}),!a.collapse&&!t&&e.h("nylas-view-email",{key:a.id,message:a.data,parent:n})),e.h("hr",null))},b=':host{display:block;font-size:inherit}.avatar{z-index:1;border-radius:100%;background-color:var(--nylas-color-primary-200);height:40px;width:40px;align-items:center;display:flex;justify-content:center;border:1px solid var(--nylas-color-primary-200)}.view-thread{display:grid;grid-auto-flow:row;width:100%}.view-thread .header{display:grid;grid-gap:1rem;align-items:center;margin-bottom:1rem}.view-thread .header .subject{font-size:1.25rem;font-weight:600;line-height:1.5rem}.view-thread .header .folders{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;overflow-x:auto;gap:1rem}.view-thread .header .folders .folder{padding:0 0.5rem;font-size:0.9rem;color:var(--nylas-color-primary-900);background-color:var(--nylas-color-primary-300)}.view-thread .messages{display:grid;gap:1rem}.view-thread .messages hr{margin:0;width:100%;border:1px solid var(--nylas-color-primary-200)}.view-thread .messages hr:last-of-type{display:none}.view-thread .messages .message{display:grid;grid-auto-flow:row;gap:1rem}.view-thread .messages .message:last-of-type .sub-header{cursor:default}.view-thread .messages .message .sub-header{display:grid;grid-template:"avatar from date buttons" "avatar to to buttons";grid-column-gap:1rem;grid-template-columns:auto 1fr auto auto;cursor:pointer}.view-thread .messages .message .sub-header>*{pointer-events:none}.view-thread .messages .message .sub-header .avatar{grid-area:avatar}.view-thread .messages .message .sub-header .from{grid-area:from}.view-thread .messages .message .sub-header .from span.email{display:none;color:var(--nylas-color-primary-400);font-weight:600}.view-thread .messages .message .sub-header .buttons{grid-area:buttons;align-self:center}.view-thread .messages .message .sub-header .buttons *{pointer-events:all}.view-thread .messages .message .sub-header .date{grid-area:date;align-self:center;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .snippet{width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--nylas-color-primary-600)}.view-thread .messages .message .sub-header .to{grid-area:to;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to>span{color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to button{border:0;background-color:transparent;cursor:pointer;pointer-events:all;padding:0;margin:0}.view-thread .messages .message .sub-header .to button>*{pointer-events:none}.view-thread .messages .message .sub-header .to button chevron-icon{display:inline-table;fill:var(--nylas-color-primary-400);width:15px;height:15px;vertical-align:middle}.view-thread .messages .message .sub-header .to button chevron-icon svg{width:15px;height:15px;transform:rotate(90deg)}.view-thread .messages .message .sub-header .to button.expand--showContactData chevron-icon svg{transform:rotate(270deg)}.view-thread .messages .message .address-info{display:grid;column-gap:1rem;row-gap:0.5rem;grid-template-columns:auto 1fr;grid-template-rows:1fr;padding:1rem 2rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-color-primary-200);align-items:flex-start;color:var(--nylas-color-primary-600)}.view-thread .messages .message .address-info .label{color:var(--nylas-color-primary-400);font-weight:600}.show-more{position:relative;display:flex;width:100%}.show-more .sr-only{display:none}.show-more button{position:relative;display:inline-flex;width:100%;padding:0;border:0;background-color:transparent;cursor:pointer;text-align:left;overflow:hidden}.show-more button span{border:1px solid var(--nylas-color-primary-400)}.show-more button:hover span{background-color:var(--nylas-color-primary-700)}.show-more button::after{border-top:1px solid rgba(100, 121, 143, 0.122);border-bottom:1px solid rgba(100, 121, 143, 0.122);content:"";height:4px;width:100%;position:absolute;top:50%}.loading{position:absolute;width:100%;height:100%;background-color:var(--loading__background-color);top:0;bottom:0;left:0;z-index:1;display:grid;justify-content:center;align-items:center;font-weight:600;overflow:hidden}.reply-buttons{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;gap:1rem;margin-top:1rem}.reply-buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.reply-buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.reply-buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.reply-buttons sp-button chevron-icon{display:inline-block}@media only screen and (min-width: 768px){.view-thread .messages .message .sub-header .from span.email{display:inline}}',C=b;var k=function(t,a,s,o){var r=arguments.length,n=r<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,a,s,o);else for(var i=t.length-1;i>=0;i--)(l=t[i])&&(n=(r<3?l(n):r>3?l(a,s,n):l(a,s))||n);return r>3&&n&&Object.defineProperty(a,s,n),n},m=function(t,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,a)};const p=class{constructor(t){e.registerInstance(this,t),this.threadSelected=e.createEvent(this,"threadSelected",7),this.showContactDataClicked=e.createEvent(this,"showContactDataClicked",7),this.messageClicked=e.createEvent(this,"messageClicked",7),this.nylasViewEmailElement=null,this.nylasComposerElement=null,this.onShowContactDataClick=a=>{a.stopPropagation();const o=a.target.value,r=this.internalMessages.find(l=>l.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.showContactDataClicked.emit(r.data).defaultPrevented||(r.showContactData=!r.showContactData,this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] show contact data clicked ${o} ${r.showContactData?"collapsed":"expanded"}`)},this.onMessageClick=a=>{var l;const o=a.target.dataset.id,r=this.internalMessages.find(i=>i.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.messageClicked.emit(r.data).defaultPrevented||(r.id!==((l=this.internalMessages[this.internalMessages.length-1])==null?void 0:l.id)&&(r.collapse=!r.collapse,r.collapse&&(r.showContactData=!1)),this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] message clicked ${o} ${r.collapse?"collapsed":"expanded"}`)},this.onShowAllEmailsClick=()=>{this.showAllEmails=!this.showAllEmails},this.showComposerClick=()=>{this.showComposer=!this.showComposer},this.draft=void 0,this.thread=void 0,this.messages=[],this.attachments=[],this.state="loading",this.internalMessages=[],this.showAllEmails=!1,this.showComposer=!1}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){e.debug("[nylas-view-thread] Component will load"),this.updateInternalMessages(this.messages);const t=this.host.querySelector("template.nylas-view-email");if(!t){e.debug("[nylas-view-thread] Could not find template");return}const a=document.importNode(t.content,!0);this.nylasViewEmailElement=a.querySelector("nylas-view-email");const s=this.host.querySelector("template.nylas-composer");if(!s){e.debug("[nylas-view-thread] Could not find composer template");return}const o=document.importNode(s.content,!0);this.nylasComposerElement=o.querySelector("nylas-composer")}async componentDidLoad(){e.debug("[nylas-view-thread] Component did load")}async threadChanged(t){e.debug("[nylas-view-thread] Thread changed",{thread:t}),this.internalMessages=[],this.threadSelected.emit(t).defaultPrevented||e.debug("[nylas-view-thread] Default event not prevented, initializing")}updateInternalMessages(t){e.debug("[nylas-view-thread] Updating internal messages",{messages:t});const a=t.sort((s,o)=>s.date>o.date?1:-1).map((s,o)=>({id:s.id,data:s,collapse:o!==t.length-1,showContactData:!1}));this.internalMessages=a}render(){var r,n,l;const t=this.internalMessages.length>2?this.internalMessages[0]:null,a=this.internalMessages.slice(this.internalMessages.length-2,this.internalMessages.length),s=this.internalMessages.slice(1,this.internalMessages.length-2),o=this.internalMessages[this.internalMessages.length-1];return e.h(e.Host,{key:"bbdec659d5def3c554fe76fe6c4420abe80838d0"},e.h("sp-theme",{key:"a95af5db4617124e6c825c955d995010cbd84306",scale:"medium",color:"dark"},e.h("div",{key:"492bd99bf13e811172c75b0fc1fb4886319e1f01",class:"view-thread"},e.h("div",{key:"e93fc1f77a4041d8567fc12eb385418822cd8464",class:"header"},e.h("div",{key:"ff92914f3ddd5da54b71d489a8e239ed19387dff",class:"subject"},(r=this.thread)==null?void 0:r.subject),e.h("div",{key:"55e7e077a3ba751794f65960e7c76624a440964d",class:"folders"},(l=(n=this.thread)==null?void 0:n.folders)==null?void 0:l.map(i=>e.h("sp-tag",{size:"s"},e.toTitleCase(i.replace("CATEGORY_","").replace("_"," ")))))),e.h("div",{key:"4d9a122375f93b5d02398577c0c1d3af37224c09",class:"messages"},t&&e.h(c,{message:t,attachments:this.attachments.filter(i=>i.messageId===t.id),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}),s.length>0&&this.messages.length>1&&!this.showAllEmails&&a.length>0&&e.h(e.Fragment,null,e.h("div",{class:"show-more"},e.h("button",{type:"button",onClick:this.onShowAllEmailsClick},e.h("span",{class:"avatar"},s.length)," ",e.h("span",{class:"sr-only"},"Show ",s.length," more emails"))),e.h("hr",null)),s.length>0&&this.showAllEmails&&this.messages.length>2&&s.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement})),a.length>0&&a.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}))),!(this.showComposer&&o)&&e.h("div",{class:"reply-buttons"},e.h("sp-button",{variant:"cta",type:"button",onClick:this.showComposerClick},e.h("span",{slot:"icon"},e.h("reply-icon",null)),e.h("span",null,"Reply")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("reply-all-icon",null)),e.h("span",null,"Reply All")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("forward-icon",null)),e.h("span",null,"Forward"))),this.showComposer&&o&&e.h("div",{class:"composer"},e.h("nylas-composer",{message:o.data,onClose:this.showComposerClick,onSend:i=>{e.debug("[nylas-view-thread] Send event",{message:i.detail.message,replyBody:i.detail.replyBody})}})))))}get host(){return e.getElement(this)}static get watchers(){return{thread:["threadChanged"],messages:["updateInternalMessages"]}}};k([w.RegisterComponent({name:"nylas-view-thread",stateToProps:new Map([["mailbox.selectedThread","thread"],["mailbox.messages","messages"],["mailbox.state","state"]]),eventToProps:{threadSelected:async(t,a)=>{e.debug("[nylas-view-thread] Nylas init event. Fetching thread messages.",{event:t});const s=t.detail;s&&s.id&&await a.messages.getThreadMessages(s.id)}},fireRegisterEvent:!0}),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],p.prototype,"render",null);p.style=C;exports.nylas_view_thread=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as k, c as p, d, h as a, t as M, F as m, H as x, g as E,
|
|
2
|
-
import { R as T } from "./register-component-
|
|
1
|
+
import { r as k, c as p, d, h as a, t as M, F as m, H as x, g as E, s as D, a as S, v as g } from "./index-a134f625.js";
|
|
2
|
+
import { R as T } from "./register-component-ea95564d-e19ec159.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function R(t, e, s, o, r) {
|
|
@@ -10,7 +10,7 @@ function R(t, e, s, o, r) {
|
|
|
10
10
|
n.message = t.data, n.parent = r, s.appendChild(n);
|
|
11
11
|
}
|
|
12
12
|
const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o, onShowContactDataClick: r, parent: n }) => {
|
|
13
|
-
var l, i, c,
|
|
13
|
+
var l, i, c, y, w, f, b;
|
|
14
14
|
return a(
|
|
15
15
|
m,
|
|
16
16
|
null,
|
|
@@ -24,7 +24,7 @@ const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o,
|
|
|
24
24
|
a(
|
|
25
25
|
"div",
|
|
26
26
|
{ class: "from" },
|
|
27
|
-
a("span", { class: "name" }, e.data.from && ((
|
|
27
|
+
a("span", { class: "name" }, e.data.from && ((y = e.data.from[0]) == null ? void 0 : y.name)),
|
|
28
28
|
" ",
|
|
29
29
|
a("span", { class: "email" }, e.data.from && ((w = e.data.from[0]) == null ? void 0 : w.email))
|
|
30
30
|
),
|
|
@@ -94,7 +94,7 @@ var _ = function(t, e, s, o) {
|
|
|
94
94
|
for (var i = t.length - 1; i >= 0; i--)
|
|
95
95
|
(l = t[i]) && (n = (r < 3 ? l(n) : r > 3 ? l(e, s, n) : l(e, s)) || n);
|
|
96
96
|
return r > 3 && n && Object.defineProperty(e, s, n), n;
|
|
97
|
-
},
|
|
97
|
+
}, v = function(t, e) {
|
|
98
98
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
99
99
|
return Reflect.metadata(t, e);
|
|
100
100
|
};
|
|
@@ -162,7 +162,7 @@ const C = class {
|
|
|
162
162
|
render() {
|
|
163
163
|
var r, n, l;
|
|
164
164
|
const t = this.internalMessages.length > 2 ? this.internalMessages[0] : null, e = this.internalMessages.slice(this.internalMessages.length - 2, this.internalMessages.length), s = this.internalMessages.slice(1, this.internalMessages.length - 2), o = this.internalMessages[this.internalMessages.length - 1];
|
|
165
|
-
return a(x, { key: "
|
|
165
|
+
return a(x, { key: "bbdec659d5def3c554fe76fe6c4420abe80838d0" }, a("sp-theme", { key: "a95af5db4617124e6c825c955d995010cbd84306", scale: "medium", color: "dark" }, a("div", { key: "492bd99bf13e811172c75b0fc1fb4886319e1f01", class: "view-thread" }, a("div", { key: "e93fc1f77a4041d8567fc12eb385418822cd8464", class: "header" }, a("div", { key: "ff92914f3ddd5da54b71d489a8e239ed19387dff", class: "subject" }, (r = this.thread) == null ? void 0 : r.subject), a("div", { key: "55e7e077a3ba751794f65960e7c76624a440964d", class: "folders" }, (l = (n = this.thread) == null ? void 0 : n.folders) == null ? void 0 : l.map((i) => a("sp-tag", { size: "s" }, M(i.replace("CATEGORY_", "").replace("_", " ")))))), a("div", { key: "4d9a122375f93b5d02398577c0c1d3af37224c09", class: "messages" }, t && a(u, { message: t, attachments: this.attachments.filter((i) => i.messageId === t.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }), s.length > 0 && this.messages.length > 1 && !this.showAllEmails && e.length > 0 && a(m, null, a("div", { class: "show-more" }, a("button", { type: "button", onClick: this.onShowAllEmailsClick }, a("span", { class: "avatar" }, s.length), " ", a("span", { class: "sr-only" }, "Show ", s.length, " more emails"))), a("hr", null)), s.length > 0 && this.showAllEmails && this.messages.length > 2 && s.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), e.length > 0 && e.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }))), !(this.showComposer && o) && a("div", { class: "reply-buttons" }, a("sp-button", { variant: "cta", type: "button", onClick: this.showComposerClick }, a("span", { slot: "icon" }, a("reply-icon", null)), a("span", null, "Reply")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("reply-all-icon", null)), a("span", null, "Reply All")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("forward-icon", null)), a("span", null, "Forward"))), this.showComposer && o && a("div", { class: "composer" }, a("nylas-composer", { message: o.data, onClose: this.showComposerClick, onSend: (i) => {
|
|
166
166
|
d("[nylas-view-thread] Send event", { message: i.detail.message, replyBody: i.detail.replyBody });
|
|
167
167
|
} })))));
|
|
168
168
|
}
|
|
@@ -193,9 +193,9 @@ _([
|
|
|
193
193
|
},
|
|
194
194
|
fireRegisterEvent: !0
|
|
195
195
|
}),
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
v("design:type", Function),
|
|
197
|
+
v("design:paramtypes", []),
|
|
198
|
+
v("design:returntype", void 0)
|
|
199
199
|
], C.prototype, "render", null);
|
|
200
200
|
C.style = V;
|
|
201
201
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2a53b6a8.cjs");require("react");require("react-dom");const r=".sc-person-icon-h{display:flex}",i=r,t=class{constructor(s){e.registerInstance(this,s),this.width="14",this.height="16"}render(){return e.h("svg",{key:"0a47e6585ae19ad96e3c57b2aec1547798fe7abc",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5aba35e97caadb061d6948c4f5ffc9390b2cd223",d:"M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z",fill:"currentColor"}))}};t.style=i;exports.person_icon=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, h as t } from "./index-
|
|
1
|
+
import { r as s, h as t } from "./index-a134f625.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const o = ".sc-person-icon-h{display:flex}", r = o, C = class {
|
|
@@ -6,7 +6,7 @@ const o = ".sc-person-icon-h{display:flex}", r = o, C = class {
|
|
|
6
6
|
s(this, e), this.width = "14", this.height = "16";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
9
|
+
return t("svg", { key: "0a47e6585ae19ad96e3c57b2aec1547798fe7abc", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "5aba35e97caadb061d6948c4f5ffc9390b2cd223", d: "M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z", fill: "currentColor" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
C.style = r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-2a53b6a8.cjs");require("react");require("react-dom");const o=".sc-play-icon-h{display:flex}",n=o,s=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"03aeffce3f9f6d60a15e334e51d4b8473724937a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"b150b7c852caa549be48caaf60e46bc442b15960",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=n;const h=".sc-stop-icon-h{display:flex}",r=h,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"21ddd8a23141367d02d6118b65e083a7c35fdae3",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"087eb49291f67ff7d7d536114007d200a86c61e9",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=r;exports.play_icon=s;exports.stop_icon=i;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { r as o, h as t } from "./index-
|
|
1
|
+
import { r as o, h as t } from "./index-a134f625.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const e = ".sc-play-icon-h{display:flex}", i = e,
|
|
4
|
+
const e = ".sc-play-icon-h{display:flex}", i = e, h = class {
|
|
5
5
|
constructor(s) {
|
|
6
6
|
o(this, s), this.width = "15", this.height = "15";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
9
|
+
return t("svg", { key: "03aeffce3f9f6d60a15e334e51d4b8473724937a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "b150b7c852caa549be48caaf60e46bc442b15960", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
const
|
|
12
|
+
h.style = i;
|
|
13
|
+
const n = ".sc-stop-icon-h{display:flex}", c = n, r = class {
|
|
14
14
|
constructor(s) {
|
|
15
15
|
o(this, s), this.width = "15", this.height = "15";
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return t("svg", { key: "
|
|
18
|
+
return t("svg", { key: "21ddd8a23141367d02d6118b65e083a7c35fdae3", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "087eb49291f67ff7d7d536114007d200a86c61e9", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
r.style =
|
|
21
|
+
r.style = c;
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
h as play_icon,
|
|
24
24
|
r as stop_icon
|
|
25
25
|
};
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-2a53b6a8.cjs");require("react");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasComposer=o.NylasComposer;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasListFolders=o.NylasListFolders;exports.NylasListThreads=o.NylasListThreads;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMailbox=o.NylasMailbox;exports.NylasMailboxPagination=o.NylasMailboxPagination;exports.NylasMailboxToolbarButton=o.NylasMailboxToolbarButton;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasProvider=o.NylasProvider;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasSummarizeMessageButton=o.NylasSummarizeMessageButton;exports.NylasThreadsRefresh=o.NylasThreadsRefresh;exports.NylasThreadsSearch=o.NylasThreadsSearch;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasViewEmail=o.NylasViewEmail;exports.NylasViewThread=o.NylasViewThread;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.applyPolyfills=o.applyPolyfills;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;exports.useNylasMailboxElement=o.useNylasMailboxElement;
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a6 as e, a7 as l, a8 as i, a9 as c, aa as t, ab as r, ac as b, ad as y, ae as I, af as N, ag as d, ah as C, ai as m, aj as g, ak as p, al as u, am as k, an as h, ao as P, ap as f, aq as E, ar as T, as as S, at as v, au as B, av as F, aw as L, ax as w, ay as M, az as R, aA as A, aB as D, aC as x, aD as G, aE as z, aF as W, aG as O, aH as U, aI as V, aJ as q, aK as Z, aL as j, aM as H, aN as J, aO as K, aP as Q, aQ as X, aR as Y, aS as _, aT as $, aU as aa, aV as sa, aW as oa, aX as na, aY as ea, aZ as la, a_ as ia, a$ as ca, b0 as ta, b1 as ra, b2 as ba, b3 as ya, b4 as Ia, b5 as Na, b6 as da, b7 as Ca, b8 as ma, b9 as ga, ba as pa, bb as ua, bc as ka, bd as ha, be as Pa, bf as fa, N as Ea, bg as Ta, bh as Sa, bi as va, bj as Ba, bk as Fa, bl as La, bm as wa, bn as Ma, bo as Ra, bp as Aa, bq as Da, br as xa, bs as Ga, bt as za, bu as Wa, bv as Oa, bw as Ua, bx as Va, by as qa, bz as Za, bA as ja, bB as Ha, bC as Ja, bD as Ka, bE as Qa, bF as Xa, bG as Ya, bH as _a, bI as $a, bJ as as, bK as ss, bL as os, bM as ns, bN as es, bO as ls, bP as is, bQ as cs, bR as ts, bS as rs, bT as bs, bU as ys, bV as Is, bW as Ns, bX as ds, bY as Cs, bZ as ms, b_ as gs, b$ as ps, c0 as us, c1 as ks, c2 as hs, c3 as Ps, c4 as fs, c5 as Es, c6 as Ts, c7 as Ss, c8 as vs, c9 as Bs, ca as Fs, cb as Ls, cc as ws, a3 as Ms, a4 as Rs, a5 as As, a2 as Ds } from "./index-a134f625.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
export {
|
|
@@ -10,8 +10,8 @@ export {
|
|
|
10
10
|
r as CalendarAgendaFillIcon,
|
|
11
11
|
b as CalendarAgendaIcon,
|
|
12
12
|
y as CalendarCancelIcon,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
I as CalendarCheckIcon,
|
|
14
|
+
N as CalendarIcon,
|
|
15
15
|
d as CalendarInfoIcon,
|
|
16
16
|
C as CalendarPatternsIcon,
|
|
17
17
|
m as CheckboxComponent,
|
|
@@ -39,106 +39,107 @@ export {
|
|
|
39
39
|
z as InputColorPicker,
|
|
40
40
|
W as InputComponent,
|
|
41
41
|
O as InputDropdown,
|
|
42
|
+
U as InputImageUrl,
|
|
42
43
|
V as ItalicIcon,
|
|
43
44
|
q as LoadingIcon,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
45
|
+
Z as LocationIcon,
|
|
46
|
+
j as LocationOffIcon,
|
|
47
|
+
H as MicrosoftLogoIcon,
|
|
48
|
+
J as MicrosoftTeamsIcon,
|
|
49
|
+
K as MultiSelectDropdown,
|
|
50
|
+
Q as NylasAdditionalParticipants,
|
|
51
|
+
X as NylasAvailabilityPicker,
|
|
52
|
+
Y as NylasBookedEventCard,
|
|
53
|
+
_ as NylasBookingCalendarPicker,
|
|
54
|
+
$ as NylasBookingConfirmationRedirect,
|
|
55
|
+
aa as NylasBookingConfirmationType,
|
|
56
|
+
sa as NylasBookingForm,
|
|
57
|
+
oa as NylasBookingFormConfig,
|
|
58
|
+
na as NylasBufferTime,
|
|
59
|
+
ea as NylasCalendarPicker,
|
|
60
|
+
la as NylasCancelBookingForm,
|
|
61
|
+
ia as NylasCancellationPolicy,
|
|
62
|
+
ca as NylasCancelledEventCard,
|
|
63
|
+
ta as NylasComposer,
|
|
64
|
+
ra as NylasConfirmationEmail,
|
|
65
|
+
ba as NylasConfirmedEventCard,
|
|
66
|
+
ya as NylasConnectedCalendars,
|
|
67
|
+
Ia as NylasCustomBookingFlow,
|
|
67
68
|
Na as NylasCustomEventSlug,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
69
|
+
da as NylasCustomizeBookingSettings,
|
|
70
|
+
Ca as NylasDatePicker,
|
|
71
|
+
ma as NylasEditorTabs,
|
|
72
|
+
ga as NylasEventDescription,
|
|
73
|
+
pa as NylasEventDuration,
|
|
74
|
+
ua as NylasEventInfo,
|
|
75
|
+
ka as NylasEventLimits,
|
|
76
|
+
ha as NylasEventLocation,
|
|
77
|
+
Pa as NylasEventTitle,
|
|
78
|
+
fa as NylasFormCard,
|
|
79
|
+
Ea as NylasIdentityRequestWrapper,
|
|
80
|
+
Ta as NylasIfState,
|
|
81
|
+
Sa as NylasLimitFutureBookings,
|
|
82
|
+
va as NylasListConfigurations,
|
|
83
|
+
Ba as NylasListFolders,
|
|
84
|
+
Fa as NylasListThreads,
|
|
85
|
+
La as NylasLocaleSwitch,
|
|
86
|
+
wa as NylasLogin,
|
|
87
|
+
Ma as NylasLogo,
|
|
88
|
+
Ra as NylasMailbox,
|
|
89
|
+
Aa as NylasMailboxPagination,
|
|
90
|
+
Da as NylasMailboxToolbarButton,
|
|
91
|
+
xa as NylasMinBookingNotice,
|
|
92
|
+
Ga as NylasMinCancellationNotice,
|
|
93
|
+
za as NylasNotification,
|
|
94
|
+
Wa as NylasOrganizerConfirmationCard,
|
|
95
|
+
Oa as NylasPageName,
|
|
96
|
+
Ua as NylasPageStyling,
|
|
96
97
|
Va as NylasParticipantBookingCalendars,
|
|
97
98
|
qa as NylasParticipantsCustomAvailability,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
99
|
+
Za as NylasProvider,
|
|
100
|
+
ja as NylasReminderEmails,
|
|
101
|
+
Ha as NylasReminderTime,
|
|
102
|
+
Ja as NylasSchedulerEditor,
|
|
103
|
+
Ka as NylasScheduling,
|
|
104
|
+
Qa as NylasSchedulingMethod,
|
|
105
|
+
Xa as NylasSelectedEventCard,
|
|
106
|
+
Ya as NylasSummarizeMessageButton,
|
|
107
|
+
_a as NylasThreadsRefresh,
|
|
108
|
+
$a as NylasThreadsSearch,
|
|
109
|
+
as as NylasTimeWindowPicker,
|
|
110
|
+
ss as NylasTimeslotInterval,
|
|
111
|
+
os as NylasTimeslotPicker,
|
|
112
|
+
ns as NylasViewEmail,
|
|
113
|
+
es as NylasViewThread,
|
|
114
|
+
ls as PaintbrushFillIcon,
|
|
115
|
+
is as PaintbrushIcon,
|
|
116
|
+
cs as PeopleIcon,
|
|
117
|
+
ts as PersonClipboardIcon,
|
|
118
|
+
rs as PersonIcon,
|
|
119
|
+
bs as PlayIcon,
|
|
120
|
+
ys as PlusIcon,
|
|
121
|
+
Is as RadioButtonGroup,
|
|
121
122
|
Ns as RefreshIcon,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
123
|
+
ds as ReplyAllIcon,
|
|
124
|
+
Cs as ReplyIcon,
|
|
125
|
+
ms as SearchIcon,
|
|
126
|
+
gs as SelectDropdown,
|
|
127
|
+
ps as SentIcon,
|
|
128
|
+
us as SpamIcon,
|
|
129
|
+
ks as StarIcon,
|
|
130
|
+
hs as StopIcon,
|
|
131
|
+
Ps as TextareaComponent,
|
|
132
|
+
fs as TimePeriodSelector,
|
|
133
|
+
Es as ToggleSwitch,
|
|
134
|
+
Ts as TooltipComponent,
|
|
135
|
+
Ss as TranslateIcon,
|
|
136
|
+
vs as TrashFillIcon,
|
|
137
|
+
Bs as TrashIcon,
|
|
138
|
+
Fs as UnderlineIcon,
|
|
139
|
+
Ls as WarningIcon,
|
|
140
|
+
ws as ZoomIcon,
|
|
141
|
+
Ms as applyPolyfills,
|
|
142
|
+
Rs as defineCustomElements,
|
|
143
|
+
As as setNonce,
|
|
144
|
+
Ds as useNylasMailboxElement
|
|
144
145
|
};
|