|
1
|
import { Table } from "docs-ui" |
|
2
|
import CampaignContent from "../commerce-modules/promotion/admin-widget-zones/_content/campaign.mdx" |
|
3
|
import CustomerContent from "../commerce-modules/customer/admin-widget-zones/_content/customer.mdx" |
|
4
|
import CustomerGroupContent from "../commerce-modules/customer/admin-widget-zones/_content/customer-group.mdx" |
|
5
|
import InventoryContent from "../commerce-modules/inventory/admin-widget-zones/_content/inventory.mdx" |
|
6
|
import LoginContent from "../commerce-modules/auth/admin-widget-zones/_content.mdx" |
|
7
|
import OrderContent from "../commerce-modules/order/admin-widget-zones/_content/order.mdx" |
|
8
|
import PricingContent from "../commerce-modules/pricing/admin-widget-zones/_content.mdx" |
|
9
|
import ProductContent from "../commerce-modules/product/admin-widget-zones/_content/product.mdx" |
|
10
|
import ProductVariantContent from "../commerce-modules/product/admin-widget-zones/_content/product-variant.mdx" |
|
11
|
import ProductCollectionContent from "../commerce-modules/product/admin-widget-zones/_content/product-collection.mdx" |
|
12
|
import ProductCategoryContent from "../commerce-modules/product/admin-widget-zones/_content/product-category.mdx" |
|
13
|
import PromotionContent from "../commerce-modules/promotion/admin-widget-zones/_content/promotion.mdx" |
|
14
|
import ApiKeyContent from "../commerce-modules/api-key/admin-widget-zones/_content.mdx" |
|
15
|
import StockLocationContent from "../commerce-modules/stock-location/admin-widget-zones/_content.mdx" |
|
16
|
import ProfileContent from "../commerce-modules/user/admin-widget-zones/_content/profile.mdx" |
|
17
|
import RegionContent from "../commerce-modules/region/admin-widget-zones/_content.mdx" |
|
18
|
import ReservationContent from "../commerce-modules/inventory/admin-widget-zones/_content/reservation.mdx" |
|
19
|
import ReturnReasonContent from "../commerce-modules/order/admin-widget-zones/_content/return-reason.mdx" |
|
20
|
import SalesChannelContent from "../commerce-modules/sales-channel/admin-widget-zones/_content.mdx" |
|
21
|
import ShippingProfileContent from "../commerce-modules/fulfillment/admin-widget-zones/_content/shipping-profile.mdx" |
|
22
|
import ShippingOptionTypeContent from "../commerce-modules/fulfillment/admin-widget-zones/_content/shipping-option-type.mdx" |
|
23
|
import StoreContent from "../commerce-modules/store/admin-widget-zones/_content.mdx" |
|
24
|
import TaxContent from "../commerce-modules/tax/admin-widget-zones/_content.mdx" |
|
25
|
import UserContent from "../commerce-modules/user/admin-widget-zones/_content/user.mdx" |
|
26
|
import DraftOrderContent from "../commerce-modules/order/admin-widget-zones/_content/draft-order.mdx" |
|
27
|
import StoreCreditAccountContent from "../commerce-modules/store-credit/admin-widget-zones/_content/store-credit-account.mdx" |
|
28
|
import GiftCardContent from "../commerce-modules/loyalty/admin-widget-zones/_content/gift-card.mdx" |
|
29
|
import GiftCardProductContent from "../commerce-modules/loyalty/admin-widget-zones/_content/gift-card-product.mdx" |
|
30
|
import PropertyLabelContent from "../commerce-modules/settings/admin-widget-zones/_content.mdx" |
|
31
|
import DeprecationNote from "./_deprecation-note.mdx" |
|
32
|
|
|
33
|
export const metadata = { |
|
34
|
title: `Admin Widget Injection Zones`, |
|
35
|
} |
|
36
|
|
|
37
|
# {metadata.title} |
|
38
|
|
|
39
|
This documentation page includes the list of injection zones you can add Admin Widgets to. |
|
40
|
|
|
41
|
<DeprecationNote /> |
|
42
|
|
|
43
|
## Campaign Pages |
|
44
|
|
|
45
|
<CampaignContent /> |
|
46
|
|
|
47
|
--- |
|
48
|
|
|
49
|
## Customer Pages |
|
50
|
|
|
51
|
<CustomerContent /> |
|
52
|
|
|
53
|
--- |
|
54
|
|
|
55
|
## Customer Group Pages |
|
56
|
|
|
57
|
<CustomerGroupContent /> |
|
58
|
|
|
59
|
--- |
|
60
|
|
|
61
|
## Draft Order Pages |
|
62
|
|
|
63
|
<Note> |
|
64
|
|
|
65
|
These widget zones are available starting from Medusa [v2.16.0](https://github.com/medusajs/medusa/releases/tag/v2.16.0). |
|
66
|
|
|
67
|
</Note> |
|
68
|
|
|
69
|
<DraftOrderContent /> |
|
70
|
|
|
71
|
--- |
|
72
|
|
|
73
|
## Gift Card Pages |
|
74
|
|
|
75
|
<Note> |
|
76
|
|
|
77
|
These widget zones are available starting from Medusa [v2.16.0](https://github.com/medusajs/medusa/releases/tag/v2.16.0). |
|
78
|
|
|
79
|
</Note> |
|
80
|
|
|
81
|
<GiftCardContent /> |
|
82
|
|
|
83
|
--- |
|
84
|
|
|
85
|
## Gift Card Product Pages |
|
86
|
|
|
87
|
<Note> |
|
88
|
|
|
89
|
These widget zones are available starting from Medusa [v2.16.0](https://github.com/medusajs/medusa/releases/tag/v2.16.0). |
|
90
|
|
|
91
|
</Note> |
|
92
|
|
|
93
|
<GiftCardProductContent /> |
|
94
|
|
|
95
|
--- |
|
96
|
|
|
97
|
## Inventory Pages |
|
98
|
|
|
99
|
<InventoryContent /> |
|
100
|
|
|
101
|
--- |
|
102
|
|
|
103
|
## Login Page |
|
104
|
|
|
105
|
<Note> |
|
106
|
|
|
107
|
The login page isn't part of the dashboard's layout configurations, so its zones still use the `.before` and `.after` suffixes to place the widget relative to the login form. |
|
108
|
|
|
109
|
</Note> |
|
110
|
|
|
111
|
<LoginContent /> |
|
112
|
|
|
113
|
--- |
|
114
|
|
|
115
|
## Order Pages |
|
116
|
|
|
117
|
<OrderContent /> |
|
118
|
|
|
119
|
--- |
|
120
|
|
|
121
|
## Price List Pages |
|
122
|
|
|
123
|
<PricingContent /> |
|
124
|
|
|
125
|
--- |
|
126
|
|
|
127
|
## Product Pages |
|
128
|
|
|
129
|
<ProductContent /> |
|
130
|
|
|
131
|
--- |
|
132
|
|
|
133
|
## Product Variant Pages |
|
134
|
|
|
135
|
<ProductVariantContent /> |
|
136
|
|
|
137
|
--- |
|
138
|
|
|
139
|
## Product Collection Pages |
|
140
|
|
|
141
|
<ProductCollectionContent /> |
|
142
|
|
|
143
|
--- |
|
144
|
|
|
145
|
## Product Category Pages |
|
146
|
|
|
147
|
<ProductCategoryContent /> |
|
148
|
|
|
149
|
--- |
|
150
|
|
|
151
|
## Promotion Pages |
|
152
|
|
|
153
|
<PromotionContent /> |
|
154
|
|
|
155
|
--- |
|
156
|
|
|
157
|
## Store Credit Account Pages |
|
158
|
|
|
159
|
<Note> |
|
160
|
|
|
161
|
These widget zones are available starting from Medusa [v2.16.0](https://github.com/medusajs/medusa/releases/tag/v2.16.0). |
|
162
|
|
|
163
|
</Note> |
|
164
|
|
|
165
|
<StoreCreditAccountContent /> |
|
166
|
|
|
167
|
--- |
|
168
|
|
|
169
|
## Setting Pages |
|
170
|
|
|
171
|
### API Key Pages |
|
172
|
|
|
173
|
<ApiKeyContent /> |
|
174
|
|
|
175
|
### Location Pages |
|
176
|
|
|
177
|
<StockLocationContent /> |
|
178
|
|
|
179
|
### Profile Pages |
|
180
|
|
|
181
|
<ProfileContent /> |
|
182
|
|
|
183
|
### Region Pages |
|
184
|
|
|
185
|
<RegionContent /> |
|
186
|
|
|
187
|
### Reservation Pages |
|
188
|
|
|
189
|
<ReservationContent /> |
|
190
|
|
|
191
|
### Return Reason Pages |
|
192
|
|
|
193
|
<ReturnReasonContent /> |
|
194
|
|
|
195
|
### Sales Channel Pages |
|
196
|
|
|
197
|
<SalesChannelContent /> |
|
198
|
|
|
199
|
### Shipping Option Type Pages |
|
200
|
|
|
201
|
<ShippingOptionTypeContent /> |
|
202
|
|
|
203
|
### Shipping Profile Pages |
|
204
|
|
|
205
|
<ShippingProfileContent /> |
|
206
|
|
|
207
|
### Store Pages |
|
208
|
|
|
209
|
<StoreContent /> |
|
210
|
|
|
211
|
### Tax Pages |
|
212
|
|
|
213
|
<TaxContent /> |
|
214
|
|
|
215
|
### User Pages |
|
216
|
|
|
217
|
<UserContent /> |
|
218
|
|
|
219
|
### Property Label Pages |
|
220
|
|
|
221
|
<PropertyLabelContent /> |
|
222
|
|
|
223
|
### Workflow Pages |
|
224
|
|
|
225
|
<Table> |
|
226
|
<Table.Header> |
|
227
|
<Table.Row> |
|
228
|
<Table.HeaderCell className="w-1/3"> |
|
229
|
Injection Zone Name |
|
230
|
</Table.HeaderCell> |
|
231
|
<Table.HeaderCell className="w-1/3"> |
|
232
|
Description |
|
233
|
</Table.HeaderCell> |
|
234
|
<Table.HeaderCell className="w-1/3"> |
|
235
|
Additional Props |
|
236
|
</Table.HeaderCell> |
|
237
|
</Table.Row> |
|
238
|
</Table.Header> |
|
239
|
<Table.Body> |
|
240
|
<Table.Row> |
|
241
|
<Table.Cell> |
|
242
|
|
|
243
|
`workflow.list` |
|
244
|
|
|
245
|
</Table.Cell> |
|
246
|
<Table.Cell> |
|
247
|
|
|
248
|
Added at the end of the workflows list page. |
|
249
|
|
|
250
|
</Table.Cell> |
|
251
|
<Table.Cell> |
|
252
|
|
|
253
|
\- |
|
254
|
|
|
255
|
</Table.Cell> |
|
256
|
</Table.Row> |
|
257
|
<Table.Row> |
|
258
|
<Table.Cell> |
|
259
|
|
|
260
|
`workflow.details` |
|
261
|
|
|
262
|
</Table.Cell> |
|
263
|
<Table.Cell> |
|
264
|
|
|
265
|
Added at the end of a workflow execution's details page. |
|
266
|
|
|
267
|
</Table.Cell> |
|
268
|
<Table.Cell> |
|
269
|
|
|
270
|
Type `DetailWidgetProps<AdminWorkflowExecution>` imported from `@medusajs/framework/types` |
|
271
|
|
|
272
|
```ts blockStyle="inline" |
|
273
|
{ |
|
274
|
data, // AdminWorkflowExecution object |
|
275
|
} |
|
276
|
``` |
|
277
|
|
|
278
|
</Table.Cell> |
|
279
|
</Table.Row> |
|
280
|
</Table.Body> |
|
281
|
</Table> |
|
282
|
|
|
283
|
--- |
|
284
|
|
|
285
|
## Top Bar |
|
286
|
|
|
287
|
<Note> |
|
288
|
|
|
289
|
The Top Bar is the navigation bar at the top of the admin dashboard. You can add widgets to it using the `topbar` injection zone, such as to add a button to the top bar. The following zones are available since [Medusa v2.17.2](https://github.com/medusajs/medusa/releases/tag/v2.17.2). |
|
290
|
|
|
291
|
</Note> |
|
292
|
|
|
293
|
<Table> |
|
294
|
<Table.Header> |
|
295
|
<Table.Row> |
|
296
|
<Table.HeaderCell className="w-1/3"> |
|
297
|
Injection Zone Name |
|
298
|
</Table.HeaderCell> |
|
299
|
<Table.HeaderCell className="w-1/3"> |
|
300
|
Description |
|
301
|
</Table.HeaderCell> |
|
302
|
<Table.HeaderCell className="w-1/3"> |
|
303
|
Additional Props |
|
304
|
</Table.HeaderCell> |
|
305
|
</Table.Row> |
|
306
|
</Table.Header> |
|
307
|
<Table.Body> |
|
308
|
<Table.Row> |
|
309
|
<Table.Cell> |
|
310
|
|
|
311
|
`topbar` |
|
312
|
|
|
313
|
</Table.Cell> |
|
314
|
<Table.Cell> |
|
315
|
|
|
316
|
Added to the top bar of the admin dashboard. |
|
317
|
|
|
318
|
</Table.Cell> |
|
319
|
<Table.Cell> |
|
320
|
|
|
321
|
\- |
|
322
|
|
|
323
|
</Table.Cell> |
|
324
|
</Table.Row> |
|
325
|
</Table.Body> |
|
326
|
</Table> |