@flamingo-stack/openframe-frontend-core 0.0.816 → 0.0.817

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.
Files changed (193) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-NLT2JVI7.cjs → case-study-card-IZBMHA6R.cjs} +3 -3
  3. package/dist/{chunk-7ERD34HQ.cjs → chunk-24M2JYM5.cjs} +566 -774
  4. package/dist/{chunk-3E4FIJAM.cjs → chunk-4ROR52OW.cjs} +15 -15
  5. package/dist/{chunk-SWBLTIN4.cjs → chunk-5TSYOIIZ.cjs} +54 -52
  6. package/dist/{chunk-JH65CEO4.cjs → chunk-6F4YGHGM.cjs} +36 -36
  7. package/dist/{chunk-VDXI26G7.cjs → chunk-7KBHLP4E.cjs} +81 -78
  8. package/dist/{chunk-CNTBGJA7.cjs → chunk-A34UNP5V.cjs} +65 -1
  9. package/dist/{chunk-633NTKO2.cjs → chunk-BL2J5RJK.cjs} +31 -53
  10. package/dist/{chunk-7NYWHEQM.cjs → chunk-C2OUXL3Q.cjs} +15 -15
  11. package/dist/{chunk-53JJLHJM.cjs → chunk-DSBRWP5M.cjs} +20 -20
  12. package/dist/chunk-DVHSYPDB.cjs +471 -0
  13. package/dist/{chunk-5TUR7O7H.cjs → chunk-EX7M3VQC.cjs} +90 -90
  14. package/dist/{chunk-EJCUAADF.cjs → chunk-F2LVBRHC.cjs} +4 -4
  15. package/dist/{chunk-GAR2IIU6.cjs → chunk-IM366HS6.cjs} +105 -157
  16. package/dist/{chunk-FUEK43FL.cjs → chunk-IOFIHVVW.cjs} +206 -200
  17. package/dist/{chunk-JOOZTRXQ.cjs → chunk-JMOCM2SW.cjs} +4 -4
  18. package/dist/{chunk-PAI4A3UM.cjs → chunk-K5IICQNF.cjs} +61 -54
  19. package/dist/{chunk-JOKOQOLJ.cjs → chunk-LUID2IB3.cjs} +2 -2
  20. package/dist/{chunk-L7W4455K.cjs → chunk-MAHJY2PO.cjs} +3 -3
  21. package/dist/{chunk-4PMD3JUC.cjs → chunk-NPNZAAOB.cjs} +2 -2
  22. package/dist/{chunk-EB7YAUER.cjs → chunk-P7JQGOX4.cjs} +19 -19
  23. package/dist/{chunk-O6VWD2SB.cjs → chunk-RDHF3F5R.cjs} +3 -3
  24. package/dist/{chunk-HM7VCQSX.cjs → chunk-SBFBNOKU.cjs} +4 -4
  25. package/dist/{chunk-7O7EX7HQ.cjs → chunk-T266OITJ.cjs} +28 -20
  26. package/dist/{chunk-ZAWHRYJZ.cjs → chunk-TKEYWSDZ.cjs} +45 -45
  27. package/dist/{chunk-F4ZJRMMM.cjs → chunk-UDLDXVY4.cjs} +8 -8
  28. package/dist/{chunk-Y6MJMPHV.cjs → chunk-UEULXVW2.cjs} +32 -84
  29. package/dist/{chunk-RYJJHSHV.cjs → chunk-UFBVOBYR.cjs} +23 -23
  30. package/dist/{chunk-IKB6AZPV.cjs → chunk-ZECG6GU5.cjs} +2 -2
  31. package/dist/{chunk-3ELDGEM2.cjs → chunk-ZP4JMX7G.cjs} +87 -84
  32. package/dist/{cloud-tenants-SRTX2FZC.cjs → cloud-tenants-NMAXIJLL.cjs} +11 -11
  33. package/dist/components/announcement-bar.d.ts.map +1 -1
  34. package/dist/components/announcement-bar.js +5 -5
  35. package/dist/components/case-studies/index.cjs +26 -26
  36. package/dist/components/chat/chat-markdown-link.d.ts +15 -0
  37. package/dist/components/chat/chat-markdown-link.d.ts.map +1 -0
  38. package/dist/components/chat/chat-markdown-link.js +22 -0
  39. package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
  40. package/dist/components/chat/chat-message-enhanced.js +3 -9
  41. package/dist/components/chat/embeddable-chat.d.ts +4 -0
  42. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  43. package/dist/components/chat/embeddable-chat.js +30 -67
  44. package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -1
  45. package/dist/components/chat/entity-cards/chat-card-disclosure.js +8 -11
  46. package/dist/components/chat/entity-cards/dispatch.d.ts +5 -5
  47. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  48. package/dist/components/chat/entity-cards/dispatch.js +18 -17
  49. package/dist/components/chat/entity-cards/github-activity-card.d.ts +1 -1
  50. package/dist/components/chat/entity-cards/use-entity-card-link.d.ts +3 -2
  51. package/dist/components/chat/entity-cards/use-entity-card-link.d.ts.map +1 -1
  52. package/dist/components/chat/entity-cards/use-entity-card-link.js +6 -4
  53. package/dist/components/chat/index.cjs +28 -21
  54. package/dist/components/chat/index.d.ts +2 -2
  55. package/dist/components/chat/index.d.ts.map +1 -1
  56. package/dist/components/chat/index.js +4 -3
  57. package/dist/components/chat/{inline-app-link-chip.d.ts → inline-chip.d.ts} +1 -14
  58. package/dist/components/chat/inline-chip.d.ts.map +1 -0
  59. package/dist/components/chat/inline-chip.js +27 -0
  60. package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +45 -11
  61. package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
  62. package/dist/components/chat/nav-link-anchor-via-runtime.js +32 -24
  63. package/dist/components/chat/source-action-button.d.ts +12 -3
  64. package/dist/components/chat/source-action-button.d.ts.map +1 -1
  65. package/dist/components/chat/source-action-button.js +41 -26
  66. package/dist/components/chat/types/component.types.d.ts +1 -1
  67. package/dist/components/chat/types/message.types.d.ts +1 -1
  68. package/dist/components/chat/types/message.types.d.ts.map +1 -1
  69. package/dist/components/chat/utils/chat-nav-resolution.d.ts +1 -6
  70. package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
  71. package/dist/components/chat/utils/chat-nav-resolution.js +2 -3
  72. package/dist/components/chat/utils/decide-new-tab.d.ts +0 -3
  73. package/dist/components/chat/utils/decide-new-tab.d.ts.map +1 -1
  74. package/dist/components/chat/utils/decide-new-tab.js +0 -1
  75. package/dist/components/chat/utils/execute-navigation.d.ts +36 -34
  76. package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
  77. package/dist/components/chat/utils/execute-navigation.js +23 -19
  78. package/dist/components/chat/utils/index.d.ts +5 -5
  79. package/dist/components/chat/utils/index.d.ts.map +1 -1
  80. package/dist/components/chat/utils/index.js +14 -6
  81. package/dist/components/chat/utils/nav-anchor-props.d.ts +35 -8
  82. package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
  83. package/dist/components/chat/utils/nav-anchor-props.js +14 -5
  84. package/dist/components/chat/utils/new-tab-rel.d.ts +15 -0
  85. package/dist/components/chat/utils/new-tab-rel.d.ts.map +1 -0
  86. package/dist/components/chat/utils/new-tab-rel.js +25 -0
  87. package/dist/components/contact/index.cjs +12 -12
  88. package/dist/components/docs/index.cjs +15 -15
  89. package/dist/components/embeds/index.cjs +12 -12
  90. package/dist/components/faq/index.cjs +13 -13
  91. package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
  92. package/dist/components/features/devices/devices-table-columns.js +4 -1
  93. package/dist/components/features/index.cjs +11 -11
  94. package/dist/components/help-center-pages/index.cjs +105 -105
  95. package/dist/components/index.cjs +91 -83
  96. package/dist/components/meeting-scheduler/index.cjs +50 -50
  97. package/dist/components/navigation/app-header.d.ts +1 -4
  98. package/dist/components/navigation/app-header.d.ts.map +1 -1
  99. package/dist/components/navigation/app-header.js +0 -2
  100. package/dist/components/navigation/index.cjs +14 -14
  101. package/dist/components/navigation/ticket-alerts-button.d.ts +1 -4
  102. package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
  103. package/dist/components/navigation/ticket-alerts-button.js +5 -5
  104. package/dist/components/onboarding-guides/index.cjs +14 -14
  105. package/dist/components/product-demo/index.cjs +20 -20
  106. package/dist/components/related-content/card-registry.d.ts +1 -1
  107. package/dist/components/related-content/index.cjs +7 -7
  108. package/dist/components/related-content/related-content-section.d.ts +3 -3
  109. package/dist/components/related-content/related-content-section.d.ts.map +1 -1
  110. package/dist/components/related-content/related-content-section.js +5 -3
  111. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +10 -3
  112. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
  113. package/dist/components/shared/doc-search/resolve-search-result-action.js +8 -17
  114. package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
  115. package/dist/components/shared/doc-search/use-doc-search.js +15 -27
  116. package/dist/components/shared/product-release/product-release-card.d.ts +2 -2
  117. package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
  118. package/dist/components/shared/product-release/product-releases-view.js +1 -3
  119. package/dist/components/tickets/index.cjs +18 -18
  120. package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
  121. package/dist/components/tickets/ticket-detail-drawer.js +6 -3
  122. package/dist/components/tickets/types.d.ts +1 -1
  123. package/dist/components/ui/button/button.d.ts +1 -1
  124. package/dist/components/ui/hover-dropdown.d.ts +2 -2
  125. package/dist/components/ui/index.cjs +31 -23
  126. package/dist/components/ui/service-card.d.ts.map +1 -1
  127. package/dist/components/ui/service-card.js +4 -1
  128. package/dist/components/vendor-display-button.d.ts.map +1 -1
  129. package/dist/components/vendor-display-button.js +4 -1
  130. package/dist/contexts/chat-runtime-context.d.ts +11 -11
  131. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  132. package/dist/{devices-DL4YU64N.cjs → devices-QBKWVHE6.cjs} +12 -12
  133. package/dist/{embeddable-chat-YRKMPFDY.cjs → embeddable-chat-WNPCPMDL.cjs} +96 -137
  134. package/dist/hooks/index.cjs +5 -5
  135. package/dist/hooks/use-contact-submission.d.ts.map +1 -1
  136. package/dist/hooks/use-contact-submission.js +11 -8
  137. package/dist/index.cjs +40 -34
  138. package/dist/{knowledge-VQW5JL2Z.cjs → knowledge-FSAYWM25.cjs} +12 -12
  139. package/dist/{logs-IY3WBLMW.cjs → logs-OZX4SYHG.cjs} +19 -19
  140. package/dist/{policies-IXWTWMJO.cjs → policies-LPCUCTLX.cjs} +15 -15
  141. package/dist/{scripts-D5CLO5EG.cjs → scripts-ZNFZSONW.cjs} +16 -16
  142. package/dist/{software-update-ULNP6CKJ.cjs → software-update-BRYOVQVY.cjs} +14 -14
  143. package/dist/utils/index.cjs +116 -89
  144. package/dist/utils/open-in-new-tab.d.ts +2 -1
  145. package/dist/utils/open-in-new-tab.d.ts.map +1 -1
  146. package/dist/utils/open-in-new-tab.js +2 -1
  147. package/dist/utils/scroll-into-view.d.ts +1 -1
  148. package/eslint-config/base.js +11 -0
  149. package/eslint-config/navigation.js +142 -0
  150. package/package.json +1 -1
  151. package/src/components/announcement-bar.tsx +8 -6
  152. package/src/components/chat/chat-markdown-link.tsx +42 -0
  153. package/src/components/chat/chat-message-enhanced.tsx +10 -36
  154. package/src/components/chat/embeddable-chat.tsx +63 -106
  155. package/src/components/chat/entity-cards/chat-card-disclosure.tsx +9 -13
  156. package/src/components/chat/entity-cards/dispatch.tsx +45 -35
  157. package/src/components/chat/entity-cards/github-activity-card.tsx +1 -1
  158. package/src/components/chat/entity-cards/use-entity-card-link.ts +11 -16
  159. package/src/components/chat/index.ts +3 -1
  160. package/src/components/chat/{inline-app-link-chip.tsx → inline-chip.tsx} +1 -27
  161. package/src/components/chat/nav-link-anchor-via-runtime.tsx +73 -33
  162. package/src/components/chat/source-action-button.tsx +57 -33
  163. package/src/components/chat/types/component.types.ts +1 -1
  164. package/src/components/chat/types/message.types.ts +1 -1
  165. package/src/components/chat/utils/chat-nav-resolution.ts +3 -8
  166. package/src/components/chat/utils/decide-new-tab.ts +0 -3
  167. package/src/components/chat/utils/execute-navigation.ts +58 -58
  168. package/src/components/chat/utils/index.ts +13 -6
  169. package/src/components/chat/utils/nav-anchor-props.ts +56 -9
  170. package/src/components/chat/utils/new-tab-rel.ts +39 -0
  171. package/src/components/features/devices/devices-table-columns.tsx +4 -1
  172. package/src/components/navigation/app-header.tsx +0 -5
  173. package/src/components/navigation/ticket-alerts-button.tsx +7 -8
  174. package/src/components/related-content/card-registry.tsx +1 -1
  175. package/src/components/related-content/related-content-section.tsx +10 -10
  176. package/src/components/shared/doc-search/resolve-search-result-action.ts +19 -33
  177. package/src/components/shared/doc-search/use-doc-search.ts +21 -44
  178. package/src/components/shared/product-release/product-release-card.tsx +4 -4
  179. package/src/components/shared/product-release/product-releases-view.tsx +2 -5
  180. package/src/components/tickets/ticket-detail-drawer.tsx +7 -4
  181. package/src/components/tickets/types.ts +1 -1
  182. package/src/components/ui/button/button.tsx +2 -2
  183. package/src/components/ui/hover-dropdown.tsx +2 -2
  184. package/src/components/ui/service-card.tsx +4 -1
  185. package/src/components/vendor-display-button.tsx +5 -2
  186. package/src/contexts/chat-runtime-context.tsx +15 -12
  187. package/src/hooks/use-contact-submission.ts +13 -8
  188. package/src/utils/index.ts +1 -1
  189. package/src/utils/open-in-new-tab.ts +4 -2
  190. package/src/utils/scroll-into-view.ts +1 -1
  191. package/dist/chunk-RD66AGUI.cjs +0 -156
  192. package/dist/components/chat/inline-app-link-chip.d.ts.map +0 -1
  193. package/dist/components/chat/inline-app-link-chip.js +0 -37
@@ -5,7 +5,7 @@
5
5
  * After the navigation unification (ChatCardLoader pre-resolves
6
6
  * `chatRef.url` via `resolveSourceRowCTA` + `resolveHrefForRuntime`,
7
7
  * and `ChatCardNavWrap` handles every primary click via `onClickCapture`
8
- * → `handleChatNavClick`), the per-card wrapper only needs
8
+ * → `executeNavigation`), the per-card wrapper only needs
9
9
  * `{href, target, rel}` on its inner `<a>` so modifier-click /
10
10
  * hover-preview / copy-link work natively.
11
11
  *
@@ -27,23 +27,50 @@
27
27
  * (cross-platform → new-tab) or the lib's default.
28
28
  */
29
29
  import type { ChatRuntime } from '../../../contexts/chat-runtime-context';
30
+ import { type NewTabRel } from './new-tab-rel';
30
31
  /** An ABSOLUTE `http(s)` URL on the current page's origin. Relative hrefs return
31
32
  * false (in embed mode they're hub-relative, not in-app), as do cross-origin
32
33
  * and non-http URLs. SSR-safe: no `window` → false. */
33
34
  export declare function isSameOriginAbsoluteHref(href: string): boolean;
34
35
  export declare function computeIsNewTab(runtime: ChatRuntime, href: string | null | undefined, targetPlatform: string | null): boolean;
36
+ /** A caller's explicit tab for a link (an admin preview always opens a new tab); absent = the rule decides. */
37
+ export type NavOpenIn = 'new-tab' | 'same-tab';
38
+ /** Where a chat link goes: its href as the runtime resolves it, and whether it opens in a new tab. */
39
+ export interface NavLinkTarget {
40
+ href: string;
41
+ isNewTab: boolean;
42
+ }
43
+ /**
44
+ * THE navigation decision for every link the lib renders or follows: the href resolved for the runtime
45
+ * (`resolveHrefForRuntime`) and the new-tab rule on that resolved href (`computeIsNewTab`). Anchors
46
+ * (`useNavLinkTarget` / `useNavLinkViaRuntime`), cards, chips, search results and the click executor
47
+ * (`executeNavigation`) all read it; nothing else calls `computeIsNewTab` or `decideNewTab` (a test fails if it does).
48
+ * Without a runtime there is no embed or host rule to apply: the href as given, decided by the lib's default rule
49
+ * (the caller's `openIn`, else another origin opens a new tab).
50
+ *
51
+ * `hostRoute`: the host's `composeContentUrl` returned this href as a RELATIVE route of its own (a type it serves
52
+ * in-app). It is the host's page, not the hub's, so it is never resolved against the hub's origin and stays in this
53
+ * tab in any mode (in embed mode a relative href is otherwise taken as hub-relative), unless the caller asks for a new
54
+ * tab itself (`openIn: 'new-tab'`).
55
+ *
56
+ * `openIn`: the caller names the tab itself (an admin preview always opens a new one). The embed rule still comes
57
+ * first: an embedded guest never navigates its host page to the hub.
58
+ */
59
+ export declare function navLinkTarget(runtime: ChatRuntime | null | undefined, href: string, targetPlatform?: string | null, { hostRoute, openIn }?: {
60
+ hostRoute?: boolean;
61
+ openIn?: NavOpenIn;
62
+ }): NavLinkTarget;
35
63
  /**
36
64
  * Returns the `target` + `rel` attribute pair for an inner `<a>` based
37
65
  * on the new-tab decision. Spread directly into JSX:
38
66
  * <a href={href} {...newTabAnchorAttrs(isNewTab)} />
39
67
  *
40
- * Single helper so chat anchors stay consistent — new-tab links always
41
- * pair `_blank` with `noopener noreferrer` (defense against window.opener
42
- * tab-nabbing) and same-tab links don't render either attribute.
68
+ * Single helper so anchors stay consistent: a new-tab link pairs `_blank` with the one referrer rule
69
+ * (`newTabRel`: `noopener` always, `noreferrer` for a third party) and a same-tab link renders neither.
43
70
  */
44
- export declare function newTabAnchorAttrs(isNewTab: boolean): {
71
+ export declare function newTabAnchorAttrs(isNewTab: boolean, href?: string | null, targetPlatform?: string | null): {
45
72
  target?: '_blank';
46
- rel?: 'noopener' | 'noopener noreferrer';
73
+ rel?: NewTabRel;
47
74
  };
48
75
  /**
49
76
  * Combine `href` + new-tab attrs into a card's `anchorProps` slot.
@@ -55,9 +82,9 @@ export declare function newTabAnchorAttrs(isNewTab: boolean): {
55
82
  * `chatRef.url ? { href: chatRef.url, ...newTabAnchorAttrs(isNewTab) } : undefined`
56
83
  * pattern across the 7 dispatcher wrappers.
57
84
  */
58
- export declare function buildAnchorProps(href: string | null | undefined, isNewTab: boolean): {
85
+ export declare function buildAnchorProps(href: string | null | undefined, isNewTab: boolean, targetPlatform?: string | null): {
59
86
  href: string;
60
87
  target?: '_blank';
61
- rel?: 'noopener' | 'noopener noreferrer';
88
+ rel?: NewTabRel;
62
89
  } | undefined;
63
90
  //# sourceMappingURL=nav-anchor-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nav-anchor-props.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/utils/nav-anchor-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAG1E;;wDAEwD;AACxD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAU9D;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,GAC5B,OAAO,CAWT;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG;IACpD,MAAM,CAAC,EAAE,QAAQ,CAAC;IACl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IAAC,MAAM,CAAC,EAAE,SAAS,CAAA;CAAO,GAC9E,aAAa,CASf;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,OAAO,EACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAC7B;IACD,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB,CAEA;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC/B,QAAQ,EAAE,OAAO,EACjB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAC7B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAAC,GAAG,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAElE"}
@@ -1,5 +1,6 @@
1
- "use client";
1
+ import { resolveHrefForRuntime } from "./chat-nav-resolution.js";
2
2
  import { decideNewTab as libDecideNewTab } from "./decide-new-tab.js";
3
+ import { isRelativeHref, newTabRel } from "./new-tab-rel.js";
3
4
  function isSameOriginAbsoluteHref(href) {
4
5
  if (typeof window === "undefined") return false;
5
6
  if (!/^https?:\/\//i.test(href)) return false;
@@ -18,15 +19,23 @@ function computeIsNewTab(runtime, href, targetPlatform) {
18
19
  currentSource: runtime.source ?? ""
19
20
  });
20
21
  }
21
- function newTabAnchorAttrs(isNewTab) {
22
- return isNewTab ? { target: "_blank", rel: "noopener noreferrer" } : {};
22
+ function navLinkTarget(runtime, href, targetPlatform, { hostRoute = false, openIn } = {}) {
23
+ if (!runtime) return { href, isNewTab: libDecideNewTab({ href, openIn, currentSource: "" }) };
24
+ if (hostRoute && isRelativeHref(href)) return { href, isNewTab: openIn === "new-tab" };
25
+ const resolved = resolveHrefForRuntime(href, runtime);
26
+ const isNewTab = runtime.navigation.mode !== "embed" && openIn ? openIn === "new-tab" : computeIsNewTab(runtime, resolved, targetPlatform ?? null);
27
+ return { href: resolved, isNewTab };
23
28
  }
24
- function buildAnchorProps(href, isNewTab) {
25
- return href ? { href, ...newTabAnchorAttrs(isNewTab) } : void 0;
29
+ function newTabAnchorAttrs(isNewTab, href, targetPlatform) {
30
+ return isNewTab ? { target: "_blank", rel: newTabRel(href, targetPlatform) } : {};
31
+ }
32
+ function buildAnchorProps(href, isNewTab, targetPlatform) {
33
+ return href ? { href, ...newTabAnchorAttrs(isNewTab, href, targetPlatform) } : void 0;
26
34
  }
27
35
  export {
28
36
  buildAnchorProps,
29
37
  computeIsNewTab,
30
38
  isSameOriginAbsoluteHref,
39
+ navLinkTarget,
31
40
  newTabAnchorAttrs
32
41
  };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * What a link opened in a new tab tells its destination. A destination on one of OUR platforms (named by the
3
+ * composer's `targetPlatform`, or an href on a platform's own host, or a path of the current site) keeps the Referer:
4
+ * HubSpot and PostHog attribute the cross-domain visit by it, and `noreferrer` turned every trial signup into direct
5
+ * traffic. Anything else is a third party and also gets `noreferrer`. `noopener` always (tab-nabbing).
6
+ *
7
+ * THE one rule for a new tab, for an anchor's `rel` and for `window.open`'s features alike.
8
+ */
9
+ export type NewTabRel = 'noopener' | 'noopener noreferrer';
10
+ /** True for a path with no scheme and no host (`/help-center/x`, `x`); false for `https://…` and `//…`. */
11
+ export declare function isRelativeHref(href: string): boolean;
12
+ export declare function newTabRel(href: string | null | undefined, targetPlatform?: string | null): NewTabRel;
13
+ /** {@link newTabRel} in `window.open` features syntax (comma-separated). */
14
+ export declare function newTabFeatures(href: string | null | undefined, targetPlatform?: string | null): string;
15
+ //# sourceMappingURL=new-tab-rel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-tab-rel.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/utils/new-tab-rel.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,qBAAqB,CAAC;AAE3D,2GAA2G;AAC3G,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD;AAeD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAEpG;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAEtG"}
@@ -0,0 +1,25 @@
1
+ import { getPlatformByHostname, isLocalUrl } from "../../../platform-domains.js";
2
+ function isRelativeHref(href) {
3
+ return !/^(?:[a-z][a-z0-9+.-]*:)?\/\//i.test(href);
4
+ }
5
+ function isOwnSiteHref(href) {
6
+ if (!href) return false;
7
+ if (href.startsWith("/") && !href.startsWith("//")) return true;
8
+ try {
9
+ const url = new URL(href);
10
+ return isLocalUrl(url.href) || getPlatformByHostname(url.hostname) !== null;
11
+ } catch {
12
+ return false;
13
+ }
14
+ }
15
+ function newTabRel(href, targetPlatform) {
16
+ return targetPlatform || isOwnSiteHref(href) ? "noopener" : "noopener noreferrer";
17
+ }
18
+ function newTabFeatures(href, targetPlatform) {
19
+ return newTabRel(href, targetPlatform).replace(" ", ",");
20
+ }
21
+ export {
22
+ isRelativeHref,
23
+ newTabFeatures,
24
+ newTabRel
25
+ };
@@ -1,21 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunk3E4FIJAMcjs = require('../../chunk-3E4FIJAM.cjs');
5
- require('../../chunk-FUEK43FL.cjs');
4
+ var _chunk4ROR52OWcjs = require('../../chunk-4ROR52OW.cjs');
5
+ require('../../chunk-IOFIHVVW.cjs');
6
6
  require('../../chunk-467T3LCG.cjs');
7
7
  require('../../chunk-EHANO6UE.cjs');
8
8
  require('../../chunk-IJCSQFLD.cjs');
9
9
  require('../../chunk-HQQE74RO.cjs');
10
10
  require('../../chunk-DEY6XXGO.cjs');
11
- require('../../chunk-7O7EX7HQ.cjs');
11
+ require('../../chunk-T266OITJ.cjs');
12
12
  require('../../chunk-APOMNC7H.cjs');
13
13
  require('../../chunk-24I6RFVU.cjs');
14
14
  require('../../chunk-7Z536SPR.cjs');
15
+ require('../../chunk-7DNL734S.cjs');
15
16
  require('../../chunk-MZ4KBSH7.cjs');
16
17
  require('../../chunk-5SZ4ILU3.cjs');
17
- require('../../chunk-VDXI26G7.cjs');
18
- require('../../chunk-7ERD34HQ.cjs');
18
+ require('../../chunk-7KBHLP4E.cjs');
19
+ require('../../chunk-24M2JYM5.cjs');
19
20
  require('../../chunk-OBQ5WUNG.cjs');
20
21
  require('../../chunk-6CZVQ72C.cjs');
21
22
  require('../../chunk-ZRDVFADQ.cjs');
@@ -1809,16 +1810,15 @@ require('../../chunk-TMVC7S2R.cjs');
1809
1810
  require('../../chunk-IYHH5EIO.cjs');
1810
1811
  require('../../chunk-XIBCMGBW.cjs');
1811
1812
  require('../../chunk-NONMZ5WJ.cjs');
1812
- require('../../chunk-CNTBGJA7.cjs');
1813
+ require('../../chunk-A34UNP5V.cjs');
1813
1814
  require('../../chunk-QDDBOCG3.cjs');
1814
1815
  require('../../chunk-JKX2C3I2.cjs');
1815
- require('../../chunk-7DNL734S.cjs');
1816
1816
  require('../../chunk-WWUSFOJ7.cjs');
1817
1817
  require('../../chunk-SKI6NKOE.cjs');
1818
1818
  require('../../chunk-EWPR7662.cjs');
1819
- require('../../chunk-F4ZJRMMM.cjs');
1820
- require('../../chunk-GAR2IIU6.cjs');
1821
- require('../../chunk-Y6MJMPHV.cjs');
1819
+ require('../../chunk-UDLDXVY4.cjs');
1820
+ require('../../chunk-IM366HS6.cjs');
1821
+ require('../../chunk-UEULXVW2.cjs');
1822
1822
  require('../../chunk-QQT23JJ7.cjs');
1823
1823
  require('../../chunk-USUVHAQ7.cjs');
1824
1824
  require('../../chunk-25HBH4J6.cjs');
@@ -1831,7 +1831,7 @@ require('../../chunk-6VOOPMP5.cjs');
1831
1831
  require('../../chunk-ORO54HDF.cjs');
1832
1832
  require('../../chunk-RUHKTWGB.cjs');
1833
1833
  require('../../chunk-BLH2SFOO.cjs');
1834
- require('../../chunk-RD66AGUI.cjs');
1834
+ require('../../chunk-DVHSYPDB.cjs');
1835
1835
  require('../../chunk-FX35L4Y6.cjs');
1836
1836
  require('../../chunk-NTPX5GXI.cjs');
1837
1837
  require('../../chunk-MG3HJIGG.cjs');
@@ -1854,4 +1854,4 @@ require('../../chunk-V45KLJQP.cjs');
1854
1854
  require('../../chunk-QDB2JO55.cjs');
1855
1855
 
1856
1856
 
1857
- exports.ContactForm = _chunk3E4FIJAMcjs.ContactForm;
1857
+ exports.ContactForm = _chunk4ROR52OWcjs.ContactForm;
@@ -6,26 +6,27 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkZAWHRYJZcjs = require('../../chunk-ZAWHRYJZ.cjs');
10
- require('../../chunk-L7W4455K.cjs');
9
+ var _chunkTKEYWSDZcjs = require('../../chunk-TKEYWSDZ.cjs');
10
+ require('../../chunk-MAHJY2PO.cjs');
11
11
 
12
12
 
13
- var _chunk7NYWHEQMcjs = require('../../chunk-7NYWHEQM.cjs');
14
- require('../../chunk-633NTKO2.cjs');
15
- require('../../chunk-FUEK43FL.cjs');
13
+ var _chunkC2OUXL3Qcjs = require('../../chunk-C2OUXL3Q.cjs');
14
+ require('../../chunk-BL2J5RJK.cjs');
15
+ require('../../chunk-IOFIHVVW.cjs');
16
16
  require('../../chunk-467T3LCG.cjs');
17
17
  require('../../chunk-EHANO6UE.cjs');
18
18
  require('../../chunk-IJCSQFLD.cjs');
19
19
  require('../../chunk-HQQE74RO.cjs');
20
20
  require('../../chunk-DEY6XXGO.cjs');
21
- require('../../chunk-7O7EX7HQ.cjs');
21
+ require('../../chunk-T266OITJ.cjs');
22
22
  require('../../chunk-APOMNC7H.cjs');
23
23
  require('../../chunk-24I6RFVU.cjs');
24
24
  require('../../chunk-7Z536SPR.cjs');
25
+ require('../../chunk-7DNL734S.cjs');
25
26
  require('../../chunk-MZ4KBSH7.cjs');
26
27
  require('../../chunk-5SZ4ILU3.cjs');
27
- require('../../chunk-VDXI26G7.cjs');
28
- require('../../chunk-7ERD34HQ.cjs');
28
+ require('../../chunk-7KBHLP4E.cjs');
29
+ require('../../chunk-24M2JYM5.cjs');
29
30
  require('../../chunk-OBQ5WUNG.cjs');
30
31
  require('../../chunk-6CZVQ72C.cjs');
31
32
  require('../../chunk-ZRDVFADQ.cjs');
@@ -1819,16 +1820,15 @@ require('../../chunk-TMVC7S2R.cjs');
1819
1820
  require('../../chunk-IYHH5EIO.cjs');
1820
1821
  require('../../chunk-XIBCMGBW.cjs');
1821
1822
  require('../../chunk-NONMZ5WJ.cjs');
1822
- require('../../chunk-CNTBGJA7.cjs');
1823
+ require('../../chunk-A34UNP5V.cjs');
1823
1824
  require('../../chunk-QDDBOCG3.cjs');
1824
1825
  require('../../chunk-JKX2C3I2.cjs');
1825
- require('../../chunk-7DNL734S.cjs');
1826
1826
  require('../../chunk-WWUSFOJ7.cjs');
1827
1827
  require('../../chunk-SKI6NKOE.cjs');
1828
1828
  require('../../chunk-EWPR7662.cjs');
1829
- require('../../chunk-F4ZJRMMM.cjs');
1830
- require('../../chunk-GAR2IIU6.cjs');
1831
- require('../../chunk-Y6MJMPHV.cjs');
1829
+ require('../../chunk-UDLDXVY4.cjs');
1830
+ require('../../chunk-IM366HS6.cjs');
1831
+ require('../../chunk-UEULXVW2.cjs');
1832
1832
  require('../../chunk-QQT23JJ7.cjs');
1833
1833
  require('../../chunk-USUVHAQ7.cjs');
1834
1834
  require('../../chunk-25HBH4J6.cjs');
@@ -1841,7 +1841,7 @@ require('../../chunk-6VOOPMP5.cjs');
1841
1841
  require('../../chunk-ORO54HDF.cjs');
1842
1842
  require('../../chunk-RUHKTWGB.cjs');
1843
1843
  require('../../chunk-BLH2SFOO.cjs');
1844
- require('../../chunk-RD66AGUI.cjs');
1844
+ require('../../chunk-DVHSYPDB.cjs');
1845
1845
  require('../../chunk-FX35L4Y6.cjs');
1846
1846
  require('../../chunk-NTPX5GXI.cjs');
1847
1847
  require('../../chunk-MG3HJIGG.cjs');
@@ -1869,4 +1869,4 @@ require('../../chunk-QDB2JO55.cjs');
1869
1869
 
1870
1870
 
1871
1871
 
1872
- exports.DocNavigationProvider = _chunkZAWHRYJZcjs.DocNavigationProvider; exports.DocViewer = _chunkZAWHRYJZcjs.DocViewer; exports.DocsHubPage = _chunkZAWHRYJZcjs.DocsHubPage; exports.useDocNavigation = _chunkZAWHRYJZcjs.useDocNavigation; exports.useDocumentTree = _chunkZAWHRYJZcjs.useDocumentTree; exports.useScrollSpy = _chunk7NYWHEQMcjs.useScrollSpy;
1872
+ exports.DocNavigationProvider = _chunkTKEYWSDZcjs.DocNavigationProvider; exports.DocViewer = _chunkTKEYWSDZcjs.DocViewer; exports.DocsHubPage = _chunkTKEYWSDZcjs.DocsHubPage; exports.useDocNavigation = _chunkTKEYWSDZcjs.useDocNavigation; exports.useDocumentTree = _chunkTKEYWSDZcjs.useDocumentTree; exports.useScrollSpy = _chunkC2OUXL3Qcjs.useScrollSpy;
@@ -4,7 +4,7 @@ require('../../chunk-7SEARXQW.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkL7W4455Kcjs = require('../../chunk-L7W4455K.cjs');
7
+ var _chunkMAHJY2POcjs = require('../../chunk-MAHJY2PO.cjs');
8
8
 
9
9
 
10
10
 
@@ -25,20 +25,21 @@ var _chunkL7W4455Kcjs = require('../../chunk-L7W4455K.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunkFUEK43FLcjs = require('../../chunk-FUEK43FL.cjs');
28
+ var _chunkIOFIHVVWcjs = require('../../chunk-IOFIHVVW.cjs');
29
29
  require('../../chunk-467T3LCG.cjs');
30
30
  require('../../chunk-EHANO6UE.cjs');
31
31
  require('../../chunk-IJCSQFLD.cjs');
32
32
  require('../../chunk-HQQE74RO.cjs');
33
33
  require('../../chunk-DEY6XXGO.cjs');
34
- require('../../chunk-7O7EX7HQ.cjs');
34
+ require('../../chunk-T266OITJ.cjs');
35
35
  require('../../chunk-APOMNC7H.cjs');
36
36
  require('../../chunk-24I6RFVU.cjs');
37
37
  require('../../chunk-7Z536SPR.cjs');
38
+ require('../../chunk-7DNL734S.cjs');
38
39
  require('../../chunk-MZ4KBSH7.cjs');
39
40
  require('../../chunk-5SZ4ILU3.cjs');
40
- require('../../chunk-VDXI26G7.cjs');
41
- require('../../chunk-7ERD34HQ.cjs');
41
+ require('../../chunk-7KBHLP4E.cjs');
42
+ require('../../chunk-24M2JYM5.cjs');
42
43
  require('../../chunk-OBQ5WUNG.cjs');
43
44
  require('../../chunk-6CZVQ72C.cjs');
44
45
  require('../../chunk-ZRDVFADQ.cjs');
@@ -1832,16 +1833,15 @@ require('../../chunk-TMVC7S2R.cjs');
1832
1833
  require('../../chunk-IYHH5EIO.cjs');
1833
1834
  require('../../chunk-XIBCMGBW.cjs');
1834
1835
  require('../../chunk-NONMZ5WJ.cjs');
1835
- require('../../chunk-CNTBGJA7.cjs');
1836
+ require('../../chunk-A34UNP5V.cjs');
1836
1837
  require('../../chunk-QDDBOCG3.cjs');
1837
1838
  require('../../chunk-JKX2C3I2.cjs');
1838
- require('../../chunk-7DNL734S.cjs');
1839
1839
  require('../../chunk-WWUSFOJ7.cjs');
1840
1840
  require('../../chunk-SKI6NKOE.cjs');
1841
1841
  require('../../chunk-EWPR7662.cjs');
1842
- require('../../chunk-F4ZJRMMM.cjs');
1843
- require('../../chunk-GAR2IIU6.cjs');
1844
- require('../../chunk-Y6MJMPHV.cjs');
1842
+ require('../../chunk-UDLDXVY4.cjs');
1843
+ require('../../chunk-IM366HS6.cjs');
1844
+ require('../../chunk-UEULXVW2.cjs');
1845
1845
  require('../../chunk-QQT23JJ7.cjs');
1846
1846
  require('../../chunk-USUVHAQ7.cjs');
1847
1847
  require('../../chunk-25HBH4J6.cjs');
@@ -1854,7 +1854,7 @@ require('../../chunk-6VOOPMP5.cjs');
1854
1854
  require('../../chunk-ORO54HDF.cjs');
1855
1855
  require('../../chunk-RUHKTWGB.cjs');
1856
1856
  require('../../chunk-BLH2SFOO.cjs');
1857
- require('../../chunk-RD66AGUI.cjs');
1857
+ require('../../chunk-DVHSYPDB.cjs');
1858
1858
  require('../../chunk-FX35L4Y6.cjs');
1859
1859
  require('../../chunk-NTPX5GXI.cjs');
1860
1860
  require('../../chunk-MG3HJIGG.cjs');
@@ -1898,4 +1898,4 @@ require('../../chunk-QDB2JO55.cjs');
1898
1898
 
1899
1899
 
1900
1900
 
1901
- exports.ClaudeEmbed = _chunkFUEK43FLcjs.ClaudeEmbed; exports.EMBED_SIZES = _chunkFUEK43FLcjs.EMBED_SIZES; exports.EmbedContainer = _chunkFUEK43FLcjs.EmbedContainer; exports.EmbedIframe = _chunkFUEK43FLcjs.EmbedIframe; exports.EmbedViewerFrame = _chunkFUEK43FLcjs.EmbedViewerFrame; exports.FigmaEmbed = _chunkFUEK43FLcjs.FigmaEmbed; exports.FileDownloadCard = _chunkL7W4455Kcjs.FileDownloadCard; exports.GoogleSheetsViewer = _chunkL7W4455Kcjs.GoogleSheetsViewer; exports.LinkPreviewContainer = _chunkFUEK43FLcjs.LinkPreviewContainer; exports.LinkedInContainer = _chunkFUEK43FLcjs.LinkedInContainer; exports.LinkedInEmbedClient = _chunkFUEK43FLcjs.LinkedInEmbedClient; exports.MarkdownImage = _chunkFUEK43FLcjs.MarkdownImage; exports.OGLinkErrorBoundary = _chunkFUEK43FLcjs.OGLinkErrorBoundary; exports.OGLinkPreview = _chunkFUEK43FLcjs.OGLinkPreview; exports.PdfViewer = _chunkL7W4455Kcjs.PdfViewer; exports.RedditContainer = _chunkFUEK43FLcjs.RedditContainer; exports.RedditEmbedClient = _chunkFUEK43FLcjs.RedditEmbedClient; exports.RichMarkdownRuntimeProvider = _chunkFUEK43FLcjs.RichMarkdownRuntimeProvider; exports.TwitterContainer = _chunkFUEK43FLcjs.TwitterContainer; exports.TwitterEmbedClient = _chunkFUEK43FLcjs.TwitterEmbedClient; exports.YouTubeContainer = _chunkFUEK43FLcjs.YouTubeContainer; exports.useRichMarkdownRuntime = _chunkFUEK43FLcjs.useRichMarkdownRuntime;
1901
+ exports.ClaudeEmbed = _chunkIOFIHVVWcjs.ClaudeEmbed; exports.EMBED_SIZES = _chunkIOFIHVVWcjs.EMBED_SIZES; exports.EmbedContainer = _chunkIOFIHVVWcjs.EmbedContainer; exports.EmbedIframe = _chunkIOFIHVVWcjs.EmbedIframe; exports.EmbedViewerFrame = _chunkIOFIHVVWcjs.EmbedViewerFrame; exports.FigmaEmbed = _chunkIOFIHVVWcjs.FigmaEmbed; exports.FileDownloadCard = _chunkMAHJY2POcjs.FileDownloadCard; exports.GoogleSheetsViewer = _chunkMAHJY2POcjs.GoogleSheetsViewer; exports.LinkPreviewContainer = _chunkIOFIHVVWcjs.LinkPreviewContainer; exports.LinkedInContainer = _chunkIOFIHVVWcjs.LinkedInContainer; exports.LinkedInEmbedClient = _chunkIOFIHVVWcjs.LinkedInEmbedClient; exports.MarkdownImage = _chunkIOFIHVVWcjs.MarkdownImage; exports.OGLinkErrorBoundary = _chunkIOFIHVVWcjs.OGLinkErrorBoundary; exports.OGLinkPreview = _chunkIOFIHVVWcjs.OGLinkPreview; exports.PdfViewer = _chunkMAHJY2POcjs.PdfViewer; exports.RedditContainer = _chunkIOFIHVVWcjs.RedditContainer; exports.RedditEmbedClient = _chunkIOFIHVVWcjs.RedditEmbedClient; exports.RichMarkdownRuntimeProvider = _chunkIOFIHVVWcjs.RichMarkdownRuntimeProvider; exports.TwitterContainer = _chunkIOFIHVVWcjs.TwitterContainer; exports.TwitterEmbedClient = _chunkIOFIHVVWcjs.TwitterEmbedClient; exports.YouTubeContainer = _chunkIOFIHVVWcjs.YouTubeContainer; exports.useRichMarkdownRuntime = _chunkIOFIHVVWcjs.useRichMarkdownRuntime;
@@ -1,28 +1,29 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunkJOOZTRXQcjs = require('../../chunk-JOOZTRXQ.cjs');
4
+ var _chunkJMOCM2SWcjs = require('../../chunk-JMOCM2SW.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunk53JJLHJMcjs = require('../../chunk-53JJLHJM.cjs');
12
- require('../../chunk-FUEK43FL.cjs');
11
+ var _chunkDSBRWP5Mcjs = require('../../chunk-DSBRWP5M.cjs');
12
+ require('../../chunk-IOFIHVVW.cjs');
13
13
  require('../../chunk-467T3LCG.cjs');
14
14
  require('../../chunk-EHANO6UE.cjs');
15
15
  require('../../chunk-IJCSQFLD.cjs');
16
16
  require('../../chunk-HQQE74RO.cjs');
17
17
  require('../../chunk-DEY6XXGO.cjs');
18
- require('../../chunk-7O7EX7HQ.cjs');
18
+ require('../../chunk-T266OITJ.cjs');
19
19
  require('../../chunk-APOMNC7H.cjs');
20
20
  require('../../chunk-24I6RFVU.cjs');
21
21
  require('../../chunk-7Z536SPR.cjs');
22
+ require('../../chunk-7DNL734S.cjs');
22
23
  require('../../chunk-MZ4KBSH7.cjs');
23
24
  require('../../chunk-5SZ4ILU3.cjs');
24
- require('../../chunk-VDXI26G7.cjs');
25
- require('../../chunk-7ERD34HQ.cjs');
25
+ require('../../chunk-7KBHLP4E.cjs');
26
+ require('../../chunk-24M2JYM5.cjs');
26
27
  require('../../chunk-OBQ5WUNG.cjs');
27
28
  require('../../chunk-6CZVQ72C.cjs');
28
29
  require('../../chunk-ZRDVFADQ.cjs');
@@ -1816,16 +1817,15 @@ require('../../chunk-TMVC7S2R.cjs');
1816
1817
  require('../../chunk-IYHH5EIO.cjs');
1817
1818
  require('../../chunk-XIBCMGBW.cjs');
1818
1819
  require('../../chunk-NONMZ5WJ.cjs');
1819
- require('../../chunk-CNTBGJA7.cjs');
1820
+ require('../../chunk-A34UNP5V.cjs');
1820
1821
  require('../../chunk-QDDBOCG3.cjs');
1821
1822
  require('../../chunk-JKX2C3I2.cjs');
1822
- require('../../chunk-7DNL734S.cjs');
1823
1823
  require('../../chunk-WWUSFOJ7.cjs');
1824
1824
  require('../../chunk-SKI6NKOE.cjs');
1825
1825
  require('../../chunk-EWPR7662.cjs');
1826
- require('../../chunk-F4ZJRMMM.cjs');
1827
- require('../../chunk-GAR2IIU6.cjs');
1828
- require('../../chunk-Y6MJMPHV.cjs');
1826
+ require('../../chunk-UDLDXVY4.cjs');
1827
+ require('../../chunk-IM366HS6.cjs');
1828
+ require('../../chunk-UEULXVW2.cjs');
1829
1829
  require('../../chunk-QQT23JJ7.cjs');
1830
1830
  require('../../chunk-USUVHAQ7.cjs');
1831
1831
  require('../../chunk-25HBH4J6.cjs');
@@ -1838,7 +1838,7 @@ require('../../chunk-6VOOPMP5.cjs');
1838
1838
  require('../../chunk-ORO54HDF.cjs');
1839
1839
  require('../../chunk-RUHKTWGB.cjs');
1840
1840
  require('../../chunk-BLH2SFOO.cjs');
1841
- require('../../chunk-RD66AGUI.cjs');
1841
+ require('../../chunk-DVHSYPDB.cjs');
1842
1842
  require('../../chunk-FX35L4Y6.cjs');
1843
1843
  require('../../chunk-NTPX5GXI.cjs');
1844
1844
  require('../../chunk-MG3HJIGG.cjs');
@@ -1866,4 +1866,4 @@ require('../../chunk-QDB2JO55.cjs');
1866
1866
 
1867
1867
 
1868
1868
 
1869
- exports.FAQ_SECTION_SKELETON_QUESTIONS = _chunk53JJLHJMcjs.FAQ_SECTION_SKELETON_QUESTIONS; exports.FaqAskCard = _chunk53JJLHJMcjs.FaqAskCard; exports.FaqDocumentPage = _chunkJOOZTRXQcjs.FaqDocumentPage; exports.FaqSection = _chunk53JJLHJMcjs.FaqSection; exports.PAGE_FAQ_SECTION_ID = _chunk53JJLHJMcjs.PAGE_FAQ_SECTION_ID; exports.pageFaqProps = _chunk53JJLHJMcjs.pageFaqProps;
1869
+ exports.FAQ_SECTION_SKELETON_QUESTIONS = _chunkDSBRWP5Mcjs.FAQ_SECTION_SKELETON_QUESTIONS; exports.FaqAskCard = _chunkDSBRWP5Mcjs.FaqAskCard; exports.FaqDocumentPage = _chunkJMOCM2SWcjs.FaqDocumentPage; exports.FaqSection = _chunkDSBRWP5Mcjs.FaqSection; exports.PAGE_FAQ_SECTION_ID = _chunkDSBRWP5Mcjs.PAGE_FAQ_SECTION_ID; exports.pageFaqProps = _chunkDSBRWP5Mcjs.pageFaqProps;
@@ -1 +1 @@
1
- {"version":3,"file":"devices-table-columns.d.ts","sourceRoot":"","sources":["../../../../src/components/features/devices/devices-table-columns.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAIjE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,kBAAkB,EAGvB,KAAK,WAAW,EAChB,KAAK,UAAU,EAMhB,MAAM,UAAU,CAAC;AAQlB,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAiBxD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACpE,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,GAChD,SAAS,CAAC,CAAC,CAAC,CAad;AA2BD,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAOnF;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IACpE,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qHAAqH;IACrH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACz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M,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA8BD,wBAAgB,sBAAsB,CAAC,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,kBAAkB,EAAE,CAWjG;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACnE,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,EACpC,cAAc,CAAC,EAAE,OAAO,GACvB,SAAS,CAAC,CAAC,CAAC,EAAE,CA4EhB"}
1
+ {"version":3,"file":"devices-table-columns.d.ts","sourceRoot":"","sources":["../../../../src/components/features/devices/devices-table-columns.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAMjE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,kBAAkB,EAGvB,KAAK,WAAW,EAChB,KAAK,UAAU,EAMhB,MAAM,UAAU,CAAC;AAQlB,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAiBxD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACpE,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,GAChD,SAAS,CAAC,CAAC,CAAC,CAad;AA4BD,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAOnF;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IACpE,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qHAAqH;IACrH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,UAAU,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,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA8BD,wBAAgB,sBAAsB,CAAC,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,kBAAkB,EAAE,CAWjG;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACnE,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,EACpC,cAAc,CAAC,EAAE,OAAO,GACvB,SAAS,CAAC,CAAC,CAAC,EAAE,CA4EhB"}
@@ -1,7 +1,9 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useMemo } from "react";
4
+ import { useChatRuntime } from "../../../contexts/chat-runtime-context.js";
4
5
  import { formatDate, formatTime } from "../../../utils/format-date.js";
6
+ import { executeNewTabNavigation } from "../../chat/utils/execute-navigation.js";
5
7
  import { ArrowRightUpIcon } from "../../icons-v2-generated/index.js";
6
8
  import { TextLineSkeleton } from "../../loading/unified-skeleton.js";
7
9
  import {
@@ -41,11 +43,12 @@ function getDeviceActionsColumn(renderRowActions) {
41
43
  }
42
44
  function OpenDeviceButton({ device }) {
43
45
  const { getDeviceHref } = useDevicesViewConfig();
46
+ const runtime = useChatRuntime();
44
47
  const loading = useLoadingScope();
45
48
  const href = loading ? void 0 : getDeviceHref?.(device);
46
49
  const open = (event) => {
47
50
  event.preventDefault();
48
- if (href) window.open(href, "_blank", "noopener,noreferrer");
51
+ if (href) executeNewTabNavigation({ runtime, href });
49
52
  };
50
53
  return /* @__PURE__ */ jsx("div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ jsx(
51
54
  Button,