@nylas/react 3.2.10 → 3.2.12
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/cjs/components.js +3 -3
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/p-DVWbg8if.js.map +1 -1
- package/dist/cjs/utils.js.map +1 -1
- package/dist/es/components.js +9 -6
- package/dist/es/components.js.map +1 -1
- package/dist/es/p-DVWbg8if.js.map +1 -1
- package/dist/es/utils.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../node_modules/.pnpm/@nylas+web-elements@2.5.
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../node_modules/.pnpm/@nylas+web-elements@2.5.13_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-DclMe63w.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]}
|
package/dist/es/components.js
CHANGED
|
@@ -14755,7 +14755,7 @@ const A8 = () => ({
|
|
|
14755
14755
|
lazyLoadIntegration: yE,
|
|
14756
14756
|
getModalIntegration: () => E8,
|
|
14757
14757
|
getScreenshotIntegration: () => A8
|
|
14758
|
-
}), ka = "2.5.
|
|
14758
|
+
}), ka = "2.5.13", R8 = ':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}';
|
|
14759
14759
|
var O8 = function(n, e, t, a) {
|
|
14760
14760
|
var i = arguments.length, o = i < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, t) : a, l;
|
|
14761
14761
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -27559,7 +27559,10 @@ const Ju = te(class extends ne {
|
|
|
27559
27559
|
}), this.customInputsSlot = o);
|
|
27560
27560
|
}
|
|
27561
27561
|
checkIfElementIsInSlot(e) {
|
|
27562
|
-
|
|
27562
|
+
if (document?.querySelector(`[slot="custom-page-style-inputs"] [name="${e}"]`))
|
|
27563
|
+
return !0;
|
|
27564
|
+
const a = this.host.shadowRoot?.querySelectorAll("[data-page-styling]") ?? [];
|
|
27565
|
+
return Array.from(a).some((i) => i.name === e || i.getAttribute("name") === e);
|
|
27563
27566
|
}
|
|
27564
27567
|
async nylasFormInputChangeHandler(e) {
|
|
27565
27568
|
const { name: t, value: a } = e.detail, i = e.detail?.type;
|
|
@@ -27610,7 +27613,7 @@ const Ju = te(class extends ne {
|
|
|
27610
27613
|
}
|
|
27611
27614
|
render() {
|
|
27612
27615
|
const e = this.customInputsSlot || !this.hasCustomSlot && !!this.currentAppearance;
|
|
27613
|
-
return r(Pe, { key: "
|
|
27616
|
+
return r(Pe, { key: "68ff4f23782f0d5fbfa30d006d804663cfd4c7a2" }, r("div", { key: "4db1b16c2a559b759666a18cfc5ce1df427e3120", part: "nps", class: { "nylas-page-styling": !0, "no-border": !e } }, e ? r("div", { class: "header", part: "nps__header" }, r("div", null, r("h3", null, h.t("nylasPageStyling.headerTitle"))), r("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, r("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, r("chevron-icon", { width: "24", height: "24" })))) : null, r("div", { key: "cbd697408c8794ed3da1a7240cde839c28bd8e71", class: "hidden" }, r("input-color-picker", { key: "b378ea6f4174ca07ad2f8c363f4dbfb108211a5d", name: "color-picker" })), r("div", { key: "6f210a564f347f40c18516bf4e39475cc48d9f57", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, r("div", { key: "793428c898c430412ebc3474aa01498c11a46842", class: { "nylas-page-styling__section": !0, "no-padding": !e } }, r("div", { key: "18d8e84857d9ca6cb82b055f4218577d9974d0bb", class: "nylas-page-styling__row" }, r("div", { key: "4c17031c6f90a042bfad62c202bc0e9f9704471c", class: { subsection: !0, hide: !this.isOpen } }, !this.hasCustomSlot && this.currentAppearance ? this.renderDefaultInputs() : null))))));
|
|
27614
27617
|
}
|
|
27615
27618
|
static get formAssociated() {
|
|
27616
27619
|
return !0;
|
|
@@ -30731,7 +30734,7 @@ const hh = te(class extends ne {
|
|
|
30731
30734
|
b(`Malformed participant name format: ${t}. Expected format: "participant-availability-{participantId}-{uniqueKey}"`);
|
|
30732
30735
|
return;
|
|
30733
30736
|
}
|
|
30734
|
-
const l = o
|
|
30737
|
+
const l = o.slice(3).join("-");
|
|
30735
30738
|
if (!this.selectedParticipants[l])
|
|
30736
30739
|
return;
|
|
30737
30740
|
const f = i.openHours || [], p = f?.length > 0 ? f : this.selectedConfiguration?.availability?.availability_rules?.default_open_hours || [];
|
|
@@ -30745,7 +30748,7 @@ const hh = te(class extends ne {
|
|
|
30745
30748
|
b(`Malformed participant specific date name format: ${t}. Expected format: "participant-specific-time-availability-{index}-{uniqueKey}"`);
|
|
30746
30749
|
return;
|
|
30747
30750
|
}
|
|
30748
|
-
const l = o
|
|
30751
|
+
const l = o.slice(5).join("-");
|
|
30749
30752
|
if (!this.selectedParticipants[l])
|
|
30750
30753
|
return;
|
|
30751
30754
|
const f = i || [];
|
|
@@ -30796,7 +30799,7 @@ const hh = te(class extends ne {
|
|
|
30796
30799
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
30797
30800
|
}
|
|
30798
30801
|
render() {
|
|
30799
|
-
return r(Pe, { key: "
|
|
30802
|
+
return r(Pe, { key: "5ff7155db08b5adcfe1168adf8452f426f4fb66d" }, r("div", { key: "376210b2869e4e9c518ba6f6ab29aff086df8a86", class: "nylas-participants-custom-availability", part: "npca" }, r("div", { key: "0a7a2492da0927c3fc2eff3e5b74ee8dd873f5ce", class: "header", part: "npca__header" }, r("h3", { key: "f38db5fea6b75ebf696c86371437149421f375b0" }, h.t("nylasParticipantCustomAvailability.headerTitle")), r("p", { key: "b64aa2227fc6c761161baee71df7ccfa1d4a0c0b" }, h.t("nylasParticipantCustomAvailability.headerSubTitle"))), this.validationError && r("div", { key: "902126476a17af8e5c5303bd7acd86ae95063c68", class: "validation-error", part: "npca__validation-error" }, r("span", { key: "b3595b86576e9894e97127bad821714cc9f4a0ea" }, this.validationError)), r("div", { key: "a03b0815c38caaa5255293efe25a2f8b5e65349a", class: "content", part: "npca__content" }, r("form", { key: "92b375ef71cd62bf4ed37b3fcee09c718e79bc3b", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, t) => {
|
|
30800
30803
|
const a = this.selectedParticipants[e], i = a.availability?.open_hours || [];
|
|
30801
30804
|
if (!(!a || !a.name))
|
|
30802
30805
|
return r("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${t}` }, r("div", { class: "participant-title", part: "npca__participant-title" }, r("p", null, h.t("nylasParticipantCustomAvailability.participantOpenHoursTitle", { participantName: a.name })), r("div", { class: "participant-toggle", part: "npca__participant-toggle--container" }, r("toggle-switch", { exportparts: "ts_label: npca__toggle-label, ts_input: npca_toggle-input, ts_slider: npca_toggle-slider", name: e, checked: !!a?.openHours && a?.openHours.length > 0, themeConfig: this.themeConfig }), r("span", { class: `chevron ${a.isOpen ? "open" : "closed"} ${a.setCustom ? "" : "disabled"}`, onClick: () => {
|