@fluid-app/portal-sdk 0.1.202 → 0.1.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MySiteScreen-CqwsO0Pz.cjs → MySiteScreen-B7oQq_qd.cjs} +1 -1
- package/dist/{MySiteScreen-DCXhJpH3.mjs → MySiteScreen-CblhfB4y.mjs} +9 -4
- package/dist/{MySiteScreen-DCXhJpH3.mjs.map → MySiteScreen-CblhfB4y.mjs.map} +1 -1
- package/dist/{MySiteScreen-yiG3VMjV.cjs → MySiteScreen-DDSiPpo4.cjs} +9 -4
- package/dist/{MySiteScreen-yiG3VMjV.cjs.map → MySiteScreen-DDSiPpo4.cjs.map} +1 -1
- package/dist/{ProfileScreen-BMNq0NEB.cjs → ProfileScreen-C4hRAZlK.cjs} +1 -1
- package/dist/{ProfileScreen-D-pTegtY.mjs → ProfileScreen-Dz6yvZj8.mjs} +7 -7
- package/dist/ProfileScreen-Dz6yvZj8.mjs.map +1 -0
- package/dist/{ProfileScreen-D5OxmzhM.cjs → ProfileScreen-EtnwUHbd.cjs} +7 -7
- package/dist/ProfileScreen-EtnwUHbd.cjs.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/dist/ProfileScreen-D-pTegtY.mjs.map +0 -1
- package/dist/ProfileScreen-D5OxmzhM.cjs.map +0 -1
|
@@ -4,6 +4,6 @@ require("./src-D57IFKXU.cjs");
|
|
|
4
4
|
require("./ScreenHeaderContext-BXgWydjB.cjs");
|
|
5
5
|
require("./dist-Ck1Xpuzh.cjs");
|
|
6
6
|
require("./use-mysite-portal-CJBowMpK.cjs");
|
|
7
|
-
const require_MySiteScreen = require("./MySiteScreen-
|
|
7
|
+
const require_MySiteScreen = require("./MySiteScreen-DDSiPpo4.cjs");
|
|
8
8
|
exports.MySiteScreen = require_MySiteScreen.MySiteScreen;
|
|
9
9
|
exports.mySiteScreenPropertySchema = require_MySiteScreen.mySiteScreenPropertySchema;
|
|
@@ -969,7 +969,7 @@ function PortalFavoritesEditor({ onBack, onRefreshPreview, onToast }) {
|
|
|
969
969
|
}
|
|
970
970
|
//#endregion
|
|
971
971
|
//#region ../../mysite/ui/src/portal/components/MySiteProfileForm.tsx
|
|
972
|
-
function MySiteProfileForm({ onBack, onToast, onUploadPhoto, avatarUrl, userName, userInitial }) {
|
|
972
|
+
function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, avatarUrl, userName, userInitial }) {
|
|
973
973
|
const { data: profile, isLoading: isProfileLoading } = usePortalMySiteProfile();
|
|
974
974
|
const updateProfileMutation = usePortalUpdateProfile();
|
|
975
975
|
const [formState, setFormState] = useState(() => ({
|
|
@@ -1001,6 +1001,7 @@ function MySiteProfileForm({ onBack, onToast, onUploadPhoto, avatarUrl, userName
|
|
|
1001
1001
|
onSuccess: () => {
|
|
1002
1002
|
profileSyncedRef.current = false;
|
|
1003
1003
|
onToast?.("Profile updated successfully", "success");
|
|
1004
|
+
onRefreshPreview?.();
|
|
1004
1005
|
},
|
|
1005
1006
|
onError: () => {
|
|
1006
1007
|
onToast?.("Failed to update profile", "error");
|
|
@@ -1009,7 +1010,8 @@ function MySiteProfileForm({ onBack, onToast, onUploadPhoto, avatarUrl, userName
|
|
|
1009
1010
|
}, [
|
|
1010
1011
|
formState,
|
|
1011
1012
|
updateProfileMutation,
|
|
1012
|
-
onToast
|
|
1013
|
+
onToast,
|
|
1014
|
+
onRefreshPreview
|
|
1013
1015
|
]);
|
|
1014
1016
|
const fileInputRef = useRef(null);
|
|
1015
1017
|
const [isUploadingPhoto, setIsUploadingPhoto] = useState(false);
|
|
@@ -1033,6 +1035,7 @@ function MySiteProfileForm({ onBack, onToast, onUploadPhoto, avatarUrl, userName
|
|
|
1033
1035
|
updateProfileMutation.mutate({ avatar_url: imageUrl }, {
|
|
1034
1036
|
onSuccess: () => {
|
|
1035
1037
|
onToast?.("Profile photo updated", "success");
|
|
1038
|
+
onRefreshPreview?.();
|
|
1036
1039
|
},
|
|
1037
1040
|
onError: () => {
|
|
1038
1041
|
setPreviewUrl(null);
|
|
@@ -1049,7 +1052,8 @@ function MySiteProfileForm({ onBack, onToast, onUploadPhoto, avatarUrl, userName
|
|
|
1049
1052
|
}, [
|
|
1050
1053
|
onUploadPhoto,
|
|
1051
1054
|
updateProfileMutation,
|
|
1052
|
-
onToast
|
|
1055
|
+
onToast,
|
|
1056
|
+
onRefreshPreview
|
|
1053
1057
|
]);
|
|
1054
1058
|
if (isProfileLoading) return /* @__PURE__ */ jsx("div", {
|
|
1055
1059
|
className: "flex h-full items-center justify-center",
|
|
@@ -1282,6 +1286,7 @@ function MySiteMainView({ editingSection, animPhase, showEditContent, onEditSect
|
|
|
1282
1286
|
onToast: defaultToast
|
|
1283
1287
|
}) : showEditContent && editingSection === "profile" ? /* @__PURE__ */ jsx(MySiteProfileForm, {
|
|
1284
1288
|
onBack: onBackClick,
|
|
1289
|
+
onRefreshPreview: refreshPreview,
|
|
1285
1290
|
onToast: defaultToast
|
|
1286
1291
|
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1287
1292
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -1446,4 +1451,4 @@ const mySiteScreenPropertySchema = {
|
|
|
1446
1451
|
//#endregion
|
|
1447
1452
|
export { MySiteScreen_exports as n, mySiteScreenPropertySchema as r, MySiteScreen as t };
|
|
1448
1453
|
|
|
1449
|
-
//# sourceMappingURL=MySiteScreen-
|
|
1454
|
+
//# sourceMappingURL=MySiteScreen-CblhfB4y.mjs.map
|