@vendure/admin-ui 2.2.7 → 3.0.0-next.0

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.
Files changed (30) hide show
  1. package/LICENSE.md +36 -0
  2. package/core/common/generated-types.d.ts +6 -1
  3. package/core/common/version.d.ts +1 -1
  4. package/core/extension/components/route.component.d.ts +9 -2
  5. package/core/extension/register-route-component.d.ts +4 -0
  6. package/core/shared/components/order-state-label/order-state-label.component.d.ts +1 -1
  7. package/esm2022/core/common/generated-types.mjs +1 -1
  8. package/esm2022/core/common/introspection-result.mjs +1 -1
  9. package/esm2022/core/common/version.mjs +2 -2
  10. package/esm2022/core/data/utils/is-entity-create-or-update-mutation.mjs +1 -1
  11. package/esm2022/core/data/utils/remove-readonly-custom-fields.mjs +1 -1
  12. package/esm2022/core/extension/components/angular-route.component.mjs +10 -10
  13. package/esm2022/core/extension/components/route.component.mjs +32 -11
  14. package/esm2022/core/extension/register-data-table-component.mjs +1 -1
  15. package/esm2022/core/extension/register-route-component.mjs +4 -2
  16. package/esm2022/core/shared/components/timeline-entry/timeline-entry.component.mjs +1 -1
  17. package/esm2022/core/shared/providers/routing/can-deactivate-detail-guard.mjs +1 -1
  18. package/esm2022/core/shared/shared.module.mjs +1 -1
  19. package/esm2022/customer/customer.routes.mjs +1 -1
  20. package/esm2022/react/components/react-route.component.mjs +2 -2
  21. package/esm2022/react/react-components/RichTextEditor.mjs +1 -1
  22. package/esm2022/react/react-hooks/use-query.mjs +22 -8
  23. package/fesm2022/vendure-admin-ui-core.mjs +36 -16
  24. package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
  25. package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
  26. package/fesm2022/vendure-admin-ui-react.mjs +22 -8
  27. package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
  28. package/package.json +16 -16
  29. package/react/react-hooks/use-query.d.ts +9 -5
  30. package/LICENSE +0 -9
package/LICENSE.md ADDED
@@ -0,0 +1,36 @@
1
+ # License
2
+ Copyright (C) Vendure GmbH
3
+
4
+ This software is available under two different licenses:
5
+ * GNU General Public License version 3 (GPLv3) as Vendure Community Edition
6
+ * Vendure Commercial License (VCL)
7
+
8
+ The default Vendure license, without a valid Vendure Commercial License agreement, is the Open-Source GPLv3 license.
9
+
10
+ ## GNU General Public License version 3 (GPLv3)
11
+
12
+ If you decide to choose the GPLv3 license, you must comply with the following terms:
13
+
14
+ This program is free software: you can redistribute it and/or modify
15
+ it under the terms of the GNU General Public License as published by
16
+ the Free Software Foundation, either version 3 of the License, or
17
+ (at your option) any later version.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
26
+
27
+ ## Vendure Commercial License (VCL)
28
+
29
+ Alternatively, commercial and supported versions of the program - also known as
30
+ Commercial Distributions - must be used in accordance with the terms and conditions
31
+ contained in a separate written agreement between you and Vendure GmbH.
32
+ For more information about the Vendure Commercial License (VCL) please contact contact@vendure.io.
33
+
34
+ Please see also (files in this directory):
35
+ [Licensing FAQ - license-faq.md](license/license-faq.md)
36
+ [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - gpl-3.0.txt](license/gpl-3.0.txt)
@@ -2676,7 +2676,12 @@ export type Mutation = {
2676
2676
  duplicateEntity: DuplicateEntityResult;
2677
2677
  flushBufferedJobs: Success;
2678
2678
  importProducts?: Maybe<ImportInfo>;
2679
- /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
2679
+ /**
2680
+ * Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }})
2681
+ *
2682
+ * The `rememberMe` option applies when using cookie-based sessions, and if `true` it will set the maxAge of the session cookie
2683
+ * to 1 year.
2684
+ */
2680
2685
  login: NativeAuthenticationResult;
2681
2686
  logout: Success;
2682
2687
  /**
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "2.2.7";
1
+ export declare const ADMIN_UI_VERSION = "3.0.0-next.0";
@@ -2,12 +2,19 @@ import { InjectionToken } from '@angular/core';
2
2
  import { ActivatedRoute } from '@angular/router';
3
3
  import { Observable } from 'rxjs';
4
4
  import { AngularRouteComponentOptions } from '../types';
5
+ import { HeaderTab } from '../../shared/components/page-header-tabs/page-header-tabs.component';
6
+ import { PageService } from '../../providers/page/page.service';
7
+ import { PageLocationId } from '../../common/component-registry-types';
5
8
  import * as i0 from "@angular/core";
6
9
  export declare const ROUTE_COMPONENT_OPTIONS: InjectionToken<AngularRouteComponentOptions>;
7
10
  export declare class RouteComponent {
8
11
  private route;
12
+ private pageService;
9
13
  protected title$: Observable<string | undefined>;
10
- constructor(route: ActivatedRoute);
14
+ protected locationId: PageLocationId;
15
+ protected description: string;
16
+ headerTabs: HeaderTab[];
17
+ constructor(route: ActivatedRoute, pageService: PageService);
11
18
  static ɵfac: i0.ɵɵFactoryDeclaration<RouteComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<RouteComponent, "vdr-route-component", never, {}, {}, never, ["*"], true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<RouteComponent, "vdr-route-component", never, { "locationId": { "alias": "locationId"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, {}, never, ["*"], true, never>;
13
20
  }
@@ -20,6 +20,8 @@ export type RegisterRouteComponentOptions<Component extends any | BaseDetailComp
20
20
  }>, Field extends keyof ResultOf<T>, R extends Field> = {
21
21
  component: Type<Component> | Component;
22
22
  title?: string;
23
+ locationId?: string;
24
+ description?: string;
23
25
  breadcrumb?: BreadcrumbValue;
24
26
  path?: string;
25
27
  query?: T;
@@ -84,6 +86,8 @@ export declare function registerRouteComponent<Component extends any | BaseDetai
84
86
  };
85
87
  data: {
86
88
  breadcrumb: BehaviorSubject<BreadcrumbValue> | ((data: any) => any);
89
+ locationId: string | undefined;
90
+ description: string | undefined;
87
91
  };
88
92
  component: typeof AngularRouteComponent;
89
93
  title?: string | Type<import("@angular/router").Resolve<string>> | ResolveFn<string> | undefined;
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
11
11
  */
12
12
  export declare class OrderStateLabelComponent {
13
13
  state: string;
14
- get chipColorType(): "" | "error" | "success" | "warning";
14
+ get chipColorType(): "error" | "success" | "" | "warning";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderStateLabelComponent, never>;
16
16
  static ɵcmp: i0.ɵɵComponentDeclaration<OrderStateLabelComponent, "vdr-order-state-label", never, { "state": { "alias": "state"; "required": false; }; }, {}, never, ["*"], false, never>;
17
17
  }