From a992f76544e515bd6041e6d53af32d7fecd8da25 Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 14:12:38 +0100 Subject: [PATCH 01/11] chore: bump typescript to 5.5.2 --- package.json | 9 +- packages/api-docs/package.json | 4 +- yarn.lock | 203 +++++++++++++++++---------------- 3 files changed, 114 insertions(+), 102 deletions(-) diff --git a/package.json b/package.json index 5fb8c55d042bb..57d66bc011843 100644 --- a/package.json +++ b/package.json @@ -69,12 +69,12 @@ "@griffel/webpack-loader": "2.2.10", "@jest/reporters": "29.7.0", "@mdx-js/loader": "2.3.0", - "@microsoft/api-extractor": "7.39.0", - "@microsoft/api-extractor-model": "7.28.3", + "@microsoft/api-extractor": "7.48.1", + "@microsoft/api-extractor-model": "7.30.1", "@microsoft/eslint-plugin-sdl": "0.1.9", "@microsoft/load-themed-styles": "1.10.26", "@microsoft/loader-load-themed-styles": "2.0.17", - "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc": "0.15.1", "@nx/devkit": "19.8.4", "@nx/eslint": "19.8.4", "@nx/eslint-plugin": "19.8.4", @@ -340,7 +340,7 @@ "tsconfig-paths": "4.2.0", "tsconfig-paths-webpack-plugin": "4.1.0", "tslib": "2.6.3", - "typescript": "5.3.3", + "typescript": "5.5.2", "vinyl": "2.2.0", "webpack": "5.94.0", "webpack-bundle-analyzer": "4.10.1", @@ -374,6 +374,7 @@ }, "resolutions": { "@types/jest-axe/axe-core": "4.7.2", + "@microsoft/api-extractor/typescript": "5.5.2", "esbuild": "0.20.1", "eslint": "8.57.0", "swc-loader": "^0.2.6", diff --git a/packages/api-docs/package.json b/packages/api-docs/package.json index 378c8411af0a5..8d45ccbf0acd1 100644 --- a/packages/api-docs/package.json +++ b/packages/api-docs/package.json @@ -21,8 +21,8 @@ "@fluentui/scripts-tasks": "*" }, "dependencies": { - "@microsoft/api-extractor-model": "7.28.3", - "@microsoft/tsdoc": "0.14.2", + "@microsoft/api-extractor-model": "7.30.1", + "@microsoft/tsdoc": "0.15.1", "fs-extra": "^8.1.0" } } diff --git a/yarn.lock b/yarn.lock index fd3dbfed34482..f9a41860cfb5d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2476,32 +2476,33 @@ "@types/mdx" "^2.0.0" "@types/react" ">=16" -"@microsoft/api-extractor-model@7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.28.3.tgz#f6a213e41a2274d5195366b646954daee39e8493" - integrity sha512-wT/kB2oDbdZXITyDh2SQLzaWwTOFbV326fP0pUwNW00WeliARs0qjmXBWmGWardEzp2U3/axkO3Lboqun6vrig== - dependencies: - "@microsoft/tsdoc" "0.14.2" - "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.62.0" - -"@microsoft/api-extractor@7.39.0": - version "7.39.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.39.0.tgz#41c25f7f522e8b9376debda07364ff234e602eff" - integrity sha512-PuXxzadgnvp+wdeZFPonssRAj/EW4Gm4s75TXzPk09h3wJ8RS3x7typf95B4vwZRrPTQBGopdUl+/vHvlPdAcg== - dependencies: - "@microsoft/api-extractor-model" "7.28.3" - "@microsoft/tsdoc" "0.14.2" - "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.62.0" - "@rushstack/rig-package" "0.5.1" - "@rushstack/ts-command-line" "4.17.1" - colors "~1.2.1" +"@microsoft/api-extractor-model@7.30.1": + version "7.30.1" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.30.1.tgz#719e2ab8afe8fe3a5dd65aaa8783dbba90f7c802" + integrity sha512-CTS2PlASJHxVY8hqHORVb1HdECWOEMcMnM6/kDkPr0RZapAFSIHhg9D4jxuE8g+OWYHtPc10LCpmde5pylTRlA== + dependencies: + "@microsoft/tsdoc" "~0.15.1" + "@microsoft/tsdoc-config" "~0.17.1" + "@rushstack/node-core-library" "5.10.1" + +"@microsoft/api-extractor@7.48.1": + version "7.48.1" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.48.1.tgz#792197cfc5113cd2efc04524c065d682ef58d2ba" + integrity sha512-HN9Osa1WxqLM66RaqB5nPAadx+nTIQmY/XtkFdaJvusjG8Tus++QqZtD7KPZDSkhEMGHsYeSyeU8qUzCDUXPjg== + dependencies: + "@microsoft/api-extractor-model" "7.30.1" + "@microsoft/tsdoc" "~0.15.1" + "@microsoft/tsdoc-config" "~0.17.1" + "@rushstack/node-core-library" "5.10.1" + "@rushstack/rig-package" "0.5.3" + "@rushstack/terminal" "0.14.4" + "@rushstack/ts-command-line" "4.23.2" lodash "~4.17.15" + minimatch "~3.0.3" resolve "~1.22.1" semver "~7.5.4" source-map "~0.6.1" - typescript "5.3.3" + typescript "5.4.2" "@microsoft/applicationinsights-analytics-js@3.3.0": version "3.3.0" @@ -2645,20 +2646,20 @@ dependencies: loader-utils "1.4.2" -"@microsoft/tsdoc-config@~0.16.1": - version "0.16.2" - resolved "https://registry.yarnpkg.com/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz#b786bb4ead00d54f53839a458ce626c8548d3adf" - integrity sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw== +"@microsoft/tsdoc-config@~0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc-config/-/tsdoc-config-0.17.1.tgz#e0f0b50628f4ad7fe121ca616beacfe6a25b9335" + integrity sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw== dependencies: - "@microsoft/tsdoc" "0.14.2" - ajv "~6.12.6" + "@microsoft/tsdoc" "0.15.1" + ajv "~8.12.0" jju "~1.4.0" - resolve "~1.19.0" + resolve "~1.22.2" -"@microsoft/tsdoc@0.14.2": - version "0.14.2" - resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz#c3ec604a0b54b9a9b87e9735dfc59e1a5da6a5fb" - integrity sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug== +"@microsoft/tsdoc@0.15.1", "@microsoft/tsdoc@~0.15.1": + version "0.15.1" + resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.15.1.tgz#d4f6937353bc4568292654efb0a0e0532adbcba2" + integrity sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw== "@mole-inc/bin-wrapper@^8.0.1": version "8.0.1" @@ -3645,18 +3646,19 @@ timsort "~0.3.0" z-schema "~5.0.2" -"@rushstack/node-core-library@3.62.0": - version "3.62.0" - resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.62.0.tgz#a30a44a740b522944165f0faa6644134eb95be1d" - integrity sha512-88aJn2h8UpSvdwuDXBv1/v1heM6GnBf3RjEy6ZPP7UnzHNCqOHA2Ut+ScYUbXcqIdfew9JlTAe3g+cnX9xQ/Aw== +"@rushstack/node-core-library@5.10.1": + version "5.10.1" + resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-5.10.1.tgz#14c10c918ed12da003c21af9d5bf0e76633215d2" + integrity sha512-BSb/KcyBHmUQwINrgtzo6jiH0HlGFmrUy33vO6unmceuVKTEyL2q+P0fQq2oB5hvXVWOEUhxB2QvlkZluvUEmg== dependencies: - colors "~1.2.1" + ajv "~8.13.0" + ajv-draft-04 "~1.0.0" + ajv-formats "~3.0.1" fs-extra "~7.0.1" import-lazy "~4.0.0" jju "~1.4.0" resolve "~1.22.1" semver "~7.5.4" - z-schema "~5.0.2" "@rushstack/package-deps-hash@^3.2.5": version "3.2.40" @@ -3665,22 +3667,30 @@ dependencies: "@rushstack/node-core-library" "3.50.1" -"@rushstack/rig-package@0.5.1": - version "0.5.1" - resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.5.1.tgz#6c9c283cc96b5bb1eae9875946d974ac5429bb21" - integrity sha512-pXRYSe29TjRw7rqxD4WS3HN/sRSbfr+tJs4a9uuaSIBAITbUggygdhuG0VrO0EO+QqH91GhYMN4S6KRtOEmGVA== +"@rushstack/rig-package@0.5.3": + version "0.5.3" + resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.5.3.tgz#ea4d8a3458540b1295500149c04e645f23134e5d" + integrity sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow== dependencies: resolve "~1.22.1" strip-json-comments "~3.1.1" -"@rushstack/ts-command-line@4.17.1": - version "4.17.1" - resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.17.1.tgz#c78db928ce5b93f2e98fd9e14c24f3f3876e57f1" - integrity sha512-2jweO1O57BYP5qdBGl6apJLB+aRIn5ccIRTPDyULh0KMwVzFqWtw6IZWt1qtUoZD/pD2RNkIOosH6Cq45rIYeg== +"@rushstack/terminal@0.14.4": + version "0.14.4" + resolved "https://registry.yarnpkg.com/@rushstack/terminal/-/terminal-0.14.4.tgz#37e160b0878a324cf3e0fecab25fe48a030e29ed" + integrity sha512-NxACqERW0PHq8Rpq1V6v5iTHEwkRGxenjEW+VWqRYQ8T9puUzgmGHmEZUaUEDHAe9Qyvp0/Ew04sAiQw9XjhJg== + dependencies: + "@rushstack/node-core-library" "5.10.1" + supports-color "~8.1.1" + +"@rushstack/ts-command-line@4.23.2": + version "4.23.2" + resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.23.2.tgz#37b28a418db84d04f6a1c787390dd02ad8dfadf0" + integrity sha512-JJ7XZX5K3ThBBva38aomgsPv1L7FV6XmSOcR6HtM7HDFZJkepqT65imw26h9ggGqMjsY0R9jcl30tzKcVj9aOQ== dependencies: + "@rushstack/terminal" "0.14.4" "@types/argparse" "1.0.38" argparse "~1.0.9" - colors "~1.2.1" string-argv "~0.3.1" "@scarf/scarf@^1.0.4": @@ -6472,6 +6482,11 @@ aggregate-error@^3.0.0: clean-stack "^2.0.0" indent-string "^4.0.0" +ajv-draft-04@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz#3b64761b268ba0b9e668f0b41ba53fce0ad77fc8" + integrity sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw== + ajv-formats@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" @@ -6479,6 +6494,13 @@ ajv-formats@^2.1.1: dependencies: ajv "^8.0.0" +ajv-formats@~3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-3.0.1.tgz#3d5dc762bca17679c3c2ea7e90ad6b7532309578" + integrity sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ== + dependencies: + ajv "^8.0.0" + ajv-keywords@^3.5.2: version "3.5.2" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" @@ -6501,7 +6523,7 @@ ajv@8.4.0: require-from-string "^2.0.2" uri-js "^4.2.2" -ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.12.6, ajv@~6.12.6: +ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.12.6: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -6511,7 +6533,17 @@ ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.12.6, ajv@~6.12.6: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.0.0, ajv@^8.0.1, ajv@^8.4.0, ajv@^8.9.0: +ajv@^8.0.0, ajv@^8.0.1, ajv@^8.4.0, ajv@^8.9.0, ajv@~8.13.0: + version "8.13.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.13.0.tgz#a3939eaec9fb80d217ddf0c3376948c023f28c91" + integrity sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA== + dependencies: + fast-deep-equal "^3.1.3" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.4.1" + +ajv@~8.12.0: version "8.12.0" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== @@ -13976,10 +14008,10 @@ is-ci@^3.0.0: dependencies: ci-info "^3.2.0" -is-core-module@^2.1.0, is-core-module@^2.11.0, is-core-module@^2.13.0, is-core-module@^2.13.1: - version "2.15.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.0.tgz#71c72ec5442ace7e76b306e9d48db361f22699ea" - integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA== +is-core-module@^2.11.0, is-core-module@^2.13.0, is-core-module@^2.13.1: + version "2.16.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.0.tgz#6c01ffdd5e33c49c1d2abfa93334a85cb56bd81c" + integrity sha512-urTSINYfAYgcbLb0yDQ6egFm6h3Mo1DcF9EkyXSRjjzdHbsulg01qhwWuXdOoUBuTkbQ80KDboXa0vFJ+BDH+g== dependencies: hasown "^2.0.2" @@ -17240,6 +17272,13 @@ minimatch@^9.0.3, minimatch@^9.0.4: dependencies: brace-expansion "^2.0.1" +minimatch@~3.0.3: + version "3.0.8" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.8.tgz#5e6a59bd11e2ab0de1cfb843eb2d82e546c321c1" + integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q== + dependencies: + brace-expansion "^1.1.7" + minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.8, minimist@~1.2.5: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" @@ -20433,7 +20472,7 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@1.22.8, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.11.0, resolve@^1.11.1, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.4, resolve@^1.4.0, resolve@~1.22.1: +resolve@1.22.8, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.11.0, resolve@^1.11.1, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.4, resolve@^1.4.0, resolve@~1.22.1, resolve@~1.22.2: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -20458,14 +20497,6 @@ resolve@~1.17.0: dependencies: path-parse "^1.0.6" -resolve@~1.19.0: - version "1.19.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" - integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== - dependencies: - is-core-module "^2.1.0" - path-parse "^1.0.6" - responselike@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.0.tgz#26391bcc3174f750f9a79eacc40a12a5c42d7723" @@ -21570,7 +21601,7 @@ string-length@^5.0.1: char-regex "^2.0.0" strip-ansi "^7.0.1" -"string-width-cjs@npm:string-width@^4.2.0": +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -21605,15 +21636,6 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - string-width@^5.0.1, string-width@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" @@ -21714,7 +21736,7 @@ stringify-object@^3.3.0: is-obj "^1.0.1" is-regexp "^1.0.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -21749,13 +21771,6 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - strip-ansi@^7.0.1, strip-ansi@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" @@ -21942,7 +21957,7 @@ supports-color@^7.0.0, supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@^8.0.0, supports-color@^8.1.0, supports-color@^8.1.1: +supports-color@^8.0.0, supports-color@^8.1.0, supports-color@^8.1.1, supports-color@~8.1.1: version "8.1.1" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== @@ -22844,6 +22859,11 @@ typescript@5.3.3: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== +typescript@5.4.2, typescript@5.5.2: + version "5.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507" + integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew== + typescript@~5.4.2: version "5.4.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" @@ -23299,10 +23319,10 @@ upper-case@^1.0.3, upper-case@^1.1.0, upper-case@^1.1.1, upper-case@^1.1.3: resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" integrity sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg= -uri-js@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" - integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== +uri-js@^4.2.2, uri-js@^4.4.1: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== dependencies: punycode "^2.1.0" @@ -24073,7 +24093,7 @@ workspace-tools@^0.27.0: js-yaml "^4.1.0" micromatch "^4.0.0" -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -24108,15 +24128,6 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" From 2c4abfd1fc3e87e4c353ac491d021065d669d843 Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 14:13:06 +0100 Subject: [PATCH 02/11] chore: update generated api files chore(utilities): update api.md chore(react-utilities): update api.md chore(style-utilities): update api.md --- .../library/etc/react-charts-preview.api.md | 2 - .../library/etc/react-accordion.api.md | 4 +- .../library/etc/react-avatar.api.md | 2 - .../library/etc/react-badge.api.md | 2 - .../library/etc/react-breadcrumb.api.md | 2 - .../library/etc/react-button.api.md | 2 - .../library/etc/react-calendar-compat.api.md | 2 - .../library/etc/react-carousel.api.md | 2 - .../library/etc/react-checkbox.api.md | 2 - .../etc/react-color-picker-preview.api.md | 9 +- .../library/etc/react-combobox.api.md | 2 - .../etc/react-datepicker-compat.api.md | 2 - .../library/etc/react-dialog.api.md | 2 - .../library/etc/react-drawer.api.md | 2 - .../library/etc/react-field.api.md | 18 +- .../library/etc/react-infolabel.api.md | 10 +- .../library/etc/react-input.api.md | 2 - .../library/etc/react-list-preview.api.md | 2 - .../react-menu/library/etc/react-menu.api.md | 10 +- .../library/etc/react-message-bar.api.md | 2 - .../library/etc/react-migration-v0-v9.api.md | 25 ++- .../library/etc/react-migration-v8-v9.api.md | 2 - .../react-motion-components-preview.api.md | 15 +- .../library/etc/react-nav-preview.api.md | 2 - .../library/etc/react-overflow.api.md | 4 +- .../library/etc/react-persona.api.md | 31 ++-- .../library/etc/react-progress.api.md | 20 +-- .../library/etc/react-provider.api.md | 162 +----------------- .../library/etc/react-radio.api.md | 2 - .../library/etc/react-rating.api.md | 2 - .../library/etc/react-search.api.md | 2 - .../library/etc/react-select.api.md | 16 +- .../library/etc/react-slider.api.md | 2 - .../library/etc/react-spinbutton.api.md | 2 - .../etc/react-storybook-addon.api.md | 2 +- .../library/etc/react-swatch-picker.api.md | 2 - .../library/etc/react-switch.api.md | 2 - .../library/etc/react-table.api.md | 2 - .../react-tabs/library/etc/react-tabs.api.md | 2 +- .../react-tabster/etc/react-tabster.api.md | 6 +- .../library/etc/react-tag-picker.api.md | 2 - .../react-tags/library/etc/react-tags.api.md | 2 - .../library/etc/react-teaching-popover.api.md | 2 - .../library/etc/react-textarea.api.md | 2 - .../library/etc/react-toast.api.md | 2 - .../library/etc/react-toolbar.api.md | 2 - .../library/etc/react-tooltip.api.md | 2 +- .../react-tree/library/etc/react-tree.api.md | 2 - .../etc/react-utilities.api.md | 10 +- .../library/etc/react-virtualizer.api.md | 11 +- packages/react/etc/react.api.md | 8 +- .../etc/style-utilities.api.md | 2 +- packages/utilities/etc/utilities.api.md | 6 +- 53 files changed, 104 insertions(+), 333 deletions(-) diff --git a/packages/charts/react-charts-preview/library/etc/react-charts-preview.api.md b/packages/charts/react-charts-preview/library/etc/react-charts-preview.api.md index d4db2bfe732f1..64d7630d4f09a 100644 --- a/packages/charts/react-charts-preview/library/etc/react-charts-preview.api.md +++ b/packages/charts/react-charts-preview/library/etc/react-charts-preview.api.md @@ -4,8 +4,6 @@ ```ts -/// - import * as React_2 from 'react'; import { SVGProps } from 'react'; import { TimeLocaleDefinition } from 'd3-time-format'; diff --git a/packages/react-components/react-accordion/library/etc/react-accordion.api.md b/packages/react-components/react-accordion/library/etc/react-accordion.api.md index af9164de7a81a..62e6daa9c68dd 100644 --- a/packages/react-components/react-accordion/library/etc/react-accordion.api.md +++ b/packages/react-components/react-accordion/library/etc/react-accordion.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ARIAButtonSlotProps } from '@fluentui/react-aria'; import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; @@ -196,7 +194,7 @@ export const renderAccordionPanel_unstable: (state: AccordionPanelState) => JSX. export const useAccordion_unstable: (props: AccordionProps, ref: React_2.Ref) => AccordionState; // @public (undocumented) -export const useAccordionContext_unstable: (selector: ContextSelector, T>) => T; +export const useAccordionContext_unstable: (selector: ContextSelector) => T; // @public (undocumented) export function useAccordionContextValues_unstable(state: AccordionState): AccordionContextValues; diff --git a/packages/react-components/react-avatar/library/etc/react-avatar.api.md b/packages/react-components/react-avatar/library/etc/react-avatar.api.md index 44f5da7d971dc..0a89ba809bef2 100644 --- a/packages/react-components/react-avatar/library/etc/react-avatar.api.md +++ b/packages/react-components/react-avatar/library/etc/react-avatar.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import { ContextSelector } from '@fluentui/react-context-selector'; diff --git a/packages/react-components/react-badge/library/etc/react-badge.api.md b/packages/react-components/react-badge/library/etc/react-badge.api.md index d0a5c4e53382a..66de498a592a0 100644 --- a/packages/react-components/react-badge/library/etc/react-badge.api.md +++ b/packages/react-components/react-badge/library/etc/react-badge.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-breadcrumb/library/etc/react-breadcrumb.api.md b/packages/react-components/react-breadcrumb/library/etc/react-breadcrumb.api.md index 305bb41522a65..4ba7bde158b5f 100644 --- a/packages/react-components/react-breadcrumb/library/etc/react-breadcrumb.api.md +++ b/packages/react-components/react-breadcrumb/library/etc/react-breadcrumb.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ButtonProps } from '@fluentui/react-button'; import { ButtonSlots } from '@fluentui/react-button'; import { ButtonState } from '@fluentui/react-button'; diff --git a/packages/react-components/react-button/library/etc/react-button.api.md b/packages/react-components/react-button/library/etc/react-button.api.md index 2a565c1a7b206..6f589c4714fc9 100644 --- a/packages/react-components/react-button/library/etc/react-button.api.md +++ b/packages/react-components/react-button/library/etc/react-button.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ARIAButtonSlotProps } from '@fluentui/react-aria'; import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-calendar-compat/library/etc/react-calendar-compat.api.md b/packages/react-components/react-calendar-compat/library/etc/react-calendar-compat.api.md index 957b60933d7c0..6ea52db4080f6 100644 --- a/packages/react-components/react-calendar-compat/library/etc/react-calendar-compat.api.md +++ b/packages/react-components/react-calendar-compat/library/etc/react-calendar-compat.api.md @@ -4,8 +4,6 @@ ```ts -/// - import * as React_2 from 'react'; import type { SlotClassNames } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-carousel/library/etc/react-carousel.api.md b/packages/react-components/react-carousel/library/etc/react-carousel.api.md index 5ca840719cc5b..6170387e5ce13 100644 --- a/packages/react-components/react-carousel/library/etc/react-carousel.api.md +++ b/packages/react-components/react-carousel/library/etc/react-carousel.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ARIAButtonElement } from '@fluentui/react-aria'; import { ARIAButtonSlotProps } from '@fluentui/react-aria'; import { ButtonProps } from '@fluentui/react-button'; diff --git a/packages/react-components/react-checkbox/library/etc/react-checkbox.api.md b/packages/react-components/react-checkbox/library/etc/react-checkbox.api.md index 494f99eb574c3..d666437d6cc03 100644 --- a/packages/react-components/react-checkbox/library/etc/react-checkbox.api.md +++ b/packages/react-components/react-checkbox/library/etc/react-checkbox.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ComponentProps } from '@fluentui/react-utilities'; import { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-color-picker-preview/library/etc/react-color-picker-preview.api.md b/packages/react-components/react-color-picker-preview/library/etc/react-color-picker-preview.api.md index 5c78ccfa5aa48..0ff850de65940 100644 --- a/packages/react-components/react-color-picker-preview/library/etc/react-color-picker-preview.api.md +++ b/packages/react-components/react-color-picker-preview/library/etc/react-color-picker-preview.api.md @@ -35,7 +35,7 @@ export const ColorArea: ForwardRefComponent; export const colorAreaClassNames: SlotClassNames; // @public -export type ColorAreaProps = Omit>, 'color' | 'onChange'> & { +export type ColorAreaProps = Omit>, 'color' | 'onChange'> & Pick & { color?: HsvColor; defaultColor?: HsvColor; onChange?: EventHandler; @@ -50,7 +50,7 @@ export type ColorAreaSlots = { }; // @public -export type ColorAreaState = ComponentState> & Pick; +export type ColorAreaState = ComponentState> & Pick; // @public export const ColorPicker: ForwardRefComponent; @@ -62,6 +62,7 @@ export const colorPickerClassNames: SlotClassNames; export type ColorPickerProps = Omit>, 'color'> & { color: HsvColor; onColorChange?: EventHandler; + shape?: 'rounded' | 'square'; }; // @public (undocumented) @@ -79,7 +80,7 @@ export const ColorSlider: ForwardRefComponent; export const colorSliderClassNames: SlotClassNames; // @public -export type ColorSliderProps = Omit, 'input'>, 'defaultValue' | 'onChange' | 'value' | 'color'> & { +export type ColorSliderProps = Omit, 'input'>, 'defaultValue' | 'onChange' | 'value' | 'color'> & Pick & { channel?: string; onChange?: EventHandler; vertical?: boolean; @@ -96,7 +97,7 @@ export type ColorSliderSlots = { }; // @public -export type ColorSliderState = ComponentState & Pick; +export type ColorSliderState = ComponentState & Pick; // @public export const renderAlphaSlider_unstable: (state: AlphaSliderState) => JSX.Element; diff --git a/packages/react-components/react-combobox/library/etc/react-combobox.api.md b/packages/react-components/react-combobox/library/etc/react-combobox.api.md index 0af54ff732ec9..06188ef82db0e 100644 --- a/packages/react-components/react-combobox/library/etc/react-combobox.api.md +++ b/packages/react-components/react-combobox/library/etc/react-combobox.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ActiveDescendantChangeEvent } from '@fluentui/react-aria'; import type { ActiveDescendantContextValue } from '@fluentui/react-aria'; import { ActiveDescendantImperativeRef } from '@fluentui/react-aria'; diff --git a/packages/react-components/react-datepicker-compat/library/etc/react-datepicker-compat.api.md b/packages/react-components/react-datepicker-compat/library/etc/react-datepicker-compat.api.md index 495068c61bae0..8fe90c46d9b2e 100644 --- a/packages/react-components/react-datepicker-compat/library/etc/react-datepicker-compat.api.md +++ b/packages/react-components/react-datepicker-compat/library/etc/react-datepicker-compat.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { CalendarProps } from '@fluentui/react-calendar-compat'; import { CalendarStrings } from '@fluentui/react-calendar-compat'; import type { ComponentProps } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-dialog/library/etc/react-dialog.api.md b/packages/react-components/react-dialog/library/etc/react-dialog.api.md index 175f29285e80b..5814f2654681d 100644 --- a/packages/react-components/react-dialog/library/etc/react-dialog.api.md +++ b/packages/react-components/react-dialog/library/etc/react-dialog.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ARIAButtonResultProps } from '@fluentui/react-aria'; import { ARIAButtonType } from '@fluentui/react-aria'; import type { ComponentProps } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-drawer/library/etc/react-drawer.api.md b/packages/react-components/react-drawer/library/etc/react-drawer.api.md index b2a58769729cf..ec1339a5bedcf 100644 --- a/packages/react-components/react-drawer/library/etc/react-drawer.api.md +++ b/packages/react-components/react-drawer/library/etc/react-drawer.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { DialogProps } from '@fluentui/react-dialog'; diff --git a/packages/react-components/react-field/library/etc/react-field.api.md b/packages/react-components/react-field/library/etc/react-field.api.md index 5332af921d18b..27e49d7617ca9 100644 --- a/packages/react-components/react-field/library/etc/react-field.api.md +++ b/packages/react-components/react-field/library/etc/react-field.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; @@ -22,10 +20,10 @@ export const fieldClassNames: SlotClassNames; // @public (undocumented) export const FieldContextProvider: React_2.Provider & { - labelFor?: string | undefined; - labelId?: string | undefined; - validationMessageId?: string | undefined; - hintId?: string | undefined; + labelFor?: string; + labelId?: string; + validationMessageId?: string; + hintId?: string; }> | undefined>; // @public (undocumented) @@ -82,10 +80,10 @@ export const useField_unstable: (props: FieldProps, ref: React_2.Ref Readonly & { - labelFor?: string | undefined; - labelId?: string | undefined; - validationMessageId?: string | undefined; - hintId?: string | undefined; + labelFor?: string; + labelId?: string; + validationMessageId?: string; + hintId?: string; }> | undefined; // @public diff --git a/packages/react-components/react-infolabel/library/etc/react-infolabel.api.md b/packages/react-components/react-infolabel/library/etc/react-infolabel.api.md index a4f9dc64ffcd5..6314dea9fe5a8 100644 --- a/packages/react-components/react-infolabel/library/etc/react-infolabel.api.md +++ b/packages/react-components/react-infolabel/library/etc/react-infolabel.api.md @@ -3,7 +3,6 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -/// import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; @@ -23,14 +22,14 @@ export const infoLabelClassNames: SlotClassNames; // @public export type InfoLabelProps = ComponentProps, 'label'> & { - info?: InfoButtonProps['info']; + info?: InfoButtonProps['info']; }; // @public (undocumented) export type InfoLabelSlots = { - root: NonNullable>; - label: NonNullable>; - infoButton: Slot; + root: NonNullable>; + label: NonNullable>; + infoButton: Slot; }; // @public @@ -46,4 +45,5 @@ export const useInfoLabel_unstable: (props: InfoLabelProps, ref: React_2.Ref InfoLabelState; // (No @packageDocumentation comment for this package) + ``` diff --git a/packages/react-components/react-input/library/etc/react-input.api.md b/packages/react-components/react-input/library/etc/react-input.api.md index f45330387f14e..e041af374e7d9 100644 --- a/packages/react-components/react-input/library/etc/react-input.api.md +++ b/packages/react-components/react-input/library/etc/react-input.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-list-preview/library/etc/react-list-preview.api.md b/packages/react-components/react-list-preview/library/etc/react-list-preview.api.md index 773fd117ad1c4..2389d1047fc6c 100644 --- a/packages/react-components/react-list-preview/library/etc/react-list-preview.api.md +++ b/packages/react-components/react-list-preview/library/etc/react-list-preview.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { Checkbox } from '@fluentui/react-checkbox'; import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-menu/library/etc/react-menu.api.md b/packages/react-components/react-menu/library/etc/react-menu.api.md index 10ce069c886e8..4284f47b903f4 100644 --- a/packages/react-components/react-menu/library/etc/react-menu.api.md +++ b/packages/react-components/react-menu/library/etc/react-menu.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ARIAButtonElement } from '@fluentui/react-aria'; import { ARIAButtonResultProps } from '@fluentui/react-aria'; import { ARIAButtonType } from '@fluentui/react-aria'; @@ -457,7 +455,7 @@ export type SelectableHandler = (e: React_2.MouseEvent | React_2.KeyboardEvent, export type UninitializedMenuListState = Omit & Partial>; // @public -export const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick) => void; +export const useCheckmarkStyles_unstable: (state: MenuItemSelectableState & Pick) => void; // @public export const useMenu_unstable: (props: MenuProps) => MenuState; @@ -493,10 +491,10 @@ export const useMenuGroupHeaderStyles_unstable: (state: MenuGroupHeaderState) => export const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupState; // @public -export const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref>) => MenuItemState; +export const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref>) => MenuItemState; // @public -export const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref>) => MenuItemCheckboxState; +export const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref>) => MenuItemCheckboxState; // @public (undocumented) export const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => MenuItemCheckboxState; @@ -508,7 +506,7 @@ export const useMenuItemLink_unstable: (props: MenuItemLinkProps, ref: React_2.R export const useMenuItemLinkStyles_unstable: (state: MenuItemLinkState) => MenuItemLinkState; // @public -export const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref>) => MenuItemRadioState; +export const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref>) => MenuItemRadioState; // @public (undocumented) export const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void; diff --git a/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md b/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md index f542397433e67..367a046f4b63e 100644 --- a/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md +++ b/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ButtonContextValue } from '@fluentui/react-button'; import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-migration-v0-v9/library/etc/react-migration-v0-v9.api.md b/packages/react-components/react-migration-v0-v9/library/etc/react-migration-v0-v9.api.md index 5414b326c1d7a..1e64f4d8bd3a4 100644 --- a/packages/react-components/react-migration-v0-v9/library/etc/react-migration-v0-v9.api.md +++ b/packages/react-components/react-migration-v0-v9/library/etc/react-migration-v0-v9.api.md @@ -4,15 +4,12 @@ ```ts -/// - import { ButtonProps } from '@fluentui/react-components'; import { ComponentProps } from '@fluentui/react-components'; import type { ComponentProps as ComponentProps_2 } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; import { GriffelStyle } from '@fluentui/react-components'; -import { ObjectOf } from '@fluentui/react-northstar'; import type { ObjectShorthandValue } from '@fluentui/react-northstar'; import * as React_2 from 'react'; import { SelectionHookParams } from '@fluentui/react-utilities'; @@ -104,8 +101,8 @@ export const flexClassName = "fui-Flex"; // @public (undocumented) export const flexItem: { - align: (value: 'auto' | 'start' | 'end' | 'center' | 'baseline' | 'stretch') => GriffelStyle; - size: (value: 'half' | 'quarter' | 'small' | 'medium' | 'large') => GriffelStyle; + align: (value: "auto" | "start" | "end" | "center" | "baseline" | "stretch") => GriffelStyle; + size: (value: "half" | "quarter" | "small" | "medium" | "large") => GriffelStyle; grow: (flexGrow: boolean | number) => GriffelStyle | undefined; shrink: (flexShrink: boolean | number) => GriffelStyle | undefined; pushRow: () => GriffelStyle; @@ -114,18 +111,16 @@ export const flexItem: { // @public (undocumented) export const FormFieldShim: React_2.ForwardRefExoticComponent<{ - errorMessage?: WithContent | undefined; - required?: boolean | undefined; - control?: ({ + errorMessage?: WithContent; + required?: boolean; + control?: ObjectShorthandValue<{ content?: React_2.ReactNode; - } & ObjectOf & { - children?: unknown; - } & { - error?: "true" | "false" | undefined; - }) | undefined; - label?: WithContent | undefined; + }> & { + error?: "true" | "false"; + }; + label?: WithContent; } & { - children?: React_2.ReactNode; + children?: React_2.ReactNode | undefined; } & React_2.RefAttributes>; // @public (undocumented) diff --git a/packages/react-components/react-migration-v8-v9/library/etc/react-migration-v8-v9.api.md b/packages/react-components/react-migration-v8-v9/library/etc/react-migration-v8-v9.api.md index 017cb6c9a017a..89c7684414d86 100644 --- a/packages/react-components/react-migration-v8-v9/library/etc/react-migration-v8-v9.api.md +++ b/packages/react-components/react-migration-v8-v9/library/etc/react-migration-v8-v9.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { BrandVariants } from '@fluentui/react-components'; import type { ButtonProps } from '@fluentui/react-components'; import type { IBaseButtonProps } from '@fluentui/react'; diff --git a/packages/react-components/react-motion-components-preview/library/etc/react-motion-components-preview.api.md b/packages/react-components/react-motion-components-preview/library/etc/react-motion-components-preview.api.md index d9efd381278b6..fba94f92528fb 100644 --- a/packages/react-components/react-motion-components-preview/library/etc/react-motion-components-preview.api.md +++ b/packages/react-components/react-motion-components-preview/library/etc/react-motion-components-preview.api.md @@ -36,6 +36,9 @@ export const createCollapsePresence: PresenceMotionFnCreator; +// @public +export const createScalePresence: PresenceMotionFnCreator; + // @public export const Fade: PresenceComponent< {}>; @@ -46,19 +49,13 @@ export const FadeRelaxed: PresenceComponent< {}>; export const FadeSnappy: PresenceComponent< {}>; // @public -export const Scale: PresenceComponent< { -animateOpacity?: boolean | undefined; -}>; +export const Scale: PresenceComponent; // @public (undocumented) -export const ScaleRelaxed: PresenceComponent< { -animateOpacity?: boolean | undefined; -}>; +export const ScaleRelaxed: PresenceComponent; // @public (undocumented) -export const ScaleSnappy: PresenceComponent< { -animateOpacity?: boolean | undefined; -}>; +export const ScaleSnappy: PresenceComponent; // (No @packageDocumentation comment for this package) diff --git a/packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md b/packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md index 183c5222ea603..6f252f241e8f8 100644 --- a/packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md +++ b/packages/react-components/react-nav-preview/library/etc/react-nav-preview.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ARIAButtonSlotProps } from '@fluentui/react-aria'; import { ButtonProps } from '@fluentui/react-button'; import { ButtonSlots } from '@fluentui/react-button'; diff --git a/packages/react-components/react-overflow/library/etc/react-overflow.api.md b/packages/react-components/react-overflow/library/etc/react-overflow.api.md index 3ac97e08f5426..fb10f725e22b1 100644 --- a/packages/react-components/react-overflow/library/etc/react-overflow.api.md +++ b/packages/react-components/react-overflow/library/etc/react-overflow.api.md @@ -31,7 +31,7 @@ export interface OnOverflowChangeData extends OverflowState { // @public export const Overflow: React_2.ForwardRefExoticComponent> & { children: React_2.ReactElement; - onOverflowChange?: ((ev: null, data: OverflowState) => void) | undefined; + onOverflowChange?: (ev: null, data: OverflowState) => void; } & React_2.RefAttributes>; // @public @@ -61,7 +61,7 @@ export function useIsOverflowGroupVisible(id: string): OverflowGroupState; export function useIsOverflowItemVisible(id: string): boolean; // @internal (undocumented) -export const useOverflowContainer: (update: OnUpdateOverflow, options: Omit) => UseOverflowContainerReturn; +export const useOverflowContainer: (update: OnUpdateOverflow, options: Omit) => UseOverflowContainerReturn; // @internal (undocumented) export interface UseOverflowContainerReturn extends Pick { diff --git a/packages/react-components/react-persona/library/etc/react-persona.api.md b/packages/react-components/react-persona/library/etc/react-persona.api.md index 4852acd07038b..78db953a4b654 100644 --- a/packages/react-components/react-persona/library/etc/react-persona.api.md +++ b/packages/react-components/react-persona/library/etc/react-persona.api.md @@ -3,7 +3,6 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -/// import { Avatar } from '@fluentui/react-avatar'; import type { ComponentProps } from '@fluentui/react-utilities'; @@ -22,29 +21,28 @@ export const personaClassNames: SlotClassNames; // @public export type PersonaProps = ComponentProps & { - name?: string; - presenceOnly?: boolean; - size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large' | 'huge'; - textPosition?: 'after' | 'before' | 'below'; - textAlignment?: 'center' | 'start'; + name?: string; + presenceOnly?: boolean; + size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large' | 'huge'; + textPosition?: 'after' | 'before' | 'below'; + textAlignment?: 'center' | 'start'; }; // @public (undocumented) export type PersonaSlots = { - root: NonNullable>; - avatar?: Slot; - presence?: Slot; - primaryText?: Slot<'span'>; - secondaryText?: Slot<'span'>; - tertiaryText?: Slot<'span'>; - quaternaryText?: Slot<'span'>; + root: NonNullable>; + avatar?: Slot; + presence?: Slot; + primaryText?: Slot<'span'>; + secondaryText?: Slot<'span'>; + tertiaryText?: Slot<'span'>; + quaternaryText?: Slot<'span'>; }; // @public -export type PersonaState = ComponentState & - Required> & { +export type PersonaState = ComponentState & Required> & { numTextLines: number; - }; +}; // @public export const renderPersona_unstable: (state: PersonaState) => JSX.Element; @@ -56,4 +54,5 @@ export const usePersona_unstable: (props: PersonaProps, ref: React_2.Ref PersonaState; // (No @packageDocumentation comment for this package) + ``` diff --git a/packages/react-components/react-progress/library/etc/react-progress.api.md b/packages/react-components/react-progress/library/etc/react-progress.api.md index 678f5e2674b9e..4a71e8431a28e 100644 --- a/packages/react-components/react-progress/library/etc/react-progress.api.md +++ b/packages/react-components/react-progress/library/etc/react-progress.api.md @@ -3,7 +3,6 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -/// import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; @@ -20,23 +19,21 @@ export const progressBarClassNames: SlotClassNames; // @public export type ProgressBarProps = Omit, 'size'> & { - shape?: 'rounded' | 'square'; - value?: number; - max?: number; - thickness?: 'medium' | 'large'; - color?: 'brand' | 'success' | 'warning' | 'error'; + shape?: 'rounded' | 'square'; + value?: number; + max?: number; + thickness?: 'medium' | 'large'; + color?: 'brand' | 'success' | 'warning' | 'error'; }; // @public (undocumented) export type ProgressBarSlots = { - root: NonNullable>; - bar?: NonNullable>; + root: NonNullable>; + bar?: NonNullable>; }; // @public -export type ProgressBarState = ComponentState> & - Required> & - Pick; +export type ProgressBarState = ComponentState> & Required> & Pick; // @public export const renderProgressBar_unstable: (state: ProgressBarState) => JSX.Element; @@ -48,4 +45,5 @@ export const useProgressBar_unstable: (props: ProgressBarProps, ref: React_2.Ref export const useProgressBarStyles_unstable: (state: ProgressBarState) => ProgressBarState; // (No @packageDocumentation comment for this package) + ``` diff --git a/packages/react-components/react-provider/library/etc/react-provider.api.md b/packages/react-components/react-provider/library/etc/react-provider.api.md index e7e94b84cad4f..a0f8c4219df71 100644 --- a/packages/react-components/react-provider/library/etc/react-provider.api.md +++ b/packages/react-components/react-provider/library/etc/react-provider.api.md @@ -10,11 +10,11 @@ import type { CustomStyleHooksContextValue_unstable } from '@fluentui/react-shar import type { IconDirectionContextValue } from '@fluentui/react-icons/lib/providers'; import { OverridesContextValue_unstable } from '@fluentui/react-shared-contexts'; import type { PartialTheme } from '@fluentui/react-theme'; +import { PartialTheme as PartialTheme_2 } from '@fluentui/tokens'; import type { ProviderContextValue_unstable } from '@fluentui/react-shared-contexts'; import * as React_2 from 'react'; import type { Slot } from '@fluentui/react-utilities'; import { SlotClassNames } from '@fluentui/react-utilities'; -import { Theme } from '@fluentui/tokens'; import type { ThemeClassNameContextValue_unstable } from '@fluentui/react-shared-contexts'; import type { ThemeContextValue_unstable } from '@fluentui/react-shared-contexts'; import type { TooltipVisibilityContextValue_unstable } from '@fluentui/react-shared-contexts'; @@ -24,158 +24,12 @@ export function createCSSRuleFromTheme(selector: string, theme: PartialTheme | u // @public (undocumented) export const FluentProvider: React_2.ForwardRefExoticComponent, "dir"> & { - applyStylesToPortals?: boolean | undefined; - customStyleHooks_unstable?: Partial<{ - useAccordionHeaderStyles_unstable: (state: unknown) => void; - useAccordionItemStyles_unstable: (state: unknown) => void; - useAccordionPanelStyles_unstable: (state: unknown) => void; - useAccordionStyles_unstable: (state: unknown) => void; - useAvatarStyles_unstable: (state: unknown) => void; - useAvatarGroupStyles_unstable: (state: unknown) => void; - useAvatarGroupItemStyles_unstable: (state: unknown) => void; - useAvatarGroupPopoverStyles_unstable: (state: unknown) => void; - useBadgeStyles_unstable: (state: unknown) => void; - useCounterBadgeStyles_unstable: (state: unknown) => void; - useCardHeaderStyles_unstable: (state: unknown) => void; - useCardStyles_unstable: (state: unknown) => void; - useCardFooterStyles_unstable: (state: unknown) => void; - useCardPreviewStyles_unstable: (state: unknown) => void; - usePresenceBadgeStyles_unstable: (state: unknown) => void; - useButtonStyles_unstable: (state: unknown) => void; - useCompoundButtonStyles_unstable: (state: unknown) => void; - useMenuButtonStyles_unstable: (state: unknown) => void; - useSplitButtonStyles_unstable: (state: unknown) => void; - useToggleButtonStyles_unstable: (state: unknown) => void; - useCheckboxStyles_unstable: (state: unknown) => void; - useComboboxStyles_unstable: (state: unknown) => void; - useDropdownStyles_unstable: (state: unknown) => void; - useListboxStyles_unstable: (state: unknown) => void; - useListStyles_unstable: (state: unknown) => void; - useListItemStyles_unstable: (state: unknown) => void; - useListItemButtonStyles_unstable: (state: unknown) => void; - useOptionStyles_unstable: (state: unknown) => void; - useOptionGroupStyles_unstable: (state: unknown) => void; - useDividerStyles_unstable: (state: unknown) => void; - useInputStyles_unstable: (state: unknown) => void; - useImageStyles_unstable: (state: unknown) => void; - useLabelStyles_unstable: (state: unknown) => void; - useLinkStyles_unstable: (state: unknown) => void; - useMenuDividerStyles_unstable: (state: unknown) => void; - useMenuGroupHeaderStyles_unstable: (state: unknown) => void; - useMenuGroupStyles_unstable: (state: unknown) => void; - useMenuItemCheckboxStyles_unstable: (state: unknown) => void; - useMenuItemSwitchStyles_unstable: (state: unknown) => void; - useMenuItemRadioStyles_unstable: (state: unknown) => void; - useMenuItemStyles_unstable: (state: unknown) => void; - useMenuItemLinkStyles_unstable: (state: unknown) => void; - useMenuListStyles_unstable: (state: unknown) => void; - useMenuPopoverStyles_unstable: (state: unknown) => void; - useMenuSplitGroupStyles_unstable: (state: unknown) => void; - usePersonaStyles_unstable: (state: unknown) => void; - usePopoverSurfaceStyles_unstable: (state: unknown) => void; - useRadioGroupStyles_unstable: (state: unknown) => void; - useRadioStyles_unstable: (state: unknown) => void; - useSelectStyles_unstable: (state: unknown) => void; - useSliderStyles_unstable: (state: unknown) => void; - useSpinButtonStyles_unstable: (state: unknown) => void; - useSpinnerStyles_unstable: (state: unknown) => void; - useSwitchStyles_unstable: (state: unknown) => void; - useTabStyles_unstable: (state: unknown) => void; - useTabListStyles_unstable: (state: unknown) => void; - useTextStyles_unstable: (state: unknown) => void; - useTextareaStyles_unstable: (state: unknown) => void; - useTooltipStyles_unstable: (state: unknown) => void; - useDialogTitleStyles_unstable: (state: unknown) => void; - useDialogBodyStyles_unstable: (state: unknown) => void; - useDialogActionsStyles_unstable: (state: unknown) => void; - useDialogSurfaceStyles_unstable: (state: unknown) => void; - useDialogContentStyles_unstable: (state: unknown) => void; - useProgressBarStyles_unstable: (state: unknown) => void; - useToolbarButtonStyles_unstable: (state: unknown) => void; - useToolbarRadioButtonStyles_unstable: (state: unknown) => void; - useToolbarGroupStyles_unstable: (state: unknown) => void; - useToolbarToggleButtonStyles_unstable: (state: unknown) => void; - useToolbarDividerStyles_unstable: (state: unknown) => void; - useToolbarStyles_unstable: (state: unknown) => void; - useTableCellStyles_unstable: (state: unknown) => void; - useTableRowStyles_unstable: (state: unknown) => void; - useTableBodyStyles_unstable: (state: unknown) => void; - useTableStyles_unstable: (state: unknown) => void; - useTableHeaderStyles_unstable: (state: unknown) => void; - useTableHeaderCellStyles_unstable: (state: unknown) => void; - useTableResizeHandleStyles_unstable: (state: unknown) => void; - useTableSelectionCellStyles_unstable: (state: unknown) => void; - useTableCellActionsStyles_unstable: (state: unknown) => void; - useTableCellLayoutStyles_unstable: (state: unknown) => void; - useDataGridCellStyles_unstable: (state: unknown) => void; - useDataGridRowStyles_unstable: (state: unknown) => void; - useDataGridBodyStyles_unstable: (state: unknown) => void; - useDataGridStyles_unstable: (state: unknown) => void; - useDataGridHeaderStyles_unstable: (state: unknown) => void; - useDataGridHeaderCellStyles_unstable: (state: unknown) => void; - useDataGridSelectionCellStyles_unstable: (state: unknown) => void; - useDrawerStyles_unstable: (state: unknown) => void; - useDrawerInlineStyles_unstable: (state: unknown) => void; - useDrawerOverlayStyles_unstable: (state: unknown) => void; - useInlineDrawerStyles_unstable: (state: unknown) => void; - useOverlayDrawerStyles_unstable: (state: unknown) => void; - useDrawerHeaderStyles_unstable: (state: unknown) => void; - useDrawerHeaderNavigationStyles_unstable: (state: unknown) => void; - useDrawerHeaderTitleStyles_unstable: (state: unknown) => void; - useDrawerBodyStyles_unstable: (state: unknown) => void; - useDrawerFooterStyles_unstable: (state: unknown) => void; - useInteractionTagStyles_unstable: (state: unknown) => void; - useInteractionTagPrimaryStyles_unstable: (state: unknown) => void; - useInteractionTagSecondaryStyles_unstable: (state: unknown) => void; - useTagStyles_unstable: (state: unknown) => void; - useTagGroupStyles_unstable: (state: unknown) => void; - useBreadcrumbStyles_unstable: (state: unknown) => void; - useBreadcrumbButtonStyles_unstable: (state: unknown) => void; - useBreadcrumbItemStyles_unstable: (state: unknown) => void; - useBreadcrumbDividerStyles_unstable: (state: unknown) => void; - useMessageBarStyles_unstable: (state: unknown) => void; - useMessageBarBodyStyles_unstable: (state: unknown) => void; - useMessageBarTitleStyles_unstable: (state: unknown) => void; - useMessageBarActionsStyles_unstable: (state: unknown) => void; - useMessageBarGroupStyles_unstable: (state: unknown) => void; - useToasterStyles_unstable: (state: unknown) => void; - useTeachingPopoverStyles_unstable: (state: unknown) => void; - useTeachingPopoverActionsStyles_unstable: (state: unknown) => void; - useTeachingPopoverBodyStyles_unstable: (state: unknown) => void; - useTeachingPopoverButtonStyles_unstable: (state: unknown) => void; - useTeachingPopoverCarouselStyles_unstable: (state: unknown) => void; - useTeachingPopoverHeaderStyles_unstable: (state: unknown) => void; - useTeachingPopoverPageCountStyles_unstable: (state: unknown) => void; - useTeachingPopoverSurfaceStyles_unstable: (state: unknown) => void; - useTeachingPopoverTitleStyles_unstable: (state: unknown) => void; - useTimePickerCompatStyles_unstable: (state: unknown) => void; - useTagPickerInputStyles_unstable: (state: unknown) => void; - useTagPickerButtonStyles_unstable: (state: unknown) => void; - useTagPickerControlStyles_unstable: (state: unknown) => void; - useTagPickerGroupStyles_unstable: (state: unknown) => void; - useTagPickerListStyles_unstable: (state: unknown) => void; - useTagPickerOptionStyles_unstable: (state: unknown) => void; - useTagPickerOptionGroupStyles_unstable: (state: unknown) => void; - useColorSwatchStyles_unstable: (state: unknown) => void; - useImageSwatchStyles_unstable: (state: unknown) => void; - useEmptySwatchStyles_unstable: (state: unknown) => void; - useSwatchPickerRowStyles_unstable: (state: unknown) => void; - useSwatchPickerStyles_unstable: (state: unknown) => void; - useCarouselViewportStyles_unstable: (state: unknown) => void; - useCarouselSliderStyles_unstable: (state: unknown) => void; - useCarouselStyles_unstable: (state: unknown) => void; - useCarouselAutoplayButtonStyles_unstable: (state: unknown) => void; - useCarouselButtonStyles_unstable: (state: unknown) => void; - useCarouselCardStyles_unstable: (state: unknown) => void; - useCarouselNavStyles_unstable: (state: unknown) => void; - useCarouselNavButtonStyles_unstable: (state: unknown) => void; - useCarouselNavContainerStyles_unstable: (state: unknown) => void; - useCarouselNavImageButtonStyles_unstable: (state: unknown) => void; - }> | undefined; - dir?: "ltr" | "rtl" | undefined; - targetDocument?: Document | undefined; - theme?: Partial | undefined; - overrides_unstable?: OverridesContextValue_unstable | undefined; + applyStylesToPortals?: boolean; + customStyleHooks_unstable?: FluentProviderCustomStyleHooks; + dir?: "ltr" | "rtl"; + targetDocument?: Document; + theme?: PartialTheme_2; + overrides_unstable?: OverridesContextValue_unstable; } & React_2.RefAttributes>; // @public (undocumented) @@ -231,7 +85,7 @@ export function useFluentProviderContextValues_unstable(state: FluentProviderSta export const useFluentProviderStyles_unstable: (state: FluentProviderState) => FluentProviderState; // @internal -export const useFluentProviderThemeStyleTag: (options: Pick & { +export const useFluentProviderThemeStyleTag: (options: Pick & { rendererAttributes: Record; }) => { styleTagId: string; diff --git a/packages/react-components/react-radio/library/etc/react-radio.api.md b/packages/react-components/react-radio/library/etc/react-radio.api.md index 8b295dd3b5afc..e38521803f65f 100644 --- a/packages/react-components/react-radio/library/etc/react-radio.api.md +++ b/packages/react-components/react-radio/library/etc/react-radio.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-rating/library/etc/react-rating.api.md b/packages/react-components/react-rating/library/etc/react-rating.api.md index e8ab0ca0b0674..a10afeb779923 100644 --- a/packages/react-components/react-rating/library/etc/react-rating.api.md +++ b/packages/react-components/react-rating/library/etc/react-rating.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { EventData } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-search/library/etc/react-search.api.md b/packages/react-components/react-search/library/etc/react-search.api.md index 65ec509bee2c3..91f35aa34ffdb 100644 --- a/packages/react-components/react-search/library/etc/react-search.api.md +++ b/packages/react-components/react-search/library/etc/react-search.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-select/library/etc/react-select.api.md b/packages/react-components/react-select/library/etc/react-select.api.md index 386d6f78b978a..7f216458859d6 100644 --- a/packages/react-components/react-select/library/etc/react-select.api.md +++ b/packages/react-components/react-select/library/etc/react-select.api.md @@ -3,7 +3,6 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -/// import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; @@ -23,21 +22,21 @@ export const selectClassNames: SlotClassNames; // @public export type SelectOnChangeData = { - value: string; + value: string; }; // @public (undocumented) export type SelectProps = Omit, 'select'>, 'size' | 'onChange'> & { - appearance?: 'outline' | 'underline' | 'filled-darker' | 'filled-lighter'; - onChange?: (ev: React_2.ChangeEvent, data: SelectOnChangeData) => void; - size?: 'small' | 'medium' | 'large'; + appearance?: 'outline' | 'underline' | 'filled-darker' | 'filled-lighter'; + onChange?: (ev: React_2.ChangeEvent, data: SelectOnChangeData) => void; + size?: 'small' | 'medium' | 'large'; }; // @public (undocumented) export type SelectSlots = { - root: NonNullable>; - select: NonNullable>; - icon: Slot<'span'>; + root: NonNullable>; + select: NonNullable>; + icon: Slot<'span'>; }; // @public (undocumented) @@ -50,4 +49,5 @@ export const useSelect_unstable: (props: SelectProps, ref: React_2.Ref SelectState; // (No @packageDocumentation comment for this package) + ``` diff --git a/packages/react-components/react-slider/library/etc/react-slider.api.md b/packages/react-components/react-slider/library/etc/react-slider.api.md index 0f8a209ecc1d2..2f1a515f1c83a 100644 --- a/packages/react-components/react-slider/library/etc/react-slider.api.md +++ b/packages/react-components/react-slider/library/etc/react-slider.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-spinbutton/library/etc/react-spinbutton.api.md b/packages/react-components/react-spinbutton/library/etc/react-spinbutton.api.md index 4f5b687318f89..6e9d2468cd576 100644 --- a/packages/react-components/react-spinbutton/library/etc/react-spinbutton.api.md +++ b/packages/react-components/react-spinbutton/library/etc/react-spinbutton.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-storybook-addon/etc/react-storybook-addon.api.md b/packages/react-components/react-storybook-addon/etc/react-storybook-addon.api.md index 957d7b6c58177..2f207b8a07827 100644 --- a/packages/react-components/react-storybook-addon/etc/react-storybook-addon.api.md +++ b/packages/react-components/react-storybook-addon/etc/react-storybook-addon.api.md @@ -50,7 +50,7 @@ export function parameters(options?: FluentParameters): { mode: string; reactStorybookAddon?: { disabledDecorators: ["AriaLive" | "FluentProvider" | "ReactStrictMode"]; - } | undefined; + }; }; // @public (undocumented) diff --git a/packages/react-components/react-swatch-picker/library/etc/react-swatch-picker.api.md b/packages/react-components/react-swatch-picker/library/etc/react-swatch-picker.api.md index 67bb133c76f0b..bc554caa158f8 100644 --- a/packages/react-components/react-swatch-picker/library/etc/react-swatch-picker.api.md +++ b/packages/react-components/react-swatch-picker/library/etc/react-swatch-picker.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ContextSelector } from '@fluentui/react-context-selector'; diff --git a/packages/react-components/react-switch/library/etc/react-switch.api.md b/packages/react-components/react-switch/library/etc/react-switch.api.md index 6a8b8a437e0fb..54b79ea94f3a5 100644 --- a/packages/react-components/react-switch/library/etc/react-switch.api.md +++ b/packages/react-components/react-switch/library/etc/react-switch.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-table/library/etc/react-table.api.md b/packages/react-components/react-table/library/etc/react-table.api.md index c2810b6abdb86..c0f4558f9ed75 100644 --- a/packages/react-components/react-table/library/etc/react-table.api.md +++ b/packages/react-components/react-table/library/etc/react-table.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ARIAButtonSlotProps } from '@fluentui/react-aria'; import type { AvatarSize } from '@fluentui/react-avatar'; import type { Checkbox } from '@fluentui/react-checkbox'; diff --git a/packages/react-components/react-tabs/library/etc/react-tabs.api.md b/packages/react-components/react-tabs/library/etc/react-tabs.api.md index ac9c5249cf0af..84cf279a527c9 100644 --- a/packages/react-components/react-tabs/library/etc/react-tabs.api.md +++ b/packages/react-components/react-tabs/library/etc/react-tabs.api.md @@ -124,7 +124,7 @@ export type TabValue = unknown; export const useTab_unstable: (props: TabProps, ref: React_2.Ref) => TabState; // @public -export const useTabButtonStyles_unstable: (state: TabState, slot: TabState['root']) => TabState; +export const useTabButtonStyles_unstable: (state: TabState, slot: TabState["root"]) => TabState; // @public export const useTabContentStyles_unstable: (state: TabState) => TabState; diff --git a/packages/react-components/react-tabster/etc/react-tabster.api.md b/packages/react-components/react-tabster/etc/react-tabster.api.md index 44ee73e1274f5..51289896c846e 100644 --- a/packages/react-components/react-tabster/etc/react-tabster.api.md +++ b/packages/react-components/react-tabster/etc/react-tabster.api.md @@ -1465,11 +1465,11 @@ export function useFocusedElementChange(callback: Types.SubscribableCallback { - findAllFocusable: (container: HTMLElement, acceptCondition?: ((el: HTMLElement) => boolean) | undefined) => HTMLElement[]; + findAllFocusable: (container: HTMLElement, acceptCondition?: (el: HTMLElement) => boolean) => HTMLElement[]; findFirstFocusable: (container: HTMLElement) => HTMLElement | null | undefined; findLastFocusable: (container: HTMLElement) => HTMLElement | null | undefined; - findNextFocusable: (currentElement: HTMLElement, options?: Pick, 'container'>) => HTMLElement | null | undefined; - findPrevFocusable: (currentElement: HTMLElement, options?: Pick, 'container'>) => HTMLElement | null | undefined; + findNextFocusable: (currentElement: HTMLElement, options?: Pick, "container">) => HTMLElement | null | undefined; + findPrevFocusable: (currentElement: HTMLElement, options?: Pick, "container">) => HTMLElement | null | undefined; }; // @public (undocumented) diff --git a/packages/react-components/react-tag-picker/library/etc/react-tag-picker.api.md b/packages/react-components/react-tag-picker/library/etc/react-tag-picker.api.md index ad2eb52a97aab..68d632af8335a 100644 --- a/packages/react-components/react-tag-picker/library/etc/react-tag-picker.api.md +++ b/packages/react-components/react-tag-picker/library/etc/react-tag-picker.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ActiveDescendantContextValue } from '@fluentui/react-aria'; import { ComboboxBaseState } from '@fluentui/react-combobox'; import { ComboboxProps } from '@fluentui/react-combobox'; diff --git a/packages/react-components/react-tags/library/etc/react-tags.api.md b/packages/react-components/react-tags/library/etc/react-tags.api.md index 6644658a93d13..0a66fc9058477 100644 --- a/packages/react-components/react-tags/library/etc/react-tags.api.md +++ b/packages/react-components/react-tags/library/etc/react-tags.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { AvatarShape } from '@fluentui/react-avatar'; import { AvatarSize } from '@fluentui/react-avatar'; import { ComponentProps } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-teaching-popover/library/etc/react-teaching-popover.api.md b/packages/react-components/react-teaching-popover/library/etc/react-teaching-popover.api.md index 4a0e06d7267d2..6ff71b67801a7 100644 --- a/packages/react-components/react-teaching-popover/library/etc/react-teaching-popover.api.md +++ b/packages/react-components/react-teaching-popover/library/etc/react-teaching-popover.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ARIAButtonSlotProps } from '@fluentui/react-aria'; import { Button } from '@fluentui/react-button'; import { ButtonProps } from '@fluentui/react-button'; diff --git a/packages/react-components/react-textarea/library/etc/react-textarea.api.md b/packages/react-components/react-textarea/library/etc/react-textarea.api.md index c8bd544f6d80c..d7f2c878122b0 100644 --- a/packages/react-components/react-textarea/library/etc/react-textarea.api.md +++ b/packages/react-components/react-textarea/library/etc/react-textarea.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; diff --git a/packages/react-components/react-toast/library/etc/react-toast.api.md b/packages/react-components/react-toast/library/etc/react-toast.api.md index d60e0e05c3769..82b48a87ab1b6 100644 --- a/packages/react-components/react-toast/library/etc/react-toast.api.md +++ b/packages/react-components/react-toast/library/etc/react-toast.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ARIAButtonResultProps } from '@fluentui/react-aria'; import { ARIAButtonType } from '@fluentui/react-aria'; import { BackgroundAppearanceContextValue } from '@fluentui/react-shared-contexts'; diff --git a/packages/react-components/react-toolbar/library/etc/react-toolbar.api.md b/packages/react-components/react-toolbar/library/etc/react-toolbar.api.md index 2d5f61d4e95ba..241c114129105 100644 --- a/packages/react-components/react-toolbar/library/etc/react-toolbar.api.md +++ b/packages/react-components/react-toolbar/library/etc/react-toolbar.api.md @@ -4,8 +4,6 @@ ```ts -/// - import { ButtonProps } from '@fluentui/react-button'; import { ButtonSlots } from '@fluentui/react-button'; import { ButtonState } from '@fluentui/react-button'; diff --git a/packages/react-components/react-tooltip/library/etc/react-tooltip.api.md b/packages/react-components/react-tooltip/library/etc/react-tooltip.api.md index ada8f59ee9266..d0d85dc974e42 100644 --- a/packages/react-components/react-tooltip/library/etc/react-tooltip.api.md +++ b/packages/react-components/react-tooltip/library/etc/react-tooltip.api.md @@ -56,7 +56,7 @@ export type TooltipState = ComponentState & Pick; -} & Pick, 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onPointerEnter' | 'onPointerLeave'>; +} & Pick, 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'onBlur' | 'onFocus' | 'onPointerEnter' | 'onPointerLeave' | 'aria-haspopup' | 'aria-expanded'>; // @public export const useTooltip_unstable: (props: TooltipProps) => TooltipState; diff --git a/packages/react-components/react-tree/library/etc/react-tree.api.md b/packages/react-components/react-tree/library/etc/react-tree.api.md index 1fbeac4b6638b..a265bd630221e 100644 --- a/packages/react-components/react-tree/library/etc/react-tree.api.md +++ b/packages/react-components/react-tree/library/etc/react-tree.api.md @@ -4,8 +4,6 @@ ```ts -/// - import type { ArrowDown } from '@fluentui/keyboard-keys'; import type { ArrowLeft } from '@fluentui/keyboard-keys'; import type { ArrowRight } from '@fluentui/keyboard-keys'; diff --git a/packages/react-components/react-utilities/etc/react-utilities.api.md b/packages/react-components/react-utilities/etc/react-utilities.api.md index 7bf62331fcf8b..fbc721279ca08 100644 --- a/packages/react-components/react-utilities/etc/react-utilities.api.md +++ b/packages/react-components/react-utilities/etc/react-utilities.api.md @@ -72,7 +72,7 @@ export function getEventClientCoords(event: TouchOrMouseEvent): { }; // @public -export const getIntrinsicElementProps: = never>(tagName: NonNullable, props: Props & React_2.RefAttributes>, excludedPropNames?: ExcludedPropKeys[] | undefined) => DistributiveOmit>; +export const getIntrinsicElementProps: = never>(tagName: NonNullable, props: Props & React_2.RefAttributes>, excludedPropNames?: ExcludedPropKeys[]) => DistributiveOmit>; // @public @deprecated export function getNativeElementProps>(tagName: string, props: {}, excludedPropNames?: string[]): TAttributes; @@ -84,7 +84,7 @@ export function getParent(child: Node | null, options?: GetParentOptions): Node export const getPartitionedNativeProps: , "style" | "className">, ExcludedPropKeys extends Extract = never>({ primarySlotTagName, props, excludedPropNames, }: { primarySlotTagName: keyof JSX.IntrinsicElements; props: Props; - excludedPropNames?: ExcludedPropKeys[] | undefined; + excludedPropNames?: ExcludedPropKeys[]; }) => { root: { style: React_2.CSSProperties | undefined; @@ -94,7 +94,7 @@ export const getPartitionedNativeProps: string; +export const getRTLSafeKey: (key: string, dir: "ltr" | "rtl") => string; // @public @deprecated export function getSlots(state: ComponentState): { @@ -327,7 +327,7 @@ export type UnknownSlotProps = Pick, 'childr }; // @internal -export function useAnimationFrame(): readonly [(fn: () => void, delay?: number | undefined) => number, () => void]; +export function useAnimationFrame(): readonly [(fn: () => void, delay?: number) => number, () => void]; // @internal export const useControllableState: (options: UseControllableStateOptions) => [State, React_2.Dispatch>]; @@ -386,7 +386,7 @@ export function useScrollbarWidth(options: UseScrollbarWidthOptions): number | u export function useSelection(params: SelectionHookParams): readonly [Set, SelectionMethods]; // @internal -export function useTimeout(): readonly [(fn: () => void, delay?: number | undefined) => number, () => void]; +export function useTimeout(): readonly [(fn: () => void, delay?: number) => number, () => void]; // (No @packageDocumentation comment for this package) diff --git a/packages/react-components/react-virtualizer/library/etc/react-virtualizer.api.md b/packages/react-components/react-virtualizer/library/etc/react-virtualizer.api.md index 6b3c901b351b6..3bcd16bcd6814 100644 --- a/packages/react-components/react-virtualizer/library/etc/react-virtualizer.api.md +++ b/packages/react-components/react-virtualizer/library/etc/react-virtualizer.api.md @@ -6,10 +6,7 @@ import type { ComponentProps } from '@fluentui/react-utilities'; import type { ComponentState } from '@fluentui/react-utilities'; -import type { FC } from 'react'; -import type { MutableRefObject } from 'react'; import * as React_2 from 'react'; -import type { RefObject } from 'react'; import type { Slot } from '@fluentui/react-utilities'; import type { SlotClassNames } from '@fluentui/react-utilities'; @@ -132,7 +129,7 @@ export const useVirtualizerScrollViewStyles_unstable: (state: VirtualizerScrollV export const useVirtualizerStyles_unstable: (state: VirtualizerState) => VirtualizerState; // @public -export const Virtualizer: FC; +export const Virtualizer: React_2.FC; // @public export type VirtualizerChildRenderFunction = (index: number, isScrolling: boolean) => React_2.ReactNode; @@ -152,10 +149,10 @@ export const VirtualizerContextProvider: React_2.Provider; - nodeSizes: RefObject; + progressiveSizes: React_2.RefObject; + nodeSizes: React_2.RefObject; setFlaggedIndex: (index: number | null) => void; - currentIndex: RefObject; + currentIndex: React_2.RefObject; }; // @public (undocumented) diff --git a/packages/react/etc/react.api.md b/packages/react/etc/react.api.md index 94b006c369575..7122ea801fe7f 100644 --- a/packages/react/etc/react.api.md +++ b/packages/react/etc/react.api.md @@ -486,7 +486,7 @@ export class Autofill extends React_2.Component get cursorLocation(): number | null; // (undocumented) static defaultProps: { - enableAutofillOnKeyPress: number[]; + enableAutofillOnKeyPress: KeyCodes[]; }; // (undocumented) focus(): void; @@ -1736,7 +1736,7 @@ export { formProperties } export const getActivityItemClassNames: (styles: IActivityItemStyles, className: string, activityPersonas: Array, isCompact: boolean) => IActivityItemClassNames; // @public (undocumented) -export const getActivityItemStyles: (theme?: ITheme, customStyles?: IActivityItemStyles, animateBeaconSignal?: IActivityItemProps['animateBeaconSignal'], beaconColorOne?: IActivityItemProps['beaconColorOne'], beaconColorTwo?: IActivityItemProps['beaconColorTwo'], isCompact?: IActivityItemProps['isCompact']) => IActivityItemStyles; +export const getActivityItemStyles: (theme?: ITheme, customStyles?: IActivityItemStyles, animateBeaconSignal?: IActivityItemProps["animateBeaconSignal"], beaconColorOne?: IActivityItemProps["beaconColorOne"], beaconColorTwo?: IActivityItemProps["beaconColorTwo"], isCompact?: IActivityItemProps["isCompact"]) => IActivityItemStyles; // @public (undocumented) export function getAllSelectedOptions(options: ISelectableOption[], selectedIndices: number[]): ISelectableOption[]; @@ -1756,7 +1756,7 @@ export function getBoundsFromTargetWindow(target: Element | MouseEvent | Point | // @public (undocumented) export const getCellStyles: (props: { theme: ITheme; - cellStyleProps?: ICellStyleProps | undefined; + cellStyleProps?: ICellStyleProps; }) => IStyle; export { getChildren } @@ -2099,7 +2099,7 @@ export class HoverCardBase extends React_2.Component IRawStyle; +export const getInputFocusStyle: (borderColor: string, borderRadius: string | number, borderType?: "border" | "borderBottom", borderPosition?: number) => IRawStyle; // @public export function getPlaceholderStyles(styles: IStyle): IStyle; diff --git a/packages/utilities/etc/utilities.api.md b/packages/utilities/etc/utilities.api.md index 0195b48587385..7234369ac06af 100644 --- a/packages/utilities/etc/utilities.api.md +++ b/packages/utilities/etc/utilities.api.md @@ -56,7 +56,7 @@ export function arraysEqual(array1: T[], array2: T[]): boolean; // @public export function asAsync(options: IAsAsyncOptions): React_2.ForwardRefExoticComponent | undefined; + asyncPlaceholder?: React_2.ElementType; }> & React_2.RefAttributes>>; // @public @@ -160,7 +160,7 @@ export function createArray(size: number, getItem: (index: number) => T): T[] export function createMemoizer any>(getValue: F): F; // @public -export const createMergedRef: (value?: TValue | undefined) => (...newRefs: (React_2.Ref | undefined)[]) => (newValue: TType | TValue | null) => void; +export const createMergedRef: (value?: TValue) => (...newRefs: (React_2.Ref | undefined)[]) => ((newValue: TType | TValue | null) => void); // Warning: (ae-incompatible-release-tags) The symbol "css" is marked as @public, but its signature references "ICssInput" which is marked as @internal // @@ -1171,7 +1171,7 @@ export function resetIds(counter?: number): void; export function resetMemoizations(): void; // @public -export const safeRequestAnimationFrame: (component: React_2.Component) => (cb: Function) => void; +export const safeRequestAnimationFrame: (component: React_2.Component) => ((cb: Function) => void); // @public export const safeSetTimeout: (component: React_2.Component) => (cb: Function, duration: number) => void; From 41360f037935c5be9df530b1c2a84637b205603a Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 14:13:29 +0100 Subject: [PATCH 03/11] chore(web-components): remove ts suppressions --- packages/web-components/src/utils/element-internals.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/web-components/src/utils/element-internals.ts b/packages/web-components/src/utils/element-internals.ts index a9ccc3e1c8d35..ee28c347fdb50 100644 --- a/packages/web-components/src/utils/element-internals.ts +++ b/packages/web-components/src/utils/element-internals.ts @@ -55,13 +55,10 @@ export function toggleState(elementInternals: ElementInternals, state: string | elementInternals.shadowRoot!.host.toggleAttribute(`state--${state}`, force); return; } - // @ts-expect-error - Baseline 2024 if (force ?? !elementInternals.states.has(state)) { - // @ts-expect-error - Baseline 2024 elementInternals.states.add(state); return; } - // @ts-expect-error - Baseline 2024 elementInternals.states.delete(state); } From d9032db08b25f9e4fc999c8aac0cc4032fd4ae57 Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 14:16:07 +0100 Subject: [PATCH 04/11] chore(scripts): remove redundant ts suppression --- scripts/beachball/src/register.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/beachball/src/register.js b/scripts/beachball/src/register.js index 9c824b0374994..e35f57db546be 100644 --- a/scripts/beachball/src/register.js +++ b/scripts/beachball/src/register.js @@ -5,7 +5,6 @@ exports.register = register; */ function register() { if (process.env.NODE_ENV !== 'test') { - // @ts-expect-error - ts-node/register doesn't provide types so this would error require('@fluentui/scripts-ts-node/src/register'); } } From 8f7d7a99a7b0b2cb72f1c2b1b8cf0d4627ae86f3 Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 14:52:51 +0100 Subject: [PATCH 05/11] chore(react-utilities): remove TS2590 error --- .../src/compose/deprecated/getSlots.ts | 11 ++++++----- .../src/compose/deprecated/getSlotsNext.ts | 7 +++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/react-components/react-utilities/src/compose/deprecated/getSlots.ts b/packages/react-components/react-utilities/src/compose/deprecated/getSlots.ts index 0a3c64a7bd334..4bd980ba89ab3 100644 --- a/packages/react-components/react-utilities/src/compose/deprecated/getSlots.ts +++ b/packages/react-components/react-utilities/src/compose/deprecated/getSlots.ts @@ -95,23 +95,24 @@ function getSlot( const renderFunction = isSlot(props) ? props[SLOT_RENDER_FUNCTION_SYMBOL] : undefined; - const slot = ( + const slot = state.components?.[slotName] === undefined || typeof state.components[slotName] === 'string' ? asProp || state.components?.[slotName] || 'div' - : state.components[slotName] - ) as React.ElementType; + : state.components[slotName]; + + const asserted = slot as React.ElementType; if (renderFunction || typeof children === 'function') { const render = (renderFunction || children) as SlotRenderFunction; return [ React.Fragment, { - children: render(slot, rest as Omit), + children: render(asserted, rest as Omit), } as unknown as R[K], ]; } const shouldOmitAsProp = typeof slot === 'string' && asProp; const slotProps = (shouldOmitAsProp ? omit(props, ['as']) : (props as UnknownSlotProps)) as R[K]; - return [slot, slotProps]; + return [asserted, slotProps]; } diff --git a/packages/react-components/react-utilities/src/compose/deprecated/getSlotsNext.ts b/packages/react-components/react-utilities/src/compose/deprecated/getSlotsNext.ts index 0bd1a54b951cd..340cb8f770f1b 100644 --- a/packages/react-components/react-utilities/src/compose/deprecated/getSlotsNext.ts +++ b/packages/react-components/react-utilities/src/compose/deprecated/getSlotsNext.ts @@ -53,14 +53,13 @@ function getSlotNext( // TS Error: Property 'as' does not exist on type 'UnknownSlotProps | undefined'.ts(2339) const { as: asProp, ...propsWithoutAs } = props as NonUndefined; - const slot = ( + const slot = state.components?.[slotName] === undefined || typeof state.components[slotName] === 'string' ? asProp || state.components?.[slotName] || 'div' - : state.components[slotName] - ) as React.ElementType; + : state.components[slotName]; const shouldOmitAsProp = typeof slot === 'string' && asProp; const slotProps: UnknownSlotProps = shouldOmitAsProp ? propsWithoutAs : props; - return [slot, slotProps as R[K]]; + return [slot as React.ElementType, slotProps as R[K]]; } From fb171bfa7d4e232b5e223f6dba8f5fc8bb5dc47c Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 15:39:03 +0100 Subject: [PATCH 06/11] chore(merge-styles): fix ts type issue --- packages/merge-styles/src/concatStyleSetsWithProps.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/merge-styles/src/concatStyleSetsWithProps.ts b/packages/merge-styles/src/concatStyleSetsWithProps.ts index c7b23233116cf..3da03bd52813e 100644 --- a/packages/merge-styles/src/concatStyleSetsWithProps.ts +++ b/packages/merge-styles/src/concatStyleSetsWithProps.ts @@ -1,6 +1,6 @@ import { concatStyleSets } from './concatStyleSets'; import { IStyleSetBase } from './IStyleSet'; -import { IStyleFunctionOrObject } from './IStyleFunction'; +import { IStyleFunction, IStyleFunctionOrObject } from './IStyleFunction'; import { DeepPartialV2 as DeepPartial } from './DeepPartial'; /** @@ -15,7 +15,11 @@ export function concatStyleSetsWithProps> = []; for (const styles of allStyles) { if (styles) { - result.push(typeof styles === 'function' ? styles(styleProps) : styles); + if (typeof styles === 'function') { + result.push((styles as IStyleFunction)(styleProps)); + } else { + result.push(styles); + } } } if (result.length === 1) { From 5e3a313e8fd831b1812235578f7244aa4a29d90b Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 16:27:59 +0100 Subject: [PATCH 07/11] chore(utilities): fix ts type error after upgrade --- packages/utilities/src/classNamesFunction.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/utilities/src/classNamesFunction.ts b/packages/utilities/src/classNamesFunction.ts index 0367d151de45f..5d141862ca245 100644 --- a/packages/utilities/src/classNamesFunction.ts +++ b/packages/utilities/src/classNamesFunction.ts @@ -1,7 +1,13 @@ import { mergeCssSets, Stylesheet } from '@fluentui/merge-styles'; import { getRTL } from './rtl'; import { getWindow } from './dom'; -import type { IStyleSet, IStyleSetBase, IProcessedStyleSet, IStyleFunctionOrObject } from '@fluentui/merge-styles'; +import type { + IStyleSet, + IStyleSetBase, + IProcessedStyleSet, + IStyleFunctionOrObject, + IStyleFunction, +} from '@fluentui/merge-styles'; import type { StyleFunction } from './styled'; const MAX_CACHE_COUNT = 50; @@ -85,7 +91,9 @@ export function classNamesFunction).__noStyleOverride__ ) { - return styleFunctionOrObject(styleProps) as IProcessedStyleSet; + return (styleFunctionOrObject as IStyleFunction)( + styleProps, + ) as IProcessedStyleSet; } getClassNamesCount++; @@ -126,7 +134,7 @@ export function classNamesFunction)(styleProps) : styleFunctionOrObject) as IStyleSet, ], { From 517bbac39d9bd63b35bda87a4c341ac654f46e81 Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 20 Dec 2024 18:08:05 +0100 Subject: [PATCH 08/11] chore(codemods): fix issues related to ts 5.5 upgrade --- packages/codemods/package.json | 3 ++- .../mods/componentToCompat/componentToCompat.mod.ts | 10 ++++++++-- .../src/modRunner/tests/mocks/MockMods/CodeMod.mock.ts | 5 +++-- syncpack.config.js | 5 +++++ 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/packages/codemods/package.json b/packages/codemods/package.json index 27f6a4cb2f7ab..671668fc6354a 100644 --- a/packages/codemods/package.json +++ b/packages/codemods/package.json @@ -25,7 +25,8 @@ "devDependencies": { "@fluentui/eslint-plugin": "*", "@fluentui/scripts-jest": "*", - "@fluentui/scripts-tasks": "*" + "@fluentui/scripts-tasks": "*", + "typescript": "5.3.3" }, "dependencies": { "tslib": "^2.1.0", diff --git a/packages/codemods/src/codeMods/mods/componentToCompat/componentToCompat.mod.ts b/packages/codemods/src/codeMods/mods/componentToCompat/componentToCompat.mod.ts index 417776016eda5..140a903ca4226 100644 --- a/packages/codemods/src/codeMods/mods/componentToCompat/componentToCompat.mod.ts +++ b/packages/codemods/src/codeMods/mods/componentToCompat/componentToCompat.mod.ts @@ -1,4 +1,10 @@ -import { runComponentToCompat, buildCompatHash, ComponentToCompat, RawCompat, getNamedExports } from './compatHelpers'; +import { + runComponentToCompat, + buildCompatHash, + getNamedExports, + type RawCompat, + type ComponentToCompat as ComponentToCompatType, +} from './compatHelpers'; import { ExportMapping } from './namedExports'; import { CodeMod } from '../../types'; import { SourceFile } from 'ts-morph'; @@ -12,7 +18,7 @@ function getPath(root: string, componentName: string) { return `${root}${componentName}`; } -export function createComponentToCompat(comp: RawCompat): ComponentToCompat { +export function createComponentToCompat(comp: RawCompat): ComponentToCompatType { return { oldPath: getPath(completePath, comp.componentName), newComponentPath: getPath(newPathStart, comp.componentName), diff --git a/packages/codemods/src/modRunner/tests/mocks/MockMods/CodeMod.mock.ts b/packages/codemods/src/modRunner/tests/mocks/MockMods/CodeMod.mock.ts index a7b76fe0eb087..7c02bfab89890 100644 --- a/packages/codemods/src/modRunner/tests/mocks/MockMods/CodeMod.mock.ts +++ b/packages/codemods/src/modRunner/tests/mocks/MockMods/CodeMod.mock.ts @@ -1,6 +1,7 @@ -import { CodeMod, ModResult, NoOp } from '../../../../codeMods/types'; +import { CodeMod as CodeModType, ModResult, NoOp } from '../../../../codeMods/types'; import { Err } from '../../../../helpers/result'; -const CodeMod: CodeMod = { + +const CodeMod: CodeModType = { run: () => { return Err({ logs: [] }); }, diff --git a/syncpack.config.js b/syncpack.config.js index 4618b062fcb92..6a9c401c68581 100644 --- a/syncpack.config.js +++ b/syncpack.config.js @@ -26,6 +26,11 @@ const config = { dependencies: ['@fluentui/**'], isIgnored: true, }, + { + packages: ['@fluentui/codemods'], + dependencies: ['typescript'], + isIgnored: true, + }, { packages: ['@fluentui/fluentui-repo'], dependencies: [ From c97bffc5168ef21a373cd08bd711f2c5ff72068b Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 23 Dec 2024 16:43:04 +0100 Subject: [PATCH 09/11] chore: update change files --- ...ntui-api-docs-207b7892-f6fc-403e-9ab3-2d4df19f05ea.json | 7 +++++++ ...ntui-codemods-bce8ade9-b057-4270-9143-2f6570a6ed36.json | 7 +++++++ ...eslint-plugin-10dcdd84-5a4d-4f4d-aa95-4efbe72fffcb.json | 7 +++++++ ...-merge-styles-eab4b3a2-c52a-4fc6-8e89-1c1f85ab2f43.json | 7 +++++++ ...luentui-react-a1ed221b-62ca-48fd-ae13-fce0e963e394.json | 7 +++++++ ...act-accordion-fa7c3a11-f7e0-46b6-9b5d-04666a99b614.json | 7 +++++++ ...-react-avatar-1d67f4bc-721a-4d45-b1ea-7a0e720372dc.json | 7 +++++++ ...i-react-badge-b88fc8dd-d828-41c2-9dfe-2b4fd85c876a.json | 7 +++++++ ...ct-breadcrumb-1aed7d4d-05fd-40d5-a739-4aa255409d48.json | 7 +++++++ ...-react-button-621cce8a-26b2-4245-acd2-92817a678e93.json | 7 +++++++ ...lendar-compat-4cd52a47-8ec3-476b-872d-6dbf024391a5.json | 7 +++++++ ...eact-carousel-58bffd76-6e08-43c0-990f-df880485af91.json | 7 +++++++ ...harts-preview-5ad06aff-a7f0-4080-a261-ad22679a9080.json | 7 +++++++ ...eact-checkbox-99e10f97-4af9-49f4-96b9-b832f9805d1f.json | 7 +++++++ ...icker-preview-c53d3038-b65b-4d1f-a5a6-a51c81c80e02.json | 7 +++++++ ...eact-combobox-337362aa-8345-41b2-8f48-10cbbf77241d.json | 7 +++++++ ...picker-compat-3713d571-f9be-4e66-b7d6-ba44a7239c50.json | 7 +++++++ ...-react-dialog-0ee12b68-b046-478d-9511-3ccb6c1c6c50.json | 7 +++++++ ...-react-drawer-a0382038-8918-4fa5-899e-08093109b070.json | 7 +++++++ ...i-react-field-84624d09-23f6-43cf-a10a-e4a12e8e0584.json | 7 +++++++ ...act-infolabel-45b2249a-2c5b-4977-aef0-090ebd44450c.json | 7 +++++++ ...i-react-input-647ba028-528a-4ebf-80bb-c5cf367fcd1f.json | 7 +++++++ ...-list-preview-ce92b101-8f02-4b3b-8ce6-fd6e6335b6a2.json | 7 +++++++ ...ui-react-menu-6b5f49ec-44d4-4455-a241-42bf710a282b.json | 7 +++++++ ...t-message-bar-28952410-6c0f-455e-ad8e-23d91485c35f.json | 7 +++++++ ...gration-v0-v9-6319050e-0748-412d-b242-344755615645.json | 7 +++++++ ...gration-v8-v9-8b6d67f6-4ed4-495a-9534-2f769f9cdf40.json | 7 +++++++ ...nents-preview-d66919b4-ac47-4317-a080-79e9f84013be.json | 7 +++++++ ...t-nav-preview-b5528595-0b92-4c90-9847-11f1a7f90619.json | 7 +++++++ ...eact-overflow-7c62c2b9-c455-4726-8229-490cfdbb5fc1.json | 7 +++++++ ...react-persona-dedef522-fb7b-4bd7-ad5f-0ff299c4b6b4.json | 7 +++++++ ...eact-progress-6d0e5741-4223-4295-86bf-18b1600b6cff.json | 7 +++++++ ...eact-provider-3b93264a-8813-4cf4-a0a3-d6a0548e1e25.json | 7 +++++++ ...i-react-radio-e7d530c6-db95-4a4d-a593-4a9c73e23365.json | 7 +++++++ ...-react-rating-bdee9270-92c1-4d84-9c98-cbf3757d73d6.json | 7 +++++++ ...-react-search-d82f12cd-9911-4e63-a912-dcc33cc5f3f1.json | 7 +++++++ ...-react-select-d55a0d34-bb3f-4de1-937f-32f83e58f992.json | 7 +++++++ ...-react-slider-83c6d76d-a9f1-471a-85af-8b0cbfba0496.json | 7 +++++++ ...ct-spinbutton-d5115d4f-da0a-4171-af44-d938a2402c60.json | 7 +++++++ ...swatch-picker-5b9d679d-d4b0-4c0d-958f-a44d1494dede.json | 7 +++++++ ...-react-switch-0d3ed5f7-9cfb-4c46-b7b0-7a26c38f513a.json | 7 +++++++ ...i-react-table-d77e187b-1322-4065-8627-74d75fef3726.json | 7 +++++++ ...ui-react-tabs-404d64a3-98c2-4155-be0b-27f15b31840a.json | 7 +++++++ ...react-tabster-d7e6d8b9-2829-4cf7-a945-5778a78314f3.json | 7 +++++++ ...ct-tag-picker-db4fede5-4ee5-4519-b702-0cabc4a96f2a.json | 7 +++++++ ...ui-react-tags-f7679fe3-fce2-4212-8101-b8978cbd5b4c.json | 7 +++++++ ...ching-popover-da9ff13e-d423-4702-816c-8540a48f4549.json | 7 +++++++ ...eact-textarea-90dfb984-fe34-4fb5-8940-44386cf5368b.json | 7 +++++++ ...i-react-toast-e3b540ee-023f-408c-8779-e0758068bd4d.json | 7 +++++++ ...react-toolbar-772f25c3-4417-40cd-b78b-796c3e1ae814.json | 7 +++++++ ...react-tooltip-4b851ecd-f2f7-49ac-906f-17b6384bb3db.json | 7 +++++++ ...ui-react-tree-8924fa26-b5b9-41a5-b82a-23d7d679b298.json | 7 +++++++ ...act-utilities-49ac0f7b-4e93-4f38-91e0-60f4c60c2736.json | 7 +++++++ ...t-virtualizer-943b310c-4850-40dc-9fc3-6e34132a8730.json | 7 +++++++ ...yle-utilities-685f559f-1dc9-4768-bc7a-1bb0b459d59d.json | 7 +++++++ ...tui-utilities-7586d8c4-5ea6-4801-9db9-0f6c0bf2a1e7.json | 7 +++++++ ...eb-components-ff77fa82-f4b4-4d02-9659-b6e821c71ae0.json | 7 +++++++ 57 files changed, 399 insertions(+) create mode 100644 change/@fluentui-api-docs-207b7892-f6fc-403e-9ab3-2d4df19f05ea.json create mode 100644 change/@fluentui-codemods-bce8ade9-b057-4270-9143-2f6570a6ed36.json create mode 100644 change/@fluentui-eslint-plugin-10dcdd84-5a4d-4f4d-aa95-4efbe72fffcb.json create mode 100644 change/@fluentui-merge-styles-eab4b3a2-c52a-4fc6-8e89-1c1f85ab2f43.json create mode 100644 change/@fluentui-react-a1ed221b-62ca-48fd-ae13-fce0e963e394.json create mode 100644 change/@fluentui-react-accordion-fa7c3a11-f7e0-46b6-9b5d-04666a99b614.json create mode 100644 change/@fluentui-react-avatar-1d67f4bc-721a-4d45-b1ea-7a0e720372dc.json create mode 100644 change/@fluentui-react-badge-b88fc8dd-d828-41c2-9dfe-2b4fd85c876a.json create mode 100644 change/@fluentui-react-breadcrumb-1aed7d4d-05fd-40d5-a739-4aa255409d48.json create mode 100644 change/@fluentui-react-button-621cce8a-26b2-4245-acd2-92817a678e93.json create mode 100644 change/@fluentui-react-calendar-compat-4cd52a47-8ec3-476b-872d-6dbf024391a5.json create mode 100644 change/@fluentui-react-carousel-58bffd76-6e08-43c0-990f-df880485af91.json create mode 100644 change/@fluentui-react-charts-preview-5ad06aff-a7f0-4080-a261-ad22679a9080.json create mode 100644 change/@fluentui-react-checkbox-99e10f97-4af9-49f4-96b9-b832f9805d1f.json create mode 100644 change/@fluentui-react-color-picker-preview-c53d3038-b65b-4d1f-a5a6-a51c81c80e02.json create mode 100644 change/@fluentui-react-combobox-337362aa-8345-41b2-8f48-10cbbf77241d.json create mode 100644 change/@fluentui-react-datepicker-compat-3713d571-f9be-4e66-b7d6-ba44a7239c50.json create mode 100644 change/@fluentui-react-dialog-0ee12b68-b046-478d-9511-3ccb6c1c6c50.json create mode 100644 change/@fluentui-react-drawer-a0382038-8918-4fa5-899e-08093109b070.json create mode 100644 change/@fluentui-react-field-84624d09-23f6-43cf-a10a-e4a12e8e0584.json create mode 100644 change/@fluentui-react-infolabel-45b2249a-2c5b-4977-aef0-090ebd44450c.json create mode 100644 change/@fluentui-react-input-647ba028-528a-4ebf-80bb-c5cf367fcd1f.json create mode 100644 change/@fluentui-react-list-preview-ce92b101-8f02-4b3b-8ce6-fd6e6335b6a2.json create mode 100644 change/@fluentui-react-menu-6b5f49ec-44d4-4455-a241-42bf710a282b.json create mode 100644 change/@fluentui-react-message-bar-28952410-6c0f-455e-ad8e-23d91485c35f.json create mode 100644 change/@fluentui-react-migration-v0-v9-6319050e-0748-412d-b242-344755615645.json create mode 100644 change/@fluentui-react-migration-v8-v9-8b6d67f6-4ed4-495a-9534-2f769f9cdf40.json create mode 100644 change/@fluentui-react-motion-components-preview-d66919b4-ac47-4317-a080-79e9f84013be.json create mode 100644 change/@fluentui-react-nav-preview-b5528595-0b92-4c90-9847-11f1a7f90619.json create mode 100644 change/@fluentui-react-overflow-7c62c2b9-c455-4726-8229-490cfdbb5fc1.json create mode 100644 change/@fluentui-react-persona-dedef522-fb7b-4bd7-ad5f-0ff299c4b6b4.json create mode 100644 change/@fluentui-react-progress-6d0e5741-4223-4295-86bf-18b1600b6cff.json create mode 100644 change/@fluentui-react-provider-3b93264a-8813-4cf4-a0a3-d6a0548e1e25.json create mode 100644 change/@fluentui-react-radio-e7d530c6-db95-4a4d-a593-4a9c73e23365.json create mode 100644 change/@fluentui-react-rating-bdee9270-92c1-4d84-9c98-cbf3757d73d6.json create mode 100644 change/@fluentui-react-search-d82f12cd-9911-4e63-a912-dcc33cc5f3f1.json create mode 100644 change/@fluentui-react-select-d55a0d34-bb3f-4de1-937f-32f83e58f992.json create mode 100644 change/@fluentui-react-slider-83c6d76d-a9f1-471a-85af-8b0cbfba0496.json create mode 100644 change/@fluentui-react-spinbutton-d5115d4f-da0a-4171-af44-d938a2402c60.json create mode 100644 change/@fluentui-react-swatch-picker-5b9d679d-d4b0-4c0d-958f-a44d1494dede.json create mode 100644 change/@fluentui-react-switch-0d3ed5f7-9cfb-4c46-b7b0-7a26c38f513a.json create mode 100644 change/@fluentui-react-table-d77e187b-1322-4065-8627-74d75fef3726.json create mode 100644 change/@fluentui-react-tabs-404d64a3-98c2-4155-be0b-27f15b31840a.json create mode 100644 change/@fluentui-react-tabster-d7e6d8b9-2829-4cf7-a945-5778a78314f3.json create mode 100644 change/@fluentui-react-tag-picker-db4fede5-4ee5-4519-b702-0cabc4a96f2a.json create mode 100644 change/@fluentui-react-tags-f7679fe3-fce2-4212-8101-b8978cbd5b4c.json create mode 100644 change/@fluentui-react-teaching-popover-da9ff13e-d423-4702-816c-8540a48f4549.json create mode 100644 change/@fluentui-react-textarea-90dfb984-fe34-4fb5-8940-44386cf5368b.json create mode 100644 change/@fluentui-react-toast-e3b540ee-023f-408c-8779-e0758068bd4d.json create mode 100644 change/@fluentui-react-toolbar-772f25c3-4417-40cd-b78b-796c3e1ae814.json create mode 100644 change/@fluentui-react-tooltip-4b851ecd-f2f7-49ac-906f-17b6384bb3db.json create mode 100644 change/@fluentui-react-tree-8924fa26-b5b9-41a5-b82a-23d7d679b298.json create mode 100644 change/@fluentui-react-utilities-49ac0f7b-4e93-4f38-91e0-60f4c60c2736.json create mode 100644 change/@fluentui-react-virtualizer-943b310c-4850-40dc-9fc3-6e34132a8730.json create mode 100644 change/@fluentui-style-utilities-685f559f-1dc9-4768-bc7a-1bb0b459d59d.json create mode 100644 change/@fluentui-utilities-7586d8c4-5ea6-4801-9db9-0f6c0bf2a1e7.json create mode 100644 change/@fluentui-web-components-ff77fa82-f4b4-4d02-9659-b6e821c71ae0.json diff --git a/change/@fluentui-api-docs-207b7892-f6fc-403e-9ab3-2d4df19f05ea.json b/change/@fluentui-api-docs-207b7892-f6fc-403e-9ab3-2d4df19f05ea.json new file mode 100644 index 0000000000000..ac6ba04d905ac --- /dev/null +++ b/change/@fluentui-api-docs-207b7892-f6fc-403e-9ab3-2d4df19f05ea.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: update microsoft/api-doc to 15.1", + "packageName": "@fluentui/api-docs", + "email": "vgenaev@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-codemods-bce8ade9-b057-4270-9143-2f6570a6ed36.json b/change/@fluentui-codemods-bce8ade9-b057-4270-9143-2f6570a6ed36.json new file mode 100644 index 0000000000000..921d882c3dee8 --- /dev/null +++ b/change/@fluentui-codemods-bce8ade9-b057-4270-9143-2f6570a6ed36.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: lock ts to 5.3.3", + "packageName": "@fluentui/codemods", + "email": "vgenaev@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-eslint-plugin-10dcdd84-5a4d-4f4d-aa95-4efbe72fffcb.json b/change/@fluentui-eslint-plugin-10dcdd84-5a4d-4f4d-aa95-4efbe72fffcb.json new file mode 100644 index 0000000000000..7b0315df64b5d --- /dev/null +++ b/change/@fluentui-eslint-plugin-10dcdd84-5a4d-4f4d-aa95-4efbe72fffcb.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: use jsDoc import tag", + "packageName": "@fluentui/eslint-plugin", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-merge-styles-eab4b3a2-c52a-4fc6-8e89-1c1f85ab2f43.json b/change/@fluentui-merge-styles-eab4b3a2-c52a-4fc6-8e89-1c1f85ab2f43.json new file mode 100644 index 0000000000000..a8528a3bebe8b --- /dev/null +++ b/change/@fluentui-merge-styles-eab4b3a2-c52a-4fc6-8e89-1c1f85ab2f43.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: remove ts reported errors", + "packageName": "@fluentui/merge-styles", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-a1ed221b-62ca-48fd-ae13-fce0e963e394.json b/change/@fluentui-react-a1ed221b-62ca-48fd-ae13-fce0e963e394.json new file mode 100644 index 0000000000000..2f99675e56673 --- /dev/null +++ b/change/@fluentui-react-a1ed221b-62ca-48fd-ae13-fce0e963e394.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-accordion-fa7c3a11-f7e0-46b6-9b5d-04666a99b614.json b/change/@fluentui-react-accordion-fa7c3a11-f7e0-46b6-9b5d-04666a99b614.json new file mode 100644 index 0000000000000..042421f94b399 --- /dev/null +++ b/change/@fluentui-react-accordion-fa7c3a11-f7e0-46b6-9b5d-04666a99b614.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-accordion", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-avatar-1d67f4bc-721a-4d45-b1ea-7a0e720372dc.json b/change/@fluentui-react-avatar-1d67f4bc-721a-4d45-b1ea-7a0e720372dc.json new file mode 100644 index 0000000000000..ca8658e124e02 --- /dev/null +++ b/change/@fluentui-react-avatar-1d67f4bc-721a-4d45-b1ea-7a0e720372dc.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-avatar", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-badge-b88fc8dd-d828-41c2-9dfe-2b4fd85c876a.json b/change/@fluentui-react-badge-b88fc8dd-d828-41c2-9dfe-2b4fd85c876a.json new file mode 100644 index 0000000000000..f9f6d1158bfb9 --- /dev/null +++ b/change/@fluentui-react-badge-b88fc8dd-d828-41c2-9dfe-2b4fd85c876a.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-badge", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-breadcrumb-1aed7d4d-05fd-40d5-a739-4aa255409d48.json b/change/@fluentui-react-breadcrumb-1aed7d4d-05fd-40d5-a739-4aa255409d48.json new file mode 100644 index 0000000000000..8bc495a07907f --- /dev/null +++ b/change/@fluentui-react-breadcrumb-1aed7d4d-05fd-40d5-a739-4aa255409d48.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-breadcrumb", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-button-621cce8a-26b2-4245-acd2-92817a678e93.json b/change/@fluentui-react-button-621cce8a-26b2-4245-acd2-92817a678e93.json new file mode 100644 index 0000000000000..fd399bbc4c783 --- /dev/null +++ b/change/@fluentui-react-button-621cce8a-26b2-4245-acd2-92817a678e93.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-button", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-calendar-compat-4cd52a47-8ec3-476b-872d-6dbf024391a5.json b/change/@fluentui-react-calendar-compat-4cd52a47-8ec3-476b-872d-6dbf024391a5.json new file mode 100644 index 0000000000000..660a10b03e376 --- /dev/null +++ b/change/@fluentui-react-calendar-compat-4cd52a47-8ec3-476b-872d-6dbf024391a5.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-calendar-compat", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-carousel-58bffd76-6e08-43c0-990f-df880485af91.json b/change/@fluentui-react-carousel-58bffd76-6e08-43c0-990f-df880485af91.json new file mode 100644 index 0000000000000..f786d49c068ef --- /dev/null +++ b/change/@fluentui-react-carousel-58bffd76-6e08-43c0-990f-df880485af91.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-carousel", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-charts-preview-5ad06aff-a7f0-4080-a261-ad22679a9080.json b/change/@fluentui-react-charts-preview-5ad06aff-a7f0-4080-a261-ad22679a9080.json new file mode 100644 index 0000000000000..39578fad14c9a --- /dev/null +++ b/change/@fluentui-react-charts-preview-5ad06aff-a7f0-4080-a261-ad22679a9080.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-charts-preview", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-checkbox-99e10f97-4af9-49f4-96b9-b832f9805d1f.json b/change/@fluentui-react-checkbox-99e10f97-4af9-49f4-96b9-b832f9805d1f.json new file mode 100644 index 0000000000000..6fdf8a6512013 --- /dev/null +++ b/change/@fluentui-react-checkbox-99e10f97-4af9-49f4-96b9-b832f9805d1f.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-checkbox", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-color-picker-preview-c53d3038-b65b-4d1f-a5a6-a51c81c80e02.json b/change/@fluentui-react-color-picker-preview-c53d3038-b65b-4d1f-a5a6-a51c81c80e02.json new file mode 100644 index 0000000000000..534006207cace --- /dev/null +++ b/change/@fluentui-react-color-picker-preview-c53d3038-b65b-4d1f-a5a6-a51c81c80e02.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-color-picker-preview", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-combobox-337362aa-8345-41b2-8f48-10cbbf77241d.json b/change/@fluentui-react-combobox-337362aa-8345-41b2-8f48-10cbbf77241d.json new file mode 100644 index 0000000000000..adfdb80f550e4 --- /dev/null +++ b/change/@fluentui-react-combobox-337362aa-8345-41b2-8f48-10cbbf77241d.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-combobox", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-datepicker-compat-3713d571-f9be-4e66-b7d6-ba44a7239c50.json b/change/@fluentui-react-datepicker-compat-3713d571-f9be-4e66-b7d6-ba44a7239c50.json new file mode 100644 index 0000000000000..eda29e341a70a --- /dev/null +++ b/change/@fluentui-react-datepicker-compat-3713d571-f9be-4e66-b7d6-ba44a7239c50.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-datepicker-compat", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-dialog-0ee12b68-b046-478d-9511-3ccb6c1c6c50.json b/change/@fluentui-react-dialog-0ee12b68-b046-478d-9511-3ccb6c1c6c50.json new file mode 100644 index 0000000000000..b92eacb675430 --- /dev/null +++ b/change/@fluentui-react-dialog-0ee12b68-b046-478d-9511-3ccb6c1c6c50.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-dialog", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-drawer-a0382038-8918-4fa5-899e-08093109b070.json b/change/@fluentui-react-drawer-a0382038-8918-4fa5-899e-08093109b070.json new file mode 100644 index 0000000000000..96f9e7e78a33c --- /dev/null +++ b/change/@fluentui-react-drawer-a0382038-8918-4fa5-899e-08093109b070.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-drawer", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-field-84624d09-23f6-43cf-a10a-e4a12e8e0584.json b/change/@fluentui-react-field-84624d09-23f6-43cf-a10a-e4a12e8e0584.json new file mode 100644 index 0000000000000..5fc40c8d407cb --- /dev/null +++ b/change/@fluentui-react-field-84624d09-23f6-43cf-a10a-e4a12e8e0584.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-field", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-infolabel-45b2249a-2c5b-4977-aef0-090ebd44450c.json b/change/@fluentui-react-infolabel-45b2249a-2c5b-4977-aef0-090ebd44450c.json new file mode 100644 index 0000000000000..cd8b4c5bf7a5a --- /dev/null +++ b/change/@fluentui-react-infolabel-45b2249a-2c5b-4977-aef0-090ebd44450c.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-infolabel", + "email": "vgenaev@gmail.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-input-647ba028-528a-4ebf-80bb-c5cf367fcd1f.json b/change/@fluentui-react-input-647ba028-528a-4ebf-80bb-c5cf367fcd1f.json new file mode 100644 index 0000000000000..d7d92edfead84 --- /dev/null +++ b/change/@fluentui-react-input-647ba028-528a-4ebf-80bb-c5cf367fcd1f.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-input", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-list-preview-ce92b101-8f02-4b3b-8ce6-fd6e6335b6a2.json b/change/@fluentui-react-list-preview-ce92b101-8f02-4b3b-8ce6-fd6e6335b6a2.json new file mode 100644 index 0000000000000..52b931788f0af --- /dev/null +++ b/change/@fluentui-react-list-preview-ce92b101-8f02-4b3b-8ce6-fd6e6335b6a2.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-list-preview", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-menu-6b5f49ec-44d4-4455-a241-42bf710a282b.json b/change/@fluentui-react-menu-6b5f49ec-44d4-4455-a241-42bf710a282b.json new file mode 100644 index 0000000000000..11d6c3c0e5e2b --- /dev/null +++ b/change/@fluentui-react-menu-6b5f49ec-44d4-4455-a241-42bf710a282b.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-menu", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-message-bar-28952410-6c0f-455e-ad8e-23d91485c35f.json b/change/@fluentui-react-message-bar-28952410-6c0f-455e-ad8e-23d91485c35f.json new file mode 100644 index 0000000000000..325298b6c46b8 --- /dev/null +++ b/change/@fluentui-react-message-bar-28952410-6c0f-455e-ad8e-23d91485c35f.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-message-bar", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-migration-v0-v9-6319050e-0748-412d-b242-344755615645.json b/change/@fluentui-react-migration-v0-v9-6319050e-0748-412d-b242-344755615645.json new file mode 100644 index 0000000000000..3e17aa0d01586 --- /dev/null +++ b/change/@fluentui-react-migration-v0-v9-6319050e-0748-412d-b242-344755615645.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-migration-v0-v9", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-migration-v8-v9-8b6d67f6-4ed4-495a-9534-2f769f9cdf40.json b/change/@fluentui-react-migration-v8-v9-8b6d67f6-4ed4-495a-9534-2f769f9cdf40.json new file mode 100644 index 0000000000000..0bde1ca996bbb --- /dev/null +++ b/change/@fluentui-react-migration-v8-v9-8b6d67f6-4ed4-495a-9534-2f769f9cdf40.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-migration-v8-v9", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-motion-components-preview-d66919b4-ac47-4317-a080-79e9f84013be.json b/change/@fluentui-react-motion-components-preview-d66919b4-ac47-4317-a080-79e9f84013be.json new file mode 100644 index 0000000000000..d5818ec94fd12 --- /dev/null +++ b/change/@fluentui-react-motion-components-preview-d66919b4-ac47-4317-a080-79e9f84013be.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-motion-components-preview", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-nav-preview-b5528595-0b92-4c90-9847-11f1a7f90619.json b/change/@fluentui-react-nav-preview-b5528595-0b92-4c90-9847-11f1a7f90619.json new file mode 100644 index 0000000000000..3fcc517124dd1 --- /dev/null +++ b/change/@fluentui-react-nav-preview-b5528595-0b92-4c90-9847-11f1a7f90619.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-nav-preview", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-overflow-7c62c2b9-c455-4726-8229-490cfdbb5fc1.json b/change/@fluentui-react-overflow-7c62c2b9-c455-4726-8229-490cfdbb5fc1.json new file mode 100644 index 0000000000000..a5fd1bbf29922 --- /dev/null +++ b/change/@fluentui-react-overflow-7c62c2b9-c455-4726-8229-490cfdbb5fc1.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-overflow", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-persona-dedef522-fb7b-4bd7-ad5f-0ff299c4b6b4.json b/change/@fluentui-react-persona-dedef522-fb7b-4bd7-ad5f-0ff299c4b6b4.json new file mode 100644 index 0000000000000..eaa2eca1604ce --- /dev/null +++ b/change/@fluentui-react-persona-dedef522-fb7b-4bd7-ad5f-0ff299c4b6b4.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-persona", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-progress-6d0e5741-4223-4295-86bf-18b1600b6cff.json b/change/@fluentui-react-progress-6d0e5741-4223-4295-86bf-18b1600b6cff.json new file mode 100644 index 0000000000000..8f3d17f039807 --- /dev/null +++ b/change/@fluentui-react-progress-6d0e5741-4223-4295-86bf-18b1600b6cff.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-progress", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-provider-3b93264a-8813-4cf4-a0a3-d6a0548e1e25.json b/change/@fluentui-react-provider-3b93264a-8813-4cf4-a0a3-d6a0548e1e25.json new file mode 100644 index 0000000000000..7ecf4f1f8b817 --- /dev/null +++ b/change/@fluentui-react-provider-3b93264a-8813-4cf4-a0a3-d6a0548e1e25.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-provider", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-radio-e7d530c6-db95-4a4d-a593-4a9c73e23365.json b/change/@fluentui-react-radio-e7d530c6-db95-4a4d-a593-4a9c73e23365.json new file mode 100644 index 0000000000000..56949983c839c --- /dev/null +++ b/change/@fluentui-react-radio-e7d530c6-db95-4a4d-a593-4a9c73e23365.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-radio", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-rating-bdee9270-92c1-4d84-9c98-cbf3757d73d6.json b/change/@fluentui-react-rating-bdee9270-92c1-4d84-9c98-cbf3757d73d6.json new file mode 100644 index 0000000000000..53aee9ddf7c59 --- /dev/null +++ b/change/@fluentui-react-rating-bdee9270-92c1-4d84-9c98-cbf3757d73d6.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-rating", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-search-d82f12cd-9911-4e63-a912-dcc33cc5f3f1.json b/change/@fluentui-react-search-d82f12cd-9911-4e63-a912-dcc33cc5f3f1.json new file mode 100644 index 0000000000000..5f03da29ea7c6 --- /dev/null +++ b/change/@fluentui-react-search-d82f12cd-9911-4e63-a912-dcc33cc5f3f1.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-search", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-select-d55a0d34-bb3f-4de1-937f-32f83e58f992.json b/change/@fluentui-react-select-d55a0d34-bb3f-4de1-937f-32f83e58f992.json new file mode 100644 index 0000000000000..4ae94e2b5f46c --- /dev/null +++ b/change/@fluentui-react-select-d55a0d34-bb3f-4de1-937f-32f83e58f992.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-select", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-slider-83c6d76d-a9f1-471a-85af-8b0cbfba0496.json b/change/@fluentui-react-slider-83c6d76d-a9f1-471a-85af-8b0cbfba0496.json new file mode 100644 index 0000000000000..7098ab7dbcd4d --- /dev/null +++ b/change/@fluentui-react-slider-83c6d76d-a9f1-471a-85af-8b0cbfba0496.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-slider", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-spinbutton-d5115d4f-da0a-4171-af44-d938a2402c60.json b/change/@fluentui-react-spinbutton-d5115d4f-da0a-4171-af44-d938a2402c60.json new file mode 100644 index 0000000000000..75d5a729ab836 --- /dev/null +++ b/change/@fluentui-react-spinbutton-d5115d4f-da0a-4171-af44-d938a2402c60.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-spinbutton", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-swatch-picker-5b9d679d-d4b0-4c0d-958f-a44d1494dede.json b/change/@fluentui-react-swatch-picker-5b9d679d-d4b0-4c0d-958f-a44d1494dede.json new file mode 100644 index 0000000000000..6aaedd7a0153a --- /dev/null +++ b/change/@fluentui-react-swatch-picker-5b9d679d-d4b0-4c0d-958f-a44d1494dede.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-swatch-picker", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-switch-0d3ed5f7-9cfb-4c46-b7b0-7a26c38f513a.json b/change/@fluentui-react-switch-0d3ed5f7-9cfb-4c46-b7b0-7a26c38f513a.json new file mode 100644 index 0000000000000..daf26cc74af48 --- /dev/null +++ b/change/@fluentui-react-switch-0d3ed5f7-9cfb-4c46-b7b0-7a26c38f513a.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-switch", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-table-d77e187b-1322-4065-8627-74d75fef3726.json b/change/@fluentui-react-table-d77e187b-1322-4065-8627-74d75fef3726.json new file mode 100644 index 0000000000000..e16a9a2ec7256 --- /dev/null +++ b/change/@fluentui-react-table-d77e187b-1322-4065-8627-74d75fef3726.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-table", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tabs-404d64a3-98c2-4155-be0b-27f15b31840a.json b/change/@fluentui-react-tabs-404d64a3-98c2-4155-be0b-27f15b31840a.json new file mode 100644 index 0000000000000..62fccf31c3695 --- /dev/null +++ b/change/@fluentui-react-tabs-404d64a3-98c2-4155-be0b-27f15b31840a.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-tabs", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tabster-d7e6d8b9-2829-4cf7-a945-5778a78314f3.json b/change/@fluentui-react-tabster-d7e6d8b9-2829-4cf7-a945-5778a78314f3.json new file mode 100644 index 0000000000000..6ca507c6eeaf0 --- /dev/null +++ b/change/@fluentui-react-tabster-d7e6d8b9-2829-4cf7-a945-5778a78314f3.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-tabster", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tag-picker-db4fede5-4ee5-4519-b702-0cabc4a96f2a.json b/change/@fluentui-react-tag-picker-db4fede5-4ee5-4519-b702-0cabc4a96f2a.json new file mode 100644 index 0000000000000..fc1ccb78774a4 --- /dev/null +++ b/change/@fluentui-react-tag-picker-db4fede5-4ee5-4519-b702-0cabc4a96f2a.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-tag-picker", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tags-f7679fe3-fce2-4212-8101-b8978cbd5b4c.json b/change/@fluentui-react-tags-f7679fe3-fce2-4212-8101-b8978cbd5b4c.json new file mode 100644 index 0000000000000..a5fd89325c475 --- /dev/null +++ b/change/@fluentui-react-tags-f7679fe3-fce2-4212-8101-b8978cbd5b4c.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-tags", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-teaching-popover-da9ff13e-d423-4702-816c-8540a48f4549.json b/change/@fluentui-react-teaching-popover-da9ff13e-d423-4702-816c-8540a48f4549.json new file mode 100644 index 0000000000000..8fd68d1346739 --- /dev/null +++ b/change/@fluentui-react-teaching-popover-da9ff13e-d423-4702-816c-8540a48f4549.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore(codemods): fix issues related to ts 5.5 upgrade", + "packageName": "@fluentui/react-teaching-popover", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-textarea-90dfb984-fe34-4fb5-8940-44386cf5368b.json b/change/@fluentui-react-textarea-90dfb984-fe34-4fb5-8940-44386cf5368b.json new file mode 100644 index 0000000000000..5a88265c7ff2e --- /dev/null +++ b/change/@fluentui-react-textarea-90dfb984-fe34-4fb5-8940-44386cf5368b.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-textarea", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-toast-e3b540ee-023f-408c-8779-e0758068bd4d.json b/change/@fluentui-react-toast-e3b540ee-023f-408c-8779-e0758068bd4d.json new file mode 100644 index 0000000000000..1fae477a9ce37 --- /dev/null +++ b/change/@fluentui-react-toast-e3b540ee-023f-408c-8779-e0758068bd4d.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-toast", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-toolbar-772f25c3-4417-40cd-b78b-796c3e1ae814.json b/change/@fluentui-react-toolbar-772f25c3-4417-40cd-b78b-796c3e1ae814.json new file mode 100644 index 0000000000000..3491137778a26 --- /dev/null +++ b/change/@fluentui-react-toolbar-772f25c3-4417-40cd-b78b-796c3e1ae814.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-toolbar", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tooltip-4b851ecd-f2f7-49ac-906f-17b6384bb3db.json b/change/@fluentui-react-tooltip-4b851ecd-f2f7-49ac-906f-17b6384bb3db.json new file mode 100644 index 0000000000000..44e669b3f997a --- /dev/null +++ b/change/@fluentui-react-tooltip-4b851ecd-f2f7-49ac-906f-17b6384bb3db.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-tooltip", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-tree-8924fa26-b5b9-41a5-b82a-23d7d679b298.json b/change/@fluentui-react-tree-8924fa26-b5b9-41a5-b82a-23d7d679b298.json new file mode 100644 index 0000000000000..737c1bf5fc2ac --- /dev/null +++ b/change/@fluentui-react-tree-8924fa26-b5b9-41a5-b82a-23d7d679b298.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-tree", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-utilities-49ac0f7b-4e93-4f38-91e0-60f4c60c2736.json b/change/@fluentui-react-utilities-49ac0f7b-4e93-4f38-91e0-60f4c60c2736.json new file mode 100644 index 0000000000000..e53eec9a73431 --- /dev/null +++ b/change/@fluentui-react-utilities-49ac0f7b-4e93-4f38-91e0-60f4c60c2736.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: remove ts errors after update", + "packageName": "@fluentui/react-utilities", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-virtualizer-943b310c-4850-40dc-9fc3-6e34132a8730.json b/change/@fluentui-react-virtualizer-943b310c-4850-40dc-9fc3-6e34132a8730.json new file mode 100644 index 0000000000000..5537cc8e8c8fd --- /dev/null +++ b/change/@fluentui-react-virtualizer-943b310c-4850-40dc-9fc3-6e34132a8730.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/react-virtualizer", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-style-utilities-685f559f-1dc9-4768-bc7a-1bb0b459d59d.json b/change/@fluentui-style-utilities-685f559f-1dc9-4768-bc7a-1bb0b459d59d.json new file mode 100644 index 0000000000000..838e6181eeb1d --- /dev/null +++ b/change/@fluentui-style-utilities-685f559f-1dc9-4768-bc7a-1bb0b459d59d.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update api.md", + "packageName": "@fluentui/style-utilities", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-utilities-7586d8c4-5ea6-4801-9db9-0f6c0bf2a1e7.json b/change/@fluentui-utilities-7586d8c4-5ea6-4801-9db9-0f6c0bf2a1e7.json new file mode 100644 index 0000000000000..222fa46454d05 --- /dev/null +++ b/change/@fluentui-utilities-7586d8c4-5ea6-4801-9db9-0f6c0bf2a1e7.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: resolve ts errors after update", + "packageName": "@fluentui/utilities", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-web-components-ff77fa82-f4b4-4d02-9659-b6e821c71ae0.json b/change/@fluentui-web-components-ff77fa82-f4b4-4d02-9659-b6e821c71ae0.json new file mode 100644 index 0000000000000..ccce40e4f293b --- /dev/null +++ b/change/@fluentui-web-components-ff77fa82-f4b4-4d02-9659-b6e821c71ae0.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: remove redundant ts suppressions", + "packageName": "@fluentui/web-components", + "email": "vgenaev@gmail.com", + "dependentChangeType": "none" +} From eccd0d4ae9afcb8df5cc5a87150386c7b83cc22c Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 23 Dec 2024 19:04:46 +0100 Subject: [PATCH 10/11] chore: use jsDoc import tag --- .../src/rules/ban-context-export/index.js | 13 +++++--- .../eslint-plugin/src/rules/ban-imports.js | 17 ++++------ .../ban-instanceof-html-element/index.js | 2 +- .../rules/deprecated-keyboard-event-props.js | 7 ++-- .../rules/no-context-default-value/index.js | 8 +++-- .../src/rules/no-restricted-imports/index.js | 11 ++++--- .../src/rules/no-visibility-modifiers.js | 32 +++++-------------- .../eslint-plugin/src/utils/configHelpers.js | 1 - .../eslint-plugin/src/utils/type-services.js | 4 ++- scripts/babel/src/index.js | 6 ++-- scripts/monorepo/src/getDependencies.js | 14 +++++--- scripts/storybook/src/utils.js | 21 +++++++----- scripts/triage-bot/src/triage-bot.js | 2 +- scripts/webpack/src/webpack-resources.js | 28 ++++++++-------- 14 files changed, 83 insertions(+), 83 deletions(-) diff --git a/packages/eslint-plugin/src/rules/ban-context-export/index.js b/packages/eslint-plugin/src/rules/ban-context-export/index.js index a81dda19c9b7d..5e263ccc37a75 100644 --- a/packages/eslint-plugin/src/rules/ban-context-export/index.js +++ b/packages/eslint-plugin/src/rules/ban-context-export/index.js @@ -5,8 +5,11 @@ const minimatch = require('minimatch'); const createRule = require('../../utils/createRule'); const { getTypeServices } = require('../../utils/type-services'); -/** @typedef { import('@typescript-eslint/utils').TSESTree.VariableDeclarator } VariableDeclarator*/ -/** @typedef { import('@typescript-eslint/utils').TSESTree.ExportSpecifier} ExportSpecifier */ +/** + * @import { TSESTree } from '@typescript-eslint/utils' + * @import { Type } from "typescript" + */ + /** * @typedef {{ * exclude?: string[]; @@ -45,8 +48,8 @@ module.exports = createRule({ const [{ exclude = /** @type string[]*/ ([]) } = {}] = context.options; /** - * @param { ExportSpecifier | VariableDeclarator } node - * @param {string} exportName + * @param { TSESTree.ExportSpecifier | TSESTree.VariableDeclarator } node + * @param { string } exportName */ function checkContextType(node, exportName) { const currentFileName = context.filename; @@ -73,7 +76,7 @@ module.exports = createRule({ * - `createContext` from `@fluentui/react-context-selector` return type is `type Context` we use `aliasSymbol` * * @see https://github.com/microsoft/TypeScript/issues/46921#issuecomment-985048637 - * @typedef {Extract} TypeProperty + * @typedef {Extract} TypeProperty */ /** diff --git a/packages/eslint-plugin/src/rules/ban-imports.js b/packages/eslint-plugin/src/rules/ban-imports.js index 9cb305cf22676..e8ecec0bffffa 100644 --- a/packages/eslint-plugin/src/rules/ban-imports.js +++ b/packages/eslint-plugin/src/rules/ban-imports.js @@ -2,15 +2,10 @@ const { AST_NODE_TYPES } = require('@typescript-eslint/utils'); const createRule = require('../utils/createRule'); -// Nasty syntax required for type imports until https://github.com/microsoft/TypeScript/issues/22160 is implemented. -// For some reason just importing TSESTree and accessing properties off that doesn't work. /** - * @typedef {import("@typescript-eslint/utils").TSESTree.ExportNamedDeclaration} ExportNamedDeclaration - * @typedef {import("@typescript-eslint/utils").TSESTree.ExportSpecifier} ExportSpecifier - * @typedef {import("@typescript-eslint/utils").TSESTree.Identifier} Identifier - * @typedef {import("@typescript-eslint/utils").TSESTree.ImportDeclaration} ImportDeclaration - * @typedef {import("@typescript-eslint/utils").TSESTree.ImportSpecifier} ImportSpecifier - * + * @import { TSESTree } from '@typescript-eslint/utils'; */ + +/** * @typedef {{ * path?: string; * pathRegex?: string; @@ -104,9 +99,9 @@ module.exports = createRule({ } /** - * @param {ImportDeclaration | ExportNamedDeclaration} importOrExport the whole import/export node + * @param {TSESTree.ImportDeclaration | TSESTree.ExportNamedDeclaration} importOrExport the whole import/export node * @param {string} importPath path importing/exporting from - * @param {Identifier[]} identifiers imported/exported identifiers + * @param {TSESTree.Identifier[]} identifiers imported/exported identifiers */ function checkImportOrExport(importOrExport, importPath, identifiers) { for (const rule of options) { @@ -152,7 +147,7 @@ module.exports = createRule({ return; } - const specifiers = /** @type {ImportSpecifier[]} */ ( + const specifiers = /** @type {TSESTree.ImportSpecifier[]} */ ( imprt.specifiers.filter( // Filter out default imports and namespace (star) imports spec => spec.type === AST_NODE_TYPES.ImportSpecifier, diff --git a/packages/eslint-plugin/src/rules/ban-instanceof-html-element/index.js b/packages/eslint-plugin/src/rules/ban-instanceof-html-element/index.js index ca22c6f9cda71..aedade9629173 100644 --- a/packages/eslint-plugin/src/rules/ban-instanceof-html-element/index.js +++ b/packages/eslint-plugin/src/rules/ban-instanceof-html-element/index.js @@ -3,7 +3,7 @@ const { AST_NODE_TYPES } = require('@typescript-eslint/utils'); const createRule = require('../../utils/createRule'); /** - * @typedef {import('./types').HTMLElementConstructorName} HTMLElementConstructorName + * @import { HTMLElementConstructorName } from './types'; */ module.exports = createRule({ diff --git a/packages/eslint-plugin/src/rules/deprecated-keyboard-event-props.js b/packages/eslint-plugin/src/rules/deprecated-keyboard-event-props.js index 30fa88473a873..787a3d2930650 100644 --- a/packages/eslint-plugin/src/rules/deprecated-keyboard-event-props.js +++ b/packages/eslint-plugin/src/rules/deprecated-keyboard-event-props.js @@ -3,14 +3,15 @@ const createRule = require('../utils/createRule'); const { ESLintUtils } = require('@typescript-eslint/utils'); /** - * @typedef { import('@typescript-eslint/utils').TSESLint.RuleMetaDataDocs} RuleMetaDataDocs + * @import { TSESLint } from "@typescript-eslint/utils" + * @import { TypeChecker } from "typescript" */ module.exports = createRule({ name: 'deprecated-keyboard-event-props', meta: { type: 'problem', - docs: /** @type {RuleMetaDataDocs} */ ({ + docs: /** @type {TSESLint.RuleMetaDataDocs} */ ({ description: 'Forbid use of deprecated KeyboardEvent props "which" and "keyCode".', requiresTypeChecking: true, }), @@ -25,7 +26,7 @@ module.exports = createRule({ const ts = require('typescript'); const { program, esTreeNodeToTSNodeMap } = ESLintUtils.getParserServices(context); - /** @type {import("typescript").TypeChecker | undefined} */ + /** @type {TypeChecker | undefined} */ let typeChecker; return { diff --git a/packages/eslint-plugin/src/rules/no-context-default-value/index.js b/packages/eslint-plugin/src/rules/no-context-default-value/index.js index 77ddfa17e7f97..aec94028ff35e 100644 --- a/packages/eslint-plugin/src/rules/no-context-default-value/index.js +++ b/packages/eslint-plugin/src/rules/no-context-default-value/index.js @@ -2,6 +2,8 @@ const { AST_NODE_TYPES } = require('@typescript-eslint/utils'); const createRule = require('../../utils/createRule'); +/** @import { TSESTree } from "@typescript-eslint/utils" */ + /** * * @typedef {{ @@ -43,7 +45,7 @@ module.exports = createRule({ const createContextParentIdentifiers = []; /** - * @param {import("@typescript-eslint/utils").TSESTree.Expression} callee + * @param { TSESTree.Expression } callee */ function isCalleeCreateContext(callee) { if ( @@ -97,8 +99,8 @@ module.exports = createRule({ }); /** - * @param {import("@typescript-eslint/utils").TSESTree.CallExpressionArgument} expression - * @returns {expression is import("@typescript-eslint/utils").TSESTree.Identifier} + * @param { TSESTree.CallExpressionArgument } expression + * @returns { expression is TSESTree.Identifier } */ function isArgumentNotUndefined(expression) { return expression.type !== AST_NODE_TYPES.Identifier || expression.name !== 'undefined'; diff --git a/packages/eslint-plugin/src/rules/no-restricted-imports/index.js b/packages/eslint-plugin/src/rules/no-restricted-imports/index.js index b1b03711f86ae..4a60b504a58ec 100644 --- a/packages/eslint-plugin/src/rules/no-restricted-imports/index.js +++ b/packages/eslint-plugin/src/rules/no-restricted-imports/index.js @@ -3,11 +3,10 @@ const { AST_NODE_TYPES } = require('@typescript-eslint/utils'); const createRule = require('../../utils/createRule'); /** - * @typedef {import("@typescript-eslint/utils").TSESTree.ImportClause} ImportClause - * @typedef {import("@typescript-eslint/utils").TSESTree.ImportDeclaration} ImportDeclaration + * @import { TSESTree } from "@typescript-eslint/utils" * * Lookup for insertion point for new imports when moving a restricted import to a preferred import. - * @typedef {{[preferredPkgName: string] : ImportDeclaration}} FixMap + * @typedef {{[preferredPkgName: string] : TSESTree.ImportDeclaration}} FixMap * * @typedef {{ * forbidden: string[], @@ -132,9 +131,11 @@ module.exports = createRule({ function getUpdatedImportStatement(fixMap, preferredImportForCurrentPkg) { const isTypeImport = imprt.importKind === 'type'; const currentSpecifiers = fixMap[preferredImportForCurrentPkg].specifiers.map( - (/** @type {ImportClause} */ specifier) => specifier.local.name, + (/** @type {TSESTree.ImportClause} */ specifier) => specifier.local.name, + ); + const specifiersToAdd = imprt.specifiers.map( + (/** @type {TSESTree.ImportClause} */ specifier) => specifier.local.name, ); - const specifiersToAdd = imprt.specifiers.map((/** @type {ImportClause} */ specifier) => specifier.local.name); const combinedSpecifiers = currentSpecifiers.concat(specifiersToAdd).join(', '); return `import${ diff --git a/packages/eslint-plugin/src/rules/no-visibility-modifiers.js b/packages/eslint-plugin/src/rules/no-visibility-modifiers.js index 04408e27c549b..d5d9c32ec710d 100644 --- a/packages/eslint-plugin/src/rules/no-visibility-modifiers.js +++ b/packages/eslint-plugin/src/rules/no-visibility-modifiers.js @@ -12,30 +12,14 @@ const MemberNameType = { }; /** - * @typedef {import('@typescript-eslint/utils').TSESTree.MethodDefinition} MethodDefinition - * @typedef {import('@typescript-eslint/utils').TSESTree.PropertyDefinition} PropertyDefinition - * @typedef {import('@typescript-eslint/utils').TSESTree.Property} Property - * @typedef {import('@typescript-eslint/utils').TSESTree.TSAbstractMethodDefinition} TSAbstractMethodDefinition - * @typedef {import('@typescript-eslint/utils').TSESTree.TSAbstractPropertyDefinition} TSAbstractPropertyDefinition - * @typedef {import('@typescript-eslint/utils').TSESTree.TSMethodSignature} TSMethodSignature - * @typedef {import('@typescript-eslint/utils').TSESTree.TSPropertySignature} TSProperySignature - * @typedef {import('@typescript-eslint/utils').TSESLint.SourceCode} SourceCode - */ - -// Nasty syntax required for type imports until https://github.com/microsoft/TypeScript/issues/22160 is implemented. -// For some reason just importing TSESTree and accessing properties off that doesn't work. -/** - * @typedef {import("@typescript-eslint/utils").TSESTree.PropertyDefinition} ClassProperty - * @typedef {import("@typescript-eslint/utils").TSESTree.Identifier} Identifier - * @typedef {import("@typescript-eslint/utils").TSESTree.Node} Node - * @typedef {import("@typescript-eslint/utils").TSESTree.TSParameterProperty} ParameterProperty + * @import { TSESLint, TSESTree } from "@typescript-eslint/utils" */ /** * Gets a string name representation of the name of the given MethodDefinition * or PropertyDefinition node, with handling for computed property names. - * @param {MethodDefinition | PropertyDefinition | Property | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSMethodSignature | TSProperySignature} member The node to get the name of. - * @param {SourceCode} sourceCode The source code object. + * @param {TSESTree.MethodDefinition | TSESTree.PropertyDefinition | TSESTree.Property | TSESTree.TSAbstractMethodDefinition | TSESTree.TSAbstractPropertyDefinition | TSESTree.TSMethodSignature | TSESTree.TSPropertySignature} member The node to get the name of. + * @param {TSESLint.SourceCode} sourceCode The source code object. * @returns {{ type: number; name: string }} The name of the member. */ @@ -92,7 +76,7 @@ module.exports = createRule({ /** * Generates the report for rule violations * @param {string} nodeType - * @param {Node} node + * @param {TSESTree.Node} node * @param {{ type: number; name: string } | string} nodeName */ function reportIssue(nodeType, node, nodeName) { @@ -113,7 +97,7 @@ module.exports = createRule({ /** * Checks if a method declaration has an accessibility modifier. - * @param {MethodDefinition} methodDefinition The node representing a MethodDefinition. + * @param {TSESTree.MethodDefinition} methodDefinition The node representing a MethodDefinition. */ function checkMethodAccessibilityModifier(methodDefinition) { let nodeType = 'method definition'; @@ -133,7 +117,7 @@ module.exports = createRule({ /** * Checks if property has an accessibility modifier. - * @param {ClassProperty} classProperty The node representing a ClassProperty. + * @param {TSESTree.PropertyDefinition} classProperty The node representing a ClassProperty. */ function checkPropertyAccessibilityModifier(classProperty) { const nodeType = 'class property'; @@ -149,7 +133,7 @@ module.exports = createRule({ /** * Checks that the parameter property has the desired accessibility modifiers set. - * @param {ParameterProperty} node The node representing a Parameter Property + * @param {TSESTree.ParameterProperty} node The node representing a Parameter Property */ function checkParameterPropertyAccessibilityModifier(node) { const nodeType = 'parameter property'; @@ -167,7 +151,7 @@ module.exports = createRule({ node.parameter.type === AST_NODE_TYPES.Identifier ? node.parameter.name : // has to be an Identifier or TSC will throw an error - /** @type {Identifier} */ (node.parameter.left).name; + /** @type {TSESTree.Identifier} */ (node.parameter.left).name; if (node.accessibility) { reportIssue(nodeType, node, nodeName); diff --git a/packages/eslint-plugin/src/utils/configHelpers.js b/packages/eslint-plugin/src/utils/configHelpers.js index 209d408179af1..ba822123178ca 100644 --- a/packages/eslint-plugin/src/utils/configHelpers.js +++ b/packages/eslint-plugin/src/utils/configHelpers.js @@ -12,7 +12,6 @@ const { readProjectConfiguration } = require('@nx/devkit'); /** * @typedef {{root: string, name: string}} Options * @typedef {{name: string, version: string, dependencies: {[key: string]: string}}} PackageJson - * @typedef {import("@nx/devkit").WorkspaceJsonConfiguration} WorkspaceJsonConfiguration */ // FIXME: this is not ok (to depend on nx packages within this plugin - redo) diff --git a/packages/eslint-plugin/src/utils/type-services.js b/packages/eslint-plugin/src/utils/type-services.js index 27593d6024935..eaa3e3d40d733 100644 --- a/packages/eslint-plugin/src/utils/type-services.js +++ b/packages/eslint-plugin/src/utils/type-services.js @@ -1,9 +1,11 @@ const { ESLintUtils } = require('@typescript-eslint/utils'); +/** @import {TSESLint} from '@typescript-eslint/utils' */ + /** * @template {string} TMessageIds * @template {unknown[]} TOptions - * @param {import('@typescript-eslint/utils').TSESLint.RuleContext>} context + * @param {TSESLint.RuleContext>} context * @returns */ function getTypeServices(context) { diff --git a/scripts/babel/src/index.js b/scripts/babel/src/index.js index 79cb6a797daae..c16b617f7a826 100644 --- a/scripts/babel/src/index.js +++ b/scripts/babel/src/index.js @@ -2,7 +2,9 @@ * This files is used solely for react-northstar projects. Please don't any new logic here */ -/** @typedef {import('@babel/core').TransformOptions['caller']} Caller */ +/** @import {TransformOptions, ConfigAPI} from '@babel/core'; + */ +/** @typedef {TransformOptions['caller']} Caller */ const isNodeCaller = (/** @type {Caller}*/ caller) => { return Boolean(caller && (caller.name === '@babel/register' || caller.name === 'babel-jest')); @@ -15,7 +17,7 @@ const supportsESM = (/** @type {Caller}*/ caller) => { return !!((caller && caller.name === 'babel-loader') || caller.useESModules); }; -module.exports = (/** @type {import('@babel/core').ConfigAPI} */ api) => { +module.exports = (/** @type {ConfigAPI} */ api) => { const isDistBundle = api.caller(isDistCaller); const isNode = api.caller(isNodeCaller); const useESModules = !isNode && api.caller(supportsESM); diff --git a/scripts/monorepo/src/getDependencies.js b/scripts/monorepo/src/getDependencies.js index 3c93bd5ae61d3..0c04f0f622917 100644 --- a/scripts/monorepo/src/getDependencies.js +++ b/scripts/monorepo/src/getDependencies.js @@ -2,6 +2,10 @@ const fs = require('node:fs'); const { createProjectGraphAsync, joinPathFragments, workspaceRoot } = require('@nx/devkit'); +/** @import { PackageJson } from './types'; + * @import { ProjectGraph } from '@nx/devkit'; + */ + /** * @typedef {{ name: string, @@ -10,7 +14,7 @@ const { createProjectGraphAsync, joinPathFragments, workspaceRoot } = require('@ }} Dependency */ -/** @typedef {import('./types').PackageJson & {absoluteRootPath:string}} PackageJsonInfoData */ +/** @typedef {PackageJson & {absoluteRootPath:string}} PackageJsonInfoData */ /** * @type {Record} @@ -20,7 +24,7 @@ const packageJsonInfo = {}; /** * * @param {string} project - * @param {import('@nx/devkit').ProjectGraph} projectGraph + * @param {ProjectGraph} projectGraph */ function getProjectPackageJsonInfo(project, projectGraph) { const normalizedProjectName = getNormalizedName(project); @@ -48,7 +52,7 @@ function getProjectPackageJsonInfo(project, projectGraph) { /** * Returns local dependencies of provided project. Local means dependency from within workspace * @param {string} project - * @param {import('@nx/devkit').ProjectGraph} projectGraph + * @param {ProjectGraph} projectGraph */ function getLocalDeps(project, projectGraph) { const deps = projectGraph.dependencies[project]; @@ -74,7 +78,7 @@ function getLocalDeps(project, projectGraph) { /** * * @param {string} pkgName - * @param {import('./types').PackageJson} json + * @param {PackageJson} json * @returns */ function getDepType(pkgName, json) { @@ -95,7 +99,7 @@ function getDepType(pkgName, json) { /** * * @param {string} project - * @param {import('@nx/devkit').ProjectGraph} projectGraph + * @param {ProjectGraph} projectGraph * @param {*} options * @param {Dependency[]} _acc * @param {boolean} _areTopLevelDeps diff --git a/scripts/storybook/src/utils.js b/scripts/storybook/src/utils.js index 45d21e142569b..74374a39552be 100644 --- a/scripts/storybook/src/utils.js +++ b/scripts/storybook/src/utils.js @@ -7,6 +7,11 @@ const { FsTree } = require('nx/src/generators/tree'); const semver = require('semver'); const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin'); +/** + * @import { Configuration, RuleSetRule } from 'webpack'; + * @import { TransformOptions } from '@babel/core'; + * */ + const loadWorkspaceAddonDefaultOptions = { workspaceRoot }; /** * Registers workspace custom storybook addon to storybook with build-less setup during development. @@ -309,7 +314,7 @@ function getPackageStoriesGlob(options) { * register TsconfigPathsPlugin to webpack config * @param {Object} options * @param {string} options.configFile - absolute path to tsconfig that contains path aliases - * @param {import('webpack').Configuration} options.config - webpack config + * @param {Configuration} options.config - webpack config * @returns */ function registerTsPaths(options) { @@ -333,8 +338,8 @@ function registerTsPaths(options) { * * register custom Webpack Rules to webpack config * @param {Object} options - * @param {import('webpack').RuleSetRule[]} options.rules - webpack rules - * @param {import('webpack').Configuration} options.config - webpack config + * @param {RuleSetRule[]} options.rules - webpack rules + * @param {Configuration} options.config - webpack config * @returns */ function registerRules(options) { @@ -347,7 +352,7 @@ function registerRules(options) { } /** - * @typedef {import('@babel/core').TransformOptions & Partial<{customize: string | null}>} BabelLoaderOptions + * @typedef {TransformOptions & Partial<{customize: string | null}>} BabelLoaderOptions */ /** @@ -385,24 +390,24 @@ function processBabelLoaderOptions(loaderConfig) { * - `node_modules/babel-loader/lib/index.js` as `loader` within module.rules * * @param {Object} options - * @param {import('webpack').Configuration} options.config - webpack config + * @param {Configuration} options.config - webpack config */ function overrideDefaultBabelLoader(options) { const { config } = options; config.module = config.module ?? {}; config.module.rules = config.module.rules ?? []; - const loader = getBabelLoader(/** @type {import('webpack').RuleSetRule[]}*/ (config.module.rules)); + const loader = getBabelLoader(/** @type {RuleSetRule[]}*/ (config.module.rules)); processBabelLoaderOptions(loader.options); - function getBabelLoader(/** @type {import('webpack').RuleSetRule[]} */ rules) { + function getBabelLoader(/** @type {RuleSetRule[]} */ rules) { // eslint-disable-next-line no-shadow const ruleIdx = rules.findIndex(rule => { return String(rule.test) === '/\\.(mjs|tsx?|jsx?)$/'; }); - const rule = /** @type {import("webpack").RuleSetRule}*/ (rules[ruleIdx]); + const rule = /** @type {RuleSetRule}*/ (rules[ruleIdx]); if (!Array.isArray(rule.use)) { throw new Error('storybook webpack rules changed'); diff --git a/scripts/triage-bot/src/triage-bot.js b/scripts/triage-bot/src/triage-bot.js index bed30f62a536e..1f6c87ba0196c 100644 --- a/scripts/triage-bot/src/triage-bot.js +++ b/scripts/triage-bot/src/triage-bot.js @@ -1,4 +1,4 @@ -/** @typedef {import('./types').Api} Api */ +/** @import { Api } from "./types"; */ /** * diff --git a/scripts/webpack/src/webpack-resources.js b/scripts/webpack/src/webpack-resources.js index f166764b04af1..c73e01ef823e1 100644 --- a/scripts/webpack/src/webpack-resources.js +++ b/scripts/webpack/src/webpack-resources.js @@ -1,19 +1,21 @@ +/** @import { Configuration, WebpackPluginInstance, ModuleOptions } from "webpack" */ + /** - * @typedef {import("webpack").Configuration} WebpackConfig - * @typedef {WebpackConfig & { devServer?: object }} WebpackServeConfig - * @typedef {import("webpack").ModuleOptions} WebpackModule - * @typedef {import("webpack").Configuration['output']} WebpackOutput + * @typedef {Configuration & { devServer?: object }} WebpackServeConfig + * @typedef {Configuration['output']} WebpackOutput */ -const webpack = require('webpack'); -const path = require('path'); const fs = require('fs'); +const path = require('path'); + const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); +const webpack = require('webpack'); + // @ts-ignore - accessing package.json is a private API access, thus ignoring TS here const webpackVersion = /** @type {string} */ (require('webpack/package.json').version); - const { merge } = require('@fluentui/scripts-utils'); const { getDefaultEnvironmentVars, findGitRoot } = require('@fluentui/scripts-monorepo'); + const { getResolveAlias } = require('./getResolveAlias'); console.log(`Webpack version: ${webpackVersion}`); @@ -47,16 +49,16 @@ const api = { * @param {string} bundleName - Name for the bundle file. Usually either the unscoped name, or * the scoped name with a - instead of / between the parts. * @param {boolean} isProduction - whether it's a production build. - * @param {Partial} customConfig - partial custom webpack config, merged into each full config object. + * @param {Partial} customConfig - partial custom webpack config, merged into each full config object. * @param {boolean} [onlyProduction] - whether to only generate the production config. * @param {boolean} [excludeSourceMaps] - whether to skip generating source maps. * @param {boolean} [profile] - whether to profile the bundle using webpack-bundle-analyzer. - * @returns {WebpackConfig[]} array of configs. + * @returns {Configuration[]} array of configs. */ createConfig(bundleName, isProduction, customConfig, onlyProduction, excludeSourceMaps, profile) { const packageName = path.basename(process.cwd()); - /** @type {WebpackModule} */ + /** @type {ModuleOptions} */ const module = { noParse: [/autoit.js/], rules: excludeSourceMaps @@ -137,8 +139,8 @@ const api = { * @param {string} [options.entry] - custom entry if not `./lib/index.js` * @param {boolean} [options.isProduction] - whether it's a production build. * @param {boolean} [options.onlyProduction] - whether to generate the production config. - * @param {Partial} [options.customConfig] - partial custom webpack config, merged into each full config object - * @returns {WebpackConfig[]} + * @param {Partial} [options.customConfig] - partial custom webpack config, merged into each full config object + * @returns {Configuration[]} */ createBundleConfig(options) { const { @@ -325,7 +327,7 @@ module.exports = api; */ function getPlugins(bundleName, isProduction, profile) { const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; - /** @type {webpack.WebpackPluginInstance[]} */ + /** @type {WebpackPluginInstance[]} */ const plugins = [new webpack.DefinePlugin(getDefaultEnvironmentVars(isProduction))]; if (isProduction && profile) { From a9701159c9873f9fd713b81501e806e97f489a24 Mon Sep 17 00:00:00 2001 From: mainframev Date: Fri, 27 Dec 2024 14:21:07 +0100 Subject: [PATCH 11/11] chore: fix jest memory issue --- packages/react/jest.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react/jest.config.js b/packages/react/jest.config.js index c16374ebe05fe..e962c1bd0f4ae 100644 --- a/packages/react/jest.config.js +++ b/packages/react/jest.config.js @@ -3,6 +3,9 @@ const { createV8Config: createConfig } = require('@fluentui/scripts-jest'); const config = createConfig({ setupFiles: ['./config/tests.js'], snapshotSerializers: ['@fluentui/jest-serializer-merge-styles'], + // Keeps Jest from using too much memory as GC gets invokes more often, makes tests slower + // https://stackoverflow.com/a/75857711 + workerIdleMemoryLimit: '1024MB', }); module.exports = config;