@ikas/storefront 3.0.0-alpha.31 → 3.0.0-alpha.33
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/_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/components/checkout/components/button/index.d.ts +1 -0
- package/build/components/checkout/components/button/index.js +1 -1
- package/build/components/checkout/components/master-pass/index.js +1 -1
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +1 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +8 -0
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -1
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +1 -1
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +10 -0
- package/build/components/checkout/components/master-pass/modal-response/index.js +1 -0
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +1 -0
- package/build/components/checkout/components/master-pass/style.module.scss.js +1 -1
- package/build/components/checkout/components/select-box/index.d.ts +1 -1
- package/build/components/checkout/components/stripe/checkout-form.js +1 -1
- package/build/components/checkout/components/stripe/style.module.scss.js +1 -0
- package/build/components/checkout/index.d.ts +1 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +2 -0
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/modelMasterPass.d.ts +73 -19
- package/build/components/checkout/modelMasterPass.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +1 -1
- package/build/ikas.cjs +1 -1
- package/build/models/data/checkout/index.d.ts +1 -0
- package/build/models/data/checkout/index.js +1 -1
- package/build/scripts/generators/config/content.js +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { IkasPaymentGateway } from "../payment-gateway";
|
|
|
3
3
|
export default class IkasCheckout extends IkasCart {
|
|
4
4
|
appliedCouponCode?: string | null;
|
|
5
5
|
selectedPaymentGateway?: IkasPaymentGateway | null;
|
|
6
|
+
masterPassPaymentGateway?: IkasPaymentGateway | null;
|
|
6
7
|
constructor(data?: Partial<IkasCheckout>);
|
|
7
8
|
get isComplete(): boolean;
|
|
8
9
|
get shippingTotal(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as e}from'../../../ext/tslib/tslib.es6.js';import{makeObservable as t,observable as i,computed as r}from"mobx";import{validateEmail as o,formatDate as n}from"../../../utils/helper.js";import"../../../storefront/index.js";import"../../../utils/i18n.js";import"../blog/index.js";import"../brand/index.js";import"../cart/campaign-offer/index.js";import{IkasCart as
|
|
1
|
+
import{__extends as e}from'../../../ext/tslib/tslib.es6.js';import{makeObservable as t,observable as i,computed as r}from"mobx";import{validateEmail as o,formatDate as n}from"../../../utils/helper.js";import"../../../storefront/index.js";import"../../../utils/i18n.js";import"../blog/index.js";import"../brand/index.js";import"../cart/campaign-offer/index.js";import{IkasCart as a}from"../cart/index.js";import"../category/index.js";import"../city/index.js";import"../country/index.js";import"../customer/address/index.js";import"../customer/attribute-value/index.js";import"../customer/index.js";import"../customer-attribute/customer-attribute-option/index.js";import"../customer-attribute/customer-attribute-sales-channel/index.js";import"../customer-attribute/index.js";import"../customer-review/index.js";import"../customer-review-summary/index.js";import"../district/index.js";import"../favorite-product/index.js";import"../html-meta-data/index.js";import"../image/index.js";import"../merchant-settings/index.js";import"../order/address/index.js";import"../order/adjustment/index.js";import"../order/gift-line/index.js";import"../order/invoice/index.js";import"../order/line-item/discount/index.js";import"../order/line-item/option/value/index.js";import"../order/line-item/option/index.js";import"../order/line-item/variant/index.js";import"../order/line-item/index.js";import"../order/package/tracking-info/index.js";import"../order/package/index.js";import"../order/payment-method/index.js";import"../order/refund/line-item/index.js";import"../order/shipping-line/index.js";import"../order/tax-line/index.js";import"../order/transaction/index.js";import"../order/index.js";import"../product/attribute-value/index.js";import"../product/variant/price/index.js";import"../product/variant/index.js";import"../variant-type/index.js";import"../product/index.js";import"../product-attribute/index.js";import"../product-filter/index.js";import"../product-campaign/campaign/index.js";import"../product-campaign/filter/index.js";import"../product-option-set/index.js";import"../raffle/index.js";import"../state/index.js";import"../variant-type/variant-value/index.js";import"../payment-gateway/index.js";import{PaymentGatewayAdditionalPriceTypeEnum as s}from"../../../__api/types/index.js";var d=function(a){function d(e){void 0===e&&(e={});var o=a.call(this,e)||this;return o.appliedCouponCode=null,o.selectedPaymentGateway=null,o.masterPassPaymentGateway=null,o.appliedCouponCode=e.couponCode,o.selectedPaymentGateway=e.selectedPaymentGateway,o.masterPassPaymentGateway=e.masterPassPaymentGateway,t(o,{appliedCouponCode:i,selectedPaymentGateway:i,masterPassPaymentGateway:i,isComplete:r,shippingTotal:r,hasCustomer:r,hasValidCustomerEmail:r,customerFullName:r,customerEmail:r,dateStr:r,$totalFinalPrice:r,couponAdjustment:r,nonCouponAdjustments:r}),o}return e(d,a),Object.defineProperty(d.prototype,"isComplete",{get:function(){return!!this.orderNumber},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"shippingTotal",{get:function(){var e;return(null===(e=this.shippingLines)||void 0===e?void 0:e.reduce((function(e,t){return e+t.price}),0))||0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hasCustomer",{get:function(){var e;return!!(null===(e=this.customer)||void 0===e?void 0:e.id)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hasValidCustomerEmail",{get:function(){var e;return!!(null===(e=this.customer)||void 0===e?void 0:e.email)&&o(this.customer.email)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"customerFullName",{get:function(){var e,t;return"".concat((null===(e=this.customer)||void 0===e?void 0:e.firstName)||""," ").concat((null===(t=this.customer)||void 0===t?void 0:t.lastName)||"")},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"customerEmail",{get:function(){var e;return"".concat((null===(e=this.customer)||void 0===e?void 0:e.email)||"")},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dateStr",{get:function(){var e=new Date;return e.setTime(this.updatedAt),n(e)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"$totalFinalPrice",{get:function(){var e,t=null===(e=this.selectedPaymentGateway)||void 0===e?void 0:e.getCalculatedAdditionalPrices(this.totalFinalPrice||0,this.shippingLines||null),i=this.totalFinalPrice||0;return null==t||t.forEach((function(e){e.type===s.DECREMENT?i-=e.amount:i+=e.amount})),i},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"couponAdjustment",{get:function(){var e;return null===(e=this.orderAdjustments)||void 0===e?void 0:e.find((function(e){return!!e.couponId}))},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"nonCouponAdjustments",{get:function(){var e;return null===(e=this.orderAdjustments)||void 0===e?void 0:e.filter((function(e){return!e.couponId}))},enumerable:!1,configurable:!0}),d}(a);export{d as default};
|
|
@@ -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.32"},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};
|