@nizza/core 0.4.5-alpha.9 → 0.5.0-beta.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.
@@ -7,5 +7,6 @@ export declare enum NizzaProductRequestOriginTypes {
7
7
  CACE = "CACE",
8
8
  GLOBAL_PAGE = "globalPage",
9
9
  DEV_LOCAL = "dev:local",
10
- CUSTOMIZATION = "customization"
10
+ CUSTOMIZATION = "customization",
11
+ FAST_STORE = "faststore"
11
12
  }
@@ -1,2 +1,5 @@
1
- import { TranslationFiles } from '../types';
2
- export declare function registerTranslations(translationFiles: TranslationFiles): void;
1
+ import { i18n } from 'i18next';
2
+ import { TranslationFiles, Translations } from '../types';
3
+ export declare function buildLanguageTranslations(langTranslations: Record<string, Record<string, string>>): Record<string, string>;
4
+ export declare function buildTranslations(translationFiles: TranslationFiles): Translations;
5
+ export declare function registerTranslationsOf(i18Instance: i18n, translationFiles: TranslationFiles): void;
@@ -1,2 +1,3 @@
1
1
  export * from './buildTranslations';
2
2
  export * from './init';
3
+ export * from './nizza';
@@ -1 +1,2 @@
1
- export declare const i18n: Promise<import("i18next").TFunction<"translation", undefined>>;
1
+ import { ThirdPartyModule, i18n } from 'i18next';
2
+ export declare function i18Init(i18Instance: i18n, initReactI18next: ThirdPartyModule): void;
@@ -0,0 +1,2 @@
1
+ import { TranslationFiles } from '../types';
2
+ export declare const registerTranslations: (translationFiles: TranslationFiles) => void;
@@ -14,8 +14,9 @@ export interface GlobalState {
14
14
  productDataSource?: any;
15
15
  }
16
16
  export interface GlobalStore {
17
- state: GlobalState;
17
+ version: string;
18
18
  instanceId: string;
19
+ state: GlobalState;
19
20
  log: Logger;
20
21
  eventBus: BroadcastChannelEventBus;
21
22
  readonly account?: any;
@@ -13,6 +13,7 @@ export type NizzaGetProductListHandlerInput = {
13
13
  search?: string;
14
14
  page?: number;
15
15
  limit?: number;
16
+ salesChannelId?: string;
16
17
  };
17
18
  export type NizzaGetProductHandler = (input: NizzaGetProductHandlerInput) => Promise<NizzaProduct | null>;
18
19
  export type NizzaGetProductListHandler = (input?: NizzaGetProductListHandlerInput) => Promise<NizzaProduct[]>;
@@ -0,0 +1,6 @@
1
+ export interface UTM {
2
+ account: string;
3
+ orderFormId: string;
4
+ marketingTags: string[];
5
+ utmSource: string;
6
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './orderForm';
2
2
  export * from './product';
3
+ export * from './checkout';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizza/core",
3
- "version": "0.4.5-alpha.9",
3
+ "version": "0.5.0-beta.1",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizza/core",
3
- "version": "0.4.5-alpha.9",
3
+ "version": "0.5.0-beta.1",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.cjs",