diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 20919e8987a9f..f6ca7cc058adb 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -161,7 +161,6 @@ packages/react-components/react-tabs @microsoft/cxe-coastal @geoffcoxmsft packages/react-components/react-text @microsoft/cxe-prg packages/react-components/react-textarea @microsoft/cxe-red @sopranopillow packages/react-components/react-tooltip @microsoft/cxe-red @behowell @khmakoto -packages/react-components/react-list @microsoft/teams-prg packages/react-components/react-toolbar @microsoft/teams-prg @chpalac @ling1726 packages/react-components/react-portal-compat @microsoft/teams-prg packages/react-components/react-alert @microsoft/teams-prg diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 0000000000000..79354eb06e3d3 --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,21 @@ +name: Triage Bot +on: + issues: + types: + - opened + +jobs: + triage-issue: + runs-on: ubuntu-latest + steps: + - uses: Naturalclar/issue-action@v2.0.2 + with: + title-or-body: 'body' + parameters: > + '[ + {"keywords": ["@fluentui/react-northstar"], "labels": ["Fluent UI react-northstar (v0)"]}, + {"keywords": ["@fluentui/react"], "labels": ["Fluent UI react (v8)"]}, + {"keywords": ["@fluentui/react-components"], "labels": ["Fluent UI react-components (v9)"]}, + {"keywords": ["@fluentui/web-components"],"labels": ["web-components"],"assignees": ["@chrisdholt"]} + ]' + github-token: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/screener-build.yml b/.github/workflows/screener-build.yml index f16fc66d2ee2e..f4ddf2e6633f1 100644 --- a/.github/workflows/screener-build.yml +++ b/.github/workflows/screener-build.yml @@ -20,15 +20,12 @@ jobs: # BROWSERSLIST_IGNORE_OLD_DATA = Prevents failures on CI when "caniuse-lite" becomes outdated # DEPLOYHOST = address of host for screener tests deployment # BUILD_BUILDID = unique ID of the workflow run within the repo - # BUILD_SOURCEBRANCH = branch that triggered the workflow -> refs/pull//merge ########################################### - name: Set base env variables run: | cat <> artifacts/environment BROWSERSLIST_IGNORE_OLD_DATA=true - DEPLOYHOST='fluentuipr.z22.web.core.windows.net' BUILD_BUILDID=${{ github.run_id }} - BUILD_SOURCEBRANCH=${{ github.ref }} SCREENER_BUILD=1 EOT @@ -77,12 +74,11 @@ jobs: run: | cat <> artifacts/environment SYSTEM_PULLREQUEST_TARGETBRANCH=${{ github.event.pull_request.base.ref }} - SYSTEM_PULLREQUEST_SOURCEBRANCH=${{ github.event.pull_request.head.ref }} SYSTEM_PULLREQUEST_PULLREQUESTID=${{ github.event.pull_request.id }} SYSTEM_PULLREQUEST_SOURCECOMMITID=${{ github.event.pull_request.head.sha }} DEPLOYBASEPATH=pull/${{github.event.pull_request.number}} DEPLOYURL=https://${{env.DEPLOYHOST}}/pull/${{github.event.pull_request.number}} - BUILD_SOURCEBRANCHNAME='merge' + BUILD_SOURCEBRANCHNAME=${{ github.event.pull_request.head.ref }} EOT if: ${{ github.event_name == 'pull_request' && env.SKIP_SCREENER == ''}} diff --git a/apps/perf-test/CHANGELOG.json b/apps/perf-test/CHANGELOG.json index b8607f6620174..77396838d9fd4 100644 --- a/apps/perf-test/CHANGELOG.json +++ b/apps/perf-test/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@fluentui/perf-test", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/perf-test_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/perf-test", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/perf-test_v1.0.0", diff --git a/apps/perf-test/CHANGELOG.md b/apps/perf-test/CHANGELOG.md index 9da38d88e4d2c..601f717c7d6cc 100644 --- a/apps/perf-test/CHANGELOG.md +++ b/apps/perf-test/CHANGELOG.md @@ -1,11 +1,20 @@ # Change Log - @fluentui/perf-test -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test_v1.0.0) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test_v1.0.0..@fluentui/perf-test_v1.0.0) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/perf-test_v1.0.0) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/perf-test_v1.0.0..@fluentui/perf-test_v1.0.0) diff --git a/apps/perf-test/package.json b/apps/perf-test/package.json index 142be99f4790a..d3bf85b8b5a8f 100644 --- a/apps/perf-test/package.json +++ b/apps/perf-test/package.json @@ -15,7 +15,7 @@ "@fluentui/eslint-plugin": "*" }, "dependencies": { - "@fluentui/react": "^8.94.3", + "@fluentui/react": "^8.94.4", "@fluentui/scripts": "^1.0.0", "@microsoft/load-themed-styles": "^1.10.26", "flamegrill": "0.2.0", diff --git a/apps/public-docsite-resources/CHANGELOG.json b/apps/public-docsite-resources/CHANGELOG.json index 5d11960d792be..ba950e436a465 100644 --- a/apps/public-docsite-resources/CHANGELOG.json +++ b/apps/public-docsite-resources/CHANGELOG.json @@ -1,6 +1,60 @@ { "name": "@fluentui/public-docsite-resources", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/public-docsite-resources_v8.1.41", + "version": "8.1.41", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/public-docsite-resources", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite-resources", + "comment": "Bump @fluentui/azure-themes to v8.4.35", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite-resources", + "comment": "Bump @fluentui/react-docsite-components to v8.9.36", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite-resources", + "comment": "Bump @fluentui/theme-samples to v8.6.35", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite-resources", + "comment": "Bump @fluentui/react-monaco-editor to v1.6.35", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, + { + "date": "Mon, 12 Sep 2022 07:39:53 GMT", + "tag": "@fluentui/public-docsite-resources_v8.1.41", + "version": "8.1.41", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/public-docsite-resources", + "comment": "Bump @fluentui/react-docsite-components to v8.9.35", + "commit": "7f8bad094dadcdb671d5746848e96b5bd4b5791a" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/public-docsite-resources_v8.1.41", diff --git a/apps/public-docsite-resources/CHANGELOG.md b/apps/public-docsite-resources/CHANGELOG.md index 34fdcb740304a..52fc325be4895 100644 --- a/apps/public-docsite-resources/CHANGELOG.md +++ b/apps/public-docsite-resources/CHANGELOG.md @@ -1,11 +1,33 @@ # Change Log - @fluentui/public-docsite-resources -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [8.1.41](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite-resources_v8.1.41) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite-resources_v8.1.41..@fluentui/public-docsite-resources_v8.1.41) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/azure-themes to v8.4.35 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/react-docsite-components to v8.9.36 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/theme-samples to v8.6.35 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/react-monaco-editor to v1.6.35 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [8.1.41](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite-resources_v8.1.41) + +Mon, 12 Sep 2022 07:39:53 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite-resources_v8.1.41..@fluentui/public-docsite-resources_v8.1.41) + +### Patches + +- Bump @fluentui/react-docsite-components to v8.9.35 ([PR #24746](https://github.com/microsoft/fluentui/pull/24746) by beachball) + +## [8.1.41](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite-resources_v8.1.41) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite-resources_v8.1.41..@fluentui/public-docsite-resources_v8.1.41) diff --git a/apps/public-docsite-resources/package.json b/apps/public-docsite-resources/package.json index 704a485aeac79..8ff0e15cfcb95 100644 --- a/apps/public-docsite-resources/package.json +++ b/apps/public-docsite-resources/package.json @@ -32,15 +32,15 @@ "@fluentui/scripts": "^1.0.0" }, "dependencies": { - "@fluentui/react": "^8.94.3", + "@fluentui/react": "^8.94.4", "@fluentui/react-examples": "^8.34.4", "@microsoft/load-themed-styles": "^1.10.26", - "@fluentui/azure-themes": "^8.4.34", - "@fluentui/react-docsite-components": "^8.9.34", + "@fluentui/azure-themes": "^8.4.35", + "@fluentui/react-docsite-components": "^8.9.36", "@fluentui/font-icons-mdl2": "^8.4.13", "@fluentui/set-version": "^8.2.2", - "@fluentui/theme-samples": "^8.6.34", - "@fluentui/react-monaco-editor": "^1.6.34", + "@fluentui/theme-samples": "^8.6.35", + "@fluentui/react-monaco-editor": "^1.6.35", "office-ui-fabric-core": "^11.0.0", "react": "17.0.2", "react-dom": "17.0.2", diff --git a/apps/public-docsite-v9/CHANGELOG.json b/apps/public-docsite-v9/CHANGELOG.json index 6d99c0b5e4f16..8b0f3fd7c51fd 100644 --- a/apps/public-docsite-v9/CHANGELOG.json +++ b/apps/public-docsite-v9/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@fluentui/public-docsite-v9", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/public-docsite-v9_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/public-docsite-v9", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/public-docsite-v9_v1.0.0", diff --git a/apps/public-docsite-v9/CHANGELOG.md b/apps/public-docsite-v9/CHANGELOG.md index 9c9f30ed19b07..1a5c1f09ba1e8 100644 --- a/apps/public-docsite-v9/CHANGELOG.md +++ b/apps/public-docsite-v9/CHANGELOG.md @@ -1,11 +1,20 @@ # Change Log - @fluentui/public-docsite-v9 -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite-v9_v1.0.0) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite-v9_v1.0.0..@fluentui/public-docsite-v9_v1.0.0) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite-v9_v1.0.0) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite-v9_v1.0.0..@fluentui/public-docsite-v9_v1.0.0) diff --git a/apps/public-docsite-v9/package.json b/apps/public-docsite-v9/package.json index 6b667efe42b7d..97f67b9ed4afc 100644 --- a/apps/public-docsite-v9/package.json +++ b/apps/public-docsite-v9/package.json @@ -21,7 +21,7 @@ "@fluentui/scripts": "^1.0.0" }, "dependencies": { - "@fluentui/react": "^8.94.3", + "@fluentui/react": "^8.94.4", "@fluentui/scripts": "^1.0.0", "@fluentui/storybook": "^1.0.0", "@fluentui/react-components": "^9.2.0", diff --git a/apps/public-docsite/CHANGELOG.json b/apps/public-docsite/CHANGELOG.json index 5c58f14e5dd7d..0d36412d8bf03 100644 --- a/apps/public-docsite/CHANGELOG.json +++ b/apps/public-docsite/CHANGELOG.json @@ -1,6 +1,66 @@ { "name": "@fluentui/public-docsite", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/public-docsite_v8.2.41", + "version": "8.2.41", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/public-docsite", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite", + "comment": "Bump @fluentui/react-docsite-components to v8.9.36", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite", + "comment": "Bump @fluentui/react-experiments to v8.12.34", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite", + "comment": "Bump @fluentui/theme-samples to v8.6.35", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite", + "comment": "Bump @fluentui/react-monaco-editor to v1.6.35", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, + { + "date": "Mon, 12 Sep 2022 07:39:53 GMT", + "tag": "@fluentui/public-docsite_v8.2.41", + "version": "8.2.41", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/public-docsite", + "comment": "Bump @fluentui/public-docsite-setup to v0.3.12", + "commit": "7f8bad094dadcdb671d5746848e96b5bd4b5791a" + }, + { + "author": "beachball", + "package": "@fluentui/public-docsite", + "comment": "Bump @fluentui/react-docsite-components to v8.9.35", + "commit": "7f8bad094dadcdb671d5746848e96b5bd4b5791a" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/public-docsite_v8.2.41", diff --git a/apps/public-docsite/CHANGELOG.md b/apps/public-docsite/CHANGELOG.md index 557144e812b7b..96a2d83b23b0a 100644 --- a/apps/public-docsite/CHANGELOG.md +++ b/apps/public-docsite/CHANGELOG.md @@ -1,11 +1,34 @@ # Change Log - @fluentui/public-docsite -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [8.2.41](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite_v8.2.41) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite_v8.2.41..@fluentui/public-docsite_v8.2.41) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/react-docsite-components to v8.9.36 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/react-experiments to v8.12.34 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/theme-samples to v8.6.35 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/react-monaco-editor to v1.6.35 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [8.2.41](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite_v8.2.41) + +Mon, 12 Sep 2022 07:39:53 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite_v8.2.41..@fluentui/public-docsite_v8.2.41) + +### Patches + +- Bump @fluentui/public-docsite-setup to v0.3.12 ([PR #24746](https://github.com/microsoft/fluentui/pull/24746) by beachball) +- Bump @fluentui/react-docsite-components to v8.9.35 ([PR #24746](https://github.com/microsoft/fluentui/pull/24746) by beachball) + +## [8.2.41](https://github.com/microsoft/fluentui/tree/@fluentui/public-docsite_v8.2.41) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/public-docsite_v8.2.41..@fluentui/public-docsite_v8.2.41) diff --git a/apps/public-docsite/package.json b/apps/public-docsite/package.json index 6a9a482fc64b0..64cbbbf4e50cc 100644 --- a/apps/public-docsite/package.json +++ b/apps/public-docsite/package.json @@ -25,24 +25,24 @@ "devDependencies": { "@fluentui/common-styles": "^1.2.9", "@fluentui/eslint-plugin": "*", - "@fluentui/react-monaco-editor": "^1.6.34", + "@fluentui/react-monaco-editor": "^1.6.35", "@fluentui/scripts": "^1.0.0", "write-file-webpack-plugin": "^4.1.0" }, "dependencies": { "@fluentui/font-icons-mdl2": "^8.4.13", "@fluentui/public-docsite-resources": "^8.1.41", - "@fluentui/public-docsite-setup": "^0.3.11", - "@fluentui/react": "^8.94.3", - "@fluentui/react-docsite-components": "^8.9.34", + "@fluentui/public-docsite-setup": "^0.3.12", + "@fluentui/react": "^8.94.4", + "@fluentui/react-docsite-components": "^8.9.36", "@fluentui/react-examples": "^8.34.4", - "@fluentui/react-experiments": "^8.12.33", + "@fluentui/react-experiments": "^8.12.34", "@fluentui/react-file-type-icons": "^8.7.8", "@fluentui/react-icons-mdl2": "^1.3.22", "@fluentui/react-icons-mdl2-branded": "^1.2.23", "@fluentui/set-version": "^8.2.2", "@fluentui/theme": "^2.6.16", - "@fluentui/theme-samples": "^8.6.34", + "@fluentui/theme-samples": "^8.6.35", "@fluentui/utilities": "^8.13.1", "@microsoft/load-themed-styles": "^1.10.26", "office-ui-fabric-core": "^11.0.0", diff --git a/apps/public-docsite/src/pages/HomePage/HomePage.base.tsx b/apps/public-docsite/src/pages/HomePage/HomePage.base.tsx index d390e14f977a5..f2ff28c099056 100644 --- a/apps/public-docsite/src/pages/HomePage/HomePage.base.tsx +++ b/apps/public-docsite/src/pages/HomePage/HomePage.base.tsx @@ -125,7 +125,7 @@ export class HomePageBase extends React.Component
-

+

Fluent{' '} @@ -145,7 +145,7 @@ export class HomePageBase extends React.Component -

+

diff --git a/apps/public-docsite/src/root.tsx b/apps/public-docsite/src/root.tsx index e7a2c9250acc7..4da3add87610e 100644 --- a/apps/public-docsite/src/root.tsx +++ b/apps/public-docsite/src/root.tsx @@ -36,7 +36,7 @@ registerIcons({ }, }); -const skipToMain = document.querySelector('[href="#mainContent"]') as HTMLAnchorElement; +const skipToMain = document.getElementById('uhfSkipToMain') as HTMLAnchorElement; if (skipToMain) { // This link points to #mainContent by default, which would be interpreted as a route in our app. // Handle focusing the main content manually instead. diff --git a/apps/public-docsite/src/styles/_base.scss b/apps/public-docsite/src/styles/_base.scss index 1457e2b19a2f0..c43bbda61f6c4 100644 --- a/apps/public-docsite/src/styles/_base.scss +++ b/apps/public-docsite/src/styles/_base.scss @@ -114,7 +114,7 @@ // and #flightPicker element which creates accessibility issues. // Hide #socialMediaContainer element which holds the footer with social media links // and #signInPrompt element which contains the sign in modal - a.m-back-to-top, + [href="#mainContent"], #flightPicker, #socialMediaContainer, #signInPrompt { diff --git a/apps/react-18-tests-v8/CHANGELOG.json b/apps/react-18-tests-v8/CHANGELOG.json index 7c8965e39799a..9dee8b9c21e2c 100644 --- a/apps/react-18-tests-v8/CHANGELOG.json +++ b/apps/react-18-tests-v8/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@fluentui/react-18-tests-v8", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/react-18-tests-v8_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/react-18-tests-v8", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/react-18-tests-v8_v1.0.0", diff --git a/apps/react-18-tests-v8/CHANGELOG.md b/apps/react-18-tests-v8/CHANGELOG.md index ada6d2aad0e68..b2ed7845e6999 100644 --- a/apps/react-18-tests-v8/CHANGELOG.md +++ b/apps/react-18-tests-v8/CHANGELOG.md @@ -1,11 +1,20 @@ # Change Log - @fluentui/react-18-tests-v8 -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-18-tests-v8_v1.0.0) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-18-tests-v8_v1.0.0..@fluentui/react-18-tests-v8_v1.0.0) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-18-tests-v8_v1.0.0) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-18-tests-v8_v1.0.0..@fluentui/react-18-tests-v8_v1.0.0) diff --git a/apps/react-18-tests-v8/package.json b/apps/react-18-tests-v8/package.json index ada66035dda7f..4950a90942796 100644 --- a/apps/react-18-tests-v8/package.json +++ b/apps/react-18-tests-v8/package.json @@ -22,7 +22,7 @@ "swc-loader": "^0.2.3" }, "dependencies": { - "@fluentui/react": "8.94.3", + "@fluentui/react": "8.94.4", "@fluentui/react-hooks": "8.6.11", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/apps/ssr-tests/CHANGELOG.json b/apps/ssr-tests/CHANGELOG.json index 59d3d7e2887d1..5c27af3b4e41c 100644 --- a/apps/ssr-tests/CHANGELOG.json +++ b/apps/ssr-tests/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@fluentui/ssr-tests", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/ssr-tests_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/ssr-tests", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/ssr-tests_v1.0.0", diff --git a/apps/ssr-tests/CHANGELOG.md b/apps/ssr-tests/CHANGELOG.md index 06dc498530d90..fc0f1422d5f3b 100644 --- a/apps/ssr-tests/CHANGELOG.md +++ b/apps/ssr-tests/CHANGELOG.md @@ -1,11 +1,20 @@ # Change Log - @fluentui/ssr-tests -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/ssr-tests_v1.0.0) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/ssr-tests_v1.0.0..@fluentui/ssr-tests_v1.0.0) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/ssr-tests_v1.0.0) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/ssr-tests_v1.0.0..@fluentui/ssr-tests_v1.0.0) diff --git a/apps/ssr-tests/package.json b/apps/ssr-tests/package.json index d8faf97446ad0..eb09b7a362be2 100644 --- a/apps/ssr-tests/package.json +++ b/apps/ssr-tests/package.json @@ -13,7 +13,7 @@ }, "license": "MIT", "devDependencies": { - "@fluentui/react": "^8.94.3", + "@fluentui/react": "^8.94.4", "@microsoft/load-themed-styles": "^1.10.26", "@types/mocha": "^7.0.2", "@fluentui/scripts": "^1.0.0", diff --git a/apps/stress-test/CHANGELOG.json b/apps/stress-test/CHANGELOG.json index 8551220b6067d..463119fcaa3cb 100644 --- a/apps/stress-test/CHANGELOG.json +++ b/apps/stress-test/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@fluentui/stress-test", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/stress-test_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/stress-test", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/stress-test_v1.0.0", diff --git a/apps/stress-test/CHANGELOG.md b/apps/stress-test/CHANGELOG.md index 86f6ed25ceffe..5ffe6bfe56315 100644 --- a/apps/stress-test/CHANGELOG.md +++ b/apps/stress-test/CHANGELOG.md @@ -1,11 +1,20 @@ # Change Log - @fluentui/stress-test -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/stress-test_v1.0.0) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/stress-test_v1.0.0..@fluentui/stress-test_v1.0.0) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/stress-test_v1.0.0) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/stress-test_v1.0.0..@fluentui/stress-test_v1.0.0) diff --git a/apps/stress-test/package.json b/apps/stress-test/package.json index 3f6761b38612e..88d9ffd5485d2 100644 --- a/apps/stress-test/package.json +++ b/apps/stress-test/package.json @@ -9,7 +9,7 @@ "type-check": "tsc -b tsconfig.type.json" }, "dependencies": { - "@fluentui/react": "^8.94.3", + "@fluentui/react": "^8.94.4", "@fluentui/react-components": "^9.2.0", "@fluentui/react-icons": "^2.0.175", "@fluentui/web-components": "^2.5.5", diff --git a/apps/theming-designer/CHANGELOG.json b/apps/theming-designer/CHANGELOG.json index 000290d5953a3..bcd9c2a064a23 100644 --- a/apps/theming-designer/CHANGELOG.json +++ b/apps/theming-designer/CHANGELOG.json @@ -1,6 +1,42 @@ { "name": "@fluentui/theming-designer", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/theming-designer_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/theming-designer", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + }, + { + "author": "beachball", + "package": "@fluentui/theming-designer", + "comment": "Bump @fluentui/react-docsite-components to v8.9.36", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, + { + "date": "Mon, 12 Sep 2022 07:39:53 GMT", + "tag": "@fluentui/theming-designer_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/theming-designer", + "comment": "Bump @fluentui/react-docsite-components to v8.9.35", + "commit": "7f8bad094dadcdb671d5746848e96b5bd4b5791a" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/theming-designer_v1.0.0", diff --git a/apps/theming-designer/CHANGELOG.md b/apps/theming-designer/CHANGELOG.md index febaf877256d1..4bf5f94e4a5d4 100644 --- a/apps/theming-designer/CHANGELOG.md +++ b/apps/theming-designer/CHANGELOG.md @@ -1,11 +1,30 @@ # Change Log - @fluentui/theming-designer -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/theming-designer_v1.0.0) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/theming-designer_v1.0.0..@fluentui/theming-designer_v1.0.0) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) +- Bump @fluentui/react-docsite-components to v8.9.36 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/theming-designer_v1.0.0) + +Mon, 12 Sep 2022 07:39:53 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/theming-designer_v1.0.0..@fluentui/theming-designer_v1.0.0) + +### Patches + +- Bump @fluentui/react-docsite-components to v8.9.35 ([PR #24746](https://github.com/microsoft/fluentui/pull/24746) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/theming-designer_v1.0.0) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/theming-designer_v1.0.0..@fluentui/theming-designer_v1.0.0) diff --git a/apps/theming-designer/package.json b/apps/theming-designer/package.json index 9169d672488d8..6a35bebbac3d4 100644 --- a/apps/theming-designer/package.json +++ b/apps/theming-designer/package.json @@ -18,9 +18,9 @@ "@fluentui/scripts": "^1.0.0" }, "dependencies": { - "@fluentui/react": "^8.94.3", + "@fluentui/react": "^8.94.4", "@fluentui/merge-styles": "^8.5.3", - "@fluentui/react-docsite-components": "^8.9.34", + "@fluentui/react-docsite-components": "^8.9.36", "@fluentui/foundation-legacy": "^8.2.20", "@fluentui/scheme-utilities": "^8.3.17", "@fluentui/set-version": "^8.2.2", diff --git a/apps/ts-minbar-test-react/CHANGELOG.json b/apps/ts-minbar-test-react/CHANGELOG.json index 8be567a928c64..14ceacb90f9fd 100644 --- a/apps/ts-minbar-test-react/CHANGELOG.json +++ b/apps/ts-minbar-test-react/CHANGELOG.json @@ -1,6 +1,21 @@ { "name": "@fluentui/ts-minbar-test-react", "entries": [ + { + "date": "Tue, 13 Sep 2022 07:41:03 GMT", + "tag": "@fluentui/ts-minbar-test-react_v1.0.0", + "version": "1.0.0", + "comments": { + "patch": [ + { + "author": "beachball", + "package": "@fluentui/ts-minbar-test-react", + "comment": "Bump @fluentui/react to v8.94.4", + "commit": "a40ef34fa6d1122bdfdb708f79b90de9edb2827d" + } + ] + } + }, { "date": "Thu, 08 Sep 2022 20:52:16 GMT", "tag": "@fluentui/ts-minbar-test-react_v1.0.0", diff --git a/apps/ts-minbar-test-react/CHANGELOG.md b/apps/ts-minbar-test-react/CHANGELOG.md index 52c8bc967e774..aa2c67f0ad98f 100644 --- a/apps/ts-minbar-test-react/CHANGELOG.md +++ b/apps/ts-minbar-test-react/CHANGELOG.md @@ -1,11 +1,20 @@ # Change Log - @fluentui/ts-minbar-test-react -This log was last generated on Thu, 08 Sep 2022 20:52:16 GMT and should not be manually modified. +This log was last generated on Tue, 13 Sep 2022 07:41:03 GMT and should not be manually modified. ## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/ts-minbar-test-react_v1.0.0) +Tue, 13 Sep 2022 07:41:03 GMT +[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/ts-minbar-test-react_v1.0.0..@fluentui/ts-minbar-test-react_v1.0.0) + +### Patches + +- Bump @fluentui/react to v8.94.4 ([PR #24615](https://github.com/microsoft/fluentui/pull/24615) by beachball) + +## [1.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/ts-minbar-test-react_v1.0.0) + Thu, 08 Sep 2022 20:52:16 GMT [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/ts-minbar-test-react_v1.0.0..@fluentui/ts-minbar-test-react_v1.0.0) diff --git a/apps/ts-minbar-test-react/package.json b/apps/ts-minbar-test-react/package.json index 2b056797e6c8a..c554890d0753f 100644 --- a/apps/ts-minbar-test-react/package.json +++ b/apps/ts-minbar-test-react/package.json @@ -5,7 +5,7 @@ "description": "Testing Fluent UI React compatibility with Typescript 3.9", "license": "MIT", "dependencies": { - "@fluentui/react": "^8.94.3" + "@fluentui/react": "^8.94.4" }, "scripts": { "build": "just-scripts build", diff --git a/apps/vr-tests-react-components/screener.config.js b/apps/vr-tests-react-components/screener.config.js index caa843a8fbb11..56a9934f99dc1 100644 --- a/apps/vr-tests-react-components/screener.config.js +++ b/apps/vr-tests-react-components/screener.config.js @@ -17,26 +17,32 @@ function getCurrentHash() { return ''; } +/** + * + * @param {Object} options + * @param {string} options.screenerApiKey + * @param {string} options.sourceBranchName + * @param {string} options.deployUrl + * @param {string} options.targetBranch + * @returns + */ +function getConfig({ screenerApiKey, sourceBranchName, deployUrl, targetBranch }) { + const baseBranch = targetBranch ? targetBranch.replace(/^refs\/heads\//, '') : 'master'; + // https://github.com/screener-io/screener-storybook#additional-configuration-options + const config = { + projectRepo: 'microsoft/fluentui/react-components', + storybookStaticBuildDir: 'dist/storybook', + storybookConfigDir: '.storybook', + apiKey: screenerApiKey, + resolution: '1024x768', + baseBranch, + failureExitCode: 0, + alwaysAcceptBaseBranch: true, + ...(sourceBranchName !== 'master' ? { commit: getCurrentHash() } : null), + baseUrl: `${deployUrl}/react-components-screener/iframe.html`, + }; + console.log('Screener config: ' + JSON.stringify({ ...config, apiKey: '...' }, null, 2)); + return config; +} -const baseBranch = process.env.SYSTEM_PULLREQUEST_TARGETBRANCH - ? process.env.SYSTEM_PULLREQUEST_TARGETBRANCH.replace(/^refs\/heads\//, '') - : 'master'; - -// https://github.com/screener-io/screener-storybook#additional-configuration-options -const config = { - projectRepo: 'microsoft/fluentui/react-components', - storybookStaticBuildDir: 'dist/storybook', - storybookConfigDir: '.storybook', - apiKey: process.env.SCREENER_API_KEY, - resolution: '1024x768', - baseBranch, - failureExitCode: 0, - alwaysAcceptBaseBranch: true, - ...(process.env.BUILD_SOURCEBRANCH && process.env.BUILD_SOURCEBRANCH.indexOf('refs/pull') > -1 - ? { commit: getCurrentHash() } - : null), - baseUrl: `${process.env.DEPLOYURL}/react-components-screener/iframe.html`, -}; -console.log('Screener config: ' + JSON.stringify({ ...config, apiKey: '...' }, null, 2)); - -module.exports = config; +module.exports = getConfig; diff --git a/apps/vr-tests-react-components/src/stories/Button.stories.tsx b/apps/vr-tests-react-components/src/stories/Button.stories.tsx index cbba4b0fd12c9..23c3f2e7077f1 100644 --- a/apps/vr-tests-react-components/src/stories/Button.stories.tsx +++ b/apps/vr-tests-react-components/src/stories/Button.stories.tsx @@ -2,8 +2,11 @@ import { storiesOf } from '@storybook/react'; import * as React from 'react'; import Screener from 'screener-storybook/src/screener'; import { Button, CompoundButton, ToggleButton, MenuButton } from '@fluentui/react-button'; +import { bundleIcon, CalendarMonthFilled, CalendarMonthRegular } from '@fluentui/react-icons'; import { makeStyles } from '@griffel/react'; +const CalendarMonth = bundleIcon(CalendarMonthFilled, CalendarMonthRegular); + const steps = new Screener.Steps() .snapshot('default', { cropTo: '.testWrapper' }) .hover('#button-id') @@ -125,19 +128,19 @@ storiesOf('Button Converged', module) { includeHighContrast: true, includeDarkMode: true }, ) .addStory('Size small', () => ( - )) .addStory('Size large', () => ( - )) .addStory('Size small - with long text wrapping', () => { const styles = useStyles(); return ( - ); @@ -145,7 +148,7 @@ storiesOf('Button Converged', module) .addStory('Size medium - with long text wrapping', () => { const styles = useStyles(); return ( - ); @@ -153,7 +156,7 @@ storiesOf('Button Converged', module) .addStory('Size large - with long text wrapping', () => { const styles = useStyles(); return ( - ); @@ -161,7 +164,7 @@ storiesOf('Button Converged', module) .addStory( 'With icon before content', () => ( - ), @@ -172,14 +175,14 @@ storiesOf('Button Converged', module) .addStory( 'With icon after content', () => ( - ), { includeRtl: true }, ) - .addStory('Icon only', () => +

+
+ + + + + + +
+
+
+
+
+
+ 20 +
+
+
+
+
+
+
+
+ + metaData1 +
+
+ 50 +
+
+
+
+
+
+
+
+
+
+ +`; + +exports[`AreaChart - mouse events Should render customized callout on mouseover 1`] = ` + +`; + +exports[`AreaChart - mouse events Should render customized callout per stack on mouseover 1`] = ` + +`; + exports[`AreaChart snapShot testing renders Areachart correctly 1`] = `
legendContainerHeight - ? container.getBoundingClientRect().height - : 350; - const shouldResize = - containerWidth !== currentContainerWidth || containerHeight !== currentContainerHeight - legendContainerHeight; - if (shouldResize) { - this.setState({ - containerWidth: currentContainerWidth, - containerHeight: currentContainerHeight - legendContainerHeight, - }); + if (this.props.parentRef || this.chartContainer) { + const container = this.props.parentRef ? this.props.parentRef : this.chartContainer; + const currentContainerWidth = container.getBoundingClientRect().width; + const currentContainerHeight = + container.getBoundingClientRect().height > legendContainerHeight + ? container.getBoundingClientRect().height + : 350; + const shouldResize = + containerWidth !== currentContainerWidth || + containerHeight !== currentContainerHeight - legendContainerHeight; + if (shouldResize) { + this.setState({ + containerWidth: currentContainerWidth, + containerHeight: currentContainerHeight - legendContainerHeight, + }); + } } }); } diff --git a/packages/react-charting/src/components/CommonComponents/CartesianChart.types.ts b/packages/react-charting/src/components/CommonComponents/CartesianChart.types.ts index b34e4e5d3c2b8..8d05412a8cfa5 100644 --- a/packages/react-charting/src/components/CommonComponents/CartesianChart.types.ts +++ b/packages/react-charting/src/components/CommonComponents/CartesianChart.types.ts @@ -7,6 +7,7 @@ import { ICalloutProps } from '@fluentui/react/lib/Callout'; import { ILegendsProps } from '../Legends/index'; import { IAccessibilityProps, IMargins } from '../../types/index'; import { ChartTypes, IChartHoverCardProps, XAxisTypes, YAxisType } from '../../utilities/index'; +import * as d3TimeFormat from 'd3-time-format'; export interface ICartesianChartStyleProps { /** @@ -328,6 +329,11 @@ export interface ICartesianChartProps { */ dateLocalizeOptions?: Intl.DateTimeFormatOptions; + /** + * The prop used to define a custom locale for the date time format. + */ + timeFormatLocale?: d3TimeFormat.TimeLocaleDefinition; + /** * Call to provide customized styling that will layer on top of the variant rules. */ diff --git a/packages/react-charting/src/components/DonutChart/DonutChart.test.tsx b/packages/react-charting/src/components/DonutChart/DonutChart.test.tsx index 533206ab7af8a..1477ef848e737 100644 --- a/packages/react-charting/src/components/DonutChart/DonutChart.test.tsx +++ b/packages/react-charting/src/components/DonutChart/DonutChart.test.tsx @@ -6,6 +6,7 @@ import { mount, ReactWrapper } from 'enzyme'; import { IDonutChartProps, DonutChart } from './index'; import { IDonutChartState, DonutChartBase } from './DonutChart.base'; import { IChartProps, IChartDataPoint } from '../../index'; +import toJson from 'enzyme-to-json'; // Wrapper of the DonutChart to be tested. let wrapper: ReactWrapper | undefined; @@ -117,3 +118,45 @@ describe('DonutChart - basic props', () => { expect(renderedDOM!.length).toBe(0); }); }); + +describe('DonutChart - mouse events', () => { + beforeEach(sharedBeforeEach); + afterEach(sharedAfterEach); + + it('Should render callout correctly on mouseover', () => { + wrapper = mount(); + wrapper.find('path[id^="_Pie_"]').at(0).simulate('mouseover'); + const tree = toJson(wrapper, { mode: 'deep' }); + expect(tree).toMatchSnapshot(); + }); + + it('Should render callout correctly on mousemove', () => { + wrapper = mount(); + wrapper.find('path[id^="_Pie_"]').at(0).simulate('mousemove'); + const html1 = wrapper.html(); + wrapper.find('path[id^="_Pie_"]').at(0).simulate('mouseleave'); + wrapper.find('path[id^="_Pie_"]').at(1).simulate('mousemove'); + const html2 = wrapper.html(); + expect(html1).not.toBe(html2); + }); + + it('Should render customized callout on mouseover', () => { + wrapper = mount( + + props ? ( +
+
{JSON.stringify(props, null, 2)}
+
+ ) : null + } + />, + ); + wrapper.find('path[id^="_Pie_"]').at(0).simulate('mouseover'); + const tree = toJson(wrapper, { mode: 'deep' }); + expect(tree).toMatchSnapshot(); + }); +}); diff --git a/packages/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap b/packages/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap index e79772eb707d0..0ae06e0d48fee 100644 --- a/packages/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap +++ b/packages/react-charting/src/components/DonutChart/__snapshots__/DonutChart.test.tsx.snap @@ -1,5 +1,1009 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`DonutChart - mouse events Should render callout correctly on mouseover 1`] = ` +
+
+
+ + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+`; + +exports[`DonutChart - mouse events Should render customized callout on mouseover 1`] = ` +
+
+
+ + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+`; + exports[`DonutChart snapShot testing renders DonutChart correctly 1`] = `
{ renderMock.mockRestore(); }); }); + +describe('GroupedVerticalBarChart - mouse events', () => { + beforeEach(sharedBeforeEach); + afterEach(sharedAfterEach); + + it('Should render callout correctly on mouseover', () => { + wrapper = mount(); + wrapper.find('rect').at(0).simulate('mouseover'); + const tree = toJson(wrapper, { mode: 'deep' }); + expect(tree).toMatchSnapshot(); + }); + + it('Should render callout correctly on mousemove', () => { + wrapper = mount(); + wrapper.find('rect').at(2).simulate('mousemove'); + const html1 = wrapper.html(); + wrapper.find('rect').at(3).simulate('mousemove'); + const html2 = wrapper.html(); + expect(html1).not.toBe(html2); + }); + + it('Should render customized callout on mouseover', () => { + wrapper = mount( + + props ? ( +
+
{JSON.stringify(props, null, 2)}
+
+ ) : null + } + />, + ); + wrapper.find('rect').at(0).simulate('mouseover'); + const tree = toJson(wrapper, { mode: 'deep' }); + expect(tree).toMatchSnapshot(); + }); +}); diff --git a/packages/react-charting/src/components/GroupedVerticalBarChart/__snapshots__/GroupedVerticalBarChart.test.tsx.snap b/packages/react-charting/src/components/GroupedVerticalBarChart/__snapshots__/GroupedVerticalBarChart.test.tsx.snap index 18e0a4afabca4..fb4896075789d 100644 --- a/packages/react-charting/src/components/GroupedVerticalBarChart/__snapshots__/GroupedVerticalBarChart.test.tsx.snap +++ b/packages/react-charting/src/components/GroupedVerticalBarChart/__snapshots__/GroupedVerticalBarChart.test.tsx.snap @@ -1,5 +1,1419 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`GroupedVerticalBarChart - mouse events Should render callout correctly on mouseover 1`] = ` +