@genesislcap/foundation-login 14.226.0 → 14.226.1

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.
@@ -117,8 +117,8 @@ export class BaseRoute extends ConfigHostElement {
117
117
  }, delay || ((_a = this.config.messageDelays) === null || _a === void 0 ? void 0 : _a.base) || defaultOnBackMS);
118
118
  }
119
119
  autofill() {
120
+ var _a, _b, _c;
120
121
  return __awaiter(this, void 0, void 0, function* () {
121
- var _a, _b, _c;
122
122
  let credentialData;
123
123
  try {
124
124
  /**
@@ -166,8 +166,8 @@ export class BaseRoute extends ConfigHostElement {
166
166
  this.credentialManager.storeCredentials(data);
167
167
  }
168
168
  }
169
- sendMessage(message_1) {
170
- return __awaiter(this, arguments, void 0, function* (message, successFeedback = '', successCallback, delayBack) {
169
+ sendMessage(message, successFeedback = '', successCallback, delayBack) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
171
  yield this.ensureConnection();
172
172
  this.clearError();
173
173
  try {
@@ -19,8 +19,8 @@ let ForgotPassword = class ForgotPassword extends BaseRoute {
19
19
  const _super = Object.create(null, {
20
20
  onSubmit: { get: () => super.onSubmit }
21
21
  });
22
+ var _a;
22
23
  return __awaiter(this, void 0, void 0, function* () {
23
- var _a;
24
24
  logger.debug('forgot password submission');
25
25
  yield _super.onSubmit.call(this);
26
26
  /**
@@ -24,8 +24,8 @@ let LoginForm = class LoginForm extends BaseRoute {
24
24
  const _super = Object.create(null, {
25
25
  connectedCallback: { get: () => super.connectedCallback }
26
26
  });
27
+ var _a, _b;
27
28
  return __awaiter(this, void 0, void 0, function* () {
28
- var _a, _b;
29
29
  _super.connectedCallback.call(this);
30
30
  this.ssoToggled = (_b = (_a = this.config.sso) === null || _a === void 0 ? void 0 : _a.toggled) !== null && _b !== void 0 ? _b : false;
31
31
  if (this.connect.isConnected && this.auth.isLoggedIn) {
@@ -38,8 +38,8 @@ let ResetPassword = class ResetPassword extends BaseRoute {
38
38
  });
39
39
  }
40
40
  onForgotPasswordWorkflow() {
41
+ var _a;
41
42
  return __awaiter(this, void 0, void 0, function* () {
42
- var _a;
43
43
  logger.debug('forgot password submission');
44
44
  const message = this.messageBuilder.createForgotPasswordTokenMessage(this.orgUsername, this.passwordResetToken, this.password2);
45
45
  yield this.sendMessage(message, this.toLocalisedText('RESET_PASSWORD_SUCCESS'), () => {
@@ -48,8 +48,8 @@ let ResetPassword = class ResetPassword extends BaseRoute {
48
48
  });
49
49
  }
50
50
  onChangePasswordWorkflow() {
51
+ var _a;
51
52
  return __awaiter(this, void 0, void 0, function* () {
52
- var _a;
53
53
  logger.debug('change password submission');
54
54
  const message = this.messageBuilder.createChangePasswordMessage(this.orgUsername, this.password, this.password2);
55
55
  yield this.sendMessage(message, this.toLocalisedText('RESET_PASSWORD_CHANGE_SUCCESS'), () => {
@@ -30,7 +30,7 @@ export const getSSOLoginURL = (idp, path = '/login?idp=', host = API_HOST) => {
30
30
  *
31
31
  * @public
32
32
  */
33
- export const fetchIDPs = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (path = 'sso/list', host = API_HOST) {
33
+ export const fetchIDPs = (path = 'sso/list', host = API_HOST) => __awaiter(void 0, void 0, void 0, function* () {
34
34
  const IDP_ENDPOINT = getIPDEndpoint(path, host);
35
35
  return fetch(IDP_ENDPOINT)
36
36
  .then((res) => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.48.0",
4
+ "toolVersion": "7.34.9",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -606,29 +606,17 @@
606
606
  }
607
607
  },
608
608
  {
609
- "kind": "Function",
610
- "canonicalReference": "@genesislcap/foundation-login!fetchIDPs:function(1)",
609
+ "kind": "Variable",
610
+ "canonicalReference": "@genesislcap/foundation-login!fetchIDPs:var",
611
611
  "docComment": "/**\n * Request SSO identity provider list\n *\n * @public\n */\n",
612
612
  "excerptTokens": [
613
613
  {
614
614
  "kind": "Content",
615
- "text": "fetchIDPs: (path?: "
616
- },
617
- {
618
- "kind": "Content",
619
- "text": "string"
615
+ "text": "fetchIDPs: "
620
616
  },
621
617
  {
622
618
  "kind": "Content",
623
- "text": ", host?: "
624
- },
625
- {
626
- "kind": "Content",
627
- "text": "string"
628
- },
629
- {
630
- "kind": "Content",
631
- "text": ") => "
619
+ "text": "(path?: string, host?: string) => "
632
620
  },
633
621
  {
634
622
  "kind": "Reference",
@@ -650,31 +638,13 @@
650
638
  }
651
639
  ],
652
640
  "fileUrlPath": "src/utils/sso.ts",
653
- "returnTypeTokenRange": {
654
- "startIndex": 5,
655
- "endIndex": 9
656
- },
641
+ "isReadonly": true,
657
642
  "releaseTag": "Public",
658
- "overloadIndex": 1,
659
- "parameters": [
660
- {
661
- "parameterName": "path",
662
- "parameterTypeTokenRange": {
663
- "startIndex": 1,
664
- "endIndex": 2
665
- },
666
- "isOptional": true
667
- },
668
- {
669
- "parameterName": "host",
670
- "parameterTypeTokenRange": {
671
- "startIndex": 3,
672
- "endIndex": 4
673
- },
674
- "isOptional": true
675
- }
676
- ],
677
- "name": "fetchIDPs"
643
+ "name": "fetchIDPs",
644
+ "variableTypeTokenRange": {
645
+ "startIndex": 1,
646
+ "endIndex": 6
647
+ }
678
648
  },
679
649
  {
680
650
  "kind": "TypeAlias",
@@ -794,77 +764,27 @@
794
764
  "name": "getLoginRouting"
795
765
  },
796
766
  {
797
- "kind": "Function",
798
- "canonicalReference": "@genesislcap/foundation-login!getSSOLoginURL:function(1)",
767
+ "kind": "Variable",
768
+ "canonicalReference": "@genesislcap/foundation-login!getSSOLoginURL:var",
799
769
  "docComment": "/**\n * Get SSO identity provider login URL\n *\n * @public\n */\n",
800
770
  "excerptTokens": [
801
771
  {
802
772
  "kind": "Content",
803
- "text": "getSSOLoginURL: (idp: "
804
- },
805
- {
806
- "kind": "Content",
807
- "text": "any"
808
- },
809
- {
810
- "kind": "Content",
811
- "text": ", path?: "
812
- },
813
- {
814
- "kind": "Content",
815
- "text": "string"
816
- },
817
- {
818
- "kind": "Content",
819
- "text": ", host?: "
820
- },
821
- {
822
- "kind": "Content",
823
- "text": "string"
824
- },
825
- {
826
- "kind": "Content",
827
- "text": ") => "
773
+ "text": "getSSOLoginURL: "
828
774
  },
829
775
  {
830
776
  "kind": "Content",
831
- "text": "string"
777
+ "text": "(idp: any, path?: string, host?: string) => string"
832
778
  }
833
779
  ],
834
780
  "fileUrlPath": "src/utils/sso.ts",
835
- "returnTypeTokenRange": {
836
- "startIndex": 7,
837
- "endIndex": 8
838
- },
781
+ "isReadonly": true,
839
782
  "releaseTag": "Public",
840
- "overloadIndex": 1,
841
- "parameters": [
842
- {
843
- "parameterName": "idp",
844
- "parameterTypeTokenRange": {
845
- "startIndex": 1,
846
- "endIndex": 2
847
- },
848
- "isOptional": false
849
- },
850
- {
851
- "parameterName": "path",
852
- "parameterTypeTokenRange": {
853
- "startIndex": 3,
854
- "endIndex": 4
855
- },
856
- "isOptional": true
857
- },
858
- {
859
- "parameterName": "host",
860
- "parameterTypeTokenRange": {
861
- "startIndex": 5,
862
- "endIndex": 6
863
- },
864
- "isOptional": true
865
- }
866
- ],
867
- "name": "getSSOLoginURL"
783
+ "name": "getSSOLoginURL",
784
+ "variableTypeTokenRange": {
785
+ "startIndex": 1,
786
+ "endIndex": 2
787
+ }
868
788
  },
869
789
  {
870
790
  "kind": "Variable",
@@ -1987,13 +1907,17 @@
1987
1907
  }
1988
1908
  },
1989
1909
  {
1990
- "kind": "Function",
1991
- "canonicalReference": "@genesislcap/foundation-login!styles:function(1)",
1910
+ "kind": "Variable",
1911
+ "canonicalReference": "@genesislcap/foundation-login!styles:var",
1992
1912
  "docComment": "/**\n * @example\n *\n * unknown target\n * ```\n * const buttonTag = tagFor(options.button);\n * ...\n * ${buttonTag} {\n * width: 200px;\n * }\n * ```\n *\n * @public\n */\n",
1993
1913
  "excerptTokens": [
1994
1914
  {
1995
1915
  "kind": "Content",
1996
- "text": "styles: (options: "
1916
+ "text": "styles: "
1917
+ },
1918
+ {
1919
+ "kind": "Content",
1920
+ "text": "(options: "
1997
1921
  },
1998
1922
  {
1999
1923
  "kind": "Reference",
@@ -2002,11 +1926,7 @@
2002
1926
  },
2003
1927
  {
2004
1928
  "kind": "Content",
2005
- "text": ") => "
2006
- },
2007
- {
2008
- "kind": "Content",
2009
- "text": "import(\"@microsoft/fast-element\")."
1929
+ "text": ") => import(\"@microsoft/fast-element\")."
2010
1930
  },
2011
1931
  {
2012
1932
  "kind": "Reference",
@@ -2015,32 +1935,26 @@
2015
1935
  }
2016
1936
  ],
2017
1937
  "fileUrlPath": "src/main/main.styles.ts",
2018
- "returnTypeTokenRange": {
2019
- "startIndex": 3,
2020
- "endIndex": 5
2021
- },
1938
+ "isReadonly": true,
2022
1939
  "releaseTag": "Public",
2023
- "overloadIndex": 1,
2024
- "parameters": [
2025
- {
2026
- "parameterName": "options",
2027
- "parameterTypeTokenRange": {
2028
- "startIndex": 1,
2029
- "endIndex": 2
2030
- },
2031
- "isOptional": false
2032
- }
2033
- ],
2034
- "name": "styles"
1940
+ "name": "styles",
1941
+ "variableTypeTokenRange": {
1942
+ "startIndex": 1,
1943
+ "endIndex": 5
1944
+ }
2035
1945
  },
2036
1946
  {
2037
- "kind": "Function",
2038
- "canonicalReference": "@genesislcap/foundation-login!template:function(1)",
1947
+ "kind": "Variable",
1948
+ "canonicalReference": "@genesislcap/foundation-login!template:var",
2039
1949
  "docComment": "/**\n * @public\n */\n",
2040
1950
  "excerptTokens": [
2041
1951
  {
2042
1952
  "kind": "Content",
2043
- "text": "template: (options: "
1953
+ "text": "template: "
1954
+ },
1955
+ {
1956
+ "kind": "Content",
1957
+ "text": "(options: "
2044
1958
  },
2045
1959
  {
2046
1960
  "kind": "Reference",
@@ -2049,11 +1963,7 @@
2049
1963
  },
2050
1964
  {
2051
1965
  "kind": "Content",
2052
- "text": ") => "
2053
- },
2054
- {
2055
- "kind": "Content",
2056
- "text": "import(\"@microsoft/fast-element\")."
1966
+ "text": ") => import(\"@microsoft/fast-element\")."
2057
1967
  },
2058
1968
  {
2059
1969
  "kind": "Reference",
@@ -2075,23 +1985,13 @@
2075
1985
  }
2076
1986
  ],
2077
1987
  "fileUrlPath": "src/main/main.template.ts",
2078
- "returnTypeTokenRange": {
2079
- "startIndex": 3,
2080
- "endIndex": 8
2081
- },
1988
+ "isReadonly": true,
2082
1989
  "releaseTag": "Public",
2083
- "overloadIndex": 1,
2084
- "parameters": [
2085
- {
2086
- "parameterName": "options",
2087
- "parameterTypeTokenRange": {
2088
- "startIndex": 1,
2089
- "endIndex": 2
2090
- },
2091
- "isOptional": false
2092
- }
2093
- ],
2094
- "name": "template"
1990
+ "name": "template",
1991
+ "variableTypeTokenRange": {
1992
+ "startIndex": 1,
1993
+ "endIndex": 8
1994
+ }
2095
1995
  },
2096
1996
  {
2097
1997
  "kind": "TypeAlias",
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) > [@genesislcap/foundation-login](./foundation-login.md) > [fetchIDPs](./foundation-login.fetchidps.md)
4
4
 
5
- ## fetchIDPs() function
5
+ ## fetchIDPs variable
6
6
 
7
7
  Request SSO identity provider list
8
8
 
@@ -11,15 +11,3 @@ Request SSO identity provider list
11
11
  ```typescript
12
12
  fetchIDPs: (path?: string, host?: string) => Promise<IDP[]>
13
13
  ```
14
-
15
- ## Parameters
16
-
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | path | string | _(Optional)_ |
20
- | host | string | _(Optional)_ |
21
-
22
- **Returns:**
23
-
24
- Promise&lt;[IDP](./foundation-login.idp.md)<!-- -->\[\]&gt;
25
-
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@genesislcap/foundation-login](./foundation-login.md) &gt; [getSSOLoginURL](./foundation-login.getssologinurl.md)
4
4
 
5
- ## getSSOLoginURL() function
5
+ ## getSSOLoginURL variable
6
6
 
7
7
  Get SSO identity provider login URL
8
8
 
@@ -11,16 +11,3 @@ Get SSO identity provider login URL
11
11
  ```typescript
12
12
  getSSOLoginURL: (idp: any, path?: string, host?: string) => string
13
13
  ```
14
-
15
- ## Parameters
16
-
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | idp | any | |
20
- | path | string | _(Optional)_ |
21
- | host | string | _(Optional)_ |
22
-
23
- **Returns:**
24
-
25
- string
26
-
@@ -17,12 +17,8 @@
17
17
  | Function | Description |
18
18
  | --- | --- |
19
19
  | [configure(container, config)](./foundation-login.configure.md) | Configure the login micro frontend settings. |
20
- | [fetchIDPs(path, host)](./foundation-login.fetchidps.md) | Request SSO identity provider list |
21
20
  | [getLoginRouting()](./foundation-login.getloginrouting.md) | Gets LoginRouting from the DI container. |
22
- | [getSSOLoginURL(idp, path, host)](./foundation-login.getssologinurl.md) | Get SSO identity provider login URL |
23
21
  | [isMFRoute(pathname)](./foundation-login.ismfroute.md) | A utility to check if a pathname is a route of this micro frontend. |
24
- | [styles(options)](./foundation-login.styles.md) | |
25
- | [template(options)](./foundation-login.template.md) | |
26
22
 
27
23
  ## Interfaces
28
24
 
@@ -46,9 +42,13 @@
46
42
  | [defaultUser](./foundation-login.defaultuser.md) | |
47
43
  | [define](./foundation-login.define.md) | **_(BETA)_** Re-define the login micro frontend. |
48
44
  | [definition](./foundation-login.definition.md) | **_(BETA)_** |
45
+ | [fetchIDPs](./foundation-login.fetchidps.md) | Request SSO identity provider list |
46
+ | [getSSOLoginURL](./foundation-login.getssologinurl.md) | Get SSO identity provider login URL |
49
47
  | [hostEnv](./foundation-login.hostenv.md) | |
50
48
  | [hostUrl](./foundation-login.hosturl.md) | |
51
49
  | [Routes](./foundation-login.routes.md) | |
50
+ | [styles](./foundation-login.styles.md) | |
51
+ | [template](./foundation-login.template.md) | |
52
52
 
53
53
  ## Type Aliases
54
54
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@genesislcap/foundation-login](./foundation-login.md) &gt; [styles](./foundation-login.styles.md)
4
4
 
5
- ## styles() function
5
+ ## styles variable
6
6
 
7
7
  **Signature:**
8
8
 
@@ -10,16 +10,6 @@
10
10
  styles: (options: TemplateOptions) => import("@microsoft/fast-element").ElementStyles
11
11
  ```
12
12
 
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | --- | --- | --- |
17
- | options | [TemplateOptions](./foundation-login.templateoptions.md) | |
18
-
19
- **Returns:**
20
-
21
- import("@microsoft/fast-element").ElementStyles
22
-
23
13
  ## Example
24
14
 
25
15
  unknown target
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@genesislcap/foundation-login](./foundation-login.md) &gt; [template](./foundation-login.template.md)
4
4
 
5
- ## template() function
5
+ ## template variable
6
6
 
7
7
 
8
8
  **Signature:**
@@ -10,14 +10,3 @@
10
10
  ```typescript
11
11
  template: (options: TemplateOptions) => import("@microsoft/fast-element").ViewTemplate<Login, any>
12
12
  ```
13
-
14
- ## Parameters
15
-
16
- | Parameter | Type | Description |
17
- | --- | --- | --- |
18
- | options | [TemplateOptions](./foundation-login.templateoptions.md) | |
19
-
20
- **Returns:**
21
-
22
- import("@microsoft/fast-element").ViewTemplate&lt;[Login](./foundation-login.login.md)<!-- -->, any&gt;
23
-
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-login",
3
3
  "description": "Genesis Foundation Login",
4
- "version": "14.226.0",
4
+ "version": "14.226.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-login.d.ts",
@@ -67,29 +67,29 @@
67
67
  }
68
68
  },
69
69
  "devDependencies": {
70
- "@genesislcap/foundation-testing": "14.226.0",
71
- "@genesislcap/genx": "14.226.0",
72
- "@genesislcap/rollup-builder": "14.226.0",
73
- "@genesislcap/ts-builder": "14.226.0",
74
- "@genesislcap/uvu-playwright-builder": "14.226.0",
75
- "@genesislcap/vite-builder": "14.226.0",
76
- "@genesislcap/webpack-builder": "14.226.0",
70
+ "@genesislcap/foundation-testing": "14.226.1",
71
+ "@genesislcap/genx": "14.226.1",
72
+ "@genesislcap/rollup-builder": "14.226.1",
73
+ "@genesislcap/ts-builder": "14.226.1",
74
+ "@genesislcap/uvu-playwright-builder": "14.226.1",
75
+ "@genesislcap/vite-builder": "14.226.1",
76
+ "@genesislcap/webpack-builder": "14.226.1",
77
77
  "rimraf": "^5.0.0"
78
78
  },
79
79
  "dependencies": {
80
- "@genesislcap/foundation-comms": "14.226.0",
81
- "@genesislcap/foundation-i18n": "14.226.0",
82
- "@genesislcap/foundation-logger": "14.226.0",
83
- "@genesislcap/foundation-ui": "14.226.0",
84
- "@genesislcap/foundation-utils": "14.226.0",
85
- "@genesislcap/foundation-zero": "14.226.0",
80
+ "@genesislcap/foundation-comms": "14.226.1",
81
+ "@genesislcap/foundation-i18n": "14.226.1",
82
+ "@genesislcap/foundation-logger": "14.226.1",
83
+ "@genesislcap/foundation-ui": "14.226.1",
84
+ "@genesislcap/foundation-utils": "14.226.1",
85
+ "@genesislcap/foundation-zero": "14.226.1",
86
86
  "@microsoft/fast-components": "2.30.6",
87
87
  "@microsoft/fast-element": "1.14.0",
88
88
  "@microsoft/fast-foundation": "2.49.6",
89
89
  "@microsoft/fast-router": "0.4.8",
90
90
  "@microsoft/fast-web-utilities": "5.4.1",
91
91
  "lodash": "^4.17.21",
92
- "tslib": "2.8.1"
92
+ "tslib": "^2.3.1"
93
93
  },
94
94
  "repository": {
95
95
  "type": "git",
@@ -100,5 +100,5 @@
100
100
  "access": "public"
101
101
  },
102
102
  "customElements": "dist/custom-elements.json",
103
- "gitHead": "92b4d205bf702945dbed4e9c998c4fd000d99e4b"
103
+ "gitHead": "e691c1741d135edca5271f338f62df8154efb99c"
104
104
  }
File without changes