@thunderid/vue 0.3.0 → 0.3.3
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/dist/ThunderIDVueClient.d.ts +2 -3
- package/dist/ThunderIDVueClient.d.ts.map +1 -1
- package/dist/cjs/index.cjs +239 -1872
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts +1 -1
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -1
- package/dist/components/auth/sign-in/BaseSignIn.d.ts +60 -5
- package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -1
- package/dist/components/auth/sign-in/SignIn.d.ts +33 -5
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
- package/dist/components/auth/sign-up/BaseSignUp.d.ts +49 -10
- package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -1
- package/dist/components/auth/sign-up/SignUp.d.ts +3 -6
- package/dist/components/auth/sign-up/SignUp.d.ts.map +1 -1
- package/dist/index.d.ts +5 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +163 -1807
- package/dist/models/contexts.d.ts +1 -2
- package/dist/models/contexts.d.ts.map +1 -1
- package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
- package/dist/utils/buildThemeConfigFromFlowMeta.d.ts.map +1 -0
- package/dist/utils/{v2/flowTransformer.d.ts → flowTransformer.d.ts} +2 -2
- package/dist/utils/flowTransformer.d.ts.map +1 -0
- package/dist/utils/{v2/getAuthComponentHeadings.d.ts → getAuthComponentHeadings.d.ts} +1 -1
- package/dist/utils/getAuthComponentHeadings.d.ts.map +1 -0
- package/dist/utils/passkey.d.ts.map +1 -0
- package/dist/utils/resolveTranslationsInArray.d.ts.map +1 -0
- package/dist/utils/resolveTranslationsInObject.d.ts.map +1 -0
- package/package.json +9 -9
- package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts +0 -27
- package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts.map +0 -1
- package/dist/components/auth/sign-in/v1/SignIn.d.ts +0 -27
- package/dist/components/auth/sign-in/v1/SignIn.d.ts.map +0 -1
- package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts +0 -47
- package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts.map +0 -1
- package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts +0 -19
- package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts.map +0 -1
- package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts +0 -83
- package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts.map +0 -1
- package/dist/components/auth/sign-in/v2/SignIn.d.ts +0 -56
- package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +0 -1
- package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts +0 -49
- package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts.map +0 -1
- package/dist/components/auth/sign-up/v1/SignUp.d.ts +0 -31
- package/dist/components/auth/sign-up/v1/SignUp.d.ts.map +0 -1
- package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts +0 -50
- package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts.map +0 -1
- package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts +0 -73
- package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts.map +0 -1
- package/dist/components/auth/sign-up/v2/SignUp.d.ts +0 -26
- package/dist/components/auth/sign-up/v2/SignUp.d.ts.map +0 -1
- package/dist/composables/v2/useOAuthCallback.d.ts +0 -70
- package/dist/composables/v2/useOAuthCallback.d.ts.map +0 -1
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts.map +0 -1
- package/dist/utils/v2/flowTransformer.d.ts.map +0 -1
- package/dist/utils/v2/getAuthComponentHeadings.d.ts.map +0 -1
- package/dist/utils/v2/passkey.d.ts.map +0 -1
- package/dist/utils/v2/resolveTranslationsInArray.d.ts.map +0 -1
- package/dist/utils/v2/resolveTranslationsInObject.d.ts.map +0 -1
- /package/dist/utils/{v2/buildThemeConfigFromFlowMeta.d.ts → buildThemeConfigFromFlowMeta.d.ts} +0 -0
- /package/dist/utils/{v2/passkey.d.ts → passkey.d.ts} +0 -0
- /package/dist/utils/{v2/resolveTranslationsInArray.d.ts → resolveTranslationsInArray.d.ts} +0 -0
- /package/dist/utils/{v2/resolveTranslationsInObject.d.ts → resolveTranslationsInObject.d.ts} +0 -0
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import type { AllOrganizationsApiResponse, BrandingPreference, CreateOrganizationPayload, FlowMetadataResponse, HttpRequestConfig, HttpResponse, IdToken, Organization,
|
|
18
|
+
import type { AllOrganizationsApiResponse, BrandingPreference, CreateOrganizationPayload, FlowMetadataResponse, HttpRequestConfig, HttpResponse, IdToken, Organization, Schema, SignInOptions, StorageManager, Theme, TokenExchangeRequestConfig, TokenResponse, UpdateMeProfileConfig, User, UserProfile, I18nBundle } from '@thunderid/browser';
|
|
19
19
|
import type { Ref } from 'vue';
|
|
20
20
|
import type { ThunderIDVueConfig } from './config';
|
|
21
21
|
import type ThunderIDVueClient from '../ThunderIDVueClient';
|
|
@@ -59,7 +59,6 @@ export interface ThunderIDContext {
|
|
|
59
59
|
/** The current organization, or `null`. */
|
|
60
60
|
organization: Readonly<Ref<Organization | null>>;
|
|
61
61
|
organizationHandle: string | undefined;
|
|
62
|
-
platform: Platform | undefined;
|
|
63
62
|
reInitialize: (config: Partial<ThunderIDVueConfig>) => Promise<boolean>;
|
|
64
63
|
/** Resolve `{{t(...)}}` and `{{meta(...)}}` template literals inside a string. */
|
|
65
64
|
resolveFlowTemplateLiterals?: (text: string | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../src/models/contexts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAA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C,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACnD,iDAAiD;IACjD,eAAe,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACvC,kCAAkC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAC7D,mCAAmC;IACnC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,sDAAsD;IACtD,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;CACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThunderIDProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThunderIDProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAkBH,OAAO,EACL,KAAK,SAAS,EAaf,MAAM,KAAK,CAAC;AA0Cb;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,EAAE,SAmcvB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildThemeConfigFromFlowMeta.d.ts","sourceRoot":"","sources":["../../src/utils/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"}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* Usage:
|
|
32
32
|
* ```typescript
|
|
33
|
-
* import { normalizeFlowResponse } from '../../../utils/
|
|
33
|
+
* import { normalizeFlowResponse } from '../../../utils/flowTransformer';
|
|
34
34
|
*
|
|
35
35
|
* const { executionId, components } = normalizeFlowResponse(apiResponse, t, {
|
|
36
36
|
* defaultErrorKey: 'components.signIn.errors.generic'
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* This transformer is used by both SignIn and SignUp v2 components to ensure
|
|
41
41
|
* consistent response handling across all embedded flows.
|
|
42
42
|
*/
|
|
43
|
-
import {
|
|
43
|
+
import { EmbeddedFlowComponent, FlowMetadataResponse } from '@thunderid/browser';
|
|
44
44
|
type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
|
|
45
45
|
/**
|
|
46
46
|
* Generic flow error response interface that covers common error structure
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowTransformer.d.ts","sourceRoot":"","sources":["../../src/utils/flowTransformer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAG/E,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"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import { EmbeddedFlowComponent } from '@thunderid/browser';
|
|
19
19
|
/**
|
|
20
20
|
* Result of heading extraction from flow components
|
|
21
21
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAuthComponentHeadings.d.ts","sourceRoot":"","sources":["../../src/utils/getAuthComponentHeadings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAEzD;;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passkey.d.ts","sourceRoot":"","sources":["../../src/utils/passkey.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CAiFrF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CA8EvF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTranslationsInArray.d.ts","sourceRoot":"","sources":["../../src/utils/resolveTranslationsInArray.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAGxD,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,QAAA,MAAM,0BAA0B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/D,OAAO,CAAC,EAAE,EACV,GAAG,aAAa,EAChB,aAAa,MAAM,EAAE,EACrB,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAAC,EAUA,CAAC;AAEL,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveTranslationsInObject.d.ts","sourceRoot":"","sources":["../../src/utils/resolveTranslationsInObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAA8B,MAAM,oBAAoB,CAAC;AAErF,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvE,KAAK,CAAC,EACN,GAAG,aAAa,EAChB,aAAY,MAAM,EAA0D,EAC5E,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAUF,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/vue",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Vue SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"vueauth",
|
|
10
10
|
"spa"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://github.com/thunder-id/
|
|
12
|
+
"homepage": "https://github.com/thunder-id/javascript-sdks/tree/main/packages/vue#readme",
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/thunder-id/thunderid/issues"
|
|
15
15
|
},
|
|
@@ -30,10 +30,12 @@
|
|
|
30
30
|
"types": "dist/index.d.ts",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": "https://github.com/thunder-id/
|
|
34
|
-
"directory": "
|
|
33
|
+
"url": "https://github.com/thunder-id/javascript-sdks",
|
|
34
|
+
"directory": "packages/vue"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
+
"@thunderid/eslint-plugin": "0.0.2",
|
|
38
|
+
"@thunderid/prettier-config": "0.0.2",
|
|
37
39
|
"@types/node": "24.7.2",
|
|
38
40
|
"@vue/test-utils": "2.4.6",
|
|
39
41
|
"eslint": "9.39.4",
|
|
@@ -42,9 +44,7 @@
|
|
|
42
44
|
"rolldown": "1.0.0-beta.45",
|
|
43
45
|
"typescript": "5.9.3",
|
|
44
46
|
"vitest": "4.1.8",
|
|
45
|
-
"vue": "3.5.30"
|
|
46
|
-
"@thunderid/prettier-config": "^0.0.0",
|
|
47
|
-
"@thunderid/eslint-plugin": "^0.0.0"
|
|
47
|
+
"vue": "3.5.30"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"vue": ">=3.5.0",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"dompurify": "3.4.
|
|
59
|
+
"dompurify": "3.4.11",
|
|
60
60
|
"tslib": "2.8.1",
|
|
61
|
-
"@thunderid/browser": "^0.3.
|
|
61
|
+
"@thunderid/browser": "^0.3.1"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
@@ -1,27 +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
|
-
* V1 BaseSignIn component — authenticator-based app-native sign-in for Vue.
|
|
21
|
-
*
|
|
22
|
-
* Handles multi-step authentication flows, form rendering per-authenticator,
|
|
23
|
-
* redirect popups for OAuth, and passkey/FIDO WebAuthn.
|
|
24
|
-
*/
|
|
25
|
-
declare const BaseSignIn: Component;
|
|
26
|
-
export default BaseSignIn;
|
|
27
|
-
//# sourceMappingURL=BaseSignIn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-in/v1/BaseSignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAgBH,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AAsBb;;;;;GAKG;AACH,QAAA,MAAM,UAAU,EAAE,SA8xBhB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,27 +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
|
-
* V1 SignIn — app-native sign-in component using the authenticator-based flow.
|
|
21
|
-
*
|
|
22
|
-
* Initialises the flow with `signIn({ response_mode: 'direct' })` and delegates
|
|
23
|
-
* all UI rendering to `BaseSignInV1`.
|
|
24
|
-
*/
|
|
25
|
-
declare const SignIn: Component;
|
|
26
|
-
export default SignIn;
|
|
27
|
-
//# sourceMappingURL=SignIn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-in/v1/SignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAIrG;;;;;GAKG;AACH,QAAA,MAAM,MAAM,EAAE,SA4DZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,47 +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 { EmbeddedSignInFlowAuthenticator } from '@thunderid/browser';
|
|
19
|
-
import { type VNode } from 'vue';
|
|
20
|
-
/**
|
|
21
|
-
* Props shared by sign-in option rendering functions.
|
|
22
|
-
*/
|
|
23
|
-
export interface BaseSignInOptionProps {
|
|
24
|
-
authenticator: EmbeddedSignInFlowAuthenticator;
|
|
25
|
-
buttonClassName?: string;
|
|
26
|
-
error?: string | null;
|
|
27
|
-
formValues: Record<string, string>;
|
|
28
|
-
inputClassName?: string;
|
|
29
|
-
isLoading: boolean;
|
|
30
|
-
onInputChange: (param: string, value: string) => void;
|
|
31
|
-
onSubmit: (authenticator: EmbeddedSignInFlowAuthenticator, formData?: Record<string, string>) => void;
|
|
32
|
-
t: (key: string, params?: Record<string, string>) => string;
|
|
33
|
-
touchedFields: Record<string, boolean>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Creates the appropriate sign-in VNode(s) based on the authenticator's ID.
|
|
37
|
-
*/
|
|
38
|
-
export declare const createSignInOption: (props: BaseSignInOptionProps) => VNode | VNode[];
|
|
39
|
-
/**
|
|
40
|
-
* Convenience function to create sign-in option VNode(s) from an authenticator.
|
|
41
|
-
*/
|
|
42
|
-
export declare const createSignInOptionFromAuthenticator: (authenticator: EmbeddedSignInFlowAuthenticator, formValues: Record<string, string>, touchedFields: Record<string, boolean>, isLoading: boolean, onInputChange: (param: string, value: string) => void, onSubmit: (authenticator: EmbeddedSignInFlowAuthenticator, formData?: Record<string, string>) => void, t: (key: string, params?: Record<string, string>) => string, options?: {
|
|
43
|
-
buttonClassName?: string;
|
|
44
|
-
error?: string | null;
|
|
45
|
-
inputClassName?: string;
|
|
46
|
-
}) => VNode | VNode[];
|
|
47
|
-
//# sourceMappingURL=SignInOptionFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignInOptionFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/components/auth/sign-in/v1/options/SignInOptionFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,+BAA+B,EAIhC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,KAAK,KAAK,EAAI,MAAM,KAAK,CAAC;AAQlC;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,+BAA+B,CAAC;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,CAAC,aAAa,EAAE,+BAA+B,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACtG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;IAC5D,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AA0ID;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,qBAAqB,KAAG,KAAK,GAAG,KAAK,EAkD9E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mCAAmC,GAC9C,eAAe,+BAA+B,EAC9C,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,WAAW,OAAO,EAClB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,EACrD,UAAU,CAAC,aAAa,EAAE,+BAA+B,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,EACrG,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,EAC3D,UAAU;IACR,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,KACA,KAAK,GAAG,KAAK,EAUZ,CAAC"}
|
|
@@ -1,19 +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
|
-
export { renderInviteUserComponents, renderSignInComponents, renderSignUpComponents } from '../AuthOptionFactoryCore';
|
|
19
|
-
//# sourceMappingURL=AuthOptionFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthOptionFactory.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-in/v2/AuthOptionFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,0BAA0B,EAAE,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025-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 { EmbeddedSignInFlowRequestV2 as EmbeddedSignInFlowRequest, EmbeddedFlowComponentV2 as EmbeddedFlowComponent, FlowMetadataResponse } from '@thunderid/browser';
|
|
19
|
-
import { type Component } from 'vue';
|
|
20
|
-
/**
|
|
21
|
-
* Render props passed to the default scoped slot for custom UI rendering.
|
|
22
|
-
*/
|
|
23
|
-
export interface BaseSignInRenderProps {
|
|
24
|
-
components: EmbeddedFlowComponent[];
|
|
25
|
-
error?: Error | null;
|
|
26
|
-
fieldErrors: Record<string, string>;
|
|
27
|
-
handleInputChange: (name: string, value: string) => void;
|
|
28
|
-
handleSubmit: (component: EmbeddedFlowComponent, data?: Record<string, any>) => Promise<void>;
|
|
29
|
-
isLoading: boolean;
|
|
30
|
-
isTimeoutDisabled?: boolean;
|
|
31
|
-
isValid: boolean;
|
|
32
|
-
messages: {
|
|
33
|
-
message: string;
|
|
34
|
-
type: string;
|
|
35
|
-
}[];
|
|
36
|
-
meta: FlowMetadataResponse | null;
|
|
37
|
-
subtitle: string | undefined;
|
|
38
|
-
title: string;
|
|
39
|
-
touched: Record<string, boolean>;
|
|
40
|
-
validateForm: () => {
|
|
41
|
-
fieldErrors: Record<string, string>;
|
|
42
|
-
isValid: boolean;
|
|
43
|
-
};
|
|
44
|
-
values: Record<string, string>;
|
|
45
|
-
}
|
|
46
|
-
export interface BaseSignInProps {
|
|
47
|
-
additionalData?: Record<string, any>;
|
|
48
|
-
buttonClassName?: string;
|
|
49
|
-
className?: string;
|
|
50
|
-
components?: EmbeddedFlowComponent[];
|
|
51
|
-
error?: Error | null;
|
|
52
|
-
errorClassName?: string;
|
|
53
|
-
inputClassName?: string;
|
|
54
|
-
isLoading?: boolean;
|
|
55
|
-
isTimeoutDisabled?: boolean;
|
|
56
|
-
messageClassName?: string;
|
|
57
|
-
onSubmit?: (payload: EmbeddedSignInFlowRequest, component: EmbeddedFlowComponent) => Promise<void>;
|
|
58
|
-
size?: 'small' | 'medium' | 'large';
|
|
59
|
-
variant?: 'elevated' | 'outlined' | 'flat';
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* BaseSignIn — unstyled app-native sign-in presentation component.
|
|
63
|
-
*
|
|
64
|
-
* Renders the server-driven UI components from an embedded authentication flow.
|
|
65
|
-
* Manages local form state (values, touched, errors) and delegates submission to the parent SignIn component.
|
|
66
|
-
*
|
|
67
|
-
* Supports render props via the `default` scoped slot for complete UI customization.
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```vue
|
|
71
|
-
* <!-- Default UI -->
|
|
72
|
-
* <BaseSignIn :components="flowComponents" :on-submit="handleSubmit" />
|
|
73
|
-
*
|
|
74
|
-
* <!-- Custom UI via scoped slot -->
|
|
75
|
-
* <BaseSignIn :components="flowComponents" :on-submit="handleSubmit" v-slot="{ values, handleInputChange, handleSubmit }">
|
|
76
|
-
* <input :value="values.username" @input="handleInputChange('username', $event.target.value)" />
|
|
77
|
-
* <button @click="handleSubmit(submitComponent)">Sign In</button>
|
|
78
|
-
* </BaseSignIn>
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
declare const BaseSignIn: Component;
|
|
82
|
-
export default BaseSignIn;
|
|
83
|
-
//# sourceMappingURL=BaseSignIn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-in/v2/BaseSignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,2BAA2B,IAAI,yBAAyB,EACxD,uBAAuB,IAAI,qBAAqB,EAChD,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,SAAS,EAUf,MAAM,KAAK,CAAC;AAWb;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,YAAY,EAAE,CAAC,SAAS,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM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,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;CAC5C;AAwBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,UAAU,EAAE,SAqQhB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025-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 { EmbeddedFlowComponentV2 as EmbeddedFlowComponent, EmbeddedSignInFlowRequestV2, FlowMetadataResponse } from '@thunderid/browser';
|
|
19
|
-
import { type Component } from 'vue';
|
|
20
|
-
/**
|
|
21
|
-
* Render props passed to the default scoped slot for custom UI rendering.
|
|
22
|
-
*/
|
|
23
|
-
export interface SignInRenderProps {
|
|
24
|
-
additionalData?: Record<string, any>;
|
|
25
|
-
components: EmbeddedFlowComponent[];
|
|
26
|
-
error: Error | null;
|
|
27
|
-
initialize: () => Promise<void>;
|
|
28
|
-
isInitialized: boolean;
|
|
29
|
-
isLoading: boolean;
|
|
30
|
-
isTimeoutDisabled?: boolean;
|
|
31
|
-
meta: FlowMetadataResponse | null;
|
|
32
|
-
onSubmit: (payload: EmbeddedSignInFlowRequestV2) => Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* SignIn — app-native sign-in component with full flow lifecycle management.
|
|
36
|
-
*
|
|
37
|
-
* Initializes the authentication flow, handles passkey authentication/registration,
|
|
38
|
-
* OAuth redirect flows, and renders the UI via `BaseSignIn` or a scoped slot.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```vue
|
|
42
|
-
* <!-- Default UI -->
|
|
43
|
-
* <SignIn
|
|
44
|
-
* @success="(data) => console.log('Authenticated:', data)"
|
|
45
|
-
* @error="(err) => console.error('Auth failed:', err)"
|
|
46
|
-
* />
|
|
47
|
-
*
|
|
48
|
-
* <!-- Custom UI via scoped slot -->
|
|
49
|
-
* <SignIn v-slot="{ components, onSubmit, isLoading, error }">
|
|
50
|
-
* <!-- your custom sign-in UI here -->
|
|
51
|
-
* </SignIn>
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
declare const SignIn: Component;
|
|
55
|
-
export default SignIn;
|
|
56
|
-
//# sourceMappingURL=SignIn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-in/v2/SignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,uBAAuB,IAAI,qBAAqB,EAEhD,2BAA2B,EAI3B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EAWf,MAAM,KAAK,CAAC;AAqBb;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,MAAM,EAAE,SAijBZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,49 +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
|
-
* Render-prop payload exposed via the default slot.
|
|
21
|
-
*/
|
|
22
|
-
export interface BaseSignUpRenderProps {
|
|
23
|
-
components: any[];
|
|
24
|
-
errors: Record<string, string>;
|
|
25
|
-
handleInputChange: (name: string, value: string) => void;
|
|
26
|
-
handleSubmit: (component: any, data?: Record<string, any>) => Promise<void>;
|
|
27
|
-
isLoading: boolean;
|
|
28
|
-
isValid: boolean;
|
|
29
|
-
messages: {
|
|
30
|
-
message: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}[];
|
|
33
|
-
subtitle: string;
|
|
34
|
-
title: string;
|
|
35
|
-
touched: Record<string, boolean>;
|
|
36
|
-
values: Record<string, string>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* V1 BaseSignUp — component-driven app-native sign-up for Vue.
|
|
40
|
-
*
|
|
41
|
-
* Mirrors `packages/react/.../SignUp/v1/BaseSignUp.tsx`. Reads the
|
|
42
|
-
* `/api/server/v1/flow/execute` response shape (`TYPOGRAPHY`, `FORM`, `INPUT`,
|
|
43
|
-
* `BUTTON`, `RICH_TEXT`, etc.) and renders it via the V1
|
|
44
|
-
* `SignUpOptionFactory`. Tracks form state internally and submits steps via
|
|
45
|
-
* the `onSubmit` prop until the flow completes.
|
|
46
|
-
*/
|
|
47
|
-
declare const BaseSignUp: Component;
|
|
48
|
-
export default BaseSignUp;
|
|
49
|
-
//# sourceMappingURL=BaseSignUp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSignUp.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-up/v1/BaseSignUp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAWH,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AAab;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU,EAAE,SAmdhB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,31 +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
|
-
import type { BaseSignUpRenderProps } from './BaseSignUp';
|
|
20
|
-
export type SignUpRenderProps = BaseSignUpRenderProps;
|
|
21
|
-
/**
|
|
22
|
-
* V1 SignUp container — wires `useThunderID().signUp` into `BaseSignUpV1` and
|
|
23
|
-
* handles redirects after the flow completes.
|
|
24
|
-
*
|
|
25
|
-
* Mirrors `sign-up/v2/.../SignUp.ts` but invokes the V1 base component which
|
|
26
|
-
* understands the `TYPOGRAPHY` / `INPUT` / `BUTTON` / `FORM` shapes returned by
|
|
27
|
-
* the V1 flow API.
|
|
28
|
-
*/
|
|
29
|
-
declare const SignUp: Component;
|
|
30
|
-
export default SignUp;
|
|
31
|
-
//# sourceMappingURL=SignUp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/sign-up/v1/SignUp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,OAAO,EAAC,KAAK,SAAS,EAAmE,MAAM,KAAK,CAAC;AAErG,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,cAAc,CAAC;AAGxD,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAEtD;;;;;;;GAOG;AACH,QAAA,MAAM,MAAM,EAAE,SAsFZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,50 +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 { EmbeddedFlowComponent } from '@thunderid/browser';
|
|
19
|
-
import { type VNode } from 'vue';
|
|
20
|
-
/**
|
|
21
|
-
* Props shared by all sign-up component renderers.
|
|
22
|
-
*/
|
|
23
|
-
export interface BaseSignUpOptionProps {
|
|
24
|
-
buttonClassName?: string;
|
|
25
|
-
component: EmbeddedFlowComponent;
|
|
26
|
-
formErrors: Record<string, string>;
|
|
27
|
-
formValues: Record<string, string>;
|
|
28
|
-
inputClassName?: string;
|
|
29
|
-
isFormValid: boolean;
|
|
30
|
-
isLoading: boolean;
|
|
31
|
-
onInputChange: (name: string, value: string) => void;
|
|
32
|
-
onSubmit: (component: EmbeddedFlowComponent, data?: Record<string, any>) => void;
|
|
33
|
-
size?: 'small' | 'medium' | 'large';
|
|
34
|
-
touchedFields: Record<string, boolean>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Build a VNode for a single V1 flow component. Returns `null` for unknown
|
|
38
|
-
* types (caller filters these out).
|
|
39
|
-
*/
|
|
40
|
-
export declare const createSignUpComponent: (props: BaseSignUpOptionProps) => VNode | VNode[] | null;
|
|
41
|
-
/**
|
|
42
|
-
* Render an array of V1 flow components as Vue VNodes, flattening nested
|
|
43
|
-
* containers (FORM) into a single list.
|
|
44
|
-
*/
|
|
45
|
-
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, onSubmit: (component: EmbeddedFlowComponent, data?: Record<string, any>) => void, options?: {
|
|
46
|
-
buttonClassName?: string;
|
|
47
|
-
inputClassName?: string;
|
|
48
|
-
size?: "small" | "medium" | "large";
|
|
49
|
-
}) => VNode[];
|
|
50
|
-
//# sourceMappingURL=SignUpOptionFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignUpOptionFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/components/auth/sign-up/v1/options/SignUpOptionFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,qBAAqB,EAAuC,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAC,KAAK,KAAK,EAAI,MAAM,KAAK,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