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 dac2fc3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/mosaic-profile-provider.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +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
-
-`UserButton` and `OrganizationSwitcher`: `userProfileUrl`, `userProfileMode`, `organizationProfileUrl` and `organizationProfileMode` 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.
19
20
-`UserButton` and `OrganizationSwitcher`: `appearance` is no longer accepted in `userProfileProps` or `organizationProfileProps`.
20
21
-`UserButton` and `OrganizationSwitcher`: link items (`href`) are no longer accepted in `customPages`.
21
22
-`UserButton` and `OrganizationSwitcher`: `afterLeaveOrganizationUrl` moves to `profile.organizationProfileProps`, which also takes `apiKeysProps`.
* Full URL or path of your own user profile page. Setting it routes there instead of opening the modal.
27
+
*/
28
+
userProfileUrl?: string;
29
+
/**
30
+
* Full URL or path of your own organization profile page. Setting it routes there instead of opening the modal.
31
+
*/
32
+
organizationProfileUrl?: string;
27
33
}
28
34
29
-
/** A URL is the whole opt-in to navigation, and `modal` forbids one, so the pair cannot contradict itself. */
30
-
typeUserProfileRouting=
31
-
|{
32
-
/** Full URL or path of your own user profile page. Setting it routes there instead of opening the modal. */
33
-
userProfileUrl: string;
34
-
/** How the user profile opens: `modal` opens it in place, `navigation` goes to `userProfileUrl`. Follows from whether `userProfileUrl` is set. */
35
-
userProfileMode?: 'navigation';
36
-
}
37
-
|{
38
-
/** Full URL or path of your own user profile page. Setting it routes there instead of opening the modal. */
39
-
userProfileUrl?: never;
40
-
/** How the user profile opens: `modal` opens it in place, `navigation` goes to `userProfileUrl`. Follows from whether `userProfileUrl` is set. */
41
-
userProfileMode?: 'modal';
42
-
};
43
-
44
-
typeOrganizationProfileRouting=
45
-
|{
46
-
/** Full URL or path of your own organization profile page. Setting it routes there instead of opening the modal. */
47
-
organizationProfileUrl: string;
48
-
/** How the organization profile opens: `modal` opens it in place, `navigation` goes to `organizationProfileUrl`. Follows from whether `organizationProfileUrl` is set. */
49
-
organizationProfileMode?: 'navigation';
50
-
}
51
-
|{
52
-
/** Full URL or path of your own organization profile page. Setting it routes there instead of opening the modal. */
53
-
organizationProfileUrl?: never;
54
-
/** How the organization profile opens: `modal` opens it in place, `navigation` goes to `organizationProfileUrl`. Follows from whether `organizationProfileUrl` is set. */
55
-
organizationProfileMode?: 'modal';
56
-
};
57
-
58
35
/** What a profile takes beyond the profile component's own props. */
0 commit comments