@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.
- package/bundles/veloce-sdk-cms.umd.js +4 -4
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +9 -1
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/types/configuration.types.d.ts +1 -1
- package/esm2015/cms/plugins/configuration.plugin.js +4 -4
- package/esm2015/cms/types/configuration.types.js +1 -1
- package/esm2015/cms/utils/element.utils.js +2 -2
- package/esm2015/src/components/header/header.component.js +10 -2
- package/fesm2015/veloce-sdk-cms.js +4 -4
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk.js +9 -1
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +4 -4
- package/src/components/header/header.component.d.ts +6 -0
@@ -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 (
|
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
|
};
|