@ikas/storefront 0.1.6 → 0.1.7
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 +10 -10
- package/build/index.js +10 -10
- package/build/pages/api/getComponentDirs.d.ts +1 -2
- package/build/pages/api/getTheme.d.ts +1 -2
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -71991,7 +71991,7 @@ function corsMiddleware(req, res) {
|
|
|
71991
71991
|
|
|
71992
71992
|
var serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
71993
71993
|
var componentsPath = path$2.join(serverRuntimeConfig.PROJECT_ROOT, "src", "components");
|
|
71994
|
-
var getComponentDirs =
|
|
71994
|
+
var getComponentDirs = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71995
71995
|
var componentDirNames;
|
|
71996
71996
|
return __generator(this, function (_a) {
|
|
71997
71997
|
switch (_a.label) {
|
|
@@ -72009,7 +72009,7 @@ var getComponentDirs = (function (req, res) { return __awaiter(void 0, void 0, v
|
|
|
72009
72009
|
return [2 /*return*/];
|
|
72010
72010
|
}
|
|
72011
72011
|
});
|
|
72012
|
-
}); }
|
|
72012
|
+
}); };
|
|
72013
72013
|
var config = {};
|
|
72014
72014
|
function getComponentDirNames() {
|
|
72015
72015
|
return new Promise(function (resolve, reject) {
|
|
@@ -72026,18 +72026,18 @@ function getComponentDirNames() {
|
|
|
72026
72026
|
|
|
72027
72027
|
var GetComponentDirs = /*#__PURE__*/Object.freeze({
|
|
72028
72028
|
__proto__: null,
|
|
72029
|
-
|
|
72029
|
+
getComponentDirs: getComponentDirs,
|
|
72030
72030
|
config: config
|
|
72031
72031
|
});
|
|
72032
72032
|
|
|
72033
|
-
var getTheme =
|
|
72033
|
+
var getTheme = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
|
|
72034
72034
|
var theme;
|
|
72035
72035
|
return __generator(this, function (_a) {
|
|
72036
72036
|
switch (_a.label) {
|
|
72037
72037
|
case 0: return [4 /*yield*/, corsMiddleware(req, res)];
|
|
72038
72038
|
case 1:
|
|
72039
72039
|
_a.sent();
|
|
72040
|
-
return [4 /*yield*/,
|
|
72040
|
+
return [4 /*yield*/, _getTheme()];
|
|
72041
72041
|
case 2:
|
|
72042
72042
|
theme = _a.sent();
|
|
72043
72043
|
res.statusCode = 200;
|
|
@@ -72048,9 +72048,9 @@ var getTheme = (function (req, res) { return __awaiter(void 0, void 0, void 0, f
|
|
|
72048
72048
|
return [2 /*return*/];
|
|
72049
72049
|
}
|
|
72050
72050
|
});
|
|
72051
|
-
}); }
|
|
72051
|
+
}); };
|
|
72052
72052
|
var config$1 = {};
|
|
72053
|
-
function
|
|
72053
|
+
function _getTheme() {
|
|
72054
72054
|
return new Promise(function (resolve, reject) {
|
|
72055
72055
|
var serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
72056
72056
|
var themePath = path$2.join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
|
|
@@ -72068,7 +72068,7 @@ function getTheme$1() {
|
|
|
72068
72068
|
|
|
72069
72069
|
var GetTheme = /*#__PURE__*/Object.freeze({
|
|
72070
72070
|
__proto__: null,
|
|
72071
|
-
|
|
72071
|
+
getTheme: getTheme,
|
|
72072
72072
|
config: config$1
|
|
72073
72073
|
});
|
|
72074
72074
|
|
|
@@ -113146,7 +113146,7 @@ var uploadTheme = function (req, res) { return __awaiter(void 0, void 0, void 0,
|
|
|
113146
113146
|
_a.label = 2;
|
|
113147
113147
|
case 2:
|
|
113148
113148
|
_a.trys.push([2, 9, , 10]);
|
|
113149
|
-
return [4 /*yield*/, getTheme$
|
|
113149
|
+
return [4 /*yield*/, getTheme$1()];
|
|
113150
113150
|
case 3:
|
|
113151
113151
|
theme = _a.sent();
|
|
113152
113152
|
return [4 /*yield*/, readLocalizationFiles()];
|
|
@@ -113350,7 +113350,7 @@ function buildTheme() {
|
|
|
113350
113350
|
});
|
|
113351
113351
|
});
|
|
113352
113352
|
}
|
|
113353
|
-
function getTheme$
|
|
113353
|
+
function getTheme$1() {
|
|
113354
113354
|
return new Promise(function (resolve, reject) {
|
|
113355
113355
|
var serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
113356
113356
|
var themePath = path$2.join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
|
package/build/index.js
CHANGED
|
@@ -71983,7 +71983,7 @@ function corsMiddleware(req, res) {
|
|
|
71983
71983
|
|
|
71984
71984
|
var serverRuntimeConfig = getConfig__default['default']().serverRuntimeConfig;
|
|
71985
71985
|
var componentsPath = path__default['default'].join(serverRuntimeConfig.PROJECT_ROOT, "src", "components");
|
|
71986
|
-
var getComponentDirs =
|
|
71986
|
+
var getComponentDirs = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71987
71987
|
var componentDirNames;
|
|
71988
71988
|
return __generator(this, function (_a) {
|
|
71989
71989
|
switch (_a.label) {
|
|
@@ -72001,7 +72001,7 @@ var getComponentDirs = (function (req, res) { return __awaiter(void 0, void 0, v
|
|
|
72001
72001
|
return [2 /*return*/];
|
|
72002
72002
|
}
|
|
72003
72003
|
});
|
|
72004
|
-
}); }
|
|
72004
|
+
}); };
|
|
72005
72005
|
var config = {};
|
|
72006
72006
|
function getComponentDirNames() {
|
|
72007
72007
|
return new Promise(function (resolve, reject) {
|
|
@@ -72018,18 +72018,18 @@ function getComponentDirNames() {
|
|
|
72018
72018
|
|
|
72019
72019
|
var GetComponentDirs = /*#__PURE__*/Object.freeze({
|
|
72020
72020
|
__proto__: null,
|
|
72021
|
-
|
|
72021
|
+
getComponentDirs: getComponentDirs,
|
|
72022
72022
|
config: config
|
|
72023
72023
|
});
|
|
72024
72024
|
|
|
72025
|
-
var getTheme =
|
|
72025
|
+
var getTheme = function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
|
|
72026
72026
|
var theme;
|
|
72027
72027
|
return __generator(this, function (_a) {
|
|
72028
72028
|
switch (_a.label) {
|
|
72029
72029
|
case 0: return [4 /*yield*/, corsMiddleware(req, res)];
|
|
72030
72030
|
case 1:
|
|
72031
72031
|
_a.sent();
|
|
72032
|
-
return [4 /*yield*/,
|
|
72032
|
+
return [4 /*yield*/, _getTheme()];
|
|
72033
72033
|
case 2:
|
|
72034
72034
|
theme = _a.sent();
|
|
72035
72035
|
res.statusCode = 200;
|
|
@@ -72040,9 +72040,9 @@ var getTheme = (function (req, res) { return __awaiter(void 0, void 0, void 0, f
|
|
|
72040
72040
|
return [2 /*return*/];
|
|
72041
72041
|
}
|
|
72042
72042
|
});
|
|
72043
|
-
}); }
|
|
72043
|
+
}); };
|
|
72044
72044
|
var config$1 = {};
|
|
72045
|
-
function
|
|
72045
|
+
function _getTheme() {
|
|
72046
72046
|
return new Promise(function (resolve, reject) {
|
|
72047
72047
|
var serverRuntimeConfig = getConfig__default['default']().serverRuntimeConfig;
|
|
72048
72048
|
var themePath = path__default['default'].join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
|
|
@@ -72060,7 +72060,7 @@ function getTheme$1() {
|
|
|
72060
72060
|
|
|
72061
72061
|
var GetTheme = /*#__PURE__*/Object.freeze({
|
|
72062
72062
|
__proto__: null,
|
|
72063
|
-
|
|
72063
|
+
getTheme: getTheme,
|
|
72064
72064
|
config: config$1
|
|
72065
72065
|
});
|
|
72066
72066
|
|
|
@@ -113138,7 +113138,7 @@ var uploadTheme = function (req, res) { return __awaiter(void 0, void 0, void 0,
|
|
|
113138
113138
|
_a.label = 2;
|
|
113139
113139
|
case 2:
|
|
113140
113140
|
_a.trys.push([2, 9, , 10]);
|
|
113141
|
-
return [4 /*yield*/, getTheme$
|
|
113141
|
+
return [4 /*yield*/, getTheme$1()];
|
|
113142
113142
|
case 3:
|
|
113143
113143
|
theme = _a.sent();
|
|
113144
113144
|
return [4 /*yield*/, readLocalizationFiles()];
|
|
@@ -113342,7 +113342,7 @@ function buildTheme() {
|
|
|
113342
113342
|
});
|
|
113343
113343
|
});
|
|
113344
113344
|
}
|
|
113345
|
-
function getTheme$
|
|
113345
|
+
function getTheme$1() {
|
|
113346
113346
|
return new Promise(function (resolve, reject) {
|
|
113347
113347
|
var serverRuntimeConfig = getConfig__default['default']().serverRuntimeConfig;
|
|
113348
113348
|
var themePath = path__default['default'].join(serverRuntimeConfig.PROJECT_ROOT, "src", "theme.json");
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { NextApiRequest, NextApiResponse } from "next";
|
|
2
|
-
declare const
|
|
3
|
-
export default _default;
|
|
2
|
+
export declare const getComponentDirs: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
|
|
4
3
|
export declare const config: {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { NextApiRequest, NextApiResponse } from "next";
|
|
2
|
-
declare const
|
|
3
|
-
export default _default;
|
|
2
|
+
export declare const getTheme: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
|
|
4
3
|
export declare const config: {};
|