@genesislcap/foundation-utils 14.67.5-alpha-e36b6f2.0 → 14.67.5
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/env/variables.d.ts +13 -10
- package/dist/dts/env/variables.d.ts.map +1 -1
- package/dist/esm/env/variables.js +22 -27
- package/dist/foundation-utils.api.json +2 -2
- package/dist/foundation-utils.d.ts +9 -6
- package/docs/api/foundation-utils.api_host.md +7 -0
- package/docs/api/foundation-utils.md +2 -2
- package/docs/api/foundation-utils.socket_ext.md +2 -6
- package/docs/api-report.md +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
2
|
+
* The Genesis Server (host0 to establish a connection (WebSocket or HTTP)).
|
|
3
|
+
* Example: wss://localhost:9064
|
|
4
|
+
* @remarks Required.
|
|
3
5
|
* @public
|
|
4
|
-
* @defaultValue `'gwf'`
|
|
5
|
-
* @remarks Optional.
|
|
6
|
-
* @example
|
|
7
|
-
* If `API_HOST` is not set, `SOCKET_EXT` is set to `/custom` and UI is served on `https://localhost:1234`
|
|
8
|
-
* API host URL will be `wss://localhost:1234/custom`
|
|
9
6
|
*/
|
|
10
|
-
declare let
|
|
11
|
-
export {
|
|
7
|
+
declare let _API_HOST: string;
|
|
8
|
+
export { _API_HOST as API_HOST };
|
|
12
9
|
/**
|
|
13
10
|
* The path to a JSON config file for the HTTP mode.
|
|
14
11
|
* @remarks Optional.
|
|
@@ -16,8 +13,6 @@ export { _SOCKET_EXT as SOCKET_EXT };
|
|
|
16
13
|
*/
|
|
17
14
|
declare let _FORCE_HTTP: string;
|
|
18
15
|
export { _FORCE_HTTP as FORCE_HTTP };
|
|
19
|
-
declare let _API_HOST: string;
|
|
20
|
-
export { _API_HOST as API_HOST };
|
|
21
16
|
/**
|
|
22
17
|
* Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).
|
|
23
18
|
* @remarks Optional.
|
|
@@ -46,4 +41,12 @@ export { _DEFAULT_PASSWORD as DEFAULT_PASSWORD };
|
|
|
46
41
|
*/
|
|
47
42
|
declare let _DEFAULT_USER: string;
|
|
48
43
|
export { _DEFAULT_USER as DEFAULT_USER };
|
|
44
|
+
/**
|
|
45
|
+
* The sub-path used for WebSocket connections.
|
|
46
|
+
* Example: API_HOST + '/' + SOCKET_EXT - wss://localhost:9064/gwf.
|
|
47
|
+
* @remarks Optional. Default is "API_HOST/gwf"
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
declare let _SOCKET_EXT: string;
|
|
51
|
+
export { _SOCKET_EXT as SOCKET_EXT };
|
|
49
52
|
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,QAAA,IAAI,SAAS,EAAE,MAAM,CAAC;AAMtB,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC;;;;GAIG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAGrC;;;;GAIG;AACH,QAAA,IAAI,YAAY,EAAE,MAAM,CAAC;AAMzB,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC;AAKvC;;;;GAIG;AACH,QAAA,IAAI,qBAAqB,EAAE,MAAM,CAAC;AAMlC,OAAO,EAAE,qBAAqB,IAAI,oBAAoB,EAAE,CAAC;AAGzD;;;;GAIG;AACH,QAAA,IAAI,iBAAiB,EAAE,MAAM,CAAC;AAM9B,OAAO,EAAE,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;AAGjD;;;;GAIG;AACH,QAAA,IAAI,aAAa,EAAE,MAAM,CAAC;AAM1B,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC;AAGzC;;;;;GAKG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
/* eslint-disable import/no-mutable-exports */
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
3
|
+
* The Genesis Server (host0 to establish a connection (WebSocket or HTTP)).
|
|
4
|
+
* Example: wss://localhost:9064
|
|
5
|
+
* @remarks Required.
|
|
4
6
|
* @public
|
|
5
|
-
* @defaultValue `'gwf'`
|
|
6
|
-
* @remarks Optional.
|
|
7
|
-
* @example
|
|
8
|
-
* If `API_HOST` is not set, `SOCKET_EXT` is set to `/custom` and UI is served on `https://localhost:1234`
|
|
9
|
-
* API host URL will be `wss://localhost:1234/custom`
|
|
10
7
|
*/
|
|
11
|
-
let
|
|
8
|
+
let _API_HOST;
|
|
12
9
|
try {
|
|
13
|
-
|
|
10
|
+
_API_HOST = API_HOST;
|
|
14
11
|
}
|
|
15
12
|
catch (_a) { }
|
|
16
|
-
export {
|
|
13
|
+
export { _API_HOST as API_HOST };
|
|
17
14
|
/**
|
|
18
15
|
* The path to a JSON config file for the HTTP mode.
|
|
19
16
|
* @remarks Optional.
|
|
@@ -25,20 +22,6 @@ try {
|
|
|
25
22
|
}
|
|
26
23
|
catch (_b) { }
|
|
27
24
|
export { _FORCE_HTTP as FORCE_HTTP };
|
|
28
|
-
/**
|
|
29
|
-
* The Genesis Server URL (WebSocket or HTTP).
|
|
30
|
-
* @remarks Optional.
|
|
31
|
-
* @defaultValue `${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`
|
|
32
|
-
* @example ws://localhost/gwf/, ws://localhost:9064
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
const PROTOCOL = _FORCE_HTTP === 'true' ? location.protocol : location.protocol.replace('http', 'ws');
|
|
36
|
-
let _API_HOST = `${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`;
|
|
37
|
-
try {
|
|
38
|
-
_API_HOST = API_HOST;
|
|
39
|
-
}
|
|
40
|
-
catch (_c) { }
|
|
41
|
-
export { _API_HOST as API_HOST };
|
|
42
25
|
/**
|
|
43
26
|
* Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).
|
|
44
27
|
* @remarks Optional.
|
|
@@ -48,7 +31,7 @@ let _HTTP_CONFIG;
|
|
|
48
31
|
try {
|
|
49
32
|
_HTTP_CONFIG = HTTP_CONFIG;
|
|
50
33
|
}
|
|
51
|
-
catch (
|
|
34
|
+
catch (_c) { }
|
|
52
35
|
export { _HTTP_CONFIG as HTTP_CONFIG };
|
|
53
36
|
/**
|
|
54
37
|
* The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
|
@@ -59,7 +42,7 @@ let _DEFAULT_ORGANISATION;
|
|
|
59
42
|
try {
|
|
60
43
|
_DEFAULT_ORGANISATION = DEFAULT_ORGANISATION;
|
|
61
44
|
}
|
|
62
|
-
catch (
|
|
45
|
+
catch (_d) { }
|
|
63
46
|
export { _DEFAULT_ORGANISATION as DEFAULT_ORGANISATION };
|
|
64
47
|
/**
|
|
65
48
|
* The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
|
@@ -70,7 +53,7 @@ let _DEFAULT_PASSWORD;
|
|
|
70
53
|
try {
|
|
71
54
|
_DEFAULT_PASSWORD = DEFAULT_PASSWORD;
|
|
72
55
|
}
|
|
73
|
-
catch (
|
|
56
|
+
catch (_e) { }
|
|
74
57
|
export { _DEFAULT_PASSWORD as DEFAULT_PASSWORD };
|
|
75
58
|
/**
|
|
76
59
|
* The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
|
@@ -81,5 +64,17 @@ let _DEFAULT_USER;
|
|
|
81
64
|
try {
|
|
82
65
|
_DEFAULT_USER = DEFAULT_USER;
|
|
83
66
|
}
|
|
84
|
-
catch (
|
|
67
|
+
catch (_f) { }
|
|
85
68
|
export { _DEFAULT_USER as DEFAULT_USER };
|
|
69
|
+
/**
|
|
70
|
+
* The sub-path used for WebSocket connections.
|
|
71
|
+
* Example: API_HOST + '/' + SOCKET_EXT - wss://localhost:9064/gwf.
|
|
72
|
+
* @remarks Optional. Default is "API_HOST/gwf"
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
let _SOCKET_EXT;
|
|
76
|
+
try {
|
|
77
|
+
_SOCKET_EXT = SOCKET_EXT;
|
|
78
|
+
}
|
|
79
|
+
catch (_g) { }
|
|
80
|
+
export { _SOCKET_EXT as SOCKET_EXT };
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
{
|
|
208
208
|
"kind": "Variable",
|
|
209
209
|
"canonicalReference": "@genesislcap/foundation-utils!API_HOST:var",
|
|
210
|
-
"docComment": "",
|
|
210
|
+
"docComment": "/**\n * The Genesis Server (host0 to establish a connection (WebSocket or HTTP)). Example: wss://localhost:9064\n *\n * @remarks\n *\n * Required.\n *\n * @public\n */\n",
|
|
211
211
|
"excerptTokens": [
|
|
212
212
|
{
|
|
213
213
|
"kind": "Content",
|
|
@@ -11443,7 +11443,7 @@
|
|
|
11443
11443
|
{
|
|
11444
11444
|
"kind": "Variable",
|
|
11445
11445
|
"canonicalReference": "@genesislcap/foundation-utils!SOCKET_EXT:var",
|
|
11446
|
-
"docComment": "/**\n * The sub-path used for WebSocket connections
|
|
11446
|
+
"docComment": "/**\n * The sub-path used for WebSocket connections. Example: API_HOST + '/' + SOCKET_EXT - wss://localhost:9064/gwf.\n *\n * @remarks\n *\n * Optional. Default is \"API_HOST/gwf\"\n *\n * @public\n */\n",
|
|
11447
11447
|
"excerptTokens": [
|
|
11448
11448
|
{
|
|
11449
11449
|
"kind": "Content",
|
|
@@ -18,6 +18,12 @@ import { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const activeColorScheme: CSSDesignToken<string>;
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* The Genesis Server (host0 to establish a connection (WebSocket or HTTP)).
|
|
23
|
+
* Example: wss://localhost:9064
|
|
24
|
+
* @remarks Required.
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
21
27
|
export declare let API_HOST: string;
|
|
22
28
|
|
|
23
29
|
/**
|
|
@@ -1507,13 +1513,10 @@ export declare class SlottedStyles extends FASTElement {
|
|
|
1507
1513
|
}
|
|
1508
1514
|
|
|
1509
1515
|
/**
|
|
1510
|
-
* The sub-path used for WebSocket connections
|
|
1516
|
+
* The sub-path used for WebSocket connections.
|
|
1517
|
+
* Example: API_HOST + '/' + SOCKET_EXT - wss://localhost:9064/gwf.
|
|
1518
|
+
* @remarks Optional. Default is "API_HOST/gwf"
|
|
1511
1519
|
* @public
|
|
1512
|
-
* @defaultValue `'gwf'`
|
|
1513
|
-
* @remarks Optional.
|
|
1514
|
-
* @example
|
|
1515
|
-
* If `API_HOST` is not set, `SOCKET_EXT` is set to `/custom` and UI is served on `https://localhost:1234`
|
|
1516
|
-
* API host URL will be `wss://localhost:1234/custom`
|
|
1517
1520
|
*/
|
|
1518
1521
|
export declare let SOCKET_EXT: string;
|
|
1519
1522
|
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
| Variable | Description |
|
|
67
67
|
| --- | --- |
|
|
68
68
|
| [activeColorScheme](./foundation-utils.activecolorscheme.md) | A design token that represents the active color scheme (light or dark). |
|
|
69
|
-
| [API\_HOST](./foundation-utils.api_host.md) |
|
|
69
|
+
| [API\_HOST](./foundation-utils.api_host.md) | The Genesis Server (host0 to establish a connection (WebSocket or HTTP)). Example: wss://localhost:9064 |
|
|
70
70
|
| [createErrorMap](./foundation-utils.createerrormap.md) | A factory to create the error map. |
|
|
71
71
|
| [createObserver](./foundation-utils.createobserver.md) | Creates a new event observer instance. |
|
|
72
72
|
| [DEFAULT\_ORGANISATION](./foundation-utils.default_organisation.md) | The default Organisation value, used in auth/login flow \[<code>genesislcap-foundation-login</code>\](https://link-to-docs). |
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
| [ResourceType](./foundation-utils.resourcetype.md) | An object that defines two resource types: "local" and "remote". |
|
|
94
94
|
| [respondToVisibility](./foundation-utils.respondtovisibility.md) | Setup an <code>IntersectionObserver</code> which will activate a callback function when an element becomes visible on screen |
|
|
95
95
|
| [ServerRowDTOMapper](./foundation-utils.serverrowdtomapper.md) | A DI token used to obtain a <code>ServerRowDTOMapper</code> instance. |
|
|
96
|
-
| [SOCKET\_EXT](./foundation-utils.socket_ext.md) | The sub-path used for WebSocket connections
|
|
96
|
+
| [SOCKET\_EXT](./foundation-utils.socket_ext.md) | The sub-path used for WebSocket connections. Example: API\_HOST + '/' + SOCKET\_EXT - wss://localhost:9064/gwf. |
|
|
97
97
|
| [TypeRampValues](./foundation-utils.typerampvalues.md) | An object containing type ramp values. |
|
|
98
98
|
| [UUID](./foundation-utils.uuid.md) | A dependency injection token for the UUID interface. |
|
|
99
99
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## SOCKET\_EXT variable
|
|
6
6
|
|
|
7
|
-
The sub-path used for WebSocket connections
|
|
7
|
+
The sub-path used for WebSocket connections. Example: API\_HOST + '/' + SOCKET\_EXT - wss://localhost:9064/gwf.
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
@@ -14,9 +14,5 @@ _SOCKET_EXT: string
|
|
|
14
14
|
|
|
15
15
|
## Remarks
|
|
16
16
|
|
|
17
|
-
Optional.
|
|
18
|
-
|
|
19
|
-
## Example
|
|
20
|
-
|
|
21
|
-
If `API_HOST` is not set, `SOCKET_EXT` is set to `/custom` and UI is served on `https://localhost:1234` API host URL will be `wss://localhost:1234/custom`
|
|
17
|
+
Optional. Default is "API\_HOST/gwf"
|
|
22
18
|
|
package/docs/api-report.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
|
3
3
|
"description": "Genesis Foundation Utils",
|
|
4
|
-
"version": "14.67.5
|
|
4
|
+
"version": "14.67.5",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"customElements": "dist/custom-elements.json",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "e6b35381e1991f74ecfb1e3ed59043a59985ffcf"
|
|
43
43
|
}
|