@ikas/storefront 3.0.0-alpha.20 → 3.0.0-alpha.22
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/__api/models/MasterpassTokenResponse.d.ts +9 -0
- package/build/__api/models/OrderAdjustmentAppliedOrderLine.d.ts +1 -1
- package/build/__api/models/OrderAdjustmentAppliedOrderLine.js +1 -1
- package/build/__api/models/OrderPaymentMethod.d.ts +1 -0
- package/build/__api/models/OrderPaymentMethod.js +1 -1
- package/build/__api/models/PaymentGateway.d.ts +1 -0
- package/build/__api/models/PaymentGateway.js +1 -1
- package/build/__api/models/SaveCartInput.d.ts +0 -2
- package/build/__api/models/SaveCartInput.js +1 -1
- package/build/__api/mutations/createOrderRefundRequest.d.ts +1 -0
- package/build/__api/mutations/createOrderRefundRequest.js +1 -1
- package/build/__api/queries/getCustomerOrders.d.ts +1 -0
- package/build/__api/queries/getCustomerOrders.js +1 -1
- package/build/__api/queries/getMasterpassRequestToken.d.ts +12 -0
- package/build/__api/queries/getOrder.d.ts +1 -0
- package/build/__api/queries/getOrderByEmail.d.ts +1 -0
- package/build/__api/queries/getOrderByEmail.js +1 -1
- package/build/__api/queries/listPaymentGateway.d.ts +1 -0
- package/build/__api/queries/listPaymentGateway.js +1 -1
- package/build/__api/types/index.d.ts +6 -2
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy4.js +1 -1
- package/build/components/checkout/components/customer-addresses/index.js +1 -1
- package/build/ikas.cjs +1 -1
- package/build/scripts/generators/config/content.d.ts +5 -0
- package/build/scripts/generators/config/content.js +1 -1
- package/build/scripts/generators/config/index.js +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare const DEPENDENCIES: {
|
|
|
10
10
|
export declare const DEV_DEPENDENCIES: {
|
|
11
11
|
"@types/node": string;
|
|
12
12
|
"@types/react": string;
|
|
13
|
+
"@types/react-dom": string;
|
|
13
14
|
"@typescript-eslint/eslint-plugin": string;
|
|
14
15
|
"@typescript-eslint/parser": string;
|
|
15
16
|
eslint: string;
|
|
@@ -23,6 +24,10 @@ export declare const DEV_DEPENDENCIES: {
|
|
|
23
24
|
sass: string;
|
|
24
25
|
typescript: string;
|
|
25
26
|
};
|
|
27
|
+
export declare const RESOLUTIONS: {
|
|
28
|
+
"@types/react": string;
|
|
29
|
+
"@types/react-dom": string;
|
|
30
|
+
};
|
|
26
31
|
export declare const SCRIPTS: {
|
|
27
32
|
upgradeDependencies: string;
|
|
28
33
|
dev: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e={next:"12.0.7",react:"17.0.2","react-dom":"17.0.2",mobx:"^6.1.3","mobx-react-lite":"^3.1.5","next-transpile-modules":"^9.0.0","@ikas/storefront-utils":"^3.0.0-alpha.22"},n={"@types/node":"^14.14.6","@types/react":"^17.0.2","@types/react-dom":"^17.0.2","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.10.0",eslint:"^6.6.0","eslint-config-react-app":"^5.2.1","eslint-loader":"3.0.3","eslint-plugin-flowtype":"4.6.0","eslint-plugin-import":"2.20.1","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react":"7.19.0","eslint-plugin-react-hooks":"^1.6.1",sass:"^1.43.4",typescript:"^4.5.2"},t={"@types/react":"17.0.2","@types/react-dom":"17.0.2"},s={upgradeDependencies:"yarn upgrade @ikas/storefront @ikas/storefront-utils",dev:"next dev -p 3333",build:"next build",start:"next start",generate:"ikas --generate","prettier:all":"npx prettier@^2.1 './**/src/**/*.(ts|tsx|css|scss)' --write"},i='{\n "compilerOptions": {\n "target": "esnext",\n "lib": [\n "dom",\n "dom.iterable",\n "esnext"\n ],\n "allowJs": true,\n "skipLibCheck": true,\n "strict": true,\n "forceConsistentCasingInFileNames": true,\n "experimentalDecorators": true,\n "noEmit": true,\n "esModuleInterop": true,\n "module": "esnext",\n "moduleResolution": "node",\n "resolveJsonModule": true,\n "isolatedModules": true,\n "jsx": "preserve",\n "baseUrl": ".",\n "useUnknownInCatchVariables": false,\n "incremental": true\n },\n "typeRoots": [\n "./node_modules/@types"\n ],\n "include": [\n "next-env.d.ts",\n "**/*.ts",\n "**/*.tsx",\n "**/typings/global.d.ts",\n ],\n "exclude": [\n "node_modules",\n "./src/pages/api",\n ]\n}',a='const withTM = require("next-transpile-modules")(["@ikas/storefront"]);\n\nconst config = {\n i18n: {\n defaultLocale: "en",\n locales: ["en"],\n localeDetection: false,\n },\n basePath: process.env.NEXTJS_BASE_PATH || "",\n\n images: {\n deviceSizes: [\n 180,\n 360,\n 540,\n 720,\n 900,\n 1080,\n 1296,\n 1512,\n 1728,\n 1950,\n 2560,\n 3840,\n ],\n },\n\n webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {\n if (!isServer) {\n config.resolve.fallback.fs = false;\n }\n return config;\n },\n};\n\nmodule.exports = withTM(config);',r="NEXT_PUBLIC_ENV=local\nNEXT_PUBLIC_BASE_URL=https://api.myikas.dev/api/sf\nNEXT_PUBLIC_IMG_BASE_URL=https://cdn.myikas.dev/\nNEXT_PUBLIC_UPLOAD_GQL_URL=https://api.myikas.dev/api/admin/graphql\nNEXT_PUBLIC_GQL_URL=https://api.myikas.dev/api/sf/graphql\n",l="NEXT_PUBLIC_ENV=local\nNEXT_PUBLIC_BASE_URL=https://api.myikas.com/api/sf\nNEXT_PUBLIC_IMG_BASE_URL=https://cdn.myikas.com/\nNEXT_PUBLIC_UPLOAD_GQL_URL=https://api.myikas.com/api/admin/graphql\nNEXT_PUBLIC_GQL_URL=https://api.myikas.com/api/sf/graphql\n";export{e as DEPENDENCIES,n as DEV_DEPENDENCIES,r as DEV_ENV,a as NEXT_CONFIG,l as PROD_ENV,t as RESOLUTIONS,s as SCRIPTS,i as TS_CONFIG};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as n,__assign as t}from'../../../ext/tslib/tslib.es6.js';import r from"path";import s from"fs";import{sortObject as o}from"../../../utils/helper.js";import"../../../storefront/index.js";import"../../../utils/i18n.js";import{createFile as i}from"../../../utils/fs.js";import{TS_CONFIG as c,NEXT_CONFIG as a,SCRIPTS as u,
|
|
1
|
+
import{__awaiter as e,__generator as n,__assign as t}from'../../../ext/tslib/tslib.es6.js';import r from"path";import s from"fs";import{sortObject as o}from"../../../utils/helper.js";import"../../../storefront/index.js";import"../../../utils/i18n.js";import{createFile as i}from"../../../utils/fs.js";import{TS_CONFIG as c,NEXT_CONFIG as a,SCRIPTS as u,RESOLUTIONS as f,DEV_ENV as p,PROD_ENV as l,DEV_DEPENDENCIES as g,DEPENDENCIES as d}from"./content.js";var v=function(){function v(){}return v.generate=function(t){return e(this,void 0,void 0,(function(){var e,r,s;return n(this,(function(n){switch(n.label){case 0:return[4,v.generateTsConfig()];case 1:return(s=n.sent())?[4,v.generateNextConfig()]:[3,3];case 2:s=n.sent(),n.label=3;case 3:return(r=s)?[4,v.generatePackageJson()]:[3,5];case 4:r=n.sent(),n.label=5;case 5:return(e=r)?[4,v.generateEnv(t)]:[3,7];case 6:e=n.sent(),n.label=7;case 7:return[2,e]}}))}))},v.generateTsConfig=function(){return i(process.cwd(),"tsconfig.json",c)},v.generateNextConfig=function(){return i(process.cwd(),"next.config.js",a)},v.generatePackageJson=function(){return e(this,void 0,void 0,(function(){var e,c,a,p,l;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),e=r.join(process.cwd(),"package.json"),(c=s.readFileSync(e)).length?(a=JSON.parse(c.toString()),(p=function(e){var n="dev"===e?g:d,r="dev"===e?"devDependencies":"dependencies";a[r]&&"object"==typeof a[r]?a[r]=t(t({},a[r]),n):a[r]=n;var s=o(a[r]);a[r]=s})("dev"),p("normal"),a.scripts&&"object"==typeof a.scripts?a.scripts=t(t({},a.scripts),u):a.scripts=u,a.resolutions=t(t({},a.resolutions),f),[4,i(e,"",JSON.stringify(a,null,2))]):[3,2];case 1:return[2,n.sent()];case 2:return[3,4];case 3:return l=n.sent(),console.error(l),[2,!1];case 4:return[2]}}))}))},v.generateEnv=function(e){var n="dev"===e?p:l;return i(process.cwd(),".env",n)},v}();export{v as ConfigGenerator};
|