@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-CmDBRz5Y.cjs → PortalContentApiProvider-Bn44plrY.cjs}
RENAMED
|
@@ -10229,6 +10229,7 @@ function PlaylistItemsSection({ playlistId }) {
|
|
|
10229
10229
|
});
|
|
10230
10230
|
return;
|
|
10231
10231
|
}
|
|
10232
|
+
let nextOrder = tableItems.length + 1;
|
|
10232
10233
|
for (const result of mediaResults) {
|
|
10233
10234
|
const label = result.metadata?.file_name?.replace(/\.[^/.]+$/, "") || `Medium #${result.asset_id}`;
|
|
10234
10235
|
const relateableId = result.asset_id;
|
|
@@ -10240,9 +10241,10 @@ function PlaylistItemsSection({ playlistId }) {
|
|
|
10240
10241
|
});
|
|
10241
10242
|
continue;
|
|
10242
10243
|
}
|
|
10244
|
+
const order = nextOrder++;
|
|
10243
10245
|
const newItem = {
|
|
10244
10246
|
id: Date.now() + Math.random(),
|
|
10245
|
-
order
|
|
10247
|
+
order,
|
|
10246
10248
|
relateable_type: relateableType,
|
|
10247
10249
|
relateable: {
|
|
10248
10250
|
id: relateableId,
|
|
@@ -10257,7 +10259,7 @@ function PlaylistItemsSection({ playlistId }) {
|
|
|
10257
10259
|
data: {
|
|
10258
10260
|
relateable_type: relateableType,
|
|
10259
10261
|
relateable_id: relateableId,
|
|
10260
|
-
order
|
|
10262
|
+
order
|
|
10261
10263
|
}
|
|
10262
10264
|
});
|
|
10263
10265
|
showToast({
|
|
@@ -11532,11 +11534,33 @@ function createPlaylistsAdapter(client) {
|
|
|
11532
11534
|
media_id: item.relateable_id,
|
|
11533
11535
|
position: typeof item.order === "number" ? item.order : Number(item.order)
|
|
11534
11536
|
})));
|
|
11535
|
-
return
|
|
11537
|
+
return {
|
|
11538
|
+
id,
|
|
11539
|
+
title: "",
|
|
11540
|
+
description: null,
|
|
11541
|
+
image_url: null,
|
|
11542
|
+
slug: null,
|
|
11543
|
+
active: true,
|
|
11544
|
+
user_id: null,
|
|
11545
|
+
is_favorited: false,
|
|
11546
|
+
items: [],
|
|
11547
|
+
items_count: 0
|
|
11548
|
+
};
|
|
11536
11549
|
},
|
|
11537
11550
|
removeItemsFromPlaylist: async (playlistId, data) => {
|
|
11538
11551
|
await Promise.all(data.item_ids.map((itemId) => portAdapter.removePlaylistItem(playlistId, itemId)));
|
|
11539
|
-
return
|
|
11552
|
+
return {
|
|
11553
|
+
id: playlistId,
|
|
11554
|
+
title: "",
|
|
11555
|
+
description: null,
|
|
11556
|
+
image_url: null,
|
|
11557
|
+
slug: null,
|
|
11558
|
+
active: true,
|
|
11559
|
+
user_id: null,
|
|
11560
|
+
is_favorited: false,
|
|
11561
|
+
items: [],
|
|
11562
|
+
items_count: 0
|
|
11563
|
+
};
|
|
11540
11564
|
}
|
|
11541
11565
|
};
|
|
11542
11566
|
}
|
|
@@ -11874,4 +11898,4 @@ Object.defineProperty(exports, "usePortalContentContext", {
|
|
|
11874
11898
|
}
|
|
11875
11899
|
});
|
|
11876
11900
|
|
|
11877
|
-
//# sourceMappingURL=PortalContentApiProvider-
|
|
11901
|
+
//# sourceMappingURL=PortalContentApiProvider-Bn44plrY.cjs.map
|