genesys-spark-chart-components 4.154.3 → 4.154.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.
Files changed (25) hide show
  1. package/dist/cjs/{color-palette-f47fa753.js → color-palette-c063c2a1.js} +1 -1
  2. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
  8. package/dist/esm/{color-palette-64017ecd.js → color-palette-47ec7abf.js} +1 -1
  9. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  10. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  11. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  12. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  13. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  14. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  15. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  16. package/dist/genesys-chart-webcomponents/{p-bdb0787b.entry.js → p-0b273d6f.entry.js} +1 -1
  17. package/dist/genesys-chart-webcomponents/{p-aa843a5c.entry.js → p-76d71b81.entry.js} +1 -1
  18. package/dist/genesys-chart-webcomponents/{p-e429a030.entry.js → p-9fe7c705.entry.js} +1 -1
  19. package/dist/genesys-chart-webcomponents/{p-bce58fe8.entry.js → p-c773b5f5.entry.js} +1 -1
  20. package/dist/genesys-chart-webcomponents/{p-9fce7d92.js → p-cc6d4e1c.js} +1 -1
  21. package/dist/genesys-chart-webcomponents/{p-39f64703.entry.js → p-d1cb2675.entry.js} +1 -1
  22. package/dist/genesys-chart-webcomponents/{p-405d69f3.entry.js → p-ebed394e.entry.js} +1 -1
  23. package/dist/stencil-wrapper.js +25 -30
  24. package/dist/types/stencil-wrapper.d.ts +1 -1
  25. package/package.json +1 -1
@@ -7,34 +7,25 @@
7
7
  */
8
8
  import { defineCustomElements } from '../dist/loader';
9
9
  // Value templated out during build process (see scripts/wrap-stencil.js)
10
- export const CHART_COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.154.3-684/chart/genesys-chart-webcomponents/';
11
- // Default domain to load assets from
12
- const DEFAULT_DOMAIN = 'app.mypurecloud.com';
13
- // List of Genesys UI domains
10
+ export const COMPONENT_ASSETS_PATH = '';
14
11
  const DOMAIN_LIST = [
15
- 'apne2.pure.cloud',
16
- 'apne3.pure.cloud',
17
- 'aps1.pure.cloud',
18
- 'cac1.pure.cloud',
19
- 'euc2.pure.cloud',
20
- 'euw2.pure.cloud',
21
- 'inindca.com',
22
- 'inintca.com',
23
- 'mec1.pure.cloud',
24
- 'mypurecloud.com',
25
- 'mypurecloud.com.au',
26
- 'mypurecloud.de',
27
- 'mypurecloud.ie',
28
- 'mypurecloud.jp',
29
- 'sae1.pure.cloud',
30
- 'use2.maximus-pure.cloud',
31
- // 'use2.us-gov-pure.cloud', Assets are not currently deployed to FedRAMP and should fallback to the default domain
32
- 'usw2.pure.cloud'
12
+ '.inindca.com',
13
+ '.dev-pure.cloud',
14
+ '.inintca.com',
15
+ '.test-pure.cloud',
16
+ '.mypurecloud.com',
17
+ '.mypurecloud.com.au',
18
+ '.mypurecloud.de',
19
+ '.mypurecloud.ie',
20
+ '.mypurecloud.jp',
21
+ '.pure.cloud',
22
+ '.maximus-pure.cloud'
23
+ // '.use2.us-gov-pure.cloud', Assets are not currently deployed to FedRAMP and should fallback to the default domain
33
24
  ];
34
25
  export function registerElements() {
35
- if (CHART_COMPONENT_ASSETS_PATH) {
26
+ if (COMPONENT_ASSETS_PATH) {
36
27
  defineCustomElements(window, {
37
- resourcesUrl: `https://${getDomain() + CHART_COMPONENT_ASSETS_PATH}`
28
+ resourcesUrl: `https://${getRegionDomain() + COMPONENT_ASSETS_PATH}`
38
29
  });
39
30
  }
40
31
  else {
@@ -45,14 +36,18 @@ export function registerElements() {
45
36
  * Returns the domain that web component assets should be loaded from.
46
37
  * Will use the domain of the current window if it matches a Genesys domain.
47
38
  */
48
- function getDomain() {
39
+ function getRegionDomain() {
49
40
  const hostname = window.location.hostname;
50
- const matchedDomain = DOMAIN_LIST.find(regionDomain => hostname.endsWith(regionDomain));
41
+ const matchedDomain = DOMAIN_LIST.some(regionDomain => hostname.endsWith(regionDomain));
51
42
  if (matchedDomain) {
52
- return `app.${matchedDomain}`;
43
+ if (hostname.startsWith('app.') || hostname.startsWith('app-regional.')) {
44
+ return hostname;
45
+ }
46
+ else {
47
+ return hostname.replace(/^([^.]+)/, 'app');
48
+ }
53
49
  }
54
- if (hostname.endsWith('.pure.cloud')) {
55
- return `app.${hostname.split('.').slice(-3).join('.')}`;
50
+ else {
51
+ return 'app.mypurecloud.com';
56
52
  }
57
- return DEFAULT_DOMAIN;
58
53
  }
@@ -1,2 +1,2 @@
1
- export declare const CHART_COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.154.3-684/chart/genesys-chart-webcomponents/";
1
+ export declare const COMPONENT_ASSETS_PATH = "";
2
2
  export declare function registerElements(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-chart-components",
3
- "version": "4.154.3",
3
+ "version": "4.154.5",
4
4
  "description": "Common chart webcomponents",
5
5
  "license": "MIT",
6
6
  "main": "dist/stencil-wrapper.js",