genesys-spark-chart-components 4.12.1-beta.1 → 4.29.0-beta.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.
- package/LICENSE +2 -2
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +5 -3
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +124 -123
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +213 -212
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +120 -119
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +96 -95
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +126 -125
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +213 -213
- package/dist/cjs/{index-1e13a15f.js → index-a4712860.js} +185 -63
- package/dist/cjs/loader.cjs.js +4 -2
- package/dist/cjs/log-error-28c7064e.js +21 -0
- package/dist/cjs/{usage-30f04ec3.js → usage-3d9281d1.js} +63 -63
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +324 -324
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.locale.js +88 -88
- package/dist/collection/components/beta/gux-chart-column/tests/gux-column-chart.spec.js +16 -16
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +550 -550
- package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.spec.js +5 -5
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +375 -375
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.locale.js +88 -88
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.e2e.js +13 -13
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.spec.js +16 -16
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +266 -266
- package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.spec.js +5 -5
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +347 -347
- package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.spec.js +27 -27
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +133 -133
- package/dist/collection/components/beta/gux-visualization/gux-visualization.locale.js +88 -88
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.e2e.js +25 -25
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.spec.js +26 -26
- package/dist/collection/i18n/fetchResources.js +7 -7
- package/dist/collection/i18n/index.js +56 -56
- package/dist/collection/test/axeConfig.js +4 -4
- package/dist/collection/test/e2eTestUtils.js +14 -14
- package/dist/collection/test/specTestUtils.js +5 -5
- package/dist/collection/utils/dom/get-closest-element.js +12 -12
- package/dist/collection/utils/error/log-error.js +2 -2
- package/dist/collection/utils/theme/color-palette.js +10 -10
- package/dist/collection/utils/tracking/usage.js +47 -47
- package/dist/collection/utils/tracking/usage.spec.js +108 -108
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/genesys-chart-webcomponents.js +6 -4
- package/dist/esm/gux-chart-column-beta.entry.js +124 -123
- package/dist/esm/gux-chart-donut-beta.entry.js +213 -212
- package/dist/esm/gux-chart-line-beta.entry.js +120 -119
- package/dist/esm/gux-chart-pie-beta.entry.js +96 -95
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +126 -125
- package/dist/esm/gux-visualization-beta.entry.js +213 -213
- package/dist/esm/{index-701d93cf.js → index-82fd7406.js} +185 -63
- package/dist/esm/loader.js +5 -3
- package/dist/esm/log-error-ff9bdda4.js +18 -0
- package/dist/esm/{usage-61eee3bd.js → usage-4d835ee1.js} +63 -63
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.css +1 -1
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/p-01bbadbf.entry.js +11 -0
- package/dist/genesys-chart-webcomponents/{p-137f5b8f.entry.js → p-12eb9928.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-1bc0cc3a.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-b5179379.entry.js → p-25bdbf17.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-c3aa8578.entry.js → p-74011efc.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-97c45977.js → p-7e62b207.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-e1255160.js +1 -0
- package/dist/genesys-chart-webcomponents/{p-d9928f8c.entry.js → p-e80b1b1c.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-d4a346df.entry.js → p-f6cebcf8.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +45 -45
- package/dist/types/components/beta/gux-chart-column/gux-chart-column.locale.d.ts +20 -20
- package/dist/types/components/beta/gux-chart-donut/gux-chart-donut.d.ts +30 -30
- package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +44 -44
- package/dist/types/components/beta/gux-chart-line/gux-chart-line.locale.d.ts +20 -20
- package/dist/types/components/beta/gux-chart-pie/gux-chart-pie.d.ts +19 -19
- package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +48 -48
- package/dist/types/components/beta/gux-visualization/gux-visualization.d.ts +13 -13
- package/dist/types/components/beta/gux-visualization/gux-visualization.locale.d.ts +20 -20
- package/dist/types/components.d.ts +12 -0
- package/dist/types/i18n/fetchResources.d.ts +3 -3
- package/dist/types/i18n/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +10 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/dist/types/test/axeConfig.d.ts +4 -4
- package/dist/types/test/e2eTestUtils.d.ts +4 -4
- package/dist/types/test/jestMatcherUtils.d.ts +4 -4
- package/dist/types/utils/tracking/usage.d.ts +11 -11
- package/package.json +24 -24
- package/dist/cjs/log-error-c46b4b4c.js +0 -21
- package/dist/component-specs.json +0 -187
- package/dist/esm/log-error-0fc61f6f.js +0 -18
- package/dist/genesys-chart-webcomponents/p-3e4b3dbc.js +0 -2
- package/dist/genesys-chart-webcomponents/p-b901e9e0.entry.js +0 -11
- /package/dist/genesys-chart-webcomponents/{p-82f0ea01.js → p-f50e3789.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const name = "genesys-spark-chart-components";
|
|
4
|
-
const version = "4.
|
|
4
|
+
const version = "4.29.0-beta.0";
|
|
5
5
|
const description = "Common chart webcomponents";
|
|
6
6
|
const license = "MIT";
|
|
7
7
|
const main = "dist/stencil-wrapper.js";
|
|
@@ -20,7 +20,7 @@ const scripts = {
|
|
|
20
20
|
eslint: "eslint --fix .",
|
|
21
21
|
i18n: "npm run update-en-i18n && npm run build-i18n",
|
|
22
22
|
"lint-all": "npm-run-all \"stylelint\" \"eslint\" \"prettier\" \"prettier-package-json\"",
|
|
23
|
-
"lint-staged": "lint-staged",
|
|
23
|
+
"lint-staged": "lint-staged --concurrent false",
|
|
24
24
|
"list-checked-a11y-components": "node scripts/list-checked-a11y-components.js",
|
|
25
25
|
"list-component-tracking": "./scripts/list-component-tracking.js",
|
|
26
26
|
"list-i18n-files": "./scripts/list-i18n-files.js",
|
|
@@ -52,32 +52,32 @@ const config = {
|
|
|
52
52
|
};
|
|
53
53
|
const types = "dist/types/index.d.ts";
|
|
54
54
|
const dependencies = {
|
|
55
|
-
vega: "
|
|
56
|
-
"vega-embed": "
|
|
57
|
-
"vega-lite": "
|
|
55
|
+
vega: "5.22.1",
|
|
56
|
+
"vega-embed": "6.21.2",
|
|
57
|
+
"vega-lite": "5.5.0"
|
|
58
58
|
};
|
|
59
59
|
const devDependencies = {
|
|
60
|
-
"@babel/core": "^7.
|
|
61
|
-
"@babel/preset-env": "^7.
|
|
62
|
-
"@stencil/core": "4.
|
|
60
|
+
"@babel/core": "^7.24.0",
|
|
61
|
+
"@babel/preset-env": "^7.24.0",
|
|
62
|
+
"@stencil/core": "^4.12.6",
|
|
63
63
|
"@stencil/react-output-target": "^0.5.3",
|
|
64
|
-
"@stencil/sass": "^3.0.
|
|
64
|
+
"@stencil/sass": "^3.0.10",
|
|
65
65
|
"@stencil/utils": "0.0.5",
|
|
66
66
|
"@types/jest": "^27.5.2",
|
|
67
67
|
"@types/new-relic-browser": "^0.1118.2",
|
|
68
68
|
"@types/puppeteer": "^5.4.7",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
70
|
-
"@typescript-eslint/parser": "^
|
|
71
|
-
"axe-core": "^4.8.
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
70
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
71
|
+
"axe-core": "^4.8.4",
|
|
72
72
|
"axe-live": "^1.0.1",
|
|
73
|
-
eslint: "^8.
|
|
73
|
+
eslint: "^8.57.0",
|
|
74
74
|
"eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
|
|
75
|
-
"eslint-config-prettier": "^
|
|
75
|
+
"eslint-config-prettier": "^9.1.0",
|
|
76
76
|
"file-loader": "^6.2.0",
|
|
77
77
|
"genesys-spark-tokens": "file:../genesys-spark-tokens",
|
|
78
78
|
glob: "^10.3.0",
|
|
79
79
|
handlebars: "^4.7.8",
|
|
80
|
-
inquirer: "^9.2.
|
|
80
|
+
inquirer: "^9.2.15",
|
|
81
81
|
jest: "^27.5.1",
|
|
82
82
|
"jest-cli": "^27.5.1",
|
|
83
83
|
"jest-config": "^27.5.1",
|
|
@@ -85,26 +85,26 @@ const devDependencies = {
|
|
|
85
85
|
"jest-junit": "^13.2.0",
|
|
86
86
|
"jest-silent-reporter": "^0.5.0",
|
|
87
87
|
jsdom: "^22.1.0",
|
|
88
|
-
"lint-staged": "^
|
|
89
|
-
marked: "^
|
|
88
|
+
"lint-staged": "^15.2.2",
|
|
89
|
+
marked: "^12.0.1",
|
|
90
90
|
"node-fetch": "^3.3.2",
|
|
91
91
|
"npm-run-all": "^4.1.5",
|
|
92
|
-
"postcss-html": "^1.
|
|
92
|
+
"postcss-html": "^1.6.0",
|
|
93
93
|
"postcss-less": "^6.0.0",
|
|
94
94
|
"postcss-scss": "^4.0.9",
|
|
95
|
-
prettier: "^3.
|
|
95
|
+
prettier: "^3.2.5",
|
|
96
96
|
"prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
|
|
97
97
|
"prettier-package-json": "^2.8.0",
|
|
98
98
|
puppeteer: "^14.4.1",
|
|
99
99
|
"rollup-plugin-copy": "^3.5.0",
|
|
100
100
|
"semver-sort": "^1.0.0",
|
|
101
|
-
stylelint: "^
|
|
101
|
+
stylelint: "^16.2.1",
|
|
102
102
|
"stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
|
|
103
103
|
"stylelint-config-html": "^1.1.0",
|
|
104
|
-
"stylelint-config-recess-order": "^
|
|
105
|
-
"stylelint-config-standard": "^
|
|
106
|
-
"stylelint-scss": "^
|
|
107
|
-
"ts-loader": "^9.5.
|
|
104
|
+
"stylelint-config-recess-order": "^5.0.0",
|
|
105
|
+
"stylelint-config-standard": "^36.0.0",
|
|
106
|
+
"stylelint-scss": "^6.2.1",
|
|
107
|
+
"ts-loader": "^9.5.1",
|
|
108
108
|
typescript: "^4.9.5",
|
|
109
109
|
xmldom: "^0.6.0"
|
|
110
110
|
};
|
|
@@ -142,7 +142,7 @@ const NR_LIMIT_INTERVAL = 30000; // 30s
|
|
|
142
142
|
* We initialize it with the library version to make sure that's always reported.
|
|
143
143
|
*/
|
|
144
144
|
const actionQueue = [
|
|
145
|
-
|
|
145
|
+
getVersionEvent(packageInfo.version)
|
|
146
146
|
];
|
|
147
147
|
/**
|
|
148
148
|
* Process the next batch items in the queue, set a timeout to recur.
|
|
@@ -151,58 +151,58 @@ const actionQueue = [
|
|
|
151
151
|
* held up by processing elsewhere.
|
|
152
152
|
*/
|
|
153
153
|
function processActionQueue() {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
for (let i = 0; i < ACTION_BATCH_SIZE; i++) {
|
|
159
|
-
if (actionQueue.length == 0) {
|
|
160
|
-
setTimeout(processActionQueue, NR_LIMIT_INTERVAL);
|
|
161
|
-
return;
|
|
154
|
+
const newrelic = window.newrelic;
|
|
155
|
+
if (!newrelic) {
|
|
156
|
+
return;
|
|
162
157
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
158
|
+
for (let i = 0; i < ACTION_BATCH_SIZE; i++) {
|
|
159
|
+
if (actionQueue.length == 0) {
|
|
160
|
+
setTimeout(processActionQueue, NR_LIMIT_INTERVAL);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
const action = actionQueue.shift();
|
|
164
|
+
newrelic.addPageAction(action.name, Object.assign(Object.assign({}, action.metadata), { queueDepth: actionQueue.length }));
|
|
165
|
+
}
|
|
166
|
+
setTimeout(processActionQueue, NR_LIMIT_INTERVAL);
|
|
167
167
|
}
|
|
168
168
|
let trackingStarted = false;
|
|
169
169
|
/**
|
|
170
170
|
* Begin action processing loop if it hasn't started.
|
|
171
171
|
*/
|
|
172
172
|
function ensureTracking() {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
if (!trackingStarted) {
|
|
174
|
+
trackingStarted = true;
|
|
175
|
+
processActionQueue();
|
|
176
|
+
}
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* Submits a component for tracking by NewRelic.
|
|
180
180
|
*/
|
|
181
181
|
function trackComponent(element, metadata) {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
182
|
+
if (!window.newrelic) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
ensureTracking();
|
|
186
|
+
// Ignore components in the shadow DOM of another component
|
|
187
|
+
// e.g. Only track components used directly by the app
|
|
188
|
+
if (!document.contains(element)) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
actionQueue.push({
|
|
192
|
+
name: 'spark-component',
|
|
193
|
+
metadata: Object.assign(Object.assign({}, metadata), { component: element.tagName.toLowerCase(), version: packageInfo.version })
|
|
194
|
+
});
|
|
195
195
|
}
|
|
196
196
|
function getVersionEvent(packageInfoVersion) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
197
|
+
const [major, minor, ...patch] = packageInfoVersion.split('.');
|
|
198
|
+
return {
|
|
199
|
+
name: 'spark-library',
|
|
200
|
+
metadata: {
|
|
201
|
+
fullVersion: `${major}.${minor}.${patch.join('.')}`,
|
|
202
|
+
majorVersion: major,
|
|
203
|
+
minorVersion: `${major}.${minor}`
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
exports.trackComponent = trackComponent;
|