diff --git a/.changeset/upgrade-web-elements-2-5-1.md b/.changeset/upgrade-web-elements-2-5-1.md new file mode 100644 index 0000000..b87cc57 --- /dev/null +++ b/.changeset/upgrade-web-elements-2-5-1.md @@ -0,0 +1,9 @@ +--- +"@nylas/react": patch +--- + +Upgrade @nylas/web-elements dependency from 2.5.0 to 2.5.1 + +- Improve error handling for authentication failures in the scheduler editor. Auth errors now display a visible error banner on the login screen instead of failing silently. The `nylasSchedulerEditorError` event is emitted with `category: 'auth'` for programmatic error handling. Session expiry detection is also improved to catch additional error patterns. +- Fix scheduler date handling to normalize mixed date inputs (Date, ISO string, and unix timestamp values), preventing incorrect fallback dates like 1970 and ensuring timezone-aware selected-day comparisons remain stable across components. +- Fix deferred initialization for booking refs in private scheduler configurations. Booking ref props (reschedule, cancel, organizer confirmation) no longer prematurely trigger initialization without proper auth credentials. Organizer confirmation salt is now correctly persisted when the booking ref is set dynamically. diff --git a/packages/react/package.json b/packages/react/package.json index a49ed9c..2eb396e 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.0", + "@nylas/web-elements": "2.5.1", "@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 277d244..7517d3f 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.0 - version: 2.5.0(rollup@4.50.1) + specifier: 2.5.1 + version: 2.5.1(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.0': - resolution: {integrity: sha512-NILpDdwUgYorLrMcr8z9wnkJ2RzSTfZ5+5Z5YZqBhcNL0oM/Kddro5ItdlwUDsZks+nw287pxHtCUF7ChJcwXQ==} + '@nylas/web-elements@2.5.1': + resolution: {integrity: sha512-3OKe6aiX3Hy1JIj98SKYHKLG0eZK4gLhQ354CcZ8L4EoNI5Ew+zWlLBDz0O/brfNqM+34tKx6+GyocPru713RQ==} '@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.0(rollup@4.50.1)': + '@nylas/web-elements@2.5.1(rollup@4.50.1)': dependencies: '@fullcalendar/core': 6.1.8 '@fullcalendar/daygrid': 6.1.8(@fullcalendar/core@6.1.8)