@fluid-app/portal-sdk 0.1.314 → 0.1.316
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/{AddressAutocompleteInput-CmieGMsF.cjs → AddressAutocompleteInput-GBK1tcQ7.cjs} +2 -2
- package/dist/{AddressAutocompleteInput-CmieGMsF.cjs.map → AddressAutocompleteInput-GBK1tcQ7.cjs.map} +1 -1
- package/dist/{AddressAutocompleteInput-BmNxLzmA.mjs → AddressAutocompleteInput-QMNGouHg.mjs} +2 -2
- package/dist/{AddressAutocompleteInput-BmNxLzmA.mjs.map → AddressAutocompleteInput-QMNGouHg.mjs.map} +1 -1
- package/dist/{AlertWidget-DB8l5sMN.mjs → AlertWidget-BF_ORULS.mjs} +3 -3
- package/dist/{AlertWidget-DB8l5sMN.mjs.map → AlertWidget-BF_ORULS.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-Dl1yK9d_.mjs → AppDownloadScreen-dfHFK-i6.mjs} +2 -2
- package/dist/{AppDownloadScreen-Dl1yK9d_.mjs.map → AppDownloadScreen-dfHFK-i6.mjs.map} +1 -1
- package/dist/{BulletListWidget-CGb9c7Oo.mjs → BulletListWidget-Bi1pdsJl.mjs} +2 -2
- package/dist/{BulletListWidget-CGb9c7Oo.mjs.map → BulletListWidget-Bi1pdsJl.mjs.map} +1 -1
- package/dist/{CalendarWidget-ByRhEEhr.mjs → CalendarWidget-LnJmsGpv.mjs} +2 -2
- package/dist/{CalendarWidget-ByRhEEhr.mjs.map → CalendarWidget-LnJmsGpv.mjs.map} +1 -1
- package/dist/{CardWidget-CCfS9Jt8.mjs → CardWidget-DLeadzfN.mjs} +2 -2
- package/dist/{CardWidget-CCfS9Jt8.mjs.map → CardWidget-DLeadzfN.mjs.map} +1 -1
- package/dist/{CarouselWidget-DCO2RF7I.mjs → CarouselWidget-C0TQw3h3.mjs} +2 -2
- package/dist/{CarouselWidget-DCO2RF7I.mjs.map → CarouselWidget-C0TQw3h3.mjs.map} +1 -1
- package/dist/{CatchUpWidget-DrQ9M9sw.mjs → CatchUpWidget-C9jZSlF8.mjs} +2 -2
- package/dist/{CatchUpWidget-DrQ9M9sw.mjs.map → CatchUpWidget-C9jZSlF8.mjs.map} +1 -1
- package/dist/{ChartWidget-BzJzDoOH.mjs → ChartWidget-Ba935aP9.mjs} +2 -2
- package/dist/{ChartWidget-BzJzDoOH.mjs.map → ChartWidget-Ba935aP9.mjs.map} +1 -1
- package/dist/{ContactsScreen-mq9oF6UF.mjs → ContactsScreen-BLVMBxiK.mjs} +2 -2
- package/dist/{ContactsScreen-mq9oF6UF.mjs.map → ContactsScreen-BLVMBxiK.mjs.map} +1 -1
- package/dist/{ContainerWidget-DRhQRcEe.mjs → ContainerWidget-Ci3McBxD.mjs} +3 -3
- package/dist/{ContainerWidget-DRhQRcEe.mjs.map → ContainerWidget-Ci3McBxD.mjs.map} +1 -1
- package/dist/{CustomersScreen-0X_7v_YC.mjs → CustomersScreen-N7FMBCv_.mjs} +2 -2
- package/dist/{CustomersScreen-0X_7v_YC.mjs.map → CustomersScreen-N7FMBCv_.mjs.map} +1 -1
- package/dist/{EmbedWidget-Cl41N8Cb.mjs → EmbedWidget-CATRSHDk.mjs} +2 -2
- package/dist/{EmbedWidget-Cl41N8Cb.mjs.map → EmbedWidget-CATRSHDk.mjs.map} +1 -1
- package/dist/{FluidProvider-DXvgVTmO.cjs → FluidProvider-DTdECylI.cjs} +2 -2
- package/dist/{FluidProvider-DXvgVTmO.cjs.map → FluidProvider-DTdECylI.cjs.map} +1 -1
- package/dist/{FluidProvider-DyMRpPnC.mjs → FluidProvider-DcnRMRD4.mjs} +52 -52
- package/dist/{FluidProvider-DyMRpPnC.mjs.map → FluidProvider-DcnRMRD4.mjs.map} +1 -1
- package/dist/{ImageWidget-DLH_uCj7.mjs → ImageWidget-CyTa5HXr.mjs} +2 -2
- package/dist/{ImageWidget-DLH_uCj7.mjs.map → ImageWidget-CyTa5HXr.mjs.map} +1 -1
- package/dist/{LayoutWidget-_Uonr1Cw.mjs → LayoutWidget-D_0t7pau.mjs} +2 -2
- package/dist/{LayoutWidget-_Uonr1Cw.mjs.map → LayoutWidget-D_0t7pau.mjs.map} +1 -1
- package/dist/{LinkWidget-Ch_tN45F.mjs → LinkWidget-C0zTcGH9.mjs} +2 -2
- package/dist/{LinkWidget-Ch_tN45F.mjs.map → LinkWidget-C0zTcGH9.mjs.map} +1 -1
- package/dist/{ListWidget-Cfo53nE-.mjs → ListWidget-ClotDOth.mjs} +2 -2
- package/dist/{ListWidget-Cfo53nE-.mjs.map → ListWidget-ClotDOth.mjs.map} +1 -1
- package/dist/{MessagingScreen-BOTFXwur.mjs → MessagingScreen-BAv7w_a-.mjs} +5 -5
- package/dist/{MessagingScreen-BOTFXwur.mjs.map → MessagingScreen-BAv7w_a-.mjs.map} +1 -1
- package/dist/{MessagingScreen-BfuT9CBj.cjs → MessagingScreen-BqE51MSA.cjs} +3 -3
- package/dist/{MessagingScreen-D5hYQdxm.cjs → MessagingScreen-CkZOYvYf.cjs} +3 -3
- package/dist/{MessagingScreen-D5hYQdxm.cjs.map → MessagingScreen-CkZOYvYf.cjs.map} +1 -1
- package/dist/MessagingScreen-D44VhiKa.mjs +48 -0
- package/dist/{MySiteScreen-CusL1xHg.mjs → MySiteScreen-BpGt2r_e.mjs} +2 -2
- package/dist/{MySiteScreen-CusL1xHg.mjs.map → MySiteScreen-BpGt2r_e.mjs.map} +1 -1
- package/dist/{MySiteWidget-QDIHLxAz.mjs → MySiteWidget-M1WPkOzw.mjs} +2 -2
- package/dist/{MySiteWidget-QDIHLxAz.mjs.map → MySiteWidget-M1WPkOzw.mjs.map} +1 -1
- package/dist/{NestedWidget-By8SJ-ci.mjs → NestedWidget-Muw0upB1.mjs} +2 -2
- package/dist/{NestedWidget-By8SJ-ci.mjs.map → NestedWidget-Muw0upB1.mjs.map} +1 -1
- package/dist/{OrdersScreen-Dp-m303q.mjs → OrdersScreen-ChC-rMWk.mjs} +3 -3
- package/dist/{OrdersScreen-Dp-m303q.mjs.map → OrdersScreen-ChC-rMWk.mjs.map} +1 -1
- package/dist/{OrdersScreen-gzC4EQtO.cjs → OrdersScreen-D8Qu5jXD.cjs} +3 -3
- package/dist/{OrdersScreen-gzC4EQtO.cjs.map → OrdersScreen-D8Qu5jXD.cjs.map} +1 -1
- package/dist/{OrdersScreen-CuNHXmtg.cjs → OrdersScreen-DIckC7xc.cjs} +3 -3
- package/dist/OrdersScreen-Duhvi7tM.mjs +46 -0
- package/dist/{PointsWidget-C1QIWoTR.mjs → PointsWidget-DwPusoNj.mjs} +2 -2
- package/dist/{PointsWidget-C1QIWoTR.mjs.map → PointsWidget-DwPusoNj.mjs.map} +1 -1
- package/dist/{ProfileScreen-1eUj1pwW.mjs → ProfileScreen-BCqvjCKT.mjs} +9 -7
- package/dist/ProfileScreen-BCqvjCKT.mjs.map +1 -0
- package/dist/{ProfileScreen-CQhgY8xm.cjs → ProfileScreen-C6h4c_y3.cjs} +4 -4
- package/dist/ProfileScreen-CRfV9eaL.mjs +49 -0
- package/dist/{ProfileScreen-CCpujV84.cjs → ProfileScreen-SlF6UJg6.cjs} +9 -7
- package/dist/ProfileScreen-SlF6UJg6.cjs.map +1 -0
- package/dist/{QuickLinksWidget-DO-u6AwT.mjs → QuickLinksWidget-CvTQIsle.mjs} +2 -2
- package/dist/{QuickLinksWidget-DO-u6AwT.mjs.map → QuickLinksWidget-CvTQIsle.mjs.map} +1 -1
- package/dist/{QuickShareWidget-CRHs0Ciz.mjs → QuickShareWidget-Vl5yoJvh.mjs} +2 -2
- package/dist/{QuickShareWidget-CRHs0Ciz.mjs.map → QuickShareWidget-Vl5yoJvh.mjs.map} +1 -1
- package/dist/{RecentActivityWidget-DE9ylj-v.mjs → RecentActivityWidget-60GnZ7Dl.mjs} +2 -2
- package/dist/{RecentActivityWidget-DE9ylj-v.mjs.map → RecentActivityWidget-60GnZ7Dl.mjs.map} +1 -1
- package/dist/{SeparatorWidget-CIoLMluh.mjs → SeparatorWidget-euh5w7vj.mjs} +2 -2
- package/dist/{SeparatorWidget-CIoLMluh.mjs.map → SeparatorWidget-euh5w7vj.mjs.map} +1 -1
- package/dist/{ShareablesScreen-PL7O47Gv.cjs → ShareablesScreen--416M3bG.cjs} +2 -2
- package/dist/{ShareablesScreen-yXCq_akC.mjs → ShareablesScreen-BB4X4MDb.mjs} +92 -9
- package/dist/ShareablesScreen-BB4X4MDb.mjs.map +1 -0
- package/dist/{ShareablesScreen-7umiVWD0.mjs → ShareablesScreen-C82JbCTs.mjs} +3 -5
- package/dist/{ShareablesScreen-QclWhq3D.cjs → ShareablesScreen-MeEPViOc.cjs} +90 -7
- package/dist/ShareablesScreen-MeEPViOc.cjs.map +1 -0
- package/dist/{ShopScreen-WInhfklJ.mjs → ShopScreen-BWU2GXtd.mjs} +2 -2
- package/dist/{ShopScreen-WInhfklJ.mjs.map → ShopScreen-BWU2GXtd.mjs.map} +1 -1
- package/dist/{ShopScreen-Bg4zf_JJ.cjs → ShopScreen-BbuAMA4f.cjs} +3 -3
- package/dist/{ShopScreen-CcZC-9I-.cjs → ShopScreen-CfDJpaeD.cjs} +2 -2
- package/dist/{ShopScreen-CcZC-9I-.cjs.map → ShopScreen-CfDJpaeD.cjs.map} +1 -1
- package/dist/ShopScreen-Dixl-47_.mjs +47 -0
- package/dist/{SpacerWidget-CYG_OOlN.mjs → SpacerWidget-BSK1d3yz.mjs} +2 -2
- package/dist/{SpacerWidget-CYG_OOlN.mjs.map → SpacerWidget-BSK1d3yz.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CxXfngW6.mjs → SubscriptionsScreen-0_u-2cUx.mjs} +235 -35
- package/dist/SubscriptionsScreen-0_u-2cUx.mjs.map +1 -0
- package/dist/SubscriptionsScreen-8STRsoh2.mjs +48 -0
- package/dist/{SubscriptionsScreen-CUvV5IzE.cjs → SubscriptionsScreen-BNwDrJ2f.cjs} +4 -4
- package/dist/{SubscriptionsScreen-DhIabp7l.cjs → SubscriptionsScreen-nMZi49Kq.cjs} +234 -34
- package/dist/SubscriptionsScreen-nMZi49Kq.cjs.map +1 -0
- package/dist/{TableWidget-B3iZYt3e.mjs → TableWidget-D9o_Wf3P.mjs} +2 -2
- package/dist/{TableWidget-B3iZYt3e.mjs.map → TableWidget-D9o_Wf3P.mjs.map} +1 -1
- package/dist/{TextWidget-TkRUJ2s_.mjs → TextWidget-B8U3U6MT.mjs} +2 -2
- package/dist/{TextWidget-TkRUJ2s_.mjs.map → TextWidget-B8U3U6MT.mjs.map} +1 -1
- package/dist/{ToDoWidget-sPYwjaiM.mjs → ToDoWidget-G5jYFoWJ.mjs} +2 -2
- package/dist/{ToDoWidget-sPYwjaiM.mjs.map → ToDoWidget-G5jYFoWJ.mjs.map} +1 -1
- package/dist/{UpgradeScreen-Bk26KpcT.mjs → UpgradeScreen-C6l3mpnf.mjs} +2 -2
- package/dist/{UpgradeScreen-Bk26KpcT.mjs.map → UpgradeScreen-C6l3mpnf.mjs.map} +1 -1
- package/dist/{VideoWidget-Cg-MAH4X.mjs → VideoWidget-BBq_SW6C.mjs} +2 -2
- package/dist/{VideoWidget-Cg-MAH4X.mjs.map → VideoWidget-BBq_SW6C.mjs.map} +1 -1
- package/dist/{es-CaDFGDKY.mjs → es-8SY1mBcI.mjs} +2 -2
- package/dist/{es-CaDFGDKY.mjs.map → es-8SY1mBcI.mjs.map} +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.mjs +63 -63
- package/dist/{portal_tenant_content-CrltRlMW.cjs → portal_tenant_content-Cufl7LSv.cjs} +24 -1
- package/dist/portal_tenant_content-Cufl7LSv.cjs.map +1 -0
- package/dist/{portal_tenant_content-CRrn7i-P.mjs → portal_tenant_content-DKIMptZz.mjs} +19 -2
- package/dist/portal_tenant_content-DKIMptZz.mjs.map +1 -0
- package/dist/{use-account-GjZt_eis.mjs → use-account-Du7Mi_Pi.mjs} +2 -2
- package/dist/{use-account-GjZt_eis.mjs.map → use-account-Du7Mi_Pi.mjs.map} +1 -1
- package/dist/{use-account-CEjH1hp5.cjs → use-account-KSCVzEeP.cjs} +2 -2
- package/dist/{use-account-CEjH1hp5.cjs.map → use-account-KSCVzEeP.cjs.map} +1 -1
- package/package.json +14 -14
- package/dist/MessagingScreen-BAWob9Xh.mjs +0 -49
- package/dist/OrdersScreen-BvC2vAPI.mjs +0 -48
- package/dist/ProfileScreen-1eUj1pwW.mjs.map +0 -1
- package/dist/ProfileScreen-B4nb_OZG.mjs +0 -50
- package/dist/ProfileScreen-CCpujV84.cjs.map +0 -1
- package/dist/ShareablesScreen-QclWhq3D.cjs.map +0 -1
- package/dist/ShareablesScreen-yXCq_akC.mjs.map +0 -1
- package/dist/ShopScreen-D_XPdJVC.mjs +0 -49
- package/dist/SubscriptionsScreen-CaVTy07E.mjs +0 -50
- package/dist/SubscriptionsScreen-CxXfngW6.mjs.map +0 -1
- package/dist/SubscriptionsScreen-DhIabp7l.cjs.map +0 -1
- package/dist/portal_tenant_content-CRrn7i-P.mjs.map +0 -1
- package/dist/portal_tenant_content-CrltRlMW.cjs.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { A as playlists_list, C as pages_show, D as playlists_items_list, E as playlists_items_add, M as playlists_update, N as shares_create, O as playlists_items_remove, P as shares_list, S as pages_list, T as playlists_destroy, U as enrollment_packs_list, W as enrollment_packs_show, _ as media_products_add, a as content_playlists_by_shares, 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_by_visits, j as playlists_show, k as playlists_items_reorder, l as dam_assets_create, m as media_create, n as content_media_by_visits, o as content_playlists_by_visits, p as dam_query, r as content_pages_by_shares, s as dam_asset_paths_create, t as content_media_by_shares, u as dam_assets_destroy, v as media_products_list, w as playlists_create, x as media_update, y as media_products_remove } from "./portal_tenant_content-
|
|
1
|
+
import { A as playlists_list, C as pages_show, D as playlists_items_list, E as playlists_items_add, M as playlists_update, N as shares_create, O as playlists_items_remove, P as shares_list, S as pages_list, T as playlists_destroy, U as enrollment_packs_list, W as enrollment_packs_show, _ as media_products_add, a as content_playlists_by_shares, 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_by_visits, j as playlists_show, k as playlists_items_reorder, l as dam_assets_create, m as media_create, n as content_media_by_visits, o as content_playlists_by_visits, p as dam_query, r as content_pages_by_shares, s as dam_asset_paths_create, t as content_media_by_shares, u as dam_assets_destroy, v as media_products_list, w as playlists_create, x as media_update, y as media_products_remove } from "./portal_tenant_content-DKIMptZz.mjs";
|
|
2
2
|
import { n as usePortalTenantClient } from "./PortalTenantClientProvider-_VXOs0t4.mjs";
|
|
3
3
|
import { n as useActiveLocale } from "./locale-context-DGCebJhw.mjs";
|
|
4
4
|
import { $ as DialogDescription, B as DropdownMenuContent, C as SelectContent, Cn as AlertDialogTitle, E as SelectValue, F as FormItem, G as DropdownMenuSeparator, I as FormLabel, J as DropdownMenuSubTrigger, K as DropdownMenuSub, L as FormMessage, M as Form, N as FormControl, On as useZodForm, P as FormField, Q as DialogContent, R as Label, S as Select, Sn as AlertDialogHeader, St as Card, T as SelectTrigger, Tn as Content, V as DropdownMenuItem, X as Dialog, Y as DropdownMenuTrigger, _n as AlertDialogAction, a as Textarea, at as Popover, bn as AlertDialogDescription, c as TabsTrigger, ct as PopoverTrigger, d as Spinner, dn as BreadcrumbLink, f as fluidToast, fn as BreadcrumbList, gn as AlertDialog, h as Skeleton, hn as Badge, i as TooltipTrigger, it as DialogTitle, k as Input, kn as cn, kt as Checkbox, l as Switch, ln as Breadcrumb, m as Slider, mn as BreadcrumbSeparator, n as TooltipContent, nt as DialogOverlay, o as Tabs, pn as BreadcrumbPage, q as DropdownMenuSubContent, r as TooltipProvider, rt as DialogPortal, s as TabsList, st as PopoverContent, t as Tooltip, tt as DialogHeader, un as BreadcrumbItem, vn as AlertDialogCancel, w as SelectItem, wn as Button, wt as CardContent, x as Separator, xn as AlertDialogFooter, yn as AlertDialogContent, z as DropdownMenu } from "./src-DC5QoBhR.mjs";
|
|
5
5
|
import { n as ScreenHeaderBreadcrumbs, t as ScreenHeaderActions } from "./ScreenHeaderContext-C22wBIsP.mjs";
|
|
6
6
|
import { t as createTranslationContext } from "./translation-api-context-factory-BYNOdpnp.mjs";
|
|
7
7
|
import { t as useStore } from "./use-store-fLSf5hUc.mjs";
|
|
8
|
-
import { t as useAccount } from "./use-account-
|
|
8
|
+
import { t as useAccount } from "./use-account-Du7Mi_Pi.mjs";
|
|
9
9
|
import { n as useAppNavigation } from "./AppNavigationContext-DNomMUij.mjs";
|
|
10
10
|
import { n as createDomainTranslations, r as useDomainDict, t as createStaticDictAdapter } from "./static-dict-adapter-CGDunURa.mjs";
|
|
11
11
|
import { s as usePortalProductsApi, t as SearchSort } from "./SearchSort-ByyOEmDa.mjs";
|
|
12
12
|
import { t as PORTAL_MYSITE_KEYS } from "./use-mysite-portal-DmMDb7Mn.mjs";
|
|
13
13
|
import { a as useEditor, o as Placeholder, r as EditorContent, t as StarterKit } from "./dist-D7_77Mei.mjs";
|
|
14
|
-
import { t as useDropzone } from "./es-
|
|
14
|
+
import { t as useDropzone } from "./es-8SY1mBcI.mjs";
|
|
15
15
|
import { n as TextAlign, t as Underline } from "./dist-D8dilWiq.mjs";
|
|
16
16
|
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-UhdC9Man.mjs";
|
|
17
17
|
import React, { PureComponent, createContext, createRef, forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
18
18
|
import { keepPreviousData, useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
19
19
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
-
import { AlertTriangleIcon, AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRight, Camera, Check, CheckIcon, ChevronDownIcon, CirclePlay, CloudIcon, Copy, CropIcon, Download, DownloadIcon, EllipsisVerticalIcon, FileIcon, FileImage, FileText, FileTextIcon, Filter, FolderIcon, FolderPlusIcon, Globe, GraduationCapIcon, GripVertical, Heart, HelpCircle, Image, ImageIcon, ImagesIcon, LaptopIcon, LayersIcon, LayoutGrid, LayoutGridIcon, LinkIcon, List, ListIcon, ListMusic, ListOrdered, LoaderIcon, Mail, Maximize, Menu, MinusIcon, MoreHorizontal, MoreVertical, MoveHorizontalIcon, Package, PackageIcon, Pause, Pencil, Phone, Play, Plus, PlusIcon, RotateCwIcon, Search, SearchIcon, ShoppingBag, ShoppingCart, SlidersHorizontalIcon, Trash2, Trash2Icon, TypeIcon, Upload, UserIcon, Video, VideoIcon, X, XIcon } from "lucide-react";
|
|
20
|
+
import { AlertTriangleIcon, AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRight, Camera, Check, CheckIcon, ChevronDownIcon, ChevronLeft, ChevronRight, CirclePlay, CloudIcon, Copy, CropIcon, Download, DownloadIcon, EllipsisVerticalIcon, FileIcon, FileImage, FileText, FileTextIcon, Filter, FolderIcon, FolderPlusIcon, Globe, GraduationCapIcon, GripVertical, Heart, HelpCircle, Image, ImageIcon, ImagesIcon, LaptopIcon, LayersIcon, LayoutGrid, LayoutGridIcon, LinkIcon, List, ListIcon, ListMusic, ListOrdered, LoaderIcon, Mail, Maximize, Menu, MinusIcon, MoreHorizontal, MoreVertical, MoveHorizontalIcon, Package, PackageIcon, Pause, Pencil, Phone, Play, Plus, PlusIcon, RotateCwIcon, Search, SearchIcon, ShoppingBag, ShoppingCart, SlidersHorizontalIcon, Trash2, Trash2Icon, TypeIcon, Upload, UserIcon, Video, VideoIcon, X, XIcon } from "lucide-react";
|
|
21
21
|
import { createPortal } from "react-dom";
|
|
22
22
|
import * as z$1 from "zod";
|
|
23
23
|
import { z } from "zod";
|
|
@@ -922,11 +922,27 @@ function ProductsScreen({ countryCode, fetchProducts: fetchPortalProducts, onNav
|
|
|
922
922
|
}
|
|
923
923
|
//#endregion
|
|
924
924
|
//#region ../../shareables/ui/src/components/SharePage/SharePageImageDisplay.tsx
|
|
925
|
-
function
|
|
925
|
+
function buildPdfSrc(url, page = 1) {
|
|
926
|
+
try {
|
|
927
|
+
const parsed = new URL(url);
|
|
928
|
+
parsed.hash = `page=${page}&view=FitH`;
|
|
929
|
+
return parsed.toString();
|
|
930
|
+
} catch {
|
|
931
|
+
return `${url}#page=${page}&view=FitH`;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
function SharePageImageDisplay({ displayImage, displayTitle, displayVideo, displayPdf, isVideo, badgeLabel, rounded = true, showBadge = true }) {
|
|
926
935
|
const [isPreviewOpen, setIsPreviewOpen] = useState(false);
|
|
936
|
+
const [currentPage, setCurrentPage] = useState(1);
|
|
927
937
|
const renderImage = useRenderImage();
|
|
938
|
+
const handlePrevPage = () => {
|
|
939
|
+
setCurrentPage((prev) => prev > 1 ? prev - 1 : prev);
|
|
940
|
+
};
|
|
941
|
+
const handleNextPage = () => {
|
|
942
|
+
setCurrentPage((prev) => prev + 1);
|
|
943
|
+
};
|
|
928
944
|
return /* @__PURE__ */ jsxs("div", {
|
|
929
|
-
className: `relative h-full w-full overflow-hidden bg-gray-100 ${rounded ? "rounded-2xl" : ""}`,
|
|
945
|
+
className: `relative flex h-full w-full flex-col overflow-hidden bg-gray-100 ${rounded ? "rounded-2xl" : ""}`,
|
|
930
946
|
children: [
|
|
931
947
|
isVideo ? /* @__PURE__ */ jsx("video", {
|
|
932
948
|
src: displayVideo || "",
|
|
@@ -935,7 +951,45 @@ function SharePageImageDisplay({ displayImage, displayTitle, displayVideo, isVid
|
|
|
935
951
|
muted: true,
|
|
936
952
|
loop: true,
|
|
937
953
|
controls: true
|
|
938
|
-
}) :
|
|
954
|
+
}) : displayPdf ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("iframe", {
|
|
955
|
+
src: buildPdfSrc(displayPdf, currentPage),
|
|
956
|
+
className: "min-h-0 w-full flex-1",
|
|
957
|
+
title: displayTitle || "PDF document"
|
|
958
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
959
|
+
className: "flex items-center justify-center gap-4 py-3",
|
|
960
|
+
children: [
|
|
961
|
+
/* @__PURE__ */ jsx(Button, {
|
|
962
|
+
onClick: handlePrevPage,
|
|
963
|
+
disabled: currentPage <= 1,
|
|
964
|
+
variant: "outline",
|
|
965
|
+
size: "sm",
|
|
966
|
+
className: "h-8 w-8 p-0",
|
|
967
|
+
"aria-label": "Previous page",
|
|
968
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })
|
|
969
|
+
}),
|
|
970
|
+
/* @__PURE__ */ jsx("div", {
|
|
971
|
+
className: "flex items-center gap-2",
|
|
972
|
+
children: /* @__PURE__ */ jsx("input", {
|
|
973
|
+
type: "number",
|
|
974
|
+
min: "1",
|
|
975
|
+
value: currentPage,
|
|
976
|
+
onChange: (e) => {
|
|
977
|
+
const page = parseInt(e.target.value);
|
|
978
|
+
if (page > 0) setCurrentPage(page);
|
|
979
|
+
},
|
|
980
|
+
className: "border-input bg-background w-14 rounded-md border px-2 py-1 text-center text-sm focus:ring-1 focus:outline-none"
|
|
981
|
+
})
|
|
982
|
+
}),
|
|
983
|
+
/* @__PURE__ */ jsx(Button, {
|
|
984
|
+
onClick: handleNextPage,
|
|
985
|
+
variant: "outline",
|
|
986
|
+
size: "sm",
|
|
987
|
+
className: "h-8 w-8 p-0",
|
|
988
|
+
"aria-label": "Next page",
|
|
989
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
|
|
990
|
+
})
|
|
991
|
+
]
|
|
992
|
+
})] }) : renderImage({
|
|
939
993
|
src: displayImage,
|
|
940
994
|
alt: displayTitle,
|
|
941
995
|
fill: true,
|
|
@@ -946,7 +1000,7 @@ function SharePageImageDisplay({ displayImage, displayTitle, displayVideo, isVid
|
|
|
946
1000
|
className: "absolute top-3 right-3 z-0 bg-gray-100 text-gray-900 hover:bg-gray-100",
|
|
947
1001
|
children: badgeLabel
|
|
948
1002
|
}),
|
|
949
|
-
isVideo && /* @__PURE__ */ jsx(Button, {
|
|
1003
|
+
(isVideo || displayPdf) && /* @__PURE__ */ jsx(Button, {
|
|
950
1004
|
onClick: () => setIsPreviewOpen(true),
|
|
951
1005
|
className: "absolute top-3 left-3 z-0 flex h-8 w-8 items-center justify-center rounded-full bg-white/90 text-gray-700 backdrop-blur-sm transition-colors hover:bg-white",
|
|
952
1006
|
variant: "ghost",
|
|
@@ -969,6 +1023,32 @@ function SharePageImageDisplay({ displayImage, displayTitle, displayVideo, isVid
|
|
|
969
1023
|
controls: true,
|
|
970
1024
|
onClick: (e) => e.stopPropagation()
|
|
971
1025
|
})]
|
|
1026
|
+
}),
|
|
1027
|
+
isPreviewOpen && displayPdf && /* @__PURE__ */ jsxs("div", {
|
|
1028
|
+
className: "fixed inset-0 z-9999 flex items-center justify-center bg-black/70 backdrop-blur-sm",
|
|
1029
|
+
onClick: () => setIsPreviewOpen(false),
|
|
1030
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
1031
|
+
onClick: (e) => {
|
|
1032
|
+
e.stopPropagation();
|
|
1033
|
+
setIsPreviewOpen(false);
|
|
1034
|
+
},
|
|
1035
|
+
className: "absolute top-4 right-4 z-10000 flex h-10 w-10 items-center justify-center rounded-full bg-white/90 text-gray-900 backdrop-blur-sm transition-colors hover:bg-white",
|
|
1036
|
+
variant: "ghost",
|
|
1037
|
+
size: "sm",
|
|
1038
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-5 w-5" })
|
|
1039
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
1040
|
+
className: "relative",
|
|
1041
|
+
onClick: (e) => e.stopPropagation(),
|
|
1042
|
+
style: {
|
|
1043
|
+
width: "95vw",
|
|
1044
|
+
height: "90vh"
|
|
1045
|
+
},
|
|
1046
|
+
children: /* @__PURE__ */ jsx("iframe", {
|
|
1047
|
+
src: buildPdfSrc(displayPdf, currentPage),
|
|
1048
|
+
className: "h-full w-full rounded-lg bg-white",
|
|
1049
|
+
title: displayTitle || "PDF document"
|
|
1050
|
+
})
|
|
1051
|
+
})]
|
|
972
1052
|
})
|
|
973
1053
|
]
|
|
974
1054
|
});
|
|
@@ -2161,7 +2241,9 @@ function MediaDetailScreen({ mediaId, onNavigate, onBack }) {
|
|
|
2161
2241
|
const displayTitle = mediaItem?.title || "";
|
|
2162
2242
|
const displayImage = mediaItem?.image_url || "";
|
|
2163
2243
|
const displayVideo = mediaItem?.video_url || "";
|
|
2244
|
+
const displayPdf = mediaItem?.pdf_url || "";
|
|
2164
2245
|
const isVideo = mediaItem?.kind === "video" && !!displayVideo;
|
|
2246
|
+
const isPdf = mediaItem?.kind === "pdf" && !!displayPdf;
|
|
2165
2247
|
const badgeLabel = getBadgeLabel(mediaItem?.kind ?? null, {
|
|
2166
2248
|
video: t("media_type_video"),
|
|
2167
2249
|
image: t("media_type_image"),
|
|
@@ -2209,6 +2291,7 @@ function MediaDetailScreen({ mediaId, onNavigate, onBack }) {
|
|
|
2209
2291
|
displayImage,
|
|
2210
2292
|
displayTitle,
|
|
2211
2293
|
displayVideo: isVideo ? displayVideo : void 0,
|
|
2294
|
+
displayPdf: isPdf ? displayPdf : void 0,
|
|
2212
2295
|
isVideo,
|
|
2213
2296
|
badgeLabel,
|
|
2214
2297
|
rounded: true,
|
|
@@ -13897,4 +13980,4 @@ const shareablesScreenPropertySchema = {
|
|
|
13897
13980
|
//#endregion
|
|
13898
13981
|
export { shareablesScreenPropertySchema as n, ShareablesScreen as t };
|
|
13899
13982
|
|
|
13900
|
-
//# sourceMappingURL=ShareablesScreen-
|
|
13983
|
+
//# sourceMappingURL=ShareablesScreen-BB4X4MDb.mjs.map
|