@nylas/web-elements 2.3.1-canary-20260108155609 → 2.3.1-canary-20260108171032
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/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +1 -1
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4069 -4071
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +1 -1
- package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +10 -2
- package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -16
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
- package/dist/cjs/{version-7tiQyQzm.js → version-CeT_0n4A.js} +3 -3
- package/dist/cjs/{version-7tiQyQzm.js.map → version-CeT_0n4A.js.map} +1 -1
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +10 -2
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler.js +2 -18
- package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
- package/dist/collection/version.js +1 -1
- package/dist/collection/version.js.map +1 -1
- package/dist/components/nylas-date-picker.js +1 -1
- package/dist/components/nylas-editor-tabs-group.js +1 -1
- package/dist/components/nylas-editor-tabs.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +3 -3
- package/dist/components/nylas-scheduling.js +5 -18
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/{p-CfFKgyg4.js → p-B6VIJyX4.js} +3 -3
- package/dist/components/{p-CfFKgyg4.js.map → p-B6VIJyX4.js.map} +1 -1
- package/dist/components/{p-jdTk8JQH.js → p-CiVq4q_I.js} +3 -3
- package/dist/components/{p-jdTk8JQH.js.map → p-CiVq4q_I.js.map} +1 -1
- package/dist/components/{p-CrkAtQ72.js → p-D9LfvAE5.js} +12 -4
- package/dist/components/p-D9LfvAE5.js.map +1 -0
- package/dist/components/{p-B_1k1rpl.js → p-riLaBDV9.js} +3 -3
- package/dist/components/{p-B_1k1rpl.js.map → p-riLaBDV9.js.map} +1 -1
- package/dist/esm/google-logo-icon_6.entry.js +1 -1
- package/dist/esm/nylas-booked-event-card_11.entry.js +10 -2
- package/dist/esm/nylas-booked-event-card_11.entry.js.map +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
- package/dist/esm/nylas-scheduling.entry.js +4 -17
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/{version-CJAr1BgW.js → version-DmGp_17P.js} +3 -3
- package/dist/esm/{version-CJAr1BgW.js.map → version-DmGp_17P.js.map} +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-9a4d5f1b.entry.js → p-001fc991.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-CJAr1BgW.js → p-DmGp_17P.js} +2 -2
- package/dist/nylas-web-elements/{p-CJAr1BgW.js.map → p-DmGp_17P.js.map} +1 -1
- package/dist/nylas-web-elements/p-a32e0d72.entry.js +2 -0
- package/dist/nylas-web-elements/p-a32e0d72.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-544c4297.entry.js → p-ab80b127.entry.js} +2 -2
- package/dist/nylas-web-elements/p-ab80b127.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-a80bea66.entry.js → p-cf845da4.entry.js} +2 -2
- package/dist/types/connector/shared/api/scheduler.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/dist/components/p-CrkAtQ72.js.map +0 -1
- package/dist/nylas-web-elements/p-544c4297.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-c3b1d596.entry.js +0 -2
- package/dist/nylas-web-elements/p-c3b1d596.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-9a4d5f1b.entry.js.map → p-001fc991.entry.js.map} +0 -0
- /package/dist/nylas-web-elements/{p-a80bea66.entry.js.map → p-cf845da4.entry.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, F as Fragment, p as proxyCustomElement, H, e as createEvent, i as Host } from './p-Bht9ktsW.js';
|
|
2
2
|
import { N as NylasBaseProvider } from './p-D9Cqd6li.js';
|
|
3
|
-
import {
|
|
3
|
+
import { b as instance, x as addDaysToCurrentDate, a as debug, P as compactStringToUUIDs, n as capitalizeFirstLetter } from './p-dEI4mtiM.js';
|
|
4
4
|
import { E as ErrorCategory, u } from './p-C1VNIgoH.js';
|
|
5
|
-
import { v as version, i as isInitialized, a as init, f as feedbackSyncIntegration, c as captureMessage, b as captureFeedback } from './p-
|
|
5
|
+
import { v as version, i as isInitialized, a as init, f as feedbackSyncIntegration, c as captureMessage, b as captureFeedback } from './p-riLaBDV9.js';
|
|
6
6
|
import { c as createStore } from './p-DVWbg8if.js';
|
|
7
7
|
import { L as LANGUAGE_CODE, c as LANGUAGE_MAP } from './p-DUCeQ1R4.js';
|
|
8
8
|
import { d as defineCustomElement$D } from './p-Ha2t2y12.js';
|
|
@@ -27,7 +27,7 @@ import { d as defineCustomElement$l } from './p-D0JQ_-Qx.js';
|
|
|
27
27
|
import { d as defineCustomElement$k } from './p-Jb5C0Wcj.js';
|
|
28
28
|
import { d as defineCustomElement$j } from './p-DOG2VNj_.js';
|
|
29
29
|
import { d as defineCustomElement$i } from './p-Di7xtAN8.js';
|
|
30
|
-
import { d as defineCustomElement$h } from './p-
|
|
30
|
+
import { d as defineCustomElement$h } from './p-D9LfvAE5.js';
|
|
31
31
|
import { d as defineCustomElement$g } from './p-DsJUpcxE.js';
|
|
32
32
|
import { d as defineCustomElement$f } from './p-C1X9fzID.js';
|
|
33
33
|
import { d as defineCustomElement$e } from './p-2_78I5nY.js';
|
|
@@ -180,8 +180,6 @@ class Errors {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
dayjs.extend(utc);
|
|
184
|
-
dayjs.extend(timezone);
|
|
185
183
|
class NylaSchedulerAPIConnector {
|
|
186
184
|
constructor({ schedulerAPIURL, schedulerStore, sessionId, configId, slug, clientId }) {
|
|
187
185
|
this.errors = new Errors();
|
|
@@ -245,19 +243,8 @@ class NylaSchedulerAPIConnector {
|
|
|
245
243
|
selectTime(time) {
|
|
246
244
|
this.schedulerStore.set('selectedTimeslot', time);
|
|
247
245
|
}
|
|
248
|
-
selectTimezone(
|
|
249
|
-
|
|
250
|
-
const selectedDate = this.schedulerStore.get('selectedDate');
|
|
251
|
-
if (selectedDate && currentTimezone && currentTimezone !== newTimezone) {
|
|
252
|
-
const dateInOldTimezone = dayjs(selectedDate).tz(currentTimezone);
|
|
253
|
-
const year = dateInOldTimezone.year();
|
|
254
|
-
const month = dateInOldTimezone.month();
|
|
255
|
-
const date = dateInOldTimezone.date();
|
|
256
|
-
const adjustedDate = dayjs.tz(`${year}-${String(month + 1).padStart(2, '0')}-${String(date).padStart(2, '0')} 12:00`, newTimezone);
|
|
257
|
-
this.schedulerStore.set('selectedDate', adjustedDate.toDate());
|
|
258
|
-
}
|
|
259
|
-
this.schedulerStore.set('selectedTimeslot', null);
|
|
260
|
-
this.schedulerStore.set('selectedTimezone', newTimezone);
|
|
246
|
+
selectTimezone(timezone) {
|
|
247
|
+
this.schedulerStore.set('selectedTimezone', timezone);
|
|
261
248
|
}
|
|
262
249
|
selectLanguage(language) {
|
|
263
250
|
this.schedulerStore.set('selectedLanguage', language);
|