@fluid-app/portal-sdk 0.1.197 → 0.1.199
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/{CardWidget-HgYL7cEj.cjs → CardWidget-BVYjwdua.cjs} +2 -2
- package/dist/{CardWidget-BDIscQev.mjs → CardWidget-BjvrudYQ.mjs} +2 -2
- package/dist/{CardWidget-BDIscQev.mjs.map → CardWidget-BjvrudYQ.mjs.map} +1 -1
- package/dist/{CardWidget-DSq_Q8kv.cjs → CardWidget-DVi0NVhb.cjs} +2 -2
- package/dist/{CardWidget-DSq_Q8kv.cjs.map → CardWidget-DVi0NVhb.cjs.map} +1 -1
- package/dist/{ContainerWidget-PjWuvAlm.mjs → ContainerWidget-B51UF7DK.mjs} +2 -2
- package/dist/{ContainerWidget-PjWuvAlm.mjs.map → ContainerWidget-B51UF7DK.mjs.map} +1 -1
- package/dist/{ContainerWidget-Blb9A9i6.cjs → ContainerWidget-DNo8CkQ7.cjs} +2 -2
- package/dist/{ContainerWidget-Blb9A9i6.cjs.map → ContainerWidget-DNo8CkQ7.cjs.map} +1 -1
- package/dist/{ContainerWidget-CTP4UZXI.cjs → ContainerWidget-gtjlMITv.cjs} +3 -3
- package/dist/{FluidProvider-j5QX1XRm.cjs → FluidProvider-D177ez3m.cjs} +56 -14
- package/dist/FluidProvider-D177ez3m.cjs.map +1 -0
- package/dist/{FluidProvider-CGqVqcHP.mjs → FluidProvider-DiJy4Zve.mjs} +56 -14
- package/dist/FluidProvider-DiJy4Zve.mjs.map +1 -0
- package/dist/{LayoutWidget-oVmk8nm9.mjs → LayoutWidget-CtqIb8_Z.mjs} +2 -2
- package/dist/{LayoutWidget-oVmk8nm9.mjs.map → LayoutWidget-CtqIb8_Z.mjs.map} +1 -1
- package/dist/{LayoutWidget-D05U-Fai.cjs → LayoutWidget-D5gh0ejr.cjs} +2 -2
- package/dist/{LayoutWidget-BUxgiC_H.cjs → LayoutWidget-DHlXzqUk.cjs} +2 -2
- package/dist/{LayoutWidget-BUxgiC_H.cjs.map → LayoutWidget-DHlXzqUk.cjs.map} +1 -1
- package/dist/{MessagingScreen-CpUfQIFf.mjs → MessagingScreen-Cu3tcpPs.mjs} +2 -2
- package/dist/{MessagingScreen-CpUfQIFf.mjs.map → MessagingScreen-Cu3tcpPs.mjs.map} +1 -1
- package/dist/{MessagingScreen-Beyb0TUm.cjs → MessagingScreen-Ysi48svi.cjs} +6 -6
- package/dist/{MessagingScreen-BaGLql5n.cjs → MessagingScreen-gKidMcrr.cjs} +2 -2
- package/dist/{MessagingScreen-BaGLql5n.cjs.map → MessagingScreen-gKidMcrr.cjs.map} +1 -1
- package/dist/{OrdersScreen-BgyMsZpn.mjs → OrdersScreen-BioiulGx.mjs} +2 -2
- package/dist/{OrdersScreen-BgyMsZpn.mjs.map → OrdersScreen-BioiulGx.mjs.map} +1 -1
- package/dist/{OrdersScreen-CCVPgVWa.cjs → OrdersScreen-DzCvZ6AW.cjs} +2 -2
- package/dist/{OrdersScreen-CCVPgVWa.cjs.map → OrdersScreen-DzCvZ6AW.cjs.map} +1 -1
- package/dist/{OrdersScreen-DWNylH_i.cjs → OrdersScreen-NIJGMwfQ.cjs} +1 -1
- package/dist/{PortalContentApiProvider-CmDBRz5Y.cjs → PortalContentApiProvider-CPnqELEX.cjs} +110 -8
- package/dist/{PortalContentApiProvider-CmDBRz5Y.cjs.map → PortalContentApiProvider-CPnqELEX.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-C2cVPFwK.mjs → PortalContentApiProvider-CWRAw9kL.mjs} +110 -8
- package/dist/PortalContentApiProvider-CWRAw9kL.mjs.map +1 -0
- package/dist/{PortalProductsApiProvider-D0jul2Fh.mjs → PortalProductsApiProvider-B1IjNhl8.mjs} +22 -2
- package/dist/PortalProductsApiProvider-B1IjNhl8.mjs.map +1 -0
- package/dist/{PortalProductsApiProvider-CRN-i8Rh.cjs → PortalProductsApiProvider-o1axGadc.cjs} +22 -2
- package/dist/{PortalProductsApiProvider-CRN-i8Rh.cjs.map → PortalProductsApiProvider-o1axGadc.cjs.map} +1 -1
- package/dist/{ProductsScreen-CgoKo7Zn.mjs → ProductsScreen-Al6H4ujs.mjs} +3 -3
- package/dist/{ProductsScreen-CgoKo7Zn.mjs.map → ProductsScreen-Al6H4ujs.mjs.map} +1 -1
- package/dist/{ProductsScreen-A6AmNu6A.cjs → ProductsScreen-BnwMOZ4-.cjs} +3 -3
- package/dist/{ProductsScreen-Dmu_hEzn.cjs → ProductsScreen-CQ5-A8AL.cjs} +3 -3
- package/dist/{ProductsScreen-Dmu_hEzn.cjs.map → ProductsScreen-CQ5-A8AL.cjs.map} +1 -1
- package/dist/{ProductsScreen-Bmvtrqwz.mjs → ProductsScreen-CexZ0gx9.mjs} +3 -5
- package/dist/{ProfileScreen-BoFYel4G.cjs → ProfileScreen-CGS7YkcT.cjs} +6 -6
- package/dist/{ProfileScreen-CtMB7I96.cjs → ProfileScreen-DJZoMzE6.cjs} +2 -2
- package/dist/{ProfileScreen-CtMB7I96.cjs.map → ProfileScreen-DJZoMzE6.cjs.map} +1 -1
- package/dist/{ProfileScreen-th1mmEn0.mjs → ProfileScreen-hE1S_99P.mjs} +2 -2
- package/dist/{ProfileScreen-th1mmEn0.mjs.map → ProfileScreen-hE1S_99P.mjs.map} +1 -1
- package/dist/{ScreenRenderer-CgSF9HEd.mjs → ScreenRenderer-Cv2rxvtF.mjs} +1 -9
- package/dist/ScreenRenderer-Cv2rxvtF.mjs.map +1 -0
- package/dist/{ScreenRenderer-Cx2KWPVu.cjs → ScreenRenderer-DfeRRgBO.cjs} +1 -9
- package/dist/ScreenRenderer-DfeRRgBO.cjs.map +1 -0
- package/dist/{ShareablesScreen-Dead0Hax.cjs → ShareablesScreen-CmZ5CX99.cjs} +3 -3
- package/dist/{ShareablesScreen-Dead0Hax.cjs.map → ShareablesScreen-CmZ5CX99.cjs.map} +1 -1
- package/dist/{ShareablesScreen-eZgLDxLb.mjs → ShareablesScreen-CzTU7e0l.mjs} +3 -3
- package/dist/{ShareablesScreen-eZgLDxLb.mjs.map → ShareablesScreen-CzTU7e0l.mjs.map} +1 -1
- package/dist/{ShareablesScreen-3G_tIwAB.cjs → ShareablesScreen-DujtMoAi.cjs} +3 -3
- package/dist/{ShareablesScreen-gaClu1n7.mjs → ShareablesScreen-yscAsNpq.mjs} +3 -5
- package/dist/{ShopScreen-BBFsy04y.mjs → ShopScreen-Bdo59te-.mjs} +3 -3
- package/dist/{ShopScreen-BBFsy04y.mjs.map → ShopScreen-Bdo59te-.mjs.map} +1 -1
- package/dist/{ShopScreen-BCZ_tsd3.cjs → ShopScreen-DKlDKNom.cjs} +3 -3
- package/dist/{ShopScreen-BCZ_tsd3.cjs.map → ShopScreen-DKlDKNom.cjs.map} +1 -1
- package/dist/{ShopScreen-tjFoj6_r.cjs → ShopScreen-R9zk7d5d.cjs} +7 -7
- package/dist/{SubscriptionsScreen-BwRoXYF8.mjs → SubscriptionsScreen-1G9oa46y.mjs} +2 -2
- package/dist/{SubscriptionsScreen-BwRoXYF8.mjs.map → SubscriptionsScreen-1G9oa46y.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-mhTl7OIp.cjs → SubscriptionsScreen-Bt_YtoA3.cjs} +1 -1
- package/dist/{SubscriptionsScreen-DbcnEDD0.cjs → SubscriptionsScreen-Dn6LldL3.cjs} +2 -2
- package/dist/{SubscriptionsScreen-DbcnEDD0.cjs.map → SubscriptionsScreen-Dn6LldL3.cjs.map} +1 -1
- package/dist/index.cjs +28 -28
- package/dist/index.mjs +28 -28
- package/dist/{portal_tenant-CWKHVgID.mjs → portal_tenant-8RPVJCll.mjs} +42 -2
- package/dist/{portal_tenant-CWKHVgID.mjs.map → portal_tenant-8RPVJCll.mjs.map} +1 -1
- package/dist/{portal_tenant-pozf8Ht6.cjs → portal_tenant-BdKp073-.cjs} +65 -1
- package/dist/{portal_tenant-pozf8Ht6.cjs.map → portal_tenant-BdKp073-.cjs.map} +1 -1
- package/dist/{portal_tenant_content-Dwmo8XZ-.cjs → portal_tenant_content-0zpnjBot.cjs} +97 -1
- package/dist/{portal_tenant_content-Dwmo8XZ-.cjs.map → portal_tenant_content-0zpnjBot.cjs.map} +1 -1
- package/dist/{portal_tenant_content-DgM42X08.mjs → portal_tenant_content-DzIQtSLE.mjs} +62 -2
- package/dist/{portal_tenant_content-DgM42X08.mjs.map → portal_tenant_content-DzIQtSLE.mjs.map} +1 -1
- package/package.json +15 -15
- package/dist/FluidProvider-CGqVqcHP.mjs.map +0 -1
- package/dist/FluidProvider-j5QX1XRm.cjs.map +0 -1
- package/dist/PortalContentApiProvider-C2cVPFwK.mjs.map +0 -1
- package/dist/PortalProductsApiProvider-D0jul2Fh.mjs.map +0 -1
- package/dist/ScreenRenderer-CgSF9HEd.mjs.map +0 -1
- package/dist/ScreenRenderer-Cx2KWPVu.cjs.map +0 -1
package/dist/{PortalContentApiProvider-C2cVPFwK.mjs → PortalContentApiProvider-CWRAw9kL.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useDropzone } from "./es-BeIE2Uzn.mjs";
|
|
2
|
-
import { C as
|
|
2
|
+
import { A as playlists_update, C as playlists_create, D as playlists_items_remove, E as playlists_items_list, M as shares_list, O as playlists_list, T as playlists_items_add, _ as media_products_add, a as content_playlists_metrics_share_visits, b as media_show, c as dam_asset_paths_list, d as dam_assets_discard, f as dam_assets_list, g as media_list, h as media_destroy, i as content_pages_metrics_visits, j as shares_create, k as playlists_show, l as dam_assets_create, m as media_create, n as content_media_metrics_visits, o as content_playlists_metrics_visits, p as dam_query, r as content_pages_metrics_share_visits, s as dam_asset_paths_create, t as content_media_metrics_share_visits, u as dam_assets_destroy, v as media_products_list, w as playlists_destroy, x as media_update, y as media_products_remove } from "./portal_tenant_content-DzIQtSLE.mjs";
|
|
3
3
|
import { n as usePortalTenantClient } from "./PortalTenantClientProvider-4ZmY6hac.mjs";
|
|
4
4
|
import { $ as DropdownMenuSeparator, $t as BreadcrumbPage, A as Select, At as Checkbox, B as Form, C as Skeleton, Et as CardContent, G as FormMessage, H as FormField, J as DropdownMenuContent, K as Label, L as Input, M as SelectItem, N as SelectTrigger, P as SelectValue, Qt as BreadcrumbList, S as Slider, U as FormItem, V as FormControl, W as FormLabel, Xt as BreadcrumbItem, Y as DropdownMenuItem, Yt as Breadcrumb, Zt as BreadcrumbLink, _ as Switch, an as AlertDialog, bn as useZodForm, c as Tabs, cn as AlertDialogContent, ct as DialogFooter, dn as AlertDialogHeader, dt as DialogPortal, en as BreadcrumbSeparator, et as DropdownMenuSub, fn as AlertDialogTitle, ft as DialogTitle, ht as PopoverTrigger, i as TooltipTrigger, it as Dialog, j as SelectContent, k as Separator, l as TabsList, ln as AlertDialogDescription, lt as DialogHeader, mn as Content, mt as PopoverContent, n as TooltipContent, nt as DropdownMenuSubTrigger, on as AlertDialogAction, ot as DialogContent, pn as Button, pt as Popover, q as DropdownMenu, r as TooltipProvider, rt as DropdownMenuTrigger, s as Textarea, sn as AlertDialogCancel, st as DialogDescription, t as Tooltip, tn as Badge, tt as DropdownMenuSubContent, u as TabsTrigger, un as AlertDialogFooter, ut as DialogOverlay, wt as Card, xn as cn, y as Spinner } from "./src-BTbz18gY.mjs";
|
|
5
5
|
import { n as useScreenHeaderActions, r as useScreenHeaderBreadcrumbs } from "./ScreenHeaderContext-BD6Zo-ep.mjs";
|
|
@@ -7,7 +7,7 @@ import { a as useEditor, o as Placeholder, r as EditorContent, t as StarterKit }
|
|
|
7
7
|
import { t as SearchSort } from "./SearchSort-TmRTxK16.mjs";
|
|
8
8
|
import { n as TextAlign, t as Underline } from "./dist-wzcShuuv.mjs";
|
|
9
9
|
import { a as verticalListSortingStrategy, c as PointerSensor, d as useSensors, f as CSS, i as useSortable, l as closestCenter, n as arrayMove, o as DndContext, r as sortableKeyboardCoordinates, s as KeyboardSensor, t as SortableContext, u as useSensor } from "./sortable.esm-DFTEWOHN.mjs";
|
|
10
|
-
import { o as usePortalProductsApi } from "./PortalProductsApiProvider-
|
|
10
|
+
import { o as usePortalProductsApi } from "./PortalProductsApiProvider-B1IjNhl8.mjs";
|
|
11
11
|
import React, { PureComponent, createContext, createRef, forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
12
12
|
import { keepPreviousData, useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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
|
}
|
|
@@ -11716,6 +11740,83 @@ function createFileResourcesAdapter(client) {
|
|
|
11716
11740
|
};
|
|
11717
11741
|
} };
|
|
11718
11742
|
}
|
|
11743
|
+
function mapMetricsMeta(raw) {
|
|
11744
|
+
if (!raw) return void 0;
|
|
11745
|
+
return {
|
|
11746
|
+
request_id: raw.request_id ?? null,
|
|
11747
|
+
timestamp: raw.timestamp ?? "",
|
|
11748
|
+
pagination: raw.pagination ? {
|
|
11749
|
+
cursor: raw.pagination.cursor ?? null,
|
|
11750
|
+
limit: raw.pagination.limit,
|
|
11751
|
+
next_cursor: raw.pagination.next_cursor ?? null,
|
|
11752
|
+
prev_cursor: raw.pagination.prev_cursor ?? null
|
|
11753
|
+
} : void 0
|
|
11754
|
+
};
|
|
11755
|
+
}
|
|
11756
|
+
function createMetricsAdapter(client) {
|
|
11757
|
+
return {
|
|
11758
|
+
listMediaVisited: async (params) => {
|
|
11759
|
+
const response = await content_media_metrics_visits(client, {
|
|
11760
|
+
period: params?.period,
|
|
11761
|
+
limit: params?.limit
|
|
11762
|
+
});
|
|
11763
|
+
return {
|
|
11764
|
+
resources: response.resources ?? [],
|
|
11765
|
+
meta: mapMetricsMeta(response.meta)
|
|
11766
|
+
};
|
|
11767
|
+
},
|
|
11768
|
+
listMediaShareVisited: async (params) => {
|
|
11769
|
+
const response = await content_media_metrics_share_visits(client, {
|
|
11770
|
+
period: params?.period,
|
|
11771
|
+
limit: params?.limit
|
|
11772
|
+
});
|
|
11773
|
+
return {
|
|
11774
|
+
resources: response.resources ?? [],
|
|
11775
|
+
meta: mapMetricsMeta(response.meta)
|
|
11776
|
+
};
|
|
11777
|
+
},
|
|
11778
|
+
listPlaylistsVisited: async (params) => {
|
|
11779
|
+
const response = await content_playlists_metrics_visits(client, {
|
|
11780
|
+
period: params?.period,
|
|
11781
|
+
limit: params?.limit
|
|
11782
|
+
});
|
|
11783
|
+
return {
|
|
11784
|
+
resources: response.resources ?? [],
|
|
11785
|
+
meta: mapMetricsMeta(response.meta)
|
|
11786
|
+
};
|
|
11787
|
+
},
|
|
11788
|
+
listPlaylistsShareVisited: async (params) => {
|
|
11789
|
+
const response = await content_playlists_metrics_share_visits(client, {
|
|
11790
|
+
period: params?.period,
|
|
11791
|
+
limit: params?.limit
|
|
11792
|
+
});
|
|
11793
|
+
return {
|
|
11794
|
+
resources: response.resources ?? [],
|
|
11795
|
+
meta: mapMetricsMeta(response.meta)
|
|
11796
|
+
};
|
|
11797
|
+
},
|
|
11798
|
+
listPagesVisited: async (params) => {
|
|
11799
|
+
const response = await content_pages_metrics_visits(client, {
|
|
11800
|
+
period: params?.period,
|
|
11801
|
+
limit: params?.limit
|
|
11802
|
+
});
|
|
11803
|
+
return {
|
|
11804
|
+
resources: response.resources ?? [],
|
|
11805
|
+
meta: mapMetricsMeta(response.meta)
|
|
11806
|
+
};
|
|
11807
|
+
},
|
|
11808
|
+
listPagesShareVisited: async (params) => {
|
|
11809
|
+
const response = await content_pages_metrics_share_visits(client, {
|
|
11810
|
+
period: params?.period,
|
|
11811
|
+
limit: params?.limit
|
|
11812
|
+
});
|
|
11813
|
+
return {
|
|
11814
|
+
resources: response.resources ?? [],
|
|
11815
|
+
meta: mapMetricsMeta(response.meta)
|
|
11816
|
+
};
|
|
11817
|
+
}
|
|
11818
|
+
};
|
|
11819
|
+
}
|
|
11719
11820
|
function mapProductMedia(raw) {
|
|
11720
11821
|
const isVideo = raw.media_type === "video";
|
|
11721
11822
|
const isPdf = raw.media_type === "pdf" || raw.media_type === "document";
|
|
@@ -11752,7 +11853,8 @@ function createPortalContentDomainApiAdapter(client, productsApi) {
|
|
|
11752
11853
|
playlists: createPlaylistsAdapter(client),
|
|
11753
11854
|
fileResources: createFileResourcesAdapter(client),
|
|
11754
11855
|
share: createShareAdapter(client),
|
|
11755
|
-
productMedia: createProductMediaAdapter(productsApi)
|
|
11856
|
+
productMedia: createProductMediaAdapter(productsApi),
|
|
11857
|
+
metrics: createMetricsAdapter(client)
|
|
11756
11858
|
};
|
|
11757
11859
|
}
|
|
11758
11860
|
/**
|
|
@@ -11822,4 +11924,4 @@ function PortalContentApiProvider({ children }) {
|
|
|
11822
11924
|
//#endregion
|
|
11823
11925
|
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
11926
|
|
|
11825
|
-
//# sourceMappingURL=PortalContentApiProvider-
|
|
11927
|
+
//# sourceMappingURL=PortalContentApiProvider-CWRAw9kL.mjs.map
|