@vendure/dashboard 3.5.1-master-202510300232 → 3.5.1-master-202511010232
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 +4 -4
- package/src/app/routes/_authenticated/_orders/orders.tsx +1 -1
- package/src/app/routes/_authenticated/_products/components/add-product-variant-dialog.tsx +1 -1
- package/src/app/routes/_authenticated/_products/components/create-product-variants-dialog.tsx +1 -0
- package/src/app/routes/_authenticated/_products/components/create-product-variants.tsx +7 -8
- package/src/lib/components/ui/tooltip.tsx +1 -1
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-
|
|
4
|
+
"version": "3.5.1-master-202511010232",
|
|
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-
|
|
158
|
-
"@vendure/core": "^3.5.1-master-
|
|
157
|
+
"@vendure/common": "^3.5.1-master-202511010232",
|
|
158
|
+
"@vendure/core": "^3.5.1-master-202511010232",
|
|
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": "
|
|
175
|
+
"gitHead": "63d101e2fc1291d9e4140384aa2e415c845b0951"
|
|
176
176
|
}
|
|
@@ -85,7 +85,7 @@ function OrderListPage() {
|
|
|
85
85
|
header: () => <Trans>Shipping</Trans>,
|
|
86
86
|
cell: ({ row }) => {
|
|
87
87
|
const value = row.original.shippingLines;
|
|
88
|
-
return <div>{value
|
|
88
|
+
return <div>{value?.map(line => line.shippingMethod.name).join(', ')}</div>;
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
91
|
}}
|
|
@@ -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
|
|
346
|
+
currency={activeChannel?.defaultCurrencyCode}
|
|
347
347
|
/>
|
|
348
348
|
)}
|
|
349
349
|
/>
|
|
@@ -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
|
-
|
|
266
|
-
<span className="absolute left-3 top-2.5">
|
|
267
|
-
{currencyCode}
|
|
268
|
-
</span>
|
|
269
|
-
<Input
|
|
268
|
+
<MoneyInput
|
|
270
269
|
{...field}
|
|
271
|
-
|
|
272
|
-
|
|
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>
|
|
@@ -36,7 +36,7 @@ function TooltipContent({
|
|
|
36
36
|
data-slot="tooltip-content"
|
|
37
37
|
sideOffset={sideOffset}
|
|
38
38
|
className={cn(
|
|
39
|
-
'bg-secondary text-
|
|
39
|
+
'bg-secondary text-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs',
|
|
40
40
|
className,
|
|
41
41
|
)}
|
|
42
42
|
{...props}
|