@fluid-app/portal-sdk 0.1.218 → 0.1.220
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/{AppDownloadScreen-CZ0EOIZ5.mjs → AppDownloadScreen-Bhix461K.mjs} +1 -1
- package/dist/{AppDownloadScreen-CZ0EOIZ5.mjs.map → AppDownloadScreen-Bhix461K.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-CBoC31wL.cjs → AppDownloadScreen-DwBzuPcF.cjs} +1 -1
- package/dist/{AppDownloadScreen-CBoC31wL.cjs.map → AppDownloadScreen-DwBzuPcF.cjs.map} +1 -1
- 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-BAPWqDfm.mjs} +11 -31
- package/dist/{MySiteScreen-DUN5TTvU.mjs.map → MySiteScreen-BAPWqDfm.mjs.map} +1 -1
- package/dist/{MySiteScreen-B0aOIzU4.cjs → MySiteScreen-CEX1qxdj.cjs} +2 -3
- package/dist/{MySiteScreen-B1L8coGs.cjs → MySiteScreen-DaNlmVSi.cjs} +24 -44
- package/dist/MySiteScreen-DaNlmVSi.cjs.map +1 -0
- package/dist/{PortalProductsApiProvider-CE71zDj9.mjs → PortalProductsApiProvider-BwIRudl_.mjs} +1 -1
- package/dist/{PortalProductsApiProvider-CE71zDj9.mjs.map → PortalProductsApiProvider-BwIRudl_.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-Ca1oeTtJ.cjs → PortalProductsApiProvider-CRaocswH.cjs} +1 -1
- package/dist/{PortalProductsApiProvider-Ca1oeTtJ.cjs.map → PortalProductsApiProvider-CRaocswH.cjs.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-smU5pGyH.cjs → ShareablesScreen-CqvPzH1v.cjs} +3 -5
- package/dist/{PortalContentApiProvider-C9FeVwRb.mjs → ShareablesScreen-DV2nikzp.mjs} +460 -119
- package/dist/ShareablesScreen-DV2nikzp.mjs.map +1 -0
- package/dist/{PortalContentApiProvider-RXBp8FNj.cjs → ShareablesScreen-DwnMBftJ.cjs} +457 -156
- package/dist/ShareablesScreen-DwnMBftJ.cjs.map +1 -0
- package/dist/{ShopScreen-BAbAc2ah.cjs → ShopScreen-C-Ki6fuh.cjs} +3 -3
- package/dist/{ShopScreen-DQ1-68kV.mjs → ShopScreen-C2K1C2tt.mjs} +3 -3
- package/dist/{ShopScreen-DQ1-68kV.mjs.map → ShopScreen-C2K1C2tt.mjs.map} +1 -1
- package/dist/{ShopScreen-DcJ0DLvB.cjs → ShopScreen-smzNn37E.cjs} +3 -3
- package/dist/{ShopScreen-DcJ0DLvB.cjs.map → ShopScreen-smzNn37E.cjs.map} +1 -1
- package/dist/{UpgradeScreen-BdY0rCoF.cjs → UpgradeScreen-CNXQ1hcP.cjs} +1 -1
- package/dist/{UpgradeScreen-Dau5Elx4.mjs → UpgradeScreen-ChLiVSf7.mjs} +1 -1
- package/dist/{UpgradeScreen-Dau5Elx4.mjs.map → UpgradeScreen-ChLiVSf7.mjs.map} +1 -1
- package/dist/{UpgradeScreen-DrBa2uzD.cjs → UpgradeScreen-DMJUK4dl.cjs} +1 -1
- package/dist/{UpgradeScreen-DrBa2uzD.cjs.map → UpgradeScreen-DMJUK4dl.cjs.map} +1 -1
- package/dist/{dist-DWs3-WOI.cjs → dist-Bxa9x0H9.cjs} +218 -1
- package/dist/{dist-DWs3-WOI.cjs.map → dist-Bxa9x0H9.cjs.map} +1 -1
- package/dist/index.cjs +24 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -20
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -20
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +25 -52
- package/dist/index.mjs.map +1 -1
- 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/{sortable.esm-CJLSD-Ce.mjs → sortable.esm-fSGrAZU2.mjs} +141 -2
- package/dist/sortable.esm-fSGrAZU2.mjs.map +1 -0
- package/package.json +14 -14
- 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/ProductsScreen-BD53vh6Y.cjs +0 -103
- package/dist/ProductsScreen-BD53vh6Y.cjs.map +0 -1
- package/dist/ProductsScreen-BtUZxJCt.mjs +0 -91
- package/dist/ProductsScreen-BtUZxJCt.mjs.map +0 -1
- package/dist/ProductsScreen-DNpzJ6lh.cjs +0 -15
- package/dist/ProductsScreen-pkOeOW8M.mjs +0 -13
- package/dist/ShareablesScreen-CW1e9x4K.mjs +0 -188
- package/dist/ShareablesScreen-CW1e9x4K.mjs.map +0 -1
- package/dist/ShareablesScreen-D1J2Kljk.mjs +0 -15
- package/dist/ShareablesScreen-DC8xXUo4.cjs +0 -200
- package/dist/ShareablesScreen-DC8xXUo4.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/sortable.esm-CJLSD-Ce.mjs.map +0 -1
- package/dist/use-mysite-portal-BV-BP3CE.mjs +0 -141
- package/dist/use-mysite-portal-BV-BP3CE.mjs.map +0 -1
- package/dist/use-mysite-portal-DzDYRU0u.cjs +0 -219
- 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;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
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
|
-
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-
|
|
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-BV-BP3CE.mjs";
|
|
4
|
+
import { C as usePortalUpdateLink, S as usePortalReorderLinks, T as usePortalUpdateSettings, _ as usePortalFavorites, a as verticalListSortingStrategy, b as usePortalMySiteThemes, c as PointerSensor, d as useSensors, f as CSS, g as usePortalDeleteLink, h as usePortalDeleteFavorite, i as useSortable, l as closestCenter, m as usePortalCreateLink, n as arrayMove, o as DndContext, r as sortableKeyboardCoordinates, s as KeyboardSensor, t as SortableContext, u as useSensor, v as usePortalLinks, w as usePortalUpdateProfile, x as usePortalReorderFavorites, y as usePortalMySiteProfile } from "./sortable.esm-fSGrAZU2.mjs";
|
|
6
5
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
7
6
|
import "@tanstack/react-query";
|
|
8
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -990,21 +989,15 @@ function PortalFavoritesEditor({ onBack, onRefreshPreview, onToast }) {
|
|
|
990
989
|
function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, avatarUrl, userName, userInitial }) {
|
|
991
990
|
const { data: profile, isLoading: isProfileLoading } = usePortalMySiteProfile();
|
|
992
991
|
const updateProfileMutation = usePortalUpdateProfile();
|
|
993
|
-
const [formState, setFormState] = useState(() => ({
|
|
994
|
-
display_name: "",
|
|
995
|
-
bio: ""
|
|
996
|
-
}));
|
|
992
|
+
const [formState, setFormState] = useState(() => ({ bio: "" }));
|
|
997
993
|
const profileSyncedRef = useRef(false);
|
|
998
994
|
useEffect(() => {
|
|
999
995
|
if (profile && !profileSyncedRef.current) {
|
|
1000
996
|
profileSyncedRef.current = true;
|
|
1001
|
-
setFormState({
|
|
1002
|
-
display_name: profile.display_name ?? "",
|
|
1003
|
-
bio: profile.bio ?? ""
|
|
1004
|
-
});
|
|
997
|
+
setFormState({ bio: profile.bio ?? "" });
|
|
1005
998
|
}
|
|
1006
999
|
}, [profile]);
|
|
1007
|
-
const isDirty = formState.
|
|
1000
|
+
const isDirty = formState.bio.trim() !== (profile?.bio ?? "");
|
|
1008
1001
|
const handleFieldChange = useCallback((field, value) => {
|
|
1009
1002
|
setFormState((s) => ({
|
|
1010
1003
|
...s,
|
|
@@ -1012,10 +1005,8 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1012
1005
|
}));
|
|
1013
1006
|
}, []);
|
|
1014
1007
|
const handleSave = useCallback(() => {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
bio: formState.bio
|
|
1018
|
-
}, {
|
|
1008
|
+
const trimmedBio = formState.bio.trim();
|
|
1009
|
+
updateProfileMutation.mutate({ bio: trimmedBio }, {
|
|
1019
1010
|
onSuccess: () => {
|
|
1020
1011
|
profileSyncedRef.current = false;
|
|
1021
1012
|
onToast?.("Profile updated successfully", "success");
|
|
@@ -1052,6 +1043,7 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1052
1043
|
const imageUrl = await onUploadPhoto(file);
|
|
1053
1044
|
updateProfileMutation.mutate({ avatar_url: imageUrl }, {
|
|
1054
1045
|
onSuccess: () => {
|
|
1046
|
+
setPreviewUrl(null);
|
|
1055
1047
|
onToast?.("Profile photo updated", "success");
|
|
1056
1048
|
onRefreshPreview?.();
|
|
1057
1049
|
},
|
|
@@ -1131,21 +1123,9 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1131
1123
|
}),
|
|
1132
1124
|
/* @__PURE__ */ jsx(Card, {
|
|
1133
1125
|
className: "h-auto gap-0 py-0 shadow-none",
|
|
1134
|
-
children: /* @__PURE__ */
|
|
1126
|
+
children: /* @__PURE__ */ jsx(CardContent, {
|
|
1135
1127
|
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", {
|
|
1128
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1149
1129
|
className: "space-y-2",
|
|
1150
1130
|
children: [/* @__PURE__ */ jsx(Label, {
|
|
1151
1131
|
htmlFor: "profile-bio",
|
|
@@ -1157,7 +1137,7 @@ function MySiteProfileForm({ onBack, onToast, onRefreshPreview, onUploadPhoto, a
|
|
|
1157
1137
|
onChange: (e) => handleFieldChange("bio", e.target.value),
|
|
1158
1138
|
placeholder: "Tell people a little about yourself..."
|
|
1159
1139
|
})]
|
|
1160
|
-
})
|
|
1140
|
+
})
|
|
1161
1141
|
})
|
|
1162
1142
|
}),
|
|
1163
1143
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -1469,4 +1449,4 @@ const mySiteScreenPropertySchema = {
|
|
|
1469
1449
|
//#endregion
|
|
1470
1450
|
export { MySiteScreen_exports as n, mySiteScreenPropertySchema as r, MySiteScreen as t };
|
|
1471
1451
|
|
|
1472
|
-
//# sourceMappingURL=MySiteScreen-
|
|
1452
|
+
//# sourceMappingURL=MySiteScreen-BAPWqDfm.mjs.map
|