@vendure/dashboard 3.3.4-master-202506190520 → 3.3.4
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.3.4
|
|
4
|
+
"version": "3.3.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"@types/react-dom": "^19.0.4",
|
|
87
87
|
"@types/react-grid-layout": "^1.3.5",
|
|
88
88
|
"@uidotdev/usehooks": "^2.4.1",
|
|
89
|
-
"@vendure/common": "
|
|
90
|
-
"@vendure/core": "
|
|
89
|
+
"@vendure/common": "3.3.4",
|
|
90
|
+
"@vendure/core": "3.3.4",
|
|
91
91
|
"@vitejs/plugin-react": "^4.3.4",
|
|
92
92
|
"awesome-graphql-client": "^2.1.0",
|
|
93
93
|
"class-variance-authority": "^0.7.1",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"lightningcss-linux-arm64-musl": "^1.29.3",
|
|
131
131
|
"lightningcss-linux-x64-musl": "^1.29.1"
|
|
132
132
|
},
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "43afa5dfa77ea01486da0694c9f4b988dab71ef2"
|
|
134
134
|
}
|
|
@@ -43,15 +43,17 @@ export function RichTextInput({ value, onChange }: RichTextInputProps) {
|
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
if (!editor) return null;
|
|
47
|
-
|
|
48
46
|
useLayoutEffect(() => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
if (editor) {
|
|
48
|
+
const { from, to } = editor.state.selection;
|
|
49
|
+
editor.commands.setContent(value, false);
|
|
50
|
+
editor.commands.setTextSelection({ from, to });
|
|
51
|
+
}
|
|
52
|
+
}, [value, editor]);
|
|
53
|
+
|
|
54
|
+
if (!editor) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
55
57
|
|
|
56
58
|
return (
|
|
57
59
|
<>
|
|
@@ -31,7 +31,7 @@ export function HumanReadableOperator({
|
|
|
31
31
|
case 'between':
|
|
32
32
|
return mode === 'short' ? <Trans>between</Trans> : <Trans>is between</Trans>;
|
|
33
33
|
case 'isNull':
|
|
34
|
-
return
|
|
34
|
+
return <Trans>is null</Trans>;
|
|
35
35
|
case 'in':
|
|
36
36
|
return mode === 'short' ? <Trans>in</Trans> : <Trans>is in</Trans>;
|
|
37
37
|
case 'notIn':
|
|
@@ -53,11 +53,11 @@ export function HumanReadableOperator({
|
|
|
53
53
|
<Trans>is less than or equal to</Trans>
|
|
54
54
|
);
|
|
55
55
|
case 'contains':
|
|
56
|
-
return
|
|
56
|
+
return <Trans>contains</Trans>;
|
|
57
57
|
case 'notContains':
|
|
58
|
-
return
|
|
58
|
+
return <Trans>does not contain</Trans>;
|
|
59
59
|
case 'regex':
|
|
60
|
-
return
|
|
60
|
+
return <Trans>matches regex</Trans>;
|
|
61
61
|
default:
|
|
62
62
|
operator satisfies never;
|
|
63
63
|
return <Trans>{operator}</Trans>;
|
|
@@ -76,6 +76,8 @@ function FeaturedAsset({
|
|
|
76
76
|
) : (
|
|
77
77
|
<div
|
|
78
78
|
className="flex flex-col items-center justify-center text-muted-foreground cursor-pointer"
|
|
79
|
+
onKeyDown={e => e.key === 'Enter' && onSelectAssets()}
|
|
80
|
+
tabIndex={0}
|
|
79
81
|
onClick={onSelectAssets}
|
|
80
82
|
>
|
|
81
83
|
<ImageIcon className={compact ? 'h-10 w-10' : 'h-16 w-16'} />
|