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 ae5aa8e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/mosaic-profile-provider.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ Breaking changes:
15
15
16
16
-`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
17
-`UserButton` and `OrganizationSwitcher`: `userProfileProps` and `organizationProfileProps` move to `MosaicProvider`'s `profile`.
18
-
-`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.
18
+
-`UserButton` and `OrganizationSwitcher`: `userProfileUrl`, `userProfileMode`, `organizationProfileUrl` and `organizationProfileMode` move to `MosaicProvider`'s `profile`.
19
+
-`UserButton` and `OrganizationSwitcher`: `afterLeaveOrganizationUrl` moves to `profile.organizationProfileProps`, which also takes `apiKeysProps`.
20
+
-`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.
19
21
- With `experimental.newProfiles`, `OrganizationSwitcher` now opens the combined profile by default. Set `profile={{ combined: false }}` for the standalone organization profile.
/** A URL is the whole opt-in to navigation, and `modal` forbids one, so the pair cannot contradict itself. */
29
+
typeUserProfileRouting=
30
+
|{
31
+
/** Full URL or path of your own user profile page. Setting it routes there instead of opening the modal. */
32
+
userProfileUrl: string;
33
+
/** How the user profile opens: `modal` opens it in place, `navigation` goes to `userProfileUrl`. Follows from whether `userProfileUrl` is set. */
34
+
userProfileMode?: 'navigation';
35
+
}
36
+
|{
37
+
/** Full URL or path of your own user profile page. Setting it routes there instead of opening the modal. */
38
+
userProfileUrl?: never;
39
+
/** How the user profile opens: `modal` opens it in place, `navigation` goes to `userProfileUrl`. Follows from whether `userProfileUrl` is set. */
40
+
userProfileMode?: 'modal';
41
+
};
42
+
43
+
typeOrganizationProfileRouting=
44
+
|{
45
+
/** Full URL or path of your own organization profile page. Setting it routes there instead of opening the modal. */
46
+
organizationProfileUrl: string;
47
+
/** How the organization profile opens: `modal` opens it in place, `navigation` goes to `organizationProfileUrl`. Follows from whether `organizationProfileUrl` is set. */
48
+
organizationProfileMode?: 'navigation';
49
+
}
50
+
|{
51
+
/** Full URL or path of your own organization profile page. Setting it routes there instead of opening the modal. */
52
+
organizationProfileUrl?: never;
53
+
/** How the organization profile opens: `modal` opens it in place, `navigation` goes to `organizationProfileUrl`. Follows from whether `organizationProfileUrl` is set. */
54
+
organizationProfileMode?: 'modal';
55
+
};
56
+
26
57
/** What a profile takes beyond the profile component's own props. */
0 commit comments