@genesislcap/foundation-login 14.237.1 → 14.237.2-alpha-78ebbc0.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.
@@ -116,8 +116,8 @@ export class BaseRoute extends ConfigHostElement {
116
116
  }, delay || ((_a = this.config.messageDelays) === null || _a === void 0 ? void 0 : _a.base) || defaultOnBackMS);
117
117
  }
118
118
  autofill() {
119
- var _a, _b, _c;
120
119
  return __awaiter(this, void 0, void 0, function* () {
120
+ var _a, _b, _c;
121
121
  let credentialData;
122
122
  try {
123
123
  /**
@@ -165,8 +165,8 @@ export class BaseRoute extends ConfigHostElement {
165
165
  this.credentialManager.storeCredentials(data);
166
166
  }
167
167
  }
168
- sendMessage(message, successFeedback = '', successCallback, delayBack) {
169
- return __awaiter(this, void 0, void 0, function* () {
168
+ sendMessage(message_1) {
169
+ return __awaiter(this, arguments, void 0, function* (message, successFeedback = '', successCallback, delayBack) {
170
170
  yield this.ensureConnection();
171
171
  this.clearError();
172
172
  try {
@@ -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;
28
27
  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;
42
41
  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;
52
51
  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 = (path = 'sso/list', host = API_HOST) => __awaiter(void 0, void 0, void 0, function* () {
33
+ export const fetchIDPs = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (path = 'sso/list', host = API_HOST) {
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.34.9",
4
+ "toolVersion": "7.48.0",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -606,17 +606,29 @@
606
606
  }
607
607
  },
608
608
  {
609
- "kind": "Variable",
610
- "canonicalReference": "@genesislcap/foundation-login!fetchIDPs:var",
609
+ "kind": "Function",
610
+ "canonicalReference": "@genesislcap/foundation-login!fetchIDPs:function(1)",
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: "
615
+ "text": "fetchIDPs: (path?: "
616
+ },
617
+ {
618
+ "kind": "Content",
619
+ "text": "string"
616
620
  },
617
621
  {
618
622
  "kind": "Content",
619
- "text": "(path?: string, host?: string) => "
623
+ "text": ", host?: "
624
+ },
625
+ {
626
+ "kind": "Content",
627
+ "text": "string"
628
+ },
629
+ {
630
+ "kind": "Content",
631
+ "text": ") => "
620
632
  },
621
633
  {
622
634
  "kind": "Reference",
@@ -638,13 +650,31 @@
638
650
  }
639
651
  ],
640
652
  "fileUrlPath": "src/utils/sso.ts",
641
- "isReadonly": true,
653
+ "returnTypeTokenRange": {
654
+ "startIndex": 5,
655
+ "endIndex": 9
656
+ },
642
657
  "releaseTag": "Public",
643
- "name": "fetchIDPs",
644
- "variableTypeTokenRange": {
645
- "startIndex": 1,
646
- "endIndex": 6
647
- }
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"
648
678
  },
649
679
  {
650
680
  "kind": "TypeAlias",
@@ -764,27 +794,77 @@
764
794
  "name": "getLoginRouting"
765
795
  },
766
796
  {
767
- "kind": "Variable",
768
- "canonicalReference": "@genesislcap/foundation-login!getSSOLoginURL:var",
797
+ "kind": "Function",
798
+ "canonicalReference": "@genesislcap/foundation-login!getSSOLoginURL:function(1)",
769
799
  "docComment": "/**\n * Get SSO identity provider login URL\n *\n * @public\n */\n",
770
800
  "excerptTokens": [
771
801
  {
772
802
  "kind": "Content",
773
- "text": "getSSOLoginURL: "
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": ") => "
774
828
  },
775
829
  {
776
830
  "kind": "Content",
777
- "text": "(idp: any, path?: string, host?: string) => string"
831
+ "text": "string"
778
832
  }
779
833
  ],
780
834
  "fileUrlPath": "src/utils/sso.ts",
781
- "isReadonly": true,
835
+ "returnTypeTokenRange": {
836
+ "startIndex": 7,
837
+ "endIndex": 8
838
+ },
782
839
  "releaseTag": "Public",
783
- "name": "getSSOLoginURL",
784
- "variableTypeTokenRange": {
785
- "startIndex": 1,
786
- "endIndex": 2
787
- }
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"
788
868
  },
789
869
  {
790
870
  "kind": "Variable",
@@ -1907,17 +1987,13 @@
1907
1987
  }
1908
1988
  },
1909
1989
  {
1910
- "kind": "Variable",
1911
- "canonicalReference": "@genesislcap/foundation-login!styles:var",
1990
+ "kind": "Function",
1991
+ "canonicalReference": "@genesislcap/foundation-login!styles:function(1)",
1912
1992
  "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",
1913
1993
  "excerptTokens": [
1914
1994
  {
1915
1995
  "kind": "Content",
1916
- "text": "styles: "
1917
- },
1918
- {
1919
- "kind": "Content",
1920
- "text": "(options: "
1996
+ "text": "styles: (options: "
1921
1997
  },
1922
1998
  {
1923
1999
  "kind": "Reference",
@@ -1926,7 +2002,11 @@
1926
2002
  },
1927
2003
  {
1928
2004
  "kind": "Content",
1929
- "text": ") => import(\"@microsoft/fast-element\")."
2005
+ "text": ") => "
2006
+ },
2007
+ {
2008
+ "kind": "Content",
2009
+ "text": "import(\"@microsoft/fast-element\")."
1930
2010
  },
1931
2011
  {
1932
2012
  "kind": "Reference",
@@ -1935,26 +2015,32 @@
1935
2015
  }
1936
2016
  ],
1937
2017
  "fileUrlPath": "src/main/main.styles.ts",
1938
- "isReadonly": true,
1939
- "releaseTag": "Public",
1940
- "name": "styles",
1941
- "variableTypeTokenRange": {
1942
- "startIndex": 1,
2018
+ "returnTypeTokenRange": {
2019
+ "startIndex": 3,
1943
2020
  "endIndex": 5
1944
- }
2021
+ },
2022
+ "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"
1945
2035
  },
1946
2036
  {
1947
- "kind": "Variable",
1948
- "canonicalReference": "@genesislcap/foundation-login!template:var",
2037
+ "kind": "Function",
2038
+ "canonicalReference": "@genesislcap/foundation-login!template:function(1)",
1949
2039
  "docComment": "/**\n * @public\n */\n",
1950
2040
  "excerptTokens": [
1951
2041
  {
1952
2042
  "kind": "Content",
1953
- "text": "template: "
1954
- },
1955
- {
1956
- "kind": "Content",
1957
- "text": "(options: "
2043
+ "text": "template: (options: "
1958
2044
  },
1959
2045
  {
1960
2046
  "kind": "Reference",
@@ -1963,7 +2049,11 @@
1963
2049
  },
1964
2050
  {
1965
2051
  "kind": "Content",
1966
- "text": ") => import(\"@microsoft/fast-element\")."
2052
+ "text": ") => "
2053
+ },
2054
+ {
2055
+ "kind": "Content",
2056
+ "text": "import(\"@microsoft/fast-element\")."
1967
2057
  },
1968
2058
  {
1969
2059
  "kind": "Reference",
@@ -1985,13 +2075,23 @@
1985
2075
  }
1986
2076
  ],
1987
2077
  "fileUrlPath": "src/main/main.template.ts",
1988
- "isReadonly": true,
1989
- "releaseTag": "Public",
1990
- "name": "template",
1991
- "variableTypeTokenRange": {
1992
- "startIndex": 1,
2078
+ "returnTypeTokenRange": {
2079
+ "startIndex": 3,
1993
2080
  "endIndex": 8
1994
- }
2081
+ },
2082
+ "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"
1995
2095
  },
1996
2096
  {
1997
2097
  "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 variable
5
+ ## fetchIDPs() function
6
6
 
7
7
  Request SSO identity provider list
8
8
 
@@ -11,3 +11,15 @@ 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 variable
5
+ ## getSSOLoginURL() function
6
6
 
7
7
  Get SSO identity provider login URL
8
8
 
@@ -11,3 +11,16 @@ 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,8 +17,12 @@
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 |
20
21
  | [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 |
21
23
  | [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) | |
22
26
 
23
27
  ## Interfaces
24
28
 
@@ -42,13 +46,9 @@
42
46
  | [defaultUser](./foundation-login.defaultuser.md) | |
43
47
  | [define](./foundation-login.define.md) | **_(BETA)_** Re-define the login micro frontend. |
44
48
  | [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 |
47
49
  | [hostEnv](./foundation-login.hostenv.md) | |
48
50
  | [hostUrl](./foundation-login.hosturl.md) | |
49
51
  | [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 variable
5
+ ## styles() function
6
6
 
7
7
  **Signature:**
8
8
 
@@ -10,6 +10,16 @@
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
+
13
23
  ## Example
14
24
 
15
25
  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 variable
5
+ ## template() function
6
6
 
7
7
 
8
8
  **Signature:**
@@ -10,3 +10,14 @@
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.237.1",
4
+ "version": "14.237.2-alpha-78ebbc0.0",
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.237.1",
71
- "@genesislcap/genx": "14.237.1",
72
- "@genesislcap/rollup-builder": "14.237.1",
73
- "@genesislcap/ts-builder": "14.237.1",
74
- "@genesislcap/uvu-playwright-builder": "14.237.1",
75
- "@genesislcap/vite-builder": "14.237.1",
76
- "@genesislcap/webpack-builder": "14.237.1",
70
+ "@genesislcap/foundation-testing": "14.237.2-alpha-78ebbc0.0",
71
+ "@genesislcap/genx": "14.237.2-alpha-78ebbc0.0",
72
+ "@genesislcap/rollup-builder": "14.237.2-alpha-78ebbc0.0",
73
+ "@genesislcap/ts-builder": "14.237.2-alpha-78ebbc0.0",
74
+ "@genesislcap/uvu-playwright-builder": "14.237.2-alpha-78ebbc0.0",
75
+ "@genesislcap/vite-builder": "14.237.2-alpha-78ebbc0.0",
76
+ "@genesislcap/webpack-builder": "14.237.2-alpha-78ebbc0.0",
77
77
  "rimraf": "^5.0.0"
78
78
  },
79
79
  "dependencies": {
80
- "@genesislcap/foundation-comms": "14.237.1",
81
- "@genesislcap/foundation-i18n": "14.237.1",
82
- "@genesislcap/foundation-logger": "14.237.1",
83
- "@genesislcap/foundation-ui": "14.237.1",
84
- "@genesislcap/foundation-utils": "14.237.1",
85
- "@genesislcap/foundation-zero": "14.237.1",
80
+ "@genesislcap/foundation-comms": "14.237.2-alpha-78ebbc0.0",
81
+ "@genesislcap/foundation-i18n": "14.237.2-alpha-78ebbc0.0",
82
+ "@genesislcap/foundation-logger": "14.237.2-alpha-78ebbc0.0",
83
+ "@genesislcap/foundation-ui": "14.237.2-alpha-78ebbc0.0",
84
+ "@genesislcap/foundation-utils": "14.237.2-alpha-78ebbc0.0",
85
+ "@genesislcap/foundation-zero": "14.237.2-alpha-78ebbc0.0",
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.3.1"
92
+ "tslib": "2.8.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": "bcda3ef5a5b349a2aff30cc91e391528483e5189"
103
+ "gitHead": "ab5fa0da6c1d82b0d69754c35801e2b17ae7d018"
104
104
  }
File without changes