You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8481b4a
Browse filesBrowse the repository at this point in the historyBrowse files
Configure the profile on `MosaicProvider` with the new `profile` prop, so `UserButton`, `OrganizationSwitcher` and `UserProfile` share one setup. This makes pairings like a user-only `UserButton` beside an `OrganizationSwitcher` with one combined profile possible.
-`UserButton`: `mode` is replaced by `combined`, which only decides what the menu lists. `mode='user'` becomes `combined={false}`, and to keep the account-only profile too, also set `profile={{ combined: false }}` on `MosaicProvider`.
17
+
-`UserButton` and `OrganizationSwitcher`: `userProfileProps` and `organizationProfileProps` move to `MosaicProvider`'s `profile`.
18
+
-`UserButton` and `OrganizationSwitcher`: `userProfileUrl` and `organizationProfileUrl` move to `MosaicProvider`'s `profile`.
19
+
-`UserButton` and `OrganizationSwitcher`: `userProfileMode` and `organizationProfileMode` are removed. Setting a URL routes there, and leaving it out opens the modal.
20
+
-`UserButton` and `OrganizationSwitcher`: `appearance` is no longer accepted in `userProfileProps` or `organizationProfileProps`.
21
+
-`UserButton` and `OrganizationSwitcher`: link items (`href`) are no longer accepted in `customPages`.
22
+
-`UserButton` and `OrganizationSwitcher`: `afterLeaveOrganizationUrl` moves to `profile.organizationProfileProps`, which also takes `apiKeysProps`.
23
+
-`UserProfile`: `mode` is replaced by `combined`. When unset it follows `profile.combined`, and it also picks up the provider's profile props, with its own props winning. `OrganizationProfile` picks them up the same way.
24
+
- With `experimental.newProfiles`, `OrganizationSwitcher` now opens the combined profile by default. Set `profile={{ combined: false }}` for the standalone organization profile.
Fix the organization profile's page order when `OrganizationSwitcher` or `UserButton` opens the legacy profile for a member who can manage the SSO bypass allowlist. The Security page now stays where `pageOrder` puts it instead of moving to the top.
Copy file name to clipboardExpand all lines: packages/mosaic/docs/models.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ export type SwitcherModel =
38
38
```
39
39
40
40
-**Cache updates.** Update the cache from inside the callback that mutated. On success patch the returned resource in with `replaceInPages`; on failure revalidate with `Promise.allSettled`, since a failed mutation may mean stale state and a failed revalidate must not look like a failed mutation (`onAcceptSuggestion` in `switcher.model.tsx`).
41
-
-**Navigation vs modal.** A consumer's URL is the whole opt-in. Type the pair so it cannot contradict itself: `{ userProfileUrl: string; userProfileMode?: 'navigation' } | { userProfileUrl?: never; userProfileMode?: 'modal' }`.
41
+
-**Navigation vs modal.** A consumer's URL is the whole opt-in. Type the pair so it cannot contradict itself: `{ createOrganizationUrl: string; createOrganizationMode?: 'navigation' } | { createOrganizationUrl?: never; createOrganizationMode?: 'modal' }` (`CreateOrganizationMode` in `switcher.model.tsx`).
0 commit comments