-
Notifications
You must be signed in to change notification settings - Fork 3
build: Upgrade dependencies #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from 18 commits
16c6d2f
aec03f8
4d84e32
dd89382
5fe01ea
acf435c
f14cc28
6fc0ca5
8e52ed5
aa60f53
2a1b33b
f0f168c
191d555
6dced9e
5f619c6
e9f99f4
efd1b9b
a01ab67
5ce59fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| legacy-peer-deps=true | ||
Large diffs are not rendered by default.
This file was deleted.
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This replaces |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| diff --git a/node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js b/node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js | ||
| index 59f2a09..e609306 100644 | ||
| --- a/node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js | ||
| +++ b/node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js | ||
| @@ -23,6 +23,10 @@ function InserterListItem({ | ||
| ...props | ||
| }) { | ||
| const isDraggingRef = useRef(false); | ||
| + const isTouchDeviceRef = useRef( | ||
| + window.matchMedia( '(hover: none)' ).matches || | ||
| + window.matchMedia( '(pointer: coarse)' ).matches | ||
| + ); | ||
| const itemIconStyle = item.icon ? { | ||
| backgroundColor: item.icon.background, | ||
| color: item.icon.foreground | ||
| @@ -96,7 +100,7 @@ function InserterListItem({ | ||
| } | ||
| }, | ||
| onMouseEnter: () => { | ||
| - if (isDraggingRef.current) { | ||
| + if (isDraggingRef.current || isTouchDeviceRef.current) { | ||
| return; | ||
| } | ||
| onHover(item); | ||
| diff --git a/node_modules/@wordpress/block-editor/build-module/components/inserter/index.js b/node_modules/@wordpress/block-editor/build-module/components/inserter/index.js | ||
| index d762257..8ea6b39 100644 | ||
| --- a/node_modules/@wordpress/block-editor/build-module/components/inserter/index.js | ||
| +++ b/node_modules/@wordpress/block-editor/build-module/components/inserter/index.js | ||
| @@ -174,8 +174,9 @@ var Inserter = class extends Component { | ||
| contentClassName: clsx("block-editor-inserter__popover", { | ||
| "is-quick": isQuick | ||
| }), | ||
| - popoverProps: { position, shift: true }, | ||
| + popoverProps: { ...this.props.popoverProps, position, shift: true }, | ||
| onToggle: this.onToggle, | ||
| + open: this.props.open, | ||
| expandOnMobile: true, | ||
| headerTitle: __("Add a block"), | ||
| renderToggle: this.renderToggle, | ||
| diff --git a/node_modules/@wordpress/block-editor/build-module/components/provider/index.js b/node_modules/@wordpress/block-editor/build-module/components/provider/index.js | ||
| index ef8110e..8b3d55f 100644 | ||
| --- a/node_modules/@wordpress/block-editor/build-module/components/provider/index.js | ||
| +++ b/node_modules/@wordpress/block-editor/build-module/components/provider/index.js | ||
| @@ -91,7 +91,7 @@ var ExperimentalBlockEditorProvider = withRegistryProvider( | ||
| } | ||
| ); | ||
| var BlockEditorProvider = (props) => { | ||
| - return /* @__PURE__ */ jsx(ExperimentalBlockEditorProvider, { ...props, stripExperimentalSettings: true, children: props.children }); | ||
| + return /* @__PURE__ */ jsx(ExperimentalBlockEditorProvider, { ...props, stripExperimentalSettings: false, children: props.children }); | ||
| }; | ||
| var provider_default = BlockEditorProvider; | ||
| export { | ||
| diff --git a/node_modules/@wordpress/block-editor/package.json b/node_modules/@wordpress/block-editor/package.json | ||
| index 589edd8..84748cf 100644 | ||
| --- a/node_modules/@wordpress/block-editor/package.json | ||
| +++ b/node_modules/@wordpress/block-editor/package.json | ||
| @@ -31,7 +31,9 @@ | ||
| "require": "./build/index.js" | ||
| }, | ||
| "./package.json": "./package.json", | ||
| - "./build-style/": "./build-style/" | ||
| + "./build-style/": "./build-style/", | ||
| + "./build-module/components/inserter/media-tab/*": "./build-module/components/inserter/media-tab/*", | ||
| + "./build-module/components/inserter/hooks/*": "./build-module/components/inserter/hooks/*" | ||
|
Comment on lines
+63
to
+64
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given GutenbergKit accesses private modules paths, we must explicitly export these modules now that |
||
| }, | ||
| "react-native": "src/index", | ||
| "wpScript": true, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No changes. This existing patch was recreated for the new |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| diff --git a/node_modules/@wordpress/block-library/build-module/image/image.js b/node_modules/@wordpress/block-library/build-module/image/image.js | ||
| index 473b653..8a52e9e 100644 | ||
| index 14d14ab..6bab7fc 100644 | ||
| --- a/node_modules/@wordpress/block-library/build-module/image/image.js | ||
| +++ b/node_modules/@wordpress/block-library/build-module/image/image.js | ||
| @@ -282,7 +282,7 @@ export default function Image({ | ||
| @@ -311,7 +311,7 @@ function Image({ | ||
| const [hasImageErrored, setHasImageErrored] = useState(false); | ||
| const hasNonContentControls = blockEditingMode === 'default'; | ||
| const isContentOnlyMode = blockEditingMode === 'contentOnly'; | ||
| const hasNonContentControls = blockEditingMode === "default"; | ||
| const isContentOnlyMode = blockEditingMode === "contentOnly"; | ||
| - const isResizable = allowResize && hasNonContentControls && !isWideAligned && isLargeViewport; | ||
| + const isResizable = allowResize && hasNonContentControls && !isWideAligned; | ||
| const imageSizeOptions = imageSizes.filter(({ | ||
| slug | ||
| }) => image?.media_details?.sizes?.[slug]?.source_url).map(({ | ||
| const imageSizeOptions = imageSizes.filter( | ||
| ({ slug }) => image?.media_details?.sizes?.[slug]?.source_url | ||
| ).map(({ name, slug }) => ({ value: slug, label: name })); |
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This patch was removed as it is no longer necessary after WordPress/gutenberg@01d3959. |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| diff --git a/node_modules/@wordpress/editor/package.json b/node_modules/@wordpress/editor/package.json | ||
| index 3a66d82..43a3e7d 100644 | ||
| --- a/node_modules/@wordpress/editor/package.json | ||
| +++ b/node_modules/@wordpress/editor/package.json | ||
| @@ -30,7 +30,8 @@ | ||
| "import": "./build-module/index.js", | ||
| "require": "./build/index.js" | ||
| }, | ||
| - "./package.json": "./package.json" | ||
| + "./package.json": "./package.json", | ||
| + "./build-style/*": "./build-style/*" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| "react-native": "src/index", | ||
| "wpScript": true, | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| diff --git a/node_modules/@wordpress/format-library/package.json b/node_modules/@wordpress/format-library/package.json | ||
| index b678801..bb4adbc 100644 | ||
| --- a/node_modules/@wordpress/format-library/package.json | ||
| +++ b/node_modules/@wordpress/format-library/package.json | ||
| @@ -29,7 +29,8 @@ | ||
| "import": "./build-module/index.js", | ||
| "require": "./build/index.js" | ||
| }, | ||
| - "./package.json": "./package.json" | ||
| + "./package.json": "./package.json", | ||
| + "./build-style/*": "./build-style/*" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| "react-native": "src/index", | ||
| "wpScript": true, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No changes. This existing patch was recreated for the new |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| diff --git a/node_modules/@wordpress/rich-text/build-module/component/event-listeners/prevent-focus-capture.js b/node_modules/@wordpress/rich-text/build-module/component/event-listeners/prevent-focus-capture.js | ||
| index 3b885f5..c2ea3d0 100644 | ||
| index 742296f..0617940 100644 | ||
| --- a/node_modules/@wordpress/rich-text/build-module/component/event-listeners/prevent-focus-capture.js | ||
| +++ b/node_modules/@wordpress/rich-text/build-module/component/event-listeners/prevent-focus-capture.js | ||
| @@ -36,9 +36,11 @@ export function preventFocusCapture() { | ||
| @@ -26,9 +26,11 @@ function preventFocusCapture() { | ||
| } | ||
| defaultView.addEventListener('pointerdown', onPointerDown); | ||
| defaultView.addEventListener('pointerup', onPointerUp); | ||
| + defaultView.addEventListener('pointercancel', onPointerUp); | ||
| defaultView.addEventListener("pointerdown", onPointerDown); | ||
| defaultView.addEventListener("pointerup", onPointerUp); | ||
| + defaultView.addEventListener("pointercancel", onPointerUp); | ||
| return () => { | ||
| defaultView.removeEventListener('pointerdown', onPointerDown); | ||
| defaultView.removeEventListener('pointerup', onPointerUp); | ||
| + defaultView.removeEventListener('pointercancel', onPointerUp); | ||
| defaultView.removeEventListener("pointerdown", onPointerDown); | ||
| defaultView.removeEventListener("pointerup", onPointerUp); | ||
| + defaultView.removeEventListener("pointercancel", onPointerUp); | ||
| }; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,7 +118,7 @@ const EditorToolbar = ( { className } ) => { | |
| <div className={ classes }> | ||
| <Toolbar | ||
| label="Editor toolbar" | ||
| variant="unstyled" | ||
| variant="toolbar" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ref={ scrollViewRef } | ||
| className={ scrollViewClasses } | ||
| > | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used to fix a
@typescript-eslint/utilsdependency conflict. See e9f99f4.