@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.
@@ -261064,15 +261064,19 @@ function getSourceProductIdForMediaDetail(currentRoute, parentSlug) {
261064
261064
  }
261065
261065
  //#endregion
261066
261066
  //#region src/screens/ShareablesScreen.tsx
261067
- function ShareablesScreen({ background, textColor, accentColor, padding, borderRadius, showProductSharablesCarousel = false, ...divProps }) {
261067
+ function ShareablesScreen({ background, textColor, accentColor, padding, borderRadius, showProductSharablesCarousel = false, readOnly, canCuratePlaylists, ...divProps }) {
261068
261068
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
261069
261069
  ...divProps,
261070
261070
  className: `h-full ${divProps.className ?? ""}`,
261071
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShareablesTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_prop_types.PortalContentApiProvider, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShareablesScreenContent, { showProductSharablesCarousel }) }) })
261071
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShareablesTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_prop_types.PortalContentApiProvider, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShareablesScreenContent, {
261072
+ showProductSharablesCarousel,
261073
+ readOnly,
261074
+ canCuratePlaylists
261075
+ }) }) })
261072
261076
  });
261073
261077
  }
261074
261078
  /** Inner component rendered inside providers so hooks can access context. */
261075
- function ShareablesScreenContent({ showProductSharablesCarousel }) {
261079
+ function ShareablesScreenContent({ showProductSharablesCarousel, readOnly, canCuratePlaylists }) {
261076
261080
  const { t, locale } = useShareablesTranslation();
261077
261081
  const tRef = (0, react.useRef)(t);
261078
261082
  tRef.current = t;
@@ -261085,7 +261089,7 @@ function ShareablesScreenContent({ showProductSharablesCarousel }) {
261085
261089
  const { data: store } = require_use_store.useStore();
261086
261090
  const { currentSlug, navigate } = require_AppNavigationContext.useAppNavigation();
261087
261091
  const parentBreadcrumb = require_use_navigation_parent.useNavigationParent();
261088
- const isCustomer = require_member_permissions.deniesRepSurfaces(account);
261092
+ const isCustomer = readOnly ?? require_member_permissions.deniesRepSurfaces(account);
261089
261093
  const client = require_prop_types.usePortalTenantContentClient();
261090
261094
  const queryClient = (0, _tanstack_react_query.useQueryClient)();
261091
261095
  const fetchProducts = (0, react.useCallback)(async (search, cursor, limit, sort) => {
@@ -261191,7 +261195,7 @@ function ShareablesScreenContent({ showProductSharablesCarousel }) {
261191
261195
  };
261192
261196
  },
261193
261197
  readOnly: isCustomer,
261194
- canCuratePlaylists: true,
261198
+ canCuratePlaylists: canCuratePlaylists ?? true,
261195
261199
  pickerSources: {
261196
261200
  pages: {
261197
261201
  cacheKey: `locale:${locale}`,
@@ -261268,6 +261272,7 @@ function ShareablesScreenContent({ showProductSharablesCarousel }) {
261268
261272
  navigate,
261269
261273
  filePickerApi,
261270
261274
  isCustomer,
261275
+ canCuratePlaylists,
261271
261276
  shareablesCtx.playlistsAdapter,
261272
261277
  shareablesCtx.pagesAdapter,
261273
261278
  shareablesCtx.enrollmentPacksAdapter,
@@ -261323,4 +261328,4 @@ Object.defineProperty(exports, "shareablesScreenPropertySchema", {
261323
261328
  }
261324
261329
  });
261325
261330
 
261326
- //# sourceMappingURL=ShareablesScreen-BBykHf1K.cjs.map
261331
+ //# sourceMappingURL=ShareablesScreen-BcRJW5zA.cjs.map