@bitux/review-layer-react 0.1.6 → 0.1.8

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,9 @@
1
+ /**
2
+ * URL de la página para scope de comentarios. Se resuelve de forma dinámica:
3
+ *
4
+ * 1. Cualquier query param cuyo valor empiece por "/" se usa como ruta (da igual el nombre: ?ruta=/x, ?page=/y, etc.).
5
+ * 2. Si no hay ninguno, se buscan los nombres conocidos: path, route (con cualquier valor).
6
+ * 3. Si es el iframe de Storybook (/iframe.html), se usa el param "id" → /story/:id.
7
+ * 4. Si no, pathname.
8
+ */
9
+ export declare function getPageUrl(): string;
@@ -8,6 +8,11 @@ export declare function clampPinToViewport(x: number, y: number, radius?: number
8
8
  x: number;
9
9
  y: number;
10
10
  };
11
+ /**
12
+ * Ancestros del elemento que tienen scroll (overflow auto/scroll y contenido que desborda).
13
+ * Útil en iframes/Storybook donde el scroll es en un div (ej. sbdocs-wrapper), no en window.
14
+ */
15
+ export declare function getScrollableAncestors(el: Element | null): Element[];
11
16
  /**
12
17
  * Get the element's bounding rect if it exists in the DOM.
13
18
  * No devuelve posición si el elemento es parte del UI del review layer (pins, popover, iconos).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitux/review-layer-react",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "SDK to leave UI comments on staging React applications",
5
5
  "type": "module",
6
6
  "main": "./dist/review-layer-react.umd.cjs",