Skip to content
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

docs: update injection zones for v2.0.5 #10225

Merged
merged 1 commit into from
Nov 25, 2024
Merged
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
112 changes: 112 additions & 0 deletions www/apps/resources/app/admin-widget-injection-zones/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion www/apps/resources/generated/edit-dates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading