veo-sdk 0.5.14 → 0.5.15

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-GFRB4SOK.mjs';
2
+ import './chunk-GHXV62K3.mjs';
3
+ import './chunk-PTG3BTJE.mjs';
4
+ //# sourceMappingURL=builder-2YOKNVDM.mjs.map
5
+ //# sourceMappingURL=builder-2YOKNVDM.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-T7233XIB.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-2YOKNVDM.mjs"}
package/dist/builder.cjs CHANGED
@@ -2328,6 +2328,10 @@ var CompositeRenderer = class extends BaseRenderer {
2328
2328
  const closeColor = typeof design.closeColor === "string" ? design.closeColor : null;
2329
2329
  const hoverColor = typeof design.closeHoverColor === "string" ? design.closeHoverColor : null;
2330
2330
  if (closeColor) closeBtn.style.color = closeColor;
2331
+ applyClosePosition(
2332
+ closeBtn,
2333
+ typeof design.closePosition === "string" ? design.closePosition : "top-right"
2334
+ );
2331
2335
  if (hoverColor) {
2332
2336
  closeBtn.addEventListener("mouseenter", () => {
2333
2337
  closeBtn.style.color = hoverColor;
@@ -2554,6 +2558,18 @@ function applyViewportPosition(card, position, design) {
2554
2558
  const ty = v === "middle" ? "-50%" : "0";
2555
2559
  s.transform = tx === "0" && ty === "0" ? "" : `translate(${tx}, ${ty})`;
2556
2560
  }
2561
+ var CLOSE_INSET = "10px";
2562
+ function applyClosePosition(btn, position) {
2563
+ const s = btn.style;
2564
+ s.top = "auto";
2565
+ s.right = "auto";
2566
+ s.bottom = "auto";
2567
+ s.left = "auto";
2568
+ const vertical = position.includes("bottom") ? "bottom" : "top";
2569
+ const horizontal = position.includes("left") ? "left" : "right";
2570
+ s.setProperty(vertical, CLOSE_INSET);
2571
+ s.setProperty(horizontal, CLOSE_INSET);
2572
+ }
2557
2573
  function makeCaret(doc, design) {
2558
2574
  const caret = doc.createElement("div");
2559
2575
  caret.className = "veo-composite-caret";