-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/add-eslint-rule-prefer-v9
- Loading branch information
Showing
78 changed files
with
29,181 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
change/@fluentui-react-charting-346c6b7e-b146-4cb5-a8af-a675243a27eb.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-color-picker-preview-0f7e3b1e-353f-410a-8642-202d0d30d244.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "fix: contrast border of thumb", | ||
"packageName": "@fluentui/react-color-picker-preview", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-teaching-popover-c3487ced-27ab-4e86-ab00-dca2debf985c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "fix: accName updates and semantic fixes", | ||
"packageName": "@fluentui/react-teaching-popover", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,4 @@ visualtests | |
!dist | ||
docs | ||
test-data.ts | ||
src/components/DeclatativeChart/tests/schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,56 @@ | ||
{ | ||
"name": "@fluentui/react-charting", | ||
"entries": [ | ||
{ | ||
"date": "Mon, 06 Jan 2025 07:16:33 GMT", | ||
"tag": "@fluentui/react-charting_v5.23.38", | ||
"version": "5.23.38", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@fluentui/react-charting", | ||
"commit": "4a38a00cf1396e755104635cca027b62c59ae224", | ||
"comment": "Enabling titles for x and y axes for Declarative charts" | ||
} | ||
], | ||
"none": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@fluentui/react-charting", | ||
"commit": "ab40feaff6ddc0c75161cc69c849f6b372c1d016", | ||
"comment": "Added test cases to declartive chart examples" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 03 Jan 2025 07:21:32 GMT", | ||
"tag": "@fluentui/react-charting_v5.23.37", | ||
"version": "5.23.37", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "[email protected]", | ||
"package": "@fluentui/react-charting", | ||
"commit": "0b5ff6e25513a28011ba742c0c479056fcecf68b", | ||
"comment": "Gauge and Pie chart fixes" | ||
}, | ||
{ | ||
"author": "beachball", | ||
"package": "@fluentui/react-charting", | ||
"comment": "Bump @fluentui/theme-samples to v8.7.193", | ||
"commit": "7bb97f178d73a470dc438a2b19d165d9d0bd4b51" | ||
}, | ||
{ | ||
"author": "beachball", | ||
"package": "@fluentui/react-charting", | ||
"comment": "Bump @fluentui/react to v8.122.4", | ||
"commit": "7bb97f178d73a470dc438a2b19d165d9d0bd4b51" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 02 Jan 2025 07:22:03 GMT", | ||
"tag": "@fluentui/react-charting_v5.23.36", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
# Change Log - @fluentui/react-charting | ||
|
||
This log was last generated on Thu, 02 Jan 2025 07:22:03 GMT and should not be manually modified. | ||
This log was last generated on Mon, 06 Jan 2025 07:16:33 GMT and should not be manually modified. | ||
|
||
<!-- Start content --> | ||
|
||
## [5.23.38](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.38) | ||
|
||
Mon, 06 Jan 2025 07:16:33 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.37..@fluentui/react-charting_v5.23.38) | ||
|
||
### Patches | ||
|
||
- Enabling titles for x and y axes for Declarative charts ([PR #33533](https://github.com/microsoft/fluentui/pull/33533) by [email protected]) | ||
|
||
## [5.23.37](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.37) | ||
|
||
Fri, 03 Jan 2025 07:21:32 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.36..@fluentui/react-charting_v5.23.37) | ||
|
||
### Patches | ||
|
||
- Gauge and Pie chart fixes ([PR #33541](https://github.com/microsoft/fluentui/pull/33541) by [email protected]) | ||
- Bump @fluentui/theme-samples to v8.7.193 ([PR #33529](https://github.com/microsoft/fluentui/pull/33529) by beachball) | ||
- Bump @fluentui/react to v8.122.4 ([PR #33529](https://github.com/microsoft/fluentui/pull/33529) by beachball) | ||
|
||
## [5.23.36](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.36) | ||
|
||
Thu, 02 Jan 2025 07:22:03 GMT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
packages/charts/react-charting/src/components/DeclarativeChart/DeclarativeChartRTL.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { render } from '@testing-library/react'; | ||
import { DeclarativeChart } from './index'; | ||
import * as React from 'react'; | ||
import { resetIds } from '../../Utilities'; | ||
|
||
describe('DeclarativeChart', () => { | ||
const mockGetComputedTextLength = jest.fn().mockReturnValue(100); | ||
// Replace the original method with the mock implementation | ||
Object.defineProperty( | ||
Object.getPrototypeOf(document.createElementNS('http://www.w3.org/2000/svg', 'tspan')), | ||
'getComputedTextLength', | ||
{ | ||
value: mockGetComputedTextLength, | ||
}, | ||
); | ||
beforeEach(() => { | ||
resetIds(); | ||
}); | ||
test('Should render areachart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_area_test.json'); | ||
const { container } = render(<DeclarativeChart key={'areachart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
test('Should render donutchart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_donut_test.json'); | ||
const { container } = render(<DeclarativeChart key={'donutchart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
test('Should render gaugechart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_gauge_test.json'); | ||
const { container } = render(<DeclarativeChart key={'gaugechart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
test('Should render heatmapchart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_heatmap_test.json'); | ||
const { container } = render(<DeclarativeChart key={'heatmapchart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
test('Should render linechart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_line_test.json'); | ||
const { container } = render(<DeclarativeChart key={'linechart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
test('Should render piechart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_pie_test.json'); | ||
const { container } = render(<DeclarativeChart key={'piechart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
test('Should render sankeychart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_sankey_test.json'); | ||
const { container } = render(<DeclarativeChart key={'sankeychart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
test('Should render verticalbarchart in DeclarativeChart', () => { | ||
// Arrange | ||
const plotlySchema = require('./tests/schema/fluent_verticalbar_test.json'); | ||
const { container } = render(<DeclarativeChart key={'verticalbarchart'} chartSchema={{ plotlySchema }} />); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
Oops, something went wrong.