@fluid-app/portal-sdk 0.1.280 → 0.1.281
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/{ContactsScreen-D42uVkfI.mjs → ContactsScreen-CMETL0o1.mjs} +33 -36
- package/dist/ContactsScreen-CMETL0o1.mjs.map +1 -0
- package/dist/{ContactsScreen-CVUFwHD0.cjs → ContactsScreen-CNM9nqb1.cjs} +33 -36
- package/dist/ContactsScreen-CNM9nqb1.cjs.map +1 -0
- package/dist/{ContactsScreen-BWgTp9z6.cjs → ContactsScreen-CZLLBgUB.cjs} +2 -2
- package/dist/{MessagingScreen-ihaUzGp0.mjs → MessagingScreen-BvVhwvm8.mjs} +2 -2
- package/dist/{MessagingScreen-CE8MTQxn.cjs → MessagingScreen-C3yCIWo4.cjs} +41 -62
- package/dist/MessagingScreen-C3yCIWo4.cjs.map +1 -0
- package/dist/{MessagingScreen-r73abdKa.mjs → MessagingScreen-C7W5-K1N.mjs} +41 -62
- package/dist/{MessagingScreen-r73abdKa.mjs.map → MessagingScreen-C7W5-K1N.mjs.map} +1 -1
- package/dist/{MessagingScreen-DIbrm4HW.cjs → MessagingScreen-sc1u2IwX.cjs} +2 -2
- package/dist/{MySiteScreen-B1_Xx5-L.cjs → MySiteScreen-BiRsdk3F.cjs} +5 -10
- package/dist/MySiteScreen-BiRsdk3F.cjs.map +1 -0
- package/dist/{MySiteScreen-Dx8wYdv3.mjs → MySiteScreen-CfCr1_w0.mjs} +5 -10
- package/dist/{MySiteScreen-Dx8wYdv3.mjs.map → MySiteScreen-CfCr1_w0.mjs.map} +1 -1
- package/dist/{MySiteScreen-CFyr06DP.cjs → MySiteScreen-D2ivRa2e.cjs} +2 -2
- package/dist/{OrdersScreen-RNTW7SCI.mjs → OrdersScreen-BCFfxurP.mjs} +2 -2
- package/dist/{OrdersScreen-BQKy-1vC.cjs → OrdersScreen-CSkiK7j8.cjs} +13 -15
- package/dist/OrdersScreen-CSkiK7j8.cjs.map +1 -0
- package/dist/{OrdersScreen-C-32UkcG.cjs → OrdersScreen-DOCdTWOx.cjs} +2 -2
- package/dist/{OrdersScreen-9wp4AWDC.mjs → OrdersScreen-NzGaufXO.mjs} +13 -15
- package/dist/OrdersScreen-NzGaufXO.mjs.map +1 -0
- package/dist/{ProfileScreen-OZZ9Zcab.mjs → ProfileScreen-CkRFE_jb.mjs} +5 -6
- package/dist/{ProfileScreen-OZZ9Zcab.mjs.map → ProfileScreen-CkRFE_jb.mjs.map} +1 -1
- package/dist/{ProfileScreen-BdMZsorI.mjs → ProfileScreen-Cm4WZ54w.mjs} +2 -2
- package/dist/{ProfileScreen-BvIfbjnw.cjs → ProfileScreen-Dacb369p.cjs} +5 -6
- package/dist/ProfileScreen-Dacb369p.cjs.map +1 -0
- package/dist/{ProfileScreen-BrdjkmQd.cjs → ProfileScreen-zzk5SGP5.cjs} +2 -2
- package/dist/ScreenHeaderContext-CsfhnuJk.cjs +86 -0
- package/dist/ScreenHeaderContext-CsfhnuJk.cjs.map +1 -0
- package/dist/ScreenHeaderContext-Dn12BZyj.mjs +62 -0
- package/dist/ScreenHeaderContext-Dn12BZyj.mjs.map +1 -0
- package/dist/{ShareablesScreen-BP1Ed_Sv.cjs → ShareablesScreen-BwFmwYNG.cjs} +2 -2
- package/dist/{ShareablesScreen-DwxcReCu.cjs → ShareablesScreen-C6pCPvmx.cjs} +1101 -1144
- package/dist/ShareablesScreen-C6pCPvmx.cjs.map +1 -0
- package/dist/{ShareablesScreen-tq0taJJe.mjs → ShareablesScreen-kr2RL4FN.mjs} +2 -2
- package/dist/{ShareablesScreen-C5ZRdX-y.mjs → ShareablesScreen-uMQYLpTv.mjs} +1101 -1144
- package/dist/ShareablesScreen-uMQYLpTv.mjs.map +1 -0
- package/dist/{ShopScreen-B-OBQ2S7.mjs → ShopScreen-BqDNPM7i.mjs} +36 -47
- package/dist/{ShopScreen-B-OBQ2S7.mjs.map → ShopScreen-BqDNPM7i.mjs.map} +1 -1
- package/dist/{ShopScreen-Cn94XVxx.mjs → ShopScreen-CpCBdW0Z.mjs} +2 -2
- package/dist/{ShopScreen-zdvCwxBT.cjs → ShopScreen-DRnPRtV7.cjs} +36 -47
- package/dist/ShopScreen-DRnPRtV7.cjs.map +1 -0
- package/dist/{ShopScreen-CQDkeQrR.cjs → ShopScreen-SN91S9Ao.cjs} +2 -2
- package/dist/{SubscriptionsScreen-CRHHXzrB.cjs → SubscriptionsScreen-D4C8a7-e.cjs} +13 -15
- package/dist/SubscriptionsScreen-D4C8a7-e.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-Dx7Evic_.mjs → SubscriptionsScreen-DCeby11T.mjs} +13 -15
- package/dist/SubscriptionsScreen-DCeby11T.mjs.map +1 -0
- package/dist/{SubscriptionsScreen-DH10SUZK.cjs → SubscriptionsScreen-DzwK-Sck.cjs} +2 -2
- package/dist/index.cjs +35 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +35 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
- package/dist/ContactsScreen-CVUFwHD0.cjs.map +0 -1
- package/dist/ContactsScreen-D42uVkfI.mjs.map +0 -1
- package/dist/MessagingScreen-CE8MTQxn.cjs.map +0 -1
- package/dist/MySiteScreen-B1_Xx5-L.cjs.map +0 -1
- package/dist/OrdersScreen-9wp4AWDC.mjs.map +0 -1
- package/dist/OrdersScreen-BQKy-1vC.cjs.map +0 -1
- package/dist/ProfileScreen-BvIfbjnw.cjs.map +0 -1
- package/dist/ScreenHeaderContext-BDjNSUfr.mjs +0 -85
- package/dist/ScreenHeaderContext-BDjNSUfr.mjs.map +0 -1
- package/dist/ScreenHeaderContext-PbjwAMeB.cjs +0 -109
- package/dist/ScreenHeaderContext-PbjwAMeB.cjs.map +0 -1
- package/dist/ShareablesScreen-C5ZRdX-y.mjs.map +0 -1
- package/dist/ShareablesScreen-DwxcReCu.cjs.map +0 -1
- package/dist/ShopScreen-zdvCwxBT.cjs.map +0 -1
- package/dist/SubscriptionsScreen-CRHHXzrB.cjs.map +0 -1
- package/dist/SubscriptionsScreen-Dx7Evic_.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
2
|
require("./countries-api-context-C0C0K9gJ.cjs");
|
|
3
|
-
const require_ContactsScreen = require("./ContactsScreen-
|
|
3
|
+
const require_ContactsScreen = require("./ContactsScreen-CNM9nqb1.cjs");
|
|
4
4
|
require("./locale-context-Cdzhf17b.cjs");
|
|
5
5
|
require("./src-B0ut9PTw.cjs");
|
|
6
|
-
require("./ScreenHeaderContext-
|
|
6
|
+
require("./ScreenHeaderContext-CsfhnuJk.cjs");
|
|
7
7
|
require("./static-dict-adapter-C5FtjRCf.cjs");
|
|
8
8
|
require("./dist-DbRTQ2QF.cjs");
|
|
9
9
|
require("./dist-CznjDmLm.cjs");
|
|
@@ -23,7 +23,7 @@ import "./MediaRenderer-Db1KsIza.mjs";
|
|
|
23
23
|
import "./CarouselWidget-BOWNV3rj.mjs";
|
|
24
24
|
import "./CatchUpWidget-z6QHlvp8.mjs";
|
|
25
25
|
import "./src-Dk1FJOX0.mjs";
|
|
26
|
-
import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-
|
|
26
|
+
import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-C7W5-K1N.mjs";
|
|
27
27
|
import "./ChartWidget-rCUOwT7v.mjs";
|
|
28
28
|
import "./ContainerWidget-DjhBudsq.mjs";
|
|
29
29
|
import "./ImageWidget-DGABEW2_.mjs";
|
|
@@ -40,7 +40,7 @@ import "./SpacerWidget-D3yx57vH.mjs";
|
|
|
40
40
|
import "./TableWidget-DCZDRb0V.mjs";
|
|
41
41
|
import "./ToDoWidget-IKwBkpj3.mjs";
|
|
42
42
|
import "./VideoWidget-DlnwYXlo.mjs";
|
|
43
|
-
import "./ScreenHeaderContext-
|
|
43
|
+
import "./ScreenHeaderContext-Dn12BZyj.mjs";
|
|
44
44
|
import "./static-dict-adapter-BGSA0IiX.mjs";
|
|
45
45
|
import "./dist-PbA1vxAz.mjs";
|
|
46
46
|
import "./es-XDcP51O8.mjs";
|
|
@@ -2,7 +2,7 @@ const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
|
2
2
|
const require_FluidProvider = require("./FluidProvider-Cdz1kU5H.cjs");
|
|
3
3
|
const require_locale_context = require("./locale-context-Cdzhf17b.cjs");
|
|
4
4
|
const require_src = require("./src-B0ut9PTw.cjs");
|
|
5
|
-
const require_ScreenHeaderContext = require("./ScreenHeaderContext-
|
|
5
|
+
const require_ScreenHeaderContext = require("./ScreenHeaderContext-CsfhnuJk.cjs");
|
|
6
6
|
const require_use_store = require("./use-store-DvtLtZ3f.cjs");
|
|
7
7
|
const require_use_account = require("./use-account-DlmM-lMR.cjs");
|
|
8
8
|
const require_static_dict_adapter = require("./static-dict-adapter-C5FtjRCf.cjs");
|
|
@@ -57322,6 +57322,45 @@ zod.z.object({
|
|
|
57322
57322
|
url: zod.z.string().min(1, "Link is required").url("Please enter a valid URL")
|
|
57323
57323
|
});
|
|
57324
57324
|
//#endregion
|
|
57325
|
+
//#region src/messaging/MessagingHeaderBridge.tsx
|
|
57326
|
+
const ROUTE_TITLES = {
|
|
57327
|
+
pins: "Pinned Messages",
|
|
57328
|
+
new: "New Message",
|
|
57329
|
+
scheduled: "Scheduled Messages"
|
|
57330
|
+
};
|
|
57331
|
+
function fallbackRenderImage(props) {
|
|
57332
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
57333
|
+
src: props.src,
|
|
57334
|
+
alt: props.alt,
|
|
57335
|
+
width: props.width,
|
|
57336
|
+
height: props.height,
|
|
57337
|
+
className: props.className
|
|
57338
|
+
});
|
|
57339
|
+
}
|
|
57340
|
+
function MessagingHeaderBridge() {
|
|
57341
|
+
const { auth, renderImage: contextRenderImage } = useMessagingApp();
|
|
57342
|
+
const navigation = useMessagingNavigation();
|
|
57343
|
+
const { currentRoute } = navigation;
|
|
57344
|
+
const { data: conversation } = useConversation("conversationId" in currentRoute ? currentRoute.conversationId : 0);
|
|
57345
|
+
const renderImage = contextRenderImage ?? fallbackRenderImage;
|
|
57346
|
+
const currentUser = auth.currentUser;
|
|
57347
|
+
const conversationName = conversation?.name;
|
|
57348
|
+
const routeTitle = ROUTE_TITLES[currentRoute.view];
|
|
57349
|
+
const breadcrumbContent = routeTitle ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
57350
|
+
className: "text-foreground text-lg font-semibold",
|
|
57351
|
+
children: routeTitle
|
|
57352
|
+
}) : conversationName ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
57353
|
+
className: "text-foreground truncate text-lg font-semibold",
|
|
57354
|
+
children: conversationName
|
|
57355
|
+
}) : null;
|
|
57356
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [breadcrumbContent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ScreenHeaderContext.ScreenHeaderBreadcrumbs, { children: breadcrumbContent }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ScreenHeaderContext.ScreenHeaderActions, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagesHeaderActions, {
|
|
57357
|
+
conversation,
|
|
57358
|
+
currentUser,
|
|
57359
|
+
navigation,
|
|
57360
|
+
renderImage
|
|
57361
|
+
}) })] });
|
|
57362
|
+
}
|
|
57363
|
+
//#endregion
|
|
57325
57364
|
//#region ../../messaging/core/src/translation-adapter.ts
|
|
57326
57365
|
const messagingDomain = require_static_dict_adapter.createDomainTranslations({
|
|
57327
57366
|
fallback: {
|
|
@@ -57592,66 +57631,6 @@ function MessagingTranslationBridge({ children }) {
|
|
|
57592
57631
|
});
|
|
57593
57632
|
}
|
|
57594
57633
|
//#endregion
|
|
57595
|
-
//#region src/messaging/MessagingHeaderBridge.tsx
|
|
57596
|
-
/**
|
|
57597
|
-
* Bridges messaging header content from inside <MessagingApp> into the
|
|
57598
|
-
* portal shell's <ScreenHeader>. Render this as a child of <MessagingApp>
|
|
57599
|
-
* with `hideTopBar` set, and the messaging UI's own <MessagesTopBar /> is
|
|
57600
|
-
* suppressed in favour of populating the existing portal header.
|
|
57601
|
-
*
|
|
57602
|
-
* Right-hand actions are delegated to <MessagesHeaderActions /> from
|
|
57603
|
-
* messaging-ui so this stays in sync with <MessagesTopBar />. The breadcrumbs
|
|
57604
|
-
* are owned here because the portal shell shows them differently from the
|
|
57605
|
-
* messaging-ui's inline page-title fallback.
|
|
57606
|
-
*/
|
|
57607
|
-
const ROUTE_TITLES = {
|
|
57608
|
-
pins: "Pinned Messages",
|
|
57609
|
-
new: "New Message",
|
|
57610
|
-
scheduled: "Scheduled Messages"
|
|
57611
|
-
};
|
|
57612
|
-
function fallbackRenderImage(props) {
|
|
57613
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
57614
|
-
src: props.src,
|
|
57615
|
-
alt: props.alt,
|
|
57616
|
-
width: props.width,
|
|
57617
|
-
height: props.height,
|
|
57618
|
-
className: props.className
|
|
57619
|
-
});
|
|
57620
|
-
}
|
|
57621
|
-
function MessagingHeaderBridge() {
|
|
57622
|
-
const { auth, renderImage: contextRenderImage } = useMessagingApp();
|
|
57623
|
-
const navigation = useMessagingNavigation();
|
|
57624
|
-
const { currentRoute } = navigation;
|
|
57625
|
-
const { data: conversation } = useConversation("conversationId" in currentRoute ? currentRoute.conversationId : 0);
|
|
57626
|
-
const renderImage = contextRenderImage ?? fallbackRenderImage;
|
|
57627
|
-
const currentUser = auth.currentUser;
|
|
57628
|
-
const conversationName = conversation?.name;
|
|
57629
|
-
const routeTitle = ROUTE_TITLES[currentRoute.view];
|
|
57630
|
-
require_ScreenHeaderContext.useScreenHeaderBreadcrumbs((0, react.useMemo)(() => {
|
|
57631
|
-
if (routeTitle) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
57632
|
-
className: "text-foreground text-lg font-semibold",
|
|
57633
|
-
children: routeTitle
|
|
57634
|
-
});
|
|
57635
|
-
if (conversationName) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
57636
|
-
className: "text-foreground truncate text-lg font-semibold",
|
|
57637
|
-
children: conversationName
|
|
57638
|
-
});
|
|
57639
|
-
return null;
|
|
57640
|
-
}, [routeTitle, conversationName]));
|
|
57641
|
-
require_ScreenHeaderContext.useScreenHeaderActions((0, react.useMemo)(() => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagesHeaderActions, {
|
|
57642
|
-
conversation,
|
|
57643
|
-
currentUser,
|
|
57644
|
-
navigation,
|
|
57645
|
-
renderImage
|
|
57646
|
-
}) }), [
|
|
57647
|
-
conversation,
|
|
57648
|
-
currentUser,
|
|
57649
|
-
navigation,
|
|
57650
|
-
renderImage
|
|
57651
|
-
]));
|
|
57652
|
-
return null;
|
|
57653
|
-
}
|
|
57654
|
-
//#endregion
|
|
57655
57634
|
//#region src/screens/MessagingScreen.tsx
|
|
57656
57635
|
function renderImage(props) {
|
|
57657
57636
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
@@ -57825,4 +57804,4 @@ Object.defineProperty(exports, "useMessagingConfig", {
|
|
|
57825
57804
|
}
|
|
57826
57805
|
});
|
|
57827
57806
|
|
|
57828
|
-
//# sourceMappingURL=MessagingScreen-
|
|
57807
|
+
//# sourceMappingURL=MessagingScreen-C3yCIWo4.cjs.map
|