@fluid-app/portal-sdk 0.1.334 → 0.1.336
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/{AddressAutocompleteInput-CGH4Kic9.cjs → AddressAutocompleteInput-BROuVHKH.cjs} +2 -2
- package/dist/{AddressAutocompleteInput-CGH4Kic9.cjs.map → AddressAutocompleteInput-BROuVHKH.cjs.map} +1 -1
- package/dist/{AddressAutocompleteInput-BWtZqpOc.mjs → AddressAutocompleteInput-DNwPytO3.mjs} +2 -2
- package/dist/{AddressAutocompleteInput-BWtZqpOc.mjs.map → AddressAutocompleteInput-DNwPytO3.mjs.map} +1 -1
- package/dist/{EmbedWidget-Cml-sPlc.cjs → EmbedWidget-Apuoqmq4.cjs} +3 -3
- package/dist/EmbedWidget-Apuoqmq4.cjs.map +1 -0
- package/dist/{EmbedWidget-CQiKblyC.mjs → EmbedWidget-CWGftI9F.mjs} +3 -3
- package/dist/EmbedWidget-CWGftI9F.mjs.map +1 -0
- package/dist/{FluidProvider-T7GATgZf.cjs → FluidProvider-BAUaedtL.cjs} +3 -3
- package/dist/{FluidProvider-T7GATgZf.cjs.map → FluidProvider-BAUaedtL.cjs.map} +1 -1
- package/dist/{FluidProvider-B-6PKi1Z.mjs → FluidProvider-ZwaR2O-D.mjs} +3 -3
- package/dist/{FluidProvider-B-6PKi1Z.mjs.map → FluidProvider-ZwaR2O-D.mjs.map} +1 -1
- package/dist/{MessagingScreen-DbHT2YWZ.cjs → MessagingScreen-B6xwTuAi.cjs} +3 -3
- package/dist/{MessagingScreen-CszrlhFR.mjs → MessagingScreen-BhKuSrqK.mjs} +2 -2
- package/dist/{MessagingScreen-CszrlhFR.mjs.map → MessagingScreen-BhKuSrqK.mjs.map} +1 -1
- package/dist/{MessagingScreen-nng7xcyK.cjs → MessagingScreen-C7YZlR0A.cjs} +2 -2
- package/dist/{MessagingScreen-nng7xcyK.cjs.map → MessagingScreen-C7YZlR0A.cjs.map} +1 -1
- package/dist/{MessagingScreen-BkOZHZtL.mjs → MessagingScreen-C9fNBbmV.mjs} +3 -3
- package/dist/{OrdersScreen-ir-Lym5l.mjs → OrdersScreen-BGm510zd.mjs} +2 -2
- package/dist/{OrdersScreen-ir-Lym5l.mjs.map → OrdersScreen-BGm510zd.mjs.map} +1 -1
- package/dist/{OrdersScreen-CLgTnT2i.cjs → OrdersScreen-BHmvSSji.cjs} +2 -2
- package/dist/{OrdersScreen-CLgTnT2i.cjs.map → OrdersScreen-BHmvSSji.cjs.map} +1 -1
- package/dist/{OrdersScreen-H5Z_dSHK.cjs → OrdersScreen-DwnskAqZ.cjs} +3 -3
- package/dist/{OrdersScreen-DXdMTKiy.mjs → OrdersScreen-Hl7MAQLn.mjs} +3 -3
- package/dist/{ProfileScreen-BJ3d1UA1.mjs → ProfileScreen-B69eSFMU.mjs} +4 -4
- package/dist/{ProfileScreen-Bnm5KSPm.mjs → ProfileScreen-DnGQ-Q7X.mjs} +3 -3
- package/dist/{ProfileScreen-Bnm5KSPm.mjs.map → ProfileScreen-DnGQ-Q7X.mjs.map} +1 -1
- package/dist/{ProfileScreen-F5MPDdtL.cjs → ProfileScreen-agkwY8nL.cjs} +4 -4
- package/dist/{ProfileScreen-k4gakTSe.cjs → ProfileScreen-dXCqFn1a.cjs} +3 -3
- package/dist/{ProfileScreen-k4gakTSe.cjs.map → ProfileScreen-dXCqFn1a.cjs.map} +1 -1
- package/dist/{ShopScreen-CGYk5jvO.mjs → ShopScreen-BaD6mPFj.mjs} +2 -2
- package/dist/{ShopScreen-CGYk5jvO.mjs.map → ShopScreen-BaD6mPFj.mjs.map} +1 -1
- package/dist/{ShopScreen-ztfxFYt5.cjs → ShopScreen-CHe3APFL.cjs} +3 -3
- package/dist/{ShopScreen-BVs1_O9d.cjs → ShopScreen-CWECMmWZ.cjs} +2 -2
- package/dist/{ShopScreen-BVs1_O9d.cjs.map → ShopScreen-CWECMmWZ.cjs.map} +1 -1
- package/dist/{ShopScreen-B0DwIaM6.mjs → ShopScreen-CY7sNmHW.mjs} +3 -3
- package/dist/{SubscriptionsScreen-DG2qu9A9.cjs → SubscriptionsScreen-B2bahevH.cjs} +10 -17
- package/dist/{SubscriptionsScreen-DG2qu9A9.cjs.map → SubscriptionsScreen-B2bahevH.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-dZwLcWJi.cjs → SubscriptionsScreen-BZbt45PM.cjs} +4 -4
- package/dist/{SubscriptionsScreen-DzJhgb_H.mjs → SubscriptionsScreen-BcUUuo7v.mjs} +10 -17
- package/dist/{SubscriptionsScreen-DzJhgb_H.mjs.map → SubscriptionsScreen-BcUUuo7v.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-Fz7WzPge.mjs → SubscriptionsScreen-DUkEVtLV.mjs} +4 -4
- package/dist/index.cjs +65 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +65 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
- package/dist/EmbedWidget-CQiKblyC.mjs.map +0 -1
- package/dist/EmbedWidget-Cml-sPlc.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as products_search, Q as products_media_list, X as product_by_visits, Y as product_by_shares, Z as products_list, et as products_show, n as usePortalTenantClient } from "./PortalTenantClientProvider-BmRtQAbi.mjs";
|
|
2
|
-
import { A as mergeDarkOverrides, C as DEFAULT_SPACING, D as generateThemeCSS, E as getDefaultThemeDefinition, F as RADIUS_KEYS, H as useAppDefinitionApi, I as SEMANTIC_COLOR_NAMES, M as resolveTheme, N as FONT_FAMILY_KEYS, O as deriveDarkVariant, P as FONT_SIZE_KEYS, S as DEFAULT_RADII, T as DEFAULT_THEME_NAME, U as createPersister, W as deleteDatabase, _ as deserialiseTheme, a as widgetPropertySchemas, b as DEFAULT_FONT_FAMILIES, c as createWidgetRegistry, d as applyTheme, f as removeAllThemes, g as transformThemes, h as getActiveThemeId, i as DEFAULT_SDK_WIDGET_REGISTRY, j as parseColor, k as getForegroundColor, l as FluidThemeProvider, m as buildThemeDefinition, n as useFluidContext, o as createScreen, p as removeTheme, r as SUPPORTED_LANGUAGES, s as createWidgetFromShareable, t as FluidProvider, u as useThemeContext, v as serialiseTheme, w as DEFAULT_THEME_ID, x as DEFAULT_FONT_SIZES, y as DEFAULT_COLORS } from "./FluidProvider-
|
|
2
|
+
import { A as mergeDarkOverrides, C as DEFAULT_SPACING, D as generateThemeCSS, E as getDefaultThemeDefinition, F as RADIUS_KEYS, H as useAppDefinitionApi, I as SEMANTIC_COLOR_NAMES, M as resolveTheme, N as FONT_FAMILY_KEYS, O as deriveDarkVariant, P as FONT_SIZE_KEYS, S as DEFAULT_RADII, T as DEFAULT_THEME_NAME, U as createPersister, W as deleteDatabase, _ as deserialiseTheme, a as widgetPropertySchemas, b as DEFAULT_FONT_FAMILIES, c as createWidgetRegistry, d as applyTheme, f as removeAllThemes, g as transformThemes, h as getActiveThemeId, i as DEFAULT_SDK_WIDGET_REGISTRY, j as parseColor, k as getForegroundColor, l as FluidThemeProvider, m as buildThemeDefinition, n as useFluidContext, o as createScreen, p as removeTheme, r as SUPPORTED_LANGUAGES, s as createWidgetFromShareable, t as FluidProvider, u as useThemeContext, v as serialiseTheme, w as DEFAULT_THEME_ID, x as DEFAULT_FONT_SIZES, y as DEFAULT_COLORS } from "./FluidProvider-ZwaR2O-D.mjs";
|
|
3
3
|
import { a as assertNever, i as assertDefined, n as DataAwareWidget, o as isWidgetType, r as WIDGET_TYPE_NAMES, s as isWidgetTypeName, u as useRegistry } from "./ScreenRenderer-1ZCNOyIb.mjs";
|
|
4
4
|
import "./store-api-context-DViwxyG4.mjs";
|
|
5
5
|
import "./mysite-api-context-kUTM3GNG.mjs";
|
|
@@ -7,7 +7,7 @@ import "./countries-api-context-DScC_39w.mjs";
|
|
|
7
7
|
import "./task-composer-form-CHyQZUCo.mjs";
|
|
8
8
|
import "./registry-context-BKvTiuXB.mjs";
|
|
9
9
|
import { t as WidgetInteractionProvider } from "./WidgetInteractionContext-BWH7njU7.mjs";
|
|
10
|
-
import { a as useRepUser, i as RepUserProvider, r as embedWidgetPropertySchema, t as EmbedWidget } from "./EmbedWidget-
|
|
10
|
+
import { a as useRepUser, i as RepUserProvider, r as embedWidgetPropertySchema, t as EmbedWidget } from "./EmbedWidget-CWGftI9F.mjs";
|
|
11
11
|
import { a as useActiveLocale, n as createDomainTranslations, r as useDomainDict, t as createStaticDictAdapter } from "./static-dict-adapter-Z_42w_55.mjs";
|
|
12
12
|
import "./error-state-Djgt-RGW.mjs";
|
|
13
13
|
import "./translation-api-context-factory-Cq-pFTiQ.mjs";
|
|
@@ -25,8 +25,8 @@ import "./MediaRenderer-CLmBOrvK.mjs";
|
|
|
25
25
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-Ce0X7aS8.mjs";
|
|
26
26
|
import { r as catchUpWidgetPropertySchema, t as CatchUpWidget } from "./CatchUpWidget-Cr21SMIo.mjs";
|
|
27
27
|
import { Dt as CardHeader, Et as CardFooter, Ot as CardTitle, St as Card, Tt as CardDescription, at as Popover, ct as PopoverTrigger, gt as CollapsibleTrigger, h as Skeleton$1, ht as CollapsibleContent, kn as cn$1, mt as Collapsible, p as Toaster, st as PopoverContent, wn as Button } from "./src-DC5QoBhR.mjs";
|
|
28
|
-
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-
|
|
29
|
-
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
28
|
+
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-BhKuSrqK.mjs";
|
|
29
|
+
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-BcUUuo7v.mjs";
|
|
30
30
|
import { r as chartWidgetPropertySchema, t as ChartWidget } from "./ChartWidget-80AuzFPc.mjs";
|
|
31
31
|
import { r as containerWidgetPropertySchema, t as ContainerWidget } from "./ContainerWidget-IgR1Ao3c.mjs";
|
|
32
32
|
import { r as imageWidgetPropertySchema, t as ImageWidget } from "./ImageWidget-urRs17bw.mjs";
|
|
@@ -50,19 +50,19 @@ import { a as ShellTranslationContext, i as CoreScreenPlaceholder, o as ShellTra
|
|
|
50
50
|
import { t as useStore } from "./use-store-fLSf5hUc.mjs";
|
|
51
51
|
import { t as useAccount } from "./use-account-DtQOpv3N.mjs";
|
|
52
52
|
import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-DNomMUij.mjs";
|
|
53
|
-
import "./AddressAutocompleteInput-
|
|
53
|
+
import "./AddressAutocompleteInput-DNwPytO3.mjs";
|
|
54
54
|
import "./Combobox-B-rNFLTr.mjs";
|
|
55
55
|
import "./use-mysite-portal-DyB9666K.mjs";
|
|
56
|
-
import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-
|
|
56
|
+
import { n as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-DnGQ-Q7X.mjs";
|
|
57
57
|
import "./dist-PbA1vxAz.mjs";
|
|
58
58
|
import "./es-DU0BGuLZ.mjs";
|
|
59
59
|
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-DDgwD2MI.mjs";
|
|
60
60
|
import "./dist-o2cjwzIa.mjs";
|
|
61
|
-
import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-
|
|
61
|
+
import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-BGm510zd.mjs";
|
|
62
62
|
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-C3xnULq3.mjs";
|
|
63
63
|
import "./sortable.esm-BdhSkRKn.mjs";
|
|
64
64
|
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-BDHGcO4c.mjs";
|
|
65
|
-
import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-
|
|
65
|
+
import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-BaD6mPFj.mjs";
|
|
66
66
|
import "./UpgradeScreen-DGJsj2Yx.mjs";
|
|
67
67
|
import "./AppDownloadScreen-CauIkIKI.mjs";
|
|
68
68
|
import * as React$1 from "react";
|
|
@@ -851,6 +851,52 @@ const SidebarMenuSubButton = React$1.forwardRef(({ asChild = false, size = "md",
|
|
|
851
851
|
});
|
|
852
852
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
853
853
|
//#endregion
|
|
854
|
+
//#region ../react/src/shell/use-suppress-initial-iframe-focus-scroll.ts
|
|
855
|
+
/**
|
|
856
|
+
* Iframes embed opaque third-party content that can call `.focus()` on its
|
|
857
|
+
* internal elements during load — video players, calendar pickers, form
|
|
858
|
+
* inputs, search boxes. The browser then scrolls the nearest scrolling
|
|
859
|
+
* ancestor to bring the focused iframe into view, yanking the viewport to a
|
|
860
|
+
* widget the user didn't ask for.
|
|
861
|
+
*
|
|
862
|
+
* Suppress that scroll on the given scroll container until the user has
|
|
863
|
+
* explicitly interacted with the page; afterwards, focus-scrolls are
|
|
864
|
+
* treated as user-initiated and left alone. The container's `scrollTop` at
|
|
865
|
+
* effect setup is captured and restored, so any pre-effect scroll position
|
|
866
|
+
* (e.g. from future hash-anchor restoration) is preserved.
|
|
867
|
+
*/
|
|
868
|
+
function useSuppressInitialIframeFocusScroll(ref) {
|
|
869
|
+
useEffect(() => {
|
|
870
|
+
const el = ref.current;
|
|
871
|
+
if (!el) return;
|
|
872
|
+
const initialScrollTop = el.scrollTop;
|
|
873
|
+
let userInteracted = false;
|
|
874
|
+
const handleFocusIn = (event) => {
|
|
875
|
+
if (userInteracted) return;
|
|
876
|
+
if (!(event.target instanceof HTMLIFrameElement)) return;
|
|
877
|
+
requestAnimationFrame(() => {
|
|
878
|
+
if (!userInteracted) el.scrollTop = initialScrollTop;
|
|
879
|
+
});
|
|
880
|
+
};
|
|
881
|
+
const markInteracted = () => {
|
|
882
|
+
userInteracted = true;
|
|
883
|
+
};
|
|
884
|
+
el.addEventListener("focusin", handleFocusIn);
|
|
885
|
+
window.addEventListener("pointerdown", markInteracted, { once: true });
|
|
886
|
+
window.addEventListener("keydown", markInteracted, { once: true });
|
|
887
|
+
window.addEventListener("wheel", markInteracted, {
|
|
888
|
+
once: true,
|
|
889
|
+
passive: true
|
|
890
|
+
});
|
|
891
|
+
return () => {
|
|
892
|
+
el.removeEventListener("focusin", handleFocusIn);
|
|
893
|
+
window.removeEventListener("pointerdown", markInteracted);
|
|
894
|
+
window.removeEventListener("keydown", markInteracted);
|
|
895
|
+
window.removeEventListener("wheel", markInteracted);
|
|
896
|
+
};
|
|
897
|
+
}, [ref]);
|
|
898
|
+
}
|
|
899
|
+
//#endregion
|
|
854
900
|
//#region ../react/src/shell/AppShellLayout.tsx
|
|
855
901
|
/**
|
|
856
902
|
* Pure visual frame that replicates the RepApp layout:
|
|
@@ -873,6 +919,7 @@ function AppShellLayout({ sidebarContent, headerContent, children, sidebarHeader
|
|
|
873
919
|
obs.observe(el);
|
|
874
920
|
return () => obs.disconnect();
|
|
875
921
|
}, []);
|
|
922
|
+
useSuppressInitialIframeFocusScroll(screenContentRef);
|
|
876
923
|
return /* @__PURE__ */ jsx(SidebarProvider, {
|
|
877
924
|
useBottomNav,
|
|
878
925
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -2129,12 +2176,12 @@ function BuilderScreenViewImpl({ screen, className }) {
|
|
|
2129
2176
|
const BuilderScreenView = memo(BuilderScreenViewImpl);
|
|
2130
2177
|
//#endregion
|
|
2131
2178
|
//#region src/shell/system-screen-map.ts
|
|
2132
|
-
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-
|
|
2133
|
-
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-
|
|
2134
|
-
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-
|
|
2135
|
-
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-
|
|
2179
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-B69eSFMU.mjs").then((m) => ({ default: m.ProfileScreen })));
|
|
2180
|
+
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-Hl7MAQLn.mjs").then((m) => ({ default: m.OrdersScreen })));
|
|
2181
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-DUkEVtLV.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2182
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-C9fNBbmV.mjs").then((m) => ({ default: m.MessagingScreen })));
|
|
2136
2183
|
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-DDgwD2MI.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
2137
|
-
const ShopScreen$1 = lazy(() => import("./ShopScreen-
|
|
2184
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-CY7sNmHW.mjs").then((m) => ({ default: m.ShopScreen })));
|
|
2138
2185
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-6QY5c1N8.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
2139
2186
|
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DK5h1Wv1.mjs").then((m) => ({ default: m.ShareablesScreen })));
|
|
2140
2187
|
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-C3xnULq3.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
@@ -4041,15 +4088,15 @@ z.object({
|
|
|
4041
4088
|
//#endregion
|
|
4042
4089
|
//#region src/screens/index.ts
|
|
4043
4090
|
const screenPropertySchemas = {
|
|
4044
|
-
ProfileScreen: () => import("./ProfileScreen-
|
|
4045
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
4091
|
+
ProfileScreen: () => import("./ProfileScreen-B69eSFMU.mjs").then((m) => m.profileScreenPropertySchema),
|
|
4092
|
+
MessagingScreen: () => import("./MessagingScreen-C9fNBbmV.mjs").then((m) => m.messagingScreenPropertySchema),
|
|
4046
4093
|
ContactsScreen: () => import("./ContactsScreen-DDgwD2MI.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
4047
|
-
OrdersScreen: () => import("./OrdersScreen-
|
|
4048
|
-
SubscriptionsScreen: () => import("./SubscriptionsScreen-
|
|
4094
|
+
OrdersScreen: () => import("./OrdersScreen-Hl7MAQLn.mjs").then((m) => m.ordersScreenPropertySchema),
|
|
4095
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-DUkEVtLV.mjs").then((m) => m.subscriptionsScreenPropertySchema),
|
|
4049
4096
|
CustomersScreen: () => import("./CustomersScreen-6QY5c1N8.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
4050
4097
|
MySiteScreen: () => import("./MySiteScreen-C3xnULq3.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
4051
4098
|
ShareablesScreen: () => import("./ShareablesScreen-DK5h1Wv1.mjs").then((m) => m.shareablesScreenPropertySchema),
|
|
4052
|
-
ShopScreen: () => import("./ShopScreen-
|
|
4099
|
+
ShopScreen: () => import("./ShopScreen-CY7sNmHW.mjs").then((m) => m.shopScreenPropertySchema),
|
|
4053
4100
|
UpgradeScreen: () => import("./UpgradeScreen-DGJsj2Yx.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
|
|
4054
4101
|
AppDownloadScreen: () => import("./AppDownloadScreen-CauIkIKI.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|
|
4055
4102
|
};
|