@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.
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +606 -597
- package/dist/index.mjs.map +1 -1
- package/dist/lib/constants/products.d.ts +2 -1
- package/dist/lib/i18n/buildTranslations.d.ts +5 -2
- package/dist/lib/i18n/index.d.ts +1 -0
- package/dist/lib/i18n/init.d.ts +2 -1
- package/dist/lib/i18n/nizza.d.ts +2 -0
- package/dist/lib/types/nizza/globalStore.d.ts +2 -1
- package/dist/lib/types/nizza/productDataSource.d.ts +1 -0
- package/dist/lib/types/vtex/checkout.d.ts +6 -0
- package/dist/lib/types/vtex/index.d.ts +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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;
|
package/dist/lib/i18n/index.d.ts
CHANGED
package/dist/lib/i18n/init.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ThirdPartyModule, i18n } from 'i18next';
|
|
2
|
+
export declare function i18Init(i18Instance: i18n, initReactI18next: ThirdPartyModule): void;
|
|
@@ -14,8 +14,9 @@ export interface GlobalState {
|
|
|
14
14
|
productDataSource?: any;
|
|
15
15
|
}
|
|
16
16
|
export interface GlobalStore {
|
|
17
|
-
|
|
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[]>;
|
package/dist/package.json
CHANGED