@fluid-app/portal-sdk 0.1.174 → 0.1.175
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/{PortalContentApiProvider-DNZj3MTz.cjs → PortalContentApiProvider-CqfumtyH.cjs} +4 -4
- package/dist/PortalContentApiProvider-CqfumtyH.cjs.map +1 -0
- package/dist/{PortalContentApiProvider-D0xhS3Ge.mjs → PortalContentApiProvider-CvYJD4mj.mjs} +4 -4
- package/dist/PortalContentApiProvider-CvYJD4mj.mjs.map +1 -0
- package/dist/{ProductsScreen-fPFSKVOn.cjs → ProductsScreen-BGFL7B9Y.cjs} +2 -2
- package/dist/{ProductsScreen-fPFSKVOn.cjs.map → ProductsScreen-BGFL7B9Y.cjs.map} +1 -1
- package/dist/{ProductsScreen-DIdRGVvA.mjs → ProductsScreen-BUCzY4c8.mjs} +2 -2
- package/dist/{ProductsScreen-CeNMvU4d.mjs → ProductsScreen-CJWgYPY9.mjs} +2 -2
- package/dist/{ProductsScreen-CeNMvU4d.mjs.map → ProductsScreen-CJWgYPY9.mjs.map} +1 -1
- package/dist/{ProductsScreen-iQf4zOus.cjs → ProductsScreen-CyOr92nO.cjs} +2 -2
- package/dist/{ShareablesScreen-Bl6aT0vn.cjs → ShareablesScreen-BYySYuY1.cjs} +2 -2
- package/dist/{ShareablesScreen-Bl6aT0vn.cjs.map → ShareablesScreen-BYySYuY1.cjs.map} +1 -1
- package/dist/{ShareablesScreen-D2JbmO7a.mjs → ShareablesScreen-Ca0VOB6e.mjs} +2 -2
- package/dist/{ShareablesScreen-D2JbmO7a.mjs.map → ShareablesScreen-Ca0VOB6e.mjs.map} +1 -1
- package/dist/{ShareablesScreen-CfchbhSH.mjs → ShareablesScreen-Cr-WyfrQ.mjs} +2 -2
- package/dist/{ShareablesScreen-CtuGiQ7_.cjs → ShareablesScreen-PPfy8gtj.cjs} +2 -2
- package/dist/index.cjs +8 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -17
- package/dist/PortalContentApiProvider-D0xhS3Ge.mjs.map +0 -1
- package/dist/PortalContentApiProvider-DNZj3MTz.cjs.map +0 -1
package/dist/{PortalContentApiProvider-D0xhS3Ge.mjs → PortalContentApiProvider-CvYJD4mj.mjs}
RENAMED
|
@@ -8982,7 +8982,7 @@ async function proxyUrlFetch(url, proxyEndpoint = "/api/proxy-url") {
|
|
|
8982
8982
|
return urlProxyResponseSchema.parse(data);
|
|
8983
8983
|
}
|
|
8984
8984
|
//#endregion
|
|
8985
|
-
//#region
|
|
8985
|
+
//#region src/adapters/file-picker-api-adapter.ts
|
|
8986
8986
|
/**
|
|
8987
8987
|
* Maps a BFF DAM asset to the file-picker port's DamAssetCreateResponse shape.
|
|
8988
8988
|
*
|
|
@@ -9039,7 +9039,7 @@ function mapAssetPathCreateResponse(response) {
|
|
|
9039
9039
|
* (served by the hosting app, not the BFF) for CORS bypass, identical
|
|
9040
9040
|
* to the legacy adapter behaviour.
|
|
9041
9041
|
*/
|
|
9042
|
-
function
|
|
9042
|
+
function createFilePickerApiAdapter(client) {
|
|
9043
9043
|
return {
|
|
9044
9044
|
createDamAsset: async (params) => {
|
|
9045
9045
|
const formData = new FormData();
|
|
@@ -9746,7 +9746,7 @@ function PortalContentApiProvider({ children }) {
|
|
|
9746
9746
|
const productsApi = usePortalProductsApi();
|
|
9747
9747
|
const contentApi = useMemo(() => createPortalContentDomainApiAdapter(client, productsApi), [client, productsApi]);
|
|
9748
9748
|
const playlistsAdapter = useMemo(() => createPortalContentPlaylistsAdapter(client), [client]);
|
|
9749
|
-
const filePickerApi = useMemo(() =>
|
|
9749
|
+
const filePickerApi = useMemo(() => createFilePickerApiAdapter(client), [client]);
|
|
9750
9750
|
const ctx = useMemo(() => ({
|
|
9751
9751
|
productsApi,
|
|
9752
9752
|
playlistsAdapter,
|
|
@@ -9767,4 +9767,4 @@ function PortalContentApiProvider({ children }) {
|
|
|
9767
9767
|
//#endregion
|
|
9768
9768
|
export { ShareablesApp as a, ProductsApp as i, usePortalContentContext as n, ShareablesUIProvider as o, toggleFavorite as r, ShareablesCoreProvider as s, PortalContentApiProvider as t };
|
|
9769
9769
|
|
|
9770
|
-
//# sourceMappingURL=PortalContentApiProvider-
|
|
9770
|
+
//# sourceMappingURL=PortalContentApiProvider-CvYJD4mj.mjs.map
|