docs: update injection zones for v2.0.5 (#10225)

This commit is contained in:
Shahed Nasser
2024-11-25 13:27:54 +02:00
committed by GitHub
parent eea0652cfa
commit 8d1057df41
2 changed files with 113 additions and 1 deletions

View File

@@ -944,6 +944,118 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body>
</Table>
## Product Variant Pages
<Note>
This injection zone is only available after [Medusa v2.0.5](https://github.com/medusajs/medusa/releases/tag/v2.0.5).
</Note>
<Table>
<Table.Header>
<Table.Row>
<Table.HeaderCell className="w-1/3">Injection Zone Name</Table.HeaderCell>
<Table.HeaderCell className="w-1/3">Description</Table.HeaderCell>
<Table.HeaderCell className="w-1/3">Additional Props</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
<Table.Row>
<Table.Cell>
`product_variant.details.before`
</Table.Cell>
<Table.Cell>
Added at the top of the product variant details page.
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminProductVariant>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminProductVariant object
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product_variant.details.after`
</Table.Cell>
<Table.Cell>
Added at the bottom of the product variant details page
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminProductVariant>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminProductVariant object
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product_variant.details.side.before`
</Table.Cell>
<Table.Cell>
Added at the top of the second column in the product variant details page.
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminProductVariant>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminProductVariant object
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product_variant.details.side.after`
</Table.Cell>
<Table.Cell>
Added at the bottom of the second column in the product variant details page.
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminProductVariant>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminProductVariant object
}
```
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
## Product Collection Pages
<Table>

View File

@@ -233,7 +233,7 @@ export const generatedEditDates = {
"app/architectural-modules/file/page.mdx": "2024-07-01T10:21:19+03:00",
"app/architectural-modules/event/page.mdx": "2024-05-28T13:25:03+03:00",
"app/architectural-modules/cache/create/page.mdx": "2024-10-16T08:51:35.074Z",
"app/admin-widget-injection-zones/page.mdx": "2024-11-14T15:10:36.495Z",
"app/admin-widget-injection-zones/page.mdx": "2024-11-22T11:00:30.159Z",
"app/architectural-modules/notification/page.mdx": "2024-10-15T12:51:28.735Z",
"app/architectural-modules/event/create/page.mdx": "2024-11-12T11:54:51.583Z",
"references/core_flows/Order/functions/core_flows.Order.orderEditUpdateItemQuantityValidationStep/page.mdx": "2024-08-20T00:10:58.913Z",