@veloceapps/sdk 4.0.21 → 5.0.1

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.
@@ -798,7 +798,7 @@
798
798
  };
799
799
 
800
800
  var EXPORTED_CLASS_REGEX = /export class (\S+)/;
801
- var METADATA_DECORATOR_REGEX = /@ElementDefinition\(([\s\S]+)\)(\n|.)*export class/g;
801
+ var METADATA_DECORATOR_REGEX = /@ElementDefinition\(([\s\S]+)\)(\n|\r\n|.)*export class/g;
802
802
  var UiBuildError = /** @class */ (function (_super) {
803
803
  __extends(UiBuildError, _super);
804
804
  function UiBuildError(message, affectedMetadata) {
@@ -1343,12 +1343,12 @@
1343
1343
  };
1344
1344
  ConfigurationPlugin.prototype.registerType = function () {
1345
1345
  var _this = this;
1346
- var remove = function (id) {
1346
+ var remove = function () {
1347
1347
  var rootLineItem = _this.configurationService.getSnapshot();
1348
- if (!rootLineItem) {
1348
+ if (!rootLineItem || !_this.modelSnapshot) {
1349
1349
  return;
1350
1350
  }
1351
- _this.configurationService.patch(new i2.LineItemWorker(rootLineItem).remove(id).li);
1351
+ _this.configurationService.patch(new i2.LineItemWorker(rootLineItem).remove(_this.modelSnapshot.id).li);
1352
1352
  };
1353
1353
  this.typeHost.remove = remove;
1354
1354
  };