veo-sdk 0.5.11 → 0.5.13

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-JYLQLSO2.mjs';
2
+ import './chunk-NXO3T43M.mjs';
3
+ import './chunk-PTG3BTJE.mjs';
4
+ //# sourceMappingURL=builder-Q6GDLAFC.mjs.map
5
+ //# sourceMappingURL=builder-Q6GDLAFC.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-324AW5Z7.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-Q6GDLAFC.mjs"}
package/dist/builder.cjs CHANGED
@@ -2261,6 +2261,11 @@ function buildScale(wrapper, doc, min, max, btnClass, symbol) {
2261
2261
  }
2262
2262
 
2263
2263
  // src/plugins/guides/renderers/composite-renderer.ts
2264
+ var ROW_ALIGN = {
2265
+ left: "flex-start",
2266
+ center: "center",
2267
+ right: "flex-end"
2268
+ };
2264
2269
  var CompositeRenderer = class extends BaseRenderer {
2265
2270
  constructor() {
2266
2271
  super(...arguments);
@@ -2400,12 +2405,17 @@ var CompositeRenderer = class extends BaseRenderer {
2400
2405
  if (b.type === "button") {
2401
2406
  const row = doc.createElement("div");
2402
2407
  row.className = "veo-guide-actions";
2408
+ let rowAlign;
2403
2409
  while (i < blocks.length && blocks[i]?.type === "button") {
2404
- row.appendChild(
2405
- this.buildButton(blocks[i], doc, context, idx, readers, emit)
2406
- );
2410
+ const bb = blocks[i];
2411
+ if (!rowAlign) {
2412
+ const a = bb.style?.align;
2413
+ if (a === "left" || a === "center" || a === "right") rowAlign = a;
2414
+ }
2415
+ row.appendChild(this.buildButton(bb, doc, context, idx, readers, emit));
2407
2416
  i++;
2408
2417
  }
2418
+ if (rowAlign) row.style.justifyContent = ROW_ALIGN[rowAlign] ?? "flex-end";
2409
2419
  card.appendChild(row);
2410
2420
  continue;
2411
2421
  }
@@ -2439,6 +2449,7 @@ var CompositeRenderer = class extends BaseRenderer {
2439
2449
  btn.type = "button";
2440
2450
  btn.className = "veo-guide-cta";
2441
2451
  btn.textContent = block.text?.trim() || "OK";
2452
+ applyBlockStyle(btn, block.style, "button");
2442
2453
  const nav = context.nav?.callbacks;
2443
2454
  btn.addEventListener("click", () => {
2444
2455
  switch (block.action) {