@nylas/web-elements 2.6.1 → 2.6.2

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.
Files changed (43) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +961 -961
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1 -1
  3. 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
  4. package/dist/cjs/google-logo-icon_6.cjs.entry.js +8 -7
  5. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  6. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  7. package/dist/cjs/nylas-scheduling.cjs.entry.js +1 -1
  8. package/dist/cjs/{version-Ep_WAjs1.js → version-pNhv-OnX.js} +3 -3
  9. package/dist/cjs/{version-Ep_WAjs1.js.map → version-pNhv-OnX.js.map} +1 -1
  10. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +7 -6
  11. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  12. package/dist/collection/version.js +1 -1
  13. package/dist/collection/version.js.map +1 -1
  14. package/dist/components/nylas-editor-tabs-group.js +1 -1
  15. package/dist/components/nylas-editor-tabs.js +1 -1
  16. package/dist/components/nylas-scheduler-editor.js +3 -3
  17. package/dist/components/nylas-scheduling.js +1 -1
  18. package/dist/components/{p-oiP2Tfx1.js → p-BvUse-6u.js} +3 -3
  19. package/dist/components/{p-oiP2Tfx1.js.map → p-BvUse-6u.js.map} +1 -1
  20. package/dist/components/{p-DRo0peiI.js → p-CK_YvIAV.js} +10 -9
  21. package/dist/components/p-CK_YvIAV.js.map +1 -0
  22. package/dist/components/{p-erV6iEKy.js → p-CmX4JCsD.js} +3 -3
  23. package/dist/components/{p-erV6iEKy.js.map → p-CmX4JCsD.js.map} +1 -1
  24. 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
  25. package/dist/esm/google-logo-icon_6.entry.js +8 -7
  26. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  27. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  28. package/dist/esm/nylas-scheduling.entry.js +1 -1
  29. package/dist/esm/{version-JnnkbSna.js → version-D-6xYsvk.js} +3 -3
  30. package/dist/esm/{version-JnnkbSna.js.map → version-D-6xYsvk.js.map} +1 -1
  31. 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
  32. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  33. package/dist/nylas-web-elements/{p-JnnkbSna.js → p-D-6xYsvk.js} +2 -2
  34. package/dist/nylas-web-elements/{p-JnnkbSna.js.map → p-D-6xYsvk.js.map} +1 -1
  35. package/dist/nylas-web-elements/{p-8c77020a.entry.js → p-a6909b16.entry.js} +2 -2
  36. package/dist/nylas-web-elements/{p-86d19f93.entry.js → p-d346e3fb.entry.js} +2 -2
  37. package/dist/nylas-web-elements/{p-731891a8.entry.js → p-f831f2f7.entry.js} +2 -2
  38. package/dist/nylas-web-elements/{p-731891a8.entry.js.map → p-f831f2f7.entry.js.map} +1 -1
  39. package/dist/types/version.d.ts +1 -1
  40. package/package.json +3 -3
  41. package/dist/components/p-DRo0peiI.js.map +0 -1
  42. /package/dist/nylas-web-elements/{p-8c77020a.entry.js.map → p-a6909b16.entry.js.map} +0 -0
  43. /package/dist/nylas-web-elements/{p-86d19f93.entry.js.map → p-d346e3fb.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, F as Fragment, c as createEvent, H as Host, a as getElement } from './index-0EQQA0nE.js';
2
2
  import { R as RegisterComponent } from './register-component-4Wk1RjFK.js';
3
3
  import { a as debug, i as instance, r as removeUndefinedProperties, s as mergeDeep, v as editorTabComponentNames, D as DEFAULT_OPEN_HOURS, w as parsePreviewLink, C as CONFIGURATION_EVENT_TYPE, x as editorGroupTabComponentNames, g as getCalendarRange } from './utils-DfIu4gMZ.js';
4
- import { E as ErrorCategory, u, v as version } from './version-JnnkbSna.js';
4
+ import { E as ErrorCategory, u, v as version } from './version-D-6xYsvk.js';
5
5
  import { i as isInitialized, a as init, c as captureMessage, b as captureFeedback, f as feedbackSyncIntegration } from './feedbackSync-B8tfyAQm.js';
6
6
 
7
7
  const iconCss$1 = ".sc-google-logo-icon-h{display:flex}";
@@ -1361,6 +1361,7 @@ const NylasEditorTabsGroup = class {
1361
1361
  email: this.currentUser?.email ?? '',
1362
1362
  };
1363
1363
  const organizerDefaultCal = this.calendars?.find(c => c.is_primary) ?? this.calendars?.[0];
1364
+ const bookingCalendar = this.selectedConfiguration?.group_booking?.calendar_id || this.formState?.bookingCalendar;
1364
1365
  const conferencing = this.formState?.conferencing || formState.conferencing;
1365
1366
  const groupEvent = {
1366
1367
  title: formState.title,
@@ -1371,7 +1372,7 @@ const NylasEditorTabsGroup = class {
1371
1372
  conferencing: !formState.location ? conferencing : undefined,
1372
1373
  when: formState.eventTimeslot.when,
1373
1374
  recurrence: formState.eventTimeslot.recurrence,
1374
- calendar_id: organizerDefaultCal?.id || 'primary',
1375
+ calendar_id: bookingCalendar || organizerDefaultCal?.id || 'primary',
1375
1376
  capacity: formState.eventCapacity,
1376
1377
  };
1377
1378
  this.groupEventCreateTriggered.emit({ groupEvent, configId: this.selectedConfiguration?.id ?? '', host: this.host });
@@ -1545,9 +1546,9 @@ const NylasEditorTabsGroup = class {
1545
1546
  }
1546
1547
  render() {
1547
1548
  debug('[nylas-editor-tabs-group]', 'render', this.formState);
1548
- return (h(Host, { key: '869e92e2e872d529e939ee02ab29b0f217dd5411' }, h("nylas-notification", { key: 'ef3ce9b6f973d2d8f43a47f97501aef8fa6df1a1' }), h("form", { key: 'c3c73ec6ccad275aa28a2febffb36f3ae8d07da1', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, this.mode === 'app' ? (h("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, h("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: e => {
1549
+ return (h(Host, { key: 'ea38ccddf3f79bc71c78d2066a6f883b874b9588' }, h("nylas-notification", { key: '167c3d1c5d213c237d24b8b4c7a0fedf52967fe0' }), h("form", { key: 'f694ba52e7cdb350620944ac8a8fa57285ef5eb6', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, this.mode === 'app' ? (h("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, h("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: e => {
1549
1550
  this.setActiveTab(e, TabGroup.CalendarView);
1550
- } }, h("chevron-icon", { width: "16", height: "16" }), h("span", null, instance.t('returnToCalendarView'))))) : null, this.mode === 'app' ? (h("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, h("div", { class: "tabs", part: "editor__tabs net__tabs" }, h("button", { name: TabGroup.BookingOptions, class: { tab: true, active: this.activeTab == TabGroup.BookingOptions, hide: this.hideTab(TabGroup.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, h("flow-icon", { width: "16", height: "16" }), instance.t('bookingOptionsTab')), h("button", { name: TabGroup.BookingForm, class: { tab: true, active: this.activeTab == TabGroup.BookingForm, hide: this.hideTab(TabGroup.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: e => this.setActiveTab(e, TabGroup.BookingForm) }, this.activeTab == TabGroup.BookingForm ? h("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h("calendar-agenda-icon", { width: "16", height: "16" }), instance.t('bookingFormTab')), h("button", { name: TabGroup.Communications, class: { tab: true, active: this.activeTab == TabGroup.Communications, hide: this.hideTab(TabGroup.Communications) }, onClick: e => this.setActiveTab(e, TabGroup.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == TabGroup.Communications ? h("envelope-fill-icon", { width: "16", height: "16" }) : h("envelope-icon", { width: "16", height: "16" }), instance.t('communicationsTab')), h("button", { name: TabGroup.PageStyles, class: { tab: true, active: this.activeTab == TabGroup.PageStyles, hide: this.hideTab(TabGroup.PageStyles) }, onClick: e => this.setActiveTab(e, TabGroup.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == TabGroup.PageStyles ? h("paintbrush-fill-icon", { width: "16", height: "16" }) : h("paintbrush-icon", { width: "16", height: "16" }), instance.t('pageStylesTab'))), h("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, h(TabContentsGroup, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: instance })))) : (h("div", { class: "composable", key: this.selectedConfiguration?.id }, h("slot", null))), h("div", { key: 'cb2a83d7dd8772baa6120fb70495cbe14b5e878d', class: "footer", part: "editor__footer net__footer" }, h("div", { key: '073938c889c7ab4e0737171f6b3926ddc7b3e309', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (h("button-component", { key: '5d0d3460afb2d2500218328015bfa26be1c6501e', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, h("feedback-icon", { key: '5de4e56012036525ea4b1ddf674d04fb5d657339' }))), this.activeTab === TabGroup.CalendarView && (h("button-component", { key: '1b645c72d8bf6e6a804f82de4a6f8c079b532199', class: "page-settings-button", title: "Go to page settings", id: "page-settings", variant: 'basic', onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, instance.t('pageSettingsButton')))), h("div", { key: 'e6a8c454f9ddd05b574c28a5c6801d2e4dc7d314', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h("p", { key: '2ad5f399b1b7b4c985d827842fdb577d5e79e713', class: {
1551
+ } }, h("chevron-icon", { width: "16", height: "16" }), h("span", null, instance.t('returnToCalendarView'))))) : null, this.mode === 'app' ? (h("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, h("div", { class: "tabs", part: "editor__tabs net__tabs" }, h("button", { name: TabGroup.BookingOptions, class: { tab: true, active: this.activeTab == TabGroup.BookingOptions, hide: this.hideTab(TabGroup.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, h("flow-icon", { width: "16", height: "16" }), instance.t('bookingOptionsTab')), h("button", { name: TabGroup.BookingForm, class: { tab: true, active: this.activeTab == TabGroup.BookingForm, hide: this.hideTab(TabGroup.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: e => this.setActiveTab(e, TabGroup.BookingForm) }, this.activeTab == TabGroup.BookingForm ? h("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h("calendar-agenda-icon", { width: "16", height: "16" }), instance.t('bookingFormTab')), h("button", { name: TabGroup.Communications, class: { tab: true, active: this.activeTab == TabGroup.Communications, hide: this.hideTab(TabGroup.Communications) }, onClick: e => this.setActiveTab(e, TabGroup.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == TabGroup.Communications ? h("envelope-fill-icon", { width: "16", height: "16" }) : h("envelope-icon", { width: "16", height: "16" }), instance.t('communicationsTab')), h("button", { name: TabGroup.PageStyles, class: { tab: true, active: this.activeTab == TabGroup.PageStyles, hide: this.hideTab(TabGroup.PageStyles) }, onClick: e => this.setActiveTab(e, TabGroup.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == TabGroup.PageStyles ? h("paintbrush-fill-icon", { width: "16", height: "16" }) : h("paintbrush-icon", { width: "16", height: "16" }), instance.t('pageStylesTab'))), h("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, h(TabContentsGroup, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: instance })))) : (h("div", { class: "composable", key: this.selectedConfiguration?.id }, h("slot", null))), h("div", { key: '2710a1a5b8171f45353b4c11be8bc1dda5fc59f6', class: "footer", part: "editor__footer net__footer" }, h("div", { key: 'ed4e6aeaffaae30b58c0e3e036f5f2fe9be688a1', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (h("button-component", { key: '75768fba66c6b859640c980dac941f335ce5da3d', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, h("feedback-icon", { key: 'ae527a14b68f25d618dedfd62817a77dba8ccafb' }))), this.activeTab === TabGroup.CalendarView && (h("button-component", { key: '55e84932280f05d34ffe21e318f5d20303954829', class: "page-settings-button", title: "Go to page settings", id: "page-settings", variant: 'basic', onClick: e => this.setActiveTab(e, TabGroup.BookingOptions) }, instance.t('pageSettingsButton')))), h("div", { key: '8310493a3f546f63c5f83158ada3c770445c417b', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h("p", { key: 'e68a97fc9c63d770188a051f17d5f7995019d23f', class: {
1551
1552
  'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,
1552
1553
  'saved-changes': this.changesSaved,
1553
1554
  'error': this.error?.message !== '',
@@ -1556,17 +1557,17 @@ const NylasEditorTabsGroup = class {
1556
1557
  ? instance.t('unsavedChangesLabel')
1557
1558
  : this.error?.message == '' && this.changesSaved
1558
1559
  ? `${instance.t('changesSavedLabel')}!`
1559
- : ''), h("div", { key: '2b1a00bfcc1d82907531ca4f01c10f6fa0753af0', class: "footer-buttons__row" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: 'd81f286280016c4a8ffc69837deafcfd62207ae1', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
1560
+ : ''), h("div", { key: 'e6dfa99d7a54cff10fa614047da8eaf4a08c5cd1', class: "footer-buttons__row" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: '5bcaceafb0093aee6e1b0e44e7d5fc50a55a3c3f', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
1560
1561
  event.preventDefault();
1561
1562
  const previewEvent = this.previewButtonClicked.emit(this.host);
1562
1563
  if (!previewEvent.defaultPrevented) {
1563
1564
  window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');
1564
1565
  }
1565
- }, variant: 'basic' }, h("eye-icon", { key: 'cf209b590796ef5d6443fd737ebdb44a34497f23' }))), h("button-component", { key: 'bf52189b404bb4fe178ae92d17960da288b01478', type: "button", disabled: this.isLoading, clickHandler: event => {
1566
+ }, variant: 'basic' }, h("eye-icon", { key: '68616edbf7801220845a626b783721277ae7f679' }))), h("button-component", { key: 'd170b787eb6be708b6fa398606ebaccdbcdd5044', type: "button", disabled: this.isLoading, clickHandler: event => {
1566
1567
  event.preventDefault();
1567
1568
  this.cancelButtonClick.emit();
1568
1569
  this.host.resetError();
1569
- }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: '773685323c7b8c7c6472b7bdabada38699366f56', class: { 'save-changes': this.action === 'edit' }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, !this.componentLoaded ? (h("span", null, h("loading-icon", null), ' ')) : this.isLoading ? (h("span", null, instance.t('savingButtonText'), h("loading-icon", null), ' ')) : this.action === 'create' ? (`${instance.t('createButtonText')}`) : (`${instance.t('saveChangesButtonText')}`)))))), this.showFeedbackModal && h("nylas-feedback-form", { key: '2cb934ae8a1d7483fec46d82ea5fa7d5050de4c0' })));
1570
+ }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: '4c224fa771c00a6d9a9ff568d9b807f4b8d8ea63', class: { 'save-changes': this.action === 'edit' }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, !this.componentLoaded ? (h("span", null, h("loading-icon", null), ' ')) : this.isLoading ? (h("span", null, instance.t('savingButtonText'), h("loading-icon", null), ' ')) : this.action === 'create' ? (`${instance.t('createButtonText')}`) : (`${instance.t('saveChangesButtonText')}`)))))), this.showFeedbackModal && h("nylas-feedback-form", { key: 'e6d64c51da3e1ecf3219c9407c42e92c42e34d09' })));
1570
1571
  }
1571
1572
  get host() { return getElement(this); }
1572
1573
  static get watchers() { return {