@ikas/storefront 0.0.162-alpha.2 → 0.0.162-alpha.4
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/index.es.js +4 -2
- package/build/index.js +4 -2
- package/build/pages/editor.d.ts +5 -4
- package/build/utils/i18n.d.ts +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -33277,7 +33277,7 @@ function t(pathString, params) {
|
|
|
33277
33277
|
}
|
|
33278
33278
|
return pathString;
|
|
33279
33279
|
}
|
|
33280
|
-
function useTranslation() {
|
|
33280
|
+
function useTranslation(namespace) {
|
|
33281
33281
|
return {
|
|
33282
33282
|
t: t,
|
|
33283
33283
|
};
|
|
@@ -38781,7 +38781,9 @@ var cart = /*#__PURE__*/Object.freeze({
|
|
|
38781
38781
|
});
|
|
38782
38782
|
|
|
38783
38783
|
var IkasPageEditor$1 = dynamic(function () { return Promise.resolve().then(function () { return index; }).then(function (mod) { return mod.IkasPageEditor; }); }, { ssr: false });
|
|
38784
|
-
var Page$c = function () {
|
|
38784
|
+
var Page$c = function (_a) {
|
|
38785
|
+
var configJson = _a.configJson;
|
|
38786
|
+
IkasStorefrontConfig.initWithJson(configJson);
|
|
38785
38787
|
return createElement(IkasPageEditor$1, null);
|
|
38786
38788
|
};
|
|
38787
38789
|
var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
package/build/index.js
CHANGED
|
@@ -33256,7 +33256,7 @@ function t(pathString, params) {
|
|
|
33256
33256
|
}
|
|
33257
33257
|
return pathString;
|
|
33258
33258
|
}
|
|
33259
|
-
function useTranslation() {
|
|
33259
|
+
function useTranslation(namespace) {
|
|
33260
33260
|
return {
|
|
33261
33261
|
t: t,
|
|
33262
33262
|
};
|
|
@@ -38759,7 +38759,9 @@ var cart = /*#__PURE__*/Object.freeze({
|
|
|
38759
38759
|
});
|
|
38760
38760
|
|
|
38761
38761
|
var IkasPageEditor$1 = dynamic__default['default'](function () { return Promise.resolve().then(function () { return index; }).then(function (mod) { return mod.IkasPageEditor; }); }, { ssr: false });
|
|
38762
|
-
var Page$c = function () {
|
|
38762
|
+
var Page$c = function (_a) {
|
|
38763
|
+
var configJson = _a.configJson;
|
|
38764
|
+
IkasStorefrontConfig.initWithJson(configJson);
|
|
38763
38765
|
return React.createElement(IkasPageEditor$1, null);
|
|
38764
38766
|
};
|
|
38765
38767
|
var getStaticProps$b = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
package/build/pages/editor.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
displayName: string;
|
|
3
|
+
declare type Props = {
|
|
4
|
+
configJson: Record<string, any>;
|
|
6
5
|
};
|
|
6
|
+
export declare const getStaticProps: GetStaticProps;
|
|
7
|
+
declare const _default: React.FunctionComponent<Props>;
|
|
7
8
|
export default _default;
|
package/build/utils/i18n.d.ts
CHANGED
|
@@ -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(): {
|
|
10
|
+
export declare function useTranslation(namespace?: string): {
|
|
11
11
|
t: typeof t;
|
|
12
12
|
};
|
|
13
13
|
export {};
|