@genesislcap/foundation-utils 14.226.2-alpha-ee50d0d.0 → 14.227.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -493,21 +493,6 @@
493
493
  }
494
494
  ]
495
495
  },
496
- {
497
- "kind": "javascript-module",
498
- "path": "src/encoding/index.ts",
499
- "declarations": [],
500
- "exports": [
501
- {
502
- "kind": "js",
503
- "name": "*",
504
- "declaration": {
505
- "name": "*",
506
- "package": "./base64"
507
- }
508
- }
509
- ]
510
- },
511
496
  {
512
497
  "kind": "javascript-module",
513
498
  "path": "src/env/index.ts",
@@ -557,6 +542,40 @@
557
542
  "kind": "javascript-module",
558
543
  "path": "src/env/variables.ts",
559
544
  "declarations": [
545
+ {
546
+ "kind": "variable",
547
+ "name": "BUILDER",
548
+ "type": {
549
+ "text": "string"
550
+ }
551
+ },
552
+ {
553
+ "kind": "variable",
554
+ "name": "_BUILDER",
555
+ "type": {
556
+ "text": "string"
557
+ },
558
+ "default": "'webpack'",
559
+ "description": "The builder aka file bundler.",
560
+ "privacy": "public"
561
+ },
562
+ {
563
+ "kind": "variable",
564
+ "name": "PUBLIC_PATH",
565
+ "type": {
566
+ "text": "string"
567
+ }
568
+ },
569
+ {
570
+ "kind": "variable",
571
+ "name": "_PUBLIC_PATH",
572
+ "type": {
573
+ "text": "string"
574
+ },
575
+ "default": "'/'",
576
+ "description": "The public path.",
577
+ "privacy": "public"
578
+ },
560
579
  {
561
580
  "kind": "variable",
562
581
  "name": "SOCKET_EXT",
@@ -680,6 +699,22 @@
680
699
  }
681
700
  ],
682
701
  "exports": [
702
+ {
703
+ "kind": "js",
704
+ "name": "BUILDER",
705
+ "declaration": {
706
+ "name": "_BUILDER",
707
+ "module": "src/env/variables.ts"
708
+ }
709
+ },
710
+ {
711
+ "kind": "js",
712
+ "name": "PUBLIC_PATH",
713
+ "declaration": {
714
+ "name": "_PUBLIC_PATH",
715
+ "module": "src/env/variables.ts"
716
+ }
717
+ },
683
718
  {
684
719
  "kind": "js",
685
720
  "name": "SOCKET_EXT",
@@ -746,6 +781,21 @@
746
781
  }
747
782
  ]
748
783
  },
784
+ {
785
+ "kind": "javascript-module",
786
+ "path": "src/encoding/index.ts",
787
+ "declarations": [],
788
+ "exports": [
789
+ {
790
+ "kind": "js",
791
+ "name": "*",
792
+ "declaration": {
793
+ "name": "*",
794
+ "package": "./base64"
795
+ }
796
+ }
797
+ ]
798
+ },
749
799
  {
750
800
  "kind": "javascript-module",
751
801
  "path": "src/error/errorMap.ts",
@@ -1,3 +1,23 @@
1
+ /**
2
+ * The builder aka file bundler.
3
+ * @privateRemarks
4
+ * Provided by default as part of the `resolveDefineConfig` in the build kit.
5
+ * @example 'webpack', 'vite'.
6
+ * @defaultValue `'webpack'`
7
+ * @public
8
+ */
9
+ declare let _BUILDER: string;
10
+ export { _BUILDER as BUILDER };
11
+ /**
12
+ * The public path.
13
+ * @privateRemarks
14
+ * Provided by default as part of the `resolveDefineConfig` in the build kit.
15
+ * @example '/', '/app/'.
16
+ * @public
17
+ * @defaultValue `'/'`
18
+ */
19
+ declare let _PUBLIC_PATH: string;
20
+ export { _PUBLIC_PATH as PUBLIC_PATH };
1
21
  /**
2
22
  * The sub-path used for WebSocket connections when API_HOST is not set
3
23
  * @public
@@ -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;AAErC;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,QAAiF,CAAC;AAOjH;;;;;;GAMG;AACH,QAAA,IAAI,SAAS,EAAE,MAAwD,CAAC;AAQxE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC;;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AKvC;;;;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,4 +1,36 @@
1
1
  /* eslint-disable import/no-mutable-exports */
2
+ /**
3
+ * The builder aka file bundler.
4
+ * @privateRemarks
5
+ * Provided by default as part of the `resolveDefineConfig` in the build kit.
6
+ * @example 'webpack', 'vite'.
7
+ * @defaultValue `'webpack'`
8
+ * @public
9
+ */
10
+ let _BUILDER = 'webpack';
11
+ try {
12
+ if (typeof BUILDER !== 'undefined') {
13
+ _BUILDER = BUILDER;
14
+ }
15
+ }
16
+ catch (_a) { }
17
+ export { _BUILDER as BUILDER };
18
+ /**
19
+ * The public path.
20
+ * @privateRemarks
21
+ * Provided by default as part of the `resolveDefineConfig` in the build kit.
22
+ * @example '/', '/app/'.
23
+ * @public
24
+ * @defaultValue `'/'`
25
+ */
26
+ let _PUBLIC_PATH = '/';
27
+ try {
28
+ if (typeof PUBLIC_PATH !== 'undefined') {
29
+ _PUBLIC_PATH = PUBLIC_PATH;
30
+ }
31
+ }
32
+ catch (_b) { }
33
+ export { _PUBLIC_PATH as PUBLIC_PATH };
2
34
  /**
3
35
  * The sub-path used for WebSocket connections when API_HOST is not set
4
36
  * @public
@@ -14,7 +46,7 @@ try {
14
46
  _SOCKET_EXT = SOCKET_EXT;
15
47
  }
16
48
  }
17
- catch (_a) { }
49
+ catch (_c) { }
18
50
  export { _SOCKET_EXT as SOCKET_EXT };
19
51
  /**
20
52
  * The path to a JSON config file for the HTTP mode.
@@ -25,7 +57,7 @@ let _FORCE_HTTP;
25
57
  try {
26
58
  _FORCE_HTTP = FORCE_HTTP;
27
59
  }
28
- catch (_b) { }
60
+ catch (_d) { }
29
61
  export { _FORCE_HTTP as FORCE_HTTP };
30
62
  /**
31
63
  * Genesis Socket URL
@@ -52,7 +84,7 @@ try {
52
84
  _API_HOST = API_HOST;
53
85
  }
54
86
  }
55
- catch (_c) { }
87
+ catch (_e) { }
56
88
  export { _API_HOST as API_HOST };
57
89
  /**
58
90
  * Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).
@@ -63,7 +95,7 @@ let _HTTP_CONFIG;
63
95
  try {
64
96
  _HTTP_CONFIG = HTTP_CONFIG;
65
97
  }
66
- catch (_d) { }
98
+ catch (_f) { }
67
99
  export { _HTTP_CONFIG as HTTP_CONFIG };
68
100
  /**
69
101
  * The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
@@ -74,7 +106,7 @@ let _DEFAULT_ORGANISATION;
74
106
  try {
75
107
  _DEFAULT_ORGANISATION = DEFAULT_ORGANISATION;
76
108
  }
77
- catch (_e) { }
109
+ catch (_g) { }
78
110
  export { _DEFAULT_ORGANISATION as DEFAULT_ORGANISATION };
79
111
  /**
80
112
  * The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
@@ -85,7 +117,7 @@ let _DEFAULT_PASSWORD;
85
117
  try {
86
118
  _DEFAULT_PASSWORD = DEFAULT_PASSWORD;
87
119
  }
88
- catch (_f) { }
120
+ catch (_h) { }
89
121
  export { _DEFAULT_PASSWORD as DEFAULT_PASSWORD };
90
122
  /**
91
123
  * The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
@@ -96,5 +128,5 @@ let _DEFAULT_USER;
96
128
  try {
97
129
  _DEFAULT_USER = DEFAULT_USER;
98
130
  }
99
- catch (_g) { }
131
+ catch (_j) { }
100
132
  export { _DEFAULT_USER as DEFAULT_USER };
@@ -274,6 +274,29 @@
274
274
  ],
275
275
  "name": "assureDesignSystem"
276
276
  },
277
+ {
278
+ "kind": "Variable",
279
+ "canonicalReference": "@genesislcap/foundation-utils!BUILDER:var",
280
+ "docComment": "/**\n * The builder aka file bundler.\n *\n * @example\n *\n * 'webpack', 'vite'.\n *\n * @defaultValue\n *\n * `'webpack'`\n *\n * @public\n */\n",
281
+ "excerptTokens": [
282
+ {
283
+ "kind": "Content",
284
+ "text": "_BUILDER: "
285
+ },
286
+ {
287
+ "kind": "Content",
288
+ "text": "string"
289
+ }
290
+ ],
291
+ "fileUrlPath": "src/env/variables.ts",
292
+ "isReadonly": false,
293
+ "releaseTag": "Public",
294
+ "name": "BUILDER",
295
+ "variableTypeTokenRange": {
296
+ "startIndex": 1,
297
+ "endIndex": 2
298
+ }
299
+ },
277
300
  {
278
301
  "kind": "TypeAlias",
279
302
  "canonicalReference": "@genesislcap/foundation-utils!ConstructableLifecycleHandler:type",
@@ -11926,6 +11949,29 @@
11926
11949
  "endIndex": 0
11927
11950
  }
11928
11951
  },
11952
+ {
11953
+ "kind": "Variable",
11954
+ "canonicalReference": "@genesislcap/foundation-utils!PUBLIC_PATH:var",
11955
+ "docComment": "/**\n * The public path.\n *\n * @example\n *\n * '/', '/app/'.\n *\n * @defaultValue\n *\n * `'/'`\n *\n * @public\n */\n",
11956
+ "excerptTokens": [
11957
+ {
11958
+ "kind": "Content",
11959
+ "text": "_PUBLIC_PATH: "
11960
+ },
11961
+ {
11962
+ "kind": "Content",
11963
+ "text": "string"
11964
+ }
11965
+ ],
11966
+ "fileUrlPath": "src/env/variables.ts",
11967
+ "isReadonly": false,
11968
+ "releaseTag": "Public",
11969
+ "name": "PUBLIC_PATH",
11970
+ "variableTypeTokenRange": {
11971
+ "startIndex": 1,
11972
+ "endIndex": 2
11973
+ }
11974
+ },
11929
11975
  {
11930
11976
  "kind": "TypeAlias",
11931
11977
  "canonicalReference": "@genesislcap/foundation-utils!Publish:type",
@@ -73,6 +73,16 @@ export declare function assureDesignSystem(module: DesignSystemModule): DesignSy
73
73
  */
74
74
  export declare const BIG_INT_64_BITS = 64;
75
75
 
76
+ /**
77
+ * The builder aka file bundler.
78
+ * @privateRemarks
79
+ * Provided by default as part of the `resolveDefineConfig` in the build kit.
80
+ * @example 'webpack', 'vite'.
81
+ * @defaultValue `'webpack'`
82
+ * @public
83
+ */
84
+ export declare let BUILDER: string;
85
+
76
86
  /**
77
87
  * @public
78
88
  */
@@ -1594,6 +1604,16 @@ export declare const POPUP_DEFAULT_HEIGHT = 600;
1594
1604
  */
1595
1605
  export declare const POPUP_DEFAULT_WIDTH = 483;
1596
1606
 
1607
+ /**
1608
+ * The public path.
1609
+ * @privateRemarks
1610
+ * Provided by default as part of the `resolveDefineConfig` in the build kit.
1611
+ * @example '/', '/app/'.
1612
+ * @public
1613
+ * @defaultValue `'/'`
1614
+ */
1615
+ export declare let PUBLIC_PATH: string;
1616
+
1597
1617
  /**
1598
1618
  * Publishes an event of a specific type to all subscribed listeners.
1599
1619
  * @public
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [BUILDER](./foundation-utils.builder.md)
4
+
5
+ ## BUILDER variable
6
+
7
+ The builder aka file bundler.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ _BUILDER: string
13
+ ```
14
+
15
+ ## Example
16
+
17
+ 'webpack', 'vite'.
18
+
@@ -75,6 +75,7 @@
75
75
  | --- | --- |
76
76
  | [activeColorScheme](./foundation-utils.activecolorscheme.md) | A design token that represents the active color scheme (light or dark). |
77
77
  | [API\_HOST](./foundation-utils.api_host.md) | The Genesis Server URL (WebSocket or HTTP). |
78
+ | [BUILDER](./foundation-utils.builder.md) | The builder aka file bundler. |
78
79
  | [createErrorMap](./foundation-utils.createerrormap.md) | A factory to create the error map. |
79
80
  | [createObserver](./foundation-utils.createobserver.md) | Creates a new event observer instance. |
80
81
  | [decodeFromBase64](./foundation-utils.decodefrombase64.md) | Decodes a value from base64. |
@@ -105,6 +106,7 @@
105
106
  | [PendingState](./foundation-utils.pendingstate.md) | The <code>PendingState</code> mixin. |
106
107
  | [POPUP\_DEFAULT\_HEIGHT](./foundation-utils.popup_default_height.md) | The default height (in pixels) for pop-up windows. |
107
108
  | [POPUP\_DEFAULT\_WIDTH](./foundation-utils.popup_default_width.md) | The default width (in pixels) for pop-up windows. |
109
+ | [PUBLIC\_PATH](./foundation-utils.public_path.md) | The public path. |
108
110
  | [resolveAfter](./foundation-utils.resolveafter.md) | Resolve a promise after a timeout. |
109
111
  | [ResourceType](./foundation-utils.resourcetype.md) | An object that defines two resource types: "local" and "remote". |
110
112
  | [respondToVisibility](./foundation-utils.respondtovisibility.md) | Setup an <code>IntersectionObserver</code> which will activate a callback function when an element becomes visible on screen |
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [PUBLIC\_PATH](./foundation-utils.public_path.md)
4
+
5
+ ## PUBLIC\_PATH variable
6
+
7
+ The public path.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ _PUBLIC_PATH: string
13
+ ```
14
+
15
+ ## Example
16
+
17
+ '/', '/app/'.
18
+
@@ -33,6 +33,9 @@ export function assureDesignSystem(module: DesignSystemModule): DesignSystemModu
33
33
  // @internal (undocumented)
34
34
  export const BIG_INT_64_BITS = 64;
35
35
 
36
+ // @public
37
+ export let BUILDER: string;
38
+
36
39
  // @public (undocumented)
37
40
  export type ConstructableLifecycleHandler = Constructable<FASTElement & HTMLElement>;
38
41
 
@@ -1087,6 +1090,9 @@ export const POPUP_DEFAULT_HEIGHT = 600;
1087
1090
  // @public
1088
1091
  export const POPUP_DEFAULT_WIDTH = 483;
1089
1092
 
1093
+ // @public
1094
+ export let PUBLIC_PATH: string;
1095
+
1090
1096
  // @public
1091
1097
  export type Publish<EventType> = (event: EventType) => void;
1092
1098
 
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.226.2-alpha-ee50d0d.0",
4
+ "version": "14.227.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.226.2-alpha-ee50d0d.0",
31
- "@genesislcap/genx": "14.226.2-alpha-ee50d0d.0",
32
- "@genesislcap/rollup-builder": "14.226.2-alpha-ee50d0d.0",
33
- "@genesislcap/ts-builder": "14.226.2-alpha-ee50d0d.0",
34
- "@genesislcap/uvu-playwright-builder": "14.226.2-alpha-ee50d0d.0",
35
- "@genesislcap/vite-builder": "14.226.2-alpha-ee50d0d.0",
36
- "@genesislcap/webpack-builder": "14.226.2-alpha-ee50d0d.0",
30
+ "@genesislcap/foundation-testing": "14.227.1",
31
+ "@genesislcap/genx": "14.227.1",
32
+ "@genesislcap/rollup-builder": "14.227.1",
33
+ "@genesislcap/ts-builder": "14.227.1",
34
+ "@genesislcap/uvu-playwright-builder": "14.227.1",
35
+ "@genesislcap/vite-builder": "14.227.1",
36
+ "@genesislcap/webpack-builder": "14.227.1",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.226.2-alpha-ee50d0d.0",
40
+ "@genesislcap/foundation-logger": "14.227.1",
41
41
  "@microsoft/fast-components": "2.30.6",
42
42
  "@microsoft/fast-element": "1.14.0",
43
43
  "@microsoft/fast-foundation": "2.49.6",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "0cf87047a4d98e207401dd144a7ecdaabd54bc9d"
58
+ "gitHead": "b579519af8c01fdcc886a6a59a088f3e65b845a4"
59
59
  }