@evolve.ui/core-components 1.0.0
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/Accordion--J93KLdp.d.cts +38 -0
- package/Accordion--J93KLdp.d.cts.map +1 -0
- package/Accordion-CdgdzUNC.d.mts +38 -0
- package/Accordion-CdgdzUNC.d.mts.map +1 -0
- package/AddressDisplay-C6av_Ava.d.cts +40 -0
- package/AddressDisplay-C6av_Ava.d.cts.map +1 -0
- package/AddressDisplay-C6av_Ava.d.mts +40 -0
- package/AddressDisplay-C6av_Ava.d.mts.map +1 -0
- package/AddressDisplay-CI1h4Pyv.cjs +1504 -0
- package/AddressDisplay-CI1h4Pyv.cjs.map +1 -0
- package/AddressDisplay-D5p9wJT6.mjs +1499 -0
- package/AddressDisplay-D5p9wJT6.mjs.map +1 -0
- package/AutomatedCarousel-BbH74siI.d.mts +48 -0
- package/AutomatedCarousel-BbH74siI.d.mts.map +1 -0
- package/AutomatedCarousel-CmVyxeSl.mjs +274 -0
- package/AutomatedCarousel-CmVyxeSl.mjs.map +1 -0
- package/AutomatedCarousel-Dhr1za_D.d.cts +48 -0
- package/AutomatedCarousel-Dhr1za_D.d.cts.map +1 -0
- package/AutomatedCarousel-ylYqkHPX.cjs +281 -0
- package/AutomatedCarousel-ylYqkHPX.cjs.map +1 -0
- package/Badge/ItemBadge.cjs +75 -0
- package/Badge/ItemBadge.cjs.map +1 -0
- package/Badge/ItemBadge.d.cts +2 -0
- package/Badge/ItemBadge.d.mts +2 -0
- package/Badge/ItemBadge.mjs +71 -0
- package/Badge/ItemBadge.mjs.map +1 -0
- package/Badge/LiveStatusBadge.cjs +78 -0
- package/Badge/LiveStatusBadge.cjs.map +1 -0
- package/Badge/LiveStatusBadge.d.cts +2 -0
- package/Badge/LiveStatusBadge.d.mts +2 -0
- package/Badge/LiveStatusBadge.mjs +74 -0
- package/Badge/LiveStatusBadge.mjs.map +1 -0
- package/Badge-C1BBu1fH.d.mts +71 -0
- package/Badge-C1BBu1fH.d.mts.map +1 -0
- package/Badge-lOH4Ssq_.d.cts +71 -0
- package/Badge-lOH4Ssq_.d.cts.map +1 -0
- package/Badge.cjs +72 -0
- package/Badge.cjs.map +1 -0
- package/Badge.d.cts +2 -0
- package/Badge.d.mts +2 -0
- package/Badge.mjs +68 -0
- package/Badge.mjs.map +1 -0
- package/BannerNotification-D9Sfa2si.cjs +156 -0
- package/BannerNotification-D9Sfa2si.cjs.map +1 -0
- package/BannerNotification-DM78PllX.d.cts +59 -0
- package/BannerNotification-DM78PllX.d.cts.map +1 -0
- package/BannerNotification-DM78PllX.d.mts +59 -0
- package/BannerNotification-DM78PllX.d.mts.map +1 -0
- package/BannerNotification-DzprO7bZ.mjs +151 -0
- package/BannerNotification-DzprO7bZ.mjs.map +1 -0
- package/BottomSheet-ZV_eq3xt.mjs +1708 -0
- package/BottomSheet-ZV_eq3xt.mjs.map +1 -0
- package/BottomSheet-emWP9Fct.cjs +1715 -0
- package/BottomSheet-emWP9Fct.cjs.map +1 -0
- package/Breadcrumbs-7jTSZ7NM.cjs +98 -0
- package/Breadcrumbs-7jTSZ7NM.cjs.map +1 -0
- package/Breadcrumbs-CopNM2AH.d.cts +30 -0
- package/Breadcrumbs-CopNM2AH.d.cts.map +1 -0
- package/Breadcrumbs-CopNM2AH.d.mts +30 -0
- package/Breadcrumbs-CopNM2AH.d.mts.map +1 -0
- package/Breadcrumbs-blgWG9cP.mjs +93 -0
- package/Breadcrumbs-blgWG9cP.mjs.map +1 -0
- package/Button-B9vfIXTi.d.cts +12 -0
- package/Button-B9vfIXTi.d.cts.map +1 -0
- package/Button-Bitf-VVv.d.mts +12 -0
- package/Button-Bitf-VVv.d.mts.map +1 -0
- package/Button.cjs +102 -0
- package/Button.cjs.map +1 -0
- package/Button.d.cts +2 -0
- package/Button.d.mts +2 -0
- package/Button.mjs +98 -0
- package/Button.mjs.map +1 -0
- package/Button.types-CjidejRG.d.cts +79 -0
- package/Button.types-CjidejRG.d.cts.map +1 -0
- package/Button.types-CyzsUcMe.d.mts +79 -0
- package/Button.types-CyzsUcMe.d.mts.map +1 -0
- package/Callout-BDrz5jjK.d.mts +45 -0
- package/Callout-BDrz5jjK.d.mts.map +1 -0
- package/Callout-BiFCfawA.d.cts +45 -0
- package/Callout-BiFCfawA.d.cts.map +1 -0
- package/Callout-DrWwRGi4.cjs +132 -0
- package/Callout-DrWwRGi4.cjs.map +1 -0
- package/Callout-Olv0CM82.mjs +127 -0
- package/Callout-Olv0CM82.mjs.map +1 -0
- package/Callout.cjs +8 -0
- package/Callout.d.cts +2 -0
- package/Callout.d.mts +2 -0
- package/Callout.mjs +4 -0
- package/CardGrid-BhfrwrN0.d.cts +72 -0
- package/CardGrid-BhfrwrN0.d.cts.map +1 -0
- package/CardGrid-BpX_oOS4.mjs +175 -0
- package/CardGrid-BpX_oOS4.mjs.map +1 -0
- package/CardGrid-CHZSF83h.d.mts +72 -0
- package/CardGrid-CHZSF83h.d.mts.map +1 -0
- package/CardGrid-CXi9XvDo.cjs +180 -0
- package/CardGrid-CXi9XvDo.cjs.map +1 -0
- package/Carousel-8CbTiwMk.mjs +462 -0
- package/Carousel-8CbTiwMk.mjs.map +1 -0
- package/Carousel-Du89BCCK.cjs +487 -0
- package/Carousel-Du89BCCK.cjs.map +1 -0
- package/CheckCircle-BcTMEm4l.mjs +42 -0
- package/CheckCircle-BcTMEm4l.mjs.map +1 -0
- package/CheckCircle-BjBbSga6.cjs +49 -0
- package/CheckCircle-BjBbSga6.cjs.map +1 -0
- package/Checkbox.cjs +13 -0
- package/Checkbox.d.cts +2 -0
- package/Checkbox.d.mts +2 -0
- package/Checkbox.mjs +3 -0
- package/Chip-UMJoX3ST.d.cts +38 -0
- package/Chip-UMJoX3ST.d.cts.map +1 -0
- package/Chip-giQtR8GC.d.mts +38 -0
- package/Chip-giQtR8GC.d.mts.map +1 -0
- package/ChipGroup-DIyCVKZm.d.cts +24 -0
- package/ChipGroup-DIyCVKZm.d.cts.map +1 -0
- package/ChipGroup-VGpv5cHt.d.mts +24 -0
- package/ChipGroup-VGpv5cHt.d.mts.map +1 -0
- package/ChoiceListItem-BqZ3bIj9.mjs +168 -0
- package/ChoiceListItem-BqZ3bIj9.mjs.map +1 -0
- package/ChoiceListItem-D_74Zcpd.cjs +209 -0
- package/ChoiceListItem-D_74Zcpd.cjs.map +1 -0
- package/Collapsible-Bbs4SWEA.d.cts +18 -0
- package/Collapsible-Bbs4SWEA.d.cts.map +1 -0
- package/Collapsible-Bbs4SWEA.d.mts +18 -0
- package/Collapsible-Bbs4SWEA.d.mts.map +1 -0
- package/Confetti--vMcCOQ7.cjs +166 -0
- package/Confetti--vMcCOQ7.cjs.map +1 -0
- package/Confetti-Csdjmzfv.mjs +161 -0
- package/Confetti-Csdjmzfv.mjs.map +1 -0
- package/ContentPager-AM9sSsgG.d.cts +37 -0
- package/ContentPager-AM9sSsgG.d.cts.map +1 -0
- package/ContentPager-B9UIPahb.mjs +138 -0
- package/ContentPager-B9UIPahb.mjs.map +1 -0
- package/ContentPager-BJo1L64Y.cjs +158 -0
- package/ContentPager-BJo1L64Y.cjs.map +1 -0
- package/ContentPager-DuxgJP42.d.mts +37 -0
- package/ContentPager-DuxgJP42.d.mts.map +1 -0
- package/CookieConsent-CIwm0bTz.mjs +401 -0
- package/CookieConsent-CIwm0bTz.mjs.map +1 -0
- package/CookieConsent-PIglB_bb.cjs +430 -0
- package/CookieConsent-PIglB_bb.cjs.map +1 -0
- package/Countdown-BaqV0LJL.d.mts +45 -0
- package/Countdown-BaqV0LJL.d.mts.map +1 -0
- package/Countdown-D4-QPv6V.cjs +181 -0
- package/Countdown-D4-QPv6V.cjs.map +1 -0
- package/Countdown-Dw5j-JJ4.d.cts +45 -0
- package/Countdown-Dw5j-JJ4.d.cts.map +1 -0
- package/Countdown-Hiu5EYUI.mjs +174 -0
- package/Countdown-Hiu5EYUI.mjs.map +1 -0
- package/Countdown.types-B7yecprx.d.cts +8 -0
- package/Countdown.types-B7yecprx.d.cts.map +1 -0
- package/Countdown.types-B7yecprx.d.mts +8 -0
- package/Countdown.types-B7yecprx.d.mts.map +1 -0
- package/CreditCardIcon-DirCX2rx.d.cts +29 -0
- package/CreditCardIcon-DirCX2rx.d.cts.map +1 -0
- package/CreditCardIcon-DirCX2rx.d.mts +29 -0
- package/CreditCardIcon-DirCX2rx.d.mts.map +1 -0
- package/CreditCardIcon-OqdAEE3e.cjs +281 -0
- package/CreditCardIcon-OqdAEE3e.cjs.map +1 -0
- package/CreditCardIcon-rpcjx4S_.mjs +270 -0
- package/CreditCardIcon-rpcjx4S_.mjs.map +1 -0
- package/DateInput-B8XQZPTx.d.cts +34 -0
- package/DateInput-B8XQZPTx.d.cts.map +1 -0
- package/DateInput-CfNmywqQ.d.mts +34 -0
- package/DateInput-CfNmywqQ.d.mts.map +1 -0
- package/DatePickerTarget-BcX_noF3.d.cts +14 -0
- package/DatePickerTarget-BcX_noF3.d.cts.map +1 -0
- package/DatePickerTarget-BcX_noF3.d.mts +14 -0
- package/DatePickerTarget-BcX_noF3.d.mts.map +1 -0
- package/DatePickerTarget-CKni-6Rq.mjs +14 -0
- package/DatePickerTarget-CKni-6Rq.mjs.map +1 -0
- package/DatePickerTarget-D_gR7380.cjs +25 -0
- package/DatePickerTarget-D_gR7380.cjs.map +1 -0
- package/Drawer-9HFG45OA.cjs +259 -0
- package/Drawer-9HFG45OA.cjs.map +1 -0
- package/Drawer-BkCPfK6P.mjs +254 -0
- package/Drawer-BkCPfK6P.mjs.map +1 -0
- package/Drawer-CFZbwg0R.d.cts +231 -0
- package/Drawer-CFZbwg0R.d.cts.map +1 -0
- package/Drawer-CFZbwg0R.d.mts +231 -0
- package/Drawer-CFZbwg0R.d.mts.map +1 -0
- package/EducationalPopover-CLNgGomH.d.cts +48 -0
- package/EducationalPopover-CLNgGomH.d.cts.map +1 -0
- package/EducationalPopover-DP63Yqlm.d.mts +48 -0
- package/EducationalPopover-DP63Yqlm.d.mts.map +1 -0
- package/FavoriteButton-BRY8FVpV.d.mts +142 -0
- package/FavoriteButton-BRY8FVpV.d.mts.map +1 -0
- package/FavoriteButton-CC3qL0lR.mjs +199 -0
- package/FavoriteButton-CC3qL0lR.mjs.map +1 -0
- package/FavoriteButton-CowOPoqo.d.cts +142 -0
- package/FavoriteButton-CowOPoqo.d.cts.map +1 -0
- package/FavoriteButton-DliYzkfu.cjs +204 -0
- package/FavoriteButton-DliYzkfu.cjs.map +1 -0
- package/FeatureFlagDevToolsUI-B13AuQ2A.mjs +276 -0
- package/FeatureFlagDevToolsUI-B13AuQ2A.mjs.map +1 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.cts +39 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.cts.map +1 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.mts +39 -0
- package/FeatureFlagDevToolsUI-CutvngLI.d.mts.map +1 -0
- package/FeatureFlagDevToolsUI-MBFES3GM.cjs +281 -0
- package/FeatureFlagDevToolsUI-MBFES3GM.cjs.map +1 -0
- package/FileUpload--e_UJ_ek.cjs +1771 -0
- package/FileUpload--e_UJ_ek.cjs.map +1 -0
- package/FileUpload-p_pl9NXr.mjs +1706 -0
- package/FileUpload-p_pl9NXr.mjs.map +1 -0
- package/FormLabel-D4602qfd.d.cts +140 -0
- package/FormLabel-D4602qfd.d.cts.map +1 -0
- package/FormLabel-D4602qfd.d.mts +140 -0
- package/FormLabel-D4602qfd.d.mts.map +1 -0
- package/IconBase-C_Lx9rDx.d.cts +89 -0
- package/IconBase-C_Lx9rDx.d.cts.map +1 -0
- package/IconBase-C_Lx9rDx.d.mts +89 -0
- package/IconBase-C_Lx9rDx.d.mts.map +1 -0
- package/IconButton-DHTn5DQ_.d.mts +40 -0
- package/IconButton-DHTn5DQ_.d.mts.map +1 -0
- package/IconButton-Df9usxq_.d.cts +40 -0
- package/IconButton-Df9usxq_.d.cts.map +1 -0
- package/IconButton.cjs +68 -0
- package/IconButton.cjs.map +1 -0
- package/IconButton.d.cts +2 -0
- package/IconButton.d.mts +2 -0
- package/IconButton.mjs +64 -0
- package/IconButton.mjs.map +1 -0
- package/Icons/CreditCardIcon.cjs +7 -0
- package/Icons/CreditCardIcon.d.cts +2 -0
- package/Icons/CreditCardIcon.d.mts +2 -0
- package/Icons/CreditCardIcon.mjs +2 -0
- package/Icons/IconBase.cjs +60 -0
- package/Icons/IconBase.cjs.map +1 -0
- package/Icons/IconBase.d.cts +2 -0
- package/Icons/IconBase.d.mts +2 -0
- package/Icons/IconBase.mjs +54 -0
- package/Icons/IconBase.mjs.map +1 -0
- package/Icons/anyIcon.cjs +0 -0
- package/Icons/anyIcon.d.cts +2 -0
- package/Icons/anyIcon.d.mts +2 -0
- package/Icons/anyIcon.mjs +1 -0
- package/Icons/socialIcons/appleSocialIcon.cjs +48 -0
- package/Icons/socialIcons/appleSocialIcon.cjs.map +1 -0
- package/Icons/socialIcons/appleSocialIcon.d.cts +19 -0
- package/Icons/socialIcons/appleSocialIcon.d.cts.map +1 -0
- package/Icons/socialIcons/appleSocialIcon.d.mts +19 -0
- package/Icons/socialIcons/appleSocialIcon.d.mts.map +1 -0
- package/Icons/socialIcons/appleSocialIcon.mjs +42 -0
- package/Icons/socialIcons/appleSocialIcon.mjs.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.cjs +41 -0
- package/Icons/socialIcons/facebookSocialIcon.cjs.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.d.cts +14 -0
- package/Icons/socialIcons/facebookSocialIcon.d.cts.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.d.mts +14 -0
- package/Icons/socialIcons/facebookSocialIcon.d.mts.map +1 -0
- package/Icons/socialIcons/facebookSocialIcon.mjs +36 -0
- package/Icons/socialIcons/facebookSocialIcon.mjs.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.cjs +135 -0
- package/Icons/socialIcons/googleSocialIcon.cjs.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.d.cts +19 -0
- package/Icons/socialIcons/googleSocialIcon.d.cts.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.d.mts +19 -0
- package/Icons/socialIcons/googleSocialIcon.d.mts.map +1 -0
- package/Icons/socialIcons/googleSocialIcon.mjs +129 -0
- package/Icons/socialIcons/googleSocialIcon.mjs.map +1 -0
- package/Icons.cjs +5489 -0
- package/Icons.cjs.map +1 -0
- package/Icons.d.cts +2 -0
- package/Icons.d.mts +2 -0
- package/Icons.mjs +5335 -0
- package/Icons.mjs.map +1 -0
- package/ImageCluster-BXaQi8SB.d.cts +24 -0
- package/ImageCluster-BXaQi8SB.d.cts.map +1 -0
- package/ImageCluster-BXaQi8SB.d.mts +24 -0
- package/ImageCluster-BXaQi8SB.d.mts.map +1 -0
- package/ImageSlider-BidXfnLj.cjs +861 -0
- package/ImageSlider-BidXfnLj.cjs.map +1 -0
- package/ImageSlider-CDrg_TbL.mjs +838 -0
- package/ImageSlider-CDrg_TbL.mjs.map +1 -0
- package/InfoIconTooltip-CZax9TVq.d.cts +27 -0
- package/InfoIconTooltip-CZax9TVq.d.cts.map +1 -0
- package/InfoIconTooltip-Ca4AHkY2.d.mts +27 -0
- package/InfoIconTooltip-Ca4AHkY2.d.mts.map +1 -0
- package/InfoIconTooltip.cjs +29 -0
- package/InfoIconTooltip.cjs.map +1 -0
- package/InfoIconTooltip.d.cts +2 -0
- package/InfoIconTooltip.d.mts +2 -0
- package/InfoIconTooltip.mjs +25 -0
- package/InfoIconTooltip.mjs.map +1 -0
- package/InlineButton-CRLbNJZ3.d.mts +68 -0
- package/InlineButton-CRLbNJZ3.d.mts.map +1 -0
- package/InlineButton-DoXGLiSE.d.cts +68 -0
- package/InlineButton-DoXGLiSE.d.cts.map +1 -0
- package/InlineNotification--hYpy2m2.d.cts +18 -0
- package/InlineNotification--hYpy2m2.d.cts.map +1 -0
- package/InlineNotification--hYpy2m2.d.mts +18 -0
- package/InlineNotification--hYpy2m2.d.mts.map +1 -0
- package/Input.cjs +104 -0
- package/Input.cjs.map +1 -0
- package/Input.d.cts +2 -0
- package/Input.d.mts +2 -0
- package/Input.mjs +100 -0
- package/Input.mjs.map +1 -0
- package/ItemBadge-D1S8YsIy.d.cts +46 -0
- package/ItemBadge-D1S8YsIy.d.cts.map +1 -0
- package/ItemBadge-D1S8YsIy.d.mts +46 -0
- package/ItemBadge-D1S8YsIy.d.mts.map +1 -0
- package/JumpMenu-BXYZnPIH.cjs +499 -0
- package/JumpMenu-BXYZnPIH.cjs.map +1 -0
- package/JumpMenu-DcZjAiej.mjs +494 -0
- package/JumpMenu-DcZjAiej.mjs.map +1 -0
- package/Links-Ch0YdIz6.d.cts +214 -0
- package/Links-Ch0YdIz6.d.cts.map +1 -0
- package/Links-Ch0YdIz6.d.mts +214 -0
- package/Links-Ch0YdIz6.d.mts.map +1 -0
- package/LiveStatusBadge-D1TX11B6.d.cts +53 -0
- package/LiveStatusBadge-D1TX11B6.d.cts.map +1 -0
- package/LiveStatusBadge-D1TX11B6.d.mts +53 -0
- package/LiveStatusBadge-D1TX11B6.d.mts.map +1 -0
- package/Loading-B9LLlAyM.d.cts +19 -0
- package/Loading-B9LLlAyM.d.cts.map +1 -0
- package/Loading-B9LLlAyM.d.mts +19 -0
- package/Loading-B9LLlAyM.d.mts.map +1 -0
- package/Loading-BL7_u25j.cjs +47 -0
- package/Loading-BL7_u25j.cjs.map +1 -0
- package/Loading-BenQpF_w.mjs +42 -0
- package/Loading-BenQpF_w.mjs.map +1 -0
- package/LoadingSpinner-BWwhuAGb.d.mts +16 -0
- package/LoadingSpinner-BWwhuAGb.d.mts.map +1 -0
- package/LoadingSpinner-DjC4uC_2.d.cts +16 -0
- package/LoadingSpinner-DjC4uC_2.d.cts.map +1 -0
- package/LoadingSpinner.cjs +25 -0
- package/LoadingSpinner.cjs.map +1 -0
- package/LoadingSpinner.d.cts +2 -0
- package/LoadingSpinner.d.mts +2 -0
- package/LoadingSpinner.mjs +21 -0
- package/LoadingSpinner.mjs.map +1 -0
- package/Menu-ClUogmwE.cjs +385 -0
- package/Menu-ClUogmwE.cjs.map +1 -0
- package/Menu-Cxu8CaX1.mjs +368 -0
- package/Menu-Cxu8CaX1.mjs.map +1 -0
- package/Modal-C6gatdtT.mjs +301 -0
- package/Modal-C6gatdtT.mjs.map +1 -0
- package/Modal-CiBqXyiK.cjs +306 -0
- package/Modal-CiBqXyiK.cjs.map +1 -0
- package/Modal-DM0aXJZ5.d.cts +265 -0
- package/Modal-DM0aXJZ5.d.cts.map +1 -0
- package/Modal-DM0aXJZ5.d.mts +265 -0
- package/Modal-DM0aXJZ5.d.mts.map +1 -0
- package/ModalTarget-CD0Nmzfb.d.cts +14 -0
- package/ModalTarget-CD0Nmzfb.d.cts.map +1 -0
- package/ModalTarget-CD0Nmzfb.d.mts +14 -0
- package/ModalTarget-CD0Nmzfb.d.mts.map +1 -0
- package/NotificationBadge-B442UBjI.d.cts +22 -0
- package/NotificationBadge-B442UBjI.d.cts.map +1 -0
- package/NotificationBadge-B442UBjI.d.mts +22 -0
- package/NotificationBadge-B442UBjI.d.mts.map +1 -0
- package/Pagination-DIpGKMLz.mjs +386 -0
- package/Pagination-DIpGKMLz.mjs.map +1 -0
- package/Pagination-bAtbN478.cjs +409 -0
- package/Pagination-bAtbN478.cjs.map +1 -0
- package/PhoneInput-B5pkpkdt.mjs +398 -0
- package/PhoneInput-B5pkpkdt.mjs.map +1 -0
- package/PhoneInput-BXnkBME4.d.mts +70 -0
- package/PhoneInput-BXnkBME4.d.mts.map +1 -0
- package/PhoneInput-Bkrbrins.d.cts +70 -0
- package/PhoneInput-Bkrbrins.d.cts.map +1 -0
- package/PhoneInput-CUMPOSxJ.cjs +408 -0
- package/PhoneInput-CUMPOSxJ.cjs.map +1 -0
- package/ProgressCircle-B2dfVdH-.d.cts +50 -0
- package/ProgressCircle-B2dfVdH-.d.cts.map +1 -0
- package/ProgressCircle-BC81D9sU.cjs +196 -0
- package/ProgressCircle-BC81D9sU.cjs.map +1 -0
- package/ProgressCircle-CxrflaLd.d.mts +50 -0
- package/ProgressCircle-CxrflaLd.d.mts.map +1 -0
- package/ProgressCircle-ae8cvZhe.mjs +191 -0
- package/ProgressCircle-ae8cvZhe.mjs.map +1 -0
- package/ProgressSteps-C3xJUDTs.d.mts +32 -0
- package/ProgressSteps-C3xJUDTs.d.mts.map +1 -0
- package/ProgressSteps-Ls0XahjM.d.cts +32 -0
- package/ProgressSteps-Ls0XahjM.d.cts.map +1 -0
- package/Radio.cjs +13 -0
- package/Radio.d.cts +2 -0
- package/Radio.d.mts +2 -0
- package/Radio.mjs +3 -0
- package/SaveConfetti-DI0MTd63.mjs +179 -0
- package/SaveConfetti-DI0MTd63.mjs.map +1 -0
- package/SaveConfetti-DSJtuE3b.cjs +184 -0
- package/SaveConfetti-DSJtuE3b.cjs.map +1 -0
- package/SearchInput-DYIPC8Cd.d.cts +126 -0
- package/SearchInput-DYIPC8Cd.d.cts.map +1 -0
- package/SearchInput-IfEWePDQ.d.mts +126 -0
- package/SearchInput-IfEWePDQ.d.mts.map +1 -0
- package/SegmentedControl-B5FZ0uX8.cjs +107 -0
- package/SegmentedControl-B5FZ0uX8.cjs.map +1 -0
- package/SegmentedControl-DHf4SQQL.mjs +96 -0
- package/SegmentedControl-DHf4SQQL.mjs.map +1 -0
- package/Select-BXDjzyDs.cjs +248 -0
- package/Select-BXDjzyDs.cjs.map +1 -0
- package/Select-BkZu8OLs.mjs +241 -0
- package/Select-BkZu8OLs.mjs.map +1 -0
- package/Select-g4yFQq1-.d.mts +36 -0
- package/Select-g4yFQq1-.d.mts.map +1 -0
- package/Select-ghtIe-gD.d.cts +36 -0
- package/Select-ghtIe-gD.d.cts.map +1 -0
- package/SelectAsync-267GxTnI.d.cts +11 -0
- package/SelectAsync-267GxTnI.d.cts.map +1 -0
- package/SelectAsync-CLcESc8k.d.mts +11 -0
- package/SelectAsync-CLcESc8k.d.mts.map +1 -0
- package/SelectAsyncCreatable-B2gB_MWk.d.mts +11 -0
- package/SelectAsyncCreatable-B2gB_MWk.d.mts.map +1 -0
- package/SelectAsyncCreatable-BhuvLhbk.d.cts +11 -0
- package/SelectAsyncCreatable-BhuvLhbk.d.cts.map +1 -0
- package/SelectCreatable-C87i1L43.d.cts +11 -0
- package/SelectCreatable-C87i1L43.d.cts.map +1 -0
- package/SelectCreatable-CNVa1sx-.d.mts +11 -0
- package/SelectCreatable-CNVa1sx-.d.mts.map +1 -0
- package/SingleCard-DPaHU2wR.d.mts +19 -0
- package/SingleCard-DPaHU2wR.d.mts.map +1 -0
- package/SingleCard-X1dP0AHZ.d.cts +19 -0
- package/SingleCard-X1dP0AHZ.d.cts.map +1 -0
- package/Skeleton-40Vi20JV.d.cts +15 -0
- package/Skeleton-40Vi20JV.d.cts.map +1 -0
- package/Skeleton-40Vi20JV.d.mts +15 -0
- package/Skeleton-40Vi20JV.d.mts.map +1 -0
- package/SplitButton-DK-LdIwN.d.cts +80 -0
- package/SplitButton-DK-LdIwN.d.cts.map +1 -0
- package/SplitButton-DK-LdIwN.d.mts +80 -0
- package/SplitButton-DK-LdIwN.d.mts.map +1 -0
- package/SplitButton-DcmmLW8j.cjs +184 -0
- package/SplitButton-DcmmLW8j.cjs.map +1 -0
- package/SplitButton-WE5ymwCQ.mjs +179 -0
- package/SplitButton-WE5ymwCQ.mjs.map +1 -0
- package/StarRating-CRGx_jeU.mjs +81 -0
- package/StarRating-CRGx_jeU.mjs.map +1 -0
- package/StarRating-Dski54FS.cjs +86 -0
- package/StarRating-Dski54FS.cjs.map +1 -0
- package/StarRating-Dx1nbkcG.d.mts +89 -0
- package/StarRating-Dx1nbkcG.d.mts.map +1 -0
- package/StarRating-TfkOMATk.d.cts +89 -0
- package/StarRating-TfkOMATk.d.cts.map +1 -0
- package/SuggestionChip-BLq_0VFE.d.cts +13 -0
- package/SuggestionChip-BLq_0VFE.d.cts.map +1 -0
- package/SuggestionChip-CilkTYTJ.d.mts +13 -0
- package/SuggestionChip-CilkTYTJ.d.mts.map +1 -0
- package/Table-CLlDragJ.cjs +500 -0
- package/Table-CLlDragJ.cjs.map +1 -0
- package/Table-M-rANdMt.mjs +495 -0
- package/Table-M-rANdMt.mjs.map +1 -0
- package/Tabs-DRT-IQZk.d.cts +41 -0
- package/Tabs-DRT-IQZk.d.cts.map +1 -0
- package/Tabs-DRT-IQZk.d.mts +41 -0
- package/Tabs-DRT-IQZk.d.mts.map +1 -0
- package/Text-BVoakc0X.d.cts +63 -0
- package/Text-BVoakc0X.d.cts.map +1 -0
- package/Text-OlyNC1yj.d.mts +63 -0
- package/Text-OlyNC1yj.d.mts.map +1 -0
- package/TextArea-C-a06VpC.d.cts +58 -0
- package/TextArea-C-a06VpC.d.cts.map +1 -0
- package/TextArea-CTHcW_IE.d.mts +58 -0
- package/TextArea-CTHcW_IE.d.mts.map +1 -0
- package/TextInput-BhkeQZh4.d.cts +47 -0
- package/TextInput-BhkeQZh4.d.cts.map +1 -0
- package/TextInput-CWCeR18b.d.mts +47 -0
- package/TextInput-CWCeR18b.d.mts.map +1 -0
- package/Thumbnails-B-eOrf55.d.cts +226 -0
- package/Thumbnails-B-eOrf55.d.cts.map +1 -0
- package/Thumbnails-B-eOrf55.d.mts +226 -0
- package/Thumbnails-B-eOrf55.d.mts.map +1 -0
- package/TimePickerTarget-BHceCsfc.cjs +25 -0
- package/TimePickerTarget-BHceCsfc.cjs.map +1 -0
- package/TimePickerTarget-DlbryTho.mjs +14 -0
- package/TimePickerTarget-DlbryTho.mjs.map +1 -0
- package/TimePickerTarget-pYRxAfb2.d.cts +14 -0
- package/TimePickerTarget-pYRxAfb2.d.cts.map +1 -0
- package/TimePickerTarget-pYRxAfb2.d.mts +14 -0
- package/TimePickerTarget-pYRxAfb2.d.mts.map +1 -0
- package/Toast-CPEKESLZ.cjs +107 -0
- package/Toast-CPEKESLZ.cjs.map +1 -0
- package/Toast-CdUaFVpt.mjs +96 -0
- package/Toast-CdUaFVpt.mjs.map +1 -0
- package/ToggleSwitch-D-HRkEg2.d.cts +60 -0
- package/ToggleSwitch-D-HRkEg2.d.cts.map +1 -0
- package/ToggleSwitch-D-HRkEg2.d.mts +60 -0
- package/ToggleSwitch-D-HRkEg2.d.mts.map +1 -0
- package/Tooltip-D6_5Rsmd.d.cts +21 -0
- package/Tooltip-D6_5Rsmd.d.cts.map +1 -0
- package/Tooltip-D6_5Rsmd.d.mts +21 -0
- package/Tooltip-D6_5Rsmd.d.mts.map +1 -0
- package/Tooltip.cjs +38 -0
- package/Tooltip.cjs.map +1 -0
- package/Tooltip.d.cts +2 -0
- package/Tooltip.d.mts +2 -0
- package/Tooltip.mjs +26 -0
- package/Tooltip.mjs.map +1 -0
- package/Typography/InlineButton.cjs +63 -0
- package/Typography/InlineButton.cjs.map +1 -0
- package/Typography/InlineButton.d.cts +2 -0
- package/Typography/InlineButton.d.mts +2 -0
- package/Typography/InlineButton.mjs +59 -0
- package/Typography/InlineButton.mjs.map +1 -0
- package/Typography/Links.cjs +62 -0
- package/Typography/Links.cjs.map +1 -0
- package/Typography/Links.d.cts +2 -0
- package/Typography/Links.d.mts +2 -0
- package/Typography/Links.mjs +51 -0
- package/Typography/Links.mjs.map +1 -0
- package/Typography/Text.cjs +178 -0
- package/Typography/Text.cjs.map +1 -0
- package/Typography/Text.d.cts +2 -0
- package/Typography/Text.d.mts +2 -0
- package/Typography/Text.mjs +163 -0
- package/Typography/Text.mjs.map +1 -0
- package/ViewMore-BBoUvo7p.cjs +138 -0
- package/ViewMore-BBoUvo7p.cjs.map +1 -0
- package/ViewMore-BrZPuE4E.mjs +133 -0
- package/ViewMore-BrZPuE4E.mjs.map +1 -0
- package/ViewMore-DKC9SYL4.d.cts +93 -0
- package/ViewMore-DKC9SYL4.d.cts.map +1 -0
- package/ViewMore-DKC9SYL4.d.mts +93 -0
- package/ViewMore-DKC9SYL4.d.mts.map +1 -0
- package/WebRTCPlayer-C-sTtskR.mjs +940 -0
- package/WebRTCPlayer-C-sTtskR.mjs.map +1 -0
- package/WebRTCPlayer-CssffyCM.cjs +983 -0
- package/WebRTCPlayer-CssffyCM.cjs.map +1 -0
- package/accordion.cjs +126 -0
- package/accordion.cjs.map +1 -0
- package/accordion.d.cts +2 -0
- package/accordion.d.mts +2 -0
- package/accordion.mjs +120 -0
- package/accordion.mjs.map +1 -0
- package/addressDisplay.cjs +7 -0
- package/addressDisplay.d.cts +2 -0
- package/addressDisplay.d.mts +2 -0
- package/addressDisplay.mjs +3 -0
- package/anyIcon-C3IQzJJ9.d.cts +7 -0
- package/anyIcon-C3IQzJJ9.d.cts.map +1 -0
- package/anyIcon-eR07wvJb.d.mts +7 -0
- package/anyIcon-eR07wvJb.d.mts.map +1 -0
- package/automatedCarousel.cjs +7 -0
- package/automatedCarousel.d.cts +2 -0
- package/automatedCarousel.d.mts +2 -0
- package/automatedCarousel.mjs +3 -0
- package/bannerNotification.cjs +7 -0
- package/bannerNotification.d.cts +2 -0
- package/bannerNotification.d.mts +2 -0
- package/bannerNotification.mjs +3 -0
- package/bottomSheet.cjs +7 -0
- package/bottomSheet.d.cts +2 -0
- package/bottomSheet.d.mts +2 -0
- package/bottomSheet.mjs +3 -0
- package/breadcrumbs.cjs +7 -0
- package/breadcrumbs.d.cts +2 -0
- package/breadcrumbs.d.mts +2 -0
- package/breadcrumbs.mjs +3 -0
- package/breakpoints.cjs +53 -0
- package/breakpoints.cjs.map +1 -0
- package/breakpoints.d.cts +2 -0
- package/breakpoints.d.mts +2 -0
- package/breakpoints.mjs +46 -0
- package/breakpoints.mjs.map +1 -0
- package/buttonColorClasses-B7OU4aQA.mjs +22 -0
- package/buttonColorClasses-B7OU4aQA.mjs.map +1 -0
- package/buttonColorClasses-C3hg1at8.cjs +93 -0
- package/buttonColorClasses-C3hg1at8.cjs.map +1 -0
- package/card/cardGrid.cjs +7 -0
- package/card/cardGrid.d.cts +2 -0
- package/card/cardGrid.d.mts +2 -0
- package/card/cardGrid.mjs +3 -0
- package/card/components/createBadge.cjs +27 -0
- package/card/components/createBadge.cjs.map +1 -0
- package/card/components/createBadge.d.cts +2 -0
- package/card/components/createBadge.d.mts +2 -0
- package/card/components/createBadge.mjs +23 -0
- package/card/components/createBadge.mjs.map +1 -0
- package/card/components/createFavoriteButton.cjs +31 -0
- package/card/components/createFavoriteButton.cjs.map +1 -0
- package/card/components/createFavoriteButton.d.cts +2 -0
- package/card/components/createFavoriteButton.d.mts +2 -0
- package/card/components/createFavoriteButton.mjs +27 -0
- package/card/components/createFavoriteButton.mjs.map +1 -0
- package/card/components/createImage.cjs +44 -0
- package/card/components/createImage.cjs.map +1 -0
- package/card/components/createImage.d.cts +2 -0
- package/card/components/createImage.d.mts +2 -0
- package/card/components/createImage.mjs +40 -0
- package/card/components/createImage.mjs.map +1 -0
- package/card/components/createInfo.cjs +61 -0
- package/card/components/createInfo.cjs.map +1 -0
- package/card/components/createInfo.d.cts +2 -0
- package/card/components/createInfo.d.mts +2 -0
- package/card/components/createInfo.mjs +56 -0
- package/card/components/createInfo.mjs.map +1 -0
- package/card/components/createName.cjs +43 -0
- package/card/components/createName.cjs.map +1 -0
- package/card/components/createName.d.cts +2 -0
- package/card/components/createName.d.mts +2 -0
- package/card/components/createName.mjs +39 -0
- package/card/components/createName.mjs.map +1 -0
- package/card/components/createPriceStatus.cjs +77 -0
- package/card/components/createPriceStatus.cjs.map +1 -0
- package/card/components/createPriceStatus.d.cts +2 -0
- package/card/components/createPriceStatus.d.mts +2 -0
- package/card/components/createPriceStatus.mjs +70 -0
- package/card/components/createPriceStatus.mjs.map +1 -0
- package/card/factory.cjs +7 -0
- package/card/factory.d.cts +3 -0
- package/card/factory.d.mts +3 -0
- package/card/factory.mjs +3 -0
- package/card/singleCard.cjs +18 -0
- package/card/singleCard.cjs.map +1 -0
- package/card/singleCard.d.cts +2 -0
- package/card/singleCard.d.mts +2 -0
- package/card/singleCard.mjs +14 -0
- package/card/singleCard.mjs.map +1 -0
- package/cardFactory-B0Ah0Qb8.mjs +102 -0
- package/cardFactory-B0Ah0Qb8.mjs.map +1 -0
- package/cardFactory-CEKTSSXs.d.cts +37 -0
- package/cardFactory-CEKTSSXs.d.cts.map +1 -0
- package/cardFactory-DTU3jY-R.cjs +107 -0
- package/cardFactory-DTU3jY-R.cjs.map +1 -0
- package/cardFactory-Z5a675Nr.d.mts +37 -0
- package/cardFactory-Z5a675Nr.d.mts.map +1 -0
- package/carousel.cjs +10 -0
- package/carousel.d.cts +2 -0
- package/carousel.d.mts +2 -0
- package/carousel.mjs +3 -0
- package/chipTypes-Bi0ZROty.d.cts +109 -0
- package/chipTypes-Bi0ZROty.d.cts.map +1 -0
- package/chipTypes-Bi0ZROty.d.mts +109 -0
- package/chipTypes-Bi0ZROty.d.mts.map +1 -0
- package/chips/chip.cjs +102 -0
- package/chips/chip.cjs.map +1 -0
- package/chips/chip.d.cts +2 -0
- package/chips/chip.d.mts +2 -0
- package/chips/chip.mjs +98 -0
- package/chips/chip.mjs.map +1 -0
- package/chips/chipGroup.cjs +127 -0
- package/chips/chipGroup.cjs.map +1 -0
- package/chips/chipGroup.d.cts +2 -0
- package/chips/chipGroup.d.mts +2 -0
- package/chips/chipGroup.mjs +123 -0
- package/chips/chipGroup.mjs.map +1 -0
- package/chips/suggestion.cjs +20 -0
- package/chips/suggestion.cjs.map +1 -0
- package/chips/suggestion.d.cts +2 -0
- package/chips/suggestion.d.mts +2 -0
- package/chips/suggestion.mjs +16 -0
- package/chips/suggestion.mjs.map +1 -0
- package/chips/types.cjs +1 -0
- package/chips/types.d.cts +2 -0
- package/chips/types.d.mts +2 -0
- package/chips/types.mjs +2 -0
- package/chips.cjs +12 -0
- package/chips.d.cts +5 -0
- package/chips.d.mts +5 -0
- package/chips.mjs +6 -0
- package/collapsible.cjs +47 -0
- package/collapsible.cjs.map +1 -0
- package/collapsible.d.cts +2 -0
- package/collapsible.d.mts +2 -0
- package/collapsible.mjs +43 -0
- package/collapsible.mjs.map +1 -0
- package/components-BPFB_cmZ.mjs +346 -0
- package/components-BPFB_cmZ.mjs.map +1 -0
- package/components-CL4KcKF0.cjs +393 -0
- package/components-CL4KcKF0.cjs.map +1 -0
- package/confetti.cjs +7 -0
- package/confetti.d.cts +2 -0
- package/confetti.d.mts +2 -0
- package/confetti.mjs +3 -0
- package/contentPager.cjs +9 -0
- package/contentPager.d.cts +2 -0
- package/contentPager.d.mts +2 -0
- package/contentPager.mjs +3 -0
- package/context--_0mDNFa.d.cts +24 -0
- package/context--_0mDNFa.d.cts.map +1 -0
- package/context--_0mDNFa.d.mts +24 -0
- package/context--_0mDNFa.d.mts.map +1 -0
- package/cookieConsent.cjs +11 -0
- package/cookieConsent.d.cts +2 -0
- package/cookieConsent.d.mts +2 -0
- package/cookieConsent.mjs +3 -0
- package/countdown/types.cjs +1 -0
- package/countdown/types.d.cts +2 -0
- package/countdown/types.d.mts +2 -0
- package/countdown/types.mjs +2 -0
- package/countdown.cjs +7 -0
- package/countdown.d.cts +2 -0
- package/countdown.d.mts +2 -0
- package/countdown.mjs +3 -0
- package/createBadge-CYumy92O.d.mts +19 -0
- package/createBadge-CYumy92O.d.mts.map +1 -0
- package/createBadge-LFbUXGlB.d.cts +19 -0
- package/createBadge-LFbUXGlB.d.cts.map +1 -0
- package/createFavoriteButton-8xbCWiTD.d.mts +21 -0
- package/createFavoriteButton-8xbCWiTD.d.mts.map +1 -0
- package/createFavoriteButton-Bnp0UOEq.d.cts +21 -0
- package/createFavoriteButton-Bnp0UOEq.d.cts.map +1 -0
- package/createImage-BYnNgRok.d.mts +26 -0
- package/createImage-BYnNgRok.d.mts.map +1 -0
- package/createImage-DYLD7AJb.d.cts +26 -0
- package/createImage-DYLD7AJb.d.cts.map +1 -0
- package/createInfo-C9sqGWBq.d.mts +44 -0
- package/createInfo-C9sqGWBq.d.mts.map +1 -0
- package/createInfo-USBqE7Tt.d.cts +44 -0
- package/createInfo-USBqE7Tt.d.cts.map +1 -0
- package/createName-DB7BL9GP.d.cts +26 -0
- package/createName-DB7BL9GP.d.cts.map +1 -0
- package/createName-U7oHRNVL.d.mts +26 -0
- package/createName-U7oHRNVL.d.mts.map +1 -0
- package/createPriceStatus-C-amebFt.d.cts +30 -0
- package/createPriceStatus-C-amebFt.d.cts.map +1 -0
- package/createPriceStatus-DBWT6ob8.d.mts +30 -0
- package/createPriceStatus-DBWT6ob8.d.mts.map +1 -0
- package/dateInput.cjs +98 -0
- package/dateInput.cjs.map +1 -0
- package/dateInput.d.cts +2 -0
- package/dateInput.d.mts +2 -0
- package/dateInput.mjs +94 -0
- package/dateInput.mjs.map +1 -0
- package/datePicker-DQ32Z8yo.mjs +136 -0
- package/datePicker-DQ32Z8yo.mjs.map +1 -0
- package/datePicker-DaYegd15.cjs +141 -0
- package/datePicker-DaYegd15.cjs.map +1 -0
- package/datePicker.cjs +9 -0
- package/datePicker.d.cts +3 -0
- package/datePicker.d.mts +3 -0
- package/datePicker.mjs +4 -0
- package/dateTimeInput/utils.cjs +8 -0
- package/dateTimeInput/utils.d.cts +2 -0
- package/dateTimeInput/utils.d.mts +2 -0
- package/dateTimeInput/utils.mjs +3 -0
- package/drawer.cjs +7 -0
- package/drawer.d.cts +2 -0
- package/drawer.d.mts +2 -0
- package/drawer.mjs +3 -0
- package/educationalPopover.cjs +110 -0
- package/educationalPopover.cjs.map +1 -0
- package/educationalPopover.d.cts +2 -0
- package/educationalPopover.d.mts +2 -0
- package/educationalPopover.mjs +106 -0
- package/educationalPopover.mjs.map +1 -0
- package/effectEventListener-DmVY5Sgy.cjs +16 -0
- package/effectEventListener-DmVY5Sgy.cjs.map +1 -0
- package/effectEventListener-WApakaup.mjs +11 -0
- package/effectEventListener-WApakaup.mjs.map +1 -0
- package/favoriteButton.cjs +7 -0
- package/favoriteButton.d.cts +2 -0
- package/favoriteButton.d.mts +2 -0
- package/favoriteButton.mjs +3 -0
- package/featureFlagProvider-Cl66ibpA.cjs +25 -0
- package/featureFlagProvider-Cl66ibpA.cjs.map +1 -0
- package/featureFlagProvider-_wGBROhw.mjs +14 -0
- package/featureFlagProvider-_wGBROhw.mjs.map +1 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.cjs +7 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.d.cts +2 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.d.mts +2 -0
- package/featureFlags/devTools/FeatureFlagDevToolsUI.mjs +3 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.cjs +27 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.cjs.map +1 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.cts +15 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.cts.map +1 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.mts +15 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.d.mts.map +1 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.mjs +23 -0
- package/featureFlags/devTools/getFeatureFlagCookieOverrides.mjs.map +1 -0
- package/featureFlags/hooks.cjs +9 -0
- package/featureFlags/hooks.d.cts +2 -0
- package/featureFlags/hooks.d.mts +2 -0
- package/featureFlags/hooks.mjs +4 -0
- package/fileUpload/hooks.cjs +8 -0
- package/fileUpload/hooks.d.cts +2 -0
- package/fileUpload/hooks.d.mts +2 -0
- package/fileUpload/hooks.mjs +3 -0
- package/fileUpload/testUtils/mockFilesAndImages.cjs +68 -0
- package/fileUpload/testUtils/mockFilesAndImages.cjs.map +1 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.cts +19 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.cts.map +1 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.mts +19 -0
- package/fileUpload/testUtils/mockFilesAndImages.d.mts.map +1 -0
- package/fileUpload/testUtils/mockFilesAndImages.mjs +52 -0
- package/fileUpload/testUtils/mockFilesAndImages.mjs.map +1 -0
- package/fileUpload/testUtils/testUtils.cjs +91 -0
- package/fileUpload/testUtils/testUtils.cjs.map +1 -0
- package/fileUpload/testUtils/testUtils.d.cts +13 -0
- package/fileUpload/testUtils/testUtils.d.cts.map +1 -0
- package/fileUpload/testUtils/testUtils.d.mts +13 -0
- package/fileUpload/testUtils/testUtils.d.mts.map +1 -0
- package/fileUpload/testUtils/testUtils.mjs +81 -0
- package/fileUpload/testUtils/testUtils.mjs.map +1 -0
- package/fileUpload/types.cjs +31 -0
- package/fileUpload/types.cjs.map +1 -0
- package/fileUpload/types.d.cts +2 -0
- package/fileUpload/types.d.mts +2 -0
- package/fileUpload/types.mjs +26 -0
- package/fileUpload/types.mjs.map +1 -0
- package/fileUpload.cjs +24 -0
- package/fileUpload.d.cts +4 -0
- package/fileUpload.d.mts +4 -0
- package/fileUpload.mjs +4 -0
- package/formLabel.cjs +108 -0
- package/formLabel.cjs.map +1 -0
- package/formLabel.d.cts +2 -0
- package/formLabel.d.mts +2 -0
- package/formLabel.mjs +103 -0
- package/formLabel.mjs.map +1 -0
- package/grid.cjs +128 -0
- package/grid.cjs.map +1 -0
- package/grid.d.cts +3 -0
- package/grid.d.mts +3 -0
- package/grid.mjs +118 -0
- package/grid.mjs.map +1 -0
- package/gridHighlighter-BU9PvG5f.d.cts +29 -0
- package/gridHighlighter-BU9PvG5f.d.cts.map +1 -0
- package/gridHighlighter-BU9PvG5f.d.mts +29 -0
- package/gridHighlighter-BU9PvG5f.d.mts.map +1 -0
- package/gridHighlighter-BcGNd3EE.mjs +55 -0
- package/gridHighlighter-BcGNd3EE.mjs.map +1 -0
- package/gridHighlighter-BiSMM7lW.cjs +66 -0
- package/gridHighlighter-BiSMM7lW.cjs.map +1 -0
- package/hooks/usePrevious.cjs +21 -0
- package/hooks/usePrevious.cjs.map +1 -0
- package/hooks/usePrevious.d.cts +2 -0
- package/hooks/usePrevious.d.mts +2 -0
- package/hooks/usePrevious.mjs +17 -0
- package/hooks/usePrevious.mjs.map +1 -0
- package/hooks-8VsDqwlb.cjs +672 -0
- package/hooks-8VsDqwlb.cjs.map +1 -0
- package/hooks-BudbgYTF.mjs +22 -0
- package/hooks-BudbgYTF.mjs.map +1 -0
- package/hooks-D4sJ62Xl.mjs +607 -0
- package/hooks-D4sJ62Xl.mjs.map +1 -0
- package/hooks-DDMD_CDN.cjs +27 -0
- package/hooks-DDMD_CDN.cjs.map +1 -0
- package/horizontalScrollFadeMixin-BBr1qJpj.mjs +38 -0
- package/horizontalScrollFadeMixin-BBr1qJpj.mjs.map +1 -0
- package/horizontalScrollFadeMixin-ChYR-9hE.cjs +43 -0
- package/horizontalScrollFadeMixin-ChYR-9hE.cjs.map +1 -0
- package/imageCluster.cjs +54 -0
- package/imageCluster.cjs.map +1 -0
- package/imageCluster.d.cts +2 -0
- package/imageCluster.d.mts +2 -0
- package/imageCluster.mjs +50 -0
- package/imageCluster.mjs.map +1 -0
- package/imageSlider.cjs +10 -0
- package/imageSlider.d.cts +2 -0
- package/imageSlider.d.mts +2 -0
- package/imageSlider.mjs +3 -0
- package/index-3V0Y3AU3.d.mts +25 -0
- package/index-3V0Y3AU3.d.mts.map +1 -0
- package/index-9649Aqry.d.cts +84 -0
- package/index-9649Aqry.d.cts.map +1 -0
- package/index-9649Aqry.d.mts +84 -0
- package/index-9649Aqry.d.mts.map +1 -0
- package/index-B-GVogfk2.d.mts +519 -0
- package/index-B-GVogfk2.d.mts.map +1 -0
- package/index-BAR19_eg.d.cts +494 -0
- package/index-BAR19_eg.d.cts.map +1 -0
- package/index-BAR19_eg.d.mts +494 -0
- package/index-BAR19_eg.d.mts.map +1 -0
- package/index-BIbZcTRq.d.cts +236 -0
- package/index-BIbZcTRq.d.cts.map +1 -0
- package/index-BVb-FJDo.d.mts +322 -0
- package/index-BVb-FJDo.d.mts.map +1 -0
- package/index-BXz3rMMk.d.cts +322 -0
- package/index-BXz3rMMk.d.cts.map +1 -0
- package/index-Bm-eSWuV.d.mts +75 -0
- package/index-Bm-eSWuV.d.mts.map +1 -0
- package/index-BsA0Oogf.d.cts +75 -0
- package/index-BsA0Oogf.d.cts.map +1 -0
- package/index-Bu7c6X7O.d.mts +117 -0
- package/index-Bu7c6X7O.d.mts.map +1 -0
- package/index-BvJOKeoD.d.cts +94 -0
- package/index-BvJOKeoD.d.cts.map +1 -0
- package/index-BvJOKeoD.d.mts +94 -0
- package/index-BvJOKeoD.d.mts.map +1 -0
- package/index-ByYgcpRS.d.cts +1644 -0
- package/index-ByYgcpRS.d.cts.map +1 -0
- package/index-ByZJ4iMT2.d.mts +143 -0
- package/index-ByZJ4iMT2.d.mts.map +1 -0
- package/index-BzN9RaXe.d.cts +117 -0
- package/index-BzN9RaXe.d.cts.map +1 -0
- package/index-C1knx8x3.d.cts +8 -0
- package/index-C1knx8x3.d.cts.map +1 -0
- package/index-C1knx8x3.d.mts +8 -0
- package/index-C1knx8x3.d.mts.map +1 -0
- package/index-CEUCcUr8.d.mts +26 -0
- package/index-CEUCcUr8.d.mts.map +1 -0
- package/index-CQb7B4U7.d.mts +25 -0
- package/index-CQb7B4U7.d.mts.map +1 -0
- package/index-CTGvafCc.d.mts +68 -0
- package/index-CTGvafCc.d.mts.map +1 -0
- package/index-CTfIOH2Z2.d.cts +519 -0
- package/index-CTfIOH2Z2.d.cts.map +1 -0
- package/index-CXbRJmrm.d.cts +49 -0
- package/index-CXbRJmrm.d.cts.map +1 -0
- package/index-CXbRJmrm.d.mts +49 -0
- package/index-CXbRJmrm.d.mts.map +1 -0
- package/index-Co9X1Vty.d.cts +25 -0
- package/index-Co9X1Vty.d.cts.map +1 -0
- package/index-D1Zpm1h7.d.cts +58 -0
- package/index-D1Zpm1h7.d.cts.map +1 -0
- package/index-D1Zpm1h7.d.mts +58 -0
- package/index-D1Zpm1h7.d.mts.map +1 -0
- package/index-D2HDrkK3.d.cts +172 -0
- package/index-D2HDrkK3.d.cts.map +1 -0
- package/index-D2HDrkK3.d.mts +172 -0
- package/index-D2HDrkK3.d.mts.map +1 -0
- package/index-D8NtFEaq.d.cts +193 -0
- package/index-D8NtFEaq.d.cts.map +1 -0
- package/index-D8NtFEaq.d.mts +193 -0
- package/index-D8NtFEaq.d.mts.map +1 -0
- package/index-DBYqF9Sr.d.cts +39 -0
- package/index-DBYqF9Sr.d.cts.map +1 -0
- package/index-DS-jIZFO.d.mts +1644 -0
- package/index-DS-jIZFO.d.mts.map +1 -0
- package/index-DTEgNDXq.d.mts +111 -0
- package/index-DTEgNDXq.d.mts.map +1 -0
- package/index-DTEgNDXq2.d.cts +111 -0
- package/index-DTEgNDXq2.d.cts.map +1 -0
- package/index-DUdcrvAe.d.cts +26 -0
- package/index-DUdcrvAe.d.cts.map +1 -0
- package/index-DUdcrvAe.d.mts +26 -0
- package/index-DUdcrvAe.d.mts.map +1 -0
- package/index-DwA_GqJq.d.cts +26 -0
- package/index-DwA_GqJq.d.cts.map +1 -0
- package/index-MX_CgDGs.d.cts +147 -0
- package/index-MX_CgDGs.d.cts.map +1 -0
- package/index-MX_CgDGs.d.mts +147 -0
- package/index-MX_CgDGs.d.mts.map +1 -0
- package/index-NeSBj5ci.d.cts +200 -0
- package/index-NeSBj5ci.d.cts.map +1 -0
- package/index-NeSBj5ci.d.mts +200 -0
- package/index-NeSBj5ci.d.mts.map +1 -0
- package/index-XZwBshBM.d.cts +177 -0
- package/index-XZwBshBM.d.cts.map +1 -0
- package/index-XZwBshBM.d.mts +177 -0
- package/index-XZwBshBM.d.mts.map +1 -0
- package/index-dpfLYhgI.d.mts +39 -0
- package/index-dpfLYhgI.d.mts.map +1 -0
- package/index-kchg551L.d.cts +25 -0
- package/index-kchg551L.d.cts.map +1 -0
- package/index-l7Awc0i3.d.cts +68 -0
- package/index-l7Awc0i3.d.cts.map +1 -0
- package/index-ojxI7tqs.d.cts +143 -0
- package/index-ojxI7tqs.d.cts.map +1 -0
- package/index-otqj7yHa.d.mts +236 -0
- package/index-otqj7yHa.d.mts.map +1 -0
- package/index.cjs +472 -0
- package/index.d.cts +101 -0
- package/index.d.mts +101 -0
- package/index.mjs +99 -0
- package/inlineNotification.cjs +82 -0
- package/inlineNotification.cjs.map +1 -0
- package/inlineNotification.d.cts +2 -0
- package/inlineNotification.d.mts +2 -0
- package/inlineNotification.mjs +78 -0
- package/inlineNotification.mjs.map +1 -0
- package/intl/utils.cjs +41 -0
- package/intl/utils.cjs.map +1 -0
- package/intl/utils.d.cts +18 -0
- package/intl/utils.d.cts.map +1 -0
- package/intl/utils.d.mts +18 -0
- package/intl/utils.d.mts.map +1 -0
- package/intl/utils.mjs +34 -0
- package/intl/utils.mjs.map +1 -0
- package/intl.cjs +34 -0
- package/intl.d.cts +5 -0
- package/intl.d.mts +5 -0
- package/intl.mjs +6 -0
- package/jumpMenu.cjs +7 -0
- package/jumpMenu.d.cts +2 -0
- package/jumpMenu.d.mts +2 -0
- package/jumpMenu.mjs +3 -0
- package/loading.cjs +7 -0
- package/loading.d.cts +2 -0
- package/loading.d.mts +2 -0
- package/loading.mjs +3 -0
- package/menu.cjs +9 -0
- package/menu.d.cts +2 -0
- package/menu.d.mts +2 -0
- package/menu.mjs +3 -0
- package/menuContext-4P6eKzkH.mjs +14 -0
- package/menuContext-4P6eKzkH.mjs.map +1 -0
- package/menuContext-B6MhMBDf.cjs +25 -0
- package/menuContext-B6MhMBDf.cjs.map +1 -0
- package/mixins-CoXneD1m.mjs +235 -0
- package/mixins-CoXneD1m.mjs.map +1 -0
- package/mixins-D56ptENc.cjs +282 -0
- package/mixins-D56ptENc.cjs.map +1 -0
- package/mixins.cjs +13 -0
- package/mixins.d.cts +2 -0
- package/mixins.d.mts +2 -0
- package/mixins.mjs +2 -0
- package/modal/components.cjs +16 -0
- package/modal/components.d.cts +3 -0
- package/modal/components.d.mts +3 -0
- package/modal/components.mjs +4 -0
- package/modal/context.cjs +26 -0
- package/modal/context.cjs.map +1 -0
- package/modal/context.d.cts +2 -0
- package/modal/context.d.mts +2 -0
- package/modal/context.mjs +21 -0
- package/modal/context.mjs.map +1 -0
- package/modal/useCloseModal.cjs +103 -0
- package/modal/useCloseModal.cjs.map +1 -0
- package/modal/useCloseModal.d.cts +2 -0
- package/modal/useCloseModal.d.mts +2 -0
- package/modal/useCloseModal.mjs +98 -0
- package/modal/useCloseModal.mjs.map +1 -0
- package/modal.cjs +7 -0
- package/modal.d.cts +2 -0
- package/modal.d.mts +2 -0
- package/modal.mjs +3 -0
- package/nodeEnv-B4v61vkJ.mjs +6 -0
- package/nodeEnv-B4v61vkJ.mjs.map +1 -0
- package/nodeEnv-BdQ-HyQz.cjs +11 -0
- package/nodeEnv-BdQ-HyQz.cjs.map +1 -0
- package/notificationBadge.cjs +24 -0
- package/notificationBadge.cjs.map +1 -0
- package/notificationBadge.d.cts +2 -0
- package/notificationBadge.d.mts +2 -0
- package/notificationBadge.mjs +20 -0
- package/notificationBadge.mjs.map +1 -0
- package/package.json +73 -0
- package/pagination.cjs +10 -0
- package/pagination.d.cts +2 -0
- package/pagination.d.mts +2 -0
- package/pagination.mjs +3 -0
- package/phoneInput.cjs +34 -0
- package/phoneInput.d.cts +5 -0
- package/phoneInput.d.mts +5 -0
- package/phoneInput.mjs +6 -0
- package/progressCircle.cjs +7 -0
- package/progressCircle.d.cts +2 -0
- package/progressCircle.d.mts +2 -0
- package/progressCircle.mjs +3 -0
- package/progressSteps.cjs +92 -0
- package/progressSteps.cjs.map +1 -0
- package/progressSteps.d.cts +2 -0
- package/progressSteps.d.mts +2 -0
- package/progressSteps.mjs +88 -0
- package/progressSteps.mjs.map +1 -0
- package/providers.cjs +333 -0
- package/providers.cjs.map +1 -0
- package/providers.d.cts +5 -0
- package/providers.d.mts +5 -0
- package/providers.mjs +292 -0
- package/providers.mjs.map +1 -0
- package/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/saveConfetti.cjs +7 -0
- package/saveConfetti.d.cts +2 -0
- package/saveConfetti.d.mts +2 -0
- package/saveConfetti.mjs +3 -0
- package/searchInput.cjs +92 -0
- package/searchInput.cjs.map +1 -0
- package/searchInput.d.cts +2 -0
- package/searchInput.d.mts +2 -0
- package/searchInput.mjs +88 -0
- package/searchInput.mjs.map +1 -0
- package/segmentedControl.cjs +8 -0
- package/segmentedControl.d.cts +2 -0
- package/segmentedControl.d.mts +2 -0
- package/segmentedControl.mjs +3 -0
- package/select.cjs +9 -0
- package/select.d.cts +2 -0
- package/select.d.mts +2 -0
- package/select.mjs +3 -0
- package/selectAsync.cjs +20 -0
- package/selectAsync.cjs.map +1 -0
- package/selectAsync.d.cts +2 -0
- package/selectAsync.d.mts +2 -0
- package/selectAsync.mjs +14 -0
- package/selectAsync.mjs.map +1 -0
- package/selectAsyncCreatable.cjs +19 -0
- package/selectAsyncCreatable.cjs.map +1 -0
- package/selectAsyncCreatable.d.cts +2 -0
- package/selectAsyncCreatable.d.mts +2 -0
- package/selectAsyncCreatable.mjs +13 -0
- package/selectAsyncCreatable.mjs.map +1 -0
- package/selectComponents.cjs +12 -0
- package/selectComponents.d.cts +2 -0
- package/selectComponents.d.mts +2 -0
- package/selectComponents.mjs +3 -0
- package/selectCreatable.cjs +19 -0
- package/selectCreatable.cjs.map +1 -0
- package/selectCreatable.d.cts +2 -0
- package/selectCreatable.d.mts +2 -0
- package/selectCreatable.mjs +13 -0
- package/selectCreatable.mjs.map +1 -0
- package/sharedProps-D7PSXdXt.d.mts +16 -0
- package/sharedProps-D7PSXdXt.d.mts.map +1 -0
- package/sharedProps-DPhLON6O.d.cts +16 -0
- package/sharedProps-DPhLON6O.d.cts.map +1 -0
- package/skeleton.cjs +24 -0
- package/skeleton.cjs.map +1 -0
- package/skeleton.d.cts +2 -0
- package/skeleton.d.mts +2 -0
- package/skeleton.mjs +18 -0
- package/skeleton.mjs.map +1 -0
- package/spacing.cjs +27 -0
- package/spacing.cjs.map +1 -0
- package/spacing.d.cts +13 -0
- package/spacing.d.cts.map +1 -0
- package/spacing.d.mts +13 -0
- package/spacing.d.mts.map +1 -0
- package/spacing.mjs +15 -0
- package/spacing.mjs.map +1 -0
- package/splitButton.cjs +7 -0
- package/splitButton.d.cts +2 -0
- package/splitButton.d.mts +2 -0
- package/splitButton.mjs +3 -0
- package/starRating.cjs +7 -0
- package/starRating.d.cts +2 -0
- package/starRating.d.mts +2 -0
- package/starRating.mjs +3 -0
- package/table.cjs +7 -0
- package/table.d.cts +2 -0
- package/table.d.mts +2 -0
- package/table.mjs +3 -0
- package/tabs.cjs +191 -0
- package/tabs.cjs.map +1 -0
- package/tabs.d.cts +2 -0
- package/tabs.d.mts +2 -0
- package/tabs.mjs +187 -0
- package/tabs.mjs.map +1 -0
- package/textArea.cjs +75 -0
- package/textArea.cjs.map +1 -0
- package/textArea.d.cts +2 -0
- package/textArea.d.mts +2 -0
- package/textArea.mjs +71 -0
- package/textArea.mjs.map +1 -0
- package/textInput.cjs +7 -0
- package/textInput.d.cts +2 -0
- package/textInput.d.mts +2 -0
- package/textInput.mjs +3 -0
- package/timePicker-BPrJk5TQ.mjs +376 -0
- package/timePicker-BPrJk5TQ.mjs.map +1 -0
- package/timePicker-Bs25zweI.cjs +381 -0
- package/timePicker-Bs25zweI.cjs.map +1 -0
- package/timePicker.cjs +9 -0
- package/timePicker.d.cts +3 -0
- package/timePicker.d.mts +3 -0
- package/timePicker.mjs +4 -0
- package/toast.cjs +8 -0
- package/toast.d.cts +2 -0
- package/toast.d.mts +2 -0
- package/toast.mjs +3 -0
- package/toggleSwitch.cjs +95 -0
- package/toggleSwitch.cjs.map +1 -0
- package/toggleSwitch.d.cts +2 -0
- package/toggleSwitch.d.mts +2 -0
- package/toggleSwitch.mjs +91 -0
- package/toggleSwitch.mjs.map +1 -0
- package/types-rTX1-GHe.d.cts +8 -0
- package/types-rTX1-GHe.d.cts.map +1 -0
- package/types-rTX1-GHe.d.mts +8 -0
- package/types-rTX1-GHe.d.mts.map +1 -0
- package/types-wcNSa96H.d.cts +60 -0
- package/types-wcNSa96H.d.cts.map +1 -0
- package/types-wcNSa96H.d.mts +60 -0
- package/types-wcNSa96H.d.mts.map +1 -0
- package/useCloseModal-CIPrwKwM.d.cts +26 -0
- package/useCloseModal-CIPrwKwM.d.cts.map +1 -0
- package/useCloseModal-CIPrwKwM.d.mts +26 -0
- package/useCloseModal-CIPrwKwM.d.mts.map +1 -0
- package/useFeatureFlags--GRuT9Qc.cjs +24 -0
- package/useFeatureFlags--GRuT9Qc.cjs.map +1 -0
- package/useFeatureFlags-Dmf_37f8.mjs +19 -0
- package/useFeatureFlags-Dmf_37f8.mjs.map +1 -0
- package/useIntersectionObserver-Q6Y3c3sz.mjs +47 -0
- package/useIntersectionObserver-Q6Y3c3sz.mjs.map +1 -0
- package/useIntersectionObserver-oYkZjzFF.cjs +52 -0
- package/useIntersectionObserver-oYkZjzFF.cjs.map +1 -0
- package/usePrevious-DLOWI2sB.d.cts +8 -0
- package/usePrevious-DLOWI2sB.d.cts.map +1 -0
- package/usePrevious-DLOWI2sB.d.mts +8 -0
- package/usePrevious-DLOWI2sB.d.mts.map +1 -0
- package/utils/dateTimeFormat.cjs +217 -0
- package/utils/dateTimeFormat.cjs.map +1 -0
- package/utils/dateTimeFormat.d.cts +176 -0
- package/utils/dateTimeFormat.d.cts.map +1 -0
- package/utils/dateTimeFormat.d.mts +176 -0
- package/utils/dateTimeFormat.d.mts.map +1 -0
- package/utils/dateTimeFormat.mjs +199 -0
- package/utils/dateTimeFormat.mjs.map +1 -0
- package/utils/formatFileSize.cjs +24 -0
- package/utils/formatFileSize.cjs.map +1 -0
- package/utils/formatFileSize.d.cts +5 -0
- package/utils/formatFileSize.d.cts.map +1 -0
- package/utils/formatFileSize.d.mts +5 -0
- package/utils/formatFileSize.d.mts.map +1 -0
- package/utils/formatFileSize.mjs +20 -0
- package/utils/formatFileSize.mjs.map +1 -0
- package/utils-C6Ngn6x9.mjs +23 -0
- package/utils-C6Ngn6x9.mjs.map +1 -0
- package/utils-CvmfGpqu.cjs +34 -0
- package/utils-CvmfGpqu.cjs.map +1 -0
- package/viewMore.cjs +7 -0
- package/viewMore.d.cts +2 -0
- package/viewMore.d.mts +2 -0
- package/viewMore.mjs +3 -0
- package/webRTCPlayer.cjs +13 -0
- package/webRTCPlayer.d.cts +2 -0
- package/webRTCPlayer.d.mts +2 -0
- package/webRTCPlayer.mjs +3 -0
- package/windowSizeProvider-BMaATFiZ.cjs +147 -0
- package/windowSizeProvider-BMaATFiZ.cjs.map +1 -0
- package/windowSizeProvider-sYwAqaOy.mjs +64 -0
- package/windowSizeProvider-sYwAqaOy.mjs.map +1 -0
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
import { ArrowSquareOut } from "./Icons.mjs";
|
|
2
|
+
import { BodySecondary, Caption, H5 } from "./Typography/Text.mjs";
|
|
3
|
+
import { LoadingSpinner } from "./LoadingSpinner.mjs";
|
|
4
|
+
import { Button } from "./Button.mjs";
|
|
5
|
+
import { IconButton } from "./IconButton.mjs";
|
|
6
|
+
import { cn } from "@evolve.ui/theme-system";
|
|
7
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region src/WebRTCPlayer/types.ts
|
|
10
|
+
/**
|
|
11
|
+
* Configuration constants for WebRTC player
|
|
12
|
+
*/
|
|
13
|
+
const DEFAULT_WS_PORT = 5080;
|
|
14
|
+
const DEFAULT_WSS_PORT = 5443;
|
|
15
|
+
const DEFAULT_PATH = "/WebRTCAppEE/websocket";
|
|
16
|
+
const RECONNECT_INTERVAL = 5e3;
|
|
17
|
+
const PING_INTERVAL = 3e4;
|
|
18
|
+
const FETCH_STREAM_ID_TIMEOUT = 3e3;
|
|
19
|
+
/**
|
|
20
|
+
* Error tokens emitted by NativeWebRTCAdaptor via its callbackError channel.
|
|
21
|
+
* Exported so the adaptor (producer) and the hook's friendly-message map
|
|
22
|
+
* (consumer) reference the same literals and can't silently drift apart — a
|
|
23
|
+
* rename here is a compile error on both sides rather than a silent fallthrough.
|
|
24
|
+
*/
|
|
25
|
+
const WebRTCErrorToken = {
|
|
26
|
+
failedToCreateAnswer: "Failed to create answer",
|
|
27
|
+
failedToSetLocalDescription: "Failed to set local description",
|
|
28
|
+
failedToSetRemoteDescription: "Failed to set remote description",
|
|
29
|
+
iceConnectionFailed: "IceConnectionFailed",
|
|
30
|
+
peerConnectionFailed: "PeerConnectionFailed",
|
|
31
|
+
webSocketError: "WebSocket error",
|
|
32
|
+
webSocketNotConnected: "WebSocketNotConnected",
|
|
33
|
+
webSocketNotSupported: "WebSocketNotSupported"
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/WebRTCPlayer/adaptor/NativeWebRTCAdaptor.ts
|
|
37
|
+
/**
|
|
38
|
+
* Native WebRTC Adaptor for Ant Media Server
|
|
39
|
+
*
|
|
40
|
+
* This is a lightweight TypeScript implementation for WebRTC streaming from Ant Media Server.
|
|
41
|
+
* It uses only native browser APIs (WebSocket, RTCPeerConnection) without external dependencies.
|
|
42
|
+
*
|
|
43
|
+
* This adaptor only supports PLAY mode (consuming streams), not publishing.
|
|
44
|
+
*
|
|
45
|
+
* Note: Console statements are intentionally enabled in this file for WebRTC debugging,
|
|
46
|
+
* as they are crucial for troubleshooting connection issues in production environments.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* WebSocket adaptor for managing the connection to Ant Media Server
|
|
50
|
+
*/
|
|
51
|
+
var WebSocketAdaptor = class {
|
|
52
|
+
constructor(config) {
|
|
53
|
+
this.connected = false;
|
|
54
|
+
this.callback = config.callback;
|
|
55
|
+
this.callbackError = config.callbackError;
|
|
56
|
+
this.closePeerConnection = config.closePeerConnection;
|
|
57
|
+
this.debug = config.debug;
|
|
58
|
+
this.takeCandidate = config.takeCandidate;
|
|
59
|
+
this.takeConfiguration = config.takeConfiguration;
|
|
60
|
+
this.wsConn = new WebSocket(config.websocket_url);
|
|
61
|
+
this.setupEventHandlers();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Setup WebSocket event handlers
|
|
65
|
+
*/
|
|
66
|
+
setupEventHandlers() {
|
|
67
|
+
this.wsConn.onopen = () => {
|
|
68
|
+
if (this.debug) console.log("[NativeWebRTC] WebSocket connected");
|
|
69
|
+
this.connected = true;
|
|
70
|
+
this.callback("initialized");
|
|
71
|
+
};
|
|
72
|
+
this.wsConn.onmessage = ({ data }) => {
|
|
73
|
+
let obj;
|
|
74
|
+
try {
|
|
75
|
+
obj = JSON.parse(data);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
if (this.debug) console.error("[NativeWebRTC] Failed to parse WebSocket message:", error);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (this.debug) console.log("[NativeWebRTC] WebSocket message:", obj);
|
|
81
|
+
switch (obj.command) {
|
|
82
|
+
case "start":
|
|
83
|
+
if (this.debug) console.log("[NativeWebRTC] Start command received (ignored in play-only mode)");
|
|
84
|
+
break;
|
|
85
|
+
case "takeCandidate":
|
|
86
|
+
if (obj.streamId && obj.label !== void 0 && obj.candidate) {
|
|
87
|
+
if (this.debug) console.log(`[NativeWebRTC] Received ICE candidate for stream ${obj.streamId}`);
|
|
88
|
+
this.takeCandidate(obj.streamId, obj.label, obj.candidate);
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case "takeConfiguration":
|
|
92
|
+
if (obj.streamId && obj.sdp && obj.type) {
|
|
93
|
+
if (this.debug) console.log(`[NativeWebRTC] Received remote description for stream ${obj.streamId}, type: ${obj.type}`);
|
|
94
|
+
this.takeConfiguration(obj.streamId, obj.sdp, obj.type);
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case "stop":
|
|
98
|
+
if (this.debug) console.log("[NativeWebRTC] Stop command received");
|
|
99
|
+
if (obj.streamId) this.closePeerConnection(obj.streamId);
|
|
100
|
+
break;
|
|
101
|
+
case "error":
|
|
102
|
+
if (this.debug) console.error("[NativeWebRTC] Error from server:", obj.definition);
|
|
103
|
+
this.callbackError(obj.definition || "Unknown error");
|
|
104
|
+
break;
|
|
105
|
+
case "notification":
|
|
106
|
+
this.callback(obj.definition || "notification", obj);
|
|
107
|
+
if (obj.definition === "play_finished" || obj.definition === "publish_finished") {
|
|
108
|
+
if (obj.streamId) this.closePeerConnection(obj.streamId);
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
case "streamInformation":
|
|
112
|
+
this.callback("streamInformation", obj);
|
|
113
|
+
break;
|
|
114
|
+
case "pong":
|
|
115
|
+
if (this.debug) console.log("[NativeWebRTC] Pong received");
|
|
116
|
+
break;
|
|
117
|
+
default: if (this.debug) console.log("[NativeWebRTC] Unhandled message:", obj);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
this.wsConn.onerror = (error) => {
|
|
121
|
+
console.error("[NativeWebRTC] WebSocket error:", error);
|
|
122
|
+
this.callbackError(WebRTCErrorToken.webSocketError);
|
|
123
|
+
};
|
|
124
|
+
this.wsConn.onclose = (event) => {
|
|
125
|
+
this.connected = false;
|
|
126
|
+
if (this.debug) console.log("[NativeWebRTC] WebSocket connection closed");
|
|
127
|
+
this.callback("closed", event);
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Send a message through the WebSocket
|
|
132
|
+
*/
|
|
133
|
+
send(text) {
|
|
134
|
+
if (this.wsConn.readyState !== WebSocket.OPEN) {
|
|
135
|
+
this.callbackError(WebRTCErrorToken.webSocketNotConnected);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this.wsConn.send(text);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Close the WebSocket connection
|
|
142
|
+
*/
|
|
143
|
+
close() {
|
|
144
|
+
this.wsConn.close();
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Check if WebSocket is connected
|
|
148
|
+
*/
|
|
149
|
+
isConnected() {
|
|
150
|
+
return this.connected;
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Native WebRTC Adaptor for Ant Media Server (Play Mode Only)
|
|
155
|
+
*/
|
|
156
|
+
var NativeWebRTCAdaptor = class {
|
|
157
|
+
constructor(config) {
|
|
158
|
+
this.webSocketAdaptor = null;
|
|
159
|
+
this.remotePeerConnection = {};
|
|
160
|
+
this.playStreamId = [];
|
|
161
|
+
this.pingInterval = null;
|
|
162
|
+
this.initPeerConnection = (streamId) => {
|
|
163
|
+
if (this.remotePeerConnection[streamId]) return;
|
|
164
|
+
if (this.debug) console.log(`[NativeWebRTC] Initializing peer connection for stream: ${streamId}`);
|
|
165
|
+
const peerConnection = new RTCPeerConnection(this.peerconnection_config);
|
|
166
|
+
this.remotePeerConnection[streamId] = peerConnection;
|
|
167
|
+
peerConnection.onicecandidate = (event) => {
|
|
168
|
+
this.iceCandidateReceived(event, streamId);
|
|
169
|
+
};
|
|
170
|
+
peerConnection.ontrack = (event) => {
|
|
171
|
+
this.onTrack(event, streamId);
|
|
172
|
+
};
|
|
173
|
+
peerConnection.onconnectionstatechange = () => {
|
|
174
|
+
if (peerConnection.connectionState === "failed") {
|
|
175
|
+
if (this.debug) console.log("[NativeWebRTC] Peer connection failed");
|
|
176
|
+
this.callbackError(WebRTCErrorToken.peerConnectionFailed);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
peerConnection.oniceconnectionstatechange = () => {
|
|
180
|
+
if (peerConnection.iceConnectionState === "failed") {
|
|
181
|
+
if (this.debug) console.log("[NativeWebRTC] ICE connection failed");
|
|
182
|
+
this.callbackError(WebRTCErrorToken.iceConnectionFailed);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
if (this.debug) console.log(`[NativeWebRTC] Peer connection created for stream: ${streamId}`);
|
|
186
|
+
};
|
|
187
|
+
this.closePeerConnection = (streamId) => {
|
|
188
|
+
const peerConnection = this.remotePeerConnection[streamId];
|
|
189
|
+
if (peerConnection && peerConnection.signalingState !== "closed") {
|
|
190
|
+
if (this.debug) console.log(`[NativeWebRTC] Closing peer connection for stream: ${streamId}`);
|
|
191
|
+
peerConnection.close();
|
|
192
|
+
delete this.remotePeerConnection[streamId];
|
|
193
|
+
const playStreamIndex = this.playStreamId.indexOf(streamId);
|
|
194
|
+
if (playStreamIndex !== -1) this.playStreamId.splice(playStreamIndex, 1);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
this.onTrack = (event, streamId) => {
|
|
198
|
+
if (this.debug) console.log(`[NativeWebRTC] Track received for stream: ${streamId}`);
|
|
199
|
+
const remoteVideo = this.remoteVideoId ? document.getElementById(this.remoteVideoId) : null;
|
|
200
|
+
if (remoteVideo && remoteVideo instanceof HTMLVideoElement) {
|
|
201
|
+
if (remoteVideo.srcObject !== event.streams[0]) {
|
|
202
|
+
remoteVideo.srcObject = event.streams[0];
|
|
203
|
+
if (this.debug) console.log("[NativeWebRTC] Remote stream attached to video element");
|
|
204
|
+
}
|
|
205
|
+
} else {
|
|
206
|
+
const dataObj = {
|
|
207
|
+
streamId,
|
|
208
|
+
track: event.streams[0]
|
|
209
|
+
};
|
|
210
|
+
this.callback("newStreamAvailable", dataObj);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
this.iceCandidateReceived = (event, streamId) => {
|
|
214
|
+
if (event.candidate) {
|
|
215
|
+
const jsCmd = {
|
|
216
|
+
candidate: event.candidate.candidate,
|
|
217
|
+
command: "takeCandidate",
|
|
218
|
+
id: event.candidate.sdpMid,
|
|
219
|
+
label: event.candidate.sdpMLineIndex,
|
|
220
|
+
streamId
|
|
221
|
+
};
|
|
222
|
+
if (this.debug) console.log(`[NativeWebRTC] Sending ICE candidate for stream: ${streamId}`);
|
|
223
|
+
this.webSocketAdaptor?.send(JSON.stringify(jsCmd));
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
this.takeConfiguration = (streamId, sdp, type) => {
|
|
227
|
+
this.initPeerConnection(streamId);
|
|
228
|
+
const peerConnection = this.remotePeerConnection[streamId];
|
|
229
|
+
if (!peerConnection) {
|
|
230
|
+
console.error("[NativeWebRTC] Peer connection not found");
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
peerConnection.setRemoteDescription(new RTCSessionDescription({
|
|
234
|
+
sdp,
|
|
235
|
+
type
|
|
236
|
+
})).then(() => {
|
|
237
|
+
if (this.debug) console.log(`[NativeWebRTC] Remote description set successfully for stream: ${streamId}`);
|
|
238
|
+
if (type === "offer") {
|
|
239
|
+
if (this.debug) console.log(`[NativeWebRTC] Creating answer for stream: ${streamId}`);
|
|
240
|
+
peerConnection.createAnswer(this.sdp_constraints).then((description) => {
|
|
241
|
+
this.gotDescription(description, streamId);
|
|
242
|
+
}).catch((error) => {
|
|
243
|
+
console.error("[NativeWebRTC] Failed to create answer:", error);
|
|
244
|
+
this.callbackError(WebRTCErrorToken.failedToCreateAnswer, error);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
}).catch((error) => {
|
|
248
|
+
console.error("[NativeWebRTC] Failed to set remote description:", error);
|
|
249
|
+
this.callbackError(WebRTCErrorToken.failedToSetRemoteDescription, error);
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
this.gotDescription = (description, streamId) => {
|
|
253
|
+
const peerConnection = this.remotePeerConnection[streamId];
|
|
254
|
+
if (!peerConnection) {
|
|
255
|
+
console.error("[NativeWebRTC] Peer connection not found");
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
peerConnection.setLocalDescription(description).then(() => {
|
|
259
|
+
if (this.debug) console.log(`[NativeWebRTC] Local description set successfully for stream: ${streamId}`);
|
|
260
|
+
const jsCmd = {
|
|
261
|
+
command: "takeConfiguration",
|
|
262
|
+
sdp: description.sdp,
|
|
263
|
+
streamId,
|
|
264
|
+
type: description.type
|
|
265
|
+
};
|
|
266
|
+
this.webSocketAdaptor?.send(JSON.stringify(jsCmd));
|
|
267
|
+
}).catch((error) => {
|
|
268
|
+
console.error("[NativeWebRTC] Failed to set local description:", error);
|
|
269
|
+
this.callbackError(WebRTCErrorToken.failedToSetLocalDescription, error);
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
this.takeCandidate = (streamId, label, candidateSdp) => {
|
|
273
|
+
const candidate = new RTCIceCandidate({
|
|
274
|
+
candidate: candidateSdp,
|
|
275
|
+
sdpMLineIndex: label
|
|
276
|
+
});
|
|
277
|
+
this.initPeerConnection(streamId);
|
|
278
|
+
const peerConnection = this.remotePeerConnection[streamId];
|
|
279
|
+
if (!peerConnection) {
|
|
280
|
+
console.error("[NativeWebRTC] Peer connection not found");
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
peerConnection.addIceCandidate(candidate).then(() => {
|
|
284
|
+
if (this.debug) console.log(`[NativeWebRTC] ICE candidate added for stream: ${streamId}`);
|
|
285
|
+
}).catch((error) => {
|
|
286
|
+
console.error(`[NativeWebRTC] Failed to add ICE candidate for stream ${streamId}:`, error);
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
this.callback = config.callback;
|
|
290
|
+
this.callbackError = config.callbackError;
|
|
291
|
+
this.debug = config.debug || false;
|
|
292
|
+
this.websocket_url = config.websocket_url;
|
|
293
|
+
this.peerconnection_config = config.peerconnection_config || { iceServers: [{ urls: "stun:stun.l.google.com:19302" }] };
|
|
294
|
+
this.sdp_constraints = config.sdp_constraints || {
|
|
295
|
+
offerToReceiveAudio: true,
|
|
296
|
+
offerToReceiveVideo: true
|
|
297
|
+
};
|
|
298
|
+
this.remoteVideoId = config.remoteVideoId;
|
|
299
|
+
this.init();
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Initialize the WebSocket connection
|
|
303
|
+
*/
|
|
304
|
+
init() {
|
|
305
|
+
if (!("WebSocket" in window)) {
|
|
306
|
+
console.error("[NativeWebRTC] WebSocket not supported");
|
|
307
|
+
this.callbackError(WebRTCErrorToken.webSocketNotSupported);
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
if (!this.webSocketAdaptor?.isConnected()) this.webSocketAdaptor = new WebSocketAdaptor({
|
|
311
|
+
callback: this.callback,
|
|
312
|
+
callbackError: this.callbackError,
|
|
313
|
+
closePeerConnection: this.closePeerConnection,
|
|
314
|
+
debug: this.debug,
|
|
315
|
+
takeCandidate: this.takeCandidate,
|
|
316
|
+
takeConfiguration: this.takeConfiguration,
|
|
317
|
+
websocket_url: this.websocket_url
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Start playing a stream
|
|
322
|
+
*/
|
|
323
|
+
play(streamId) {
|
|
324
|
+
this.playStreamId.push(streamId);
|
|
325
|
+
const jsCmd = {
|
|
326
|
+
command: "play",
|
|
327
|
+
streamId
|
|
328
|
+
};
|
|
329
|
+
if (this.debug) console.log(`[NativeWebRTC] Sending play command for stream: ${streamId}`);
|
|
330
|
+
this.webSocketAdaptor?.send(JSON.stringify(jsCmd));
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Stop playing a stream
|
|
334
|
+
*/
|
|
335
|
+
stop(streamId) {
|
|
336
|
+
this.closePeerConnection(streamId);
|
|
337
|
+
const jsCmd = {
|
|
338
|
+
command: "stop",
|
|
339
|
+
streamId
|
|
340
|
+
};
|
|
341
|
+
if (this.debug) console.log(`[NativeWebRTC] Sending stop command for stream: ${streamId}`);
|
|
342
|
+
this.webSocketAdaptor?.send(JSON.stringify(jsCmd));
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Send a ping to keep the connection alive
|
|
346
|
+
*/
|
|
347
|
+
ping(streamId) {
|
|
348
|
+
const jsCmd = {
|
|
349
|
+
command: "ping",
|
|
350
|
+
streamId
|
|
351
|
+
};
|
|
352
|
+
if (this.debug) console.log("[NativeWebRTC] Sending ping");
|
|
353
|
+
this.webSocketAdaptor?.send(JSON.stringify(jsCmd));
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Start sending periodic pings
|
|
357
|
+
*/
|
|
358
|
+
startPinging(streamId) {
|
|
359
|
+
this.pingInterval = setInterval(() => {
|
|
360
|
+
this.ping(streamId);
|
|
361
|
+
}, 3e4);
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Stop sending pings
|
|
365
|
+
*/
|
|
366
|
+
stopPinging() {
|
|
367
|
+
if (this.pingInterval) {
|
|
368
|
+
clearInterval(this.pingInterval);
|
|
369
|
+
this.pingInterval = null;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Leave the stream and close connections
|
|
374
|
+
*/
|
|
375
|
+
leave(streamId) {
|
|
376
|
+
this.stopPinging();
|
|
377
|
+
const jsCmd = {
|
|
378
|
+
command: "leave",
|
|
379
|
+
streamId
|
|
380
|
+
};
|
|
381
|
+
if (this.debug) console.log(`[NativeWebRTC] Leaving stream: ${streamId}`);
|
|
382
|
+
this.webSocketAdaptor?.send(JSON.stringify(jsCmd));
|
|
383
|
+
this.closePeerConnection(streamId);
|
|
384
|
+
this.webSocketAdaptor?.close();
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Close the WebSocket connection
|
|
388
|
+
*/
|
|
389
|
+
closeWebSocket() {
|
|
390
|
+
this.webSocketAdaptor?.close();
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region src/WebRTCPlayer/hooks/useWebRTCStream.ts
|
|
395
|
+
/**
|
|
396
|
+
* Races a value/promise against a timeout, resolving to `undefined` if the
|
|
397
|
+
* timeout wins. Used to prevent a hung host-supplied fetchStreamId() from
|
|
398
|
+
* permanently blocking the reconnect loop.
|
|
399
|
+
*/
|
|
400
|
+
const withTimeout = async (value, ms) => {
|
|
401
|
+
let timer;
|
|
402
|
+
const valuePromise = Promise.resolve(value);
|
|
403
|
+
valuePromise.catch(() => void 0);
|
|
404
|
+
try {
|
|
405
|
+
return await Promise.race([valuePromise, new Promise((resolve) => {
|
|
406
|
+
timer = setTimeout(() => {
|
|
407
|
+
resolve(void 0);
|
|
408
|
+
}, ms);
|
|
409
|
+
})]);
|
|
410
|
+
} finally {
|
|
411
|
+
if (timer) clearTimeout(timer);
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Maps adaptor error tokens to user-facing copy so raw identifiers like
|
|
416
|
+
* `IceConnectionFailed` never reach the error overlay. Keyed off the shared
|
|
417
|
+
* WebRTCErrorToken constants so this map can't drift from what the adaptor emits.
|
|
418
|
+
*/
|
|
419
|
+
const FRIENDLY_ERROR_MESSAGES = /* @__PURE__ */ new Map([
|
|
420
|
+
[WebRTCErrorToken.failedToCreateAnswer, "Connection lost"],
|
|
421
|
+
[WebRTCErrorToken.failedToSetLocalDescription, "Connection lost"],
|
|
422
|
+
[WebRTCErrorToken.failedToSetRemoteDescription, "Connection lost"],
|
|
423
|
+
[WebRTCErrorToken.iceConnectionFailed, "Connection lost"],
|
|
424
|
+
[WebRTCErrorToken.peerConnectionFailed, "Connection lost"],
|
|
425
|
+
[WebRTCErrorToken.webSocketError, "Connection lost"],
|
|
426
|
+
[WebRTCErrorToken.webSocketNotConnected, "Connection lost"],
|
|
427
|
+
[WebRTCErrorToken.webSocketNotSupported, "Your browser does not support live streaming"]
|
|
428
|
+
]);
|
|
429
|
+
const toFriendlyError = (raw) => FRIENDLY_ERROR_MESSAGES.get(raw) ?? raw;
|
|
430
|
+
/**
|
|
431
|
+
* Custom hook for managing WebRTC stream connections to Ant Media Server
|
|
432
|
+
*
|
|
433
|
+
* This hook handles the complete lifecycle of a WebRTC stream connection including:
|
|
434
|
+
* - WebSocket connection management
|
|
435
|
+
* - RTCPeerConnection setup and negotiation
|
|
436
|
+
* - Stream state management (loading, playing, error, reconnecting)
|
|
437
|
+
* - Automatic reconnection on connection failure
|
|
438
|
+
* - Proper cleanup on unmount
|
|
439
|
+
*
|
|
440
|
+
* @param config - Configuration object for the WebRTC connection
|
|
441
|
+
* @returns WebRTC player state including video ref, loading state, playing state, error, and mute controls
|
|
442
|
+
*
|
|
443
|
+
* @example
|
|
444
|
+
* ```tsx
|
|
445
|
+
* const { videoRef, loading, playing, error } = useWebRTCStream({
|
|
446
|
+
* streamId: 'my-stream-id',
|
|
447
|
+
* hostname: 'media.example.com'
|
|
448
|
+
* });
|
|
449
|
+
*
|
|
450
|
+
* return (
|
|
451
|
+
* <video ref={videoRef} autoPlay playsInline />
|
|
452
|
+
* );
|
|
453
|
+
* ```
|
|
454
|
+
*/
|
|
455
|
+
const useWebRTCStream = ({ debug = false, fetchStreamId, hostname, streamId, wsPort = DEFAULT_WS_PORT, wssPort = DEFAULT_WSS_PORT }) => {
|
|
456
|
+
const videoRef = useRef(null);
|
|
457
|
+
const [loading, setLoading] = useState(true);
|
|
458
|
+
const [error, setError] = useState(null);
|
|
459
|
+
const [connectionState, setConnectionState] = useState("idle");
|
|
460
|
+
const webRTCAdaptorRef = useRef(null);
|
|
461
|
+
const reconnectIntervalRef = useRef(null);
|
|
462
|
+
const pingIntervalRef = useRef(null);
|
|
463
|
+
const isReconnectingRef = useRef(false);
|
|
464
|
+
const isMountedRef = useRef(true);
|
|
465
|
+
const initTokenRef = useRef(0);
|
|
466
|
+
/* istanbul ignore next -- @preserve: the default initializer is never invoked; an effect overwrites this ref on first commit, and no reconnect (the only caller) can fire before the mount effect creates an adaptor. */
|
|
467
|
+
const initializeWebRTCRef = useRef(() => void 0);
|
|
468
|
+
const activeStreamIdRef = useRef(streamId);
|
|
469
|
+
const fetchStreamIdRef = useRef(fetchStreamId);
|
|
470
|
+
fetchStreamIdRef.current = fetchStreamId;
|
|
471
|
+
/**
|
|
472
|
+
* Generates the WebSocket URL based on the current page protocol
|
|
473
|
+
*/
|
|
474
|
+
const getWebSocketUrl = useCallback(() => {
|
|
475
|
+
const isSecure = window.location.protocol === "https:";
|
|
476
|
+
const protocol = isSecure ? "wss" : "ws";
|
|
477
|
+
const port = isSecure ? wssPort : wsPort;
|
|
478
|
+
const url = `${protocol}://${hostname}:${port}${DEFAULT_PATH}`;
|
|
479
|
+
if (debug) console.log("[WebRTC] Generated WebSocket URL:", {
|
|
480
|
+
hostname,
|
|
481
|
+
isSecure,
|
|
482
|
+
location: window.location.protocol,
|
|
483
|
+
port,
|
|
484
|
+
protocol,
|
|
485
|
+
url
|
|
486
|
+
});
|
|
487
|
+
return url;
|
|
488
|
+
}, [
|
|
489
|
+
hostname,
|
|
490
|
+
wsPort,
|
|
491
|
+
wssPort,
|
|
492
|
+
debug
|
|
493
|
+
]);
|
|
494
|
+
/**
|
|
495
|
+
* Clears reconnection interval
|
|
496
|
+
*/
|
|
497
|
+
const stopReconnecting = useCallback(() => {
|
|
498
|
+
if (reconnectIntervalRef.current) {
|
|
499
|
+
clearInterval(reconnectIntervalRef.current);
|
|
500
|
+
reconnectIntervalRef.current = null;
|
|
501
|
+
}
|
|
502
|
+
isReconnectingRef.current = false;
|
|
503
|
+
}, []);
|
|
504
|
+
/**
|
|
505
|
+
* Starts the reconnection loop if one is not already running.
|
|
506
|
+
*
|
|
507
|
+
* Any failure signal (WebSocket error, WebSocket close, or the stream
|
|
508
|
+
* finishing) funnels through here so that a dropped connection always
|
|
509
|
+
* triggers recovery. The loop is idempotent — guarded by isReconnectingRef —
|
|
510
|
+
* and is cleared by stopReconnecting() once the stream re-initializes or
|
|
511
|
+
* starts playing again.
|
|
512
|
+
*
|
|
513
|
+
* The loop retries indefinitely (no max-attempt cap) by design: a live stream
|
|
514
|
+
* can resume minutes after dropping, so we keep attempting every
|
|
515
|
+
* RECONNECT_INTERVAL until it returns or the component unmounts.
|
|
516
|
+
*/
|
|
517
|
+
const startReconnecting = useCallback(() => {
|
|
518
|
+
if (isReconnectingRef.current) return;
|
|
519
|
+
if (debug) console.log(`[WebRTC] Starting reconnection attempts (every ${RECONNECT_INTERVAL}ms)`);
|
|
520
|
+
isReconnectingRef.current = true;
|
|
521
|
+
reconnectIntervalRef.current = setInterval(() => {
|
|
522
|
+
if (debug) console.log("[WebRTC] 🔄 Attempting to reconnect...");
|
|
523
|
+
initializeWebRTCRef.current();
|
|
524
|
+
}, RECONNECT_INTERVAL);
|
|
525
|
+
}, [debug]);
|
|
526
|
+
/**
|
|
527
|
+
* Starts ping interval to keep connection alive
|
|
528
|
+
*/
|
|
529
|
+
const startPinging = useCallback(() => {
|
|
530
|
+
if (pingIntervalRef.current) clearInterval(pingIntervalRef.current);
|
|
531
|
+
pingIntervalRef.current = setInterval(() => {
|
|
532
|
+
const activeStreamId = activeStreamIdRef.current;
|
|
533
|
+
if (webRTCAdaptorRef.current && activeStreamId) try {
|
|
534
|
+
webRTCAdaptorRef.current.ping(activeStreamId);
|
|
535
|
+
} catch (err) {
|
|
536
|
+
if (debug) console.error("Error sending ping:", err);
|
|
537
|
+
}
|
|
538
|
+
}, PING_INTERVAL);
|
|
539
|
+
}, [debug]);
|
|
540
|
+
/**
|
|
541
|
+
* Stops ping interval
|
|
542
|
+
*/
|
|
543
|
+
const stopPinging = useCallback(() => {
|
|
544
|
+
if (pingIntervalRef.current) {
|
|
545
|
+
clearInterval(pingIntervalRef.current);
|
|
546
|
+
pingIntervalRef.current = null;
|
|
547
|
+
}
|
|
548
|
+
}, []);
|
|
549
|
+
/**
|
|
550
|
+
* Handles WebRTC adaptor callbacks
|
|
551
|
+
*/
|
|
552
|
+
const handleCallback = useCallback((info, obj) => {
|
|
553
|
+
if (!isMountedRef.current) return;
|
|
554
|
+
if (debug) console.log(`[WebRTC] Callback: ${info}`, obj);
|
|
555
|
+
switch (info) {
|
|
556
|
+
case "initialized":
|
|
557
|
+
if (debug) console.log("[WebRTC] ✅ Initialized - WebSocket connected, starting playback");
|
|
558
|
+
setConnectionState("connected");
|
|
559
|
+
setLoading(true);
|
|
560
|
+
stopReconnecting();
|
|
561
|
+
startPinging();
|
|
562
|
+
if (webRTCAdaptorRef.current && activeStreamIdRef.current) {
|
|
563
|
+
if (debug) console.log(`[WebRTC] Calling play() for streamId: ${activeStreamIdRef.current}`);
|
|
564
|
+
webRTCAdaptorRef.current.play(activeStreamIdRef.current);
|
|
565
|
+
}
|
|
566
|
+
break;
|
|
567
|
+
case "play_started":
|
|
568
|
+
if (debug) console.log("[WebRTC] ✅ Play started - Stream is now playing");
|
|
569
|
+
setConnectionState("playing");
|
|
570
|
+
setLoading(false);
|
|
571
|
+
setError(null);
|
|
572
|
+
stopReconnecting();
|
|
573
|
+
break;
|
|
574
|
+
case "play_finished":
|
|
575
|
+
if (debug) console.log("[WebRTC] ⚠️ Play finished - Stream ended");
|
|
576
|
+
setConnectionState("error");
|
|
577
|
+
setError("Stream ended");
|
|
578
|
+
startReconnecting();
|
|
579
|
+
break;
|
|
580
|
+
case "closed":
|
|
581
|
+
if (debug) console.log("[WebRTC] ❌ Connection closed");
|
|
582
|
+
setConnectionState("error");
|
|
583
|
+
setError("Connection closed");
|
|
584
|
+
startReconnecting();
|
|
585
|
+
break;
|
|
586
|
+
default: if (debug) console.log(`[WebRTC] Unhandled callback: ${info}`, obj);
|
|
587
|
+
}
|
|
588
|
+
}, [
|
|
589
|
+
debug,
|
|
590
|
+
startPinging,
|
|
591
|
+
stopReconnecting,
|
|
592
|
+
startReconnecting
|
|
593
|
+
]);
|
|
594
|
+
/**
|
|
595
|
+
* Handles WebRTC adaptor errors
|
|
596
|
+
*/
|
|
597
|
+
const handleError = useCallback((errorMessage, errorObject) => {
|
|
598
|
+
if (!isMountedRef.current) return;
|
|
599
|
+
console.error("[WebRTC] ❌ Error:", errorMessage, errorObject);
|
|
600
|
+
setConnectionState("error");
|
|
601
|
+
setLoading(false);
|
|
602
|
+
setError(toFriendlyError(errorMessage));
|
|
603
|
+
startReconnecting();
|
|
604
|
+
}, [startReconnecting]);
|
|
605
|
+
/**
|
|
606
|
+
* Initializes the WebRTC adaptor
|
|
607
|
+
*/
|
|
608
|
+
const initializeWebRTC = useCallback(async () => {
|
|
609
|
+
if (!activeStreamIdRef.current) {
|
|
610
|
+
console.error("[WebRTC] ❌ No stream ID provided");
|
|
611
|
+
setError("No stream ID provided");
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
const token = ++initTokenRef.current;
|
|
615
|
+
const isCurrent = () => token === initTokenRef.current && isMountedRef.current;
|
|
616
|
+
if (webRTCAdaptorRef.current) {
|
|
617
|
+
if (debug) console.log("[WebRTC] Cleaning up existing adaptor");
|
|
618
|
+
try {
|
|
619
|
+
stopPinging();
|
|
620
|
+
webRTCAdaptorRef.current.stop(activeStreamIdRef.current);
|
|
621
|
+
webRTCAdaptorRef.current.closeWebSocket();
|
|
622
|
+
} catch (err) {
|
|
623
|
+
console.error("[WebRTC] Error cleaning up previous adaptor:", err);
|
|
624
|
+
}
|
|
625
|
+
webRTCAdaptorRef.current = null;
|
|
626
|
+
}
|
|
627
|
+
const reconnecting = isReconnectingRef.current;
|
|
628
|
+
setConnectionState(reconnecting ? "reconnecting" : "connecting");
|
|
629
|
+
setLoading(!reconnecting);
|
|
630
|
+
if (isReconnectingRef.current && fetchStreamIdRef.current) try {
|
|
631
|
+
const freshStreamId = await withTimeout(fetchStreamIdRef.current(), FETCH_STREAM_ID_TIMEOUT);
|
|
632
|
+
if (!isCurrent()) return;
|
|
633
|
+
if (freshStreamId) {
|
|
634
|
+
if (debug && freshStreamId !== activeStreamIdRef.current) console.log(`[WebRTC] Refreshed stream ID: ${activeStreamIdRef.current} -> ${freshStreamId}`);
|
|
635
|
+
activeStreamIdRef.current = freshStreamId;
|
|
636
|
+
}
|
|
637
|
+
} catch (err) {
|
|
638
|
+
console.error("[WebRTC] fetchStreamId failed, reusing current stream ID:", err);
|
|
639
|
+
if (!isCurrent()) return;
|
|
640
|
+
}
|
|
641
|
+
if (!isCurrent()) {
|
|
642
|
+
if (debug) console.log("[WebRTC] Initialization superseded or unmounted, aborting");
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
const activeStreamId = activeStreamIdRef.current;
|
|
646
|
+
if (debug) console.log(`[WebRTC] 🚀 Initializing WebRTC for streamId: ${activeStreamId}`);
|
|
647
|
+
try {
|
|
648
|
+
const websocketUrl = getWebSocketUrl();
|
|
649
|
+
if (videoRef.current && !videoRef.current.id) videoRef.current.id = "webrtc-video-" + activeStreamId;
|
|
650
|
+
const videoId = videoRef.current?.id || "webrtc-video";
|
|
651
|
+
if (debug) console.log("[WebRTC] Creating WebRTCAdaptor with config:", {
|
|
652
|
+
isPlayMode: true,
|
|
653
|
+
remoteVideoId: videoId,
|
|
654
|
+
streamId: activeStreamId,
|
|
655
|
+
websocket_url: websocketUrl
|
|
656
|
+
});
|
|
657
|
+
webRTCAdaptorRef.current = new NativeWebRTCAdaptor({
|
|
658
|
+
callback: handleCallback,
|
|
659
|
+
callbackError: handleError,
|
|
660
|
+
debug,
|
|
661
|
+
peerconnection_config: { iceServers: [{ urls: "stun:stun.l.google.com:19302" }] },
|
|
662
|
+
remoteVideoId: videoId,
|
|
663
|
+
sdp_constraints: {
|
|
664
|
+
offerToReceiveAudio: true,
|
|
665
|
+
offerToReceiveVideo: true
|
|
666
|
+
},
|
|
667
|
+
websocket_url: websocketUrl
|
|
668
|
+
});
|
|
669
|
+
if (debug) console.log("[WebRTC] ✅ WebRTCAdaptor created, waiting for connection...");
|
|
670
|
+
} catch (err) {
|
|
671
|
+
console.error("[WebRTC] ❌ Failed to initialize WebRTC:", err);
|
|
672
|
+
handleError("Failed to initialize WebRTC", err);
|
|
673
|
+
}
|
|
674
|
+
}, [
|
|
675
|
+
debug,
|
|
676
|
+
getWebSocketUrl,
|
|
677
|
+
handleCallback,
|
|
678
|
+
handleError,
|
|
679
|
+
stopPinging
|
|
680
|
+
]);
|
|
681
|
+
/**
|
|
682
|
+
* Track mount status so async init can bail after an await once the component
|
|
683
|
+
* has unmounted. Kept separate from the streamId-scoped cleanup effect below
|
|
684
|
+
* so a prop change never flips this to unmounted.
|
|
685
|
+
*/
|
|
686
|
+
useEffect(() => {
|
|
687
|
+
isMountedRef.current = true;
|
|
688
|
+
return () => {
|
|
689
|
+
isMountedRef.current = false;
|
|
690
|
+
};
|
|
691
|
+
}, []);
|
|
692
|
+
/**
|
|
693
|
+
* Keep the ref pointed at the latest initializeWebRTC so the reconnect loop
|
|
694
|
+
* always reconnects with the current streamId/config rather than a closure
|
|
695
|
+
* captured when the loop first started.
|
|
696
|
+
*/
|
|
697
|
+
useEffect(() => {
|
|
698
|
+
initializeWebRTCRef.current = initializeWebRTC;
|
|
699
|
+
}, [initializeWebRTC]);
|
|
700
|
+
/**
|
|
701
|
+
* Initialize WebRTC connection on mount or when streamId changes
|
|
702
|
+
*/
|
|
703
|
+
useEffect(() => {
|
|
704
|
+
if (streamId) {
|
|
705
|
+
if (debug) console.log("[WebRTC] StreamId changed or component mounted, scheduling initialization");
|
|
706
|
+
activeStreamIdRef.current = streamId;
|
|
707
|
+
const timeoutId = setTimeout(() => {
|
|
708
|
+
initializeWebRTC();
|
|
709
|
+
}, 100);
|
|
710
|
+
return () => {
|
|
711
|
+
clearTimeout(timeoutId);
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
}, [
|
|
715
|
+
streamId,
|
|
716
|
+
initializeWebRTC,
|
|
717
|
+
debug
|
|
718
|
+
]);
|
|
719
|
+
/**
|
|
720
|
+
* Cleanup on unmount
|
|
721
|
+
*/
|
|
722
|
+
useEffect(() => {
|
|
723
|
+
return () => {
|
|
724
|
+
if (debug) console.log("[WebRTC] 🧹 Cleaning up on unmount");
|
|
725
|
+
stopReconnecting();
|
|
726
|
+
stopPinging();
|
|
727
|
+
if (webRTCAdaptorRef.current && activeStreamIdRef.current) try {
|
|
728
|
+
webRTCAdaptorRef.current.stop(activeStreamIdRef.current);
|
|
729
|
+
webRTCAdaptorRef.current.closeWebSocket();
|
|
730
|
+
if (debug) console.log("[WebRTC] ✅ Cleanup complete");
|
|
731
|
+
} catch (err) {
|
|
732
|
+
console.error("[WebRTC] Error during cleanup:", err);
|
|
733
|
+
}
|
|
734
|
+
webRTCAdaptorRef.current = null;
|
|
735
|
+
};
|
|
736
|
+
}, [
|
|
737
|
+
streamId,
|
|
738
|
+
debug,
|
|
739
|
+
stopReconnecting,
|
|
740
|
+
stopPinging
|
|
741
|
+
]);
|
|
742
|
+
/**
|
|
743
|
+
* Assign the stream to the video element when it's available
|
|
744
|
+
*/
|
|
745
|
+
useEffect(() => {
|
|
746
|
+
if (videoRef.current && webRTCAdaptorRef.current) {
|
|
747
|
+
const remoteVideo = videoRef.current;
|
|
748
|
+
if (!remoteVideo.id) remoteVideo.id = "webrtc-video-" + streamId;
|
|
749
|
+
}
|
|
750
|
+
}, [streamId]);
|
|
751
|
+
return {
|
|
752
|
+
connectionState,
|
|
753
|
+
error,
|
|
754
|
+
loading,
|
|
755
|
+
videoRef
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
//#endregion
|
|
759
|
+
//#region src/WebRTCPlayer/WebRTCPlayer.tsx
|
|
760
|
+
/**
|
|
761
|
+
* WebRTC video player component for streaming from Ant Media Server
|
|
762
|
+
*
|
|
763
|
+
* This component provides a simple interface for playing live WebRTC streams from
|
|
764
|
+
* Ant Media Server. It handles connection management, error recovery, and provides
|
|
765
|
+
* a clean UI with loading states and error messages.
|
|
766
|
+
*
|
|
767
|
+
* Features:
|
|
768
|
+
* - Automatic connection to Ant Media Server
|
|
769
|
+
* - Loading spinner while connecting
|
|
770
|
+
* - Error state display with automatic reconnection
|
|
771
|
+
* - Native HTML5 video controls with volume, fullscreen, and picture-in-picture
|
|
772
|
+
* - Responsive container with aspect ratio preservation
|
|
773
|
+
* - Configurable hostname and ports for different server setups
|
|
774
|
+
*
|
|
775
|
+
* @example
|
|
776
|
+
* ```tsx
|
|
777
|
+
* <WebRTCPlayer
|
|
778
|
+
* hostname="media.example.com"
|
|
779
|
+
* streamId="my-stream-id"
|
|
780
|
+
* onPlay={() => console.log('Stream started')}
|
|
781
|
+
* onError={(error) => console.error('Stream error:', error)}
|
|
782
|
+
* />
|
|
783
|
+
* ```
|
|
784
|
+
*
|
|
785
|
+
* @example Custom server configuration
|
|
786
|
+
* ```tsx
|
|
787
|
+
* <WebRTCPlayer
|
|
788
|
+
* streamId="my-stream-id"
|
|
789
|
+
* hostname="custom-server.com"
|
|
790
|
+
* wsPort={8080}
|
|
791
|
+
* wssPort={8443}
|
|
792
|
+
* />
|
|
793
|
+
* ```
|
|
794
|
+
*/
|
|
795
|
+
const WebRTCPlayer = ({ allowFullscreen = true, allowPictureInPicture = true, className, "data-testid": testid = "webrtc-player", debug = false, fetchStreamId, hostname, onContactSupportOnError, onError, onFullscreenToggle, onOpenInNewWindow, onPause, onPipToggle, onPlay, onToggleMute, onVolumeChange, placeholderUrl, showControls = true, streamId, wsPort = DEFAULT_WS_PORT, wssPort = DEFAULT_WSS_PORT }) => {
|
|
796
|
+
const { connectionState, error, loading, videoRef } = useWebRTCStream({
|
|
797
|
+
debug,
|
|
798
|
+
fetchStreamId,
|
|
799
|
+
hostname,
|
|
800
|
+
streamId,
|
|
801
|
+
wsPort,
|
|
802
|
+
wssPort
|
|
803
|
+
});
|
|
804
|
+
const [showContent, setShowContent] = useState(false);
|
|
805
|
+
const hasUserInteractedRef = React.useRef(false);
|
|
806
|
+
const controlsList = useMemo(() => [!allowFullscreen && "nofullscreen", "nodownload"].filter(Boolean).join(" ") || void 0, [allowFullscreen]);
|
|
807
|
+
const handleUserInteraction = () => {
|
|
808
|
+
hasUserInteractedRef.current = true;
|
|
809
|
+
};
|
|
810
|
+
useEffect(() => {
|
|
811
|
+
if (!loading) {
|
|
812
|
+
const timer = setTimeout(() => setShowContent(true), 50);
|
|
813
|
+
return () => clearTimeout(timer);
|
|
814
|
+
}
|
|
815
|
+
setShowContent(false);
|
|
816
|
+
}, [loading]);
|
|
817
|
+
useEffect(() => {
|
|
818
|
+
if (error && onError) onError(error);
|
|
819
|
+
}, [error, onError]);
|
|
820
|
+
useEffect(() => {
|
|
821
|
+
if (!onFullscreenToggle || !allowFullscreen) return;
|
|
822
|
+
const handleFullscreenChange = () => {
|
|
823
|
+
if (!hasUserInteractedRef.current) return;
|
|
824
|
+
onFullscreenToggle(Boolean(document.fullscreenElement));
|
|
825
|
+
};
|
|
826
|
+
document.addEventListener("fullscreenchange", handleFullscreenChange);
|
|
827
|
+
return () => {
|
|
828
|
+
document.removeEventListener("fullscreenchange", handleFullscreenChange);
|
|
829
|
+
};
|
|
830
|
+
}, [allowFullscreen, onFullscreenToggle]);
|
|
831
|
+
useEffect(() => {
|
|
832
|
+
const video = videoRef.current;
|
|
833
|
+
if (!onPipToggle || !allowPictureInPicture || !Boolean(video)) return;
|
|
834
|
+
const handleEnterPip = () => {
|
|
835
|
+
if (!hasUserInteractedRef.current) return;
|
|
836
|
+
onPipToggle(true);
|
|
837
|
+
};
|
|
838
|
+
const handleLeavePip = () => {
|
|
839
|
+
if (!hasUserInteractedRef.current) return;
|
|
840
|
+
onPipToggle(false);
|
|
841
|
+
};
|
|
842
|
+
video.addEventListener("enterpictureinpicture", handleEnterPip);
|
|
843
|
+
video.addEventListener("leavepictureinpicture", handleLeavePip);
|
|
844
|
+
return () => {
|
|
845
|
+
video.removeEventListener("enterpictureinpicture", handleEnterPip);
|
|
846
|
+
video.removeEventListener("leavepictureinpicture", handleLeavePip);
|
|
847
|
+
};
|
|
848
|
+
}, [
|
|
849
|
+
allowPictureInPicture,
|
|
850
|
+
onPipToggle,
|
|
851
|
+
videoRef
|
|
852
|
+
]);
|
|
853
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
854
|
+
className: cn("relative w-full overflow-hidden rounded-container bg-background-inverse", "aspect-video", className),
|
|
855
|
+
"data-testid": testid,
|
|
856
|
+
children: [
|
|
857
|
+
/* @__PURE__ */ jsx("video", {
|
|
858
|
+
"aria-label": "Live video stream",
|
|
859
|
+
autoPlay: true,
|
|
860
|
+
className: cn("h-full w-full object-cover transition-opacity duration-300", showContent && !error ? "opacity-100" : "opacity-0"),
|
|
861
|
+
controls: showControls,
|
|
862
|
+
controlsList,
|
|
863
|
+
disablePictureInPicture: !allowPictureInPicture,
|
|
864
|
+
muted: true,
|
|
865
|
+
onMouseEnter: handleUserInteraction,
|
|
866
|
+
onPause: () => {
|
|
867
|
+
if (!hasUserInteractedRef.current) return;
|
|
868
|
+
onPause?.();
|
|
869
|
+
},
|
|
870
|
+
onPlay: () => {
|
|
871
|
+
if (!hasUserInteractedRef.current) return;
|
|
872
|
+
onPlay?.();
|
|
873
|
+
},
|
|
874
|
+
onTouchStart: handleUserInteraction,
|
|
875
|
+
onVolumeChange: (e) => {
|
|
876
|
+
if (!hasUserInteractedRef.current) return;
|
|
877
|
+
const video = e.currentTarget;
|
|
878
|
+
onVolumeChange?.(video.volume);
|
|
879
|
+
onToggleMute?.(video.muted);
|
|
880
|
+
},
|
|
881
|
+
playsInline: true,
|
|
882
|
+
poster: placeholderUrl,
|
|
883
|
+
ref: videoRef,
|
|
884
|
+
children: /* @__PURE__ */ jsx("track", { kind: "captions" })
|
|
885
|
+
}),
|
|
886
|
+
onOpenInNewWindow && !error && !loading && /* @__PURE__ */ jsx(IconButton, {
|
|
887
|
+
"aria-label": "Open in new window",
|
|
888
|
+
className: "absolute right-xs top-xs z-10",
|
|
889
|
+
"data-testid": `${testid}-open-in-new-window`,
|
|
890
|
+
icon: ArrowSquareOut,
|
|
891
|
+
onClick: onOpenInNewWindow,
|
|
892
|
+
shape: "circle",
|
|
893
|
+
size: "sm",
|
|
894
|
+
style: "inverse",
|
|
895
|
+
variant: "transparent"
|
|
896
|
+
}),
|
|
897
|
+
loading && /* @__PURE__ */ jsx("div", {
|
|
898
|
+
className: "absolute inset-0 flex items-center justify-center",
|
|
899
|
+
"data-testid": `${testid}-loading`,
|
|
900
|
+
children: /* @__PURE__ */ jsx(LoadingSpinner, {
|
|
901
|
+
color: "inverse",
|
|
902
|
+
size: "md"
|
|
903
|
+
})
|
|
904
|
+
}),
|
|
905
|
+
error && !loading && /* @__PURE__ */ jsx("div", {
|
|
906
|
+
className: cn("absolute inset-0 flex w-full flex-col items-center justify-center p-sm transition-opacity duration-300", showContent ? "opacity-100" : "opacity-0"),
|
|
907
|
+
"data-testid": `${testid}-error`,
|
|
908
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
909
|
+
className: "flex w-full flex-col items-center justify-center gap-xs text-center",
|
|
910
|
+
children: [
|
|
911
|
+
/* @__PURE__ */ jsx(H5, {
|
|
912
|
+
color: "inverse",
|
|
913
|
+
children: "Connection Error"
|
|
914
|
+
}),
|
|
915
|
+
/* @__PURE__ */ jsx(BodySecondary, {
|
|
916
|
+
color: "inverse",
|
|
917
|
+
children: error
|
|
918
|
+
}),
|
|
919
|
+
onContactSupportOnError && /* @__PURE__ */ jsx(Button, {
|
|
920
|
+
onClick: onContactSupportOnError,
|
|
921
|
+
size: "sm",
|
|
922
|
+
style: "inverse",
|
|
923
|
+
variant: "outlined",
|
|
924
|
+
children: "Contact Support"
|
|
925
|
+
}),
|
|
926
|
+
connectionState === "reconnecting" && /* @__PURE__ */ jsx(Caption, {
|
|
927
|
+
className: "mt-sm",
|
|
928
|
+
color: "inverse",
|
|
929
|
+
children: "Attempting to reconnect..."
|
|
930
|
+
})
|
|
931
|
+
]
|
|
932
|
+
})
|
|
933
|
+
})
|
|
934
|
+
]
|
|
935
|
+
});
|
|
936
|
+
};
|
|
937
|
+
//#endregion
|
|
938
|
+
export { DEFAULT_WS_PORT as a, DEFAULT_WSS_PORT as i, useWebRTCStream as n, PING_INTERVAL as o, DEFAULT_PATH as r, RECONNECT_INTERVAL as s, WebRTCPlayer as t };
|
|
939
|
+
|
|
940
|
+
//# sourceMappingURL=WebRTCPlayer-C-sTtskR.mjs.map
|