Skip to content

Commit

Permalink
Merge branch 'master' into feat/add-eslint-rule-prefer-v9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrokirpa authored Dec 13, 2024
2 parents 0386842 + bbab836 commit 5b6fd48
Show file tree
Hide file tree
Showing 67 changed files with 638 additions and 101 deletions.

This file was deleted.

15 changes: 15 additions & 0 deletions packages/azure-themes/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui/azure-themes",
"entries": [
{
"date": "Fri, 13 Dec 2024 07:23:12 GMT",
"tag": "@fluentui/azure-themes_v8.6.114",
"version": "8.6.114",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui/azure-themes",
"comment": "Bump @fluentui/react to v8.122.1",
"commit": "6dfe27e984d9633129c79178b40c6a0a189e29c7"
}
]
}
},
{
"date": "Thu, 12 Dec 2024 07:22:33 GMT",
"tag": "@fluentui/azure-themes_v8.6.113",
Expand Down
11 changes: 10 additions & 1 deletion packages/azure-themes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Change Log - @fluentui/azure-themes

This log was last generated on Thu, 12 Dec 2024 07:22:33 GMT and should not be manually modified.
This log was last generated on Fri, 13 Dec 2024 07:23:12 GMT and should not be manually modified.

<!-- Start content -->

## [8.6.114](https://github.com/microsoft/fluentui/tree/@fluentui/azure-themes_v8.6.114)

Fri, 13 Dec 2024 07:23:12 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/azure-themes_v8.6.113..@fluentui/azure-themes_v8.6.114)

### Patches

- Bump @fluentui/react to v8.122.1 ([PR #33455](https://github.com/microsoft/fluentui/pull/33455) by beachball)

## [8.6.113](https://github.com/microsoft/fluentui/tree/@fluentui/azure-themes_v8.6.113)

Thu, 12 Dec 2024 07:22:33 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/azure-themes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui/azure-themes",
"version": "8.6.113",
"version": "8.6.114",
"description": "Azure themes for Fluent UI React",
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
Expand All @@ -27,7 +27,7 @@
"@fluentui/scripts-webpack": "*"
},
"dependencies": {
"@fluentui/react": "^8.122.0",
"@fluentui/react": "^8.122.1",
"@fluentui/set-version": "^8.2.23",
"tslib": "^2.1.0"
}
Expand Down
39 changes: 39 additions & 0 deletions packages/charts/react-charting/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
{
"name": "@fluentui/react-charting",
"entries": [
{
"date": "Fri, 13 Dec 2024 07:23:11 GMT",
"tag": "@fluentui/react-charting_v5.23.24",
"version": "5.23.24",
"comments": {
"patch": [
{
"author": "[email protected]",
"package": "@fluentui/react-charting",
"commit": "97bb4b60188bc8951730381b54d886764351ec74",
"comment": "Declarative chart bug fixes"
},
{
"author": "[email protected]",
"package": "@fluentui/react-charting",
"commit": "23320700a9104667ffab27dfc2b3e6e2243bf927",
"comment": "Adding theme check for dark mode for declarative charts"
},
{
"author": "beachball",
"package": "@fluentui/react-charting",
"comment": "Bump @fluentui/react-focus to v8.9.19",
"commit": "6dfe27e984d9633129c79178b40c6a0a189e29c7"
},
{
"author": "beachball",
"package": "@fluentui/react-charting",
"comment": "Bump @fluentui/theme-samples to v8.7.190",
"commit": "6dfe27e984d9633129c79178b40c6a0a189e29c7"
},
{
"author": "beachball",
"package": "@fluentui/react-charting",
"comment": "Bump @fluentui/react to v8.122.1",
"commit": "6dfe27e984d9633129c79178b40c6a0a189e29c7"
}
]
}
},
{
"date": "Thu, 12 Dec 2024 07:22:32 GMT",
"tag": "@fluentui/react-charting_v5.23.23",
Expand Down
15 changes: 14 additions & 1 deletion packages/charts/react-charting/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Change Log - @fluentui/react-charting

This log was last generated on Thu, 12 Dec 2024 07:22:32 GMT and should not be manually modified.
This log was last generated on Fri, 13 Dec 2024 07:23:11 GMT and should not be manually modified.

<!-- Start content -->

## [5.23.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.24)

Fri, 13 Dec 2024 07:23:11 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.23..@fluentui/react-charting_v5.23.24)

### Patches

- Declarative chart bug fixes ([PR #33426](https://github.com/microsoft/fluentui/pull/33426) by [email protected])
- Adding theme check for dark mode for declarative charts ([PR #33454](https://github.com/microsoft/fluentui/pull/33454) by [email protected])
- Bump @fluentui/react-focus to v8.9.19 ([PR #33455](https://github.com/microsoft/fluentui/pull/33455) by beachball)
- Bump @fluentui/theme-samples to v8.7.190 ([PR #33455](https://github.com/microsoft/fluentui/pull/33455) by beachball)
- Bump @fluentui/react to v8.122.1 ([PR #33455](https://github.com/microsoft/fluentui/pull/33455) by beachball)

## [5.23.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.23)

Thu, 12 Dec 2024 07:22:32 GMT
Expand Down
8 changes: 4 additions & 4 deletions packages/charts/react-charting/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui/react-charting",
"version": "5.23.23",
"version": "5.23.24",
"description": "React web charting controls for Microsoft fluentui system.",
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
Expand Down Expand Up @@ -39,8 +39,8 @@
"jest-canvas-mock": "2.4.0"
},
"dependencies": {
"@fluentui/react-focus": "^8.9.18",
"@fluentui/theme-samples": "^8.7.189",
"@fluentui/react-focus": "^8.9.19",
"@fluentui/theme-samples": "^8.7.190",
"@microsoft/load-themed-styles": "^1.10.26",
"@types/d3-array": "^3.0.0",
"@types/d3-axis": "^3.0.0",
Expand All @@ -66,7 +66,7 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@fluentui/react": "^8.122.0",
"@fluentui/react": "^8.122.1",
"@types/react": ">=16.8.0 <19.0.0",
"@types/react-dom": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,13 @@ export const transformPlotlyJsonToHorizontalBarWithAxisProps = (
})
.flat();

const chartHeight = layout.height || 350;
const chartHeight = layout.height || 450;
const margin = layout.margin?.l || 0;
const padding = layout.margin?.pad || 0;
const availableHeight = chartHeight - margin - padding;
const numberOfBars = data[0].y.length;
const gapFactor = 0.5;
const scalingFactor = 0.01;
const gapFactor = 1 / (1 + scalingFactor * numberOfBars);
const barHeight = availableHeight / (numberOfBars * (1 + gapFactor));

return {
Expand Down Expand Up @@ -381,8 +382,10 @@ export const transformPlotlyJsonToHeatmapProps = (jsonObj: any): IHeatMapChartPr
};

// Convert normalized values to actual values
const domainValuesForColorScale: number[] = firstData.colorscale?.map((arr: any) => arr[0] * (zMax - zMin) + zMin);
const rangeValuesForColorScale: string[] = firstData.colorscale?.map((arr: any) => arr[1]);
const domainValuesForColorScale: number[] = firstData.colorscale
? firstData.colorscale.map((arr: any) => arr[0] * (zMax - zMin) + zMin)
: [];
const rangeValuesForColorScale: string[] = firstData.colorscale ? firstData.colorscale.map((arr: any) => arr[1]) : [];

return {
data: [heatmapData],
Expand All @@ -407,7 +410,8 @@ export const transformPlotlyJsonToSankeyProps = (
}))
// eslint-disable-next-line @typescript-eslint/no-shadow
//@ts-expect-error Dynamic link object. Ignore for now.
.filter(x => x.source !== x.target); // Filter out self-references (circular links)
// Filter out negative nodes, unequal nodes and self-references (circular links)
.filter(x => x.source > 0 && x.target > 0 && x.source !== x.target);

const sankeyChartData = {
nodes: node.label.map((label: string, index: number) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ export class LineChartBase extends React.Component<ILineChartProps, ILineChartSt
() => `translate(${this._xAxisScale(pointToHighlight.x)}, ${this._yAxisScale(pointToHighlight.y)})`,
)
.attr('visibility', 'visibility')
.attr('y2', `${lineHeight - this._yAxisScale(pointToHighlight.y)}`);
.attr('y2', `${lineHeight - 5 - this._yAxisScale(pointToHighlight.y)}`);

this.setState({
nearestCircleToHighlight: pointToHighlight,
Expand Down Expand Up @@ -1278,7 +1278,7 @@ export class LineChartBase extends React.Component<ILineChartProps, ILineChartSt
d3Select(`#${this._verticalLine}`)
.attr('transform', () => `translate(${_this._xAxisScale(x)}, ${_this._yAxisScale(y)})`)
.attr('visibility', 'visibility')
.attr('y2', `${lineHeight - _this._yAxisScale(y)}`);
.attr('y2', `${lineHeight - 5 - _this._yAxisScale(y)}`);
if (this._uniqueCallOutID !== circleId) {
this._uniqueCallOutID = circleId;
this.setState({
Expand Down
2 changes: 1 addition & 1 deletion packages/common-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui/common-styles",
"version": "1.2.63",
"version": "1.2.64",
"description": "Common style definitions for Fluent UI React components",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/cra-template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui/cra-template",
"version": "8.4.190",
"version": "8.4.191",
"description": "Create React App template for Fluent UI React (@fluentui/react)",
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions packages/fluent2-theme/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui/fluent2-theme",
"entries": [
{
"date": "Fri, 13 Dec 2024 07:23:12 GMT",
"tag": "@fluentui/fluent2-theme_v8.107.118",
"version": "8.107.118",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui/fluent2-theme",
"comment": "Bump @fluentui/react to v8.122.1",
"commit": "6dfe27e984d9633129c79178b40c6a0a189e29c7"
}
]
}
},
{
"date": "Thu, 12 Dec 2024 07:22:33 GMT",
"tag": "@fluentui/fluent2-theme_v8.107.117",
Expand Down
11 changes: 10 additions & 1 deletion packages/fluent2-theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Change Log - @fluentui/fluent2-theme

This log was last generated on Thu, 12 Dec 2024 07:22:33 GMT and should not be manually modified.
This log was last generated on Fri, 13 Dec 2024 07:23:12 GMT and should not be manually modified.

<!-- Start content -->

## [8.107.118](https://github.com/microsoft/fluentui/tree/@fluentui/fluent2-theme_v8.107.118)

Fri, 13 Dec 2024 07:23:12 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/fluent2-theme_v8.107.117..@fluentui/fluent2-theme_v8.107.118)

### Patches

- Bump @fluentui/react to v8.122.1 ([PR #33455](https://github.com/microsoft/fluentui/pull/33455) by beachball)

## [8.107.117](https://github.com/microsoft/fluentui/tree/@fluentui/fluent2-theme_v8.107.117)

Thu, 12 Dec 2024 07:22:33 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/fluent2-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui/fluent2-theme",
"version": "8.107.117",
"version": "8.107.118",
"description": "A Fluent2 theme for Fluent UI React 8.x",
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
Expand All @@ -27,7 +27,7 @@
"@fluentui/scripts-webpack": "*"
},
"dependencies": {
"@fluentui/react": "^8.122.0",
"@fluentui/react": "^8.122.1",
"@fluentui/set-version": "^8.2.23",
"tslib": "^2.1.0"
}
Expand Down
15 changes: 15 additions & 0 deletions packages/font-icons-mdl2/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui/font-icons-mdl2",
"entries": [
{
"date": "Fri, 13 Dec 2024 07:23:12 GMT",
"tag": "@fluentui/font-icons-mdl2_v8.5.56",
"version": "8.5.56",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui/font-icons-mdl2",
"comment": "Bump @fluentui/style-utilities to v8.11.5",
"commit": "6dfe27e984d9633129c79178b40c6a0a189e29c7"
}
]
}
},
{
"date": "Fri, 01 Nov 2024 07:23:21 GMT",
"tag": "@fluentui/font-icons-mdl2_v8.5.55",
Expand Down
11 changes: 10 additions & 1 deletion packages/font-icons-mdl2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Change Log - @fluentui/font-icons-mdl2

This log was last generated on Fri, 01 Nov 2024 07:23:21 GMT and should not be manually modified.
This log was last generated on Fri, 13 Dec 2024 07:23:12 GMT and should not be manually modified.

<!-- Start content -->

## [8.5.56](https://github.com/microsoft/fluentui/tree/@fluentui/font-icons-mdl2_v8.5.56)

Fri, 13 Dec 2024 07:23:12 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/font-icons-mdl2_v8.5.55..@fluentui/font-icons-mdl2_v8.5.56)

### Patches

- Bump @fluentui/style-utilities to v8.11.5 ([PR #33455](https://github.com/microsoft/fluentui/pull/33455) by beachball)

## [8.5.55](https://github.com/microsoft/fluentui/tree/@fluentui/font-icons-mdl2_v8.5.55)

Fri, 01 Nov 2024 07:23:21 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/font-icons-mdl2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentui/font-icons-mdl2",
"version": "8.5.55",
"version": "8.5.56",
"description": "Fluent UI React icon set.",
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
Expand Down Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"@fluentui/set-version": "^8.2.23",
"@fluentui/style-utilities": "^8.11.4",
"@fluentui/style-utilities": "^8.11.5",
"@fluentui/utilities": "^8.15.19",
"tslib": "^2.1.0"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/foundation-legacy/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"name": "@fluentui/foundation-legacy",
"entries": [
{
"date": "Fri, 13 Dec 2024 07:23:12 GMT",
"tag": "@fluentui/foundation-legacy_v8.4.22",
"version": "8.4.22",
"comments": {
"patch": [
{
"author": "beachball",
"package": "@fluentui/foundation-legacy",
"comment": "Bump @fluentui/style-utilities to v8.11.5",
"commit": "6dfe27e984d9633129c79178b40c6a0a189e29c7"
}
]
}
},
{
"date": "Fri, 01 Nov 2024 07:23:21 GMT",
"tag": "@fluentui/foundation-legacy_v8.4.21",
Expand Down
11 changes: 10 additions & 1 deletion packages/foundation-legacy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Change Log - @fluentui/foundation-legacy

This log was last generated on Fri, 01 Nov 2024 07:23:21 GMT and should not be manually modified.
This log was last generated on Fri, 13 Dec 2024 07:23:12 GMT and should not be manually modified.

<!-- Start content -->

## [8.4.22](https://github.com/microsoft/fluentui/tree/@fluentui/foundation-legacy_v8.4.22)

Fri, 13 Dec 2024 07:23:12 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/foundation-legacy_v8.4.21..@fluentui/foundation-legacy_v8.4.22)

### Patches

- Bump @fluentui/style-utilities to v8.11.5 ([PR #33455](https://github.com/microsoft/fluentui/pull/33455) by beachball)

## [8.4.21](https://github.com/microsoft/fluentui/tree/@fluentui/foundation-legacy_v8.4.21)

Fri, 01 Nov 2024 07:23:21 GMT
Expand Down
Loading

0 comments on commit 5b6fd48

Please sign in to comment.