@vendure/dashboard 3.5.1-master-202510300232 → 3.5.1-master-202510310232

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vendure/dashboard",
3
3
  "private": false,
4
- "version": "3.5.1-master-202510300232",
4
+ "version": "3.5.1-master-202510310232",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -154,8 +154,8 @@
154
154
  "@storybook/addon-vitest": "^10.0.0-beta.9",
155
155
  "@storybook/react-vite": "^10.0.0-beta.9",
156
156
  "@types/node": "^22.13.4",
157
- "@vendure/common": "^3.5.1-master-202510300232",
158
- "@vendure/core": "^3.5.1-master-202510300232",
157
+ "@vendure/common": "^3.5.1-master-202510310232",
158
+ "@vendure/core": "^3.5.1-master-202510310232",
159
159
  "@vitest/browser": "^3.2.4",
160
160
  "@vitest/coverage-v8": "^3.2.4",
161
161
  "eslint": "^9.19.0",
@@ -172,5 +172,5 @@
172
172
  "lightningcss-linux-arm64-musl": "^1.29.3",
173
173
  "lightningcss-linux-x64-musl": "^1.29.1"
174
174
  },
175
- "gitHead": "6c96fe6ef95a875e71433f5302a5578115d376b8"
175
+ "gitHead": "8c7ae8868ccdb0ebccfbbe8a867028e6971ce602"
176
176
  }
@@ -343,7 +343,7 @@ export function AddProductVariantDialog({
343
343
  {...field}
344
344
  value={Number(field.value) || 0}
345
345
  onChange={value => field.onChange(value.toString())}
346
- currency={activeChannel?.defaultCurrencyCode ?? 'USD'}
346
+ currency={activeChannel?.defaultCurrencyCode}
347
347
  />
348
348
  )}
349
349
  />
@@ -95,6 +95,7 @@ export function CreateProductVariantsDialog({
95
95
  const name = variant.options.length
96
96
  ? `${productName} ${variant.options.map(option => option.value).join(' ')}`
97
97
  : productName;
98
+
98
99
  return {
99
100
  productId,
100
101
  sku: variant.sku,
@@ -12,6 +12,8 @@ import { useEffect, useMemo, useState } from 'react';
12
12
  import { FormProvider, useForm } from 'react-hook-form';
13
13
  import { z } from 'zod';
14
14
  import { OptionGroupConfiguration, optionGroupSchema, OptionGroupsEditor } from './option-groups-editor.js';
15
+ import { MoneyInput } from '@/vdb/components/data-input/index.js';
16
+ import { useChannel } from '@/vdb/hooks/use-channel.js';
15
17
 
16
18
  const getStockLocationsDocument = graphql(`
17
19
  query GetStockLocations($options: StockLocationListOptions) {
@@ -90,6 +92,7 @@ export function CreateProductVariants({
90
92
  queryKey: ['stockLocations'],
91
93
  queryFn: () => api.query(getStockLocationsDocument, { options: { take: 100 } }),
92
94
  });
95
+ const { activeChannel } = useChannel();
93
96
  const stockLocations = stockLocationsResult?.stockLocations.items ?? [];
94
97
 
95
98
  const [optionGroups, setOptionGroups] = useState<OptionGroupConfiguration['optionGroups']>([]);
@@ -262,16 +265,12 @@ export function CreateProductVariants({
262
265
  render={({ field }) => (
263
266
  <FormItem>
264
267
  <FormControl>
265
- <div className="relative">
266
- <span className="absolute left-3 top-2.5">
267
- {currencyCode}
268
- </span>
269
- <Input
268
+ <MoneyInput
270
269
  {...field}
271
- className="pl-12"
272
- placeholder="0.00"
270
+ value={Number(field.value) || 0}
271
+ onChange={value => field.onChange(value.toString())}
272
+ currency={activeChannel?.defaultCurrencyCode}
273
273
  />
274
- </div>
275
274
  </FormControl>
276
275
  <FormMessage />
277
276
  </FormItem>