@nylas/react 1.1.0-canary.5 → 1.1.0-canary.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add-circle-icon_22.entry-080abc71.cjs +1 -0
- package/dist/{add-circle-icon_22.entry-9f634efd.js → add-circle-icon_22.entry-bda9be31.js} +619 -532
- package/dist/{archive-icon_7.entry-6649ed76.cjs → archive-icon_7.entry-ca20da59.cjs} +1 -1
- package/dist/{archive-icon_7.entry-24bac466.js → archive-icon_7.entry-e2954750.js} +21 -21
- package/dist/arrow-icon.entry-03a85113.js +15 -0
- package/dist/{arrow-icon.entry-1fffd526.cjs → arrow-icon.entry-548b027e.cjs} +1 -1
- package/dist/{bold-icon_3.entry-72e585da.js → bold-icon_3.entry-70ffa7f0.js} +4 -4
- package/dist/{bold-icon_3.entry-5a01fecf.cjs → bold-icon_3.entry-9a7b1869.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-0b52bdc9.cjs → calendar-cancel-icon.entry-45388fdc.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-247b530c.js → calendar-cancel-icon.entry-6bbc119f.js} +5 -5
- package/dist/{calendar-check-icon_2.entry-d7bb76c7.cjs → calendar-check-icon_2.entry-6628456c.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-dbb2df49.js → calendar-check-icon_2.entry-f633f7a6.js} +10 -10
- package/dist/{calendar-icon.entry-911773c4.cjs → calendar-icon.entry-379b1fa1.cjs} +1 -1
- package/dist/{calendar-icon.entry-d64cb3d3.js → calendar-icon.entry-62b82c27.js} +5 -5
- package/dist/{chevron-icon_3.entry-db9f8217.js → chevron-icon_3.entry-74425e1f.js} +11 -11
- package/dist/{chevron-icon_3.entry-b72f4cdb.cjs → chevron-icon_3.entry-7ff803ad.cjs} +1 -1
- package/dist/close-icon.entry-18e140ed.cjs +1 -0
- package/dist/close-icon.entry-6a8ea4a7.js +15 -0
- package/dist/{constants-6ee60d6d-d5928e79.js → constants-f34b9c6e-95a17764.js} +10 -1
- package/dist/{constants-6ee60d6d-09ee73d9.cjs → constants-f34b9c6e-e7137e51.cjs} +2 -2
- package/dist/{document-refresh-icon.entry-ee9632d7.js → document-refresh-icon.entry-32c75418.js} +2 -2
- package/dist/{document-refresh-icon.entry-5e8cc2f0.cjs → document-refresh-icon.entry-f15f795a.cjs} +1 -1
- package/dist/{elements-dc5b338e-29ef67ec.cjs → elements-dc5b338e-1f23530f.cjs} +1 -1
- package/dist/{elements-dc5b338e-e87f79b6.js → elements-dc5b338e-62fe1cf3.js} +1 -1
- package/dist/{focus-visible-e8093c16-e7357f74.js → focus-visible-e8093c16-1f664070.js} +1 -1
- package/dist/{focus-visible-e8093c16-61d506d2.cjs → focus-visible-e8093c16-f0f05815.cjs} +1 -1
- package/dist/{forward-icon_6.entry-f054ad9d.js → forward-icon_6.entry-7fab04d7.js} +9 -9
- package/dist/{forward-icon_6.entry-cac8473a.cjs → forward-icon_6.entry-ef5e2e0f.cjs} +2 -2
- package/dist/{globe-icon.entry-bc484551.cjs → globe-icon.entry-398a9826.cjs} +1 -1
- package/dist/{globe-icon.entry-2fde6ac4.js → globe-icon.entry-b8e1efae.js} +4 -4
- package/dist/google-logo-icon_4.entry-38d5c2f2.cjs +1 -0
- package/dist/google-logo-icon_4.entry-5eca9538.js +381 -0
- package/dist/{index-22f7e49c.cjs → index-93c50de4.cjs} +11 -11
- package/dist/{index-f9ba9aa8.js → index-f93f6948.js} +890 -855
- package/dist/{index.es-f57e612a-1d17c676.js → index.es-df564f87-b773d34f.js} +1 -1
- package/dist/{index.es-f57e612a-95ca3e17.cjs → index.es-df564f87-e4a4092a.cjs} +1 -1
- package/dist/{info-icon_2.entry-e67844eb.cjs → info-icon_2.entry-2eb70f49.cjs} +1 -1
- package/dist/{info-icon_2.entry-dbf3931a.js → info-icon_2.entry-6bbfa6dc.js} +5 -5
- package/dist/loading-icon.entry-b563b2e6.js +15 -0
- package/dist/loading-icon.entry-fb04b893.cjs +1 -0
- package/dist/{mailbox-store-47fc8a1a-cd3516a7.cjs → mailbox-store-69c5c5f6-631eddb5.cjs} +1 -1
- package/dist/{mailbox-store-47fc8a1a-2365f20f.js → mailbox-store-69c5c5f6-8ab4670b.js} +2 -2
- package/dist/{nylas-additional-participants.entry-7c568149.cjs → nylas-additional-participants.entry-33a45477.cjs} +1 -1
- package/dist/{nylas-additional-participants.entry-e8426256.js → nylas-additional-participants.entry-4b214308.js} +9 -9
- package/dist/{nylas-booked-event-card_10.entry-6a664889.cjs → nylas-booked-event-card_10.entry-3e225025.cjs} +1 -1
- package/dist/{nylas-booked-event-card_10.entry-ef767733.js → nylas-booked-event-card_10.entry-e93bc290.js} +7 -7
- package/dist/{nylas-form-card.entry-d8506b1f.js → nylas-form-card.entry-0748fdd5.js} +16 -16
- package/dist/{nylas-form-card.entry-e44169b6.cjs → nylas-form-card.entry-eb3607bc.cjs} +1 -1
- package/dist/{nylas-if-state.entry-044c49d2.cjs → nylas-if-state.entry-276d61ad.cjs} +1 -1
- package/dist/{nylas-if-state.entry-98a336df.js → nylas-if-state.entry-f8abd025.js} +2 -2
- package/dist/{nylas-list-folders.entry-55ce3403.js → nylas-list-folders.entry-78cc680e.js} +3 -3
- package/dist/{nylas-list-folders.entry-509f9be4.cjs → nylas-list-folders.entry-afe02f0e.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-1f57382a.js → nylas-list-threads.entry-217088de.js} +4 -4
- package/dist/{nylas-list-threads.entry-c36e2cf3.cjs → nylas-list-threads.entry-6395c12f.cjs} +1 -1
- package/dist/{nylas-login.entry-76358c2f.js → nylas-login.entry-e4d57589.js} +7 -7
- package/dist/{nylas-login.entry-66f542b8.cjs → nylas-login.entry-ec81e21b.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-5562257a.js → nylas-mailbox-pagination.entry-069673aa.js} +2 -2
- package/dist/{nylas-mailbox-pagination.entry-89b0dd99.cjs → nylas-mailbox-pagination.entry-d4d929f1.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-6b1b5b15.js → nylas-mailbox-toolbar-button.entry-03c5f5c8.js} +8 -8
- package/dist/{nylas-mailbox-toolbar-button.entry-573e0429.cjs → nylas-mailbox-toolbar-button.entry-2b9e4431.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-e21a2f50.cjs → nylas-mailbox.entry-1342178d.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-97c503f2.js → nylas-mailbox.entry-7e6b4791.js} +4 -4
- package/dist/{nylas-provider.entry-61899957.cjs → nylas-provider.entry-0ae8e70a.cjs} +1 -1
- package/dist/{nylas-provider.entry-07e1e26a.js → nylas-provider.entry-498a7be9.js} +16 -16
- package/dist/{nylas-scheduler-editor.entry-e326c9de.js → nylas-scheduler-editor.entry-4de2bb97.js} +66 -66
- package/dist/{nylas-scheduler-editor.entry-60fe38ce.cjs → nylas-scheduler-editor.entry-72c91b7d.cjs} +3 -3
- package/dist/{nylas-scheduling.entry-d88289db.cjs → nylas-scheduling.entry-1a004916.cjs} +1 -1
- package/dist/{nylas-scheduling.entry-be0cc090.js → nylas-scheduling.entry-4e18ab43.js} +3 -3
- package/dist/{nylas-threads-refresh.entry-c71ee775.cjs → nylas-threads-refresh.entry-d020c89e.cjs} +1 -1
- package/dist/{nylas-threads-refresh.entry-8201f8dd.js → nylas-threads-refresh.entry-fc2d8028.js} +11 -11
- package/dist/{nylas-threads-search.entry-912a90a4.cjs → nylas-threads-search.entry-0abcbc10.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-fc477e01.js → nylas-threads-search.entry-f92f7e30.js} +12 -12
- package/dist/{nylas-view-thread.entry-d2953ea8.js → nylas-view-thread.entry-2f1474cf.js} +6 -6
- package/dist/{nylas-view-thread.entry-af418ddb.cjs → nylas-view-thread.entry-56080c89.cjs} +1 -1
- package/dist/{people-icon.entry-73cfa6f5.cjs → people-icon.entry-431e5044.cjs} +1 -1
- package/dist/{people-icon.entry-4b598fde.js → people-icon.entry-b4778e15.js} +7 -7
- package/dist/{play-icon_2.entry-d1c2f823.js → play-icon_2.entry-24ffa01f.js} +8 -8
- package/dist/play-icon_2.entry-f97db395.cjs +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +11 -11
- package/dist/{refresh-icon.entry-6aedfce6.js → refresh-icon.entry-8395104b.js} +4 -4
- package/dist/{refresh-icon.entry-42d543d0.cjs → refresh-icon.entry-cf4416b8.cjs} +1 -1
- package/dist/{register-component-cf5c8420-dc1bc0a4.js → register-component-b9cfcbaf-c0147194.js} +1 -1
- package/dist/{register-component-cf5c8420-d3fb6bf9.cjs → register-component-b9cfcbaf-d40e1f3c.cjs} +1 -1
- package/dist/scheduler-config-store-07d98279-0610e42f.cjs +1 -0
- package/dist/scheduler-config-store-07d98279-3b70606c.js +24 -0
- package/dist/scheduler-store-24fd0e91-2dba20c2.cjs +1 -0
- package/dist/{scheduler-store-39d37291-4e8e9ff9.js → scheduler-store-24fd0e91-47098841.js} +89 -80
- package/dist/{time-period-selector.entry-f1e27a00.js → time-period-selector.entry-1e849c2e.js} +2 -2
- package/dist/{time-period-selector.entry-fb3d0178.cjs → time-period-selector.entry-d8f3462f.cjs} +1 -1
- package/dist/{translate-icon.entry-0d44b6cb.cjs → translate-icon.entry-66533238.cjs} +1 -1
- package/dist/{translate-icon.entry-3db947f5.js → translate-icon.entry-d847f706.js} +5 -5
- package/dist/{warning-icon.entry-a20657e4.cjs → warning-icon.entry-1f0f00ed.cjs} +1 -1
- package/dist/warning-icon.entry-b5db0151.js +15 -0
- package/package.json +3 -3
- package/dist/add-circle-icon_22.entry-e7ec6c34.cjs +0 -1
- package/dist/arrow-icon.entry-82e59ce4.js +0 -15
- package/dist/close-icon.entry-9d141bb4.js +0 -15
- package/dist/close-icon.entry-da590fa2.cjs +0 -1
- package/dist/google-logo-icon_4.entry-a9848399.cjs +0 -1
- package/dist/google-logo-icon_4.entry-dca87e45.js +0 -349
- package/dist/loading-icon.entry-4566cba8.cjs +0 -1
- package/dist/loading-icon.entry-ae4c2d7e.js +0 -15
- package/dist/play-icon_2.entry-1a487abb.cjs +0 -1
- package/dist/scheduler-config-store-6222c0ed-000f1a4f.js +0 -18
- package/dist/scheduler-config-store-6222c0ed-758621fb.cjs +0 -1
- package/dist/scheduler-store-39d37291-b66c052c.cjs +0 -1
- package/dist/warning-icon.entry-a8ea0fe0.js +0 -15
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
var
|
|
1
|
+
import { d as w, e as D } from "./index-f93f6948.js";
|
|
2
|
+
var v;
|
|
3
3
|
(function(r) {
|
|
4
4
|
r.Component = "component", r.Api = "api", r.Auth = "auth";
|
|
5
|
-
})(
|
|
6
|
-
var I;
|
|
7
|
-
(function(r) {
|
|
8
|
-
r.endtime_not_in_future = "endtime_not_in_future", r.no_booking_info = "no_booking_info", r.no_timeslot_selected = "no_timeslot_selected", r.no_booking_id = "no_booking_id", r.invalid_start_time = "invalid_start_time", r.invalid_end_time = "invalid_end_time", r.invalid_timezone = "invalid_timezone";
|
|
9
|
-
})(I || (I = {}));
|
|
5
|
+
})(v || (v = {}));
|
|
10
6
|
var P;
|
|
11
7
|
(function(r) {
|
|
12
|
-
r.
|
|
8
|
+
r.endtime_not_in_future = "endtime_not_in_future", r.no_booking_info = "no_booking_info", r.no_timeslot_selected = "no_timeslot_selected", r.no_timezone_selected = "no_timezone_selected", r.no_booking_id = "no_booking_id", r.invalid_start_time = "invalid_start_time", r.invalid_end_time = "invalid_end_time", r.invalid_timezone = "invalid_timezone";
|
|
13
9
|
})(P || (P = {}));
|
|
14
|
-
|
|
10
|
+
var b;
|
|
11
|
+
(function(r) {
|
|
12
|
+
r.invalid_session = "invalid_session", r.general_error = "general_error", r.internal_error = "internal_error", r.invalid_request_error = "invalid_request_error", r.timeslot_not_available = "timeslot_not_available";
|
|
13
|
+
})(b || (b = {}));
|
|
14
|
+
class R {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.component = (t) => {
|
|
17
|
-
const e =
|
|
17
|
+
const e = v.Component, s = `${t} error`;
|
|
18
18
|
return {
|
|
19
19
|
endtime_not_in_future: (i = '"endtime" can not be in the future') => ({
|
|
20
20
|
title: s,
|
|
@@ -31,6 +31,11 @@ class L {
|
|
|
31
31
|
message: i,
|
|
32
32
|
category: e
|
|
33
33
|
}),
|
|
34
|
+
no_timezone_selected: (i = "No timezone selected") => ({
|
|
35
|
+
title: s,
|
|
36
|
+
message: i,
|
|
37
|
+
category: e
|
|
38
|
+
}),
|
|
34
39
|
no_booking_id: (i = "No booking id provided") => ({
|
|
35
40
|
title: s,
|
|
36
41
|
message: i,
|
|
@@ -53,7 +58,7 @@ class L {
|
|
|
53
58
|
})
|
|
54
59
|
};
|
|
55
60
|
}, this.api = (t) => {
|
|
56
|
-
const e =
|
|
61
|
+
const e = v.Api, s = `${t} error`;
|
|
57
62
|
return {
|
|
58
63
|
invalid_session: (i) => ({
|
|
59
64
|
title: s,
|
|
@@ -84,9 +89,9 @@ class L {
|
|
|
84
89
|
};
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
|
-
class
|
|
92
|
+
class B {
|
|
88
93
|
constructor({ schedulerAPIURL: t, schedulerStore: e, sessionId: s, configId: i }) {
|
|
89
|
-
this.errors = new
|
|
94
|
+
this.errors = new R(), this.schedulerStore = e, this.schedulerAPIURL = t, this.sessionId = s, this.configId = i;
|
|
90
95
|
}
|
|
91
96
|
getHeaders() {
|
|
92
97
|
return this.configId ? {} : {
|
|
@@ -149,70 +154,74 @@ class A {
|
|
|
149
154
|
async setReschedule(t) {
|
|
150
155
|
const e = /* @__PURE__ */ new Date();
|
|
151
156
|
this.schedulerStore.set("rescheduleBookingId", t), this.schedulerStore.set("selectedTimeslot", null), this.schedulerStore.set("eventInfo", null), this.schedulerStore.set("showBookingForm", !1);
|
|
152
|
-
const s = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, i = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3, n = await this.getAvailability(s, i),
|
|
153
|
-
let
|
|
154
|
-
return
|
|
157
|
+
const s = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, i = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3, n = await this.getAvailability(s, i), l = this.schedulerStore.get("availability").find((a) => new Date(a.start_time) > /* @__PURE__ */ new Date());
|
|
158
|
+
let d = e;
|
|
159
|
+
return l && (d = l.start_time), this.schedulerStore.set("selectedDate", d), n;
|
|
155
160
|
}
|
|
156
161
|
async setCancel(t) {
|
|
157
162
|
this.schedulerStore.set("cancelBookingId", t);
|
|
158
163
|
}
|
|
159
164
|
async bookTimeslot(t) {
|
|
160
|
-
var
|
|
165
|
+
var c;
|
|
161
166
|
this.schedulerStore.set("isLoading", !0);
|
|
162
|
-
const { selectedTimeslot: e,
|
|
163
|
-
if (!t && !
|
|
167
|
+
const { selectedTimeslot: e, selectedTimezone: s, bookingInfo: i } = this.schedulerStore.state;
|
|
168
|
+
if (!t && !i)
|
|
164
169
|
return { error: this.errors.component("Booking").no_booking_info() };
|
|
165
|
-
const
|
|
166
|
-
if (!
|
|
170
|
+
const n = (t == null ? void 0 : t.timeslot) || e;
|
|
171
|
+
if (!n)
|
|
167
172
|
return { error: this.errors.component("Create Booking").no_timeslot_selected() };
|
|
168
|
-
const
|
|
173
|
+
const l = t && (t != null && t.timezone) ? t == null ? void 0 : t.timezone : s;
|
|
174
|
+
if (!l)
|
|
175
|
+
return { error: this.errors.component("Create Booking").no_timezone_selected() };
|
|
176
|
+
const d = t ? t == null ? void 0 : t.primaryParticipant : i == null ? void 0 : i.primaryParticipant, a = t ? (t == null ? void 0 : t.guests) || [] : (i == null ? void 0 : i.guests) || [], h = t ? { ...t == null ? void 0 : t.additionalFields, guests: a } : { ...i == null ? void 0 : i.additionalFields, guests: a }, p = this.getHeaders(), _ = `/v3/scheduling/bookings${this.configId ? `?configuration_id=${this.configId}` : ""}`, o = await this.makeAPIRequest(decodeURIComponent(_), "POST", JSON.stringify({
|
|
169
177
|
additional_fields: h,
|
|
170
|
-
guest: { ...
|
|
171
|
-
start_time:
|
|
172
|
-
end_time:
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
guest: { ...d },
|
|
179
|
+
start_time: n.start_time.getTime() / 1e3,
|
|
180
|
+
end_time: n.end_time.getTime() / 1e3,
|
|
181
|
+
timezone: l
|
|
182
|
+
}), p);
|
|
183
|
+
if ("error" in o) {
|
|
175
184
|
this.schedulerStore.set("isLoading", !1);
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
return
|
|
185
|
+
const u = (c = o.error) == null ? void 0 : c.type;
|
|
186
|
+
let m = o.error;
|
|
187
|
+
return u && u in this.errors.api("Create Booking") && (m = this.errors.api("Create Booking")[u]((m == null ? void 0 : m.message) || (m == null ? void 0 : m.title) || "Something went wrong")), { error: m };
|
|
179
188
|
}
|
|
180
|
-
return "data" in
|
|
189
|
+
return "data" in o && this.schedulerStore.set("eventInfo", o == null ? void 0 : o.data), this.schedulerStore.set("isLoading", !1), o;
|
|
181
190
|
}
|
|
182
191
|
async getAvailability(t = 0, e = 0) {
|
|
183
|
-
var p,
|
|
192
|
+
var p, S, _;
|
|
184
193
|
this.schedulerStore.set("isLoading", !0);
|
|
185
194
|
const s = new URLSearchParams(), i = /* @__PURE__ */ new Date(), n = i.getTime();
|
|
186
195
|
if (e && e < n / 1e3)
|
|
187
196
|
return this.schedulerStore.set("isLoading", !1), { error: this.errors.component("Get Availability").endtime_not_in_future() };
|
|
188
197
|
if (!t) {
|
|
189
|
-
const
|
|
190
|
-
t = Math.floor(
|
|
198
|
+
const o = new Date(i.getFullYear(), i.getMonth(), 1);
|
|
199
|
+
t = Math.floor(o.getTime() / 1e3);
|
|
191
200
|
}
|
|
192
201
|
if (!e) {
|
|
193
|
-
const
|
|
194
|
-
e = Math.floor(
|
|
202
|
+
const o = new Date(i.getFullYear(), i.getMonth() + 1, 0);
|
|
203
|
+
e = Math.floor(o.getTime() / 1e3);
|
|
195
204
|
}
|
|
196
205
|
s.append("start_time", encodeURIComponent(t.toString())), s.append("end_time", encodeURIComponent(e.toString())), this.configId && s.append("configuration_id", encodeURIComponent(this.configId));
|
|
197
|
-
const
|
|
198
|
-
if ("error" in
|
|
206
|
+
const l = s.toString(), d = `/v3/scheduling/availability${l ? `?${l}` : ""}`, a = this.getHeaders(), h = await this.makeAPIRequest(decodeURIComponent(d), "GET", void 0, a);
|
|
207
|
+
if ("error" in h) {
|
|
199
208
|
this.schedulerStore.set("availability", []), this.schedulerStore.set("isLoading", !1);
|
|
200
|
-
const
|
|
201
|
-
let
|
|
202
|
-
return
|
|
209
|
+
const o = (p = h.error) == null ? void 0 : p.type;
|
|
210
|
+
let c = h.error;
|
|
211
|
+
return o && o in this.errors.api("Get Availability") && (c = this.errors.api("Get Availability")[o]((c == null ? void 0 : c.message) || (c == null ? void 0 : c.title) || "Something went wrong")), { error: c };
|
|
203
212
|
}
|
|
204
|
-
if ("data" in
|
|
205
|
-
const
|
|
206
|
-
...
|
|
207
|
-
start_time: new Date(
|
|
208
|
-
end_time: new Date(
|
|
209
|
-
}))) || []).filter((
|
|
210
|
-
this.schedulerStore.set("availability",
|
|
213
|
+
if ("data" in h) {
|
|
214
|
+
const c = (((_ = (S = h.data) == null ? void 0 : S.time_slots) == null ? void 0 : _.map((u) => ({
|
|
215
|
+
...u,
|
|
216
|
+
start_time: new Date(u.start_time * 1e3),
|
|
217
|
+
end_time: new Date(u.end_time * 1e3)
|
|
218
|
+
}))) || []).filter((u) => u.start_time.getTime() > n);
|
|
219
|
+
this.schedulerStore.set("availability", c);
|
|
211
220
|
}
|
|
212
|
-
return this.schedulerStore.set("isLoading", !1),
|
|
221
|
+
return this.schedulerStore.set("isLoading", !1), h;
|
|
213
222
|
}
|
|
214
223
|
async cancelBooking(t) {
|
|
215
|
-
var
|
|
224
|
+
var l;
|
|
216
225
|
if (this.schedulerStore.set("isLoading", !0), !t)
|
|
217
226
|
return { error: this.errors.component("Cancel Booking").no_booking_id() };
|
|
218
227
|
const e = this.configId ? `?configuration_id=${this.configId}` : "", s = `/v3/scheduling/bookings/${t}${e}`, i = this.getHeaders(), n = await this.makeAPIRequest(decodeURIComponent(s), "DELETE", JSON.stringify({
|
|
@@ -220,44 +229,44 @@ class A {
|
|
|
220
229
|
}), i);
|
|
221
230
|
if ("error" in n) {
|
|
222
231
|
this.schedulerStore.set("isLoading", !1);
|
|
223
|
-
const
|
|
224
|
-
let
|
|
225
|
-
return
|
|
232
|
+
const d = (l = n.error) == null ? void 0 : l.type;
|
|
233
|
+
let a = n.error;
|
|
234
|
+
return d && d in this.errors.api("Cancel Booking") && (a = this.errors.api("Cancel Booking")[d]((a == null ? void 0 : a.message) || (a == null ? void 0 : a.title) || "Something went wrong")), { error: a };
|
|
226
235
|
}
|
|
227
236
|
return this.schedulerStore.set("cancelledEventInfo", {
|
|
228
237
|
booking_id: t
|
|
229
238
|
}), this.schedulerStore.set("isLoading", !1), n;
|
|
230
239
|
}
|
|
231
240
|
async rescheduleBooking(t, e) {
|
|
232
|
-
var
|
|
241
|
+
var I;
|
|
233
242
|
if (this.schedulerStore.set("isLoading", !0), !t)
|
|
234
243
|
return { error: this.errors.component("Reschedule Booking").no_booking_id() };
|
|
235
|
-
const s = this.errors.api("Reschedule Booking"), i = this.errors.component("Reschedule Booking"), { bookingInfo: n, selectedTimeslot:
|
|
236
|
-
if (!
|
|
244
|
+
const s = this.errors.api("Reschedule Booking"), i = this.errors.component("Reschedule Booking"), { bookingInfo: n, selectedTimeslot: l, selectedTimezone: d } = this.schedulerStore.state, { startTime: a, endTime: h, timezone: p } = e, S = a || (l == null ? void 0 : l.start_time);
|
|
245
|
+
if (!S)
|
|
237
246
|
return { error: i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
|
|
238
|
-
const
|
|
239
|
-
if (!
|
|
247
|
+
const _ = h || (l == null ? void 0 : l.end_time);
|
|
248
|
+
if (!_)
|
|
240
249
|
return { error: i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
250
|
+
const o = p || d;
|
|
251
|
+
if (!o)
|
|
243
252
|
return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
|
|
244
|
-
const
|
|
245
|
-
start_time:
|
|
246
|
-
end_time:
|
|
247
|
-
time_zone:
|
|
248
|
-
additional_fields:
|
|
249
|
-
guest: { ...
|
|
250
|
-
}),
|
|
251
|
-
if ("error" in
|
|
253
|
+
const c = e ? e == null ? void 0 : e.primaryParticipant : n == null ? void 0 : n.primaryParticipant, u = e ? (e == null ? void 0 : e.guests) || [] : (n == null ? void 0 : n.guests) || [], m = e ? { ...e == null ? void 0 : e.additionalFields, guests: u } : { ...n == null ? void 0 : n.additionalFields, guests: u }, k = this.configId ? `?configuration_id=${this.configId}` : "", T = `/v3/scheduling/bookings/${t}${k}`, z = this.getHeaders(), g = await this.makeAPIRequest(decodeURIComponent(T), "PATCH", JSON.stringify({
|
|
254
|
+
start_time: S.getTime() / 1e3,
|
|
255
|
+
end_time: _.getTime() / 1e3,
|
|
256
|
+
time_zone: o,
|
|
257
|
+
additional_fields: m,
|
|
258
|
+
guest: { ...c }
|
|
259
|
+
}), z);
|
|
260
|
+
if ("error" in g) {
|
|
252
261
|
this.schedulerStore.set("isLoading", !1);
|
|
253
|
-
const
|
|
254
|
-
let f =
|
|
255
|
-
|
|
262
|
+
const y = (I = g.error) == null ? void 0 : I.type;
|
|
263
|
+
let f = g.error;
|
|
264
|
+
y && y in s && (f = s[y]((f == null ? void 0 : f.message) || (f == null ? void 0 : f.title) || "Something went wrong"));
|
|
256
265
|
}
|
|
257
|
-
return "data" in
|
|
266
|
+
return "data" in g && this.schedulerStore.set("eventInfo", g == null ? void 0 : g.data), this.schedulerStore.set("isLoading", !1), g;
|
|
258
267
|
}
|
|
259
268
|
}
|
|
260
|
-
function
|
|
269
|
+
function A(r = {}) {
|
|
261
270
|
const t = {
|
|
262
271
|
selectedDate: null,
|
|
263
272
|
selectedLanguage: navigator.language,
|
|
@@ -273,12 +282,12 @@ function C(r = {}) {
|
|
|
273
282
|
nylasBranding: !0,
|
|
274
283
|
...r
|
|
275
284
|
};
|
|
276
|
-
|
|
277
|
-
const e =
|
|
285
|
+
w("[defaultNylasStoreState]: ", t);
|
|
286
|
+
const e = D(t);
|
|
278
287
|
return e.onChange("availability", (s) => {
|
|
279
|
-
|
|
288
|
+
w("[availability]: ", s);
|
|
280
289
|
const i = s.map((n) => n.start_time);
|
|
281
|
-
|
|
290
|
+
w("[selectableDates]: ", i), e.set("selectableDates", i);
|
|
282
291
|
}), e.reset = () => {
|
|
283
292
|
for (const s in t) {
|
|
284
293
|
const i = t[s];
|
|
@@ -287,7 +296,7 @@ function C(r = {}) {
|
|
|
287
296
|
}, e;
|
|
288
297
|
}
|
|
289
298
|
export {
|
|
290
|
-
C,
|
|
291
|
-
|
|
292
|
-
|
|
299
|
+
A as C,
|
|
300
|
+
v as E,
|
|
301
|
+
B as N
|
|
293
302
|
};
|
package/dist/{time-period-selector.entry-f1e27a00.js → time-period-selector.entry-1e849c2e.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as i, c as s, d as n, h as d, g as l } from "./index-
|
|
1
|
+
import { r as i, c as s, d as n, h as d, g as l } from "./index-f93f6948.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const a = ".time-period-selector.sc-time-period-selector{display:flex;gap:0.5rem}.time-period-selector.sc-time-period-selector select-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#time-period.sc-time-period-selector::part(sd_dropdown-button){min-width:108px}.time-period-selector.sc-time-period-selector select-dropdown#time-number.sc-time-period-selector::part(sd_dropdown-button){min-width:84px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}", c = a, p = class {
|
|
@@ -57,7 +57,7 @@ const a = ".time-period-selector.sc-time-period-selector{display:flex;gap:0.5rem
|
|
|
57
57
|
})), this.selectedNumber = parseInt(this.numberOptions[0].value);
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return d("div", { key: "
|
|
60
|
+
return d("div", { key: "eaec00db41b0c2410fc4a9ccc341fc4ec4012e10", class: "time-period-selector" }, d("select-dropdown", { key: "0d53efe90429a05d4f52a8f1b92bf46b14b1e6ad", id: "time-number", name: "time-number", exportparts: "sd__dropdown: tps__number-dropdown, sd__dropdown-button: tps__number-dropdown-button, sd__dropdown-content: tps__number-dropdown-content", options: this.numberOptions, defaultSelectedOption: this.numberOptions.find((e) => e.value == this.selectedNumber.toString()) ?? this.numberOptions[0], withSearch: !1 }), d("select-dropdown", { key: "bce764e3e959eb4fad73d1e410173d584f243ee5", 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((e) => e.value == this.selectedPeriod) ?? this.timePeriodOptions[0], withSearch: !1 }));
|
|
61
61
|
}
|
|
62
62
|
get host() {
|
|
63
63
|
return l(this);
|
package/dist/{time-period-selector.entry-fb3d0178.cjs → time-period-selector.entry-d8f3462f.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-93c50de4.cjs");require("react");require("react-dom");const s=".time-period-selector.sc-time-period-selector{display:flex;gap:0.5rem}.time-period-selector.sc-time-period-selector select-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#time-period.sc-time-period-selector::part(sd_dropdown-button){min-width:108px}.time-period-selector.sc-time-period-selector select-dropdown#time-number.sc-time-period-selector::part(sd_dropdown-button){min-width:84px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}",n=s,i=class{constructor(e){d.registerInstance(this,e),this.timePeriodChanged=d.createEvent(this,"timePeriodChanged",7),this.timePeriods=["hour","day","week","month"],this.defaultSelectedPeriod="hour",this.defaultSelectedNumber=1,this.selectedPeriod=this.defaultSelectedPeriod,this.selectedNumber=this.defaultSelectedNumber,this.numberOptions=this.calculateOptions("hour").map(t=>({label:t.toString(),value:t.toString()})),this.timePeriodOptions=this.timePeriods.map(t=>({label:t,value:t}))}defaultSelectedPeriodChangedHandler(e){this.selectedPeriod=e,this.updateNumberOptionsAndSelectedNumber(e)}defaultSelectedNumberChangedHandler(e){this.selectedNumber=e}timePeriodsChangedHandler(e){this.timePeriodOptions=e.map(t=>({label:t,value:t}))}calculateOptions(e){switch(e){case"hour":return Array.from({length:23},(t,r)=>r+1);case"minute":return Array.from({length:60},(t,r)=>r);case"day":return Array.from({length:30},(t,r)=>r+1);case"week":return Array.from({length:4},(t,r)=>r+1);case"month":return Array.from({length:12},(t,r)=>r+1);default:return[]}}selectedOptionChangedHandler(e){d.debug("time-period-selector","selectedOptionChangedHandler",e.detail);const{value:t,name:r}=e.detail;r==="time-period"?(this.selectedPeriod=t,this.updateNumberOptionsAndSelectedNumber(t)):r==="time-number"&&(this.selectedNumber=parseInt(t));const o={number:this.selectedNumber,period:this.selectedPeriod};this.timePeriodChanged.emit(o)}updateNumberOptionsAndSelectedNumber(e){const t=this.calculateOptions(e);this.numberOptions=t.map(r=>({label:r.toString(),value:r.toString()})),this.selectedNumber=parseInt(this.numberOptions[0].value)}render(){return d.h("div",{key:"eaec00db41b0c2410fc4a9ccc341fc4ec4012e10",class:"time-period-selector"},d.h("select-dropdown",{key:"0d53efe90429a05d4f52a8f1b92bf46b14b1e6ad",id:"time-number",name:"time-number",exportparts:"sd__dropdown: tps__number-dropdown, sd__dropdown-button: tps__number-dropdown-button, sd__dropdown-content: tps__number-dropdown-content",options:this.numberOptions,defaultSelectedOption:this.numberOptions.find(e=>e.value==this.selectedNumber.toString())??this.numberOptions[0],withSearch:!1}),d.h("select-dropdown",{key:"bce764e3e959eb4fad73d1e410173d584f243ee5",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(e=>e.value==this.selectedPeriod)??this.timePeriodOptions[0],withSearch:!1}))}get host(){return d.getElement(this)}static get watchers(){return{defaultSelectedPeriod:["defaultSelectedPeriodChangedHandler"],defaultSelectedNumber:["defaultSelectedNumberChangedHandler"],timePeriods:["timePeriodsChangedHandler"]}}};i.style=n;exports.time_period_selector=i;
|
|
@@ -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-93c50de4.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:"2196637bc95dbea321941ad3080c130dcea629c1",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 20 20",fill:"none"},C.h("path",{key:"2c2a3192f284366cb9d53e8f381e48cdfa546eb2",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,15 +1,15 @@
|
|
|
1
|
-
import { r as e, h as C } from "./index-
|
|
1
|
+
import { r as e, h as C } from "./index-f93f6948.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const s = ".sc-translate-icon-h{display:flex}",
|
|
4
|
+
const s = ".sc-translate-icon-h{display:flex}", i = s, c = class {
|
|
5
5
|
constructor(t) {
|
|
6
6
|
e(this, t), this.width = "16", this.height = "16";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return C("svg", { key: "
|
|
9
|
+
return C("svg", { key: "2196637bc95dbea321941ad3080c130dcea629c1", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, C("path", { key: "2c2a3192f284366cb9d53e8f381e48cdfa546eb2", 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" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
c.style = i;
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
c as translate_icon
|
|
15
15
|
};
|
|
@@ -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-93c50de4.cjs");require("react");require("react-dom");const r=".sc-warning-icon-h{display:flex}",i=r,n=class{constructor(t){e.registerInstance(this,t),this.width="16",this.height="16"}render(){return e.h("svg",{key:"5a655b4440d40d0e22c0e8bb3d9e3f08a947eb32",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"c3de0f39d8816fcc092f0a4bc6231e9cb91283de",d:"M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z",fill:"currentColor"}))}};n.style=i;exports.warning_icon=n;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as a, h as n } from "./index-f93f6948.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const e = ".sc-warning-icon-h{display:flex}", r = e, i = class {
|
|
5
|
+
constructor(t) {
|
|
6
|
+
a(this, t), this.width = "16", this.height = "16";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return n("svg", { key: "5a655b4440d40d0e22c0e8bb3d9e3f08a947eb32", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { key: "c3de0f39d8816fcc092f0a4bc6231e9cb91283de", d: "M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z", fill: "currentColor" }));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
i.style = r;
|
|
13
|
+
export {
|
|
14
|
+
i as warning_icon
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylas/react",
|
|
3
|
-
"version": "1.1.0-canary.
|
|
3
|
+
"version": "1.1.0-canary.8",
|
|
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/web-elements": "^1.1.0-canary.
|
|
26
|
-
"@nylas/core": "^1.1.0-canary.
|
|
25
|
+
"@nylas/web-elements": "^1.1.0-canary.8",
|
|
26
|
+
"@nylas/core": "^1.1.0-canary.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^20.8.10",
|