@fluid-app/portal-sdk 0.1.198 → 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-Bn44plrY.cjs → PortalContentApiProvider-CPnqELEX.cjs} +82 -4
- package/dist/{PortalContentApiProvider-Bn44plrY.cjs.map → PortalContentApiProvider-CPnqELEX.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-tSZDt_f2.mjs → PortalContentApiProvider-CWRAw9kL.mjs} +82 -4
- 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-o7LU64rN.mjs → ProductsScreen-Al6H4ujs.mjs} +3 -3
- package/dist/{ProductsScreen-o7LU64rN.mjs.map → ProductsScreen-Al6H4ujs.mjs.map} +1 -1
- package/dist/{ProductsScreen-Cvzwt-X-.cjs → ProductsScreen-BnwMOZ4-.cjs} +3 -3
- package/dist/{ProductsScreen-uTXJCUPs.cjs → ProductsScreen-CQ5-A8AL.cjs} +3 -3
- package/dist/{ProductsScreen-uTXJCUPs.cjs.map → ProductsScreen-CQ5-A8AL.cjs.map} +1 -1
- package/dist/{ProductsScreen-nryGJv7S.mjs → ProductsScreen-CexZ0gx9.mjs} +3 -3
- 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-Dw818mdV.cjs → ShareablesScreen-CmZ5CX99.cjs} +3 -3
- package/dist/{ShareablesScreen-Dw818mdV.cjs.map → ShareablesScreen-CmZ5CX99.cjs.map} +1 -1
- package/dist/{ShareablesScreen-DPAjypds.mjs → ShareablesScreen-CzTU7e0l.mjs} +3 -3
- package/dist/{ShareablesScreen-DPAjypds.mjs.map → ShareablesScreen-CzTU7e0l.mjs.map} +1 -1
- package/dist/{ShareablesScreen-iUMt1ep3.cjs → ShareablesScreen-DujtMoAi.cjs} +3 -3
- package/dist/{ShareablesScreen-DrMFfqJl.mjs → ShareablesScreen-yscAsNpq.mjs} +3 -3
- 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 +18 -18
- package/dist/FluidProvider-CGqVqcHP.mjs.map +0 -1
- package/dist/FluidProvider-j5QX1XRm.cjs.map +0 -1
- package/dist/PortalContentApiProvider-tSZDt_f2.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-tSZDt_f2.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";
|
|
@@ -11740,6 +11740,83 @@ function createFileResourcesAdapter(client) {
|
|
|
11740
11740
|
};
|
|
11741
11741
|
} };
|
|
11742
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
|
+
}
|
|
11743
11820
|
function mapProductMedia(raw) {
|
|
11744
11821
|
const isVideo = raw.media_type === "video";
|
|
11745
11822
|
const isPdf = raw.media_type === "pdf" || raw.media_type === "document";
|
|
@@ -11776,7 +11853,8 @@ function createPortalContentDomainApiAdapter(client, productsApi) {
|
|
|
11776
11853
|
playlists: createPlaylistsAdapter(client),
|
|
11777
11854
|
fileResources: createFileResourcesAdapter(client),
|
|
11778
11855
|
share: createShareAdapter(client),
|
|
11779
|
-
productMedia: createProductMediaAdapter(productsApi)
|
|
11856
|
+
productMedia: createProductMediaAdapter(productsApi),
|
|
11857
|
+
metrics: createMetricsAdapter(client)
|
|
11780
11858
|
};
|
|
11781
11859
|
}
|
|
11782
11860
|
/**
|
|
@@ -11846,4 +11924,4 @@ function PortalContentApiProvider({ children }) {
|
|
|
11846
11924
|
//#endregion
|
|
11847
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 };
|
|
11848
11926
|
|
|
11849
|
-
//# sourceMappingURL=PortalContentApiProvider-
|
|
11927
|
+
//# sourceMappingURL=PortalContentApiProvider-CWRAw9kL.mjs.map
|