ng-miam 9.3.18 → 9.3.20
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/bundles/ng-miam.umd.js +27 -2
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_services/analytics.service.js +9 -2
- package/esm2015/lib/_services/context.service.js +19 -1
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +27 -2
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/analytics.service.d.ts.map +1 -1
- package/lib/_services/context.service.d.ts +2 -0
- package/lib/_services/context.service.d.ts.map +1 -1
- package/lib/environments/version.d.ts +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
EventJourney["EMPTY"] = "";
|
|
3653
3653
|
})(EventJourney || (EventJourney = {}));
|
|
3654
3654
|
|
|
3655
|
-
var VERSION = "9.3.
|
|
3655
|
+
var VERSION = "9.3.20"; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
3656
3656
|
|
|
3657
3657
|
var ContextRegistryService = /** @class */ (function () {
|
|
3658
3658
|
function ContextRegistryService() {
|
|
@@ -3757,7 +3757,14 @@
|
|
|
3757
3757
|
}
|
|
3758
3758
|
// Use provided journey or determine from context
|
|
3759
3759
|
var eventJourney = journey || (this.isMealzPage ? EventJourney.MEALZ : EventJourney.EMPTY);
|
|
3760
|
-
this.callMethodOrAddToQueue(function () {
|
|
3760
|
+
this.callMethodOrAddToQueue(function () {
|
|
3761
|
+
try {
|
|
3762
|
+
mealzSharedAnalytics.sendEvent(name, url(path), eventJourney, props);
|
|
3763
|
+
}
|
|
3764
|
+
catch (error) {
|
|
3765
|
+
mealzError('[Mealz] Error sending analytics event', error);
|
|
3766
|
+
}
|
|
3767
|
+
});
|
|
3761
3768
|
};
|
|
3762
3769
|
/** ************************************************* SEND EVENT FOR BASKET ACTIONS ************************************************* **/
|
|
3763
3770
|
AnalyticsService.prototype.sendRemoveRecipesEvents = function (actions, journey) {
|
|
@@ -9026,11 +9033,29 @@
|
|
|
9026
9033
|
}), operators.switchMap(function () { return _this.userService.setUserInfo(forbidProfiling); }));
|
|
9027
9034
|
};
|
|
9028
9035
|
ContextService.prototype.loadStoreLocatorPackage = function () {
|
|
9036
|
+
this.loadStoreLocatorScript();
|
|
9037
|
+
this.loadStoreLocatorCss();
|
|
9038
|
+
};
|
|
9039
|
+
ContextService.prototype.loadStoreLocatorScript = function () {
|
|
9029
9040
|
var storeLocatorScript = document.createElement('script');
|
|
9030
9041
|
storeLocatorScript.setAttribute('type', 'module');
|
|
9042
|
+
storeLocatorScript.setAttribute('id', 'mealz-store-locator-script');
|
|
9031
9043
|
storeLocatorScript.setAttribute('src', environment$1.mealzComponents + "/store-locator/store-locator.min.js");
|
|
9044
|
+
if (document.getElementById('mealz-store-locator-script')) {
|
|
9045
|
+
return;
|
|
9046
|
+
}
|
|
9032
9047
|
document.head.appendChild(storeLocatorScript);
|
|
9033
9048
|
};
|
|
9049
|
+
ContextService.prototype.loadStoreLocatorCss = function () {
|
|
9050
|
+
var storeLocatorCss = document.createElement('link');
|
|
9051
|
+
storeLocatorCss.setAttribute('rel', 'stylesheet');
|
|
9052
|
+
storeLocatorCss.setAttribute('id', 'mealz-store-locator-css');
|
|
9053
|
+
storeLocatorCss.setAttribute('href', environment$1.mealzComponents + "/store-locator/store-locator.css");
|
|
9054
|
+
if (document.getElementById('mealz-store-locator-css')) {
|
|
9055
|
+
return;
|
|
9056
|
+
}
|
|
9057
|
+
document.head.appendChild(storeLocatorCss);
|
|
9058
|
+
};
|
|
9034
9059
|
ContextService.prototype.generateAuthlessIdIfNecessary = function () {
|
|
9035
9060
|
var _this = this;
|
|
9036
9061
|
return this.userService.generatingAuthlessId$.pipe(operators.debounceTime(800), operators.take(1), operators.switchMap(function (isGenerating) {
|