veo-sdk 0.6.4 → 0.6.6

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import './chunk-72YH2GXC.mjs';
2
- import { initBuilderMode } from './chunk-YEKCBVNJ.mjs';
3
- export { createBuilderSession, initBuilderMode, startElementPicker, stopElementPicker } from './chunk-YEKCBVNJ.mjs';
2
+ import { initBuilderMode } from './chunk-POPDESAP.mjs';
3
+ export { createBuilderSession, initBuilderMode, startElementPicker, stopElementPicker } from './chunk-POPDESAP.mjs';
4
4
  export { closeGuidePreview, previewGuide } from './chunk-CMPOHTUM.mjs';
5
5
  import './chunk-PTG3BTJE.mjs';
6
6
 
@@ -1051,6 +1051,15 @@ var INTERACTIVE_SELECTOR = [
1051
1051
  '[contenteditable="true"]',
1052
1052
  "[onclick]",
1053
1053
  "[data-veo-tag]",
1054
+ // Acordeones, menús desplegables, tabs y toggles de apps modernas (React/Radix):
1055
+ // el handler no está en el HTML, pero estos atributos delatan el control.
1056
+ "[aria-expanded]",
1057
+ "[aria-haspopup]",
1058
+ "[aria-controls]",
1059
+ "[aria-pressed]",
1060
+ "[aria-selected]",
1061
+ "[data-state]",
1062
+ '[tabindex]:not([tabindex="-1"])',
1054
1063
  ...INTERACTIVE_ROLES.map((r) => `[role="${r}"]`)
1055
1064
  ].join(", ");
1056
1065
  function isInteractiveElement(element) {
@@ -1062,10 +1071,22 @@ function isInteractiveElement(element) {
1062
1071
  }
1063
1072
  function closestInteractive(element) {
1064
1073
  try {
1065
- return element.closest(INTERACTIVE_SELECTOR);
1074
+ const bySelector = element.closest(INTERACTIVE_SELECTOR);
1075
+ if (bySelector) return bySelector;
1066
1076
  } catch {
1067
1077
  return null;
1068
1078
  }
1079
+ let current = element;
1080
+ for (let depth = 0; current && depth < 5; depth++, current = current.parentElement) {
1081
+ if (current instanceof HTMLElement) {
1082
+ try {
1083
+ const win = current.ownerDocument.defaultView;
1084
+ if (win?.getComputedStyle(current).cursor === "pointer") return current;
1085
+ } catch {
1086
+ }
1087
+ }
1088
+ }
1089
+ return null;
1069
1090
  }
1070
1091
  var EMOJI_RE = /\p{Extended_Pictographic}|\p{Emoji_Modifier}|\u{FE0F}|\u{200D}|\u{20E3}/gu;
1071
1092
  function elementLabelText(element, max = 120) {
@@ -2880,5 +2901,5 @@ function noopSession() {
2880
2901
  }
2881
2902
 
2882
2903
  export { INTERACTIVE_SELECTOR, VEO_BLOCK_MIME, attachBlockDropTarget, attachDesignManipulator, closestInteractive, createBuilderSession, elementLabelText, initBuilderMode, isInteractiveElement, startElementPicker, stopElementPicker };
2883
- //# sourceMappingURL=chunk-YEKCBVNJ.mjs.map
2884
- //# sourceMappingURL=chunk-YEKCBVNJ.mjs.map
2904
+ //# sourceMappingURL=chunk-POPDESAP.mjs.map
2905
+ //# sourceMappingURL=chunk-POPDESAP.mjs.map