@nylas/react 1.1.6 → 1.2.0
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-c9aa21bb.cjs → add-circle-icon_2.entry-52cc3933.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-40ff1ddc.js → add-circle-icon_2.entry-5ea903bf.js} +1 -1
- package/dist/{archive-icon.entry-253f4253.js → archive-icon.entry-50c4b134.js} +1 -1
- package/dist/{archive-icon.entry-f27eb10c.cjs → archive-icon.entry-718a1225.cjs} +1 -1
- package/dist/{arrow-icon.entry-ac939154.js → arrow-icon.entry-53337688.js} +1 -1
- package/dist/{arrow-icon.entry-b1ca875a.cjs → arrow-icon.entry-ca9625d3.cjs} +1 -1
- package/dist/{bold-icon.entry-e815017f.cjs → bold-icon.entry-36e679f1.cjs} +1 -1
- package/dist/{bold-icon.entry-3594774b.js → bold-icon.entry-c6109b88.js} +1 -1
- package/dist/{button-component_2.entry-fdca89a8.js → button-component_2.entry-0a06b0c4.js} +1 -1
- package/dist/{button-component_2.entry-a2d998c4.cjs → button-component_2.entry-a1b8cd03.cjs} +1 -1
- package/dist/calendar-agenda-fill-icon_54.entry-5b185e75.cjs +9 -0
- package/dist/{calendar-agenda-fill-icon_54.entry-40b74a1d.js → calendar-agenda-fill-icon_54.entry-e4d8ab10.js} +2130 -2453
- package/dist/{calendar-cancel-icon.entry-98e56632.cjs → calendar-cancel-icon.entry-22862d8c.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-90a529f9.js → calendar-cancel-icon.entry-813a8330.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-305d0f9f.cjs → calendar-check-icon_2.entry-2ca25094.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-09e247b0.js → calendar-check-icon_2.entry-79d381ce.js} +1 -1
- package/dist/{calendar-icon.entry-7570a82f.cjs → calendar-icon.entry-78bb4f9b.cjs} +1 -1
- package/dist/{calendar-icon.entry-ff7dfc9b.js → calendar-icon.entry-d52951b0.js} +1 -1
- package/dist/{checkbox-component_2.entry-2d8bf66e.js → checkbox-component_2.entry-1219f0cf.js} +1 -1
- package/dist/{checkbox-component_2.entry-2b5a2721.cjs → checkbox-component_2.entry-a6114846.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-e6539933.js → chevron-icon_3.entry-82878ccf.js} +26 -22
- package/dist/chevron-icon_3.entry-d8f195dc.cjs +1 -0
- package/dist/{clock-icon_4.entry-797aa1f7.js → clock-icon_4.entry-9ab4bc41.js} +1 -1
- package/dist/{clock-icon_4.entry-623c482d.cjs → clock-icon_4.entry-e081ccca.cjs} +1 -1
- package/dist/{constants-c549b12b-7ea4c7f5.js → constants-35df11e7-b37e3406.js} +1 -1
- package/dist/{constants-c549b12b-c85413b1.cjs → constants-35df11e7-d87ad6d9.cjs} +1 -1
- package/dist/{copy-icon.entry-7dd1cd70.cjs → copy-icon.entry-9c6f38c2.cjs} +1 -1
- package/dist/{copy-icon.entry-9b8eb24d.js → copy-icon.entry-9d6e0f48.js} +1 -1
- package/dist/{delete-icon.entry-506ee04f.cjs → delete-icon.entry-6ec9c80d.cjs} +1 -1
- package/dist/{delete-icon.entry-3d05884f.js → delete-icon.entry-fd8dc119.js} +1 -1
- package/dist/{document-refresh-icon.entry-09b959f4.js → document-refresh-icon.entry-2b531e97.js} +1 -1
- package/dist/{document-refresh-icon.entry-1ff1f7ca.cjs → document-refresh-icon.entry-bea78baf.cjs} +1 -1
- package/dist/{feedbackSync-b56b29ed-6a2388f3.js → feedbackSync-b56b29ed-a7e9f258.js} +1 -1
- package/dist/{feedbackSync-b56b29ed-cf8c7876.cjs → feedbackSync-b56b29ed-cdcec5be.cjs} +1 -1
- package/dist/{folder-icon.entry-2788257d.cjs → folder-icon.entry-485465be.cjs} +1 -1
- package/dist/{folder-icon.entry-6f9875f7.js → folder-icon.entry-6a43630e.js} +1 -1
- package/dist/{forward-icon.entry-a0de0be0.js → forward-icon.entry-514ea4a8.js} +1 -1
- package/dist/{forward-icon.entry-49f6a480.cjs → forward-icon.entry-a1af9122.cjs} +1 -1
- package/dist/{globe-icon.entry-04c890dd.cjs → globe-icon.entry-970082a4.cjs} +1 -1
- package/dist/{globe-icon.entry-b7f1e5b8.js → globe-icon.entry-adcff451.js} +1 -1
- package/dist/google-logo-icon_4.entry-21cb4b95.cjs +1 -0
- package/dist/{google-logo-icon_4.entry-b2463218.js → google-logo-icon_4.entry-2b68fe81.js} +309 -302
- package/dist/{inbox-icon.entry-11813535.cjs → inbox-icon.entry-94507d27.cjs} +1 -1
- package/dist/{inbox-icon.entry-c5cb64d8.js → inbox-icon.entry-d3e42f82.js} +1 -1
- package/dist/{index-600718a1.js → index-9dc1bd32.js} +511 -511
- package/dist/{index-8755dd64.cjs → index-bec58f1d.cjs} +16 -16
- package/dist/{index.es-c7ca1bad-73894e2f.js → index.es-c7ca1bad-38475209.js} +1 -1
- package/dist/{index.es-c7ca1bad-1c8a9213.cjs → index.es-c7ca1bad-5652d50c.cjs} +1 -1
- package/dist/{info-icon_2.entry-e48e3cda.js → info-icon_2.entry-3b5a2c7f.js} +1 -1
- package/dist/{info-icon_2.entry-08125285.cjs → info-icon_2.entry-e23f3ffd.cjs} +1 -1
- package/dist/{input-color-picker.entry-54e61165.js → input-color-picker.entry-9bc48bd3.js} +1 -1
- package/dist/{input-color-picker.entry-acfa5da8.cjs → input-color-picker.entry-b4ea90c5.cjs} +1 -1
- package/dist/{input-component.entry-e2fbcde0.cjs → input-component.entry-e567ec08.cjs} +1 -1
- package/dist/{input-component.entry-54df3f66.js → input-component.entry-ebae3a8a.js} +1 -1
- package/dist/{input-dropdown.entry-8dec00e3.js → input-dropdown.entry-1f704009.js} +1 -1
- package/dist/{input-dropdown.entry-1509d5c4.cjs → input-dropdown.entry-597cd5a8.cjs} +1 -1
- package/dist/{italic-icon.entry-c9028583.js → italic-icon.entry-08593dd0.js} +1 -1
- package/dist/{italic-icon.entry-79eafb05.cjs → italic-icon.entry-8f614353.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-2ed02a88.js → multi-select-dropdown.entry-5f1c73f3.js} +1 -1
- package/dist/{multi-select-dropdown.entry-221212e3.cjs → multi-select-dropdown.entry-eb978e22.cjs} +1 -1
- package/dist/nylas-booked-event-card_12.entry-73785c5c.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-fa2b2630.js → nylas-booked-event-card_12.entry-c4043d8f.js} +322 -253
- package/dist/{nylas-form-card.entry-2019c383.cjs → nylas-form-card.entry-1540207c.cjs} +1 -1
- package/dist/{nylas-form-card.entry-a114052f.js → nylas-form-card.entry-80688e35.js} +2 -2
- package/dist/{nylas-if-state.entry-de891ced.js → nylas-if-state.entry-037d0454.js} +2 -2
- package/dist/{nylas-if-state.entry-480c45d1.cjs → nylas-if-state.entry-e5155b5b.cjs} +1 -1
- package/dist/{nylas-login.entry-c99a7b37.cjs → nylas-login.entry-b3d73ab9.cjs} +1 -1
- package/dist/{nylas-login.entry-9ad74f40.js → nylas-login.entry-d157a6ed.js} +2 -2
- package/dist/{nylas-provider.entry-d9c4e3d2.cjs → nylas-provider.entry-884ba204.cjs} +1 -1
- package/dist/{nylas-provider.entry-faf7ef23.js → nylas-provider.entry-cf4b8b57.js} +4 -4
- package/dist/{nylas-scheduler-editor.entry-8c5543bd.cjs → nylas-scheduler-editor.entry-6f76d0d5.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-9af09bc2.js → nylas-scheduler-editor.entry-e731ca4a.js} +8 -9
- package/dist/{nylas-scheduling.entry-8f5718ac.js → nylas-scheduling.entry-86b18d85.js} +18 -16
- package/dist/nylas-scheduling.entry-c8ee9a2a.cjs +1 -0
- package/dist/{nylas-time-window-picker.entry-690e753e.js → nylas-time-window-picker.entry-393e855b.js} +1 -1
- package/dist/{nylas-time-window-picker.entry-0f396304.cjs → nylas-time-window-picker.entry-f9687046.cjs} +1 -1
- package/dist/{person-icon.entry-049ebaaa.cjs → person-icon.entry-1b5dcd2e.cjs} +1 -1
- package/dist/{person-icon.entry-9c82640f.js → person-icon.entry-b5ccb1f4.js} +1 -1
- package/dist/{play-icon.entry-4b931766.cjs → play-icon.entry-3f2e7e31.cjs} +1 -1
- package/dist/{play-icon.entry-5e77c87c.js → play-icon.entry-5e51d961.js} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-1c42e8df.cjs → refresh-icon.entry-3d241ffd.cjs} +1 -1
- package/dist/{refresh-icon.entry-f9d37dda.js → refresh-icon.entry-9beaa8e1.js} +1 -1
- package/dist/{register-component-3444af44-38748cf2.cjs → register-component-3444af44-890ac950.cjs} +1 -1
- package/dist/{register-component-3444af44-a9df7506.js → register-component-3444af44-94783766.js} +1 -1
- package/dist/{reply-all-icon.entry-c4c94341.js → reply-all-icon.entry-6b55d3b3.js} +1 -1
- package/dist/{reply-all-icon.entry-d090c34a.cjs → reply-all-icon.entry-a0fcbf30.cjs} +1 -1
- package/dist/{reply-icon.entry-69438565.js → reply-icon.entry-c709b46f.js} +1 -1
- package/dist/{reply-icon.entry-6a5377ae.cjs → reply-icon.entry-c7d0d967.cjs} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-9126610f.js → scheduler-config-store-ed4a8dfd-13c1c187.js} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-82b439de.cjs → scheduler-config-store-ed4a8dfd-ba68cc09.cjs} +1 -1
- package/dist/scheduler-store-ecd15be2-8f7d171f.cjs +1 -0
- package/dist/{scheduler-store-d4784b24-4558c7eb.js → scheduler-store-ecd15be2-d2ef4ac2.js} +27 -25
- package/dist/{sent-icon.entry-36964458.cjs → sent-icon.entry-9083bca9.cjs} +1 -1
- package/dist/{sent-icon.entry-eae2a5f1.js → sent-icon.entry-b65083f4.js} +1 -1
- package/dist/{spam-icon.entry-1f47e1cf.js → spam-icon.entry-120eca46.js} +1 -1
- package/dist/{spam-icon.entry-ec0b7f17.cjs → spam-icon.entry-e6c1a82a.cjs} +1 -1
- package/dist/{star-icon.entry-f2ba5cf7.js → star-icon.entry-e3563c0b.js} +1 -1
- package/dist/{star-icon.entry-5fb1fdfe.cjs → star-icon.entry-efbc2679.cjs} +1 -1
- package/dist/{stop-icon.entry-c9b1f0a1.cjs → stop-icon.entry-8d07d719.cjs} +1 -1
- package/dist/{stop-icon.entry-e9c53f8f.js → stop-icon.entry-ab5cf663.js} +1 -1
- package/dist/{textarea-component.entry-f7a089d4.cjs → textarea-component.entry-93be4a65.cjs} +1 -1
- package/dist/{textarea-component.entry-43938bc5.js → textarea-component.entry-a0ef9f03.js} +1 -1
- package/dist/{time-period-selector.entry-9151a673.cjs → time-period-selector.entry-16f96af9.cjs} +1 -1
- package/dist/{time-period-selector.entry-dcef9d6a.js → time-period-selector.entry-2a86f48f.js} +1 -1
- package/dist/{translate-icon.entry-d563b357.cjs → translate-icon.entry-868948d3.cjs} +1 -1
- package/dist/{translate-icon.entry-5b47ef85.js → translate-icon.entry-d632b37b.js} +1 -1
- package/dist/{trash-fill-icon.entry-7d201791.cjs → trash-fill-icon.entry-88dfffbc.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-e316b456.js → trash-fill-icon.entry-eeab235e.js} +1 -1
- package/dist/{underline-icon.entry-a6751a31.cjs → underline-icon.entry-35430c19.cjs} +1 -1
- package/dist/{underline-icon.entry-03cae3b3.js → underline-icon.entry-65e42dcf.js} +1 -1
- package/dist/{warning-icon.entry-b3c9b687.js → warning-icon.entry-bab6d190.js} +1 -1
- package/dist/{warning-icon.entry-f4936405.cjs → warning-icon.entry-e7714a43.cjs} +1 -1
- package/package.json +3 -3
- package/dist/calendar-agenda-fill-icon_54.entry-d47f77af.cjs +0 -10
- package/dist/chevron-icon_3.entry-35130198.cjs +0 -1
- package/dist/google-logo-icon_4.entry-66d8a50d.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-5125b535.cjs +0 -1
- package/dist/nylas-scheduling.entry-e778f5f6.cjs +0 -1
- package/dist/scheduler-store-d4784b24-32e6da1e.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as L, a as F, i as c, j as R } from "./index-
|
|
1
|
+
import { d as L, a as F, i as c, j as R } from "./index-9dc1bd32.js";
|
|
2
2
|
var B;
|
|
3
3
|
(function(a) {
|
|
4
4
|
a.Component = "component", a.Api = "api", a.Auth = "auth";
|
|
@@ -104,7 +104,7 @@ class C {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
class
|
|
107
|
+
class N {
|
|
108
108
|
constructor({ schedulerAPIURL: e, schedulerStore: t, sessionId: s, configId: i, slug: n, clientId: r }) {
|
|
109
109
|
this.errors = new C(), this.schedulerStore = t, this.schedulerAPIURL = e, this.sessionId = s, this.configId = i, this.slug = n, this.clientId = r;
|
|
110
110
|
}
|
|
@@ -115,12 +115,14 @@ class O {
|
|
|
115
115
|
}
|
|
116
116
|
async makeAPIRequest(e, t, s, i = {}) {
|
|
117
117
|
try {
|
|
118
|
-
const n = new URL(this.schedulerAPIURL);
|
|
118
|
+
const n = new URL(this.schedulerAPIURL), r = "1.2.0";
|
|
119
119
|
return n.pathname = e, await (await fetch(decodeURIComponent(n.toString()), {
|
|
120
120
|
method: t,
|
|
121
121
|
headers: {
|
|
122
122
|
"Content-Type": "application/json",
|
|
123
123
|
Origin: window.location.origin,
|
|
124
|
+
"X-Source": "nylas-scheduling",
|
|
125
|
+
"X-Nylas-Web-Elements-Version": r,
|
|
124
126
|
...i
|
|
125
127
|
},
|
|
126
128
|
body: s
|
|
@@ -220,7 +222,7 @@ class O {
|
|
|
220
222
|
const r = (e == null ? void 0 : e.timeslot) || t;
|
|
221
223
|
if (!r)
|
|
222
224
|
return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timeslot_selected() };
|
|
223
|
-
const o = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : s,
|
|
225
|
+
const o = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : s, g = n || "en-US";
|
|
224
226
|
if (!o)
|
|
225
227
|
return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timezone_selected() };
|
|
226
228
|
const h = this.schedulerStore.get("availabilityOrderEmails");
|
|
@@ -245,7 +247,7 @@ class O {
|
|
|
245
247
|
start_time: r.start_time.getTime() / 1e3,
|
|
246
248
|
end_time: r.end_time.getTime() / 1e3,
|
|
247
249
|
timezone: o,
|
|
248
|
-
email_language: this.getTwoLetterLanguageCode(
|
|
250
|
+
email_language: this.getTwoLetterLanguageCode(g)
|
|
249
251
|
}), T);
|
|
250
252
|
if ("error" in u) {
|
|
251
253
|
this.schedulerStore.set("isLoading", !1);
|
|
@@ -294,26 +296,26 @@ class O {
|
|
|
294
296
|
if (t && t < n / 1e3)
|
|
295
297
|
return this.schedulerStore.set("isLoading", !1), { error: this.errors.component(c.t("getAvailabilityErrorTitle")).endtime_not_in_future() };
|
|
296
298
|
if (!e) {
|
|
297
|
-
const
|
|
298
|
-
e = Math.floor(
|
|
299
|
+
const m = new Date(i.getFullYear(), i.getMonth(), 1);
|
|
300
|
+
e = Math.floor(m.getTime() / 1e3);
|
|
299
301
|
}
|
|
300
302
|
if (!t) {
|
|
301
|
-
const
|
|
302
|
-
t = Math.floor(
|
|
303
|
+
const m = new Date(i.getFullYear(), i.getMonth() + 1, 0);
|
|
304
|
+
t = Math.floor(m.getTime() / 1e3);
|
|
303
305
|
}
|
|
304
306
|
t = this.getEndTimeForAvailableDaysInFuture(t);
|
|
305
307
|
const r = this.getStartTimeWithMinBookingNotice(e);
|
|
306
308
|
e = r, t = r > t ? r + 1 : t, s.append("start_time", encodeURIComponent(e.toString())), s.append("end_time", encodeURIComponent(t.toString())), this.configId && !this.sessionId ? s.append("configuration_id", encodeURIComponent(this.configId)) : this.slug && this.clientId && !this.sessionId && (s.append("slug", encodeURIComponent(this.slug)), s.append("client_id", encodeURIComponent(this.clientId)));
|
|
307
309
|
const o = this.schedulerStore.get("rescheduleBookingId");
|
|
308
310
|
o && s.append("booking_id", encodeURIComponent(o));
|
|
309
|
-
const
|
|
311
|
+
const g = s.toString(), h = `/v3/scheduling/availability${g ? `?${g}` : ""}`, l = this.getHeaders(), d = await this.makeAPIRequest(decodeURIComponent(h), "GET", void 0, l);
|
|
310
312
|
if ("error" in d) {
|
|
311
313
|
this.schedulerStore.set("availability", []), this.schedulerStore.set("isLoading", !1);
|
|
312
|
-
const
|
|
314
|
+
const m = (_ = d.error) == null ? void 0 : _.type;
|
|
313
315
|
let v = d.error;
|
|
314
|
-
if (
|
|
316
|
+
if (m && m in this.errors.api(c.t("getAvailabilityErrorTitle"))) {
|
|
315
317
|
const u = this.getErrorMessage(v);
|
|
316
|
-
v = this.errors.api(c.t("getAvailabilityErrorTitle"))[
|
|
318
|
+
v = this.errors.api(c.t("getAvailabilityErrorTitle"))[m](u);
|
|
317
319
|
}
|
|
318
320
|
return { error: v };
|
|
319
321
|
}
|
|
@@ -339,11 +341,11 @@ class O {
|
|
|
339
341
|
}), n);
|
|
340
342
|
if ("error" in r) {
|
|
341
343
|
this.schedulerStore.set("isLoading", !1);
|
|
342
|
-
const
|
|
344
|
+
const g = (o = r.error) == null ? void 0 : o.type;
|
|
343
345
|
let h = r.error;
|
|
344
|
-
if (
|
|
346
|
+
if (g && g in this.errors.api(c.t("cancelBookingErrorTitle"))) {
|
|
345
347
|
const l = this.getErrorMessage(h);
|
|
346
|
-
h = this.errors.api(c.t("cancelBookingErrorTitle"))[
|
|
348
|
+
h = this.errors.api(c.t("cancelBookingErrorTitle"))[g](l);
|
|
347
349
|
}
|
|
348
350
|
return { error: h };
|
|
349
351
|
}
|
|
@@ -355,7 +357,7 @@ class O {
|
|
|
355
357
|
var A;
|
|
356
358
|
if (this.schedulerStore.set("isLoading", !0), !e)
|
|
357
359
|
return { error: this.errors.component(c.t("rescheduleBookingErrorTitle")).no_booking_id() };
|
|
358
|
-
const s = this.errors.api(c.t("rescheduleBookingErrorTitle")), i = this.errors.component(c.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: o, selectedLanguage:
|
|
360
|
+
const s = this.errors.api(c.t("rescheduleBookingErrorTitle")), i = this.errors.component(c.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: o, selectedLanguage: g } = this.schedulerStore.state, { startTime: h, endTime: l, timezone: d } = t, _ = h || (r == null ? void 0 : r.start_time);
|
|
359
361
|
if (!_)
|
|
360
362
|
return { error: i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
|
|
361
363
|
const S = l || (r == null ? void 0 : r.end_time);
|
|
@@ -371,8 +373,8 @@ class O {
|
|
|
371
373
|
break;
|
|
372
374
|
}
|
|
373
375
|
}
|
|
374
|
-
const
|
|
375
|
-
if (!
|
|
376
|
+
const m = d || o;
|
|
377
|
+
if (!m)
|
|
376
378
|
return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
|
|
377
379
|
const v = {};
|
|
378
380
|
Object.entries((n == null ? void 0 : n.additionalFields) || {}).forEach(([b, y]) => {
|
|
@@ -381,12 +383,12 @@ class O {
|
|
|
381
383
|
const u = t ? t == null ? void 0 : t.primaryParticipant : n == null ? void 0 : n.primaryParticipant, I = t ? (t == null ? void 0 : t.guests) || [] : (n == null ? void 0 : n.guests) || [], k = t ? t == null ? void 0 : t.additionalFields : v, f = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", E = `/v3/scheduling/bookings/${e}${f}`, z = this.getHeaders(), w = await this.makeAPIRequest(decodeURIComponent(E), "PATCH", JSON.stringify({
|
|
382
384
|
start_time: _.getTime() / 1e3,
|
|
383
385
|
end_time: S.getTime() / 1e3,
|
|
384
|
-
timezone:
|
|
386
|
+
timezone: m,
|
|
385
387
|
additional_fields: k,
|
|
386
388
|
guest: { ...u },
|
|
387
389
|
additional_guests: I,
|
|
388
390
|
participants: T ? [{ email: T }] : void 0,
|
|
389
|
-
email_language: this.getTwoLetterLanguageCode(
|
|
391
|
+
email_language: this.getTwoLetterLanguageCode(g)
|
|
390
392
|
}), z);
|
|
391
393
|
if ("error" in w) {
|
|
392
394
|
this.schedulerStore.set("isLoading", !1);
|
|
@@ -419,7 +421,7 @@ class O {
|
|
|
419
421
|
return { error: this.errors.component(r).no_booking_id() };
|
|
420
422
|
if (!n)
|
|
421
423
|
return { error: this.errors.component(r).no_salt() };
|
|
422
|
-
const o = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "",
|
|
424
|
+
const o = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", g = `/v3/scheduling/bookings/${t}${o}`, h = this.getHeaders(), l = await this.makeAPIRequest(decodeURIComponent(g), "PUT", JSON.stringify({
|
|
423
425
|
status: s,
|
|
424
426
|
cancellation_reason: i,
|
|
425
427
|
salt: n
|
|
@@ -439,7 +441,7 @@ class O {
|
|
|
439
441
|
}), this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("isLoading", !1), l;
|
|
440
442
|
}
|
|
441
443
|
}
|
|
442
|
-
function
|
|
444
|
+
function O(a = {}) {
|
|
443
445
|
const e = {
|
|
444
446
|
selectedDate: null,
|
|
445
447
|
selectedLanguage: navigator.language,
|
|
@@ -476,7 +478,7 @@ function N(a = {}) {
|
|
|
476
478
|
}, t;
|
|
477
479
|
}
|
|
478
480
|
export {
|
|
479
|
-
|
|
481
|
+
O as C,
|
|
480
482
|
B as E,
|
|
481
|
-
|
|
483
|
+
N
|
|
482
484
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-bec58f1d.cjs");require("react");require("react-dom");const i=".sc-sent-icon-h{display:flex}",o=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"ca3a664814e986f46006171c0fb63441478ef5b8",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"e4d9309797e02ca60918d49c55854d51f93c1a2b",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"082bf637872a00ba8abe224cc7c8092dc371ea75",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"dd3f5647d7cdb9dfbdb480ab332917564969f546",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};e.style=o;exports.sent_icon=e;
|
|
@@ -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-bec58f1d.cjs");require("react");require("react-dom");const c=".sc-spam-icon-h{display:flex}",i=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"a8e87346312ed75a47b88790585e07d8c518c3e9",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5cb3444afa08fc37a8cf2e268c62faf5c97379f5",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"b695c0e7aa34cf44da99cce51c17ff98b3ad8906",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.spam_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-bec58f1d.cjs");require("react");require("react-dom");const i=".sc-star-icon-h{display:flex}",c=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"acc7e88e0901acac79fd0bf4a3a355ea82b46934",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"a3a8ed61cce35a1f67c5aa22cb0aee42c965474e",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};e.style=c;exports.star_icon=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-bec58f1d.cjs");require("react");require("react-dom");const s=".sc-stop-icon-h{display:flex}",i=s,e=class{constructor(o){t.registerInstance(this,o),this.width="15",this.height="15"}render(){return t.h("svg",{key:"f70cc744dde889a32cc0339cf4be41ae38237d0b",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"f7bd4f78d4e2efc797932d91aac355e0f9d4f309",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};e.style=i;exports.stop_icon=e;
|
package/dist/{textarea-component.entry-f7a089d4.cjs → textarea-component.entry-93be4a65.cjs}
RENAMED
|
@@ -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-bec58f1d.cjs");require("react");require("react-dom");const s=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}',l=s,r=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.name="textarea",this.defaultValue=void 0,this.label="",this.placeholder="",this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.maxLength=255,this.type="multi_line_text",this.tooltip="",this.value="",this.error=""}componentDidLoad(){this.value=e.sanitize(this.defaultValue||"")}handleBookingFormSubmitted(a){this.validate(this.value),this.error&&a.preventDefault()}handletriggerValidation(a){this.validate(this.value),this.error&&a.preventDefault()}handleInput(a){const t=a.target;this.value=e.sanitize(t.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(a){this.required&&!a?this.error=`${this.label} is required.`:a.length>this.maxLength?this.error=`${this.label} cannot exceed ${this.maxLength} characters.`:this.error=""}render(){return e.h("label",{key:"503a9e472a4dea351f13d8e430a0ee9ecc20e3fb",part:"tc__label",class:{error:!!this.error}},e.h("p",{key:"7ce9a57c8e2dc9d0c3a88edf93ba09a3b49cf149"},e.h("span",{key:"8feedbb7300d0eb20192b17a0482f9c981bba120",class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"),this.tooltip&&e.h("tooltip-component",null,e.h("info-icon",{slot:"tooltip-icon"}),e.h("span",{slot:"tooltip-content"},this.tooltip))),e.h("textarea",{key:"79dd6889c5da4797b26504731583db5887c21bcb",name:this.name,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:a=>this.handleInput(a),class:{error:!!this.error},part:"tc__textarea"}),this.error&&e.h("span",{class:"error help-text"},this.error))}};r.style=l;exports.textarea_component=r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, c as l, t as r, h as a } from "./index-
|
|
1
|
+
import { r as s, c as l, t as r, h as a } from "./index-9dc1bd32.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const i = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}', n = i, o = class {
|
package/dist/{time-period-selector.entry-9151a673.cjs → time-period-selector.entry-16f96af9.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-bec58f1d.cjs");require("react");require("react-dom");const s=".time-period-selector.sc-time-period-selector{display:grid;gap:0.5rem;grid-template-columns:auto 1fr}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector,.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector{width:116px}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{width:84px;display:flex;align-items:center}.time-period-selector.sc-time-period-selector select-dropdown#time-period.sc-time-period-selector::part(sd_dropdown-button){width:100%}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown){width:inherit;height:100%}.time-period-selector.sc-time-period-selector input-dropdown#time-number.sc-time-period-selector::part(id_dropdown-input){border:none;border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-input){padding:17px;gap:1rem}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-content){width:100%;max-height:200px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown){width:inherit}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem;justify-content:space-between}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}",n=s,p={hours:"hour",days:"day",weeks:"week",months:"month"},d=class{constructor(r){i.registerInstance(this,r),this.timePeriodChanged=i.createEvent(this,"timePeriodChanged",7),this.timePeriods=["hour","day","week","month"],this.defaultSelectedPeriod=void 0,this.defaultSelectedNumber=void 0,this.selectedPeriod=this.defaultSelectedPeriod,this.selectedNumber=this.defaultSelectedNumber,this.numberOptions=this.calculateOptions(this.defaultSelectedPeriod||"hour").map(e=>({label:e.toString(),value:e.toString()})),this.timePeriodOptions=this.timePeriods.map(e=>({label:e,value:e}))}componentDidLoad(){this.selectedNumber=this.defaultSelectedNumber,this.selectedPeriod=this.defaultSelectedPeriod;const r=p[this.selectedPeriod]??this.selectedPeriod,e=this.calculateOptions(r);this.numberOptions=e.map(t=>({label:t.toString(),value:t.toString()}))}calculateOptions(r){switch(r){case"hour":return Array.from({length:23},(e,t)=>t+1);case"minute":return Array.from({length:13},(e,t)=>t*5);case"day":return Array.from({length:30},(e,t)=>t+1);case"week":return Array.from({length:4},(e,t)=>t+1);case"month":return Array.from({length:12},(e,t)=>t+1);default:return[]}}inputOptionChangedHandler(r){i.debug("time-period-selector","inputOptionChangedHandler",r.detail);const{value:e,name:t}=r.detail;t==="time-number"&&(this.selectedNumber=e?parseInt(e):this.defaultSelectedNumber);const o={number:this.selectedNumber,period:this.selectedPeriod};this.timePeriodChanged.emit(o)}nylasFormDropdownChangedHandler(r){i.debug("time-period-selector","nylasFormDropdownChangedHandler",r.detail);const{value:e,name:t}=r.detail;t==="time-period"?(this.selectedPeriod=e,this.updateNumberOptionsAndSelectedNumber(e)):t==="time-number"&&(this.selectedNumber=parseInt(e));const o={number:this.selectedNumber,period:this.selectedPeriod};this.timePeriodChanged.emit(o)}updateNumberOptionsAndSelectedNumber(r){const e=this.calculateOptions(r);this.numberOptions=e.map(t=>({label:t.toString(),value:t.toString()})),this.selectedNumber=parseInt(this.numberOptions[0].value)}render(){return i.h("div",{key:"7202ca7c6b64a08199ec356eb409b247b865683b",class:"time-period-selector"},typeof this.selectedNumber=="number"&&i.h("input-dropdown",{id:"time-number",name:"time-number",inputValue:this.selectedNumber.toString(),exportparts:"id_dropdown: tps__number-dropdown, id_dropdown-input: tps__number-dropdown-button, id_dropdown-content: tps__number-dropdown-content",options:this.numberOptions,defaultInputOption:this.numberOptions.find(r=>r.value==this.selectedNumber.toString())}),typeof this.selectedPeriod=="string"&&i.h("select-dropdown",{id:"time-period",name:"time-period",options:this.timePeriodOptions,exportparts:"sd_dropdown: tps__period-dropdown, sd_dropdown-button: tps__period-dropdown-button, sd_dropdown-content: tps__period-dropdown-content",pluralizedLabel:this.selectedNumber>1?"s":"",defaultSelectedOption:this.timePeriodOptions.find(r=>r.value==this.selectedPeriod),withSearch:!1}))}get host(){return i.getElement(this)}};d.style=n;exports.time_period_selector=d;
|
package/dist/{time-period-selector.entry-dcef9d6a.js → time-period-selector.entry-2a86f48f.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, c as n, d, h as o, g as p } from "./index-
|
|
1
|
+
import { r as s, c as n, d, h as o, g as p } from "./index-9dc1bd32.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const l = ".time-period-selector.sc-time-period-selector{display:grid;gap:0.5rem;grid-template-columns:auto 1fr}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector,.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector{width:116px}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{width:84px;display:flex;align-items:center}.time-period-selector.sc-time-period-selector select-dropdown#time-period.sc-time-period-selector::part(sd_dropdown-button){width:100%}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown){width:inherit;height:100%}.time-period-selector.sc-time-period-selector input-dropdown#time-number.sc-time-period-selector::part(id_dropdown-input){border:none;border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-input){padding:17px;gap:1rem}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-content){width:100%;max-height:200px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown){width:inherit}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem;justify-content:space-between}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}", c = l, m = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-bec58f1d.cjs");require("react");require("react-dom");const s=".sc-translate-icon-h{display:flex}",i=s,e=class{constructor(t){C.registerInstance(this,t),this.width="16",this.height="16"}render(){return C.h("svg",{key:"a30c1511ca0c16efbba06eeafc1507f4d2e5e723",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 20 20",fill:"none"},C.h("path",{key:"2ea649b4607a9a990230be8543af0de419d68050",fill:"currentColor",d:"M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z"}))}};e.style=i;exports.translate_icon=e;
|
|
@@ -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-bec58f1d.cjs");require("react");require("react-dom");const c=".sc-trash-fill-icon-h{display:flex}",h=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"548c62bb193bf077964a0244e7048013d6a82ee7",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"8f35afc8eabbcf0f32d774c56c3f4f8ee2e3d27e",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"cd900f6d095aa7dc1eb55c22fb0cc6bb33f58d92",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"45bd0169a4294cc2bc9df164ca7efbebe6ab6aef",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"8c94c55b7db3d3cdfd559509052f9fb2917df1b3",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};t.style=h;exports.trash_fill_icon=t;
|
|
@@ -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-bec58f1d.cjs");require("react");require("react-dom");const i=".sc-underline-icon-h{display:flex}",r=i,t=class{constructor(n){e.registerInstance(this,n),this.width="15",this.height="15"}render(){return e.h("svg",{key:"64b1d095fc53b81c91e8b5a7980772d214113714",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"a2a8c746098415012933da15471b874b5756ec48",d:"M19 4V10C19 13.866 15.866 17 12 17C8.13401 17 5 13.866 5 10V4M8.5 4V10C8.5 13.2218 10.6766 15.9352 13.6395 16.7501M4 21H20M3 4L10.5 4M17 4L21 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=r;exports.underline_icon=t;
|
|
@@ -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-bec58f1d.cjs");require("react");require("react-dom");const n=".sc-warning-icon-h{display:flex}",r=n,t=class{constructor(i){e.registerInstance(this,i),this.width="16",this.height="16"}render(){return e.h("svg",{key:"78a733b398ff7718a9a80331bb07830b5f27f1f6",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6bde2554d33fffe3f76763fcb4372fb1ec7a1c75",d:"M7.68551 1.35232L1.12678 13.2773C0.576954 14.277 1.3002 15.5002 2.4411 15.5002H15.5586C16.6995 15.5002 17.4227 14.277 16.8729 13.2773L10.3142 1.35232C9.74426 0.316153 8.2554 0.316157 7.68551 1.35232ZM8.99982 5.25016C9.41403 5.25016 9.74982 5.58595 9.74982 6.00016V10.0002C9.74982 10.4144 9.41403 10.7502 8.99982 10.7502C8.5856 10.7502 8.24982 10.4144 8.24982 10.0002V6.00016C8.24982 5.58595 8.5856 5.25016 8.99982 5.25016ZM9.74982 12.2502C9.74982 12.6644 9.41403 13.0002 8.99982 13.0002C8.5856 13.0002 8.24982 12.6644 8.24982 12.2502C8.24982 11.8359 8.5856 11.5002 8.99982 11.5002C9.41403 11.5002 9.74982 11.8359 9.74982 12.2502Z",fill:"currentColor"}))}};t.style=r;exports.warning_icon=t;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylas/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"react": "^18.2.0",
|
|
24
24
|
"react-dom": "^18.2.0",
|
|
25
|
-
"@nylas/
|
|
26
|
-
"@nylas/
|
|
25
|
+
"@nylas/core": "^1.1.1",
|
|
26
|
+
"@nylas/web-elements": "^1.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^20.8.10",
|