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.
- package/dist/cjs/{color-palette-f47fa753.js → color-palette-c063c2a1.js} +1 -1
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/esm/{color-palette-64017ecd.js → color-palette-47ec7abf.js} +1 -1
- package/dist/esm/gux-chart-column-beta.entry.js +1 -1
- package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
- package/dist/esm/gux-chart-line-beta.entry.js +1 -1
- package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +1 -1
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-bdb0787b.entry.js → p-0b273d6f.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-aa843a5c.entry.js → p-76d71b81.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-e429a030.entry.js → p-9fe7c705.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-bce58fe8.entry.js → p-c773b5f5.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-9fce7d92.js → p-cc6d4e1c.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-39f64703.entry.js → p-d1cb2675.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-405d69f3.entry.js → p-ebed394e.entry.js} +1 -1
- package/dist/stencil-wrapper.js +25 -30
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
package/dist/stencil-wrapper.js
CHANGED
|
@@ -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
|
|
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
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
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 (
|
|
26
|
+
if (COMPONENT_ASSETS_PATH) {
|
|
36
27
|
defineCustomElements(window, {
|
|
37
|
-
resourcesUrl: `https://${
|
|
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
|
|
39
|
+
function getRegionDomain() {
|
|
49
40
|
const hostname = window.location.hostname;
|
|
50
|
-
const matchedDomain = DOMAIN_LIST.
|
|
41
|
+
const matchedDomain = DOMAIN_LIST.some(regionDomain => hostname.endsWith(regionDomain));
|
|
51
42
|
if (matchedDomain) {
|
|
52
|
-
|
|
43
|
+
if (hostname.startsWith('app.') || hostname.startsWith('app-regional.')) {
|
|
44
|
+
return hostname;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return hostname.replace(/^([^.]+)/, 'app');
|
|
48
|
+
}
|
|
53
49
|
}
|
|
54
|
-
|
|
55
|
-
return
|
|
50
|
+
else {
|
|
51
|
+
return 'app.mypurecloud.com';
|
|
56
52
|
}
|
|
57
|
-
return DEFAULT_DOMAIN;
|
|
58
53
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const COMPONENT_ASSETS_PATH = "";
|
|
2
2
|
export declare function registerElements(): void;
|