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.
@@ -0,0 +1,5 @@
1
+ export { VEO_BLOCK_MIME, attachBlockDropTarget, attachDesignManipulator, createBuilderSession, initBuilderMode, startElementPicker, stopElementPicker } from './chunk-E7CL4HPS.mjs';
2
+ import './chunk-Y3OWX2KW.mjs';
3
+ import './chunk-PTG3BTJE.mjs';
4
+ //# sourceMappingURL=builder-JSL3OZPL.mjs.map
5
+ //# sourceMappingURL=builder-JSL3OZPL.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-YJT44MRF.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-JSL3OZPL.mjs"}
package/dist/builder.cjs CHANGED
@@ -2294,6 +2294,8 @@ var CompositeRenderer = class extends BaseRenderer {
2294
2294
  };
2295
2295
  const readers = [];
2296
2296
  this.buildContent(card, step.blocks ?? [], doc, context, idx, readers);
2297
+ const lastBlock = card.lastElementChild;
2298
+ if (lastBlock && !lastBlock.style.marginBottom) lastBlock.style.marginBottom = "0";
2297
2299
  if (design.closeButton !== false) {
2298
2300
  const closeBtn = createCloseButton(doc, () => {
2299
2301
  dismiss("dismissed");
@@ -2304,7 +2306,6 @@ var CompositeRenderer = class extends BaseRenderer {
2304
2306
  if (closeColor) closeBtn.style.color = closeColor;
2305
2307
  const closePos = typeof design.closePosition === "string" ? design.closePosition : "top-right";
2306
2308
  applyClosePosition(closeBtn, closePos);
2307
- reserveCloseSpace(card, closePos);
2308
2309
  if (hoverColor) {
2309
2310
  closeBtn.addEventListener("mouseenter", () => {
2310
2311
  closeBtn.style.color = hoverColor;
@@ -2537,16 +2538,6 @@ function applyClosePosition(btn, position) {
2537
2538
  s.setProperty(vertical, CLOSE_INSET);
2538
2539
  s.setProperty(horizontal, CLOSE_INSET);
2539
2540
  }
2540
- var CLOSE_RESERVE = "34px";
2541
- function reserveCloseSpace(card, position) {
2542
- const blocks = Array.from(card.children).filter(
2543
- (c) => c instanceof HTMLElement && !c.classList.contains("veo-guide-close")
2544
- );
2545
- if (blocks.length === 0) return;
2546
- const target = position.includes("bottom") ? blocks[blocks.length - 1] : blocks[0];
2547
- if (!target) return;
2548
- target.style[position.includes("left") ? "paddingLeft" : "paddingRight"] = CLOSE_RESERVE;
2549
- }
2550
2541
  function makeCaret(doc, design) {
2551
2542
  const caret = doc.createElement("div");
2552
2543
  caret.className = "veo-composite-caret";