@vendure/ui-devkit 3.1.8 → 3.2.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/ui-devkit",
3
- "version": "3.1.8",
3
+ "version": "3.2.1",
4
4
  "description": "A library for authoring Vendure Admin UI extensions",
5
5
  "keywords": [
6
6
  "vendure",
@@ -8,7 +8,7 @@
8
8
  "extensions"
9
9
  ],
10
10
  "author": "Michael Bromley <michael@michaelbromley.co.uk>",
11
- "homepage": "https://www.vendure.io/",
11
+ "homepage": "https://www.vendure.io",
12
12
  "license": "GPL-3.0-or-later",
13
13
  "files": [
14
14
  "client",
@@ -23,7 +23,7 @@
23
23
  "types": "client/index.d.ts",
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "git+https://github.com/vendure-ecommerce/vendure.git"
26
+ "url": "https://github.com/vendure-ecommerce/vendure"
27
27
  },
28
28
  "scripts": {
29
29
  "build:client": "rimraf ./client && rollup -c rollup.config.mjs --configProduction",
@@ -36,12 +36,12 @@
36
36
  "url": "https://github.com/vendure-ecommerce/vendure/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@angular-devkit/build-angular": "^17.2.3",
40
- "@angular/cli": "^17.2.3",
41
- "@angular/compiler": "^17.2.4",
42
- "@angular/compiler-cli": "^17.2.4",
43
- "@vendure/admin-ui": "^3.1.8",
44
- "@vendure/common": "^3.1.8",
39
+ "@angular-devkit/build-angular": "^19.2.5",
40
+ "@angular/cli": "^19.2.5",
41
+ "@angular/compiler": "^19.2.4",
42
+ "@angular/compiler-cli": "^19.2.4",
43
+ "@vendure/admin-ui": "^3.2.1",
44
+ "@vendure/common": "^3.2.1",
45
45
  "chalk": "^4.1.0",
46
46
  "chokidar": "^3.6.0",
47
47
  "fs-extra": "^11.2.0",
@@ -52,14 +52,14 @@
52
52
  "@rollup/plugin-node-resolve": "^15.2.3",
53
53
  "@rollup/plugin-terser": "^0.4.4",
54
54
  "@types/fs-extra": "^11.0.4",
55
- "@vendure/core": "^3.1.8",
56
- "react": "^18.2.0",
57
- "react-dom": "^18.2.0",
55
+ "@vendure/core": "^3.2.1",
56
+ "react": "^19.0.0",
57
+ "react-dom": "^19.0.0",
58
58
  "rimraf": "^5.0.5",
59
59
  "rollup": "^4.13.0",
60
60
  "rollup-plugin-typescript2": "^0.36.0",
61
61
  "tslib": "^2.6.2",
62
- "typescript": "5.3.3"
62
+ "typescript": "5.8.2"
63
63
  },
64
- "gitHead": "1529b6fb6ffd18910b0d1c4117575445acd9d7b1"
64
+ "gitHead": "33097510fce9c547b937984e5c07962ba320a23a"
65
65
  }
@@ -1,7 +1,7 @@
1
- # Generated Admin UI
2
-
3
- This directory and its entire contents was generated the `compileUiExtensions()` function of the `@vendure/ui-devkit/compiler` package. It is not recommended to modify these files, since any changes will be overwritten upon re-compiling the ui extensions.
4
-
5
- ## Production app
6
-
7
- When compiling in production mode (`devMode: false`), the compiled application will be output to the `./dist` directory. This is a production-ready Angular application which can then be served from any web server, with attention to the [Angular server configuration guide](https://angular.io/guide/deployment#server-configuration).
1
+ # Generated Admin UI
2
+
3
+ This directory and its entire contents was generated the `compileUiExtensions()` function of the `@vendure/ui-devkit/compiler` package. It is not recommended to modify these files, since any changes will be overwritten upon re-compiling the ui extensions.
4
+
5
+ ## Production app
6
+
7
+ When compiling in production mode (`devMode: false`), the compiled application will be output to the `./dist` directory. This is a production-ready Angular application which can then be served from any web server, with attention to the [Angular server configuration guide](https://angular.io/guide/deployment#server-configuration).
@@ -1,128 +1,131 @@
1
- {
2
- "$schema": "../node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "newProjectRoot": "projects",
5
- "projects": {
6
- "vendure-admin": {
7
- "root": "",
8
- "sourceRoot": "src",
9
- "projectType": "application",
10
- "prefix": "vdr",
11
- "schematics": {
12
- "@schematics/angular:component": {
13
- "style": "scss"
14
- }
15
- },
16
- "architect": {
17
- "build": {
18
- "builder": "@angular-devkit/build-angular:browser",
19
- "options": {
20
- "baseHref": "/",
21
- "outputPath": "dist",
22
- "index": "src/index.html",
23
- "main": "src/main.ts",
24
- "polyfills": "src/polyfills.ts",
25
- "tsConfig": "src/tsconfig.app.json",
26
- "assets": [
27
- {
28
- "glob": "**/*.*",
29
- "input": "static-assets",
30
- "output": "assets"
31
- },
32
- "src/favicon.ico",
33
- {
34
- "glob": "favicon.ico",
35
- "input": "static-assets",
36
- "output": "/"
37
- },
38
- "src/vendure-ui-config.json",
39
- "src/theme.min.css",
40
- "src/assets",
41
- "src/i18n-messages",
42
- {
43
- "glob": "logo-*.*",
44
- "input": "static-assets",
45
- "output": "assets"
46
- }
47
- ],
48
- "styles": [
49
- "src/global-styles.scss"
50
- ],
51
- "stylePreprocessorOptions": {
52
- "includePaths": [
53
- "./src/styles",
54
- "./src/fonts"
55
- ]
56
- },
57
- "allowedCommonJsDependencies": [
58
- "graphql-tag",
59
- "zen-observable",
60
- "lodash",
61
- "dayjs",
62
- "apollo-upload-client",
63
- "@clr/icons",
64
- "@clr/icons/shapes/all-shapes",
65
- "@vendure/common/lib/generated-types",
66
- "@vendure/common/lib/simple-deep-clone",
67
- "@vendure/common/lib/shared-constants",
68
- "@vendure/common/lib/shared-utils",
69
- "@vendure/common/lib/normalize-string",
70
- "@vendure/common/lib/unique",
71
- "@vendure/common/lib/omit",
72
- "@vendure/common/lib/pick",
73
- "@messageformat/core"
74
- ],
75
- "vendorChunk": true,
76
- "extractLicenses": false,
77
- "buildOptimizer": false,
78
- "sourceMap": true,
79
- "optimization": false,
80
- "namedChunks": true
81
- },
82
- "configurations": {
83
- "production": {
84
- "budgets": [
85
- {
86
- "type": "anyComponentStyle",
87
- "maximumWarning": "6kb"
88
- }
89
- ],
90
- "fileReplacements": [
91
- {
92
- "replace": "src/environment.ts",
93
- "with": "src/environment.prod.ts"
94
- }
95
- ],
96
- "optimization": {
97
- "styles": {
98
- "inlineCritical": false
99
- }
100
- },
101
- "outputHashing": "all",
102
- "namedChunks": false,
103
- "extractLicenses": true,
104
- "vendorChunk": false
105
- }
106
- },
107
- "defaultConfiguration": ""
108
- },
109
- "serve": {
110
- "builder": "@angular-devkit/build-angular:dev-server",
111
- "options": {
112
- "browserTarget": "vendure-admin:build"
113
- }
114
- }
115
- }
116
- }
117
- },
118
- "schematics": {
119
- "@schematics/angular:component": {
120
- "skipTests": true,
121
- "changeDetection": "OnPush"
122
- }
123
- },
124
- "cli": {
125
- "packageManager": "yarn",
126
- "analytics": false
127
- }
128
- }
1
+ {
2
+ "$schema": "../node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "vendure-admin": {
7
+ "root": "",
8
+ "sourceRoot": "src",
9
+ "projectType": "application",
10
+ "prefix": "vdr",
11
+ "schematics": {
12
+ "@schematics/angular:component": {
13
+ "style": "scss"
14
+ }
15
+ },
16
+ "architect": {
17
+ "build": {
18
+ "builder": "@angular-devkit/build-angular:application",
19
+ "options": {
20
+ "baseHref": "/admin/",
21
+ "outputPath": {
22
+ "base": "dist"
23
+ },
24
+ "index": "src/index.html",
25
+ "polyfills": [
26
+ "src/polyfills.ts"
27
+ ],
28
+ "tsConfig": "src/tsconfig.app.json",
29
+ "assets": [
30
+ {
31
+ "glob": "**/*.*",
32
+ "input": "static-assets",
33
+ "output": "assets"
34
+ },
35
+ "src/favicon.ico",
36
+ {
37
+ "glob": "favicon.ico",
38
+ "input": "static-assets",
39
+ "output": "/"
40
+ },
41
+ "src/vendure-ui-config.json",
42
+ "src/theme.min.css",
43
+ "src/assets",
44
+ "src/i18n-messages",
45
+ {
46
+ "glob": "logo-*.*",
47
+ "input": "static-assets",
48
+ "output": "assets"
49
+ }
50
+ ],
51
+ "styles": [
52
+ "src/global-styles.scss"
53
+ ],
54
+ "stylePreprocessorOptions": {
55
+ "includePaths": [
56
+ "./src/styles",
57
+ "./src/fonts"
58
+ ],
59
+ "sass": {
60
+ "silenceDeprecations": ["mixed-decls", "color-functions", "global-builtin", "import"]
61
+ }
62
+ },
63
+ "allowedCommonJsDependencies": [
64
+ "graphql-tag",
65
+ "zen-observable",
66
+ "lodash",
67
+ "dayjs",
68
+ "apollo-upload-client",
69
+ "@clr/icons",
70
+ "@clr/icons/shapes/all-shapes",
71
+ "@vendure/common/lib/generated-types",
72
+ "@vendure/common/lib/simple-deep-clone",
73
+ "@vendure/common/lib/shared-constants",
74
+ "@vendure/common/lib/shared-utils",
75
+ "@vendure/common/lib/normalize-string",
76
+ "@vendure/common/lib/unique",
77
+ "@vendure/common/lib/omit",
78
+ "@vendure/common/lib/pick",
79
+ "@messageformat/core"
80
+ ],
81
+ "extractLicenses": false,
82
+ "sourceMap": true,
83
+ "optimization": false,
84
+ "namedChunks": true,
85
+ "browser": "src/main.ts"
86
+ },
87
+ "configurations": {
88
+ "production": {
89
+ "budgets": [
90
+ {
91
+ "type": "anyComponentStyle",
92
+ "maximumWarning": "6kb"
93
+ }
94
+ ],
95
+ "fileReplacements": [
96
+ {
97
+ "replace": "src/environment.ts",
98
+ "with": "src/environment.prod.ts"
99
+ }
100
+ ],
101
+ "optimization": {
102
+ "styles": {
103
+ "inlineCritical": false
104
+ }
105
+ },
106
+ "outputHashing": "all",
107
+ "namedChunks": false,
108
+ "extractLicenses": true
109
+ }
110
+ },
111
+ "defaultConfiguration": ""
112
+ },
113
+ "serve": {
114
+ "builder": "@angular-devkit/build-angular:dev-server",
115
+ "options": {
116
+ "buildTarget": "vendure-admin:build"
117
+ }
118
+ }
119
+ }
120
+ }
121
+ },
122
+ "schematics": {
123
+ "@schematics/angular:component": {
124
+ "skipTests": true,
125
+ "changeDetection": "OnPush"
126
+ }
127
+ },
128
+ "cli": {
129
+ "analytics": false
130
+ }
131
+ }
@@ -1,11 +1,11 @@
1
- {
2
- "name": "vendure-admin-ui",
3
- "dependencies": {},
4
- "license": "UNLICENSED",
5
- "private": true,
6
- "scripts": {
7
- "ng": "ng",
8
- "start": "ng serve",
9
- "build": "ng build --configuration production"
10
- }
11
- }
1
+ {
2
+ "name": "vendure-admin-ui",
3
+ "dependencies": {},
4
+ "license": "UNLICENSED",
5
+ "private": true,
6
+ "scripts": {
7
+ "ng": "ng",
8
+ "start": "ng serve",
9
+ "build": "ng build --configuration production"
10
+ }
11
+ }
@@ -1,19 +1,19 @@
1
- import { NgModule } from '@angular/core';
2
- import { Route, RouterModule } from '@angular/router';
3
- import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
4
- import { AppComponent, AppComponentModule, CoreModule } from '@vendure/admin-ui/core';
5
-
6
- import { routes } from './app.routes';
7
- import { SharedExtensionsModule } from './shared-extensions.module';
8
-
9
- @NgModule({
10
- declarations: [],
11
- imports: [
12
- AppComponentModule,
13
- RouterModule.forRoot(routes, { useHash: false }),
14
- CoreModule,
15
- SharedExtensionsModule,
16
- ],
17
- bootstrap: [AppComponent],
18
- })
19
- export class AppModule {}
1
+ import { NgModule } from '@angular/core';
2
+ import { Route, RouterModule } from '@angular/router';
3
+ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
4
+ import { AppComponent, AppComponentModule, CoreModule } from '@vendure/admin-ui/core';
5
+
6
+ import { routes } from './app.routes';
7
+ import { SharedExtensionsModule } from './shared-extensions.module';
8
+
9
+ @NgModule({
10
+ declarations: [],
11
+ imports: [
12
+ AppComponentModule,
13
+ RouterModule.forRoot(routes, { useHash: false }),
14
+ CoreModule,
15
+ SharedExtensionsModule,
16
+ ],
17
+ bootstrap: [AppComponent],
18
+ })
19
+ export class AppModule {}
@@ -1,52 +1,52 @@
1
- import { Route } from '@angular/router';
2
- import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
3
- import { AppShellComponent, AuthGuard } from '@vendure/admin-ui/core';
4
-
5
- import { extensionRoutes } from './extension.routes';
6
-
7
- export const routes: Route[] = [
8
- { path: 'login', loadChildren: () => import('@vendure/admin-ui/login').then(m => m.LoginModule) },
9
- {
10
- path: '',
11
- canActivate: [AuthGuard],
12
- component: AppShellComponent,
13
- data: {
14
- breadcrumb: _('breadcrumb.dashboard'),
15
- },
16
- children: [
17
- // Defining the extension routes before the built-in routes allows
18
- // the extension routes to take precedence over the built-in routes, enabling
19
- // the extensions to override built-in functionality.
20
- ...extensionRoutes,
21
- {
22
- path: '',
23
- pathMatch: 'full',
24
- loadChildren: () => import('@vendure/admin-ui/dashboard').then(m => m.DashboardModule),
25
- },
26
- {
27
- path: 'catalog',
28
- loadChildren: () => import('@vendure/admin-ui/catalog').then(m => m.CatalogModule),
29
- },
30
- {
31
- path: 'customer',
32
- loadChildren: () => import('@vendure/admin-ui/customer').then(m => m.CustomerModule),
33
- },
34
- {
35
- path: 'orders',
36
- loadChildren: () => import('@vendure/admin-ui/order').then(m => m.OrderModule),
37
- },
38
- {
39
- path: 'marketing',
40
- loadChildren: () => import('@vendure/admin-ui/marketing').then(m => m.MarketingModule),
41
- },
42
- {
43
- path: 'settings',
44
- loadChildren: () => import('@vendure/admin-ui/settings').then(m => m.SettingsModule),
45
- },
46
- {
47
- path: 'system',
48
- loadChildren: () => import('@vendure/admin-ui/system').then(m => m.SystemModule),
49
- },
50
- ],
51
- },
52
- ];
1
+ import { Route } from '@angular/router';
2
+ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
3
+ import { AppShellComponent, AuthGuard } from '@vendure/admin-ui/core';
4
+
5
+ import { extensionRoutes } from './extension.routes';
6
+
7
+ export const routes: Route[] = [
8
+ { path: 'login', loadChildren: () => import('@vendure/admin-ui/login').then(m => m.LoginModule) },
9
+ {
10
+ path: '',
11
+ canActivate: [AuthGuard],
12
+ component: AppShellComponent,
13
+ data: {
14
+ breadcrumb: _('breadcrumb.dashboard'),
15
+ },
16
+ children: [
17
+ // Defining the extension routes before the built-in routes allows
18
+ // the extension routes to take precedence over the built-in routes, enabling
19
+ // the extensions to override built-in functionality.
20
+ ...extensionRoutes,
21
+ {
22
+ path: '',
23
+ pathMatch: 'full',
24
+ loadChildren: () => import('@vendure/admin-ui/dashboard').then(m => m.DashboardModule),
25
+ },
26
+ {
27
+ path: 'catalog',
28
+ loadChildren: () => import('@vendure/admin-ui/catalog').then(m => m.CatalogModule),
29
+ },
30
+ {
31
+ path: 'customer',
32
+ loadChildren: () => import('@vendure/admin-ui/customer').then(m => m.CustomerModule),
33
+ },
34
+ {
35
+ path: 'orders',
36
+ loadChildren: () => import('@vendure/admin-ui/order').then(m => m.OrderModule),
37
+ },
38
+ {
39
+ path: 'marketing',
40
+ loadChildren: () => import('@vendure/admin-ui/marketing').then(m => m.MarketingModule),
41
+ },
42
+ {
43
+ path: 'settings',
44
+ loadChildren: () => import('@vendure/admin-ui/settings').then(m => m.SettingsModule),
45
+ },
46
+ {
47
+ path: 'system',
48
+ loadChildren: () => import('@vendure/admin-ui/system').then(m => m.SystemModule),
49
+ },
50
+ ],
51
+ },
52
+ ];
@@ -1,3 +1,3 @@
1
- export const environment = {
2
- production: true,
3
- };
1
+ export const environment = {
2
+ production: true,
3
+ };
@@ -1,6 +1,6 @@
1
- // This file can be replaced during build by using the `fileReplacements` array.
2
- // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
3
- // The list of file replacements can be found in `angular.json`.
4
- export const environment = {
5
- production: false,
6
- };
1
+ // This file can be replaced during build by using the `fileReplacements` array.
2
+ // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
3
+ // The list of file replacements can be found in `angular.json`.
4
+ export const environment = {
5
+ production: false,
6
+ };
@@ -1 +1 @@
1
- export const extensionRoutes = [];
1
+ export const extensionRoutes = [];
@@ -1,17 +1,17 @@
1
- import { enableProdMode } from '@angular/core';
2
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
- import { loadAppConfig } from '@vendure/admin-ui/core';
4
-
5
- import { AppModule } from './app.module';
6
- import { environment } from './environment';
7
-
8
- if (environment.production) {
9
- enableProdMode();
10
- }
11
-
12
- loadAppConfig()
13
- .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
14
- .catch((err: any) => {
15
- /* eslint-disable no-console */
16
- console.log(err);
17
- });
1
+ import { enableProdMode } from '@angular/core';
2
+ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
+ import { loadAppConfig } from '@vendure/admin-ui/core';
4
+
5
+ import { AppModule } from './app.module';
6
+ import { environment } from './environment';
7
+
8
+ if (environment.production) {
9
+ enableProdMode();
10
+ }
11
+
12
+ loadAppConfig()
13
+ .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
14
+ .catch((err: any) => {
15
+ /* eslint-disable no-console */
16
+ console.log(err);
17
+ });
@@ -1,7 +1,7 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
-
4
- @NgModule({
5
- imports: [CommonModule],
6
- })
7
- export class SharedExtensionsModule {}
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+
4
+ @NgModule({
5
+ imports: [CommonModule],
6
+ })
7
+ export class SharedExtensionsModule {}
@@ -1 +1 @@
1
- @import "./styles";
1
+ @import "./styles";
@@ -1,18 +1,18 @@
1
- {
2
- "extends": "../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../out-tsc/app"
5
- },
6
- "files": [
7
- "main.ts",
8
- "polyfills.ts"
9
- ],
10
- "include": [
11
- "**/*.d.ts"
12
- ],
13
- "angularCompilerOptions": {
14
- "strictMetadataEmit": true,
15
- "fullTemplateTypeCheck": false,
16
- "strictInjectionParameters": true
17
- }
18
- }
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../out-tsc/app"
5
+ },
6
+ "files": [
7
+ "main.ts",
8
+ "polyfills.ts"
9
+ ],
10
+ "include": [
11
+ "**/*.d.ts"
12
+ ],
13
+ "angularCompilerOptions": {
14
+ "strictMetadataEmit": true,
15
+ "fullTemplateTypeCheck": false,
16
+ "strictInjectionParameters": true
17
+ }
18
+ }