@ikas/storefront 0.1.4 → 0.1.5

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.
@@ -1,3 +1,4 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
2
  declare const _default: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
3
  export default _default;
4
+ export declare const config: {};
@@ -1,3 +1,4 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
2
  declare const _default: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
3
  export default _default;
4
+ export declare const config: {};
@@ -0,0 +1,3 @@
1
+ import { NextApiRequest, NextApiResponse } from "next";
2
+ export declare function runMiddleware(req: NextApiRequest, res: NextApiResponse, fn: any): Promise<unknown>;
3
+ export declare function corsMiddleware(req: NextApiRequest, res: NextApiResponse): Promise<unknown>;
@@ -1,6 +1,5 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
- declare const _default: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export default _default;
2
+ export declare const updateTheme: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
4
3
  export declare const config: {
5
4
  api: {
6
5
  bodyParser: {
@@ -1,3 +1,3 @@
1
1
  import { NextApiRequest, NextApiResponse } from "next";
2
- declare const _default: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
- export default _default;
2
+ export declare const uploadTheme: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
3
+ export declare const config: {};
@@ -17,4 +17,14 @@ import * as SearchPage from "./search";
17
17
  import * as NotFoundPage from "./404";
18
18
  import * as BlogPage from "./blog/index";
19
19
  import * as BlogSlugPage from "./blog/[slug]";
20
- export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, BlogPage, BlogSlugPage, };
20
+ import * as GetComponentDirs from "./api/getComponentDirs";
21
+ import * as GetTheme from "./api/getTheme";
22
+ import * as UpdateTheme from "./api/updateTheme";
23
+ import * as UploadTheme from "./api/uploadTheme";
24
+ declare const IkasLocaleThemeAPI: {
25
+ GetComponentDirs: typeof GetComponentDirs;
26
+ GetTheme: typeof GetTheme;
27
+ UpdateTheme: typeof UpdateTheme;
28
+ UploadTheme: typeof UploadTheme;
29
+ };
30
+ export { IndexPage, SlugPage, CustomPage, CheckoutPage, AccountPage, AddressesPage, OrdersPage, OrderDetailPage, LoginPage, RegisterPage, ForgotPasswordPage, RecoverPasswordPage, CartPage, EditorPage, FavoriteProductsPage, SearchPage, NotFoundPage, BlogPage, BlogSlugPage, IkasLocaleThemeAPI, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",
@@ -25,9 +25,6 @@
25
25
  "dependencies": {
26
26
  "@apollo/client": "^3.2.0",
27
27
  "@ikas/react-phone-number-input": "^3.1.25-alpha.2",
28
- "archiver": "^5.2.0",
29
- "cors": "^2.8.5",
30
- "form-data": "^3.0.0",
31
28
  "graphql": "^15.3.0",
32
29
  "graphql-tag": "^2.10.3",
33
30
  "html-react-parser": "^1.4.0",
@@ -36,7 +33,11 @@
36
33
  "node-fetch": "^2.6.1",
37
34
  "query-string": "^6.13.8",
38
35
  "react-tooltip": "^4.2.21",
39
- "uuid": "^8.3.2"
36
+ "uuid": "^8.3.2",
37
+ "archiver": "^5.1.0",
38
+ "axios": "^0.21.0",
39
+ "cors": "^2.8.5",
40
+ "form-data": "^3.0.0"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@babel/core": "^7.11.6",