@koda-sl/baker-cli 0.434.0-dev.2729b1413 → 0.434.0-dev.3587df0fa

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.
@@ -8548,6 +8548,19 @@ function rolesById(canvas) {
8548
8548
  }
8549
8549
  return out;
8550
8550
  }
8551
+ function relaidPictureRole(canvas) {
8552
+ const roles = rolesById(canvas);
8553
+ const final = nodesOf(canvas).find((n) => n.id === "final" && n.type === "collect");
8554
+ const labels = final?.params?.labels;
8555
+ const images = final?.inputs?.images;
8556
+ if (!Array.isArray(labels) || !Array.isArray(images)) return {};
8557
+ const at2 = images.findIndex((ref) => {
8558
+ const from = typeof ref === "string" ? /^\$ref:([^.]+)\./.exec(ref)?.[1] : void 0;
8559
+ return from !== void 0 && roles[from] === STATIC_MASTER_ROLE;
8560
+ });
8561
+ const format = labels[at2];
8562
+ return typeof format === "string" ? { [`last_${formatSlug(format)}`]: STATIC_MASTER_ROLE } : {};
8563
+ }
8551
8564
  function formatSlug(format) {
8552
8565
  return format.replace(":", "x").replace(".", "_");
8553
8566
  }
@@ -18782,6 +18795,7 @@ export {
18782
18795
  LOGO_COMPOSITE_DEFAULT,
18783
18796
  nodesWithRole,
18784
18797
  rolesById,
18798
+ relaidPictureRole,
18785
18799
  formatSlug,
18786
18800
  staticMasterFormat,
18787
18801
  staticRenderNodes,
@@ -18839,4 +18853,4 @@ export {
18839
18853
  defaultRegistry,
18840
18854
  createEngineFromEnv
18841
18855
  };
18842
- //# sourceMappingURL=chunk-O5HQRXS6.js.map
18856
+ //# sourceMappingURL=chunk-7NKAKF3K.js.map