@mercurjs/admin 2.2.0-canary.41 → 2.2.0-canary.42

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.
@@ -260,7 +260,7 @@ var useColumns = () => {
260
260
  []
261
261
  );
262
262
  const { columns: extended, filters } = useExtendableTable({
263
- model: "store",
263
+ model: "seller",
264
264
  columns: [selectColumn, ...base]
265
265
  });
266
266
  const columns = useMemo2(
@@ -217,27 +217,27 @@ var StoreGeneralSection = ({
217
217
  }
218
218
  ) }) }),
219
219
  /* @__PURE__ */ jsx2(StoreDetailHeader, { seller }),
220
- /* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "description", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
220
+ /* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "description", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
221
221
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
222
222
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.description || "-" })
223
223
  ] }) }),
224
- /* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "handle", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
224
+ /* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "handle", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
225
225
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
226
226
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
227
227
  ] }) }),
228
- /* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "email", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
228
+ /* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "email", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
229
229
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
230
230
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.email || "-" })
231
231
  ] }) }),
232
- /* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "phone", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
232
+ /* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "phone", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
233
233
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
234
234
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.phone || "-" })
235
235
  ] }) }),
236
- /* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "website_url", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
236
+ /* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "website_url", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
237
237
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
238
238
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.website_url || "-" })
239
239
  ] }) }),
240
- /* @__PURE__ */ jsx2(DisplayField, { model: "store", zone: "general", id: "currency_code", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
240
+ /* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "currency_code", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
241
241
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
242
242
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
243
243
  /* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
@@ -247,7 +247,7 @@ var StoreGeneralSection = ({
247
247
  /* @__PURE__ */ jsx2(
248
248
  DisplayExtensionZone,
249
249
  {
250
- model: "store",
250
+ model: "seller",
251
251
  zone: "general",
252
252
  data: seller,
253
253
  builtInFieldIds: [
@@ -315,7 +315,7 @@ var StorePaymentDetailsSection = ({
315
315
  /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("store.paymentDetails.empty.title") }),
316
316
  /* @__PURE__ */ jsx3(Text2, { size: "small", className: "text-ui-fg-muted", children: t("store.paymentDetails.empty.message") })
317
317
  ] }),
318
- /* @__PURE__ */ jsx3(DisplayExtensionZone2, { model: "store", zone: "payment-details", data: seller })
318
+ /* @__PURE__ */ jsx3(DisplayExtensionZone2, { model: "seller", zone: "payment-details", data: seller })
319
319
  ] });
320
320
  };
321
321
 
@@ -369,7 +369,7 @@ var StoreCompanyDetailsSection = ({
369
369
  /* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("store.professionalDetails.empty.title") }),
370
370
  /* @__PURE__ */ jsx4(Text3, { size: "small", className: "text-ui-fg-muted", children: t("store.professionalDetails.empty.message") })
371
371
  ] }),
372
- /* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "store", zone: "company-details", data: seller })
372
+ /* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "seller", zone: "company-details", data: seller })
373
373
  ] });
374
374
  };
375
375
 
@@ -405,7 +405,7 @@ var StoreConfigurationSection = ({
405
405
  message: t("store.timeOff.empty.message")
406
406
  }
407
407
  ),
408
- /* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "store", zone: "configuration", data: seller })
408
+ /* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "seller", zone: "configuration", data: seller })
409
409
  ] });
410
410
  };
411
411
 
@@ -466,7 +466,7 @@ var StoreAddressSection = ({ seller }) => {
466
466
  /* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: t("store.address.empty.title") }),
467
467
  /* @__PURE__ */ jsx6(Text4, { size: "small", className: "text-ui-fg-muted", children: t("store.address.empty.message") })
468
468
  ] }),
469
- /* @__PURE__ */ jsx6(DisplayExtensionZone5, { model: "store", zone: "address", data: seller })
469
+ /* @__PURE__ */ jsx6(DisplayExtensionZone5, { model: "seller", zone: "address", data: seller })
470
470
  ] });
471
471
  };
472
472
 
@@ -765,7 +765,7 @@ var StoreMembersSection = ({ sellerId }) => {
765
765
  /* @__PURE__ */ jsx8(Link, { to: "invite", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action") }) })
766
766
  ] }),
767
767
  /* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId }),
768
- /* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "store", zone: "members", data: sellerId })
768
+ /* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "seller", zone: "members", data: sellerId })
769
769
  ] });
770
770
  };
771
771
 
@@ -854,7 +854,7 @@ var StoreRequestSection = ({ seller }) => {
854
854
  }
855
855
  )
856
856
  ] }),
857
- /* @__PURE__ */ jsx9(DisplayExtensionZone7, { model: "store", zone: "requests", data: seller })
857
+ /* @__PURE__ */ jsx9(DisplayExtensionZone7, { model: "seller", zone: "requests", data: seller })
858
858
  ] });
859
859
  };
860
860
  var RequestActionPrompt = ({
@@ -1002,7 +1002,7 @@ var StoreOrdersSection = ({ sellerId }) => {
1002
1002
  }
1003
1003
  }
1004
1004
  ),
1005
- /* @__PURE__ */ jsx10(DisplayExtensionZone8, { model: "store", zone: "orders", data: sellerId })
1005
+ /* @__PURE__ */ jsx10(DisplayExtensionZone8, { model: "seller", zone: "orders", data: sellerId })
1006
1006
  ] });
1007
1007
  };
1008
1008
 
@@ -1086,7 +1086,7 @@ var StoreOffersSection = ({ sellerId }) => {
1086
1086
  commands
1087
1087
  }
1088
1088
  ),
1089
- /* @__PURE__ */ jsx11(DisplayExtensionZone9, { model: "store", zone: "offers", data: sellerId })
1089
+ /* @__PURE__ */ jsx11(DisplayExtensionZone9, { model: "seller", zone: "offers", data: sellerId })
1090
1090
  ] });
1091
1091
  };
1092
1092
 
@@ -185,7 +185,7 @@ declare module "@mercurjs/dashboard-sdk" {
185
185
  displayZones: "general"
186
186
  displayFieldIds: "available_quantity" | "description" | "header" | "line_item_id" | "location" | "reserved_quantity" | "stocked_quantity"
187
187
  }
188
- "store": {
188
+ "seller": {
189
189
  formZones: "create" | "edit"
190
190
  formTabs: { "create": "details" | "users" }
191
191
  displayZones: "address" | "company-details" | "configuration" | "general" | "members" | "offers" | "orders" | "payment-details" | "requests"
package/dist/index.js CHANGED
@@ -4093,11 +4093,11 @@ function getRouteMap({
4093
4093
  children: [
4094
4094
  {
4095
4095
  path: "",
4096
- lazy: () => import("./store-list-EBAHJOZO.js"),
4096
+ lazy: () => import("./store-list-6XZEWHRE.js"),
4097
4097
  children: [
4098
4098
  {
4099
4099
  path: "create",
4100
- lazy: () => import("./store-create-4UHISWQE.js")
4100
+ lazy: () => import("./store-create-IKHZ52NO.js")
4101
4101
  },
4102
4102
  {
4103
4103
  path: "bulk-edit",
@@ -4108,7 +4108,7 @@ function getRouteMap({
4108
4108
  {
4109
4109
  path: ":id",
4110
4110
  lazy: async () => {
4111
- const { Breadcrumb } = await import("./store-details-4D7MSGVL.js");
4111
+ const { Breadcrumb } = await import("./store-details-CFWAS2MB.js");
4112
4112
  return {
4113
4113
  Component: Outlet4,
4114
4114
  handle: {
@@ -4119,11 +4119,11 @@ function getRouteMap({
4119
4119
  children: [
4120
4120
  {
4121
4121
  path: "",
4122
- lazy: () => import("./store-details-4D7MSGVL.js"),
4122
+ lazy: () => import("./store-details-CFWAS2MB.js"),
4123
4123
  children: [
4124
4124
  {
4125
4125
  path: "edit",
4126
- lazy: () => import("./store-edit-MQZMWYXY.js")
4126
+ lazy: () => import("./store-edit-AZ4LD4C6.js")
4127
4127
  },
4128
4128
  {
4129
4129
  path: "edit-address",
@@ -127,7 +127,7 @@ import {
127
127
  import "../chunk-APAT344J.js";
128
128
  import {
129
129
  StoreDetailPage
130
- } from "../chunk-IZBV7MCY.js";
130
+ } from "../chunk-VE7RLYJ7.js";
131
131
  import "../chunk-DBYUB2YI.js";
132
132
  import "../chunk-U2EI2ZLM.js";
133
133
  import "../chunk-4RLXMDIJ.js";
@@ -140,7 +140,7 @@ import {
140
140
  } from "../chunk-PLU2GB4L.js";
141
141
  import {
142
142
  StoreListPage
143
- } from "../chunk-5DAFNAZJ.js";
143
+ } from "../chunk-E6326AHP.js";
144
144
  import {
145
145
  CustomerDetailPage
146
146
  } from "../chunk-U4MV53CS.js";
@@ -326,7 +326,7 @@ var StoreCreateForm = ({ children }) => {
326
326
  ],
327
327
  []
328
328
  );
329
- return /* @__PURE__ */ jsx3(TabbedForm, { model: "store", zone: "create", form, onSubmit: handleSubmit, isLoading: isPending, children: Children.count(children) > 0 ? children : defaultTabs });
329
+ return /* @__PURE__ */ jsx3(TabbedForm, { model: "seller", zone: "create", form, onSubmit: handleSubmit, isLoading: isPending, children: Children.count(children) > 0 ? children : defaultTabs });
330
330
  };
331
331
 
332
332
  // src/pages/stores/store-create/index.tsx
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StoreDetailPage
3
- } from "./chunk-IZBV7MCY.js";
3
+ } from "./chunk-VE7RLYJ7.js";
4
4
  import "./chunk-DBYUB2YI.js";
5
5
  import "./chunk-U2EI2ZLM.js";
6
6
  import "./chunk-4RLXMDIJ.js";
@@ -121,7 +121,7 @@ var StoreEditForm = ({ seller }) => {
121
121
  const { handleSuccess } = useRouteModal();
122
122
  const form = useExtendableForm({
123
123
  schema: EditStoreSchema,
124
- model: "store",
124
+ model: "seller",
125
125
  data: seller,
126
126
  defaultValues: {
127
127
  status: seller.status ?? import_types.SellerStatus.OPEN,
@@ -186,7 +186,8 @@ var StoreEditForm = ({ seller }) => {
186
186
  website_url: ensureWebsiteProtocol(values.website_url ?? ""),
187
187
  is_premium: values.is_premium,
188
188
  logo: logoUrl,
189
- banner: bannerUrl
189
+ banner: bannerUrl,
190
+ additional_data: values.additional_data
190
191
  },
191
192
  {
192
193
  onSuccess: () => {
@@ -426,7 +427,7 @@ var StoreEditForm = ({ seller }) => {
426
427
  /* @__PURE__ */ jsx(
427
428
  FormExtensionZone,
428
429
  {
429
- model: "store",
430
+ model: "seller",
430
431
  zone: "edit",
431
432
  control: form.control,
432
433
  data: seller
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StoreListPage
3
- } from "./chunk-5DAFNAZJ.js";
3
+ } from "./chunk-E6326AHP.js";
4
4
  import "./chunk-KOURHC2N.js";
5
5
  import "./chunk-2ZFELO2L.js";
6
6
  import "./chunk-26OOAKQ6.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/admin",
3
- "version": "2.2.0-canary.41",
3
+ "version": "2.2.0-canary.42",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -34,8 +34,8 @@
34
34
  "lint": "oxlint --max-warnings 0"
35
35
  },
36
36
  "dependencies": {
37
- "@mercurjs/dashboard-shared": "2.2.0-canary.41",
38
- "@mercurjs/client": "2.2.0-canary.41",
37
+ "@mercurjs/dashboard-shared": "2.2.0-canary.42",
38
+ "@mercurjs/client": "2.2.0-canary.42",
39
39
  "@ariakit/react": "^0.4.15",
40
40
  "@babel/runtime": "^7.26.10",
41
41
  "@dnd-kit/core": "^6.1.0",
@@ -88,8 +88,8 @@
88
88
  "tsup": "^8.0.2",
89
89
  "typescript": "5.9.3",
90
90
  "@medusajs/types": "2.17.2",
91
- "@mercurjs/core": "2.2.0-canary.41",
92
- "@mercurjs/dashboard-sdk": "2.2.0-canary.41",
93
- "@mercurjs/types": "2.2.0-canary.41"
91
+ "@mercurjs/core": "2.2.0-canary.42",
92
+ "@mercurjs/dashboard-sdk": "2.2.0-canary.42",
93
+ "@mercurjs/types": "2.2.0-canary.42"
94
94
  }
95
95
  }