diff --git a/CHANGELOG.md b/CHANGELOG.md index bc6101e7..1cf3ec97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. + +## [3.0.4] - 21.03.2023 + +### Changed + +- Added `contentPadding` prop to component section to provide the ability add/remove the card content padding. + ## [3.0.3] - 25.01.2023 - Added the method `location.get` for getting the actual location ID inside the app diff --git a/docs/docs/guide/4_concepts/component-sections.md b/docs/docs/guide/4_concepts/component-sections.md index 89299b2d..5522ecdc 100644 --- a/docs/docs/guide/4_concepts/component-sections.md +++ b/docs/docs/guide/4_concepts/component-sections.md @@ -17,7 +17,9 @@ if (location.is(location.MAIN_HIDDEN)) { title: 'Hello from plugin', subtitle: 'I am before the properties card', // Some components can render a custom view. In this case the extension can render custom content in the card. - locationId: 'my-app-card-before-properties' + locationId: 'my-app-card-before-properties', + // Add/remove padding of the card content + contentPadding: true, } }) } @@ -29,4 +31,4 @@ if (sw.location.is('my-app-card-before-properties')) { } ``` -![Component Sections screenshot example](./assets/component-sections-example.png) \ No newline at end of file +![Component Sections screenshot example](./assets/component-sections-example.png) diff --git a/package.json b/package.json index 392a70af..c9d53d43 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@shopware-ag/admin-extension-sdk", "license": "MIT", - "version": "3.0.3", + "version": "3.0.4", "repository": "git://github.com/shopware/admin-extension-sdk.git", "description": "The SDK for App iframes to communicate with the Shopware Administration", "keywords": [ diff --git a/src/ui/componentSection/index.ts b/src/ui/componentSection/index.ts index 9c0f9a2f..413583e7 100644 --- a/src/ui/componentSection/index.ts +++ b/src/ui/componentSection/index.ts @@ -29,5 +29,6 @@ interface cardComponentRender { title?: string, subtitle?: string, locationId: string, + contentPadding?: boolean, }, }