@thunderid/vue 0.3.0 → 0.3.4

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 (106) hide show
  1. package/dist/ThunderIDVueClient.d.ts +2 -7
  2. package/dist/ThunderIDVueClient.d.ts.map +1 -1
  3. package/dist/cjs/index.cjs +2585 -5831
  4. package/dist/components/actions/SignInButton.d.ts.map +1 -1
  5. package/dist/components/actions/SignUpButton.d.ts.map +1 -1
  6. package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts +1 -1
  7. package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -1
  8. package/dist/components/auth/sign-in/BaseSignIn.d.ts +60 -5
  9. package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -1
  10. package/dist/components/auth/sign-in/SignIn.d.ts +33 -5
  11. package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
  12. package/dist/components/auth/sign-up/BaseSignUp.d.ts +49 -10
  13. package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -1
  14. package/dist/components/auth/sign-up/SignUp.d.ts +3 -6
  15. package/dist/components/auth/sign-up/SignUp.d.ts.map +1 -1
  16. package/dist/index.d.ts +7 -22
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +3124 -6366
  19. package/dist/keys.d.ts +1 -9
  20. package/dist/keys.d.ts.map +1 -1
  21. package/dist/models/contexts.d.ts +1 -52
  22. package/dist/models/contexts.d.ts.map +1 -1
  23. package/dist/providers/ThemeProvider.d.ts.map +1 -1
  24. package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
  25. package/dist/styles/injectStyles.d.ts.map +1 -1
  26. package/dist/utils/buildThemeConfigFromFlowMeta.d.ts.map +1 -0
  27. package/dist/utils/{v2/flowTransformer.d.ts → flowTransformer.d.ts} +2 -2
  28. package/dist/utils/flowTransformer.d.ts.map +1 -0
  29. package/dist/utils/{v2/getAuthComponentHeadings.d.ts → getAuthComponentHeadings.d.ts} +1 -1
  30. package/dist/utils/getAuthComponentHeadings.d.ts.map +1 -0
  31. package/dist/utils/passkey.d.ts.map +1 -0
  32. package/dist/utils/resolveTranslationsInArray.d.ts.map +1 -0
  33. package/dist/utils/resolveTranslationsInObject.d.ts.map +1 -0
  34. package/package.json +9 -9
  35. package/dist/api/getAllOrganizations.d.ts +0 -25
  36. package/dist/api/getAllOrganizations.d.ts.map +0 -1
  37. package/dist/api/getMeOrganizations.d.ts +0 -25
  38. package/dist/api/getMeOrganizations.d.ts.map +0 -1
  39. package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts +0 -27
  40. package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts.map +0 -1
  41. package/dist/components/auth/sign-in/v1/SignIn.d.ts +0 -27
  42. package/dist/components/auth/sign-in/v1/SignIn.d.ts.map +0 -1
  43. package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts +0 -47
  44. package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts.map +0 -1
  45. package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts +0 -19
  46. package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts.map +0 -1
  47. package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts +0 -83
  48. package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts.map +0 -1
  49. package/dist/components/auth/sign-in/v2/SignIn.d.ts +0 -56
  50. package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +0 -1
  51. package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts +0 -49
  52. package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts.map +0 -1
  53. package/dist/components/auth/sign-up/v1/SignUp.d.ts +0 -31
  54. package/dist/components/auth/sign-up/v1/SignUp.d.ts.map +0 -1
  55. package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts +0 -50
  56. package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts.map +0 -1
  57. package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts +0 -73
  58. package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts.map +0 -1
  59. package/dist/components/auth/sign-up/v2/SignUp.d.ts +0 -26
  60. package/dist/components/auth/sign-up/v2/SignUp.d.ts.map +0 -1
  61. package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts +0 -26
  62. package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts.map +0 -1
  63. package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +0 -35
  64. package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts.map +0 -1
  65. package/dist/components/presentation/create-organization/CreateOrganization.d.ts +0 -26
  66. package/dist/components/presentation/create-organization/CreateOrganization.d.ts.map +0 -1
  67. package/dist/components/presentation/organization/Organization.d.ts +0 -39
  68. package/dist/components/presentation/organization/Organization.d.ts.map +0 -1
  69. package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts +0 -24
  70. package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts.map +0 -1
  71. package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +0 -33
  72. package/dist/components/presentation/organization-list/OrganizationList.css.d.ts.map +0 -1
  73. package/dist/components/presentation/organization-list/OrganizationList.d.ts +0 -26
  74. package/dist/components/presentation/organization-list/OrganizationList.d.ts.map +0 -1
  75. package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts +0 -27
  76. package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts.map +0 -1
  77. package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +0 -25
  78. package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts.map +0 -1
  79. package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts +0 -26
  80. package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts.map +0 -1
  81. package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts +0 -26
  82. package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts.map +0 -1
  83. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +0 -40
  84. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts.map +0 -1
  85. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts +0 -26
  86. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts.map +0 -1
  87. package/dist/composables/useBranding.d.ts +0 -44
  88. package/dist/composables/useBranding.d.ts.map +0 -1
  89. package/dist/composables/useOrganization.d.ts +0 -42
  90. package/dist/composables/useOrganization.d.ts.map +0 -1
  91. package/dist/composables/v2/useOAuthCallback.d.ts +0 -70
  92. package/dist/composables/v2/useOAuthCallback.d.ts.map +0 -1
  93. package/dist/providers/BrandingProvider.d.ts +0 -30
  94. package/dist/providers/BrandingProvider.d.ts.map +0 -1
  95. package/dist/providers/OrganizationProvider.d.ts +0 -21
  96. package/dist/providers/OrganizationProvider.d.ts.map +0 -1
  97. package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts.map +0 -1
  98. package/dist/utils/v2/flowTransformer.d.ts.map +0 -1
  99. package/dist/utils/v2/getAuthComponentHeadings.d.ts.map +0 -1
  100. package/dist/utils/v2/passkey.d.ts.map +0 -1
  101. package/dist/utils/v2/resolveTranslationsInArray.d.ts.map +0 -1
  102. package/dist/utils/v2/resolveTranslationsInObject.d.ts.map +0 -1
  103. /package/dist/utils/{v2/buildThemeConfigFromFlowMeta.d.ts → buildThemeConfigFromFlowMeta.d.ts} +0 -0
  104. /package/dist/utils/{v2/passkey.d.ts → passkey.d.ts} +0 -0
  105. /package/dist/utils/{v2/resolveTranslationsInArray.d.ts → resolveTranslationsInArray.d.ts} +0 -0
  106. /package/dist/utils/{v2/resolveTranslationsInObject.d.ts → resolveTranslationsInObject.d.ts} +0 -0
@@ -1,26 +0,0 @@
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;
26
- //# sourceMappingURL=OrganizationProfile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrganizationProfile.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/organization-profile/OrganizationProfile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,SAAS,EAAgD,MAAM,KAAK,CAAC;AAIlF;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,EAAE,SAoCzB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -1,26 +0,0 @@
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;
26
- //# sourceMappingURL=BaseOrganizationSwitcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseOrganizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/organization-switcher/BaseOrganizationSwitcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,KAAK,SAAS,EAA+D,MAAM,KAAK,CAAC;AAQjG;;;;GAIG;AACH,QAAA,MAAM,wBAAwB,EAAE,SA+F9B,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -1,40 +0,0 @@
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: `.thunderid-organization-switcher`
22
- *
23
- * The root element is a Card (`.thunderid-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 = "\n/* ============================================================\n OrganizationSwitcher\n ============================================================ */\n\n/* Override Card's default padding so the trigger button fills the surface */\n.thunderid-organization-switcher.thunderid-card {\n padding: 0;\n position: relative;\n display: inline-block;\n min-width: 180px;\n}\n\n/* Trigger ---------------------------------------------------- */\n\n.thunderid-organization-switcher__trigger {\n display: flex;\n align-items: center;\n gap: calc(var(--thunder-spacing-unit) * 0.75);\n width: 100%;\n padding: var(--thunder-dropdown-itemPaddingY) var(--thunder-dropdown-itemPaddingX);\n background: none;\n border: none;\n cursor: pointer;\n border-radius: var(--thunder-dropdown-borderRadius);\n color: var(--thunder-color-text-primary);\n font-family: var(--thunder-typography-fontFamily);\n font-size: var(--thunder-typography-fontSize-md);\n transition: background-color var(--thunder-transition-fast);\n text-align: left;\n box-sizing: border-box;\n}\n\n.thunderid-organization-switcher__trigger:hover {\n background-color: var(--thunder-color-action-hover);\n}\n\n.thunderid-organization-switcher__trigger:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);\n border-radius: var(--thunder-dropdown-borderRadius);\n}\n\n.thunderid-organization-switcher__trigger-label {\n flex: 1;\n text-align: left;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n/* Dropdown --------------------------------------------------- */\n\n.thunderid-organization-switcher__dropdown {\n position: absolute;\n top: calc(100% + calc(var(--thunder-spacing-unit) * 0.5));\n left: 0;\n right: 0;\n z-index: 1000;\n background-color: var(--thunder-color-background-surface);\n border: 1px solid var(--thunder-color-border);\n border-radius: var(--thunder-dropdown-borderRadius);\n box-shadow: var(--thunder-dropdown-shadow);\n overflow: hidden;\n min-width: 160px;\n display: flex;\n flex-direction: column;\n padding: calc(var(--thunder-spacing-unit) * 0.5) 0;\n}\n\n/* Loading / Empty states ------------------------------------ */\n\n.thunderid-organization-switcher__loading,\n.thunderid-organization-switcher__empty {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--thunder-spacing-unit) * 2);\n color: var(--thunder-color-text-secondary);\n}\n\n/* Items ----------------------------------------------------- */\n\n.thunderid-organization-switcher__item {\n display: flex;\n align-items: center;\n gap: calc(var(--thunder-spacing-unit) * 0.75);\n width: 100%;\n padding: var(--thunder-dropdown-itemPaddingY) var(--thunder-dropdown-itemPaddingX);\n background: none;\n border: none;\n cursor: pointer;\n text-align: left;\n font-family: var(--thunder-typography-fontFamily);\n font-size: var(--thunder-typography-fontSize-md);\n color: var(--thunder-color-text-primary);\n transition: background-color var(--thunder-transition-fast);\n box-sizing: border-box;\n}\n\n.thunderid-organization-switcher__item:hover {\n background-color: var(--thunder-color-action-hover);\n}\n\n.thunderid-organization-switcher__item--active {\n background-color: var(--thunder-color-action-selected);\n color: var(--thunder-color-primary-main);\n font-weight: var(--thunder-typography-fontWeight-medium);\n}\n\n.thunderid-organization-switcher__item--active:hover {\n background-color: var(--thunder-color-action-focus);\n}\n";
39
- export default ORGANIZATION_SWITCHER_CSS;
40
- //# sourceMappingURL=OrganizationSwitcher.css.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrganizationSwitcher.css.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/organization-switcher/OrganizationSwitcher.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,yBAAyB,4gHAiH9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,26 +0,0 @@
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;
26
- //# sourceMappingURL=OrganizationSwitcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrganizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/organization-switcher/OrganizationSwitcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,SAAS,EAAiC,MAAM,KAAK,CAAC;AAInE;;;;GAIG;AACH,QAAA,MAAM,oBAAoB,EAAE,SAsB1B,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -1,44 +0,0 @@
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 { BrandingContextValue } from '../models/contexts';
19
- /**
20
- * Composable for accessing branding preference data.
21
- *
22
- * Must be called inside a component that is a descendant of `<ThunderIDProvider>`.
23
- *
24
- * @returns {BrandingContextValue} The branding context with preferences, theme, and fetch operations.
25
- * @throws {Error} If called outside of `<ThunderIDProvider>`.
26
- *
27
- * @example
28
- * ```vue
29
- * <script setup>
30
- * import { useBranding } from '@thunderid/vue';
31
- *
32
- * const { brandingPreference, theme, isLoading, fetchBranding } = useBranding();
33
- * </script>
34
- *
35
- * <template>
36
- * <div v-if="!isLoading">
37
- * <img :src="brandingPreference?.images?.logo?.imgURL" alt="Logo" />
38
- * </div>
39
- * </template>
40
- * ```
41
- */
42
- declare const useBranding: () => BrandingContextValue;
43
- export default useBranding;
44
- //# sourceMappingURL=useBranding.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBranding.d.ts","sourceRoot":"","sources":["../../src/composables/useBranding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,WAAW,QAAO,oBAWvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,42 +0,0 @@
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 { OrganizationContextValue } from '../models/contexts';
19
- /**
20
- * Composable for accessing organization data and operations.
21
- *
22
- * Must be called inside a component that is a descendant of `<ThunderIDProvider>`.
23
- *
24
- * @returns {OrganizationContextValue} The organization context.
25
- * @throws {Error} If called outside of `<ThunderIDProvider>`.
26
- *
27
- * @example
28
- * ```vue
29
- * <script setup>
30
- * import { useOrganization } from '@thunderid/vue';
31
- *
32
- * const { myOrganizations, currentOrganization, switchOrganization } = useOrganization();
33
- *
34
- * async function handleSwitch(orgId: string) {
35
- * await switchOrganization(orgId);
36
- * }
37
- * </script>
38
- * ```
39
- */
40
- declare const useOrganization: () => OrganizationContextValue;
41
- export default useOrganization;
42
- //# sourceMappingURL=useOrganization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOrganization.d.ts","sourceRoot":"","sources":["../../src/composables/useOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,oBAAoB,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,eAAe,QAAO,wBAW3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,70 +0,0 @@
1
- /**
2
- * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { type Ref } from 'vue';
19
- export interface UseOAuthCallbackOptions {
20
- /** Current executionId from component state */
21
- currentExecutionId: Ref<string | null>;
22
- /** SessionStorage key for executionId (defaults to 'thunderid_execution_id') */
23
- executionIdStorageKey?: string;
24
- /** Whether the component is initialized and ready to process OAuth callback */
25
- isInitialized: Ref<boolean>;
26
- /** Whether a submission is currently in progress */
27
- isSubmitting?: Ref<boolean>;
28
- /** Callback when OAuth flow completes successfully */
29
- onComplete?: () => void;
30
- /** Callback when OAuth flow encounters an error */
31
- onError?: (error: any) => void;
32
- /** Callback to handle flow response after submission */
33
- onFlowChange?: (response: any) => void;
34
- /** Callback to set loading state at the start of OAuth processing */
35
- onProcessingStart?: () => void;
36
- /** Function to submit OAuth code to the server */
37
- onSubmit: (payload: OAuthCallbackPayload) => Promise<any>;
38
- /** Mutable flag to track whether OAuth has already been processed */
39
- processedFlag?: {
40
- value: boolean;
41
- };
42
- /** Additional handler for setting state (e.g., setExecutionId) */
43
- setExecutionId?: (executionId: string) => void;
44
- /**
45
- * Mutable flag for token validation tracking.
46
- * Used in AcceptInvite to coordinate between OAuth callback and token validation.
47
- */
48
- tokenValidationAttemptedFlag?: {
49
- value: boolean;
50
- };
51
- }
52
- export interface OAuthCallbackPayload {
53
- /** The execution ID of the active flow step */
54
- executionId: string;
55
- /** OAuth callback inputs extracted from the redirect URL */
56
- inputs: {
57
- /** The authorization code returned by the OAuth provider */
58
- code: string;
59
- /** Optional nonce for OIDC replay protection */
60
- nonce?: string;
61
- };
62
- }
63
- /**
64
- * Processes OAuth callbacks by detecting auth code in URL, resolving executionId, and submitting to server.
65
- * Used by SignIn, SignUp, and AcceptInvite components.
66
- *
67
- * Vue composable equivalent of React's useOAuthCallback hook.
68
- */
69
- export declare function useOAuthCallback({ currentExecutionId, executionIdStorageKey, isInitialized, isSubmitting, onComplete, onError, onFlowChange, onProcessingStart, onSubmit, processedFlag, setExecutionId, tokenValidationAttemptedFlag, }: UseOAuthCallbackOptions): void;
70
- //# sourceMappingURL=useOAuthCallback.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOAuthCallback.d.ts","sourceRoot":"","sources":["../../../src/composables/v2/useOAuthCallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAQ,KAAK,GAAG,EAAC,MAAM,KAAK,CAAC;AAEpC,MAAM,WAAW,uBAAuB;IACtC,+CAA+C;IAC/C,kBAAkB,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEvC,gFAAgF;IAChF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,+EAA+E;IAC/E,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAE5B,oDAAoD;IACpD,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAE5B,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB,mDAAmD;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAE/B,wDAAwD;IACxD,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAEvC,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE/B,kDAAkD;IAClD,QAAQ,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAE1D,qEAAqE;IACrE,aAAa,CAAC,EAAE;QAAC,KAAK,EAAE,OAAO,CAAA;KAAC,CAAC;IAEjC,kEAAkE;IAClE,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/C;;;OAGG;IACH,4BAA4B,CAAC,EAAE;QAAC,KAAK,EAAE,OAAO,CAAA;KAAC,CAAC;CACjD;AAED,MAAM,WAAW,oBAAoB;IACnC,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAC;IAEpB,4DAA4D;IAC5D,MAAM,EAAE;QACN,4DAA4D;QAC5D,IAAI,EAAE,MAAM,CAAC;QAEb,gDAAgD;QAChD,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAmBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,kBAAkB,EAClB,qBAAgD,EAChD,aAAa,EACb,YAAY,EACZ,UAAU,EACV,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,cAAc,EACd,4BAA4B,GAC7B,EAAE,uBAAuB,GAAG,IAAI,CAmHhC"}
@@ -1,30 +0,0 @@
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
- * BrandingProvider manages branding preference state and makes branding data
21
- * available to child components via `useBranding()`.
22
- *
23
- * It receives branding preferences from a parent component (typically
24
- * `<ThunderIDProvider>`) and transforms them into `Theme` objects.
25
- *
26
- * @internal — This provider is mounted automatically by `<ThunderIDProvider>`.
27
- */
28
- declare const BrandingProvider: Component;
29
- export default BrandingProvider;
30
- //# sourceMappingURL=BrandingProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrandingProvider.d.ts","sourceRoot":"","sources":["../../src/providers/BrandingProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EASL,KAAK,SAAS,EAKf,MAAM,KAAK,CAAC;AAab;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,EAAE,SAoFtB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -1,21 +0,0 @@
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 OrganizationProvider: Component;
20
- export default OrganizationProvider;
21
- //# sourceMappingURL=OrganizationProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrganizationProvider.d.ts","sourceRoot":"","sources":["../../src/providers/OrganizationProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AASH,OAAO,EAOL,KAAK,SAAS,EAKf,MAAM,KAAK,CAAC;AAoBb,QAAA,MAAM,oBAAoB,EAAE,SAwF1B,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildThemeConfigFromFlowMeta.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/buildThemeConfigFromFlowMeta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,aAAa,EAA4B,gBAAgB,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE1G;;;;;;;GAOG;AACH,QAAA,MAAM,4BAA4B,GAChC,eAAe,aAAa,EAC5B,aAAa,OAAO,GAAG,MAAM,KAC5B,gBAAgB,CAAC,WAAW,CAkD9B,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowTransformer.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/flowTransformer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAG1G,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAC,CAAC;QAClD,OAAO,EAAE;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAC,CAAC;KAC/C,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AA0FD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,6BAA0B,EAC1B,OAAO,oBAAoB,GAAG,IAAI,KACjC,qBAAqB,EAgBvB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,iBAAiB,GAAG,GAAG,EAC9B,GAAG,aAAa,EAChB,wBAAuC,KACtC,MAsCF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,wBAAuC,KACtC,MAAM,GAAG,IAMX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,UAAS,oBAAyB,EAClC,OAAO,oBAAoB,GAAG,IAAI,KACjC;IACD,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CA0BrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAuthComponentHeadings.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/getAuthComponentHeadings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,yBAAyB,EAAE,qBAAqB,EAAE,CAAC;IACnD,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,QAAA,MAAM,wBAAwB,GAC5B,YAAY,qBAAqB,EAAE,EACnC,YAAY,MAAM,EAClB,eAAe,MAAM,EACrB,eAAe,MAAM,EACrB,kBAAkB,MAAM,KACvB,2BAuEF,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"passkey.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/passkey.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CAiFrF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CA8EvF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveTranslationsInArray.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/resolveTranslationsInArray.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAGxD,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,QAAA,MAAM,0BAA0B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/D,OAAO,CAAC,EAAE,EACV,GAAG,aAAa,EAChB,aAAa,MAAM,EAAE,EACrB,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAAC,EAUA,CAAC;AAEL,eAAe,0BAA0B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveTranslationsInObject.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/resolveTranslationsInObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAA8B,MAAM,oBAAoB,CAAC;AAErF,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvE,KAAK,CAAC,EACN,GAAG,aAAa,EAChB,aAAY,MAAM,EAA0D,EAC5E,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAUF,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
File without changes