@nylas/react 3.2.3 → 3.2.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../node_modules/.pnpm/@nylas+web-elements@2.5.3_rollup@4.50.1/node_modules/@nylas/web-elements/dist/components/index.js"],"sourcesContent":["import { g as globalScripts } from './p-Bht9ktsW.js';\nexport { a as getAssetPath, r as render, s as setAssetPath, b as setNonce, c as setPlatformOptions } from './p-Bht9ktsW.js';\nimport { c as createStore } from './p-DVWbg8if.js';\nexport { N as NylasIdentityRequestWrapper } from './p-DDnT7nCe.js';\n\nconst store = createStore({});\n\nglobalScripts();\n\nexport { store as NylasThemeStore };\n//# sourceMappingURL=index.js.map\n\n//# sourceMappingURL=index.js.map"],"names":["createStore","globalScripts"],"mappings":"mHAKcA,EAAAA,YAAY,CAAA,CAAE,EAE5BC,EAAAA,cAAa","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"utils.js","sources":["../../../../node_modules/.pnpm/@nylas+web-elements@2.5.4_rollup@4.50.1/node_modules/@nylas/web-elements/dist/components/index.js"],"sourcesContent":["import { g as globalScripts } from './p-Bht9ktsW.js';\nexport { a as getAssetPath, r as render, s as setAssetPath, b as setNonce, c as setPlatformOptions } from './p-Bht9ktsW.js';\nimport { c as createStore } from './p-DVWbg8if.js';\nexport { N as NylasIdentityRequestWrapper } from './p-DDnT7nCe.js';\n\nconst store = createStore({});\n\nglobalScripts();\n\nexport { store as NylasThemeStore };\n//# sourceMappingURL=index.js.map\n\n//# sourceMappingURL=index.js.map"],"names":["createStore","globalScripts"],"mappings":"mHAKcA,EAAAA,YAAY,CAAA,CAAE,EAE5BC,EAAAA,cAAa","x_google_ignoreList":[0]}
@@ -5986,7 +5986,11 @@ const q3 = $f, G3 = Ws, Y3 = ':host{display:block;--nylas-primary:#2563eb;--nyla
5986
5986
  });
5987
5987
  }
5988
5988
  componentDidLoad() {
5989
- this.selectedValue = this.defaultSelectedValue;
5989
+ this.selectedValue = this.defaultSelectedValue, this.defaultSelectedValue && this.nylasFormRadioChanged.emit({
5990
+ value: this.defaultSelectedValue,
5991
+ name: this.name,
5992
+ label: this.label
5993
+ });
5990
5994
  }
5991
5995
  handleBookingFormSubmitted(e) {
5992
5996
  if (this.required && !this.selectedValue) {
@@ -6006,7 +6010,7 @@ const q3 = $f, G3 = Ws, Y3 = ':host{display:block;--nylas-primary:#2563eb;--nyla
6006
6010
  });
6007
6011
  }
6008
6012
  render() {
6009
- return r("div", { key: "9a171da3f6a18e69d743e068cfb3a958b4534ec2", class: "radio-group" }, r("slot", { key: "6ce2e5f4e51b3907a6cb5d952423bc720a16bd75", name: "label" }, this.label && r("p", { key: "6cefd7a9568652f81b5dd2a61157e9253e6ad5e5", class: { error: !!this.error } }, r("span", { key: "ac078a4f3eba135f85acf1a9417682545221cd39", class: "label" }, this.label), this.required && r("span", { key: "531c0bef412eac313ca0e91d74e5a5ae0f277fa3", class: "required" }, "*"))), this.options.map((e) => r("label", null, r("div", { class: "radio-option" }, r("input", { type: "radio", disabled: this.readOnly, readOnly: this.readOnly, title: this.readOnly ? "read-only field" : void 0, name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), r("p", null, r("span", { class: "title" }, e.label), r("span", { class: "description" }, e.description))))), this.error && r("span", { key: "e5b907eea1916a3c3e84c49763f20b5008a29e05", class: "error help-text" }, this.error));
6013
+ return r("div", { key: "7d4f9dbc6fb35ba0d6ec854c67b04f320888bff0", class: "radio-group" }, r("slot", { key: "4e8f1ebf95e25021f49c0973bb16609730303c2d", name: "label" }, this.label && r("p", { key: "a944e18fac56caeb5582028c38d055b399cd6693", class: { error: !!this.error } }, r("span", { key: "2730c691418b2890b52b182d0389eb4a6ea42edb", class: "label" }, this.label), this.required && r("span", { key: "ec2d3213ab090cf75a9499c03f64b1cf8ac860b8", class: "required" }, "*"))), this.options.map((e) => r("label", null, r("div", { class: "radio-option" }, r("input", { type: "radio", disabled: this.readOnly, readOnly: this.readOnly, title: this.readOnly ? "read-only field" : void 0, name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), r("p", null, r("span", { class: "title" }, e.label), r("span", { class: "description" }, e.description))))), this.error && r("span", { key: "bbe79d56c58731dd23fd68f6efea548faffcbc25", class: "error help-text" }, this.error));
6010
6014
  }
6011
6015
  get el() {
6012
6016
  return this;
@@ -14749,7 +14753,7 @@ const D8 = () => ({
14749
14753
  lazyLoadIntegration: mE,
14750
14754
  getModalIntegration: () => k8,
14751
14755
  getScreenshotIntegration: () => D8
14752
- }), _a = "2.5.3", I8 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-event-capacity{display:flex;flex-direction:column;gap:4px}.nylas-event-capacity label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-capacity label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-capacity label span.label-icon{margin-left:4px}.nylas-event-capacity label span.label-icon tooltip-component{display:flex}.nylas-event-capacity label tooltip-component::part(tc__content){left:50px}.nylas-event-capacity__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-capacity__wrapper input-component{width:auto}.nylas-event-capacity__wrapper input-component::part(ic__input){border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:80px}.nylas-event-capacity__wrapper input-component::part(ic__input--error){border:1px solid var(--nylas-error)}.nylas-event-capacity__wrapper input-component::part(ic__label--error){position:relative;margin-bottom:24px}.nylas-event-capacity__wrapper input-component::part(ic__error_message){position:absolute;top:54px;width:max-content}.nylas-event-capacity__wrapper span.attendees.error{margin-top:-24px}';
14756
+ }), _a = "2.5.4", I8 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-event-capacity{display:flex;flex-direction:column;gap:4px}.nylas-event-capacity label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-capacity label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-capacity label span.label-icon{margin-left:4px}.nylas-event-capacity label span.label-icon tooltip-component{display:flex}.nylas-event-capacity label tooltip-component::part(tc__content){left:50px}.nylas-event-capacity__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-capacity__wrapper input-component{width:auto}.nylas-event-capacity__wrapper input-component::part(ic__input){border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:80px}.nylas-event-capacity__wrapper input-component::part(ic__input--error){border:1px solid var(--nylas-error)}.nylas-event-capacity__wrapper input-component::part(ic__label--error){position:relative;margin-bottom:24px}.nylas-event-capacity__wrapper input-component::part(ic__error_message){position:absolute;top:54px;width:max-content}.nylas-event-capacity__wrapper span.attendees.error{margin-top:-24px}';
14753
14757
  var A8 = function(n, e, t, a) {
14754
14758
  var i = arguments.length, o = i < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, t) : a, l;
14755
14759
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -33353,7 +33357,7 @@ class MT {
33353
33357
  message: "Error creating group event: " + i.message
33354
33358
  })) : Sn(a) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(null, {
33355
33359
  message: "Error creating group event: " + a.error?.message
33356
- })) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = a.data, await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(a.data));
33360
+ })) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = a.data, this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(a.data));
33357
33361
  }
33358
33362
  async getGroupEvents(e, t) {
33359
33363
  if (!this.nylasApiRequest)
@@ -33389,6 +33393,9 @@ class MT {
33389
33393
  timestamp: Date.now()
33390
33394
  }), this.cleanupExpiredCache(), this.nylasSchedulerConfigStore.state.groupEvents = y.data, Ye(y.data));
33391
33395
  }
33396
+ invalidateGroupEventsCache() {
33397
+ this.groupEventsCache.clear();
33398
+ }
33392
33399
  cleanupExpiredCache() {
33393
33400
  const e = Date.now();
33394
33401
  for (const [t, a] of this.groupEventsCache.entries())
@@ -33410,7 +33417,7 @@ class MT {
33410
33417
  message: "Error updating group event: " + o.message
33411
33418
  })) : Sn(i) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(null, {
33412
33419
  message: "Error updating group event: " + i.error?.message
33413
- })) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = i.data, await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(i.data));
33420
+ })) : (this.nylasSchedulerConfigStore.state.selectedGroupEvent = i.data, this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(i.data));
33414
33421
  }
33415
33422
  async updateGroupEvent(e, t, a) {
33416
33423
  this.nylasSchedulerConfigStore.state.isLoading = !0;
@@ -33495,7 +33502,7 @@ class MT {
33495
33502
  message: "Error deleting group event: " + l.message
33496
33503
  })) : Sn(o) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(null, {
33497
33504
  message: "Error deleting group event: " + o.error?.message
33498
- })) : (await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(o.data));
33505
+ })) : (this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(o.data));
33499
33506
  }
33500
33507
  async importGroupEvent(e, t) {
33501
33508
  if (this.nylasSchedulerConfigStore.state.isLoading = !0, !this.nylasApiRequest)
@@ -33513,7 +33520,7 @@ class MT {
33513
33520
  message: "Error importing group event: " + l.message
33514
33521
  })) : Sn(o) ? (this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(null, {
33515
33522
  message: "Error importing group event: " + o.error?.message
33516
- })) : (o.data?.imported_events?.length > 0 && await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(o.data));
33523
+ })) : (o.data?.imported_events?.length > 0 && (this.invalidateGroupEventsCache(), await this.getGroupEvents(t, this.nylasSchedulerConfigStore.state.selectedConfiguration)), this.nylasSchedulerConfigStore.state.isLoading = !1, Ye(o.data));
33517
33524
  }
33518
33525
  }
33519
33526
  class FT {
@@ -36272,7 +36279,7 @@ const ti = (n, e) => {
36272
36279
  !t && e,
36273
36280
  r(
36274
36281
  "div",
36275
- { class: "footer" },
36282
+ { key: "ns-footer", class: "footer", part: "ns_footer" },
36276
36283
  i && r(
36277
36284
  "a",
36278
36285
  { href: "https://scheduler.nylas.com?utm_source=powered-by-nylas-logoutm_medium=link&utm_campaign=get-scheduler&utm_id=get-scheduler", class: "powered-by-nylas", target: "_blank", rel: "noreferrer noopener" },