@genesislcap/foundation-auth 14.291.2-alpha-04c16dc.0 → 14.293.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/config/config.d.ts +4 -0
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/routes/base.d.ts +5 -4
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/forgot-password/forgot-password.template.d.ts.map +1 -1
- package/dist/dts/routes/login/login.template.d.ts.map +1 -1
- package/dist/dts/routes/logout/logout.template.d.ts.map +1 -1
- package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
- package/dist/dts/routes/reset-password/reset-password.template.d.ts.map +1 -1
- package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
- package/dist/dts/styles/styles.d.ts.map +1 -1
- package/dist/esm/routes/base.js +8 -0
- package/dist/esm/routes/forgot-password/forgot-password.template.js +2 -1
- package/dist/esm/routes/login/login.template.js +2 -1
- package/dist/esm/routes/logout/logout.template.js +2 -0
- package/dist/esm/routes/request-account/request-account.template.js +2 -1
- package/dist/esm/routes/reset-password/reset-password.template.js +2 -1
- package/dist/esm/routes/verify/verify.template.js +2 -1
- package/dist/esm/styles/styles.js +4 -0
- package/dist/foundation-auth.api.json +27 -0
- package/dist/foundation-auth.d.ts +4 -0
- package/docs/api/foundation-auth.authconfig.md +1 -0
- package/docs/api/foundation-auth.authconfig.showenvironmentindicator.md +13 -0
- package/docs/api-report.md +1 -0
- package/package.json +19 -19
|
@@ -256,6 +256,10 @@ export interface AuthConfig extends PartialFASTElementDefinition {
|
|
|
256
256
|
* ```
|
|
257
257
|
*/
|
|
258
258
|
localizationResources?: I18nextConfig['resources'];
|
|
259
|
+
/**
|
|
260
|
+
* Show or hide the environment indicator.
|
|
261
|
+
*/
|
|
262
|
+
showEnvironmentIndicator?: boolean;
|
|
259
263
|
}
|
|
260
264
|
/**
|
|
261
265
|
* Default AuthConfig DI implementation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAO,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAK9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAA0B,eAAe,EAAE,MAAM,aAAa,CAAC;AAEtE;;GAEG;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,4BAA4B;IAC9D;;;;;OAKG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,IAAI,EAAE,gBAAgB,GAAG,gBAAgB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string;
|
|
206
206
|
ariaSelected: string;
|
|
207
207
|
ariaSetSize: string;
|
|
208
|
-
ariaSort: string;
|
|
209
|
-
* i18next instance for managing internationalization.
|
|
210
|
-
* @internal
|
|
211
|
-
*/
|
|
208
|
+
ariaSort: string;
|
|
212
209
|
ariaValueMax: string;
|
|
213
210
|
ariaValueMin: string;
|
|
214
211
|
ariaValueNow: string;
|
|
@@ -405,5 +402,9 @@ export declare const submitButton: <T extends ConfigHost>(label: string, dataTes
|
|
|
405
402
|
* @internal
|
|
406
403
|
*/
|
|
407
404
|
export declare const showPasswordCheckbox: <T extends BaseRoute>() => import("@microsoft/fast-element").ViewTemplate<T, any>;
|
|
405
|
+
/**
|
|
406
|
+
* @internal
|
|
407
|
+
*/
|
|
408
|
+
export declare const showEnvironmentIndicator: <T extends BaseRoute>() => import("@microsoft/fast-element").ViewTemplate<T, any>;
|
|
408
409
|
export {};
|
|
409
410
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGpD,OAAO,EAEL,OAAO,EAQR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,KAAK,QAAQ,GAAG,YAAY,GAAG,qBAAqB,GAAG,EAAE,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS,wLAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,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sources":["../../../../src/routes/forgot-password/forgot-password.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"forgot-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/forgot-password/forgot-password.template.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,qEAyBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA8GrC;;;GAGG;AACH,eAAO,MAAM,aAAa,4DA8CzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/logout/logout.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logout.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/logout/logout.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,cAAc,6DAa1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-account.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-account.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/request-account/request-account.template.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,qEA4BlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.template.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,oEA6BjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"verify.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/verify/verify.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,cAAc,6DAiC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles/styles.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY,iDAiIxB,CAAC"}
|
package/dist/esm/routes/base.js
CHANGED
|
@@ -325,6 +325,14 @@ export const showPasswordCheckbox = () => html `
|
|
|
325
325
|
Show Password
|
|
326
326
|
</rapid-checkbox>
|
|
327
327
|
`;
|
|
328
|
+
/**
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
export const showEnvironmentIndicator = () => html `
|
|
332
|
+
${when((x) => x.config.showEnvironmentIndicator, html `
|
|
333
|
+
<rapid-environment-indicator class="environment-indicator"></rapid-environment-indicator>
|
|
334
|
+
`)}
|
|
335
|
+
`;
|
|
328
336
|
/**
|
|
329
337
|
* @internal
|
|
330
338
|
* @privateRemarks
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
|
-
import { backButton, organisationField, submitButton, usernameField } from '../base';
|
|
2
|
+
import { backButton, organisationField, showEnvironmentIndicator, submitButton, usernameField, } from '../base';
|
|
3
3
|
/**
|
|
4
4
|
* ForgotPasswordTemplate
|
|
5
5
|
* @public
|
|
@@ -10,6 +10,7 @@ export const ForgotPasswordTemplate = html `
|
|
|
10
10
|
<rapid-card class="card-pd">
|
|
11
11
|
<div class="column-content">
|
|
12
12
|
<auth-logo></auth-logo>
|
|
13
|
+
${showEnvironmentIndicator()}
|
|
13
14
|
<div class="heading2" data-test-id="heading">
|
|
14
15
|
${(x) => x.toLocalisedText('FORGOTTEN_PASSWORD_TITLE')}
|
|
15
16
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { targetChecked } from '@genesislcap/foundation-events';
|
|
2
2
|
import { html, repeat, when } from '@microsoft/fast-element';
|
|
3
|
-
import { organisationField, passwordField, showPasswordCheckbox, usernameField, submitButton, selectEmit, } from '../base';
|
|
3
|
+
import { organisationField, passwordField, showPasswordCheckbox, usernameField, submitButton, selectEmit, showEnvironmentIndicator, } from '../base';
|
|
4
4
|
const regularLogin = html `
|
|
5
5
|
${when((login) => !login.store.formEntry.ssoToggled, html `
|
|
6
6
|
${organisationField()} ${usernameField()} ${passwordField()}
|
|
@@ -97,6 +97,7 @@ export const LoginTemplate = html `
|
|
|
97
97
|
<rapid-card class="card-pd">
|
|
98
98
|
<div class="column-content">
|
|
99
99
|
<auth-logo></auth-logo>
|
|
100
|
+
${showEnvironmentIndicator()}
|
|
100
101
|
<div class="heading2" data-test-id="heading">
|
|
101
102
|
${(x) => x.toLocalisedText('LOGIN_TITLE')}
|
|
102
103
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { html } from '@microsoft/fast-element';
|
|
2
|
+
import { showEnvironmentIndicator } from '../base';
|
|
2
3
|
/**
|
|
3
4
|
* LogoutTemplate
|
|
4
5
|
* @public
|
|
@@ -9,6 +10,7 @@ export const LogoutTemplate = html `
|
|
|
9
10
|
<rapid-card class="card-pd">
|
|
10
11
|
<div class="column-content">
|
|
11
12
|
<auth-logo></auth-logo>
|
|
13
|
+
${showEnvironmentIndicator()}
|
|
12
14
|
<submitting-indicator is-submitting="${(x) => x.store.isPending}"></submitting-indicator>
|
|
13
15
|
<auth-message></auth-message>
|
|
14
16
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
2
|
import { html } from '@microsoft/fast-element';
|
|
3
|
-
import { backButton, emailField, organisationField, password2Field, passwordField, submitButton, usernameField, } from '../base';
|
|
3
|
+
import { backButton, emailField, organisationField, password2Field, passwordField, showEnvironmentIndicator, submitButton, usernameField, } from '../base';
|
|
4
4
|
/**
|
|
5
5
|
* RequestAccountTemplate
|
|
6
6
|
* @public
|
|
@@ -11,6 +11,7 @@ export const RequestAccountTemplate = html `
|
|
|
11
11
|
<rapid-card class="card-pd">
|
|
12
12
|
<div class="column-content">
|
|
13
13
|
<auth-logo></auth-logo>
|
|
14
|
+
${showEnvironmentIndicator()}
|
|
14
15
|
<div class="heading2" data-test-id="heading">Request Account</div>
|
|
15
16
|
</div>
|
|
16
17
|
<form @submit=${(x) => x.onSubmit()} data-test-id="form">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html, when } from '@microsoft/fast-element';
|
|
2
|
-
import { backButton, organisationField, password2Field, passwordField, showPasswordCheckbox, submitButton, usernameField, } from '../base';
|
|
2
|
+
import { backButton, organisationField, password2Field, passwordField, showEnvironmentIndicator, showPasswordCheckbox, submitButton, usernameField, } from '../base';
|
|
3
3
|
/**
|
|
4
4
|
* ResetPasswordTemplate
|
|
5
5
|
* @public
|
|
@@ -10,6 +10,7 @@ export const ResetPasswordTemplate = html `
|
|
|
10
10
|
<rapid-card class="card-pd">
|
|
11
11
|
<div class="column-content">
|
|
12
12
|
<auth-logo></auth-logo>
|
|
13
|
+
${showEnvironmentIndicator()}
|
|
13
14
|
<div class="heading2" data-test-id="heading">${(x) => x.headingText}</div>
|
|
14
15
|
<div class="heading3">${(x) => x.toLocalisedText('RESET_PASSWORD_SUBTITLE')}</div>
|
|
15
16
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
2
|
import { html } from '@microsoft/fast-element';
|
|
3
|
-
import { backButton, submitButton } from '../base';
|
|
3
|
+
import { backButton, showEnvironmentIndicator, submitButton } from '../base';
|
|
4
4
|
/**
|
|
5
5
|
* VerifyTemplate
|
|
6
6
|
* @public
|
|
@@ -11,6 +11,7 @@ export const VerifyTemplate = html `
|
|
|
11
11
|
<rapid-card class="card-pd">
|
|
12
12
|
<div class="column-content">
|
|
13
13
|
<auth-logo></auth-logo>
|
|
14
|
+
${showEnvironmentIndicator()}
|
|
14
15
|
<div class="heading2" data-test-id="heading">
|
|
15
16
|
${(x) => x.toLocalisedText('VERIFY_TITLE')}
|
|
16
17
|
</div>
|
|
@@ -55,6 +55,10 @@ export const commonStyles = css `
|
|
|
55
55
|
transition: opacity 5s ease-in-out;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
auth-logo + .environment-indicator {
|
|
59
|
+
margin: calc(var(--design-unit) * -2px) 0 calc(var(--design-unit) * 3px) 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
58
62
|
.heading {
|
|
59
63
|
font-weight: bold;
|
|
60
64
|
background-color: ${neutralLayer1};
|
|
@@ -580,6 +580,33 @@
|
|
|
580
580
|
"endIndex": 2
|
|
581
581
|
}
|
|
582
582
|
},
|
|
583
|
+
{
|
|
584
|
+
"kind": "PropertySignature",
|
|
585
|
+
"canonicalReference": "@genesislcap/foundation-auth!AuthConfig#showEnvironmentIndicator:member",
|
|
586
|
+
"docComment": "/**\n * Show or hide the environment indicator.\n */\n",
|
|
587
|
+
"excerptTokens": [
|
|
588
|
+
{
|
|
589
|
+
"kind": "Content",
|
|
590
|
+
"text": "showEnvironmentIndicator?: "
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"kind": "Content",
|
|
594
|
+
"text": "boolean"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"kind": "Content",
|
|
598
|
+
"text": ";"
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"isReadonly": false,
|
|
602
|
+
"isOptional": true,
|
|
603
|
+
"releaseTag": "Public",
|
|
604
|
+
"name": "showEnvironmentIndicator",
|
|
605
|
+
"propertyTypeTokenRange": {
|
|
606
|
+
"startIndex": 1,
|
|
607
|
+
"endIndex": 2
|
|
608
|
+
}
|
|
609
|
+
},
|
|
583
610
|
{
|
|
584
611
|
"kind": "PropertySignature",
|
|
585
612
|
"canonicalReference": "@genesislcap/foundation-auth!AuthConfig#sso:member",
|
|
@@ -268,6 +268,10 @@ export declare interface AuthConfig extends PartialFASTElementDefinition {
|
|
|
268
268
|
* ```
|
|
269
269
|
*/
|
|
270
270
|
localizationResources?: I18nextConfig['resources'];
|
|
271
|
+
/**
|
|
272
|
+
* Show or hide the environment indicator.
|
|
273
|
+
*/
|
|
274
|
+
showEnvironmentIndicator?: boolean;
|
|
271
275
|
}
|
|
272
276
|
|
|
273
277
|
/**
|
|
@@ -29,6 +29,7 @@ export interface AuthConfig extends PartialFASTElementDefinition
|
|
|
29
29
|
| [omitRoutes](./foundation-auth.authconfig.omitroutes.md) | | Exclude<[AuthRoutes](./foundation-auth.authroutes.md)<!-- -->, 'login' \| 'not-found'>\[\] | Omit any of the internal routes except 'login' and 'not-found'. |
|
|
30
30
|
| [postLoginRedirect](./foundation-auth.authconfig.postloginredirect.md) | | () => void | |
|
|
31
31
|
| [postLogoutRedirect](./foundation-auth.authconfig.postlogoutredirect.md) | | () => void | |
|
|
32
|
+
| [showEnvironmentIndicator?](./foundation-auth.authconfig.showenvironmentindicator.md) | | boolean | _(Optional)_ Show or hide the environment indicator. |
|
|
32
33
|
| [sso](./foundation-auth.authconfig.sso.md) | | [SSOConfig](./foundation-auth.ssoconfig.md) \| null | SSO configuration. |
|
|
33
34
|
| [templateOptions](./foundation-auth.authconfig.templateoptions.md) | | TemplateOptions | Template options. |
|
|
34
35
|
| [versionInformation?](./foundation-auth.authconfig.versioninformation.md) | | string | _(Optional)_ Display arbitrary version information. |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [AuthConfig](./foundation-auth.authconfig.md) > [showEnvironmentIndicator](./foundation-auth.authconfig.showenvironmentindicator.md)
|
|
4
|
+
|
|
5
|
+
## AuthConfig.showEnvironmentIndicator property
|
|
6
|
+
|
|
7
|
+
Show or hide the environment indicator.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
showEnvironmentIndicator?: boolean;
|
|
13
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -91,6 +91,7 @@ export interface AuthConfig extends PartialFASTElementDefinition {
|
|
|
91
91
|
postLoginRedirect: () => void;
|
|
92
92
|
// (undocumented)
|
|
93
93
|
postLogoutRedirect: () => void;
|
|
94
|
+
showEnvironmentIndicator?: boolean;
|
|
94
95
|
sso: SSOConfig | null;
|
|
95
96
|
// Warning: (ae-forgotten-export) The symbol "TemplateOptions" needs to be exported by the entry point index.d.ts
|
|
96
97
|
templateOptions: TemplateOptions;
|
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.293.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-auth.d.ts",
|
|
@@ -127,26 +127,26 @@
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"@genesislcap/foundation-testing": "14.
|
|
131
|
-
"@genesislcap/genx": "14.
|
|
132
|
-
"@genesislcap/rollup-builder": "14.
|
|
133
|
-
"@genesislcap/ts-builder": "14.
|
|
134
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
135
|
-
"@genesislcap/vite-builder": "14.
|
|
136
|
-
"@genesislcap/webpack-builder": "14.
|
|
130
|
+
"@genesislcap/foundation-testing": "14.293.0",
|
|
131
|
+
"@genesislcap/genx": "14.293.0",
|
|
132
|
+
"@genesislcap/rollup-builder": "14.293.0",
|
|
133
|
+
"@genesislcap/ts-builder": "14.293.0",
|
|
134
|
+
"@genesislcap/uvu-playwright-builder": "14.293.0",
|
|
135
|
+
"@genesislcap/vite-builder": "14.293.0",
|
|
136
|
+
"@genesislcap/webpack-builder": "14.293.0",
|
|
137
137
|
"rimraf": "^5.0.0"
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
|
-
"@genesislcap/foundation-comms": "14.
|
|
141
|
-
"@genesislcap/foundation-events": "14.
|
|
142
|
-
"@genesislcap/foundation-i18n": "14.
|
|
143
|
-
"@genesislcap/foundation-logger": "14.
|
|
144
|
-
"@genesislcap/foundation-state-machine": "14.
|
|
145
|
-
"@genesislcap/foundation-store": "14.
|
|
146
|
-
"@genesislcap/foundation-ui": "14.
|
|
147
|
-
"@genesislcap/foundation-user": "14.
|
|
148
|
-
"@genesislcap/foundation-utils": "14.
|
|
149
|
-
"@genesislcap/foundation-zero": "14.
|
|
140
|
+
"@genesislcap/foundation-comms": "14.293.0",
|
|
141
|
+
"@genesislcap/foundation-events": "14.293.0",
|
|
142
|
+
"@genesislcap/foundation-i18n": "14.293.0",
|
|
143
|
+
"@genesislcap/foundation-logger": "14.293.0",
|
|
144
|
+
"@genesislcap/foundation-state-machine": "14.293.0",
|
|
145
|
+
"@genesislcap/foundation-store": "14.293.0",
|
|
146
|
+
"@genesislcap/foundation-ui": "14.293.0",
|
|
147
|
+
"@genesislcap/foundation-user": "14.293.0",
|
|
148
|
+
"@genesislcap/foundation-utils": "14.293.0",
|
|
149
|
+
"@genesislcap/foundation-zero": "14.293.0",
|
|
150
150
|
"@microsoft/fast-components": "2.30.6",
|
|
151
151
|
"@microsoft/fast-element": "1.14.0",
|
|
152
152
|
"@microsoft/fast-foundation": "2.49.6",
|
|
@@ -167,5 +167,5 @@
|
|
|
167
167
|
"publishConfig": {
|
|
168
168
|
"access": "public"
|
|
169
169
|
},
|
|
170
|
-
"gitHead": "
|
|
170
|
+
"gitHead": "0e7819599e7be45c7ab25a916124a47278707c12"
|
|
171
171
|
}
|