@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
|
@@ -4,8 +4,8 @@ const require_account_api_context = require("./account-api-context-DZP9IiGg.cjs"
|
|
|
4
4
|
const require_store_api_context = require("./store-api-context-D1gZn22Z.cjs");
|
|
5
5
|
const require_mysite_api_context = require("./mysite-api-context-CilZcDS4.cjs");
|
|
6
6
|
const require_countries_api_context = require("./countries-api-context-G-NW4BoH.cjs");
|
|
7
|
-
const require_portal_tenant = require("./portal_tenant-
|
|
8
|
-
const require_portal_tenant_content = require("./portal_tenant_content-
|
|
7
|
+
const require_portal_tenant = require("./portal_tenant-CvP7rhIy.cjs");
|
|
8
|
+
const require_portal_tenant_content = require("./portal_tenant_content-Bq8PD-Sz.cjs");
|
|
9
9
|
const require_PortalTenantClientProvider = require("./PortalTenantClientProvider-CVv-4rQ9.cjs");
|
|
10
10
|
const require_registry_context = require("./registry-context-CyQ7qh6B.cjs");
|
|
11
11
|
const require_EmbedWidget = require("./EmbedWidget-DMkeMXMy.cjs");
|
|
@@ -723,6 +723,9 @@ function createFetchClient(config) {
|
|
|
723
723
|
function throwIfAborted(signal) {
|
|
724
724
|
if (signal?.aborted) throw new DOMException("Aborted", "AbortError");
|
|
725
725
|
}
|
|
726
|
+
function bffNotSupported(op) {
|
|
727
|
+
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.`);
|
|
728
|
+
}
|
|
726
729
|
/**
|
|
727
730
|
* Map a BFF order response to the port's NormalizedOrder shape.
|
|
728
731
|
* Centralizes the boundary between BFF wire format and our canonical type
|
|
@@ -775,23 +778,11 @@ function toNormalizedSubscription(raw) {
|
|
|
775
778
|
*/
|
|
776
779
|
function createDataSourceApiAdapter(client, contentClient) {
|
|
777
780
|
return {
|
|
778
|
-
async fetchMostShared(_repId,
|
|
779
|
-
|
|
780
|
-
const params = { shareable_type: options.shareableType };
|
|
781
|
-
if (options.limit != null) params.limit = options.limit;
|
|
782
|
-
if (options.period && options.period !== "all") params.period = options.period;
|
|
783
|
-
const response = await require_portal_tenant.analytics_most_share_visits(client, params);
|
|
784
|
-
throwIfAborted(options.signal);
|
|
785
|
-
return response.resources ?? [];
|
|
781
|
+
async fetchMostShared(_repId, _options) {
|
|
782
|
+
bffNotSupported("fetchMostShared");
|
|
786
783
|
},
|
|
787
|
-
async fetchMostViewed(_repId,
|
|
788
|
-
|
|
789
|
-
const params = { shareable_type: options.shareableType };
|
|
790
|
-
if (options.limit != null) params.limit = options.limit;
|
|
791
|
-
if (options.period && options.period !== "all") params.period = options.period;
|
|
792
|
-
const response = await require_portal_tenant.analytics_most_viewed(client, params);
|
|
793
|
-
throwIfAborted(options.signal);
|
|
794
|
-
return response.resources ?? [];
|
|
784
|
+
async fetchMostViewed(_repId, _options) {
|
|
785
|
+
bffNotSupported("fetchMostViewed");
|
|
795
786
|
},
|
|
796
787
|
async fetchOrders(_customerId, options) {
|
|
797
788
|
throwIfAborted(options?.signal);
|
|
@@ -844,16 +835,7 @@ function createDataSourceApiAdapter(client, contentClient) {
|
|
|
844
835
|
...pack
|
|
845
836
|
};
|
|
846
837
|
}
|
|
847
|
-
case "Page":
|
|
848
|
-
const response = await require_portal_tenant_content.pages_show(contentClient, id);
|
|
849
|
-
throwIfAborted(signal);
|
|
850
|
-
const page = response.page;
|
|
851
|
-
if (!page) throw new Error(`Page ${id} not found`);
|
|
852
|
-
return {
|
|
853
|
-
shareable_type: "Page",
|
|
854
|
-
...page
|
|
855
|
-
};
|
|
856
|
-
}
|
|
838
|
+
case "Page": bffNotSupported("fetchResource(\"Page\")");
|
|
857
839
|
case "Library": {
|
|
858
840
|
const response = await require_portal_tenant_content.playlists_show(contentClient, id);
|
|
859
841
|
throwIfAborted(signal);
|
|
@@ -1429,8 +1411,8 @@ async function mysite_links_bulk_reorder(client, body) {
|
|
|
1429
1411
|
return client.patch(`/api/mysite/links/bulk`, body);
|
|
1430
1412
|
}
|
|
1431
1413
|
/**
|
|
1432
|
-
* List MySite
|
|
1433
|
-
* Returns the member's MySite
|
|
1414
|
+
* List MySite favorites
|
|
1415
|
+
* Returns the member's MySite favorites (products, playlists, etc.).
|
|
1434
1416
|
*
|
|
1435
1417
|
* @param client - Fetch client instance
|
|
1436
1418
|
* @param [params] - params
|
|
@@ -2942,4 +2924,4 @@ Object.defineProperty(exports, "widgetPropertySchemas", {
|
|
|
2942
2924
|
}
|
|
2943
2925
|
});
|
|
2944
2926
|
|
|
2945
|
-
//# sourceMappingURL=FluidProvider-
|
|
2927
|
+
//# sourceMappingURL=FluidProvider-CIuinUdw.cjs.map
|