@ikas/storefront 0.0.166-alpha.6 → 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.
@@ -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
  }
@@ -1,13 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../models/index";
4
- declare type Props = {
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 { IkasThemePage } from "../../models/index";
5
- import { ParsedUrlQuery } from "querystring";
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
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>;
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
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>;
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 { IkasThemePage } from "../../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
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 { IkasThemePage } from "../../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
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>;
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
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>;
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 { IkasThemePage } from "../../models/index";
5
- import { ParsedUrlQuery } from "querystring";
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
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>;
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 { IkasThemePage } from "../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
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;
@@ -1,13 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../models/index";
4
- declare type Props = {
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>;
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 { IkasThemePage } from "../../models/index";
4
- declare type Props = {
5
- propValuesStr: string;
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;
@@ -1,13 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { GetStaticProps } from "next";
3
- import { IkasThemePage } from "../models/index";
4
- declare type Props = {
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>;
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;
@@ -27,6 +28,7 @@ export declare class IkasStorefrontConfig {
27
28
  static initWithJson(json: Record<string, any>): void;
28
29
  static getCurrentLocale(): string;
29
30
  static getJson(): {
31
+ domain: string;
30
32
  storefrontId: string | null;
31
33
  storefrontRoutingId: string | null;
32
34
  storefrontThemeId: string | null;
@@ -21,10 +21,13 @@ export declare class IkasPageDataProvider {
21
21
  props: {
22
22
  propValuesStr: string;
23
23
  pageSpecificDataStr: string;
24
- page: IkasThemePage | null;
24
+ pageType: IkasThemePageType;
25
+ pageTitle: string | null;
26
+ pageDescription: string | null;
25
27
  settingsStr: string;
26
- merchantSettings: string | null;
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
- page: import("../models/index").IkasThemePage | null;
23
+ pageType: IkasThemePageType;
24
+ pageTitle: string | null;
25
+ pageDescription: string | null;
24
26
  settingsStr: string;
25
- merchantSettings: string | null;
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;
@@ -46,10 +49,13 @@ export declare class SettingsHelper {
46
49
  props: {
47
50
  propValuesStr: string;
48
51
  pageSpecificDataStr: string;
49
- page: import("../models/index").IkasThemePage | null;
52
+ pageType: IkasThemePageType;
53
+ pageTitle: string | null;
54
+ pageDescription: string | null;
50
55
  settingsStr: string;
51
- merchantSettings: string | null;
56
+ merchantSettingsStr: string | null;
52
57
  configJson: {
58
+ domain: string;
53
59
  storefrontId: string | null;
54
60
  storefrontRoutingId: string | null;
55
61
  storefrontThemeId: string | null;
@@ -81,10 +87,13 @@ export declare class SettingsHelper {
81
87
  props: {
82
88
  propValuesStr: string;
83
89
  pageSpecificDataStr: string;
84
- page: import("../models/index").IkasThemePage | null;
90
+ pageType: IkasThemePageType;
91
+ pageTitle: string | null;
92
+ pageDescription: string | null;
85
93
  settingsStr: string;
86
- merchantSettings: string | null;
94
+ merchantSettingsStr: string | null;
87
95
  configJson: {
96
+ domain: string;
88
97
  storefrontId: string | null;
89
98
  storefrontRoutingId: string | null;
90
99
  storefrontThemeId: string | null;
@@ -107,10 +116,13 @@ export declare class SettingsHelper {
107
116
  props: {
108
117
  propValuesStr: string;
109
118
  pageSpecificDataStr: string;
110
- page: import("../models/index").IkasThemePage | null;
119
+ pageType: IkasThemePageType;
120
+ pageTitle: string | null;
121
+ pageDescription: string | null;
111
122
  settingsStr: string;
112
- merchantSettings: string | null;
123
+ merchantSettingsStr: string | null;
113
124
  configJson: {
125
+ domain: string;
114
126
  storefrontId: string | null;
115
127
  storefrontRoutingId: string | null;
116
128
  storefrontThemeId: string | null;
@@ -142,10 +154,13 @@ export declare class SettingsHelper {
142
154
  props: {
143
155
  propValuesStr: string;
144
156
  pageSpecificDataStr: string;
145
- page: import("../models/index").IkasThemePage | null;
157
+ pageType: IkasThemePageType;
158
+ pageTitle: string | null;
159
+ pageDescription: string | null;
146
160
  settingsStr: string;
147
- merchantSettings: string | null;
161
+ merchantSettingsStr: string | null;
148
162
  configJson: {
163
+ domain: string;
149
164
  storefrontId: string | null;
150
165
  storefrontRoutingId: string | null;
151
166
  storefrontThemeId: string | null;
@@ -168,10 +183,13 @@ export declare class SettingsHelper {
168
183
  props: {
169
184
  propValuesStr: string;
170
185
  pageSpecificDataStr: string;
171
- page: import("../models/index").IkasThemePage | null;
186
+ pageType: IkasThemePageType;
187
+ pageTitle: string | null;
188
+ pageDescription: string | null;
172
189
  settingsStr: string;
173
- merchantSettings: string | null;
190
+ merchantSettingsStr: string | null;
174
191
  configJson: {
192
+ domain: string;
175
193
  storefrontId: string | null;
176
194
  storefrontRoutingId: string | null;
177
195
  storefrontThemeId: string | null;
@@ -204,4 +222,5 @@ export declare type SettingsData = {
204
222
  favicon: IkasThemeFavicon;
205
223
  stockPreference: IkasThemeStockPreference;
206
224
  storefrontJSScripts: string[];
225
+ domain: string;
207
226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.166-alpha.6",
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",