@ikas/storefront 0.0.162-alpha.17 → 0.0.162-alpha.2

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.
@@ -1,8 +1,7 @@
1
- import * as React from "react";
1
+ /// <reference types="react" />
2
2
  import { GetStaticProps } from "next";
3
- declare type Props = {
4
- configJson: Record<string, any>;
5
- };
6
3
  export declare const getStaticProps: GetStaticProps;
7
- declare const _default: React.FunctionComponent<Props>;
4
+ declare const _default: (() => JSX.Element) & {
5
+ displayName: string;
6
+ };
8
7
  export default _default;
@@ -21,7 +21,6 @@ export declare class IkasStorefrontConfig {
21
21
  static favicon: IkasThemeFavicon;
22
22
  static stockPreference: IkasThemeStockPreference;
23
23
  static translations: Record<string, any>;
24
- static isEditor: boolean;
25
24
  static init(store: IkasBaseStore, components: any, config: Record<string, any>, apiUrlOverride?: string): void;
26
25
  static initWithJson(json: Record<string, any>): void;
27
26
  static getJson(): {
@@ -7,7 +7,7 @@ export declare class I18NFileReader {
7
7
  private readLocaleFile;
8
8
  }
9
9
  declare function t(pathString: string, params?: Record<string, any>): any;
10
- export declare function useTranslation(namespace?: string | string[]): {
10
+ export declare function useTranslation(): {
11
11
  t: typeof t;
12
12
  };
13
13
  export {};
@@ -66,10 +66,6 @@ export declare class SettingsHelper {
66
66
  };
67
67
  revalidate: number;
68
68
  notFound?: undefined;
69
- } | {
70
- props: {};
71
- notFound?: undefined;
72
- revalidate?: undefined;
73
69
  }>;
74
70
  static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
75
71
  props: {};
@@ -125,10 +121,6 @@ export declare class SettingsHelper {
125
121
  };
126
122
  revalidate: number;
127
123
  notFound?: undefined;
128
- } | {
129
- props: {};
130
- notFound?: undefined;
131
- revalidate?: undefined;
132
124
  }>;
133
125
  static getServerSideProps(context: GetServerSidePropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
134
126
  props: {};
@@ -184,10 +176,6 @@ export declare class SettingsHelper {
184
176
  };
185
177
  revalidate: number;
186
178
  notFound?: undefined;
187
- } | {
188
- props: {};
189
- notFound?: undefined;
190
- revalidate?: undefined;
191
179
  }>;
192
180
  }
193
181
  export declare type SettingsData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.162-alpha.17",
3
+ "version": "0.0.162-alpha.2",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",