@fluid-app/portal-sdk 0.1.637 → 0.1.638
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/{ShareablesScreen-BBykHf1K.cjs → ShareablesScreen-BcRJW5zA.cjs} +11 -6
- package/dist/{ShareablesScreen-BBykHf1K.cjs.map → ShareablesScreen-BcRJW5zA.cjs.map} +1 -1
- package/dist/{ShareablesScreen-CkRRPhG0.cjs → ShareablesScreen-BdaIWR3p.cjs} +1 -1
- package/dist/{ShareablesScreen-BwIl6E-f.mjs → ShareablesScreen-Dqecn7OH.mjs} +11 -6
- package/dist/{ShareablesScreen-BwIl6E-f.mjs.map → ShareablesScreen-Dqecn7OH.mjs.map} +1 -1
- package/dist/{ShareablesScreen-C5vqkkaM.mjs → ShareablesScreen-Dzq3h0hQ.mjs} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +11 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +11 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ require("./MobileBottomSheet-BnYPI2l1.cjs");
|
|
|
7
7
|
require("./static-dict-adapter-BCgoKiVT.cjs");
|
|
8
8
|
require("./SearchSort-Dpk27tPM.cjs");
|
|
9
9
|
require("./use-share-link-CwfwFW1s.cjs");
|
|
10
|
-
const require_ShareablesScreen = require("./ShareablesScreen-
|
|
10
|
+
const require_ShareablesScreen = require("./ShareablesScreen-BcRJW5zA.cjs");
|
|
11
11
|
require("./translation-api-context-factory-mbsJk2UU.cjs");
|
|
12
12
|
require("./src-B7NUvt4E.cjs");
|
|
13
13
|
require("./MobileActionSheet-BOE8d_Lr.cjs");
|
|
@@ -14805,15 +14805,19 @@ function getSourceProductIdForMediaDetail(currentRoute, parentSlug) {
|
|
|
14805
14805
|
}
|
|
14806
14806
|
//#endregion
|
|
14807
14807
|
//#region src/screens/ShareablesScreen.tsx
|
|
14808
|
-
function ShareablesScreen({ background, textColor, accentColor, padding, borderRadius, showProductSharablesCarousel = false, ...divProps }) {
|
|
14808
|
+
function ShareablesScreen({ background, textColor, accentColor, padding, borderRadius, showProductSharablesCarousel = false, readOnly, canCuratePlaylists, ...divProps }) {
|
|
14809
14809
|
return /* @__PURE__ */ jsx("div", {
|
|
14810
14810
|
...divProps,
|
|
14811
14811
|
className: `h-full ${divProps.className ?? ""}`,
|
|
14812
|
-
children: /* @__PURE__ */ jsx(ShareablesTranslationBridge, { children: /* @__PURE__ */ jsx(PortalContentApiProvider, { children: /* @__PURE__ */ jsx(ShareablesScreenContent, {
|
|
14812
|
+
children: /* @__PURE__ */ jsx(ShareablesTranslationBridge, { children: /* @__PURE__ */ jsx(PortalContentApiProvider, { children: /* @__PURE__ */ jsx(ShareablesScreenContent, {
|
|
14813
|
+
showProductSharablesCarousel,
|
|
14814
|
+
readOnly,
|
|
14815
|
+
canCuratePlaylists
|
|
14816
|
+
}) }) })
|
|
14813
14817
|
});
|
|
14814
14818
|
}
|
|
14815
14819
|
/** Inner component rendered inside providers so hooks can access context. */
|
|
14816
|
-
function ShareablesScreenContent({ showProductSharablesCarousel }) {
|
|
14820
|
+
function ShareablesScreenContent({ showProductSharablesCarousel, readOnly, canCuratePlaylists }) {
|
|
14817
14821
|
const { t, locale } = useShareablesTranslation();
|
|
14818
14822
|
const tRef = useRef(t);
|
|
14819
14823
|
tRef.current = t;
|
|
@@ -14826,7 +14830,7 @@ function ShareablesScreenContent({ showProductSharablesCarousel }) {
|
|
|
14826
14830
|
const { data: store } = useStore();
|
|
14827
14831
|
const { currentSlug, navigate } = useAppNavigation();
|
|
14828
14832
|
const parentBreadcrumb = useNavigationParent();
|
|
14829
|
-
const isCustomer = deniesRepSurfaces(account);
|
|
14833
|
+
const isCustomer = readOnly ?? deniesRepSurfaces(account);
|
|
14830
14834
|
const client = usePortalTenantContentClient();
|
|
14831
14835
|
const queryClient = useQueryClient();
|
|
14832
14836
|
const fetchProducts = useCallback(async (search, cursor, limit, sort) => {
|
|
@@ -14932,7 +14936,7 @@ function ShareablesScreenContent({ showProductSharablesCarousel }) {
|
|
|
14932
14936
|
};
|
|
14933
14937
|
},
|
|
14934
14938
|
readOnly: isCustomer,
|
|
14935
|
-
canCuratePlaylists: true,
|
|
14939
|
+
canCuratePlaylists: canCuratePlaylists ?? true,
|
|
14936
14940
|
pickerSources: {
|
|
14937
14941
|
pages: {
|
|
14938
14942
|
cacheKey: `locale:${locale}`,
|
|
@@ -15009,6 +15013,7 @@ function ShareablesScreenContent({ showProductSharablesCarousel }) {
|
|
|
15009
15013
|
navigate,
|
|
15010
15014
|
filePickerApi,
|
|
15011
15015
|
isCustomer,
|
|
15016
|
+
canCuratePlaylists,
|
|
15012
15017
|
shareablesCtx.playlistsAdapter,
|
|
15013
15018
|
shareablesCtx.pagesAdapter,
|
|
15014
15019
|
shareablesCtx.enrollmentPacksAdapter,
|
|
@@ -15053,4 +15058,4 @@ const shareablesScreenPropertySchema = {
|
|
|
15053
15058
|
//#endregion
|
|
15054
15059
|
export { shareablesScreenPropertySchema as n, ShareablesScreen as t };
|
|
15055
15060
|
|
|
15056
|
-
//# sourceMappingURL=ShareablesScreen-
|
|
15061
|
+
//# sourceMappingURL=ShareablesScreen-Dqecn7OH.mjs.map
|