@ikas/storefront 4.0.0-alpha.62 → 4.0.0-alpha.63

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 +1 @@
1
- import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasCart as t}from"../cart/index.js";import{IkasCheckoutFunctions as a,IkasOrderFunctions as r}from"@ikas/storefront-model-functions";import{formatCurrency as o}from"../../../utils/currency.js";import{makeObservable as i,observable as n,computed as l}from"mobx";import{formatDate as c}from"../../../utils/helper.js";var s=function(t){function s(e){var a=t.call(this,e)||this;return a.appliedCouponCode=null,a.selectedPaymentGateway=null,a.masterPassPaymentGateway=null,a.appliedCouponCode=e.couponCode,a.selectedPaymentGateway=e.selectedPaymentGateway,a.masterPassPaymentGateway=e.masterPassPaymentGateway,i(a,{appliedCouponCode:n,selectedPaymentGateway:n,masterPassPaymentGateway:n,isComplete:l,$totalFinalPrice:l,$totalFinalPriceTaxModifier:l,$totalTax:l,$formattedTotalTax:l,$formattedTotalFinalPrice:l}),a}return e(s,t),Object.defineProperty(s.prototype,"isComplete",{get:function(){return a.isComplete(this)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$totalFinalPrice",{get:function(){return this.selectedPaymentGateway?a.getTotalFinalPrice(this,this.selectedPaymentGateway):this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$totalFinalPriceTaxModifier",{get:function(){return this.$totalFinalPrice/this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$totalTax",{get:function(){return r.getTotalTax(this)*this.$totalFinalPriceTaxModifier},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$formattedTotalTax",{get:function(){return o(this.totalTax,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$formattedTotalFinalPrice",{get:function(){return o(this.$totalFinalPrice,this.currencyCode,this.currencySymbol)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dateStr",{get:function(){var e=new Date;return e.setTime(this.updatedAt),c(e)},enumerable:!1,configurable:!0}),s}(t);export{s as IkasCheckout};
1
+ import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasCart as t}from"../cart/index.js";import{IkasCheckoutFunctions as a,IkasOrderFunctions as r}from"@ikas/storefront-model-functions";import{formatCurrency as o}from"../../../utils/currency.js";import{makeObservable as i,observable as n,computed as l}from"mobx";import{formatDate as c}from"../../../utils/helper.js";var s=function(t){function s(e){var a=t.call(this,e)||this;return a.appliedCouponCode=null,a.selectedPaymentGateway=null,a.masterPassPaymentGateway=null,a.appliedCouponCode=e.couponCode,a.selectedPaymentGateway=e.selectedPaymentGateway,a.masterPassPaymentGateway=e.masterPassPaymentGateway,i(a,{appliedCouponCode:n,selectedPaymentGateway:n,masterPassPaymentGateway:n,isComplete:l,$totalFinalPrice:l,$totalFinalPriceTaxModifier:l,$totalTax:l,$formattedTotalTax:l,$formattedTotalFinalPrice:l}),a}return e(s,t),Object.defineProperty(s.prototype,"isComplete",{get:function(){return a.isComplete(this)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$totalFinalPrice",{get:function(){return this.selectedPaymentGateway?a.getTotalFinalPrice(this,this.selectedPaymentGateway):this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$totalFinalPriceTaxModifier",{get:function(){return this.$totalFinalPrice/this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$totalTax",{get:function(){return r.getTotalTax(this)*this.$totalFinalPriceTaxModifier},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$formattedTotalTax",{get:function(){return o(this.$totalTax,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"$formattedTotalFinalPrice",{get:function(){return o(this.$totalFinalPrice,this.currencyCode,this.currencySymbol)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dateStr",{get:function(){var e=new Date;return e.setTime(this.updatedAt),c(e)},enumerable:!1,configurable:!0}),s}(t);export{s as IkasCheckout};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "4.0.0-alpha.62",
3
+ "version": "4.0.0-alpha.63",
4
4
  "description": "Storefront functionality for ikas storefront themes.",
5
5
  "author": "Umut Ozan Yıldırım",
6
6
  "license": "ISC",
@@ -23,11 +23,11 @@
23
23
  "libphonenumber-js": "^1.10.6"
24
24
  },
25
25
  "devDependencies": {
26
- "@ikas/storefront-api": "^4.0.0-alpha.62",
27
- "@ikas/storefront-config": "^4.0.0-alpha.62",
28
- "@ikas/storefront-model-functions": "^4.0.0-alpha.62",
29
- "@ikas/storefront-models": "^4.0.0-alpha.62",
30
- "@ikas/storefront-providers": "^4.0.0-alpha.62",
26
+ "@ikas/storefront-api": "^4.0.0-alpha.63",
27
+ "@ikas/storefront-config": "^4.0.0-alpha.63",
28
+ "@ikas/storefront-model-functions": "^4.0.0-alpha.63",
29
+ "@ikas/storefront-models": "^4.0.0-alpha.63",
30
+ "@ikas/storefront-providers": "^4.0.0-alpha.63",
31
31
  "@rollup/plugin-commonjs": "^22.0.0",
32
32
  "@rollup/plugin-json": "^4.1.0",
33
33
  "@rollup/plugin-node-resolve": "^13.3.0",
@@ -53,11 +53,11 @@
53
53
  "query-string": "^6.13.8"
54
54
  },
55
55
  "peerDependencies": {
56
- "@ikas/storefront-api": "^4.0.0-alpha.62",
57
- "@ikas/storefront-config": "^4.0.0-alpha.62",
58
- "@ikas/storefront-model-functions": "^4.0.0-alpha.62",
59
- "@ikas/storefront-models": "^4.0.0-alpha.62",
60
- "@ikas/storefront-providers": "^4.0.0-alpha.62",
56
+ "@ikas/storefront-api": "^4.0.0-alpha.63",
57
+ "@ikas/storefront-config": "^4.0.0-alpha.63",
58
+ "@ikas/storefront-model-functions": "^4.0.0-alpha.63",
59
+ "@ikas/storefront-models": "^4.0.0-alpha.63",
60
+ "@ikas/storefront-providers": "^4.0.0-alpha.63",
61
61
  "mobx": "^6.1.3",
62
62
  "mobx-react-lite": "^3.1.5",
63
63
  "next": "12.2.0",