@fluentui/react-charting 5.19.7 → 5.19.9

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 (108) hide show
  1. package/CHANGELOG.json +86 -1
  2. package/CHANGELOG.md +23 -2
  3. package/config/tests.js +3 -0
  4. package/dist/react-charting.d.ts +6 -5
  5. package/dist/react-charting.js +1 -1
  6. package/dist/react-charting.min.js +1 -1
  7. package/etc/react-charting.api.md +6 -5
  8. package/lib/components/CommonComponents/CartesianChart.types.d.ts +2 -2
  9. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  10. package/lib/components/DonutChart/Arc/Arc.js +2 -2
  11. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  12. package/lib/components/DonutChart/DonutChart.base.d.ts +2 -2
  13. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  14. package/lib/components/DonutChart/Pie/Pie.js +3 -5
  15. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  16. package/lib/components/GaugeChart/GaugeChart.base.js +3 -4
  17. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  18. package/lib/components/HeatMapChart/HeatMapChart.base.js +2 -2
  19. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  20. package/lib/components/PieChart/Arc/Arc.js +3 -3
  21. package/lib/components/PieChart/Arc/Arc.js.map +1 -1
  22. package/lib/components/PieChart/Pie/Pie.js +4 -5
  23. package/lib/components/PieChart/Pie/Pie.js.map +1 -1
  24. package/lib/components/SankeyChart/SankeyChart.base.js +3 -4
  25. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  26. package/lib/components/Sparkline/Sparkline.base.js +1 -1
  27. package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
  28. package/lib/types/IDataPoint.d.ts +3 -3
  29. package/lib/types/IDataPoint.js.map +1 -1
  30. package/lib/utilities/test-data.d.ts +25 -0
  31. package/lib/utilities/test-data.js +198 -0
  32. package/lib/utilities/test-data.js.map +1 -0
  33. package/lib/utilities/utilities.d.ts +2 -2
  34. package/lib/utilities/utilities.js +4 -4
  35. package/lib/utilities/utilities.js.map +1 -1
  36. package/lib/version.js +1 -1
  37. package/lib/version.js.map +1 -1
  38. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +2 -2
  39. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  40. package/lib-amd/components/DonutChart/Arc/Arc.js +2 -2
  41. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
  42. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +2 -2
  43. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  44. package/lib-amd/components/DonutChart/Pie/Pie.js +3 -5
  45. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
  46. package/lib-amd/components/GaugeChart/GaugeChart.base.js +3 -4
  47. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  48. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +2 -2
  49. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  50. package/lib-amd/components/PieChart/Arc/Arc.js +3 -3
  51. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
  52. package/lib-amd/components/PieChart/Pie/Pie.js +3 -4
  53. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
  54. package/lib-amd/components/SankeyChart/SankeyChart.base.js +3 -4
  55. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  56. package/lib-amd/components/Sparkline/Sparkline.base.js +1 -1
  57. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -1
  58. package/lib-amd/types/IDataPoint.d.ts +3 -3
  59. package/lib-amd/types/IDataPoint.js.map +1 -1
  60. package/lib-amd/utilities/test-data.d.ts +25 -0
  61. package/lib-amd/utilities/test-data.js +202 -0
  62. package/lib-amd/utilities/test-data.js.map +1 -0
  63. package/lib-amd/utilities/utilities.d.ts +2 -2
  64. package/lib-amd/utilities/utilities.js +4 -4
  65. package/lib-amd/utilities/utilities.js.map +1 -1
  66. package/lib-amd/version.js +1 -1
  67. package/lib-amd/version.js.map +1 -1
  68. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +2 -2
  69. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  70. package/lib-commonjs/components/DonutChart/Arc/Arc.js +2 -2
  71. package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
  72. package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +2 -2
  73. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  74. package/lib-commonjs/components/DonutChart/Pie/Pie.js +3 -5
  75. package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
  76. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +3 -4
  77. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  78. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +2 -2
  79. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  80. package/lib-commonjs/components/PieChart/Arc/Arc.js +3 -3
  81. package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
  82. package/lib-commonjs/components/PieChart/Pie/Pie.js +4 -5
  83. package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
  84. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +3 -4
  85. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  86. package/lib-commonjs/components/Sparkline/Sparkline.base.js +1 -1
  87. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
  88. package/lib-commonjs/types/IDataPoint.d.ts +3 -3
  89. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  90. package/lib-commonjs/utilities/test-data.d.ts +25 -0
  91. package/lib-commonjs/utilities/test-data.js +201 -0
  92. package/lib-commonjs/utilities/test-data.js.map +1 -0
  93. package/lib-commonjs/utilities/utilities.d.ts +2 -2
  94. package/lib-commonjs/utilities/utilities.js +4 -4
  95. package/lib-commonjs/utilities/utilities.js.map +1 -1
  96. package/lib-commonjs/version.js +1 -1
  97. package/lib-commonjs/version.js.map +1 -1
  98. package/package.json +3 -3
  99. package/src/components/CommonComponents/CartesianChart.types.ts +2 -2
  100. package/lib/components/VerticalBarChart/tests/test-data.d.ts +0 -8
  101. package/lib/components/VerticalBarChart/tests/test-data.js +0 -28
  102. package/lib/components/VerticalBarChart/tests/test-data.js.map +0 -1
  103. package/lib-amd/components/VerticalBarChart/tests/test-data.d.ts +0 -8
  104. package/lib-amd/components/VerticalBarChart/tests/test-data.js +0 -32
  105. package/lib-amd/components/VerticalBarChart/tests/test-data.js.map +0 -1
  106. package/lib-commonjs/components/VerticalBarChart/tests/test-data.d.ts +0 -8
  107. package/lib-commonjs/components/VerticalBarChart/tests/test-data.js +0 -31
  108. package/lib-commonjs/components/VerticalBarChart/tests/test-data.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,92 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 20 Dec 2023 07:26:24 GMT",
5
+ "date": "Thu, 04 Jan 2024 07:26:14 GMT",
6
+ "tag": "@fluentui/react-charting_v5.19.9",
7
+ "version": "5.19.9",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "132879294+v-baambati@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "9d99266dec5a450bcd44c0f777735b31dd98eccc",
14
+ "comment": "Moved HorizontalBarChartWithAxis test cases input data to common utilities/test-data.ts file"
15
+ }
16
+ ],
17
+ "patch": [
18
+ {
19
+ "author": "ankityadav@microsoft.com",
20
+ "package": "@fluentui/react-charting",
21
+ "commit": "f65de264d2d290f33a6ea6018e0dc341317a9e8b",
22
+ "comment": "Importing functions which are used instead of importing complete library"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "date": "Wed, 27 Dec 2023 07:26:32 GMT",
29
+ "tag": "@fluentui/react-charting_v5.19.8",
30
+ "version": "5.19.8",
31
+ "comments": {
32
+ "none": [
33
+ {
34
+ "author": "srmukher@microsoft.com",
35
+ "package": "@fluentui/react-charting",
36
+ "commit": "8495bb4f55924c083e9ecd6f231856865d751049",
37
+ "comment": "Added unit tests for Area, Line and Vertical bar charts"
38
+ },
39
+ {
40
+ "author": "srmukher@microsoft.com",
41
+ "package": "@fluentui/react-charting",
42
+ "commit": "ddd372e4b5cfcb4c4a7f2e87a34251ac9273dc3c",
43
+ "comment": "Adding Unit Tests for 4 charts"
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ {
49
+ "date": "Mon, 25 Dec 2023 07:28:36 GMT",
50
+ "tag": "@fluentui/react-charting_v5.19.8",
51
+ "version": "5.19.8",
52
+ "comments": {
53
+ "patch": [
54
+ {
55
+ "author": "shubhabrata08@gmail.com",
56
+ "package": "@fluentui/react-charting",
57
+ "commit": "e959d219195a11c77cb78f4faf26effea63d3db7",
58
+ "comment": "presentation role attribute removed from svg element due to ARIA violations"
59
+ },
60
+ {
61
+ "author": "shubhabrata08@gmail.com",
62
+ "package": "@fluentui/react-charting",
63
+ "commit": "109463c2a40ca4e796de8ff16c82702c5678cb87",
64
+ "comment": "Added img aria role to <path/> in SparklineChart"
65
+ },
66
+ {
67
+ "author": "beachball",
68
+ "package": "@fluentui/react-charting",
69
+ "comment": "Bump @fluentui/theme-samples to v8.7.126",
70
+ "commit": "e959d219195a11c77cb78f4faf26effea63d3db7"
71
+ },
72
+ {
73
+ "author": "beachball",
74
+ "package": "@fluentui/react-charting",
75
+ "comment": "Bump @fluentui/react to v8.114.0",
76
+ "commit": "e959d219195a11c77cb78f4faf26effea63d3db7"
77
+ }
78
+ ],
79
+ "none": [
80
+ {
81
+ "author": "srmukher@microsoft.com",
82
+ "package": "@fluentui/react-charting",
83
+ "commit": "3483d23b958752f39ed6258d9ec8cbfddcb8ec3c",
84
+ "comment": "test: fix act errors in terminal"
85
+ }
86
+ ]
87
+ }
88
+ },
89
+ {
90
+ "date": "Wed, 20 Dec 2023 07:26:54 GMT",
6
91
  "tag": "@fluentui/react-charting_v5.19.7",
7
92
  "version": "5.19.7",
8
93
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Wed, 20 Dec 2023 07:26:24 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 04 Jan 2024 07:26:14 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.19.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.9)
8
+
9
+ Thu, 04 Jan 2024 07:26:14 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.8..@fluentui/react-charting_v5.19.9)
11
+
12
+ ### Patches
13
+
14
+ - Importing functions which are used instead of importing complete library ([PR #30185](https://github.com/microsoft/fluentui/pull/30185) by ankityadav@microsoft.com)
15
+
16
+ ## [5.19.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.8)
17
+
18
+ Mon, 25 Dec 2023 07:28:36 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.7..@fluentui/react-charting_v5.19.8)
20
+
21
+ ### Patches
22
+
23
+ - presentation role attribute removed from svg element due to ARIA violations ([PR #30158](https://github.com/microsoft/fluentui/pull/30158) by shubhabrata08@gmail.com)
24
+ - Added img aria role to <path/> in SparklineChart ([PR #30155](https://github.com/microsoft/fluentui/pull/30155) by shubhabrata08@gmail.com)
25
+ - Bump @fluentui/theme-samples to v8.7.126 ([PR #30158](https://github.com/microsoft/fluentui/pull/30158) by beachball)
26
+ - Bump @fluentui/react to v8.114.0 ([PR #30158](https://github.com/microsoft/fluentui/pull/30158) by beachball)
27
+
7
28
  ## [5.19.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.7)
8
29
 
9
- Wed, 20 Dec 2023 07:26:24 GMT
30
+ Wed, 20 Dec 2023 07:26:54 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.6..@fluentui/react-charting_v5.19.7)
11
32
 
12
33
  ### Patches
package/config/tests.js CHANGED
@@ -11,3 +11,6 @@ setIconOptions({
11
11
 
12
12
  // Configure enzyme.
13
13
  configure({ adapter: new Adapter() });
14
+
15
+ const env = 'PROD';
16
+ module.exports = env;
@@ -1,5 +1,3 @@
1
- import * as d3Sankey from 'd3-sankey';
2
- import * as d3TimeFormat from 'd3-time-format';
3
1
  import { FocusZoneDirection } from '@fluentui/react-focus';
4
2
  import { ICalloutContentStyleProps } from '@fluentui/react/lib/Callout';
5
3
  import { ICalloutContentStyles } from '@fluentui/react/lib/Callout';
@@ -16,7 +14,10 @@ import { IStyleFunctionOrObject as IStyleFunctionOrObject_2 } from '@fluentui/re
16
14
  import { ITheme } from '@fluentui/react/lib/Styling';
17
15
  import { ITheme as ITheme_2 } from '@fluentui/react';
18
16
  import * as React_2 from 'react';
17
+ import { SankeyLink } from 'd3-sankey';
18
+ import { SankeyNode } from 'd3-sankey';
19
19
  import { SVGProps } from 'react';
20
+ import { TimeLocaleDefinition } from 'd3-time-format';
20
21
 
21
22
  /**
22
23
  * Areachart component.
@@ -426,7 +427,7 @@ export declare interface ICartesianChartProps {
426
427
  /**
427
428
  * The prop used to define a custom locale for the date time format.
428
429
  */
429
- timeFormatLocale?: d3TimeFormat.TimeLocaleDefinition;
430
+ timeFormatLocale?: TimeLocaleDefinition;
430
431
  /**
431
432
  * The prop used to define a custom datetime formatter for date axis.
432
433
  */
@@ -3821,9 +3822,9 @@ export declare const SankeyChart: React_2.FunctionComponent<ISankeyChartProps>;
3821
3822
 
3822
3823
  export declare const Shape: React_2.FC<IShapeProps>;
3823
3824
 
3824
- export declare type SLink = d3Sankey.SankeyLink<ISNodeExtra, ISLinkExtra>;
3825
+ export declare type SLink = SankeyLink<ISNodeExtra, ISLinkExtra>;
3825
3826
 
3826
- export declare type SNode = d3Sankey.SankeyNode<ISNodeExtra, ISLinkExtra>;
3827
+ export declare type SNode = SankeyNode<ISNodeExtra, ISLinkExtra>;
3827
3828
 
3828
3829
  /**
3829
3830
  * Sparkline component