-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web-components): update fast dependencies and fix un-allowed attr…
…ibutes on fluent-divider (#28837) * fix(web-components): update fast depenencies and fix unallowed attributes on fluent-divider * lock alpha/beta package versions * lock versions of fast pckgs * reference applyMixin locally to avoid package drilling
- Loading branch information
1 parent
fd54793
commit 1e0ade5
Showing
7 changed files
with
147 additions
and
13 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-web-components-cba21cee-a030-4c94-adc9-b4d623533f00.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "fix(web-components): update latest versions of fast packages and fix unallowed attributes issue for fluent-divider", | ||
"packageName": "@fluentui/web-components", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { AttributeConfiguration } from '@microsoft/fast-element'; | ||
|
||
/** | ||
* Apply mixins to a constructor. | ||
* Sourced from {@link https://www.typescriptlang.org/docs/handbook/mixins.html | TypeScript Documentation }. | ||
* | ||
* TODO: Remove with https://github.com/microsoft/fast/pull/6797 | ||
* This was used for Badge where start/end was not yet implemented. | ||
* The method itself was deprecated as it was largely intended to be "internals" for Fast Foundation. | ||
* Adding here to avoid breaking of the existing API. | ||
* @internal | ||
*/ | ||
export function applyMixins(derivedCtor: any, ...baseCtors: any[]) { | ||
const derivedAttributes = AttributeConfiguration.locate(derivedCtor); | ||
|
||
baseCtors.forEach(baseCtor => { | ||
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => { | ||
if (name !== 'constructor') { | ||
Object.defineProperty( | ||
derivedCtor.prototype, | ||
name, | ||
/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */ | ||
Object.getOwnPropertyDescriptor(baseCtor.prototype, name)!, | ||
); | ||
} | ||
}); | ||
|
||
const baseAttributes = AttributeConfiguration.locate(baseCtor); | ||
baseAttributes.forEach(x => derivedAttributes.push(x)); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2669,23 +2669,23 @@ | |
eslint-plugin-react "7.24.0" | ||
eslint-plugin-security "1.4.0" | ||
|
||
"@microsoft/[email protected].23", "@microsoft/fast-element@^2.0.0-beta.23": | ||
version "2.0.0-beta.23" | ||
resolved "https://registry.yarnpkg.com/@microsoft/fast-element/-/fast-element-2.0.0-beta.23.tgz#08cc4b40f9d2b418a27727d2604635c46c2b123c" | ||
integrity sha512-ZNrWz+qY6kYSiiy6TdMV9p94QbxNILWuFgDndf24/is+aB+IemYwqLVPUKzTb8tX/zUMQz8aOtJ06/qvYbIdAQ== | ||
"@microsoft/[email protected].25": | ||
version "2.0.0-beta.25" | ||
resolved "https://registry.yarnpkg.com/@microsoft/fast-element/-/fast-element-2.0.0-beta.25.tgz#14af14920ea5d4c24f1ba3f3ee417307aadbaa18" | ||
integrity sha512-n8elNmwUXwMgB4ixNdAJqTY5yeSAN9siROojscPgWpYK+aORU4w3Kqr6nqJk6yFgFbPFCwt1jJSt5Fkbd7t1eQ== | ||
|
||
"@microsoft/fast-element@^1.11.1": | ||
version "1.13.0" | ||
resolved "https://registry.yarnpkg.com/@microsoft/fast-element/-/fast-element-1.13.0.tgz#d390ff13697064a48dc6ad6bb332a5f5489f73f8" | ||
integrity sha512-iFhzKbbD0cFRo9cEzLS3Tdo9BYuatdxmCEKCpZs1Cro/93zNMpZ/Y9/Z7SknmW6fhDZbpBvtO8lLh9TFEcNVAQ== | ||
|
||
"@microsoft/fast-foundation@^3.0.0-alpha.27": | ||
version "3.0.0-alpha.27" | ||
resolved "https://registry.yarnpkg.com/@microsoft/fast-foundation/-/fast-foundation-3.0.0-alpha.27.tgz#cb91af92fb231710f7c346b11db7afe241ff8bb4" | ||
integrity sha512-tYDrHWMDNpi3+3RaRZ79T+6VQubYSxxutxELD88WXPEYiafjgext4AH9MvR+2pUpdfrNPcJLyuEQKVvcx6oWuQ== | ||
"@microsoft/[email protected].29": | ||
version "3.0.0-alpha.29" | ||
resolved "https://registry.yarnpkg.com/@microsoft/fast-foundation/-/fast-foundation-3.0.0-alpha.29.tgz#40bc7250982c50d04a8c7b5707986cb0ebb1e07d" | ||
integrity sha512-ZWVMhSL5KNskutCTtK2rX2BaL4A9fCHLw8pSUyxaIW9YLxWFEFHBvJ13Ax1JxTQYlXGqM5yMP/74qokEUpZWzw== | ||
dependencies: | ||
"@floating-ui/dom" "^1.0.3" | ||
"@microsoft/fast-element" "2.0.0-beta.23" | ||
"@microsoft/fast-element" "2.0.0-beta.25" | ||
"@microsoft/fast-web-utilities" "^6.0.0" | ||
tabbable "^5.2.0" | ||
tslib "^2.4.0" | ||
|