@vendure/ui-devkit 2.1.0-next.4 → 2.1.0-next.6

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.
@@ -17,7 +17,7 @@ export declare function setTargetOrigin(value: string): void;
17
17
  * to otherwise get this information from within the child iframe.
18
18
  *
19
19
  * @example
20
- * ```TypeScript
20
+ * ```ts
21
21
  * import { getActivatedRoute } from '\@vendure/ui-devkit';
22
22
  *
23
23
  * const route = await getActivatedRoute();
@@ -32,7 +32,7 @@ export declare function getActivatedRoute(): Promise<ActiveRouteData>;
32
32
  * Perform a GraphQL query and returns either an Observable or a Promise of the result.
33
33
  *
34
34
  * @example
35
- * ```TypeScript
35
+ * ```ts
36
36
  * import { graphQlQuery } from '\@vendure/ui-devkit';
37
37
  *
38
38
  * const productList = await graphQlQuery(`
@@ -63,7 +63,7 @@ export declare function graphQlQuery<T, V extends {
63
63
  * Perform a GraphQL mutation and returns either an Observable or a Promise of the result.
64
64
  *
65
65
  * @example
66
- * ```TypeScript
66
+ * ```ts
67
67
  * import { graphQlMutation } from '\@vendure/ui-devkit';
68
68
  *
69
69
  * const disableProduct = (id: string) => {
@@ -94,7 +94,7 @@ export declare function graphQlMutation<T, V extends {
94
94
  * Display a toast notification.
95
95
  *
96
96
  * @example
97
- * ```TypeScript
97
+ * ```ts
98
98
  * import { notify } from '\@vendure/ui-devkit';
99
99
  *
100
100
  * notify({
@@ -4,7 +4,7 @@ import { BrandingOptions, StaticAssetExtension } from './types';
4
4
  * A helper function to simplify the process of setting custom branding images.
5
5
  *
6
6
  * @example
7
- * ```TypeScript
7
+ * ```ts
8
8
  * compileUiExtensions({
9
9
  * outputPath: path.join(__dirname, '../admin-ui'),
10
10
  * extensions: [
@@ -6,7 +6,7 @@ exports.setBranding = void 0;
6
6
  * A helper function to simplify the process of setting custom branding images.
7
7
  *
8
8
  * @example
9
- * ```TypeScript
9
+ * ```ts
10
10
  * compileUiExtensions({
11
11
  * outputPath: path.join(__dirname, '../admin-ui'),
12
12
  * extensions: [
@@ -146,16 +146,16 @@ function generateLazyExtensionRoutes(extensions) {
146
146
  for (const extension of extensions) {
147
147
  for (const module of extension.ngModules ?? []) {
148
148
  if (module.type === 'lazy') {
149
- routes.push(` {
150
- path: 'extensions/${module.route}',
151
- loadChildren: () => import('${getModuleFilePath(extension.id, module)}').then(m => m.${module.ngModuleName}),
149
+ routes.push(` {
150
+ path: 'extensions/${module.route}',
151
+ loadChildren: () => import('${getModuleFilePath(extension.id, module)}').then(m => m.${module.ngModuleName}),
152
152
  }`);
153
153
  }
154
154
  }
155
155
  for (const route of extension.routes ?? []) {
156
- routes.push(` {
157
- path: 'extensions/${route.route}',
158
- loadChildren: () => import('./extensions/${extension.id}/${path.basename(route.filePath, '.ts')}'),
156
+ routes.push(` {
157
+ path: 'extensions/${route.route}',
158
+ loadChildren: () => import('./extensions/${extension.id}/${path.basename(route.filePath, '.ts')}'),
159
159
  }`);
160
160
  }
161
161
  }
@@ -188,16 +188,16 @@ function generateSharedExtensionModule(extensions) {
188
188
  .map((m, i) => (m.providers ?? []).map((f, j) => `...SharedProviders_${i}_${j}`).join(', '))
189
189
  .filter(val => !!val)
190
190
  .join(', ');
191
- return `import { NgModule } from '@angular/core';
192
- import { CommonModule } from '@angular/common';
193
- ${moduleImports}
194
- ${providerImports}
195
-
196
- @NgModule({
197
- imports: [CommonModule, ${modules}],
198
- providers: [${providers}],
199
- })
200
- export class SharedExtensionsModule {}
191
+ return `import { NgModule } from '@angular/core';
192
+ import { CommonModule } from '@angular/common';
193
+ ${moduleImports}
194
+ ${providerImports}
195
+
196
+ @NgModule({
197
+ imports: [CommonModule, ${modules}],
198
+ providers: [${providers}],
199
+ })
200
+ export class SharedExtensionsModule {}
201
201
  `;
202
202
  }
203
203
  function getModuleFilePath(id, module) {
@@ -17,7 +17,7 @@ export interface TranslationExtension {
17
17
  * translation files in JSON format.
18
18
  *
19
19
  * @example
20
- * ```TypeScript
20
+ * ```ts
21
21
  * translations: {
22
22
  * en: path.join(__dirname, 'translations/*.en.json'),
23
23
  * de: path.join(__dirname, 'translations/*.de.json'),
@@ -79,7 +79,7 @@ export interface SassVariableOverridesExtension {
79
79
  * Angular [NgModules](https://angular.io/guide/ngmodules) which are compiled
80
80
  * into the application.
81
81
  *
82
- * See [Extending the Admin UI](/docs/plugins/extending-the-admin-ui/) for
82
+ * See [Extending the Admin UI](/guides/extending-the-admin-ui/getting-started/) for
83
83
  * detailed instructions.
84
84
  *
85
85
  * @docsCategory UiDevkit
@@ -357,7 +357,7 @@ export interface UiExtensionCompilerOptions {
357
357
  * also set the `route` option to match this value.
358
358
  *
359
359
  * @example
360
- * ```TypeScript
360
+ * ```ts
361
361
  * AdminUiPlugin.init({
362
362
  * route: 'my-route',
363
363
  * port: 5001,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/ui-devkit",
3
- "version": "2.1.0-next.4",
3
+ "version": "2.1.0-next.6",
4
4
  "description": "A library for authoring Vendure Admin UI extensions",
5
5
  "keywords": [
6
6
  "vendure",
@@ -40,8 +40,8 @@
40
40
  "@angular/cli": "^16.2.0",
41
41
  "@angular/compiler": "^16.2.2",
42
42
  "@angular/compiler-cli": "^16.2.2",
43
- "@vendure/admin-ui": "2.1.0-next.4",
44
- "@vendure/common": "2.1.0-next.4",
43
+ "@vendure/admin-ui": "2.1.0-next.6",
44
+ "@vendure/common": "2.1.0-next.6",
45
45
  "chalk": "^4.1.0",
46
46
  "chokidar": "^3.5.3",
47
47
  "fs-extra": "^11.1.1",
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@rollup/plugin-node-resolve": "^15.2.1",
53
53
  "@types/fs-extra": "^11.0.1",
54
- "@vendure/core": "2.1.0-next.4",
54
+ "@vendure/core": "2.1.0-next.6",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
57
  "rimraf": "^3.0.2",
@@ -61,5 +61,5 @@
61
61
  "tslib": "^2.6.2",
62
62
  "typescript": "4.9.5"
63
63
  },
64
- "gitHead": "10ba12c0a870f30bb083bffc142feb040f76db22"
64
+ "gitHead": "e81dcd69f73ea61731abf72068b8d576609b4b24"
65
65
  }