@veloceapps/sdk 2.0.23 → 2.0.25

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.
@@ -1226,6 +1226,20 @@
1226
1226
  ConfigurationService.prototype.getRuntimeContext = function () {
1227
1227
  return this.runtimeService.runtimeContext;
1228
1228
  };
1229
+ Object.defineProperty(ConfigurationService.prototype, "contextSnapshot", {
1230
+ get: function () {
1231
+ return this.contextService.resolve();
1232
+ },
1233
+ enumerable: false,
1234
+ configurable: true
1235
+ });
1236
+ Object.defineProperty(ConfigurationService.prototype, "context$", {
1237
+ get: function () {
1238
+ return this.contextService.resolve$();
1239
+ },
1240
+ enumerable: false,
1241
+ configurable: true
1242
+ });
1229
1243
  Object.defineProperty(ConfigurationService.prototype, "charges$", {
1230
1244
  get: function () {
1231
1245
  return this.charges.asObservable();
@@ -1258,9 +1272,7 @@
1258
1272
  .configureLineItem({ configurationRequest: configurationRequest, runtimeModel: runtimeModel, pricingEnabled: pricingEnabled })
1259
1273
  .pipe(rxjsOperators.map(function (_e) {
1260
1274
  var lineItem = _e.lineItem, context = _e.context, charges = _e.charges, deletedLineItems = _e.deletedLineItems;
1261
- if (context) {
1262
- _this.contextService.update({ properties: context.properties });
1263
- }
1275
+ _this.contextService.update(context !== null && context !== void 0 ? context : {});
1264
1276
  _this.charges.next(charges !== null && charges !== void 0 ? charges : {});
1265
1277
  if (deletedLineItems === null || deletedLineItems === void 0 ? void 0 : deletedLineItems.length) {
1266
1278
  _this.showInactiveProductsConfirmation();