@strands.gg/accui 2.17.59 → 2.17.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/StrandsUIPlugin-B1Gl61ax.cjs.js +143 -0
- package/dist/StrandsUIPlugin-BNU_Ayly.es.js +20577 -0
- package/dist/accui.css +1 -0
- package/dist/index.cjs.js +5 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +12931 -0
- package/dist/nuxt/module.cjs.js +23 -0
- package/dist/nuxt/module.d.ts +4 -0
- package/dist/nuxt/module.es.js +182 -0
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.cjs.js +1 -0
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.d.ts +20 -0
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.es.js +103 -0
- package/dist/nuxt/runtime/composables/useStrandsAuth.cjs.js +1 -0
- package/dist/nuxt/runtime/composables/useStrandsAuth.d.ts +111 -0
- package/dist/nuxt/runtime/composables/useStrandsAuth.es.js +100 -0
- package/dist/nuxt/runtime/composables/useStrandsOAuth.d.ts +8 -0
- package/dist/nuxt/runtime/middleware/auth.d.ts +6 -0
- package/dist/nuxt/runtime/middleware/auth.global.cjs.js +1 -0
- package/dist/nuxt/runtime/middleware/auth.global.d.ts +2 -0
- package/dist/nuxt/runtime/middleware/auth.global.es.js +35 -0
- package/dist/nuxt/runtime/middleware/guest.d.ts +6 -0
- package/dist/nuxt/runtime/plugin.client.cjs.js +1 -0
- package/dist/nuxt/runtime/plugin.client.d.ts +2 -0
- package/dist/nuxt/runtime/plugin.client.es.js +21 -0
- package/dist/nuxt/runtime/plugin.server.cjs.js +1 -0
- package/dist/nuxt/runtime/plugin.server.d.ts +2 -0
- package/dist/nuxt/runtime/plugin.server.es.js +15 -0
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.cjs.js +1 -0
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.d.ts +9 -0
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.es.js +46 -0
- package/dist/nuxt/types.d.ts +51 -0
- package/dist/nuxt.cjs.js +1 -0
- package/dist/nuxt.d.ts +4 -0
- package/dist/nuxt.es.js +11 -0
- package/dist/robots.txt +4 -0
- package/dist/shared/defaults.d.ts +2 -0
- package/dist/sitemap.xml +9 -0
- package/dist/types/composables.d.ts +97 -0
- package/dist/types/index.d.ts +263 -0
- package/dist/types/oauth.d.ts +420 -0
- package/dist/useDarkMode-BdG1G2mj.es.js +102 -0
- package/dist/useDarkMode-Dd0Q5Nnz.cjs.js +1 -0
- package/dist/useStrandsAuth-CetpoBNk.cjs.js +1 -0
- package/dist/useStrandsAuth-wzl2F9DE.es.js +702 -0
- package/dist/useStrandsConfig-B2UXxIbT.es.js +213 -0
- package/dist/useStrandsConfig-BYOAEt9d.cjs.js +1 -0
- package/dist/utils/colors.d.ts +10 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/slots.d.ts +1 -0
- package/dist/utils/validation.d.ts +12 -0
- package/dist/vite/index.d.ts +2 -0
- package/dist/vite/plugin.d.ts +68 -0
- package/dist/vite.cjs.js +29 -0
- package/dist/vite.d.ts +6 -0
- package/dist/vite.es.js +92 -0
- package/dist/vue/components/SignedIn.vue.d.ts +35 -0
- package/dist/vue/components/StrandsAuth.vue.d.ts +24 -0
- package/dist/vue/components/StrandsBackupCodesModal.vue.d.ts +11 -0
- package/dist/vue/components/StrandsCompleteSignUp.vue.d.ts +20 -0
- package/dist/vue/components/StrandsConfigProvider.vue.d.ts +21 -0
- package/dist/vue/components/StrandsConfirmModal.vue.d.ts +21 -0
- package/dist/vue/components/StrandsEmailMfaSetupModal.vue.d.ts +11 -0
- package/dist/vue/components/StrandsHardwareKeySetupModal.vue.d.ts +14 -0
- package/dist/vue/components/StrandsLogo.vue.d.ts +9 -0
- package/dist/vue/components/StrandsMFASetup.vue.d.ts +15 -0
- package/dist/vue/components/StrandsMfaModal.vue.d.ts +11 -0
- package/dist/vue/components/StrandsMfaVerification.vue.d.ts +16 -0
- package/dist/vue/components/StrandsNav/StrandsNav.vue.d.ts +43 -0
- package/dist/vue/components/StrandsNav/StrandsNavItem.vue.d.ts +26 -0
- package/dist/vue/components/StrandsNav/index.d.ts +8 -0
- package/dist/vue/components/StrandsNav/types.d.ts +12 -0
- package/dist/vue/components/StrandsOAuthButton.vue.d.ts +18 -0
- package/dist/vue/components/StrandsOAuthCallback.vue.d.ts +12 -0
- package/dist/vue/components/StrandsPasswordReset.vue.d.ts +14 -0
- package/dist/vue/components/StrandsSecuredFooter.vue.d.ts +21 -0
- package/dist/vue/components/StrandsSessionsModal.vue.d.ts +11 -0
- package/dist/vue/components/StrandsSettingsModal.vue.d.ts +32 -0
- package/dist/vue/components/StrandsSignIn.vue.d.ts +20 -0
- package/dist/vue/components/StrandsSignUp.vue.d.ts +18 -0
- package/dist/vue/components/StrandsTotpSetupModal.vue.d.ts +11 -0
- package/dist/vue/components/StrandsUserButton.vue.d.ts +54 -0
- package/dist/vue/components/StrandsUserProfile.vue.d.ts +25 -0
- package/dist/vue/components/SvgIcon.vue.d.ts +16 -0
- package/dist/vue/components/VirtualList.vue.d.ts +36 -0
- package/dist/vue/components/icons/IconGithub.vue.d.ts +2 -0
- package/dist/vue/components/icons/IconGoogle.vue.d.ts +2 -0
- package/dist/vue/components/icons/index.d.ts +2 -0
- package/dist/vue/components/index.d.ts +29 -0
- package/dist/vue/composables/useAuthenticatedFetch.d.ts +22 -0
- package/dist/vue/composables/useDarkMode.d.ts +53 -0
- package/dist/vue/composables/useFloatingPosition.d.ts +22 -0
- package/dist/vue/composables/useModalStack.d.ts +86 -0
- package/dist/vue/composables/useOAuthProviders.d.ts +73 -0
- package/dist/vue/composables/useStrandsAuth.d.ts +2 -0
- package/dist/vue/composables/useStrandsConfig.d.ts +5 -0
- package/dist/vue/composables/useStrandsMfa.d.ts +36 -0
- package/dist/vue/composables/useStrandsOAuth.d.ts +10 -0
- package/dist/vue/composables/useTheme.d.ts +18 -0
- package/dist/vue/index.d.ts +16 -0
- package/dist/vue/plugins/StrandsUIPlugin.d.ts +19 -0
- package/dist/vue/ui/UiAlert.vue.d.ts +30 -0
- package/dist/vue/ui/UiApp.vue.d.ts +26 -0
- package/dist/vue/ui/UiAvatarEditor.vue.d.ts +24 -0
- package/dist/vue/ui/UiButton/UiButton.Anchor.vue.d.ts +42 -0
- package/dist/vue/ui/UiButton/UiButton.Content.vue.d.ts +32 -0
- package/dist/vue/ui/UiButton/UiButton.Nuxt.vue.d.ts +39 -0
- package/dist/vue/ui/UiButton/index.d.ts +11 -0
- package/dist/vue/ui/UiButton.vue.d.ts +77 -0
- package/dist/vue/ui/UiCard.vue.d.ts +38 -0
- package/dist/vue/ui/UiCheckboxGroup.vue.d.ts +46 -0
- package/dist/vue/ui/UiColorPicker/UiColorPicker.Button.vue.d.ts +19 -0
- package/dist/vue/ui/UiColorPicker/UiColorPicker.Picker.vue.d.ts +31 -0
- package/dist/vue/ui/UiColorPicker.vue.d.ts +34 -0
- package/dist/vue/ui/UiDateTimePicker.vue.d.ts +36 -0
- package/dist/vue/ui/UiDivider.vue.d.ts +43 -0
- package/dist/vue/ui/UiHero.vue.d.ts +53 -0
- package/dist/vue/ui/UiInput/UiInput.Date.vue.d.ts +30 -0
- package/dist/vue/ui/UiInput/UiInput.DateTime.vue.d.ts +34 -0
- package/dist/vue/ui/UiInput/UiInput.File.vue.d.ts +59 -0
- package/dist/vue/ui/UiInput/UiInput.Pincode.vue.d.ts +58 -0
- package/dist/vue/ui/UiInput/UiInput.RichText.vue.d.ts +66 -0
- package/dist/vue/ui/UiInput/UiInput.Select.vue.d.ts +806 -0
- package/dist/vue/ui/UiInput/UiInput.Text.vue.d.ts +51 -0
- package/dist/vue/ui/UiInput/UiInput.Textarea.vue.d.ts +60 -0
- package/dist/vue/ui/UiInput/UiInput.Time.vue.d.ts +30 -0
- package/dist/vue/ui/UiInput.vue.d.ts +84 -0
- package/dist/vue/ui/UiLevelProgress.vue.d.ts +18 -0
- package/dist/vue/ui/UiLink.vue.d.ts +42 -0
- package/dist/vue/ui/UiLoader.vue.d.ts +18 -0
- package/dist/vue/ui/UiMegaMenu/UiMegaMenu.Group.vue.d.ts +20 -0
- package/dist/vue/ui/UiMegaMenu/UiMegaMenu.Item.vue.d.ts +35 -0
- package/dist/vue/ui/UiMegaMenu/UiMegaMenu.Panel.vue.d.ts +28 -0
- package/dist/vue/ui/UiMegaMenu/index.d.ts +4 -0
- package/dist/vue/ui/UiMegaMenu.vue.d.ts +48 -0
- package/dist/vue/ui/UiModal.vue.d.ts +71 -0
- package/dist/vue/ui/UiPill.vue.d.ts +43 -0
- package/dist/vue/ui/UiRadioGroup.vue.d.ts +40 -0
- package/dist/vue/ui/UiSlider.vue.d.ts +53 -0
- package/dist/vue/ui/UiTable.vue.d.ts +114 -0
- package/dist/vue/ui/UiTabs.vue.d.ts +87 -0
- package/dist/vue/ui/UiThemeToggle.vue.d.ts +13 -0
- package/dist/vue/ui/UiToggle.vue.d.ts +20 -0
- package/dist/vue/ui/UiTooltip.vue.d.ts +41 -0
- package/dist/vue/ui/index.d.ts +62 -0
- package/dist/vue/utils/contrast.d.ts +75 -0
- package/dist/vue/utils/debounce.d.ts +12 -0
- package/dist/vue/utils/fontPreloader.d.ts +11 -0
- package/dist/vue/utils/iconProps.d.ts +9 -0
- package/dist/vue/utils/lazyComponents.d.ts +4 -0
- package/dist/vue/utils/levels.d.ts +27 -0
- package/dist/vue/utils/modalStack.d.ts +34 -0
- package/dist/vue/utils/performanceInit.d.ts +40 -0
- package/dist/vue/utils/requestCache.d.ts +49 -0
- package/dist/vue/utils/slots.d.ts +9 -0
- package/dist/vue/utils/sounds.d.ts +57 -0
- package/dist/webcomponents/define-element.d.ts +19 -0
- package/dist/webcomponents/entries/strands-alert.d.ts +2 -0
- package/dist/webcomponents/entries/strands-button.d.ts +2 -0
- package/dist/webcomponents/entries/strands-card.d.ts +2 -0
- package/dist/webcomponents/entries/strands-checkbox-group.d.ts +2 -0
- package/dist/webcomponents/entries/strands-divider.d.ts +2 -0
- package/dist/webcomponents/entries/strands-input.d.ts +2 -0
- package/dist/webcomponents/entries/strands-link.d.ts +2 -0
- package/dist/webcomponents/entries/strands-loader-spinner.d.ts +2 -0
- package/dist/webcomponents/entries/strands-modal.d.ts +2 -0
- package/dist/webcomponents/entries/strands-pill.d.ts +2 -0
- package/dist/webcomponents/entries/strands-radio-group.d.ts +2 -0
- package/dist/webcomponents/entries/strands-slider.d.ts +2 -0
- package/dist/webcomponents/entries/strands-table.d.ts +2 -0
- package/dist/webcomponents/entries/strands-tabs.d.ts +2 -0
- package/dist/webcomponents/entries/strands-theme-toggle.d.ts +2 -0
- package/dist/webcomponents/entries/strands-toggle.d.ts +2 -0
- package/dist/webcomponents/entries/strands-tooltip.d.ts +2 -0
- package/dist/webcomponents/index.d.ts +8 -0
- package/dist/webcomponents/loader.d.ts +57 -0
- package/dist/webcomponents/registry.d.ts +41 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
show?: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
close: () => any;
|
|
6
|
+
error: (error: string) => any;
|
|
7
|
+
success: () => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
+
onClose?: () => any;
|
|
10
|
+
onError?: (error: string) => any;
|
|
11
|
+
onSuccess?: () => any;
|
|
12
|
+
}>, {
|
|
13
|
+
show: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (value: boolean) => any;
|
|
6
|
+
"mfa-updated": () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
9
|
+
"onMfa-updated"?: () => any;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MfaDevice } from '../../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
show: boolean;
|
|
4
|
+
availableMfaMethods?: MfaDevice[];
|
|
5
|
+
sessionId?: string | null;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
close: () => any;
|
|
9
|
+
error: (error: string) => any;
|
|
10
|
+
success: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
12
|
+
onClose?: () => any;
|
|
13
|
+
onError?: (error: string) => any;
|
|
14
|
+
onSuccess?: () => any;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
direction?: 'row' | 'column';
|
|
3
|
+
}
|
|
4
|
+
export interface NavItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
to?: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
danger?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
24
|
+
items: {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
to?: string;
|
|
28
|
+
href?: string;
|
|
29
|
+
icon?: string;
|
|
30
|
+
onClick?: () => void;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
danger?: boolean;
|
|
33
|
+
}[];
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
35
|
+
direction: "row" | "column";
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UiButtonProps } from '../../ui/UiButton.vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
default(): any;
|
|
6
|
+
}> & {
|
|
7
|
+
default(): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<UiButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiButtonProps> & Readonly<{}>, {
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
variant: "primary" | "secondary" | "ghost" | "outline" | "default";
|
|
16
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
17
|
+
color: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
18
|
+
squircle: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as StrandsNavComponent } from './StrandsNav.vue';
|
|
2
|
+
import { default as StrandsNavItem } from './StrandsNavItem.vue';
|
|
3
|
+
declare const StrandsNav: typeof StrandsNavComponent & {
|
|
4
|
+
Item: typeof StrandsNavItem;
|
|
5
|
+
};
|
|
6
|
+
export default StrandsNav;
|
|
7
|
+
export { StrandsNavItem };
|
|
8
|
+
export type { NavItem } from './types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StrandsOAuthButtonProps } from '../../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<StrandsOAuthButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
click: (event: MouseEvent) => any;
|
|
4
|
+
error: (error: Error) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<StrandsOAuthButtonProps> & Readonly<{
|
|
6
|
+
onClick?: (event: MouseEvent) => any;
|
|
7
|
+
onError?: (error: Error) => any;
|
|
8
|
+
}>, {
|
|
9
|
+
text: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
variant: "primary" | "outline" | "ghost";
|
|
12
|
+
size: "sm" | "md" | "lg";
|
|
13
|
+
fullWidth: boolean;
|
|
14
|
+
scopes: string[];
|
|
15
|
+
showLogo: boolean;
|
|
16
|
+
authServerUrl: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StrandsOAuthCallbackProps, OAuth2Session, OAuth2Error } from '../../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<StrandsOAuthCallbackProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
error: (error: OAuth2Error) => any;
|
|
4
|
+
success: (session: OAuth2Session) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<StrandsOAuthCallbackProps> & Readonly<{
|
|
6
|
+
onError?: (error: OAuth2Error) => any;
|
|
7
|
+
onSuccess?: (session: OAuth2Session) => any;
|
|
8
|
+
}>, {
|
|
9
|
+
authServerUrl: string;
|
|
10
|
+
fetchUserInfo: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
+
interface Props {
|
|
3
|
+
config?: StrandsAuthConfig;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
error: (error: string) => any;
|
|
7
|
+
success: (email: string) => any;
|
|
8
|
+
"back-to-signin": () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
+
onError?: (error: string) => any;
|
|
11
|
+
onSuccess?: (email: string) => any;
|
|
12
|
+
"onBack-to-signin"?: () => any;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
+
interface Props {
|
|
3
|
+
config?: StrandsAuthConfig;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (value: boolean) => any;
|
|
6
|
+
"sessions-updated": () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
9
|
+
"onSessions-updated"?: () => any;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface AudioSettings {
|
|
2
|
+
levelUpSounds: boolean;
|
|
3
|
+
milestoneSounds: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface Props {
|
|
6
|
+
open?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
trigger?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
close: () => any;
|
|
19
|
+
"settings-updated": (settings: AudioSettings) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
21
|
+
onClose?: () => any;
|
|
22
|
+
"onSettings-updated"?: (settings: AudioSettings) => any;
|
|
23
|
+
}>, {
|
|
24
|
+
open: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
+
interface Props {
|
|
3
|
+
redirectUrl?: string;
|
|
4
|
+
oauthScopes?: string[];
|
|
5
|
+
config?: StrandsAuthConfig;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
error: (error: string) => any;
|
|
9
|
+
success: (user: any) => any;
|
|
10
|
+
"forgot-password": () => any;
|
|
11
|
+
"switch-to-signup": () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
onError?: (error: string) => any;
|
|
14
|
+
onSuccess?: (user: any) => any;
|
|
15
|
+
"onForgot-password"?: () => any;
|
|
16
|
+
"onSwitch-to-signup"?: () => any;
|
|
17
|
+
}>, {
|
|
18
|
+
oauthScopes: string[];
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
+
interface Props {
|
|
3
|
+
redirectUrl?: string;
|
|
4
|
+
oauthScopes?: string[];
|
|
5
|
+
config?: StrandsAuthConfig;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
error: (error: string) => any;
|
|
9
|
+
success: (user: any) => any;
|
|
10
|
+
"switch-to-signin": () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
12
|
+
onError?: (error: string) => any;
|
|
13
|
+
onSuccess?: (user: any) => any;
|
|
14
|
+
"onSwitch-to-signin"?: () => any;
|
|
15
|
+
}>, {
|
|
16
|
+
oauthScopes: string[];
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
show: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
close: () => any;
|
|
6
|
+
success: () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
8
|
+
onClose?: () => any;
|
|
9
|
+
onSuccess?: () => any;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { User } from '../../types';
|
|
2
|
+
interface Props {
|
|
3
|
+
hideUser?: boolean;
|
|
4
|
+
variant?: 'minimal' | 'compact' | 'full' | 'mini-profile' | 'avatar';
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
redirectUrl?: string;
|
|
7
|
+
user?: User;
|
|
8
|
+
menuAlign?: 'left' | 'right' | 'center';
|
|
9
|
+
menuVerticalAlign?: 'bottom' | 'top';
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
containerRef: HTMLDivElement;
|
|
20
|
+
triggerRef: HTMLDivElement;
|
|
21
|
+
dropdownRef: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"profile-updated": () => any;
|
|
28
|
+
"signed-out": () => any;
|
|
29
|
+
"signed-in": () => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
31
|
+
"onProfile-updated"?: () => any;
|
|
32
|
+
"onSigned-out"?: () => any;
|
|
33
|
+
"onSigned-in"?: () => any;
|
|
34
|
+
}>, {
|
|
35
|
+
variant: "minimal" | "compact" | "full" | "mini-profile" | "avatar";
|
|
36
|
+
size: "sm" | "md" | "lg";
|
|
37
|
+
fullWidth: boolean;
|
|
38
|
+
redirectUrl: string;
|
|
39
|
+
user: User;
|
|
40
|
+
hideUser: boolean;
|
|
41
|
+
menuAlign: "left" | "right" | "center";
|
|
42
|
+
menuVerticalAlign: "bottom" | "top";
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
44
|
+
containerRef: HTMLDivElement;
|
|
45
|
+
triggerRef: HTMLDivElement;
|
|
46
|
+
dropdownRef: HTMLDivElement;
|
|
47
|
+
}, HTMLDivElement>;
|
|
48
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
+
import { User } from '../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
user?: User;
|
|
5
|
+
config?: StrandsAuthConfig;
|
|
6
|
+
autoFetch?: boolean;
|
|
7
|
+
inModal?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
error: (error: string) => any;
|
|
11
|
+
"profile-updated": (user: User) => any;
|
|
12
|
+
"manage-sessions": () => any;
|
|
13
|
+
"mfa-toggle": (enabled: boolean) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
15
|
+
onError?: (error: string) => any;
|
|
16
|
+
"onProfile-updated"?: (user: User) => any;
|
|
17
|
+
"onManage-sessions"?: () => any;
|
|
18
|
+
"onMfa-toggle"?: (enabled: boolean) => any;
|
|
19
|
+
}>, {
|
|
20
|
+
inModal: boolean;
|
|
21
|
+
autoFetch: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
23
|
+
avatarFileInput: HTMLInputElement;
|
|
24
|
+
}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
name: string;
|
|
3
|
+
class?: string;
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
fill?: string;
|
|
6
|
+
stroke?: string;
|
|
7
|
+
ariaHidden?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
fill: string;
|
|
11
|
+
class: string;
|
|
12
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
13
|
+
stroke: string;
|
|
14
|
+
ariaHidden: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
items: any[];
|
|
3
|
+
itemHeight: number;
|
|
4
|
+
containerHeight: number;
|
|
5
|
+
itemKey?: string | ((item: any) => string | number);
|
|
6
|
+
overscan?: number;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {
|
|
12
|
+
item: any;
|
|
13
|
+
index: number;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
scrollContainer: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
23
|
+
scrollToItem: (index: number, align?: "start" | "center" | "end") => void;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
25
|
+
itemKey: string | ((item: any) => string | number);
|
|
26
|
+
overscan: number;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
scrollContainer: HTMLDivElement;
|
|
29
|
+
}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { default as StrandsAuth } from './StrandsAuth.vue';
|
|
2
|
+
export { default as StrandsSignIn } from './StrandsSignIn.vue';
|
|
3
|
+
export { default as StrandsSignUp } from './StrandsSignUp.vue';
|
|
4
|
+
export { default as StrandsCompleteSignUp } from './StrandsCompleteSignUp.vue';
|
|
5
|
+
export { default as StrandsUserProfile } from './StrandsUserProfile.vue';
|
|
6
|
+
export { default as StrandsPasswordReset } from './StrandsPasswordReset.vue';
|
|
7
|
+
export { default as StrandsMfaVerification } from './StrandsMfaVerification.vue';
|
|
8
|
+
export { default as StrandsSessionsModal } from './StrandsSessionsModal.vue';
|
|
9
|
+
export { default as StrandsConfirmModal } from './StrandsConfirmModal.vue';
|
|
10
|
+
export { default as SignedIn } from './SignedIn.vue';
|
|
11
|
+
export { default as StrandsLogo } from './StrandsLogo.vue';
|
|
12
|
+
export { default as StrandsSecuredFooter } from './StrandsSecuredFooter.vue';
|
|
13
|
+
export { default as StrandsConfigProvider } from './StrandsConfigProvider.vue';
|
|
14
|
+
export { default as SvgIcon } from './SvgIcon.vue';
|
|
15
|
+
export { default as StrandsUserButton } from './StrandsUserButton.vue';
|
|
16
|
+
export { default as StrandsNav, StrandsNavItem } from './StrandsNav';
|
|
17
|
+
export type { NavItem } from './StrandsNav';
|
|
18
|
+
export { default as VirtualList } from './VirtualList.vue';
|
|
19
|
+
export * from './icons';
|
|
20
|
+
export { preloadCriticalComponents } from '../utils/lazyComponents';
|
|
21
|
+
export { default as StrandsMFASetup } from './StrandsMFASetup.vue';
|
|
22
|
+
export { default as StrandsMfaModal } from './StrandsMfaModal.vue';
|
|
23
|
+
export { default as StrandsTotpSetupModal } from './StrandsTotpSetupModal.vue';
|
|
24
|
+
export { default as StrandsEmailMfaSetupModal } from './StrandsEmailMfaSetupModal.vue';
|
|
25
|
+
export { default as StrandsHardwareKeySetupModal } from './StrandsHardwareKeySetupModal.vue';
|
|
26
|
+
export { default as StrandsBackupCodesModal } from './StrandsBackupCodesModal.vue';
|
|
27
|
+
export { default as StrandsSettingsModal } from './StrandsSettingsModal.vue';
|
|
28
|
+
export { default as StrandsOAuthButton } from './StrandsOAuthButton.vue';
|
|
29
|
+
export { default as StrandsOAuthCallback } from './StrandsOAuthCallback.vue';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AuthenticatedFetchOptions } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Enhanced fetch composable that automatically includes credentials (cookies)
|
|
4
|
+
* and handles token refresh for API requests (Vue version)
|
|
5
|
+
*
|
|
6
|
+
* With HTTP-only cookies, auth tokens are sent automatically via credentials: 'include'
|
|
7
|
+
*/
|
|
8
|
+
export declare function useAuthenticatedFetch(): {
|
|
9
|
+
authenticatedFetch: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
10
|
+
get: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
11
|
+
post: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
12
|
+
put: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
13
|
+
delete: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
14
|
+
patch: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
15
|
+
};
|
|
16
|
+
export declare const $authFetch: {
|
|
17
|
+
get: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
18
|
+
post: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
19
|
+
put: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
20
|
+
delete: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
21
|
+
patch: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type ThemeMode = 'light' | 'dark' | 'system';
|
|
2
|
+
interface UseDarkModeOptions {
|
|
3
|
+
/** Skip auto-initialization via onMounted (used by useGlobalDarkMode) */
|
|
4
|
+
skipAutoInit?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Dark mode composable
|
|
8
|
+
*/
|
|
9
|
+
export declare function useDarkMode(options?: UseDarkModeOptions): {
|
|
10
|
+
currentTheme: import('vue').ComputedRef<ThemeMode>;
|
|
11
|
+
isDark: import('vue').ComputedRef<boolean>;
|
|
12
|
+
themeLabel: import('vue').ComputedRef<"Light" | "Dark" | "System">;
|
|
13
|
+
setTheme: (theme: ThemeMode) => void;
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
cycleTheme: () => void;
|
|
16
|
+
initialize: () => void;
|
|
17
|
+
themeOptions: ({
|
|
18
|
+
value: "light";
|
|
19
|
+
label: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
} | {
|
|
22
|
+
value: "dark";
|
|
23
|
+
label: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
} | {
|
|
26
|
+
value: "system";
|
|
27
|
+
label: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
})[];
|
|
30
|
+
};
|
|
31
|
+
export declare function useGlobalDarkMode(): {
|
|
32
|
+
currentTheme: import('vue').ComputedRef<ThemeMode>;
|
|
33
|
+
isDark: import('vue').ComputedRef<boolean>;
|
|
34
|
+
themeLabel: import('vue').ComputedRef<"Light" | "Dark" | "System">;
|
|
35
|
+
setTheme: (theme: ThemeMode) => void;
|
|
36
|
+
toggle: () => void;
|
|
37
|
+
cycleTheme: () => void;
|
|
38
|
+
initialize: () => void;
|
|
39
|
+
themeOptions: ({
|
|
40
|
+
value: "light";
|
|
41
|
+
label: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
} | {
|
|
44
|
+
value: "dark";
|
|
45
|
+
label: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
} | {
|
|
48
|
+
value: "system";
|
|
49
|
+
label: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
})[];
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type FloatingPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
3
|
+
export interface UseFloatingPositionOptions {
|
|
4
|
+
trigger: Ref<HTMLElement | undefined>;
|
|
5
|
+
floating: Ref<HTMLElement | undefined>;
|
|
6
|
+
placement?: FloatingPlacement;
|
|
7
|
+
offset?: number;
|
|
8
|
+
flip?: boolean;
|
|
9
|
+
shift?: boolean;
|
|
10
|
+
sameWidth?: boolean;
|
|
11
|
+
autoUpdate?: boolean;
|
|
12
|
+
boundary?: 'viewport' | 'scrollParent';
|
|
13
|
+
clickOutside?: {
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
handler: () => void;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function useFloatingPosition(options: UseFloatingPositionOptions): {
|
|
19
|
+
floatingStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
20
|
+
updatePosition: () => void;
|
|
21
|
+
cleanup: () => void;
|
|
22
|
+
};
|