@syntrologie/adapt-nav 2.8.0-canary.49 → 2.8.0-canary.50

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.
@@ -25,7 +25,7 @@ export declare const NavMountableWidget: {
25
25
  mount(container: HTMLElement, config?: NavConfig & {
26
26
  runtime?: NavWidgetRuntime;
27
27
  instanceId?: string;
28
- }): () => void;
28
+ }): (() => void) | undefined;
29
29
  };
30
30
  export default NavWidget;
31
31
  //# sourceMappingURL=NavWidget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavWidget.d.ts","sourceRoot":"","sources":["../src/NavWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,OAAO,KAAK,EAAE,SAAS,EAAgB,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAkVzF;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,cAAc,2CA8NxE;AAMD;;GAEG;AACH,eAAO,MAAM,kBAAkB;qBAEhB,WAAW,WACb,SAAS,GAAG;QAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;CAiD3E,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"NavWidget.d.ts","sourceRoot":"","sources":["../src/NavWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,OAAO,KAAK,EAAE,SAAS,EAAgB,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAkVzF;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,cAAc,2CA8NxE;AAMD;;GAEG;AACH,eAAO,MAAM,kBAAkB;qBAEhB,WAAW,WACb,SAAS,GAAG;QAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;CA2B3E,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/dist/NavWidget.js CHANGED
@@ -471,24 +471,6 @@ export const NavMountableWidget = {
471
471
  root.unmount();
472
472
  };
473
473
  }
474
- // HTML fallback for non-React environments
475
- const tips = navConfig.actions || [];
476
- container.innerHTML = `
477
- <div style="font-family: system-ui; max-width: 100%;">
478
- ${tips
479
- .map((tip) => `
480
- <div style="margin-bottom: 4px; padding: 12px 16px; background: ${slateGrey[12]}; border-radius: 8px;">
481
- ${tip.config.icon ? `<span>${renderIcon(tip.config.icon)}</span> ` : ''}<strong>${escapeHtml(tip.config.title)}</strong>
482
- <p style="margin-top: 8px; color: ${slateGrey[6]}; font-size: 13px;">${escapeHtml(tip.config.description)}</p>
483
- ${tip.config.href ? `<a href="${escapeHtml(tip.config.href)}" style="color: ${purple[2]}; font-size: 13px;">Go &rarr;</a>` : ''}
484
- </div>
485
- `)
486
- .join('')}
487
- </div>
488
- `;
489
- return () => {
490
- container.innerHTML = '';
491
- };
492
474
  },
493
475
  };
494
476
  export default NavWidget;
package/dist/cdn.d.ts CHANGED
@@ -25,7 +25,7 @@ export declare const manifest: {
25
25
  mount(container: HTMLElement, config?: import("./types").NavConfig & {
26
26
  runtime?: import("./types").NavWidgetRuntime;
27
27
  instanceId?: string;
28
- }): () => void;
28
+ }): (() => void) | undefined;
29
29
  };
30
30
  metadata: {
31
31
  name: string;
package/dist/runtime.d.ts CHANGED
@@ -66,7 +66,7 @@ export declare const runtime: {
66
66
  mount(container: HTMLElement, config?: import("./types").NavConfig & {
67
67
  runtime?: import("./types").NavWidgetRuntime;
68
68
  instanceId?: string;
69
- }): () => void;
69
+ }): (() => void) | undefined;
70
70
  };
71
71
  metadata: {
72
72
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntrologie/adapt-nav",
3
- "version": "2.8.0-canary.49",
3
+ "version": "2.8.0-canary.50",
4
4
  "description": "Adaptive Navigation - Nav link widget, scroll-to and page navigation actions",
5
5
  "license": "Proprietary",
6
6
  "private": false,