@fluid-app/portal-sdk 0.1.197 → 0.1.198
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-CmDBRz5Y.cjs → PortalContentApiProvider-Bn44plrY.cjs} +29 -5
- package/dist/{PortalContentApiProvider-CmDBRz5Y.cjs.map → PortalContentApiProvider-Bn44plrY.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-C2cVPFwK.mjs → PortalContentApiProvider-tSZDt_f2.mjs} +29 -5
- package/dist/{PortalContentApiProvider-C2cVPFwK.mjs.map → PortalContentApiProvider-tSZDt_f2.mjs.map} +1 -1
- package/dist/{ProductsScreen-A6AmNu6A.cjs → ProductsScreen-Cvzwt-X-.cjs} +2 -2
- package/dist/{ProductsScreen-Bmvtrqwz.mjs → ProductsScreen-nryGJv7S.mjs} +2 -4
- package/dist/{ProductsScreen-CgoKo7Zn.mjs → ProductsScreen-o7LU64rN.mjs} +2 -2
- package/dist/{ProductsScreen-CgoKo7Zn.mjs.map → ProductsScreen-o7LU64rN.mjs.map} +1 -1
- package/dist/{ProductsScreen-Dmu_hEzn.cjs → ProductsScreen-uTXJCUPs.cjs} +2 -2
- package/dist/{ProductsScreen-Dmu_hEzn.cjs.map → ProductsScreen-uTXJCUPs.cjs.map} +1 -1
- package/dist/{ShareablesScreen-eZgLDxLb.mjs → ShareablesScreen-DPAjypds.mjs} +2 -2
- package/dist/{ShareablesScreen-eZgLDxLb.mjs.map → ShareablesScreen-DPAjypds.mjs.map} +1 -1
- package/dist/{ShareablesScreen-gaClu1n7.mjs → ShareablesScreen-DrMFfqJl.mjs} +2 -4
- package/dist/{ShareablesScreen-Dead0Hax.cjs → ShareablesScreen-Dw818mdV.cjs} +2 -2
- package/dist/{ShareablesScreen-Dead0Hax.cjs.map → ShareablesScreen-Dw818mdV.cjs.map} +1 -1
- package/dist/{ShareablesScreen-3G_tIwAB.cjs → ShareablesScreen-iUMt1ep3.cjs} +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +20 -20
package/dist/{PortalContentApiProvider-C2cVPFwK.mjs → PortalContentApiProvider-tSZDt_f2.mjs}
RENAMED
|
@@ -10224,6 +10224,7 @@ function PlaylistItemsSection({ playlistId }) {
|
|
|
10224
10224
|
});
|
|
10225
10225
|
return;
|
|
10226
10226
|
}
|
|
10227
|
+
let nextOrder = tableItems.length + 1;
|
|
10227
10228
|
for (const result of mediaResults) {
|
|
10228
10229
|
const label = result.metadata?.file_name?.replace(/\.[^/.]+$/, "") || `Medium #${result.asset_id}`;
|
|
10229
10230
|
const relateableId = result.asset_id;
|
|
@@ -10235,9 +10236,10 @@ function PlaylistItemsSection({ playlistId }) {
|
|
|
10235
10236
|
});
|
|
10236
10237
|
continue;
|
|
10237
10238
|
}
|
|
10239
|
+
const order = nextOrder++;
|
|
10238
10240
|
const newItem = {
|
|
10239
10241
|
id: Date.now() + Math.random(),
|
|
10240
|
-
order
|
|
10242
|
+
order,
|
|
10241
10243
|
relateable_type: relateableType,
|
|
10242
10244
|
relateable: {
|
|
10243
10245
|
id: relateableId,
|
|
@@ -10252,7 +10254,7 @@ function PlaylistItemsSection({ playlistId }) {
|
|
|
10252
10254
|
data: {
|
|
10253
10255
|
relateable_type: relateableType,
|
|
10254
10256
|
relateable_id: relateableId,
|
|
10255
|
-
order
|
|
10257
|
+
order
|
|
10256
10258
|
}
|
|
10257
10259
|
});
|
|
10258
10260
|
showToast({
|
|
@@ -11527,11 +11529,33 @@ function createPlaylistsAdapter(client) {
|
|
|
11527
11529
|
media_id: item.relateable_id,
|
|
11528
11530
|
position: typeof item.order === "number" ? item.order : Number(item.order)
|
|
11529
11531
|
})));
|
|
11530
|
-
return
|
|
11532
|
+
return {
|
|
11533
|
+
id,
|
|
11534
|
+
title: "",
|
|
11535
|
+
description: null,
|
|
11536
|
+
image_url: null,
|
|
11537
|
+
slug: null,
|
|
11538
|
+
active: true,
|
|
11539
|
+
user_id: null,
|
|
11540
|
+
is_favorited: false,
|
|
11541
|
+
items: [],
|
|
11542
|
+
items_count: 0
|
|
11543
|
+
};
|
|
11531
11544
|
},
|
|
11532
11545
|
removeItemsFromPlaylist: async (playlistId, data) => {
|
|
11533
11546
|
await Promise.all(data.item_ids.map((itemId) => portAdapter.removePlaylistItem(playlistId, itemId)));
|
|
11534
|
-
return
|
|
11547
|
+
return {
|
|
11548
|
+
id: playlistId,
|
|
11549
|
+
title: "",
|
|
11550
|
+
description: null,
|
|
11551
|
+
image_url: null,
|
|
11552
|
+
slug: null,
|
|
11553
|
+
active: true,
|
|
11554
|
+
user_id: null,
|
|
11555
|
+
is_favorited: false,
|
|
11556
|
+
items: [],
|
|
11557
|
+
items_count: 0
|
|
11558
|
+
};
|
|
11535
11559
|
}
|
|
11536
11560
|
};
|
|
11537
11561
|
}
|
|
@@ -11822,4 +11846,4 @@ function PortalContentApiProvider({ children }) {
|
|
|
11822
11846
|
//#endregion
|
|
11823
11847
|
export { ShareablesApp as a, ShareablesCoreProvider as c, ProductsApp as i, usePortalContentContext as n, useFilePickerApi as o, toggleFavorite as r, ShareablesUIProvider as s, PortalContentApiProvider as t };
|
|
11824
11848
|
|
|
11825
|
-
//# sourceMappingURL=PortalContentApiProvider-
|
|
11849
|
+
//# sourceMappingURL=PortalContentApiProvider-tSZDt_f2.mjs.map
|