@ikas/storefront 0.0.134 → 0.0.136
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/api/blog/__generated__/listBlog.d.ts +0 -9
- package/build/index.es.js +217 -107
- package/build/index.js +216 -105
- package/build/models/data/blog/index.d.ts +2 -0
- package/build/models/data/product/attribute-value/index.d.ts +6 -0
- package/build/models/data/product-attribute/index.d.ts +4 -1
- package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +5 -0
- package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +6 -0
- package/build/models/data/simple-product/index.d.ts +3 -2
- package/build/models/theme/component/prop/index.d.ts +5 -1
- package/build/models/theme/custom-data/index.d.ts +2 -25
- package/build/models/theme/index.d.ts +1 -1
- package/build/models/theme/page/component/prop-value/attribute.d.ts +7 -0
- package/build/models/ui/product-list/index.d.ts +1 -0
- package/build/utils/providers/page-data.d.ts +3 -1
- package/build/utils/providers/prop-value/attribute.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ProductAttributeTypeEnum,
|
|
1
|
+
import { ProductAttributeTypeEnum, VariantSelectionTypeEnum } from "../../../__generated__/global-types";
|
|
2
|
+
import { IkasProductAttributeTableTemplate } from "../product-attribute/product-attribute-table-template/index";
|
|
2
3
|
export interface ISimpleProduct {
|
|
3
4
|
id: string;
|
|
4
5
|
createdAt?: Date;
|
|
@@ -9,7 +10,6 @@ export interface ISimpleProduct {
|
|
|
9
10
|
description?: string | null;
|
|
10
11
|
taxValue?: number | null;
|
|
11
12
|
weight?: number | null;
|
|
12
|
-
type: ProductTypeEnum;
|
|
13
13
|
productVariantTypes: ISimpleProductVariantType[];
|
|
14
14
|
categories?: ISimpleCategory[] | null;
|
|
15
15
|
variants: ISimpleVariant[];
|
|
@@ -72,6 +72,7 @@ export interface ISimpleProductAttribute {
|
|
|
72
72
|
id: string;
|
|
73
73
|
name: string;
|
|
74
74
|
type: ProductAttributeTypeEnum;
|
|
75
|
+
tableTemplate: IkasProductAttributeTableTemplate | null;
|
|
75
76
|
}
|
|
76
77
|
export interface ISimpleProductAttributeValue {
|
|
77
78
|
value?: string | number | Date | boolean | null;
|
|
@@ -17,6 +17,7 @@ export declare enum IkasThemeComponentPropType {
|
|
|
17
17
|
LIST_OF_LINK = "LIST_OF_LINK",
|
|
18
18
|
PRODUCT_DETAIL = "PRODUCT_DETAIL",
|
|
19
19
|
PRODUCT_LIST = "PRODUCT_LIST",
|
|
20
|
+
PRODUCT_ATTRIBUTE = "PRODUCT_ATTRIBUTE",
|
|
20
21
|
BRAND = "BRAND",
|
|
21
22
|
BRAND_LIST = "BRAND_LIST",
|
|
22
23
|
CATEGORY = "CATEGORY",
|
|
@@ -26,5 +27,8 @@ export declare enum IkasThemeComponentPropType {
|
|
|
26
27
|
COMPONENT = "COMPONENT",
|
|
27
28
|
COMPONENT_LIST = "COMPONENT_LIST",
|
|
28
29
|
BLOG = "BLOG",
|
|
29
|
-
BLOG_LIST = "BLOG_LIST"
|
|
30
|
+
BLOG_LIST = "BLOG_LIST",
|
|
31
|
+
OBJECT = "OBJECT",
|
|
32
|
+
STATIC_LIST = "STATIC_LIST",
|
|
33
|
+
DYNAMIC_LIST = "DYNAMIC_LIST"
|
|
30
34
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { IkasThemeComponentPropType } from "../component/prop/index";
|
|
1
2
|
export declare class IkasThemeCustomData {
|
|
2
3
|
id: string;
|
|
3
4
|
name?: string | null;
|
|
4
|
-
type:
|
|
5
|
+
type: IkasThemeComponentPropType;
|
|
5
6
|
isRequired: boolean;
|
|
6
7
|
key?: string | null;
|
|
7
8
|
nestedData?: IkasThemeCustomData[] | null;
|
|
@@ -11,27 +12,3 @@ export declare class IkasThemeCustomData {
|
|
|
11
12
|
constructor(data?: Partial<IkasThemeCustomData>);
|
|
12
13
|
toJSON(): this;
|
|
13
14
|
}
|
|
14
|
-
export declare enum IkasThemeCustomDataType {
|
|
15
|
-
TEXT = "TEXT",
|
|
16
|
-
RICH_TEXT = "RICH_TEXT",
|
|
17
|
-
NUMBER = "NUMBER",
|
|
18
|
-
BOOLEAN = "BOOLEAN",
|
|
19
|
-
IMAGE = "IMAGE",
|
|
20
|
-
IMAGE_LIST = "IMAGE_LIST",
|
|
21
|
-
LINK = "LINK",
|
|
22
|
-
LIST_OF_LINK = "LIST_OF_LINK",
|
|
23
|
-
PRODUCT_DETAIL = "PRODUCT_DETAIL",
|
|
24
|
-
PRODUCT_LIST = "PRODUCT_LIST",
|
|
25
|
-
BRAND = "BRAND",
|
|
26
|
-
BRAND_LIST = "BRAND_LIST",
|
|
27
|
-
CATEGORY = "CATEGORY",
|
|
28
|
-
CATEGORY_LIST = "CATEGORY_LIST",
|
|
29
|
-
COLOR = "COLOR",
|
|
30
|
-
COMPONENT = "COMPONENT",
|
|
31
|
-
COMPONENT_LIST = "COMPONENT_LIST",
|
|
32
|
-
BLOG = "BLOG",
|
|
33
|
-
BLOG_LIST = "BLOG_LIST",
|
|
34
|
-
OBJECT = "OBJECT",
|
|
35
|
-
STATIC_LIST = "STATIC_LIST",
|
|
36
|
-
DYNAMIC_LIST = "DYNAMIC_LIST"
|
|
37
|
-
}
|
|
@@ -11,6 +11,6 @@ export { IkasProductDetailPropValue } from "./page/component/prop-value/product-
|
|
|
11
11
|
export { IkasCategoryPropValue } from "./page/component/prop-value/category";
|
|
12
12
|
export { IkasCategoryListPropValue } from "./page/component/prop-value/category-list";
|
|
13
13
|
export { IkasThemeSettings } from "./settings/index";
|
|
14
|
-
export { IkasThemeCustomData
|
|
14
|
+
export { IkasThemeCustomData } from "./custom-data/index";
|
|
15
15
|
export { IkasBlogPropValue } from "./page/component/prop-value/blog";
|
|
16
16
|
export { IkasBlogListPropValue } from "./page/component/prop-value/blog-list";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextRouter } from "next/router";
|
|
2
|
-
import { IkasTheme, IkasThemePageType, IkasThemePageComponent, IkasProductDetail, IkasThemeComponentProp, IkasThemeComponent, IkasProductList, IkasBrandList, IkasBrandListParams, IkasThemePage, IkasImage, IkasCategoryList, IkasBrand, IkasCategory, IkasThemeCustomData, IkasMerchantSettings, IkasThemeSettings, IkasComponentRenderer, IkasBlogListParams, IkasBlogList } from "../../models/index";
|
|
2
|
+
import { IkasTheme, IkasThemePageType, IkasThemePageComponent, IkasProductDetail, IkasThemeComponentProp, IkasThemeComponent, IkasProductList, IkasBrandList, IkasBrandListParams, IkasThemePage, IkasImage, IkasCategoryList, IkasBrand, IkasCategory, IkasThemeCustomData, IkasMerchantSettings, IkasThemeSettings, IkasComponentRenderer, IkasBlogListParams, IkasBlogList, IkasProductAttributeValue } from "../../models/index";
|
|
3
3
|
import { IkasProductListParams } from "../../models/ui/product-list/index";
|
|
4
4
|
import { IkasNavigationLink } from "../../models/ui/navigation-link/index";
|
|
5
5
|
import { IkasCategoryListParams } from "../../models/ui/category-list/index";
|
|
@@ -62,6 +62,8 @@ export declare class IkasPageDataProvider {
|
|
|
62
62
|
static _initProductListPropValue(propValue: IkasProductListParams, router: NextRouter): IkasProductList;
|
|
63
63
|
static initProductDetailPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue, router: NextRouter, isBrowser?: boolean): void;
|
|
64
64
|
static _initProductDetailPropValue(propValue: any, router: NextRouter, isBrowser?: boolean): IkasProductDetail;
|
|
65
|
+
static initAttributePropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
66
|
+
static _initAttributePropValue(propValue: IkasProductAttributeValue[]): IkasProductAttributeValue[];
|
|
65
67
|
static initLinkPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
66
68
|
static _initLinkPropValue(propValue: any): IkasNavigationLink | IkasNavigationLink[] | undefined;
|
|
67
69
|
static initImagePropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasProductAttributeValue } from "../../../models/index";
|
|
2
|
+
import IkasPropValueProvider from "./index";
|
|
3
|
+
import { IkasAttributePropValue } from "../../../models/theme/page/component/prop-value/attribute";
|
|
4
|
+
export declare class IkasAttributePropValueProvider implements IkasPropValueProvider<IkasProductAttributeValue[]> {
|
|
5
|
+
private attributePropValue;
|
|
6
|
+
private pageSpecificData?;
|
|
7
|
+
constructor(prop: IkasAttributePropValue, pageSpecificData?: any);
|
|
8
|
+
getValue(): Promise<IkasProductAttributeValue[]>;
|
|
9
|
+
}
|