@ikas/storefront 3.0.0-alpha.42 → 3.0.0-alpha.44
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/mutations/updateCartCampaignOffer.js +1 -0
- package/build/_virtual/index.js_commonjs-proxy13.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy14.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy4.js +1 -1
- package/build/assets/translations/checkout/en.js +1 -1
- package/build/assets/translations/checkout/tr.js +1 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -1
- package/build/components/checkout/components/offer-product/index.d.ts +8 -0
- package/build/components/checkout/components/offer-product/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +6 -0
- package/build/components/checkout/components/offer-product/select/arrows.js +1 -0
- package/build/components/checkout/components/offer-product/select/index.d.ts +11 -0
- package/build/components/checkout/components/offer-product/select/index.js +1 -0
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +1 -0
- package/build/components/checkout/components/offer-product/style.module.scss.js +1 -0
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +21 -1
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/modelMasterPass.js +1 -1
- package/build/components/checkout/steps/step-success/index.js +1 -1
- package/build/ext/axios/package.json.js +1 -1
- package/build/ikas.cjs +1 -1
- package/build/scripts/generators/config/content.js +1 -1
- package/build/store/cart/api.d.ts +2 -0
- package/build/store/cart/api.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
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.
|
|
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.44"},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};
|
|
@@ -3,10 +3,12 @@ import { APIResponse } from "@ikas/fe-api-client";
|
|
|
3
3
|
import { QueryParams as SaveCartQueryParams } from "src/__api/mutations/saveCart";
|
|
4
4
|
import { QueryParams as SaveCartCouponCodeQueryParams } from "src/__api/mutations/saveCartCouponCode";
|
|
5
5
|
import { QueryParams as AddItemToCartQueryParams } from "src/__api/mutations/addItemToCart";
|
|
6
|
+
import { QueryParams as UpdateCartCampaignOfferQueryParams } from "src/__api/mutations/updateCartCampaignOffer";
|
|
6
7
|
import { IkasCart } from "src";
|
|
7
8
|
export default class CartStoreAPI {
|
|
8
9
|
static getCartById: (params: GetCartByIdQueryParams) => Promise<APIResponse<IkasCart | null>>;
|
|
9
10
|
static saveCart: (params: SaveCartQueryParams) => Promise<APIResponse<IkasCart | null>>;
|
|
10
11
|
static saveCartCouponCode: (params: SaveCartCouponCodeQueryParams) => Promise<APIResponse<IkasCart | null>>;
|
|
11
12
|
static addItemToCart: (params: AddItemToCartQueryParams) => Promise<APIResponse<IkasCart | null>>;
|
|
13
|
+
static updateCartCampaignOffer: (params: UpdateCartCampaignOfferQueryParams) => Promise<APIResponse<IkasCart | null>>;
|
|
12
14
|
}
|
package/build/store/cart/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as t,__awaiter as
|
|
1
|
+
import{__spreadArray as t,__awaiter as r,__generator as e}from'../../ext/tslib/tslib.es6.js';import n,{ResponseField as a}from"../../__api/queries/getCartById.js";import{APIResponse as i}from'../../ext/@ikas/fe-api-client/build/utils/api.js';import'../../ext/axios/lib/axios.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js';import'../../ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js';import o from"../../__api/mutations/saveCart.js";import s from"../../__api/mutations/saveCartCouponCode.js";import u from"../../__api/mutations/addItemToCart.js";import d from"../../__api/mutations/updateCartCampaignOffer.js";import{IkasCart as l}from"../../models/data/cart/index.js";var c=function(){function t(){}var a;return a=t,t.getCartById=function(t){return r(void 0,void 0,void 0,(function(){var r;return e(a,(function(e){switch(e.label){case 0:return[4,n(t,p)];case 1:return r=e.sent(),[2,new i(r.data?new l(r.data):null,r.graphQLErrors)]}}))}))},t.saveCart=function(t){return r(void 0,void 0,void 0,(function(){var r;return e(a,(function(e){switch(e.label){case 0:return[4,o(t,p)];case 1:return r=e.sent(),[2,new i(r.data?new l(r.data):null,r.graphQLErrors)]}}))}))},t.saveCartCouponCode=function(t){return r(void 0,void 0,void 0,(function(){var r;return e(a,(function(e){switch(e.label){case 0:return[4,s(t,p)];case 1:return r=e.sent(),[2,new i(r.data?new l(r.data):null,r.graphQLErrors)]}}))}))},t.addItemToCart=function(t){return r(void 0,void 0,void 0,(function(){var r;return e(a,(function(e){switch(e.label){case 0:return[4,u(t,p)];case 1:return r=e.sent(),[2,new i(r.data?new l(r.data):null,r.graphQLErrors)]}}))}))},t.updateCartCampaignOffer=function(t){return r(void 0,void 0,void 0,(function(){var r;return e(a,(function(e){switch(e.label){case 0:return[4,d(t)];case 1:return r=e.sent(),[2,new i(r.data?new l(r.data):null,r.graphQLErrors)]}}))}))},t}(),f=t(t(["MERCHANT_ID","ORDER_LINE_ITEMS__VARIANT__TAG_IDS"],Object.keys(a).filter((function(t){return t.startsWith("CURRENCY_RATES")})),!0),Object.keys(a).filter((function(t){return t.startsWith("ABANDONED_CART_FLOWS")})),!0),p=Object.entries(a).filter((function(t){var r=t[0];return!f.includes(r)})).map((function(t){return t[1]}));export{c as default};
|