@fluid-app/portal-sdk 0.1.177 → 0.1.178
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/{FluidProvider-MjOyxZEf.cjs → FluidProvider-CIuinUdw.cjs} +13 -31
- package/dist/FluidProvider-CIuinUdw.cjs.map +1 -0
- package/dist/{FluidProvider-C6NlPdMA.mjs → FluidProvider-TKGU3gSm.mjs} +13 -31
- package/dist/FluidProvider-TKGU3gSm.mjs.map +1 -0
- package/dist/{MessagingScreen-BNXVwQwN.mjs → MessagingScreen-BUC8Fwaz.mjs} +2 -2
- package/dist/{MessagingScreen-BNXVwQwN.mjs.map → MessagingScreen-BUC8Fwaz.mjs.map} +1 -1
- package/dist/{MessagingScreen-DRzVl0ux.cjs → MessagingScreen-CwMR1WJG.cjs} +2 -2
- package/dist/{MessagingScreen-DRzVl0ux.cjs.map → MessagingScreen-CwMR1WJG.cjs.map} +1 -1
- package/dist/{MessagingScreen-fMLfvDCY.cjs → MessagingScreen-XzPsvsXP.cjs} +2 -2
- package/dist/{OrdersScreen-Dz4XHnSA.mjs → OrdersScreen-BYs3uo-1.mjs} +2 -2
- package/dist/{OrdersScreen-Dz4XHnSA.mjs.map → OrdersScreen-BYs3uo-1.mjs.map} +1 -1
- package/dist/{OrdersScreen-DI1un1xT.cjs → OrdersScreen-COGBqaif.cjs} +1 -1
- package/dist/{OrdersScreen-DBaIwXoT.cjs → OrdersScreen-tEz4rZn_.cjs} +2 -2
- package/dist/{OrdersScreen-DBaIwXoT.cjs.map → OrdersScreen-tEz4rZn_.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-BvreyuHL.cjs → PortalContentApiProvider-BBGpjTFn.cjs} +11 -12
- package/dist/{PortalContentApiProvider-BvreyuHL.cjs.map → PortalContentApiProvider-BBGpjTFn.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-mXe3JFMW.mjs → PortalContentApiProvider-D15sSN1l.mjs} +11 -12
- package/dist/{PortalContentApiProvider-mXe3JFMW.mjs.map → PortalContentApiProvider-D15sSN1l.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-BXmVqeTK.mjs → PortalProductsApiProvider-BALswRao.mjs} +2 -2
- package/dist/{PortalProductsApiProvider-BXmVqeTK.mjs.map → PortalProductsApiProvider-BALswRao.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-jbh8K-Yu.cjs → PortalProductsApiProvider-Duj-EjQj.cjs} +2 -2
- package/dist/{PortalProductsApiProvider-jbh8K-Yu.cjs.map → PortalProductsApiProvider-Duj-EjQj.cjs.map} +1 -1
- package/dist/{ProductsScreen-B3zrg-M4.mjs → ProductsScreen-BnS0MbzY.mjs} +3 -3
- package/dist/{ProductsScreen-B3zrg-M4.mjs.map → ProductsScreen-BnS0MbzY.mjs.map} +1 -1
- package/dist/{ProductsScreen-4PpCihOF.mjs → ProductsScreen-C0KlCDt_.mjs} +3 -3
- package/dist/{ProductsScreen-BJ_OpulB.cjs → ProductsScreen-CWqkme1L.cjs} +3 -3
- package/dist/{ProductsScreen-BJ_OpulB.cjs.map → ProductsScreen-CWqkme1L.cjs.map} +1 -1
- package/dist/{ProductsScreen-BxFPdYyG.cjs → ProductsScreen-DjzkmBOS.cjs} +3 -3
- package/dist/{ProfileScreen-D6tv5Qp8.mjs → ProfileScreen-BuDwsZ3f.mjs} +2 -2
- package/dist/{ProfileScreen-D6tv5Qp8.mjs.map → ProfileScreen-BuDwsZ3f.mjs.map} +1 -1
- package/dist/{ProfileScreen-4BbG1vpk.cjs → ProfileScreen-CD0p8061.cjs} +2 -2
- package/dist/{ProfileScreen-OhOlDDDj.cjs → ProfileScreen-De6Xdkr4.cjs} +2 -2
- package/dist/{ProfileScreen-OhOlDDDj.cjs.map → ProfileScreen-De6Xdkr4.cjs.map} +1 -1
- package/dist/{ShareablesScreen-D0hdY5cY.cjs → ShareablesScreen-BZG-rFuT.cjs} +3 -3
- package/dist/{ShareablesScreen-BVb5BkiC.cjs → ShareablesScreen-B_tGIt_X.cjs} +3 -3
- package/dist/{ShareablesScreen-BVb5BkiC.cjs.map → ShareablesScreen-B_tGIt_X.cjs.map} +1 -1
- package/dist/{ShareablesScreen-xak6DHSf.mjs → ShareablesScreen-_S-OESoe.mjs} +3 -3
- package/dist/{ShareablesScreen-DCbx4JwR.mjs → ShareablesScreen-svmMjJII.mjs} +3 -3
- package/dist/{ShareablesScreen-DCbx4JwR.mjs.map → ShareablesScreen-svmMjJII.mjs.map} +1 -1
- package/dist/{ShopScreen-DmkJgGqK.mjs → ShopScreen-Bg5pr5RL.mjs} +3 -3
- package/dist/{ShopScreen-DmkJgGqK.mjs.map → ShopScreen-Bg5pr5RL.mjs.map} +1 -1
- package/dist/{ShopScreen-BYEB_E5B.cjs → ShopScreen-DqUle1Zv.cjs} +3 -3
- package/dist/{ShopScreen-2Fm9c-Nc.cjs → ShopScreen-z1kE-juB.cjs} +3 -3
- package/dist/{ShopScreen-2Fm9c-Nc.cjs.map → ShopScreen-z1kE-juB.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-B3Z13alr.mjs → SubscriptionsScreen-BCxNFOZv.mjs} +2 -2
- package/dist/{SubscriptionsScreen-B3Z13alr.mjs.map → SubscriptionsScreen-BCxNFOZv.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-Cdf_XKwQ.cjs → SubscriptionsScreen-CYIUXxrJ.cjs} +1 -1
- package/dist/{SubscriptionsScreen-C_U6YU-s.cjs → SubscriptionsScreen-Dr0FmZZH.cjs} +2 -2
- package/dist/{SubscriptionsScreen-C_U6YU-s.cjs.map → SubscriptionsScreen-Dr0FmZZH.cjs.map} +1 -1
- package/dist/index.cjs +24 -24
- package/dist/index.mjs +24 -24
- package/dist/{portal_tenant-5kK658sL.cjs → portal_tenant-CvP7rhIy.cjs} +1 -33
- package/dist/{portal_tenant-5kK658sL.cjs.map → portal_tenant-CvP7rhIy.cjs.map} +1 -1
- package/dist/{portal_tenant-vEh8wfqU.mjs → portal_tenant-Vkge0BiD.mjs} +2 -22
- package/dist/{portal_tenant-vEh8wfqU.mjs.map → portal_tenant-Vkge0BiD.mjs.map} +1 -1
- package/dist/{portal_tenant_content-DZ8AqoU_.cjs → portal_tenant_content-Bq8PD-Sz.cjs} +1 -17
- package/dist/portal_tenant_content-Bq8PD-Sz.cjs.map +1 -0
- package/dist/{portal_tenant_content-5fNROcju.mjs → portal_tenant_content-C8DCQLR3.mjs} +2 -12
- package/dist/portal_tenant_content-C8DCQLR3.mjs.map +1 -0
- package/package.json +18 -18
- package/dist/FluidProvider-C6NlPdMA.mjs.map +0 -1
- package/dist/FluidProvider-MjOyxZEf.cjs.map +0 -1
- package/dist/portal_tenant_content-5fNROcju.mjs.map +0 -1
- package/dist/portal_tenant_content-DZ8AqoU_.cjs.map +0 -1
|
@@ -3,8 +3,8 @@ import { t as AccountApiProvider } from "./account-api-context-BIZ_aibJ.mjs";
|
|
|
3
3
|
import { t as StoreApiProvider } from "./store-api-context-C1lXT_3d.mjs";
|
|
4
4
|
import { t as MySiteApiProvider } from "./mysite-api-context-bXtZ8Gbm.mjs";
|
|
5
5
|
import { t as CountriesApiProvider } from "./countries-api-context-Dob_AzPO.mjs";
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
6
|
+
import { a as orders_list, d as store_show, i as enrollment_packs_show, n as account_update, p as subscriptions_list, r as app_manifest_show, s as products_list, t as account_show, u as products_show } from "./portal_tenant-Vkge0BiD.mjs";
|
|
7
|
+
import { d as media_show, y as playlists_show } from "./portal_tenant_content-C8DCQLR3.mjs";
|
|
8
8
|
import { t as PortalTenantClientProvider } from "./PortalTenantClientProvider-4ZmY6hac.mjs";
|
|
9
9
|
import { t as DataSourceRegistryProvider } from "./registry-context-C0pSPjFz.mjs";
|
|
10
10
|
import { t as EmbedWidget } from "./EmbedWidget-adWEtmT9.mjs";
|
|
@@ -707,6 +707,9 @@ function createFetchClient(config) {
|
|
|
707
707
|
function throwIfAborted(signal) {
|
|
708
708
|
if (signal?.aborted) throw new DOMException("Aborted", "AbortError");
|
|
709
709
|
}
|
|
710
|
+
function bffNotSupported(op) {
|
|
711
|
+
throw new Error(`[portal-tenant-adapter] "${op}" is not available on the portal-tenant BFF. Wire the legacy adapter for this feature, or re-add the endpoint to the BFF spec.`);
|
|
712
|
+
}
|
|
710
713
|
/**
|
|
711
714
|
* Map a BFF order response to the port's NormalizedOrder shape.
|
|
712
715
|
* Centralizes the boundary between BFF wire format and our canonical type
|
|
@@ -759,23 +762,11 @@ function toNormalizedSubscription(raw) {
|
|
|
759
762
|
*/
|
|
760
763
|
function createDataSourceApiAdapter(client, contentClient) {
|
|
761
764
|
return {
|
|
762
|
-
async fetchMostShared(_repId,
|
|
763
|
-
|
|
764
|
-
const params = { shareable_type: options.shareableType };
|
|
765
|
-
if (options.limit != null) params.limit = options.limit;
|
|
766
|
-
if (options.period && options.period !== "all") params.period = options.period;
|
|
767
|
-
const response = await analytics_most_share_visits(client, params);
|
|
768
|
-
throwIfAborted(options.signal);
|
|
769
|
-
return response.resources ?? [];
|
|
765
|
+
async fetchMostShared(_repId, _options) {
|
|
766
|
+
bffNotSupported("fetchMostShared");
|
|
770
767
|
},
|
|
771
|
-
async fetchMostViewed(_repId,
|
|
772
|
-
|
|
773
|
-
const params = { shareable_type: options.shareableType };
|
|
774
|
-
if (options.limit != null) params.limit = options.limit;
|
|
775
|
-
if (options.period && options.period !== "all") params.period = options.period;
|
|
776
|
-
const response = await analytics_most_viewed(client, params);
|
|
777
|
-
throwIfAborted(options.signal);
|
|
778
|
-
return response.resources ?? [];
|
|
768
|
+
async fetchMostViewed(_repId, _options) {
|
|
769
|
+
bffNotSupported("fetchMostViewed");
|
|
779
770
|
},
|
|
780
771
|
async fetchOrders(_customerId, options) {
|
|
781
772
|
throwIfAborted(options?.signal);
|
|
@@ -828,16 +819,7 @@ function createDataSourceApiAdapter(client, contentClient) {
|
|
|
828
819
|
...pack
|
|
829
820
|
};
|
|
830
821
|
}
|
|
831
|
-
case "Page":
|
|
832
|
-
const response = await pages_show(contentClient, id);
|
|
833
|
-
throwIfAborted(signal);
|
|
834
|
-
const page = response.page;
|
|
835
|
-
if (!page) throw new Error(`Page ${id} not found`);
|
|
836
|
-
return {
|
|
837
|
-
shareable_type: "Page",
|
|
838
|
-
...page
|
|
839
|
-
};
|
|
840
|
-
}
|
|
822
|
+
case "Page": bffNotSupported("fetchResource(\"Page\")");
|
|
841
823
|
case "Library": {
|
|
842
824
|
const response = await playlists_show(contentClient, id);
|
|
843
825
|
throwIfAborted(signal);
|
|
@@ -1412,8 +1394,8 @@ async function mysite_links_bulk_reorder(client, body) {
|
|
|
1412
1394
|
return client.patch(`/api/mysite/links/bulk`, body);
|
|
1413
1395
|
}
|
|
1414
1396
|
/**
|
|
1415
|
-
* List MySite
|
|
1416
|
-
* Returns the member's MySite
|
|
1397
|
+
* List MySite favorites
|
|
1398
|
+
* Returns the member's MySite favorites (products, playlists, etc.).
|
|
1417
1399
|
*
|
|
1418
1400
|
* @param client - Fetch client instance
|
|
1419
1401
|
* @param [params] - params
|
|
@@ -2662,4 +2644,4 @@ function useFluidContext() {
|
|
|
2662
2644
|
//#endregion
|
|
2663
2645
|
export { mergeDarkOverrides as A, usePayApi as B, DEFAULT_THEME_ID as C, deriveDarkVariant as D, generateThemeCSS as E, RADIUS_KEYS as F, useFluidOsApi as H, SEMANTIC_COLOR_NAMES as I, SHADE_STEPS as L, resolveTheme as M, FONT_FAMILY_KEYS as N, generateShades as O, FONT_SIZE_KEYS as P, ApiError as R, DEFAULT_SPACING as S, getDefaultThemeDefinition as T, createPersister as U, useAppDefinitionApi as V, deleteDatabase as W, serialiseTheme as _, createScreen as a, DEFAULT_FONT_SIZES as b, FluidThemeProvider as c, removeAllThemes as d, removeTheme as f, deserialiseTheme as g, transformThemes as h, widgetPropertySchemas as i, parseColor as j, getForegroundColor as k, useThemeContext as l, getActiveThemeId as m, useFluidContext as n, createWidgetFromShareable as o, buildThemeDefinition as p, DEFAULT_SDK_WIDGET_REGISTRY as r, createWidgetRegistry as s, FluidProvider as t, applyTheme as u, DEFAULT_COLORS as v, DEFAULT_THEME_NAME as w, DEFAULT_RADII as x, DEFAULT_FONT_FAMILIES as y, useLanguagesApi as z };
|
|
2664
2646
|
|
|
2665
|
-
//# sourceMappingURL=FluidProvider-
|
|
2647
|
+
//# sourceMappingURL=FluidProvider-TKGU3gSm.mjs.map
|