veo-sdk 0.3.14 → 0.3.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 { createBuilderSession, initBuilderMode, startElementPicker, stopElementPicker } from './chunk-EF4BZR5R.mjs';
2
+ import './chunk-2INDL77W.mjs';
3
+ import './chunk-PTG3BTJE.mjs';
4
+ //# sourceMappingURL=builder-BKLDSVN5.mjs.map
5
+ //# sourceMappingURL=builder-BKLDSVN5.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-4YBB3RSZ.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-BKLDSVN5.mjs"}
package/dist/builder.cjs CHANGED
@@ -692,6 +692,24 @@ var GUIDE_STYLES = `
692
692
  cursor: pointer; color: #9ca3af; padding: 0;
693
693
  }
694
694
  .veo-guide-close:hover { color: var(--veo-text); }
695
+ /*
696
+ * Si el PRIMER bloque es una imagen, la \u2715 quedar\xEDa sobre la esquina de la foto
697
+ * (invisible seg\xFAn el color). En ese caso pasa a ser una pastilla flotante con
698
+ * fondo propio, legible sobre cualquier imagen. (Sin soporte de :has() queda el
699
+ * estilo base \u2014 mismo comportamiento de antes, sin regresi\xF3n.)
700
+ */
701
+ .veo-guide-content:has(> .veo-guide-image:first-child) > .veo-guide-close {
702
+ top: 2px; right: 2px;
703
+ display: flex; align-items: center; justify-content: center;
704
+ font-size: 16px; color: #374151;
705
+ background: rgba(255, 255, 255, 0.92);
706
+ border: 1px solid rgba(0, 0, 0, 0.08);
707
+ border-radius: 50%;
708
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
709
+ }
710
+ .veo-guide-content:has(> .veo-guide-image:first-child) > .veo-guide-close:hover {
711
+ color: #111827;
712
+ }
695
713
 
696
714
  .veo-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
697
715
  .veo-form-field { display: flex; flex-direction: column; gap: 6px; }
@@ -1244,7 +1262,7 @@ function mountFormContent(card, context, doc) {
1244
1262
  const empty = value === void 0 || value === null || value === "";
1245
1263
  if (empty) {
1246
1264
  if (field.required) {
1247
- error.textContent = `Complet\xE1 "${field.label}"`;
1265
+ error.textContent = `Completa "${field.label}"`;
1248
1266
  error.style.display = "block";
1249
1267
  return;
1250
1268
  }
@@ -1253,7 +1271,7 @@ function mountFormContent(card, context, doc) {
1253
1271
  answers[field.key] = value;
1254
1272
  }
1255
1273
  if (Object.keys(answers).length === 0) {
1256
- error.textContent = "Respond\xE9 al menos un campo";
1274
+ error.textContent = "Responde al menos un campo";
1257
1275
  error.style.display = "block";
1258
1276
  return;
1259
1277
  }
@@ -1262,7 +1280,7 @@ function mountFormContent(card, context, doc) {
1262
1280
  void submitFn(answers).then((ok) => {
1263
1281
  if (!ok) {
1264
1282
  submit.disabled = false;
1265
- error.textContent = "No se pudo enviar. Prob\xE1 de nuevo.";
1283
+ error.textContent = "No se pudo enviar. Prueba de nuevo.";
1266
1284
  error.style.display = "block";
1267
1285
  return;
1268
1286
  }
@@ -1321,7 +1339,7 @@ function buildField(field, doc) {
1321
1339
  select.className = "veo-form-input";
1322
1340
  const blank = doc.createElement("option");
1323
1341
  blank.value = "";
1324
- blank.textContent = field.placeholder || "Eleg\xED una opci\xF3n\u2026";
1342
+ blank.textContent = field.placeholder || "Elige una opci\xF3n\u2026";
1325
1343
  select.appendChild(blank);
1326
1344
  for (const opt of field.options ?? []) {
1327
1345
  const option = doc.createElement("option");
@@ -2351,7 +2369,7 @@ var ElementPicker = class {
2351
2369
  this.label.style.display = "none";
2352
2370
  const hint = document.createElement("div");
2353
2371
  hint.className = "veo-pick-hint";
2354
- hint.textContent = options.hint ?? "Seleccion\xE1 un elemento \xB7 Esc para cancelar";
2372
+ hint.textContent = options.hint ?? "Selecciona un elemento \xB7 Esc para cancelar";
2355
2373
  shadow.append(style, this.box, this.label, hint);
2356
2374
  document.body.appendChild(host);
2357
2375
  this.host = host;