@artisan-commerce/analytics-web 0.2.0-canary.82 → 0.2.0-canary.83
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 +4 -3
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.esm.js +4 -3
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +4 -3
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.cjs.js
CHANGED
|
@@ -43,7 +43,7 @@ const getState$1 = () => {
|
|
|
43
43
|
|
|
44
44
|
var name = "@artisan-commerce/analytics-web";
|
|
45
45
|
var description = "Artisn commerce analytics web library";
|
|
46
|
-
var version = "0.2.0-canary.
|
|
46
|
+
var version = "0.2.0-canary.82";
|
|
47
47
|
var main = "./dist/bundle.cjs.js";
|
|
48
48
|
var module$1 = "./dist/bundle.esm.js";
|
|
49
49
|
var types = "./dist/bundle.d.ts";
|
|
@@ -77,7 +77,7 @@ var dependencies = {
|
|
|
77
77
|
};
|
|
78
78
|
var devDependencies = {
|
|
79
79
|
"@artisan-commerce/products": "0.9.0-canary.54",
|
|
80
|
-
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.
|
|
80
|
+
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.79",
|
|
81
81
|
"@artisan-commerce/state": "0.3.0-canary.9",
|
|
82
82
|
"@artisan-commerce/types": "0.14.0-canary.38"
|
|
83
83
|
};
|
|
@@ -616,7 +616,7 @@ const initAnalytics = (config) => {
|
|
|
616
616
|
if (!checkUniqueProviderTrackerIds(providers)) {
|
|
617
617
|
return logMessage("Providers trackerId must be unique, check that no provider trackerId are repeated", "severe");
|
|
618
618
|
}
|
|
619
|
-
const _a = config, { meta } = _a, rest = __objRest$3V(_a, ["meta"]);
|
|
619
|
+
const _a = config, { meta, onInit } = _a, rest = __objRest$3V(_a, ["meta", "onInit"]);
|
|
620
620
|
const { platform = "web" } = meta;
|
|
621
621
|
const enhancedProviders = shareArtisnAnalytics ? [GlobalProvider.instance, ...providers] : providers;
|
|
622
622
|
const enhancedConfig = __spreadProps$2t(__spreadValues$3Y({}, rest), {
|
|
@@ -650,6 +650,7 @@ const initAnalytics = (config) => {
|
|
|
650
650
|
GlobalProvider.instance.updateConfig(globalProviderConfig);
|
|
651
651
|
GlobalProvider.instance.setVendors(allVendors);
|
|
652
652
|
setState({ initialized: true });
|
|
653
|
+
onInit == null ? void 0 : onInit();
|
|
653
654
|
};
|
|
654
655
|
|
|
655
656
|
var __defProp$3X = Object.defineProperty;
|