@ikas/storefront 0.0.166-alpha.5 → 0.0.167-alpha.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/build/components/checkout/index.d.ts +2 -1
- package/build/components/checkout/model.d.ts +1 -1
- package/build/components/page/head.d.ts +4 -4
- package/build/components/page/index.d.ts +11 -8
- package/build/index.es.js +8381 -440
- package/build/index.js +8393 -452
- package/build/models/ui/product-detail/index.d.ts +1 -0
- package/build/pages/404.d.ts +2 -9
- package/build/pages/[slug]/index.d.ts +2 -13
- package/build/pages/account/addresses.d.ts +3 -9
- package/build/pages/account/favorite-products.d.ts +3 -9
- package/build/pages/account/forgot-password.d.ts +3 -10
- package/build/pages/account/index.d.ts +3 -9
- package/build/pages/account/login.d.ts +3 -10
- package/build/pages/account/orders/[id].d.ts +3 -9
- package/build/pages/account/orders/index.d.ts +3 -9
- package/build/pages/account/recover-password.d.ts +3 -10
- package/build/pages/account/register.d.ts +3 -10
- package/build/pages/blog/[slug].d.ts +2 -13
- package/build/pages/blog/index.d.ts +3 -10
- package/build/pages/cart.d.ts +3 -9
- package/build/pages/checkout.d.ts +1 -0
- package/build/pages/home.d.ts +3 -10
- package/build/pages/pages/[slug].d.ts +3 -9
- package/build/pages/search.d.ts +3 -10
- package/build/storefront/index.d.ts +4 -0
- package/build/utils/providers/page-data.d.ts +7 -2
- package/build/utils/settings.d.ts +38 -12
- package/package.json +2 -1
|
@@ -9,6 +9,7 @@ export declare class IkasProductDetail {
|
|
|
9
9
|
get mainVariantValue(): IkasVariantValue | undefined;
|
|
10
10
|
get selectedVariant(): IkasProductVariant;
|
|
11
11
|
get href(): string;
|
|
12
|
+
get hasStock(): boolean;
|
|
12
13
|
get displayedVariantTypes(): IkasDisplayedVariantType[];
|
|
13
14
|
selectVariantValue(variantValue: IkasVariantValue): void;
|
|
14
15
|
}
|
package/build/pages/404.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
propValuesStr: string;
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
3
|
+
import { IkasPageProps } from "../components/page/index";
|
|
4
|
+
declare const Page: React.FC<IkasPageProps>;
|
|
12
5
|
export default Page;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { GetStaticPaths, GetStaticProps } from "next";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
declare type Props = {
|
|
7
|
-
propValuesStr: string;
|
|
8
|
-
pageSpecificDataStr: string;
|
|
9
|
-
page: IkasThemePage;
|
|
10
|
-
queryParams?: ParsedUrlQuery;
|
|
11
|
-
settingsStr: string;
|
|
12
|
-
merchantSettings: string;
|
|
13
|
-
configJson: Record<string, any>;
|
|
14
|
-
};
|
|
15
|
-
declare const _default: React.FunctionComponent<Props>;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
16
5
|
export default _default;
|
|
17
6
|
export declare const getStaticPaths: GetStaticPaths;
|
|
18
7
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
configJson: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
declare const Page: React.FC<Props>;
|
|
11
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
12
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
configJson: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
declare const Page: React.FC<Props>;
|
|
11
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
12
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
12
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
configJson: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
declare const Page: React.FC<Props>;
|
|
11
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
12
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
12
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetServerSideProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
configJson: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
declare const Page: React.FC<Props>;
|
|
11
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
12
6
|
export declare const getServerSideProps: GetServerSideProps;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
configJson: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
declare const Page: React.FC<Props>;
|
|
11
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
12
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
12
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
12
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { GetStaticPaths, GetStaticProps } from "next";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
declare type Props = {
|
|
7
|
-
propValuesStr: string;
|
|
8
|
-
pageSpecificDataStr: string;
|
|
9
|
-
page: IkasThemePage;
|
|
10
|
-
queryParams?: ParsedUrlQuery;
|
|
11
|
-
settingsStr: string;
|
|
12
|
-
merchantSettings: string;
|
|
13
|
-
configJson: Record<string, any>;
|
|
14
|
-
};
|
|
15
|
-
declare const _default: React.FunctionComponent<Props>;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
16
5
|
export default _default;
|
|
17
6
|
export declare const getStaticPaths: GetStaticPaths;
|
|
18
7
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
12
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
package/build/pages/cart.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
configJson: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
declare const Page: React.FC<Props>;
|
|
11
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
12
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -4,6 +4,7 @@ import { GetStaticProps } from "next";
|
|
|
4
4
|
import { ParsedUrlQuery } from "querystring";
|
|
5
5
|
import { IkasCheckoutCustomizationProps } from "../components/checkout/index";
|
|
6
6
|
declare type Props = {
|
|
7
|
+
merchantSettingsStr: string | null;
|
|
7
8
|
checkoutSettingsStr: string | null;
|
|
8
9
|
customizationProps: IkasCheckoutCustomizationProps;
|
|
9
10
|
returnPolicy: string;
|
package/build/pages/home.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
12
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps, GetStaticPaths } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
configJson: Record<string, any>;
|
|
9
|
-
};
|
|
10
|
-
declare const Page: React.FC<Props>;
|
|
11
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
12
6
|
export declare const getStaticPaths: GetStaticPaths;
|
|
13
7
|
export declare const getStaticProps: GetStaticProps;
|
package/build/pages/search.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
import {
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
page: IkasThemePage;
|
|
7
|
-
settingsStr: string;
|
|
8
|
-
merchantSettings: string;
|
|
9
|
-
configJson: Record<string, any>;
|
|
10
|
-
};
|
|
11
|
-
declare const Page: React.FC<Props>;
|
|
12
|
-
export default Page;
|
|
3
|
+
import { IkasPageProps } from "../components/page/index";
|
|
4
|
+
declare const _default: React.FunctionComponent<IkasPageProps>;
|
|
5
|
+
export default _default;
|
|
13
6
|
export declare const getStaticProps: GetStaticProps;
|
|
@@ -8,6 +8,7 @@ export declare class IkasStorefrontConfig {
|
|
|
8
8
|
static components: any;
|
|
9
9
|
static config: Record<string, any>;
|
|
10
10
|
static apiUrlOverride: string | null;
|
|
11
|
+
static domain: string;
|
|
11
12
|
static storefrontId?: string;
|
|
12
13
|
static storefrontRoutingId?: string;
|
|
13
14
|
static storefrontThemeId?: string;
|
|
@@ -21,11 +22,13 @@ export declare class IkasStorefrontConfig {
|
|
|
21
22
|
static favicon: IkasThemeFavicon;
|
|
22
23
|
static stockPreference: IkasThemeStockPreference;
|
|
23
24
|
static translations: Record<string, any>;
|
|
25
|
+
static storefrontJSScripts: string[];
|
|
24
26
|
static isEditor: boolean;
|
|
25
27
|
static init(store: IkasBaseStore, components: any, config: Record<string, any>, apiUrlOverride?: string): void;
|
|
26
28
|
static initWithJson(json: Record<string, any>): void;
|
|
27
29
|
static getCurrentLocale(): string;
|
|
28
30
|
static getJson(): {
|
|
31
|
+
domain: string;
|
|
29
32
|
storefrontId: string | null;
|
|
30
33
|
storefrontRoutingId: string | null;
|
|
31
34
|
storefrontThemeId: string | null;
|
|
@@ -38,6 +41,7 @@ export declare class IkasStorefrontConfig {
|
|
|
38
41
|
fbpId: string | null;
|
|
39
42
|
favicon: any;
|
|
40
43
|
stockPreference: IkasThemeStockPreference;
|
|
44
|
+
storefrontJSScripts: string[];
|
|
41
45
|
translations: Record<string, any>;
|
|
42
46
|
};
|
|
43
47
|
}
|
|
@@ -21,10 +21,13 @@ export declare class IkasPageDataProvider {
|
|
|
21
21
|
props: {
|
|
22
22
|
propValuesStr: string;
|
|
23
23
|
pageSpecificDataStr: string;
|
|
24
|
-
|
|
24
|
+
pageType: IkasThemePageType;
|
|
25
|
+
pageTitle: string | null;
|
|
26
|
+
pageDescription: string | null;
|
|
25
27
|
settingsStr: string;
|
|
26
|
-
|
|
28
|
+
merchantSettingsStr: string | null;
|
|
27
29
|
configJson: {
|
|
30
|
+
domain: string;
|
|
28
31
|
storefrontId: string | null;
|
|
29
32
|
storefrontRoutingId: string | null;
|
|
30
33
|
storefrontThemeId: string | null;
|
|
@@ -37,6 +40,7 @@ export declare class IkasPageDataProvider {
|
|
|
37
40
|
fbpId: string | null;
|
|
38
41
|
favicon: any;
|
|
39
42
|
stockPreference: import("../../models/theme/settings/index").IkasThemeStockPreference;
|
|
43
|
+
storefrontJSScripts: string[];
|
|
40
44
|
translations: Record<string, any>;
|
|
41
45
|
};
|
|
42
46
|
};
|
|
@@ -63,6 +67,7 @@ export declare class IkasPageDataProvider {
|
|
|
63
67
|
static _initProductListPropValue(propValue: IkasProductListParams, router: NextRouter): IkasProductList;
|
|
64
68
|
static initProductDetailPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue, router: NextRouter, isBrowser?: boolean): void;
|
|
65
69
|
static _initProductDetailPropValue(propValue: any, router: NextRouter, isBrowser?: boolean): IkasProductDetail;
|
|
70
|
+
static _initProductDetailOnBrowser(productDetail: IkasProductDetail): void;
|
|
66
71
|
static initAttributePropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
67
72
|
static _initAttributePropValue(propValue: IkasProductAttributeValue[]): IkasProductAttributeValue[];
|
|
68
73
|
static initAttributeListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
@@ -20,10 +20,13 @@ export declare class SettingsHelper {
|
|
|
20
20
|
props: {
|
|
21
21
|
propValuesStr: string;
|
|
22
22
|
pageSpecificDataStr: string;
|
|
23
|
-
|
|
23
|
+
pageType: IkasThemePageType;
|
|
24
|
+
pageTitle: string | null;
|
|
25
|
+
pageDescription: string | null;
|
|
24
26
|
settingsStr: string;
|
|
25
|
-
|
|
27
|
+
merchantSettingsStr: string | null;
|
|
26
28
|
configJson: {
|
|
29
|
+
domain: string;
|
|
27
30
|
storefrontId: string | null;
|
|
28
31
|
storefrontRoutingId: string | null;
|
|
29
32
|
storefrontThemeId: string | null;
|
|
@@ -36,6 +39,7 @@ export declare class SettingsHelper {
|
|
|
36
39
|
fbpId: string | null;
|
|
37
40
|
favicon: any;
|
|
38
41
|
stockPreference: IkasThemeStockPreference;
|
|
42
|
+
storefrontJSScripts: string[];
|
|
39
43
|
translations: Record<string, any>;
|
|
40
44
|
};
|
|
41
45
|
};
|
|
@@ -45,10 +49,13 @@ export declare class SettingsHelper {
|
|
|
45
49
|
props: {
|
|
46
50
|
propValuesStr: string;
|
|
47
51
|
pageSpecificDataStr: string;
|
|
48
|
-
|
|
52
|
+
pageType: IkasThemePageType;
|
|
53
|
+
pageTitle: string | null;
|
|
54
|
+
pageDescription: string | null;
|
|
49
55
|
settingsStr: string;
|
|
50
|
-
|
|
56
|
+
merchantSettingsStr: string | null;
|
|
51
57
|
configJson: {
|
|
58
|
+
domain: string;
|
|
52
59
|
storefrontId: string | null;
|
|
53
60
|
storefrontRoutingId: string | null;
|
|
54
61
|
storefrontThemeId: string | null;
|
|
@@ -61,6 +68,7 @@ export declare class SettingsHelper {
|
|
|
61
68
|
fbpId: string | null;
|
|
62
69
|
favicon: any;
|
|
63
70
|
stockPreference: IkasThemeStockPreference;
|
|
71
|
+
storefrontJSScripts: string[];
|
|
64
72
|
translations: Record<string, any>;
|
|
65
73
|
};
|
|
66
74
|
};
|
|
@@ -79,10 +87,13 @@ export declare class SettingsHelper {
|
|
|
79
87
|
props: {
|
|
80
88
|
propValuesStr: string;
|
|
81
89
|
pageSpecificDataStr: string;
|
|
82
|
-
|
|
90
|
+
pageType: IkasThemePageType;
|
|
91
|
+
pageTitle: string | null;
|
|
92
|
+
pageDescription: string | null;
|
|
83
93
|
settingsStr: string;
|
|
84
|
-
|
|
94
|
+
merchantSettingsStr: string | null;
|
|
85
95
|
configJson: {
|
|
96
|
+
domain: string;
|
|
86
97
|
storefrontId: string | null;
|
|
87
98
|
storefrontRoutingId: string | null;
|
|
88
99
|
storefrontThemeId: string | null;
|
|
@@ -95,6 +106,7 @@ export declare class SettingsHelper {
|
|
|
95
106
|
fbpId: string | null;
|
|
96
107
|
favicon: any;
|
|
97
108
|
stockPreference: IkasThemeStockPreference;
|
|
109
|
+
storefrontJSScripts: string[];
|
|
98
110
|
translations: Record<string, any>;
|
|
99
111
|
};
|
|
100
112
|
};
|
|
@@ -104,10 +116,13 @@ export declare class SettingsHelper {
|
|
|
104
116
|
props: {
|
|
105
117
|
propValuesStr: string;
|
|
106
118
|
pageSpecificDataStr: string;
|
|
107
|
-
|
|
119
|
+
pageType: IkasThemePageType;
|
|
120
|
+
pageTitle: string | null;
|
|
121
|
+
pageDescription: string | null;
|
|
108
122
|
settingsStr: string;
|
|
109
|
-
|
|
123
|
+
merchantSettingsStr: string | null;
|
|
110
124
|
configJson: {
|
|
125
|
+
domain: string;
|
|
111
126
|
storefrontId: string | null;
|
|
112
127
|
storefrontRoutingId: string | null;
|
|
113
128
|
storefrontThemeId: string | null;
|
|
@@ -120,6 +135,7 @@ export declare class SettingsHelper {
|
|
|
120
135
|
fbpId: string | null;
|
|
121
136
|
favicon: any;
|
|
122
137
|
stockPreference: IkasThemeStockPreference;
|
|
138
|
+
storefrontJSScripts: string[];
|
|
123
139
|
translations: Record<string, any>;
|
|
124
140
|
};
|
|
125
141
|
};
|
|
@@ -138,10 +154,13 @@ export declare class SettingsHelper {
|
|
|
138
154
|
props: {
|
|
139
155
|
propValuesStr: string;
|
|
140
156
|
pageSpecificDataStr: string;
|
|
141
|
-
|
|
157
|
+
pageType: IkasThemePageType;
|
|
158
|
+
pageTitle: string | null;
|
|
159
|
+
pageDescription: string | null;
|
|
142
160
|
settingsStr: string;
|
|
143
|
-
|
|
161
|
+
merchantSettingsStr: string | null;
|
|
144
162
|
configJson: {
|
|
163
|
+
domain: string;
|
|
145
164
|
storefrontId: string | null;
|
|
146
165
|
storefrontRoutingId: string | null;
|
|
147
166
|
storefrontThemeId: string | null;
|
|
@@ -154,6 +173,7 @@ export declare class SettingsHelper {
|
|
|
154
173
|
fbpId: string | null;
|
|
155
174
|
favicon: any;
|
|
156
175
|
stockPreference: IkasThemeStockPreference;
|
|
176
|
+
storefrontJSScripts: string[];
|
|
157
177
|
translations: Record<string, any>;
|
|
158
178
|
};
|
|
159
179
|
};
|
|
@@ -163,10 +183,13 @@ export declare class SettingsHelper {
|
|
|
163
183
|
props: {
|
|
164
184
|
propValuesStr: string;
|
|
165
185
|
pageSpecificDataStr: string;
|
|
166
|
-
|
|
186
|
+
pageType: IkasThemePageType;
|
|
187
|
+
pageTitle: string | null;
|
|
188
|
+
pageDescription: string | null;
|
|
167
189
|
settingsStr: string;
|
|
168
|
-
|
|
190
|
+
merchantSettingsStr: string | null;
|
|
169
191
|
configJson: {
|
|
192
|
+
domain: string;
|
|
170
193
|
storefrontId: string | null;
|
|
171
194
|
storefrontRoutingId: string | null;
|
|
172
195
|
storefrontThemeId: string | null;
|
|
@@ -179,6 +202,7 @@ export declare class SettingsHelper {
|
|
|
179
202
|
fbpId: string | null;
|
|
180
203
|
favicon: any;
|
|
181
204
|
stockPreference: IkasThemeStockPreference;
|
|
205
|
+
storefrontJSScripts: string[];
|
|
182
206
|
translations: Record<string, any>;
|
|
183
207
|
};
|
|
184
208
|
};
|
|
@@ -197,4 +221,6 @@ export declare type SettingsData = {
|
|
|
197
221
|
routing: IkasStorefrontRouting;
|
|
198
222
|
favicon: IkasThemeFavicon;
|
|
199
223
|
stockPreference: IkasThemeStockPreference;
|
|
224
|
+
storefrontJSScripts: string[];
|
|
225
|
+
domain: string;
|
|
200
226
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.167-alpha.1",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"module": "./build/index.es.js",
|
|
6
6
|
"author": "Umut Ozan Yıldırım",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"form-data": "^3.0.0",
|
|
31
31
|
"graphql": "^15.3.0",
|
|
32
32
|
"graphql-tag": "^2.10.3",
|
|
33
|
+
"html-react-parser": "^1.4.0",
|
|
33
34
|
"lodash": "^4.17.20",
|
|
34
35
|
"moment": "^2.29.1",
|
|
35
36
|
"node-fetch": "^2.6.1",
|