@nylas/web-elements 2.3.1-canary-20260108155609 → 2.3.1

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 (66) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +228 -228
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4069 -4071
  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 +7 -7
  5. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  6. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +10 -2
  7. package/dist/cjs/nylas-booked-event-card_11.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 +3 -16
  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-7tiQyQzm.js → version-TA6fPT8q.js} +3 -3
  13. package/dist/{esm/version-CJAr1BgW.js.map → cjs/version-TA6fPT8q.js.map} +1 -1
  14. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +10 -2
  15. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
  16. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +6 -6
  17. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  18. package/dist/collection/connector/shared/api/scheduler.js +2 -18
  19. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  20. package/dist/collection/version.js +1 -1
  21. package/dist/collection/version.js.map +1 -1
  22. package/dist/components/nylas-date-picker.js +1 -1
  23. package/dist/components/nylas-editor-tabs-group.js +1 -1
  24. package/dist/components/nylas-editor-tabs.js +1 -1
  25. package/dist/components/nylas-scheduler-editor.js +3 -3
  26. package/dist/components/nylas-scheduling.js +5 -18
  27. package/dist/components/nylas-scheduling.js.map +1 -1
  28. package/dist/components/{p-jdTk8JQH.js → p-BOnzTQbE.js} +3 -3
  29. package/dist/components/{p-jdTk8JQH.js.map → p-BOnzTQbE.js.map} +1 -1
  30. package/dist/components/{p-B_1k1rpl.js → p-BtSPSFdA.js} +3 -3
  31. package/dist/components/{p-B_1k1rpl.js.map → p-BtSPSFdA.js.map} +1 -1
  32. package/dist/components/{p-CfFKgyg4.js → p-CMouzL9_.js} +9 -9
  33. package/dist/components/{p-CfFKgyg4.js.map → p-CMouzL9_.js.map} +1 -1
  34. package/dist/components/{p-CrkAtQ72.js → p-D9LfvAE5.js} +12 -4
  35. package/dist/components/p-D9LfvAE5.js.map +1 -0
  36. 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
  37. package/dist/esm/google-logo-icon_6.entry.js +7 -7
  38. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  39. package/dist/esm/nylas-booked-event-card_11.entry.js +10 -2
  40. package/dist/esm/nylas-booked-event-card_11.entry.js.map +1 -1
  41. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  42. package/dist/esm/nylas-scheduling.entry.js +4 -17
  43. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  44. package/dist/esm/{version-CJAr1BgW.js → version-CIhCCVPS.js} +3 -3
  45. package/dist/{cjs/version-7tiQyQzm.js.map → esm/version-CIhCCVPS.js.map} +1 -1
  46. 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
  47. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  48. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  49. package/dist/nylas-web-elements/{p-a80bea66.entry.js → p-10b9c8eb.entry.js} +2 -2
  50. package/dist/nylas-web-elements/p-197e9602.entry.js +2 -0
  51. package/dist/nylas-web-elements/p-197e9602.entry.js.map +1 -0
  52. package/dist/nylas-web-elements/{p-9a4d5f1b.entry.js → p-6ed560fe.entry.js} +2 -2
  53. package/dist/nylas-web-elements/{p-9a4d5f1b.entry.js.map → p-6ed560fe.entry.js.map} +1 -1
  54. package/dist/nylas-web-elements/p-CIhCCVPS.js +2 -0
  55. package/dist/nylas-web-elements/{p-CJAr1BgW.js.map → p-CIhCCVPS.js.map} +1 -1
  56. package/dist/nylas-web-elements/{p-544c4297.entry.js → p-ab80b127.entry.js} +2 -2
  57. package/dist/nylas-web-elements/p-ab80b127.entry.js.map +1 -0
  58. package/dist/types/connector/shared/api/scheduler.d.ts +1 -1
  59. package/dist/types/version.d.ts +1 -1
  60. package/package.json +1 -1
  61. package/dist/components/p-CrkAtQ72.js.map +0 -1
  62. package/dist/nylas-web-elements/p-544c4297.entry.js.map +0 -1
  63. package/dist/nylas-web-elements/p-CJAr1BgW.js +0 -2
  64. package/dist/nylas-web-elements/p-c3b1d596.entry.js +0 -2
  65. package/dist/nylas-web-elements/p-c3b1d596.entry.js.map +0 -1
  66. /package/dist/nylas-web-elements/{p-a80bea66.entry.js.map → p-10b9c8eb.entry.js.map} +0 -0
@@ -3,7 +3,7 @@ import { R as RegisterComponent } from './p-_xBp5cfI.js';
3
3
  import { a as debug, b as instance, E as mergeDeep, F as parsePreviewLink } from './p-dEI4mtiM.js';
4
4
  import { E as ErrorCategory, u } from './p-C1VNIgoH.js';
5
5
  import { C as CONFIGURATION_EVENT_TYPE, g as editorGroupTabComponentNames } from './p-DUCeQ1R4.js';
6
- import { i as isInitialized, a as init, f as feedbackSyncIntegration, v as version, c as captureMessage, b as captureFeedback } from './p-B_1k1rpl.js';
6
+ import { i as isInitialized, a as init, f as feedbackSyncIntegration, v as version, c as captureMessage, b as captureFeedback } from './p-BtSPSFdA.js';
7
7
  import { d as defineCustomElement$1a } from './p-Ha2t2y12.js';
8
8
  import { d as defineCustomElement$19 } from './p-Dvm3cFRX.js';
9
9
  import { d as defineCustomElement$18 } from './p-CSGxrebs.js';
@@ -553,7 +553,7 @@ const NylasEditorTabsGroup = proxyCustomElement(class NylasEditorTabsGroup exten
553
553
  location: !conferencing ? formState.location : undefined,
554
554
  participants: formState.participants,
555
555
  organizer: organizer,
556
- conferencing: !formState.location ? conferencing : {},
556
+ conferencing: !formState.location ? conferencing : undefined,
557
557
  when: formState.eventTimeslot.when,
558
558
  recurrence: formState.eventTimeslot.recurrence,
559
559
  calendar_id: organizerDefaultCal?.id || 'primary',
@@ -729,9 +729,9 @@ const NylasEditorTabsGroup = proxyCustomElement(class NylasEditorTabsGroup exten
729
729
  }
730
730
  render() {
731
731
  debug('[nylas-editor-tabs-group]', 'render', this.formState);
732
- return (h(Host, { key: 'b8c38d76ff405a655598b4764d520ca9785cefff' }, h("nylas-notification", { key: '91fef9992261f0ca1c8dbed9b6d16c4d8c2861f9' }), h("form", { key: '8c8a607298a7062a211f6d31a20f70a035a9d47a', 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 => {
732
+ return (h(Host, { key: '8f61e0ba84b0b86a27440220560eabcaeea4e1e5' }, h("nylas-notification", { key: '94cae29c1400ff371141100848c1037a8a7d322c' }), h("form", { key: 'a88d6973a4711a4489115b184db1b0535e123be7', 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 => {
733
733
  this.setActiveTab(e, TabGroup.CalendarView);
734
- } }, 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: 'a88a443bbf3e6c1234c14b99336afc72ef92a9fe', class: "footer", part: "editor__footer net__footer" }, h("div", { key: 'd6a1dbef004da659367dd79f358cacab9ab2f7eb', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (h("button-component", { key: '8cbaae803541f451ee7aaec973bf57bdadba71bf', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, h("feedback-icon", { key: '3b9e37e45f013a909884875f982df70432138fd2' }))), this.activeTab === TabGroup.CalendarView && (h("button-component", { key: '6a41b39d9bf8d581e8fe48bc2e582a14b2afa980', 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: '9e8d2891485d672a334cfd3197de420d0c38a341', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h("p", { key: '68d9d778fe26529e01823f519757fb0780564c71', class: {
734
+ } }, 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: '3cc55875cbb83e00b3007c06b5804399ae24c164', class: "footer", part: "editor__footer net__footer" }, h("div", { key: '661552aaedc6dfde5eb0725c4b37f975e11b8f2e', class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && (h("button-component", { key: 'e2daf60e19bc54d7c3e9a520e0f4ce1d5ffb66ad', title: "Share your feedback", id: "report-issue", variant: 'basic', onClick: e => this.onFeedbackClick(e) }, h("feedback-icon", { key: 'fe1744b7062f50672ff51f8d850145935c1c94fe' }))), this.activeTab === TabGroup.CalendarView && (h("button-component", { key: '0c5a82186e7ba4b919342613b55740a5c15d7ee5', 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: 'df369d271cd6fc78c9b4ad5667a88382d9f29a65', class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h("p", { key: '47b63ac1f8a5a90d4ba154acb2e6c4c5d6ef7545', class: {
735
735
  'unsaved-changes': this.hasUnsavedChanges && !this.changesSaved,
736
736
  'saved-changes': this.changesSaved,
737
737
  'error': this.error?.message !== '',
@@ -740,17 +740,17 @@ const NylasEditorTabsGroup = proxyCustomElement(class NylasEditorTabsGroup exten
740
740
  ? instance.t('unsavedChangesLabel')
741
741
  : this.error?.message == '' && this.changesSaved
742
742
  ? `${instance.t('changesSavedLabel')}!`
743
- : ''), h("div", { key: '7560e3e6fd76576705940c2066fb702afac96956', class: "footer-buttons__row" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: 'd2b580bfce0f89d43786c8ef28300eb8d32a4dff', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
743
+ : ''), h("div", { key: '1b1436cdc1da5ba05094e269cf1d4477bd8c25dd', class: "footer-buttons__row" }, this.schedulerPreviewLink !== '' && this.action === 'edit' && (h("button-component", { key: '62cf4336c52211179fb5900d756f3ed62936c498', title: "Preview", type: "button", disabled: this.isLoading, clickHandler: event => {
744
744
  event.preventDefault();
745
745
  const previewEvent = this.previewButtonClicked.emit(this.host);
746
746
  if (!previewEvent.defaultPrevented) {
747
747
  window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), '_blank');
748
748
  }
749
- }, variant: 'basic' }, h("eye-icon", { key: 'decb2684e95af7c2899c747c34e8be58241536cb' }))), h("button-component", { key: '03774d790d50c6300d500407e9bdb88ccae50d44', type: "button", disabled: this.isLoading, clickHandler: event => {
749
+ }, variant: 'basic' }, h("eye-icon", { key: '9b32f09007c8eb0db6b093e5dde173790fc5537e' }))), h("button-component", { key: '692558a733120ce097966909ecdafb22de98e67e', type: "button", disabled: this.isLoading, clickHandler: event => {
750
750
  event.preventDefault();
751
751
  this.cancelButtonClick.emit();
752
752
  this.host.resetError();
753
- }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: 'a953672204dacf110ba95a15559ecc4a3b344d27', 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: '0459509ce084e495ef66c39068d465db821368df' })));
753
+ }, variant: 'basic', part: "editor__footer-cancel net__footer-cancel" }, instance.t('cancelButton')), h("button-component", { key: '4eda146ceacc6749da0f95152060a925e6f9cf06', 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: '62ab497f55fc337f2ac530df8def914157198e06' })));
754
754
  }
755
755
  get host() { return this; }
756
756
  static get watchers() { return {
@@ -1327,6 +1327,6 @@ function defineCustomElement() {
1327
1327
  }
1328
1328
 
1329
1329
  export { NylasEditorTabsGroup as N, defineCustomElement as d };
1330
- //# sourceMappingURL=p-CfFKgyg4.js.map
1330
+ //# sourceMappingURL=p-CMouzL9_.js.map
1331
1331
 
1332
- //# sourceMappingURL=p-CfFKgyg4.js.map
1332
+ //# sourceMappingURL=p-CMouzL9_.js.map