@artisan-commerce/analytics-web 0.2.0-canary.76 → 0.2.0-canary.77
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/dist/bundle.cjs.js +44 -10
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +41 -7
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +48 -13
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/bundle.esm.js
CHANGED
|
@@ -1,11 +1,45 @@
|
|
|
1
|
-
import { initState, getState as getState$1, setState as setState$1 } from '@artisan-commerce/state';
|
|
2
1
|
import { snakeCase } from 'snake-case';
|
|
3
2
|
import { getShoppingCartProducts, getShoppingCartTotal } from '@artisan-commerce/shopping-cart-core';
|
|
4
3
|
import { getProductTotals } from '@artisan-commerce/products';
|
|
5
4
|
|
|
5
|
+
var __defProp$41 = Object.defineProperty;
|
|
6
|
+
var __getOwnPropSymbols$41 = Object.getOwnPropertySymbols;
|
|
7
|
+
var __hasOwnProp$41 = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum$41 = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp$41 = (obj, key, value) => key in obj ? __defProp$41(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues$41 = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp$41.call(b, prop))
|
|
13
|
+
__defNormalProp$41(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols$41)
|
|
15
|
+
for (var prop of __getOwnPropSymbols$41(b)) {
|
|
16
|
+
if (__propIsEnum$41.call(b, prop))
|
|
17
|
+
__defNormalProp$41(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
let state = null;
|
|
22
|
+
const initState = (initialState) => {
|
|
23
|
+
Object.freeze(initialState);
|
|
24
|
+
state = __spreadValues$41({}, initialState);
|
|
25
|
+
Object.seal(state);
|
|
26
|
+
};
|
|
27
|
+
const setState$1 = (overrides) => {
|
|
28
|
+
const tempState = state ? __spreadValues$41({}, state) : {};
|
|
29
|
+
state = null;
|
|
30
|
+
state = __spreadValues$41(__spreadValues$41({}, tempState), overrides);
|
|
31
|
+
Object.seal(state);
|
|
32
|
+
};
|
|
33
|
+
const getState$1 = () => {
|
|
34
|
+
if (state === null) {
|
|
35
|
+
throw new Error("The state has not been initialized, make sure to call initState beforehand");
|
|
36
|
+
}
|
|
37
|
+
return __spreadValues$41({}, state);
|
|
38
|
+
};
|
|
39
|
+
|
|
6
40
|
var name = "@artisan-commerce/analytics-web";
|
|
7
41
|
var description = "Artisn commerce analytics web library";
|
|
8
|
-
var version = "0.2.0-canary.
|
|
42
|
+
var version = "0.2.0-canary.76";
|
|
9
43
|
var main = "./dist/bundle.cjs.js";
|
|
10
44
|
var module = "./dist/bundle.esm.js";
|
|
11
45
|
var types = "./dist/bundle.d.ts";
|
|
@@ -38,14 +72,14 @@ var dependencies = {
|
|
|
38
72
|
"snake-case": "^3.0.4"
|
|
39
73
|
};
|
|
40
74
|
var devDependencies = {
|
|
41
|
-
"@artisan-commerce/
|
|
42
|
-
"@artisan-commerce/
|
|
43
|
-
"@artisan-commerce/state": "0.3.0-canary.
|
|
44
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
75
|
+
"@artisan-commerce/products": "0.9.0-canary.50",
|
|
76
|
+
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.73",
|
|
77
|
+
"@artisan-commerce/state": "0.3.0-canary.9",
|
|
78
|
+
"@artisan-commerce/types": "0.14.0-canary.38"
|
|
45
79
|
};
|
|
46
80
|
var peerDependencies = {
|
|
47
|
-
"@artisan-commerce/shopping-cart-core": "*",
|
|
48
81
|
"@artisan-commerce/products": "*",
|
|
82
|
+
"@artisan-commerce/shopping-cart-core": "*",
|
|
49
83
|
"@artisan-commerce/state": "*"
|
|
50
84
|
};
|
|
51
85
|
var nx = {
|