@asgardeo/vue 0.0.10 → 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 -1578
- 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 -68
- package/dist/cjs/types/auth-api.d.ts +0 -237
- 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 -1600
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/auth-api.d.ts +0 -237
- 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,34 @@
|
|
|
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
|
+
* BaseSignInButton — styled sign-in button with customization support.
|
|
21
|
+
*
|
|
22
|
+
* By default, renders a styled Button primitive with contents from the slot or fallback text.
|
|
23
|
+
* Set `unstyled={true}` to render a plain <button> for full customization control.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <!-- Default styled button with custom text -->
|
|
27
|
+
* <BaseSignInButton>Custom Text</BaseSignInButton>
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <!-- Unstyled button for full customization -->
|
|
31
|
+
* <BaseSignInButton unstyled class="my-custom-styles">Custom Content</BaseSignInButton>
|
|
32
|
+
*/
|
|
33
|
+
declare const BaseSignInButton: Component;
|
|
34
|
+
export default BaseSignInButton;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* BaseSignOutButton — styled sign-out button with customization support.
|
|
21
|
+
*
|
|
22
|
+
* By default, renders a styled Button primitive with contents from the slot or fallback text.
|
|
23
|
+
* Set `unstyled={true}` to render a plain <button> for full customization control.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <!-- Default styled button with custom text -->
|
|
27
|
+
* <BaseSignOutButton>Custom Text</BaseSignOutButton>
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <!-- Unstyled button for full customization -->
|
|
31
|
+
* <BaseSignOutButton unstyled class="my-custom-styles">Custom Content</BaseSignOutButton>
|
|
32
|
+
*/
|
|
33
|
+
declare const BaseSignOutButton: Component;
|
|
34
|
+
export default BaseSignOutButton;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* BaseSignUpButton — styled sign-up button with customization support.
|
|
21
|
+
*
|
|
22
|
+
* By default, renders a styled Button primitive with contents from the slot or fallback text.
|
|
23
|
+
* Set `unstyled={true}` to render a plain <button> for full customization control.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <!-- Default styled button with custom text -->
|
|
27
|
+
* <BaseSignUpButton>Custom Text</BaseSignUpButton>
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <!-- Unstyled button for full customization -->
|
|
31
|
+
* <BaseSignUpButton unstyled class="my-custom-styles">Custom Content</BaseSignUpButton>
|
|
32
|
+
*/
|
|
33
|
+
declare const BaseSignUpButton: Component;
|
|
34
|
+
export default BaseSignUpButton;
|
|
@@ -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
|
+
* SignInButton — triggers `signIn()` from the Asgardeo context.
|
|
21
|
+
*
|
|
22
|
+
* If a custom `signInUrl` is configured, navigates to it instead.
|
|
23
|
+
* Falls back to i18n translation for the button text.
|
|
24
|
+
*/
|
|
25
|
+
declare const SignInButton: Component;
|
|
26
|
+
export default SignInButton;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* SignOutButton — triggers `signOut()` from the Asgardeo context.
|
|
21
|
+
*/
|
|
22
|
+
declare const SignOutButton: Component;
|
|
23
|
+
export default SignOutButton;
|
|
@@ -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
|
+
* SignUpButton — triggers `signUp()` from the Asgardeo context.
|
|
21
|
+
*
|
|
22
|
+
* If a custom `signUpUrl` is configured, navigates to it instead.
|
|
23
|
+
* Falls back to i18n translation for the button text.
|
|
24
|
+
*/
|
|
25
|
+
declare const SignUpButton: Component;
|
|
26
|
+
export default SignUpButton;
|
|
@@ -15,5 +15,10 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { type Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* Facebook Sign-In Button Component.
|
|
21
|
+
* Handles authentication with Facebook identity provider.
|
|
22
|
+
*/
|
|
23
|
+
declare const FacebookButton: Component;
|
|
24
|
+
export default FacebookButton;
|
|
@@ -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
|
+
import { type Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* GitHub Sign-In Button Component.
|
|
21
|
+
* Handles authentication with GitHub identity provider.
|
|
22
|
+
*/
|
|
23
|
+
declare const GitHubButton: Component;
|
|
24
|
+
export default GitHubButton;
|
|
@@ -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
|
+
import { type Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* Google Sign-In Button Component.
|
|
21
|
+
* Handles authentication with Google identity provider.
|
|
22
|
+
*/
|
|
23
|
+
declare const GoogleButton: Component;
|
|
24
|
+
export default GoogleButton;
|
|
@@ -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
|
+
import { type Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* Microsoft Sign-In Button Component.
|
|
21
|
+
* Handles authentication with Microsoft identity provider.
|
|
22
|
+
*/
|
|
23
|
+
declare const MicrosoftButton: Component;
|
|
24
|
+
export default MicrosoftButton;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* Callback — headless component that handles OAuth callback parameter forwarding.
|
|
21
|
+
*
|
|
22
|
+
* Extracts OAuth parameters (code, state, error) from the URL and forwards them
|
|
23
|
+
* to the original component that initiated the OAuth flow.
|
|
24
|
+
*
|
|
25
|
+
* Works standalone using the browser navigate utility (History API) for navigation by default.
|
|
26
|
+
* Pass an `onNavigate` prop to enable framework-specific navigation (e.g., via Vue Router).
|
|
27
|
+
*
|
|
28
|
+
* Flow: Extract OAuth parameters from URL -> Parse state parameter -> Redirect to original path with parameters
|
|
29
|
+
*/
|
|
30
|
+
declare const Callback: Component;
|
|
31
|
+
export default Callback;
|
|
@@ -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 Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* A component that only renders its children when Asgardeo is loading.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```vue
|
|
24
|
+
* <Loading>
|
|
25
|
+
* <p>Loading...</p>
|
|
26
|
+
* <template #fallback>
|
|
27
|
+
* <p>Finished loading</p>
|
|
28
|
+
* </template>
|
|
29
|
+
* </Loading>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const Loading: Component;
|
|
33
|
+
export default Loading;
|
|
@@ -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 Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* A component that only renders its children when the user is signed in.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```vue
|
|
24
|
+
* <SignedIn>
|
|
25
|
+
* <p>Welcome! You are signed in.</p>
|
|
26
|
+
* <template #fallback>
|
|
27
|
+
* <p>Please sign in to continue</p>
|
|
28
|
+
* </template>
|
|
29
|
+
* </SignedIn>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const SignedIn: Component;
|
|
33
|
+
export default SignedIn;
|
|
@@ -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 Component } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* A component that only renders its children when the user is signed out.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```vue
|
|
24
|
+
* <SignedOut>
|
|
25
|
+
* <p>Please sign in to continue</p>
|
|
26
|
+
* <template #fallback>
|
|
27
|
+
* <p>You are already signed in</p>
|
|
28
|
+
* </template>
|
|
29
|
+
* </SignedOut>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const SignedOut: Component;
|
|
33
|
+
export default SignedOut;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Organization — control component that exposes the current organization via a scoped slot.
|
|
21
|
+
*
|
|
22
|
+
* Renders the `default` slot with `{ organization }` when a current organization is available,
|
|
23
|
+
* or the `fallback` slot when none is set.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```vue
|
|
27
|
+
* <Organization>
|
|
28
|
+
* <template #default="{ organization }">
|
|
29
|
+
* <p>Current org: {{ organization.name }}</p>
|
|
30
|
+
* </template>
|
|
31
|
+
* <template #fallback>
|
|
32
|
+
* <p>No organization selected.</p>
|
|
33
|
+
* </template>
|
|
34
|
+
* </Organization>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
declare const Organization: Component;
|
|
38
|
+
export default Organization;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* User — control component that exposes the current user via a scoped slot.
|
|
21
|
+
*
|
|
22
|
+
* Renders the `default` slot with `{ user }` when a user is signed in,
|
|
23
|
+
* or the `fallback` slot when no user is available.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```vue
|
|
27
|
+
* <User>
|
|
28
|
+
* <template #default="{ user }">
|
|
29
|
+
* <p>Welcome, {{ user.givenName }}!</p>
|
|
30
|
+
* </template>
|
|
31
|
+
* <template #fallback>
|
|
32
|
+
* <p>No user signed in.</p>
|
|
33
|
+
* </template>
|
|
34
|
+
* </User>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
declare const User: Component;
|
|
38
|
+
export default User;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { FieldType } from '@asgardeo/browser';
|
|
19
|
+
import { type Component, type VNode } from 'vue';
|
|
20
|
+
import { type SelectOption } from '../primitives/Select/Select';
|
|
21
|
+
/**
|
|
22
|
+
* Interface for field configuration.
|
|
23
|
+
*/
|
|
24
|
+
export interface FieldConfig {
|
|
25
|
+
className?: string;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
error?: string;
|
|
28
|
+
label: string;
|
|
29
|
+
name: string;
|
|
30
|
+
onBlur?: () => void;
|
|
31
|
+
onChange: (value: string) => void;
|
|
32
|
+
options?: SelectOption[];
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
touched?: boolean;
|
|
36
|
+
type: FieldType;
|
|
37
|
+
value: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Utility function to validate field values based on type.
|
|
41
|
+
*/
|
|
42
|
+
export declare const validateFieldValue: (value: string, type: FieldType, required?: boolean, touched?: boolean) => string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Factory function to create form field VNodes based on FieldType.
|
|
45
|
+
*/
|
|
46
|
+
export declare const createField: (config: FieldConfig) => VNode;
|
|
47
|
+
/**
|
|
48
|
+
* FieldFactory — Vue component wrapper for the field factory.
|
|
49
|
+
*/
|
|
50
|
+
declare const FieldFactory: Component;
|
|
51
|
+
export default FieldFactory;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { BaseAcceptInviteRenderProps } from './BaseAcceptInvite';
|
|
20
|
+
export type AcceptInviteRenderProps = BaseAcceptInviteRenderProps;
|
|
21
|
+
/**
|
|
22
|
+
* AcceptInvite — end-user component for accepting an invite and setting a password.
|
|
23
|
+
*
|
|
24
|
+
* Automatically extracts flowId and inviteToken from URL, validates the token,
|
|
25
|
+
* and delegates rendering to BaseAcceptInvite.
|
|
26
|
+
*/
|
|
27
|
+
declare const AcceptInvite: Component;
|
|
28
|
+
export default AcceptInvite;
|
|
@@ -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 { FlowMetadataResponse } from '@asgardeo/browser';
|
|
19
|
+
import { type Component } from 'vue';
|
|
20
|
+
/**
|
|
21
|
+
* Flow response from the accept-invite backend.
|
|
22
|
+
*/
|
|
23
|
+
export interface AcceptInviteFlowResponse {
|
|
24
|
+
data?: {
|
|
25
|
+
additionalData?: Record<string, string>;
|
|
26
|
+
components?: any[];
|
|
27
|
+
meta?: {
|
|
28
|
+
components?: any[];
|
|
29
|
+
};
|
|
30
|
+
redirectURL?: string;
|
|
31
|
+
};
|
|
32
|
+
failureReason?: string;
|
|
33
|
+
flowId: string;
|
|
34
|
+
flowStatus: 'INCOMPLETE' | 'COMPLETE' | 'ERROR';
|
|
35
|
+
type?: 'VIEW' | 'REDIRECTION';
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Render props passed to the default scoped slot.
|
|
39
|
+
*/
|
|
40
|
+
export interface BaseAcceptInviteRenderProps {
|
|
41
|
+
completionTitle?: string;
|
|
42
|
+
components: any[];
|
|
43
|
+
error?: Error | null;
|
|
44
|
+
fieldErrors: Record<string, string>;
|
|
45
|
+
flowId?: string;
|
|
46
|
+
goToSignIn?: () => void;
|
|
47
|
+
handleInputBlur: (name: string) => void;
|
|
48
|
+
handleInputChange: (name: string, value: string) => void;
|
|
49
|
+
handleSubmit: (component: any, data?: Record<string, any>) => Promise<void>;
|
|
50
|
+
inviteToken?: string;
|
|
51
|
+
isComplete: boolean;
|
|
52
|
+
isLoading: boolean;
|
|
53
|
+
isTokenInvalid: boolean;
|
|
54
|
+
isValid: boolean;
|
|
55
|
+
isValidatingToken: boolean;
|
|
56
|
+
meta: FlowMetadataResponse | null;
|
|
57
|
+
subtitle?: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
touched: Record<string, boolean>;
|
|
60
|
+
values: Record<string, string>;
|
|
61
|
+
}
|
|
62
|
+
export interface BaseAcceptInviteProps {
|
|
63
|
+
className?: string;
|
|
64
|
+
flowId?: string;
|
|
65
|
+
inviteToken?: string;
|
|
66
|
+
onComplete?: () => void;
|
|
67
|
+
onError?: (error: Error) => void;
|
|
68
|
+
onFlowChange?: (response: AcceptInviteFlowResponse) => void;
|
|
69
|
+
onGoToSignIn?: () => void;
|
|
70
|
+
onSubmit: (payload: Record<string, any>) => Promise<AcceptInviteFlowResponse>;
|
|
71
|
+
showSubtitle?: boolean;
|
|
72
|
+
showTitle?: boolean;
|
|
73
|
+
size?: 'small' | 'medium' | 'large';
|
|
74
|
+
variant?: 'outlined' | 'elevated';
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* BaseAcceptInvite — handles the accept-invite flow lifecycle.
|
|
78
|
+
*
|
|
79
|
+
* Steps: validate invite token → render password form → flow completion.
|
|
80
|
+
*/
|
|
81
|
+
declare const BaseAcceptInvite: Component;
|
|
82
|
+
export default BaseAcceptInvite;
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import { type Component } from 'vue';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* BaseCreateOrganization — unstyled sub-organisation creation form.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* Provides a form with an org name input and create button.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
declare const BaseCreateOrganization: Component;
|
|
25
|
+
export default BaseCreateOrganization;
|