forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'woocommerce:trunk' into trunk
- Loading branch information
Showing
25 changed files
with
244 additions
and
82 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
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,4 @@ | ||
Significance: minor | ||
Type: performance | ||
|
||
Remove duplicate css code from any woo scss file |
4 changes: 4 additions & 0 deletions
4
packages/js/product-editor/changelog/update-product-editor-description-editor-skeleton
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,4 @@ | ||
Significance: minor | ||
Type: add | ||
|
||
Added support for extension sidebars in modal block editor (description field). |
20 changes: 20 additions & 0 deletions
20
packages/js/product-editor/src/components/iframe-editor/RegisterStores.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import { useRegistry } from '@wordpress/data'; | ||
import { useEffect } from '@wordpress/element'; | ||
import { | ||
store as interfaceStore, | ||
// @ts-expect-error No types for this exist yet. | ||
} from '@wordpress/interface'; | ||
|
||
export const RegisterStores = () => { | ||
const registry = useRegistry(); | ||
|
||
useEffect( () => { | ||
// @ts-expect-error No types for this exist yet. | ||
registry.register( interfaceStore ); | ||
}, [ registry ] ); | ||
|
||
return null; | ||
}; |
2 changes: 2 additions & 0 deletions
2
packages/js/product-editor/src/components/iframe-editor/constants.ts
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,2 @@ | ||
export const SIDEBAR_COMPLEMENTARY_AREA_SCOPE = | ||
'woocommerce/product-editor/modal-block-editor/sidebar'; |
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
22 changes: 18 additions & 4 deletions
22
...ges/js/product-editor/src/components/iframe-editor/header-toolbar/more-menu/more-menu.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
38 changes: 0 additions & 38 deletions
38
...product-editor/src/components/iframe-editor/header-toolbar/show-block-inspector-panel.tsx
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -48,7 +48,6 @@ | |
&__sidebar { | ||
flex-shrink: 0; | ||
height: 100%; | ||
width: 280px; | ||
overflow: scroll; | ||
} | ||
|
||
|
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
1 change: 1 addition & 0 deletions
1
packages/js/product-editor/src/components/iframe-editor/index.ts
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './iframe-editor'; | ||
export * from './sidebar/plugin-sidebar'; |
1 change: 1 addition & 0 deletions
1
packages/js/product-editor/src/components/iframe-editor/sidebar/plugin-sidebar/index.js
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 @@ | ||
export * from './plugin-sidebar'; |
36 changes: 36 additions & 0 deletions
36
.../js/product-editor/src/components/iframe-editor/sidebar/plugin-sidebar/plugin-sidebar.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import { createElement } from '@wordpress/element'; | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore No types for this exist yet. | ||
// eslint-disable-next-line @woocommerce/dependency-group | ||
import { ComplementaryArea } from '@wordpress/interface'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import { SIDEBAR_COMPLEMENTARY_AREA_SCOPE } from '../../constants'; | ||
|
||
type PluginSidebarProps = { | ||
children: React.ReactNode; | ||
className?: string; | ||
closeLabel?: string; | ||
header?: React.ReactNode; | ||
icon?: string | React.ReactNode; | ||
identifier?: string; | ||
isActiveByDefault?: boolean; | ||
name?: string; | ||
title?: string; | ||
}; | ||
|
||
export function PluginSidebar( { className, ...props }: PluginSidebarProps ) { | ||
return ( | ||
<ComplementaryArea | ||
panelClassName={ className } | ||
className="woocommerce-iframe-editor__sidebar" | ||
scope={ SIDEBAR_COMPLEMENTARY_AREA_SCOPE } | ||
{ ...props } | ||
/> | ||
); | ||
} |
Oops, something went wrong.