@artisan-commerce/analytics-web 0.2.0-canary.44 → 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 CHANGED
@@ -3,6 +3,22 @@
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
+
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)
15
+
16
+ **Note:** Version bump only for package @artisan-commerce/analytics-web
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.2.0-canary.44](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-web@0.2.0-canary.43...@artisan-commerce/analytics-web@0.2.0-canary.44) (2021-11-05)
7
23
 
8
24
  **Note:** Version bump only for package @artisan-commerce/analytics-web
@@ -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.43";
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";
@@ -80,9 +80,9 @@ var dependencies = {
80
80
  "snake-case": "^3.0.4"
81
81
  };
82
82
  var devDependencies = {
83
- "@artisan-commerce/products": "0.9.0-canary.31",
84
- "@artisan-commerce/shopping-cart": "0.12.0-canary.41",
85
- "@artisan-commerce/types": "0.14.0-canary.24"
83
+ "@artisan-commerce/products": "0.9.0-canary.32",
84
+ "@artisan-commerce/shopping-cart": "0.12.0-canary.43",
85
+ "@artisan-commerce/types": "0.14.0-canary.25"
86
86
  };
87
87
  var peerDependencies = {
88
88
  "@artisan-commerce/products": "*",
@@ -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$h$1 = Object.defineProperty;
877
- var __getOwnPropSymbols$h$1 = Object.getOwnPropertySymbols;
878
- var __hasOwnProp$h$1 = Object.prototype.hasOwnProperty;
879
- var __propIsEnum$h$1 = Object.prototype.propertyIsEnumerable;
880
- var __defNormalProp$h$1 = (obj, key, value) => key in obj ? __defProp$h$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
881
- var __spreadValues$h$1 = (a, b) => {
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$h$1.call(b, prop))
884
- __defNormalProp$h$1(a, prop, b[prop]);
885
- if (__getOwnPropSymbols$h$1)
886
- for (var prop of __getOwnPropSymbols$h$1(b)) {
887
- if (__propIsEnum$h$1.call(b, prop))
888
- __defNormalProp$h$1(a, prop, b[prop]);
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$h$1({}, initialState);
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$e$1 = Object.defineProperty;
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$e$1 = Object.getOwnPropertySymbols;
1522
- var __hasOwnProp$e$1 = Object.prototype.hasOwnProperty;
1523
- var __propIsEnum$e$1 = Object.prototype.propertyIsEnumerable;
1524
- var __defNormalProp$e$1 = (obj, key, value) => key in obj ? __defProp$e$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1525
- var __spreadValues$e$1 = (a, b) => {
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$e$1.call(b, prop))
1528
- __defNormalProp$e$1(a, prop, b[prop]);
1529
- if (__getOwnPropSymbols$e$1)
1530
- for (var prop of __getOwnPropSymbols$e$1(b)) {
1531
- if (__propIsEnum$e$1.call(b, prop))
1532
- __defNormalProp$e$1(a, prop, b[prop]);
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$e$1({}, shoppingCartTotals), {
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$e$1({}, shoppingCartTotals), {
1623
+ return __spreadProps$c$1(__spreadValues$f$1({}, shoppingCartTotals), {
1624
1624
  totalDiscounts: newTotalDiscounts,
1625
1625
  total: newTotal
1626
1626
  });