@medusajs/draft-order 2.22.0-snapshot-20261020204851 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/admin/index.js +27 -27
- package/.medusa/server/src/admin/index.mjs +27 -27
- package/AGENTS.md +46 -0
- package/README.md +22 -47
- package/package.json +23 -19
|
@@ -6172,27 +6172,6 @@ const BillingAddressForm = ({ order }) => {
|
|
|
6172
6172
|
) });
|
|
6173
6173
|
};
|
|
6174
6174
|
const schema$5 = addressSchema;
|
|
6175
|
-
const CustomItems = () => {
|
|
6176
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
|
|
6177
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
|
|
6178
|
-
/* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
|
|
6179
|
-
] });
|
|
6180
|
-
};
|
|
6181
|
-
const CustomItemsForm = () => {
|
|
6182
|
-
const form = reactHookForm.useForm({
|
|
6183
|
-
resolver: zod$1.zodResolver(schema$4)
|
|
6184
|
-
});
|
|
6185
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
6186
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
|
|
6187
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
6188
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
6189
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
|
|
6190
|
-
] }) })
|
|
6191
|
-
] }) });
|
|
6192
|
-
};
|
|
6193
|
-
const schema$4 = zod.z.object({
|
|
6194
|
-
email: zod.z.string().email()
|
|
6195
|
-
});
|
|
6196
6175
|
const Email = () => {
|
|
6197
6176
|
const { id } = reactRouterDom.useParams();
|
|
6198
6177
|
const { order, isPending, isError, error } = useOrder(id, {
|
|
@@ -6215,7 +6194,7 @@ const EmailForm = ({ order }) => {
|
|
|
6215
6194
|
defaultValues: {
|
|
6216
6195
|
email: order.email ?? ""
|
|
6217
6196
|
},
|
|
6218
|
-
resolver: zod$1.zodResolver(schema$
|
|
6197
|
+
resolver: zod$1.zodResolver(schema$4)
|
|
6219
6198
|
});
|
|
6220
6199
|
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
6221
6200
|
const { handleSuccess } = useRouteModal();
|
|
@@ -6258,7 +6237,7 @@ const EmailForm = ({ order }) => {
|
|
|
6258
6237
|
}
|
|
6259
6238
|
) });
|
|
6260
6239
|
};
|
|
6261
|
-
const schema$
|
|
6240
|
+
const schema$4 = zod.z.object({
|
|
6262
6241
|
email: zod.z.string().email()
|
|
6263
6242
|
});
|
|
6264
6243
|
const NumberInput = React.forwardRef(
|
|
@@ -7280,6 +7259,27 @@ const customItemSchema = zod.z.object({
|
|
|
7280
7259
|
quantity: zod.z.number(),
|
|
7281
7260
|
unit_price: zod.z.union([zod.z.number(), zod.z.string()])
|
|
7282
7261
|
});
|
|
7262
|
+
const CustomItems = () => {
|
|
7263
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
|
|
7264
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
|
|
7265
|
+
/* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
|
|
7266
|
+
] });
|
|
7267
|
+
};
|
|
7268
|
+
const CustomItemsForm = () => {
|
|
7269
|
+
const form = reactHookForm.useForm({
|
|
7270
|
+
resolver: zod$1.zodResolver(schema$3)
|
|
7271
|
+
});
|
|
7272
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
7273
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
|
|
7274
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
7275
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
7276
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
|
|
7277
|
+
] }) })
|
|
7278
|
+
] }) });
|
|
7279
|
+
};
|
|
7280
|
+
const schema$3 = zod.z.object({
|
|
7281
|
+
email: zod.z.string().email()
|
|
7282
|
+
});
|
|
7283
7283
|
const InlineTip = React.forwardRef(
|
|
7284
7284
|
({ variant = "tip", label, className, children, ...props }, ref) => {
|
|
7285
7285
|
const labelValue = label || (variant === "warning" ? "Warning" : "Tip");
|
|
@@ -9508,10 +9508,6 @@ const routeModule = {
|
|
|
9508
9508
|
Component: BillingAddress,
|
|
9509
9509
|
path: "/draft-orders/:id/billing-address"
|
|
9510
9510
|
},
|
|
9511
|
-
{
|
|
9512
|
-
Component: CustomItems,
|
|
9513
|
-
path: "/draft-orders/:id/custom-items"
|
|
9514
|
-
},
|
|
9515
9511
|
{
|
|
9516
9512
|
Component: Email,
|
|
9517
9513
|
path: "/draft-orders/:id/email"
|
|
@@ -9520,6 +9516,10 @@ const routeModule = {
|
|
|
9520
9516
|
Component: Items,
|
|
9521
9517
|
path: "/draft-orders/:id/items"
|
|
9522
9518
|
},
|
|
9519
|
+
{
|
|
9520
|
+
Component: CustomItems,
|
|
9521
|
+
path: "/draft-orders/:id/custom-items"
|
|
9522
|
+
},
|
|
9523
9523
|
{
|
|
9524
9524
|
Component: Metadata,
|
|
9525
9525
|
path: "/draft-orders/:id/metadata"
|
|
@@ -6165,27 +6165,6 @@ const BillingAddressForm = ({ order }) => {
|
|
|
6165
6165
|
) });
|
|
6166
6166
|
};
|
|
6167
6167
|
const schema$5 = addressSchema;
|
|
6168
|
-
const CustomItems = () => {
|
|
6169
|
-
return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
|
|
6170
|
-
/* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
|
|
6171
|
-
/* @__PURE__ */ jsx(CustomItemsForm, {})
|
|
6172
|
-
] });
|
|
6173
|
-
};
|
|
6174
|
-
const CustomItemsForm = () => {
|
|
6175
|
-
const form = useForm({
|
|
6176
|
-
resolver: zodResolver(schema$4)
|
|
6177
|
-
});
|
|
6178
|
-
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
6179
|
-
/* @__PURE__ */ jsx(RouteDrawer.Body, {}),
|
|
6180
|
-
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
6181
|
-
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
6182
|
-
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
|
|
6183
|
-
] }) })
|
|
6184
|
-
] }) });
|
|
6185
|
-
};
|
|
6186
|
-
const schema$4 = z.object({
|
|
6187
|
-
email: z.string().email()
|
|
6188
|
-
});
|
|
6189
6168
|
const Email = () => {
|
|
6190
6169
|
const { id } = useParams();
|
|
6191
6170
|
const { order, isPending, isError, error } = useOrder(id, {
|
|
@@ -6208,7 +6187,7 @@ const EmailForm = ({ order }) => {
|
|
|
6208
6187
|
defaultValues: {
|
|
6209
6188
|
email: order.email ?? ""
|
|
6210
6189
|
},
|
|
6211
|
-
resolver: zodResolver(schema$
|
|
6190
|
+
resolver: zodResolver(schema$4)
|
|
6212
6191
|
});
|
|
6213
6192
|
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
6214
6193
|
const { handleSuccess } = useRouteModal();
|
|
@@ -6251,7 +6230,7 @@ const EmailForm = ({ order }) => {
|
|
|
6251
6230
|
}
|
|
6252
6231
|
) });
|
|
6253
6232
|
};
|
|
6254
|
-
const schema$
|
|
6233
|
+
const schema$4 = z.object({
|
|
6255
6234
|
email: z.string().email()
|
|
6256
6235
|
});
|
|
6257
6236
|
const NumberInput = forwardRef(
|
|
@@ -7273,6 +7252,27 @@ const customItemSchema = z.object({
|
|
|
7273
7252
|
quantity: z.number(),
|
|
7274
7253
|
unit_price: z.union([z.number(), z.string()])
|
|
7275
7254
|
});
|
|
7255
|
+
const CustomItems = () => {
|
|
7256
|
+
return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
|
|
7257
|
+
/* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
|
|
7258
|
+
/* @__PURE__ */ jsx(CustomItemsForm, {})
|
|
7259
|
+
] });
|
|
7260
|
+
};
|
|
7261
|
+
const CustomItemsForm = () => {
|
|
7262
|
+
const form = useForm({
|
|
7263
|
+
resolver: zodResolver(schema$3)
|
|
7264
|
+
});
|
|
7265
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
7266
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, {}),
|
|
7267
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
7268
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
7269
|
+
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
|
|
7270
|
+
] }) })
|
|
7271
|
+
] }) });
|
|
7272
|
+
};
|
|
7273
|
+
const schema$3 = z.object({
|
|
7274
|
+
email: z.string().email()
|
|
7275
|
+
});
|
|
7276
7276
|
const InlineTip = forwardRef(
|
|
7277
7277
|
({ variant = "tip", label, className, children, ...props }, ref) => {
|
|
7278
7278
|
const labelValue = label || (variant === "warning" ? "Warning" : "Tip");
|
|
@@ -9501,10 +9501,6 @@ const routeModule = {
|
|
|
9501
9501
|
Component: BillingAddress,
|
|
9502
9502
|
path: "/draft-orders/:id/billing-address"
|
|
9503
9503
|
},
|
|
9504
|
-
{
|
|
9505
|
-
Component: CustomItems,
|
|
9506
|
-
path: "/draft-orders/:id/custom-items"
|
|
9507
|
-
},
|
|
9508
9504
|
{
|
|
9509
9505
|
Component: Email,
|
|
9510
9506
|
path: "/draft-orders/:id/email"
|
|
@@ -9513,6 +9509,10 @@ const routeModule = {
|
|
|
9513
9509
|
Component: Items,
|
|
9514
9510
|
path: "/draft-orders/:id/items"
|
|
9515
9511
|
},
|
|
9512
|
+
{
|
|
9513
|
+
Component: CustomItems,
|
|
9514
|
+
path: "/draft-orders/:id/custom-items"
|
|
9515
|
+
},
|
|
9516
9516
|
{
|
|
9517
9517
|
Component: Metadata,
|
|
9518
9518
|
path: "/draft-orders/:id/metadata"
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @medusajs/draft-order
|
|
2
|
+
|
|
3
|
+
An official Medusa plugin that adds the Draft Orders UI to the Medusa Admin (Orders > Drafts). It is admin-only: there are no API routes, workflows, or modules in `src/`. The backend lives in core: `packages/medusa/src/api/admin/draft-orders`, `packages/core/core-flows/src/draft-order`, and `sdk.admin.draftOrder` in `packages/core/js-sdk/src/admin/draft-order.ts`.
|
|
4
|
+
|
|
5
|
+
## Using this package
|
|
6
|
+
|
|
7
|
+
- Nothing to install or configure. `@medusajs/medusa` depends on it, and `defineConfig` (`packages/core/utils/src/common/define-config.ts`) always adds `{ resolve: "@medusajs/draft-order", options: {} }` to `plugins`.
|
|
8
|
+
- To change its entry, list it yourself in `medusa-config.ts`; user entries replace the default by `resolve` key:
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
module.exports = defineConfig({
|
|
12
|
+
plugins: [{ resolve: "@medusajs/draft-order", options: {} }],
|
|
13
|
+
})
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
- The plugin takes no options.
|
|
17
|
+
- Custom draft-order logic belongs in core workflows/routes (or your app's own routes), not here.
|
|
18
|
+
- Docs: https://docs.medusajs.com/resources/commerce-modules/order/draft-orders.md
|
|
19
|
+
|
|
20
|
+
## Architecture
|
|
21
|
+
|
|
22
|
+
- `src/admin/routes/draft-orders/`: list page (`page.tsx`, `defineRouteConfig({ label: "Drafts", nested: "/orders" })`), `@create` modal, and `[id]` detail with parallel `@<section>` routes (items, shipping, addresses, promotions, email, metadata, sales-channel, transfer-ownership, custom-items).
|
|
23
|
+
- `src/admin/hooks/api/`: React Query hooks wrapping `sdk.admin.*` calls; `draft-orders.tsx` covers the edit flow (`beginEdit`, `requestEdit`, `cancelEdit`, `convertToOrder`, action-item updates).
|
|
24
|
+
- `src/admin/lib/queries/sdk.ts`: JS SDK client configured from the admin build globals `__BACKEND_URL__`, `__AUTH_TYPE__`, `__JWT_TOKEN_STORAGE_KEY__` (declared in `src/admin/vite-env.d.ts`).
|
|
25
|
+
- `src/admin/components/`: local copies of dashboard UI primitives (modals, forms, data table). Layout comes from `@medusajs/dashboard/components`.
|
|
26
|
+
- `src/types/http/`: local HTTP types for draft orders and orders used by the admin code.
|
|
27
|
+
- `src/index.ts` and `index.d.ts` are intentional no-ops for the TypeScript compiler.
|
|
28
|
+
|
|
29
|
+
## Development
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn build:plugin # medusa plugin:build -> .medusa/server (the only published dir)
|
|
33
|
+
yarn dev # medusa plugin:develop (watch + publish to local registry)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- There is no unit test setup. Draft-order behaviour is covered by HTTP integration tests in `integration-tests/http/__tests__/draft-order/admin/`, which exercise the core routes.
|
|
37
|
+
- Root `yarn build` runs `build:plugin` through turbo, after `@medusajs/medusa#build`.
|
|
38
|
+
- Plugin docs: https://docs.medusajs.com/learn/fundamentals/plugins.md
|
|
39
|
+
|
|
40
|
+
## Gotchas
|
|
41
|
+
|
|
42
|
+
- Don't add `@medusajs/medusa` as a dependency: it already depends on this package. `@medusajs/cli` detects plugin projects through the `@medusajs/cli` devDependency instead.
|
|
43
|
+
- `tsconfig.json` excludes `src/admin`; admin code is type-checked with `src/admin/tsconfig.json` (bundler resolution, `noEmit`, strict) and bundled by `plugin:build`.
|
|
44
|
+
- Tailwind scans only `./src/admin/**/*.{ts,tsx}` with the `@medusajs/ui-preset` preset.
|
|
45
|
+
- The `exports` map lists `./workflows`, `./modules/*` and `./providers/*` from the plugin template, but none exist in `src/`. Only `./admin` resolves to real code.
|
|
46
|
+
- A UI change that needs new backend behaviour usually means changing the core route, workflow, JS SDK method and `HttpTypes` together, and adding changesets for those packages too.
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</a>
|
|
9
9
|
</p>
|
|
10
10
|
<h1 align="center">
|
|
11
|
-
|
|
11
|
+
@medusajs/draft-order
|
|
12
12
|
</h1>
|
|
13
13
|
|
|
14
14
|
<h4 align="center">
|
|
@@ -17,13 +17,15 @@
|
|
|
17
17
|
</h4>
|
|
18
18
|
|
|
19
19
|
<p align="center">
|
|
20
|
-
|
|
20
|
+
Building blocks for digital commerce
|
|
21
21
|
</p>
|
|
22
22
|
<p align="center">
|
|
23
|
-
<a href="https://github.com/medusajs/medusa/blob/
|
|
23
|
+
<a href="https://github.com/medusajs/medusa/blob/develop/LICENSE">
|
|
24
|
+
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="Medusa is released under the MIT license." />
|
|
25
|
+
</a>
|
|
26
|
+
<a href="https://github.com/medusajs/medusa/blob/develop/CONTRIBUTING.md">
|
|
24
27
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="PRs welcome!" />
|
|
25
28
|
</a>
|
|
26
|
-
<a href="https://www.producthunt.com/posts/medusa"><img src="https://img.shields.io/badge/Product%20Hunt-%231%20Product%20of%20the%20Day-%23DA552E" alt="Product Hunt"></a>
|
|
27
29
|
<a href="https://discord.gg/xpCwq3Kfn8">
|
|
28
30
|
<img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" />
|
|
29
31
|
</a>
|
|
@@ -32,55 +34,28 @@
|
|
|
32
34
|
</a>
|
|
33
35
|
</p>
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
Draft Order Plugin for Medusa: adds pages to the Medusa Admin for creating and managing draft orders on behalf of customers, such as for phone, in-store, or customer support orders. It's an admin-only plugin; the draft order data, API routes (`/admin/draft-orders`), and workflows it uses are part of `@medusajs/medusa`. It ships as a dependency of `@medusajs/medusa` and is registered by default, so no installation or configuration is needed.
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
## At a glance
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
| | |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| Package | `@medusajs/draft-order` |
|
|
44
|
+
| Type | Plugin |
|
|
45
|
+
| Registered by default | Yes |
|
|
40
46
|
|
|
41
|
-
|
|
42
|
-
- **Manage items** in draft orders (add, update, remove)
|
|
43
|
-
- **Add shipping methods** to draft orders
|
|
44
|
-
- **Associate customers** with draft orders
|
|
45
|
-
- **Convert draft orders** to regular orders for purchase completion
|
|
47
|
+
## Features
|
|
46
48
|
|
|
49
|
+
- **Orders > Drafts** page in the Medusa Admin to list and create draft orders.
|
|
50
|
+
- Manage a draft order's items and custom items, shipping methods, promotions, customer and email, shipping and billing addresses, sales channel, and metadata.
|
|
51
|
+
- Convert a draft order to a regular order.
|
|
47
52
|
|
|
48
53
|
## Installation
|
|
49
54
|
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
yarn add @medusajs/draft-order
|
|
53
|
-
```
|
|
54
|
-
2. Configure the plugin in your medusa-config.ts
|
|
55
|
-
```
|
|
56
|
-
module.exports = defineConfig({
|
|
57
|
-
projectConfig: {
|
|
58
|
-
...
|
|
59
|
-
},
|
|
60
|
-
plugins: [
|
|
61
|
-
{
|
|
62
|
-
resolve: "@medusajs/draft-order",
|
|
63
|
-
options: {},
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
})
|
|
67
|
-
```
|
|
68
|
-
3. Start your server
|
|
69
|
-
|
|
70
|
-
## Requirements
|
|
71
|
-
- Medusa application version >= 2.4.0
|
|
72
|
-
|
|
73
|
-
## Support
|
|
74
|
-
|
|
75
|
-
## Community & Contributions
|
|
76
|
-
|
|
77
|
-
The community and core team are available in [GitHub Discussions](https://github.com/medusajs/medusa/discussions), where you can ask for support, discuss roadmap, and share ideas.
|
|
78
|
-
|
|
79
|
-
Join our [Discord server](https://discord.com/invite/medusajs) to meet other community members.
|
|
55
|
+
No installation needed: `defineConfig` adds `{ resolve: "@medusajs/draft-order", options: {} }` to `plugins` automatically.
|
|
80
56
|
|
|
81
|
-
##
|
|
57
|
+
## Resources
|
|
82
58
|
|
|
83
|
-
- [
|
|
84
|
-
- [
|
|
85
|
-
- [
|
|
86
|
-
- [Medusa Blog](https://medusajs.com/blog/)
|
|
59
|
+
- [Draft Orders Plugin](https://docs.medusajs.com/resources/commerce-modules/order/draft-orders)
|
|
60
|
+
- [Draft orders user guide](https://docs.medusajs.com/user-guide/orders/draft-orders)
|
|
61
|
+
- [Plugins](https://docs.medusajs.com/learn/fundamentals/plugins)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/draft-order",
|
|
3
|
-
"version": "2.22.0
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "A draft order plugin for Medusa.",
|
|
5
5
|
"author": "Medusa (https://medusajs.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,12 @@
|
|
|
13
13
|
"url": "https://github.com/medusajs/medusa/issues"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
|
-
".medusa/server"
|
|
16
|
+
".medusa/server",
|
|
17
|
+
"AGENTS.md"
|
|
17
18
|
],
|
|
19
|
+
"llms": "https://docs.medusajs.com/llms.txt",
|
|
20
|
+
"llmsFull": "https://docs.medusajs.com/llms-full.txt",
|
|
21
|
+
"mcpServer": "https://docs.medusajs.com/mcp",
|
|
18
22
|
"exports": {
|
|
19
23
|
"./package.json": "./package.json",
|
|
20
24
|
"./workflows": "./.medusa/server/src/workflows/index.js",
|
|
@@ -46,7 +50,7 @@
|
|
|
46
50
|
"@ariakit/react": "^0.4.15",
|
|
47
51
|
"@babel/runtime": "^7.26.10",
|
|
48
52
|
"@hookform/resolvers": "5.5.7",
|
|
49
|
-
"@medusajs/js-sdk": "2.22.0
|
|
53
|
+
"@medusajs/js-sdk": "2.22.0",
|
|
50
54
|
"@tanstack/react-query": "5.64.2",
|
|
51
55
|
"@uiw/react-json-view": "^2.0.0-alpha.17",
|
|
52
56
|
"date-fns": "^3.6.0",
|
|
@@ -58,24 +62,24 @@
|
|
|
58
62
|
"zod": "4.2.0"
|
|
59
63
|
},
|
|
60
64
|
"devDependencies": {
|
|
61
|
-
"@medusajs/admin-sdk": "2.22.0
|
|
62
|
-
"@medusajs/cli": "2.22.0
|
|
63
|
-
"@medusajs/dashboard": "2.22.0
|
|
64
|
-
"@medusajs/framework": "2.22.0
|
|
65
|
-
"@medusajs/icons": "2.22.0
|
|
66
|
-
"@medusajs/test-utils": "2.22.0
|
|
67
|
-
"@medusajs/types": "2.22.0
|
|
68
|
-
"@medusajs/ui": "4.2.7
|
|
69
|
-
"@medusajs/ui-preset": "2.22.0
|
|
65
|
+
"@medusajs/admin-sdk": "2.22.0",
|
|
66
|
+
"@medusajs/cli": "2.22.0",
|
|
67
|
+
"@medusajs/dashboard": "2.22.0",
|
|
68
|
+
"@medusajs/framework": "2.22.0",
|
|
69
|
+
"@medusajs/icons": "2.22.0",
|
|
70
|
+
"@medusajs/test-utils": "2.22.0",
|
|
71
|
+
"@medusajs/types": "2.22.0",
|
|
72
|
+
"@medusajs/ui": "4.2.7",
|
|
73
|
+
"@medusajs/ui-preset": "2.22.0"
|
|
70
74
|
},
|
|
71
75
|
"peerDependencies": {
|
|
72
|
-
"@medusajs/admin-sdk": "2.22.0
|
|
73
|
-
"@medusajs/cli": "2.22.0
|
|
74
|
-
"@medusajs/dashboard": "2.22.0
|
|
75
|
-
"@medusajs/framework": "2.22.0
|
|
76
|
-
"@medusajs/icons": "2.22.0
|
|
77
|
-
"@medusajs/test-utils": "2.22.0
|
|
78
|
-
"@medusajs/ui": "4.2.7
|
|
76
|
+
"@medusajs/admin-sdk": "2.22.0",
|
|
77
|
+
"@medusajs/cli": "2.22.0",
|
|
78
|
+
"@medusajs/dashboard": "2.22.0",
|
|
79
|
+
"@medusajs/framework": "2.22.0",
|
|
80
|
+
"@medusajs/icons": "2.22.0",
|
|
81
|
+
"@medusajs/test-utils": "2.22.0",
|
|
82
|
+
"@medusajs/ui": "4.2.7",
|
|
79
83
|
"react": "^18.3.1",
|
|
80
84
|
"react-dom": "^18.3.1",
|
|
81
85
|
"react-router-dom": "^6.30.4 || ^7.0.0"
|