|
1 | 1 | # @asgardeo/nextjs |
2 | 2 |
|
| 3 | +## 0.3.35 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- [#569](https://github.com/asgardeo/javascript/pull/569) |
| 8 | + [`9a156a9`](https://github.com/asgardeo/javascript/commit/9a156a948a0a3c36f504954e1b87a6ef39f13d3a) Thanks |
| 9 | + [@DonOmalVindula](https://github.com/DonOmalVindula)! - Render a read-only profile for users whose attributes are |
| 10 | + owned by an identity provider. |
| 11 | + |
| 12 | + Asgardeo rejects attribute updates for accounts provisioned from a social or enterprise connection, so the profile |
| 13 | + used to offer edit controls that always failed with a raw SCIM error. |
| 14 | + |
| 15 | + - `<UserProfile />` accepts `editable="auto"` in React and Next.js. On Asgardeo it looks up the signed-in user's |
| 16 | + federated associations and, when the account is linked to a connection, renders the profile read-only with a short |
| 17 | + note naming the provider. On WSO2 Identity Server, where the same updates succeed, the profile stays editable. |
| 18 | + - `<UserDropdown />` forwards `editable` to the profile it opens from "Manage profile", so the modal follows the same |
| 19 | + rule as the page. |
| 20 | + - `BaseUserProfile` accepts a predicate for `editable`, so applications can decide per user without any lookup, and a |
| 21 | + `readOnlyNote` to explain why editing is unavailable. |
| 22 | + - A rejected update is now reported in plain words instead of the raw SCIM error, and switches the profile to |
| 23 | + read-only for the rest of the session. The Next.js `<UserProfile />` previously ignored update failures entirely. |
| 24 | + - New API `getMeFederatedAssociations` in `@asgardeo/javascript` and `@asgardeo/react`, plus the `signup`-style texts |
| 25 | + `user.profile.readonly.federated` and `user.profile.update.not.allowed.error` in all i18n bundles. |
| 26 | + |
| 27 | + While `auto` is resolving, the profile shows a loading state rather than edit controls it may have to take away; |
| 28 | + `BaseUserProfile` now renders that state whenever `isLoading` is set, in both inline and popup modes. In popup mode |
| 29 | + the lookup is deferred until the profile is actually opened. |
| 30 | + |
| 31 | +- Updated dependencies |
| 32 | + [[`9a156a9`](https://github.com/asgardeo/javascript/commit/9a156a948a0a3c36f504954e1b87a6ef39f13d3a)]: |
| 33 | + - @asgardeo/react@0.25.13 |
| 34 | + - @asgardeo/node@0.0.88 |
| 35 | + |
3 | 36 | ## 0.3.34 |
4 | 37 |
|
5 | 38 | ### Patch Changes |
|
0 commit comments