-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update wordpress packages to a recent version (#78711)
* Add script which updates package.json resolutions field * Update @WordPress packages to latest versions in package.json resolutions * Update all @WordPress packages to the latest version * Update internal @wordpress/data peer dependency versions * Resolve most peer dependency issues * Use ComponentProps for some WP component type imports * Rework submenu popover to remove legacy offset props * Fix all Button variant type issues * Remove uneeded button wrapper component in info-tooltip * Fix type for close modal event in page pattern modal * Add ts expect error for ExternalLink required children prop * Add onChange type definition for CustomSelectControl for language-picker * Remove unused @types/wordpress__ packages * Remove uneeded entries in yarnrc.yml * Change another case of isPrimary to variant * Fix global styles package for new WordPress package versions (#78715) * @automattic/global-styles: Replace @wordpress/edit-site apis with new ones * Use fixed version of private-apis package to make __private symbol consistent * Use ExperimentalBlockEditorProvider to initialize Iframe * Fix unable to get fontFamilies * Fix styles * Fix style variation preview * Fix types * Replace mergeWith with deepmerge * Get rid of isEmpty and mapValues in global-stypes pkg * Add comments * Revert some changes * cleanEmptyObject: Fix type * transformStyles: Fix type * WP components: Fix types * Move EditorStyles into the children of the Iframe --------- Co-authored-by: arthur <[email protected]> * Delete several @WordPress module declarations that duplicate bundled types * Remove uneeded HTMLElement override * Remove Global Styles wp components type declaration override * Remove manage purchases renew toggle wp components type override * Add back html element hotfix * Remove imports of deleted type patch files * Fix type errors related to re-declaring Button prop types * Fix type errors related to ExternalLink requiring children * Fix type errors related to Modal isOpen prop * Remove registerPlugin override * Remove target blank from ExternalLink, because it isn't used by the component internally * Fix several prop issues related to ExternalLink (remove target, include children) * Add missing @types/wordpress__block-library package * Fix type errors related to Modal open prop * Remove size prop in a couple cases because it doesn't do anything * Fix type errors related to importing component prop types * Fix useState types for date time picker example * yarn dedupe * Fix type issue with NavigatorButton wrapper class name * Remove another wp components type override file * Update onNavigatorPathChange argument which is sometimes undefined * Fix a type issue with global styles context * Fix eslint issues with hooks in modified files * Remove unused translate import * Fix type issue where reader button couldn't be disabled * Remove disabled from a Button instance which is a link * Fix state type related to FontSizePicker * Fix odd issue with query control types * Fix issue with SlotFill not being typed * Remove broken types from ToolbarGroup as it's just an example * Fix issue with arr.includes undefined * Fix issue with combobox onchange arg type * Remove disabled from another button link * Cast translateresult to string for input to label * Cast string to more specific type for log tab * Fix onChange type for another combobox * Add missing onhover prop to component * Fix issue with Token value types * Add missing labels to notification toggles * Remove useless wrapper component * Add types to callback args * Remove uneeded ts expect err and update component props for combobox control * fix color type definition for global styles * Remove uneeded types in callback * Remove useless component wrapper * Utilize useLocalizeUrl() where necessary * Fix some test snapshots * Fix composite checkout tests by introducing field reset * dedupe * Fix most of the remaining TS errors * Remove uneeded wrapper components * Add expect-error to incorrect .then error * Assembler: Fix the main layout is broken (#79275) * Comment out wrapperClassName which causes a type error * Change a few HStack props from alignItems to alignment * Assembler: Fix the styles of the navigator button (#79338) * Lock file update * Make Button variants more consistent with trunk * Use better approach for picking anchor button types --------- Co-authored-by: arthur <[email protected]> Co-authored-by: Marin Atanasov <[email protected]>
- Loading branch information
Showing
200 changed files
with
2,962 additions
and
2,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ logFilters: | |
- level: discard | ||
pattern: "calypso@workspace:client provides +(react|react-dom) (*) with version 18.2.0, which doesn't satisfy what reakit and some of its descendants request" | ||
|
||
# TODO: Remove this once the react-easy-crop transitive dependency can be removed. (Likely after updating @wordpress/block-editor to a newer version.) | ||
# TODO: Remove this once the react-autosize-textarea transitive dependency has been fixed/updated to a version with React 18 support. | ||
- level: discard | ||
pattern: "calypso@workspace:client provides +(react|react-dom) (*) with version 18.2.0, which doesn't satisfy what @automattic/block-renderer and some of its descendants request" | ||
|
||
|
@@ -62,21 +62,27 @@ packageExtensions: | |
"@signal-noise/[email protected]": | ||
peerDependencies: | ||
postcss: "*" | ||
"@types/[email protected]": | ||
"@wordpress/[email protected]": | ||
peerDependencies: | ||
react: "*" | ||
"@types/[email protected]": | ||
react-dom: "*" | ||
"@wordpress/[email protected]": | ||
peerDependencies: | ||
react: "*" | ||
"@wordpress/data-controls@2.23.0": | ||
react-dom: "*" | ||
"@wordpress/data-controls@3.4.0": | ||
peerDependencies: | ||
react: "*" | ||
"@wordpress/notices@3.23.0": | ||
"@wordpress/notices@4.3.0": | ||
peerDependencies: | ||
react: "*" | ||
"@wordpress/[email protected]": | ||
"@wordpress/[email protected]": | ||
peerDependencies: | ||
react-dom: "*" | ||
"@wordpress/[email protected]": | ||
peerDependencies: | ||
postcss: "*" | ||
"[email protected]": | ||
peerDependencies: | ||
react: "*" | ||
[email protected]: | ||
peerDependencies: | ||
core-js-bundle: "*" | ||
|
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
9 changes: 1 addition & 8 deletions
9
...lkit-plugin/wpcom-block-editor-nav-sidebar/src/components/toggle-sidebar-button/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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
Oops, something went wrong.