@ikas/storefront 0.0.7 → 0.0.12
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/build/__generated__/global-types.d.ts +8 -0
- package/build/api/apollo.d.ts +2 -2
- package/build/api/category/__generated__/listCategory.d.ts +1 -1
- package/build/api/checkout/index.d.ts +4 -4
- package/build/api/customer/index.d.ts +6 -6
- package/build/api/product/__generated__/listProduct.d.ts +4 -5
- package/build/api/product-stock-location/index.d.ts +1 -1
- package/build/api/stock-location/index.d.ts +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +19 -19
- package/build/components/checkout/model.d.ts +4 -4
- package/build/components/gtm/functions.d.ts +12 -12
- package/build/components/hoc/ThemeComponent.d.ts +2 -1
- package/build/components/page-editor/model.d.ts +4 -4
- package/build/index.es.js +539 -82
- package/build/index.js +538 -80
- package/build/models/data/order/line-item/variant/index.d.ts +1 -1
- package/build/models/data/product/attribute-value/index.d.ts +1 -1
- package/build/models/data/product/index.d.ts +1 -1
- package/build/models/data/product/variant/index.d.ts +1 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +1 -1
- package/build/models/theme/component/prop/index.d.ts +4 -1
- package/build/models/theme/index.d.ts +2 -0
- package/build/models/theme/page/component/prop-value/category-list.d.ts +9 -0
- package/build/models/theme/page/component/prop-value/category.d.ts +5 -0
- package/build/models/theme/theme.d.ts +2 -2
- package/build/models/ui/brand-list/index.d.ts +1 -1
- package/build/models/ui/category-list/index.d.ts +58 -0
- package/build/models/ui/index.d.ts +1 -0
- package/build/models/ui/product-detail/index.d.ts +1 -1
- package/build/models/ui/product-list/index.d.ts +3 -3
- package/build/store/cart.d.ts +2 -2
- package/build/store/customer.d.ts +2 -2
- package/build/utils/providers/page-data.d.ts +3 -2
- package/build/utils/providers/prop-value/boolean.d.ts +6 -0
- package/build/utils/providers/prop-value/category-list.d.ts +7 -0
- package/build/utils/providers/prop-value/category.d.ts +8 -0
- package/build/utils/providers/prop-value/image-list.d.ts +7 -0
- package/build/utils/providers/prop-value/image.d.ts +7 -0
- package/build/utils/providers/prop-value/link.d.ts +1 -1
- package/build/utils/providers/prop-value/text.d.ts +6 -0
- package/package.json +1 -1
- package/build/models/theme/component/prop/value/index.d.ts +0 -14
|
@@ -11,7 +11,7 @@ export declare class IkasOrderLineVariant {
|
|
|
11
11
|
variantValues: IkasOrderLineVariantVariantValue[];
|
|
12
12
|
mainImage?: IkasImage | null;
|
|
13
13
|
constructor(data?: Partial<IkasOrderLineVariant>);
|
|
14
|
-
get href(): string;
|
|
14
|
+
get href(): string | undefined;
|
|
15
15
|
}
|
|
16
16
|
export declare class IkasOrderLineVariantVariantValue {
|
|
17
17
|
order: number;
|
|
@@ -19,7 +19,7 @@ export declare class IkasProduct {
|
|
|
19
19
|
variantTypes: IkasProductVariantType[];
|
|
20
20
|
constructor(data?: Partial<IkasProduct>);
|
|
21
21
|
get hasVariant(): boolean;
|
|
22
|
-
get mainVariantType(): import("../index").IkasVariantType;
|
|
22
|
+
get mainVariantType(): import("../index").IkasVariantType | undefined;
|
|
23
23
|
get href(): string;
|
|
24
24
|
}
|
|
25
25
|
export declare enum IkasProductType {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export declare class IkasThemeComponentProp {
|
|
2
|
+
id: string;
|
|
2
3
|
name: string;
|
|
3
4
|
displayName: string;
|
|
4
5
|
type: IkasThemeComponentPropType;
|
|
6
|
+
isRequired: boolean;
|
|
5
7
|
constructor(data: Partial<IkasThemeComponentProp>);
|
|
6
8
|
}
|
|
7
9
|
export declare enum IkasThemeComponentPropType {
|
|
8
|
-
IMAGE = "IMAGE",
|
|
9
10
|
TEXT = "TEXT",
|
|
10
11
|
BOOLEAN = "BOOLEAN",
|
|
12
|
+
IMAGE = "IMAGE",
|
|
13
|
+
IMAGE_LIST = "IMAGE_LIST",
|
|
11
14
|
LINK = "LINK",
|
|
12
15
|
LIST_OF_LINK = "LIST_OF_LINK",
|
|
13
16
|
PRODUCT_DETAIL = "PRODUCT_DETAIL",
|
|
@@ -8,3 +8,5 @@ export { IkasBrandPropValue } from "./page/component/prop-value/brand";
|
|
|
8
8
|
export { IkasBrandListPropValue } from "./page/component/prop-value/brand-list";
|
|
9
9
|
export { IkasProductListPropValue } from "./page/component/prop-value/product-list";
|
|
10
10
|
export { IkasProductDetailPropValue } from "./page/component/prop-value/product-detail";
|
|
11
|
+
export { IkasCategoryPropValue } from "./page/component/prop-value/category";
|
|
12
|
+
export { IkasCategoryListPropValue } from "./page/component/prop-value/category-list";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasCategoryListSortType, IkasCategoryListType } from "../../../../ui/category-list/index";
|
|
2
|
+
export declare class IkasCategoryListPropValue {
|
|
3
|
+
categoryListType: IkasCategoryListType;
|
|
4
|
+
initialSort?: IkasCategoryListSortType | null;
|
|
5
|
+
initialLimit?: number | null;
|
|
6
|
+
categoryCount?: number | null;
|
|
7
|
+
categoryIds?: string[] | null;
|
|
8
|
+
constructor(data: Partial<IkasCategoryListPropValue>);
|
|
9
|
+
}
|
|
@@ -5,6 +5,6 @@ export declare class IkasTheme {
|
|
|
5
5
|
components: IkasThemeComponent[];
|
|
6
6
|
pages: IkasThemePage[];
|
|
7
7
|
constructor(data?: Partial<IkasTheme>);
|
|
8
|
-
get headerComponent(): IkasThemeComponent;
|
|
9
|
-
get footerComponent(): IkasThemeComponent;
|
|
8
|
+
get headerComponent(): IkasThemeComponent | undefined;
|
|
9
|
+
get footerComponent(): IkasThemeComponent | undefined;
|
|
10
10
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IkasCategory } from "../../data/index";
|
|
2
|
+
import { IkasCategoryListPropValue } from "../../theme/page/component/prop-value/category-list";
|
|
3
|
+
export declare class IkasCategoryList {
|
|
4
|
+
data: IkasCategory[];
|
|
5
|
+
private _type;
|
|
6
|
+
private _sort;
|
|
7
|
+
private _limit;
|
|
8
|
+
private _page;
|
|
9
|
+
private _count;
|
|
10
|
+
private _initialized;
|
|
11
|
+
private _minPage?;
|
|
12
|
+
private _categoryListPropValue;
|
|
13
|
+
private _isLoading;
|
|
14
|
+
constructor(data: IkasCategoryListParams);
|
|
15
|
+
get sort(): IkasCategoryListSortType;
|
|
16
|
+
get limit(): number;
|
|
17
|
+
get page(): number;
|
|
18
|
+
get count(): number;
|
|
19
|
+
get isInitialized(): boolean;
|
|
20
|
+
get isStatic(): boolean;
|
|
21
|
+
get hasPrev(): boolean;
|
|
22
|
+
get hasNext(): boolean;
|
|
23
|
+
get isLoading(): boolean;
|
|
24
|
+
getInitial: () => Promise<void>;
|
|
25
|
+
getPrev: () => Promise<void>;
|
|
26
|
+
getNext: () => Promise<void>;
|
|
27
|
+
getPage: (page: number) => Promise<void>;
|
|
28
|
+
toJSON(): {
|
|
29
|
+
data: IkasCategory[];
|
|
30
|
+
type: IkasCategoryListType;
|
|
31
|
+
sort: IkasCategoryListSortType;
|
|
32
|
+
limit: number;
|
|
33
|
+
page: number;
|
|
34
|
+
count: number;
|
|
35
|
+
initialized: boolean;
|
|
36
|
+
minPage: number | null | undefined;
|
|
37
|
+
categoryListPropValue: IkasCategoryListPropValue;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export declare type IkasCategoryListParams = {
|
|
41
|
+
data?: IkasCategory[];
|
|
42
|
+
type?: IkasCategoryListType;
|
|
43
|
+
sort?: IkasCategoryListSortType;
|
|
44
|
+
limit?: number;
|
|
45
|
+
page?: number;
|
|
46
|
+
count?: number;
|
|
47
|
+
initialized?: boolean;
|
|
48
|
+
minPage?: number;
|
|
49
|
+
categoryListPropValue: IkasCategoryListPropValue;
|
|
50
|
+
};
|
|
51
|
+
export declare enum IkasCategoryListType {
|
|
52
|
+
ALL = "ALL",
|
|
53
|
+
STATIC = "STATIC"
|
|
54
|
+
}
|
|
55
|
+
export declare enum IkasCategoryListSortType {
|
|
56
|
+
A_Z = "A_Z",
|
|
57
|
+
Z_A = "Z_A"
|
|
58
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list/index";
|
|
2
|
+
export { IkasCategoryList, IkasCategoryListType, IkasCategoryListSortType, } from "./category-list/index";
|
|
2
3
|
export type { IkasBrandListParams } from "./brand-list/index";
|
|
3
4
|
export { IkasNavigationLink } from "./navigation-link/index";
|
|
4
5
|
export { IkasProductDetail } from "./product-detail/index";
|
|
@@ -6,7 +6,7 @@ export declare class IkasProductDetail {
|
|
|
6
6
|
private usePageData?;
|
|
7
7
|
private router?;
|
|
8
8
|
constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], usePageData?: boolean, router?: NextRouter);
|
|
9
|
-
get mainVariantValue(): IkasVariantValue;
|
|
9
|
+
get mainVariantValue(): IkasVariantValue | undefined;
|
|
10
10
|
get selectedVariant(): import("../../index").IkasProductVariant;
|
|
11
11
|
get href(): string;
|
|
12
12
|
selectVariantValue(variantValue: IkasVariantValue): void;
|
|
@@ -39,9 +39,9 @@ export declare class IkasProductList {
|
|
|
39
39
|
page: number;
|
|
40
40
|
count: number;
|
|
41
41
|
initialized: boolean;
|
|
42
|
-
minPage: number;
|
|
43
|
-
filters: IkasProductListFilter;
|
|
44
|
-
recommendFor: string;
|
|
42
|
+
minPage: number | null | undefined;
|
|
43
|
+
filters: IkasProductListFilter | null | undefined;
|
|
44
|
+
recommendFor: string | null | undefined;
|
|
45
45
|
productListPropValue: IkasProductListPropValue;
|
|
46
46
|
};
|
|
47
47
|
}
|
package/build/store/cart.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export declare class IkasCartStore {
|
|
|
13
13
|
get isBrowser(): boolean;
|
|
14
14
|
get isLoadingCart(): boolean;
|
|
15
15
|
get cartLoadFinished(): boolean;
|
|
16
|
-
get checkoutId(): string;
|
|
17
|
-
get checkoutUrl(): string;
|
|
16
|
+
get checkoutId(): string | null | undefined;
|
|
17
|
+
get checkoutUrl(): string | undefined;
|
|
18
18
|
private getCart;
|
|
19
19
|
private setCart;
|
|
20
20
|
addItem: (variant: IkasProductVariant, product: IkasProduct, initialQuantity?: number) => Promise<void>;
|
|
@@ -15,8 +15,8 @@ export declare class IkasCustomerStore {
|
|
|
15
15
|
recoverPassword: (password: string, passwordAgain: string, token: string) => Promise<boolean>;
|
|
16
16
|
logout: () => void;
|
|
17
17
|
saveCustomer: (customer: IkasCustomer) => Promise<boolean>;
|
|
18
|
-
getOrders: () => Promise<import("../models/index").IkasOrder[]>;
|
|
19
|
-
getOrder: (id: string) => Promise<import("../models/index").IkasOrder>;
|
|
18
|
+
getOrders: () => Promise<import("../models/index").IkasOrder[] | undefined>;
|
|
19
|
+
getOrder: (id: string) => Promise<import("../models/index").IkasOrder | null>;
|
|
20
20
|
getOrderTransactions: (params?: {
|
|
21
21
|
checkoutId?: string;
|
|
22
22
|
id?: string;
|
|
@@ -11,10 +11,10 @@ export declare class IkasPageDataProvider {
|
|
|
11
11
|
get nextPageData(): {
|
|
12
12
|
props: {
|
|
13
13
|
propValuesStr: string;
|
|
14
|
-
page: IkasThemePage;
|
|
14
|
+
page: IkasThemePage | null;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
get isStaticPage(): boolean;
|
|
17
|
+
get isStaticPage(): boolean | null | undefined;
|
|
18
18
|
getPageData(): Promise<void>;
|
|
19
19
|
getPageSpecificData(): Promise<void>;
|
|
20
20
|
getPageComponentPropValues(pageComponent: IkasThemePageComponent): Promise<IkasPageComponentPropValue>;
|
|
@@ -22,6 +22,7 @@ export declare class IkasPageDataProvider {
|
|
|
22
22
|
static isServer(): boolean;
|
|
23
23
|
static initPropValues(propValuesStr: string, router: NextRouter, queryParams?: Record<string, any>): IkasPageComponentPropValue[];
|
|
24
24
|
static initBrandListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
25
|
+
static initCategoryListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
25
26
|
static initProductListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
26
27
|
static initProductDetailPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue, queryParams: Record<string, any>, router: NextRouter): void;
|
|
27
28
|
static initLinkPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IkasCategoryList, IkasCategoryListPropValue } from "../../../models/index";
|
|
2
|
+
import IkasPropValueProvider from "./index";
|
|
3
|
+
export declare class IkasCategoryListPropValueProvider implements IkasPropValueProvider<IkasCategoryList> {
|
|
4
|
+
private categoryListPropValue;
|
|
5
|
+
constructor(categoryListPropValue: IkasCategoryListPropValue);
|
|
6
|
+
getValue(): Promise<IkasCategoryList>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IkasCategory, IkasCategoryPropValue } from "../../../models/index";
|
|
2
|
+
import IkasPropValueProvider from "./index";
|
|
3
|
+
export declare class IkasCategoryPropValueProvider implements IkasPropValueProvider<IkasCategory> {
|
|
4
|
+
private categoryPropValue;
|
|
5
|
+
private pageSpecificData?;
|
|
6
|
+
constructor(prop: IkasCategoryPropValue, pageSpecificData?: any);
|
|
7
|
+
getValue(): Promise<IkasCategory>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IkasImage } from "../../../models/index";
|
|
2
|
+
import IkasPropValueProvider from "./index";
|
|
3
|
+
export declare class IkasImageListPropValueProvider implements IkasPropValueProvider<IkasImage[]> {
|
|
4
|
+
private imageListPropValue;
|
|
5
|
+
constructor(imageListPropValue: string[]);
|
|
6
|
+
getValue(): Promise<IkasImage[]>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IkasImage } from "../../../models/index";
|
|
2
|
+
import IkasPropValueProvider from "./index";
|
|
3
|
+
export declare class IkasImagePropValueProvider implements IkasPropValueProvider<IkasImage> {
|
|
4
|
+
private imagePropValue;
|
|
5
|
+
constructor(imagePropValue: string);
|
|
6
|
+
getValue(): Promise<IkasImage>;
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import { IkasNavigationLink, IkasLinkPropValue, IkasTheme } from "../../../model
|
|
|
3
3
|
export declare class IkasLinkPropValueProvider implements IkasPropValueProvider<IkasNavigationLink | IkasNavigationLink[]> {
|
|
4
4
|
private linkPropValue;
|
|
5
5
|
private theme;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(linkPropValue: IkasLinkPropValue | IkasLinkPropValue[], theme: IkasTheme);
|
|
7
7
|
private getNavigationLink;
|
|
8
8
|
getValue(): Promise<IkasNavigationLink | IkasNavigationLink[]>;
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IkasNavigationLink } from "../../../../ui/navigation-link/index";
|
|
2
|
-
import { IkasProductDetail } from "../../../../ui/product-detail/index";
|
|
3
|
-
import { IkasBrand } from "../../../../data/brand/index";
|
|
4
|
-
import { IkasCategory } from "../../../../data/category/index";
|
|
5
|
-
export declare type IkasText = string;
|
|
6
|
-
export declare type IkasBoolean = boolean;
|
|
7
|
-
export declare class IkasLink extends IkasNavigationLink {
|
|
8
|
-
}
|
|
9
|
-
export declare type IkasLinkList = IkasLink[];
|
|
10
|
-
export declare class IkasProduct extends IkasProductDetail {
|
|
11
|
-
}
|
|
12
|
-
export declare type IkasProductList = IkasProduct[];
|
|
13
|
-
export declare type IkasBrandList = IkasBrand[];
|
|
14
|
-
export declare type IkasCategoryList = IkasCategory[];
|