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