ng-miam 10.3.2 → 10.5.0
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 +9 -4
- 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/context.service.js +8 -3
- package/esm2015/lib/_types/builded/mealz-internal-interface.js +1 -1
- package/esm2015/lib/environments/environment.js +2 -2
- package/esm2015/lib/environments/environment.prod.js +2 -2
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +10 -5
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/context.service.d.ts +2 -1
- package/lib/_services/context.service.d.ts.map +1 -1
- package/lib/_types/builded/mealz-internal-interface.d.ts +5 -1
- package/lib/_types/builded/mealz-internal-interface.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
|
@@ -1640,7 +1640,7 @@
|
|
|
1640
1640
|
env: 'prod',
|
|
1641
1641
|
miamAPI: 'https://api.miam.tech',
|
|
1642
1642
|
miamWeb: 'https://miam.tech',
|
|
1643
|
-
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.
|
|
1643
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.8/dist',
|
|
1644
1644
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
1645
1645
|
lang: 'fr',
|
|
1646
1646
|
analyticsEnabled: true // Only used in DEV mode
|
|
@@ -3440,7 +3440,7 @@
|
|
|
3440
3440
|
EventJourney["EMPTY"] = "";
|
|
3441
3441
|
})(EventJourney || (EventJourney = {}));
|
|
3442
3442
|
|
|
3443
|
-
var VERSION = "10.
|
|
3443
|
+
var VERSION = "10.5.0"; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
3444
3444
|
|
|
3445
3445
|
var ContextRegistryService = /** @class */ (function () {
|
|
3446
3446
|
function ContextRegistryService() {
|
|
@@ -10978,6 +10978,7 @@
|
|
|
10978
10978
|
this.orderHistoryEnabled = false;
|
|
10979
10979
|
this.enableMealsPlanner$ = new rxjs.BehaviorSubject(false);
|
|
10980
10980
|
this.displaySupplierSelector$ = new rxjs.BehaviorSubject(false);
|
|
10981
|
+
this.noSupplier$ = new rxjs.ReplaySubject(1);
|
|
10981
10982
|
this.preferencesChanged = new i0.EventEmitter();
|
|
10982
10983
|
this.mealz = {
|
|
10983
10984
|
paymentStarted: function (totalPrice) {
|
|
@@ -11145,6 +11146,8 @@
|
|
|
11145
11146
|
_this.basketHandler.resetMealz();
|
|
11146
11147
|
}
|
|
11147
11148
|
if (_this.origin.value) {
|
|
11149
|
+
_this.noSupplier = false;
|
|
11150
|
+
_this.noSupplier$.next(false);
|
|
11148
11151
|
_this.suppliersService.loadSupplier(supplierId.toString()).subscribe();
|
|
11149
11152
|
if (!_this.loggedOnSession) {
|
|
11150
11153
|
localStorage.removeItem('_miam/userId');
|
|
@@ -11180,6 +11183,7 @@
|
|
|
11180
11183
|
_this.fakeCartService.pushToFakeCart(products);
|
|
11181
11184
|
});
|
|
11182
11185
|
_this.basketHandler.noSupplier$.next(true);
|
|
11186
|
+
_this.noSupplier$.next(true);
|
|
11183
11187
|
}
|
|
11184
11188
|
else {
|
|
11185
11189
|
localStorage.removeItem('_miam/noSupplier/posId');
|
|
@@ -11413,7 +11417,8 @@
|
|
|
11413
11417
|
supplier: {
|
|
11414
11418
|
getToken: function () { return _this.suppliersService.token; },
|
|
11415
11419
|
currentSupplier: function () { return _this.suppliersService.supplier$; },
|
|
11416
|
-
isNoSupplier: function () { return _this.noSupplier; }
|
|
11420
|
+
isNoSupplier: function () { return _this.noSupplier; },
|
|
11421
|
+
noSupplier$: this.noSupplier$
|
|
11417
11422
|
},
|
|
11418
11423
|
user: {
|
|
11419
11424
|
getLanguage: function () { return _this.userService.language; },
|
|
@@ -13005,7 +13010,7 @@
|
|
|
13005
13010
|
env: 'prod',
|
|
13006
13011
|
miamAPI: 'https://api.miam.tech',
|
|
13007
13012
|
miamWeb: 'https://miam.tech',
|
|
13008
|
-
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.
|
|
13013
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.8/dist',
|
|
13009
13014
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
13010
13015
|
lang: 'fr',
|
|
13011
13016
|
analyticsEnabled: true // Only used in DEV mode
|