@veloceapps/sdk 6.0.0-37 → 6.0.0-38

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.
Files changed (30) hide show
  1. package/bundles/veloceapps-sdk-cms.umd.js +103 -19
  2. package/bundles/veloceapps-sdk-cms.umd.js.map +1 -1
  3. package/bundles/veloceapps-sdk-core.umd.js +12 -0
  4. package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
  5. package/cms/index.d.ts +1 -0
  6. package/cms/modules/migrations/index.d.ts +2 -0
  7. package/cms/modules/migrations/migrations.d.ts +2 -0
  8. package/cms/modules/migrations/migrations.module.d.ts +6 -0
  9. package/cms/modules/migrations/services/migrations.service.d.ts +10 -0
  10. package/cms/modules/migrations/types/migrations.types.d.ts +2 -0
  11. package/cms/utils/elements-resolver.d.ts +1 -1
  12. package/core/types/ui-definition.types.d.ts +19 -4
  13. package/core/utils/index.d.ts +1 -0
  14. package/core/utils/ui-definition.utils.d.ts +2 -0
  15. package/esm2015/cms/index.js +2 -1
  16. package/esm2015/cms/modules/migrations/index.js +3 -0
  17. package/esm2015/cms/modules/migrations/migrations.js +11 -0
  18. package/esm2015/cms/modules/migrations/migrations.module.js +15 -0
  19. package/esm2015/cms/modules/migrations/services/migrations.service.js +43 -0
  20. package/esm2015/cms/modules/migrations/types/migrations.types.js +2 -0
  21. package/esm2015/cms/modules/runtime/services/compilation.service.js +9 -6
  22. package/esm2015/cms/utils/elements-resolver.js +6 -3
  23. package/esm2015/core/types/ui-definition.types.js +2 -2
  24. package/esm2015/core/utils/index.js +2 -1
  25. package/esm2015/core/utils/ui-definition.utils.js +9 -0
  26. package/fesm2015/veloceapps-sdk-cms.js +79 -13
  27. package/fesm2015/veloceapps-sdk-cms.js.map +1 -1
  28. package/fesm2015/veloceapps-sdk-core.js +12 -2
  29. package/fesm2015/veloceapps-sdk-core.js.map +1 -1
  30. package/package.json +1 -1
@@ -441,6 +441,8 @@
441
441
  RuntimeStep["UPDATE"] = "UPDATE";
442
442
  })(exports.RuntimeStep || (exports.RuntimeStep = {}));
443
443
 
444
+ var UI_DEFINITION_VERSION = 3;
445
+
444
446
  var ContextService = /** @class */ (function () {
445
447
  function ContextService(contextApiService) {
446
448
  this.contextApiService = contextApiService;
@@ -1289,6 +1291,14 @@
1289
1291
  type: i0.Injectable
1290
1292
  }], ctorParameters: function () { return [{ type: QuoteDraftService }, { type: ConfigurationRuntimeService }, { type: ContextService }, { type: i1__namespace.ConfigurationApiService }, { type: i5__namespace.MessageService }, { type: i6__namespace.DialogService }]; } });
1291
1293
 
1294
+ function extractMetadata(uiDefinition) {
1295
+ return lodash.omit(uiDefinition, [
1296
+ 'children',
1297
+ 'pages',
1298
+ 'components',
1299
+ ]);
1300
+ }
1301
+
1292
1302
  var FlowUpdateService = /** @class */ (function () {
1293
1303
  function FlowUpdateService() {
1294
1304
  }
@@ -1854,7 +1864,9 @@
1854
1864
  exports.ProductImagesService = ProductImagesService;
1855
1865
  exports.QuoteDraftService = QuoteDraftService;
1856
1866
  exports.SdkCoreModule = SdkCoreModule;
1867
+ exports.UI_DEFINITION_VERSION = UI_DEFINITION_VERSION;
1857
1868
  exports.calculateCardinalityVariables = calculateCardinalityVariables;
1869
+ exports.extractMetadata = extractMetadata;
1858
1870
  exports.findLineItem = findLineItem;
1859
1871
  exports.findLineItemWithComparator = findLineItemWithComparator;
1860
1872
  exports.generateLineItem = generateLineItem;