@wow-two-beta/ui-vue 0.0.2
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/LICENSE +21 -0
- package/README.md +113 -0
- package/dist/analytics/Analytics.d.ts +50 -0
- package/dist/analytics/AnalyticsEvent.d.ts +49 -0
- package/dist/analytics/AnalyticsProvider.d.ts +37 -0
- package/dist/analytics/ConsoleAnalyticsProvider.d.ts +8 -0
- package/dist/analytics/MemoryAnalyticsProvider.d.ts +19 -0
- package/dist/analytics/index.d.ts +5 -0
- package/dist/analytics/index.js +196 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/auth/AuthBridge.d.ts +30 -0
- package/dist/auth/AuthContext.d.ts +41 -0
- package/dist/auth/AuthProvider.vue.d.ts +33 -0
- package/dist/auth/AuthSession.d.ts +41 -0
- package/dist/auth/BearerStrategy.d.ts +36 -0
- package/dist/auth/CookieStrategy.d.ts +29 -0
- package/dist/auth/RedirectStrategy.d.ts +24 -0
- package/dist/auth/TokenStorage.d.ts +9 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.js +275 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/chunks/Accept-BWpCXDmS.js +35 -0
- package/dist/chunks/Accept-BWpCXDmS.js.map +1 -0
- package/dist/chunks/Align-DqFtCY3a.js +12 -0
- package/dist/chunks/Align-DqFtCY3a.js.map +1 -0
- package/dist/chunks/AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js +53 -0
- package/dist/chunks/AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js.map +1 -0
- package/dist/chunks/Announce.vue_vue_type_script_setup_true_lang-CDTltiIl.js +46 -0
- package/dist/chunks/Announce.vue_vue_type_script_setup_true_lang-CDTltiIl.js.map +1 -0
- package/dist/chunks/ApiError-l0YdcqqV.js +15 -0
- package/dist/chunks/ApiError-l0YdcqqV.js.map +1 -0
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-CkxLllEO.js +996 -0
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-CkxLllEO.js.map +1 -0
- package/dist/chunks/Backdrop.vue_vue_type_script_setup_true_lang-DZUhGY9p.js +78 -0
- package/dist/chunks/Backdrop.vue_vue_type_script_setup_true_lang-DZUhGY9p.js.map +1 -0
- package/dist/chunks/BottomSheet.vue_vue_type_script_setup_true_lang-CmNoI4BE.js +1094 -0
- package/dist/chunks/BottomSheet.vue_vue_type_script_setup_true_lang-CmNoI4BE.js.map +1 -0
- package/dist/chunks/Bytes-7Jxs6Bq6.js +21 -0
- package/dist/chunks/Bytes-7Jxs6Bq6.js.map +1 -0
- package/dist/chunks/ChatComposer.vue_vue_type_script_setup_true_lang-lNcRhKIv.js +12748 -0
- package/dist/chunks/ChatComposer.vue_vue_type_script_setup_true_lang-lNcRhKIv.js.map +1 -0
- package/dist/chunks/Chord-D9Z-j3O0.js +139 -0
- package/dist/chunks/Chord-D9Z-j3O0.js.map +1 -0
- package/dist/chunks/ColorModeContext-Bz6CBL0V.js +21 -0
- package/dist/chunks/ColorModeContext-Bz6CBL0V.js.map +1 -0
- package/dist/chunks/Compare-Du6p-OX1.js +18 -0
- package/dist/chunks/Compare-Du6p-OX1.js.map +1 -0
- package/dist/chunks/ControlGroup.vue_vue_type_script_setup_true_lang-CV8Xstes.js +229 -0
- package/dist/chunks/ControlGroup.vue_vue_type_script_setup_true_lang-CV8Xstes.js.map +1 -0
- package/dist/chunks/CornerPosition-FneGck5D.js +14 -0
- package/dist/chunks/CornerPosition-FneGck5D.js.map +1 -0
- package/dist/chunks/CssExtensions-BzLJG57F.js +161 -0
- package/dist/chunks/CssExtensions-BzLJG57F.js.map +1 -0
- package/dist/chunks/DateExtensions-QahSUlRy.js +282 -0
- package/dist/chunks/DateExtensions-QahSUlRy.js.map +1 -0
- package/dist/chunks/DeepEqual-7lBKnkNS.js +29 -0
- package/dist/chunks/DeepEqual-7lBKnkNS.js.map +1 -0
- package/dist/chunks/DismissableLayer.vue_vue_type_script_setup_true_lang-6nRnzsJW.js +214 -0
- package/dist/chunks/DismissableLayer.vue_vue_type_script_setup_true_lang-6nRnzsJW.js.map +1 -0
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-DvvrJdF0.js +207 -0
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-DvvrJdF0.js.map +1 -0
- package/dist/chunks/EmojiCatalog-CR4Lcm43.js +1923 -0
- package/dist/chunks/EmojiCatalog-CR4Lcm43.js.map +1 -0
- package/dist/chunks/Environment-CuQav_mw.js +68 -0
- package/dist/chunks/Environment-CuQav_mw.js.map +1 -0
- package/dist/chunks/Equality-DIQYQysz.js +21 -0
- package/dist/chunks/Equality-DIQYQysz.js.map +1 -0
- package/dist/chunks/ErrorLike-Cfj0lZW3.js +27 -0
- package/dist/chunks/ErrorLike-Cfj0lZW3.js.map +1 -0
- package/dist/chunks/ErrorMessage-Cqt7WaFn.js +26 -0
- package/dist/chunks/ErrorMessage-Cqt7WaFn.js.map +1 -0
- package/dist/chunks/ErrorRecognizers-oTklha6D.js +17 -0
- package/dist/chunks/ErrorRecognizers-oTklha6D.js.map +1 -0
- package/dist/chunks/FeedbackBus-BRbyOMCn.js +39 -0
- package/dist/chunks/FeedbackBus-BRbyOMCn.js.map +1 -0
- package/dist/chunks/FieldErrors-2zjhia4U.js +56 -0
- package/dist/chunks/FieldErrors-2zjhia4U.js.map +1 -0
- package/dist/chunks/FileName-CmNjFV7t.js +30 -0
- package/dist/chunks/FileName-CmNjFV7t.js.map +1 -0
- package/dist/chunks/FormControlContext-B71MFW26.js +22 -0
- package/dist/chunks/FormControlContext-B71MFW26.js.map +1 -0
- package/dist/chunks/FormControlProvider.vue_vue_type_script_setup_true_lang-Fak7Jv46.js +73 -0
- package/dist/chunks/FormControlProvider.vue_vue_type_script_setup_true_lang-Fak7Jv46.js.map +1 -0
- package/dist/chunks/HtmlExtensions-jlKY5f9C.js +23 -0
- package/dist/chunks/HtmlExtensions-jlKY5f9C.js.map +1 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-DgwdLCRR.js +27 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-DgwdLCRR.js.map +1 -0
- package/dist/chunks/Inline.vue_vue_type_script_setup_true_lang-BvWbQpJD.js +68 -0
- package/dist/chunks/Inline.vue_vue_type_script_setup_true_lang-BvWbQpJD.js.map +1 -0
- package/dist/chunks/KeyboardExtensions-CQlkK53D.js +34 -0
- package/dist/chunks/KeyboardExtensions-CQlkK53D.js.map +1 -0
- package/dist/chunks/Listbox.variants-CqAkYsmK.js +44 -0
- package/dist/chunks/Listbox.variants-CqAkYsmK.js.map +1 -0
- package/dist/chunks/LocaleContext-B3UXrI6p.js +39 -0
- package/dist/chunks/LocaleContext-B3UXrI6p.js.map +1 -0
- package/dist/chunks/Messages-BGfQHMmW.js +201 -0
- package/dist/chunks/Messages-BGfQHMmW.js.map +1 -0
- package/dist/chunks/ModalContent.vue_vue_type_script_setup_true_lang-CLACSqKg.js +191 -0
- package/dist/chunks/ModalContent.vue_vue_type_script_setup_true_lang-CLACSqKg.js.map +1 -0
- package/dist/chunks/NavItem.vue_vue_type_script_setup_true_lang-CGBo2TiV.js +86 -0
- package/dist/chunks/NavItem.vue_vue_type_script_setup_true_lang-CGBo2TiV.js.map +1 -0
- package/dist/chunks/Navbar.vue_vue_type_script_setup_true_lang-Cl2ejukE.js +2073 -0
- package/dist/chunks/Navbar.vue_vue_type_script_setup_true_lang-Cl2ejukE.js.map +1 -0
- package/dist/chunks/NotificationItem.vue_vue_type_script_setup_true_lang-gi0uHIuK.js +2727 -0
- package/dist/chunks/NotificationItem.vue_vue_type_script_setup_true_lang-gi0uHIuK.js.map +1 -0
- package/dist/chunks/OptionTileGroup.vue_vue_type_script_setup_true_lang-BGSmXM_u.js +943 -0
- package/dist/chunks/OptionTileGroup.vue_vue_type_script_setup_true_lang-BGSmXM_u.js.map +1 -0
- package/dist/chunks/Orientation-u-sYunuG.js +10 -0
- package/dist/chunks/Orientation-u-sYunuG.js.map +1 -0
- package/dist/chunks/OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js +33 -0
- package/dist/chunks/OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js.map +1 -0
- package/dist/chunks/OverlayChrome-e4MNr8Yl.js +17 -0
- package/dist/chunks/OverlayChrome-e4MNr8Yl.js.map +1 -0
- package/dist/chunks/OverlayPosition-BNybkMGG.js +18 -0
- package/dist/chunks/OverlayPosition-BNybkMGG.js.map +1 -0
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-D-OiGICS.js +212 -0
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-D-OiGICS.js.map +1 -0
- package/dist/chunks/Portal.vue_vue_type_script_setup_true_lang-CF3R0VCZ.js +34 -0
- package/dist/chunks/Portal.vue_vue_type_script_setup_true_lang-CF3R0VCZ.js.map +1 -0
- package/dist/chunks/Presence-C7IJvh_P.js +120 -0
- package/dist/chunks/Presence-C7IJvh_P.js.map +1 -0
- package/dist/chunks/PressExtensions-DXqhjlR2.js +16 -0
- package/dist/chunks/PressExtensions-DXqhjlR2.js.map +1 -0
- package/dist/chunks/Primitive-Cm3ECaVw.js +20 -0
- package/dist/chunks/Primitive-Cm3ECaVw.js.map +1 -0
- package/dist/chunks/ProgressTone-BpLPUptx.js +16 -0
- package/dist/chunks/ProgressTone-BpLPUptx.js.map +1 -0
- package/dist/chunks/QueryPermission--OKfvS9c.js +82 -0
- package/dist/chunks/QueryPermission--OKfvS9c.js.map +1 -0
- package/dist/chunks/QueryPlugin-CfotNm6j.js +12 -0
- package/dist/chunks/QueryPlugin-CfotNm6j.js.map +1 -0
- package/dist/chunks/RovingFocusGroup.vue_vue_type_script_setup_true_lang-DCpYSP2V.js +235 -0
- package/dist/chunks/RovingFocusGroup.vue_vue_type_script_setup_true_lang-DCpYSP2V.js.map +1 -0
- package/dist/chunks/ScrollLockProvider.vue_vue_type_script_setup_true_lang-_ihHJ7jI.js +20 -0
- package/dist/chunks/ScrollLockProvider.vue_vue_type_script_setup_true_lang-_ihHJ7jI.js.map +1 -0
- package/dist/chunks/SerializeError-CclP2jCW.js +61 -0
- package/dist/chunks/SerializeError-CclP2jCW.js.map +1 -0
- package/dist/chunks/Severity-D0C5oAt-.js +16 -0
- package/dist/chunks/Severity-D0C5oAt-.js.map +1 -0
- package/dist/chunks/Side-CSys3p-F.js +23 -0
- package/dist/chunks/Side-CSys3p-F.js.map +1 -0
- package/dist/chunks/Slot-D2lIitvV.js +103 -0
- package/dist/chunks/Slot-D2lIitvV.js.map +1 -0
- package/dist/chunks/SortableHandle.vue_vue_type_script_setup_true_lang-CWCXGjZG.js +10364 -0
- package/dist/chunks/SortableHandle.vue_vue_type_script_setup_true_lang-CWCXGjZG.js.map +1 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-BAepBy2n.js +23 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-BAepBy2n.js.map +1 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-C4lNiUOm.js +76 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-C4lNiUOm.js.map +1 -0
- package/dist/chunks/StatusTone-BoPK1s09.js +16 -0
- package/dist/chunks/StatusTone-BoPK1s09.js.map +1 -0
- package/dist/chunks/StorageBroker-COC81ZGB.js +64 -0
- package/dist/chunks/StorageBroker-COC81ZGB.js.map +1 -0
- package/dist/chunks/StyleTokens-Bkz7Dm5L.js +65 -0
- package/dist/chunks/StyleTokens-Bkz7Dm5L.js.map +1 -0
- package/dist/chunks/SubmitErrors-K8nmmj0P.js +374 -0
- package/dist/chunks/SubmitErrors-K8nmmj0P.js.map +1 -0
- package/dist/chunks/SurfaceStyles-ChdpGRBO.js +143 -0
- package/dist/chunks/SurfaceStyles-ChdpGRBO.js.map +1 -0
- package/dist/chunks/TableOfContents.vue_vue_type_script_setup_true_lang-HVL4lg_f.js +2159 -0
- package/dist/chunks/TableOfContents.vue_vue_type_script_setup_true_lang-HVL4lg_f.js.map +1 -0
- package/dist/chunks/ToError-CyTBsmLO.js +52 -0
- package/dist/chunks/ToError-CyTBsmLO.js.map +1 -0
- package/dist/chunks/Tones-CI65uuq9.js +90 -0
- package/dist/chunks/Tones-CI65uuq9.js.map +1 -0
- package/dist/chunks/TransitionExtensions-hFi80JX2.js +19 -0
- package/dist/chunks/TransitionExtensions-hFi80JX2.js.map +1 -0
- package/dist/chunks/UseHotkeys-CKIYK5Mq.js +82 -0
- package/dist/chunks/UseHotkeys-CKIYK5Mq.js.map +1 -0
- package/dist/chunks/UseNavigationProgress-TQIkkXyU.js +51 -0
- package/dist/chunks/UseNavigationProgress-TQIkkXyU.js.map +1 -0
- package/dist/chunks/cn-CzDCF-Ah.js +9 -0
- package/dist/chunks/cn-CzDCF-Ah.js.map +1 -0
- package/dist/chunks/dataAttr-7BR67dTj.js +7 -0
- package/dist/chunks/dataAttr-7BR67dTj.js.map +1 -0
- package/dist/chunks/index-BD7H9CkO.js +130 -0
- package/dist/chunks/index-BD7H9CkO.js.map +1 -0
- package/dist/chunks/index-BGzbbN9T.js +1707 -0
- package/dist/chunks/index-BGzbbN9T.js.map +1 -0
- package/dist/chunks/index-C034dEhy.js +205 -0
- package/dist/chunks/index-C034dEhy.js.map +1 -0
- package/dist/chunks/index-Cbydgcdk.js +234 -0
- package/dist/chunks/index-Cbydgcdk.js.map +1 -0
- package/dist/chunks/index-CzKEU1kI.js +11 -0
- package/dist/chunks/index-CzKEU1kI.js.map +1 -0
- package/dist/chunks/index-KL15HQew.js +61 -0
- package/dist/chunks/index-KL15HQew.js.map +1 -0
- package/dist/chunks/index-drjQ833B.js +10 -0
- package/dist/chunks/index-drjQ833B.js.map +1 -0
- package/dist/chunks/useClipboard-BVRwXC--.js +37 -0
- package/dist/chunks/useClipboard-BVRwXC--.js.map +1 -0
- package/dist/chunks/useControlled-B6M4kTLn.js +24 -0
- package/dist/chunks/useControlled-B6M4kTLn.js.map +1 -0
- package/dist/chunks/useDebounceHandler-BIZgvvGp.js +20 -0
- package/dist/chunks/useDebounceHandler-BIZgvvGp.js.map +1 -0
- package/dist/chunks/useEscape-CYPdpm_l.js +15 -0
- package/dist/chunks/useEscape-CYPdpm_l.js.map +1 -0
- package/dist/chunks/useEventListener-gohT6zGs.js +16 -0
- package/dist/chunks/useEventListener-gohT6zGs.js.map +1 -0
- package/dist/chunks/useId-CtgAhGrn.js +9 -0
- package/dist/chunks/useId-CtgAhGrn.js.map +1 -0
- package/dist/chunks/useMediaQuery-DwVcSgGk.js +27 -0
- package/dist/chunks/useMediaQuery-DwVcSgGk.js.map +1 -0
- package/dist/chunks/useOutsideClick-CW80BJfE.js +22 -0
- package/dist/chunks/useOutsideClick-CW80BJfE.js.map +1 -0
- package/dist/chunks/useRecentItems-DFnt5CBy.js +137 -0
- package/dist/chunks/useRecentItems-DFnt5CBy.js.map +1 -0
- package/dist/chunks/useReducedMotion-B9LqQ3UT.js +8 -0
- package/dist/chunks/useReducedMotion-B9LqQ3UT.js.map +1 -0
- package/dist/chunks/useResizeObserver-BUU7lC-n.js +17 -0
- package/dist/chunks/useResizeObserver-BUU7lC-n.js.map +1 -0
- package/dist/chunks/useScrollLock-d6YIGUcs.js +37 -0
- package/dist/chunks/useScrollLock-d6YIGUcs.js.map +1 -0
- package/dist/domain/color/Gradient.d.ts +60 -0
- package/dist/domain/color/GradientType.d.ts +8 -0
- package/dist/domain/color/index.d.ts +3 -0
- package/dist/domain/color/index.js +6 -0
- package/dist/domain/color/index.js.map +1 -0
- package/dist/domain/emoji/EmojiCatalog.d.ts +29 -0
- package/dist/domain/emoji/EmojiCatalogData.d.ts +3 -0
- package/dist/domain/emoji/EmojiCategory.d.ts +20 -0
- package/dist/domain/emoji/index.d.ts +3 -0
- package/dist/domain/emoji/index.js +6 -0
- package/dist/domain/emoji/index.js.map +1 -0
- package/dist/feedback/FeedbackBus.d.ts +71 -0
- package/dist/feedback/FeedbackQueryErrors.d.ts +21 -0
- package/dist/feedback/index.d.ts +2 -0
- package/dist/feedback/index.js +20 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/flags/FlagClient.d.ts +72 -0
- package/dist/flags/FlagProvider.d.ts +38 -0
- package/dist/flags/FlagTypes.d.ts +85 -0
- package/dist/flags/FlagsContext.d.ts +32 -0
- package/dist/flags/FlagsProvider.vue.d.ts +24 -0
- package/dist/flags/StaticFlagProvider.d.ts +51 -0
- package/dist/flags/index.d.ts +6 -0
- package/dist/flags/index.js +243 -0
- package/dist/flags/index.js.map +1 -0
- package/dist/forms-engine/AppForm.d.ts +258 -0
- package/dist/forms-engine/DeepEqual.d.ts +8 -0
- package/dist/forms-engine/FocusFirstInvalid.d.ts +15 -0
- package/dist/forms-engine/FormGlue.d.ts +55 -0
- package/dist/forms-engine/Paths.d.ts +47 -0
- package/dist/forms-engine/SchemaValidation.d.ts +29 -0
- package/dist/forms-engine/StandardSchema.d.ts +55 -0
- package/dist/forms-engine/SubmitErrors.d.ts +33 -0
- package/dist/forms-engine/UseFieldArray.d.ts +87 -0
- package/dist/forms-engine/house/HouseFormCore.d.ts +33 -0
- package/dist/forms-engine/house/UseAppForm.d.ts +16 -0
- package/dist/forms-engine/house/index.d.ts +7 -0
- package/dist/forms-engine/house/index.js +315 -0
- package/dist/forms-engine/house/index.js.map +1 -0
- package/dist/forms-engine/index.d.ts +10 -0
- package/dist/forms-engine/index.js +127 -0
- package/dist/forms-engine/index.js.map +1 -0
- package/dist/forms-engine/tanstack/TanstackFormOverlay.d.ts +49 -0
- package/dist/forms-engine/tanstack/UseAppForm.d.ts +26 -0
- package/dist/forms-engine/tanstack/index.d.ts +8 -0
- package/dist/forms-engine/tanstack/index.js +407 -0
- package/dist/forms-engine/tanstack/index.js.map +1 -0
- package/dist/foundation/animation/Animate.d.ts +73 -0
- package/dist/foundation/animation/AnimatedLayout.d.ts +72 -0
- package/dist/foundation/animation/Flip.d.ts +90 -0
- package/dist/foundation/animation/UseFlip.d.ts +22 -0
- package/dist/foundation/animation/index.d.ts +4 -0
- package/dist/foundation/animation/index.js +241 -0
- package/dist/foundation/animation/index.js.map +1 -0
- package/dist/foundation/async/Abort.d.ts +33 -0
- package/dist/foundation/async/Combinators.d.ts +17 -0
- package/dist/foundation/async/Deferred.d.ts +18 -0
- package/dist/foundation/async/Limit.d.ts +36 -0
- package/dist/foundation/async/Rate.d.ts +31 -0
- package/dist/foundation/async/Retry.d.ts +20 -0
- package/dist/foundation/async/Timeout.d.ts +32 -0
- package/dist/foundation/async/index.d.ts +7 -0
- package/dist/foundation/async/index.js +290 -0
- package/dist/foundation/async/index.js.map +1 -0
- package/dist/foundation/clipboard/ClipboardPermission.d.ts +17 -0
- package/dist/foundation/clipboard/ClipboardResult.d.ts +102 -0
- package/dist/foundation/clipboard/ClipboardSupport.d.ts +55 -0
- package/dist/foundation/clipboard/CopyItems.d.ts +44 -0
- package/dist/foundation/clipboard/CopyText.d.ts +16 -0
- package/dist/foundation/clipboard/LegacyCopy.d.ts +38 -0
- package/dist/foundation/clipboard/PasteItems.d.ts +25 -0
- package/dist/foundation/clipboard/ReadClipboard.d.ts +29 -0
- package/dist/foundation/clipboard/UseClipboardCopy.d.ts +40 -0
- package/dist/foundation/clipboard/UsePasteHandler.d.ts +35 -0
- package/dist/foundation/clipboard/index.d.ts +10 -0
- package/dist/foundation/clipboard/index.js +437 -0
- package/dist/foundation/clipboard/index.js.map +1 -0
- package/dist/foundation/collections/Arrays.d.ts +131 -0
- package/dist/foundation/collections/Comparison.d.ts +39 -0
- package/dist/foundation/collections/Records.d.ts +72 -0
- package/dist/foundation/collections/SetOps.d.ts +45 -0
- package/dist/foundation/collections/Tree.d.ts +63 -0
- package/dist/foundation/collections/index.d.ts +5 -0
- package/dist/foundation/collections/index.js +460 -0
- package/dist/foundation/collections/index.js.map +1 -0
- package/dist/foundation/commands/Command.d.ts +46 -0
- package/dist/foundation/commands/CommandRegistry.d.ts +36 -0
- package/dist/foundation/commands/CommandShortcut.d.ts +8 -0
- package/dist/foundation/commands/CommandsContext.d.ts +30 -0
- package/dist/foundation/commands/CommandsProvider.vue.d.ts +18 -0
- package/dist/foundation/commands/SearchCommands.d.ts +28 -0
- package/dist/foundation/commands/UseCommandRegistry.d.ts +19 -0
- package/dist/foundation/commands/UseCommandShortcuts.d.ts +18 -0
- package/dist/foundation/commands/index.d.ts +8 -0
- package/dist/foundation/commands/index.js +278 -0
- package/dist/foundation/commands/index.js.map +1 -0
- package/dist/foundation/config/ConfigField.d.ts +60 -0
- package/dist/foundation/config/ConfigSource.d.ts +24 -0
- package/dist/foundation/config/DefineConfig.d.ts +43 -0
- package/dist/foundation/config/index.d.ts +3 -0
- package/dist/foundation/config/index.js +186 -0
- package/dist/foundation/config/index.js.map +1 -0
- package/dist/foundation/crypto/Digest.d.ts +25 -0
- package/dist/foundation/crypto/Encoding.d.ts +43 -0
- package/dist/foundation/crypto/HashObject.d.ts +18 -0
- package/dist/foundation/crypto/Random.d.ts +32 -0
- package/dist/foundation/crypto/TimingSafeEqual.d.ts +12 -0
- package/dist/foundation/crypto/WebCrypto.d.ts +15 -0
- package/dist/foundation/crypto/index.d.ts +6 -0
- package/dist/foundation/crypto/index.js +226 -0
- package/dist/foundation/crypto/index.js.map +1 -0
- package/dist/foundation/datetime/Arithmetic.d.ts +31 -0
- package/dist/foundation/datetime/Boundaries.d.ts +24 -0
- package/dist/foundation/datetime/Comparison.d.ts +43 -0
- package/dist/foundation/datetime/Difference.d.ts +28 -0
- package/dist/foundation/datetime/Internals.d.ts +12 -0
- package/dist/foundation/datetime/Interval.d.ts +38 -0
- package/dist/foundation/datetime/IsoDate.d.ts +24 -0
- package/dist/foundation/datetime/index.d.ts +6 -0
- package/dist/foundation/datetime/index.js +302 -0
- package/dist/foundation/datetime/index.js.map +1 -0
- package/dist/foundation/device/Breakpoints.d.ts +54 -0
- package/dist/foundation/device/DisplayMode.d.ts +13 -0
- package/dist/foundation/device/Platform.d.ts +27 -0
- package/dist/foundation/device/PointerType.d.ts +11 -0
- package/dist/foundation/device/UseBreakpoint.d.ts +20 -0
- package/dist/foundation/device/UseDisplayMode.d.ts +23 -0
- package/dist/foundation/device/UseOnlineStatus.d.ts +12 -0
- package/dist/foundation/device/UsePointer.d.ts +25 -0
- package/dist/foundation/device/index.d.ts +8 -0
- package/dist/foundation/device/index.js +187 -0
- package/dist/foundation/device/index.js.map +1 -0
- package/dist/foundation/errors/ErrorChain.d.ts +23 -0
- package/dist/foundation/errors/ErrorLike.d.ts +35 -0
- package/dist/foundation/errors/ErrorMessage.d.ts +13 -0
- package/dist/foundation/errors/ErrorRecognizers.d.ts +18 -0
- package/dist/foundation/errors/SerializeError.d.ts +25 -0
- package/dist/foundation/errors/ToError.d.ts +15 -0
- package/dist/foundation/errors/index.d.ts +6 -0
- package/dist/foundation/errors/index.js +18 -0
- package/dist/foundation/errors/index.js.map +1 -0
- package/dist/foundation/files/Accept.d.ts +30 -0
- package/dist/foundation/files/DownloadFile.d.ts +10 -0
- package/dist/foundation/files/FileName.d.ts +21 -0
- package/dist/foundation/files/ReadFile.d.ts +6 -0
- package/dist/foundation/files/index.d.ts +4 -0
- package/dist/foundation/files/index.js +62 -0
- package/dist/foundation/files/index.js.map +1 -0
- package/dist/foundation/format/Bytes.d.ts +15 -0
- package/dist/foundation/format/Count.d.ts +10 -0
- package/dist/foundation/format/Duration.d.ts +13 -0
- package/dist/foundation/format/Text.d.ts +51 -0
- package/dist/foundation/format/index.d.ts +4 -0
- package/dist/foundation/format/index.js +100 -0
- package/dist/foundation/format/index.js.map +1 -0
- package/dist/foundation/geolocation/CanLocate.d.ts +18 -0
- package/dist/foundation/geolocation/Coordinates.d.ts +41 -0
- package/dist/foundation/geolocation/DistanceBetween.d.ts +21 -0
- package/dist/foundation/geolocation/GeolocationPermission.d.ts +13 -0
- package/dist/foundation/geolocation/GeolocationReading.d.ts +30 -0
- package/dist/foundation/geolocation/GetCurrentPosition.d.ts +14 -0
- package/dist/foundation/geolocation/PositionResult.d.ts +74 -0
- package/dist/foundation/geolocation/UseGeolocation.d.ts +38 -0
- package/dist/foundation/geolocation/UseWatchPosition.d.ts +16 -0
- package/dist/foundation/geolocation/WatchPosition.d.ts +19 -0
- package/dist/foundation/geolocation/index.d.ts +10 -0
- package/dist/foundation/geolocation/index.js +236 -0
- package/dist/foundation/geolocation/index.js.map +1 -0
- package/dist/foundation/gestures/GestureAxis.d.ts +11 -0
- package/dist/foundation/gestures/GestureMath.d.ts +182 -0
- package/dist/foundation/gestures/SwipeDirection.d.ts +13 -0
- package/dist/foundation/gestures/UseDrag.d.ts +75 -0
- package/dist/foundation/gestures/UseLongPress.d.ts +42 -0
- package/dist/foundation/gestures/UsePinch.d.ts +47 -0
- package/dist/foundation/gestures/UseSwipe.d.ts +46 -0
- package/dist/foundation/gestures/index.d.ts +7 -0
- package/dist/foundation/gestures/index.js +440 -0
- package/dist/foundation/gestures/index.js.map +1 -0
- package/dist/foundation/hooks/index.d.ts +17 -0
- package/dist/foundation/hooks/index.js +34 -0
- package/dist/foundation/hooks/index.js.map +1 -0
- package/dist/foundation/hooks/useAutosave/index.d.ts +1 -0
- package/dist/foundation/hooks/useAutosave/useAutosave.d.ts +46 -0
- package/dist/foundation/hooks/useClipboard/index.d.ts +1 -0
- package/dist/foundation/hooks/useClipboard/useClipboard.d.ts +24 -0
- package/dist/foundation/hooks/useControlled/index.d.ts +1 -0
- package/dist/foundation/hooks/useControlled/useControlled.d.ts +31 -0
- package/dist/foundation/hooks/useDebounceHandler/index.d.ts +1 -0
- package/dist/foundation/hooks/useDebounceHandler/useDebounceHandler.d.ts +16 -0
- package/dist/foundation/hooks/useDisclosure/index.d.ts +1 -0
- package/dist/foundation/hooks/useDisclosure/useDisclosure.d.ts +18 -0
- package/dist/foundation/hooks/useEscape/index.d.ts +1 -0
- package/dist/foundation/hooks/useEscape/useEscape.d.ts +10 -0
- package/dist/foundation/hooks/useEventListener/index.d.ts +1 -0
- package/dist/foundation/hooks/useEventListener/useEventListener.d.ts +17 -0
- package/dist/foundation/hooks/useFocusTrap/index.d.ts +1 -0
- package/dist/foundation/hooks/useFocusTrap/useFocusTrap.d.ts +15 -0
- package/dist/foundation/hooks/useId/index.d.ts +1 -0
- package/dist/foundation/hooks/useId/useId.d.ts +8 -0
- package/dist/foundation/hooks/useMediaQuery/index.d.ts +1 -0
- package/dist/foundation/hooks/useMediaQuery/useMediaQuery.d.ts +12 -0
- package/dist/foundation/hooks/useOutsideClick/index.d.ts +1 -0
- package/dist/foundation/hooks/useOutsideClick/useOutsideClick.d.ts +12 -0
- package/dist/foundation/hooks/usePersistentState/index.d.ts +1 -0
- package/dist/foundation/hooks/usePersistentState/usePersistentState.d.ts +31 -0
- package/dist/foundation/hooks/useRecentItems/index.d.ts +1 -0
- package/dist/foundation/hooks/useRecentItems/useRecentItems.d.ts +34 -0
- package/dist/foundation/hooks/useReducedMotion/index.d.ts +1 -0
- package/dist/foundation/hooks/useReducedMotion/useReducedMotion.d.ts +7 -0
- package/dist/foundation/hooks/useResizeObserver/index.d.ts +1 -0
- package/dist/foundation/hooks/useResizeObserver/useResizeObserver.d.ts +11 -0
- package/dist/foundation/hooks/useScrollLock/index.d.ts +1 -0
- package/dist/foundation/hooks/useScrollLock/useScrollLock.d.ts +11 -0
- package/dist/foundation/hooks/useTypeahead/index.d.ts +1 -0
- package/dist/foundation/hooks/useTypeahead/useTypeahead.d.ts +42 -0
- package/dist/foundation/http/ApiError.d.ts +7 -0
- package/dist/foundation/http/ApiResponse.d.ts +4 -0
- package/dist/foundation/http/CreateApiClient.d.ts +65 -0
- package/dist/foundation/http/DateBrands.d.ts +8 -0
- package/dist/foundation/http/Envelope.d.ts +33 -0
- package/dist/foundation/http/FieldErrors.d.ts +16 -0
- package/dist/foundation/http/Page.d.ts +47 -0
- package/dist/foundation/http/ProblemDetails.d.ts +9 -0
- package/dist/foundation/http/index.d.ts +9 -0
- package/dist/foundation/http/index.js +180 -0
- package/dist/foundation/http/index.js.map +1 -0
- package/dist/foundation/http/temporalReviver.d.ts +9 -0
- package/dist/foundation/i18n/FormattedRelative.vue.d.ts +10 -0
- package/dist/foundation/i18n/LocaleContext.d.ts +35 -0
- package/dist/foundation/i18n/LocaleFormatters.d.ts +24 -0
- package/dist/foundation/i18n/LocaleProvider.vue.d.ts +18 -0
- package/dist/foundation/i18n/index.d.ts +4 -0
- package/dist/foundation/i18n/index.js +79 -0
- package/dist/foundation/i18n/index.js.map +1 -0
- package/dist/foundation/icons/Icon.vue.d.ts +40 -0
- package/dist/foundation/icons/Spinner.vue.d.ts +7 -0
- package/dist/foundation/icons/index.d.ts +2 -0
- package/dist/foundation/icons/index.js +7 -0
- package/dist/foundation/icons/index.js.map +1 -0
- package/dist/foundation/idb/IdbPromises.d.ts +25 -0
- package/dist/foundation/idb/IndexedDbSupport.d.ts +32 -0
- package/dist/foundation/idb/KeyValueStore.d.ts +84 -0
- package/dist/foundation/idb/OpenDatabase.d.ts +62 -0
- package/dist/foundation/idb/Transactions.d.ts +44 -0
- package/dist/foundation/idb/index.d.ts +5 -0
- package/dist/foundation/idb/index.js +403 -0
- package/dist/foundation/idb/index.js.map +1 -0
- package/dist/foundation/identifiers/Guid.d.ts +41 -0
- package/dist/foundation/identifiers/index.d.ts +1 -0
- package/dist/foundation/identifiers/index.js +68 -0
- package/dist/foundation/identifiers/index.js.map +1 -0
- package/dist/foundation/logger/ConsoleLogSink.d.ts +8 -0
- package/dist/foundation/logger/LogLevel.d.ts +34 -0
- package/dist/foundation/logger/LogRecord.d.ts +17 -0
- package/dist/foundation/logger/LogSink.d.ts +17 -0
- package/dist/foundation/logger/Logger.d.ts +55 -0
- package/dist/foundation/logger/MemoryLogSink.d.ts +11 -0
- package/dist/foundation/logger/Redaction.d.ts +29 -0
- package/dist/foundation/logger/index.d.ts +7 -0
- package/dist/foundation/logger/index.js +232 -0
- package/dist/foundation/logger/index.js.map +1 -0
- package/dist/foundation/media/CanCaptureMedia.d.ts +36 -0
- package/dist/foundation/media/FacingMode.d.ts +45 -0
- package/dist/foundation/media/ListMediaDevices.d.ts +41 -0
- package/dist/foundation/media/MediaPermission.d.ts +23 -0
- package/dist/foundation/media/MediaStreamResult.d.ts +45 -0
- package/dist/foundation/media/RequestMediaStream.d.ts +37 -0
- package/dist/foundation/media/StopMediaStream.d.ts +10 -0
- package/dist/foundation/media/UseMediaStream.d.ts +41 -0
- package/dist/foundation/media/index.d.ts +8 -0
- package/dist/foundation/media/index.js +218 -0
- package/dist/foundation/media/index.js.map +1 -0
- package/dist/foundation/net/ConnectionState.d.ts +36 -0
- package/dist/foundation/net/CreateEventStream.d.ts +101 -0
- package/dist/foundation/net/CreatePoller.d.ts +59 -0
- package/dist/foundation/net/CreateSocketClient.d.ts +93 -0
- package/dist/foundation/net/Liveness.d.ts +41 -0
- package/dist/foundation/net/Reconnect.d.ts +49 -0
- package/dist/foundation/net/UseEventStream.d.ts +25 -0
- package/dist/foundation/net/UsePolling.d.ts +26 -0
- package/dist/foundation/net/UseSocket.d.ts +32 -0
- package/dist/foundation/net/index.d.ts +9 -0
- package/dist/foundation/net/index.js +840 -0
- package/dist/foundation/net/index.js.map +1 -0
- package/dist/foundation/notifications/CanNotify.d.ts +11 -0
- package/dist/foundation/notifications/NotificationPermission.d.ts +31 -0
- package/dist/foundation/notifications/Notify.d.ts +66 -0
- package/dist/foundation/notifications/QueryPermission.d.ts +55 -0
- package/dist/foundation/notifications/UseNotificationPermission.d.ts +27 -0
- package/dist/foundation/notifications/UsePermissionState.d.ts +14 -0
- package/dist/foundation/notifications/index.d.ts +6 -0
- package/dist/foundation/notifications/index.js +199 -0
- package/dist/foundation/notifications/index.js.map +1 -0
- package/dist/foundation/observers/ObserveIntersection.d.ts +57 -0
- package/dist/foundation/observers/ObserveMutation.d.ts +52 -0
- package/dist/foundation/observers/UseInView.d.ts +41 -0
- package/dist/foundation/observers/UseIntersectionObserver.d.ts +18 -0
- package/dist/foundation/observers/UseMutationObserver.d.ts +21 -0
- package/dist/foundation/observers/UseVisibility.d.ts +33 -0
- package/dist/foundation/observers/VisibilitySteps.d.ts +14 -0
- package/dist/foundation/observers/index.d.ts +7 -0
- package/dist/foundation/observers/index.js +199 -0
- package/dist/foundation/observers/index.js.map +1 -0
- package/dist/foundation/primitives/accessibleIcon/AccessibleIcon.d.ts +27 -0
- package/dist/foundation/primitives/accessibleIcon/index.d.ts +1 -0
- package/dist/foundation/primitives/anchoredPositioner/AnchoredPositioner.vue.d.ts +37 -0
- package/dist/foundation/primitives/anchoredPositioner/index.d.ts +1 -0
- package/dist/foundation/primitives/announce/Announce.vue.d.ts +28 -0
- package/dist/foundation/primitives/announce/index.d.ts +1 -0
- package/dist/foundation/primitives/collection/Collection.d.ts +24 -0
- package/dist/foundation/primitives/collection/index.d.ts +1 -0
- package/dist/foundation/primitives/colorModeProvider/ColorModeContext.d.ts +26 -0
- package/dist/foundation/primitives/colorModeProvider/ColorModeProvider.vue.d.ts +20 -0
- package/dist/foundation/primitives/colorModeProvider/index.d.ts +2 -0
- package/dist/foundation/primitives/directionProvider/DirectionContext.d.ts +23 -0
- package/dist/foundation/primitives/directionProvider/DirectionProvider.vue.d.ts +14 -0
- package/dist/foundation/primitives/directionProvider/index.d.ts +2 -0
- package/dist/foundation/primitives/dismissableLayer/DismissableLayer.vue.d.ts +22 -0
- package/dist/foundation/primitives/dismissableLayer/index.d.ts +1 -0
- package/dist/foundation/primitives/focusScope/FocusScope.vue.d.ts +26 -0
- package/dist/foundation/primitives/focusScope/index.d.ts +1 -0
- package/dist/foundation/primitives/formControlContext/FormControlContext.d.ts +57 -0
- package/dist/foundation/primitives/formControlContext/FormControlProvider.vue.d.ts +25 -0
- package/dist/foundation/primitives/formControlContext/index.d.ts +2 -0
- package/dist/foundation/primitives/index.d.ts +17 -0
- package/dist/foundation/primitives/index.js +52 -0
- package/dist/foundation/primitives/index.js.map +1 -0
- package/dist/foundation/primitives/overlayArrow/OverlayArrow.vue.d.ts +27 -0
- package/dist/foundation/primitives/overlayArrow/index.d.ts +1 -0
- package/dist/foundation/primitives/portal/Portal.vue.d.ts +16 -0
- package/dist/foundation/primitives/portal/index.d.ts +1 -0
- package/dist/foundation/primitives/presence/Presence.d.ts +32 -0
- package/dist/foundation/primitives/presence/index.d.ts +1 -0
- package/dist/foundation/primitives/rovingFocusGroup/RovingFocusContext.d.ts +74 -0
- package/dist/foundation/primitives/rovingFocusGroup/RovingFocusGroup.vue.d.ts +20 -0
- package/dist/foundation/primitives/rovingFocusGroup/index.d.ts +2 -0
- package/dist/foundation/primitives/scrollLockProvider/ScrollLockProvider.vue.d.ts +15 -0
- package/dist/foundation/primitives/scrollLockProvider/index.d.ts +1 -0
- package/dist/foundation/primitives/scrollViewport/ScrollViewport.vue.d.ts +41 -0
- package/dist/foundation/primitives/scrollViewport/index.d.ts +1 -0
- package/dist/foundation/primitives/slot/Primitive.d.ts +69 -0
- package/dist/foundation/primitives/slot/Slot.d.ts +38 -0
- package/dist/foundation/primitives/slot/index.d.ts +2 -0
- package/dist/foundation/primitives/visuallyHidden/VisuallyHidden.vue.d.ts +11 -0
- package/dist/foundation/primitives/visuallyHidden/index.d.ts +1 -0
- package/dist/foundation/resilience/BackoffStrategy.d.ts +10 -0
- package/dist/foundation/resilience/JitterStrategy.d.ts +12 -0
- package/dist/foundation/resilience/RetryDelay.d.ts +5 -0
- package/dist/foundation/resilience/RetryPolicy.d.ts +34 -0
- package/dist/foundation/resilience/index.d.ts +4 -0
- package/dist/foundation/resilience/index.js +63 -0
- package/dist/foundation/resilience/index.js.map +1 -0
- package/dist/foundation/screen/Fullscreen.d.ts +73 -0
- package/dist/foundation/screen/ScreenEnvironment.d.ts +42 -0
- package/dist/foundation/screen/ScreenOrientation.d.ts +110 -0
- package/dist/foundation/screen/ScreenResult.d.ts +38 -0
- package/dist/foundation/screen/UseFullscreen.d.ts +28 -0
- package/dist/foundation/screen/UseOrientation.d.ts +28 -0
- package/dist/foundation/screen/UseWakeLock.d.ts +18 -0
- package/dist/foundation/screen/WakeLock.d.ts +79 -0
- package/dist/foundation/screen/index.d.ts +7 -0
- package/dist/foundation/screen/index.js +402 -0
- package/dist/foundation/screen/index.js.map +1 -0
- package/dist/foundation/selection/Field.d.ts +31 -0
- package/dist/foundation/selection/Filter.d.ts +71 -0
- package/dist/foundation/selection/Selection.d.ts +116 -0
- package/dist/foundation/selection/Sort.d.ts +69 -0
- package/dist/foundation/selection/UseFilters.d.ts +34 -0
- package/dist/foundation/selection/UseSelection.d.ts +54 -0
- package/dist/foundation/selection/UseSort.d.ts +36 -0
- package/dist/foundation/selection/index.d.ts +7 -0
- package/dist/foundation/selection/index.js +407 -0
- package/dist/foundation/selection/index.js.map +1 -0
- package/dist/foundation/share/CanShare.d.ts +11 -0
- package/dist/foundation/share/Share.d.ts +45 -0
- package/dist/foundation/share/ShareData.d.ts +43 -0
- package/dist/foundation/share/ShareOrCopy.d.ts +27 -0
- package/dist/foundation/share/UseShare.d.ts +30 -0
- package/dist/foundation/share/index.d.ts +5 -0
- package/dist/foundation/share/index.js +111 -0
- package/dist/foundation/share/index.js.map +1 -0
- package/dist/foundation/shortcuts/Chord.d.ts +51 -0
- package/dist/foundation/shortcuts/UseHotkeys.d.ts +34 -0
- package/dist/foundation/shortcuts/index.d.ts +3 -0
- package/dist/foundation/shortcuts/index.js +15 -0
- package/dist/foundation/shortcuts/index.js.map +1 -0
- package/dist/foundation/speech/CreateSpeechRecognizer.d.ts +79 -0
- package/dist/foundation/speech/ListVoices.d.ts +78 -0
- package/dist/foundation/speech/Speak.d.ts +52 -0
- package/dist/foundation/speech/SpeechControls.d.ts +57 -0
- package/dist/foundation/speech/SpeechRecognitionResult.d.ts +45 -0
- package/dist/foundation/speech/SpeechRecognitionTypes.d.ts +67 -0
- package/dist/foundation/speech/SpeechResult.d.ts +32 -0
- package/dist/foundation/speech/SpeechSupport.d.ts +69 -0
- package/dist/foundation/speech/UseSpeechRecognition.d.ts +45 -0
- package/dist/foundation/speech/UseSpeechSynthesis.d.ts +37 -0
- package/dist/foundation/speech/index.d.ts +10 -0
- package/dist/foundation/speech/index.js +573 -0
- package/dist/foundation/speech/index.js.map +1 -0
- package/dist/foundation/storage/NamespacedBroker.d.ts +7 -0
- package/dist/foundation/storage/StorageBroker.d.ts +17 -0
- package/dist/foundation/storage/VersionedStore.d.ts +42 -0
- package/dist/foundation/storage/index.d.ts +3 -0
- package/dist/foundation/storage/index.js +65 -0
- package/dist/foundation/storage/index.js.map +1 -0
- package/dist/foundation/storage/zustand/ZustandPersist.d.ts +36 -0
- package/dist/foundation/storage/zustand/index.d.ts +1 -0
- package/dist/foundation/storage/zustand/index.js +11 -0
- package/dist/foundation/storage/zustand/index.js.map +1 -0
- package/dist/foundation/sync/CreateSyncChannel.d.ts +16 -0
- package/dist/foundation/sync/LeaderElection.d.ts +88 -0
- package/dist/foundation/sync/MemorySyncHub.d.ts +29 -0
- package/dist/foundation/sync/SyncChannel.d.ts +65 -0
- package/dist/foundation/sync/UseBroadcastState.d.ts +31 -0
- package/dist/foundation/sync/UseLeaderElection.d.ts +25 -0
- package/dist/foundation/sync/UseSyncChannel.d.ts +16 -0
- package/dist/foundation/sync/index.d.ts +7 -0
- package/dist/foundation/sync/index.js +484 -0
- package/dist/foundation/sync/index.js.map +1 -0
- package/dist/foundation/themes/Oklch.d.ts +42 -0
- package/dist/foundation/themes/Theme.d.ts +112 -0
- package/dist/foundation/themes/Tokens.d.ts +40 -0
- package/dist/foundation/themes/css.d.ts +20 -0
- package/dist/foundation/themes/generate.d.ts +6 -0
- package/dist/foundation/themes/index.d.ts +11 -0
- package/dist/foundation/themes/index.js +37 -0
- package/dist/foundation/themes/index.js.map +1 -0
- package/dist/foundation/themes/pool.d.ts +3 -0
- package/dist/foundation/themes/registry.d.ts +16 -0
- package/dist/foundation/themes/validate.d.ts +25 -0
- package/dist/foundation/themes/validated.d.ts +3 -0
- package/dist/foundation/undo/HistoryCore.d.ts +92 -0
- package/dist/foundation/undo/SnapshotHistory.d.ts +33 -0
- package/dist/foundation/undo/UndoHistory.d.ts +41 -0
- package/dist/foundation/undo/UseUndoHistory.d.ts +66 -0
- package/dist/foundation/undo/UseUndoShortcuts.d.ts +20 -0
- package/dist/foundation/undo/index.d.ts +5 -0
- package/dist/foundation/undo/index.js +361 -0
- package/dist/foundation/undo/index.js.map +1 -0
- package/dist/foundation/uploads/UploadItem.d.ts +47 -0
- package/dist/foundation/uploads/UploadQueue.d.ts +79 -0
- package/dist/foundation/uploads/UploadTransport.d.ts +41 -0
- package/dist/foundation/uploads/UseUploadQueue.d.ts +47 -0
- package/dist/foundation/uploads/XhrUploadTransport.d.ts +23 -0
- package/dist/foundation/uploads/index.d.ts +5 -0
- package/dist/foundation/uploads/index.js +449 -0
- package/dist/foundation/uploads/index.js.map +1 -0
- package/dist/foundation/utils/Align/Align.d.ts +10 -0
- package/dist/foundation/utils/Align/index.d.ts +1 -0
- package/dist/foundation/utils/ColorExtensions/ColorExtensions.d.ts +51 -0
- package/dist/foundation/utils/ColorExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/Compare/Compare.d.ts +7 -0
- package/dist/foundation/utils/Compare/index.d.ts +1 -0
- package/dist/foundation/utils/CornerPosition/CornerPosition.d.ts +12 -0
- package/dist/foundation/utils/CornerPosition/index.d.ts +1 -0
- package/dist/foundation/utils/CssExtensions/CssExtensions.d.ts +115 -0
- package/dist/foundation/utils/CssExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/ElementTag/ElementTag.d.ts +28 -0
- package/dist/foundation/utils/ElementTag/index.d.ts +1 -0
- package/dist/foundation/utils/Environment/Environment.d.ts +12 -0
- package/dist/foundation/utils/Environment/index.d.ts +1 -0
- package/dist/foundation/utils/Equality/Equality.d.ts +13 -0
- package/dist/foundation/utils/Equality/index.d.ts +1 -0
- package/dist/foundation/utils/HtmlExtensions/HtmlExtensions.d.ts +22 -0
- package/dist/foundation/utils/HtmlExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/KeyboardExtensions/KeyboardExtensions.d.ts +32 -0
- package/dist/foundation/utils/KeyboardExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/Layers/Layers.d.ts +35 -0
- package/dist/foundation/utils/Layers/index.d.ts +1 -0
- package/dist/foundation/utils/OptionalExtensions/OptionalExtensions.d.ts +12 -0
- package/dist/foundation/utils/OptionalExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/Orientation/Orientation.d.ts +8 -0
- package/dist/foundation/utils/Orientation/index.d.ts +1 -0
- package/dist/foundation/utils/OverlayPosition/OverlayPosition.d.ts +16 -0
- package/dist/foundation/utils/OverlayPosition/index.d.ts +1 -0
- package/dist/foundation/utils/PressExtensions/PressExtensions.d.ts +17 -0
- package/dist/foundation/utils/PressExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/ProgressTone/ProgressTone.d.ts +14 -0
- package/dist/foundation/utils/ProgressTone/index.d.ts +1 -0
- package/dist/foundation/utils/Severity/Severity.d.ts +14 -0
- package/dist/foundation/utils/Severity/index.d.ts +1 -0
- package/dist/foundation/utils/Side/Side.d.ts +12 -0
- package/dist/foundation/utils/Side/index.d.ts +1 -0
- package/dist/foundation/utils/StatusTone/StatusTone.d.ts +14 -0
- package/dist/foundation/utils/StatusTone/index.d.ts +1 -0
- package/dist/foundation/utils/StyleTokens/StyleTokens.d.ts +68 -0
- package/dist/foundation/utils/StyleTokens/index.d.ts +1 -0
- package/dist/foundation/utils/SurfaceStyles/SurfaceStyles.d.ts +397 -0
- package/dist/foundation/utils/SurfaceStyles/index.d.ts +1 -0
- package/dist/foundation/utils/Tones/Tones.d.ts +21 -0
- package/dist/foundation/utils/Tones/index.d.ts +1 -0
- package/dist/foundation/utils/TransitionExtensions/TransitionExtensions.d.ts +18 -0
- package/dist/foundation/utils/TransitionExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/cn/cn.d.ts +6 -0
- package/dist/foundation/utils/cn/index.d.ts +1 -0
- package/dist/foundation/utils/composeEventHandlers/composeEventHandlers.d.ts +9 -0
- package/dist/foundation/utils/composeEventHandlers/index.d.ts +1 -0
- package/dist/foundation/utils/dataAttr/dataAttr.d.ts +6 -0
- package/dist/foundation/utils/dataAttr/index.d.ts +1 -0
- package/dist/foundation/utils/index.d.ts +33 -0
- package/dist/foundation/utils/index.js +67 -0
- package/dist/foundation/utils/index.js.map +1 -0
- package/dist/foundation/utils/polymorphic/index.d.ts +1 -0
- package/dist/foundation/utils/polymorphic/polymorphic.d.ts +29 -0
- package/dist/foundation/utils/tv/index.d.ts +1 -0
- package/dist/foundation/utils/tv/tv.d.ts +1 -0
- package/dist/foundation/validation/Composites.d.ts +62 -0
- package/dist/foundation/validation/Formats.d.ts +9 -0
- package/dist/foundation/validation/Messages.d.ts +69 -0
- package/dist/foundation/validation/Primitives.d.ts +49 -0
- package/dist/foundation/validation/StandardSchema.d.ts +55 -0
- package/dist/foundation/validation/ValidationError.d.ts +14 -0
- package/dist/foundation/validation/ValidationResult.d.ts +49 -0
- package/dist/foundation/validation/Validator.d.ts +69 -0
- package/dist/foundation/validation/index.d.ts +8 -0
- package/dist/foundation/validation/index.js +512 -0
- package/dist/foundation/validation/index.js.map +1 -0
- package/dist/foundation/virtualization/Measurements.d.ts +79 -0
- package/dist/foundation/virtualization/UseVirtualList.d.ts +79 -0
- package/dist/foundation/virtualization/Windowing.d.ts +78 -0
- package/dist/foundation/virtualization/index.d.ts +3 -0
- package/dist/foundation/virtualization/index.js +300 -0
- package/dist/foundation/virtualization/index.js.map +1 -0
- package/dist/foundation/workers/RunInWorker.d.ts +41 -0
- package/dist/foundation/workers/UseWorker.d.ts +28 -0
- package/dist/foundation/workers/WorkerClient.d.ts +85 -0
- package/dist/foundation/workers/WorkerHost.d.ts +80 -0
- package/dist/foundation/workers/WorkerProtocol.d.ts +78 -0
- package/dist/foundation/workers/WorkerSupport.d.ts +15 -0
- package/dist/foundation/workers/index.d.ts +6 -0
- package/dist/foundation/workers/index.js +292 -0
- package/dist/foundation/workers/index.js.map +1 -0
- package/dist/index.css +314 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +636 -0
- package/dist/index.js.map +1 -0
- package/dist/presentation/actions/backToTopButton/BackToTopButton.vue.d.ts +33 -0
- package/dist/presentation/actions/backToTopButton/index.d.ts +1 -0
- package/dist/presentation/actions/button/Button.variants.d.ts +311 -0
- package/dist/presentation/actions/button/Button.vue.d.ts +119 -0
- package/dist/presentation/actions/button/index.d.ts +2 -0
- package/dist/presentation/actions/buttonGroup/ButtonGroup.vue.d.ts +22 -0
- package/dist/presentation/actions/buttonGroup/index.d.ts +1 -0
- package/dist/presentation/actions/copyButton/CopyButton.vue.d.ts +35 -0
- package/dist/presentation/actions/copyButton/index.d.ts +1 -0
- package/dist/presentation/actions/disclosureButton/DisclosureButton.vue.d.ts +32 -0
- package/dist/presentation/actions/disclosureButton/index.d.ts +1 -0
- package/dist/presentation/actions/fab/FAB.variants.d.ts +158 -0
- package/dist/presentation/actions/fab/FAB.vue.d.ts +29 -0
- package/dist/presentation/actions/fab/index.d.ts +2 -0
- package/dist/presentation/actions/index.d.ts +14 -0
- package/dist/presentation/actions/index.js +47 -0
- package/dist/presentation/actions/index.js.map +1 -0
- package/dist/presentation/actions/link/Link.variants.d.ts +111 -0
- package/dist/presentation/actions/link/Link.vue.d.ts +24 -0
- package/dist/presentation/actions/link/index.d.ts +2 -0
- package/dist/presentation/actions/optionTile/OptionTile.variants.d.ts +10 -0
- package/dist/presentation/actions/optionTile/OptionTile.vue.d.ts +31 -0
- package/dist/presentation/actions/optionTile/index.d.ts +2 -0
- package/dist/presentation/actions/optionTileGroup/OptionTileGroup.variants.d.ts +76 -0
- package/dist/presentation/actions/optionTileGroup/OptionTileGroup.vue.d.ts +27 -0
- package/dist/presentation/actions/optionTileGroup/index.d.ts +2 -0
- package/dist/presentation/actions/segmentedControl/SegmentedControl.vue.d.ts +20 -0
- package/dist/presentation/actions/segmentedControl/index.d.ts +1 -0
- package/dist/presentation/actions/speedDial/SpeedDial.vue.d.ts +28 -0
- package/dist/presentation/actions/speedDial/SpeedDialAction.vue.d.ts +40 -0
- package/dist/presentation/actions/speedDial/SpeedDialContext.d.ts +36 -0
- package/dist/presentation/actions/speedDial/SpeedDialList.vue.d.ts +13 -0
- package/dist/presentation/actions/speedDial/SpeedDialTrigger.vue.d.ts +30 -0
- package/dist/presentation/actions/speedDial/index.d.ts +166 -0
- package/dist/presentation/actions/toggleButton/ToggleButton.variants.d.ts +141 -0
- package/dist/presentation/actions/toggleButton/ToggleButton.vue.d.ts +59 -0
- package/dist/presentation/actions/toggleButton/index.d.ts +2 -0
- package/dist/presentation/actions/toggleButtonGroup/ToggleButtonGroup.variants.d.ts +33 -0
- package/dist/presentation/actions/toggleButtonGroup/ToggleButtonGroup.vue.d.ts +72 -0
- package/dist/presentation/actions/toggleButtonGroup/ToggleButtonGroupContext.d.ts +24 -0
- package/dist/presentation/actions/toggleButtonGroup/index.d.ts +3 -0
- package/dist/presentation/actions/toolbar/Toolbar.vue.d.ts +19 -0
- package/dist/presentation/actions/toolbar/ToolbarButton.vue.d.ts +16 -0
- package/dist/presentation/actions/toolbar/ToolbarContext.d.ts +9 -0
- package/dist/presentation/actions/toolbar/ToolbarLink.vue.d.ts +11 -0
- package/dist/presentation/actions/toolbar/ToolbarSeparator.vue.d.ts +3 -0
- package/dist/presentation/actions/toolbar/index.d.ts +87 -0
- package/dist/presentation/display/accordion/Accordion.vue.d.ts +45 -0
- package/dist/presentation/display/accordion/AccordionContent.vue.d.ts +14 -0
- package/dist/presentation/display/accordion/AccordionContext.d.ts +29 -0
- package/dist/presentation/display/accordion/AccordionItem.vue.d.ts +20 -0
- package/dist/presentation/display/accordion/AccordionTrigger.vue.d.ts +14 -0
- package/dist/presentation/display/accordion/index.d.ts +5 -0
- package/dist/presentation/display/activityFeed/ActivityFeed.vue.d.ts +18 -0
- package/dist/presentation/display/activityFeed/ActivityItem.vue.d.ts +29 -0
- package/dist/presentation/display/activityFeed/index.d.ts +2 -0
- package/dist/presentation/display/animatedNumber/AnimatedNumber.vue.d.ts +34 -0
- package/dist/presentation/display/animatedNumber/index.d.ts +1 -0
- package/dist/presentation/display/annotationMarker/AnnotationMarker.vue.d.ts +43 -0
- package/dist/presentation/display/annotationMarker/index.d.ts +1 -0
- package/dist/presentation/display/audioPlayer/AudioPlayer.vue.d.ts +38 -0
- package/dist/presentation/display/audioPlayer/index.d.ts +1 -0
- package/dist/presentation/display/audioWaveform/AudioWaveform.vue.d.ts +57 -0
- package/dist/presentation/display/audioWaveform/index.d.ts +1 -0
- package/dist/presentation/display/avatar/Avatar.variants.d.ts +312 -0
- package/dist/presentation/display/avatar/Avatar.vue.d.ts +49 -0
- package/dist/presentation/display/avatar/index.d.ts +2 -0
- package/dist/presentation/display/avatarGroup/AvatarGroup.vue.d.ts +25 -0
- package/dist/presentation/display/avatarGroup/index.d.ts +1 -0
- package/dist/presentation/display/badge/Badge.variants.d.ts +128 -0
- package/dist/presentation/display/badge/Badge.vue.d.ts +20 -0
- package/dist/presentation/display/badge/index.d.ts +2 -0
- package/dist/presentation/display/badgeOverlay/BadgeOverlay.vue.d.ts +24 -0
- package/dist/presentation/display/badgeOverlay/index.d.ts +1 -0
- package/dist/presentation/display/card/Card.vue.d.ts +32 -0
- package/dist/presentation/display/card/CardBody.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardDescription.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardFooter.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardHeader.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardTitle.vue.d.ts +12 -0
- package/dist/presentation/display/card/index.d.ts +6 -0
- package/dist/presentation/display/carousel/Carousel.vue.d.ts +34 -0
- package/dist/presentation/display/carousel/CarouselContext.d.ts +38 -0
- package/dist/presentation/display/carousel/CarouselDot.vue.d.ts +9 -0
- package/dist/presentation/display/carousel/CarouselDots.vue.d.ts +7 -0
- package/dist/presentation/display/carousel/CarouselNext.vue.d.ts +12 -0
- package/dist/presentation/display/carousel/CarouselPrev.vue.d.ts +12 -0
- package/dist/presentation/display/carousel/CarouselSlide.vue.d.ts +14 -0
- package/dist/presentation/display/carousel/CarouselSlides.vue.d.ts +14 -0
- package/dist/presentation/display/carousel/CarouselViewport.vue.d.ts +14 -0
- package/dist/presentation/display/carousel/index.d.ts +10 -0
- package/dist/presentation/display/chatBubble/ChatBubble.vue.d.ts +79 -0
- package/dist/presentation/display/chatBubble/index.d.ts +1 -0
- package/dist/presentation/display/code/Code.variants.d.ts +48 -0
- package/dist/presentation/display/code/Code.vue.d.ts +17 -0
- package/dist/presentation/display/code/index.d.ts +2 -0
- package/dist/presentation/display/collapsible/Collapsible.vue.d.ts +40 -0
- package/dist/presentation/display/collapsible/CollapsibleContent.vue.d.ts +18 -0
- package/dist/presentation/display/collapsible/CollapsibleContentInner.vue.d.ts +23 -0
- package/dist/presentation/display/collapsible/CollapsibleContext.d.ts +17 -0
- package/dist/presentation/display/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
- package/dist/presentation/display/collapsible/index.d.ts +4 -0
- package/dist/presentation/display/commentThread/Comment.vue.d.ts +39 -0
- package/dist/presentation/display/commentThread/CommentThread.vue.d.ts +14 -0
- package/dist/presentation/display/commentThread/index.d.ts +2 -0
- package/dist/presentation/display/confetti/Confetti.vue.d.ts +40 -0
- package/dist/presentation/display/confetti/index.d.ts +1 -0
- package/dist/presentation/display/countBadge/CountBadge.vue.d.ts +24 -0
- package/dist/presentation/display/countBadge/index.d.ts +1 -0
- package/dist/presentation/display/countUp/CountUp.vue.d.ts +40 -0
- package/dist/presentation/display/countUp/index.d.ts +1 -0
- package/dist/presentation/display/dataGrid/CellEditor.vue.d.ts +29 -0
- package/dist/presentation/display/dataGrid/DataGrid.vue.d.ts +47 -0
- package/dist/presentation/display/dataGrid/DataGridTypes.d.ts +65 -0
- package/dist/presentation/display/dataGrid/index.d.ts +2 -0
- package/dist/presentation/display/dataTable/DataTable.vue.d.ts +91 -0
- package/dist/presentation/display/dataTable/index.d.ts +1 -0
- package/dist/presentation/display/descriptionList/DescriptionList.vue.d.ts +54 -0
- package/dist/presentation/display/descriptionList/index.d.ts +1 -0
- package/dist/presentation/display/diffViewer/DiffViewer.vue.d.ts +38 -0
- package/dist/presentation/display/diffViewer/index.d.ts +1 -0
- package/dist/presentation/display/emptyState/EmptyState.vue.d.ts +43 -0
- package/dist/presentation/display/emptyState/index.d.ts +1 -0
- package/dist/presentation/display/eventCalendar/AgendaView.vue.d.ts +13 -0
- package/dist/presentation/display/eventCalendar/EventCalendar.vue.d.ts +41 -0
- package/dist/presentation/display/eventCalendar/EventCalendarTypes.d.ts +28 -0
- package/dist/presentation/display/eventCalendar/MonthView.vue.d.ts +17 -0
- package/dist/presentation/display/eventCalendar/TimeGridView.vue.d.ts +18 -0
- package/dist/presentation/display/eventCalendar/index.d.ts +2 -0
- package/dist/presentation/display/eyebrow/Eyebrow.vue.d.ts +32 -0
- package/dist/presentation/display/eyebrow/index.d.ts +1 -0
- package/dist/presentation/display/featureCard/FeatureCard.vue.d.ts +83 -0
- package/dist/presentation/display/featureCard/index.d.ts +1 -0
- package/dist/presentation/display/frameGlyph/FrameGlyph.vue.d.ts +19 -0
- package/dist/presentation/display/frameGlyph/index.d.ts +1 -0
- package/dist/presentation/display/gantt/Gantt.vue.d.ts +58 -0
- package/dist/presentation/display/gantt/index.d.ts +1 -0
- package/dist/presentation/display/gradientText/GradientText.vue.d.ts +54 -0
- package/dist/presentation/display/gradientText/index.d.ts +1 -0
- package/dist/presentation/display/heading/Heading.variants.d.ts +201 -0
- package/dist/presentation/display/heading/Heading.vue.d.ts +26 -0
- package/dist/presentation/display/heading/index.d.ts +2 -0
- package/dist/presentation/display/heatmapCalendar/HeatmapCalendar.vue.d.ts +61 -0
- package/dist/presentation/display/heatmapCalendar/index.d.ts +1 -0
- package/dist/presentation/display/highlight/Highlight.vue.d.ts +20 -0
- package/dist/presentation/display/highlight/index.d.ts +1 -0
- package/dist/presentation/display/image/Image.vue.d.ts +15 -0
- package/dist/presentation/display/image/index.d.ts +1 -0
- package/dist/presentation/display/index.d.ts +73 -0
- package/dist/presentation/display/index.js +192 -0
- package/dist/presentation/display/index.js.map +1 -0
- package/dist/presentation/display/infoRow/InfoRow.vue.d.ts +39 -0
- package/dist/presentation/display/infoRow/index.d.ts +1 -0
- package/dist/presentation/display/kbd/Kbd.vue.d.ts +13 -0
- package/dist/presentation/display/kbd/index.d.ts +1 -0
- package/dist/presentation/display/keyboardShortcut/KeyboardShortcut.vue.d.ts +13 -0
- package/dist/presentation/display/keyboardShortcut/index.d.ts +1 -0
- package/dist/presentation/display/list/List.variants.d.ts +112 -0
- package/dist/presentation/display/list/List.vue.d.ts +23 -0
- package/dist/presentation/display/list/ListItem.vue.d.ts +23 -0
- package/dist/presentation/display/list/index.d.ts +3 -0
- package/dist/presentation/display/mark/Mark.vue.d.ts +13 -0
- package/dist/presentation/display/mark/index.d.ts +1 -0
- package/dist/presentation/display/marquee/Marquee.vue.d.ts +39 -0
- package/dist/presentation/display/marquee/index.d.ts +1 -0
- package/dist/presentation/display/messageList/DaySeparator.vue.d.ts +17 -0
- package/dist/presentation/display/messageList/MessageList.vue.d.ts +39 -0
- package/dist/presentation/display/messageList/index.d.ts +2 -0
- package/dist/presentation/display/metaInline/MetaInline.vue.d.ts +21 -0
- package/dist/presentation/display/metaInline/index.d.ts +1 -0
- package/dist/presentation/display/metricChip/MetricChip.vue.d.ts +54 -0
- package/dist/presentation/display/metricChip/index.d.ts +1 -0
- package/dist/presentation/display/moduleGlyphs/CellsGlyph.vue.d.ts +13 -0
- package/dist/presentation/display/moduleGlyphs/DotsGlyph.vue.d.ts +9 -0
- package/dist/presentation/display/moduleGlyphs/HorizontalBarsGlyph.vue.d.ts +9 -0
- package/dist/presentation/display/moduleGlyphs/ModuleGlyphs.d.ts +15 -0
- package/dist/presentation/display/moduleGlyphs/VerticalBarsGlyph.vue.d.ts +9 -0
- package/dist/presentation/display/moduleGlyphs/index.d.ts +5 -0
- package/dist/presentation/display/nodeEditor/NodeEditor.vue.d.ts +58 -0
- package/dist/presentation/display/nodeEditor/index.d.ts +1 -0
- package/dist/presentation/display/notificationDot/NotificationDot.vue.d.ts +47 -0
- package/dist/presentation/display/notificationDot/index.d.ts +1 -0
- package/dist/presentation/display/pdfViewer/PDFViewer.vue.d.ts +40 -0
- package/dist/presentation/display/pdfViewer/index.d.ts +1 -0
- package/dist/presentation/display/pricingCard/PricingCard.vue.d.ts +107 -0
- package/dist/presentation/display/pricingCard/index.d.ts +1 -0
- package/dist/presentation/display/quote/Quote.vue.d.ts +13 -0
- package/dist/presentation/display/quote/index.d.ts +1 -0
- package/dist/presentation/display/radiusGlyph/RadiusGlyph.vue.d.ts +23 -0
- package/dist/presentation/display/radiusGlyph/index.d.ts +1 -0
- package/dist/presentation/display/reactionBar/ReactionBar.vue.d.ts +47 -0
- package/dist/presentation/display/reactionBar/index.d.ts +1 -0
- package/dist/presentation/display/scheduleView/ScheduleView.vue.d.ts +58 -0
- package/dist/presentation/display/scheduleView/index.d.ts +1 -0
- package/dist/presentation/display/scrollReveal/ScrollReveal.vue.d.ts +50 -0
- package/dist/presentation/display/scrollReveal/index.d.ts +1 -0
- package/dist/presentation/display/sectionHeader/SectionHeader.vue.d.ts +49 -0
- package/dist/presentation/display/sectionHeader/index.d.ts +1 -0
- package/dist/presentation/display/separator/Separator.vue.d.ts +14 -0
- package/dist/presentation/display/separator/index.d.ts +1 -0
- package/dist/presentation/display/snippet/Snippet.vue.d.ts +21 -0
- package/dist/presentation/display/snippet/index.d.ts +1 -0
- package/dist/presentation/display/sortable/Sortable.vue.d.ts +18 -0
- package/dist/presentation/display/sortable/SortableContext.d.ts +22 -0
- package/dist/presentation/display/sortable/SortableHandle.vue.d.ts +14 -0
- package/dist/presentation/display/sortable/SortableItem.vue.d.ts +16 -0
- package/dist/presentation/display/sortable/index.d.ts +4 -0
- package/dist/presentation/display/sparkline/Sparkline.vue.d.ts +62 -0
- package/dist/presentation/display/sparkline/index.d.ts +1 -0
- package/dist/presentation/display/stat/Stat.vue.d.ts +48 -0
- package/dist/presentation/display/stat/index.d.ts +1 -0
- package/dist/presentation/display/status/Status.vue.d.ts +35 -0
- package/dist/presentation/display/status/index.d.ts +1 -0
- package/dist/presentation/display/stepCard/StepCard.vue.d.ts +85 -0
- package/dist/presentation/display/stepCard/index.d.ts +1 -0
- package/dist/presentation/display/swipeActions/SwipeActions.vue.d.ts +28 -0
- package/dist/presentation/display/swipeActions/index.d.ts +1 -0
- package/dist/presentation/display/table/Table.vue.d.ts +30 -0
- package/dist/presentation/display/table/TableBody.vue.d.ts +12 -0
- package/dist/presentation/display/table/TableCaption.vue.d.ts +12 -0
- package/dist/presentation/display/table/TableCell.vue.d.ts +14 -0
- package/dist/presentation/display/table/TableContext.d.ts +46 -0
- package/dist/presentation/display/table/TableFooter.vue.d.ts +12 -0
- package/dist/presentation/display/table/TableHead.vue.d.ts +26 -0
- package/dist/presentation/display/table/TableHeaderCell.vue.d.ts +14 -0
- package/dist/presentation/display/table/TableRow.vue.d.ts +12 -0
- package/dist/presentation/display/table/index.d.ts +9 -0
- package/dist/presentation/display/tabs/Tabs.vue.d.ts +33 -0
- package/dist/presentation/display/tabs/TabsContext.d.ts +34 -0
- package/dist/presentation/display/tabs/TabsList.vue.d.ts +256 -0
- package/dist/presentation/display/tabs/TabsPanel.vue.d.ts +16 -0
- package/dist/presentation/display/tabs/TabsTab.vue.d.ts +20 -0
- package/dist/presentation/display/tabs/index.d.ts +5 -0
- package/dist/presentation/display/tag/Tag.variants.d.ts +84 -0
- package/dist/presentation/display/tag/Tag.vue.d.ts +25 -0
- package/dist/presentation/display/tag/index.d.ts +2 -0
- package/dist/presentation/display/text/Text.variants.d.ts +301 -0
- package/dist/presentation/display/text/Text.vue.d.ts +33 -0
- package/dist/presentation/display/text/index.d.ts +2 -0
- package/dist/presentation/display/threadView/ThreadView.vue.d.ts +46 -0
- package/dist/presentation/display/threadView/index.d.ts +1 -0
- package/dist/presentation/display/tilt/Tilt.vue.d.ts +31 -0
- package/dist/presentation/display/tilt/index.d.ts +1 -0
- package/dist/presentation/display/timeline/Timeline.vue.d.ts +19 -0
- package/dist/presentation/display/timeline/TimelineContext.d.ts +40 -0
- package/dist/presentation/display/timeline/TimelineDescription.vue.d.ts +14 -0
- package/dist/presentation/display/timeline/TimelineItem.vue.d.ts +22 -0
- package/dist/presentation/display/timeline/TimelineTitle.vue.d.ts +14 -0
- package/dist/presentation/display/timeline/index.d.ts +5 -0
- package/dist/presentation/display/tooltip/Tooltip.vue.d.ts +53 -0
- package/dist/presentation/display/tooltip/index.d.ts +1 -0
- package/dist/presentation/display/tree/Tree.vue.d.ts +275 -0
- package/dist/presentation/display/tree/TreeContext.d.ts +29 -0
- package/dist/presentation/display/tree/TreeGroup.vue.d.ts +28 -0
- package/dist/presentation/display/tree/TreeGroupContent.vue.d.ts +17 -0
- package/dist/presentation/display/tree/TreeItem.vue.d.ts +20 -0
- package/dist/presentation/display/tree/TreeNodeRow.vue.d.ts +27 -0
- package/dist/presentation/display/tree/index.d.ts +4 -0
- package/dist/presentation/display/typewriter/Typewriter.vue.d.ts +32 -0
- package/dist/presentation/display/typewriter/index.d.ts +1 -0
- package/dist/presentation/display/videoPlayer/VideoPlayer.vue.d.ts +55 -0
- package/dist/presentation/display/videoPlayer/index.d.ts +1 -0
- package/dist/presentation/feedback/alert/Alert.vue.d.ts +41 -0
- package/dist/presentation/feedback/alert/index.d.ts +1 -0
- package/dist/presentation/feedback/alertSimple/AlertSimple.variants.d.ts +61 -0
- package/dist/presentation/feedback/alertSimple/AlertSimple.vue.d.ts +17 -0
- package/dist/presentation/feedback/alertSimple/index.d.ts +2 -0
- package/dist/presentation/feedback/banner/Banner.vue.d.ts +41 -0
- package/dist/presentation/feedback/banner/index.d.ts +1 -0
- package/dist/presentation/feedback/bannerSimple/BannerSimple.variants.d.ts +61 -0
- package/dist/presentation/feedback/bannerSimple/BannerSimple.vue.d.ts +17 -0
- package/dist/presentation/feedback/bannerSimple/index.d.ts +2 -0
- package/dist/presentation/feedback/callout/Callout.vue.d.ts +27 -0
- package/dist/presentation/feedback/callout/index.d.ts +1 -0
- package/dist/presentation/feedback/feedbackToasts/FeedbackToasts.vue.d.ts +18 -0
- package/dist/presentation/feedback/feedbackToasts/index.d.ts +1 -0
- package/dist/presentation/feedback/index.d.ts +27 -0
- package/dist/presentation/feedback/index.js +49 -0
- package/dist/presentation/feedback/index.js.map +1 -0
- package/dist/presentation/feedback/inlineSpinner/InlineSpinner.vue.d.ts +22 -0
- package/dist/presentation/feedback/inlineSpinner/index.d.ts +1 -0
- package/dist/presentation/feedback/liveCursor/LiveCursor.vue.d.ts +33 -0
- package/dist/presentation/feedback/liveCursor/index.d.ts +1 -0
- package/dist/presentation/feedback/loadingOverlay/LoadingOverlay.vue.d.ts +36 -0
- package/dist/presentation/feedback/loadingOverlay/index.d.ts +1 -0
- package/dist/presentation/feedback/loadingState/LoadingState.vue.d.ts +26 -0
- package/dist/presentation/feedback/loadingState/index.d.ts +1 -0
- package/dist/presentation/feedback/meterBar/MeterBar.vue.d.ts +21 -0
- package/dist/presentation/feedback/meterBar/index.d.ts +1 -0
- package/dist/presentation/feedback/notificationCenter/NotificationCenter.vue.d.ts +30 -0
- package/dist/presentation/feedback/notificationCenter/NotificationItem.vue.d.ts +40 -0
- package/dist/presentation/feedback/notificationCenter/index.d.ts +2 -0
- package/dist/presentation/feedback/onboardingChecklist/OnboardingChecklist.vue.d.ts +56 -0
- package/dist/presentation/feedback/onboardingChecklist/OnboardingChecklistTask.vue.d.ts +27 -0
- package/dist/presentation/feedback/onboardingChecklist/index.d.ts +3 -0
- package/dist/presentation/feedback/presenceIndicator/PresenceIndicator.vue.d.ts +34 -0
- package/dist/presentation/feedback/presenceIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/progressBar/ProgressBar.variants.d.ts +104 -0
- package/dist/presentation/feedback/progressBar/ProgressBar.vue.d.ts +19 -0
- package/dist/presentation/feedback/progressBar/index.d.ts +2 -0
- package/dist/presentation/feedback/progressCircle/ProgressCircle.vue.d.ts +21 -0
- package/dist/presentation/feedback/progressCircle/index.d.ts +1 -0
- package/dist/presentation/feedback/progressSteps/ProgressSteps.vue.d.ts +16 -0
- package/dist/presentation/feedback/progressSteps/index.d.ts +1 -0
- package/dist/presentation/feedback/skeleton/Skeleton.variants.d.ts +57 -0
- package/dist/presentation/feedback/skeleton/Skeleton.vue.d.ts +17 -0
- package/dist/presentation/feedback/skeleton/index.d.ts +2 -0
- package/dist/presentation/feedback/spinner/Spinner.variants.d.ts +115 -0
- package/dist/presentation/feedback/spinner/Spinner.vue.d.ts +17 -0
- package/dist/presentation/feedback/spinner/index.d.ts +2 -0
- package/dist/presentation/feedback/statusIndicator/StatusIndicator.vue.d.ts +31 -0
- package/dist/presentation/feedback/statusIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/toast/Toast.vue.d.ts +41 -0
- package/dist/presentation/feedback/toast/index.d.ts +1 -0
- package/dist/presentation/feedback/toastSimple/ToastSimple.variants.d.ts +61 -0
- package/dist/presentation/feedback/toastSimple/ToastSimple.vue.d.ts +20 -0
- package/dist/presentation/feedback/toastSimple/index.d.ts +2 -0
- package/dist/presentation/feedback/toaster/Toaster.vue.d.ts +84 -0
- package/dist/presentation/feedback/toaster/index.d.ts +1 -0
- package/dist/presentation/feedback/tour/Tour.vue.d.ts +45 -0
- package/dist/presentation/feedback/tour/index.d.ts +1 -0
- package/dist/presentation/feedback/trendIndicator/TrendIndicator.vue.d.ts +32 -0
- package/dist/presentation/feedback/trendIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/typingIndicator/TypingIndicator.vue.d.ts +36 -0
- package/dist/presentation/feedback/typingIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/undoBar/UndoBar.vue.d.ts +34 -0
- package/dist/presentation/feedback/undoBar/index.d.ts +1 -0
- package/dist/presentation/forms/ColorExtensions.d.ts +37 -0
- package/dist/presentation/forms/DateExtensions.d.ts +70 -0
- package/dist/presentation/forms/InputStyles.d.ts +228 -0
- package/dist/presentation/forms/MonthGrid.vue.d.ts +40 -0
- package/dist/presentation/forms/addressForm/AddressForm.vue.d.ts +54 -0
- package/dist/presentation/forms/addressForm/index.d.ts +1 -0
- package/dist/presentation/forms/calendar/Calendar.vue.d.ts +33 -0
- package/dist/presentation/forms/calendar/index.d.ts +1 -0
- package/dist/presentation/forms/characterCount/CharacterCount.vue.d.ts +15 -0
- package/dist/presentation/forms/characterCount/index.d.ts +1 -0
- package/dist/presentation/forms/chatComposer/ChatComposer.vue.d.ts +74 -0
- package/dist/presentation/forms/chatComposer/index.d.ts +1 -0
- package/dist/presentation/forms/checkbox/Checkbox.variants.d.ts +133 -0
- package/dist/presentation/forms/checkbox/Checkbox.vue.d.ts +48 -0
- package/dist/presentation/forms/checkbox/index.d.ts +2 -0
- package/dist/presentation/forms/checkboxField/CheckboxField.vue.d.ts +35 -0
- package/dist/presentation/forms/checkboxField/index.d.ts +1 -0
- package/dist/presentation/forms/checkboxGroup/CheckboxGroup.vue.d.ts +39 -0
- package/dist/presentation/forms/checkboxGroup/CheckboxGroupContext.d.ts +14 -0
- package/dist/presentation/forms/checkboxGroup/index.d.ts +2 -0
- package/dist/presentation/forms/choiceCard/ChoiceCard.vue.d.ts +35 -0
- package/dist/presentation/forms/choiceCard/index.d.ts +1 -0
- package/dist/presentation/forms/codeEditor/CodeEditor.vue.d.ts +50 -0
- package/dist/presentation/forms/codeEditor/index.d.ts +1 -0
- package/dist/presentation/forms/colorArea/ColorArea.vue.d.ts +40 -0
- package/dist/presentation/forms/colorArea/index.d.ts +1 -0
- package/dist/presentation/forms/colorField/ColorField.vue.d.ts +44 -0
- package/dist/presentation/forms/colorField/index.d.ts +1 -0
- package/dist/presentation/forms/colorPicker/ColorPicker.vue.d.ts +62 -0
- package/dist/presentation/forms/colorPicker/index.d.ts +1 -0
- package/dist/presentation/forms/colorSlider/ColorSlider.vue.d.ts +47 -0
- package/dist/presentation/forms/colorSlider/index.d.ts +1 -0
- package/dist/presentation/forms/colorSwatch/ColorSwatch.variants.d.ts +186 -0
- package/dist/presentation/forms/colorSwatch/ColorSwatch.vue.d.ts +33 -0
- package/dist/presentation/forms/colorSwatch/index.d.ts +2 -0
- package/dist/presentation/forms/colorSwatchPicker/ColorSwatchItem.vue.d.ts +27 -0
- package/dist/presentation/forms/colorSwatchPicker/ColorSwatchPicker.vue.d.ts +41 -0
- package/dist/presentation/forms/colorSwatchPicker/index.d.ts +1 -0
- package/dist/presentation/forms/colorWheel/ColorWheel.vue.d.ts +34 -0
- package/dist/presentation/forms/colorWheel/index.d.ts +1 -0
- package/dist/presentation/forms/combobox/Combobox.vue.d.ts +60 -0
- package/dist/presentation/forms/combobox/ComboboxContent.vue.d.ts +39 -0
- package/dist/presentation/forms/combobox/ComboboxContext.d.ts +53 -0
- package/dist/presentation/forms/combobox/ComboboxEmpty.vue.d.ts +10 -0
- package/dist/presentation/forms/combobox/ComboboxGroup.vue.d.ts +19 -0
- package/dist/presentation/forms/combobox/ComboboxInput.vue.d.ts +12 -0
- package/dist/presentation/forms/combobox/ComboboxItem.vue.d.ts +28 -0
- package/dist/presentation/forms/combobox/ComboboxSeparator.vue.d.ts +3 -0
- package/dist/presentation/forms/combobox/index.d.ts +8 -0
- package/dist/presentation/forms/cronInput/CronInput.vue.d.ts +68 -0
- package/dist/presentation/forms/cronInput/index.d.ts +1 -0
- package/dist/presentation/forms/currencyInput/CurrencyInput.vue.d.ts +12 -0
- package/dist/presentation/forms/currencyInput/index.d.ts +1 -0
- package/dist/presentation/forms/dateField/DateField.vue.d.ts +42 -0
- package/dist/presentation/forms/dateField/index.d.ts +1 -0
- package/dist/presentation/forms/datePicker/DatePicker.vue.d.ts +53 -0
- package/dist/presentation/forms/datePicker/index.d.ts +1 -0
- package/dist/presentation/forms/dateRangePicker/DateRangePicker.vue.d.ts +54 -0
- package/dist/presentation/forms/dateRangePicker/index.d.ts +1 -0
- package/dist/presentation/forms/dateTimeField/DateTimeField.vue.d.ts +42 -0
- package/dist/presentation/forms/dateTimeField/index.d.ts +1 -0
- package/dist/presentation/forms/editable/Editable.vue.d.ts +60 -0
- package/dist/presentation/forms/editable/EditableCancel.vue.d.ts +12 -0
- package/dist/presentation/forms/editable/EditableContext.d.ts +37 -0
- package/dist/presentation/forms/editable/EditableInput.vue.d.ts +12 -0
- package/dist/presentation/forms/editable/EditablePreview.vue.d.ts +7 -0
- package/dist/presentation/forms/editable/EditableSubmit.vue.d.ts +14 -0
- package/dist/presentation/forms/editable/index.d.ts +7 -0
- package/dist/presentation/forms/emailInput/EmailInput.vue.d.ts +43 -0
- package/dist/presentation/forms/emailInput/index.d.ts +1 -0
- package/dist/presentation/forms/emojiPicker/CategoryNav.vue.d.ts +19 -0
- package/dist/presentation/forms/emojiPicker/EmojiGrid.vue.d.ts +26 -0
- package/dist/presentation/forms/emojiPicker/EmojiPicker.variants.d.ts +77 -0
- package/dist/presentation/forms/emojiPicker/EmojiPicker.vue.d.ts +45 -0
- package/dist/presentation/forms/emojiPicker/EmojiPickerPopover.vue.d.ts +68 -0
- package/dist/presentation/forms/emojiPicker/EmojiTile.vue.d.ts +22 -0
- package/dist/presentation/forms/emojiPicker/index.d.ts +4 -0
- package/dist/presentation/forms/emojiPicker/useEmojiPicker.d.ts +45 -0
- package/dist/presentation/forms/emojiSizeControl/EmojiSizeControl.variants.d.ts +23 -0
- package/dist/presentation/forms/emojiSizeControl/EmojiSizeControl.vue.d.ts +32 -0
- package/dist/presentation/forms/emojiSizeControl/index.d.ts +2 -0
- package/dist/presentation/forms/field/Field.vue.d.ts +37 -0
- package/dist/presentation/forms/field/index.d.ts +6 -0
- package/dist/presentation/forms/fieldset/Fieldset.vue.d.ts +22 -0
- package/dist/presentation/forms/fieldset/index.d.ts +1 -0
- package/dist/presentation/forms/filePicker/FilePicker.vue.d.ts +34 -0
- package/dist/presentation/forms/filePicker/index.d.ts +1 -0
- package/dist/presentation/forms/fileUpload/FileUpload.vue.d.ts +60 -0
- package/dist/presentation/forms/fileUpload/index.d.ts +1 -0
- package/dist/presentation/forms/fontPicker/FontPicker.vue.d.ts +43 -0
- package/dist/presentation/forms/fontPicker/index.d.ts +1 -0
- package/dist/presentation/forms/formErrorMessage/FormErrorMessage.vue.d.ts +24 -0
- package/dist/presentation/forms/formErrorMessage/index.d.ts +1 -0
- package/dist/presentation/forms/formHelperText/FormHelperText.vue.d.ts +19 -0
- package/dist/presentation/forms/formHelperText/index.d.ts +1 -0
- package/dist/presentation/forms/gradientPicker/GradientPicker.vue.d.ts +50 -0
- package/dist/presentation/forms/gradientPicker/index.d.ts +1 -0
- package/dist/presentation/forms/iconPicker/IconPicker.vue.d.ts +45 -0
- package/dist/presentation/forms/iconPicker/index.d.ts +1 -0
- package/dist/presentation/forms/index.d.ts +75 -0
- package/dist/presentation/forms/index.js +165 -0
- package/dist/presentation/forms/index.js.map +1 -0
- package/dist/presentation/forms/inputAddon/InputAddon.vue.d.ts +20 -0
- package/dist/presentation/forms/inputAddon/index.d.ts +1 -0
- package/dist/presentation/forms/inputGroup/InputGroup.vue.d.ts +19 -0
- package/dist/presentation/forms/inputGroup/index.d.ts +1 -0
- package/dist/presentation/forms/jsonEditor/JSONEditor.vue.d.ts +49 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorContext.d.ts +28 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorHelpers.d.ts +6 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorTextView.vue.d.ts +14 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorTreeNode.vue.d.ts +15 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorTreeView.vue.d.ts +8 -0
- package/dist/presentation/forms/jsonEditor/index.d.ts +2 -0
- package/dist/presentation/forms/keyboardShortcutPicker/KeyboardShortcutPicker.vue.d.ts +43 -0
- package/dist/presentation/forms/keyboardShortcutPicker/index.d.ts +1 -0
- package/dist/presentation/forms/knob/Knob.vue.d.ts +75 -0
- package/dist/presentation/forms/knob/index.d.ts +1 -0
- package/dist/presentation/forms/label/Label.vue.d.ts +34 -0
- package/dist/presentation/forms/label/index.d.ts +1 -0
- package/dist/presentation/forms/labeledInput/LabeledInput.vue.d.ts +23 -0
- package/dist/presentation/forms/labeledInput/index.d.ts +2 -0
- package/dist/presentation/forms/legend/Legend.vue.d.ts +21 -0
- package/dist/presentation/forms/legend/index.d.ts +1 -0
- package/dist/presentation/forms/listbox/Listbox.variants.d.ts +71 -0
- package/dist/presentation/forms/listbox/Listbox.vue.d.ts +70 -0
- package/dist/presentation/forms/listbox/ListboxContext.d.ts +47 -0
- package/dist/presentation/forms/listbox/ListboxEmpty.vue.d.ts +10 -0
- package/dist/presentation/forms/listbox/ListboxGroup.vue.d.ts +20 -0
- package/dist/presentation/forms/listbox/ListboxItem.vue.d.ts +24 -0
- package/dist/presentation/forms/listbox/ListboxSeparator.vue.d.ts +3 -0
- package/dist/presentation/forms/listbox/index.d.ts +7 -0
- package/dist/presentation/forms/markdownEditor/MarkdownEditor.vue.d.ts +73 -0
- package/dist/presentation/forms/markdownEditor/index.d.ts +1 -0
- package/dist/presentation/forms/maskedInput/MaskedInput.vue.d.ts +42 -0
- package/dist/presentation/forms/maskedInput/index.d.ts +1 -0
- package/dist/presentation/forms/multiSelect/MultiSelect.vue.d.ts +52 -0
- package/dist/presentation/forms/multiSelect/MultiSelectContent.vue.d.ts +31 -0
- package/dist/presentation/forms/multiSelect/MultiSelectContext.d.ts +38 -0
- package/dist/presentation/forms/multiSelect/MultiSelectItem.vue.d.ts +25 -0
- package/dist/presentation/forms/multiSelect/MultiSelectTags.vue.d.ts +14 -0
- package/dist/presentation/forms/multiSelect/MultiSelectTrigger.vue.d.ts +20 -0
- package/dist/presentation/forms/multiSelect/index.d.ts +6 -0
- package/dist/presentation/forms/numberInput/NumberInput.vue.d.ts +51 -0
- package/dist/presentation/forms/numberInput/index.d.ts +1 -0
- package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +48 -0
- package/dist/presentation/forms/passwordInput/index.d.ts +1 -0
- package/dist/presentation/forms/passwordStrength/PasswordStrength.vue.d.ts +16 -0
- package/dist/presentation/forms/passwordStrength/index.d.ts +1 -0
- package/dist/presentation/forms/percentInput/PercentInput.vue.d.ts +8 -0
- package/dist/presentation/forms/percentInput/index.d.ts +1 -0
- package/dist/presentation/forms/phoneInput/PhoneInput.vue.d.ts +45 -0
- package/dist/presentation/forms/phoneInput/index.d.ts +1 -0
- package/dist/presentation/forms/pinInput/PinInput.vue.d.ts +46 -0
- package/dist/presentation/forms/pinInput/index.d.ts +1 -0
- package/dist/presentation/forms/radio/Radio.vue.d.ts +35 -0
- package/dist/presentation/forms/radio/index.d.ts +1 -0
- package/dist/presentation/forms/radioField/RadioField.vue.d.ts +35 -0
- package/dist/presentation/forms/radioField/index.d.ts +1 -0
- package/dist/presentation/forms/radioGroup/RadioGroup.vue.d.ts +41 -0
- package/dist/presentation/forms/radioGroup/RadioGroupContext.d.ts +16 -0
- package/dist/presentation/forms/radioGroup/index.d.ts +2 -0
- package/dist/presentation/forms/rangeCalendar/RangeCalendar.vue.d.ts +37 -0
- package/dist/presentation/forms/rangeCalendar/index.d.ts +1 -0
- package/dist/presentation/forms/reactionPicker/ReactionPicker.vue.d.ts +32 -0
- package/dist/presentation/forms/reactionPicker/index.d.ts +1 -0
- package/dist/presentation/forms/recurrenceEditor/RecurrenceEditor.vue.d.ts +88 -0
- package/dist/presentation/forms/recurrenceEditor/index.d.ts +1 -0
- package/dist/presentation/forms/searchInput/SearchInput.vue.d.ts +48 -0
- package/dist/presentation/forms/searchInput/index.d.ts +1 -0
- package/dist/presentation/forms/select/Select.variants.d.ts +263 -0
- package/dist/presentation/forms/select/Select.vue.d.ts +69 -0
- package/dist/presentation/forms/select/SelectContent.vue.d.ts +44 -0
- package/dist/presentation/forms/select/SelectContext.d.ts +76 -0
- package/dist/presentation/forms/select/SelectItem.vue.d.ts +33 -0
- package/dist/presentation/forms/select/SelectTrigger.vue.d.ts +21 -0
- package/dist/presentation/forms/select/SelectValue.vue.d.ts +22 -0
- package/dist/presentation/forms/select/index.d.ts +7 -0
- package/dist/presentation/forms/slider/Slider.vue.d.ts +38 -0
- package/dist/presentation/forms/slider/index.d.ts +1 -0
- package/dist/presentation/forms/stepper/Stepper.vue.d.ts +34 -0
- package/dist/presentation/forms/stepper/StepperContext.d.ts +44 -0
- package/dist/presentation/forms/stepper/StepperList.vue.d.ts +256 -0
- package/dist/presentation/forms/stepper/StepperPanel.vue.d.ts +16 -0
- package/dist/presentation/forms/stepper/StepperStep.vue.d.ts +23 -0
- package/dist/presentation/forms/stepper/index.d.ts +5 -0
- package/dist/presentation/forms/switch/Switch.vue.d.ts +35 -0
- package/dist/presentation/forms/switch/index.d.ts +1 -0
- package/dist/presentation/forms/switchField/SwitchField.vue.d.ts +33 -0
- package/dist/presentation/forms/switchField/index.d.ts +1 -0
- package/dist/presentation/forms/tagsInput/TagsInput.vue.d.ts +75 -0
- package/dist/presentation/forms/tagsInput/index.d.ts +1 -0
- package/dist/presentation/forms/telInput/TelInput.vue.d.ts +43 -0
- package/dist/presentation/forms/telInput/index.d.ts +1 -0
- package/dist/presentation/forms/textAreaInput/TextAreaInput.vue.d.ts +46 -0
- package/dist/presentation/forms/textAreaInput/index.d.ts +1 -0
- package/dist/presentation/forms/textInput/TextInput.vue.d.ts +43 -0
- package/dist/presentation/forms/textInput/index.d.ts +1 -0
- package/dist/presentation/forms/timeField/TimeField.vue.d.ts +38 -0
- package/dist/presentation/forms/timeField/index.d.ts +1 -0
- package/dist/presentation/forms/timePicker/TimePicker.vue.d.ts +50 -0
- package/dist/presentation/forms/timePicker/index.d.ts +1 -0
- package/dist/presentation/forms/urlInput/UrlInput.vue.d.ts +43 -0
- package/dist/presentation/forms/urlInput/index.d.ts +1 -0
- package/dist/presentation/forms/wizard/Wizard.vue.d.ts +38 -0
- package/dist/presentation/forms/wizard/WizardContext.d.ts +38 -0
- package/dist/presentation/forms/wizard/WizardFooter.vue.d.ts +29 -0
- package/dist/presentation/forms/wizard/WizardStep.vue.d.ts +29 -0
- package/dist/presentation/forms/wizard/WizardSteps.vue.d.ts +7 -0
- package/dist/presentation/forms/wizard/index.d.ts +6 -0
- package/dist/presentation/layout/appShell/AppShell.vue.d.ts +90 -0
- package/dist/presentation/layout/appShell/AppShellAside.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellContent.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellFooter.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellHeader.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellMain.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/index.d.ts +7 -0
- package/dist/presentation/layout/aspectRatio/AspectRatio.vue.d.ts +18 -0
- package/dist/presentation/layout/aspectRatio/index.d.ts +1 -0
- package/dist/presentation/layout/box/Box.vue.d.ts +19 -0
- package/dist/presentation/layout/box/index.d.ts +1 -0
- package/dist/presentation/layout/center/Center.vue.d.ts +13 -0
- package/dist/presentation/layout/center/index.d.ts +1 -0
- package/dist/presentation/layout/cluster/Cluster.vue.d.ts +22 -0
- package/dist/presentation/layout/cluster/index.d.ts +1 -0
- package/dist/presentation/layout/container/Container.variants.d.ts +84 -0
- package/dist/presentation/layout/container/Container.vue.d.ts +21 -0
- package/dist/presentation/layout/container/index.d.ts +2 -0
- package/dist/presentation/layout/controlGroup/ControlGroup.variants.d.ts +136 -0
- package/dist/presentation/layout/controlGroup/ControlGroup.vue.d.ts +35 -0
- package/dist/presentation/layout/controlGroup/index.d.ts +2 -0
- package/dist/presentation/layout/divider/Divider.variants.d.ts +47 -0
- package/dist/presentation/layout/divider/Divider.vue.d.ts +38 -0
- package/dist/presentation/layout/divider/index.d.ts +2 -0
- package/dist/presentation/layout/flex/Flex.vue.d.ts +18 -0
- package/dist/presentation/layout/flex/index.d.ts +1 -0
- package/dist/presentation/layout/frame/Frame.vue.d.ts +38 -0
- package/dist/presentation/layout/frame/index.d.ts +1 -0
- package/dist/presentation/layout/grid/Grid.variants.d.ts +193 -0
- package/dist/presentation/layout/grid/Grid.vue.d.ts +32 -0
- package/dist/presentation/layout/grid/index.d.ts +2 -0
- package/dist/presentation/layout/hStack/HStack.vue.d.ts +14 -0
- package/dist/presentation/layout/hStack/index.d.ts +1 -0
- package/dist/presentation/layout/index.d.ts +24 -0
- package/dist/presentation/layout/index.js +64 -0
- package/dist/presentation/layout/index.js.map +1 -0
- package/dist/presentation/layout/inline/Inline.vue.d.ts +42 -0
- package/dist/presentation/layout/inline/index.d.ts +1 -0
- package/dist/presentation/layout/navbar/Navbar.variants.d.ts +86 -0
- package/dist/presentation/layout/navbar/Navbar.vue.d.ts +43 -0
- package/dist/presentation/layout/navbar/index.d.ts +2 -0
- package/dist/presentation/layout/overlay/Overlay.variants.d.ts +231 -0
- package/dist/presentation/layout/overlay/Overlay.vue.d.ts +64 -0
- package/dist/presentation/layout/overlay/index.d.ts +2 -0
- package/dist/presentation/layout/pullToRefresh/PullToRefresh.vue.d.ts +22 -0
- package/dist/presentation/layout/pullToRefresh/index.d.ts +1 -0
- package/dist/presentation/layout/resizablePanels/ResizablePanel.vue.d.ts +21 -0
- package/dist/presentation/layout/resizablePanels/ResizablePanels.vue.d.ts +59 -0
- package/dist/presentation/layout/resizablePanels/ResizableSeparator.vue.d.ts +10 -0
- package/dist/presentation/layout/resizablePanels/index.d.ts +4 -0
- package/dist/presentation/layout/scrollArea/ScrollArea.vue.d.ts +31 -0
- package/dist/presentation/layout/scrollArea/index.d.ts +1 -0
- package/dist/presentation/layout/section/Section.variants.d.ts +76 -0
- package/dist/presentation/layout/section/Section.vue.d.ts +33 -0
- package/dist/presentation/layout/section/index.d.ts +2 -0
- package/dist/presentation/layout/spacer/Spacer.vue.d.ts +15 -0
- package/dist/presentation/layout/spacer/index.d.ts +1 -0
- package/dist/presentation/layout/stack/Stack.variants.d.ts +330 -0
- package/dist/presentation/layout/stack/Stack.vue.d.ts +37 -0
- package/dist/presentation/layout/stack/index.d.ts +2 -0
- package/dist/presentation/layout/surface/Surface.vue.d.ts +39 -0
- package/dist/presentation/layout/surface/index.d.ts +1 -0
- package/dist/presentation/layout/twoColumn/TwoColumn.vue.d.ts +28 -0
- package/dist/presentation/layout/twoColumn/index.d.ts +1 -0
- package/dist/presentation/layout/vStack/VStack.vue.d.ts +14 -0
- package/dist/presentation/layout/vStack/index.d.ts +1 -0
- package/dist/presentation/nav/NavHelpers.d.ts +11 -0
- package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.d.ts +27 -0
- package/dist/presentation/nav/breadcrumb/index.d.ts +1 -0
- package/dist/presentation/nav/commandPalette/CommandPalette.vue.d.ts +53 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteContent.vue.d.ts +17 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteContext.d.ts +42 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteEmpty.vue.d.ts +19 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteGroup.vue.d.ts +19 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteInput.vue.d.ts +14 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteItem.vue.d.ts +36 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteList.vue.d.ts +19 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteSeparator.vue.d.ts +12 -0
- package/dist/presentation/nav/commandPalette/index.d.ts +9 -0
- package/dist/presentation/nav/contextMenu/ContextMenu.vue.d.ts +18 -0
- package/dist/presentation/nav/contextMenu/ContextMenuContent.vue.d.ts +29 -0
- package/dist/presentation/nav/contextMenu/ContextMenuContext.d.ts +20 -0
- package/dist/presentation/nav/contextMenu/ContextMenuTrigger.vue.d.ts +27 -0
- package/dist/presentation/nav/contextMenu/index.d.ts +4 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenu.vue.d.ts +44 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenuContent.vue.d.ts +20 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenuContext.d.ts +28 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenuTrigger.vue.d.ts +24 -0
- package/dist/presentation/nav/dropdownMenu/index.d.ts +4 -0
- package/dist/presentation/nav/index.d.ts +11 -0
- package/dist/presentation/nav/index.js +62 -0
- package/dist/presentation/nav/index.js.map +1 -0
- package/dist/presentation/nav/menu/Menu.variants.d.ts +61 -0
- package/dist/presentation/nav/menu/Menu.vue.d.ts +65 -0
- package/dist/presentation/nav/menu/MenuContext.d.ts +25 -0
- package/dist/presentation/nav/menu/MenuGroup.vue.d.ts +19 -0
- package/dist/presentation/nav/menu/MenuItem.vue.d.ts +33 -0
- package/dist/presentation/nav/menu/MenuLabel.vue.d.ts +20 -0
- package/dist/presentation/nav/menu/MenuSeparator.vue.d.ts +12 -0
- package/dist/presentation/nav/menu/index.d.ts +7 -0
- package/dist/presentation/nav/menubar/Menubar.variants.d.ts +6 -0
- package/dist/presentation/nav/menubar/Menubar.vue.d.ts +274 -0
- package/dist/presentation/nav/menubar/MenubarContent.vue.d.ts +30 -0
- package/dist/presentation/nav/menubar/MenubarContext.d.ts +34 -0
- package/dist/presentation/nav/menubar/MenubarMenu.vue.d.ts +14 -0
- package/dist/presentation/nav/menubar/MenubarTrigger.vue.d.ts +20 -0
- package/dist/presentation/nav/menubar/index.d.ts +5 -0
- package/dist/presentation/nav/navItem/NavItem.vue.d.ts +30 -0
- package/dist/presentation/nav/navItem/index.d.ts +1 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenu.vue.d.ts +33 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuContent.vue.d.ts +20 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuContext.d.ts +24 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuItem.vue.d.ts +16 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuLink.vue.d.ts +20 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuList.vue.d.ts +262 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuTrigger.vue.d.ts +20 -0
- package/dist/presentation/nav/navigationMenu/index.d.ts +7 -0
- package/dist/presentation/nav/pagination/Pagination.vue.d.ts +24 -0
- package/dist/presentation/nav/pagination/index.d.ts +1 -0
- package/dist/presentation/nav/scrollSpy/ScrollSpy.vue.d.ts +31 -0
- package/dist/presentation/nav/scrollSpy/UseScrollSpy.d.ts +20 -0
- package/dist/presentation/nav/scrollSpy/index.d.ts +2 -0
- package/dist/presentation/nav/tableOfContents/TableOfContents.vue.d.ts +41 -0
- package/dist/presentation/nav/tableOfContents/index.d.ts +1 -0
- package/dist/presentation/overlays/OverlayBody.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayChrome.d.ts +9 -0
- package/dist/presentation/overlays/OverlayCloseButton.vue.d.ts +24 -0
- package/dist/presentation/overlays/OverlayDescription.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayFooter.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayHeader.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayHelpers.d.ts +11 -0
- package/dist/presentation/overlays/OverlayTitle.vue.d.ts +20 -0
- package/dist/presentation/overlays/actionSheet/ActionSheet.vue.d.ts +52 -0
- package/dist/presentation/overlays/actionSheet/ActionSheetAction.vue.d.ts +29 -0
- package/dist/presentation/overlays/actionSheet/ActionSheetCancel.vue.d.ts +19 -0
- package/dist/presentation/overlays/actionSheet/index.d.ts +4 -0
- package/dist/presentation/overlays/alertModal/AlertModal.vue.d.ts +28 -0
- package/dist/presentation/overlays/alertModal/AlertModalAction.vue.d.ts +24 -0
- package/dist/presentation/overlays/alertModal/AlertModalCancel.vue.d.ts +19 -0
- package/dist/presentation/overlays/alertModal/AlertModalContent.vue.d.ts +15 -0
- package/dist/presentation/overlays/alertModal/index.d.ts +12 -0
- package/dist/presentation/overlays/backdrop/Backdrop.vue.d.ts +40 -0
- package/dist/presentation/overlays/backdrop/index.d.ts +1 -0
- package/dist/presentation/overlays/bottomSheet/BottomSheet.vue.d.ts +79 -0
- package/dist/presentation/overlays/bottomSheet/index.d.ts +3 -0
- package/dist/presentation/overlays/drawer/Drawer.vue.d.ts +68 -0
- package/dist/presentation/overlays/drawer/DrawerContent.vue.d.ts +54 -0
- package/dist/presentation/overlays/drawer/DrawerTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/drawer/index.d.ts +9 -0
- package/dist/presentation/overlays/hoverCard/HoverCard.vue.d.ts +68 -0
- package/dist/presentation/overlays/hoverCard/HoverCardArrow.vue.d.ts +10 -0
- package/dist/presentation/overlays/hoverCard/HoverCardContent.vue.d.ts +20 -0
- package/dist/presentation/overlays/hoverCard/HoverCardTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/hoverCard/index.d.ts +4 -0
- package/dist/presentation/overlays/index.d.ts +8 -0
- package/dist/presentation/overlays/index.js +62 -0
- package/dist/presentation/overlays/index.js.map +1 -0
- package/dist/presentation/overlays/modal/Modal.vue.d.ts +75 -0
- package/dist/presentation/overlays/modal/ModalContent.vue.d.ts +38 -0
- package/dist/presentation/overlays/modal/ModalTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/modal/index.d.ts +22 -0
- package/dist/presentation/overlays/popover/Popover.vue.d.ts +70 -0
- package/dist/presentation/overlays/popover/PopoverArrow.vue.d.ts +10 -0
- package/dist/presentation/overlays/popover/PopoverContent.vue.d.ts +34 -0
- package/dist/presentation/overlays/popover/PopoverTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/popover/index.d.ts +4 -0
- package/dist/query/CreateQueryClient.d.ts +19 -0
- package/dist/query/Devtools.vue.d.ts +10 -0
- package/dist/query/Endpoints.d.ts +14 -0
- package/dist/query/PageHelpers.d.ts +10 -0
- package/dist/query/Persistence.d.ts +40 -0
- package/dist/query/QueryPlugin.d.ts +14 -0
- package/dist/query/QueryProgressBridge.d.ts +16 -0
- package/dist/query/QueryProvider.vue.d.ts +17 -0
- package/dist/query/QueryTestUtils.d.ts +54 -0
- package/dist/query/ToApiError.d.ts +7 -0
- package/dist/query/UseAppInfiniteQuery.d.ts +45 -0
- package/dist/query/UseAppLazyQuery.d.ts +40 -0
- package/dist/query/UseAppMutation.d.ts +32 -0
- package/dist/query/UseAppPaginatedQuery.d.ts +39 -0
- package/dist/query/UseAppQueries.d.ts +43 -0
- package/dist/query/UseAppQuery.d.ts +38 -0
- package/dist/query/UseAppSuspenseQuery.d.ts +42 -0
- package/dist/query/UseOptimisticMutation.d.ts +25 -0
- package/dist/query/UsePrefetchQuery.d.ts +26 -0
- package/dist/query/UseQueryCache.d.ts +31 -0
- package/dist/query/index.d.ts +19 -0
- package/dist/query/index.js +461 -0
- package/dist/query/index.js.map +1 -0
- package/dist/query/testing.d.ts +1 -0
- package/dist/query/testing.js +48 -0
- package/dist/query/testing.js.map +1 -0
- package/dist/router/AppErrorBoundary.vue.d.ts +26 -0
- package/dist/router/AppNavLink.vue.d.ts +40 -0
- package/dist/router/CreateAppRouter.d.ts +65 -0
- package/dist/router/DocumentMeta.d.ts +9 -0
- package/dist/router/DocumentTitle.d.ts +18 -0
- package/dist/router/Guards.d.ts +29 -0
- package/dist/router/LazyRoute.d.ts +16 -0
- package/dist/router/NavigationProgress.vue.d.ts +19 -0
- package/dist/router/NavigationProgressModes.d.ts +18 -0
- package/dist/router/NotFound.vue.d.ts +10 -0
- package/dist/router/PageViewTracker.d.ts +23 -0
- package/dist/router/Paths.d.ts +18 -0
- package/dist/router/ProgressProvider.vue.d.ts +19 -0
- package/dist/router/RouteAnnouncer.vue.d.ts +10 -0
- package/dist/router/RouteConfig.d.ts +82 -0
- package/dist/router/RouteHandles.d.ts +24 -0
- package/dist/router/RoutePersistence.d.ts +21 -0
- package/dist/router/UseBreadcrumbs.d.ts +17 -0
- package/dist/router/UseNavigationBlocker.d.ts +41 -0
- package/dist/router/UseNavigationProgress.d.ts +32 -0
- package/dist/router/UsePrefetch.d.ts +19 -0
- package/dist/router/UseRouteNavigating.d.ts +15 -0
- package/dist/router/UseTypedSearchParams.d.ts +17 -0
- package/dist/router/index.d.ts +23 -0
- package/dist/router/index.js +711 -0
- package/dist/router/index.js.map +1 -0
- package/dist/themes.css +15374 -0
- package/dist/themes.json +2898 -0
- package/package.json +432 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { t as toError } from "../../chunks/ToError-CyTBsmLO.js";
|
|
2
|
+
import { q as queryPermission } from "../../chunks/QueryPermission--OKfvS9c.js";
|
|
3
|
+
import { shallowRef, onScopeDispose, toValue } from "vue";
|
|
4
|
+
function mediaDevicesWith(member) {
|
|
5
|
+
try {
|
|
6
|
+
if (typeof navigator === "undefined") return void 0;
|
|
7
|
+
const devices = navigator.mediaDevices;
|
|
8
|
+
if (typeof devices !== "object" || devices === null) return void 0;
|
|
9
|
+
const api = devices;
|
|
10
|
+
if (typeof api[member] !== "function") return void 0;
|
|
11
|
+
return api;
|
|
12
|
+
} catch {
|
|
13
|
+
return void 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function isKnownInsecureContext() {
|
|
17
|
+
try {
|
|
18
|
+
const secure = globalThis.isSecureContext;
|
|
19
|
+
return secure === false;
|
|
20
|
+
} catch {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function getMediaSupport() {
|
|
25
|
+
if (mediaDevicesWith("getUserMedia") !== void 0) return "supported";
|
|
26
|
+
return isKnownInsecureContext() ? "insecure-context" : "unsupported";
|
|
27
|
+
}
|
|
28
|
+
function canCaptureMedia() {
|
|
29
|
+
return getMediaSupport() === "supported";
|
|
30
|
+
}
|
|
31
|
+
function nameOf(value) {
|
|
32
|
+
if (value === null || typeof value !== "object" && typeof value !== "function") return void 0;
|
|
33
|
+
try {
|
|
34
|
+
const name = value["name"];
|
|
35
|
+
return typeof name === "string" ? name : void 0;
|
|
36
|
+
} catch {
|
|
37
|
+
return void 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function toMediaStreamFailure(cause) {
|
|
41
|
+
switch (nameOf(cause)) {
|
|
42
|
+
case "NotAllowedError":
|
|
43
|
+
case "PermissionDeniedError":
|
|
44
|
+
return { status: "denied" };
|
|
45
|
+
case "NotFoundError":
|
|
46
|
+
case "DevicesNotFoundError":
|
|
47
|
+
return { status: "unavailable" };
|
|
48
|
+
case "NotReadableError":
|
|
49
|
+
case "TrackStartError":
|
|
50
|
+
return { status: "in-use" };
|
|
51
|
+
default:
|
|
52
|
+
return { status: "failed", error: toError(cause) };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async function requestMediaStream(constraints) {
|
|
56
|
+
const devices = mediaDevicesWith("getUserMedia");
|
|
57
|
+
if (devices === void 0) return { status: "unsupported" };
|
|
58
|
+
try {
|
|
59
|
+
const stream = await devices.getUserMedia(constraints);
|
|
60
|
+
if (typeof stream !== "object" || stream === null) {
|
|
61
|
+
return { status: "failed", error: new Error("getUserMedia resolved without a MediaStream") };
|
|
62
|
+
}
|
|
63
|
+
return { status: "granted", stream };
|
|
64
|
+
} catch (cause) {
|
|
65
|
+
return toMediaStreamFailure(cause);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function requestCameraStream(constraints) {
|
|
69
|
+
return requestMediaStream({ video: constraints ?? true });
|
|
70
|
+
}
|
|
71
|
+
function requestMicrophoneStream(constraints) {
|
|
72
|
+
return requestMediaStream({ audio: constraints ?? true });
|
|
73
|
+
}
|
|
74
|
+
function emptyGroups(supported) {
|
|
75
|
+
return { supported, cameras: [], microphones: [], speakers: [] };
|
|
76
|
+
}
|
|
77
|
+
function kindOf(entry) {
|
|
78
|
+
if (entry === null || typeof entry !== "object") return void 0;
|
|
79
|
+
try {
|
|
80
|
+
const kind = entry["kind"];
|
|
81
|
+
return typeof kind === "string" ? kind : void 0;
|
|
82
|
+
} catch {
|
|
83
|
+
return void 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function listMediaDevices() {
|
|
87
|
+
const devices = mediaDevicesWith("enumerateDevices");
|
|
88
|
+
if (devices === void 0) return emptyGroups(false);
|
|
89
|
+
try {
|
|
90
|
+
const entries = await devices.enumerateDevices();
|
|
91
|
+
if (!Array.isArray(entries)) return emptyGroups(true);
|
|
92
|
+
const cameras = [];
|
|
93
|
+
const microphones = [];
|
|
94
|
+
const speakers = [];
|
|
95
|
+
for (const entry of entries) {
|
|
96
|
+
switch (kindOf(entry)) {
|
|
97
|
+
case "videoinput":
|
|
98
|
+
cameras.push(entry);
|
|
99
|
+
break;
|
|
100
|
+
case "audioinput":
|
|
101
|
+
microphones.push(entry);
|
|
102
|
+
break;
|
|
103
|
+
case "audiooutput":
|
|
104
|
+
speakers.push(entry);
|
|
105
|
+
break;
|
|
106
|
+
default:
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return { supported: true, cameras, microphones, speakers };
|
|
111
|
+
} catch {
|
|
112
|
+
return emptyGroups(true);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
async function hasCamera() {
|
|
116
|
+
return (await listMediaDevices()).cameras.length > 0;
|
|
117
|
+
}
|
|
118
|
+
async function hasMicrophone() {
|
|
119
|
+
return (await listMediaDevices()).microphones.length > 0;
|
|
120
|
+
}
|
|
121
|
+
function stopMediaStream(stream) {
|
|
122
|
+
if (stream === null || stream === void 0) return;
|
|
123
|
+
let tracks = [];
|
|
124
|
+
try {
|
|
125
|
+
const result = stream.getTracks();
|
|
126
|
+
if (!Array.isArray(result)) return;
|
|
127
|
+
tracks = result;
|
|
128
|
+
} catch {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
for (const track of tracks) {
|
|
132
|
+
try {
|
|
133
|
+
track.stop();
|
|
134
|
+
} catch {
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function facingModeConstraints(facingMode, options) {
|
|
139
|
+
return {
|
|
140
|
+
...options?.video,
|
|
141
|
+
// Applied after the spread on purpose: this function's whole subject is `facingMode`, so a stale one carried
|
|
142
|
+
// in via `options.video` must not win over the argument the caller just passed.
|
|
143
|
+
facingMode: options?.exact === true ? { exact: facingMode } : { ideal: facingMode }
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function switchCamera(current, facingMode, options) {
|
|
147
|
+
stopMediaStream(current);
|
|
148
|
+
return requestCameraStream(facingModeConstraints(facingMode, options));
|
|
149
|
+
}
|
|
150
|
+
function getCameraPermission() {
|
|
151
|
+
return queryPermission("camera");
|
|
152
|
+
}
|
|
153
|
+
function getMicrophonePermission() {
|
|
154
|
+
return queryPermission("microphone");
|
|
155
|
+
}
|
|
156
|
+
const DefaultConstraints = { video: true };
|
|
157
|
+
function useMediaStream(options) {
|
|
158
|
+
const status = shallowRef("idle");
|
|
159
|
+
const stream = shallowRef(null);
|
|
160
|
+
const error = shallowRef(null);
|
|
161
|
+
let held = null;
|
|
162
|
+
let disposed = false;
|
|
163
|
+
function release() {
|
|
164
|
+
stopMediaStream(held);
|
|
165
|
+
held = null;
|
|
166
|
+
}
|
|
167
|
+
const stop = () => {
|
|
168
|
+
release();
|
|
169
|
+
if (disposed) return;
|
|
170
|
+
stream.value = null;
|
|
171
|
+
status.value = "idle";
|
|
172
|
+
error.value = null;
|
|
173
|
+
};
|
|
174
|
+
const start = async (constraints) => {
|
|
175
|
+
release();
|
|
176
|
+
if (!disposed) {
|
|
177
|
+
stream.value = null;
|
|
178
|
+
error.value = null;
|
|
179
|
+
status.value = "pending";
|
|
180
|
+
}
|
|
181
|
+
const result = await requestMediaStream(
|
|
182
|
+
constraints ?? toValue(options)?.constraints ?? DefaultConstraints
|
|
183
|
+
);
|
|
184
|
+
if (disposed) {
|
|
185
|
+
if (result.status === "granted") stopMediaStream(result.stream);
|
|
186
|
+
return result;
|
|
187
|
+
}
|
|
188
|
+
if (result.status === "granted") {
|
|
189
|
+
held = result.stream;
|
|
190
|
+
stream.value = result.stream;
|
|
191
|
+
}
|
|
192
|
+
status.value = result.status;
|
|
193
|
+
error.value = result.status === "failed" ? result.error : null;
|
|
194
|
+
return result;
|
|
195
|
+
};
|
|
196
|
+
onScopeDispose(() => {
|
|
197
|
+
disposed = true;
|
|
198
|
+
release();
|
|
199
|
+
});
|
|
200
|
+
return { status, stream, error, start, stop };
|
|
201
|
+
}
|
|
202
|
+
export {
|
|
203
|
+
canCaptureMedia,
|
|
204
|
+
facingModeConstraints,
|
|
205
|
+
getCameraPermission,
|
|
206
|
+
getMediaSupport,
|
|
207
|
+
getMicrophonePermission,
|
|
208
|
+
hasCamera,
|
|
209
|
+
hasMicrophone,
|
|
210
|
+
listMediaDevices,
|
|
211
|
+
requestCameraStream,
|
|
212
|
+
requestMediaStream,
|
|
213
|
+
requestMicrophoneStream,
|
|
214
|
+
stopMediaStream,
|
|
215
|
+
switchCamera,
|
|
216
|
+
useMediaStream
|
|
217
|
+
};
|
|
218
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/foundation/media/CanCaptureMedia.ts","../../../src/foundation/media/MediaStreamResult.ts","../../../src/foundation/media/RequestMediaStream.ts","../../../src/foundation/media/ListMediaDevices.ts","../../../src/foundation/media/StopMediaStream.ts","../../../src/foundation/media/FacingMode.ts","../../../src/foundation/media/MediaPermission.ts","../../../src/foundation/media/UseMediaStream.ts"],"sourcesContent":["// Feature detection for the media-capture vector, and the one distinction that earns this module its own file:\n// `getUserMedia` is gated on a SECURE CONTEXT, and browsers enforce that by hiding `navigator.mediaDevices`\n// ENTIRELY rather than by rejecting the call. On a plain-HTTP page the API therefore looks *unimplemented* — the\n// developer reads \"this browser has no camera support\" off a browser that supports it perfectly, and goes hunting\n// for a polyfill instead of an `https://`. (`localhost` counts as secure, so it works in dev and breaks on the\n// first LAN-IP test.) That misreading costs real debugging time, so the insecure case gets its own reason\n// instead of collapsing into `unsupported`.\n//\n// Order of evidence: a present `getUserMedia` outranks the `isSecureContext` flag. Where the API is there, the\n// call itself answers accurately, and pre-emptively reporting `insecure-context` would block a working path.\n// `isSecureContext` is consulted only to *explain* an absent API.\n//\n// Every read is guarded. `navigator` is absent under SSR, `mediaDevices` is absent on insecure pages and older\n// browsers, and `isSecureContext` is absent outside a browser — Node reports `undefined`, which must NOT read as\n// insecure: \"unknown\" is not \"no\". A detector that throws defeats its own purpose, so the answer is total.\n\n/**\n * Why media capture is (un)available here.\n *\n * - `supported` — `navigator.mediaDevices.getUserMedia` is present and callable.\n * - `insecure-context` — the API is absent *and* the page is known to be a non-secure context. Actionable:\n * serve over HTTPS (or `localhost`). Distinguished from `unsupported` because the fix is completely different.\n * - `unsupported` — no API and no evidence the context is the reason: SSR, a worker, an older browser.\n */\nexport type MediaSupport = 'supported' | 'insecure-context' | 'unsupported';\n\n/**\n * Reads `navigator.mediaDevices` when it exists and carries `member` as a callable.\n *\n * Two members are asked for separately because they fail separately: a browser can expose `enumerateDevices`\n * (device *existence*, no permission needed) while `getUserMedia` is missing or blocked. Guarded end-to-end;\n * returns `undefined` under SSR. Internal to the slice — used by the sibling modules, absent from the barrel.\n *\n * @param member The method the caller is about to invoke.\n * @returns The `MediaDevices` object, or `undefined` when it or `member` is unusable.\n */\nexport function mediaDevicesWith(member: 'getUserMedia' | 'enumerateDevices'): MediaDevices | undefined {\n try {\n if (typeof navigator === 'undefined') return undefined;\n\n const devices: unknown = navigator.mediaDevices;\n if (typeof devices !== 'object' || devices === null) return undefined;\n\n const api = devices as MediaDevices;\n if (typeof api[member] !== 'function') return undefined;\n return api;\n } catch {\n // A throwing `navigator` / `mediaDevices` getter (a partial polyfill) reads as absent — same posture as\n // `foundation/errors`' guarded reads and `foundation/share`'s `hasNativeShare`.\n return undefined;\n }\n}\n\n/**\n * Whether the page is *known* to be a non-secure context.\n *\n * Only an explicit `false` counts. `undefined` — Node, a stripped global, an engine predating the flag — means\n * the question could not be answered, and answering \"insecure\" there would blame HTTP for an absent API in an\n * environment that has no HTTP at all.\n */\nfunction isKnownInsecureContext(): boolean {\n try {\n // Read through an `unknown` cast rather than the DOM lib's `declare var isSecureContext: boolean`: outside a\n // browser the global is genuinely missing, so the typed view is a lie this module must not act on.\n const secure: unknown = (globalThis as { isSecureContext?: unknown }).isSecureContext;\n return secure === false;\n } catch {\n return false;\n }\n}\n\n/**\n * Reports whether media capture is available here, and when it is not, why.\n *\n * The `insecure-context` answer is the one worth rendering differently: it is the only reason a consumer can\n * actually act on (\"this page must be served over HTTPS\"), where `unsupported` is terminal for that visit.\n *\n * Never throws. Returns `unsupported` under SSR.\n */\nexport function getMediaSupport(): MediaSupport {\n if (mediaDevicesWith('getUserMedia') !== undefined) return 'supported';\n return isKnownInsecureContext() ? 'insecure-context' : 'unsupported';\n}\n\n/**\n * Reports whether `requestMediaStream` and friends can reach a real `getUserMedia`.\n *\n * The boolean form of {@link getMediaSupport} — for a plain \"hide the camera button\" check that does not care\n * *why*. Never throws. Returns `false` under SSR.\n */\nexport function canCaptureMedia(): boolean {\n return getMediaSupport() === 'supported';\n}\n","// The result vocabulary of the capture vector, and the `DOMException`-name table that produces it. This mapping\n// is the substance of the whole slice: `getUserMedia` rejects with a handful of names that mean completely\n// different things to a user, and a consumer that only sees \"the promise rejected\" renders one useless message\n// for all of them — \"camera unavailable\" to someone who simply pressed Block, whose fix is a browser setting.\n//\n// Matched on `name`, deliberately not `instanceof DOMException` — the same posture as `foundation/errors`'\n// `isAbortError`. The check has to hold for a `DOMException` from another realm (iframe · worker), for engines\n// where these arrive as plain `Error`s, and for the `{ name: 'NotAllowedError' }` a test double throws.\n//\n// Legacy names are first-class, not politeness: `PermissionDeniedError` (older Chrome), `DevicesNotFoundError`\n// (older Firefox), and `TrackStartError` (older Chrome) are what those engines actually throw, and a table that\n// omits them silently downgrades a denial to a generic failure on exactly the browsers most likely to hit it.\n//\n// Names deliberately left OUT of the table, all landing on `failed`:\n// - `OverconstrainedError` — a constraint the device cannot satisfy. Tempting to call `unavailable`, but the\n// device usually exists and the caller's constraints are the bug (`facingMode: { exact }` on a desktop is the\n// classic). Burying it as \"no camera\" hides a fixable mistake in the consumer's own code.\n// - `AbortError` — the device was taken away mid-acquisition by the OS. Rare and genuinely exceptional.\n// - `SecurityError` / `TypeError` — capture disabled by policy, or malformed constraints. Both are programmer\n// or deployment errors, and both deserve the real `Error` rather than a soothing status.\n\nimport { toError } from '../errors';\n\n/**\n * The outcome of a capture attempt. Six arms because a camera prompt has six meaningfully different endings,\n * each wanting different UI copy and a different next step.\n *\n * - `granted` — the user allowed it; `stream` is live and the caller now OWNS it (see `stopMediaStream`).\n * - `denied` — the user pressed Block, or a prior block is being replayed without a prompt. Not retryable\n * without a browser-settings change, so re-prompting on a timer only annoys.\n * - `unavailable` — no device matches the request. A laptop with no webcam, or an unplugged USB mic.\n * - `in-use` — the device exists but another application (or another tab) holds it. Retryable once freed.\n * - `unsupported` — no API here at all: SSR, an insecure context, an older browser. See `getMediaSupport` for\n * which of those it is.\n * - `failed` — anything else, carrying the normalized `Error`.\n */\nexport type MediaStreamResult =\n | { readonly status: 'granted'; readonly stream: MediaStream }\n | { readonly status: 'denied' }\n | { readonly status: 'unavailable' }\n | { readonly status: 'in-use' }\n | { readonly status: 'unsupported' }\n | { readonly status: 'failed'; readonly error: Error };\n\n/** The `status` discriminant of a {@link MediaStreamResult} — for a consumer's own switch or status→copy map. */\nexport type MediaStreamStatus = MediaStreamResult['status'];\n\n/** Every {@link MediaStreamResult} arm except the successful one — what a rejected `getUserMedia` can become. */\nexport type MediaStreamFailure = Exclude<MediaStreamResult, { status: 'granted' }>;\n\n/**\n * Reads a caught value's `name` as a string. Guarded: a throwing getter or a `Proxy` trap reads as absent rather\n * than escalating into a second failure inside the `catch` that is already handling the first.\n */\nfunction nameOf(value: unknown): string | undefined {\n if (value === null || (typeof value !== 'object' && typeof value !== 'function')) return undefined;\n\n try {\n const name: unknown = (value as Record<string, unknown>)['name'];\n return typeof name === 'string' ? name : undefined;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Classifies a rejected `getUserMedia` into its {@link MediaStreamFailure}.\n *\n * Exported for the sibling request modules and their tests; absent from the barrel, where the request functions\n * are the surface a consumer wants. Never throws — an unrecognized name falls through to `failed` with the value\n * normalized by `foundation/errors`' `toError`, so even a thrown `null` arrives as a real `Error`.\n *\n * @param cause The value `getUserMedia` rejected (or threw) with.\n * @returns The matching failure arm.\n */\nexport function toMediaStreamFailure(cause: unknown): MediaStreamFailure {\n switch (nameOf(cause)) {\n case 'NotAllowedError':\n case 'PermissionDeniedError':\n return { status: 'denied' };\n\n case 'NotFoundError':\n case 'DevicesNotFoundError':\n return { status: 'unavailable' };\n\n case 'NotReadableError':\n case 'TrackStartError':\n return { status: 'in-use' };\n\n default:\n return { status: 'failed', error: toError(cause) };\n }\n}\n","// The acquisition half of the capture vector: one call, six outcomes, no throw.\n//\n// DEFINING CONTRACT: NOTHING HERE THROWS. These are called straight from a click handler, where a rejection is\n// an unhandled error in the consumer's app and the user — who just pressed Block, or has no webcam — sees\n// nothing happen at all. Every path resolves to a `MediaStreamResult` the caller switches on.\n//\n// The call sits INSIDE the `try`, not merely the `await`: `getUserMedia` throws synchronously for a constraints\n// object with neither `audio` nor `video` (a `TypeError`, before any promise exists), so a `try` wrapped only\n// around the await would let that one escape the contract.\n//\n// OWNERSHIP: a `granted` result hands the caller a live stream and, with it, the duty to release it. Nothing in\n// this module keeps a reference or stops anything for you — see `stopMediaStream`, or let `useMediaStream` own\n// the lifecycle. A stream that is merely dropped keeps the camera light on until the tab closes.\n\nimport { mediaDevicesWith } from './CanCaptureMedia';\nimport { toMediaStreamFailure, type MediaStreamResult } from './MediaStreamResult';\n\n/**\n * Requests a stream for arbitrary constraints — the general form the camera / microphone helpers delegate to.\n *\n * Call it from a user gesture where possible: some engines require transient activation, and browsers rate-limit\n * repeated prompts. A `granted` result transfers stream ownership to the caller.\n *\n * Never throws, never rejects.\n *\n * @param constraints The `MediaStreamConstraints` to pass through, e.g. `{ video: true, audio: true }`.\n * @returns The typed outcome — `granted` carrying the live stream, or one of the five failure arms.\n */\nexport async function requestMediaStream(constraints: MediaStreamConstraints): Promise<MediaStreamResult> {\n const devices = mediaDevicesWith('getUserMedia');\n if (devices === undefined) return { status: 'unsupported' };\n\n try {\n const stream: unknown = await devices.getUserMedia(constraints);\n\n // The DOM types promise a `MediaStream`; a polyfill or a test double can resolve with anything. Letting a\n // non-object through as `granted` would move the failure into the consumer's `stream.getTracks()`, far from\n // its cause — so an off-spec resolve is a `failed` result here, where the context still exists.\n if (typeof stream !== 'object' || stream === null) {\n return { status: 'failed', error: new Error('getUserMedia resolved without a MediaStream') };\n }\n\n return { status: 'granted', stream: stream as MediaStream };\n } catch (cause) {\n return toMediaStreamFailure(cause);\n }\n}\n\n/**\n * Requests a camera-only stream.\n *\n * Video only, deliberately: a \"camera\" request that also opened the microphone would widen the permission\n * prompt (browsers name every device being asked for) and capture audio the caller never asked for. Pass\n * `{ video: …, audio: true }` to {@link requestMediaStream} when both are genuinely wanted.\n *\n * Never throws, never rejects.\n *\n * @param constraints Track constraints for the video device — resolution, `deviceId`, `facingMode`. Omitted\n * means `video: true`: whichever camera the browser prefers.\n * @returns The typed outcome.\n */\nexport function requestCameraStream(constraints?: MediaTrackConstraints): Promise<MediaStreamResult> {\n return requestMediaStream({ video: constraints ?? true });\n}\n\n/**\n * Requests a microphone-only stream.\n *\n * Never throws, never rejects.\n *\n * @param constraints Track constraints for the audio device — `deviceId`, `echoCancellation`, `noiseSuppression`.\n * Omitted means `audio: true`.\n * @returns The typed outcome.\n */\nexport function requestMicrophoneStream(constraints?: MediaTrackConstraints): Promise<MediaStreamResult> {\n return requestMediaStream({ audio: constraints ?? true });\n}\n","// Device inventory — `enumerateDevices` regrouped into the three buckets a UI actually renders (a camera picker,\n// a microphone picker, an output picker), instead of one flat array every consumer re-filters by a `kind` string.\n//\n// THE LABEL GOTCHA, and the reason this module documents more than it computes: before capture permission is\n// granted, browsers return the devices with `label: ''` and (in most engines) an empty `deviceId`. The privacy\n// reason is sound — \"Logitech BRIO\" plus \"Yeti Nano\" is a fingerprint — but the consequence catches everyone:\n// a device picker built on a cold `enumerateDevices()` renders a list of blank rows. The sequence that works is\n// request a stream first, THEN enumerate, and the labels are populated. Counts are honest either way, which is\n// what makes `hasCamera` / `hasMicrophone` usable *before* prompting.\n//\n// Reported as a total shape rather than a discriminated result: every arm of this call is \"here are the devices\n// I could see\", and zero cameras behaves identically whether the API was missing or the machine has none. The\n// `supported` flag preserves the distinction for the one caller that needs it — a picker that wants to say \"this\n// browser cannot list devices\" rather than \"no cameras found\".\n//\n// Never throws. `enumerateDevices` can reject (a permissions policy blocking the feature) and can, on a partial\n// implementation, resolve with something other than an array; both land on empty groups.\n\nimport { mediaDevicesWith } from './CanCaptureMedia';\n\n/**\n * Media input / output devices, grouped by kind.\n *\n * Labels are empty strings until capture permission has been granted at least once in this origin — see the\n * module header. Group membership and counts are accurate regardless.\n */\nexport interface MediaDeviceGroups {\n /** Whether `enumerateDevices` was reachable at all. `false` means every group is empty because the API is absent (SSR, older browser), not because the machine has no devices. */\n readonly supported: boolean;\n\n /** Video inputs — `kind === 'videoinput'`. Webcams, virtual cameras, capture cards. */\n readonly cameras: readonly MediaDeviceInfo[];\n\n /** Audio inputs — `kind === 'audioinput'`. Microphones, line-ins, virtual audio devices. */\n readonly microphones: readonly MediaDeviceInfo[];\n\n /** Audio outputs — `kind === 'audiooutput'`. Speakers and headsets. Absent entirely on Firefox, which does not enumerate outputs. */\n readonly speakers: readonly MediaDeviceInfo[];\n}\n\n/** Builds the empty answer for a given support verdict — the shape both the absent-API and failed-call paths return. */\nfunction emptyGroups(supported: boolean): MediaDeviceGroups {\n return { supported, cameras: [], microphones: [], speakers: [] };\n}\n\n/** Reads an enumerated entry's `kind`. Guarded, so one hostile entry cannot abort the whole grouping pass. */\nfunction kindOf(entry: unknown): string | undefined {\n if (entry === null || typeof entry !== 'object') return undefined;\n\n try {\n const kind: unknown = (entry as Record<string, unknown>)['kind'];\n return typeof kind === 'string' ? kind : undefined;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Lists the available media devices, grouped by kind.\n *\n * Call it AFTER a successful `requestCameraStream` / `requestMicrophoneStream` if the labels matter — a picker\n * built on a pre-permission call renders blank rows (module header). Entries with an unrecognized `kind` are\n * dropped rather than guessed at.\n *\n * Never throws, never rejects.\n *\n * @returns The grouped devices, with `supported: false` when the API is absent.\n */\nexport async function listMediaDevices(): Promise<MediaDeviceGroups> {\n const devices = mediaDevicesWith('enumerateDevices');\n if (devices === undefined) return emptyGroups(false);\n\n try {\n const entries: unknown = await devices.enumerateDevices();\n if (!Array.isArray(entries)) return emptyGroups(true);\n\n const cameras: MediaDeviceInfo[] = [];\n const microphones: MediaDeviceInfo[] = [];\n const speakers: MediaDeviceInfo[] = [];\n\n for (const entry of entries as readonly unknown[]) {\n switch (kindOf(entry)) {\n case 'videoinput':\n cameras.push(entry as MediaDeviceInfo);\n break;\n case 'audioinput':\n microphones.push(entry as MediaDeviceInfo);\n break;\n case 'audiooutput':\n speakers.push(entry as MediaDeviceInfo);\n break;\n default:\n // An unknown or unreadable `kind`. Dropped: a device in the wrong picker is worse than a missing one.\n break;\n }\n }\n\n return { supported: true, cameras, microphones, speakers };\n } catch {\n // The API was there but refused to answer — a permissions policy, or a partial implementation. `supported`\n // stays true because the absence here is of an *answer*, not of the API.\n return emptyGroups(true);\n }\n}\n\n/**\n * Reports whether this machine has at least one camera.\n *\n * Usable BEFORE prompting: counts are accurate without permission even though labels are not, which makes this\n * the right gate for showing or hiding a \"Take a photo\" affordance. Never throws; `false` under SSR.\n */\nexport async function hasCamera(): Promise<boolean> {\n return (await listMediaDevices()).cameras.length > 0;\n}\n\n/**\n * Reports whether this machine has at least one microphone.\n *\n * Same pre-permission caveat as {@link hasCamera}. Never throws; `false` under SSR.\n */\nexport async function hasMicrophone(): Promise<boolean> {\n return (await listMediaDevices()).microphones.length > 0;\n}\n","// Release. The single most-forgotten call in camera code, and the reason this module exists at its own file:\n// dropping the last reference to a `MediaStream` does NOT stop it. The tracks stay live, the camera indicator\n// light stays on, the microphone keeps listening, and the device stays locked against every other application —\n// until the tab is closed. Garbage collection is irrelevant; only `track.stop()` releases the hardware.\n//\n// Per-track, not per-stream: `MediaStream` has no `stop()`. A stream is a bag of tracks and each one holds its\n// own device handle, so a camera+mic stream needs two stops. Stopping only the first is a partial release that\n// looks correct (the light goes off) while the microphone is still recording.\n//\n// Each `stop()` gets its own `try`. One uncooperative track — an already-ended track from an engine that throws,\n// a test double, a track from a detached document — must not strand the tracks after it in the loop. Skipping\n// the rest is exactly the leak this function exists to prevent, so the loop always completes.\n\n/**\n * Stops every track on a stream, releasing the underlying camera / microphone.\n *\n * Idempotent and total: a `null` / `undefined` stream, an already-stopped stream, and an object that is not a\n * stream at all are all no-ops. Never throws — it is called from cleanup paths (`finally`, a scope disposal)\n * where a throw would mask the original failure or abort the rest of the teardown.\n *\n * @param stream The stream to release. Nullable so a caller can pass state without a guard of its own.\n */\nexport function stopMediaStream(stream: MediaStream | null | undefined): void {\n if (stream === null || stream === undefined) return;\n\n let tracks: readonly MediaStreamTrack[] = [];\n try {\n const result: unknown = stream.getTracks();\n if (!Array.isArray(result)) return;\n tracks = result as readonly MediaStreamTrack[];\n } catch {\n // No usable `getTracks` — not a stream, or one from a torn-down realm. Nothing to release.\n return;\n }\n\n for (const track of tracks) {\n try {\n track.stop();\n } catch {\n // This track refused to stop. Swallowed on purpose: the remaining tracks still hold live devices, and\n // they are the ones this loop must reach.\n }\n }\n}\n","// Front / back camera selection, and the two mistakes it invites.\n//\n// MISTAKE 1 — `exact`. `facingMode: { exact: 'environment' }` rejects with `OverconstrainedError` on every\n// device without a rear camera: all desktops, all laptops, most external webcams. Those devices do not report\n// `facingMode` at all, so `exact` is not \"prefer the back camera\", it is \"fail unless there is one\". `ideal` is\n// the default here for that reason — it picks the rear camera on a phone and degrades to the only camera on a\n// laptop. `exact` stays available for the case that genuinely needs it (a document scanner where the selfie cam\n// is useless), where failing loudly beats capturing the wrong thing.\n//\n// MISTAKE 2 — switching by acquiring first. The natural \"get the new stream, then stop the old one\" ordering\n// breaks on mobile: most phones cannot open both cameras at once, so the second `getUserMedia` fails with\n// `NotReadableError` while the first camera is still held — a flip button that works on a laptop and never on a\n// phone. `switchCamera` therefore stops FIRST. The trade-off is deliberate and visible: a failed acquisition\n// leaves the caller with no stream at all, which is the honest outcome (the old stream's device is already\n// released) and is reported as an ordinary failure arm.\n\nimport { requestCameraStream } from './RequestMediaStream';\nimport { stopMediaStream } from './StopMediaStream';\nimport type { MediaStreamResult } from './MediaStreamResult';\n\n/**\n * Which camera to prefer.\n *\n * - `user` — front / selfie camera, facing the user.\n * - `environment` — rear camera, facing away. What a scanner or a document capture wants.\n */\nexport type FacingMode = 'user' | 'environment';\n\n/** Tunes how a facing-mode preference is expressed as constraints. */\nexport interface FacingModeOptions {\n /**\n * Whether to demand the facing mode rather than prefer it. `true` emits `{ exact }`, which REJECTS with\n * `OverconstrainedError` on any device lacking that camera — see the module header. Defaults to `false`\n * (`{ ideal }`), which degrades to whatever camera exists.\n */\n readonly exact?: boolean;\n\n /** Extra video track constraints to merge — resolution, frame rate, `deviceId`. A `facingMode` here is overwritten. */\n readonly video?: MediaTrackConstraints;\n}\n\n/**\n * Builds video track constraints expressing a facing-mode preference.\n *\n * Feed the result to {@link requestCameraStream}. Pure — no device access, nothing to fail, so it needs no\n * result type and never throws.\n *\n * @param facingMode The camera to prefer.\n * @param options Whether to demand rather than prefer it, plus any extra track constraints to merge.\n * @returns The merged `MediaTrackConstraints`, with `facingMode` applied last.\n */\nexport function facingModeConstraints(facingMode: FacingMode, options?: FacingModeOptions): MediaTrackConstraints {\n return {\n ...options?.video,\n // Applied after the spread on purpose: this function's whole subject is `facingMode`, so a stale one carried\n // in via `options.video` must not win over the argument the caller just passed.\n facingMode: options?.exact === true ? { exact: facingMode } : { ideal: facingMode },\n };\n}\n\n/**\n * Flips to the other camera: releases `current`, then acquires a stream for `facingMode`.\n *\n * Stops first, always — two camera streams must never be held at once (module header). `current` may be `null`,\n * which makes this usable as the first acquisition too, so a flip button needs no special case for its initial\n * press.\n *\n * Never throws, never rejects.\n *\n * @param current The stream to release. Pass `null` when nothing is live yet.\n * @param facingMode The camera to switch to.\n * @param options Whether to demand rather than prefer it, plus any extra track constraints.\n * @returns The typed outcome of the new acquisition. Anything other than `granted` means nothing is live now.\n */\nexport function switchCamera(\n current: MediaStream | null | undefined,\n facingMode: FacingMode,\n options?: FacingModeOptions,\n): Promise<MediaStreamResult> {\n stopMediaStream(current);\n return requestCameraStream(facingModeConstraints(facingMode, options));\n}\n","// Permission reads for the two capture devices — two one-line delegations to `foundation/notifications`'\n// `queryPermission`, and no second Permissions API wrapper.\n//\n// That slice owns the generic `navigator.permissions.query` seam (its name is about where it was first needed,\n// not what it covers): the guarded `navigator.permissions` read, the off-spec-state handling, and the\n// synchronous-throw case all already live there and are already tested. Re-implementing them here would produce\n// a second thing to keep correct and a second place to fix a browser quirk. These functions exist only to pin\n// the two permission names so a consumer cannot typo `'microfone'` into an `unsupported` it will never explain.\n//\n// WHY THIS IS NOT THE GRANT CHECK. `queryPermission('camera')` answers `prompt` in the ordinary case, and on\n// Firefox answers `unsupported` for both names — Firefox throws a `TypeError` for camera / microphone rather\n// than resolving. So it can tell you the user has already BLOCKED the camera (worth rendering: re-prompting is\n// futile, the fix is in site settings), and it can never tell you a request will succeed. The authoritative\n// answer is `requestCameraStream`'s own result. Treat this as a hint that improves copy, never as a gate.\n\nimport { queryPermission, type PermissionQueryState } from '../notifications';\n\n/**\n * The state of a queried permission — re-exported from `foundation/notifications` so a consumer of this slice\n * can name the return type without importing a second subpath.\n */\nexport type { PermissionQueryState };\n\n/**\n * Reads the camera permission's current state without prompting.\n *\n * A hint, not a gate — see the module header. `unsupported` is the normal Firefox answer and means \"cannot\n * tell\", never \"blocked\". Never throws, never rejects.\n *\n * @returns `granted` · `denied` · `prompt` · `unsupported`.\n */\nexport function getCameraPermission(): Promise<PermissionQueryState> {\n return queryPermission('camera');\n}\n\n/**\n * Reads the microphone permission's current state without prompting.\n *\n * Same caveats as {@link getCameraPermission}. Never throws, never rejects.\n *\n * @returns `granted` · `denied` · `prompt` · `unsupported`.\n */\nexport function getMicrophonePermission(): Promise<PermissionQueryState> {\n return queryPermission('microphone');\n}\n","// The Vue binding of the capture vector — a state machine over `requestMediaStream` whose real job is OWNING\n// the stream, because a component that forgets to release one leaves the camera light on after it is gone.\n//\n// Three release paths, all of which have to work or the leak is back:\n// 1. `stop()` — the explicit one.\n// 2. Scope disposal — `onScopeDispose`. The common case: the user navigates away with the preview open.\n// 3. Disposal WHILE A PROMPT IS OPEN — the one that is always missed. The user presses Allow after the\n// component has gone; the promise resolves with a live stream nobody will ever render, and no disposal\n// cleanup can reach it because it did not exist when the cleanup ran. `start` therefore re-checks\n// liveness after the await and releases the arriving stream itself.\n//\n// The live stream is held in a plain closure variable as well as in the ref. The disposal hook must reach the\n// CURRENT stream, and reading the reactive value there would tie teardown to render timing for no benefit — the\n// closure variable is the single authority every release path funnels through.\n//\n// Acquisition is on demand — no `autoStart`, and nothing touches `navigator.mediaDevices` at setup. That keeps\n// the SSR pass inert by construction, and a permission prompt fired without a user gesture is both a worse\n// experience and rate-limited by browsers. A click calls `start`.\n//\n// Never throws: `start` inherits the module's contract and resolves to the result as well as reflecting it in\n// reactive state, so a caller can branch on the outcome immediately or watch the refs.\n\nimport { onScopeDispose, shallowRef, toValue, type MaybeRefOrGetter, type ShallowRef } from 'vue';\n\nimport type { MediaStreamResult, MediaStreamStatus } from './MediaStreamResult';\nimport { requestMediaStream } from './RequestMediaStream';\nimport { stopMediaStream } from './StopMediaStream';\n\n/**\n * Where a `useMediaStream` instance sits in its cycle: `idle` before the first attempt and after `stop`,\n * `pending` while the browser prompt is open, then the {@link MediaStreamStatus} of the last attempt.\n */\nexport type MediaStreamState = 'idle' | 'pending' | MediaStreamStatus;\n\n/** Tunes a `useMediaStream` instance. */\nexport interface UseMediaStreamOptions {\n /** Constraints for every `start()` that does not pass its own. Defaults to `{ video: true }` — camera, no microphone. */\n readonly constraints?: MediaStreamConstraints;\n}\n\n/** What {@link useMediaStream} returns. */\nexport interface MediaStreamControls {\n /** The current state — drives the button label, the spinner, and the permission-denied copy. */\n readonly status: Readonly<ShallowRef<MediaStreamState>>;\n\n /** The live stream, or `null` whenever `status` is anything but `granted`. Assign to a `<video>`'s `srcObject`. */\n readonly stream: Readonly<ShallowRef<MediaStream | null>>;\n\n /** The normalized error from a `failed` attempt; `null` for every other status, including `denied`, which is a decision rather than a failure. */\n readonly error: Readonly<ShallowRef<Error | null>>;\n\n /** Acquires a stream, releasing any currently held one first. Resolves to the outcome; never throws. */\n readonly start: (constraints?: MediaStreamConstraints) => Promise<MediaStreamResult>;\n\n /** Releases the held stream and returns to `idle`. Idempotent, safe before the first `start`. */\n readonly stop: () => void;\n}\n\n/** The camera-only default — matching `requestCameraStream`, so an unconfigured composable does not silently open the microphone. */\nconst DefaultConstraints: MediaStreamConstraints = { video: true };\n\n/**\n * Acquires and owns a media stream, releasing it on `stop` and when the scope is disposed.\n *\n * ```vue\n * const camera = useMediaStream();\n * <video ref=\"videoEl\" autoplay playsinline muted />\n * <button @click=\"camera.start()\">Start</button>\n * // watchEffect(() => { if (videoEl.value) videoEl.value.srcObject = camera.stream.value; })\n * ```\n *\n * Inherits the slice's never-throws contract — a rejected promise is not one of the outcomes.\n *\n * @param options Default constraints for `start()`. A ref or getter is read at call time.\n * @returns The state machine plus the two lifecycle callbacks.\n */\nexport function useMediaStream(\n options?: MaybeRefOrGetter<UseMediaStreamOptions | undefined>,\n): MediaStreamControls {\n const status = shallowRef<MediaStreamState>('idle');\n const stream = shallowRef<MediaStream | null>(null);\n const error = shallowRef<Error | null>(null);\n\n let held: MediaStream | null = null;\n let disposed = false;\n\n /** Releases the held stream and clears the handle. The one place tracks are stopped, so every path funnels here. */\n function release(): void {\n stopMediaStream(held);\n held = null;\n }\n\n const stop = (): void => {\n release();\n if (disposed) return;\n stream.value = null;\n status.value = 'idle';\n error.value = null;\n };\n\n const start = async (constraints?: MediaStreamConstraints): Promise<MediaStreamResult> => {\n // Release before acquiring, never after: most phones cannot open two cameras at once, so an overlapping\n // acquisition fails with `NotReadableError` — and on the devices where it succeeds it leaves the first\n // camera live. Same ordering, same reason, as `switchCamera`.\n release();\n if (!disposed) {\n stream.value = null;\n error.value = null;\n status.value = 'pending';\n }\n\n const result = await requestMediaStream(\n constraints ?? toValue(options)?.constraints ?? DefaultConstraints,\n );\n\n if (disposed) {\n // Torn down while the prompt was open. The stream arrived for a component that no longer exists; nothing\n // else will ever reach it, so it is released here or the device stays held for the life of the tab.\n if (result.status === 'granted') stopMediaStream(result.stream);\n return result;\n }\n\n if (result.status === 'granted') {\n held = result.stream;\n stream.value = result.stream;\n }\n status.value = result.status;\n error.value = result.status === 'failed' ? result.error : null;\n\n return result;\n };\n\n onScopeDispose(() => {\n disposed = true;\n release();\n });\n\n return { status, stream, error, start, stop };\n}\n"],"names":[],"mappings":";;;AAoCO,SAAS,iBAAiB,QAAuE;AACtG,MAAI;AACF,QAAI,OAAO,cAAc,YAAa,QAAO;AAE7C,UAAM,UAAmB,UAAU;AACnC,QAAI,OAAO,YAAY,YAAY,YAAY,KAAM,QAAO;AAE5D,UAAM,MAAM;AACZ,QAAI,OAAO,IAAI,MAAM,MAAM,WAAY,QAAO;AAC9C,WAAO;AAAA,EACT,QAAQ;AAGN,WAAO;AAAA,EACT;AACF;AASA,SAAS,yBAAkC;AACzC,MAAI;AAGF,UAAM,SAAmB,WAA6C;AACtE,WAAO,WAAW;AAAA,EACpB,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAUO,SAAS,kBAAgC;AAC9C,MAAI,iBAAiB,cAAc,MAAM,OAAW,QAAO;AAC3D,SAAO,uBAAA,IAA2B,qBAAqB;AACzD;AAQO,SAAS,kBAA2B;AACzC,SAAO,sBAAsB;AAC/B;ACtCA,SAAS,OAAO,OAAoC;AAClD,MAAI,UAAU,QAAS,OAAO,UAAU,YAAY,OAAO,UAAU,WAAa,QAAO;AAEzF,MAAI;AACF,UAAM,OAAiB,MAAkC,MAAM;AAC/D,WAAO,OAAO,SAAS,WAAW,OAAO;AAAA,EAC3C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAYO,SAAS,qBAAqB,OAAoC;AACvE,UAAQ,OAAO,KAAK,GAAA;AAAA,IAClB,KAAK;AAAA,IACL,KAAK;AACH,aAAO,EAAE,QAAQ,SAAA;AAAA,IAEnB,KAAK;AAAA,IACL,KAAK;AACH,aAAO,EAAE,QAAQ,cAAA;AAAA,IAEnB,KAAK;AAAA,IACL,KAAK;AACH,aAAO,EAAE,QAAQ,SAAA;AAAA,IAEnB;AACE,aAAO,EAAE,QAAQ,UAAU,OAAO,QAAQ,KAAK,EAAA;AAAA,EAAE;AAEvD;AChEA,eAAsB,mBAAmB,aAAiE;AACxG,QAAM,UAAU,iBAAiB,cAAc;AAC/C,MAAI,YAAY,OAAW,QAAO,EAAE,QAAQ,cAAA;AAE5C,MAAI;AACF,UAAM,SAAkB,MAAM,QAAQ,aAAa,WAAW;AAK9D,QAAI,OAAO,WAAW,YAAY,WAAW,MAAM;AACjD,aAAO,EAAE,QAAQ,UAAU,OAAO,IAAI,MAAM,6CAA6C,EAAA;AAAA,IAC3F;AAEA,WAAO,EAAE,QAAQ,WAAW,OAAA;AAAA,EAC9B,SAAS,OAAO;AACd,WAAO,qBAAqB,KAAK;AAAA,EACnC;AACF;AAeO,SAAS,oBAAoB,aAAiE;AACnG,SAAO,mBAAmB,EAAE,OAAO,eAAe,MAAM;AAC1D;AAWO,SAAS,wBAAwB,aAAiE;AACvG,SAAO,mBAAmB,EAAE,OAAO,eAAe,MAAM;AAC1D;ACnCA,SAAS,YAAY,WAAuC;AAC1D,SAAO,EAAE,WAAW,SAAS,CAAA,GAAI,aAAa,CAAA,GAAI,UAAU,GAAC;AAC/D;AAGA,SAAS,OAAO,OAAoC;AAClD,MAAI,UAAU,QAAQ,OAAO,UAAU,SAAU,QAAO;AAExD,MAAI;AACF,UAAM,OAAiB,MAAkC,MAAM;AAC/D,WAAO,OAAO,SAAS,WAAW,OAAO;AAAA,EAC3C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAaA,eAAsB,mBAA+C;AACnE,QAAM,UAAU,iBAAiB,kBAAkB;AACnD,MAAI,YAAY,OAAW,QAAO,YAAY,KAAK;AAEnD,MAAI;AACF,UAAM,UAAmB,MAAM,QAAQ,iBAAA;AACvC,QAAI,CAAC,MAAM,QAAQ,OAAO,EAAG,QAAO,YAAY,IAAI;AAEpD,UAAM,UAA6B,CAAA;AACnC,UAAM,cAAiC,CAAA;AACvC,UAAM,WAA8B,CAAA;AAEpC,eAAW,SAAS,SAA+B;AACjD,cAAQ,OAAO,KAAK,GAAA;AAAA,QAClB,KAAK;AACH,kBAAQ,KAAK,KAAwB;AACrC;AAAA,QACF,KAAK;AACH,sBAAY,KAAK,KAAwB;AACzC;AAAA,QACF,KAAK;AACH,mBAAS,KAAK,KAAwB;AACtC;AAAA,QACF;AAEE;AAAA,MAAA;AAAA,IAEN;AAEA,WAAO,EAAE,WAAW,MAAM,SAAS,aAAa,SAAA;AAAA,EAClD,QAAQ;AAGN,WAAO,YAAY,IAAI;AAAA,EACzB;AACF;AAQA,eAAsB,YAA8B;AAClD,UAAQ,MAAM,iBAAA,GAAoB,QAAQ,SAAS;AACrD;AAOA,eAAsB,gBAAkC;AACtD,UAAQ,MAAM,iBAAA,GAAoB,YAAY,SAAS;AACzD;ACpGO,SAAS,gBAAgB,QAA8C;AAC5E,MAAI,WAAW,QAAQ,WAAW,OAAW;AAE7C,MAAI,SAAsC,CAAA;AAC1C,MAAI;AACF,UAAM,SAAkB,OAAO,UAAA;AAC/B,QAAI,CAAC,MAAM,QAAQ,MAAM,EAAG;AAC5B,aAAS;AAAA,EACX,QAAQ;AAEN;AAAA,EACF;AAEA,aAAW,SAAS,QAAQ;AAC1B,QAAI;AACF,YAAM,KAAA;AAAA,IACR,QAAQ;AAAA,IAGR;AAAA,EACF;AACF;ACQO,SAAS,sBAAsB,YAAwB,SAAoD;AAChH,SAAO;AAAA,IACL,GAAG,SAAS;AAAA;AAAA;AAAA,IAGZ,YAAY,SAAS,UAAU,OAAO,EAAE,OAAO,WAAA,IAAe,EAAE,OAAO,WAAA;AAAA,EAAW;AAEtF;AAgBO,SAAS,aACd,SACA,YACA,SAC4B;AAC5B,kBAAgB,OAAO;AACvB,SAAO,oBAAoB,sBAAsB,YAAY,OAAO,CAAC;AACvE;AClDO,SAAS,sBAAqD;AACnE,SAAO,gBAAgB,QAAQ;AACjC;AASO,SAAS,0BAAyD;AACvE,SAAO,gBAAgB,YAAY;AACrC;ACeA,MAAM,qBAA6C,EAAE,OAAO,KAAA;AAiBrD,SAAS,eACd,SACqB;AACrB,QAAM,SAAS,WAA6B,MAAM;AAClD,QAAM,SAAS,WAA+B,IAAI;AAClD,QAAM,QAAQ,WAAyB,IAAI;AAE3C,MAAI,OAA2B;AAC/B,MAAI,WAAW;AAGf,WAAS,UAAgB;AACvB,oBAAgB,IAAI;AACpB,WAAO;AAAA,EACT;AAEA,QAAM,OAAO,MAAY;AACvB,YAAA;AACA,QAAI,SAAU;AACd,WAAO,QAAQ;AACf,WAAO,QAAQ;AACf,UAAM,QAAQ;AAAA,EAChB;AAEA,QAAM,QAAQ,OAAO,gBAAqE;AAIxF,YAAA;AACA,QAAI,CAAC,UAAU;AACb,aAAO,QAAQ;AACf,YAAM,QAAQ;AACd,aAAO,QAAQ;AAAA,IACjB;AAEA,UAAM,SAAS,MAAM;AAAA,MACnB,eAAe,QAAQ,OAAO,GAAG,eAAe;AAAA,IAAA;AAGlD,QAAI,UAAU;AAGZ,UAAI,OAAO,WAAW,UAAW,iBAAgB,OAAO,MAAM;AAC9D,aAAO;AAAA,IACT;AAEA,QAAI,OAAO,WAAW,WAAW;AAC/B,aAAO,OAAO;AACd,aAAO,QAAQ,OAAO;AAAA,IACxB;AACA,WAAO,QAAQ,OAAO;AACtB,UAAM,QAAQ,OAAO,WAAW,WAAW,OAAO,QAAQ;AAE1D,WAAO;AAAA,EACT;AAEA,iBAAe,MAAM;AACnB,eAAW;AACX,YAAA;AAAA,EACF,CAAC;AAED,SAAO,EAAE,QAAQ,QAAQ,OAAO,OAAO,KAAA;AACzC;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Describes a long-lived connection's state, uniformly across SSE, WebSocket, and polling. */
|
|
2
|
+
export declare const ConnectionState: {
|
|
3
|
+
/** Refers to a first connection attempt in flight — nothing has been established yet. */
|
|
4
|
+
readonly Connecting: "connecting";
|
|
5
|
+
/** Refers to an established connection that is passing traffic. */
|
|
6
|
+
readonly Open: "open";
|
|
7
|
+
/** Refers to a dropped connection with a retry pending or in flight — the distinction the wire ready-state cannot express. */
|
|
8
|
+
readonly Reconnecting: "reconnecting";
|
|
9
|
+
/** Refers to a connection that is down and not coming back — closed by the caller, unsupported, or out of retries. */
|
|
10
|
+
readonly Closed: "closed";
|
|
11
|
+
};
|
|
12
|
+
export type ConnectionState = (typeof ConnectionState)[keyof typeof ConnectionState];
|
|
13
|
+
/**
|
|
14
|
+
* Provides the `EventSource.readyState` values from the WHATWG spec. Note `Closed` here is TERMINAL — the
|
|
15
|
+
* browser only reports it once it has abandoned its own reconnection, which is precisely the signal
|
|
16
|
+
* `createEventStream` waits for before taking the retry over.
|
|
17
|
+
*/
|
|
18
|
+
export declare const EventSourceReadyState: {
|
|
19
|
+
/** Refers to the connection being established — including the browser's OWN automatic reconnection. */
|
|
20
|
+
readonly Connecting: 0;
|
|
21
|
+
/** Refers to an open, streaming connection. */
|
|
22
|
+
readonly Open: 1;
|
|
23
|
+
/** Refers to a connection the browser will not retry: a fatal error, or an explicit `close()`. */
|
|
24
|
+
readonly Closed: 2;
|
|
25
|
+
};
|
|
26
|
+
/** Provides the `WebSocket.readyState` values from the WHATWG spec — note `Closing` occupies `2`, where `EventSource` puts `Closed`. */
|
|
27
|
+
export declare const SocketReadyState: {
|
|
28
|
+
/** Refers to a handshake in progress; `send()` throws here, which is why this slice queues instead. */
|
|
29
|
+
readonly Connecting: 0;
|
|
30
|
+
/** Refers to an open socket ready for frames. */
|
|
31
|
+
readonly Open: 1;
|
|
32
|
+
/** Refers to a close handshake in progress; frames sent now are discarded. */
|
|
33
|
+
readonly Closing: 2;
|
|
34
|
+
/** Refers to a closed or failed socket. */
|
|
35
|
+
readonly Closed: 3;
|
|
36
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { RetryPolicy } from '../resilience';
|
|
2
|
+
import { ConnectionState } from './ConnectionState';
|
|
3
|
+
/**
|
|
4
|
+
* The minimal `EventSource` surface this wrapper drives. Narrow on purpose: a test double or a polyfill can
|
|
5
|
+
* satisfy it in a few lines, and the real `EventSource` satisfies it structurally.
|
|
6
|
+
*/
|
|
7
|
+
export interface EventStreamSource {
|
|
8
|
+
/** The wire ready-state — see {@link EventSourceReadyState}. The branch the double-reconnect guard turns on. */
|
|
9
|
+
readonly readyState: number;
|
|
10
|
+
/** Closes the connection and stops the browser's own reconnection. */
|
|
11
|
+
close(): void;
|
|
12
|
+
/** Registers a listener for `open`, `error`, `message`, or a server-named event. */
|
|
13
|
+
addEventListener(type: string, listener: (event: Event) => void): void;
|
|
14
|
+
/** Removes a previously registered listener. */
|
|
15
|
+
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
16
|
+
}
|
|
17
|
+
/** Builds the underlying source — injectable so tests and polyfills need no global. */
|
|
18
|
+
export type EventStreamSourceFactory = (url: string, init: {
|
|
19
|
+
withCredentials: boolean;
|
|
20
|
+
}) => EventStreamSource;
|
|
21
|
+
/** Identifies who is retrying a broken stream — the guard against reconnecting on top of the browser. */
|
|
22
|
+
export declare const ReconnectOwner: {
|
|
23
|
+
/** Refers to the browser's own `EventSource` retry already being in flight; this wrapper stands down. */
|
|
24
|
+
readonly Browser: "browser";
|
|
25
|
+
/** Refers to the browser having given up, with this wrapper's `resilience`-scheduled retry pending. */
|
|
26
|
+
readonly Wrapper: "wrapper";
|
|
27
|
+
/** Refers to nobody retrying — reconnection is disabled, the attempt budget is spent, or the stream was closed. */
|
|
28
|
+
readonly None: "none";
|
|
29
|
+
};
|
|
30
|
+
export type ReconnectOwner = (typeof ReconnectOwner)[keyof typeof ReconnectOwner];
|
|
31
|
+
/** Describes a stream failure — above all, who (if anyone) is going to do something about it. */
|
|
32
|
+
export interface EventStreamErrorContext {
|
|
33
|
+
/** Whoever is retrying this failure. See {@link ReconnectOwner}. */
|
|
34
|
+
readonly owner: ReconnectOwner;
|
|
35
|
+
/** The wrapper's consecutive attempt count; `0` while the browser owns the retry, since the wrapper has armed nothing. */
|
|
36
|
+
readonly attempt: number;
|
|
37
|
+
/** The connection state after this failure was handled. */
|
|
38
|
+
readonly state: ConnectionState;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Maps each server event name to the payload it carries — the generic every handler in
|
|
42
|
+
* {@link EventStreamOptions.events} is typed from.
|
|
43
|
+
*/
|
|
44
|
+
export type EventStreamPayloads = Record<string, unknown>;
|
|
45
|
+
/** Maps event names to their handlers, each typed by that event's payload. */
|
|
46
|
+
export type EventStreamHandlers<TEvents extends EventStreamPayloads> = {
|
|
47
|
+
readonly [K in keyof TEvents & string]?: (data: TEvents[K], event: MessageEvent<string>) => void;
|
|
48
|
+
};
|
|
49
|
+
/** Configures a {@link createEventStream} call. Every member is optional. */
|
|
50
|
+
export interface EventStreamOptions<TEvents extends EventStreamPayloads = EventStreamPayloads> {
|
|
51
|
+
/** Handlers for server-NAMED events (`event: order-updated`). These never reach {@link EventStreamOptions.onMessage}. */
|
|
52
|
+
readonly events?: EventStreamHandlers<TEvents>;
|
|
53
|
+
/** Handles unnamed events only — the default `message` type. */
|
|
54
|
+
readonly onMessage?: (data: unknown, event: MessageEvent<string>) => void;
|
|
55
|
+
/** Fires each time the connection opens, including after every reconnect. */
|
|
56
|
+
readonly onOpen?: () => void;
|
|
57
|
+
/** Fires on every failure, with the context saying who is retrying it. */
|
|
58
|
+
readonly onError?: (error: Error, context: EventStreamErrorContext) => void;
|
|
59
|
+
/** Fires on every connection-state transition — the seam for a "reconnecting…" indicator. */
|
|
60
|
+
readonly onStateChange?: (state: ConnectionState) => void;
|
|
61
|
+
/** Whether to send credentials cross-origin. Default `false`. */
|
|
62
|
+
readonly withCredentials?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Decodes a frame's `data` text. Default: `JSON.parse`, falling back to the RAW STRING when the text is not
|
|
65
|
+
* JSON — SSE carries text, and plain-text frames and sentinels like `[DONE]` are common enough that
|
|
66
|
+
* throwing on them would be hostile. Supply this to be strict, or to decode another format.
|
|
67
|
+
*/
|
|
68
|
+
readonly parse?: (raw: string) => unknown;
|
|
69
|
+
/** The reconnect policy for failures the browser abandons, or `false` to never reconnect. Default `DefaultReconnectPolicy`. */
|
|
70
|
+
readonly retry?: RetryPolicy | false;
|
|
71
|
+
/** The randomness feeding backoff jitter — injectable for deterministic tests. Default `Math.random`. */
|
|
72
|
+
readonly random?: () => number;
|
|
73
|
+
/** The source factory. Default constructs a global `EventSource`; inject a double in tests. */
|
|
74
|
+
readonly eventSource?: EventStreamSourceFactory;
|
|
75
|
+
}
|
|
76
|
+
/** Controls a live Server-Sent Events subscription. */
|
|
77
|
+
export interface EventStream {
|
|
78
|
+
/** The current connection state — `reconnecting` covers both the browser's retry and this wrapper's. */
|
|
79
|
+
readonly readyState: ConnectionState;
|
|
80
|
+
/** Whether an `EventSource` implementation was available at all; `false` under SSR, where the stream is inert. */
|
|
81
|
+
readonly supported: boolean;
|
|
82
|
+
/** The wrapper's consecutive reconnect attempts, zeroed on every successful open. */
|
|
83
|
+
readonly attempts: number;
|
|
84
|
+
/** Closes the stream, cancels any pending reconnect, and detaches every listener. Idempotent; suppresses all further reconnection. */
|
|
85
|
+
close(): void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Opens a Server-Sent Events stream with typed named-event handlers and a reconnect that defers to the
|
|
89
|
+
* browser's own — see this file's header for how the double-reconnect is avoided.
|
|
90
|
+
*
|
|
91
|
+
* Never throws, at import time or at call time. Where `EventSource` does not exist (SSR, a locked-down
|
|
92
|
+
* runtime) the returned stream reports `supported: false` and state `closed`, and every method is a no-op —
|
|
93
|
+
* a defined answer rather than an exception a render cannot catch.
|
|
94
|
+
*
|
|
95
|
+
* @typeParam TEvents - Maps each server event name to its payload type.
|
|
96
|
+
* @param url - The stream endpoint.
|
|
97
|
+
* @param options - Handlers, retry policy, parsing, and injection seams.
|
|
98
|
+
* @returns The stream handle. ALWAYS call `close()` when done — an open `EventSource` survives navigation
|
|
99
|
+
* within an SPA and keeps both the connection and every captured handler alive.
|
|
100
|
+
*/
|
|
101
|
+
export declare function createEventStream<TEvents extends EventStreamPayloads = EventStreamPayloads>(url: string, options?: EventStreamOptions<TEvents>): EventStream;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** Describes what a poller is doing right now. */
|
|
2
|
+
export declare const PollerState: {
|
|
3
|
+
/** Refers to a poller created but not started. */
|
|
4
|
+
readonly Idle: "idle";
|
|
5
|
+
/** Refers to a poller with a tick scheduled or running. */
|
|
6
|
+
readonly Running: "running";
|
|
7
|
+
/** Refers to a started poller held by at least one suspend reason — paused, hidden, or offline. */
|
|
8
|
+
readonly Paused: "paused";
|
|
9
|
+
/** Refers to a stopped poller: timers cleared, listeners detached, restartable with `start()`. */
|
|
10
|
+
readonly Stopped: "stopped";
|
|
11
|
+
};
|
|
12
|
+
export type PollerState = (typeof PollerState)[keyof typeof PollerState];
|
|
13
|
+
/** The work a poller repeats. A returned promise is awaited, so the next tick is scheduled only after it settles. */
|
|
14
|
+
export type PollFn = () => unknown;
|
|
15
|
+
/** Configures a {@link createPoller} call. Every member is optional. */
|
|
16
|
+
export interface PollerOptions {
|
|
17
|
+
/** The gap (ms) between the end of one poll and the start of the next. Default `30000`. */
|
|
18
|
+
readonly intervalMs?: number;
|
|
19
|
+
/** Whether to start polling immediately on creation. Default `true`; `false` waits for `start()`. */
|
|
20
|
+
readonly autoStart?: boolean;
|
|
21
|
+
/** Whether to run one poll at once on start, rather than after the first interval. Default `false`. */
|
|
22
|
+
readonly immediate?: boolean;
|
|
23
|
+
/** Whether to suspend while the tab is hidden. Default `true`. */
|
|
24
|
+
readonly pauseWhenHidden?: boolean;
|
|
25
|
+
/** Whether to suspend while the browser reports no network link. Default `true`. */
|
|
26
|
+
readonly pauseWhenOffline?: boolean;
|
|
27
|
+
/** Whether returning from a suspension polls at once instead of waiting a full interval. Default `true` — the data is already stale. */
|
|
28
|
+
readonly refreshOnResume?: boolean;
|
|
29
|
+
/** Receives an error thrown or rejected by the poll. The chain continues regardless — a failed poll is not a reason to stop polling. */
|
|
30
|
+
readonly onError?: (error: Error) => void;
|
|
31
|
+
/** Fires on every state transition — the seam for a "paused (offline)" indicator. */
|
|
32
|
+
readonly onStateChange?: (state: PollerState) => void;
|
|
33
|
+
}
|
|
34
|
+
/** Controls a running poll loop. */
|
|
35
|
+
export interface Poller {
|
|
36
|
+
/** The current state. `paused` covers all three suspend reasons. */
|
|
37
|
+
readonly state: PollerState;
|
|
38
|
+
/** Starts (or restarts) polling. A no-op while already running. */
|
|
39
|
+
start(): void;
|
|
40
|
+
/** Suspends polling until `resume()`. Independent of the automatic hidden / offline suspensions. */
|
|
41
|
+
pause(): void;
|
|
42
|
+
/** Clears the caller's suspension. Polling stays suspended if the tab is still hidden or the browser still offline. */
|
|
43
|
+
resume(): void;
|
|
44
|
+
/** Stops polling, clears the pending timer, and detaches the visibility and connectivity listeners. Idempotent. */
|
|
45
|
+
stop(): void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates a poller that repeats `fn` on an interval and suspends itself while the tab is hidden or the
|
|
49
|
+
* browser is offline — see this file's header for why both of those are non-negotiable.
|
|
50
|
+
*
|
|
51
|
+
* Never throws: an error from `fn` goes to `onError` and the loop continues, because a poll that failed once
|
|
52
|
+
* is the poll most worth retrying. Ticks never overlap.
|
|
53
|
+
*
|
|
54
|
+
* @param fn - The work to repeat; a returned promise is awaited before the next tick is scheduled.
|
|
55
|
+
* @param options - Interval, suspension behaviour, and hooks.
|
|
56
|
+
* @returns The poller handle. ALWAYS call `stop()` when done — a live poller holds a timer and two document /
|
|
57
|
+
* window listeners.
|
|
58
|
+
*/
|
|
59
|
+
export declare function createPoller(fn: PollFn, options?: PollerOptions): Poller;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { RetryPolicy } from '../resilience';
|
|
2
|
+
import { ConnectionState } from './ConnectionState';
|
|
3
|
+
/**
|
|
4
|
+
* The minimal `WebSocket` surface this client drives. Narrow on purpose: a test double satisfies it in a few
|
|
5
|
+
* lines, and the real `WebSocket` satisfies it structurally.
|
|
6
|
+
*/
|
|
7
|
+
export interface SocketConnection {
|
|
8
|
+
/** The wire ready-state — see {@link SocketReadyState}. Gates every send. */
|
|
9
|
+
readonly readyState: number;
|
|
10
|
+
/** Sends one text frame. Throws while `CONNECTING`, which is exactly what the queue exists to prevent. */
|
|
11
|
+
send(data: string): void;
|
|
12
|
+
/** Starts the close handshake. */
|
|
13
|
+
close(code?: number, reason?: string): void;
|
|
14
|
+
/** Registers a listener for `open`, `close`, `error`, or `message`. */
|
|
15
|
+
addEventListener(type: string, listener: (event: Event) => void): void;
|
|
16
|
+
/** Removes a previously registered listener. */
|
|
17
|
+
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
18
|
+
}
|
|
19
|
+
/** Builds the underlying socket — injectable so tests and polyfills need no global. */
|
|
20
|
+
export type SocketFactory = (url: string, protocols?: string | readonly string[]) => SocketConnection;
|
|
21
|
+
/** Configures the liveness heartbeat that detects a half-open socket. */
|
|
22
|
+
export interface SocketHeartbeatOptions {
|
|
23
|
+
/** The interval (ms) between pings. */
|
|
24
|
+
readonly intervalMs: number;
|
|
25
|
+
/** The silence (ms) tolerated after a ping before the socket is declared dead and reconnected. Default: the interval. */
|
|
26
|
+
readonly timeoutMs?: number;
|
|
27
|
+
/** Builds the ping frame. Default `{"type":"ping"}`. Return the exact text your server expects. */
|
|
28
|
+
readonly ping?: () => string;
|
|
29
|
+
}
|
|
30
|
+
/** Configures a {@link createSocketClient} call. Every member is optional. */
|
|
31
|
+
export interface SocketClientOptions<TIn = unknown, TOut = unknown> {
|
|
32
|
+
/** The subprotocols offered during the handshake. */
|
|
33
|
+
readonly protocols?: string | readonly string[];
|
|
34
|
+
/** Receives every decoded inbound message. Frames that fail to decode go to {@link SocketClientOptions.onError} instead. */
|
|
35
|
+
readonly onMessage?: (message: TIn, event: MessageEvent) => void;
|
|
36
|
+
/** Fires each time the socket opens, including after every reconnect and BEFORE the queue is flushed. */
|
|
37
|
+
readonly onOpen?: () => void;
|
|
38
|
+
/** Fires on every close, with `wasClean` distinguishing a handshake close from a drop. */
|
|
39
|
+
readonly onClose?: (event: CloseEvent) => void;
|
|
40
|
+
/** Fires on a socket error, a decode failure, or a send that the transport rejected. */
|
|
41
|
+
readonly onError?: (error: Error) => void;
|
|
42
|
+
/** Fires on every connection-state transition — the seam for a "reconnecting…" indicator. */
|
|
43
|
+
readonly onStateChange?: (state: ConnectionState) => void;
|
|
44
|
+
/** Encodes an outbound message. Default `JSON.stringify`. */
|
|
45
|
+
readonly serialize?: (message: TOut) => string;
|
|
46
|
+
/** Decodes an inbound frame. Default `JSON.parse`. A throw here is reported, and the frame is dropped. */
|
|
47
|
+
readonly deserialize?: (raw: string) => TIn;
|
|
48
|
+
/** The reconnect policy, or `false` to never reconnect. Default `DefaultReconnectPolicy`. */
|
|
49
|
+
readonly retry?: RetryPolicy | false;
|
|
50
|
+
/** The half-open detector. Omit to disable heartbeating entirely. */
|
|
51
|
+
readonly heartbeat?: SocketHeartbeatOptions;
|
|
52
|
+
/** The cap on frames buffered while not open; the oldest is dropped when full. Default `100`. */
|
|
53
|
+
readonly queueLimit?: number;
|
|
54
|
+
/** The randomness feeding backoff jitter — injectable for deterministic tests. Default `Math.random`. */
|
|
55
|
+
readonly random?: () => number;
|
|
56
|
+
/** The socket factory. Default constructs a global `WebSocket`; inject a double in tests. */
|
|
57
|
+
readonly socket?: SocketFactory;
|
|
58
|
+
}
|
|
59
|
+
/** Controls a live WebSocket connection. */
|
|
60
|
+
export interface SocketClient<TOut = unknown> {
|
|
61
|
+
/** The current connection state. */
|
|
62
|
+
readonly readyState: ConnectionState;
|
|
63
|
+
/** Whether a `WebSocket` implementation was available at all; `false` under SSR, where the client is inert. */
|
|
64
|
+
readonly supported: boolean;
|
|
65
|
+
/** The number of frames buffered awaiting an open socket — non-zero means back-pressure or an outage. */
|
|
66
|
+
readonly queuedCount: number;
|
|
67
|
+
/** The consecutive reconnect attempts, zeroed on every successful open. */
|
|
68
|
+
readonly attempts: number;
|
|
69
|
+
/**
|
|
70
|
+
* Sends a message, queueing it when the socket is not open yet.
|
|
71
|
+
*
|
|
72
|
+
* @param message - The payload, encoded by `serialize`.
|
|
73
|
+
* @returns `true` when the frame went out immediately, `false` when it was queued or dropped.
|
|
74
|
+
*/
|
|
75
|
+
send(message: TOut): boolean;
|
|
76
|
+
/** Closes the socket, cancels reconnection permanently, clears the heartbeat, and detaches every listener. Idempotent. */
|
|
77
|
+
close(code?: number, reason?: string): void;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Opens a JSON WebSocket with a send queue, `resilience`-scheduled reconnection, and a half-open detector —
|
|
81
|
+
* see this file's header for the three bugs each of those exists to prevent.
|
|
82
|
+
*
|
|
83
|
+
* Never throws, at import time or at call time. Where `WebSocket` does not exist (SSR) the returned client
|
|
84
|
+
* reports `supported: false` and state `closed`, `send` returns `false`, and `close` is a no-op.
|
|
85
|
+
*
|
|
86
|
+
* @typeParam TIn - The decoded inbound message type.
|
|
87
|
+
* @typeParam TOut - The outbound message type.
|
|
88
|
+
* @param url - The socket endpoint (`ws://` or `wss://`).
|
|
89
|
+
* @param options - Handlers, retry policy, heartbeat, codecs, and injection seams.
|
|
90
|
+
* @returns The client handle. ALWAYS call `close()` when done — an abandoned socket keeps its connection, its
|
|
91
|
+
* heartbeat timers, and every captured handler alive.
|
|
92
|
+
*/
|
|
93
|
+
export declare function createSocketClient<TIn = unknown, TOut = unknown>(url: string, options?: SocketClientOptions<TIn, TOut>): SocketClient<TOut>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads `navigator.onLine`, defaulting to online when there is no `navigator` (SSR), when the property is
|
|
3
|
+
* missing (a partial polyfill), or when the read throws.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors `useOnlineStatus`'s reader exactly — see this file's header for why the duplication is deliberate.
|
|
6
|
+
*
|
|
7
|
+
* @returns `true` while the browser reports a network link; optimistically `true` when unreadable.
|
|
8
|
+
*/
|
|
9
|
+
export declare function readOnlineStatus(): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Subscribes to connectivity changes via the window `online` / `offline` events.
|
|
12
|
+
*
|
|
13
|
+
* A no-op returning a no-op disposer when there is no `window` (SSR), so callers need no environment branch.
|
|
14
|
+
* The listener receives the new status, never a raw `Event`.
|
|
15
|
+
*
|
|
16
|
+
* @param listener - Invoked with `true` on `online` and `false` on `offline`.
|
|
17
|
+
* @returns A disposer that detaches both listeners; safe to call more than once.
|
|
18
|
+
*/
|
|
19
|
+
export declare function subscribeOnline(listener: (online: boolean) => void): () => void;
|
|
20
|
+
/** Configures a {@link waitForOnline} call. Every member is optional. */
|
|
21
|
+
export interface WaitForOnlineOptions {
|
|
22
|
+
/** The maximum wait (ms) before giving up and resolving `false`. Omit, or pass a non-positive value, to wait indefinitely. */
|
|
23
|
+
readonly timeoutMs?: number;
|
|
24
|
+
/** Abandons the wait early, resolving `false` — an abort is a "stop waiting" verdict here, never a rejection. */
|
|
25
|
+
readonly signal?: AbortSignal;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Waits for connectivity to come back, resolving `true` the moment it does.
|
|
29
|
+
*
|
|
30
|
+
* Resolves `true` immediately when already online, and `false` when the timeout lapses or the signal aborts —
|
|
31
|
+
* never rejects, and never leaves a timer or a listener behind on any of those paths. Under SSR, or wherever
|
|
32
|
+
* connectivity cannot be observed, it resolves `true` at once rather than hanging on an event that can never
|
|
33
|
+
* arrive.
|
|
34
|
+
*
|
|
35
|
+
* Remember what a `true` verdict is worth (see this file's header): it says a link exists, not that the
|
|
36
|
+
* server is reachable. Use it to gate a retry, then let the retry decide.
|
|
37
|
+
*
|
|
38
|
+
* @param options - The deadline and cancellation signal.
|
|
39
|
+
* @returns `true` when connectivity is (or becomes) available; `false` on timeout or abort.
|
|
40
|
+
*/
|
|
41
|
+
export declare function waitForOnline(options?: WaitForOnlineOptions): Promise<boolean>;
|