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.
- package/dist/builder-TIN4M7IH.mjs +5 -0
- package/dist/{builder-AGU5EM3C.mjs.map → builder-TIN4M7IH.mjs.map} +1 -1
- package/dist/builder.cjs +8 -1
- package/dist/builder.cjs.map +1 -1
- package/dist/builder.mjs +4 -4
- package/dist/{chunk-3YRVJRBF.mjs → chunk-FC5IA6CO.mjs} +3 -3
- package/dist/{chunk-3YRVJRBF.mjs.map → chunk-FC5IA6CO.mjs.map} +1 -1
- package/dist/{chunk-S522B64R.mjs → chunk-OENKQRLR.mjs} +10 -3
- package/dist/chunk-OENKQRLR.mjs.map +1 -0
- package/dist/{chunk-MBI57TLT.mjs → chunk-P4WHQV2T.mjs} +3 -3
- package/dist/{chunk-MBI57TLT.mjs.map → chunk-P4WHQV2T.mjs.map} +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/veo-builder.js +1 -1
- package/dist/veo-builder.js.map +1 -1
- package/dist/veo-guides.js +1 -1
- package/dist/veo-guides.js.map +1 -1
- package/package.json +1 -1
- package/dist/builder-AGU5EM3C.mjs +0 -5
- package/dist/chunk-S522B64R.mjs.map +0 -1
|
@@ -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-
|
|
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 +
|
|
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) {
|