@asgardeo/vue 0.0.10 → 0.2.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.
Files changed (157) hide show
  1. package/README.md +136 -1
  2. package/dist/AsgardeoVueClient.d.ts +64 -0
  3. package/dist/__temp__/api.d.ts +63 -0
  4. package/dist/__temp__/models.d.ts +43 -0
  5. package/dist/api/getAllOrganizations.d.ts +24 -0
  6. package/dist/api/getMeOrganizations.d.ts +24 -0
  7. package/dist/api/getSchemas.d.ts +24 -0
  8. package/dist/api/getScim2Me.d.ts +24 -0
  9. package/dist/cjs/index.js +10849 -1578
  10. package/dist/cjs/index.js.map +7 -1
  11. package/dist/components/actions/BaseSignInButton.d.ts +34 -0
  12. package/dist/components/actions/BaseSignOutButton.d.ts +34 -0
  13. package/dist/components/actions/BaseSignUpButton.d.ts +34 -0
  14. package/dist/components/actions/SignInButton.d.ts +26 -0
  15. package/dist/components/actions/SignOutButton.d.ts +23 -0
  16. package/dist/components/actions/SignUpButton.d.ts +26 -0
  17. package/dist/{cjs/types/vitest.config.d.ts → components/adapters/FacebookButton.d.ts} +7 -2
  18. package/dist/components/adapters/GitHubButton.d.ts +24 -0
  19. package/dist/components/adapters/GoogleButton.d.ts +24 -0
  20. package/dist/components/adapters/MicrosoftButton.d.ts +24 -0
  21. package/dist/components/auth/Callback.d.ts +31 -0
  22. package/dist/components/control/Loading.d.ts +33 -0
  23. package/dist/components/control/SignedIn.d.ts +33 -0
  24. package/dist/components/control/SignedOut.d.ts +33 -0
  25. package/dist/components/control/organization/Organization.d.ts +38 -0
  26. package/dist/components/control/user/User.d.ts +38 -0
  27. package/dist/components/factories/FieldFactory.d.ts +51 -0
  28. package/dist/components/presentation/accept-invite/AcceptInvite.d.ts +28 -0
  29. package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts +82 -0
  30. package/dist/{esm/types/composables/useAsgardeo.d.ts → components/presentation/create-organization/BaseCreateOrganization.d.ts} +5 -4
  31. package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +34 -0
  32. package/dist/components/presentation/create-organization/CreateOrganization.d.ts +25 -0
  33. package/dist/components/presentation/invite-user/BaseInviteUser.d.ts +80 -0
  34. package/dist/components/presentation/invite-user/InviteUser.d.ts +25 -0
  35. package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts +25 -0
  36. package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +36 -0
  37. package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts +25 -0
  38. package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts +23 -0
  39. package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +32 -0
  40. package/dist/{cjs/types/composables/useAsgardeo.d.ts → components/presentation/organization-list/OrganizationList.d.ts} +5 -4
  41. package/dist/{cjs/types/composables/useAsgardeoContext.d.ts → components/presentation/organization-profile/BaseOrganizationProfile.d.ts} +6 -5
  42. package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +24 -0
  43. package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts +25 -0
  44. package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts +25 -0
  45. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +39 -0
  46. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts +25 -0
  47. package/dist/components/presentation/sign-in/AuthOptionFactory.d.ts +18 -0
  48. package/dist/components/presentation/sign-in/AuthOptionFactoryCore.d.ts +68 -0
  49. package/dist/components/presentation/sign-in/BaseSignIn.d.ts +27 -0
  50. package/dist/components/presentation/sign-in/SignIn.d.ts +27 -0
  51. package/dist/components/presentation/sign-in/v1/BaseSignIn.d.ts +26 -0
  52. package/dist/components/presentation/sign-in/v1/SignIn.d.ts +26 -0
  53. package/dist/components/presentation/sign-in/v1/options/SignInOptionFactory.d.ts +46 -0
  54. package/dist/components/presentation/sign-in/v2/AuthOptionFactory.d.ts +18 -0
  55. package/dist/components/presentation/sign-in/v2/BaseSignIn.d.ts +82 -0
  56. package/dist/components/presentation/sign-in/v2/SignIn.d.ts +55 -0
  57. package/dist/components/presentation/sign-up/BaseSignUp.d.ts +72 -0
  58. package/dist/components/presentation/sign-up/SignUp.d.ts +25 -0
  59. package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts +33 -0
  60. package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +35 -0
  61. package/dist/components/presentation/user-dropdown/UserDropdown.d.ts +25 -0
  62. package/dist/components/presentation/user-profile/BaseUserProfile.d.ts +47 -0
  63. package/dist/components/presentation/user-profile/UserProfile.css.d.ts +24 -0
  64. package/dist/{esm/types/public-api.d.ts → components/presentation/user-profile/UserProfile.d.ts} +3 -2
  65. package/dist/components/primitives/Alert/Alert.css.d.ts +30 -0
  66. package/dist/{cjs/types/public-api.d.ts → components/primitives/Alert/Alert.d.ts} +3 -2
  67. package/dist/components/primitives/Alert/index.d.ts +18 -0
  68. package/dist/components/primitives/Button/Button.css.d.ts +36 -0
  69. package/dist/components/primitives/Button/Button.d.ts +20 -0
  70. package/dist/components/primitives/Button/index.d.ts +18 -0
  71. package/dist/components/primitives/Card/Card.css.d.ts +29 -0
  72. package/dist/{esm/types/index.d.ts → components/primitives/Card/Card.d.ts} +3 -3
  73. package/dist/components/primitives/Card/index.d.ts +18 -0
  74. package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +30 -0
  75. package/dist/components/primitives/Checkbox/Checkbox.d.ts +20 -0
  76. package/dist/components/primitives/Checkbox/index.d.ts +18 -0
  77. package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +30 -0
  78. package/dist/components/primitives/DatePicker/DatePicker.d.ts +20 -0
  79. package/dist/components/primitives/DatePicker/index.d.ts +18 -0
  80. package/dist/components/primitives/Divider/Divider.css.d.ts +32 -0
  81. package/dist/components/primitives/Divider/Divider.d.ts +20 -0
  82. package/dist/components/primitives/Divider/index.d.ts +18 -0
  83. package/dist/components/primitives/Icons.d.ts +34 -0
  84. package/dist/components/primitives/Logo/Logo.css.d.ts +27 -0
  85. package/dist/{cjs/types/index.d.ts → components/primitives/Logo/Logo.d.ts} +3 -3
  86. package/dist/components/primitives/Logo/index.d.ts +18 -0
  87. package/dist/{cjs/types/plugins/AsgardeoPlugin.d.ts → components/primitives/OtpField/OtpField.css.d.ts} +10 -5
  88. package/dist/components/primitives/OtpField/OtpField.d.ts +20 -0
  89. package/dist/components/primitives/OtpField/index.d.ts +18 -0
  90. package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +30 -0
  91. package/dist/components/primitives/PasswordField/PasswordField.d.ts +20 -0
  92. package/dist/components/primitives/PasswordField/index.d.ts +18 -0
  93. package/dist/components/primitives/Select/Select.css.d.ts +30 -0
  94. package/dist/components/primitives/Select/Select.d.ts +25 -0
  95. package/dist/components/primitives/Select/index.d.ts +18 -0
  96. package/dist/{esm/types/composables/useAsgardeoContext.d.ts → components/primitives/Spinner/Spinner.css.d.ts} +13 -5
  97. package/dist/components/primitives/Spinner/Spinner.d.ts +20 -0
  98. package/dist/components/primitives/Spinner/index.d.ts +18 -0
  99. package/dist/components/primitives/TextField/TextField.css.d.ts +30 -0
  100. package/dist/components/primitives/TextField/TextField.d.ts +20 -0
  101. package/dist/components/primitives/TextField/index.d.ts +18 -0
  102. package/dist/components/primitives/Typography/Typography.css.d.ts +30 -0
  103. package/dist/components/primitives/Typography/Typography.d.ts +20 -0
  104. package/dist/components/primitives/Typography/index.d.ts +18 -0
  105. package/dist/composables/useAsgardeo.d.ts +48 -0
  106. package/dist/composables/useBranding.d.ts +43 -0
  107. package/dist/composables/useFlow.d.ts +45 -0
  108. package/dist/composables/useFlowMeta.d.ts +41 -0
  109. package/dist/composables/useI18n.d.ts +45 -0
  110. package/dist/composables/useOAuthCallback.d.ts +65 -0
  111. package/dist/composables/useOrganization.d.ts +41 -0
  112. package/dist/composables/useTheme.d.ts +43 -0
  113. package/dist/composables/useUser.d.ts +44 -0
  114. package/dist/index.d.ts +103 -141
  115. package/dist/index.js +11073 -0
  116. package/dist/index.js.map +7 -0
  117. package/dist/keys.d.ts +51 -0
  118. package/dist/models/config.d.ts +19 -0
  119. package/dist/models/contexts.d.ts +244 -0
  120. package/dist/{esm/types/plugins → plugins}/AsgardeoPlugin.d.ts +28 -4
  121. package/dist/providers/AsgardeoProvider.d.ts +35 -0
  122. package/dist/providers/BrandingProvider.d.ts +29 -0
  123. package/dist/providers/FlowMetaProvider.d.ts +20 -0
  124. package/dist/providers/FlowProvider.d.ts +20 -0
  125. package/dist/providers/I18nProvider.d.ts +20 -0
  126. package/dist/providers/OrganizationProvider.d.ts +20 -0
  127. package/dist/providers/ThemeProvider.d.ts +20 -0
  128. package/dist/providers/UserProvider.d.ts +20 -0
  129. package/dist/router/callbackRoute.d.ts +87 -0
  130. package/dist/router/guard.d.ts +96 -0
  131. package/dist/styles/animations.css.d.ts +28 -0
  132. package/dist/styles/defaults.css.d.ts +31 -0
  133. package/dist/styles/injectStyles.d.ts +23 -0
  134. package/dist/theme/getActiveTheme.d.ts +28 -0
  135. package/dist/theme/themeDetection.d.ts +30 -0
  136. package/dist/utils/handleWebAuthnAuthentication.d.ts +27 -0
  137. package/dist/utils/hasAuthParamsInUrl.d.ts +26 -0
  138. package/dist/utils/http.d.ts +26 -0
  139. package/dist/utils/logger.d.ts +30 -0
  140. package/dist/utils/navigate.d.ts +27 -0
  141. package/dist/utils/oauth.d.ts +24 -0
  142. package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +28 -0
  143. package/dist/utils/v2/flowTransformer.d.ts +96 -0
  144. package/dist/utils/v2/getAuthComponentHeadings.d.ts +40 -0
  145. package/dist/utils/v2/passkey.d.ts +31 -0
  146. package/dist/utils/v2/resolveTranslationsInArray.d.ts +29 -0
  147. package/dist/utils/v2/resolveTranslationsInObject.d.ts +29 -0
  148. package/package.json +54 -68
  149. package/dist/cjs/types/auth-api.d.ts +0 -237
  150. package/dist/cjs/types/tests/mocks/mocks.d.ts +0 -57
  151. package/dist/cjs/types/types.d.ts +0 -107
  152. package/dist/esm/index.js +0 -1600
  153. package/dist/esm/index.js.map +0 -1
  154. package/dist/esm/types/auth-api.d.ts +0 -237
  155. package/dist/esm/types/tests/mocks/mocks.d.ts +0 -57
  156. package/dist/esm/types/types.d.ts +0 -107
  157. 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
+ /**
19
+ * Styles for the CreateOrganization presentation component.
20
+ *
21
+ * BEM block: `.asgardeo-create-organization`
22
+ *
23
+ * The root element is a Card, whose padding is intentionally kept
24
+ * as this is a full form panel.
25
+ *
26
+ * Elements:
27
+ * __title – form heading (Typography h6)
28
+ * __description – optional sub-heading (Typography body2)
29
+ * __error – error Alert
30
+ * __input – the org-name TextField
31
+ * __submit – the submit Button
32
+ */
33
+ declare const CREATE_ORGANIZATION_CSS: string;
34
+ export default CREATE_ORGANIZATION_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
+ * CreateOrganization — styled sub-organisation creation component.
21
+ *
22
+ * Retrieves createOrganization from context and delegates to BaseCreateOrganization.
23
+ */
24
+ declare const CreateOrganization: Component;
25
+ export default CreateOrganization;
@@ -0,0 +1,80 @@
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 invite-user backend.
22
+ */
23
+ export interface InviteUserFlowResponse {
24
+ data?: {
25
+ additionalData?: Record<string, string>;
26
+ components?: any[];
27
+ meta?: {
28
+ components?: any[];
29
+ };
30
+ };
31
+ failureReason?: string;
32
+ flowId: string;
33
+ flowStatus: 'INCOMPLETE' | 'COMPLETE' | 'ERROR';
34
+ type?: 'VIEW' | 'REDIRECTION';
35
+ }
36
+ /**
37
+ * Render props passed to the default scoped slot.
38
+ */
39
+ export interface BaseInviteUserRenderProps {
40
+ components: any[];
41
+ copyInviteLink: () => Promise<void>;
42
+ error?: Error | null;
43
+ fieldErrors: Record<string, string>;
44
+ flowId?: string;
45
+ handleInputBlur: (name: string) => void;
46
+ handleInputChange: (name: string, value: string) => void;
47
+ handleSubmit: (component: any, data?: Record<string, any>) => Promise<void>;
48
+ inviteLink?: string;
49
+ inviteLinkCopied: boolean;
50
+ isEmailSent: boolean;
51
+ isInviteGenerated: boolean;
52
+ isLoading: boolean;
53
+ isValid: boolean;
54
+ meta: FlowMetadataResponse | null;
55
+ resetFlow: () => void;
56
+ subtitle?: string;
57
+ title?: string;
58
+ touched: Record<string, boolean>;
59
+ values: Record<string, string>;
60
+ }
61
+ export interface BaseInviteUserProps {
62
+ className?: string;
63
+ isInitialized?: boolean;
64
+ onError?: (error: Error) => void;
65
+ onFlowChange?: (response: InviteUserFlowResponse) => void;
66
+ onInitialize: (payload: Record<string, any>) => Promise<InviteUserFlowResponse>;
67
+ onInviteLinkGenerated?: (inviteLink: string, flowId: string) => void;
68
+ onSubmit: (payload: Record<string, any>) => Promise<InviteUserFlowResponse>;
69
+ showSubtitle?: boolean;
70
+ showTitle?: boolean;
71
+ size?: 'small' | 'medium' | 'large';
72
+ variant?: 'outlined' | 'elevated';
73
+ }
74
+ /**
75
+ * BaseInviteUser — handles the admin invite-user flow lifecycle.
76
+ *
77
+ * Steps: user type selection → user details → invite link generation.
78
+ */
79
+ declare const BaseInviteUser: Component;
80
+ export default BaseInviteUser;
@@ -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 { BaseInviteUserRenderProps } from './BaseInviteUser';
20
+ export type InviteUserRenderProps = BaseInviteUserRenderProps;
21
+ /**
22
+ * InviteUser — admin invite component using authenticated Asgardeo SDK context.
23
+ */
24
+ declare const InviteUser: Component;
25
+ export default InviteUser;
@@ -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
+ * BaseLanguageSwitcher — unstyled language selection component.
21
+ *
22
+ * Shows the current language and a dropdown to select another.
23
+ */
24
+ declare const BaseLanguageSwitcher: Component;
25
+ export default BaseLanguageSwitcher;
@@ -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 LanguageSwitcher presentation component.
20
+ *
21
+ * BEM block: `.asgardeo-language-switcher`
22
+ *
23
+ * The root element is a Card (`.asgardeo-card`). We override its default
24
+ * padding to 0 so the trigger button fills the surface edge-to-edge,
25
+ * and apply `position: relative` to anchor the absolute dropdown.
26
+ * The Card's border-radius and shadow are intentionally kept.
27
+ *
28
+ * Elements:
29
+ * __trigger – compact trigger button (globe icon + language label + chevron)
30
+ * __trigger-label – the current language name Typography inside the trigger
31
+ * __dropdown – absolute-positioned dropdown listbox
32
+ * __item – each selectable language row
33
+ * __item--active – the currently selected language
34
+ */
35
+ declare const LANGUAGE_SWITCHER_CSS: string;
36
+ export default LANGUAGE_SWITCHER_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
+ * LanguageSwitcher — styled language selection component.
21
+ *
22
+ * Retrieves current language and setLanguage from i18n context.
23
+ */
24
+ declare const LanguageSwitcher: Component;
25
+ export default LanguageSwitcher;
@@ -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
+ * BaseOrganizationList — unstyled list of organizations.
21
+ */
22
+ declare const BaseOrganizationList: Component;
23
+ export default BaseOrganizationList;
@@ -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
+ * Styles for the OrganizationList presentation component.
20
+ *
21
+ * BEM block: `.asgardeo-organization-list`
22
+ *
23
+ * The root element is a plain `div`. There is no Card wrapper here,
24
+ * so this file provides the full layout including border and spacing.
25
+ *
26
+ * Elements:
27
+ * __loading – loading state container (centred Spinner)
28
+ * __empty – empty state message (Typography body2)
29
+ * __item – each selectable organization row button
30
+ */
31
+ declare const ORGANIZATION_LIST_CSS: string;
32
+ export default ORGANIZATION_LIST_CSS;
@@ -15,10 +15,11 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { AuthContextInterface } from '../types';
18
+ import { type Component } from 'vue';
19
19
  /**
20
- * Hook to access the Asgardeo authentication context.
20
+ * OrganizationList styled organization list component.
21
21
  *
22
- * @returns {AuthContextInterface} The authentication context containing authentication methods and state.
22
+ * Retrieves organization list from context and delegates to BaseOrganizationList.
23
23
  */
24
- export declare function useAsgardeo(): AuthContextInterface;
24
+ declare const OrganizationList: Component;
25
+ export default OrganizationList;
@@ -15,11 +15,12 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { AuthContextInterface } from '../types';
18
+ import { type Component } from 'vue';
19
19
  /**
20
- * Retrieves the Asgardeo authentication context from Vue's dependency injection system.
20
+ * BaseOrganizationProfile unstyled organization details view/edit component.
21
21
  *
22
- * @throws {Error} Throws an error if the Vue plugin is not installed.
23
- * @returns {AuthContextInterface} The authentication context containing authentication methods and state.
22
+ * Renders a profile card with avatar, org name, handle, and two-column field rows
23
+ * for Organization ID, Name, Description, Created Date, and Last Modified Date.
24
24
  */
25
- export declare function useAsgardeoContext(): AuthContextInterface;
25
+ declare const BaseOrganizationProfile: Component;
26
+ export default BaseOrganizationProfile;
@@ -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 OrganizationProfile presentation component.
20
+ *
21
+ * BEM block: `.asgardeo-organization-profile`
22
+ */
23
+ declare const ORGANIZATION_PROFILE_CSS: string;
24
+ export default ORGANIZATION_PROFILE_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
+ * OrganizationProfile — styled organisation details component.
21
+ *
22
+ * Retrieves current organization from context and delegates to BaseOrganizationProfile.
23
+ */
24
+ declare const OrganizationProfile: Component;
25
+ export default OrganizationProfile;
@@ -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
+ * BaseOrganizationSwitcher — unstyled organisation dropdown switcher.
21
+ *
22
+ * Shows the current organization name and a dropdown list to switch.
23
+ */
24
+ declare const BaseOrganizationSwitcher: Component;
25
+ export default BaseOrganizationSwitcher;
@@ -0,0 +1,39 @@
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 OrganizationSwitcher presentation component.
20
+ *
21
+ * BEM block: `.asgardeo-organization-switcher`
22
+ *
23
+ * The root element is a Card (`.asgardeo-card`), so we override its
24
+ * default padding to let the trigger button fill the surface edge-to-edge,
25
+ * and apply `position: relative` to anchor the absolute dropdown.
26
+ *
27
+ * Modifiers: (none — state is controlled via isOpen in component logic)
28
+ *
29
+ * Elements:
30
+ * __trigger – the clickable trigger button showing current org
31
+ * __trigger-label – the org name Typography inside the trigger
32
+ * __dropdown – the absolute-positioned dropdown listbox
33
+ * __loading – loading state container (Spinner)
34
+ * __empty – empty state message (Typography)
35
+ * __item – each selectable organization row
36
+ * __item--active – currently selected organization
37
+ */
38
+ declare const ORGANIZATION_SWITCHER_CSS: string;
39
+ export default ORGANIZATION_SWITCHER_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
+ * OrganizationSwitcher — styled organisation switcher component.
21
+ *
22
+ * Retrieves organisations from context and delegates to BaseOrganizationSwitcher.
23
+ */
24
+ declare const OrganizationSwitcher: Component;
25
+ export default OrganizationSwitcher;
@@ -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,68 @@
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, EmbeddedFlowComponentV2 as EmbeddedFlowComponent } from '@asgardeo/browser';
19
+ import { type VNode } from 'vue';
20
+ type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
21
+ export type { TranslationFn };
22
+ /**
23
+ * Processes an array of components and renders them as VNodes for sign-in.
24
+ */
25
+ export declare const renderSignInComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
26
+ additionalData?: Record<string, any>;
27
+ buttonClassName?: string;
28
+ inputClassName?: string;
29
+ isTimeoutDisabled?: boolean;
30
+ meta?: FlowMetadataResponse | null;
31
+ onInputBlur?: (name: string) => void;
32
+ onSubmit?: (component: EmbeddedFlowComponent, data?: Record<string, any>, skipValidation?: boolean) => void;
33
+ size?: "small" | "medium" | "large";
34
+ t?: TranslationFn;
35
+ variant?: any;
36
+ }) => VNode[];
37
+ /**
38
+ * Processes an array of components and renders them as VNodes for sign-up.
39
+ * Identical to renderSignInComponents — separated for semantic clarity.
40
+ */
41
+ export declare const renderSignUpComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
42
+ additionalData?: Record<string, any>;
43
+ buttonClassName?: string;
44
+ inputClassName?: string;
45
+ isTimeoutDisabled?: boolean;
46
+ meta?: FlowMetadataResponse | null;
47
+ onInputBlur?: (name: string) => void;
48
+ onSubmit?: (component: EmbeddedFlowComponent, data?: Record<string, any>, skipValidation?: boolean) => void;
49
+ size?: "small" | "medium" | "large";
50
+ t?: TranslationFn;
51
+ variant?: any;
52
+ }) => VNode[];
53
+ /**
54
+ * Processes an array of components and renders them as VNodes for invite-user flows.
55
+ * Identical to renderSignInComponents — separated for semantic clarity.
56
+ */
57
+ export declare const renderInviteUserComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
58
+ additionalData?: Record<string, any>;
59
+ buttonClassName?: string;
60
+ inputClassName?: string;
61
+ isTimeoutDisabled?: boolean;
62
+ meta?: FlowMetadataResponse | null;
63
+ onInputBlur?: (name: string) => void;
64
+ onSubmit?: (component: EmbeddedFlowComponent, data?: Record<string, any>, skipValidation?: boolean) => void;
65
+ size?: "small" | "medium" | "large";
66
+ t?: TranslationFn;
67
+ variant?: any;
68
+ }) => VNode[];
@@ -0,0 +1,27 @@
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
+ export type { BaseSignInRenderProps, BaseSignInProps } from './v2/BaseSignIn';
20
+ /**
21
+ * BaseSignIn — platform-aware base sign-in component.
22
+ *
23
+ * Routes to the V1 (authenticator-based) or V2 (component-driven) BaseSignIn
24
+ * based on the configured `platform`.
25
+ */
26
+ declare const BaseSignIn: Component;
27
+ export default BaseSignIn;
@@ -0,0 +1,27 @@
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
+ export type { SignInRenderProps } from './v2/SignIn';
20
+ /**
21
+ * SignIn — platform-aware sign-in component.
22
+ *
23
+ * Routes to the V1 (authenticator-based) flow by default or the V2
24
+ * (component-driven) flow when `platform` is set to `Platform.AsgardeoV2`.
25
+ */
26
+ declare const SignIn: Component;
27
+ export default SignIn;