docs: redesign tables (#8653)

* docs: redesign tables

* fixes
This commit is contained in:
Shahed Nasser
2024-08-20 14:47:36 +02:00
committed by GitHub
parent 73905c14b1
commit b8ba020cd5
33 changed files with 226 additions and 208 deletions
@@ -56,8 +56,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body> </Table.Body>
</Table> </Table>
---
## Order Pages ## Order Pages
<Table> <Table>
@@ -118,7 +116,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Order object data, // Order object
} }
@@ -141,7 +139,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Order object data, // Order object
} }
@@ -164,7 +162,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Order object data, // Order object
} }
@@ -187,7 +185,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminOrder>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Order object data, // Order object
} }
@@ -198,8 +196,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body> </Table.Body>
</Table> </Table>
---
## Customer Pages ## Customer Pages
<Table> <Table>
@@ -260,7 +256,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Customer object data, // Customer object
} }
@@ -283,7 +279,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminCustomer>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Customer object data, // Customer object
} }
@@ -340,7 +336,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // CustomerGroup object data, // CustomerGroup object
} }
@@ -363,7 +359,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminCustomerGroup>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // CustomerGroup object data, // CustomerGroup object
} }
@@ -374,8 +370,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body> </Table.Body>
</Table> </Table>
---
## Product Pages ## Product Pages
<Table> <Table>
@@ -436,7 +430,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Product object data, // Product object
} }
@@ -459,7 +453,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Product object data, // Product object
} }
@@ -482,7 +476,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Product object data, // Product object
} }
@@ -505,7 +499,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProduct>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Product object data, // Product object
} }
@@ -562,7 +556,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCollection>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProductCollection>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ProductCollection object data, // ProductCollection object
} }
@@ -585,7 +579,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCollection>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProductCollection>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ProductCollection object data, // ProductCollection object
} }
@@ -642,7 +636,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ProductCategory object data, // ProductCategory object
} }
@@ -665,7 +659,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ProductCategory object data, // ProductCategory object
} }
@@ -688,7 +682,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ProductCategory object data, // ProductCategory object
} }
@@ -711,7 +705,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminProductCategory>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ProductCategory object data, // ProductCategory object
} }
@@ -722,8 +716,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body> </Table.Body>
</Table> </Table>
---
## Pricing Pages ## Pricing Pages
<Table> <Table>
@@ -784,7 +776,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // PriceList object data, // PriceList object
} }
@@ -807,7 +799,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // PriceList object data, // PriceList object
} }
@@ -830,7 +822,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // PriceList object data, // PriceList object
} }
@@ -853,7 +845,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PriceListDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // PriceList object data, // PriceList object
} }
@@ -864,8 +856,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body> </Table.Body>
</Table> </Table>
---
## Promotion Pages ## Promotion Pages
<Table> <Table>
@@ -926,7 +916,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Promotion object data, // Promotion object
} }
@@ -949,7 +939,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Promotion object data, // Promotion object
} }
@@ -972,7 +962,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Promotion object data, // Promotion object
} }
@@ -995,7 +985,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<PromotionDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Promotion object data, // Promotion object
} }
@@ -1052,7 +1042,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Campaign object data, // Campaign object
} }
@@ -1075,7 +1065,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Campaign object data, // Campaign object
} }
@@ -1098,7 +1088,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Campaign object data, // Campaign object
} }
@@ -1121,7 +1111,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<CampaignDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Campaign object data, // Campaign object
} }
@@ -1132,8 +1122,6 @@ This documentation page includes the list of injection zones you can add Admin W
</Table.Body> </Table.Body>
</Table> </Table>
---
## Setting Pages ## Setting Pages
### User Pages ### User Pages
@@ -1196,7 +1184,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // User object data, // User object
} }
@@ -1219,7 +1207,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // User object data, // User object
} }
@@ -1256,7 +1244,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStoreDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ExtendedStoreDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Store object data, // Store object
} }
@@ -1279,7 +1267,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStoreDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ExtendedStoreDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Store object data, // Store object
} }
@@ -1316,7 +1304,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // User object data, // User object
} }
@@ -1339,7 +1327,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<UserDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // User object data, // User object
} }
@@ -1410,7 +1398,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminRegion>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminRegion>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Region object data, // Region object
} }
@@ -1433,7 +1421,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<AdminRegion>` imported from `@medusajs/types` Type `DetailWidgetProps<AdminRegion>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // Region object data, // Region object
} }
@@ -1504,7 +1492,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ShippingProfileDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ShippingProfileDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ShippingProfile object data, // ShippingProfile object
} }
@@ -1527,7 +1515,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ShippingProfileDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ShippingProfileDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ShippingProfile object data, // ShippingProfile object
} }
@@ -1598,7 +1586,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // StockLocation object data, // StockLocation object
} }
@@ -1621,7 +1609,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // StockLocation object data, // StockLocation object
} }
@@ -1644,7 +1632,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // StockLocation object data, // StockLocation object
} }
@@ -1667,7 +1655,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ExtendedStockLocationDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // StockLocation object data, // StockLocation object
} }
@@ -1738,7 +1726,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<SalesChannelResponse>` imported from `@medusajs/types` Type `DetailWidgetProps<SalesChannelResponse>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // SalesChannel object data, // SalesChannel object
} }
@@ -1761,7 +1749,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<SalesChannelResponse>` imported from `@medusajs/types` Type `DetailWidgetProps<SalesChannelResponse>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // SalesChannel object data, // SalesChannel object
} }
@@ -1832,7 +1820,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ReservationItem object data, // ReservationItem object
} }
@@ -1855,7 +1843,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ReservationItem object data, // ReservationItem object
} }
@@ -1878,7 +1866,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ReservationItem object data, // ReservationItem object
} }
@@ -1901,7 +1889,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<ReservationItemDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ReservationItem object data, // ReservationItem object
} }
@@ -1972,7 +1960,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ApiKeyResponse>` imported from `@medusajs/types` Type `DetailWidgetProps<ApiKeyResponse>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ApiKey object data, // ApiKey object
} }
@@ -1995,7 +1983,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<ApiKeyResponse>` imported from `@medusajs/types` Type `DetailWidgetProps<ApiKeyResponse>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // ApiKey object data, // ApiKey object
} }
@@ -2066,7 +2054,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<WorkflowExecutionDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<WorkflowExecutionDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // WorkflowExecution object data, // WorkflowExecution object
} }
@@ -2089,7 +2077,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<WorkflowExecutionDTO>` imported from `@medusajs/types` Type `DetailWidgetProps<WorkflowExecutionDTO>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // WorkflowExecution object data, // WorkflowExecution object
} }
@@ -2160,7 +2148,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<TaxRegionResponse>` imported from `@medusajs/types` Type `DetailWidgetProps<TaxRegionResponse>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // TaxRegion object data, // TaxRegion object
} }
@@ -2183,7 +2171,7 @@ This documentation page includes the list of injection zones you can add Admin W
Type `DetailWidgetProps<TaxRegionResponse>` imported from `@medusajs/types` Type `DetailWidgetProps<TaxRegionResponse>` imported from `@medusajs/types`
```ts noCopy noReport ```ts blockStyle="inline"
{ {
data, // TaxRegion object data, // TaxRegion object
} }
@@ -159,8 +159,6 @@ CACHE_REDIS_URL=<YOUR_REDIS_URL>
</Table.Body> </Table.Body>
</Table> </Table>
---
## Test the Module ## Test the Module
To test the module, start the Medusa application: To test the module, start the Medusa application:
@@ -207,8 +207,6 @@ EVENTS_REDIS_URL=<YOUR_REDIS_URL>
</Table.Body> </Table.Body>
</Table> </Table>
---
## Test the Module ## Test the Module
To test the module, start the Medusa application: To test the module, start the Medusa application:
@@ -333,8 +333,6 @@ module.exports = {
</Table.Body> </Table.Body>
</Table> </Table>
---
## Troubleshooting ## Troubleshooting
<DetailsList <DetailsList
@@ -100,8 +100,6 @@ SENDGRID_FROM=<YOUR_SENDGRID_FROM>
</Table.Body> </Table.Body>
</Table> </Table>
---
## SendGrid Templates ## SendGrid Templates
When you send a notification, you must specify the ID of the template to use in SendGrid. When you send a notification, you must specify the ID of the template to use in SendGrid.
@@ -164,8 +164,6 @@ WE_REDIS_URL=<YOUR_REDIS_URL>
</Table.Body> </Table.Body>
</Table> </Table>
---
## Test the Module ## Test the Module
To test the module, start the Medusa application: To test the module, start the Medusa application:
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted API key // the ID of the deleted API key
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted auth identity // the ID of the deleted auth identity
id, id,
@@ -76,7 +76,7 @@ const modules = {
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport noLineNumbers ```ts blockStyle="inline"
const hashConfig = { const hashConfig = {
logN: 15, logN: 15,
r: 8, r: 8,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted cart // the ID of the deleted cart
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted address // the ID of the deleted address
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted line item // the ID of the deleted line item
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted line item adjustment // the ID of the deleted line item adjustment
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted line item tax line // the ID of the deleted line item tax line
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted shipping method // the ID of the deleted shipping method
id, id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted shipping method adjustment // the ID of the deleted shipping method adjustment
id, id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted shipping method tax line // the ID of the deleted shipping method tax line
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted currency // the ID of the deleted currency
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted customer // the ID of the deleted customer
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted address // the ID of the deleted address
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted customer group // the ID of the deleted customer group
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted customer group customer // the ID of the deleted customer group customer
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the fulfillment set // the ID of the fulfillment set
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted fulfillment set // the ID of the deleted fulfillment set
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the service zone // the ID of the service zone
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted service zone // the ID of the deleted service zone
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the geo zone // the ID of the geo zone
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted geo zone // the ID of the deleted geo zone
id, id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the shipping option // the ID of the shipping option
id, id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the shipping profile // the ID of the shipping profile
id, id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the shipping option rule // the ID of the shipping option rule
id, id,
@@ -220,7 +220,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the shipping option type // the ID of the shipping option type
id, id,
@@ -242,7 +242,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the fulfillment provider // the ID of the fulfillment provider
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the inventory item // the ID of the inventory item
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the inventory item // the ID of the inventory item
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted inventory item // the ID of the deleted inventory item
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the inventory level // the ID of the inventory level
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the inventory level // the ID of the inventory level
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted inventory level // the ID of the deleted inventory level
id, id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the reservation item // the ID of the reservation item
id, id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the reservation item // the ID of the reservation item
id, id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted reservation item // the ID of the deleted reservation item
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted order // the ID of the deleted order
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted address // the ID of the deleted address
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted line item // the ID of the deleted line item
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted line item adjustment // the ID of the deleted line item adjustment
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted line item tax line // the ID of the deleted line item tax line
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted shipping method // the ID of the deleted shipping method
id, id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted shipping method adjustment // the ID of the deleted shipping method adjustment
id, id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted shipping method tax line // the ID of the deleted shipping method tax line
id, id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted transaction // the ID of the deleted transaction
id, id,
@@ -220,7 +220,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted order change // the ID of the deleted order change
id, id,
@@ -242,7 +242,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted order change action // the ID of the deleted order change action
id, id,
@@ -264,7 +264,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted order item // the ID of the deleted order item
id, id,
@@ -286,7 +286,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted order summary // the ID of the deleted order summary
id, id,
@@ -308,7 +308,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted order shipping method // the ID of the deleted order shipping method
id, id,
@@ -79,8 +79,6 @@ To check the outstanding amount of the order, its transaction amounts are summed
</Table.Body> </Table.Body>
</Table> </Table>
---
## Transaction Reference ## Transaction Reference
The Order Module doesnt provide payment processing functionalities, so it doesnt store payments that can be processed. Payment functionalities are provided by the [Payment Module](../../payment/page.mdx). The Order Module doesnt provide payment processing functionalities, so it doesnt store payments that can be processed. Payment functionalities are provided by the [Payment Module](../../payment/page.mdx).
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted payment // the ID of the deleted payment
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted payment collection // the ID of the deleted payment collection
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted payment session // the ID of the deleted payment session
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted capture // the ID of the deleted capture
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted refund // the ID of the deleted refund
id, id,
@@ -93,8 +93,6 @@ In this document, you'll learn about the options of the Payment Module.
</Table.Body> </Table.Body>
</Table> </Table>
---
## providers ## providers
The `providers` option is an array of payment module providers. The `providers` option is an array of payment module providers.
@@ -197,8 +197,6 @@ STRIPE_API_KEY=<YOUR_STRIPE_API_KEY>
</Table.Body> </Table.Body>
</Table> </Table>
---
## Use Provider ## Use Provider
To use the Stripe provider, create a payment session for the provider: To use the Stripe provider, create a payment session for the provider:
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted price set // the ID of the deleted price set
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted price list // the ID of the deleted price list
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted price list rule // the ID of the deleted price list rule
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted price list rule value // the ID of the deleted price list rule value
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted price rule // the ID of the deleted price rule
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted price // the ID of the deleted price
id, id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted price set rule type // the ID of the deleted price set rule type
id, id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted rule type // the ID of the deleted rule type
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the product // the ID of the product
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the product // the ID of the product
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted product // the ID of the deleted product
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the product collection // the ID of the product collection
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the product collection // the ID of the product collection
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted product collection // the ID of the deleted product collection
id, id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the product category // the ID of the product category
id, id,
@@ -176,7 +176,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the product category // the ID of the product category
id, id,
@@ -198,7 +198,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted product category // the ID of the deleted product category
id, id,
@@ -220,7 +220,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted product option // the ID of the deleted product option
id, id,
@@ -242,7 +242,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted product tag // the ID of the deleted product tag
id, id,
@@ -264,7 +264,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted product type // the ID of the deleted product type
id, id,
@@ -286,7 +286,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted product variant // the ID of the deleted product variant
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted promotion // the ID of the deleted promotion
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted application method // the ID of the deleted application method
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted campaign // the ID of the deleted campaign
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted campaign budget // the ID of the deleted campaign budget
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted promotion rule // the ID of the deleted promotion rule
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted promotion rule value // the ID of the deleted promotion rule value
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted region // the ID of the deleted region
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted country // the ID of the deleted country
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted sales channel // the ID of the deleted sales channel
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted stock location // the ID of the deleted stock location
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted stock location address // the ID of the deleted stock location address
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted store // the ID of the deleted store
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted tax rate // the ID of the deleted tax rate
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted tax region // the ID of the deleted tax region
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted tax rate rule // the ID of the deleted tax rate rule
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted tax provider // the ID of the deleted tax provider
id, id,
@@ -22,7 +22,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the user // the ID of the user
id, id,
@@ -44,7 +44,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the user // the ID of the user
id, id,
@@ -66,7 +66,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted user // the ID of the deleted user
id, id,
@@ -88,7 +88,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the invite // the ID of the invite
id, id,
@@ -110,7 +110,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the invite // the ID of the invite
id, id,
@@ -132,7 +132,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the deleted invite // the ID of the deleted invite
id, id,
@@ -154,7 +154,7 @@ import { Table } from "docs-ui"
</Table.Cell> </Table.Cell>
<Table.Cell> <Table.Cell>
```ts noCopy noReport ```ts blockStyle="inline"
{ {
// the ID of the invite // the ID of the invite
id, id,
+3 -3
View File
@@ -1,13 +1,13 @@
import { InformationCircleSolid } from "@medusajs/icons" import { InformationCircleSolid } from "@medusajs/icons"
import { Table, Tooltip } from "@medusajs/ui" import { Tooltip } from "@medusajs/ui"
import { HookData, HookDataMap } from "@/types/hooks" import { HookData, HookDataMap } from "@/types/hooks"
import { EnumType, FunctionType, ObjectType } from "@/types/props" import { EnumType, FunctionType, ObjectType } from "@/types/props"
import { InlineCode } from "docs-ui" import { InlineCode, Table } from "docs-ui"
const HookTable = ({ props }: { props: HookDataMap }) => { const HookTable = ({ props }: { props: HookDataMap }) => {
return ( return (
<Table> <Table className="!mb-0">
<Table.Header className="border-t-0"> <Table.Header className="border-t-0">
<Table.Row> <Table.Row>
<Table.HeaderCell>Value</Table.HeaderCell> <Table.HeaderCell>Value</Table.HeaderCell>
+4 -4
View File
@@ -1,11 +1,11 @@
"use client" "use client"
import { InformationCircleSolid } from "@medusajs/icons" import { InformationCircleSolid } from "@medusajs/icons"
import { Table, Tooltip } from "@medusajs/ui" import { Tooltip } from "@medusajs/ui"
import { PropData, PropDataMap, PropSpecType } from "@/types/props" import { PropData, PropDataMap, PropSpecType } from "@/types/props"
import { useCallback, useMemo } from "react" import { useCallback, useMemo } from "react"
import { InlineCode, MarkdownContent } from "docs-ui" import { InlineCode, MarkdownContent, Table } from "docs-ui"
type PropTableProps = { type PropTableProps = {
props: PropDataMap props: PropDataMap
@@ -13,12 +13,12 @@ type PropTableProps = {
const PropTable = ({ props }: PropTableProps) => { const PropTable = ({ props }: PropTableProps) => {
return ( return (
<Table> <Table className="!mb-0">
<Table.Header className="border-t-0"> <Table.Header className="border-t-0">
<Table.Row> <Table.Row>
<Table.HeaderCell>Prop</Table.HeaderCell> <Table.HeaderCell>Prop</Table.HeaderCell>
<Table.HeaderCell>Type</Table.HeaderCell> <Table.HeaderCell>Type</Table.HeaderCell>
<Table.HeaderCell className="text-right">Default</Table.HeaderCell> <Table.HeaderCell className="!text-right">Default</Table.HeaderCell>
</Table.Row> </Table.Row>
</Table.Header> </Table.Header>
<Table.Body className="border-b-0 [&_tr:last-child]:border-b-0"> <Table.Body className="border-b-0 [&_tr:last-child]:border-b-0">
@@ -0,0 +1,20 @@
import React from "react"
import clsx from "clsx"
import { CodeBlockProps } from "../../.."
export const CodeBlockInline = ({ source }: CodeBlockProps) => {
return (
<pre
className={clsx(
"px-[6px] bg-medusa-tag-neutral-bg",
"w-full my-docs_0.5 rounded-docs_sm",
"border border-medusa-tag-neutral-border",
"whitespace-pre-wrap"
)}
>
<code className="w-full text-code-label text-medusa-tag-neutral-text">
{source}
</code>
</pre>
)
}
@@ -14,6 +14,7 @@ import { HighlightProps as CollapsibleHighlightProps } from "@/hooks"
import { CodeBlockActions, CodeBlockActionsProps } from "./Actions" import { CodeBlockActions, CodeBlockActionsProps } from "./Actions"
import { CodeBlockCollapsibleButton } from "./Collapsible/Button" import { CodeBlockCollapsibleButton } from "./Collapsible/Button"
import { CodeBlockCollapsibleFade } from "./Collapsible/Fade" import { CodeBlockCollapsibleFade } from "./Collapsible/Fade"
import { CodeBlockInline } from "./Inline"
export type Highlight = { export type Highlight = {
line: number line: number
@@ -41,7 +42,7 @@ export type CodeBlockMetaFields = {
isTerminal?: boolean isTerminal?: boolean
} & CodeBlockHeaderMeta } & CodeBlockHeaderMeta
export type CodeBlockStyle = "loud" | "subtle" export type CodeBlockStyle = "loud" | "subtle" | "inline"
export type CodeBlockProps = { export type CodeBlockProps = {
source: string source: string
@@ -75,6 +76,9 @@ export const CodeBlock = ({
if (!source && typeof children === "string") { if (!source && typeof children === "string") {
source = children source = children
} }
if (blockStyle === "inline") {
return <CodeBlockInline source={source} />
}
const { colorMode } = useColorMode() const { colorMode } = useColorMode()
const [showTesting, setShowTesting] = useState(false) const [showTesting, setShowTesting] = useState(false)
@@ -11,7 +11,24 @@ const Root = ({ className, ...props }: RootProps) => {
className, className,
"table-fixed mb-docs_1", "table-fixed mb-docs_1",
"[&_pre_span]:!max-w-full [&_pre_span]:!break-words [&_pre_span]:!whitespace-break-spaces", "[&_pre_span]:!max-w-full [&_pre_span]:!break-words [&_pre_span]:!whitespace-break-spaces",
"[&_pre>div]:mt-docs_1" "[&_pre>div]:mt-docs_1",
"shadow-elevation-card-rest dark:shadow-elevation-card-rest-dark",
"rounded-docs_DEFAULT"
)}
{...props}
/>
)
}
type HeaderProps = React.HTMLAttributes<HTMLTableSectionElement>
const Header = ({ className, ...props }: HeaderProps) => {
return (
<UiTable.Header
className={clsx(
className,
"!border-0 bg-medusa-bg-component [&_tr]:!bg-medusa-bg-component",
"rounded-docs_DEFAULT [&_tr]:rounded-docs_DEFAULT"
)} )}
{...props} {...props}
/> />
@@ -23,20 +40,11 @@ type HeaderCellProps = React.HTMLAttributes<HTMLTableCellElement>
const HeaderCell = ({ className, ...props }: HeaderCellProps) => { const HeaderCell = ({ className, ...props }: HeaderCellProps) => {
return ( return (
<UiTable.HeaderCell <UiTable.HeaderCell
className={clsx(className, "text-left pr-docs_1.5 h-docs_3 break-words")}
{...props}
/>
)
}
type RowProps = React.HTMLAttributes<HTMLTableRowElement>
const Row = ({ className, ...props }: RowProps) => {
return (
<UiTable.Row
className={clsx( className={clsx(
className, className,
"[&_td:last-child]:pr-docs_1.5 [&_th:last-child]:pr-docs_1.5 [&_td:first-child]:pl-docs_1.5 [&_th:first-child]:pl-docs_1.5" "text-left px-docs_0.75 py-docs_0.5 break-words",
"!text-compact-small-plus text-medusa-fg-subtle",
"first:rounded-tl-docs_DEFAULT last:rounded-tr-docs_DEFAULT"
)} )}
{...props} {...props}
/> />
@@ -48,18 +56,32 @@ type CellProps = React.HTMLAttributes<HTMLTableCellElement>
const Cell = ({ className, ...props }: CellProps) => { const Cell = ({ className, ...props }: CellProps) => {
return ( return (
<UiTable.Cell <UiTable.Cell
className={clsx(className, "pr-docs_1.5 h-docs_3 break-words")} className={clsx(
className,
"px-docs_0.75 py-docs_0.5 break-words align-top"
)}
{...props}
/>
)
}
type BodyProps = React.HTMLAttributes<HTMLTableSectionElement>
const Body = ({ className, ...props }: BodyProps) => {
return (
<UiTable.Body
className={clsx(className, "[&_tr:last-child]:border-b-0 border-b-0")}
{...props} {...props}
/> />
) )
} }
const Table = Object.assign(Root, { const Table = Object.assign(Root, {
Row, Row: UiTable.Row,
Cell, Cell,
Header: UiTable.Header, Header,
HeaderCell, HeaderCell,
Body: UiTable.Body, Body,
}) })
export { Table } export { Table }