diff --git a/.changeset/upgrade-web-elements-2-5-5.md b/.changeset/upgrade-web-elements-2-5-5.md new file mode 100644 index 0000000..bad1dac --- /dev/null +++ b/.changeset/upgrade-web-elements-2-5-5.md @@ -0,0 +1,8 @@ +--- +"@nylas/react": patch +--- + +Upgrade @nylas/web-elements dependency to 2.5.5: +- Fix time slot selection and date picker clicks being non-functional after upgrading to v2.5.0. When configurationId or other auth props were set post-mount (e.g. via React), the scheduler entered a deferred init path where click handlers on the date picker and timeslot picker were registered before the connector existed. Clicking a date or time slot appeared to do nothing. The connector reference is now resolved at click time rather than at registration time, so all interactions work correctly regardless of when auth props arrive. + +- [nylas-scheduling] Fix schedulerApiUrl prop being ignored on full page refresh when using React wrappers. The component now correctly waits for React's commit phase to apply props before reading schedulerApiUrl to create the scheduler connector, ensuring the correct API region is used on both client-side navigation and hard page refreshes. diff --git a/packages/react/package.json b/packages/react/package.json index 4a6aecd..60ec604 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -78,7 +78,7 @@ "dependencies": { "@nylas/connect": "workspace:^", "@nylas/core": "^1.2.0", - "@nylas/web-elements": "2.5.4", + "@nylas/web-elements": "2.5.5", "@stencil/react-output-target": "^1.2.0", "axios": "^1.7.7", "dayjs": "1.11.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2fe5e8e..53245dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,8 +61,8 @@ importers: specifier: ^1.2.0 version: 1.2.0(@stencil/core@4.36.3) '@nylas/web-elements': - specifier: 2.5.4 - version: 2.5.4(rollup@4.50.1) + specifier: 2.5.5 + version: 2.5.5(rollup@4.50.1) '@stencil/react-output-target': specifier: ^1.2.0 version: 1.2.0(@stencil/core@4.36.3)(@types/react@19.2.0)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) @@ -676,8 +676,8 @@ packages: '@nylas/identity@3.1.0': resolution: {integrity: sha512-EBW17UBAvsj1cT+BEbawdce9Uy04IsElr8hJJRB3lf8Aod/icdn0mxWdWCyCNrjW6fhRwz0Cv3Sh88DbTbC7yA==} - '@nylas/web-elements@2.5.4': - resolution: {integrity: sha512-cTD1orv9H1VDpcJN7ZAIGcVBdsaqI0BPYM/EFhKSfCDIBEeVR3BsrCoVv5w3T9JKU8IKPFEAedDW/A2fuP0etw==} + '@nylas/web-elements@2.5.5': + resolution: {integrity: sha512-MAb8xGuj30Le+r+4ieHR45W8/R4etRGvybpaRmOqNIqGMEEdKx0dZJlNOANj8pYjkYkLQp0VuRZAmLkCiahiag==} '@oxlint/darwin-arm64@1.16.0': resolution: {integrity: sha512-t9sBjbcG15Jgwgw2wY+rtfKEazdkKM/YhcdyjmGYeSjBXaczLfp/gZe03taC2qUHK+t6cxSYNkOLXRLWxaf3tw==} @@ -3731,7 +3731,7 @@ snapshots: react: 18.2.0 uuid: 8.3.2 - '@nylas/web-elements@2.5.4(rollup@4.50.1)': + '@nylas/web-elements@2.5.5(rollup@4.50.1)': dependencies: '@fullcalendar/core': 6.1.8 '@fullcalendar/daygrid': 6.1.8(@fullcalendar/core@6.1.8)