@asgardeo/vue 0.0.9 → 0.1.0
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/README.md +136 -1
- package/dist/AsgardeoVueClient.d.ts +64 -0
- package/dist/__temp__/api.d.ts +63 -0
- package/dist/__temp__/models.d.ts +43 -0
- package/dist/api/getAllOrganizations.d.ts +24 -0
- package/dist/api/getMeOrganizations.d.ts +24 -0
- package/dist/api/getSchemas.d.ts +24 -0
- package/dist/api/getScim2Me.d.ts +24 -0
- package/dist/cjs/index.js +10849 -1568
- package/dist/cjs/index.js.map +7 -1
- package/dist/components/actions/BaseSignInButton.d.ts +34 -0
- package/dist/components/actions/BaseSignOutButton.d.ts +34 -0
- package/dist/components/actions/BaseSignUpButton.d.ts +34 -0
- package/dist/components/actions/SignInButton.d.ts +26 -0
- package/dist/components/actions/SignOutButton.d.ts +23 -0
- package/dist/components/actions/SignUpButton.d.ts +26 -0
- package/dist/{cjs/types/vitest.config.d.ts → components/adapters/FacebookButton.d.ts} +7 -2
- package/dist/components/adapters/GitHubButton.d.ts +24 -0
- package/dist/components/adapters/GoogleButton.d.ts +24 -0
- package/dist/components/adapters/MicrosoftButton.d.ts +24 -0
- package/dist/components/auth/Callback.d.ts +31 -0
- package/dist/components/control/Loading.d.ts +33 -0
- package/dist/components/control/SignedIn.d.ts +33 -0
- package/dist/components/control/SignedOut.d.ts +33 -0
- package/dist/components/control/organization/Organization.d.ts +38 -0
- package/dist/components/control/user/User.d.ts +38 -0
- package/dist/components/factories/FieldFactory.d.ts +51 -0
- package/dist/components/presentation/accept-invite/AcceptInvite.d.ts +28 -0
- package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts +82 -0
- package/dist/{esm/types/composables/useAsgardeo.d.ts → components/presentation/create-organization/BaseCreateOrganization.d.ts} +5 -4
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +34 -0
- package/dist/components/presentation/create-organization/CreateOrganization.d.ts +25 -0
- package/dist/components/presentation/invite-user/BaseInviteUser.d.ts +80 -0
- package/dist/components/presentation/invite-user/InviteUser.d.ts +25 -0
- package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts +25 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +36 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts +25 -0
- package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts +23 -0
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +32 -0
- package/dist/{cjs/types/composables/useAsgardeo.d.ts → components/presentation/organization-list/OrganizationList.d.ts} +5 -4
- package/dist/{cjs/types/composables/useAsgardeoContext.d.ts → components/presentation/organization-profile/BaseOrganizationProfile.d.ts} +6 -5
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +24 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts +25 -0
- package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts +25 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +39 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts +25 -0
- package/dist/components/presentation/sign-in/AuthOptionFactory.d.ts +18 -0
- package/dist/components/presentation/sign-in/AuthOptionFactoryCore.d.ts +68 -0
- package/dist/components/presentation/sign-in/BaseSignIn.d.ts +27 -0
- package/dist/components/presentation/sign-in/SignIn.d.ts +27 -0
- package/dist/components/presentation/sign-in/v1/BaseSignIn.d.ts +26 -0
- package/dist/components/presentation/sign-in/v1/SignIn.d.ts +26 -0
- package/dist/components/presentation/sign-in/v1/options/SignInOptionFactory.d.ts +46 -0
- package/dist/components/presentation/sign-in/v2/AuthOptionFactory.d.ts +18 -0
- package/dist/components/presentation/sign-in/v2/BaseSignIn.d.ts +82 -0
- package/dist/components/presentation/sign-in/v2/SignIn.d.ts +55 -0
- package/dist/components/presentation/sign-up/BaseSignUp.d.ts +72 -0
- package/dist/components/presentation/sign-up/SignUp.d.ts +25 -0
- package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts +33 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +35 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.d.ts +25 -0
- package/dist/components/presentation/user-profile/BaseUserProfile.d.ts +47 -0
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts +24 -0
- package/dist/{esm/types/public-api.d.ts → components/presentation/user-profile/UserProfile.d.ts} +3 -2
- package/dist/components/primitives/Alert/Alert.css.d.ts +30 -0
- package/dist/{cjs/types/public-api.d.ts → components/primitives/Alert/Alert.d.ts} +3 -2
- package/dist/components/primitives/Alert/index.d.ts +18 -0
- package/dist/components/primitives/Button/Button.css.d.ts +36 -0
- package/dist/components/primitives/Button/Button.d.ts +20 -0
- package/dist/components/primitives/Button/index.d.ts +18 -0
- package/dist/components/primitives/Card/Card.css.d.ts +29 -0
- package/dist/{esm/types/index.d.ts → components/primitives/Card/Card.d.ts} +3 -3
- package/dist/components/primitives/Card/index.d.ts +18 -0
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +30 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts +20 -0
- package/dist/components/primitives/Checkbox/index.d.ts +18 -0
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +30 -0
- package/dist/components/primitives/DatePicker/DatePicker.d.ts +20 -0
- package/dist/components/primitives/DatePicker/index.d.ts +18 -0
- package/dist/components/primitives/Divider/Divider.css.d.ts +32 -0
- package/dist/components/primitives/Divider/Divider.d.ts +20 -0
- package/dist/components/primitives/Divider/index.d.ts +18 -0
- package/dist/components/primitives/Icons.d.ts +34 -0
- package/dist/components/primitives/Logo/Logo.css.d.ts +27 -0
- package/dist/{cjs/types/index.d.ts → components/primitives/Logo/Logo.d.ts} +3 -3
- package/dist/components/primitives/Logo/index.d.ts +18 -0
- package/dist/{cjs/types/plugins/AsgardeoPlugin.d.ts → components/primitives/OtpField/OtpField.css.d.ts} +10 -5
- package/dist/components/primitives/OtpField/OtpField.d.ts +20 -0
- package/dist/components/primitives/OtpField/index.d.ts +18 -0
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +30 -0
- package/dist/components/primitives/PasswordField/PasswordField.d.ts +20 -0
- package/dist/components/primitives/PasswordField/index.d.ts +18 -0
- package/dist/components/primitives/Select/Select.css.d.ts +30 -0
- package/dist/components/primitives/Select/Select.d.ts +25 -0
- package/dist/components/primitives/Select/index.d.ts +18 -0
- package/dist/{esm/types/composables/useAsgardeoContext.d.ts → components/primitives/Spinner/Spinner.css.d.ts} +13 -5
- package/dist/components/primitives/Spinner/Spinner.d.ts +20 -0
- package/dist/components/primitives/Spinner/index.d.ts +18 -0
- package/dist/components/primitives/TextField/TextField.css.d.ts +30 -0
- package/dist/components/primitives/TextField/TextField.d.ts +20 -0
- package/dist/components/primitives/TextField/index.d.ts +18 -0
- package/dist/components/primitives/Typography/Typography.css.d.ts +30 -0
- package/dist/components/primitives/Typography/Typography.d.ts +20 -0
- package/dist/components/primitives/Typography/index.d.ts +18 -0
- package/dist/composables/useAsgardeo.d.ts +48 -0
- package/dist/composables/useBranding.d.ts +43 -0
- package/dist/composables/useFlow.d.ts +45 -0
- package/dist/composables/useFlowMeta.d.ts +41 -0
- package/dist/composables/useI18n.d.ts +45 -0
- package/dist/composables/useOAuthCallback.d.ts +65 -0
- package/dist/composables/useOrganization.d.ts +41 -0
- package/dist/composables/useTheme.d.ts +43 -0
- package/dist/composables/useUser.d.ts +44 -0
- package/dist/index.d.ts +103 -141
- package/dist/index.js +11073 -0
- package/dist/index.js.map +7 -0
- package/dist/keys.d.ts +51 -0
- package/dist/models/config.d.ts +19 -0
- package/dist/models/contexts.d.ts +244 -0
- package/dist/{esm/types/plugins → plugins}/AsgardeoPlugin.d.ts +28 -4
- package/dist/providers/AsgardeoProvider.d.ts +35 -0
- package/dist/providers/BrandingProvider.d.ts +29 -0
- package/dist/providers/FlowMetaProvider.d.ts +20 -0
- package/dist/providers/FlowProvider.d.ts +20 -0
- package/dist/providers/I18nProvider.d.ts +20 -0
- package/dist/providers/OrganizationProvider.d.ts +20 -0
- package/dist/providers/ThemeProvider.d.ts +20 -0
- package/dist/providers/UserProvider.d.ts +20 -0
- package/dist/router/callbackRoute.d.ts +87 -0
- package/dist/router/guard.d.ts +96 -0
- package/dist/styles/animations.css.d.ts +28 -0
- package/dist/styles/defaults.css.d.ts +31 -0
- package/dist/styles/injectStyles.d.ts +23 -0
- package/dist/theme/getActiveTheme.d.ts +28 -0
- package/dist/theme/themeDetection.d.ts +30 -0
- package/dist/utils/handleWebAuthnAuthentication.d.ts +27 -0
- package/dist/utils/hasAuthParamsInUrl.d.ts +26 -0
- package/dist/utils/http.d.ts +26 -0
- package/dist/utils/logger.d.ts +30 -0
- package/dist/utils/navigate.d.ts +27 -0
- package/dist/utils/oauth.d.ts +24 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +28 -0
- package/dist/utils/v2/flowTransformer.d.ts +96 -0
- package/dist/utils/v2/getAuthComponentHeadings.d.ts +40 -0
- package/dist/utils/v2/passkey.d.ts +31 -0
- package/dist/utils/v2/resolveTranslationsInArray.d.ts +29 -0
- package/dist/utils/v2/resolveTranslationsInObject.d.ts +29 -0
- package/package.json +54 -67
- package/dist/cjs/types/auth-api.d.ts +0 -231
- package/dist/cjs/types/tests/mocks/mocks.d.ts +0 -57
- package/dist/cjs/types/types.d.ts +0 -107
- package/dist/esm/index.js +0 -1590
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/auth-api.d.ts +0 -231
- package/dist/esm/types/tests/mocks/mocks.d.ts +0 -57
- package/dist/esm/types/types.d.ts +0 -107
- package/dist/esm/types/vitest.config.d.ts +0 -19
|
@@ -0,0 +1,26 @@
|
|
|
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 { type Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* V1 BaseSignIn component — authenticator-based app-native sign-in for Vue.
|
|
21
|
+
*
|
|
22
|
+
* Handles multi-step authentication flows, form rendering per-authenticator,
|
|
23
|
+
* redirect popups for OAuth, and passkey/FIDO WebAuthn.
|
|
24
|
+
*/
|
|
25
|
+
declare const BaseSignIn: Component;
|
|
26
|
+
export default BaseSignIn;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { type Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* V1 SignIn — app-native sign-in component using the authenticator-based flow.
|
|
21
|
+
*
|
|
22
|
+
* Initialises the flow with `signIn({ response_mode: 'direct' })` and delegates
|
|
23
|
+
* all UI rendering to `BaseSignInV1`.
|
|
24
|
+
*/
|
|
25
|
+
declare const SignIn: Component;
|
|
26
|
+
export default SignIn;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { EmbeddedSignInFlowAuthenticator } from '@asgardeo/browser';
|
|
19
|
+
import { type VNode } from 'vue';
|
|
20
|
+
/**
|
|
21
|
+
* Props shared by sign-in option rendering functions.
|
|
22
|
+
*/
|
|
23
|
+
export interface BaseSignInOptionProps {
|
|
24
|
+
authenticator: EmbeddedSignInFlowAuthenticator;
|
|
25
|
+
buttonClassName?: string;
|
|
26
|
+
error?: string | null;
|
|
27
|
+
formValues: Record<string, string>;
|
|
28
|
+
inputClassName?: string;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
onInputChange: (param: string, value: string) => void;
|
|
31
|
+
onSubmit: (authenticator: EmbeddedSignInFlowAuthenticator, formData?: Record<string, string>) => void;
|
|
32
|
+
t: (key: string, params?: Record<string, string>) => string;
|
|
33
|
+
touchedFields: Record<string, boolean>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Creates the appropriate sign-in VNode(s) based on the authenticator's ID.
|
|
37
|
+
*/
|
|
38
|
+
export declare const createSignInOption: (props: BaseSignInOptionProps) => VNode | VNode[];
|
|
39
|
+
/**
|
|
40
|
+
* Convenience function to create sign-in option VNode(s) from an authenticator.
|
|
41
|
+
*/
|
|
42
|
+
export declare const createSignInOptionFromAuthenticator: (authenticator: EmbeddedSignInFlowAuthenticator, formValues: Record<string, string>, touchedFields: Record<string, boolean>, isLoading: boolean, onInputChange: (param: string, value: string) => void, onSubmit: (authenticator: EmbeddedSignInFlowAuthenticator, formData?: Record<string, string>) => void, t: (key: string, params?: Record<string, string>) => string, options?: {
|
|
43
|
+
buttonClassName?: string;
|
|
44
|
+
error?: string | null;
|
|
45
|
+
inputClassName?: string;
|
|
46
|
+
}) => VNode | VNode[];
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export { renderInviteUserComponents, renderSignInComponents, renderSignUpComponents } from '../AuthOptionFactoryCore';
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { EmbeddedSignInFlowRequestV2 as EmbeddedSignInFlowRequest, EmbeddedFlowComponentV2 as EmbeddedFlowComponent, FlowMetadataResponse } from '@asgardeo/browser';
|
|
19
|
+
import { type Component } from 'vue';
|
|
20
|
+
/**
|
|
21
|
+
* Render props passed to the default scoped slot for custom UI rendering.
|
|
22
|
+
*/
|
|
23
|
+
export interface BaseSignInRenderProps {
|
|
24
|
+
components: EmbeddedFlowComponent[];
|
|
25
|
+
error?: Error | null;
|
|
26
|
+
fieldErrors: Record<string, string>;
|
|
27
|
+
handleInputChange: (name: string, value: string) => void;
|
|
28
|
+
handleSubmit: (component: EmbeddedFlowComponent, data?: Record<string, any>) => Promise<void>;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
isTimeoutDisabled?: boolean;
|
|
31
|
+
isValid: boolean;
|
|
32
|
+
messages: Array<{
|
|
33
|
+
message: string;
|
|
34
|
+
type: string;
|
|
35
|
+
}>;
|
|
36
|
+
meta: FlowMetadataResponse | null;
|
|
37
|
+
subtitle: string | undefined;
|
|
38
|
+
title: string;
|
|
39
|
+
touched: Record<string, boolean>;
|
|
40
|
+
validateForm: () => {
|
|
41
|
+
fieldErrors: Record<string, string>;
|
|
42
|
+
isValid: boolean;
|
|
43
|
+
};
|
|
44
|
+
values: Record<string, string>;
|
|
45
|
+
}
|
|
46
|
+
export interface BaseSignInProps {
|
|
47
|
+
additionalData?: Record<string, any>;
|
|
48
|
+
buttonClassName?: string;
|
|
49
|
+
className?: string;
|
|
50
|
+
components?: EmbeddedFlowComponent[];
|
|
51
|
+
error?: Error | null;
|
|
52
|
+
errorClassName?: string;
|
|
53
|
+
inputClassName?: string;
|
|
54
|
+
isLoading?: boolean;
|
|
55
|
+
isTimeoutDisabled?: boolean;
|
|
56
|
+
messageClassName?: string;
|
|
57
|
+
onSubmit?: (payload: EmbeddedSignInFlowRequest, component: EmbeddedFlowComponent) => Promise<void>;
|
|
58
|
+
size?: 'small' | 'medium' | 'large';
|
|
59
|
+
variant?: 'elevated' | 'outlined' | 'flat';
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* BaseSignIn — unstyled app-native sign-in presentation component.
|
|
63
|
+
*
|
|
64
|
+
* Renders the server-driven UI components from an embedded authentication flow.
|
|
65
|
+
* Manages local form state (values, touched, errors) and delegates submission to the parent SignIn component.
|
|
66
|
+
*
|
|
67
|
+
* Supports render props via the `default` scoped slot for complete UI customization.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```vue
|
|
71
|
+
* <!-- Default UI -->
|
|
72
|
+
* <BaseSignIn :components="flowComponents" :on-submit="handleSubmit" />
|
|
73
|
+
*
|
|
74
|
+
* <!-- Custom UI via scoped slot -->
|
|
75
|
+
* <BaseSignIn :components="flowComponents" :on-submit="handleSubmit" v-slot="{ values, handleInputChange, handleSubmit }">
|
|
76
|
+
* <input :value="values.username" @input="handleInputChange('username', $event.target.value)" />
|
|
77
|
+
* <button @click="handleSubmit(submitComponent)">Sign In</button>
|
|
78
|
+
* </BaseSignIn>
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
declare const BaseSignIn: Component;
|
|
82
|
+
export default BaseSignIn;
|
|
@@ -0,0 +1,55 @@
|
|
|
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, EmbeddedSignInFlowRequestV2, FlowMetadataResponse } from '@asgardeo/browser';
|
|
19
|
+
import { type Component } from 'vue';
|
|
20
|
+
/**
|
|
21
|
+
* Render props passed to the default scoped slot for custom UI rendering.
|
|
22
|
+
*/
|
|
23
|
+
export interface SignInRenderProps {
|
|
24
|
+
additionalData?: Record<string, any>;
|
|
25
|
+
components: EmbeddedFlowComponent[];
|
|
26
|
+
error: Error | null;
|
|
27
|
+
initialize: () => Promise<void>;
|
|
28
|
+
isInitialized: boolean;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
isTimeoutDisabled?: boolean;
|
|
31
|
+
meta: FlowMetadataResponse | null;
|
|
32
|
+
onSubmit: (payload: EmbeddedSignInFlowRequestV2) => Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* SignIn — app-native sign-in component with full flow lifecycle management.
|
|
36
|
+
*
|
|
37
|
+
* Initializes the authentication flow, handles passkey authentication/registration,
|
|
38
|
+
* OAuth redirect flows, and renders the UI via `BaseSignIn` or a scoped slot.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```vue
|
|
42
|
+
* <!-- Default UI -->
|
|
43
|
+
* <SignIn
|
|
44
|
+
* @success="(data) => console.log('Authenticated:', data)"
|
|
45
|
+
* @error="(err) => console.error('Auth failed:', err)"
|
|
46
|
+
* />
|
|
47
|
+
*
|
|
48
|
+
* <!-- Custom UI via scoped slot -->
|
|
49
|
+
* <SignIn v-slot="{ components, onSubmit, isLoading, error }">
|
|
50
|
+
* <!-- your custom sign-in UI here -->
|
|
51
|
+
* </SignIn>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare const SignIn: Component;
|
|
55
|
+
export default SignIn;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { EmbeddedFlowExecuteRequestPayload, EmbeddedFlowExecuteResponse } from '@asgardeo/browser';
|
|
19
|
+
import { type Component } from 'vue';
|
|
20
|
+
/**
|
|
21
|
+
* Render props passed to the default scoped slot.
|
|
22
|
+
*/
|
|
23
|
+
export interface BaseSignUpRenderProps {
|
|
24
|
+
components: any[];
|
|
25
|
+
error?: Error | null;
|
|
26
|
+
fieldErrors: Record<string, string>;
|
|
27
|
+
handleInputChange: (name: string, value: string) => void;
|
|
28
|
+
handleSubmit: (component: any, data?: Record<string, any>) => Promise<void>;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
isValid: boolean;
|
|
31
|
+
messages: Array<{
|
|
32
|
+
message: string;
|
|
33
|
+
type: string;
|
|
34
|
+
}>;
|
|
35
|
+
subtitle: string;
|
|
36
|
+
title: string;
|
|
37
|
+
touched: Record<string, boolean>;
|
|
38
|
+
validateForm: () => {
|
|
39
|
+
fieldErrors: Record<string, string>;
|
|
40
|
+
isValid: boolean;
|
|
41
|
+
};
|
|
42
|
+
values: Record<string, string>;
|
|
43
|
+
}
|
|
44
|
+
export interface BaseSignUpProps {
|
|
45
|
+
afterSignUpUrl?: string;
|
|
46
|
+
buttonClassName?: string;
|
|
47
|
+
className?: string;
|
|
48
|
+
error?: Error | null;
|
|
49
|
+
errorClassName?: string;
|
|
50
|
+
inputClassName?: string;
|
|
51
|
+
isInitialized?: boolean;
|
|
52
|
+
messageClassName?: string;
|
|
53
|
+
onComplete?: (response: EmbeddedFlowExecuteResponse) => void;
|
|
54
|
+
onError?: (error: Error) => void;
|
|
55
|
+
onFlowChange?: (response: EmbeddedFlowExecuteResponse) => void;
|
|
56
|
+
onInitialize?: (payload?: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
|
|
57
|
+
onSubmit?: (payload: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
|
|
58
|
+
shouldRedirectAfterSignUp?: boolean;
|
|
59
|
+
showLogo?: boolean;
|
|
60
|
+
showSubtitle?: boolean;
|
|
61
|
+
showTitle?: boolean;
|
|
62
|
+
size?: 'small' | 'medium' | 'large';
|
|
63
|
+
variant?: 'elevated' | 'outlined' | 'flat';
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* BaseSignUp — app-native sign-up presentation component.
|
|
67
|
+
*
|
|
68
|
+
* Manages the sign-up flow lifecycle including initialization, form state,
|
|
69
|
+
* passkey registration, popup-based social OAuth, and renders the server-driven UI.
|
|
70
|
+
*/
|
|
71
|
+
declare const BaseSignUp: Component;
|
|
72
|
+
export default BaseSignUp;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { type Component } from 'vue';
|
|
19
|
+
import type { BaseSignUpRenderProps } from './BaseSignUp';
|
|
20
|
+
export type SignUpRenderProps = BaseSignUpRenderProps;
|
|
21
|
+
/**
|
|
22
|
+
* SignUp — embedded sign-up component that handles API calls and delegates UI to BaseSignUp.
|
|
23
|
+
*/
|
|
24
|
+
declare const SignUp: Component;
|
|
25
|
+
export default SignUp;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { type User } from '@asgardeo/browser';
|
|
19
|
+
import { type Component, type VNode } from 'vue';
|
|
20
|
+
export interface BaseUserDropdownProps {
|
|
21
|
+
className?: string;
|
|
22
|
+
isProfileModalOpen?: boolean;
|
|
23
|
+
onProfileClick?: () => void;
|
|
24
|
+
onProfileModalClose?: () => void;
|
|
25
|
+
onSignOut?: () => void;
|
|
26
|
+
profileContent?: VNode | null;
|
|
27
|
+
user?: User | null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* BaseUserDropdown — unstyled user dropdown with avatar, profile link, sign-out.
|
|
31
|
+
*/
|
|
32
|
+
declare const BaseUserDropdown: Component;
|
|
33
|
+
export default BaseUserDropdown;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
* Styles for the UserDropdown presentation component.
|
|
20
|
+
*
|
|
21
|
+
* BEM block: `.asgardeo-user-dropdown`
|
|
22
|
+
*
|
|
23
|
+
* The root element is a plain `div` (no Card wrapper), so this file
|
|
24
|
+
* is responsible for all layout. The dropdown is absolute-positioned
|
|
25
|
+
* relative to the root using `position: relative`.
|
|
26
|
+
*
|
|
27
|
+
* Elements:
|
|
28
|
+
* __trigger – pill-shaped trigger button (avatar + name + chevron)
|
|
29
|
+
* __avatar – circular icon container inside the trigger
|
|
30
|
+
* __name – display-name Typography inside the trigger
|
|
31
|
+
* __menu – absolute-positioned dropdown panel
|
|
32
|
+
* __item – each action row inside the menu
|
|
33
|
+
*/
|
|
34
|
+
declare const USER_DROPDOWN_CSS: string;
|
|
35
|
+
export default USER_DROPDOWN_CSS;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { type Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* UserDropdown — styled user dropdown component.
|
|
21
|
+
*
|
|
22
|
+
* Retrieves user and signOut from context and delegates to BaseUserDropdown.
|
|
23
|
+
*/
|
|
24
|
+
declare const UserDropdown: Component;
|
|
25
|
+
export default UserDropdown;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { type User, type Schema, type UpdateMeProfileConfig } from '@asgardeo/browser';
|
|
19
|
+
import { type Component } from 'vue';
|
|
20
|
+
export interface BaseUserProfileProps {
|
|
21
|
+
cardLayout?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
editable?: boolean;
|
|
24
|
+
error?: string | null;
|
|
25
|
+
flattenedProfile?: User;
|
|
26
|
+
hideFields?: string[];
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
onUpdate?: (requestConfig: UpdateMeProfileConfig, sessionId?: string) => Promise<{
|
|
29
|
+
data: {
|
|
30
|
+
user: User;
|
|
31
|
+
};
|
|
32
|
+
error: string;
|
|
33
|
+
success: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
profile?: User;
|
|
36
|
+
schemas?: Schema[];
|
|
37
|
+
showFields?: string[];
|
|
38
|
+
title?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* BaseUserProfile — unstyled user profile component.
|
|
42
|
+
*
|
|
43
|
+
* Renders a profile card with avatar, title, and two-column field rows
|
|
44
|
+
* that support inline editing via a pencil-icon button.
|
|
45
|
+
*/
|
|
46
|
+
declare const BaseUserProfile: Component;
|
|
47
|
+
export default BaseUserProfile;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* Styles for the UserProfile presentation component.
|
|
20
|
+
*
|
|
21
|
+
* BEM block: `.asgardeo-user-profile`
|
|
22
|
+
*/
|
|
23
|
+
declare const USER_PROFILE_CSS: string;
|
|
24
|
+
export default USER_PROFILE_CSS;
|
package/dist/{esm/types/public-api.d.ts → components/presentation/user-profile/UserProfile.d.ts}
RENAMED
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { type Component } from 'vue';
|
|
19
|
+
declare const UserProfile: Component;
|
|
20
|
+
export default UserProfile;
|
|
@@ -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
|
+
/**
|
|
19
|
+
* Styles for the Alert primitive component.
|
|
20
|
+
*
|
|
21
|
+
* BEM block: `.asgardeo-alert`
|
|
22
|
+
*
|
|
23
|
+
* Modifiers:
|
|
24
|
+
* Severity: --info | --success | --warning | --error
|
|
25
|
+
*
|
|
26
|
+
* Elements:
|
|
27
|
+
* __content | __dismiss
|
|
28
|
+
*/
|
|
29
|
+
declare const ALERT_CSS: string;
|
|
30
|
+
export default ALERT_CSS;
|
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { type Component } from 'vue';
|
|
19
|
+
declare const Alert: Component;
|
|
20
|
+
export default Alert;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export { default } from './Alert';
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* Styles for the Button primitive component.
|
|
20
|
+
*
|
|
21
|
+
* BEM block: `.asgardeo-button`
|
|
22
|
+
*
|
|
23
|
+
* Modifiers:
|
|
24
|
+
* Variant: --solid | --outline | --ghost | --text
|
|
25
|
+
* Color: --primary | --secondary | --danger
|
|
26
|
+
* Size: --small | --medium | --large
|
|
27
|
+
* State: --full-width | --loading
|
|
28
|
+
*
|
|
29
|
+
* Elements:
|
|
30
|
+
* __start-icon | __end-icon | __content | __spinner
|
|
31
|
+
*
|
|
32
|
+
* Note: The `asgardeo-spin` keyframe animation is defined in
|
|
33
|
+
* `styles/animations.css.ts` and shared with the Spinner component.
|
|
34
|
+
*/
|
|
35
|
+
declare const BUTTON_CSS: string;
|
|
36
|
+
export default BUTTON_CSS;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { type Component } from 'vue';
|
|
19
|
+
declare const Button: Component;
|
|
20
|
+
export default Button;
|