@fluid-app/portal-sdk 0.1.309 → 0.1.310

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/index.mjs CHANGED
@@ -58,7 +58,7 @@ import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileS
58
58
  import "./dist-BstXVe25.mjs";
59
59
  import "./es-BLyC7aOo.mjs";
60
60
  import "./dist-C1en2Zru.mjs";
61
- import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-Dy8m72xc.mjs";
61
+ import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-OEk3M3Qm.mjs";
62
62
  import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-Bud7wJX5.mjs";
63
63
  import "./sortable.esm-H8Ig8j9z.mjs";
64
64
  import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-SK8f8ITV.mjs";
@@ -66,7 +66,7 @@ import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-KF3
66
66
  import "./UpgradeScreen-Ci4crCtC.mjs";
67
67
  import "./AppDownloadScreen-BdYFz3ai.mjs";
68
68
  import * as React$1 from "react";
69
- import { Component, StrictMode, Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
69
+ import { Component, StrictMode, Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
70
70
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
71
71
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
72
72
  import { Bell, Box, Boxes, Briefcase, Building2, Calendar, Check, ChevronRight, CircleUser, Compass, ContactRound, Ellipsis, File, FileText, FileVideo, Folder, FolderOpen, Globe, GraduationCap, Heart, House, Image, LayoutGrid, ListMusic, LogOut, Mail, Menu, MessageCircle, MessageSquare, Moon, PackageOpen, PanelLeft, Repeat, Search, Settings, ShoppingCart, Smartphone, Star, Store, Sun, TriangleAlert, User, UserCog, Users, X } from "lucide-react";
@@ -861,6 +861,18 @@ SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
861
861
  * This component handles zero business logic — it simply provides the visual shell.
862
862
  */
863
863
  function AppShellLayout({ sidebarContent, headerContent, children, sidebarHeader, sidebarFooter, afterContent, useBottomNav = false }) {
864
+ const screenContentRef = useRef(null);
865
+ useLayoutEffect(() => {
866
+ const el = screenContentRef.current;
867
+ if (!el) return;
868
+ const update = () => {
869
+ el.style.setProperty("--portal-fullscreen-embed-height", `${el.clientHeight}px`);
870
+ };
871
+ update();
872
+ const obs = new ResizeObserver(update);
873
+ obs.observe(el);
874
+ return () => obs.disconnect();
875
+ }, []);
864
876
  return /* @__PURE__ */ jsx(SidebarProvider, {
865
877
  useBottomNav,
866
878
  children: /* @__PURE__ */ jsxs("div", {
@@ -882,6 +894,7 @@ function AppShellLayout({ sidebarContent, headerContent, children, sidebarHeader
882
894
  children: [headerContent, /* @__PURE__ */ jsx("div", {
883
895
  className: `bg-muted min-h-0 flex-1 md:pt-4 md:pr-4 md:pb-4 md:pl-2 ${useBottomNav ? "max-md:pb-[calc(4rem+env(safe-area-inset-bottom))]" : ""}`,
884
896
  children: /* @__PURE__ */ jsx("div", {
897
+ ref: screenContentRef,
885
898
  className: "ring-foreground/5 scrollbar-none bg-background text-foreground h-full overflow-auto rounded-xl shadow-sm ring-1",
886
899
  children
887
900
  })
@@ -2117,7 +2130,7 @@ const BuilderScreenView = memo(BuilderScreenViewImpl);
2117
2130
  //#endregion
2118
2131
  //#region src/shell/system-screen-map.ts
2119
2132
  const ProfileScreen$1 = lazy(() => import("./ProfileScreen-eeXNttNa.mjs").then((m) => ({ default: m.ProfileScreen })));
2120
- const OrdersScreen$1 = lazy(() => import("./OrdersScreen-DfAOoVMT.mjs").then((m) => ({ default: m.OrdersScreen })));
2133
+ const OrdersScreen$1 = lazy(() => import("./OrdersScreen-D1Whz24J.mjs").then((m) => ({ default: m.OrdersScreen })));
2121
2134
  const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-BzjcByx3.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
2122
2135
  const MessagingScreen$1 = lazy(() => import("./MessagingScreen-DuYCzPYW.mjs").then((m) => ({ default: m.MessagingScreen })));
2123
2136
  const ContactsScreen$1 = lazy(() => import("./ContactsScreen-CAwUXMDr.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
@@ -4025,7 +4038,7 @@ const screenPropertySchemas = {
4025
4038
  ProfileScreen: () => import("./ProfileScreen-eeXNttNa.mjs").then((m) => m.profileScreenPropertySchema),
4026
4039
  MessagingScreen: () => import("./MessagingScreen-DuYCzPYW.mjs").then((m) => m.messagingScreenPropertySchema),
4027
4040
  ContactsScreen: () => import("./ContactsScreen-CAwUXMDr.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
4028
- OrdersScreen: () => import("./OrdersScreen-DfAOoVMT.mjs").then((m) => m.ordersScreenPropertySchema),
4041
+ OrdersScreen: () => import("./OrdersScreen-D1Whz24J.mjs").then((m) => m.ordersScreenPropertySchema),
4029
4042
  SubscriptionsScreen: () => import("./SubscriptionsScreen-BzjcByx3.mjs").then((m) => m.subscriptionsScreenPropertySchema),
4030
4043
  CustomersScreen: () => import("./CustomersScreen-0X_7v_YC.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
4031
4044
  MySiteScreen: () => import("./MySiteScreen-Bud7wJX5.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),