@fluid-app/portal-sdk 0.1.218 → 0.1.219
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/{FluidProvider-22PONJDa.mjs → FluidProvider-DTttgSXi.mjs} +2 -2
- package/dist/{FluidProvider-22PONJDa.mjs.map → FluidProvider-DTttgSXi.mjs.map} +1 -1
- package/dist/{FluidProvider-DTdi38VO.cjs → FluidProvider-Dm4BhF_t.cjs} +2 -2
- package/dist/{FluidProvider-DTdi38VO.cjs.map → FluidProvider-Dm4BhF_t.cjs.map} +1 -1
- package/dist/{MessagingScreen-BM21ZxGL.mjs → MessagingScreen-CwEXQJlW.mjs} +2 -2
- package/dist/{MessagingScreen-BM21ZxGL.mjs.map → MessagingScreen-CwEXQJlW.mjs.map} +1 -1
- package/dist/{MessagingScreen-ehHW4LwI.cjs → MessagingScreen-DLQ5V0m4.cjs} +2 -2
- package/dist/{MessagingScreen-ehHW4LwI.cjs.map → MessagingScreen-DLQ5V0m4.cjs.map} +1 -1
- package/dist/{MessagingScreen-BDlC9VWJ.cjs → MessagingScreen-YBXJL7a9.cjs} +2 -2
- package/dist/{MySiteScreen-DUN5TTvU.mjs → MySiteScreen-CyzM9hX3.mjs} +11 -30
- package/dist/{MySiteScreen-DUN5TTvU.mjs.map → MySiteScreen-CyzM9hX3.mjs.map} +1 -1
- package/dist/{MySiteScreen-B0aOIzU4.cjs → MySiteScreen-DPQ66oRs.cjs} +2 -2
- package/dist/{MySiteScreen-B1L8coGs.cjs → MySiteScreen-DxLcG3-S.cjs} +11 -30
- package/dist/MySiteScreen-DxLcG3-S.cjs.map +1 -0
- package/dist/{PortalContentApiProvider-RXBp8FNj.cjs → PortalContentApiProvider-DXnplIOD.cjs} +273 -82
- package/dist/PortalContentApiProvider-DXnplIOD.cjs.map +1 -0
- package/dist/{PortalContentApiProvider-C9FeVwRb.mjs → PortalContentApiProvider-x81DXmOR.mjs} +273 -82
- package/dist/PortalContentApiProvider-x81DXmOR.mjs.map +1 -0
- package/dist/{ProductsScreen-DNpzJ6lh.cjs → ProductsScreen-3yjIMjYY.cjs} +2 -2
- package/dist/{ProductsScreen-pkOeOW8M.mjs → ProductsScreen-BVyLOe2K.mjs} +2 -2
- package/dist/{ProductsScreen-BD53vh6Y.cjs → ProductsScreen-R0MfWYZJ.cjs} +2 -2
- package/dist/{ProductsScreen-BD53vh6Y.cjs.map → ProductsScreen-R0MfWYZJ.cjs.map} +1 -1
- package/dist/{ProductsScreen-BtUZxJCt.mjs → ProductsScreen-z9hXfFeJ.mjs} +2 -2
- package/dist/{ProductsScreen-BtUZxJCt.mjs.map → ProductsScreen-z9hXfFeJ.mjs.map} +1 -1
- package/dist/{ProfileScreen-DNRpWpex.cjs → ProfileScreen-B0WRifk_.cjs} +2 -2
- package/dist/{ProfileScreen-DNRpWpex.cjs.map → ProfileScreen-B0WRifk_.cjs.map} +1 -1
- package/dist/{ProfileScreen-VonnJyFa.mjs → ProfileScreen-BuejQU_V.mjs} +2 -2
- package/dist/{ProfileScreen-VonnJyFa.mjs.map → ProfileScreen-BuejQU_V.mjs.map} +1 -1
- package/dist/{ProfileScreen-CN1DDd-Q.cjs → ProfileScreen-g3se9Jw-.cjs} +2 -2
- package/dist/{ShareablesScreen-DC8xXUo4.cjs → ShareablesScreen-Co_gFZva.cjs} +3 -3
- package/dist/{ShareablesScreen-DC8xXUo4.cjs.map → ShareablesScreen-Co_gFZva.cjs.map} +1 -1
- package/dist/{ShareablesScreen-D1J2Kljk.mjs → ShareablesScreen-DpwFh0ky.mjs} +3 -3
- package/dist/{ShareablesScreen-smU5pGyH.cjs → ShareablesScreen-YlMqyP-B.cjs} +3 -3
- package/dist/{ShareablesScreen-CW1e9x4K.mjs → ShareablesScreen-tkaf9R5N.mjs} +3 -3
- package/dist/{ShareablesScreen-CW1e9x4K.mjs.map → ShareablesScreen-tkaf9R5N.mjs.map} +1 -1
- package/dist/{ShopScreen-DQ1-68kV.mjs → ShopScreen-B4afB5sE.mjs} +2 -2
- package/dist/{ShopScreen-DQ1-68kV.mjs.map → ShopScreen-B4afB5sE.mjs.map} +1 -1
- package/dist/{ShopScreen-BAbAc2ah.cjs → ShopScreen-BOjri6Dm.cjs} +2 -2
- package/dist/{ShopScreen-DcJ0DLvB.cjs → ShopScreen-Untg6XBY.cjs} +2 -2
- package/dist/{ShopScreen-DcJ0DLvB.cjs.map → ShopScreen-Untg6XBY.cjs.map} +1 -1
- package/dist/index.cjs +21 -21
- package/dist/index.mjs +21 -21
- package/dist/{portal_tenant_content-0zpnjBot.cjs → portal_tenant_content-BvYxmADB.cjs} +18 -1
- package/dist/portal_tenant_content-BvYxmADB.cjs.map +1 -0
- package/dist/{portal_tenant_content-DzIQtSLE.mjs → portal_tenant_content-nHEI2qEY.mjs} +13 -2
- package/dist/portal_tenant_content-nHEI2qEY.mjs.map +1 -0
- package/dist/{use-mysite-portal-BV-BP3CE.mjs → use-mysite-portal-D29HLD1z.mjs} +3 -2
- package/dist/use-mysite-portal-D29HLD1z.mjs.map +1 -0
- package/dist/{use-mysite-portal-DzDYRU0u.cjs → use-mysite-portal-DxNQ3uTi.cjs} +3 -2
- package/dist/use-mysite-portal-DxNQ3uTi.cjs.map +1 -0
- package/package.json +10 -10
- package/dist/MySiteScreen-B1L8coGs.cjs.map +0 -1
- package/dist/PortalContentApiProvider-C9FeVwRb.mjs.map +0 -1
- package/dist/PortalContentApiProvider-RXBp8FNj.cjs.map +0 -1
- package/dist/portal_tenant_content-0zpnjBot.cjs.map +0 -1
- package/dist/portal_tenant_content-DzIQtSLE.mjs.map +0 -1
- package/dist/use-mysite-portal-BV-BP3CE.mjs.map +0 -1
- package/dist/use-mysite-portal-DzDYRU0u.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
require("./FluidProvider-
|
|
2
|
+
require("./FluidProvider-Dm4BhF_t.cjs");
|
|
3
3
|
require("./ScreenRenderer-Cg85jtXq.cjs");
|
|
4
4
|
require("./account-api-context-DZP9IiGg.cjs");
|
|
5
5
|
require("./store-api-context-D1gZn22Z.cjs");
|
|
@@ -39,7 +39,7 @@ require("./SpacerWidget-D9lOLPr5.cjs");
|
|
|
39
39
|
require("./TableWidget-D5gAsgv6.cjs");
|
|
40
40
|
require("./ToDoWidget-x86UGKLQ.cjs");
|
|
41
41
|
require("./VideoWidget-BIokMYTX.cjs");
|
|
42
|
-
const require_MessagingScreen = require("./MessagingScreen-
|
|
42
|
+
const require_MessagingScreen = require("./MessagingScreen-DLQ5V0m4.cjs");
|
|
43
43
|
require("./dist-CGuUUVNt.cjs");
|
|
44
44
|
require("./es-DHLLltoR.cjs");
|
|
45
45
|
exports.MessagingScreen = require_MessagingScreen.MessagingScreen;
|
|
@@ -2,7 +2,7 @@ import { r as __exportAll } from "./es-Cw_Kikmu.mjs";
|
|
|
2
2
|
import { C as Skeleton, En as Button, Et as CardContent, K as Label, L as Input, Nn as useZodForm, Ot as CardHeader, Pn as cn, Tt as CardAction, b as fluidToast, cn as Breadcrumb, ct as DialogFooter, dn as BreadcrumbList, fn as BreadcrumbPage, ft as DialogTitle, it as Dialog, k as Separator, kt as CardTitle, ln as BreadcrumbItem, lt as DialogHeader, ot as DialogContent, pn as BreadcrumbSeparator, s as Textarea, un as BreadcrumbLink, wt as Card } from "./src-BEKH1DXO.mjs";
|
|
3
3
|
import { r as useScreenHeaderBreadcrumbs } from "./ScreenHeaderContext-BDjNSUfr.mjs";
|
|
4
4
|
import { a as verticalListSortingStrategy, c as PointerSensor, d as useSensors, f as CSS, i as useSortable, l as closestCenter, n as arrayMove, o as DndContext, r as sortableKeyboardCoordinates, s as KeyboardSensor, t as SortableContext, u as useSensor } from "./sortable.esm-CJLSD-Ce.mjs";
|
|
5
|
-
import { a as usePortalFavorites, c as usePortalMySiteThemes, d as usePortalUpdateLink, f as usePortalUpdateProfile, i as usePortalDeleteLink, l as usePortalReorderFavorites, n as usePortalCreateLink, o as usePortalLinks, p as usePortalUpdateSettings, r as usePortalDeleteFavorite, s as usePortalMySiteProfile, u as usePortalReorderLinks } from "./use-mysite-portal-
|
|
5
|
+
import { a as usePortalFavorites, c as usePortalMySiteThemes, d as usePortalUpdateLink, f as usePortalUpdateProfile, i as usePortalDeleteLink, l as usePortalReorderFavorites, n as usePortalCreateLink, o as usePortalLinks, p as usePortalUpdateSettings, r as usePortalDeleteFavorite, s as usePortalMySiteProfile, u as usePortalReorderLinks } from "./use-mysite-portal-D29HLD1z.mjs";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -990,21 +990,15 @@ function PortalFavoritesEditor({ onBack, onRefreshPreview, onToast }) {
|
|
|
990
990
|
function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, avatarUrl, userName, userInitial }) {
|
|
991
991
|
const { data: profile, isLoading: isProfileLoading } = usePortalMySiteProfile();
|
|
992
992
|
const updateProfileMutation = usePortalUpdateProfile();
|
|
993
|
-
const [formState, setFormState] = useState(() => ({
|
|
994
|
-
display_name: "",
|
|
995
|
-
bio: ""
|
|
996
|
-
}));
|
|
993
|
+
const [formState, setFormState] = useState(() => ({ bio: "" }));
|
|
997
994
|
const profileSyncedRef = useRef(false);
|
|
998
995
|
useEffect(() => {
|
|
999
996
|
if (profile && !profileSyncedRef.current) {
|
|
1000
997
|
profileSyncedRef.current = true;
|
|
1001
|
-
setFormState({
|
|
1002
|
-
display_name: profile.display_name ?? "",
|
|
1003
|
-
bio: profile.bio ?? ""
|
|
1004
|
-
});
|
|
998
|
+
setFormState({ bio: profile.bio ?? "" });
|
|
1005
999
|
}
|
|
1006
1000
|
}, [profile]);
|
|
1007
|
-
const isDirty = formState.
|
|
1001
|
+
const isDirty = formState.bio.trim() !== (profile?.bio ?? "");
|
|
1008
1002
|
const handleFieldChange = useCallback((field, value) => {
|
|
1009
1003
|
setFormState((s) => ({
|
|
1010
1004
|
...s,
|
|
@@ -1012,10 +1006,8 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1012
1006
|
}));
|
|
1013
1007
|
}, []);
|
|
1014
1008
|
const handleSave = useCallback(() => {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
bio: formState.bio
|
|
1018
|
-
}, {
|
|
1009
|
+
const trimmedBio = formState.bio.trim();
|
|
1010
|
+
updateProfileMutation.mutate({ bio: trimmedBio }, {
|
|
1019
1011
|
onSuccess: () => {
|
|
1020
1012
|
profileSyncedRef.current = false;
|
|
1021
1013
|
onToast?.("Profile updated successfully", "success");
|
|
@@ -1052,6 +1044,7 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1052
1044
|
const imageUrl = await onUploadPhoto(file);
|
|
1053
1045
|
updateProfileMutation.mutate({ avatar_url: imageUrl }, {
|
|
1054
1046
|
onSuccess: () => {
|
|
1047
|
+
setPreviewUrl(null);
|
|
1055
1048
|
onToast?.("Profile photo updated", "success");
|
|
1056
1049
|
onRefreshPreview?.();
|
|
1057
1050
|
},
|
|
@@ -1131,21 +1124,9 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1131
1124
|
}),
|
|
1132
1125
|
/* @__PURE__ */ jsx(Card, {
|
|
1133
1126
|
className: "h-auto gap-0 py-0 shadow-none",
|
|
1134
|
-
children: /* @__PURE__ */
|
|
1127
|
+
children: /* @__PURE__ */ jsx(CardContent, {
|
|
1135
1128
|
className: "space-y-4 p-4 sm:p-6",
|
|
1136
|
-
children:
|
|
1137
|
-
className: "space-y-2",
|
|
1138
|
-
children: [/* @__PURE__ */ jsx(Label, {
|
|
1139
|
-
htmlFor: "profile-display-name",
|
|
1140
|
-
children: "Display Name"
|
|
1141
|
-
}), /* @__PURE__ */ jsx(Input, {
|
|
1142
|
-
id: "profile-display-name",
|
|
1143
|
-
type: "text",
|
|
1144
|
-
value: formState.display_name,
|
|
1145
|
-
onChange: (e) => handleFieldChange("display_name", e.target.value),
|
|
1146
|
-
placeholder: "Your display name"
|
|
1147
|
-
})]
|
|
1148
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
1129
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1149
1130
|
className: "space-y-2",
|
|
1150
1131
|
children: [/* @__PURE__ */ jsx(Label, {
|
|
1151
1132
|
htmlFor: "profile-bio",
|
|
@@ -1157,7 +1138,7 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1157
1138
|
onChange: (e) => handleFieldChange("bio", e.target.value),
|
|
1158
1139
|
placeholder: "Tell people a little about yourself..."
|
|
1159
1140
|
})]
|
|
1160
|
-
})
|
|
1141
|
+
})
|
|
1161
1142
|
})
|
|
1162
1143
|
}),
|
|
1163
1144
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -1469,4 +1450,4 @@ const mySiteScreenPropertySchema = {
|
|
|
1469
1450
|
//#endregion
|
|
1470
1451
|
export { MySiteScreen_exports as n, mySiteScreenPropertySchema as r, MySiteScreen as t };
|
|
1471
1452
|
|
|
1472
|
-
//# sourceMappingURL=MySiteScreen-
|
|
1453
|
+
//# sourceMappingURL=MySiteScreen-CyzM9hX3.mjs.map
|