@vendure/dashboard 3.3.5-master-202506190846 → 3.3.5-master-202506191033
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.
|
@@ -22,7 +22,7 @@ export function viteConfigPlugin({ packageRoot }) {
|
|
|
22
22
|
? outDirIsAbsolute
|
|
23
23
|
? buildConfig.outDir
|
|
24
24
|
: path.resolve(process.cwd(), buildConfig.outDir)
|
|
25
|
-
: path.resolve(process.cwd(), 'dist
|
|
25
|
+
: path.resolve(process.cwd(), 'dist');
|
|
26
26
|
config.build = Object.assign(Object.assign({}, buildConfig), { outDir: normalizedOutDir });
|
|
27
27
|
}
|
|
28
28
|
config.resolve = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/dashboard",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.3.5-master-
|
|
4
|
+
"version": "3.3.5-master-202506191033",
|
|
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": "^3.3.5-master-
|
|
90
|
-
"@vendure/core": "^3.3.5-master-
|
|
89
|
+
"@vendure/common": "^3.3.5-master-202506191033",
|
|
90
|
+
"@vendure/core": "^3.3.5-master-202506191033",
|
|
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": "87b40d7de9d84a840e9a53fbb7fcc8e588ff4896"
|
|
134
134
|
}
|
package/src/app/main.tsx
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Toaster } from '@/components/ui/sonner.js';
|
|
2
|
+
import { registerDefaults } from '@/framework/defaults.js';
|
|
2
3
|
import { setCustomFieldsMap } from '@/framework/document-introspection/add-custom-fields.js';
|
|
4
|
+
import { executeDashboardExtensionCallbacks } from '@/framework/extension-api/define-dashboard-extension.js';
|
|
3
5
|
import { useDashboardExtensions } from '@/framework/extension-api/use-dashboard-extensions.js';
|
|
4
6
|
import { useExtendedRouter } from '@/framework/page/use-extended-router.js';
|
|
5
7
|
import { useAuth } from '@/hooks/use-auth.js';
|
|
@@ -8,8 +10,6 @@ import { defaultLocale, dynamicActivate } from '@/providers/i18n-provider.js';
|
|
|
8
10
|
import { createRouter, RouterProvider } from '@tanstack/react-router';
|
|
9
11
|
import React, { useEffect } from 'react';
|
|
10
12
|
import ReactDOM from 'react-dom/client';
|
|
11
|
-
import { registerDefaults } from '@/framework/defaults.js';
|
|
12
|
-
import { executeDashboardExtensionCallbacks } from '@/framework/extension-api/define-dashboard-extension.js';
|
|
13
13
|
|
|
14
14
|
import { AppProviders, queryClient } from './app-providers.js';
|
|
15
15
|
import { routeTree } from './routeTree.gen.js';
|
|
@@ -26,6 +26,8 @@ export const router = createRouter({
|
|
|
26
26
|
routeTree,
|
|
27
27
|
defaultPreload: 'intent',
|
|
28
28
|
scrollRestoration: true,
|
|
29
|
+
// In case the dashboard gets served from a subpath, we need to set the basepath based on the environment variable
|
|
30
|
+
...(import.meta.env.BASE_URL ? { basepath: import.meta.env.BASE_URL } : {}),
|
|
29
31
|
context: {
|
|
30
32
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
31
33
|
auth: undefined!, // This will be set after we wrap the app in an AuthProvider
|
|
@@ -26,7 +26,7 @@ export function viteConfigPlugin({ packageRoot }: { packageRoot: string }): Plug
|
|
|
26
26
|
? outDirIsAbsolute
|
|
27
27
|
? (buildConfig.outDir as string)
|
|
28
28
|
: path.resolve(process.cwd(), buildConfig.outDir as string)
|
|
29
|
-
: path.resolve(process.cwd(), 'dist
|
|
29
|
+
: path.resolve(process.cwd(), 'dist');
|
|
30
30
|
|
|
31
31
|
config.build = {
|
|
32
32
|
...buildConfig,
|