@fluid-app/portal-sdk 0.1.215 → 0.1.217
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/{AppDownloadScreen-rZkhl4Q9.cjs → AppDownloadScreen-CBoC31wL.cjs} +2 -2
- package/dist/{AppDownloadScreen-rZkhl4Q9.cjs.map → AppDownloadScreen-CBoC31wL.cjs.map} +1 -1
- package/dist/{AppDownloadScreen-CTqsyx3n.mjs → AppDownloadScreen-CZ0EOIZ5.mjs} +2 -2
- package/dist/{AppDownloadScreen-CTqsyx3n.mjs.map → AppDownloadScreen-CZ0EOIZ5.mjs.map} +1 -1
- package/dist/{AppNavigationContext-N5oUbgNL.cjs → AppNavigationContext-CbK8uCjS.cjs} +1 -1
- package/dist/{AppNavigationContext-N5oUbgNL.cjs.map → AppNavigationContext-CbK8uCjS.cjs.map} +1 -1
- package/dist/{AppNavigationContext-BW3lSpfT.mjs → AppNavigationContext-Cq3BDKSf.mjs} +1 -1
- package/dist/{AppNavigationContext-BW3lSpfT.mjs.map → AppNavigationContext-Cq3BDKSf.mjs.map} +1 -1
- package/dist/{CardWidget-Scr2BDrZ.mjs → CardWidget-B1-STzEY.mjs} +2 -2
- package/dist/{CardWidget-Scr2BDrZ.mjs.map → CardWidget-B1-STzEY.mjs.map} +1 -1
- package/dist/{CardWidget-BAl-3dJF.cjs → CardWidget-CdrGXdUr.cjs} +2 -2
- package/dist/{CardWidget-BAl-3dJF.cjs.map → CardWidget-CdrGXdUr.cjs.map} +1 -1
- package/dist/{CardWidget-CFtUC9RB.cjs → CardWidget-Cze0MIZ4.cjs} +2 -2
- package/dist/{ContactsScreen-UnYKZlkb.cjs → ContactsScreen-CSY7Of6x.cjs} +6 -6
- package/dist/{ContactsScreen-UnYKZlkb.cjs.map → ContactsScreen-CSY7Of6x.cjs.map} +1 -1
- package/dist/{ContactsScreen-DscaUwNM.mjs → ContactsScreen-CbV-r1fn.mjs} +6 -6
- package/dist/{ContactsScreen-DscaUwNM.mjs.map → ContactsScreen-CbV-r1fn.mjs.map} +1 -1
- package/dist/{ContactsScreen-Cs9bKvMr.cjs → ContactsScreen-D-g7XEB-.cjs} +6 -6
- package/dist/{ContainerWidget-DXgM6Mxa.cjs → ContainerWidget-D89LdXUJ.cjs} +2 -2
- package/dist/{ContainerWidget-DXgM6Mxa.cjs.map → ContainerWidget-D89LdXUJ.cjs.map} +1 -1
- package/dist/{ContainerWidget-CxAu29Rz.mjs → ContainerWidget-DQwZ-weo.mjs} +2 -2
- package/dist/{ContainerWidget-CxAu29Rz.mjs.map → ContainerWidget-DQwZ-weo.mjs.map} +1 -1
- package/dist/{ContainerWidget-DV-Ng6tH.cjs → ContainerWidget-oF_cuYkn.cjs} +3 -3
- package/dist/{CustomersScreen-BgbvmBoF.mjs → CustomersScreen-DSNokGQu.mjs} +1 -1
- package/dist/{CustomersScreen-BgbvmBoF.mjs.map → CustomersScreen-DSNokGQu.mjs.map} +1 -1
- package/dist/{CustomersScreen-CKMopTNU.cjs → CustomersScreen-Rf5uucRx.cjs} +1 -1
- package/dist/{CustomersScreen-CKMopTNU.cjs.map → CustomersScreen-Rf5uucRx.cjs.map} +1 -1
- package/dist/EmbedWidget-BysWpVIC.cjs +684 -0
- package/dist/EmbedWidget-BysWpVIC.cjs.map +1 -0
- package/dist/EmbedWidget-tU8njf5H.mjs +654 -0
- package/dist/EmbedWidget-tU8njf5H.mjs.map +1 -0
- package/dist/{FluidProvider-_xK5H6F3.mjs → FluidProvider-02beRTpR.mjs} +27 -24
- package/dist/{FluidProvider-_xK5H6F3.mjs.map → FluidProvider-02beRTpR.mjs.map} +1 -1
- package/dist/{FluidProvider-CG8EpvkS.cjs → FluidProvider-BgFmXtHo.cjs} +27 -24
- package/dist/{FluidProvider-CG8EpvkS.cjs.map → FluidProvider-BgFmXtHo.cjs.map} +1 -1
- package/dist/{InfiniteScrollSentinel-CUU5C88p.mjs → InfiniteScrollSentinel-DCxWTHrA.mjs} +1 -1
- package/dist/{InfiniteScrollSentinel-CUU5C88p.mjs.map → InfiniteScrollSentinel-DCxWTHrA.mjs.map} +1 -1
- package/dist/{InfiniteScrollSentinel-BGXp134B.cjs → InfiniteScrollSentinel-DPyNdLiU.cjs} +1 -1
- package/dist/{InfiniteScrollSentinel-BGXp134B.cjs.map → InfiniteScrollSentinel-DPyNdLiU.cjs.map} +1 -1
- package/dist/{LayoutWidget-MTchacII.mjs → LayoutWidget-BqzP7L10.mjs} +2 -2
- package/dist/{LayoutWidget-MTchacII.mjs.map → LayoutWidget-BqzP7L10.mjs.map} +1 -1
- package/dist/{LayoutWidget-CSouwqRJ.cjs → LayoutWidget-CTxbrzsY.cjs} +2 -2
- package/dist/{LayoutWidget-BbABNLAR.cjs → LayoutWidget-Dh8JWX2-.cjs} +2 -2
- package/dist/{LayoutWidget-BbABNLAR.cjs.map → LayoutWidget-Dh8JWX2-.cjs.map} +1 -1
- package/dist/{MessagingScreen-p-ZeCwpa.cjs → MessagingScreen-BkLcqJbs.cjs} +5 -5
- package/dist/{MessagingScreen-p-ZeCwpa.cjs.map → MessagingScreen-BkLcqJbs.cjs.map} +1 -1
- package/dist/{MessagingScreen-C58vXVET.mjs → MessagingScreen-CJlVOY5R.mjs} +3 -3
- package/dist/{MessagingScreen-C58vXVET.mjs.map → MessagingScreen-CJlVOY5R.mjs.map} +1 -1
- package/dist/{MessagingScreen-DgmMx15d.cjs → MessagingScreen-sN7aBvGk.cjs} +17 -16
- package/dist/{MySiteScreen-CiQcyMSg.cjs → MySiteScreen-B0aOIzU4.cjs} +4 -4
- package/dist/{MySiteScreen-Cjkw8dKY.cjs → MySiteScreen-B1L8coGs.cjs} +4 -4
- package/dist/{MySiteScreen-Cjkw8dKY.cjs.map → MySiteScreen-B1L8coGs.cjs.map} +1 -1
- package/dist/{MySiteScreen-Bg0gFxf0.mjs → MySiteScreen-DUN5TTvU.mjs} +4 -4
- package/dist/{MySiteScreen-Bg0gFxf0.mjs.map → MySiteScreen-DUN5TTvU.mjs.map} +1 -1
- package/dist/OrdersScreen-BmwiVbLV.cjs +9 -0
- package/dist/{OrdersScreen-BklAH7FW.mjs → OrdersScreen-D-SgUl2a.mjs} +4 -4
- package/dist/{OrdersScreen-BklAH7FW.mjs.map → OrdersScreen-D-SgUl2a.mjs.map} +1 -1
- package/dist/{OrdersScreen-DPSqqmhe.cjs → OrdersScreen-Dp7SzXVv.cjs} +4 -4
- package/dist/{OrdersScreen-DPSqqmhe.cjs.map → OrdersScreen-Dp7SzXVv.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-CB32GRS5.mjs → PortalContentApiProvider-C9FeVwRb.mjs} +7 -7
- package/dist/{PortalContentApiProvider-CB32GRS5.mjs.map → PortalContentApiProvider-C9FeVwRb.mjs.map} +1 -1
- package/dist/{PortalContentApiProvider-BU3UTVjk.cjs → PortalContentApiProvider-RXBp8FNj.cjs} +8 -8
- package/dist/{PortalContentApiProvider-BU3UTVjk.cjs.map → PortalContentApiProvider-RXBp8FNj.cjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-DHni3Y1V.mjs → PortalProductsApiProvider-CE71zDj9.mjs} +1 -1
- package/dist/{PortalProductsApiProvider-DHni3Y1V.mjs.map → PortalProductsApiProvider-CE71zDj9.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-DnhHoraV.cjs → PortalProductsApiProvider-Ca1oeTtJ.cjs} +1 -1
- package/dist/{PortalProductsApiProvider-DnhHoraV.cjs.map → PortalProductsApiProvider-Ca1oeTtJ.cjs.map} +1 -1
- package/dist/{ProductsScreen-DNMT2I69.cjs → ProductsScreen-BD53vh6Y.cjs} +6 -6
- package/dist/{ProductsScreen-DNMT2I69.cjs.map → ProductsScreen-BD53vh6Y.cjs.map} +1 -1
- package/dist/{ProductsScreen-C8GO63G2.mjs → ProductsScreen-BtUZxJCt.mjs} +6 -6
- package/dist/{ProductsScreen-C8GO63G2.mjs.map → ProductsScreen-BtUZxJCt.mjs.map} +1 -1
- package/dist/ProductsScreen-DNpzJ6lh.cjs +15 -0
- package/dist/ProductsScreen-pkOeOW8M.mjs +13 -0
- package/dist/{ProfileScreen-CfCewCM7.cjs → ProfileScreen-Bgo6iTKe.cjs} +16 -15
- package/dist/{ProfileScreen-TLKSlv4_.mjs → ProfileScreen-CNYqUDNB.mjs} +4 -4
- package/dist/{ProfileScreen-TLKSlv4_.mjs.map → ProfileScreen-CNYqUDNB.mjs.map} +1 -1
- package/dist/{ProfileScreen-T7HQoFiw.cjs → ProfileScreen-rPqgsNCc.cjs} +4 -4
- package/dist/{ProfileScreen-T7HQoFiw.cjs.map → ProfileScreen-rPqgsNCc.cjs.map} +1 -1
- package/dist/QuickLinksWidget-BwEGtrV0.cjs +563 -0
- package/dist/QuickLinksWidget-BwEGtrV0.cjs.map +1 -0
- package/dist/QuickLinksWidget-D8RlDvkB.mjs +546 -0
- package/dist/QuickLinksWidget-D8RlDvkB.mjs.map +1 -0
- package/dist/{QuickShareWidget-CkPsax9Z.mjs → QuickShareWidget-BURtESV2.mjs} +1 -1
- package/dist/{QuickShareWidget-CkPsax9Z.mjs.map → QuickShareWidget-BURtESV2.mjs.map} +1 -1
- package/dist/{QuickShareWidget-BwOhBs6H.cjs → QuickShareWidget-D171Z9mX.cjs} +1 -1
- package/dist/{QuickShareWidget-BwOhBs6H.cjs.map → QuickShareWidget-D171Z9mX.cjs.map} +1 -1
- package/dist/{RecentActivityWidget-Bg7N2Lpp.cjs → RecentActivityWidget-BmE7_-iJ.cjs} +1 -1
- package/dist/{RecentActivityWidget-Bg7N2Lpp.cjs.map → RecentActivityWidget-BmE7_-iJ.cjs.map} +1 -1
- package/dist/{RecentActivityWidget-8LkuMmbc.mjs → RecentActivityWidget-Dy5SAx61.mjs} +1 -1
- package/dist/{RecentActivityWidget-8LkuMmbc.mjs.map → RecentActivityWidget-Dy5SAx61.mjs.map} +1 -1
- package/dist/{ScreenHeaderContext-FYyYk97y.mjs → ScreenHeaderContext-BDjNSUfr.mjs} +1 -1
- package/dist/{ScreenHeaderContext-FYyYk97y.mjs.map → ScreenHeaderContext-BDjNSUfr.mjs.map} +1 -1
- package/dist/{ScreenHeaderContext-DA8cEfP-.cjs → ScreenHeaderContext-BXgWydjB.cjs} +1 -1
- package/dist/{ScreenHeaderContext-DA8cEfP-.cjs.map → ScreenHeaderContext-BXgWydjB.cjs.map} +1 -1
- package/dist/{ScreenRenderer-Cv2rxvtF.mjs → ScreenRenderer-BqDTKZEZ.mjs} +2 -1
- package/dist/ScreenRenderer-BqDTKZEZ.mjs.map +1 -0
- package/dist/{ScreenRenderer-DfeRRgBO.cjs → ScreenRenderer-Cg85jtXq.cjs} +2 -1
- package/dist/ScreenRenderer-Cg85jtXq.cjs.map +1 -0
- package/dist/{SearchSort-CPkF1EaA.cjs → SearchSort-DHDDqero.cjs} +1 -1
- package/dist/{SearchSort-CPkF1EaA.cjs.map → SearchSort-DHDDqero.cjs.map} +1 -1
- package/dist/{SearchSort-YYd9-Hdf.mjs → SearchSort-DXBt-uj0.mjs} +1 -1
- package/dist/{SearchSort-YYd9-Hdf.mjs.map → SearchSort-DXBt-uj0.mjs.map} +1 -1
- package/dist/{SeparatorWidget-DeCY23G9.mjs → SeparatorWidget-CheNBJwz.mjs} +1 -1
- package/dist/{SeparatorWidget-DeCY23G9.mjs.map → SeparatorWidget-CheNBJwz.mjs.map} +1 -1
- package/dist/{SeparatorWidget-R9PjLUJh.cjs → SeparatorWidget-CjVHbHzQ.cjs} +1 -1
- package/dist/{SeparatorWidget-R9PjLUJh.cjs.map → SeparatorWidget-CjVHbHzQ.cjs.map} +1 -1
- package/dist/{ShareablesScreen-DRpf5u05.mjs → ShareablesScreen-CW1e9x4K.mjs} +7 -7
- package/dist/{ShareablesScreen-DRpf5u05.mjs.map → ShareablesScreen-CW1e9x4K.mjs.map} +1 -1
- package/dist/ShareablesScreen-D1J2Kljk.mjs +15 -0
- package/dist/{ShareablesScreen-D9Q0dQhz.cjs → ShareablesScreen-DC8xXUo4.cjs} +7 -7
- package/dist/{ShareablesScreen-D9Q0dQhz.cjs.map → ShareablesScreen-DC8xXUo4.cjs.map} +1 -1
- package/dist/ShareablesScreen-smU5pGyH.cjs +17 -0
- package/dist/{ShopScreen-u8i7hVdL.mjs → ShopScreen-B9lHJ8L2.mjs} +7 -7
- package/dist/{ShopScreen-u8i7hVdL.mjs.map → ShopScreen-B9lHJ8L2.mjs.map} +1 -1
- package/dist/{ShopScreen-C7aJIMGh.cjs → ShopScreen-DUHzufCU.cjs} +7 -7
- package/dist/{ShopScreen-C7aJIMGh.cjs.map → ShopScreen-DUHzufCU.cjs.map} +1 -1
- package/dist/{ShopScreen-DLcv_4Iu.cjs → ShopScreen-g6FQ4R1_.cjs} +18 -17
- package/dist/{SpacerWidget-CvuJeeAj.mjs → SpacerWidget-D-WjN1xb.mjs} +1 -1
- package/dist/{SpacerWidget-CvuJeeAj.mjs.map → SpacerWidget-D-WjN1xb.mjs.map} +1 -1
- package/dist/{SpacerWidget-CYHjTF38.cjs → SpacerWidget-D9lOLPr5.cjs} +1 -1
- package/dist/{SpacerWidget-CYHjTF38.cjs.map → SpacerWidget-D9lOLPr5.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-oMAid0AM.cjs → SubscriptionsScreen-8zup9pEX.cjs} +5 -5
- package/dist/{SubscriptionsScreen-rYK8dckl.mjs → SubscriptionsScreen-CwUdB9rW.mjs} +7 -7
- package/dist/{SubscriptionsScreen-rYK8dckl.mjs.map → SubscriptionsScreen-CwUdB9rW.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-C1GXipTn.cjs → SubscriptionsScreen-DKyatNoJ.cjs} +8 -8
- package/dist/{SubscriptionsScreen-C1GXipTn.cjs.map → SubscriptionsScreen-DKyatNoJ.cjs.map} +1 -1
- package/dist/{TableWidget-CT7Ydlw8.cjs → TableWidget-C2BG7wMg.cjs} +1 -1
- package/dist/{TableWidget-BAwpJ-Vb.mjs → TableWidget-CDVOq4aN.mjs} +1 -1
- package/dist/{TableWidget-BAwpJ-Vb.mjs.map → TableWidget-CDVOq4aN.mjs.map} +1 -1
- package/dist/{TableWidget-QlLGELmp.cjs → TableWidget-D5gAsgv6.cjs} +1 -1
- package/dist/{TableWidget-QlLGELmp.cjs.map → TableWidget-D5gAsgv6.cjs.map} +1 -1
- package/dist/{ToDoWidget-DT30Nnjt.mjs → ToDoWidget-BRNDE3MH.mjs} +1 -1
- package/dist/{ToDoWidget-DT30Nnjt.mjs.map → ToDoWidget-BRNDE3MH.mjs.map} +1 -1
- package/dist/{ToDoWidget-Tcy4VK1v.cjs → ToDoWidget-x86UGKLQ.cjs} +1 -1
- package/dist/{ToDoWidget-Tcy4VK1v.cjs.map → ToDoWidget-x86UGKLQ.cjs.map} +1 -1
- package/dist/{UpgradeScreen-BZ92a6w9.cjs → UpgradeScreen-BdY0rCoF.cjs} +1 -1
- package/dist/{UpgradeScreen-CNieK9ud.mjs → UpgradeScreen-Dau5Elx4.mjs} +1 -1
- package/dist/{UpgradeScreen-CNieK9ud.mjs.map → UpgradeScreen-Dau5Elx4.mjs.map} +1 -1
- package/dist/{UpgradeScreen-BEHFQRlO.cjs → UpgradeScreen-DrBa2uzD.cjs} +1 -1
- package/dist/{UpgradeScreen-BEHFQRlO.cjs.map → UpgradeScreen-DrBa2uzD.cjs.map} +1 -1
- package/dist/{VideoWidget-CK4I8Xmv.cjs → VideoWidget-BIokMYTX.cjs} +1 -1
- package/dist/{VideoWidget-CK4I8Xmv.cjs.map → VideoWidget-BIokMYTX.cjs.map} +1 -1
- package/dist/{VideoWidget-BE_cv0Fm.mjs → VideoWidget-BMIt-eiQ.mjs} +1 -1
- package/dist/{VideoWidget-BE_cv0Fm.mjs.map → VideoWidget-BMIt-eiQ.mjs.map} +1 -1
- package/dist/{dist-BRT-FAUb.cjs → dist-CGuUUVNt.cjs} +1 -1
- package/dist/{dist-BRT-FAUb.cjs.map → dist-CGuUUVNt.cjs.map} +1 -1
- package/dist/{dist-DBPpJ567.mjs → dist-Cis8L6HV.mjs} +2 -2
- package/dist/{dist-DBPpJ567.mjs.map → dist-Cis8L6HV.mjs.map} +1 -1
- package/dist/{dist-BETEuYfn.mjs → dist-D39Yezrv.mjs} +1 -1
- package/dist/{dist-BETEuYfn.mjs.map → dist-D39Yezrv.mjs.map} +1 -1
- package/dist/{dist-Y1iryX8H.cjs → dist-DDZMFlal.cjs} +2 -2
- package/dist/{dist-Y1iryX8H.cjs.map → dist-DDZMFlal.cjs.map} +1 -1
- package/dist/{dist-Ck1Xpuzh.cjs → dist-DWs3-WOI.cjs} +1 -1
- package/dist/{dist-Ck1Xpuzh.cjs.map → dist-DWs3-WOI.cjs.map} +1 -1
- package/dist/{es-Dr47illR.cjs → es-DHLLltoR.cjs} +1 -1
- package/dist/{es-Dr47illR.cjs.map → es-DHLLltoR.cjs.map} +1 -1
- package/dist/{format-C3sl4r8U.cjs → format-B8vxOIbt.cjs} +1 -1
- package/dist/{format-C3sl4r8U.cjs.map → format-B8vxOIbt.cjs.map} +1 -1
- package/dist/index.cjs +66 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +141 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +141 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +64 -63
- package/dist/index.mjs.map +1 -1
- package/dist/{order-status-badge-CPPesrcx.cjs → order-status-badge-CAu3UIzD.cjs} +3 -3
- package/dist/{order-status-badge-CPPesrcx.cjs.map → order-status-badge-CAu3UIzD.cjs.map} +1 -1
- package/dist/{order-status-badge-B2_tZYhG.mjs → order-status-badge-b0F_B7mu.mjs} +3 -3
- package/dist/{order-status-badge-B2_tZYhG.mjs.map → order-status-badge-b0F_B7mu.mjs.map} +1 -1
- package/dist/{sortable.esm-DFTEWOHN.mjs → sortable.esm-CJLSD-Ce.mjs} +1 -1
- package/dist/{sortable.esm-DFTEWOHN.mjs.map → sortable.esm-CJLSD-Ce.mjs.map} +1 -1
- package/dist/{use-account-8Bv6INGF.cjs → use-account-C5QI6NSe.cjs} +1 -1
- package/dist/{use-account-8Bv6INGF.cjs.map → use-account-C5QI6NSe.cjs.map} +1 -1
- package/dist/{use-account-B16Tor2Q.mjs → use-account-Cvig0exB.mjs} +1 -1
- package/dist/{use-account-B16Tor2Q.mjs.map → use-account-Cvig0exB.mjs.map} +1 -1
- package/dist/{use-mysite-portal-axe_PFzR.mjs → use-mysite-portal-BV-BP3CE.mjs} +1 -1
- package/dist/{use-mysite-portal-axe_PFzR.mjs.map → use-mysite-portal-BV-BP3CE.mjs.map} +1 -1
- package/dist/{use-mysite-portal-CJBowMpK.cjs → use-mysite-portal-DzDYRU0u.cjs} +1 -1
- package/dist/{use-mysite-portal-CJBowMpK.cjs.map → use-mysite-portal-DzDYRU0u.cjs.map} +1 -1
- package/dist/{use-store-CdYGxnIk.cjs → use-store-BLcehk1A.cjs} +1 -1
- package/dist/{use-store-CdYGxnIk.cjs.map → use-store-BLcehk1A.cjs.map} +1 -1
- package/dist/{use-store-BnHhQDYo.mjs → use-store-efmQhKpB.mjs} +1 -1
- package/dist/{use-store-BnHhQDYo.mjs.map → use-store-efmQhKpB.mjs.map} +1 -1
- package/package.json +15 -15
- package/dist/EmbedWidget-C3mGurOv.mjs +0 -221
- package/dist/EmbedWidget-C3mGurOv.mjs.map +0 -1
- package/dist/EmbedWidget-PIWoA9sU.cjs +0 -251
- package/dist/EmbedWidget-PIWoA9sU.cjs.map +0 -1
- package/dist/OrdersScreen-CH4wrbZJ.cjs +0 -9
- package/dist/ProductsScreen-A9LG5Pk7.mjs +0 -13
- package/dist/ProductsScreen-DFFOXSgX.cjs +0 -15
- package/dist/ScreenRenderer-Cv2rxvtF.mjs.map +0 -1
- package/dist/ScreenRenderer-DfeRRgBO.cjs.map +0 -1
- package/dist/ShareablesScreen-CoOLXqJ6.cjs +0 -17
- package/dist/ShareablesScreen-ysqC_x6z.mjs +0 -15
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
import { r as __exportAll } from "./es-Cw_Kikmu.mjs";
|
|
2
|
+
import { i as getBorderColorField, l as getColorField, n as borderWidthClasses, o as getBorderRadiusField, p as getHeightField, s as getBorderWidthField, t as borderColorClasses } from "./registries-DT36l-bR.mjs";
|
|
3
|
+
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Bell, BookOpen, BookmarkIcon, Calendar, ExternalLink, Gift, Globe, GraduationCap, Heart, Maximize2, RotateCw, ShoppingBag, Sparkles, Star, Trophy, User, Video, X, Zap } from "lucide-react";
|
|
6
|
+
import { createPortal } from "react-dom";
|
|
7
|
+
//#region ../widgets/src/contexts/RepUserContext.tsx
|
|
8
|
+
const RepUserContext = createContext(null);
|
|
9
|
+
function RepUserProvider({ user, children }) {
|
|
10
|
+
const value = useMemo(() => user, [user]);
|
|
11
|
+
return /* @__PURE__ */ jsx(RepUserContext.Provider, {
|
|
12
|
+
value,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function useRepUser() {
|
|
17
|
+
return useContext(RepUserContext);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../widgets/src/widgets/EmbedWidget.tsx
|
|
21
|
+
var EmbedWidget_exports = /* @__PURE__ */ __exportAll({
|
|
22
|
+
EmbedWidget: () => EmbedWidget,
|
|
23
|
+
embedWidgetPropertySchema: () => embedWidgetPropertySchema
|
|
24
|
+
});
|
|
25
|
+
function isValidHttpUrl(urlString) {
|
|
26
|
+
try {
|
|
27
|
+
const parsed = new URL(urlString);
|
|
28
|
+
return parsed.protocol === "https:" || parsed.protocol === "http:";
|
|
29
|
+
} catch {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function useEmbedUrl(url, publicId) {
|
|
34
|
+
return useMemo(() => {
|
|
35
|
+
const normalizedUrl = url && (url.startsWith("http://") || url.startsWith("https://")) ? url : url ? `https://${url}` : "";
|
|
36
|
+
let isValidUrl = false;
|
|
37
|
+
if (normalizedUrl) try {
|
|
38
|
+
const parsed = new URL(normalizedUrl);
|
|
39
|
+
isValidUrl = (parsed.protocol === "http:" || parsed.protocol === "https:") && (parsed.hostname.includes(".") || parsed.hostname === "localhost");
|
|
40
|
+
} catch {}
|
|
41
|
+
if (!isValidUrl || !publicId) return {
|
|
42
|
+
normalizedUrl,
|
|
43
|
+
isValidUrl,
|
|
44
|
+
iframeSrc: normalizedUrl
|
|
45
|
+
};
|
|
46
|
+
const urlObj = new URL(normalizedUrl);
|
|
47
|
+
urlObj.searchParams.set("public_id", publicId);
|
|
48
|
+
return {
|
|
49
|
+
normalizedUrl,
|
|
50
|
+
isValidUrl,
|
|
51
|
+
iframeSrc: urlObj.toString()
|
|
52
|
+
};
|
|
53
|
+
}, [url, publicId]);
|
|
54
|
+
}
|
|
55
|
+
function useEmbedPostMessageBridge({ iframeRef, normalizedUrl, isValidUrl, editMode }) {
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (!isValidUrl || editMode) return;
|
|
58
|
+
const expectedOrigin = new URL(normalizedUrl).origin;
|
|
59
|
+
function handleMessage(event) {
|
|
60
|
+
if (event.origin !== expectedOrigin) return;
|
|
61
|
+
if (event.source !== iframeRef.current?.contentWindow) return;
|
|
62
|
+
let data;
|
|
63
|
+
if (typeof event.data === "string") try {
|
|
64
|
+
data = JSON.parse(event.data);
|
|
65
|
+
} catch {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
else data = event.data;
|
|
69
|
+
if (typeof data === "object" && data !== null && "type" in data && data.type === "OPEN_FULL_SCREEN_WEBVIEW") {
|
|
70
|
+
const messageUrl = data.url;
|
|
71
|
+
if (messageUrl && isValidHttpUrl(messageUrl)) window.open(messageUrl, "_blank", "noopener,noreferrer");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener("message", handleMessage);
|
|
75
|
+
return () => window.removeEventListener("message", handleMessage);
|
|
76
|
+
}, [
|
|
77
|
+
iframeRef,
|
|
78
|
+
normalizedUrl,
|
|
79
|
+
isValidUrl,
|
|
80
|
+
editMode
|
|
81
|
+
]);
|
|
82
|
+
}
|
|
83
|
+
function useModalBodyScrollLock(isOpen) {
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
if (!isOpen) return;
|
|
86
|
+
const previousOverflow = document.body.style.overflow;
|
|
87
|
+
document.body.style.overflow = "hidden";
|
|
88
|
+
return () => {
|
|
89
|
+
document.body.style.overflow = previousOverflow;
|
|
90
|
+
};
|
|
91
|
+
}, [isOpen]);
|
|
92
|
+
}
|
|
93
|
+
function useModalEscapeClose(isOpen, onClose) {
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (!isOpen) return;
|
|
96
|
+
const handleKeyDown = (event) => {
|
|
97
|
+
if (event.key === "Escape") onClose();
|
|
98
|
+
};
|
|
99
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
100
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
101
|
+
}, [isOpen, onClose]);
|
|
102
|
+
}
|
|
103
|
+
function useDialogFocusRestore(dialogRef) {
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
const previouslyFocused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
106
|
+
dialogRef.current?.focus();
|
|
107
|
+
return () => {
|
|
108
|
+
previouslyFocused?.focus();
|
|
109
|
+
};
|
|
110
|
+
}, [dialogRef]);
|
|
111
|
+
}
|
|
112
|
+
const HEADER_ICON_MAP = {
|
|
113
|
+
GraduationCap,
|
|
114
|
+
Video,
|
|
115
|
+
BookOpen,
|
|
116
|
+
Globe,
|
|
117
|
+
User,
|
|
118
|
+
Star,
|
|
119
|
+
Heart,
|
|
120
|
+
Trophy,
|
|
121
|
+
Sparkles,
|
|
122
|
+
Zap,
|
|
123
|
+
Gift,
|
|
124
|
+
ShoppingBag,
|
|
125
|
+
Bell,
|
|
126
|
+
Calendar,
|
|
127
|
+
Bookmark: BookmarkIcon
|
|
128
|
+
};
|
|
129
|
+
const HEADER_ICON_OPTIONS = [
|
|
130
|
+
{
|
|
131
|
+
label: "Graduation Cap",
|
|
132
|
+
value: "GraduationCap"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: "Video",
|
|
136
|
+
value: "Video"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: "Book",
|
|
140
|
+
value: "BookOpen"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: "Globe",
|
|
144
|
+
value: "Globe"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: "User",
|
|
148
|
+
value: "User"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
label: "Star",
|
|
152
|
+
value: "Star"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: "Heart",
|
|
156
|
+
value: "Heart"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: "Trophy",
|
|
160
|
+
value: "Trophy"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: "Sparkles",
|
|
164
|
+
value: "Sparkles"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: "Zap / Lightning",
|
|
168
|
+
value: "Zap"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: "Gift",
|
|
172
|
+
value: "Gift"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: "Shopping Bag",
|
|
176
|
+
value: "ShoppingBag"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: "Bell",
|
|
180
|
+
value: "Bell"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: "Calendar",
|
|
184
|
+
value: "Calendar"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
label: "Bookmark",
|
|
188
|
+
value: "Bookmark"
|
|
189
|
+
}
|
|
190
|
+
];
|
|
191
|
+
const getHeaderIcon = (name) => {
|
|
192
|
+
if (!name) return GraduationCap;
|
|
193
|
+
return HEADER_ICON_MAP[name] ?? GraduationCap;
|
|
194
|
+
};
|
|
195
|
+
function EmbedWidget({ url = "", title = "Embedded Content", height = "400px", fullScreen = false, allowFullscreen = true, loading = "lazy", borderRadius = "md", borderWidth = "none", borderColor = "muted", editMode = false, isSelected = false, displayMode = "inline", coverResource, coverUseCustomUrl = false, coverImageUrl = "", coverTitle = "", coverMeta = "", coverShowHeader = true, coverHeaderIcon = "GraduationCap", coverHeaderIconColor = "primary", coverHeight = "320px", className, ...props }) {
|
|
196
|
+
const isFullScreen = fullScreen;
|
|
197
|
+
const iframeRef = useRef(null);
|
|
198
|
+
const publicId = useRepUser()?.publicId;
|
|
199
|
+
const [modalOpen, setModalOpen] = useState(false);
|
|
200
|
+
const [coverReloadKey, setCoverReloadKey] = useState(0);
|
|
201
|
+
const [iframeReloadKey, setIframeReloadKey] = useState(0);
|
|
202
|
+
const closeModal = useCallback(() => setModalOpen(false), []);
|
|
203
|
+
const { normalizedUrl, isValidUrl, iframeSrc } = useEmbedUrl(url, publicId);
|
|
204
|
+
useEmbedPostMessageBridge({
|
|
205
|
+
iframeRef,
|
|
206
|
+
normalizedUrl,
|
|
207
|
+
isValidUrl,
|
|
208
|
+
editMode
|
|
209
|
+
});
|
|
210
|
+
useModalBodyScrollLock(modalOpen);
|
|
211
|
+
useModalEscapeClose(modalOpen, closeModal);
|
|
212
|
+
if (!url || !isValidUrl) return /* @__PURE__ */ jsx("div", {
|
|
213
|
+
className: `flex items-center justify-center rounded-${borderRadius} border-border bg-muted text-muted-foreground border-2 border-dashed ${isFullScreen ? "h-full" : ""} ${className ?? ""}`,
|
|
214
|
+
style: isFullScreen ? void 0 : { height: displayMode === "cover" ? coverHeight : height },
|
|
215
|
+
...props,
|
|
216
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
217
|
+
className: "flex flex-col items-center gap-2 p-6 text-center",
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ jsx(Globe, { className: "h-12 w-12 opacity-50" }),
|
|
220
|
+
/* @__PURE__ */ jsx("p", {
|
|
221
|
+
className: "text-sm font-medium",
|
|
222
|
+
children: "Enter a URL to embed external content"
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ jsx("p", {
|
|
225
|
+
className: "text-xs opacity-75",
|
|
226
|
+
children: "Configure the URL in the properties panel"
|
|
227
|
+
})
|
|
228
|
+
]
|
|
229
|
+
})
|
|
230
|
+
});
|
|
231
|
+
if (displayMode === "cover") {
|
|
232
|
+
const resolvedCoverImage = coverUseCustomUrl ? coverImageUrl : coverResource?.imageUrl || coverResource?.image_url || coverImageUrl;
|
|
233
|
+
const effectiveTitle = coverTitle || title;
|
|
234
|
+
const HeaderIcon = getHeaderIcon(coverHeaderIcon);
|
|
235
|
+
const handleOpenModal = () => {
|
|
236
|
+
if (editMode) return;
|
|
237
|
+
setModalOpen(true);
|
|
238
|
+
};
|
|
239
|
+
const handleReload = () => {
|
|
240
|
+
if (editMode) return;
|
|
241
|
+
setCoverReloadKey((key) => key + 1);
|
|
242
|
+
};
|
|
243
|
+
const handleOpenNewTab = (e) => {
|
|
244
|
+
e.stopPropagation();
|
|
245
|
+
if (editMode) return;
|
|
246
|
+
window.open(iframeSrc, "_blank", "noopener,noreferrer");
|
|
247
|
+
};
|
|
248
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
|
|
249
|
+
className: `relative w-full overflow-hidden rounded-${borderRadius} ${borderWidthClasses[borderWidth]} ${borderWidth !== "none" ? borderColorClasses[borderColor] : ""} bg-background ${className ?? ""}`,
|
|
250
|
+
style: { boxShadow: "0 1px 2px color-mix(in oklch, var(--color-foreground) 5%, transparent), 0 12px 32px -16px color-mix(in oklch, var(--color-foreground) 10%, transparent)" },
|
|
251
|
+
...props,
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ jsx("div", {
|
|
254
|
+
"aria-hidden": "true",
|
|
255
|
+
className: `pointer-events-none absolute inset-0 z-[1] rounded-${borderRadius}`,
|
|
256
|
+
style: { boxShadow: "inset 0 0 0 1px color-mix(in oklch, var(--color-foreground) 8%, transparent)" }
|
|
257
|
+
}),
|
|
258
|
+
coverShowHeader && /* @__PURE__ */ jsxs("div", {
|
|
259
|
+
className: "relative z-[2] flex items-center gap-3 px-5 py-3",
|
|
260
|
+
children: [
|
|
261
|
+
/* @__PURE__ */ jsx("span", {
|
|
262
|
+
"aria-hidden": "true",
|
|
263
|
+
className: `text-${coverHeaderIconColor}-foreground flex size-7 shrink-0 items-center justify-center rounded-${borderRadius}`,
|
|
264
|
+
style: {
|
|
265
|
+
background: `linear-gradient(135deg, color-mix(in oklch, var(--color-${coverHeaderIconColor}) 75%, white 25%) 0%, var(--color-${coverHeaderIconColor}) 100%)`,
|
|
266
|
+
boxShadow: `
|
|
267
|
+
inset 0 1px 0 rgba(255,255,255,0.25),
|
|
268
|
+
inset 0 -1px 0 rgba(0,0,0,0.08),
|
|
269
|
+
0 1px 2px color-mix(in oklch, var(--color-${coverHeaderIconColor}) 25%, transparent)
|
|
270
|
+
`
|
|
271
|
+
},
|
|
272
|
+
children: /* @__PURE__ */ jsx(HeaderIcon, {
|
|
273
|
+
className: "size-3.5",
|
|
274
|
+
strokeWidth: 2.25
|
|
275
|
+
})
|
|
276
|
+
}),
|
|
277
|
+
/* @__PURE__ */ jsxs("div", {
|
|
278
|
+
className: "min-w-0 flex-1",
|
|
279
|
+
children: [effectiveTitle && /* @__PURE__ */ jsx("h3", {
|
|
280
|
+
className: "text-foreground truncate text-[15px] leading-tight font-semibold tracking-tight",
|
|
281
|
+
children: effectiveTitle
|
|
282
|
+
}), coverMeta && /* @__PURE__ */ jsx("p", {
|
|
283
|
+
className: "text-foreground/40 mt-0.5 truncate text-[11px] font-medium tracking-[0.08em] uppercase",
|
|
284
|
+
children: coverMeta
|
|
285
|
+
})]
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ jsxs("div", {
|
|
288
|
+
className: "bg-foreground/5 flex shrink-0 items-center rounded-lg p-0.5",
|
|
289
|
+
children: [
|
|
290
|
+
/* @__PURE__ */ jsx(HeaderIconButton, {
|
|
291
|
+
Icon: RotateCw,
|
|
292
|
+
label: "Reload",
|
|
293
|
+
onClick: (e) => {
|
|
294
|
+
e.stopPropagation();
|
|
295
|
+
handleReload();
|
|
296
|
+
}
|
|
297
|
+
}),
|
|
298
|
+
/* @__PURE__ */ jsx(HeaderIconButton, {
|
|
299
|
+
Icon: Maximize2,
|
|
300
|
+
label: "Open",
|
|
301
|
+
onClick: (e) => {
|
|
302
|
+
e.stopPropagation();
|
|
303
|
+
handleOpenModal();
|
|
304
|
+
}
|
|
305
|
+
}),
|
|
306
|
+
/* @__PURE__ */ jsx(HeaderIconButton, {
|
|
307
|
+
Icon: ExternalLink,
|
|
308
|
+
label: "Open in new tab",
|
|
309
|
+
onClick: handleOpenNewTab
|
|
310
|
+
})
|
|
311
|
+
]
|
|
312
|
+
})
|
|
313
|
+
]
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ jsx("button", {
|
|
316
|
+
type: "button",
|
|
317
|
+
onClick: handleOpenModal,
|
|
318
|
+
disabled: editMode,
|
|
319
|
+
className: `relative block w-full overflow-hidden ${editMode ? "cursor-default" : "cursor-pointer"}`,
|
|
320
|
+
style: { height: coverHeight },
|
|
321
|
+
"aria-label": `Open ${effectiveTitle || title}`,
|
|
322
|
+
children: resolvedCoverImage ? /* @__PURE__ */ jsx("img", {
|
|
323
|
+
src: resolvedCoverImage,
|
|
324
|
+
alt: effectiveTitle || title,
|
|
325
|
+
className: "h-full w-full object-cover"
|
|
326
|
+
}, `cover-${coverReloadKey}`) : /* @__PURE__ */ jsx("div", {
|
|
327
|
+
className: "bg-muted flex h-full w-full items-center justify-center",
|
|
328
|
+
children: /* @__PURE__ */ jsx(Globe, { className: "text-muted-foreground/40 size-16" })
|
|
329
|
+
})
|
|
330
|
+
}),
|
|
331
|
+
editMode && !isSelected && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 z-10" })
|
|
332
|
+
]
|
|
333
|
+
}), modalOpen && /* @__PURE__ */ jsx(EmbedModal, {
|
|
334
|
+
src: iframeSrc,
|
|
335
|
+
title: effectiveTitle || title,
|
|
336
|
+
allowFullscreen,
|
|
337
|
+
iframeRef,
|
|
338
|
+
onClose: closeModal,
|
|
339
|
+
onReload: () => setIframeReloadKey((key) => key + 1)
|
|
340
|
+
}, `modal-${iframeReloadKey}`)] });
|
|
341
|
+
}
|
|
342
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
343
|
+
className: `relative w-full rounded-${borderRadius} ${borderWidthClasses[borderWidth]} ${borderWidth !== "none" ? borderColorClasses[borderColor] : ""} ${isFullScreen ? "h-full" : ""} ${className ?? ""}`,
|
|
344
|
+
...props,
|
|
345
|
+
children: [/* @__PURE__ */ jsx("iframe", {
|
|
346
|
+
ref: iframeRef,
|
|
347
|
+
src: iframeSrc,
|
|
348
|
+
title,
|
|
349
|
+
width: "100%",
|
|
350
|
+
style: isFullScreen ? { height: "100%" } : { height },
|
|
351
|
+
loading,
|
|
352
|
+
allowFullScreen: allowFullscreen,
|
|
353
|
+
className: `rounded-${borderRadius} border-border border`,
|
|
354
|
+
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"
|
|
355
|
+
}), editMode && !isSelected && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 z-10" })]
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
function HeaderIconButton({ Icon, label, onClick }) {
|
|
359
|
+
return /* @__PURE__ */ jsx("button", {
|
|
360
|
+
type: "button",
|
|
361
|
+
onClick,
|
|
362
|
+
"aria-label": label,
|
|
363
|
+
className: "text-foreground/45 hover:text-foreground hover:bg-background flex size-7 items-center justify-center rounded-md transition-colors",
|
|
364
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
365
|
+
className: "size-3.5",
|
|
366
|
+
strokeWidth: 2.25
|
|
367
|
+
})
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
function EmbedModal({ src, title, allowFullscreen, iframeRef, onClose, onReload }) {
|
|
371
|
+
const dialogRef = useRef(null);
|
|
372
|
+
useDialogFocusRestore(dialogRef);
|
|
373
|
+
return createPortal(/* @__PURE__ */ jsx("div", {
|
|
374
|
+
ref: dialogRef,
|
|
375
|
+
tabIndex: -1,
|
|
376
|
+
className: "fixed inset-0 z-[100] flex items-center justify-center p-4 focus:outline-none sm:p-8",
|
|
377
|
+
style: { background: "color-mix(in oklch, var(--color-foreground) 80%, black)" },
|
|
378
|
+
onClick: onClose,
|
|
379
|
+
role: "dialog",
|
|
380
|
+
"aria-modal": "true",
|
|
381
|
+
"aria-label": title,
|
|
382
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
383
|
+
className: "bg-background relative flex h-full max-h-[95vh] w-full max-w-[1400px] flex-col overflow-hidden rounded-2xl shadow-2xl",
|
|
384
|
+
onClick: (e) => e.stopPropagation(),
|
|
385
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
386
|
+
className: "flex items-center justify-between gap-4 px-5 py-3",
|
|
387
|
+
style: { borderBottom: "1px solid color-mix(in oklch, var(--color-foreground) 8%, transparent)" },
|
|
388
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
389
|
+
className: "text-foreground truncate text-sm font-semibold tracking-tight",
|
|
390
|
+
children: title
|
|
391
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
392
|
+
className: "flex shrink-0 items-center gap-1",
|
|
393
|
+
children: [/* @__PURE__ */ jsx(HeaderIconButton, {
|
|
394
|
+
Icon: RotateCw,
|
|
395
|
+
label: "Reload",
|
|
396
|
+
onClick: (e) => {
|
|
397
|
+
e.stopPropagation();
|
|
398
|
+
onReload();
|
|
399
|
+
}
|
|
400
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
401
|
+
type: "button",
|
|
402
|
+
onClick: onClose,
|
|
403
|
+
"aria-label": "Close",
|
|
404
|
+
className: "text-foreground/60 hover:text-foreground hover:bg-foreground/5 flex size-9 shrink-0 items-center justify-center rounded-full transition-colors",
|
|
405
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-5" })
|
|
406
|
+
})]
|
|
407
|
+
})]
|
|
408
|
+
}), /* @__PURE__ */ jsx("iframe", {
|
|
409
|
+
ref: iframeRef,
|
|
410
|
+
src,
|
|
411
|
+
title,
|
|
412
|
+
className: "flex-1 border-0",
|
|
413
|
+
allowFullScreen: allowFullscreen,
|
|
414
|
+
sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"
|
|
415
|
+
})]
|
|
416
|
+
})
|
|
417
|
+
}), document.body);
|
|
418
|
+
}
|
|
419
|
+
const embedWidgetPropertySchema = {
|
|
420
|
+
widgetType: "EmbedWidget",
|
|
421
|
+
displayName: "Embed",
|
|
422
|
+
fields: [
|
|
423
|
+
{
|
|
424
|
+
key: "url",
|
|
425
|
+
label: "URL",
|
|
426
|
+
type: "text",
|
|
427
|
+
description: "The URL of the external site to embed",
|
|
428
|
+
placeholder: "https://example.com",
|
|
429
|
+
defaultValue: "",
|
|
430
|
+
group: "Content"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
key: "title",
|
|
434
|
+
label: "Title",
|
|
435
|
+
type: "text",
|
|
436
|
+
description: "Accessibility title for the embedded content",
|
|
437
|
+
defaultValue: "Embedded Content",
|
|
438
|
+
group: "Content"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
key: "displayMode",
|
|
442
|
+
label: "Display Mode",
|
|
443
|
+
type: "buttonGroup",
|
|
444
|
+
description: "Inline: iframe renders directly. Cover: shows a card that opens the embed in a full-screen modal.",
|
|
445
|
+
defaultValue: "inline",
|
|
446
|
+
options: [{
|
|
447
|
+
label: "Inline",
|
|
448
|
+
value: "inline"
|
|
449
|
+
}, {
|
|
450
|
+
label: "Cover + Modal",
|
|
451
|
+
value: "cover"
|
|
452
|
+
}],
|
|
453
|
+
group: "Display Mode"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
key: "coverResource",
|
|
457
|
+
label: "Cover Image",
|
|
458
|
+
type: "resource",
|
|
459
|
+
description: "Select the image shown before the embed opens",
|
|
460
|
+
allowedTypes: ["Medium"],
|
|
461
|
+
group: "Cover",
|
|
462
|
+
requiresKeyValue: {
|
|
463
|
+
key: "displayMode",
|
|
464
|
+
value: "cover"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
key: "coverUseCustomUrl",
|
|
469
|
+
label: "Use Custom URL",
|
|
470
|
+
type: "boolean",
|
|
471
|
+
description: "Enter a custom image URL instead of selecting media",
|
|
472
|
+
defaultValue: false,
|
|
473
|
+
group: "Cover",
|
|
474
|
+
requiresKeyValue: {
|
|
475
|
+
key: "displayMode",
|
|
476
|
+
value: "cover"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
key: "coverImageUrl",
|
|
481
|
+
label: "Cover Image URL",
|
|
482
|
+
type: "text",
|
|
483
|
+
description: "Direct URL to the cover image",
|
|
484
|
+
placeholder: "https://example.com/cover.jpg",
|
|
485
|
+
defaultValue: "",
|
|
486
|
+
group: "Cover",
|
|
487
|
+
requiresKeyValue: [{
|
|
488
|
+
key: "displayMode",
|
|
489
|
+
value: "cover"
|
|
490
|
+
}, {
|
|
491
|
+
key: "coverUseCustomUrl",
|
|
492
|
+
value: true
|
|
493
|
+
}]
|
|
494
|
+
},
|
|
495
|
+
getHeightField({
|
|
496
|
+
key: "coverHeight",
|
|
497
|
+
label: "Cover Height",
|
|
498
|
+
description: "Height of the cover image area",
|
|
499
|
+
defaultValue: "320px",
|
|
500
|
+
group: "Cover",
|
|
501
|
+
requiresKeyValue: {
|
|
502
|
+
key: "displayMode",
|
|
503
|
+
value: "cover"
|
|
504
|
+
}
|
|
505
|
+
}),
|
|
506
|
+
{
|
|
507
|
+
key: "coverShowHeader",
|
|
508
|
+
label: "Show Card Header",
|
|
509
|
+
type: "boolean",
|
|
510
|
+
description: "Show the header with icon, title, and action buttons",
|
|
511
|
+
defaultValue: true,
|
|
512
|
+
group: "Cover Header",
|
|
513
|
+
requiresKeyValue: {
|
|
514
|
+
key: "displayMode",
|
|
515
|
+
value: "cover"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
key: "coverHeaderIcon",
|
|
520
|
+
label: "Header Icon",
|
|
521
|
+
type: "select",
|
|
522
|
+
description: "Icon displayed in the colored badge on the left",
|
|
523
|
+
options: HEADER_ICON_OPTIONS,
|
|
524
|
+
defaultValue: "GraduationCap",
|
|
525
|
+
group: "Cover Header",
|
|
526
|
+
requiresKeyValue: [{
|
|
527
|
+
key: "displayMode",
|
|
528
|
+
value: "cover"
|
|
529
|
+
}, {
|
|
530
|
+
key: "coverShowHeader",
|
|
531
|
+
value: true
|
|
532
|
+
}]
|
|
533
|
+
},
|
|
534
|
+
getColorField({
|
|
535
|
+
key: "coverHeaderIconColor",
|
|
536
|
+
label: "Icon Badge Color",
|
|
537
|
+
description: "Background color of the icon badge",
|
|
538
|
+
defaultValue: "primary",
|
|
539
|
+
group: "Cover Header",
|
|
540
|
+
requiresKeyValue: [{
|
|
541
|
+
key: "displayMode",
|
|
542
|
+
value: "cover"
|
|
543
|
+
}, {
|
|
544
|
+
key: "coverShowHeader",
|
|
545
|
+
value: true
|
|
546
|
+
}]
|
|
547
|
+
}),
|
|
548
|
+
{
|
|
549
|
+
key: "coverTitle",
|
|
550
|
+
label: "Header Title",
|
|
551
|
+
type: "text",
|
|
552
|
+
description: "Title shown in the card header and modal (falls back to the widget Title if empty). Available even when the card header is hidden so the modal still has a meaningful title.",
|
|
553
|
+
defaultValue: "",
|
|
554
|
+
group: "Cover Header",
|
|
555
|
+
requiresKeyValue: {
|
|
556
|
+
key: "displayMode",
|
|
557
|
+
value: "cover"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
key: "coverMeta",
|
|
562
|
+
label: "Meta Text",
|
|
563
|
+
type: "text",
|
|
564
|
+
description: "Small uppercase meta line below the title (e.g. 'APR 16 · COACHING THE HOSTESS')",
|
|
565
|
+
defaultValue: "",
|
|
566
|
+
group: "Cover Header",
|
|
567
|
+
requiresKeyValue: [{
|
|
568
|
+
key: "displayMode",
|
|
569
|
+
value: "cover"
|
|
570
|
+
}, {
|
|
571
|
+
key: "coverShowHeader",
|
|
572
|
+
value: true
|
|
573
|
+
}]
|
|
574
|
+
},
|
|
575
|
+
getBorderRadiusField({
|
|
576
|
+
key: "borderRadius",
|
|
577
|
+
label: "Border Radius",
|
|
578
|
+
description: "Border radius for the embed container",
|
|
579
|
+
defaultValue: "md",
|
|
580
|
+
group: "Design"
|
|
581
|
+
}),
|
|
582
|
+
getBorderWidthField({
|
|
583
|
+
key: "borderWidth",
|
|
584
|
+
label: "Border Width",
|
|
585
|
+
description: "Border width for the widget",
|
|
586
|
+
defaultValue: "none",
|
|
587
|
+
group: "Design"
|
|
588
|
+
}),
|
|
589
|
+
getBorderColorField({
|
|
590
|
+
key: "borderColor",
|
|
591
|
+
label: "Border Color",
|
|
592
|
+
description: "Border color for the widget",
|
|
593
|
+
defaultValue: "muted",
|
|
594
|
+
group: "Design"
|
|
595
|
+
}),
|
|
596
|
+
{
|
|
597
|
+
key: "fullScreen",
|
|
598
|
+
label: "Full Screen",
|
|
599
|
+
type: "boolean",
|
|
600
|
+
description: "Inline mode: fill the available space instead of a fixed height",
|
|
601
|
+
defaultValue: false,
|
|
602
|
+
group: "Design",
|
|
603
|
+
requiresKeyValue: {
|
|
604
|
+
key: "displayMode",
|
|
605
|
+
value: "inline"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
getHeightField({
|
|
609
|
+
key: "height",
|
|
610
|
+
label: "Height",
|
|
611
|
+
description: "Height of the inline embed iframe",
|
|
612
|
+
defaultValue: "400px",
|
|
613
|
+
group: "Design",
|
|
614
|
+
requiresKeyValue: [{
|
|
615
|
+
key: "displayMode",
|
|
616
|
+
value: "inline"
|
|
617
|
+
}, {
|
|
618
|
+
key: "fullScreen",
|
|
619
|
+
value: false
|
|
620
|
+
}]
|
|
621
|
+
}),
|
|
622
|
+
{
|
|
623
|
+
key: "allowFullscreen",
|
|
624
|
+
label: "Allow Fullscreen",
|
|
625
|
+
type: "boolean",
|
|
626
|
+
description: "Allow the embedded content to use fullscreen mode",
|
|
627
|
+
defaultValue: true,
|
|
628
|
+
group: "Settings"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
key: "loading",
|
|
632
|
+
label: "Loading",
|
|
633
|
+
type: "select",
|
|
634
|
+
description: "When to load the embedded content (inline mode only)",
|
|
635
|
+
options: [{
|
|
636
|
+
label: "Lazy (on scroll)",
|
|
637
|
+
value: "lazy"
|
|
638
|
+
}, {
|
|
639
|
+
label: "Eager (immediately)",
|
|
640
|
+
value: "eager"
|
|
641
|
+
}],
|
|
642
|
+
defaultValue: "lazy",
|
|
643
|
+
group: "Settings",
|
|
644
|
+
requiresKeyValue: {
|
|
645
|
+
key: "displayMode",
|
|
646
|
+
value: "inline"
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
]
|
|
650
|
+
};
|
|
651
|
+
//#endregion
|
|
652
|
+
export { useRepUser as a, RepUserProvider as i, EmbedWidget_exports as n, embedWidgetPropertySchema as r, EmbedWidget as t };
|
|
653
|
+
|
|
654
|
+
//# sourceMappingURL=EmbedWidget-tU8njf5H.mjs.map
|