Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions docs/docs/guide/4_concepts/component-sections.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
})
}
Expand All @@ -29,4 +31,4 @@ if (sw.location.is('my-app-card-before-properties')) {
}
```

![Component Sections screenshot example](./assets/component-sections-example.png)
![Component Sections screenshot example](./assets/component-sections-example.png)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
1 change: 1 addition & 0 deletions src/ui/componentSection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ interface cardComponentRender {
title?: string,
subtitle?: string,
locationId: string,
contentPadding?: boolean,
},
}