veo-sdk 0.3.9 → 0.3.10

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 { createBuilderSession, initBuilderMode, startElementPicker, stopElementPicker } from './chunk-FC5IA6CO.mjs';
2
+ import './chunk-OENKQRLR.mjs';
3
+ import './chunk-PTG3BTJE.mjs';
4
+ //# sourceMappingURL=builder-TIN4M7IH.mjs.map
5
+ //# sourceMappingURL=builder-TIN4M7IH.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-AGU5EM3C.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-TIN4M7IH.mjs"}
package/dist/builder.cjs CHANGED
@@ -1065,7 +1065,14 @@ function buildSrcdoc(html, css, js, token, opts) {
1065
1065
  return (
1066
1066
  // Orden: base → CSS del host (utilidades+clases propias+:root) → reset
1067
1067
  // flotante (fondo transparente, sin márgenes) → Tailwind → CSS del autor (gana).
1068
- `<!DOCTYPE html><html ${opts.htmlAttrs}><head><meta charset="utf-8"><style>html,body{margin:0;padding:0;}body{font-family:system-ui,-apple-system,sans-serif;}</style>` + hostStyle + "<style>html,body{margin:0!important;padding:0!important;background:transparent!important;}</style>" + tailwind + `<style>${escapeClosing(css, "style")}</style></head><body>${html}<script>${bridge}</script>` + (js ? `<script>${escapeClosing(js, "script")}</script>` : "") + "</body></html>"
1068
+ `<!DOCTYPE html><html ${opts.htmlAttrs}><head><meta charset="utf-8"><style>html,body{margin:0;padding:0;}body{font-family:system-ui,-apple-system,sans-serif;}</style>` + hostStyle + // Reset flotante: el CSS de la app trae reglas de PÁGINA (body{min-height:100vh},
1069
+ // html{height:100%}, fondo del layout…) que en un iframe embebido lo estirarían a
1070
+ // toda la pantalla (caja negra) en vez de ajustarse al contenido. Neutralizamos
1071
+ // tamaño/fondo/overflow (mantenemos color y fuente heredados de la app).
1072
+ "<style>html,body{margin:0!important;padding:0!important;background:transparent!important;height:auto!important;min-height:0!important;max-height:none!important;width:auto!important;min-width:0!important;overflow:visible!important;}</style>" + tailwind + // Inline en <body>: gana incluso sobre reglas `!important` de la app (p. ej.
1073
+ // `.dark body{background:#000!important}`) porque el estilo inline tiene la
1074
+ // mayor especificidad dentro de la capa important-author.
1075
+ `<style>${escapeClosing(css, "style")}</style></head><body style="margin:0!important;background:transparent!important;min-height:0!important;height:auto!important;">` + html + `<script>${bridge}</script>` + (js ? `<script>${escapeClosing(js, "script")}</script>` : "") + "</body></html>"
1069
1076
  );
1070
1077
  }
1071
1078
  function escapeClosing(code, tag) {