genesys-spark-chart-components 4.223.3 → 4.224.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.
Files changed (26) hide show
  1. package/dist/cjs/{color-palette-CkorZmmC.js → color-palette-CKH-E6-u.js} +9 -2
  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/collection/utils/tracking/usage.js +8 -1
  9. package/dist/esm/{color-palette-ClOrHS_J.js → color-palette-DthD5j-U.js} +9 -2
  10. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  11. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  12. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  13. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  14. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  15. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  16. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  17. package/dist/genesys-chart-webcomponents/{p-8f54dae5.entry.js → p-16beb33b.entry.js} +3 -3
  18. package/dist/genesys-chart-webcomponents/p-605afb31.entry.js +1 -0
  19. package/dist/genesys-chart-webcomponents/p-DthD5j-U.js +1 -0
  20. package/dist/genesys-chart-webcomponents/{p-9055e67f.entry.js → p-d06d4f10.entry.js} +1 -1
  21. package/dist/genesys-chart-webcomponents/{p-4548f405.entry.js → p-d290ce2a.entry.js} +1 -1
  22. package/dist/genesys-chart-webcomponents/{p-24f80fe0.entry.js → p-e1e9a574.entry.js} +1 -1
  23. package/dist/genesys-chart-webcomponents/{p-ccdc52d8.entry.js → p-e5ec0b72.entry.js} +1 -1
  24. package/package.json +1 -1
  25. package/dist/genesys-chart-webcomponents/p-1a76a4a4.entry.js +0 -1
  26. package/dist/genesys-chart-webcomponents/p-ClOrHS_J.js +0 -1
@@ -1,12 +1,14 @@
1
1
  'use strict';
2
2
 
3
- const version = "4.223.3";
3
+ const version = "4.224.0";
4
4
  var packageInfo = {
5
5
  version: version};
6
6
 
7
7
  // The number of actions to process every interval
8
8
  const ACTION_BATCH_SIZE = 20;
9
9
  const NR_LIMIT_INTERVAL = 30000; // 30s
10
+ // Sampling rate for tracking events - 10% to reduce New Relic event volume
11
+ const SAMPLE_RATE = 0.1;
10
12
  /**
11
13
  * A queue of events that should be tracked by NewRelic.
12
14
  * We initialize it with the library version to make sure that's always reported.
@@ -17,7 +19,7 @@ const actionQueue = [
17
19
  /**
18
20
  * Process the next batch items in the queue, set a timeout to recur.
19
21
  * We use a recurring timeout instead of an interval because it guarantees
20
- * a minimum of NR_LMIT_INTERVAL between batches, even if the browser is
22
+ * a minimum of NR_LIMIT_INTERVAL between batches, even if the browser is
21
23
  * held up by processing elsewhere.
22
24
  */
23
25
  function processActionQueue() {
@@ -54,6 +56,11 @@ function trackComponent(element, metadata) {
54
56
  if (!window.newrelic) {
55
57
  return;
56
58
  }
59
+ // Apply 10% sampling to reduce event volume
60
+ // nosemgrep
61
+ if (Math.random() > SAMPLE_RATE) {
62
+ return;
63
+ }
57
64
  ensureTracking();
58
65
  // Ignore components in the shadow DOM of another component
59
66
  // e.g. Only track components used directly by the app
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-kxjkn7bw.js');
4
- var colorPalette = require('./color-palette-CkorZmmC.js');
4
+ var colorPalette = require('./color-palette-CKH-E6-u.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartColumnCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-kxjkn7bw.js');
4
- var colorPalette = require('./color-palette-CkorZmmC.js');
4
+ var colorPalette = require('./color-palette-CKH-E6-u.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartDonutCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-kxjkn7bw.js');
4
- var colorPalette = require('./color-palette-CkorZmmC.js');
4
+ var colorPalette = require('./color-palette-CKH-E6-u.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartLineCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-kxjkn7bw.js');
4
- var colorPalette = require('./color-palette-CkorZmmC.js');
4
+ var colorPalette = require('./color-palette-CKH-E6-u.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartPieCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-kxjkn7bw.js');
4
- var colorPalette = require('./color-palette-CkorZmmC.js');
4
+ var colorPalette = require('./color-palette-CKH-E6-u.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartScatterPlotCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index$2 = require('./index-kxjkn7bw.js');
4
- var colorPalette = require('./color-palette-CkorZmmC.js');
4
+ var colorPalette = require('./color-palette-CKH-E6-u.js');
5
5
 
6
6
  // Note: This regex matches even invalid JSON strings, but since we’re
7
7
  // working on the output of `JSON.stringify` we know that only valid strings
@@ -2,6 +2,8 @@ import packageInfo from "../../../package.json";
2
2
  // The number of actions to process every interval
3
3
  const ACTION_BATCH_SIZE = 20;
4
4
  const NR_LIMIT_INTERVAL = 30000; // 30s
5
+ // Sampling rate for tracking events - 10% to reduce New Relic event volume
6
+ const SAMPLE_RATE = 0.1;
5
7
  /**
6
8
  * A queue of events that should be tracked by NewRelic.
7
9
  * We initialize it with the library version to make sure that's always reported.
@@ -12,7 +14,7 @@ const actionQueue = [
12
14
  /**
13
15
  * Process the next batch items in the queue, set a timeout to recur.
14
16
  * We use a recurring timeout instead of an interval because it guarantees
15
- * a minimum of NR_LMIT_INTERVAL between batches, even if the browser is
17
+ * a minimum of NR_LIMIT_INTERVAL between batches, even if the browser is
16
18
  * held up by processing elsewhere.
17
19
  */
18
20
  function processActionQueue() {
@@ -53,6 +55,11 @@ export function trackComponent(element, metadata) {
53
55
  if (!window.newrelic) {
54
56
  return;
55
57
  }
58
+ // Apply 10% sampling to reduce event volume
59
+ // nosemgrep
60
+ if (Math.random() > SAMPLE_RATE) {
61
+ return;
62
+ }
56
63
  ensureTracking();
57
64
  // Ignore components in the shadow DOM of another component
58
65
  // e.g. Only track components used directly by the app
@@ -1,10 +1,12 @@
1
- const version = "4.223.3";
1
+ const version = "4.224.0";
2
2
  var packageInfo = {
3
3
  version: version};
4
4
 
5
5
  // The number of actions to process every interval
6
6
  const ACTION_BATCH_SIZE = 20;
7
7
  const NR_LIMIT_INTERVAL = 30000; // 30s
8
+ // Sampling rate for tracking events - 10% to reduce New Relic event volume
9
+ const SAMPLE_RATE = 0.1;
8
10
  /**
9
11
  * A queue of events that should be tracked by NewRelic.
10
12
  * We initialize it with the library version to make sure that's always reported.
@@ -15,7 +17,7 @@ const actionQueue = [
15
17
  /**
16
18
  * Process the next batch items in the queue, set a timeout to recur.
17
19
  * We use a recurring timeout instead of an interval because it guarantees
18
- * a minimum of NR_LMIT_INTERVAL between batches, even if the browser is
20
+ * a minimum of NR_LIMIT_INTERVAL between batches, even if the browser is
19
21
  * held up by processing elsewhere.
20
22
  */
21
23
  function processActionQueue() {
@@ -52,6 +54,11 @@ function trackComponent(element, metadata) {
52
54
  if (!window.newrelic) {
53
55
  return;
54
56
  }
57
+ // Apply 10% sampling to reduce event volume
58
+ // nosemgrep
59
+ if (Math.random() > SAMPLE_RATE) {
60
+ return;
61
+ }
55
62
  ensureTracking();
56
63
  // Ignore components in the shadow DOM of another component
57
64
  // e.g. Only track components used directly by the app
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-ClAytgPt.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ClOrHS_J.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-DthD5j-U.js';
3
3
  import { l as logError } from './log-error-nsqlWzyl.js';
4
4
 
5
5
  const guxChartColumnCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}`;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-ClAytgPt.js';
2
- import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ClOrHS_J.js';
2
+ import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-DthD5j-U.js';
3
3
  import { l as logError } from './log-error-nsqlWzyl.js';
4
4
 
5
5
  const guxChartDonutCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-ClAytgPt.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ClOrHS_J.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-DthD5j-U.js';
3
3
  import { l as logError } from './log-error-nsqlWzyl.js';
4
4
 
5
5
  const guxChartLineCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-ClAytgPt.js';
2
- import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ClOrHS_J.js';
2
+ import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-DthD5j-U.js';
3
3
  import { l as logError } from './log-error-nsqlWzyl.js';
4
4
 
5
5
  const guxChartPieCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-ClAytgPt.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ClOrHS_J.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-DthD5j-U.js';
3
3
  import { l as logError } from './log-error-nsqlWzyl.js';
4
4
 
5
5
  const guxChartScatterPlotCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-ClAytgPt.js';
2
- import { a as DEFAULT_DOMAIN_COLOR, D as DEFAULT_LABEL_COLOR, t as trackComponent } from './color-palette-ClOrHS_J.js';
2
+ import { a as DEFAULT_DOMAIN_COLOR, D as DEFAULT_LABEL_COLOR, t as trackComponent } from './color-palette-DthD5j-U.js';
3
3
 
4
4
  // Note: This regex matches even invalid JSON strings, but since we’re
5
5
  // working on the output of `JSON.stringify` we know that only valid strings
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-ClAytgPt.js";export{s as setNonce}from"./p-ClAytgPt.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-8f54dae5",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16],screenreaderDescription:[1,"screenreader-description"]}]]],["p-1a76a4a4",[[1,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],xFieldName:[1,"x-field-name"],yFieldName:[1,"y-field-name"],xAxisTitle:[1,"x-axis-title"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],legendPosition:[1,"legend-position"],chartLayers:[16],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-24f80fe0",[[1,"gux-chart-donut-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],innerRadius:[2,"inner-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],gauge:[4],centerText:[1,"center-text"],centerSubText:[1,"center-sub-text"],showTooltip:[4,"show-tooltip"],tooltipOptions:[16],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-ccdc52d8",[[1,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],includeDataPointMarkers:[4,"include-data-point-markers"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-4548f405",[[1,"gux-chart-pie-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-9055e67f",[[1,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],useShape:[1,"use-shape"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]]],e))));
1
+ import{p as e,b as l}from"./p-ClAytgPt.js";export{s as setNonce}from"./p-ClAytgPt.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-16beb33b",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16],screenreaderDescription:[1,"screenreader-description"]}]]],["p-605afb31",[[1,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],xFieldName:[1,"x-field-name"],yFieldName:[1,"y-field-name"],xAxisTitle:[1,"x-axis-title"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],legendPosition:[1,"legend-position"],chartLayers:[16],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-e1e9a574",[[1,"gux-chart-donut-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],innerRadius:[2,"inner-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],gauge:[4],centerText:[1,"center-text"],centerSubText:[1,"center-sub-text"],showTooltip:[4,"show-tooltip"],tooltipOptions:[16],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-e5ec0b72",[[1,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],includeDataPointMarkers:[4,"include-data-point-markers"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-d290ce2a",[[1,"gux-chart-pie-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-d06d4f10",[[1,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],useShape:[1,"use-shape"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]]],e))));