@genesislcap/foundation-auth 14.483.3-alpha-7a2e689.0 → 14.484.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/dist/dts/main/main.d.ts +2 -2
- package/dist/dts/react.d.ts +197 -0
- package/dist/dts/routes/base.d.ts +1 -1
- package/dist/dts/routes/forgot-password/forgot-password.d.ts +3 -3
- package/dist/dts/routes/login/login.d.ts +7 -7
- package/dist/dts/routes/request-account/request-account.d.ts +5 -5
- package/dist/dts/routes/reset-password/reset-password.d.ts +7 -7
- package/dist/dts/routes/terms-conditions/terms-conditions.d.ts +1 -1
- package/dist/esm/main/main.js +2 -2
- package/dist/esm/routes/base.js +1 -1
- package/dist/esm/routes/forgot-password/forgot-password.js +3 -3
- package/dist/esm/routes/login/login.js +7 -7
- package/dist/esm/routes/request-account/request-account.js +5 -5
- package/dist/esm/routes/reset-password/reset-password.js +7 -7
- package/dist/esm/routes/terms-conditions/terms-conditions.js +1 -1
- package/dist/foundation-auth.api.json +1 -1
- package/dist/foundation-auth.d.ts +2 -2
- package/package.json +20 -19
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -373,8 +373,8 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
|
|
|
373
373
|
*
|
|
374
374
|
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
375
375
|
*
|
|
376
|
-
* @fires auth-store-connected - Fired after the auth store is connected (payload is this element).
|
|
377
|
-
* @fires auth-store-ready - Fired when the auth store is ready (payload indicates ready state).
|
|
376
|
+
* @fires auth-store-connected - Fired after the auth store is connected (payload is this element). detail: `HTMLElement`
|
|
377
|
+
* @fires auth-store-ready - Fired when the auth store is ready (payload indicates ready state). detail: `boolean`
|
|
378
378
|
* @fires auth-store-disconnected - Fired when the auth store is disconnected.
|
|
379
379
|
* @fires auth-autofill-form - Fired when the host should autofill the login form (logged-out state with empty fields).
|
|
380
380
|
*
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type React from 'react';
|
|
7
|
+
import type { BackgroundElement as BackgroundElementWC, LogoElement as LogoElementWC, MessageElement as MessageElementWC, SubmittingIndicator as SubmittingIndicatorWC } from './routes/base';
|
|
8
|
+
import type { ForgotPassword as ForgotPasswordWC } from './routes/forgot-password/forgot-password';
|
|
9
|
+
import type { Login as LoginWC } from './routes/login/login';
|
|
10
|
+
import type { Logout as LogoutWC } from './routes/logout/logout';
|
|
11
|
+
import type { NotFound as NotFoundWC } from './routes/not-found/not-found';
|
|
12
|
+
import type { Protected as ProtectedWC } from './routes/protected/protected';
|
|
13
|
+
import type { RequestAccount as RequestAccountWC } from './routes/request-account/request-account';
|
|
14
|
+
import type { ResetPassword as ResetPasswordWC } from './routes/reset-password/reset-password';
|
|
15
|
+
import type { TermsConditions as TermsConditionsWC } from './routes/terms-conditions/terms-conditions';
|
|
16
|
+
import type { Verify as VerifyWC } from './routes/verify/verify';
|
|
17
|
+
import type { ChangePasswordParams, ForgotPasswordParams, LoginParams, ResetPasswordParams, TermsConditionsParams } from '@genesislcap/foundation-auth';
|
|
18
|
+
|
|
19
|
+
/** @internal Maps a web component class to its public props only.
|
|
20
|
+
* keyof T skips private/protected members, so this avoids the TS error
|
|
21
|
+
* "property may not be private or protected" on exported anonymous types. */
|
|
22
|
+
type PublicOf<T> = { [K in keyof T]?: T[K] };
|
|
23
|
+
|
|
24
|
+
/** @internal Safe React HTML attributes for web component wrappers.
|
|
25
|
+
* onChange/onInput use method signatures for bivariant parameter checking so both
|
|
26
|
+
* native Event and CustomEvent callbacks are accepted. */
|
|
27
|
+
interface HTMLWCProps extends React.AriaAttributes {
|
|
28
|
+
className?: string; style?: React.CSSProperties; id?: string; slot?: string;
|
|
29
|
+
tabIndex?: number; dir?: string; lang?: string; title?: string;
|
|
30
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
31
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement>;
|
|
32
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement>;
|
|
33
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
34
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
35
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
36
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
37
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
38
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
39
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
40
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
41
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
42
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
43
|
+
onWheel?: React.WheelEventHandler<HTMLElement>;
|
|
44
|
+
onChange?(e: Event): void;
|
|
45
|
+
onInput?(e: Event): void;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export declare const BackgroundElement: React.ForwardRefExoticComponent<
|
|
49
|
+
React.PropsWithChildren<
|
|
50
|
+
Omit<PublicOf<BackgroundElementWC>, 'children' | 'style'> &
|
|
51
|
+
HTMLWCProps & {
|
|
52
|
+
}
|
|
53
|
+
> & React.RefAttributes<BackgroundElementWC>
|
|
54
|
+
>;
|
|
55
|
+
export type BackgroundElementRef = BackgroundElementWC;
|
|
56
|
+
|
|
57
|
+
export declare const LogoElement: React.ForwardRefExoticComponent<
|
|
58
|
+
React.PropsWithChildren<
|
|
59
|
+
Omit<PublicOf<LogoElementWC>, 'children' | 'style'> &
|
|
60
|
+
HTMLWCProps & {
|
|
61
|
+
}
|
|
62
|
+
> & React.RefAttributes<LogoElementWC>
|
|
63
|
+
>;
|
|
64
|
+
export type LogoElementRef = LogoElementWC;
|
|
65
|
+
|
|
66
|
+
export declare const MessageElement: React.ForwardRefExoticComponent<
|
|
67
|
+
React.PropsWithChildren<
|
|
68
|
+
Omit<PublicOf<MessageElementWC>, 'children' | 'style'> &
|
|
69
|
+
HTMLWCProps & {
|
|
70
|
+
}
|
|
71
|
+
> & React.RefAttributes<MessageElementWC>
|
|
72
|
+
>;
|
|
73
|
+
export type MessageElementRef = MessageElementWC;
|
|
74
|
+
|
|
75
|
+
export declare const SubmittingIndicator: React.ForwardRefExoticComponent<
|
|
76
|
+
React.PropsWithChildren<
|
|
77
|
+
Omit<PublicOf<SubmittingIndicatorWC>, 'children' | 'style'> &
|
|
78
|
+
HTMLWCProps & {
|
|
79
|
+
}
|
|
80
|
+
> & React.RefAttributes<SubmittingIndicatorWC>
|
|
81
|
+
>;
|
|
82
|
+
export type SubmittingIndicatorRef = SubmittingIndicatorWC;
|
|
83
|
+
|
|
84
|
+
export declare const ForgotPassword: React.ForwardRefExoticComponent<
|
|
85
|
+
React.PropsWithChildren<
|
|
86
|
+
Omit<PublicOf<ForgotPasswordWC>, 'children' | 'style'> &
|
|
87
|
+
HTMLWCProps & {
|
|
88
|
+
onAuthForgotPassword?: (event: CustomEvent<ForgotPasswordParams>) => void;
|
|
89
|
+
onAuthOrganisationChanged?: (event: CustomEvent<string>) => void;
|
|
90
|
+
onAuthUsernameChanged?: (event: CustomEvent<string>) => void;
|
|
91
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
92
|
+
}
|
|
93
|
+
> & React.RefAttributes<ForgotPasswordWC>
|
|
94
|
+
>;
|
|
95
|
+
export type ForgotPasswordRef = ForgotPasswordWC;
|
|
96
|
+
|
|
97
|
+
export declare const Login: React.ForwardRefExoticComponent<
|
|
98
|
+
React.PropsWithChildren<
|
|
99
|
+
Omit<PublicOf<LoginWC>, 'children' | 'style'> &
|
|
100
|
+
HTMLWCProps & {
|
|
101
|
+
onAuthLogin?: (event: CustomEvent<LoginParams>) => void;
|
|
102
|
+
onAuthLogout?: (event: CustomEvent<unknown>) => void;
|
|
103
|
+
onAuthSsoToggledChanged?: (event: CustomEvent<boolean>) => void;
|
|
104
|
+
onAuthSelectedIdpChanged?: (event: CustomEvent<string>) => void;
|
|
105
|
+
onAuthOrganisationChanged?: (event: CustomEvent<string>) => void;
|
|
106
|
+
onAuthUsernameChanged?: (event: CustomEvent<string>) => void;
|
|
107
|
+
onAuthPasswordChanged?: (event: CustomEvent<string>) => void;
|
|
108
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
109
|
+
}
|
|
110
|
+
> & React.RefAttributes<LoginWC>
|
|
111
|
+
>;
|
|
112
|
+
export type LoginRef = LoginWC;
|
|
113
|
+
|
|
114
|
+
export declare const Logout: React.ForwardRefExoticComponent<
|
|
115
|
+
React.PropsWithChildren<
|
|
116
|
+
Omit<PublicOf<LogoutWC>, 'children' | 'style'> &
|
|
117
|
+
HTMLWCProps & {
|
|
118
|
+
onAuthLogout?: (event: CustomEvent<unknown>) => void;
|
|
119
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
120
|
+
}
|
|
121
|
+
> & React.RefAttributes<LogoutWC>
|
|
122
|
+
>;
|
|
123
|
+
export type LogoutRef = LogoutWC;
|
|
124
|
+
|
|
125
|
+
export declare const NotFound: React.ForwardRefExoticComponent<
|
|
126
|
+
React.PropsWithChildren<
|
|
127
|
+
Omit<PublicOf<NotFoundWC>, 'children' | 'style'> &
|
|
128
|
+
HTMLWCProps & {
|
|
129
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
130
|
+
}
|
|
131
|
+
> & React.RefAttributes<NotFoundWC>
|
|
132
|
+
>;
|
|
133
|
+
export type NotFoundRef = NotFoundWC;
|
|
134
|
+
|
|
135
|
+
export declare const Protected: React.ForwardRefExoticComponent<
|
|
136
|
+
React.PropsWithChildren<
|
|
137
|
+
Omit<PublicOf<ProtectedWC>, 'children' | 'style'> &
|
|
138
|
+
HTMLWCProps & {
|
|
139
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
140
|
+
}
|
|
141
|
+
> & React.RefAttributes<ProtectedWC>
|
|
142
|
+
>;
|
|
143
|
+
export type ProtectedRef = ProtectedWC;
|
|
144
|
+
|
|
145
|
+
export declare const RequestAccount: React.ForwardRefExoticComponent<
|
|
146
|
+
React.PropsWithChildren<
|
|
147
|
+
Omit<PublicOf<RequestAccountWC>, 'children' | 'style'> &
|
|
148
|
+
HTMLWCProps & {
|
|
149
|
+
onAuthOrganisationChanged?: (event: CustomEvent<string>) => void;
|
|
150
|
+
onAuthUsernameChanged?: (event: CustomEvent<string>) => void;
|
|
151
|
+
onAuthEmailChanged?: (event: CustomEvent<string>) => void;
|
|
152
|
+
onAuthPasswordChanged?: (event: CustomEvent<string>) => void;
|
|
153
|
+
onAuthPassword2Changed?: (event: CustomEvent<string>) => void;
|
|
154
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
155
|
+
}
|
|
156
|
+
> & React.RefAttributes<RequestAccountWC>
|
|
157
|
+
>;
|
|
158
|
+
export type RequestAccountRef = RequestAccountWC;
|
|
159
|
+
|
|
160
|
+
export declare const ResetPassword: React.ForwardRefExoticComponent<
|
|
161
|
+
React.PropsWithChildren<
|
|
162
|
+
Omit<PublicOf<ResetPasswordWC>, 'children' | 'style'> &
|
|
163
|
+
HTMLWCProps & {
|
|
164
|
+
onAuthResetPassword?: (event: CustomEvent<ResetPasswordParams>) => void;
|
|
165
|
+
onAuthChangePassword?: (event: CustomEvent<ChangePasswordParams>) => void;
|
|
166
|
+
onAuthOrganisationChanged?: (event: CustomEvent<string>) => void;
|
|
167
|
+
onAuthUsernameChanged?: (event: CustomEvent<string>) => void;
|
|
168
|
+
onAuthPasswordChanged?: (event: CustomEvent<string>) => void;
|
|
169
|
+
onAuthPassword2Changed?: (event: CustomEvent<string>) => void;
|
|
170
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
171
|
+
}
|
|
172
|
+
> & React.RefAttributes<ResetPasswordWC>
|
|
173
|
+
>;
|
|
174
|
+
export type ResetPasswordRef = ResetPasswordWC;
|
|
175
|
+
|
|
176
|
+
export declare const TermsConditions: React.ForwardRefExoticComponent<
|
|
177
|
+
React.PropsWithChildren<
|
|
178
|
+
Omit<PublicOf<TermsConditionsWC>, 'children' | 'style'> &
|
|
179
|
+
HTMLWCProps & {
|
|
180
|
+
onAuthTermsConditions?: (event: CustomEvent<TermsConditionsParams>) => void;
|
|
181
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
182
|
+
}
|
|
183
|
+
> & React.RefAttributes<TermsConditionsWC>
|
|
184
|
+
>;
|
|
185
|
+
export type TermsConditionsRef = TermsConditionsWC;
|
|
186
|
+
|
|
187
|
+
export declare const Verify: React.ForwardRefExoticComponent<
|
|
188
|
+
React.PropsWithChildren<
|
|
189
|
+
Omit<PublicOf<VerifyWC>, 'children' | 'style'> &
|
|
190
|
+
HTMLWCProps & {
|
|
191
|
+
onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
|
|
192
|
+
}
|
|
193
|
+
> & React.RefAttributes<VerifyWC>
|
|
194
|
+
>;
|
|
195
|
+
export type VerifyRef = VerifyWC;
|
|
196
|
+
|
|
197
|
+
export {};
|
|
@@ -398,7 +398,7 @@ export declare class ConfigHostElement extends ConfigHostElement_base implements
|
|
|
398
398
|
/**
|
|
399
399
|
* @internal
|
|
400
400
|
*
|
|
401
|
-
* @fires auth-showPassword-changed - Fired from shared templates when show-password toggle changes
|
|
401
|
+
* @fires auth-showPassword-changed - Fired from shared templates when show-password toggle changes. detail: `boolean`
|
|
402
402
|
*/
|
|
403
403
|
export declare class BaseRoute extends ConfigHostElement {
|
|
404
404
|
user: User;
|
|
@@ -2,9 +2,9 @@ import { BaseRoute } from '../base';
|
|
|
2
2
|
/**
|
|
3
3
|
* ForgotPassword
|
|
4
4
|
*
|
|
5
|
-
* @fires auth-forgot-password - Fires a custom 'auth-forgot-password' event.
|
|
6
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
7
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
5
|
+
* @fires auth-forgot-password - Fires a custom 'auth-forgot-password' event. detail: `ForgotPasswordParams`
|
|
6
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
7
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
@@ -4,14 +4,14 @@ import { BaseRoute } from '../base';
|
|
|
4
4
|
/**
|
|
5
5
|
* Login
|
|
6
6
|
*
|
|
7
|
-
* @fires auth-login - Fires a custom 'auth-login' event.
|
|
7
|
+
* @fires auth-login - Fires a custom 'auth-login' event. detail: `LoginParams`
|
|
8
8
|
* @fires auth-logout - Fires a custom 'auth-logout' event.
|
|
9
|
-
* @fires auth-ssoToggled-changed - Fires a custom 'auth-ssoToggled-changed' event.
|
|
10
|
-
* @fires auth-selectedIdp-changed - Fires a custom 'auth-selectedIdp-changed' event.
|
|
11
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
12
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
13
|
-
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event.
|
|
14
|
-
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event.
|
|
9
|
+
* @fires auth-ssoToggled-changed - Fires a custom 'auth-ssoToggled-changed' event. detail: `boolean`
|
|
10
|
+
* @fires auth-selectedIdp-changed - Fires a custom 'auth-selectedIdp-changed' event. detail: `string`
|
|
11
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
12
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
13
|
+
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
|
|
14
|
+
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event. detail: `boolean`
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
@@ -2,11 +2,11 @@ import { BaseRoute } from '../base';
|
|
|
2
2
|
/**
|
|
3
3
|
* RequestAccount
|
|
4
4
|
*
|
|
5
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
6
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
7
|
-
* @fires auth-email-changed - Fires a custom 'auth-email-changed' event.
|
|
8
|
-
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event.
|
|
9
|
-
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event.
|
|
5
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
6
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
7
|
+
* @fires auth-email-changed - Fires a custom 'auth-email-changed' event. detail: `string`
|
|
8
|
+
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
|
|
9
|
+
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event. detail: `string`
|
|
10
10
|
*
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
@@ -4,13 +4,13 @@ import type { Settings } from '../types';
|
|
|
4
4
|
/**
|
|
5
5
|
* ResetPassword
|
|
6
6
|
*
|
|
7
|
-
* @fires auth-reset-password - Fires a custom 'auth-reset-password' event.
|
|
8
|
-
* @fires auth-change-password - Fires a custom 'auth-change-password' event.
|
|
9
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
10
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
11
|
-
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event.
|
|
12
|
-
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event.
|
|
13
|
-
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event.
|
|
7
|
+
* @fires auth-reset-password - Fires a custom 'auth-reset-password' event. detail: `ResetPasswordParams`
|
|
8
|
+
* @fires auth-change-password - Fires a custom 'auth-change-password' event. detail: `ChangePasswordParams`
|
|
9
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
10
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
11
|
+
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
|
|
12
|
+
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event. detail: `string`
|
|
13
|
+
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event. detail: `boolean`
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
@@ -2,7 +2,7 @@ import { BaseRoute } from '../base';
|
|
|
2
2
|
/**
|
|
3
3
|
* TermsConditions
|
|
4
4
|
*
|
|
5
|
-
* @fires auth-terms-conditions - Fires a custom 'auth-terms-conditions' event.
|
|
5
|
+
* @fires auth-terms-conditions - Fires a custom 'auth-terms-conditions' event. detail: `TermsConditionsParams`
|
|
6
6
|
*
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
package/dist/esm/main/main.js
CHANGED
|
@@ -17,8 +17,8 @@ import { AuthStore } from '../store';
|
|
|
17
17
|
*
|
|
18
18
|
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
19
19
|
*
|
|
20
|
-
* @fires auth-store-connected - Fired after the auth store is connected (payload is this element).
|
|
21
|
-
* @fires auth-store-ready - Fired when the auth store is ready (payload indicates ready state).
|
|
20
|
+
* @fires auth-store-connected - Fired after the auth store is connected (payload is this element). detail: `HTMLElement`
|
|
21
|
+
* @fires auth-store-ready - Fired when the auth store is ready (payload indicates ready state). detail: `boolean`
|
|
22
22
|
* @fires auth-store-disconnected - Fired when the auth store is disconnected.
|
|
23
23
|
* @fires auth-autofill-form - Fired when the host should autofill the login form (logged-out state with empty fields).
|
|
24
24
|
*
|
package/dist/esm/routes/base.js
CHANGED
|
@@ -46,7 +46,7 @@ __decorate([
|
|
|
46
46
|
/**
|
|
47
47
|
* @internal
|
|
48
48
|
*
|
|
49
|
-
* @fires auth-showPassword-changed - Fired from shared templates when show-password toggle changes
|
|
49
|
+
* @fires auth-showPassword-changed - Fired from shared templates when show-password toggle changes. detail: `boolean`
|
|
50
50
|
*/
|
|
51
51
|
export class BaseRoute extends ConfigHostElement {
|
|
52
52
|
constructor() {
|
|
@@ -7,9 +7,9 @@ import { ForgotPasswordTemplate as template } from './forgot-password.template';
|
|
|
7
7
|
/**
|
|
8
8
|
* ForgotPassword
|
|
9
9
|
*
|
|
10
|
-
* @fires auth-forgot-password - Fires a custom 'auth-forgot-password' event.
|
|
11
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
12
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
10
|
+
* @fires auth-forgot-password - Fires a custom 'auth-forgot-password' event. detail: `ForgotPasswordParams`
|
|
11
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
12
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
13
13
|
*
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
@@ -9,14 +9,14 @@ import { LoginTemplate as template } from './login.template';
|
|
|
9
9
|
/**
|
|
10
10
|
* Login
|
|
11
11
|
*
|
|
12
|
-
* @fires auth-login - Fires a custom 'auth-login' event.
|
|
12
|
+
* @fires auth-login - Fires a custom 'auth-login' event. detail: `LoginParams`
|
|
13
13
|
* @fires auth-logout - Fires a custom 'auth-logout' event.
|
|
14
|
-
* @fires auth-ssoToggled-changed - Fires a custom 'auth-ssoToggled-changed' event.
|
|
15
|
-
* @fires auth-selectedIdp-changed - Fires a custom 'auth-selectedIdp-changed' event.
|
|
16
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
17
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
18
|
-
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event.
|
|
19
|
-
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event.
|
|
14
|
+
* @fires auth-ssoToggled-changed - Fires a custom 'auth-ssoToggled-changed' event. detail: `boolean`
|
|
15
|
+
* @fires auth-selectedIdp-changed - Fires a custom 'auth-selectedIdp-changed' event. detail: `string`
|
|
16
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
17
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
18
|
+
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
|
|
19
|
+
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event. detail: `boolean`
|
|
20
20
|
*
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
@@ -7,11 +7,11 @@ import { RequestAccountTemplate as template } from './request-account.template';
|
|
|
7
7
|
/**
|
|
8
8
|
* RequestAccount
|
|
9
9
|
*
|
|
10
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
11
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
12
|
-
* @fires auth-email-changed - Fires a custom 'auth-email-changed' event.
|
|
13
|
-
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event.
|
|
14
|
-
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event.
|
|
10
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
11
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
12
|
+
* @fires auth-email-changed - Fires a custom 'auth-email-changed' event. detail: `string`
|
|
13
|
+
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
|
|
14
|
+
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event. detail: `string`
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
@@ -6,13 +6,13 @@ import { ResetPasswordTemplate as template } from './reset-password.template';
|
|
|
6
6
|
/**
|
|
7
7
|
* ResetPassword
|
|
8
8
|
*
|
|
9
|
-
* @fires auth-reset-password - Fires a custom 'auth-reset-password' event.
|
|
10
|
-
* @fires auth-change-password - Fires a custom 'auth-change-password' event.
|
|
11
|
-
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
|
|
12
|
-
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
|
|
13
|
-
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event.
|
|
14
|
-
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event.
|
|
15
|
-
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event.
|
|
9
|
+
* @fires auth-reset-password - Fires a custom 'auth-reset-password' event. detail: `ResetPasswordParams`
|
|
10
|
+
* @fires auth-change-password - Fires a custom 'auth-change-password' event. detail: `ChangePasswordParams`
|
|
11
|
+
* @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event. detail: `string`
|
|
12
|
+
* @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
|
|
13
|
+
* @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
|
|
14
|
+
* @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event. detail: `string`
|
|
15
|
+
* @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event. detail: `boolean`
|
|
16
16
|
*
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
@@ -8,7 +8,7 @@ import { TermsConditionsTemplate as template } from './terms-conditions.template
|
|
|
8
8
|
/**
|
|
9
9
|
* TermsConditions
|
|
10
10
|
*
|
|
11
|
-
* @fires auth-terms-conditions - Fires a custom 'auth-terms-conditions' event.
|
|
11
|
+
* @fires auth-terms-conditions - Fires a custom 'auth-terms-conditions' event. detail: `TermsConditionsParams`
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
@@ -9488,7 +9488,7 @@
|
|
|
9488
9488
|
{
|
|
9489
9489
|
"kind": "Class",
|
|
9490
9490
|
"canonicalReference": "@genesislcap/foundation-auth!FoundationAuth:class",
|
|
9491
|
-
"docComment": "/**\n * FoundationAuth.\n *\n * @remarks\n *\n * Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are expected to be registered in the host application, which should provide the details of which to the MF via TemplateOptions.\n *\n * See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.\n *\n * @fires\n *\n * auth-store-connected - Fired after the auth store is connected (payload is this element)
|
|
9491
|
+
"docComment": "/**\n * FoundationAuth.\n *\n * @remarks\n *\n * Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are expected to be registered in the host application, which should provide the details of which to the MF via TemplateOptions.\n *\n * See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.\n *\n * @fires\n *\n * auth-store-connected - Fired after the auth store is connected (payload is this element). detail: `HTMLElement`\n *\n * @fires\n *\n * auth-store-ready - Fired when the auth store is ready (payload indicates ready state). detail: `boolean`\n *\n * @fires\n *\n * auth-store-disconnected - Fired when the auth store is disconnected.\n *\n * @fires\n *\n * auth-autofill-form - Fired when the host should autofill the login form (logged-out state with empty fields).\n *\n * @public\n */\n",
|
|
9492
9492
|
"excerptTokens": [
|
|
9493
9493
|
{
|
|
9494
9494
|
"kind": "Content",
|
|
@@ -1398,8 +1398,8 @@ export declare type ForgotPasswordParams = {
|
|
|
1398
1398
|
*
|
|
1399
1399
|
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
1400
1400
|
*
|
|
1401
|
-
* @fires auth-store-connected - Fired after the auth store is connected (payload is this element).
|
|
1402
|
-
* @fires auth-store-ready - Fired when the auth store is ready (payload indicates ready state).
|
|
1401
|
+
* @fires auth-store-connected - Fired after the auth store is connected (payload is this element). detail: `HTMLElement`
|
|
1402
|
+
* @fires auth-store-ready - Fired when the auth store is ready (payload indicates ready state). detail: `boolean`
|
|
1403
1403
|
* @fires auth-store-disconnected - Fired when the auth store is disconnected.
|
|
1404
1404
|
* @fires auth-autofill-form - Fired when the host should autofill the login form (logged-out state with empty fields).
|
|
1405
1405
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-auth",
|
|
3
3
|
"description": "Genesis Foundation Auth",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.484.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-auth.d.ts",
|
|
@@ -134,25 +134,25 @@
|
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@genesislcap/foundation-testing": "14.
|
|
138
|
-
"@genesislcap/genx": "14.
|
|
139
|
-
"@genesislcap/rollup-builder": "14.
|
|
140
|
-
"@genesislcap/ts-builder": "14.
|
|
141
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
142
|
-
"@genesislcap/vite-builder": "14.
|
|
143
|
-
"@genesislcap/webpack-builder": "14.
|
|
137
|
+
"@genesislcap/foundation-testing": "14.484.0",
|
|
138
|
+
"@genesislcap/genx": "14.484.0",
|
|
139
|
+
"@genesislcap/rollup-builder": "14.484.0",
|
|
140
|
+
"@genesislcap/ts-builder": "14.484.0",
|
|
141
|
+
"@genesislcap/uvu-playwright-builder": "14.484.0",
|
|
142
|
+
"@genesislcap/vite-builder": "14.484.0",
|
|
143
|
+
"@genesislcap/webpack-builder": "14.484.0"
|
|
144
144
|
},
|
|
145
145
|
"dependencies": {
|
|
146
|
-
"@genesislcap/foundation-comms": "14.
|
|
147
|
-
"@genesislcap/foundation-events": "14.
|
|
148
|
-
"@genesislcap/foundation-i18n": "14.
|
|
149
|
-
"@genesislcap/foundation-logger": "14.
|
|
150
|
-
"@genesislcap/foundation-state-machine": "14.
|
|
151
|
-
"@genesislcap/foundation-store": "14.
|
|
152
|
-
"@genesislcap/foundation-ui": "14.
|
|
153
|
-
"@genesislcap/foundation-user": "14.
|
|
154
|
-
"@genesislcap/foundation-utils": "14.
|
|
155
|
-
"@genesislcap/foundation-zero": "14.
|
|
146
|
+
"@genesislcap/foundation-comms": "14.484.0",
|
|
147
|
+
"@genesislcap/foundation-events": "14.484.0",
|
|
148
|
+
"@genesislcap/foundation-i18n": "14.484.0",
|
|
149
|
+
"@genesislcap/foundation-logger": "14.484.0",
|
|
150
|
+
"@genesislcap/foundation-state-machine": "14.484.0",
|
|
151
|
+
"@genesislcap/foundation-store": "14.484.0",
|
|
152
|
+
"@genesislcap/foundation-ui": "14.484.0",
|
|
153
|
+
"@genesislcap/foundation-user": "14.484.0",
|
|
154
|
+
"@genesislcap/foundation-utils": "14.484.0",
|
|
155
|
+
"@genesislcap/foundation-zero": "14.484.0",
|
|
156
156
|
"@microsoft/fast-components": "2.30.6",
|
|
157
157
|
"@microsoft/fast-element": "1.14.0",
|
|
158
158
|
"@microsoft/fast-foundation": "2.50.0",
|
|
@@ -172,5 +172,6 @@
|
|
|
172
172
|
"publishConfig": {
|
|
173
173
|
"access": "public"
|
|
174
174
|
},
|
|
175
|
-
"
|
|
175
|
+
"customElements": "dist/custom-elements.json",
|
|
176
|
+
"gitHead": "1ec7b2318e2447c2cd3ad877666b6fd1f3b87c05"
|
|
176
177
|
}
|