@kwirthmagnify/kwirth-common-front 0.5.26 → 0.5.28

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.
@@ -15,7 +15,13 @@ const DEFAULT_DOCS_URL = 'http://localhost:4000'; // fallback si no hay docsUrl
15
15
  const HelpButton = ({ docsUrl, section }) => {
16
16
  const open = () => {
17
17
  const base = (docsUrl || DEFAULT_DOCS_URL).replace(/\/+$/, '');
18
- window.open(`${base}/#/${section}`, '_blank', 'noopener,noreferrer');
18
+ // Popup del navegador (ventana aparte, no pestaña): las features de tamaño fuerzan el popup.
19
+ // Nombre estable → clics sucesivos reusan la misma ventana (navega a la nueva sección).
20
+ const w = window.open(`${base}/#/${section}`, 'kwirth-guide', 'popup=yes,width=1024,height=860,scrollbars=yes,resizable=yes');
21
+ if (w) {
22
+ w.opener = null;
23
+ w.focus();
24
+ } // opener=null = seguridad (equiv. noopener, que aquí forzaría pestaña)
19
25
  };
20
26
  return (react_1.default.createElement(material_1.Tooltip, { arrow: true, title: 'Open the guide for this section' },
21
27
  react_1.default.createElement(material_1.IconButton, { size: 'small', "aria-label": 'help', onClick: open },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common-front",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "description": "Frontend channel interfaces for Kwirth plugins and channels",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q && tsc"