docs: split admin widget zone to pages (#10719)

This commit is contained in:
Shahed Nasser
2024-12-24 12:29:41 +02:00
committed by GitHub
parent fd1afa8bc9
commit 041baafd38
57 changed files with 2992 additions and 2357 deletions
@@ -0,0 +1,93 @@
import { Table } from "docs-ui"
<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>
`customer_group.list.before`
</Table.Cell>
<Table.Cell>
Added at the top of the customer groups list page.
</Table.Cell>
<Table.Cell>
\-
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`customer_group.list.after`
</Table.Cell>
<Table.Cell>
Added at the bottom of the customer groups list page.
</Table.Cell>
<Table.Cell>
\-
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`customer_group.details.before`
</Table.Cell>
<Table.Cell>
Added at the top of the customer group details page.
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminCustomerGroup object
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`customer_group.details.after`
</Table.Cell>
<Table.Cell>
Added at the bottom of the customer group details page.
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminCustomerGroup object
}
```
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
@@ -0,0 +1,93 @@
import { Table } from "docs-ui"
<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>
`customer.list.before`
</Table.Cell>
<Table.Cell>
Added at the top of the customers list page.
</Table.Cell>
<Table.Cell>
\-
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`customer.list.after`
</Table.Cell>
<Table.Cell>
Added at the bottom of the customers list page.
</Table.Cell>
<Table.Cell>
\-
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`customer.details.before`
</Table.Cell>
<Table.Cell>
Added at the top of the customer details page.
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminCustomer object
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`customer.details.after`
</Table.Cell>
<Table.Cell>
Added at the bottom of the customer details page.
</Table.Cell>
<Table.Cell>
Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/framework/types`
```ts blockStyle="inline"
{
data, // AdminCustomer object
}
```
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
@@ -0,0 +1,20 @@
import CustomerContent from "./_content/customer.mdx"
import CustomerGroupContent from "./_content/customer-group.mdx"
export const metadata = {
title: `Customer Module's Admin Widget Injection Zones`,
}
# {metadata.title}
This reference shows all the injection zones in the Medusa Admin related to the Customer Module.
## Customer Pages
<CustomerContent />
---
## Customer Group Pages
<CustomerGroupContent />