@bitux/review-layer-react 0.1.7 → 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.
@@ -1,5 +1,9 @@
1
1
  /**
2
- * URL de la página para scope de comentarios.
3
- * En Storybook el iframe tiene pathname "/iframe.html"; usamos el query "path" (ej. /docs/ui-alert--docs) como ruta lógica.
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.
4
8
  */
5
9
  export declare function getPageUrl(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitux/review-layer-react",
3
- "version": "0.1.7",
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",