@almadar/core 7.24.0 → 7.25.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/dist/index.js CHANGED
@@ -7711,6 +7711,7 @@ function translateDomainToParams(binding, signature, presentation, ruleOverlay,
7711
7711
  applyEntityName(binding.entity, signature, params);
7712
7712
  applyEntityFields(binding.entity, signature, params, warnings);
7713
7713
  applyPersistence(binding.entity, signature, params, warnings);
7714
+ applyCollection(binding.entity, params);
7714
7715
  applyPagePaths(binding.pages ?? [], signature, params, warnings);
7715
7716
  applyPresentation(presentation, signature, params, warnings);
7716
7717
  applyTraitOverlay(traitOverlay, signature, params, warnings);
@@ -7761,6 +7762,10 @@ function applyPersistence(entity, signature, params, warnings) {
7761
7762
  if (entity.persistence === signature.entities[0].persistence) return;
7762
7763
  params.persistence = entity.persistence;
7763
7764
  }
7765
+ function applyCollection(entity, params) {
7766
+ if (!entity.collection) return;
7767
+ params.collection = entity.collection;
7768
+ }
7764
7769
  function applyPagePaths(pages, signature, params, warnings) {
7765
7770
  if (pages.length === 0) return;
7766
7771
  const sigPages = new Map(signature.pages.map((p) => [p.name, p]));