@strands.gg/accui 2.1.2 → 2.1.3
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/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/nuxt/module.d.ts +6 -0
- package/dist/nuxt/module.d.ts.map +1 -0
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.d.ts +21 -0
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.d.ts.map +1 -0
- package/dist/nuxt/runtime/composables/useStrandsAuth.d.ts +143 -0
- package/dist/nuxt/runtime/composables/useStrandsAuth.d.ts.map +1 -0
- package/dist/nuxt/runtime/middleware/auth.d.ts +8 -0
- package/dist/nuxt/runtime/middleware/auth.d.ts.map +1 -0
- package/dist/nuxt/runtime/middleware/auth.global.d.ts +4 -0
- package/dist/nuxt/runtime/middleware/auth.global.d.ts.map +1 -0
- package/dist/nuxt/runtime/middleware/guest.d.ts +8 -0
- package/dist/nuxt/runtime/middleware/guest.d.ts.map +1 -0
- package/dist/nuxt/runtime/plugin.client.d.ts +4 -0
- package/dist/nuxt/runtime/plugin.client.d.ts.map +1 -0
- package/dist/nuxt/runtime/plugin.server.d.ts +4 -0
- package/dist/nuxt/runtime/plugin.server.d.ts.map +1 -0
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.d.ts +4 -0
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.d.ts.map +1 -0
- package/dist/nuxt/types.d.ts +46 -0
- package/dist/nuxt/types.d.ts.map +1 -0
- package/dist/nuxt-v4/module.d.ts +6 -0
- package/dist/nuxt-v4/module.d.ts.map +1 -0
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.cjs.js.map +1 -1
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.d.ts +21 -0
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.d.ts.map +1 -0
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.es.js.map +1 -1
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.cjs.js +1 -1
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.cjs.js.map +1 -1
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.d.ts +28 -0
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.d.ts.map +1 -0
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.es.js +1 -0
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.es.js.map +1 -1
- package/dist/nuxt-v4/runtime/middleware/auth.global.d.ts +4 -0
- package/dist/nuxt-v4/runtime/middleware/auth.global.d.ts.map +1 -0
- package/dist/nuxt-v4/runtime/plugin.client.d.ts +4 -0
- package/dist/nuxt-v4/runtime/plugin.client.d.ts.map +1 -0
- package/dist/nuxt-v4/runtime/plugin.server.d.ts +4 -0
- package/dist/nuxt-v4/runtime/plugin.server.d.ts.map +1 -0
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.cjs.js.map +1 -1
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.d.ts +4 -0
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.d.ts.map +1 -0
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.es.js.map +1 -1
- package/dist/nuxt-v4/types.d.ts +64 -0
- package/dist/nuxt-v4/types.d.ts.map +1 -0
- package/dist/nuxt-v4.d.ts +5 -0
- package/dist/nuxt-v4.d.ts.map +1 -0
- package/dist/nuxt.d.ts +5 -0
- package/dist/nuxt.d.ts.map +1 -0
- package/dist/shared/defaults.d.ts +3 -0
- package/dist/shared/defaults.d.ts.map +1 -0
- package/dist/types/index.d.ts +237 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/slots.d.ts +2 -0
- package/dist/utils/slots.d.ts.map +1 -0
- package/dist/utils/validation.d.ts +13 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/vue/components/SignedIn.vue.d.ts +55 -0
- package/dist/vue/components/SignedIn.vue.d.ts.map +1 -0
- package/dist/vue/components/SignedOut.vue.d.ts +55 -0
- package/dist/vue/components/SignedOut.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsAuth.vue.d.ts +26 -0
- package/dist/vue/components/StrandsAuth.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsBackupCodesModal.vue.d.ts +13 -0
- package/dist/vue/components/StrandsBackupCodesModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsCompleteSignUp.vue.d.ts +22 -0
- package/dist/vue/components/StrandsCompleteSignUp.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsConfigProvider.vue.d.ts +23 -0
- package/dist/vue/components/StrandsConfigProvider.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsConfirmModal.vue.d.ts +23 -0
- package/dist/vue/components/StrandsConfirmModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsEmailMfaSetupModal.vue.d.ts +13 -0
- package/dist/vue/components/StrandsEmailMfaSetupModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsHardwareKeySetupModal.vue.d.ts +16 -0
- package/dist/vue/components/StrandsHardwareKeySetupModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsLogo.vue.d.ts +9 -0
- package/dist/vue/components/StrandsLogo.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsMFASetup.vue.d.ts +17 -0
- package/dist/vue/components/StrandsMFASetup.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsMfaModal.vue.d.ts +13 -0
- package/dist/vue/components/StrandsMfaModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsMfaVerification.vue.d.ts +18 -0
- package/dist/vue/components/StrandsMfaVerification.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsPasswordReset.vue.d.ts +16 -0
- package/dist/vue/components/StrandsPasswordReset.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsSecuredFooter.vue.d.ts +23 -0
- package/dist/vue/components/StrandsSecuredFooter.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsSessionsModal.vue.d.ts +15 -0
- package/dist/vue/components/StrandsSessionsModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsSettingsModal.vue.d.ts +19 -0
- package/dist/vue/components/StrandsSettingsModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsSignIn.vue.d.ts +22 -0
- package/dist/vue/components/StrandsSignIn.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsSignUp.vue.d.ts +20 -0
- package/dist/vue/components/StrandsSignUp.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsTotpSetupModal.vue.d.ts +13 -0
- package/dist/vue/components/StrandsTotpSetupModal.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsUserButton.vue.d.ts +31 -0
- package/dist/vue/components/StrandsUserButton.vue.d.ts.map +1 -0
- package/dist/vue/components/StrandsUserProfile.vue.d.ts +27 -0
- package/dist/vue/components/StrandsUserProfile.vue.d.ts.map +1 -0
- package/dist/vue/components/SvgIcon.vue.d.ts +18 -0
- package/dist/vue/components/SvgIcon.vue.d.ts.map +1 -0
- package/dist/vue/components/VirtualList.vue.d.ts +38 -0
- package/dist/vue/components/VirtualList.vue.d.ts.map +1 -0
- package/dist/vue/components/icons/IconGithub.vue.d.ts +4 -0
- package/dist/vue/components/icons/IconGithub.vue.d.ts.map +1 -0
- package/dist/vue/components/icons/IconGoogle.vue.d.ts +4 -0
- package/dist/vue/components/icons/IconGoogle.vue.d.ts.map +1 -0
- package/dist/vue/components/icons/index.d.ts +3 -0
- package/dist/vue/components/icons/index.d.ts.map +1 -0
- package/dist/vue/components/index.d.ts +27 -0
- package/dist/vue/components/index.d.ts.map +1 -0
- package/dist/vue/composables/useAuthenticatedFetch.d.ts +21 -0
- package/dist/vue/composables/useAuthenticatedFetch.d.ts.map +1 -0
- package/dist/vue/composables/useOAuthProviders.d.ts +75 -0
- package/dist/vue/composables/useOAuthProviders.d.ts.map +1 -0
- package/dist/vue/composables/useStrandsAuth.d.ts +131 -0
- package/dist/vue/composables/useStrandsAuth.d.ts.map +1 -0
- package/dist/vue/composables/useStrandsConfig.d.ts +12 -0
- package/dist/vue/composables/useStrandsConfig.d.ts.map +1 -0
- package/dist/vue/composables/useStrandsMfa.d.ts +39 -0
- package/dist/vue/composables/useStrandsMfa.d.ts.map +1 -0
- package/dist/vue/index.d.ts +13 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/plugins/StrandsUIPlugin.d.ts +20 -0
- package/dist/vue/plugins/StrandsUIPlugin.d.ts.map +1 -0
- package/dist/vue/ui/UiAlert.vue.d.ts +32 -0
- package/dist/vue/ui/UiAlert.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiAvatarEditor.vue.d.ts +26 -0
- package/dist/vue/ui/UiAvatarEditor.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiButton.vue.d.ts +55 -0
- package/dist/vue/ui/UiButton.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiCard.vue.d.ts +30 -0
- package/dist/vue/ui/UiCard.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiInput.vue.d.ts +49 -0
- package/dist/vue/ui/UiInput.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiLevelProgress.vue.d.ts +20 -0
- package/dist/vue/ui/UiLevelProgress.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiLink.vue.d.ts +43 -0
- package/dist/vue/ui/UiLink.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiLoader.vue.d.ts +16 -0
- package/dist/vue/ui/UiLoader.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiModal.vue.d.ts +34 -0
- package/dist/vue/ui/UiModal.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiTabs.vue.d.ts +18 -0
- package/dist/vue/ui/UiTabs.vue.d.ts.map +1 -0
- package/dist/vue/ui/UiToggle.vue.d.ts +16 -0
- package/dist/vue/ui/UiToggle.vue.d.ts.map +1 -0
- package/dist/vue/ui/index.d.ts +30 -0
- package/dist/vue/ui/index.d.ts.map +1 -0
- package/dist/vue/utils/contrast.d.ts +80 -0
- package/dist/vue/utils/contrast.d.ts.map +1 -0
- package/dist/vue/utils/debounce.d.ts +13 -0
- package/dist/vue/utils/debounce.d.ts.map +1 -0
- package/dist/vue/utils/fontPreloader.d.ts +20 -0
- package/dist/vue/utils/fontPreloader.d.ts.map +1 -0
- package/dist/vue/utils/iconProps.d.ts +10 -0
- package/dist/vue/utils/iconProps.d.ts.map +1 -0
- package/dist/vue/utils/lazyComponents.d.ts +3 -0
- package/dist/vue/utils/lazyComponents.d.ts.map +1 -0
- package/dist/vue/utils/levels.d.ts +28 -0
- package/dist/vue/utils/levels.d.ts.map +1 -0
- package/dist/vue/utils/performanceInit.d.ts +41 -0
- package/dist/vue/utils/performanceInit.d.ts.map +1 -0
- package/dist/vue/utils/requestCache.d.ts +50 -0
- package/dist/vue/utils/requestCache.d.ts.map +1 -0
- package/dist/vue/utils/sounds.d.ts +57 -0
- package/dist/vue/utils/sounds.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
closeOnOverlayClick?: boolean;
|
|
5
|
+
fullscreenOnMobile?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
header?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
footer?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
|
+
close: () => any;
|
|
20
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
21
|
+
onClose?: (() => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
open: boolean;
|
|
24
|
+
closeOnOverlayClick: boolean;
|
|
25
|
+
fullscreenOnMobile: boolean;
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=UiModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UiModal.vue.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/ui/UiModal.vue"],"names":[],"mappings":";AA2BA;AA4HA,UAAU,KAAK;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC5B;AA2BD,iBAAS,cAAc;WA4ET,OAAO,IAA6B;;wBAZtB,GAAG;yBACF,GAAG;wBACJ,GAAG;;;;EAe9B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;UA3Hb,OAAO;yBACQ,OAAO;wBACR,OAAO;wFAkI3B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface Tab {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
modelValue: string;
|
|
8
|
+
tabs: Tab[];
|
|
9
|
+
}
|
|
10
|
+
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (value: string) => any;
|
|
12
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
15
|
+
tabButtons: HTMLButtonElement[];
|
|
16
|
+
}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=UiTabs.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UiTabs.vue.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/ui/UiTabs.vue"],"names":[],"mappings":";AAsBA;AAuMA,UAAU,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,GAAG,EAAE,CAAA;CACZ;;;;;;;;AAiMD,wBASG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:modelValue": (value: boolean) => any;
|
|
9
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
modelValue: boolean;
|
|
14
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=UiToggle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UiToggle.vue.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/ui/UiToggle.vue"],"names":[],"mappings":";AAWA;AAuHA,UAAU,KAAK;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;;;;;;cAFY,OAAO;gBADL,OAAO;;AAuGtB,wBASG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export { default as StrandsUiAlert } from './UiAlert.vue';
|
|
2
|
+
export { default as StrandsUiButton } from './UiButton.vue';
|
|
3
|
+
export { default as StrandsUiCard } from './UiCard.vue';
|
|
4
|
+
export { default as StrandsUiInput } from './UiInput.vue';
|
|
5
|
+
export { default as StrandsUiLink } from './UiLink.vue';
|
|
6
|
+
export { default as StrandsUiTabs } from './UiTabs.vue';
|
|
7
|
+
export { default as StrandsUiLoader } from './UiLoader.vue';
|
|
8
|
+
export { default as StrandsUiToggle } from './UiToggle.vue';
|
|
9
|
+
export { default as StrandsUiAvatarEditor } from './UiAvatarEditor.vue';
|
|
10
|
+
export { default as StrandsUiLevelProgress } from './UiLevelProgress.vue';
|
|
11
|
+
export { default as StrandsUiModal } from './UiModal.vue';
|
|
12
|
+
export { default as UiAlert } from './UiAlert.vue';
|
|
13
|
+
export { default as UiButton } from './UiButton.vue';
|
|
14
|
+
export { default as UiCard } from './UiCard.vue';
|
|
15
|
+
export { default as UiInput } from './UiInput.vue';
|
|
16
|
+
export { default as UiLink } from './UiLink.vue';
|
|
17
|
+
export { default as UiTabs } from './UiTabs.vue';
|
|
18
|
+
export { default as UiLoader } from './UiLoader.vue';
|
|
19
|
+
export { default as UiToggle } from './UiToggle.vue';
|
|
20
|
+
export { default as UiAvatarEditor } from './UiAvatarEditor.vue';
|
|
21
|
+
export { default as UiAvatarEditorSimple } from './UiAvatarEditor.vue';
|
|
22
|
+
export { default as UiLevelProgress } from './UiLevelProgress.vue';
|
|
23
|
+
export { default as UiModal } from './UiModal.vue';
|
|
24
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline';
|
|
25
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
26
|
+
export type InputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
|
|
27
|
+
export type CardVariant = 'default' | 'modern' | 'minimal';
|
|
28
|
+
export type LinkVariant = 'primary' | 'secondary' | 'ghost' | 'underline';
|
|
29
|
+
export type AlertVariant = 'success' | 'error' | 'warning' | 'info';
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/ui/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAGzD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAGlD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAA;AACzE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC3C,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAA;AAChF,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AAC1D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,WAAW,CAAA;AACzE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WCAG 3.0 APCA-based contrast calculation utilities
|
|
3
|
+
* Provides perceptually accurate text contrast determination for accessibility
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Convert hex color to RGB values
|
|
7
|
+
*/
|
|
8
|
+
export declare const hexToRgb: (hex: string) => {
|
|
9
|
+
r: number;
|
|
10
|
+
g: number;
|
|
11
|
+
b: number;
|
|
12
|
+
} | null;
|
|
13
|
+
/**
|
|
14
|
+
* APCA sRGB to Y (luminance) conversion - WCAG 3.0 method
|
|
15
|
+
*/
|
|
16
|
+
export declare const sRGBtoY: (r: number, g: number, b: number) => number;
|
|
17
|
+
/**
|
|
18
|
+
* APCA contrast calculation
|
|
19
|
+
* Returns contrast value between -108 and 105
|
|
20
|
+
*/
|
|
21
|
+
export declare const calcAPCA: (txtY: number, bgY: number) => number;
|
|
22
|
+
/**
|
|
23
|
+
* Get effective RGB color considering shades and opacity modifications
|
|
24
|
+
*/
|
|
25
|
+
export declare const getEffectiveRgb: (colorProp: string) => {
|
|
26
|
+
r: number;
|
|
27
|
+
g: number;
|
|
28
|
+
b: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Calculate APCA contrast score between two colors
|
|
32
|
+
* @param textColor RGB object or hex string for text color
|
|
33
|
+
* @param backgroundColor RGB object or hex string for background color
|
|
34
|
+
* @returns APCA contrast score (-108 to 105)
|
|
35
|
+
*/
|
|
36
|
+
export declare const getAPCAContrast: (textColor: {
|
|
37
|
+
r: number;
|
|
38
|
+
g: number;
|
|
39
|
+
b: number;
|
|
40
|
+
} | string, backgroundColor: {
|
|
41
|
+
r: number;
|
|
42
|
+
g: number;
|
|
43
|
+
b: number;
|
|
44
|
+
} | string) => number;
|
|
45
|
+
/**
|
|
46
|
+
* Get APCA contrast threshold based on font weight and size
|
|
47
|
+
* WCAG 3.0 APCA thresholds vary based on font characteristics
|
|
48
|
+
*/
|
|
49
|
+
export declare const getAPCAThreshold: (fontWeight?: number, fontSize?: number) => number;
|
|
50
|
+
/**
|
|
51
|
+
* Determine optimal text color (black or white) for a given background
|
|
52
|
+
* Uses WCAG 3.0 APCA algorithm for accurate contrast assessment
|
|
53
|
+
* @param colorProp Color property string (e.g., 'red-500', 'blue/50')
|
|
54
|
+
* @param fontWeight Font weight (300-900, default 400)
|
|
55
|
+
* @param fontSize Font size in pixels (default 16)
|
|
56
|
+
* @returns '#000000' for black text or '#ffffff' for white text
|
|
57
|
+
*/
|
|
58
|
+
export declare const getContrastTextColor: (colorProp: string, fontWeight?: number, fontSize?: number) => string;
|
|
59
|
+
/**
|
|
60
|
+
* Check if a color combination meets WCAG 3.0 APCA standards
|
|
61
|
+
* @param textColor Text color (RGB object or hex string)
|
|
62
|
+
* @param backgroundColor Background color (RGB object or hex string)
|
|
63
|
+
* @param fontWeight Font weight (300-900, default 400)
|
|
64
|
+
* @param fontSize Font size in pixels (default 16)
|
|
65
|
+
* @returns boolean indicating if contrast is sufficient
|
|
66
|
+
*/
|
|
67
|
+
export declare const meetsAPCAStandard: (textColor: {
|
|
68
|
+
r: number;
|
|
69
|
+
g: number;
|
|
70
|
+
b: number;
|
|
71
|
+
} | string, backgroundColor: {
|
|
72
|
+
r: number;
|
|
73
|
+
g: number;
|
|
74
|
+
b: number;
|
|
75
|
+
} | string, fontWeight?: number, fontSize?: number) => boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Generate color value from color prop (for CSS generation)
|
|
78
|
+
*/
|
|
79
|
+
export declare const getColorValue: (color: string) => string;
|
|
80
|
+
//# sourceMappingURL=contrast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contrast.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/contrast.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkBH;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,KAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAO5E,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,KAAG,MAezD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,KAAK,MAAM,KAAG,MAapD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,KAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CA0CpF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EACvD,iBAAiB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,KAC5D,MAUF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,aAAY,MAAY,EAAE,WAAU,MAAW,KAAG,MAyBlF,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,WAAW,MAAM,EACjB,aAAY,MAAY,EACxB,WAAU,MAAW,KACpB,MA2BF,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAC5B,WAAW;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EACvD,iBAAiB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EAC7D,aAAY,MAAY,EACxB,WAAU,MAAW,KACpB,OAKF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAwC7C,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debounce utility for optimizing frequent operations
|
|
3
|
+
*/
|
|
4
|
+
export declare function debounce<T extends (...args: any[]) => void>(func: T, wait: number): (...args: Parameters<T>) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Debounced localStorage setter
|
|
7
|
+
*/
|
|
8
|
+
export declare const debouncedSetItem: (key: string, value: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Throttle utility for limiting function execution frequency
|
|
11
|
+
*/
|
|
12
|
+
export declare function throttle<T extends (...args: any[]) => void>(func: T, limit: number): (...args: Parameters<T>) => void;
|
|
13
|
+
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/debounce.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzD,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,GACX,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAYlC;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,kCAjBE,IAqBxB,CAAA;AAEP;;GAEG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzD,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAUlC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Font preloading utility for better performance
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Preload critical fonts
|
|
6
|
+
*/
|
|
7
|
+
export declare function preloadFonts(): void;
|
|
8
|
+
/**
|
|
9
|
+
* Create font face CSS declarations
|
|
10
|
+
*/
|
|
11
|
+
export declare function createFontFaceCSS(): string;
|
|
12
|
+
/**
|
|
13
|
+
* Check if font is already loaded
|
|
14
|
+
*/
|
|
15
|
+
export declare function checkFontLoaded(fontFamily: string, weight?: string): Promise<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Optimize font loading with font-display: swap
|
|
18
|
+
*/
|
|
19
|
+
export declare function optimizeFontLoading(): void;
|
|
20
|
+
//# sourceMappingURL=fontPreloader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fontPreloader.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/fontPreloader.ts"],"names":[],"mappings":"AAAA;;GAEG;AAiDH;;GAEG;AACH,wBAAgB,YAAY,SAsB3B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAU1C;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,SAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAU1F;AAED;;GAEG;AACH,wBAAgB,mBAAmB,SAmBlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconProps.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/iconProps.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;CAKrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazyComponents.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/lazyComponents.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,gBAAgB,GAAI,iBAAiB,MAAM,OAAO,CAAC,GAAG,CAAC,SAYnE,CAAA;AAGD,eAAO,MAAM,yBAAyB,YAGrC,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Level and XP calculation utilities for the Strands leveling system
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Calculate XP required for a specific level using the provided formula
|
|
6
|
+
*/
|
|
7
|
+
export declare const getXpForLevel: (level: number) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Calculate the current level from total XP
|
|
10
|
+
*/
|
|
11
|
+
export declare const getLevelFromXp: (totalXp: number) => number;
|
|
12
|
+
/**
|
|
13
|
+
* Calculate the current level from total XP (alias for consistency)
|
|
14
|
+
*/
|
|
15
|
+
export declare const calculateLevel: (totalXp: number) => number;
|
|
16
|
+
/**
|
|
17
|
+
* Calculate XP progress percentage toward the next level
|
|
18
|
+
*/
|
|
19
|
+
export declare const calculateXpProgress: (totalXp: number) => number;
|
|
20
|
+
/**
|
|
21
|
+
* Get the current XP within the current level
|
|
22
|
+
*/
|
|
23
|
+
export declare const getCurrentLevelExp: (totalXp: number) => number;
|
|
24
|
+
/**
|
|
25
|
+
* Get the XP needed to reach the next level
|
|
26
|
+
*/
|
|
27
|
+
export declare const getExpToNextLevel: (totalXp: number) => number;
|
|
28
|
+
//# sourceMappingURL=levels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"levels.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/levels.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAU7C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG,MAiBhD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,YAtBa,MAAM,KAAG,MAsBL,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,KAAG,MAerD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,KAAG,MAOpD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,MAQnD,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance initialization utility
|
|
3
|
+
* Optimizes loading and runtime performance
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Initialize all performance optimizations
|
|
7
|
+
*/
|
|
8
|
+
export declare function initializePerformanceOptimizations(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Optimize runtime performance
|
|
11
|
+
*/
|
|
12
|
+
export declare function optimizeRuntimePerformance(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Cleanup performance optimizations
|
|
15
|
+
*/
|
|
16
|
+
export declare function cleanupPerformanceOptimizations(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Get performance metrics
|
|
19
|
+
*/
|
|
20
|
+
export declare function getPerformanceMetrics(): {
|
|
21
|
+
domContentLoaded?: undefined;
|
|
22
|
+
loadComplete?: undefined;
|
|
23
|
+
dns?: undefined;
|
|
24
|
+
tcp?: undefined;
|
|
25
|
+
ttfb?: undefined;
|
|
26
|
+
domInteractive?: undefined;
|
|
27
|
+
memoryUsage?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
domContentLoaded: number;
|
|
30
|
+
loadComplete: number;
|
|
31
|
+
dns: number;
|
|
32
|
+
tcp: number;
|
|
33
|
+
ttfb: number;
|
|
34
|
+
domInteractive: number;
|
|
35
|
+
memoryUsage: {
|
|
36
|
+
used: any;
|
|
37
|
+
total: any;
|
|
38
|
+
limit: any;
|
|
39
|
+
} | null;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=performanceInit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performanceInit.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/performanceInit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;GAEG;AACH,wBAAgB,kCAAkC,SA6CjD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,SAoCzC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,SAO9C;AAED;;GAEG;AACH,wBAAgB,qBAAqB;;;;;;;;;;;;;;;;;;;;EA2BpC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request deduplication and caching utility
|
|
3
|
+
* Prevents duplicate API calls and provides simple caching
|
|
4
|
+
*/
|
|
5
|
+
declare class RequestCache {
|
|
6
|
+
private cache;
|
|
7
|
+
private readonly DEFAULT_TTL;
|
|
8
|
+
/**
|
|
9
|
+
* Memoized fetch - prevents duplicate requests and caches results
|
|
10
|
+
*/
|
|
11
|
+
fetch<T>(key: string, fetcher: () => Promise<T>, ttl?: number): Promise<T>;
|
|
12
|
+
/**
|
|
13
|
+
* Clear all cached entries
|
|
14
|
+
*/
|
|
15
|
+
clear(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Remove a specific cache entry
|
|
18
|
+
*/
|
|
19
|
+
invalidate(key: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Clean expired cache entries
|
|
22
|
+
*/
|
|
23
|
+
private cleanExpired;
|
|
24
|
+
/**
|
|
25
|
+
* Get cache statistics (for debugging)
|
|
26
|
+
*/
|
|
27
|
+
getStats(): {
|
|
28
|
+
size: number;
|
|
29
|
+
entries: string[];
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare const requestCache: RequestCache;
|
|
33
|
+
/**
|
|
34
|
+
* Composable for request deduplication
|
|
35
|
+
*/
|
|
36
|
+
export declare function useRequestCache(): {
|
|
37
|
+
fetch: <T>(key: string, fetcher: () => Promise<T>, ttl?: number) => Promise<T>;
|
|
38
|
+
clear: () => void;
|
|
39
|
+
invalidate: (key: string) => void;
|
|
40
|
+
getStats: () => {
|
|
41
|
+
size: number;
|
|
42
|
+
entries: string[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Generate cache key from URL and options
|
|
47
|
+
*/
|
|
48
|
+
export declare function getCacheKey(url: string, options?: RequestInit): string;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=requestCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestCache.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/requestCache.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,cAAM,YAAY;IAChB,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgB;IAE5C;;OAEG;IACG,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,SAAmB,GAAG,OAAO,CAAC,CAAC,CAAC;IA8B1F;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI7B;;OAEG;IACH,OAAO,CAAC,YAAY;IASpB;;OAEG;IACH,QAAQ,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE;CAMhD;AAGD,eAAO,MAAM,YAAY,cAAqB,CAAA;AAE9C;;GAEG;AACH,wBAAgB,eAAe;YAzEjB,CAAC,OAAO,MAAM,WAAW,MAAM,OAAO,CAAC,CAAC,CAAC,mBAA2B,OAAO,CAAC,CAAC,CAAC;iBAiCjF,IAAI;sBAOG,MAAM,KAAG,IAAI;oBAmBjB;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE;EAqBhD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAMtE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sound effects utility functions using Web Audio API
|
|
3
|
+
* These generate sounds programmatically without needing external audio files
|
|
4
|
+
*/
|
|
5
|
+
export declare class SoundEffects {
|
|
6
|
+
private static audioContext;
|
|
7
|
+
/**
|
|
8
|
+
* Get or create a shared AudioContext
|
|
9
|
+
*/
|
|
10
|
+
private static getAudioContext;
|
|
11
|
+
/**
|
|
12
|
+
* Play a level up sound effect
|
|
13
|
+
* A pleasant major chord with arpeggio and bell overtones
|
|
14
|
+
*/
|
|
15
|
+
static playLevelUp(level?: number, userSettings?: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* Play regular level up sound for normal levels
|
|
18
|
+
*/
|
|
19
|
+
private static playRegularLevelUp;
|
|
20
|
+
/**
|
|
21
|
+
* Play epic milestone level up sound for special levels (10, 25, 50, 100, 150, 200)
|
|
22
|
+
* A longer, more elaborate celebration with multiple chord progressions
|
|
23
|
+
*/
|
|
24
|
+
private static playMilestoneLevelUp;
|
|
25
|
+
/**
|
|
26
|
+
* Play a success/completion sound
|
|
27
|
+
* A short, bright confirmation tone
|
|
28
|
+
*/
|
|
29
|
+
static playSuccess(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Play an error/failure sound
|
|
32
|
+
* A low, descending tone
|
|
33
|
+
*/
|
|
34
|
+
static playError(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Play a click/button press sound
|
|
37
|
+
* A very short, soft click
|
|
38
|
+
*/
|
|
39
|
+
static playClick(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Play a notification sound
|
|
42
|
+
* A gentle two-tone chime
|
|
43
|
+
*/
|
|
44
|
+
static playNotification(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Play an XP gain sound
|
|
47
|
+
* A quick, ascending glissando
|
|
48
|
+
*/
|
|
49
|
+
static playXpGain(): void;
|
|
50
|
+
}
|
|
51
|
+
export declare const playLevelUp: (level?: number, userSettings?: any) => void;
|
|
52
|
+
export declare const playSuccess: () => void;
|
|
53
|
+
export declare const playError: () => void;
|
|
54
|
+
export declare const playClick: () => void;
|
|
55
|
+
export declare const playNotification: () => void;
|
|
56
|
+
export declare const playXpGain: () => void;
|
|
57
|
+
//# sourceMappingURL=sounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sounds.d.ts","sourceRoot":"","sources":["../../../../../apps/accounts-ui/src/vue/utils/sounds.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,YAAY,CAA6B;IAExD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAgB9B;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,IAAI;IAuB5D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAqDjC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA4FnC;;;OAGG;IACH,MAAM,CAAC,WAAW,IAAI,IAAI;IA+B1B;;;OAGG;IACH,MAAM,CAAC,SAAS,IAAI,IAAI;IAsBxB;;;OAGG;IACH,MAAM,CAAC,SAAS,IAAI,IAAI;IAqBxB;;;OAGG;IACH,MAAM,CAAC,gBAAgB,IAAI,IAAI;IA2B/B;;;OAGG;IACH,MAAM,CAAC,UAAU,IAAI,IAAI;CAsB1B;AAGD,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,eAAe,GAAG,SAAkD,CAAC;AACjH,eAAO,MAAM,WAAW,YAAmC,CAAC;AAC5D,eAAO,MAAM,SAAS,YAAiC,CAAC;AACxD,eAAO,MAAM,SAAS,YAAiC,CAAC;AACxD,eAAO,MAAM,gBAAgB,YAAwC,CAAC;AACtE,eAAO,MAAM,UAAU,YAAkC,CAAC"}
|