@fluentui/react-charting 5.19.26 → 5.19.28

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 (29) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +20 -2
  3. package/dist/react-charting.d.ts +40 -0
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +14 -0
  7. package/lib/components/SankeyChart/SankeyChart.base.d.ts +2 -0
  8. package/lib/components/SankeyChart/SankeyChart.base.js +64 -40
  9. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  10. package/lib/components/SankeyChart/SankeyChart.types.d.ts +39 -1
  11. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  12. package/lib/version.js +1 -1
  13. package/lib/version.js.map +1 -1
  14. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +2 -0
  15. package/lib-amd/components/SankeyChart/SankeyChart.base.js +63 -39
  16. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  17. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +39 -1
  18. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
  19. package/lib-amd/version.js +1 -1
  20. package/lib-amd/version.js.map +1 -1
  21. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +2 -0
  22. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +63 -39
  23. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  24. package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +39 -1
  25. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  26. package/lib-commonjs/version.js +1 -1
  27. package/lib-commonjs/version.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/components/SankeyChart/SankeyChart.types.ts +43 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 12 Feb 2024 07:23:54 GMT",
5
+ "date": "Fri, 16 Feb 2024 07:25:58 GMT",
6
+ "tag": "@fluentui/react-charting_v5.19.28",
7
+ "version": "5.19.28",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "rarthur@microsoft.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "e3b2a5cf41a6b44ee123d2a0ee0f18d74a9b6339",
14
+ "comment": "Sankey Diagram: Supporting Localized Strings"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 14 Feb 2024 07:24:16 GMT",
21
+ "tag": "@fluentui/react-charting_v5.19.27",
22
+ "version": "5.19.27",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "srmukher@microsoft.com",
27
+ "package": "@fluentui/react-charting",
28
+ "commit": "7cbabd8e9c86e16fbe94b270e43fff20c96d3a2a",
29
+ "comment": "Fixing codepen issue for charts not visible"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 12 Feb 2024 07:25:24 GMT",
6
36
  "tag": "@fluentui/react-charting_v5.19.26",
7
37
  "version": "5.19.26",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Mon, 12 Feb 2024 07:23:54 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 16 Feb 2024 07:25:58 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.19.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.28)
8
+
9
+ Fri, 16 Feb 2024 07:25:58 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.27..@fluentui/react-charting_v5.19.28)
11
+
12
+ ### Patches
13
+
14
+ - Sankey Diagram: Supporting Localized Strings ([PR #30509](https://github.com/microsoft/fluentui/pull/30509) by rarthur@microsoft.com)
15
+
16
+ ## [5.19.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.27)
17
+
18
+ Wed, 14 Feb 2024 07:24:16 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.26..@fluentui/react-charting_v5.19.27)
20
+
21
+ ### Patches
22
+
23
+ - Fixing codepen issue for charts not visible ([PR #30537](https://github.com/microsoft/fluentui/pull/30537) by srmukher@microsoft.com)
24
+
7
25
  ## [5.19.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.19.26)
8
26
 
9
- Mon, 12 Feb 2024 07:23:54 GMT
27
+ Mon, 12 Feb 2024 07:25:24 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.19.25..@fluentui/react-charting_v5.19.26)
11
29
 
12
30
  ### Patches
@@ -2756,6 +2756,27 @@ export declare interface IRefArrayData {
2756
2756
  refElement?: SVGGElement;
2757
2757
  }
2758
2758
 
2759
+ /**
2760
+ * Set of strings which are used when rendering accessibility information within the chart.
2761
+ */
2762
+ export declare interface ISankeyChartAccessibilityProps {
2763
+ /**
2764
+ * Aria label for when the chart is empty.
2765
+ */
2766
+ emptyAriaLabel?: string;
2767
+ /**
2768
+ * A value similar to "node \{0\} with weight \{1\}".
2769
+ * \{0\} is the name of the node.
2770
+ * \{1\} is the weight of the node (as computed by the sankey layout engine via the links to or from this node).
2771
+ */
2772
+ nodeAriaLabel?: string;
2773
+ /**
2774
+ * A value similar to "link from \{0\} to $\{1\} with weight $\{2\}".
2775
+ * \{0\} is the source node, \{1\} is the target node, and \{2\} is the value of the link.
2776
+ */
2777
+ linkAriaLabel?: string;
2778
+ }
2779
+
2759
2780
  /**
2760
2781
  * {@docCategory IChartData}
2761
2782
  */
@@ -2813,6 +2834,25 @@ export declare interface ISankeyChartProps {
2813
2834
  * Colors for nodes border
2814
2835
  */
2815
2836
  borderColorsForNodes?: string[];
2837
+ /**
2838
+ * Localized strings to show in the UX.
2839
+ */
2840
+ strings?: ISankeyChartStrings;
2841
+ /**
2842
+ * Localized strings to use for the chart's accessibility features.
2843
+ */
2844
+ accessibility?: ISankeyChartAccessibilityProps;
2845
+ }
2846
+
2847
+ /**
2848
+ * Set of strings which are used when rendering the chart.
2849
+ */
2850
+ export declare interface ISankeyChartStrings {
2851
+ /**
2852
+ * A value similar to "from \{0\}" where \{0\} is the name of the source node for a link.
2853
+ * This is shown in the `ChartHoverCard` when the user hovers the mouse over a link.
2854
+ */
2855
+ linkFrom?: string;
2816
2856
  }
2817
2857
 
2818
2858
  /**