@artisan-commerce/analytics-web 0.2.0-canary.45 → 0.2.0-canary.46
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/CHANGELOG.md +8 -0
- package/dist/bundle.cjs.js +29 -29
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +29 -29
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +29 -29
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.2.0-canary.46](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-web@0.2.0-canary.45...@artisan-commerce/analytics-web@0.2.0-canary.46) (2021-11-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @artisan-commerce/analytics-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.2.0-canary.45](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-web@0.2.0-canary.44...@artisan-commerce/analytics-web@0.2.0-canary.45) (2021-11-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @artisan-commerce/analytics-web
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -39,7 +39,7 @@ const getState$1 = () => {
|
|
|
39
39
|
|
|
40
40
|
var name = "@artisan-commerce/analytics-web";
|
|
41
41
|
var description = "Artisn commerce analytics web library";
|
|
42
|
-
var version = "0.2.0-canary.
|
|
42
|
+
var version = "0.2.0-canary.45";
|
|
43
43
|
var main = "./dist/bundle.cjs.js";
|
|
44
44
|
var module$1 = "./dist/bundle.esm.js";
|
|
45
45
|
var types = "./dist/bundle.d.ts";
|
|
@@ -81,7 +81,7 @@ var dependencies = {
|
|
|
81
81
|
};
|
|
82
82
|
var devDependencies = {
|
|
83
83
|
"@artisan-commerce/products": "0.9.0-canary.32",
|
|
84
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
84
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.43",
|
|
85
85
|
"@artisan-commerce/types": "0.14.0-canary.25"
|
|
86
86
|
};
|
|
87
87
|
var peerDependencies = {
|
|
@@ -873,19 +873,19 @@ const CONSTANTS = {
|
|
|
873
873
|
DEFAULT_SHOPPING_CART_NAME: "default",
|
|
874
874
|
DEFAULT_MAX_SHOPPING_CARTS: 2
|
|
875
875
|
};
|
|
876
|
-
var __defProp$
|
|
877
|
-
var __getOwnPropSymbols$
|
|
878
|
-
var __hasOwnProp$
|
|
879
|
-
var __propIsEnum$
|
|
880
|
-
var __defNormalProp$
|
|
881
|
-
var __spreadValues$
|
|
876
|
+
var __defProp$i$1 = Object.defineProperty;
|
|
877
|
+
var __getOwnPropSymbols$i$1 = Object.getOwnPropertySymbols;
|
|
878
|
+
var __hasOwnProp$i$1 = Object.prototype.hasOwnProperty;
|
|
879
|
+
var __propIsEnum$i$1 = Object.prototype.propertyIsEnumerable;
|
|
880
|
+
var __defNormalProp$i$1 = (obj, key, value) => key in obj ? __defProp$i$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
881
|
+
var __spreadValues$i$1 = (a, b) => {
|
|
882
882
|
for (var prop in b || (b = {}))
|
|
883
|
-
if (__hasOwnProp$
|
|
884
|
-
__defNormalProp$
|
|
885
|
-
if (__getOwnPropSymbols$
|
|
886
|
-
for (var prop of __getOwnPropSymbols$
|
|
887
|
-
if (__propIsEnum$
|
|
888
|
-
__defNormalProp$
|
|
883
|
+
if (__hasOwnProp$i$1.call(b, prop))
|
|
884
|
+
__defNormalProp$i$1(a, prop, b[prop]);
|
|
885
|
+
if (__getOwnPropSymbols$i$1)
|
|
886
|
+
for (var prop of __getOwnPropSymbols$i$1(b)) {
|
|
887
|
+
if (__propIsEnum$i$1.call(b, prop))
|
|
888
|
+
__defNormalProp$i$1(a, prop, b[prop]);
|
|
889
889
|
}
|
|
890
890
|
return a;
|
|
891
891
|
};
|
|
@@ -901,7 +901,7 @@ const initialState = {
|
|
|
901
901
|
initialized: false
|
|
902
902
|
};
|
|
903
903
|
Object.freeze(initialState);
|
|
904
|
-
let state = __spreadValues$
|
|
904
|
+
let state = __spreadValues$i$1({}, initialState);
|
|
905
905
|
Object.seal(state);
|
|
906
906
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
907
907
|
var dayjs_min = { exports: {} };
|
|
@@ -1515,21 +1515,21 @@ const getTaxTotal$1 = (taxes, grossPrice) => {
|
|
|
1515
1515
|
return acc + tax.percentage / 100 * grossPrice;
|
|
1516
1516
|
}, 0);
|
|
1517
1517
|
};
|
|
1518
|
-
var __defProp$
|
|
1518
|
+
var __defProp$f$1 = Object.defineProperty;
|
|
1519
1519
|
var __defProps$c$1 = Object.defineProperties;
|
|
1520
1520
|
var __getOwnPropDescs$c$1 = Object.getOwnPropertyDescriptors;
|
|
1521
|
-
var __getOwnPropSymbols$
|
|
1522
|
-
var __hasOwnProp$
|
|
1523
|
-
var __propIsEnum$
|
|
1524
|
-
var __defNormalProp$
|
|
1525
|
-
var __spreadValues$
|
|
1521
|
+
var __getOwnPropSymbols$f$1 = Object.getOwnPropertySymbols;
|
|
1522
|
+
var __hasOwnProp$f$1 = Object.prototype.hasOwnProperty;
|
|
1523
|
+
var __propIsEnum$f$1 = Object.prototype.propertyIsEnumerable;
|
|
1524
|
+
var __defNormalProp$f$1 = (obj, key, value) => key in obj ? __defProp$f$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1525
|
+
var __spreadValues$f$1 = (a, b) => {
|
|
1526
1526
|
for (var prop in b || (b = {}))
|
|
1527
|
-
if (__hasOwnProp$
|
|
1528
|
-
__defNormalProp$
|
|
1529
|
-
if (__getOwnPropSymbols$
|
|
1530
|
-
for (var prop of __getOwnPropSymbols$
|
|
1531
|
-
if (__propIsEnum$
|
|
1532
|
-
__defNormalProp$
|
|
1527
|
+
if (__hasOwnProp$f$1.call(b, prop))
|
|
1528
|
+
__defNormalProp$f$1(a, prop, b[prop]);
|
|
1529
|
+
if (__getOwnPropSymbols$f$1)
|
|
1530
|
+
for (var prop of __getOwnPropSymbols$f$1(b)) {
|
|
1531
|
+
if (__propIsEnum$f$1.call(b, prop))
|
|
1532
|
+
__defNormalProp$f$1(a, prop, b[prop]);
|
|
1533
1533
|
}
|
|
1534
1534
|
return a;
|
|
1535
1535
|
};
|
|
@@ -1611,7 +1611,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1611
1611
|
const totalDiscount2 = copayment * discountPercentage;
|
|
1612
1612
|
const newTotalDiscounts2 = prevTotalDiscounts + totalDiscount2;
|
|
1613
1613
|
const newTotal2 = (copayment - totalDiscount2).toFixed(4);
|
|
1614
|
-
return __spreadProps$c$1(__spreadValues$
|
|
1614
|
+
return __spreadProps$c$1(__spreadValues$f$1({}, shoppingCartTotals), {
|
|
1615
1615
|
totalDiscounts: newTotalDiscounts2,
|
|
1616
1616
|
total: Number(newTotal2)
|
|
1617
1617
|
});
|
|
@@ -1620,7 +1620,7 @@ const applyBenefitByDiscount = (benefit, shoppingCartTotals, additionalInfo) =>
|
|
|
1620
1620
|
const totalDiscount = newSubtotal;
|
|
1621
1621
|
const newTotalDiscounts = prevTotalDiscounts + totalDiscount;
|
|
1622
1622
|
const newTotal = prevTotal - totalDiscount;
|
|
1623
|
-
return __spreadProps$c$1(__spreadValues$
|
|
1623
|
+
return __spreadProps$c$1(__spreadValues$f$1({}, shoppingCartTotals), {
|
|
1624
1624
|
totalDiscounts: newTotalDiscounts,
|
|
1625
1625
|
total: newTotal
|
|
1626
1626
|
});
|