veo-sdk 0.5.19 → 0.5.20

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-JHEFBLAH.mjs';
2
+ import './chunk-UJWTFUJV.mjs';
3
+ import './chunk-PTG3BTJE.mjs';
4
+ //# sourceMappingURL=builder-TBIRGQDI.mjs.map
5
+ //# sourceMappingURL=builder-TBIRGQDI.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-Q3V33JIO.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-TBIRGQDI.mjs"}
package/dist/builder.cjs CHANGED
@@ -1956,10 +1956,6 @@ function mountCodeBlock(block, doc, context) {
1956
1956
  wrapper.appendChild(iframe);
1957
1957
  return { node: wrapper, cleanup };
1958
1958
  }
1959
- if (context.editorPreview) {
1960
- return { node: buildHostPlaceholder(doc), cleanup: () => {
1961
- } };
1962
- }
1963
1959
  const hostDoc = doc;
1964
1960
  const injected = [];
1965
1961
  if (typeof block.css === "string" && block.css.trim()) {
@@ -1991,18 +1987,6 @@ function mountCodeBlock(block, doc, context) {
1991
1987
  }
1992
1988
  };
1993
1989
  }
1994
- function buildHostPlaceholder(doc) {
1995
- const box = doc.createElement("div");
1996
- box.className = "veo-code-placeholder";
1997
- box.style.cssText = "border:1px dashed #cbd5e1;border-radius:8px;padding:12px;text-align:center;font:13px/1.4 system-ui,sans-serif;color:#64748b;background:#f8fafc;";
1998
- const t = doc.createElement("strong");
1999
- t.textContent = "\u27E8 \u27E9 Bloque de c\xF3digo";
2000
- t.style.cssText = "display:block;color:#475569;margin-bottom:2px;";
2001
- const s = doc.createElement("span");
2002
- s.textContent = "Se ejecuta en tu app al publicar (no corre en el editor).";
2003
- box.append(t, s);
2004
- return box;
2005
- }
2006
1990
  function runScript(old, hostDoc) {
2007
1991
  const s = hostDoc.createElement("script");
2008
1992
  for (const attr of Array.from(old.attributes)) s.setAttribute(attr.name, attr.value);
@@ -3169,7 +3153,6 @@ var GuidePreviewController = class {
3169
3153
  // el caller puede pasar `formSubmit` real (link de preview).
3170
3154
  onFormSubmit: this.input?.formSubmit ?? (() => Promise.resolve(true)),
3171
3155
  isPreview: true,
3172
- editorPreview: this.input?.editorPreview === true,
3173
3156
  ...this.input?.formSubmit && this.input.formSubmitNote !== void 0 ? { previewNote: this.input.formSubmitNote } : {}
3174
3157
  });
3175
3158
  } catch {
@@ -4045,7 +4028,7 @@ function initBuilderMode() {
4045
4028
  dropTarget?.detach();
4046
4029
  dropTarget = null;
4047
4030
  previewStepIndex = cmd.guide.startStepIndex ?? 0;
4048
- const handle = previewGuide({ ...cmd.guide, editorPreview: true });
4031
+ const handle = previewGuide(cmd.guide);
4049
4032
  if (!cmd.editable) return;
4050
4033
  void handle.ready.then((result) => {
4051
4034
  if (!result.rendered) return;