@thunderid/vue 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ThunderIDVueClient.d.ts +4 -10
- package/dist/ThunderIDVueClient.d.ts.map +1 -1
- package/dist/cjs/index.cjs +402 -620
- package/dist/components/auth/sign-in/SignIn.d.ts +1 -1
- package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +1 -1
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +2 -2
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts.map +1 -1
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +3 -3
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts.map +1 -1
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +2 -2
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts.map +1 -1
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +2 -2
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts.map +1 -1
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +3 -3
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts.map +1 -1
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +2 -2
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -1
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts +2 -2
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -1
- package/dist/components/primitives/Alert/Alert.css.d.ts +2 -2
- package/dist/components/primitives/Alert/Alert.css.d.ts.map +1 -1
- package/dist/components/primitives/Button/Button.css.d.ts +2 -2
- package/dist/components/primitives/Button/Button.css.d.ts.map +1 -1
- package/dist/components/primitives/Card/Card.css.d.ts +2 -2
- package/dist/components/primitives/Card/Card.css.d.ts.map +1 -1
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +2 -2
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts.map +1 -1
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +2 -2
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts.map +1 -1
- package/dist/components/primitives/Divider/Divider.css.d.ts +2 -2
- package/dist/components/primitives/Divider/Divider.css.d.ts.map +1 -1
- package/dist/components/primitives/Logo/Logo.css.d.ts +2 -2
- package/dist/components/primitives/Logo/Logo.css.d.ts.map +1 -1
- package/dist/components/primitives/OtpField/OtpField.css.d.ts +2 -2
- package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -1
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +2 -2
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts.map +1 -1
- package/dist/components/primitives/Select/Select.css.d.ts +2 -2
- package/dist/components/primitives/Select/Select.css.d.ts.map +1 -1
- package/dist/components/primitives/Spinner/Spinner.css.d.ts +2 -2
- package/dist/components/primitives/Spinner/Spinner.css.d.ts.map +1 -1
- package/dist/components/primitives/TextField/TextField.css.d.ts +2 -2
- package/dist/components/primitives/TextField/TextField.css.d.ts.map +1 -1
- package/dist/components/primitives/Typography/Typography.css.d.ts +2 -2
- package/dist/components/primitives/Typography/Typography.css.d.ts.map +1 -1
- package/dist/index.js +398 -616
- package/dist/models/contexts.d.ts +2 -2
- package/dist/models/contexts.d.ts.map +1 -1
- package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
- package/package.json +7 -5
- package/dist/__temp__/api.d.ts +0 -64
- package/dist/__temp__/api.d.ts.map +0 -1
- package/dist/__temp__/models.d.ts +0 -44
- package/dist/__temp__/models.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
Vue SDK for ThunderID. Provides composables and components for authentication in Vue 3 single-page applications.
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { ThunderIDBrowserClient, UserProfile,
|
|
18
|
+
import { ThunderIDBrowserClient, UserProfile, User, EmbeddedFlowExecuteResponse, SignUpOptions, EmbeddedFlowExecuteRequestPayload, Organization, IdToken, AllOrganizationsApiResponse, TokenResponse, HttpRequestConfig, HttpResponse, TokenExchangeRequestConfig } from '@thunderid/browser';
|
|
19
19
|
import { ThunderIDVueConfig } from './models/config';
|
|
20
20
|
/**
|
|
21
21
|
* Client for implementing ThunderID in Vue applications.
|
|
@@ -24,11 +24,8 @@ import { ThunderIDVueConfig } from './models/config';
|
|
|
24
24
|
* @typeParam T - Configuration type that extends ThunderIDVueConfig.
|
|
25
25
|
*/
|
|
26
26
|
declare class ThunderIDVueClient<T extends ThunderIDVueConfig = ThunderIDVueConfig> extends ThunderIDBrowserClient<T> {
|
|
27
|
-
private authApi;
|
|
28
27
|
private loadingState;
|
|
29
|
-
private clientInstanceId;
|
|
30
28
|
constructor(instanceId?: number);
|
|
31
|
-
getInstanceId(): number;
|
|
32
29
|
private setLoading;
|
|
33
30
|
private withLoading;
|
|
34
31
|
initialize(config: ThunderIDVueConfig): Promise<boolean>;
|
|
@@ -45,13 +42,9 @@ declare class ThunderIDVueClient<T extends ThunderIDVueConfig = ThunderIDVueConf
|
|
|
45
42
|
isLoading(): boolean;
|
|
46
43
|
isInitialized(): Promise<boolean>;
|
|
47
44
|
isSignedIn(): Promise<boolean>;
|
|
48
|
-
getConfiguration(): T;
|
|
49
45
|
exchangeToken(config: TokenExchangeRequestConfig): Promise<TokenResponse | Response>;
|
|
50
|
-
signIn(
|
|
51
|
-
|
|
52
|
-
signInSilently(options?: SignInOptions): Promise<User | boolean>;
|
|
53
|
-
signOut(options?: SignOutOptions, afterSignOut?: (afterSignOutUrl: string) => void): Promise<string>;
|
|
54
|
-
signOut(options?: SignOutOptions, sessionId?: string, afterSignOut?: (afterSignOutUrl: string) => void): Promise<string>;
|
|
46
|
+
signIn(...args: any[]): Promise<any>;
|
|
47
|
+
signInSilently(options?: any): Promise<User | boolean>;
|
|
55
48
|
signUp(options?: SignUpOptions): Promise<void>;
|
|
56
49
|
signUp(payload: EmbeddedFlowExecuteRequestPayload): Promise<EmbeddedFlowExecuteResponse>;
|
|
57
50
|
request(requestConfig?: HttpRequestConfig): Promise<HttpResponse<any>>;
|
|
@@ -60,6 +53,7 @@ declare class ThunderIDVueClient<T extends ThunderIDVueConfig = ThunderIDVueConf
|
|
|
60
53
|
clearSession(sessionId?: string): void;
|
|
61
54
|
setSession(sessionData: Record<string, unknown>, sessionId?: string): Promise<void>;
|
|
62
55
|
decodeJwtToken<TResult = Record<string, unknown>>(token: string): Promise<TResult>;
|
|
56
|
+
getStorageManager(): any;
|
|
63
57
|
}
|
|
64
58
|
export default ThunderIDVueClient;
|
|
65
59
|
//# sourceMappingURL=ThunderIDVueClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDVueClient.d.ts","sourceRoot":"","sources":["../src/ThunderIDVueClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,sBAAsB,EAGtB,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"ThunderIDVueClient.d.ts","sourceRoot":"","sources":["../src/ThunderIDVueClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,sBAAsB,EAGtB,WAAW,EACX,IAAI,EAEJ,2BAA2B,EAC3B,aAAa,EACb,iCAAiC,EAIjC,YAAY,EACZ,OAAO,EACP,2BAA2B,EAE3B,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,0BAA0B,EAK3B,MAAM,oBAAoB,CAAC;AAK5B,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAEnD;;;;;GAKG;AACH,cAAM,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CAAE,SAAQ,sBAAsB,CAAC,CAAC,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