@fluid-app/portal-sdk 0.1.273 → 0.1.274

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.
@@ -5,6 +5,7 @@ import "./store-api-context-C1lXT_3d.mjs";
5
5
  import "./api-context-3GmfqvIB.mjs";
6
6
  import "./mysite-api-context-5-qpKHWA.mjs";
7
7
  import "./countries-api-context-CMh13cfX.mjs";
8
+ import "./PortalTenantClientProvider-4ZmY6hac.mjs";
8
9
  import "./registry-context-BSJeDI2A.mjs";
9
10
  import "./WidgetInteractionContext-I716c8kj.mjs";
10
11
  import "./EmbedWidget-Czn_RJbm.mjs";
@@ -23,7 +24,7 @@ import "./MediaRenderer-13Jlf38P.mjs";
23
24
  import "./CarouselWidget-Dhjf60LS.mjs";
24
25
  import "./CatchUpWidget-CM-iCMhK.mjs";
25
26
  import "./src-CuunV7ET.mjs";
26
- import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-Dks3Jd3O.mjs";
27
+ import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-VBxlbe-V.mjs";
27
28
  import "./ChartWidget-C-6v9jT3.mjs";
28
29
  import "./ContainerWidget-2Rep2gGz.mjs";
29
30
  import "./ImageWidget--WJppfij.mjs";
@@ -57322,66 +57322,6 @@ 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
- /**
57327
- * Bridges messaging header content from inside <MessagingApp> into the
57328
- * portal shell's <ScreenHeader>. Render this as a child of <MessagingApp>
57329
- * with `hideTopBar` set, and the messaging UI's own <MessagesTopBar /> is
57330
- * suppressed in favour of populating the existing portal header.
57331
- *
57332
- * Right-hand actions are delegated to <MessagesHeaderActions /> from
57333
- * messaging-ui so this stays in sync with <MessagesTopBar />. The breadcrumbs
57334
- * are owned here because the portal shell shows them differently from the
57335
- * messaging-ui's inline page-title fallback.
57336
- */
57337
- const ROUTE_TITLES = {
57338
- pins: "Pinned Messages",
57339
- new: "New Message",
57340
- scheduled: "Scheduled Messages"
57341
- };
57342
- function fallbackRenderImage(props) {
57343
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
57344
- src: props.src,
57345
- alt: props.alt,
57346
- width: props.width,
57347
- height: props.height,
57348
- className: props.className
57349
- });
57350
- }
57351
- function MessagingHeaderBridge() {
57352
- const { auth, renderImage: contextRenderImage } = useMessagingApp();
57353
- const navigation = useMessagingNavigation();
57354
- const { currentRoute } = navigation;
57355
- const { data: conversation } = useConversation("conversationId" in currentRoute ? currentRoute.conversationId : 0);
57356
- const renderImage = contextRenderImage ?? fallbackRenderImage;
57357
- const currentUser = auth.currentUser;
57358
- const conversationName = conversation?.name;
57359
- const routeTitle = ROUTE_TITLES[currentRoute.view];
57360
- require_ScreenHeaderContext.useScreenHeaderBreadcrumbs((0, react.useMemo)(() => {
57361
- if (routeTitle) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
57362
- className: "text-foreground text-lg font-semibold",
57363
- children: routeTitle
57364
- });
57365
- if (conversationName) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
57366
- className: "text-foreground truncate text-lg font-semibold",
57367
- children: conversationName
57368
- });
57369
- return null;
57370
- }, [routeTitle, conversationName]));
57371
- require_ScreenHeaderContext.useScreenHeaderActions((0, react.useMemo)(() => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagesHeaderActions, {
57372
- conversation,
57373
- currentUser,
57374
- navigation,
57375
- renderImage
57376
- }), [
57377
- conversation,
57378
- currentUser,
57379
- navigation,
57380
- renderImage
57381
- ]));
57382
- return null;
57383
- }
57384
- //#endregion
57385
57325
  //#region src/providers/MessagingTranslationBridge.tsx
57386
57326
  const messagingTranslationApi = require_static_dict_adapter.createStaticDictAdapter("en", {
57387
57327
  loading_messaging: "Loading messaging...",
@@ -57621,6 +57561,66 @@ function MessagingTranslationBridge({ children }) {
57621
57561
  });
57622
57562
  }
57623
57563
  //#endregion
57564
+ //#region src/messaging/MessagingHeaderBridge.tsx
57565
+ /**
57566
+ * Bridges messaging header content from inside <MessagingApp> into the
57567
+ * portal shell's <ScreenHeader>. Render this as a child of <MessagingApp>
57568
+ * with `hideTopBar` set, and the messaging UI's own <MessagesTopBar /> is
57569
+ * suppressed in favour of populating the existing portal header.
57570
+ *
57571
+ * Right-hand actions are delegated to <MessagesHeaderActions /> from
57572
+ * messaging-ui so this stays in sync with <MessagesTopBar />. The breadcrumbs
57573
+ * are owned here because the portal shell shows them differently from the
57574
+ * messaging-ui's inline page-title fallback.
57575
+ */
57576
+ const ROUTE_TITLES = {
57577
+ pins: "Pinned Messages",
57578
+ new: "New Message",
57579
+ scheduled: "Scheduled Messages"
57580
+ };
57581
+ function fallbackRenderImage(props) {
57582
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
57583
+ src: props.src,
57584
+ alt: props.alt,
57585
+ width: props.width,
57586
+ height: props.height,
57587
+ className: props.className
57588
+ });
57589
+ }
57590
+ function MessagingHeaderBridge() {
57591
+ const { auth, renderImage: contextRenderImage } = useMessagingApp();
57592
+ const navigation = useMessagingNavigation();
57593
+ const { currentRoute } = navigation;
57594
+ const { data: conversation } = useConversation("conversationId" in currentRoute ? currentRoute.conversationId : 0);
57595
+ const renderImage = contextRenderImage ?? fallbackRenderImage;
57596
+ const currentUser = auth.currentUser;
57597
+ const conversationName = conversation?.name;
57598
+ const routeTitle = ROUTE_TITLES[currentRoute.view];
57599
+ require_ScreenHeaderContext.useScreenHeaderBreadcrumbs((0, react.useMemo)(() => {
57600
+ if (routeTitle) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
57601
+ className: "text-foreground text-lg font-semibold",
57602
+ children: routeTitle
57603
+ });
57604
+ if (conversationName) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
57605
+ className: "text-foreground truncate text-lg font-semibold",
57606
+ children: conversationName
57607
+ });
57608
+ return null;
57609
+ }, [routeTitle, conversationName]));
57610
+ require_ScreenHeaderContext.useScreenHeaderActions((0, react.useMemo)(() => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagesHeaderActions, {
57611
+ conversation,
57612
+ currentUser,
57613
+ navigation,
57614
+ renderImage
57615
+ }) }), [
57616
+ conversation,
57617
+ currentUser,
57618
+ navigation,
57619
+ renderImage
57620
+ ]));
57621
+ return null;
57622
+ }
57623
+ //#endregion
57624
57624
  //#region src/screens/MessagingScreen.tsx
57625
57625
  function renderImage(props) {
57626
57626
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
@@ -57794,4 +57794,4 @@ Object.defineProperty(exports, "useMessagingConfig", {
57794
57794
  }
57795
57795
  });
57796
57796
 
57797
- //# sourceMappingURL=MessagingScreen-DQ7h_qEA.cjs.map
57797
+ //# sourceMappingURL=MessagingScreen-DbPqXpOt.cjs.map