@vendure/admin-ui 2.2.7 → 2.3.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.
Files changed (28) hide show
  1. package/core/common/generated-types.d.ts +6 -1
  2. package/core/common/version.d.ts +1 -1
  3. package/core/extension/components/route.component.d.ts +9 -2
  4. package/core/extension/register-route-component.d.ts +4 -0
  5. package/core/shared/components/order-state-label/order-state-label.component.d.ts +1 -1
  6. package/esm2022/core/common/generated-types.mjs +1 -1
  7. package/esm2022/core/common/introspection-result.mjs +1 -1
  8. package/esm2022/core/common/version.mjs +2 -2
  9. package/esm2022/core/data/utils/is-entity-create-or-update-mutation.mjs +1 -1
  10. package/esm2022/core/data/utils/remove-readonly-custom-fields.mjs +1 -1
  11. package/esm2022/core/extension/components/angular-route.component.mjs +10 -10
  12. package/esm2022/core/extension/components/route.component.mjs +32 -11
  13. package/esm2022/core/extension/register-data-table-component.mjs +1 -1
  14. package/esm2022/core/extension/register-route-component.mjs +4 -2
  15. package/esm2022/core/shared/components/timeline-entry/timeline-entry.component.mjs +1 -1
  16. package/esm2022/core/shared/providers/routing/can-deactivate-detail-guard.mjs +1 -1
  17. package/esm2022/core/shared/shared.module.mjs +1 -1
  18. package/esm2022/customer/customer.routes.mjs +1 -1
  19. package/esm2022/react/components/react-route.component.mjs +2 -2
  20. package/esm2022/react/react-components/RichTextEditor.mjs +1 -1
  21. package/esm2022/react/react-hooks/use-query.mjs +22 -8
  22. package/fesm2022/vendure-admin-ui-core.mjs +36 -16
  23. package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
  24. package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
  25. package/fesm2022/vendure-admin-ui-react.mjs +22 -8
  26. package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
  27. package/package.json +9 -9
  28. package/react/react-hooks/use-query.d.ts +9 -5
@@ -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 = "2.3.1";
@@ -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
  }