@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.
- package/core/common/generated-types.d.ts +6 -1
- package/core/common/version.d.ts +1 -1
- package/core/extension/components/route.component.d.ts +9 -2
- package/core/extension/register-route-component.d.ts +4 -0
- package/core/shared/components/order-state-label/order-state-label.component.d.ts +1 -1
- package/esm2022/core/common/generated-types.mjs +1 -1
- package/esm2022/core/common/introspection-result.mjs +1 -1
- package/esm2022/core/common/version.mjs +2 -2
- package/esm2022/core/data/utils/is-entity-create-or-update-mutation.mjs +1 -1
- package/esm2022/core/data/utils/remove-readonly-custom-fields.mjs +1 -1
- package/esm2022/core/extension/components/angular-route.component.mjs +10 -10
- package/esm2022/core/extension/components/route.component.mjs +32 -11
- package/esm2022/core/extension/register-data-table-component.mjs +1 -1
- package/esm2022/core/extension/register-route-component.mjs +4 -2
- package/esm2022/core/shared/components/timeline-entry/timeline-entry.component.mjs +1 -1
- package/esm2022/core/shared/providers/routing/can-deactivate-detail-guard.mjs +1 -1
- package/esm2022/core/shared/shared.module.mjs +1 -1
- package/esm2022/customer/customer.routes.mjs +1 -1
- package/esm2022/react/components/react-route.component.mjs +2 -2
- package/esm2022/react/react-components/RichTextEditor.mjs +1 -1
- package/esm2022/react/react-hooks/use-query.mjs +22 -8
- package/fesm2022/vendure-admin-ui-core.mjs +36 -16
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs +22 -8
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
- package/package.json +9 -9
- 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
|
-
/**
|
|
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
|
/**
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "2.
|
|
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
|
-
|
|
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(): "" | "
|
|
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
|
}
|