@fluid-app/portal-sdk 0.1.335 → 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-CemaSoUv.cjs → SubscriptionsScreen-B2bahevH.cjs} +3 -3
- package/dist/{SubscriptionsScreen-CemaSoUv.cjs.map → SubscriptionsScreen-B2bahevH.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DBtKxiPF.cjs → SubscriptionsScreen-BZbt45PM.cjs} +4 -4
- package/dist/{SubscriptionsScreen-Blky8Wv8.mjs → SubscriptionsScreen-BcUUuo7v.mjs} +3 -3
- package/dist/{SubscriptionsScreen-Blky8Wv8.mjs.map → SubscriptionsScreen-BcUUuo7v.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DEmYXiXj.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./PortalTenantClientProvider-BmRtQAbi.mjs";
|
|
2
|
-
import "./FluidProvider-
|
|
2
|
+
import "./FluidProvider-ZwaR2O-D.mjs";
|
|
3
3
|
import "./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 "./WidgetInteractionContext-BWH7njU7.mjs";
|
|
10
|
-
import "./EmbedWidget-
|
|
10
|
+
import "./EmbedWidget-CWGftI9F.mjs";
|
|
11
11
|
import "./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,7 +25,7 @@ import "./MediaRenderer-CLmBOrvK.mjs";
|
|
|
25
25
|
import "./CarouselWidget-Ce0X7aS8.mjs";
|
|
26
26
|
import "./CatchUpWidget-Cr21SMIo.mjs";
|
|
27
27
|
import "./src-DC5QoBhR.mjs";
|
|
28
|
-
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
28
|
+
import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-BcUUuo7v.mjs";
|
|
29
29
|
import "./ChartWidget-80AuzFPc.mjs";
|
|
30
30
|
import "./ContainerWidget-IgR1Ao3c.mjs";
|
|
31
31
|
import "./ImageWidget-urRs17bw.mjs";
|
|
@@ -45,6 +45,6 @@ import "./VideoWidget-UJH0EhF-.mjs";
|
|
|
45
45
|
import "./SearchSort-BeYMXXIi.mjs";
|
|
46
46
|
import "./ShopWidget-BBNFWedL.mjs";
|
|
47
47
|
import "./ScreenHeaderContext-Dn12BZyj.mjs";
|
|
48
|
-
import "./AddressAutocompleteInput-
|
|
48
|
+
import "./AddressAutocompleteInput-DNwPytO3.mjs";
|
|
49
49
|
import "./Combobox-B-rNFLTr.mjs";
|
|
50
50
|
export { SubscriptionsScreen, subscriptionsScreenPropertySchema };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
3
|
-
const require_FluidProvider = require("./FluidProvider-
|
|
3
|
+
const require_FluidProvider = require("./FluidProvider-BAUaedtL.cjs");
|
|
4
4
|
const require_ScreenRenderer = require("./ScreenRenderer-BYiZunHL.cjs");
|
|
5
5
|
const require_PortalTenantClientProvider = require("./PortalTenantClientProvider-Bpm-CZq1.cjs");
|
|
6
6
|
require("./store-api-context-D1gZn22Z.cjs");
|
|
@@ -9,7 +9,7 @@ require("./countries-api-context-G-NW4BoH.cjs");
|
|
|
9
9
|
require("./task-composer-form-D9KhWUI1.cjs");
|
|
10
10
|
require("./registry-context-DJ5xiVnt.cjs");
|
|
11
11
|
const require_WidgetInteractionContext = require("./WidgetInteractionContext-BhkusA95.cjs");
|
|
12
|
-
const require_EmbedWidget = require("./EmbedWidget-
|
|
12
|
+
const require_EmbedWidget = require("./EmbedWidget-Apuoqmq4.cjs");
|
|
13
13
|
const require_static_dict_adapter = require("./static-dict-adapter-BH5PbEBP.cjs");
|
|
14
14
|
require("./error-state-BI3jxWlb.cjs");
|
|
15
15
|
require("./translation-api-context-factory-6jtyJm6d.cjs");
|
|
@@ -50,21 +50,21 @@ const require_CustomersScreen = require("./CustomersScreen-DtDU7jkB.cjs");
|
|
|
50
50
|
const require_use_store = require("./use-store-D2S1FywW.cjs");
|
|
51
51
|
const require_use_account = require("./use-account-BMLTwG3m.cjs");
|
|
52
52
|
const require_AppNavigationContext = require("./AppNavigationContext-CDowN9gd.cjs");
|
|
53
|
-
const require_MessagingScreen = require("./MessagingScreen-
|
|
54
|
-
require("./AddressAutocompleteInput-
|
|
53
|
+
const require_MessagingScreen = require("./MessagingScreen-C7YZlR0A.cjs");
|
|
54
|
+
require("./AddressAutocompleteInput-BROuVHKH.cjs");
|
|
55
55
|
require("./Combobox-D9lqcqeg.cjs");
|
|
56
56
|
require("./use-mysite-portal-BmrDScmS.cjs");
|
|
57
|
-
const require_ProfileScreen = require("./ProfileScreen-
|
|
58
|
-
const require_SubscriptionsScreen = require("./SubscriptionsScreen-
|
|
57
|
+
const require_ProfileScreen = require("./ProfileScreen-dXCqFn1a.cjs");
|
|
58
|
+
const require_SubscriptionsScreen = require("./SubscriptionsScreen-B2bahevH.cjs");
|
|
59
59
|
require("./dist-BPZPs7SF.cjs");
|
|
60
60
|
require("./es-CtTr3tb5.cjs");
|
|
61
61
|
const require_ContactsScreen = require("./ContactsScreen-Dm8b4SyY.cjs");
|
|
62
62
|
require("./dist-C-U7FKrp.cjs");
|
|
63
|
-
const require_OrdersScreen = require("./OrdersScreen-
|
|
63
|
+
const require_OrdersScreen = require("./OrdersScreen-BHmvSSji.cjs");
|
|
64
64
|
const require_MySiteScreen = require("./MySiteScreen-D95Kir2t.cjs");
|
|
65
65
|
require("./dist-DSufwDW6.cjs");
|
|
66
66
|
const require_ShareablesScreen = require("./ShareablesScreen-CSCdh897.cjs");
|
|
67
|
-
const require_ShopScreen = require("./ShopScreen-
|
|
67
|
+
const require_ShopScreen = require("./ShopScreen-CWECMmWZ.cjs");
|
|
68
68
|
require("./UpgradeScreen-B8G83QW_.cjs");
|
|
69
69
|
require("./AppDownloadScreen-Cn1gi2aM.cjs");
|
|
70
70
|
let react = require("react");
|
|
@@ -853,6 +853,52 @@ const SidebarMenuSubButton = react.forwardRef(({ asChild = false, size = "md", i
|
|
|
853
853
|
});
|
|
854
854
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
855
855
|
//#endregion
|
|
856
|
+
//#region ../react/src/shell/use-suppress-initial-iframe-focus-scroll.ts
|
|
857
|
+
/**
|
|
858
|
+
* Iframes embed opaque third-party content that can call `.focus()` on its
|
|
859
|
+
* internal elements during load — video players, calendar pickers, form
|
|
860
|
+
* inputs, search boxes. The browser then scrolls the nearest scrolling
|
|
861
|
+
* ancestor to bring the focused iframe into view, yanking the viewport to a
|
|
862
|
+
* widget the user didn't ask for.
|
|
863
|
+
*
|
|
864
|
+
* Suppress that scroll on the given scroll container until the user has
|
|
865
|
+
* explicitly interacted with the page; afterwards, focus-scrolls are
|
|
866
|
+
* treated as user-initiated and left alone. The container's `scrollTop` at
|
|
867
|
+
* effect setup is captured and restored, so any pre-effect scroll position
|
|
868
|
+
* (e.g. from future hash-anchor restoration) is preserved.
|
|
869
|
+
*/
|
|
870
|
+
function useSuppressInitialIframeFocusScroll(ref) {
|
|
871
|
+
(0, react.useEffect)(() => {
|
|
872
|
+
const el = ref.current;
|
|
873
|
+
if (!el) return;
|
|
874
|
+
const initialScrollTop = el.scrollTop;
|
|
875
|
+
let userInteracted = false;
|
|
876
|
+
const handleFocusIn = (event) => {
|
|
877
|
+
if (userInteracted) return;
|
|
878
|
+
if (!(event.target instanceof HTMLIFrameElement)) return;
|
|
879
|
+
requestAnimationFrame(() => {
|
|
880
|
+
if (!userInteracted) el.scrollTop = initialScrollTop;
|
|
881
|
+
});
|
|
882
|
+
};
|
|
883
|
+
const markInteracted = () => {
|
|
884
|
+
userInteracted = true;
|
|
885
|
+
};
|
|
886
|
+
el.addEventListener("focusin", handleFocusIn);
|
|
887
|
+
window.addEventListener("pointerdown", markInteracted, { once: true });
|
|
888
|
+
window.addEventListener("keydown", markInteracted, { once: true });
|
|
889
|
+
window.addEventListener("wheel", markInteracted, {
|
|
890
|
+
once: true,
|
|
891
|
+
passive: true
|
|
892
|
+
});
|
|
893
|
+
return () => {
|
|
894
|
+
el.removeEventListener("focusin", handleFocusIn);
|
|
895
|
+
window.removeEventListener("pointerdown", markInteracted);
|
|
896
|
+
window.removeEventListener("keydown", markInteracted);
|
|
897
|
+
window.removeEventListener("wheel", markInteracted);
|
|
898
|
+
};
|
|
899
|
+
}, [ref]);
|
|
900
|
+
}
|
|
901
|
+
//#endregion
|
|
856
902
|
//#region ../react/src/shell/AppShellLayout.tsx
|
|
857
903
|
/**
|
|
858
904
|
* Pure visual frame that replicates the RepApp layout:
|
|
@@ -875,6 +921,7 @@ function AppShellLayout({ sidebarContent, headerContent, children, sidebarHeader
|
|
|
875
921
|
obs.observe(el);
|
|
876
922
|
return () => obs.disconnect();
|
|
877
923
|
}, []);
|
|
924
|
+
useSuppressInitialIframeFocusScroll(screenContentRef);
|
|
878
925
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SidebarProvider, {
|
|
879
926
|
useBottomNav,
|
|
880
927
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -2131,12 +2178,12 @@ function BuilderScreenViewImpl({ screen, className }) {
|
|
|
2131
2178
|
const BuilderScreenView = (0, react.memo)(BuilderScreenViewImpl);
|
|
2132
2179
|
//#endregion
|
|
2133
2180
|
//#region src/shell/system-screen-map.ts
|
|
2134
|
-
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-
|
|
2135
|
-
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-
|
|
2136
|
-
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
2137
|
-
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-
|
|
2181
|
+
const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-agkwY8nL.cjs")).then((m) => ({ default: m.ProfileScreen })));
|
|
2182
|
+
const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-DwnskAqZ.cjs")).then((m) => ({ default: m.OrdersScreen })));
|
|
2183
|
+
const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-BZbt45PM.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
2184
|
+
const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-B6xwTuAi.cjs")).then((m) => ({ default: m.MessagingScreen })));
|
|
2138
2185
|
const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-BYrRJ55W.cjs")).then((m) => ({ default: m.ContactsScreen })));
|
|
2139
|
-
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-
|
|
2186
|
+
const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-CHe3APFL.cjs")).then((m) => ({ default: m.ShopScreen })));
|
|
2140
2187
|
const CustomersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./CustomersScreen-DtDU7jkB.cjs")).then((n) => n.CustomersScreen_exports).then((m) => ({ default: m.CustomersScreen })));
|
|
2141
2188
|
const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-Cvxi4Fen.cjs")).then((m) => ({ default: m.ShareablesScreen })));
|
|
2142
2189
|
const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-f8zAVWT-.cjs")).then((m) => ({ default: m.MySiteScreen })));
|
|
@@ -4043,15 +4090,15 @@ zod.z.object({
|
|
|
4043
4090
|
//#endregion
|
|
4044
4091
|
//#region src/screens/index.ts
|
|
4045
4092
|
const screenPropertySchemas = {
|
|
4046
|
-
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-
|
|
4047
|
-
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-
|
|
4093
|
+
ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-agkwY8nL.cjs")).then((m) => m.profileScreenPropertySchema),
|
|
4094
|
+
MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-B6xwTuAi.cjs")).then((m) => m.messagingScreenPropertySchema),
|
|
4048
4095
|
ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-BYrRJ55W.cjs")).then((m) => m.contactsScreenPropertySchema),
|
|
4049
|
-
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-
|
|
4050
|
-
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-
|
|
4096
|
+
OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-DwnskAqZ.cjs")).then((m) => m.ordersScreenPropertySchema),
|
|
4097
|
+
SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-BZbt45PM.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
|
|
4051
4098
|
CustomersScreen: () => Promise.resolve().then(() => require("./CustomersScreen-DtDU7jkB.cjs")).then((n) => n.CustomersScreen_exports).then((m) => m.customersScreenPropertySchema),
|
|
4052
4099
|
MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-f8zAVWT-.cjs")).then((m) => m.mySiteScreenPropertySchema),
|
|
4053
4100
|
ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-Cvxi4Fen.cjs")).then((m) => m.shareablesScreenPropertySchema),
|
|
4054
|
-
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-
|
|
4101
|
+
ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-CHe3APFL.cjs")).then((m) => m.shopScreenPropertySchema),
|
|
4055
4102
|
UpgradeScreen: () => Promise.resolve().then(() => require("./UpgradeScreen-ayWak9W9.cjs")).then((m) => m.upgradeScreenPropertySchema),
|
|
4056
4103
|
AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-Cn1gi2aM.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => m.appDownloadScreenPropertySchema)
|
|
4057
4104
|
};
|