@thunderid/vue 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/ThunderIDVueClient.d.ts +65 -0
- package/dist/ThunderIDVueClient.d.ts.map +1 -0
- package/dist/__temp__/api.d.ts +64 -0
- package/dist/__temp__/api.d.ts.map +1 -0
- package/dist/__temp__/models.d.ts +44 -0
- package/dist/__temp__/models.d.ts.map +1 -0
- package/dist/api/getAllOrganizations.d.ts +25 -0
- package/dist/api/getAllOrganizations.d.ts.map +1 -0
- package/dist/api/getMeOrganizations.d.ts +25 -0
- package/dist/api/getMeOrganizations.d.ts.map +1 -0
- package/dist/api/getSchemas.d.ts +25 -0
- package/dist/api/getSchemas.d.ts.map +1 -0
- package/dist/api/getScim2Me.d.ts +25 -0
- package/dist/api/getScim2Me.d.ts.map +1 -0
- package/dist/api/updateMeProfile.d.ts +25 -0
- package/dist/api/updateMeProfile.d.ts.map +1 -0
- package/dist/cjs/index.cjs +13392 -0
- package/dist/components/actions/BaseSignInButton.d.ts +35 -0
- package/dist/components/actions/BaseSignInButton.d.ts.map +1 -0
- package/dist/components/actions/BaseSignOutButton.d.ts +35 -0
- package/dist/components/actions/BaseSignOutButton.d.ts.map +1 -0
- package/dist/components/actions/BaseSignUpButton.d.ts +35 -0
- package/dist/components/actions/BaseSignUpButton.d.ts.map +1 -0
- package/dist/components/actions/SignInButton.d.ts +27 -0
- package/dist/components/actions/SignInButton.d.ts.map +1 -0
- package/dist/components/actions/SignOutButton.d.ts +24 -0
- package/dist/components/actions/SignOutButton.d.ts.map +1 -0
- package/dist/components/actions/SignUpButton.d.ts +27 -0
- package/dist/components/actions/SignUpButton.d.ts.map +1 -0
- package/dist/components/adapters/FacebookButton.d.ts +25 -0
- package/dist/components/adapters/FacebookButton.d.ts.map +1 -0
- package/dist/components/adapters/GitHubButton.d.ts +25 -0
- package/dist/components/adapters/GitHubButton.d.ts.map +1 -0
- package/dist/components/adapters/GoogleButton.d.ts +25 -0
- package/dist/components/adapters/GoogleButton.d.ts.map +1 -0
- package/dist/components/adapters/MicrosoftButton.d.ts +25 -0
- package/dist/components/adapters/MicrosoftButton.d.ts.map +1 -0
- package/dist/components/auth/Callback.d.ts +32 -0
- package/dist/components/auth/Callback.d.ts.map +1 -0
- package/dist/components/auth/sign-in/AuthOptionFactory.d.ts +19 -0
- package/dist/components/auth/sign-in/AuthOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts +69 -0
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -0
- package/dist/components/auth/sign-in/BaseSignIn.d.ts +28 -0
- package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/SignIn.d.ts +28 -0
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts +27 -0
- package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/SignIn.d.ts +27 -0
- package/dist/components/auth/sign-in/v1/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts +47 -0
- package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts +19 -0
- package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts +83 -0
- package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/SignIn.d.ts +56 -0
- package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-up/BaseSignUp.d.ts +33 -0
- package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/SignUp.d.ts +29 -0
- package/dist/components/auth/sign-up/SignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts +49 -0
- package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/SignUp.d.ts +31 -0
- package/dist/components/auth/sign-up/v1/SignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts +50 -0
- package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts +73 -0
- package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v2/SignUp.d.ts +26 -0
- package/dist/components/auth/sign-up/v2/SignUp.d.ts.map +1 -0
- package/dist/components/control/Loading.d.ts +34 -0
- package/dist/components/control/Loading.d.ts.map +1 -0
- package/dist/components/control/SignedIn.d.ts +34 -0
- package/dist/components/control/SignedIn.d.ts.map +1 -0
- package/dist/components/control/SignedOut.d.ts +34 -0
- package/dist/components/control/SignedOut.d.ts.map +1 -0
- package/dist/components/factories/FieldFactory.d.ts +52 -0
- package/dist/components/factories/FieldFactory.d.ts.map +1 -0
- package/dist/components/presentation/accept-invite/AcceptInvite.d.ts +29 -0
- package/dist/components/presentation/accept-invite/AcceptInvite.d.ts.map +1 -0
- package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts +83 -0
- package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts.map +1 -0
- package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts +26 -0
- package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts.map +1 -0
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +35 -0
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts.map +1 -0
- package/dist/components/presentation/create-organization/CreateOrganization.d.ts +26 -0
- package/dist/components/presentation/create-organization/CreateOrganization.d.ts.map +1 -0
- package/dist/components/presentation/invite-user/BaseInviteUser.d.ts +81 -0
- package/dist/components/presentation/invite-user/BaseInviteUser.d.ts.map +1 -0
- package/dist/components/presentation/invite-user/InviteUser.d.ts +26 -0
- package/dist/components/presentation/invite-user/InviteUser.d.ts.map +1 -0
- package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts +26 -0
- package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +37 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts.map +1 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts +26 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/organization/Organization.d.ts +39 -0
- package/dist/components/presentation/organization/Organization.d.ts.map +1 -0
- package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts +24 -0
- package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts.map +1 -0
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +33 -0
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts.map +1 -0
- package/dist/components/presentation/organization-list/OrganizationList.d.ts +26 -0
- package/dist/components/presentation/organization-list/OrganizationList.d.ts.map +1 -0
- package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts +27 -0
- package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts.map +1 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +25 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts.map +1 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts +26 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts.map +1 -0
- package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts +26 -0
- package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +40 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts.map +1 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts +26 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/user/User.d.ts +39 -0
- package/dist/components/presentation/user/User.d.ts.map +1 -0
- package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts +59 -0
- package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts.map +1 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +46 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.d.ts +44 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.d.ts.map +1 -0
- package/dist/components/presentation/user-profile/BaseUserProfile.d.ts +40 -0
- package/dist/components/presentation/user-profile/BaseUserProfile.d.ts.map +1 -0
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts +34 -0
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -0
- package/dist/components/presentation/user-profile/UserProfile.d.ts +21 -0
- package/dist/components/presentation/user-profile/UserProfile.d.ts.map +1 -0
- package/dist/components/primitives/Alert/Alert.css.d.ts +31 -0
- package/dist/components/primitives/Alert/Alert.css.d.ts.map +1 -0
- package/dist/components/primitives/Alert/Alert.d.ts +21 -0
- package/dist/components/primitives/Alert/Alert.d.ts.map +1 -0
- package/dist/components/primitives/Alert/index.d.ts +19 -0
- package/dist/components/primitives/Alert/index.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.css.d.ts +37 -0
- package/dist/components/primitives/Button/Button.css.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.d.ts +21 -0
- package/dist/components/primitives/Button/Button.d.ts.map +1 -0
- package/dist/components/primitives/Button/index.d.ts +19 -0
- package/dist/components/primitives/Button/index.d.ts.map +1 -0
- package/dist/components/primitives/Card/Card.css.d.ts +30 -0
- package/dist/components/primitives/Card/Card.css.d.ts.map +1 -0
- package/dist/components/primitives/Card/Card.d.ts +21 -0
- package/dist/components/primitives/Card/Card.d.ts.map +1 -0
- package/dist/components/primitives/Card/index.d.ts +19 -0
- package/dist/components/primitives/Card/index.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +31 -0
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/index.d.ts +19 -0
- package/dist/components/primitives/Checkbox/index.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +31 -0
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/DatePicker.d.ts +21 -0
- package/dist/components/primitives/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/index.d.ts +19 -0
- package/dist/components/primitives/DatePicker/index.d.ts.map +1 -0
- package/dist/components/primitives/Divider/Divider.css.d.ts +33 -0
- package/dist/components/primitives/Divider/Divider.css.d.ts.map +1 -0
- package/dist/components/primitives/Divider/Divider.d.ts +21 -0
- package/dist/components/primitives/Divider/Divider.d.ts.map +1 -0
- package/dist/components/primitives/Divider/index.d.ts +19 -0
- package/dist/components/primitives/Divider/index.d.ts.map +1 -0
- package/dist/components/primitives/Icons.d.ts +35 -0
- package/dist/components/primitives/Icons.d.ts.map +1 -0
- package/dist/components/primitives/Logo/Logo.css.d.ts +28 -0
- package/dist/components/primitives/Logo/Logo.css.d.ts.map +1 -0
- package/dist/components/primitives/Logo/Logo.d.ts +21 -0
- package/dist/components/primitives/Logo/Logo.d.ts.map +1 -0
- package/dist/components/primitives/Logo/index.d.ts +19 -0
- package/dist/components/primitives/Logo/index.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/OtpField.css.d.ts +28 -0
- package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts +21 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/index.d.ts +19 -0
- package/dist/components/primitives/OtpField/index.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +31 -0
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/PasswordField.d.ts +21 -0
- package/dist/components/primitives/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/index.d.ts +19 -0
- package/dist/components/primitives/PasswordField/index.d.ts.map +1 -0
- package/dist/components/primitives/Select/Select.css.d.ts +31 -0
- package/dist/components/primitives/Select/Select.css.d.ts.map +1 -0
- package/dist/components/primitives/Select/Select.d.ts +26 -0
- package/dist/components/primitives/Select/Select.d.ts.map +1 -0
- package/dist/components/primitives/Select/index.d.ts +19 -0
- package/dist/components/primitives/Select/index.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/Spinner.css.d.ts +34 -0
- package/dist/components/primitives/Spinner/Spinner.css.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/Spinner.d.ts +21 -0
- package/dist/components/primitives/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/index.d.ts +19 -0
- package/dist/components/primitives/Spinner/index.d.ts.map +1 -0
- package/dist/components/primitives/TextField/TextField.css.d.ts +31 -0
- package/dist/components/primitives/TextField/TextField.css.d.ts.map +1 -0
- package/dist/components/primitives/TextField/TextField.d.ts +21 -0
- package/dist/components/primitives/TextField/TextField.d.ts.map +1 -0
- package/dist/components/primitives/TextField/index.d.ts +19 -0
- package/dist/components/primitives/TextField/index.d.ts.map +1 -0
- package/dist/components/primitives/Typography/Typography.css.d.ts +31 -0
- package/dist/components/primitives/Typography/Typography.css.d.ts.map +1 -0
- package/dist/components/primitives/Typography/Typography.d.ts +21 -0
- package/dist/components/primitives/Typography/Typography.d.ts.map +1 -0
- package/dist/components/primitives/Typography/index.d.ts +19 -0
- package/dist/components/primitives/Typography/index.d.ts.map +1 -0
- package/dist/composables/useBranding.d.ts +44 -0
- package/dist/composables/useBranding.d.ts.map +1 -0
- package/dist/composables/useFlow.d.ts +46 -0
- package/dist/composables/useFlow.d.ts.map +1 -0
- package/dist/composables/useFlowMeta.d.ts +42 -0
- package/dist/composables/useFlowMeta.d.ts.map +1 -0
- package/dist/composables/useI18n.d.ts +46 -0
- package/dist/composables/useI18n.d.ts.map +1 -0
- package/dist/composables/useOAuthCallback.d.ts +66 -0
- package/dist/composables/useOAuthCallback.d.ts.map +1 -0
- package/dist/composables/useOrganization.d.ts +42 -0
- package/dist/composables/useOrganization.d.ts.map +1 -0
- package/dist/composables/useTheme.d.ts +44 -0
- package/dist/composables/useTheme.d.ts.map +1 -0
- package/dist/composables/useThunderID.d.ts +49 -0
- package/dist/composables/useThunderID.d.ts.map +1 -0
- package/dist/composables/useUser.d.ts +45 -0
- package/dist/composables/useUser.d.ts.map +1 -0
- package/dist/composables/v2/useOAuthCallback.d.ts +70 -0
- package/dist/composables/v2/useOAuthCallback.d.ts.map +1 -0
- package/dist/index.d.ts +124 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13168 -0
- package/dist/keys.d.ts +52 -0
- package/dist/keys.d.ts.map +1 -0
- package/dist/models/config.d.ts +20 -0
- package/dist/models/config.d.ts.map +1 -0
- package/dist/models/contexts.d.ts +246 -0
- package/dist/models/contexts.d.ts.map +1 -0
- package/dist/plugins/ThunderIDPlugin.d.ts +72 -0
- package/dist/plugins/ThunderIDPlugin.d.ts.map +1 -0
- package/dist/providers/BrandingProvider.d.ts +30 -0
- package/dist/providers/BrandingProvider.d.ts.map +1 -0
- package/dist/providers/FlowMetaProvider.d.ts +21 -0
- package/dist/providers/FlowMetaProvider.d.ts.map +1 -0
- package/dist/providers/FlowProvider.d.ts +21 -0
- package/dist/providers/FlowProvider.d.ts.map +1 -0
- package/dist/providers/I18nProvider.d.ts +21 -0
- package/dist/providers/I18nProvider.d.ts.map +1 -0
- package/dist/providers/OrganizationProvider.d.ts +21 -0
- package/dist/providers/OrganizationProvider.d.ts.map +1 -0
- package/dist/providers/ThemeProvider.d.ts +21 -0
- package/dist/providers/ThemeProvider.d.ts.map +1 -0
- package/dist/providers/ThunderIDProvider.d.ts +36 -0
- package/dist/providers/ThunderIDProvider.d.ts.map +1 -0
- package/dist/providers/UserProvider.d.ts +21 -0
- package/dist/providers/UserProvider.d.ts.map +1 -0
- package/dist/router/callbackRoute.d.ts +88 -0
- package/dist/router/callbackRoute.d.ts.map +1 -0
- package/dist/router/guard.d.ts +97 -0
- package/dist/router/guard.d.ts.map +1 -0
- package/dist/styles/animations.css.d.ts +29 -0
- package/dist/styles/animations.css.d.ts.map +1 -0
- package/dist/styles/defaults.css.d.ts +32 -0
- package/dist/styles/defaults.css.d.ts.map +1 -0
- package/dist/styles/injectStyles.d.ts +24 -0
- package/dist/styles/injectStyles.d.ts.map +1 -0
- package/dist/theme/getActiveTheme.d.ts +29 -0
- package/dist/theme/getActiveTheme.d.ts.map +1 -0
- package/dist/theme/themeDetection.d.ts +31 -0
- package/dist/theme/themeDetection.d.ts.map +1 -0
- package/dist/utils/getDisplayName.d.ts +21 -0
- package/dist/utils/getDisplayName.d.ts.map +1 -0
- package/dist/utils/getMappedUserProfileValue.d.ts +21 -0
- package/dist/utils/getMappedUserProfileValue.d.ts.map +1 -0
- package/dist/utils/handleWebAuthnAuthentication.d.ts +28 -0
- package/dist/utils/handleWebAuthnAuthentication.d.ts.map +1 -0
- package/dist/utils/hasAuthParamsInUrl.d.ts +27 -0
- package/dist/utils/hasAuthParamsInUrl.d.ts.map +1 -0
- package/dist/utils/http.d.ts +27 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +31 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/navigate.d.ts +28 -0
- package/dist/utils/navigate.d.ts.map +1 -0
- package/dist/utils/oauth.d.ts +25 -0
- package/dist/utils/oauth.d.ts.map +1 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +29 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts.map +1 -0
- package/dist/utils/v2/flowTransformer.d.ts +97 -0
- package/dist/utils/v2/flowTransformer.d.ts.map +1 -0
- package/dist/utils/v2/getAuthComponentHeadings.d.ts +41 -0
- package/dist/utils/v2/getAuthComponentHeadings.d.ts.map +1 -0
- package/dist/utils/v2/passkey.d.ts +32 -0
- package/dist/utils/v2/passkey.d.ts.map +1 -0
- package/dist/utils/v2/resolveTranslationsInArray.d.ts +30 -0
- package/dist/utils/v2/resolveTranslationsInArray.d.ts.map +1 -0
- package/dist/utils/v2/resolveTranslationsInObject.d.ts +30 -0
- package/dist/utils/v2/resolveTranslationsInObject.d.ts.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FlowMetaTheme, RecursivePartial, ThemeConfig } from '@thunderid/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Converts a v2 `FlowMetaTheme` into a `RecursivePartial<ThemeConfig>` that
|
|
21
|
+
* `createTheme` can consume.
|
|
22
|
+
*
|
|
23
|
+
* Only fields explicitly present in the FlowMeta response are included so that
|
|
24
|
+
* `createTheme` can deep-merge them onto its base (light/dark) defaults without
|
|
25
|
+
* accidentally dropping sibling keys that were not returned by the server.
|
|
26
|
+
*/
|
|
27
|
+
declare const buildThemeConfigFromFlowMeta: (flowMetaTheme: FlowMetaTheme, colorScheme: "light" | "dark") => RecursivePartial<ThemeConfig>;
|
|
28
|
+
export default buildThemeConfigFromFlowMeta;
|
|
29
|
+
//# sourceMappingURL=buildThemeConfigFromFlowMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildThemeConfigFromFlowMeta.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/buildThemeConfigFromFlowMeta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,aAAa,EAA4B,gBAAgB,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE1G;;;;;;;GAOG;AACH,QAAA,MAAM,4BAA4B,GAChC,eAAe,aAAa,EAC5B,aAAa,OAAO,GAAG,MAAM,KAC5B,gBAAgB,CAAC,WAAW,CAkD9B,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @fileoverview Shared flow response transformer utilities for v2 embedded flows.
|
|
20
|
+
*
|
|
21
|
+
* This module provides reusable transformation functions for normalizing embedded flow
|
|
22
|
+
* responses from ThunderID APIs. It handles both successful responses with component
|
|
23
|
+
* extraction and error responses with proper error message extraction.
|
|
24
|
+
*
|
|
25
|
+
* Key features:
|
|
26
|
+
* - Component extraction from flow meta structure
|
|
27
|
+
* - Translation string resolution in components
|
|
28
|
+
* - Error response detection and message extraction
|
|
29
|
+
* - Configurable error handling (throw vs return errors)
|
|
30
|
+
*
|
|
31
|
+
* Usage:
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import { normalizeFlowResponse } from '../../../utils/v2/flowTransformer';
|
|
34
|
+
*
|
|
35
|
+
* const { executionId, components } = normalizeFlowResponse(apiResponse, t, {
|
|
36
|
+
* defaultErrorKey: 'components.signIn.errors.generic'
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* This transformer is used by both SignIn and SignUp v2 components to ensure
|
|
41
|
+
* consistent response handling across all embedded flows.
|
|
42
|
+
*/
|
|
43
|
+
import { EmbeddedFlowComponentV2 as EmbeddedFlowComponent, FlowMetadataResponse } from '@thunderid/browser';
|
|
44
|
+
type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
|
|
45
|
+
/**
|
|
46
|
+
* Generic flow error response interface that covers common error structure
|
|
47
|
+
*/
|
|
48
|
+
export interface FlowErrorResponse {
|
|
49
|
+
executionId: string;
|
|
50
|
+
failureReason?: string;
|
|
51
|
+
flowStatus: 'ERROR';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Configuration options for flow transformation
|
|
55
|
+
*/
|
|
56
|
+
export interface FlowTransformOptions {
|
|
57
|
+
/**
|
|
58
|
+
* Default error message key for translation fallback
|
|
59
|
+
* @default 'errors.flow.generic'
|
|
60
|
+
*/
|
|
61
|
+
defaultErrorKey?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to resolve translation strings or keep them as i18n keys
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
resolveTranslations?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether to throw errors or return them as normalized response
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
throwOnError?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Transform and resolve translations in components from flow response.
|
|
75
|
+
*/
|
|
76
|
+
export declare const transformComponents: (response: any, t: TranslationFn, resolveTranslations?: boolean, meta?: FlowMetadataResponse | null) => EmbeddedFlowComponent[];
|
|
77
|
+
/**
|
|
78
|
+
* Extract error message from flow error response.
|
|
79
|
+
* Supports any flow error response that follows the standard structure.
|
|
80
|
+
* Prioritizes failureReason if present, otherwise falls back to translated generic message.
|
|
81
|
+
*/
|
|
82
|
+
export declare const extractErrorMessage: (error: FlowErrorResponse | any, t: TranslationFn, defaultErrorKey?: string) => string;
|
|
83
|
+
/**
|
|
84
|
+
* Check if a response is an error response and extract the error message.
|
|
85
|
+
*/
|
|
86
|
+
export declare const checkForErrorResponse: (response: any, t: TranslationFn, defaultErrorKey?: string) => string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Generic flow response normalizer that handles both success and error responses.
|
|
89
|
+
* This is the main transformer function that should be used by all flow components.
|
|
90
|
+
*/
|
|
91
|
+
export declare const normalizeFlowResponse: (response: any, t: TranslationFn, options?: FlowTransformOptions, meta?: FlowMetadataResponse | null) => {
|
|
92
|
+
additionalData: Record<string, any>;
|
|
93
|
+
components: EmbeddedFlowComponent[];
|
|
94
|
+
executionId: string;
|
|
95
|
+
};
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=flowTransformer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowTransformer.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/flowTransformer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAG1G,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AA0FD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,6BAA0B,EAC1B,OAAO,oBAAoB,GAAG,IAAI,KACjC,qBAAqB,EAgBvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,iBAAiB,GAAG,GAAG,EAC9B,GAAG,aAAa,EAChB,wBAAuC,KACtC,MAUF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,wBAAuC,KACtC,MAAM,GAAG,IAMX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,UAAS,oBAAyB,EAClC,OAAO,oBAAoB,GAAG,IAAI,KACjC;IACD,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CA0BrB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { EmbeddedFlowComponentV2 as EmbeddedFlowComponent } from '@thunderid/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Result of heading extraction from flow components
|
|
21
|
+
*/
|
|
22
|
+
export interface HeadingExtractionResult {
|
|
23
|
+
heading: EmbeddedFlowComponent | null;
|
|
24
|
+
subheading: EmbeddedFlowComponent | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Complete result of authentication component heading extraction
|
|
28
|
+
*/
|
|
29
|
+
export interface AuthComponentHeadingsResult {
|
|
30
|
+
componentsWithoutHeadings: EmbeddedFlowComponent[];
|
|
31
|
+
headingComponents: HeadingExtractionResult;
|
|
32
|
+
subtitle: string;
|
|
33
|
+
title: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Extracts heading and subheading components from authentication flow components
|
|
37
|
+
* and provides resolved title/subtitle text with fallback logic.
|
|
38
|
+
*/
|
|
39
|
+
declare const getAuthComponentHeadings: (components: EmbeddedFlowComponent[], flowTitle?: string, flowSubtitle?: string, defaultTitle?: string, defaultSubtitle?: string) => AuthComponentHeadingsResult;
|
|
40
|
+
export default getAuthComponentHeadings;
|
|
41
|
+
//# sourceMappingURL=getAuthComponentHeadings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAuthComponentHeadings.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/getAuthComponentHeadings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,yBAAyB,EAAE,qBAAqB,EAAE,CAAC;IACnD,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,QAAA,MAAM,wBAAwB,GAC5B,YAAY,qBAAqB,EAAE,EACnC,YAAY,MAAM,EAClB,eAAe,MAAM,EACrB,eAAe,MAAM,EACrB,kBAAkB,MAAM,KACvB,2BA4EF,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Handles WebAuthn/Passkey registration flow for browser environments.
|
|
20
|
+
*
|
|
21
|
+
* @param challengeData - JSON stringified challenge data containing WebAuthn creation options.
|
|
22
|
+
* @returns Promise that resolves to a JSON string containing the WebAuthn registration response.
|
|
23
|
+
*/
|
|
24
|
+
export declare const handlePasskeyRegistration: (challengeData: string) => Promise<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Handles WebAuthn/Passkey authentication flow for browser environments.
|
|
27
|
+
*
|
|
28
|
+
* @param challengeData - JSON stringified challenge data containing WebAuthn request options.
|
|
29
|
+
* @returns Promise that resolves to a JSON string containing the WebAuthn authentication response.
|
|
30
|
+
*/
|
|
31
|
+
export declare const handlePasskeyAuthentication: (challengeData: string) => Promise<string>;
|
|
32
|
+
//# sourceMappingURL=passkey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passkey.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/passkey.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CAiFrF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CA8EvF,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FlowMetadataResponse } from '@thunderid/browser';
|
|
19
|
+
type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Recursively resolves translation and meta template strings in an array of objects.
|
|
22
|
+
* @param items - Array of objects to process
|
|
23
|
+
* @param t - The translation function from useI18n
|
|
24
|
+
* @param properties - Array of property names to resolve (optional)
|
|
25
|
+
* @param meta - Optional flow metadata for resolving meta() expressions
|
|
26
|
+
* @returns A new array with resolved translations
|
|
27
|
+
*/
|
|
28
|
+
declare const resolveTranslationsInArray: <T extends Record<string, any>>(items: T[], t: TranslationFn, properties?: string[], meta?: FlowMetadataResponse | null) => T[];
|
|
29
|
+
export default resolveTranslationsInArray;
|
|
30
|
+
//# sourceMappingURL=resolveTranslationsInArray.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTranslationsInArray.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/resolveTranslationsInArray.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAGxD,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,QAAA,MAAM,0BAA0B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/D,OAAO,CAAC,EAAE,EACV,GAAG,aAAa,EAChB,aAAa,MAAM,EAAE,EACrB,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAAC,EAUA,CAAC;AAEL,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FlowMetadataResponse } from '@thunderid/browser';
|
|
19
|
+
type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Resolves all {{ t() }} and {{ meta() }} template expressions in an object's string properties.
|
|
22
|
+
* @param obj - The object to process
|
|
23
|
+
* @param t - The translation function from useI18n
|
|
24
|
+
* @param properties - Array of property names to resolve (optional, defaults to common properties)
|
|
25
|
+
* @param meta - Optional flow metadata for resolving meta() expressions
|
|
26
|
+
* @returns A new object with resolved template strings
|
|
27
|
+
*/
|
|
28
|
+
export declare const resolveTranslationsInObject: <T extends Record<string, any>>(obj: T, t: TranslationFn, properties?: string[], meta?: FlowMetadataResponse | null) => T;
|
|
29
|
+
export default resolveTranslationsInObject;
|
|
30
|
+
//# sourceMappingURL=resolveTranslationsInObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTranslationsInObject.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/resolveTranslationsInObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAA8B,MAAM,oBAAoB,CAAC;AAErF,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvE,KAAK,CAAC,EACN,GAAG,aAAa,EAChB,aAAY,MAAM,EAA0D,EAC5E,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAUF,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@thunderid/vue",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Vue SDK for ThunderID",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"thunderid",
|
|
7
|
+
"vuejs",
|
|
8
|
+
"vue",
|
|
9
|
+
"vueauth",
|
|
10
|
+
"spa"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/thunder-id/thunderid/tree/main/sdks/vue#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/thunder-id/thunderid/issues"
|
|
15
|
+
},
|
|
16
|
+
"author": "WSO2",
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"type": "module",
|
|
19
|
+
"main": "dist/cjs/index.cjs",
|
|
20
|
+
"module": "dist/index.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"require": "./dist/cjs/index.cjs"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/thunder-id/thunderid",
|
|
34
|
+
"directory": "sdks/vue"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "24.7.2",
|
|
38
|
+
"@vue/test-utils": "2.4.6",
|
|
39
|
+
"eslint": "9.39.4",
|
|
40
|
+
"prettier": "3.6.2",
|
|
41
|
+
"rimraf": "6.1.3",
|
|
42
|
+
"rolldown": "1.0.0-beta.45",
|
|
43
|
+
"typescript": "5.9.3",
|
|
44
|
+
"vitest": "4.1.3",
|
|
45
|
+
"vue": "3.5.30",
|
|
46
|
+
"@thunderid/eslint-plugin": "^0.0.0",
|
|
47
|
+
"@thunderid/prettier-config": "^0.0.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"vue": ">=3.5.0",
|
|
51
|
+
"vue-router": ">=4.0.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"vue-router": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"dompurify": "3.3.3",
|
|
60
|
+
"tslib": "2.8.1",
|
|
61
|
+
"@thunderid/browser": "^0.0.1"
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "pnpm clean && rolldown -c rolldown.config.js && tsc -p tsconfig.lib.json --emitDeclarationOnly --outDir dist",
|
|
68
|
+
"clean": "rimraf dist",
|
|
69
|
+
"format:check": "prettier --check --cache .",
|
|
70
|
+
"format:fix": "prettier --write --cache .",
|
|
71
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
|
|
72
|
+
"lint:fix": "eslint . --fix --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
|
|
73
|
+
"test": "vitest --passWithNoTests",
|
|
74
|
+
"typecheck": "tsc -p tsconfig.lib.json"
|
|
75
|
+
}
|
|
76
|
+
}
|