veo-sdk 0.5.22 → 0.5.24

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.cjs CHANGED
@@ -2479,15 +2479,6 @@ function applyClosePosition(btn, position) {
2479
2479
  s.setProperty(vertical, CLOSE_INSET);
2480
2480
  s.setProperty(horizontal, CLOSE_INSET);
2481
2481
  }
2482
- function reserveCloseSpace(card, position) {
2483
- const blocks = Array.from(card.children).filter(
2484
- (c) => c instanceof HTMLElement && !c.classList.contains("veo-guide-close")
2485
- );
2486
- if (blocks.length === 0) return;
2487
- const target = position.includes("bottom") ? blocks[blocks.length - 1] : blocks[0];
2488
- if (!target) return;
2489
- target.style[position.includes("left") ? "paddingLeft" : "paddingRight"] = CLOSE_RESERVE;
2490
- }
2491
2482
  function makeCaret(doc, design) {
2492
2483
  const caret = doc.createElement("div");
2493
2484
  caret.className = "veo-composite-caret";
@@ -2581,7 +2572,7 @@ function applyCompositeDesign(card, design) {
2581
2572
  if (m) s.setProperty(`margin-${side.toLowerCase()}`, m);
2582
2573
  }
2583
2574
  }
2584
- var ROW_ALIGN, CompositeRenderer, CLOSE_INSET, CLOSE_RESERVE;
2575
+ var ROW_ALIGN, CompositeRenderer, CLOSE_INSET;
2585
2576
  var init_composite_renderer = __esm({
2586
2577
  "src/plugins/guides/renderers/composite-renderer.ts"() {
2587
2578
  init_block_builder();
@@ -2624,6 +2615,8 @@ var init_composite_renderer = __esm({
2624
2615
  };
2625
2616
  const readers = [];
2626
2617
  this.buildContent(card, step.blocks ?? [], doc, context, idx, readers);
2618
+ const lastBlock = card.lastElementChild;
2619
+ if (lastBlock && !lastBlock.style.marginBottom) lastBlock.style.marginBottom = "0";
2627
2620
  if (design.closeButton !== false) {
2628
2621
  const closeBtn = createCloseButton(doc, () => {
2629
2622
  dismiss("dismissed");
@@ -2634,7 +2627,6 @@ var init_composite_renderer = __esm({
2634
2627
  if (closeColor) closeBtn.style.color = closeColor;
2635
2628
  const closePos = typeof design.closePosition === "string" ? design.closePosition : "top-right";
2636
2629
  applyClosePosition(closeBtn, closePos);
2637
- reserveCloseSpace(card, closePos);
2638
2630
  if (hoverColor) {
2639
2631
  closeBtn.addEventListener("mouseenter", () => {
2640
2632
  closeBtn.style.color = hoverColor;
@@ -2836,7 +2828,6 @@ var init_composite_renderer = __esm({
2836
2828
  }
2837
2829
  };
2838
2830
  CLOSE_INSET = "10px";
2839
- CLOSE_RESERVE = "34px";
2840
2831
  }
2841
2832
  });
2842
2833
  function applyFloatingPosition(wrapper, placement) {