@ikas/storefront-next 4.4.0-beta.9 → 4.4.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.
@@ -0,0 +1,3 @@
1
+ import { NextApiRequest, NextApiResponse } from "next";
2
+ export declare const getConfig: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
+ export declare const config: {};
@@ -0,0 +1 @@
1
+ import{__awaiter as r,__generator as t}from'./../ext/tslib/tslib.es6.js';import e from"fs";import o from"path";import{corsMiddleware as n}from"./middleware.js";var s=function(e,o){return r(void 0,void 0,void 0,(function(){var r,s;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),[4,n(e,o)];case 1:return t.sent(),[4,a()];case 2:return r=t.sent(),o.statusCode=200,o.setHeader("Content-Type","application/json"),o.json((null==r?void 0:r.storefrontId)?{storefrontId:r.storefrontId}:{}),[3,4];case 3:return s=t.sent(),console.error(s),o.statusCode=500,o.send(s),[3,4];case 4:return[2]}}))}))},i={},a=function(){try{var r=o.join(process.cwd(),"config.json"),t=e.readFileSync(r);return t.length?JSON.parse(t.toString()):null}catch(r){console.error(r)}};export{i as config,s as getConfig};
@@ -2,9 +2,11 @@ import * as GetComponentDirs from "./getComponentDirs";
2
2
  import * as GetTheme from "./getTheme";
3
3
  import * as UpdateTheme from "./updateTheme";
4
4
  import * as UploadTheme from "./uploadTheme";
5
+ import * as GetConfig from "./getConfig";
5
6
  declare const IkasLocalThemeAPI: {
6
7
  GetComponentDirs: typeof GetComponentDirs;
7
8
  GetTheme: typeof GetTheme;
9
+ GetConfig: typeof GetConfig;
8
10
  UpdateTheme: typeof UpdateTheme;
9
11
  UploadTheme: typeof UploadTheme;
10
12
  };
@@ -1 +1 @@
1
- import*as e from"./getComponentDirs.js";import*as m from"./getTheme.js";import*as o from"./updateTheme.js";import*as t from"./uploadTheme.js";var r={GetComponentDirs:e,GetTheme:m,UpdateTheme:o,UploadTheme:t};export{r as IkasLocalThemeAPI};
1
+ import*as e from"./getComponentDirs.js";import*as o from"./getTheme.js";import*as m from"./updateTheme.js";import*as t from"./uploadTheme.js";import*as r from"./getConfig.js";var p={GetComponentDirs:e,GetTheme:o,GetConfig:r,UpdateTheme:m,UploadTheme:t};export{p as IkasLocalThemeAPI};
@@ -1 +1 @@
1
- var e='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.GetComponentDirs.getComponentDirs;\nexport const config = IkasLocalThemeAPI.GetComponentDirs.config;\n',o='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.GetTheme.getTheme;\nexport const config = IkasLocalThemeAPI.GetTheme.config;\n',t='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.UpdateTheme.updateTheme;\nexport const config = IkasLocalThemeAPI.UpdateTheme.config;\n',n='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.UploadTheme.uploadTheme;\nexport const config = IkasLocalThemeAPI.UploadTheme.config;\n',a=[{content:e,fileName:"getComponentDirs.ts"},{content:o,fileName:"getTheme.ts"},{content:t,fileName:"updateTheme.ts"},{content:n,fileName:"uploadTheme.ts"}];export{a as API_INFO,e as GET_COMPONENT_DIRS_API_CONTENT,o as GET_THEME_API_CONTENT,t as UPDATE_THEME_API_CONTENT,n as UPLOAD_THEME_API_CONTENT};
1
+ var e='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.GetComponentDirs.getComponentDirs;\nexport const config = IkasLocalThemeAPI.GetComponentDirs.config;\n',o='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.GetTheme.getTheme;\nexport const config = IkasLocalThemeAPI.GetTheme.config;\n',t='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.UpdateTheme.updateTheme;\nexport const config = IkasLocalThemeAPI.UpdateTheme.config;\n',n='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.UploadTheme.uploadTheme;\nexport const config = IkasLocalThemeAPI.UploadTheme.config;\n',a='import { IkasLocalThemeAPI } from "@ikas/storefront-next";\n\nexport default IkasLocalThemeAPI.GetConfig.getConfig;\nexport const config = IkasLocalThemeAPI.GetConfig.config;\n',m=[{content:e,fileName:"getComponentDirs.ts"},{content:o,fileName:"getTheme.ts"},{content:t,fileName:"updateTheme.ts"},{content:n,fileName:"uploadTheme.ts"},{content:a,fileName:"getConfig.ts"}];export{m as API_INFO,e as GET_COMPONENT_DIRS_API_CONTENT,a as GET_CONFIG_CONTENT,o as GET_THEME_API_CONTENT,t as UPDATE_THEME_API_CONTENT,n as UPLOAD_THEME_API_CONTENT};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-next",
3
- "version": "4.4.0-beta.9",
3
+ "version": "4.4.1",
4
4
  "description": "Next.js specific functions for ikas storefront themes.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",
@@ -17,23 +17,23 @@
17
17
  },
18
18
  "peerDependencies": {
19
19
  "next": "12.2.0",
20
- "@ikas/storefront-config": "^4.4.0-beta.9",
21
- "@ikas/storefront-providers": "^4.4.0-beta.9",
22
- "@ikas/storefront-models": "^4.4.0-beta.9",
23
- "@ikas/storefront-api": "^4.4.0-beta.9",
24
- "@ikas/storefront-assets": "^4.4.0-beta.9",
20
+ "@ikas/storefront-config": "^4.4.1",
21
+ "@ikas/storefront-providers": "^4.4.1",
22
+ "@ikas/storefront-models": "^4.4.1",
23
+ "@ikas/storefront-api": "^4.4.1",
24
+ "@ikas/storefront-assets": "^4.4.1",
25
25
  "axios": "^0.26.0",
26
26
  "lodash": "^4.17.21",
27
27
  "cors": "^2.8.5",
28
28
  "adm-zip": "^0.5.9"
29
29
  },
30
30
  "devDependencies": {
31
- "@ikas/storefront-cmd": "^4.4.0-beta.9",
32
- "@ikas/storefront-config": "^4.4.0-beta.9",
33
- "@ikas/storefront-providers": "^4.4.0-beta.9",
34
- "@ikas/storefront-models": "^4.4.0-beta.9",
35
- "@ikas/storefront-api": "^4.4.0-beta.9",
36
- "@ikas/storefront-assets": "^4.4.0-beta.9",
31
+ "@ikas/storefront-cmd": "^4.4.1",
32
+ "@ikas/storefront-config": "^4.4.1",
33
+ "@ikas/storefront-providers": "^4.4.1",
34
+ "@ikas/storefront-models": "^4.4.1",
35
+ "@ikas/storefront-api": "^4.4.1",
36
+ "@ikas/storefront-assets": "^4.4.1",
37
37
  "@rollup/plugin-node-resolve": "^13.3.0",
38
38
  "@rollup/plugin-commonjs": "^22.0.0",
39
39
  "@rollup/plugin-json": "^4.1.0",