@genesislcap/foundation-utils 14.68.2 → 14.68.3-alpha-47419ab.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.
@@ -16,6 +16,13 @@ export { _SOCKET_EXT as SOCKET_EXT };
16
16
  */
17
17
  declare let _FORCE_HTTP: string;
18
18
  export { _FORCE_HTTP as FORCE_HTTP };
19
+ /**
20
+ * The Genesis Server URL (WebSocket or HTTP).
21
+ * @remarks Optional.
22
+ * @defaultValue `${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`
23
+ * @example ws://localhost/gwf/, ws://localhost:9064
24
+ * @public
25
+ */
19
26
  declare let _API_HOST: string;
20
27
  export { _API_HOST as API_HOST };
21
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,QAAA,IAAI,WAAW,EAAE,MAAc,CAAC;AAQhC,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAGrC;;;;GAIG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAYrC,QAAA,IAAI,SAAS,EAAE,MAAwD,CAAC;AAQxE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC;;;;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"}
1
+ {"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,QAAA,IAAI,WAAW,EAAE,MAAc,CAAC;AAQhC,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAGrC;;;;GAIG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAOrC;;;;;;GAMG;AACH,QAAA,IAAI,SAAS,EAAE,MAAwD,CAAC;AAQxE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC;;;;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"}
@@ -27,6 +27,7 @@ try {
27
27
  }
28
28
  catch (_b) { }
29
29
  export { _FORCE_HTTP as FORCE_HTTP };
30
+ const PROTOCOL = _FORCE_HTTP === 'true' ? location.protocol : location.protocol.replace('http', 'ws');
30
31
  /**
31
32
  * The Genesis Server URL (WebSocket or HTTP).
32
33
  * @remarks Optional.
@@ -34,7 +35,6 @@ export { _FORCE_HTTP as FORCE_HTTP };
34
35
  * @example ws://localhost/gwf/, ws://localhost:9064
35
36
  * @public
36
37
  */
37
- const PROTOCOL = _FORCE_HTTP === 'true' ? location.protocol : location.protocol.replace('http', 'ws');
38
38
  let _API_HOST = `${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`;
39
39
  try {
40
40
  if (typeof API_HOST !== 'undefined') {
@@ -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 URL (WebSocket or HTTP).\n *\n * @remarks\n *\n * Optional.\n *\n * @defaultValue\n *\n * `${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`\n *\n * @example\n *\n * ws://localhost/gwf/, ws://localhost:9064\n *\n * @public\n */\n",
211
211
  "excerptTokens": [
212
212
  {
213
213
  "kind": "Content",
@@ -18,6 +18,13 @@ import { SyntheticViewTemplate } from '@microsoft/fast-element';
18
18
  */
19
19
  export declare const activeColorScheme: CSSDesignToken<string>;
20
20
 
21
+ /**
22
+ * The Genesis Server URL (WebSocket or HTTP).
23
+ * @remarks Optional.
24
+ * @defaultValue `${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`
25
+ * @example ws://localhost/gwf/, ws://localhost:9064
26
+ * @public
27
+ */
21
28
  export declare let API_HOST: string;
22
29
 
23
30
  /**
@@ -4,8 +4,19 @@
4
4
 
5
5
  ## API\_HOST variable
6
6
 
7
+ The Genesis Server URL (WebSocket or HTTP).
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
10
12
  _API_HOST: string
11
13
  ```
14
+
15
+ ## Remarks
16
+
17
+ Optional.
18
+
19
+ ## Example
20
+
21
+ ws://localhost/gwf/, ws://localhost:9064
22
+
@@ -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 URL (WebSocket or HTTP). |
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). |
@@ -21,7 +21,7 @@ import { SyntheticViewTemplate } from '@microsoft/fast-element';
21
21
  // @public
22
22
  export const activeColorScheme: CSSDesignToken<string>;
23
23
 
24
- // @public (undocumented)
24
+ // @public
25
25
  export let API_HOST: string;
26
26
 
27
27
  // @public (undocumented)
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.68.2",
4
+ "version": "14.68.3-alpha-47419ab.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -10,7 +10,7 @@
10
10
  "PORT": 3040
11
11
  },
12
12
  "scripts": {
13
- "api:extract": "api-extractor run --local",
13
+ "api:extract": "api-extractor run",
14
14
  "api:document": "api-documenter markdown -i dist -o docs/api",
15
15
  "build": "npm run clean && tsc -b ./tsconfig.json && npm run api:extract && npm run api:document",
16
16
  "clean": "rimraf dist tsconfig.tsbuildinfo",
@@ -39,5 +39,5 @@
39
39
  "access": "public"
40
40
  },
41
41
  "customElements": "dist/custom-elements.json",
42
- "gitHead": "5366046018e36151b75f74ec6a088aed80b12686"
42
+ "gitHead": "eb4e1c824271f307514848d091e0918a6e5058df"
43
43
  }