@nylas/web-elements 2.5.7 → 2.5.9
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 +1315 -1313
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +309 -308
- package/dist/cjs/checkmark-icon_14.cjs.entry.js +5 -3
- package/dist/cjs/checkmark-icon_14.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.cjs.js.map +1 -1
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +8 -7
- package/dist/cjs/google-logo-icon_6.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 +11 -6
- 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-C5rRjTHU.js → version-CN5nqWgI.js} +3 -3
- package/dist/cjs/{version-C5rRjTHU.js.map → version-CN5nqWgI.js.map} +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -5
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +7 -6
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +2 -1
- package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +3 -2
- package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
- package/dist/collection/version.js +1 -1
- package/dist/collection/version.js.map +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-event-calendar.js +1 -1
- package/dist/components/nylas-event-description.js +1 -1
- package/dist/components/nylas-event-title.js +1 -1
- package/dist/components/nylas-scheduler-editor.js +6 -6
- package/dist/components/nylas-scheduling.js +11 -6
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/{p-HJ5amhvq.js → p-2vIl9-lT.js} +12 -11
- package/dist/components/p-2vIl9-lT.js.map +1 -0
- package/dist/components/{p-y15sKy8D.js → p-B9G8DJJr.js} +4 -3
- package/dist/components/p-B9G8DJJr.js.map +1 -0
- package/dist/components/{p-BRszp61A.js → p-BfwqDqHx.js} +3 -3
- package/dist/components/{p-BRszp61A.js.map → p-BfwqDqHx.js.map} +1 -1
- package/dist/components/{p-CJ7rVNTy.js → p-BlxYpYrq.js} +5 -4
- package/dist/components/p-BlxYpYrq.js.map +1 -0
- package/dist/components/{p-lV8W1_93.js → p-CiJgH0CI.js} +4 -4
- package/dist/components/{p-lV8W1_93.js.map → p-CiJgH0CI.js.map} +1 -1
- package/dist/components/{p-DqVU9VaM.js → p-DwzjmWk7.js} +6 -6
- package/dist/components/{p-DqVU9VaM.js.map → p-DwzjmWk7.js.map} +1 -1
- package/dist/esm/checkmark-icon.copy-icon.dragable-icon.eye-icon.feedback-icon.input-color-picker.nylas-additional-participants.nylas-event-description.nylas-event-info.nylas-event-location.nylas-event-title.nylas-feedback-form.nylas-reminder-time.trash-icon.entry.js.map +1 -1
- package/dist/esm/checkmark-icon_14.entry.js +5 -3
- package/dist/esm/checkmark-icon_14.entry.js.map +1 -1
- package/dist/esm/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_6.entry.js +8 -7
- package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
- package/dist/esm/nylas-scheduling.entry.js +11 -6
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/{version-C5BO7xwe.js → version-zgIeli_M.js} +3 -3
- package/dist/esm/{version-C5BO7xwe.js.map → version-zgIeli_M.js.map} +1 -1
- package/dist/nylas-web-elements/google-logo-icon.microsoft-logo-icon.nylas-editor-tabs.nylas-editor-tabs-group.nylas-list-configurations.nylas-select-event-type.entry.esm.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-85955466.entry.js → p-6aa41c34.entry.js} +2 -2
- package/dist/nylas-web-elements/p-6aa41c34.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-acd75a32.entry.js +2 -0
- package/dist/nylas-web-elements/p-acd75a32.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-ae86e7c6.entry.js → p-ec243a08.entry.js} +2 -2
- package/dist/nylas-web-elements/p-f5cf565f.entry.js +2 -0
- package/dist/nylas-web-elements/p-f5cf565f.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-C5BO7xwe.js → p-zgIeli_M.js} +2 -2
- package/dist/nylas-web-elements/{p-C5BO7xwe.js.map → p-zgIeli_M.js.map} +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/dist/components/p-CJ7rVNTy.js.map +0 -1
- package/dist/components/p-HJ5amhvq.js.map +0 -1
- package/dist/components/p-y15sKy8D.js.map +0 -1
- package/dist/nylas-web-elements/p-083268de.entry.js +0 -2
- package/dist/nylas-web-elements/p-083268de.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-85955466.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-e240fd68.entry.js +0 -2
- package/dist/nylas-web-elements/p-e240fd68.entry.js.map +0 -1
- /package/dist/nylas-web-elements/{p-ae86e7c6.entry.js.map → p-ec243a08.entry.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, a
|
|
|
2
2
|
import { N as NylasBaseProvider } from './abstract-provider-DfvNw5fP.js';
|
|
3
3
|
import { N as NylasIdentityRequestWrapper } from './nylas-api-request-B3Fj4B-L.js';
|
|
4
4
|
import { d as dayjs, u as utc, t as timezone, a as debug, b as dataResponse, g as getCalendarRange, e as error, C as CONFIGURATION_EVENT_TYPE, L as LANGUAGE_CODE, i as instance, c as LANGUAGE_MAP } from './utils-OpKyWV8q.js';
|
|
5
|
-
import { o as o$1, v as version, E as ErrorCategory, N as NotificationType } from './version-
|
|
5
|
+
import { o as o$1, v as version, E as ErrorCategory, N as NotificationType } from './version-zgIeli_M.js';
|
|
6
6
|
import { c as createStore } from './index-DVBNi-yR.js';
|
|
7
7
|
|
|
8
8
|
dayjs.extend(utc);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-0EQQA0nE.js';
|
|
2
2
|
import { N as NylasBaseProvider } from './abstract-provider-DfvNw5fP.js';
|
|
3
3
|
import { n as normalizeSupportedLanguageCode, L as LANGUAGE_CODE, i as instance, f as normalizeDateInput, h as addDaysToCurrentDate, a as debug, j as detectBrowserLanguageCode, k as compactStringToUUIDs, l as LANGUAGE_CODE_TO_LOCALE_MAP, m as capitalizeFirstLetter, c as LANGUAGE_MAP } from './utils-OpKyWV8q.js';
|
|
4
|
-
import { E as ErrorCategory, v as version, u } from './version-
|
|
4
|
+
import { E as ErrorCategory, v as version, u } from './version-zgIeli_M.js';
|
|
5
5
|
import { c as createStore } from './index-DVBNi-yR.js';
|
|
6
6
|
import { i as isInitialized, a as init, f as feedbackSyncIntegration, c as captureMessage, b as captureFeedback } from './feedbackSync-B8tfyAQm.js';
|
|
7
7
|
|
|
@@ -922,9 +922,13 @@ const NylasScheduling = class {
|
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
const urlParams = new URLSearchParams(window.location.search);
|
|
925
|
-
const
|
|
926
|
-
const
|
|
927
|
-
|
|
925
|
+
const validLanguageFromUrl = normalizeSupportedLanguageCode(urlParams.get('lang')) || normalizeSupportedLanguageCode(urlParams.get('language'));
|
|
926
|
+
const initialSelectedLanguage = validLanguageFromUrl ||
|
|
927
|
+
this.defaultLanguage ||
|
|
928
|
+
normalizeSupportedLanguageCode(this.bookingInfo?.language) ||
|
|
929
|
+
this.defaultSchedulerState?.selectedLanguage ||
|
|
930
|
+
detectBrowserLanguageCode() ||
|
|
931
|
+
LANGUAGE_CODE.en;
|
|
928
932
|
this.language = initialSelectedLanguage;
|
|
929
933
|
instance.changeLanguage(initialSelectedLanguage);
|
|
930
934
|
this.stores = {
|
|
@@ -933,8 +937,8 @@ const NylasScheduling = class {
|
|
|
933
937
|
nylasBranding: this.nylasBranding,
|
|
934
938
|
themeConfig: this.themeConfig,
|
|
935
939
|
hour12: this.hour12,
|
|
936
|
-
selectedLanguage: initialSelectedLanguage,
|
|
937
940
|
...this.defaultSchedulerState,
|
|
941
|
+
selectedLanguage: initialSelectedLanguage,
|
|
938
942
|
}),
|
|
939
943
|
};
|
|
940
944
|
this.baseProvider = new NylasBaseProvider(this.host, this.stores, this.automaticComponentRegistration, this.eventOverrides);
|
|
@@ -1265,9 +1269,10 @@ const NylasScheduling = class {
|
|
|
1265
1269
|
this.applyThemeConfig(newVal);
|
|
1266
1270
|
}
|
|
1267
1271
|
languageChanged(event) {
|
|
1268
|
-
const newLanguage = event.detail;
|
|
1272
|
+
const newLanguage = normalizeSupportedLanguageCode(event.detail) || LANGUAGE_CODE.en;
|
|
1269
1273
|
this.language = newLanguage;
|
|
1270
1274
|
instance.changeLanguage(newLanguage);
|
|
1275
|
+
this.stores?.scheduler?.set('selectedLanguage', newLanguage);
|
|
1271
1276
|
}
|
|
1272
1277
|
async registerComponentHandler(event) {
|
|
1273
1278
|
this.baseProvider?.registerComponent(event.detail);
|