@strands.gg/accui 2.1.5 → 2.1.7
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 +1 -6
- package/dist/js/auth-components-BJhPF4dS.js +8195 -0
- package/dist/js/auth-components-BJhPF4dS.js.br +0 -0
- package/dist/js/auth-components-BJhPF4dS.js.gz +0 -0
- package/dist/js/auth-components-CXT-W3fG.js +1 -0
- package/dist/js/auth-components-CXT-W3fG.js.br +0 -0
- package/dist/js/auth-components-CXT-W3fG.js.gz +0 -0
- package/dist/js/composables-BqIRpDGP.js +1609 -0
- package/dist/js/composables-BqIRpDGP.js.br +0 -0
- package/dist/js/composables-BqIRpDGP.js.gz +0 -0
- package/dist/js/composables-BqLSXNon.js +1 -0
- package/dist/js/composables-BqLSXNon.js.br +0 -0
- package/dist/js/composables-BqLSXNon.js.gz +0 -0
- package/dist/js/icons-CQ3z-CUv.js +398 -0
- package/dist/js/icons-CQ3z-CUv.js.br +0 -0
- package/dist/js/icons-CQ3z-CUv.js.gz +0 -0
- package/dist/js/icons-MGGFfB13.js +1 -0
- package/dist/js/index-87OecKtg.js +1 -0
- package/dist/js/index-B113vWue.js +106 -0
- package/dist/js/nuxt/module-BA8ZjBpp.js +1 -0
- package/dist/{nuxt/module.es.js → js/nuxt/module-YfdoaPCb.js} +2 -0
- package/dist/{nuxt/runtime/composables/useAuthenticatedFetch.es.js → js/nuxt/runtime/composables/useAuthenticatedFetch-DToDCO6a.js} +1 -1
- package/dist/js/nuxt/runtime/composables/useAuthenticatedFetch-qYkd06Dm.js +1 -0
- package/dist/{nuxt/runtime/composables/useStrandsAuth.es.js → js/nuxt/runtime/composables/useStrandsAuth-8b_bomlH.js} +1 -1
- package/dist/js/nuxt/runtime/composables/useStrandsAuth-Dn15YEQw.js +1 -0
- package/dist/{nuxt/runtime/middleware/auth.global.es.js → js/nuxt/runtime/middleware/auth.global-_2xq-SvK.js} +1 -1
- package/dist/js/nuxt/runtime/middleware/auth.global-dZpk-3-I.js +1 -0
- package/dist/js/nuxt/runtime/plugin.client-D7S6ulTg.js +1 -0
- package/dist/{nuxt/runtime/plugin.client.es.js → js/nuxt/runtime/plugin.client-KK_pCEfA.js} +2 -4
- package/dist/js/nuxt/runtime/plugin.server-BpSAN5Gh.js +1 -0
- package/dist/{nuxt/runtime/plugin.server.es.js → js/nuxt/runtime/plugin.server-CGdeJOoz.js} +1 -1
- package/dist/js/nuxt/runtime/plugins/auth-interceptor.client-BQu0eR16.js +1 -0
- package/dist/{nuxt/runtime/plugins/auth-interceptor.client.es.js → js/nuxt/runtime/plugins/auth-interceptor.client-DIa4pC59.js} +1 -1
- package/dist/js/nuxt-DqhAWeo-.js +1 -0
- package/dist/{nuxt.es.js → js/nuxt-MUpTW0D9.js} +3 -3
- package/dist/{nuxt-v4/module.es.js → js/nuxt-v4/module-CCvkwSrU.js} +2 -0
- package/dist/js/nuxt-v4/module-CDtxGAn8.js +1 -0
- package/dist/{nuxt-v4/runtime/composables/useAuthenticatedFetch.es.js → js/nuxt-v4/runtime/composables/useAuthenticatedFetch-I0BKB43E.js} +1 -1
- package/dist/js/nuxt-v4/runtime/composables/useAuthenticatedFetch-fAO6ieYd.js +1 -0
- package/dist/{nuxt-v4/runtime/composables/useStrandsAuth.es.js → js/nuxt-v4/runtime/composables/useStrandsAuth-BZe8CTx0.js} +1 -1
- package/dist/js/nuxt-v4/runtime/composables/useStrandsAuth-DPGVMZ-e.js +1 -0
- package/dist/js/nuxt-v4/runtime/middleware/auth.global-B0pyByUu.js +1 -0
- package/dist/{nuxt-v4/runtime/middleware/auth.global.es.js → js/nuxt-v4/runtime/middleware/auth.global-C_saJaMU.js} +1 -1
- package/dist/{nuxt-v4/runtime/plugin.client.es.js → js/nuxt-v4/runtime/plugin.client-CxLmYQfu.js} +2 -4
- package/dist/js/nuxt-v4/runtime/plugin.client-DGO53i-e.js +1 -0
- package/dist/{nuxt-v4/runtime/plugin.server.es.js → js/nuxt-v4/runtime/plugin.server-BM6HYyiZ.js} +1 -1
- package/dist/js/nuxt-v4/runtime/plugin.server-D_dUMHYo.js +1 -0
- package/dist/js/nuxt-v4/runtime/plugins/auth-interceptor.client-CUNOTFBp.js +1 -0
- package/dist/{nuxt-v4/runtime/plugins/auth-interceptor.client.es.js → js/nuxt-v4/runtime/plugins/auth-interceptor.client-Qht8QSLW.js} +1 -1
- package/dist/{nuxt-v4.es.js → js/nuxt-v4-C5JN4uyM.js} +3 -3
- package/dist/js/nuxt-v4-DuwGUuhX.js +1 -0
- package/dist/js/ui-components-BC1UK39i.js +5204 -0
- package/dist/js/ui-components-BC1UK39i.js.br +0 -0
- package/dist/js/ui-components-BC1UK39i.js.gz +0 -0
- package/dist/js/ui-components-CocLXkUI.js +1 -0
- package/dist/js/ui-components-CocLXkUI.js.br +0 -0
- package/dist/js/ui-components-CocLXkUI.js.gz +0 -0
- package/dist/js/utils-B9zcSW52.js +1 -0
- package/dist/js/utils-B9zcSW52.js.br +0 -0
- package/dist/js/utils-B9zcSW52.js.gz +0 -0
- package/dist/js/utils-BZHeJkZf.js +1080 -0
- package/dist/js/utils-BZHeJkZf.js.br +0 -0
- package/dist/js/utils-BZHeJkZf.js.gz +0 -0
- package/dist/nuxt/module.d.ts +1 -5
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.d.ts +1 -20
- package/dist/nuxt/runtime/composables/useStrandsAuth.d.ts +1 -142
- package/dist/nuxt/runtime/middleware/auth.global.d.ts +1 -3
- package/dist/nuxt/runtime/plugin.client.d.ts +1 -3
- package/dist/nuxt/runtime/plugin.server.d.ts +1 -3
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.d.ts +1 -3
- package/dist/nuxt-v4/module.d.ts +1 -5
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.d.ts +1 -20
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.d.ts +1 -27
- package/dist/nuxt-v4/runtime/middleware/auth.global.d.ts +1 -3
- package/dist/nuxt-v4/runtime/plugin.client.d.ts +1 -3
- package/dist/nuxt-v4/runtime/plugin.server.d.ts +1 -3
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.d.ts +1 -3
- package/dist/nuxt-v4.d.ts +1 -4
- package/dist/nuxt.d.ts +1 -4
- package/dist/robots.txt +4 -0
- package/dist/sitemap.xml +9 -0
- package/dist/styles/accui-DF7zRGFD.css +1 -0
- package/dist/styles/accui-DF7zRGFD.css.br +0 -0
- package/dist/styles/accui-DF7zRGFD.css.gz +0 -0
- package/package.json +5 -1
- package/dist/accui.css +0 -1
- package/dist/nuxt/module.cjs.js +0 -1
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.cjs.js +0 -1
- package/dist/nuxt/runtime/composables/useStrandsAuth.cjs.js +0 -1
- package/dist/nuxt/runtime/middleware/auth.d.ts +0 -7
- package/dist/nuxt/runtime/middleware/auth.global.cjs.js +0 -1
- package/dist/nuxt/runtime/middleware/guest.d.ts +0 -7
- package/dist/nuxt/runtime/plugin.client.cjs.js +0 -1
- package/dist/nuxt/runtime/plugin.server.cjs.js +0 -1
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.cjs.js +0 -1
- package/dist/nuxt/types.d.ts +0 -45
- package/dist/nuxt-v4/module.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/middleware/auth.global.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/plugin.client.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/plugin.server.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.cjs.js +0 -1
- package/dist/nuxt-v4/types.d.ts +0 -63
- package/dist/nuxt-v4.cjs.js +0 -1
- package/dist/nuxt.cjs.js +0 -1
- package/dist/shared/defaults.d.ts +0 -2
- package/dist/strands-auth-ui.cjs.js +0 -1
- package/dist/strands-auth-ui.es.js +0 -10561
- package/dist/types/index.d.ts +0 -236
- package/dist/useStrandsAuth-CTlaiFqK.cjs +0 -1
- package/dist/useStrandsAuth-Cev-PTun.js +0 -899
- package/dist/useStrandsConfig-Cxb360Os.js +0 -179
- package/dist/useStrandsConfig-Z9_36OcV.cjs +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/slots.d.ts +0 -1
- package/dist/utils/validation.d.ts +0 -12
- package/dist/vue/components/SignedIn.vue.d.ts +0 -54
- package/dist/vue/components/SignedOut.vue.d.ts +0 -54
- package/dist/vue/components/StrandsAuth.vue.d.ts +0 -25
- package/dist/vue/components/StrandsBackupCodesModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsCompleteSignUp.vue.d.ts +0 -21
- package/dist/vue/components/StrandsConfigProvider.vue.d.ts +0 -22
- package/dist/vue/components/StrandsConfirmModal.vue.d.ts +0 -22
- package/dist/vue/components/StrandsEmailMfaSetupModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsHardwareKeySetupModal.vue.d.ts +0 -15
- package/dist/vue/components/StrandsLogo.vue.d.ts +0 -8
- package/dist/vue/components/StrandsMFASetup.vue.d.ts +0 -16
- package/dist/vue/components/StrandsMfaModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsMfaVerification.vue.d.ts +0 -17
- package/dist/vue/components/StrandsPasswordReset.vue.d.ts +0 -15
- package/dist/vue/components/StrandsSecuredFooter.vue.d.ts +0 -22
- package/dist/vue/components/StrandsSessionsModal.vue.d.ts +0 -14
- package/dist/vue/components/StrandsSettingsModal.vue.d.ts +0 -18
- package/dist/vue/components/StrandsSignIn.vue.d.ts +0 -21
- package/dist/vue/components/StrandsSignUp.vue.d.ts +0 -19
- package/dist/vue/components/StrandsTotpSetupModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsUserButton.vue.d.ts +0 -30
- package/dist/vue/components/StrandsUserProfile.vue.d.ts +0 -26
- package/dist/vue/components/SvgIcon.vue.d.ts +0 -17
- package/dist/vue/components/VirtualList.vue.d.ts +0 -37
- package/dist/vue/components/icons/IconGithub.vue.d.ts +0 -3
- package/dist/vue/components/icons/IconGoogle.vue.d.ts +0 -3
- package/dist/vue/components/icons/index.d.ts +0 -2
- package/dist/vue/components/index.d.ts +0 -26
- package/dist/vue/composables/useAuthenticatedFetch.d.ts +0 -20
- package/dist/vue/composables/useOAuthProviders.d.ts +0 -74
- package/dist/vue/composables/useStrandsAuth.d.ts +0 -130
- package/dist/vue/composables/useStrandsConfig.d.ts +0 -11
- package/dist/vue/composables/useStrandsMfa.d.ts +0 -38
- package/dist/vue/index.d.ts +0 -12
- package/dist/vue/plugins/StrandsUIPlugin.d.ts +0 -19
- package/dist/vue/ui/UiAlert.vue.d.ts +0 -31
- package/dist/vue/ui/UiAvatarEditor.vue.d.ts +0 -25
- package/dist/vue/ui/UiButton.vue.d.ts +0 -54
- package/dist/vue/ui/UiCard.vue.d.ts +0 -29
- package/dist/vue/ui/UiInput.vue.d.ts +0 -48
- package/dist/vue/ui/UiLevelProgress.vue.d.ts +0 -19
- package/dist/vue/ui/UiLink.vue.d.ts +0 -42
- package/dist/vue/ui/UiLoader.vue.d.ts +0 -15
- package/dist/vue/ui/UiModal.vue.d.ts +0 -33
- package/dist/vue/ui/UiTabs.vue.d.ts +0 -17
- package/dist/vue/ui/UiToggle.vue.d.ts +0 -15
- package/dist/vue/ui/index.d.ts +0 -29
- package/dist/vue/utils/contrast.d.ts +0 -79
- package/dist/vue/utils/debounce.d.ts +0 -12
- package/dist/vue/utils/fontPreloader.d.ts +0 -19
- package/dist/vue/utils/iconProps.d.ts +0 -9
- package/dist/vue/utils/lazyComponents.d.ts +0 -2
- package/dist/vue/utils/levels.d.ts +0 -27
- package/dist/vue/utils/performanceInit.d.ts +0 -40
- package/dist/vue/utils/requestCache.d.ts +0 -49
- package/dist/vue/utils/sounds.d.ts +0 -56
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { ref, inject, computed, provide } from "vue";
|
|
2
|
-
const STRANDS_AUTH_DEFAULTS = {
|
|
3
|
-
baseUrl: "https://your-api.example.com",
|
|
4
|
-
accentColor: "#EA00A8",
|
|
5
|
-
redirectUrl: "/",
|
|
6
|
-
onSignInUrl: "/dashboard",
|
|
7
|
-
onSignOutUrl: "/",
|
|
8
|
-
autoRefresh: true,
|
|
9
|
-
refreshInterval: 4,
|
|
10
|
-
protectedRoutes: [],
|
|
11
|
-
guestOnlyRoutes: ["/auth", "/login", "/register"],
|
|
12
|
-
devMode: false,
|
|
13
|
-
styles: true,
|
|
14
|
-
endpoints: {}
|
|
15
|
-
};
|
|
16
|
-
const DEFAULT_ENDPOINTS = {
|
|
17
|
-
signIn: "/api/v1/auth/sign-in",
|
|
18
|
-
signUp: "/api/v1/auth/sign-up",
|
|
19
|
-
signOut: "/api/v1/auth/sign-out",
|
|
20
|
-
refresh: "/api/v1/auth/refresh",
|
|
21
|
-
passwordReset: "/api/v1/auth/password-reset",
|
|
22
|
-
passwordResetConfirm: "/api/v1/auth/password-reset/confirm",
|
|
23
|
-
completeRegistration: "/api/v1/auth/complete-registration",
|
|
24
|
-
profile: "/api/v1/user/profile",
|
|
25
|
-
verifyEmail: "/api/v1/auth/verify-email",
|
|
26
|
-
oauthProviders: "/api/v1/oauth/providers",
|
|
27
|
-
oauthProvider: "/api/v1/oauth/providers/{provider_id}",
|
|
28
|
-
changeEmail: "/api/v1/user/change-email",
|
|
29
|
-
avatar: "/api/v1/user/avatar",
|
|
30
|
-
settings: "/api/v1/user/settings",
|
|
31
|
-
// Username endpoints
|
|
32
|
-
changeUsername: "/api/v1/user/username",
|
|
33
|
-
usernameCooldown: "/api/v1/user/username/cooldown",
|
|
34
|
-
checkUsernameAvailability: "/api/v1/username/{username}/available",
|
|
35
|
-
// MFA endpoints
|
|
36
|
-
mfaDevices: "/api/v1/mfa/devices",
|
|
37
|
-
mfaTotpSetup: "/api/v1/mfa/totp/setup",
|
|
38
|
-
mfaTotpVerify: "/api/v1/mfa/totp/verify",
|
|
39
|
-
mfaEmailSetup: "/api/v1/mfa/email/setup",
|
|
40
|
-
mfaEmailSend: "/api/v1/mfa/email/send",
|
|
41
|
-
mfaEmailVerify: "/api/v1/mfa/email/verify",
|
|
42
|
-
mfaDeviceDisable: "/api/v1/mfa/device/disable",
|
|
43
|
-
mfaBackupCodes: "/api/v1/mfa/backup-codes/regenerate",
|
|
44
|
-
// Hardware key endpoints
|
|
45
|
-
mfaHardwareStartRegistration: "/api/v1/mfa/hardware/start-registration",
|
|
46
|
-
mfaHardwareCompleteRegistration: "/api/v1/mfa/hardware/complete-registration",
|
|
47
|
-
// MFA sign-in specific endpoints
|
|
48
|
-
mfaSigninSendEmail: "/api/v1/auth/mfa/email/send",
|
|
49
|
-
mfaSigninVerify: "/api/v1/auth/mfa/verify",
|
|
50
|
-
mfaBackupCodeVerify: "/api/v1/auth/mfa/backup-code/verify",
|
|
51
|
-
mfaWebAuthnChallenge: "/api/v1/auth/mfa/webauthn/challenge",
|
|
52
|
-
// Session management endpoints
|
|
53
|
-
sessions: "/api/v1/sessions",
|
|
54
|
-
sessionsStats: "/api/v1/sessions/stats",
|
|
55
|
-
sessionRevoke: "/api/v1/sessions/{session_id}/revoke",
|
|
56
|
-
sessionsRevokeAll: "/api/v1/sessions/revoke-all"
|
|
57
|
-
};
|
|
58
|
-
const STRANDS_CONFIG_KEY = Symbol("strands-config");
|
|
59
|
-
const globalConfig = ref(null);
|
|
60
|
-
function provideStrandsConfig(config) {
|
|
61
|
-
globalConfig.value = config;
|
|
62
|
-
try {
|
|
63
|
-
provide(STRANDS_CONFIG_KEY, config);
|
|
64
|
-
} catch (error) {
|
|
65
|
-
console.warn("[Strands Auth] Could not provide config via Vue provide/inject. Config available via global state only.", error);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function useStrandsConfig(fallbackConfig) {
|
|
69
|
-
const injectedConfig = inject(STRANDS_CONFIG_KEY, null);
|
|
70
|
-
let nuxtConfig = null;
|
|
71
|
-
try {
|
|
72
|
-
if (typeof window !== "undefined") {
|
|
73
|
-
if (window.__STRANDS_CONFIG__) {
|
|
74
|
-
nuxtConfig = window.__STRANDS_CONFIG__;
|
|
75
|
-
} else if (window.__NUXT__) {
|
|
76
|
-
const nuxtData = window.__NUXT__;
|
|
77
|
-
nuxtConfig = nuxtData?.config?.public?.strandsAuth || nuxtData?.public?.strandsAuth || nuxtData?.strandsAuth;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
} catch (error) {
|
|
81
|
-
console.error("[Strands Auth] Error accessing runtime configuration:", error);
|
|
82
|
-
}
|
|
83
|
-
const activeConfig = computed(() => {
|
|
84
|
-
const config = {
|
|
85
|
-
...STRANDS_AUTH_DEFAULTS,
|
|
86
|
-
...fallbackConfig || {},
|
|
87
|
-
...injectedConfig || {},
|
|
88
|
-
...globalConfig.value || {},
|
|
89
|
-
...nuxtConfig || {}
|
|
90
|
-
};
|
|
91
|
-
if (config.baseUrl === STRANDS_AUTH_DEFAULTS.baseUrl && typeof window === "undefined") {
|
|
92
|
-
console.warn("[Strands Auth] No baseUrl configured for SSR. Please provide a baseUrl in your strandsAuth configuration.");
|
|
93
|
-
}
|
|
94
|
-
return config;
|
|
95
|
-
});
|
|
96
|
-
const endpoints = computed(() => {
|
|
97
|
-
const config = activeConfig.value;
|
|
98
|
-
const customEndpoints = config.endpoints || {};
|
|
99
|
-
return {
|
|
100
|
-
signIn: customEndpoints.signIn || DEFAULT_ENDPOINTS.signIn,
|
|
101
|
-
signUp: customEndpoints.signUp || DEFAULT_ENDPOINTS.signUp,
|
|
102
|
-
signOut: customEndpoints.signOut || DEFAULT_ENDPOINTS.signOut,
|
|
103
|
-
refresh: customEndpoints.refresh || DEFAULT_ENDPOINTS.refresh,
|
|
104
|
-
passwordReset: customEndpoints.passwordReset || DEFAULT_ENDPOINTS.passwordReset,
|
|
105
|
-
passwordResetConfirm: customEndpoints.passwordResetConfirm || DEFAULT_ENDPOINTS.passwordResetConfirm,
|
|
106
|
-
completeRegistration: customEndpoints.completeRegistration || DEFAULT_ENDPOINTS.completeRegistration,
|
|
107
|
-
profile: customEndpoints.profile || DEFAULT_ENDPOINTS.profile,
|
|
108
|
-
verifyEmail: customEndpoints.verifyEmail || DEFAULT_ENDPOINTS.verifyEmail,
|
|
109
|
-
oauthProviders: customEndpoints.oauthProviders || DEFAULT_ENDPOINTS.oauthProviders,
|
|
110
|
-
oauthProvider: customEndpoints.oauthProvider || DEFAULT_ENDPOINTS.oauthProvider,
|
|
111
|
-
changeEmail: customEndpoints.changeEmail || DEFAULT_ENDPOINTS.changeEmail,
|
|
112
|
-
avatar: customEndpoints.avatar || DEFAULT_ENDPOINTS.avatar,
|
|
113
|
-
settings: customEndpoints.settings || DEFAULT_ENDPOINTS.settings,
|
|
114
|
-
// Username endpoints
|
|
115
|
-
changeUsername: customEndpoints.changeUsername || DEFAULT_ENDPOINTS.changeUsername,
|
|
116
|
-
usernameCooldown: customEndpoints.usernameCooldown || DEFAULT_ENDPOINTS.usernameCooldown,
|
|
117
|
-
checkUsernameAvailability: customEndpoints.checkUsernameAvailability || DEFAULT_ENDPOINTS.checkUsernameAvailability,
|
|
118
|
-
// MFA endpoints
|
|
119
|
-
mfaDevices: customEndpoints.mfaDevices || DEFAULT_ENDPOINTS.mfaDevices,
|
|
120
|
-
mfaTotpSetup: customEndpoints.mfaTotpSetup || DEFAULT_ENDPOINTS.mfaTotpSetup,
|
|
121
|
-
mfaTotpVerify: customEndpoints.mfaTotpVerify || DEFAULT_ENDPOINTS.mfaTotpVerify,
|
|
122
|
-
mfaEmailSetup: customEndpoints.mfaEmailSetup || DEFAULT_ENDPOINTS.mfaEmailSetup,
|
|
123
|
-
mfaEmailSend: customEndpoints.mfaEmailSend || DEFAULT_ENDPOINTS.mfaEmailSend,
|
|
124
|
-
mfaEmailVerify: customEndpoints.mfaEmailVerify || DEFAULT_ENDPOINTS.mfaEmailVerify,
|
|
125
|
-
mfaDeviceDisable: customEndpoints.mfaDeviceDisable || DEFAULT_ENDPOINTS.mfaDeviceDisable,
|
|
126
|
-
mfaBackupCodes: customEndpoints.mfaBackupCodes || DEFAULT_ENDPOINTS.mfaBackupCodes,
|
|
127
|
-
// Hardware key endpoints
|
|
128
|
-
mfaHardwareStartRegistration: customEndpoints.mfaHardwareStartRegistration || DEFAULT_ENDPOINTS.mfaHardwareStartRegistration,
|
|
129
|
-
mfaHardwareCompleteRegistration: customEndpoints.mfaHardwareCompleteRegistration || DEFAULT_ENDPOINTS.mfaHardwareCompleteRegistration,
|
|
130
|
-
// MFA sign-in specific endpoints
|
|
131
|
-
mfaSigninSendEmail: customEndpoints.mfaSigninSendEmail || DEFAULT_ENDPOINTS.mfaSigninSendEmail,
|
|
132
|
-
mfaSigninVerify: customEndpoints.mfaSigninVerify || DEFAULT_ENDPOINTS.mfaSigninVerify,
|
|
133
|
-
mfaBackupCodeVerify: customEndpoints.mfaBackupCodeVerify || DEFAULT_ENDPOINTS.mfaBackupCodeVerify,
|
|
134
|
-
mfaWebAuthnChallenge: customEndpoints.mfaWebAuthnChallenge || DEFAULT_ENDPOINTS.mfaWebAuthnChallenge,
|
|
135
|
-
// Session management endpoints
|
|
136
|
-
sessions: customEndpoints.sessions || DEFAULT_ENDPOINTS.sessions,
|
|
137
|
-
sessionsStats: customEndpoints.sessionsStats || DEFAULT_ENDPOINTS.sessionsStats,
|
|
138
|
-
sessionRevoke: customEndpoints.sessionRevoke || DEFAULT_ENDPOINTS.sessionRevoke,
|
|
139
|
-
sessionsRevokeAll: customEndpoints.sessionsRevokeAll || DEFAULT_ENDPOINTS.sessionsRevokeAll
|
|
140
|
-
};
|
|
141
|
-
});
|
|
142
|
-
const getUrl = (endpoint) => {
|
|
143
|
-
const config = activeConfig.value;
|
|
144
|
-
if (!config.baseUrl) {
|
|
145
|
-
throw new Error("Base URL is required in configuration");
|
|
146
|
-
}
|
|
147
|
-
let endpointPath;
|
|
148
|
-
if (typeof endpoint === "string" && endpoint in endpoints.value) {
|
|
149
|
-
endpointPath = endpoints.value[endpoint];
|
|
150
|
-
} else if (typeof endpoint === "string") {
|
|
151
|
-
endpointPath = endpoint;
|
|
152
|
-
} else {
|
|
153
|
-
endpointPath = endpoints.value[endpoint];
|
|
154
|
-
}
|
|
155
|
-
const baseUrl = config.baseUrl.replace(/\/$/, "");
|
|
156
|
-
const path = endpointPath.startsWith("/") ? endpointPath : `/${endpointPath}`;
|
|
157
|
-
console.debug(`[Strands Auth] Constructing URL for endpoint "${endpoint}": ${baseUrl}${path}`);
|
|
158
|
-
return `${baseUrl}${path}`;
|
|
159
|
-
};
|
|
160
|
-
const getSupportEmail = () => {
|
|
161
|
-
const config = activeConfig.value;
|
|
162
|
-
return config.supportEmail || null;
|
|
163
|
-
};
|
|
164
|
-
return {
|
|
165
|
-
config: activeConfig,
|
|
166
|
-
endpoints,
|
|
167
|
-
getUrl,
|
|
168
|
-
getSupportEmail
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
function setStrandsConfig(config) {
|
|
172
|
-
globalConfig.value = config;
|
|
173
|
-
}
|
|
174
|
-
export {
|
|
175
|
-
STRANDS_AUTH_DEFAULTS as S,
|
|
176
|
-
provideStrandsConfig as p,
|
|
177
|
-
setStrandsConfig as s,
|
|
178
|
-
useStrandsConfig as u
|
|
179
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a={baseUrl:"https://your-api.example.com",accentColor:"#EA00A8",redirectUrl:"/",onSignInUrl:"/dashboard",onSignOutUrl:"/",autoRefresh:!0,refreshInterval:4,protectedRoutes:[],guestOnlyRoutes:["/auth","/login","/register"],devMode:!1,styles:!0,endpoints:{}},i="/api/v1/auth/sign-in",s="/api/v1/auth/sign-up",t="/api/v1/auth/sign-out",r="/api/v1/auth/refresh",n="/api/v1/auth/password-reset",o="/api/v1/auth/password-reset/confirm",p="/api/v1/auth/complete-registration",u="/api/v1/user/profile",l="/api/v1/auth/verify-email",f="/api/v1/oauth/providers",m="/api/v1/oauth/providers/{provider_id}",v="/api/v1/user/change-email",d="/api/v1/user/avatar",c="/api/v1/user/settings",g="/api/v1/user/username",h="/api/v1/user/username/cooldown",S="/api/v1/username/{username}/available",w="/api/v1/mfa/devices",y="/api/v1/mfa/totp/setup",_="/api/v1/mfa/totp/verify",R="/api/v1/mfa/email/setup",b="/api/v1/mfa/email/send",U="/api/v1/mfa/email/verify",C="/api/v1/mfa/device/disable",E="/api/v1/mfa/backup-codes/regenerate",A="/api/v1/mfa/hardware/start-registration",k="/api/v1/mfa/hardware/complete-registration",T="/api/v1/auth/mfa/email/send",D="/api/v1/auth/mfa/verify",V="/api/v1/auth/mfa/backup-code/verify",N="/api/v1/auth/mfa/webauthn/challenge",I="/api/v1/sessions",O="/api/v1/sessions/stats",x="/api/v1/sessions/{session_id}/revoke",B="/api/v1/sessions/revoke-all",H=Symbol("strands-config"),P=e.ref(null);exports.STRANDS_AUTH_DEFAULTS=a,exports.provideStrandsConfig=function(a){P.value=a;try{e.provide(H,a)}catch(i){}},exports.setStrandsConfig=function(e){P.value=e},exports.useStrandsConfig=function($){const F=e.inject(H,null);let W=null;try{if("undefined"!=typeof window)if(window.__STRANDS_CONFIG__)W=window.__STRANDS_CONFIG__;else if(window.__NUXT__){const e=window.__NUXT__;W=e?.config?.public?.strandsAuth||e?.public?.strandsAuth||e?.strandsAuth}}catch(L){}const q=e.computed(()=>{const e={...a,...$||{},...F||{},...P.value||{},...W||{}};return e.baseUrl,e}),G=e.computed(()=>{const e=q.value.endpoints||{};return{signIn:e.signIn||i,signUp:e.signUp||s,signOut:e.signOut||t,refresh:e.refresh||r,passwordReset:e.passwordReset||n,passwordResetConfirm:e.passwordResetConfirm||o,completeRegistration:e.completeRegistration||p,profile:e.profile||u,verifyEmail:e.verifyEmail||l,oauthProviders:e.oauthProviders||f,oauthProvider:e.oauthProvider||m,changeEmail:e.changeEmail||v,avatar:e.avatar||d,settings:e.settings||c,changeUsername:e.changeUsername||g,usernameCooldown:e.usernameCooldown||h,checkUsernameAvailability:e.checkUsernameAvailability||S,mfaDevices:e.mfaDevices||w,mfaTotpSetup:e.mfaTotpSetup||y,mfaTotpVerify:e.mfaTotpVerify||_,mfaEmailSetup:e.mfaEmailSetup||R,mfaEmailSend:e.mfaEmailSend||b,mfaEmailVerify:e.mfaEmailVerify||U,mfaDeviceDisable:e.mfaDeviceDisable||C,mfaBackupCodes:e.mfaBackupCodes||E,mfaHardwareStartRegistration:e.mfaHardwareStartRegistration||A,mfaHardwareCompleteRegistration:e.mfaHardwareCompleteRegistration||k,mfaSigninSendEmail:e.mfaSigninSendEmail||T,mfaSigninVerify:e.mfaSigninVerify||D,mfaBackupCodeVerify:e.mfaBackupCodeVerify||V,mfaWebAuthnChallenge:e.mfaWebAuthnChallenge||N,sessions:e.sessions||I,sessionsStats:e.sessionsStats||O,sessionRevoke:e.sessionRevoke||x,sessionsRevokeAll:e.sessionsRevokeAll||B}});return{config:q,endpoints:G,getUrl:e=>{const a=q.value;if(!a.baseUrl)throw new Error("Base URL is required in configuration");let i;i="string"==typeof e&&e in G.value?G.value[e]:"string"==typeof e?e:G.value[e];return`${a.baseUrl.replace(/\/$/,"")}${i.startsWith("/")?i:`/${i}`}`},getSupportEmail:()=>q.value.supportEmail||null}};
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './validation';
|
package/dist/utils/slots.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const slotHasContent: (slotName: string, slots: any) => boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const isValidEmail: (email: string) => boolean;
|
|
2
|
-
export declare const validatePassword: (password: string) => {
|
|
3
|
-
isValid: boolean;
|
|
4
|
-
strength: "weak" | "medium" | "strong";
|
|
5
|
-
errors: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare const isValidName: (name: string) => boolean;
|
|
8
|
-
export declare const isRequired: (value: string) => boolean;
|
|
9
|
-
export declare const passwordsMatch: (password: string, confirmation: string) => boolean;
|
|
10
|
-
export declare const getInitials: (firstName?: string, lastName?: string) => string;
|
|
11
|
-
export declare const formatDate: (date: string | Date) => string;
|
|
12
|
-
export declare const debounce: <T extends (...args: any[]) => any>(func: T, wait: number) => ((...args: Parameters<T>) => void);
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
showFallback?: boolean;
|
|
4
|
-
invert?: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {
|
|
10
|
-
user: {
|
|
11
|
-
id: string;
|
|
12
|
-
email: string;
|
|
13
|
-
firstName: string;
|
|
14
|
-
lastName: string;
|
|
15
|
-
avatar?: string | undefined;
|
|
16
|
-
mfaEnabled: boolean;
|
|
17
|
-
emailVerified: boolean;
|
|
18
|
-
passwordUpdatedAt?: (string | Date) | undefined;
|
|
19
|
-
settings?: any;
|
|
20
|
-
xp: number;
|
|
21
|
-
level: number;
|
|
22
|
-
next_level_xp: number;
|
|
23
|
-
username?: string | undefined;
|
|
24
|
-
usernameLastChangedAt?: (string | Date) | undefined;
|
|
25
|
-
createdAt: string | Date;
|
|
26
|
-
updatedAt: string | Date;
|
|
27
|
-
} | null;
|
|
28
|
-
signOut: () => Promise<void>;
|
|
29
|
-
invert: boolean;
|
|
30
|
-
}): any;
|
|
31
|
-
fallback?(_: {
|
|
32
|
-
signIn: () => void;
|
|
33
|
-
}): any;
|
|
34
|
-
loading?(_: {}): any;
|
|
35
|
-
};
|
|
36
|
-
refs: {};
|
|
37
|
-
rootEl: any;
|
|
38
|
-
};
|
|
39
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
40
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
41
|
-
"sign-in-required": () => any;
|
|
42
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
43
|
-
"onSign-in-required"?: (() => any) | undefined;
|
|
44
|
-
}>, {
|
|
45
|
-
showFallback: boolean;
|
|
46
|
-
invert: boolean;
|
|
47
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
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
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
showFallback?: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: {
|
|
8
|
-
default?(_: {
|
|
9
|
-
signIn: () => void;
|
|
10
|
-
signUp: () => void;
|
|
11
|
-
}): any;
|
|
12
|
-
fallback?(_: {
|
|
13
|
-
user: {
|
|
14
|
-
id: string;
|
|
15
|
-
email: string;
|
|
16
|
-
firstName: string;
|
|
17
|
-
lastName: string;
|
|
18
|
-
avatar?: string | undefined;
|
|
19
|
-
mfaEnabled: boolean;
|
|
20
|
-
emailVerified: boolean;
|
|
21
|
-
passwordUpdatedAt?: (string | Date) | undefined;
|
|
22
|
-
settings?: any;
|
|
23
|
-
xp: number;
|
|
24
|
-
level: number;
|
|
25
|
-
next_level_xp: number;
|
|
26
|
-
username?: string | undefined;
|
|
27
|
-
usernameLastChangedAt?: (string | Date) | undefined;
|
|
28
|
-
createdAt: string | Date;
|
|
29
|
-
updatedAt: string | Date;
|
|
30
|
-
} | null;
|
|
31
|
-
signOut: () => Promise<void>;
|
|
32
|
-
}): any;
|
|
33
|
-
loading?(_: {}): any;
|
|
34
|
-
};
|
|
35
|
-
refs: {};
|
|
36
|
-
rootEl: any;
|
|
37
|
-
};
|
|
38
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
39
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
40
|
-
"sign-in-clicked": () => any;
|
|
41
|
-
"sign-up-clicked": () => any;
|
|
42
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
43
|
-
"onSign-in-clicked"?: (() => any) | undefined;
|
|
44
|
-
"onSign-up-clicked"?: (() => any) | undefined;
|
|
45
|
-
}>, {
|
|
46
|
-
showFallback: boolean;
|
|
47
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
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
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
mode?: 'signin' | 'signup' | 'reset-password';
|
|
5
|
-
redirectUrl?: string;
|
|
6
|
-
inModal?: boolean;
|
|
7
|
-
config?: StrandsAuthConfig;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
|
-
success: (user: any) => any;
|
|
11
|
-
error: (error: string) => any;
|
|
12
|
-
"forgot-password": () => any;
|
|
13
|
-
"password-reset-sent": (email: string) => any;
|
|
14
|
-
"mode-changed": (mode: "signin" | "signup" | "reset-password") => any;
|
|
15
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
-
onSuccess?: ((user: any) => any) | undefined;
|
|
17
|
-
onError?: ((error: string) => any) | undefined;
|
|
18
|
-
"onForgot-password"?: (() => any) | undefined;
|
|
19
|
-
"onPassword-reset-sent"?: ((email: string) => any) | undefined;
|
|
20
|
-
"onMode-changed"?: ((mode: "signin" | "signup" | "reset-password") => any) | undefined;
|
|
21
|
-
}>, {
|
|
22
|
-
mode: "signin" | "signup" | "reset-password";
|
|
23
|
-
inModal: boolean;
|
|
24
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MfaDevice } from '../../types';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
show: boolean;
|
|
5
|
-
device?: MfaDevice | null;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
-
close: () => any;
|
|
9
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
-
onClose?: (() => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
token?: string;
|
|
5
|
-
redirectUrl?: string;
|
|
6
|
-
config?: StrandsAuthConfig;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
-
success: (result: any) => any;
|
|
10
|
-
error: (error: string) => any;
|
|
11
|
-
"invalid-token": () => any;
|
|
12
|
-
"request-new-link": () => any;
|
|
13
|
-
"start-registration": () => any;
|
|
14
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
15
|
-
onSuccess?: ((result: any) => any) | undefined;
|
|
16
|
-
onError?: ((error: string) => any) | undefined;
|
|
17
|
-
"onInvalid-token"?: (() => any) | undefined;
|
|
18
|
-
"onRequest-new-link"?: (() => any) | undefined;
|
|
19
|
-
"onStart-registration"?: (() => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
config: StrandsAuthConfig;
|
|
5
|
-
}
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {};
|
|
12
|
-
rootEl: any;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline';
|
|
3
|
-
interface Props {
|
|
4
|
-
show: boolean;
|
|
5
|
-
title: string;
|
|
6
|
-
message: string;
|
|
7
|
-
confirmText?: string;
|
|
8
|
-
cancelText?: string;
|
|
9
|
-
variant?: ButtonVariant;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
|
-
cancel: () => any;
|
|
13
|
-
confirm: () => any;
|
|
14
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
15
|
-
onCancel?: (() => any) | undefined;
|
|
16
|
-
onConfirm?: (() => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
variant: ButtonVariant;
|
|
19
|
-
confirmText: string;
|
|
20
|
-
cancelText: string;
|
|
21
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
show: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
6
|
-
success: () => any;
|
|
7
|
-
close: () => any;
|
|
8
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
-
onSuccess?: (() => any) | undefined;
|
|
10
|
-
onClose?: (() => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
show: boolean;
|
|
4
|
-
deviceType?: 'passkey' | 'hardware';
|
|
5
|
-
}
|
|
6
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
|
-
success: () => any;
|
|
8
|
-
close: () => any;
|
|
9
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
-
onSuccess?: (() => any) | undefined;
|
|
11
|
-
onClose?: (() => any) | undefined;
|
|
12
|
-
}>, {
|
|
13
|
-
deviceType: "passkey" | "hardware";
|
|
14
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
class?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
|
-
class: string;
|
|
7
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
show?: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
6
|
-
success: () => any;
|
|
7
|
-
error: (error: string) => any;
|
|
8
|
-
close: () => any;
|
|
9
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
-
onSuccess?: (() => any) | undefined;
|
|
11
|
-
onError?: ((error: string) => any) | undefined;
|
|
12
|
-
onClose?: (() => any) | undefined;
|
|
13
|
-
}>, {
|
|
14
|
-
show: boolean;
|
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
show: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
6
|
-
close: () => any;
|
|
7
|
-
"mfa-updated": () => any;
|
|
8
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
-
onClose?: (() => any) | undefined;
|
|
10
|
-
"onMfa-updated"?: (() => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MfaDevice } from '../../types';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
show: boolean;
|
|
5
|
-
availableMfaMethods?: MfaDevice[];
|
|
6
|
-
sessionId?: string | null;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
-
success: () => any;
|
|
10
|
-
error: (error: string) => any;
|
|
11
|
-
close: () => any;
|
|
12
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
-
onSuccess?: (() => any) | undefined;
|
|
14
|
-
onError?: ((error: string) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
config?: StrandsAuthConfig;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
|
-
success: (email: string) => any;
|
|
8
|
-
error: (error: string) => any;
|
|
9
|
-
"back-to-signin": () => any;
|
|
10
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
-
onSuccess?: ((email: string) => any) | undefined;
|
|
12
|
-
onError?: ((error: string) => any) | undefined;
|
|
13
|
-
"onBack-to-signin"?: (() => any) | undefined;
|
|
14
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
config?: StrandsAuthConfig;
|
|
5
|
-
}
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {};
|
|
12
|
-
rootEl: HTMLDivElement;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
modelValue: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
6
|
-
"update:modelValue": (value: boolean) => any;
|
|
7
|
-
sessionsUpdated: () => any;
|
|
8
|
-
currentSessionRevoked: () => any;
|
|
9
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
11
|
-
onSessionsUpdated?: (() => any) | undefined;
|
|
12
|
-
onCurrentSessionRevoked?: (() => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface AudioSettings {
|
|
3
|
-
levelUpSounds: boolean;
|
|
4
|
-
milestoneSounds: boolean;
|
|
5
|
-
}
|
|
6
|
-
interface Props {
|
|
7
|
-
open?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
|
-
close: () => any;
|
|
11
|
-
"settings-updated": (settings: AudioSettings) => any;
|
|
12
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
-
onClose?: (() => any) | undefined;
|
|
14
|
-
"onSettings-updated"?: ((settings: AudioSettings) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
open: boolean;
|
|
17
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
redirectUrl?: string;
|
|
5
|
-
oauthScopes?: string[];
|
|
6
|
-
config?: StrandsAuthConfig;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
-
success: (user: any) => any;
|
|
10
|
-
error: (error: string) => any;
|
|
11
|
-
"forgot-password": () => any;
|
|
12
|
-
"switch-to-signup": () => any;
|
|
13
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
14
|
-
onSuccess?: ((user: any) => any) | undefined;
|
|
15
|
-
onError?: ((error: string) => any) | undefined;
|
|
16
|
-
"onForgot-password"?: (() => any) | undefined;
|
|
17
|
-
"onSwitch-to-signup"?: (() => any) | undefined;
|
|
18
|
-
}>, {
|
|
19
|
-
oauthScopes: string[];
|
|
20
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
redirectUrl?: string;
|
|
5
|
-
oauthScopes?: string[];
|
|
6
|
-
config?: StrandsAuthConfig;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
-
success: (user: any) => any;
|
|
10
|
-
error: (error: string) => any;
|
|
11
|
-
"switch-to-signin": () => any;
|
|
12
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
-
onSuccess?: ((user: any) => any) | undefined;
|
|
14
|
-
onError?: ((error: string) => any) | undefined;
|
|
15
|
-
"onSwitch-to-signin"?: (() => any) | undefined;
|
|
16
|
-
}>, {
|
|
17
|
-
oauthScopes: string[];
|
|
18
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
show: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
6
|
-
success: () => any;
|
|
7
|
-
close: () => any;
|
|
8
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
-
onSuccess?: (() => any) | undefined;
|
|
10
|
-
onClose?: (() => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
-
export default _default;
|