@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.
Files changed (77) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +1315 -1313
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +309 -308
  3. package/dist/cjs/checkmark-icon_14.cjs.entry.js +5 -3
  4. package/dist/cjs/checkmark-icon_14.cjs.entry.js.map +1 -1
  5. 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
  6. package/dist/cjs/google-logo-icon_6.cjs.entry.js +8 -7
  7. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  8. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  9. package/dist/cjs/nylas-scheduling.cjs.entry.js +11 -6
  10. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  11. package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
  12. package/dist/cjs/{version-C5rRjTHU.js → version-CN5nqWgI.js} +3 -3
  13. package/dist/cjs/{version-C5rRjTHU.js.map → version-CN5nqWgI.js.map} +1 -1
  14. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -5
  15. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  16. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +7 -6
  17. package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
  18. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +2 -1
  19. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
  20. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +3 -2
  21. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
  22. package/dist/collection/version.js +1 -1
  23. package/dist/collection/version.js.map +1 -1
  24. package/dist/components/nylas-editor-tabs-group.js +1 -1
  25. package/dist/components/nylas-editor-tabs.js +1 -1
  26. package/dist/components/nylas-event-calendar.js +1 -1
  27. package/dist/components/nylas-event-description.js +1 -1
  28. package/dist/components/nylas-event-title.js +1 -1
  29. package/dist/components/nylas-scheduler-editor.js +6 -6
  30. package/dist/components/nylas-scheduling.js +11 -6
  31. package/dist/components/nylas-scheduling.js.map +1 -1
  32. package/dist/components/{p-HJ5amhvq.js → p-2vIl9-lT.js} +12 -11
  33. package/dist/components/p-2vIl9-lT.js.map +1 -0
  34. package/dist/components/{p-y15sKy8D.js → p-B9G8DJJr.js} +4 -3
  35. package/dist/components/p-B9G8DJJr.js.map +1 -0
  36. package/dist/components/{p-BRszp61A.js → p-BfwqDqHx.js} +3 -3
  37. package/dist/components/{p-BRszp61A.js.map → p-BfwqDqHx.js.map} +1 -1
  38. package/dist/components/{p-CJ7rVNTy.js → p-BlxYpYrq.js} +5 -4
  39. package/dist/components/p-BlxYpYrq.js.map +1 -0
  40. package/dist/components/{p-lV8W1_93.js → p-CiJgH0CI.js} +4 -4
  41. package/dist/components/{p-lV8W1_93.js.map → p-CiJgH0CI.js.map} +1 -1
  42. package/dist/components/{p-DqVU9VaM.js → p-DwzjmWk7.js} +6 -6
  43. package/dist/components/{p-DqVU9VaM.js.map → p-DwzjmWk7.js.map} +1 -1
  44. 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
  45. package/dist/esm/checkmark-icon_14.entry.js +5 -3
  46. package/dist/esm/checkmark-icon_14.entry.js.map +1 -1
  47. 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
  48. package/dist/esm/google-logo-icon_6.entry.js +8 -7
  49. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  50. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  51. package/dist/esm/nylas-scheduling.entry.js +11 -6
  52. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  53. package/dist/esm/{version-C5BO7xwe.js → version-zgIeli_M.js} +3 -3
  54. package/dist/esm/{version-C5BO7xwe.js.map → version-zgIeli_M.js.map} +1 -1
  55. 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
  56. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  57. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  58. package/dist/nylas-web-elements/{p-85955466.entry.js → p-6aa41c34.entry.js} +2 -2
  59. package/dist/nylas-web-elements/p-6aa41c34.entry.js.map +1 -0
  60. package/dist/nylas-web-elements/p-acd75a32.entry.js +2 -0
  61. package/dist/nylas-web-elements/p-acd75a32.entry.js.map +1 -0
  62. package/dist/nylas-web-elements/{p-ae86e7c6.entry.js → p-ec243a08.entry.js} +2 -2
  63. package/dist/nylas-web-elements/p-f5cf565f.entry.js +2 -0
  64. package/dist/nylas-web-elements/p-f5cf565f.entry.js.map +1 -0
  65. package/dist/nylas-web-elements/{p-C5BO7xwe.js → p-zgIeli_M.js} +2 -2
  66. package/dist/nylas-web-elements/{p-C5BO7xwe.js.map → p-zgIeli_M.js.map} +1 -1
  67. package/dist/types/version.d.ts +1 -1
  68. package/package.json +3 -3
  69. package/dist/components/p-CJ7rVNTy.js.map +0 -1
  70. package/dist/components/p-HJ5amhvq.js.map +0 -1
  71. package/dist/components/p-y15sKy8D.js.map +0 -1
  72. package/dist/nylas-web-elements/p-083268de.entry.js +0 -2
  73. package/dist/nylas-web-elements/p-083268de.entry.js.map +0 -1
  74. package/dist/nylas-web-elements/p-85955466.entry.js.map +0 -1
  75. package/dist/nylas-web-elements/p-e240fd68.entry.js +0 -2
  76. package/dist/nylas-web-elements/p-e240fd68.entry.js.map +0 -1
  77. /package/dist/nylas-web-elements/{p-ae86e7c6.entry.js.map → p-ec243a08.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-B9YP9nha.js';
3
3
  import { a as debug, i as instance, r as mergeDeep, s as removeUndefinedProperties, v as editorTabComponentNames, D as DEFAULT_OPEN_HOURS, w as parsePreviewLink, C as CONFIGURATION_EVENT_TYPE, x as editorGroupTabComponentNames, g as getCalendarRange } from './utils-OpKyWV8q.js';
4
- import { E as ErrorCategory, u, v as version } from './version-C5BO7xwe.js';
4
+ import { E as ErrorCategory, u, v as version } from './version-zgIeli_M.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}";
@@ -252,11 +252,12 @@ const NylasEditorTabs = class {
252
252
  const partAvailabilityCalendars = participantCalendars?.[p.email] ?? p.availability?.calendar_ids ?? ['primary'];
253
253
  const isPartAvailabilityCalendarsPrimaryOnly = partAvailabilityCalendars.length === 1 && partAvailabilityCalendars[0] === 'primary';
254
254
  const partGrantId = p.grant_id || this.selectedConfiguration?.participants?.find(sp => sp.email === p.email)?.grant_id;
255
+ const partHasCustomOpenHours = Array.isArray(participantOpenHours?.[p.email]) && participantOpenHours[p.email].length > 0;
255
256
  return {
256
257
  ...p,
257
258
  ...(partGrantId ? { grant_id: partGrantId } : {}),
258
259
  timezone,
259
- availability: p.availability
260
+ availability: p.availability || partHasCustomOpenHours
260
261
  ? {
261
262
  calendar_ids: isPartAvailabilityCalendarsPrimaryOnly && typeof partBooking !== 'undefined' ? [partBooking?.calendar_id] : partAvailabilityCalendars,
262
263
  open_hours: participantOpenHours?.[p.email] ?? p.availability?.open_hours ?? [],
@@ -781,10 +782,10 @@ const NylasEditorTabs = class {
781
782
  }
782
783
  render() {
783
784
  debug('[nylas-editor-tabs]', 'render', this.formState);
784
- return (h(Host, { key: '53e8f207370316a20260e8c9d5a62546efa70c22' }, h("nylas-notification", { key: '3dba6d5e4d6549d7c7afc84543a7de36b5e9565a' }), h("form", { key: 'b159d7794cdd2b4747df5b1eb971cc949599d56f', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, 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: Tab.EventInfo, class: { tab: true, active: this.activeTab == Tab.EventInfo, hide: this.hideTab(Tab.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: e => this.setActiveTab(e, Tab.EventInfo) }, h("calendar-info-icon", { width: "16", height: "16" }), instance.t('eventInfoTab')), h("button", { name: Tab.Availability, class: { tab: true, active: this.activeTab == Tab.Availability, hide: this.hideTab(Tab.Availability) }, part: "editortab__availability net__tab-availability", onClick: e => this.setActiveTab(e, Tab.Availability) }, h("calendar-patterns-icon", { width: "16", height: "16" }), instance.t('availabilityTab')), h("button", { name: Tab.Participants, class: { tab: true, active: this.activeTab == Tab.Participants, hide: this.hideTab(Tab.Participants) }, part: "editortab__participants net__tab-participants", onClick: e => this.setActiveTab(e, Tab.Participants) }, h("people-icon", { width: "16", height: "16" }), instance.t('participantsTab')), h("button", { name: Tab.BookingOptions, class: { tab: true, active: this.activeTab == Tab.BookingOptions, hide: this.hideTab(Tab.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: e => this.setActiveTab(e, Tab.BookingOptions) }, h("flow-icon", { width: "16", height: "16" }), instance.t('bookingOptionsTab')), h("button", { name: Tab.BookingForm, class: { tab: true, active: this.activeTab == 'bookingForm', hide: this.hideTab(Tab.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: e => this.setActiveTab(e, Tab.BookingForm) }, this.activeTab == Tab.BookingForm ? h("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h("calendar-agenda-icon", { width: "16", height: "16" }), instance.t('bookingFormTab')), h("button", { name: Tab.Communications, class: { tab: true, active: this.activeTab == 'communications', hide: this.hideTab(Tab.Communications) }, onClick: e => this.setActiveTab(e, Tab.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == Tab.Communications ? h("envelope-fill-icon", { width: "16", height: "16" }) : h("envelope-icon", { width: "16", height: "16" }), instance.t('communicationsTab')), h("button", { name: Tab.PageStyles, class: { tab: true, active: this.activeTab == 'pageStyles', hide: this.hideTab(Tab.PageStyles) }, onClick: e => this.setActiveTab(e, Tab.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == Tab.PageStyles ? h("paintbrush-fill-icon", { width: "16", height: "16" }) : h("paintbrush-icon", { width: "16", height: "16" }), instance.t('pageStylesTab'))), h("div", { class: {
785
+ return (h(Host, { key: 'bf708d7ec542c822eb749ffd4e8045ae9ae4d58e' }, h("nylas-notification", { key: 'da0ef8835e5a7c3c7a1e3eae096eea2ef7cdc744' }), h("form", { key: '7154f6f9f0e9bb735f1217864a985dc440347893', onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: el => (this.formRef = el), noValidate: true }, 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: Tab.EventInfo, class: { tab: true, active: this.activeTab == Tab.EventInfo, hide: this.hideTab(Tab.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: e => this.setActiveTab(e, Tab.EventInfo) }, h("calendar-info-icon", { width: "16", height: "16" }), instance.t('eventInfoTab')), h("button", { name: Tab.Availability, class: { tab: true, active: this.activeTab == Tab.Availability, hide: this.hideTab(Tab.Availability) }, part: "editortab__availability net__tab-availability", onClick: e => this.setActiveTab(e, Tab.Availability) }, h("calendar-patterns-icon", { width: "16", height: "16" }), instance.t('availabilityTab')), h("button", { name: Tab.Participants, class: { tab: true, active: this.activeTab == Tab.Participants, hide: this.hideTab(Tab.Participants) }, part: "editortab__participants net__tab-participants", onClick: e => this.setActiveTab(e, Tab.Participants) }, h("people-icon", { width: "16", height: "16" }), instance.t('participantsTab')), h("button", { name: Tab.BookingOptions, class: { tab: true, active: this.activeTab == Tab.BookingOptions, hide: this.hideTab(Tab.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: e => this.setActiveTab(e, Tab.BookingOptions) }, h("flow-icon", { width: "16", height: "16" }), instance.t('bookingOptionsTab')), h("button", { name: Tab.BookingForm, class: { tab: true, active: this.activeTab == 'bookingForm', hide: this.hideTab(Tab.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: e => this.setActiveTab(e, Tab.BookingForm) }, this.activeTab == Tab.BookingForm ? h("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h("calendar-agenda-icon", { width: "16", height: "16" }), instance.t('bookingFormTab')), h("button", { name: Tab.Communications, class: { tab: true, active: this.activeTab == 'communications', hide: this.hideTab(Tab.Communications) }, onClick: e => this.setActiveTab(e, Tab.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == Tab.Communications ? h("envelope-fill-icon", { width: "16", height: "16" }) : h("envelope-icon", { width: "16", height: "16" }), instance.t('communicationsTab')), h("button", { name: Tab.PageStyles, class: { tab: true, active: this.activeTab == 'pageStyles', hide: this.hideTab(Tab.PageStyles) }, onClick: e => this.setActiveTab(e, Tab.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == Tab.PageStyles ? h("paintbrush-fill-icon", { width: "16", height: "16" }) : h("paintbrush-icon", { width: "16", height: "16" }), instance.t('pageStylesTab'))), h("div", { class: {
785
786
  'tab-content': true,
786
787
  'fadeIn': this.loaded,
787
- }, part: "editor__tab-content net__tab-content" }, h(TabContents, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: instance, enableNotetaker: this.enableNotetaker, themeConfig: this.themeConfig })))) : (h("div", { class: "composable", key: this.selectedConfiguration?.id }, h("slot", null))), h("div", { key: '89c5898f878016e7f948d163abe29ca754009ecd', class: "footer", part: "editor__footer net__footer" }, h("div", { key: 'f03899ff4f65cc1d3ca1eccc741721e64b14f5b7', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (h("button-component", { key: 'f16d904cb742a131095fa70c2348bec8c81e1f29', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, h("feedback-icon", { key: '06e12b85432d63d275687a69dbd8c507d66408b6' })))), h("div", { key: 'd0f09f33a68578be3541cbd71f92f9f710701858', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h("p", { key: '628ccfdddad773509ac6e73613c8e4879d627553', class: {
788
+ }, part: "editor__tab-content net__tab-content" }, h(TabContents, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: this.selectedConfiguration?.id ?? 'new', i18next: instance, enableNotetaker: this.enableNotetaker, themeConfig: this.themeConfig })))) : (h("div", { class: "composable", key: this.selectedConfiguration?.id }, h("slot", null))), h("div", { key: '9f8518398d98a211078b50c88f1c81315ed30328', class: "footer", part: "editor__footer net__footer" }, h("div", { key: 'cbf1648c8c98b4e48e43d21ba7d9031a329a4e10', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (h("button-component", { key: 'a4f2c13221dade5425f1b59aa5274350a809ffc3', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, h("feedback-icon", { key: 'f2f1fe27e3de4f09fe7eb00eede7f9abc90102c3' })))), h("div", { key: 'a740aaeccc0f929cfa67ef8c0c703513ec9138ec', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h("p", { key: 'ded5a9bed46eb1063e0062080fbc2f1eb91510fa', class: {
788
789
  'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,
789
790
  'saved-changes': this.changesSaved,
790
791
  'error': this.error?.message !== '',
@@ -793,17 +794,17 @@ const NylasEditorTabs = class {
793
794
  ? instance.t('unsavedChangesLabel')
794
795
  : this.error?.message == '' && this.changesSaved
795
796
  ? `${instance.t('changesSavedLabel')}!`
796
- : ''), this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: 'cf3a48e6fd19209a8a87e30a7ab5639d439dbbc9', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
797
+ : ''), this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: '335dcff1c0fa0e2049cf21f36e33427a9f30a8c1', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
797
798
  event.preventDefault();
798
799
  const previewEvent = this.previewButtonClicked.emit(this.host);
799
800
  if (!previewEvent.defaultPrevented) {
800
801
  window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');
801
802
  }
802
- }, variant: 'basic' }, h("eye-icon", { key: '88a8aeafbefc9d21c5e2f10ebe43fd7308b7f2f0' }))), h("button-component", { key: '8377521f43f7050fd5b06fbee24e0c434d80bccc', type: "button", disabled: this.isLoading, clickHandler: event => {
803
+ }, variant: 'basic' }, h("eye-icon", { key: '2f8ef52ca16d73c357feb572c35d4f56f056a4d1' }))), h("button-component", { key: 'f56f62a0b795d5949cef307518b12ca9c7431cb5', type: "button", disabled: this.isLoading, clickHandler: event => {
803
804
  event.preventDefault();
804
805
  this.cancelButtonClick.emit();
805
806
  this.host.resetError();
806
- }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: '5f3393800e9a0499cc538fffdee07005aa15bdba', class: { 'save-changes': this.action === 'edit' }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, 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: '4abad08be25f4ff177f564d54d701d53cce8bba3' })));
807
+ }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: 'c04d198a70b9214461d92c380089048febe6113a', class: { 'save-changes': this.action === 'edit' }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, 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: '5c62eea9a45a9060762b43c7a328488653590979' })));
807
808
  }
808
809
  get host() { return getElement(this); }
809
810
  static get watchers() { return {