@assistant-ui/react-mcp 0.0.0 → 0.0.2

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 (179) hide show
  1. package/LICENSE +21 -0
  2. package/dist/_virtual/_rolldown/runtime.js +13 -0
  3. package/dist/auth/buildHeaders.d.ts +7 -3
  4. package/dist/auth/buildHeaders.d.ts.map +1 -1
  5. package/dist/auth/buildHeaders.js +14 -12
  6. package/dist/auth/buildHeaders.js.map +1 -1
  7. package/dist/auth/createOAuthProvider.d.ts +17 -15
  8. package/dist/auth/createOAuthProvider.d.ts.map +1 -1
  9. package/dist/auth/createOAuthProvider.js +111 -137
  10. package/dist/auth/createOAuthProvider.js.map +1 -1
  11. package/dist/auth/types.d.ts +10 -7
  12. package/dist/auth/types.d.ts.map +1 -1
  13. package/dist/auth/types.js +0 -2
  14. package/dist/connector.d.ts +6 -2
  15. package/dist/connector.d.ts.map +1 -1
  16. package/dist/connector.js +7 -3
  17. package/dist/connector.js.map +1 -1
  18. package/dist/context/McpConnectorByIndexProvider.d.ts +7 -3
  19. package/dist/context/McpConnectorByIndexProvider.d.ts.map +1 -1
  20. package/dist/context/McpConnectorByIndexProvider.js +18 -11
  21. package/dist/context/McpConnectorByIndexProvider.js.map +1 -1
  22. package/dist/context/McpCustomServerByIndexProvider.d.ts +7 -3
  23. package/dist/context/McpCustomServerByIndexProvider.d.ts.map +1 -1
  24. package/dist/context/McpCustomServerByIndexProvider.js +18 -11
  25. package/dist/context/McpCustomServerByIndexProvider.js.map +1 -1
  26. package/dist/context/McpServerByIdProvider.d.ts +7 -3
  27. package/dist/context/McpServerByIdProvider.d.ts.map +1 -1
  28. package/dist/context/McpServerByIdProvider.js +15 -11
  29. package/dist/context/McpServerByIdProvider.js.map +1 -1
  30. package/dist/hooks/useMcpOAuthCallback.d.ts +16 -13
  31. package/dist/hooks/useMcpOAuthCallback.d.ts.map +1 -1
  32. package/dist/hooks/useMcpOAuthCallback.js +59 -55
  33. package/dist/hooks/useMcpOAuthCallback.js.map +1 -1
  34. package/dist/index.d.ts +17 -18
  35. package/dist/index.js +14 -26
  36. package/dist/mcp-scope.d.ts +91 -94
  37. package/dist/mcp-scope.d.ts.map +1 -1
  38. package/dist/mcp-scope.js +0 -1
  39. package/dist/primitives/addForm/McpAddFormAuthFields.d.ts +17 -13
  40. package/dist/primitives/addForm/McpAddFormAuthFields.d.ts.map +1 -1
  41. package/dist/primitives/addForm/McpAddFormAuthFields.js +23 -14
  42. package/dist/primitives/addForm/McpAddFormAuthFields.js.map +1 -1
  43. package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts +9 -5
  44. package/dist/primitives/addForm/McpAddFormAuthSelect.d.ts.map +1 -1
  45. package/dist/primitives/addForm/McpAddFormAuthSelect.js +36 -16
  46. package/dist/primitives/addForm/McpAddFormAuthSelect.js.map +1 -1
  47. package/dist/primitives/addForm/McpAddFormCancel.d.ts +10 -6
  48. package/dist/primitives/addForm/McpAddFormCancel.d.ts.map +1 -1
  49. package/dist/primitives/addForm/McpAddFormCancel.js +19 -11
  50. package/dist/primitives/addForm/McpAddFormCancel.js.map +1 -1
  51. package/dist/primitives/addForm/McpAddFormError.d.ts +10 -6
  52. package/dist/primitives/addForm/McpAddFormError.d.ts.map +1 -1
  53. package/dist/primitives/addForm/McpAddFormError.js +15 -8
  54. package/dist/primitives/addForm/McpAddFormError.js.map +1 -1
  55. package/dist/primitives/addForm/McpAddFormNameField.d.ts +9 -5
  56. package/dist/primitives/addForm/McpAddFormNameField.d.ts.map +1 -1
  57. package/dist/primitives/addForm/McpAddFormNameField.js +17 -6
  58. package/dist/primitives/addForm/McpAddFormNameField.js.map +1 -1
  59. package/dist/primitives/addForm/McpAddFormRoot.d.ts +15 -11
  60. package/dist/primitives/addForm/McpAddFormRoot.d.ts.map +1 -1
  61. package/dist/primitives/addForm/McpAddFormRoot.js +134 -94
  62. package/dist/primitives/addForm/McpAddFormRoot.js.map +1 -1
  63. package/dist/primitives/addForm/McpAddFormSubmit.d.ts +10 -6
  64. package/dist/primitives/addForm/McpAddFormSubmit.d.ts.map +1 -1
  65. package/dist/primitives/addForm/McpAddFormSubmit.js +16 -6
  66. package/dist/primitives/addForm/McpAddFormSubmit.js.map +1 -1
  67. package/dist/primitives/addForm/McpAddFormUrlField.d.ts +9 -5
  68. package/dist/primitives/addForm/McpAddFormUrlField.d.ts.map +1 -1
  69. package/dist/primitives/addForm/McpAddFormUrlField.js +18 -6
  70. package/dist/primitives/addForm/McpAddFormUrlField.js.map +1 -1
  71. package/dist/primitives/addForm/context.d.ts +22 -18
  72. package/dist/primitives/addForm/context.d.ts.map +1 -1
  73. package/dist/primitives/addForm/context.js +9 -7
  74. package/dist/primitives/addForm/context.js.map +1 -1
  75. package/dist/primitives/addForm.d.ts +15 -8
  76. package/dist/primitives/addForm.d.ts.map +1 -1
  77. package/dist/primitives/addForm.js +23 -8
  78. package/dist/primitives/addForm.js.map +1 -1
  79. package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts +10 -6
  80. package/dist/primitives/manager/McpManagerAddCustomTrigger.d.ts.map +1 -1
  81. package/dist/primitives/manager/McpManagerAddCustomTrigger.js +13 -6
  82. package/dist/primitives/manager/McpManagerAddCustomTrigger.js.map +1 -1
  83. package/dist/primitives/manager/McpManagerConnectors.d.ts +18 -14
  84. package/dist/primitives/manager/McpManagerConnectors.d.ts.map +1 -1
  85. package/dist/primitives/manager/McpManagerConnectors.js +37 -35
  86. package/dist/primitives/manager/McpManagerConnectors.js.map +1 -1
  87. package/dist/primitives/manager/McpManagerCustomServers.d.ts +18 -14
  88. package/dist/primitives/manager/McpManagerCustomServers.d.ts.map +1 -1
  89. package/dist/primitives/manager/McpManagerCustomServers.js +38 -32
  90. package/dist/primitives/manager/McpManagerCustomServers.js.map +1 -1
  91. package/dist/primitives/manager/McpManagerRoot.d.ts +10 -6
  92. package/dist/primitives/manager/McpManagerRoot.d.ts.map +1 -1
  93. package/dist/primitives/manager/McpManagerRoot.js +14 -6
  94. package/dist/primitives/manager/McpManagerRoot.js.map +1 -1
  95. package/dist/primitives/manager.d.ts +11 -4
  96. package/dist/primitives/manager.d.ts.map +1 -1
  97. package/dist/primitives/manager.js +15 -4
  98. package/dist/primitives/manager.js.map +1 -1
  99. package/dist/primitives/server/McpServerConnectButton.d.ts +10 -6
  100. package/dist/primitives/server/McpServerConnectButton.d.ts.map +1 -1
  101. package/dist/primitives/server/McpServerConnectButton.js +28 -17
  102. package/dist/primitives/server/McpServerConnectButton.js.map +1 -1
  103. package/dist/primitives/server/McpServerDisconnectButton.d.ts +10 -6
  104. package/dist/primitives/server/McpServerDisconnectButton.d.ts.map +1 -1
  105. package/dist/primitives/server/McpServerDisconnectButton.js +27 -17
  106. package/dist/primitives/server/McpServerDisconnectButton.js.map +1 -1
  107. package/dist/primitives/server/McpServerError.d.ts +10 -6
  108. package/dist/primitives/server/McpServerError.d.ts.map +1 -1
  109. package/dist/primitives/server/McpServerError.js +15 -8
  110. package/dist/primitives/server/McpServerError.js.map +1 -1
  111. package/dist/primitives/server/McpServerIcon.d.ts +16 -14
  112. package/dist/primitives/server/McpServerIcon.d.ts.map +1 -1
  113. package/dist/primitives/server/McpServerIcon.js +18 -10
  114. package/dist/primitives/server/McpServerIcon.js.map +1 -1
  115. package/dist/primitives/server/McpServerName.d.ts +10 -6
  116. package/dist/primitives/server/McpServerName.d.ts.map +1 -1
  117. package/dist/primitives/server/McpServerName.js +14 -6
  118. package/dist/primitives/server/McpServerName.js.map +1 -1
  119. package/dist/primitives/server/McpServerOAuthLink.d.ts +13 -11
  120. package/dist/primitives/server/McpServerOAuthLink.d.ts.map +1 -1
  121. package/dist/primitives/server/McpServerOAuthLink.js +18 -9
  122. package/dist/primitives/server/McpServerOAuthLink.js.map +1 -1
  123. package/dist/primitives/server/McpServerRemoveButton.d.ts +10 -6
  124. package/dist/primitives/server/McpServerRemoveButton.d.ts.map +1 -1
  125. package/dist/primitives/server/McpServerRemoveButton.js +21 -14
  126. package/dist/primitives/server/McpServerRemoveButton.js.map +1 -1
  127. package/dist/primitives/server/McpServerRoot.d.ts +10 -6
  128. package/dist/primitives/server/McpServerRoot.d.ts.map +1 -1
  129. package/dist/primitives/server/McpServerRoot.js +20 -9
  130. package/dist/primitives/server/McpServerRoot.js.map +1 -1
  131. package/dist/primitives/server/McpServerStatus.d.ts +10 -6
  132. package/dist/primitives/server/McpServerStatus.d.ts.map +1 -1
  133. package/dist/primitives/server/McpServerStatus.js +15 -6
  134. package/dist/primitives/server/McpServerStatus.js.map +1 -1
  135. package/dist/primitives/server/McpServerToolName.d.ts +10 -6
  136. package/dist/primitives/server/McpServerToolName.d.ts.map +1 -1
  137. package/dist/primitives/server/McpServerToolName.js +15 -6
  138. package/dist/primitives/server/McpServerToolName.js.map +1 -1
  139. package/dist/primitives/server/McpServerTools.d.ts +12 -8
  140. package/dist/primitives/server/McpServerTools.d.ts.map +1 -1
  141. package/dist/primitives/server/McpServerTools.js +17 -13
  142. package/dist/primitives/server/McpServerTools.js.map +1 -1
  143. package/dist/primitives/server.d.ts +18 -11
  144. package/dist/primitives/server.d.ts.map +1 -1
  145. package/dist/primitives/server.js +30 -11
  146. package/dist/primitives/server.js.map +1 -1
  147. package/dist/resources/McpManagerResource.d.ts +13 -11
  148. package/dist/resources/McpManagerResource.d.ts.map +1 -1
  149. package/dist/resources/McpManagerResource.js +149 -183
  150. package/dist/resources/McpManagerResource.js.map +1 -1
  151. package/dist/resources/McpServerResource.d.ts +19 -15
  152. package/dist/resources/McpServerResource.d.ts.map +1 -1
  153. package/dist/resources/McpServerResource.js +186 -235
  154. package/dist/resources/McpServerResource.js.map +1 -1
  155. package/dist/resources/storage/McpCustomStorage.d.ts +6 -2
  156. package/dist/resources/storage/McpCustomStorage.d.ts.map +1 -1
  157. package/dist/resources/storage/McpCustomStorage.js +5 -1
  158. package/dist/resources/storage/McpCustomStorage.js.map +1 -1
  159. package/dist/resources/storage/McpLocalStorage.d.ts +9 -7
  160. package/dist/resources/storage/McpLocalStorage.d.ts.map +1 -1
  161. package/dist/resources/storage/McpLocalStorage.js +51 -62
  162. package/dist/resources/storage/McpLocalStorage.js.map +1 -1
  163. package/dist/resources/storage/McpMemoryStorage.d.ts +6 -2
  164. package/dist/resources/storage/McpMemoryStorage.d.ts.map +1 -1
  165. package/dist/resources/storage/McpMemoryStorage.js +20 -16
  166. package/dist/resources/storage/McpMemoryStorage.js.map +1 -1
  167. package/dist/resources/storage/types.d.ts +14 -10
  168. package/dist/resources/storage/types.d.ts.map +1 -1
  169. package/dist/resources/storage/types.js +0 -2
  170. package/dist/utils/serverId.d.ts +4 -1
  171. package/dist/utils/serverId.d.ts.map +1 -1
  172. package/dist/utils/serverId.js +8 -14
  173. package/dist/utils/serverId.js.map +1 -1
  174. package/package.json +12 -12
  175. package/dist/auth/types.js.map +0 -1
  176. package/dist/index.d.ts.map +0 -1
  177. package/dist/index.js.map +0 -1
  178. package/dist/mcp-scope.js.map +0 -1
  179. package/dist/resources/storage/types.js.map +0 -1
@@ -1,20 +1,30 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAui, useAuiState } from "@assistant-ui/store";
5
- const DISCONNECTABLE = new Set(["connected", "connecting", "authPending"]);
6
- export const McpServerPrimitiveDisconnectButton = forwardRef((props, ref) => {
7
- const state = useAuiState((s) => s.mcpServer.connectionState);
8
- const aui = useAui();
9
- if (!DISCONNECTABLE.has(state))
10
- return null;
11
- return (_jsx(Primitive.button, { ...props, type: "button", ref: ref, onClick: (e) => {
12
- props.onClick?.(e);
13
- if (e.defaultPrevented)
14
- return;
15
- void aui.mcpServer().disconnect();
16
- } }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerDisconnectButton.tsx
6
+ const DISCONNECTABLE = new Set([
7
+ "connected",
8
+ "connecting",
9
+ "authPending"
10
+ ]);
11
+ const McpServerPrimitiveDisconnectButton = forwardRef((props, ref) => {
12
+ const state = useAuiState((s) => s.mcpServer.connectionState);
13
+ const aui = useAui();
14
+ if (!DISCONNECTABLE.has(state)) return null;
15
+ return /* @__PURE__ */ jsx(Primitive.button, {
16
+ ...props,
17
+ type: "button",
18
+ ref,
19
+ onClick: (e) => {
20
+ props.onClick?.(e);
21
+ if (e.defaultPrevented) return;
22
+ aui.mcpServer().disconnect();
23
+ }
24
+ });
17
25
  });
18
- McpServerPrimitiveDisconnectButton.displayName =
19
- "McpServerPrimitive.DisconnectButton";
26
+ McpServerPrimitiveDisconnectButton.displayName = "McpServerPrimitive.DisconnectButton";
27
+ //#endregion
28
+ export { McpServerPrimitiveDisconnectButton };
29
+
20
30
  //# sourceMappingURL=McpServerDisconnectButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerDisconnectButton.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerDisconnectButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAO1D,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,kCAAkC,GAAG,UAAU,CAG1D,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAC9D,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5C,OAAO,CACL,KAAC,SAAS,CAAC,MAAM,OACX,KAAK,EACT,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;YACnB,IAAI,CAAC,CAAC,gBAAgB;gBAAE,OAAO;YAC/B,KAAK,GAAG,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kCAAkC,CAAC,WAAW;IAC5C,qCAAqC,CAAC"}
1
+ {"version":3,"file":"McpServerDisconnectButton.js","names":[],"sources":["../../../src/primitives/server/McpServerDisconnectButton.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveDisconnectButton {\n export type Element = ComponentRef<typeof Primitive.button>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.button>;\n}\n\nconst DISCONNECTABLE = new Set([\"connected\", \"connecting\", \"authPending\"]);\n\nexport const McpServerPrimitiveDisconnectButton = forwardRef<\n McpServerPrimitiveDisconnectButton.Element,\n McpServerPrimitiveDisconnectButton.Props\n>((props, ref) => {\n const state = useAuiState((s) => s.mcpServer.connectionState);\n const aui = useAui();\n if (!DISCONNECTABLE.has(state)) return null;\n return (\n <Primitive.button\n {...props}\n type=\"button\"\n ref={ref}\n onClick={(e) => {\n props.onClick?.(e);\n if (e.defaultPrevented) return;\n void aui.mcpServer().disconnect();\n }}\n />\n );\n});\n\nMcpServerPrimitiveDisconnectButton.displayName =\n \"McpServerPrimitive.DisconnectButton\";\n"],"mappings":";;;;;AAaA,MAAM,iBAAiB,IAAI,IAAI;CAAC;CAAa;CAAc;AAAa,CAAC;AAEzE,MAAa,qCAAqC,YAG/C,OAAO,QAAQ;CAChB,MAAM,QAAQ,aAAa,MAAM,EAAE,UAAU,eAAe;CAC5D,MAAM,MAAM,OAAO;CACnB,IAAI,CAAC,eAAe,IAAI,KAAK,GAAG,OAAO;CACvC,OACE,oBAAC,UAAU,QAAX;EACE,GAAI;EACJ,MAAK;EACA;EACL,UAAU,MAAM;GACd,MAAM,UAAU,CAAC;GACjB,IAAI,EAAE,kBAAkB;GACxB,IAAS,UAAU,EAAE,WAAW;EAClC;CACD,CAAA;AAEL,CAAC;AAED,mCAAmC,cACjC"}
@@ -1,10 +1,14 @@
1
- import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- export declare namespace McpServerPrimitiveError {
4
- type Element = ComponentRef<typeof Primitive.div>;
5
- type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
3
+
4
+ //#region src/primitives/server/McpServerError.d.ts
5
+ declare namespace McpServerPrimitiveError {
6
+ type Element = ComponentRef<typeof Primitive.div>;
7
+ type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
6
8
  }
7
- export declare const McpServerPrimitiveError: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
8
- asChild?: boolean;
9
+ declare const McpServerPrimitiveError: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
10
+ asChild?: boolean;
9
11
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
+ //#endregion
13
+ export { McpServerPrimitiveError };
10
14
  //# sourceMappingURL=McpServerError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerError.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerError.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,uBAAuB,CAAC;IACvC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,uBAAuB;;0DAWlC,CAAC"}
1
+ {"version":3,"file":"McpServerError.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerError.tsx"],"mappings":";;;;kBAQiB,uBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,GAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,GAAA;AAAA;AAAA,cAGnD,uBAAA,kBAAuB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,cAAA,oBAAA,cAAA,CAAA,cAAA"}
@@ -1,12 +1,19 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAuiState } from "@assistant-ui/store";
5
- export const McpServerPrimitiveError = forwardRef((props, ref) => {
6
- const message = useAuiState((s) => s.mcpServer.lastError?.message ?? null);
7
- if (message === null)
8
- return null;
9
- return (_jsx(Primitive.div, { ...props, ref: ref, children: props.children ?? message }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerError.tsx
6
+ const McpServerPrimitiveError = forwardRef((props, ref) => {
7
+ const message = useAuiState((s) => s.mcpServer.lastError?.message ?? null);
8
+ if (message === null) return null;
9
+ return /* @__PURE__ */ jsx(Primitive.div, {
10
+ ...props,
11
+ ref,
12
+ children: props.children ?? message
13
+ });
10
14
  });
11
15
  McpServerPrimitiveError.displayName = "McpServerPrimitive.Error";
16
+ //#endregion
17
+ export { McpServerPrimitiveError };
18
+
12
19
  //# sourceMappingURL=McpServerError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerError.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerError.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAG/C,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC;IAC3E,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAClC,OAAO,CACL,KAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,YAC/B,KAAK,CAAC,QAAQ,IAAI,OAAO,GACZ,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,WAAW,GAAG,0BAA0B,CAAC"}
1
+ {"version":3,"file":"McpServerError.js","names":[],"sources":["../../../src/primitives/server/McpServerError.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveError {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>;\n}\n\nexport const McpServerPrimitiveError = forwardRef<\n McpServerPrimitiveError.Element,\n McpServerPrimitiveError.Props\n>((props, ref) => {\n const message = useAuiState((s) => s.mcpServer.lastError?.message ?? null);\n if (message === null) return null;\n return (\n <Primitive.div {...props} ref={ref}>\n {props.children ?? message}\n </Primitive.div>\n );\n});\n\nMcpServerPrimitiveError.displayName = \"McpServerPrimitive.Error\";\n"],"mappings":";;;;;AAaA,MAAa,0BAA0B,YAGpC,OAAO,QAAQ;CAChB,MAAM,UAAU,aAAa,MAAM,EAAE,UAAU,WAAW,WAAW,IAAI;CACzE,IAAI,YAAY,MAAM,OAAO;CAC7B,OACE,oBAAC,UAAU,KAAX;EAAe,GAAI;EAAY;YAC5B,MAAM,YAAY;CACN,CAAA;AAEnB,CAAC;AAED,wBAAwB,cAAc"}
@@ -1,18 +1,20 @@
1
- import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- export declare namespace McpServerPrimitiveIcon {
4
- type Element = ComponentRef<typeof Primitive.img>;
5
- type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.img>, "src" | "alt"> & {
6
- /** Override the icon URL. Defaults to the server's icon prop. */
7
- src?: string;
8
- alt?: string;
9
- };
10
- }
11
- export declare const McpServerPrimitiveIcon: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & {
12
- asChild?: boolean;
13
- }, "ref">, "src" | "alt"> & {
14
- /** Override the icon URL. Defaults to the server's icon prop. */
15
- src?: string;
3
+
4
+ //#region src/primitives/server/McpServerIcon.d.ts
5
+ declare namespace McpServerPrimitiveIcon {
6
+ type Element = ComponentRef<typeof Primitive.img>;
7
+ type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.img>, "src" | "alt"> & {
8
+ /** Override the icon URL. Defaults to the server's icon prop. */src?: string;
16
9
  alt?: string;
10
+ };
11
+ }
12
+ declare const McpServerPrimitiveIcon: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & {
13
+ asChild?: boolean;
14
+ }, "ref">, "alt" | "src"> & {
15
+ /** Override the icon URL. Defaults to the server's icon prop. */src?: string;
16
+ alt?: string;
17
17
  } & import("react").RefAttributes<HTMLImageElement>>;
18
+ //#endregion
19
+ export { McpServerPrimitiveIcon };
18
20
  //# sourceMappingURL=McpServerIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerIcon.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,IAAI,CACtB,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,EAC9C,KAAK,GAAG,KAAK,CACd,GAAG;QACF,iEAAiE;QACjE,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,eAAO,MAAM,sBAAsB;;;IAN/B,iEAAiE;UAC3D,MAAM;UACN,MAAM;oDAgBd,CAAC"}
1
+ {"version":3,"file":"McpServerIcon.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerIcon.tsx"],"mappings":";;;;kBAQiB,sBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,GAAA;EAAA,KACxC,KAAA,GAAQ,IAAA,CAClB,wBAAA,QAAgC,SAAA,CAAU,GAAA;IAHP,iEAOnC,GAAA;IACA,GAAA;EAAA;AAAA;AAAA,cAIS,sBAAA,kBAAsB,yBAAA,CAAA,IAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,gBAAA,oBAAA,iBAAA,CAAA,gBAAA;;;EAVT"}
@@ -1,14 +1,22 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAuiState } from "@assistant-ui/store";
5
- export const McpServerPrimitiveIcon = forwardRef(({ src, alt, ...props }, ref) => {
6
- const iconUrl = useAuiState((s) => s.mcpServer.icon ?? null);
7
- const name = useAuiState((s) => s.mcpServer.name);
8
- const effective = src ?? iconUrl;
9
- if (!effective)
10
- return null;
11
- return (_jsx(Primitive.img, { ...props, ref: ref, src: effective, alt: alt ?? name }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerIcon.tsx
6
+ const McpServerPrimitiveIcon = forwardRef(({ src, alt, ...props }, ref) => {
7
+ const iconUrl = useAuiState((s) => s.mcpServer.icon ?? null);
8
+ const name = useAuiState((s) => s.mcpServer.name);
9
+ const effective = src ?? iconUrl;
10
+ if (!effective) return null;
11
+ return /* @__PURE__ */ jsx(Primitive.img, {
12
+ ...props,
13
+ ref,
14
+ src: effective,
15
+ alt: alt ?? name
16
+ });
12
17
  });
13
18
  McpServerPrimitiveIcon.displayName = "McpServerPrimitive.Icon";
19
+ //#endregion
20
+ export { McpServerPrimitiveIcon };
21
+
14
22
  //# sourceMappingURL=McpServerIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerIcon.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAclD,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAG9C,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;IAC7D,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,GAAG,IAAI,OAAO,CAAC;IACjC,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC5B,OAAO,CAEL,KAAC,SAAS,CAAC,GAAG,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,IAAI,GAAI,CACzE,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,sBAAsB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
1
+ {"version":3,"file":"McpServerIcon.js","names":[],"sources":["../../../src/primitives/server/McpServerIcon.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveIcon {\n export type Element = ComponentRef<typeof Primitive.img>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.img>,\n \"src\" | \"alt\"\n > & {\n /** Override the icon URL. Defaults to the server's icon prop. */\n src?: string;\n alt?: string;\n };\n}\n\nexport const McpServerPrimitiveIcon = forwardRef<\n McpServerPrimitiveIcon.Element,\n McpServerPrimitiveIcon.Props\n>(({ src, alt, ...props }, ref) => {\n const iconUrl = useAuiState((s) => s.mcpServer.icon ?? null);\n const name = useAuiState((s) => s.mcpServer.name);\n const effective = src ?? iconUrl;\n if (!effective) return null;\n return (\n // biome-ignore lint/performance/noImgElement: unstyled primitive — consumers can swap via asChild\n <Primitive.img {...props} ref={ref} src={effective} alt={alt ?? name} />\n );\n});\n\nMcpServerPrimitiveIcon.displayName = \"McpServerPrimitive.Icon\";\n"],"mappings":";;;;;AAoBA,MAAa,yBAAyB,YAGnC,EAAE,KAAK,KAAK,GAAG,SAAS,QAAQ;CACjC,MAAM,UAAU,aAAa,MAAM,EAAE,UAAU,QAAQ,IAAI;CAC3D,MAAM,OAAO,aAAa,MAAM,EAAE,UAAU,IAAI;CAChD,MAAM,YAAY,OAAO;CACzB,IAAI,CAAC,WAAW,OAAO;CACvB,OAEE,oBAAC,UAAU,KAAX;EAAe,GAAI;EAAY;EAAK,KAAK;EAAW,KAAK,OAAO;CAAO,CAAA;AAE3E,CAAC;AAED,uBAAuB,cAAc"}
@@ -1,10 +1,14 @@
1
- import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- export declare namespace McpServerPrimitiveName {
4
- type Element = ComponentRef<typeof Primitive.span>;
5
- type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
3
+
4
+ //#region src/primitives/server/McpServerName.d.ts
5
+ declare namespace McpServerPrimitiveName {
6
+ type Element = ComponentRef<typeof Primitive.span>;
7
+ type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
6
8
  }
7
- export declare const McpServerPrimitiveName: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
8
- asChild?: boolean;
9
+ declare const McpServerPrimitiveName: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
10
+ asChild?: boolean;
9
11
  }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
12
+ //#endregion
13
+ export { McpServerPrimitiveName };
10
14
  //# sourceMappingURL=McpServerName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerName.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerName.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,sBAAsB;;2DAUjC,CAAC"}
1
+ {"version":3,"file":"McpServerName.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerName.tsx"],"mappings":";;;;kBAQiB,sBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,IAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,IAAA;AAAA;AAAA,cAGnD,sBAAA,kBAAsB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,eAAA,oBAAA,cAAA,CAAA,eAAA"}
@@ -1,10 +1,18 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAuiState } from "@assistant-ui/store";
5
- export const McpServerPrimitiveName = forwardRef((props, ref) => {
6
- const name = useAuiState((s) => s.mcpServer.name);
7
- return (_jsx(Primitive.span, { ...props, ref: ref, children: props.children ?? name }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerName.tsx
6
+ const McpServerPrimitiveName = forwardRef((props, ref) => {
7
+ const name = useAuiState((s) => s.mcpServer.name);
8
+ return /* @__PURE__ */ jsx(Primitive.span, {
9
+ ...props,
10
+ ref,
11
+ children: props.children ?? name
12
+ });
8
13
  });
9
14
  McpServerPrimitiveName.displayName = "McpServerPrimitive.Name";
15
+ //#endregion
16
+ export { McpServerPrimitiveName };
17
+
10
18
  //# sourceMappingURL=McpServerName.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerName.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerName.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAG9C,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClD,OAAO,CACL,KAAC,SAAS,CAAC,IAAI,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,YAChC,KAAK,CAAC,QAAQ,IAAI,IAAI,GACR,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,sBAAsB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
1
+ {"version":3,"file":"McpServerName.js","names":[],"sources":["../../../src/primitives/server/McpServerName.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveName {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveName = forwardRef<\n McpServerPrimitiveName.Element,\n McpServerPrimitiveName.Props\n>((props, ref) => {\n const name = useAuiState((s) => s.mcpServer.name);\n return (\n <Primitive.span {...props} ref={ref}>\n {props.children ?? name}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveName.displayName = \"McpServerPrimitive.Name\";\n"],"mappings":";;;;;AAaA,MAAa,yBAAyB,YAGnC,OAAO,QAAQ;CAChB,MAAM,OAAO,aAAa,MAAM,EAAE,UAAU,IAAI;CAChD,OACE,oBAAC,UAAU,MAAX;EAAgB,GAAI;EAAY;YAC7B,MAAM,YAAY;CACL,CAAA;AAEpB,CAAC;AAED,uBAAuB,cAAc"}
@@ -1,16 +1,18 @@
1
- import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- export declare namespace McpServerPrimitiveOAuthLink {
4
- type Element = ComponentRef<typeof Primitive.a>;
5
- type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.a>, "href"> & {
6
- /** Optional href override; defaults to the server's authorizationUrl. */
7
- href?: string;
8
- };
3
+
4
+ //#region src/primitives/server/McpServerOAuthLink.d.ts
5
+ declare namespace McpServerPrimitiveOAuthLink {
6
+ type Element = ComponentRef<typeof Primitive.a>;
7
+ type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.a>, "href"> & {
8
+ /** Optional href override; defaults to the server's authorizationUrl. */href?: string;
9
+ };
9
10
  }
10
- export declare const McpServerPrimitiveOAuthLink: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
11
- asChild?: boolean;
11
+ declare const McpServerPrimitiveOAuthLink: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & {
12
+ asChild?: boolean;
12
13
  }, "ref">, "href"> & {
13
- /** Optional href override; defaults to the server's authorizationUrl. */
14
- href?: string;
14
+ /** Optional href override; defaults to the server's authorizationUrl. */href?: string;
15
15
  } & import("react").RefAttributes<HTMLAnchorElement>>;
16
+ //#endregion
17
+ export { McpServerPrimitiveOAuthLink };
16
18
  //# sourceMappingURL=McpServerOAuthLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerOAuthLink.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,2BAA2B,CAAC;IAC3C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;IACvD,KAAY,KAAK,GAAG,IAAI,CACtB,wBAAwB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,EAC5C,MAAM,CACP,GAAG;QACF,yEAAyE;QACzE,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,eAAO,MAAM,2BAA2B;;;IALpC,yEAAyE;WAClE,MAAM;qDAoBf,CAAC"}
1
+ {"version":3,"file":"McpServerOAuthLink.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"mappings":";;;;kBAQiB,2BAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,CAAA;EAAA,KACxC,KAAA,GAAQ,IAAA,CAClB,wBAAA,QAAgC,SAAA,CAAU,CAAA;IAHF,yEAOxC,IAAA;EAAA;AAAA;AAAA,cAIS,2BAAA,kBAA2B,yBAAA,CAAA,IAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,iBAAA,oBAAA,oBAAA,CAAA,iBAAA;;;EATd"}
@@ -1,13 +1,22 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAuiState } from "@assistant-ui/store";
5
- export const McpServerPrimitiveOAuthLink = forwardRef(({ href, ...props }, ref) => {
6
- const url = useAuiState((s) => s.mcpServer.authorizationUrl);
7
- const effective = href ?? url;
8
- if (!effective)
9
- return null;
10
- return (_jsx(Primitive.a, { target: "_blank", ...props, ref: ref, href: effective, rel: props.rel ?? "noopener noreferrer" }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerOAuthLink.tsx
6
+ const McpServerPrimitiveOAuthLink = forwardRef(({ href, ...props }, ref) => {
7
+ const url = useAuiState((s) => s.mcpServer.authorizationUrl);
8
+ const effective = href ?? url;
9
+ if (!effective) return null;
10
+ return /* @__PURE__ */ jsx(Primitive.a, {
11
+ target: "_blank",
12
+ ...props,
13
+ ref,
14
+ href: effective,
15
+ rel: props.rel ?? "noopener noreferrer"
16
+ });
11
17
  });
12
18
  McpServerPrimitiveOAuthLink.displayName = "McpServerPrimitive.OAuthLink";
19
+ //#endregion
20
+ export { McpServerPrimitiveOAuthLink };
21
+
13
22
  //# sourceMappingURL=McpServerOAuthLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerOAuthLink.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAalD,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAGnD,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC5B,MAAM,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC7D,MAAM,SAAS,GAAG,IAAI,IAAI,GAAG,CAAC;IAC9B,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC5B,OAAO,CACL,KAAC,SAAS,CAAC,CAAC,IACV,MAAM,EAAC,QAAQ,KACX,KAAK,EACT,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,SAAS,EACf,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,qBAAqB,GACvC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,2BAA2B,CAAC,WAAW,GAAG,8BAA8B,CAAC"}
1
+ {"version":3,"file":"McpServerOAuthLink.js","names":[],"sources":["../../../src/primitives/server/McpServerOAuthLink.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveOAuthLink {\n export type Element = ComponentRef<typeof Primitive.a>;\n export type Props = Omit<\n ComponentPropsWithoutRef<typeof Primitive.a>,\n \"href\"\n > & {\n /** Optional href override; defaults to the server's authorizationUrl. */\n href?: string;\n };\n}\n\nexport const McpServerPrimitiveOAuthLink = forwardRef<\n McpServerPrimitiveOAuthLink.Element,\n McpServerPrimitiveOAuthLink.Props\n>(({ href, ...props }, ref) => {\n const url = useAuiState((s) => s.mcpServer.authorizationUrl);\n const effective = href ?? url;\n if (!effective) return null;\n return (\n <Primitive.a\n target=\"_blank\"\n {...props}\n ref={ref}\n href={effective}\n rel={props.rel ?? \"noopener noreferrer\"}\n />\n );\n});\n\nMcpServerPrimitiveOAuthLink.displayName = \"McpServerPrimitive.OAuthLink\";\n"],"mappings":";;;;;AAmBA,MAAa,8BAA8B,YAGxC,EAAE,MAAM,GAAG,SAAS,QAAQ;CAC7B,MAAM,MAAM,aAAa,MAAM,EAAE,UAAU,gBAAgB;CAC3D,MAAM,YAAY,QAAQ;CAC1B,IAAI,CAAC,WAAW,OAAO;CACvB,OACE,oBAAC,UAAU,GAAX;EACE,QAAO;EACP,GAAI;EACC;EACL,MAAM;EACN,KAAK,MAAM,OAAO;CACnB,CAAA;AAEL,CAAC;AAED,4BAA4B,cAAc"}
@@ -1,10 +1,14 @@
1
- import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- export declare namespace McpServerPrimitiveRemoveButton {
4
- type Element = ComponentRef<typeof Primitive.button>;
5
- type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
3
+
4
+ //#region src/primitives/server/McpServerRemoveButton.d.ts
5
+ declare namespace McpServerPrimitiveRemoveButton {
6
+ type Element = ComponentRef<typeof Primitive.button>;
7
+ type Props = ComponentPropsWithoutRef<typeof Primitive.button>;
6
8
  }
7
- export declare const McpServerPrimitiveRemoveButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
8
- asChild?: boolean;
9
+ declare const McpServerPrimitiveRemoveButton: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
10
+ asChild?: boolean;
9
11
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
12
+ //#endregion
13
+ export { McpServerPrimitiveRemoveButton };
10
14
  //# sourceMappingURL=McpServerRemoveButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRemoveButton.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,8BAA8B,CAAC;IAC9C,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,8BAA8B;;6DAmBzC,CAAC"}
1
+ {"version":3,"file":"McpServerRemoveButton.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"mappings":";;;;kBAQiB,8BAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,MAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,MAAA;AAAA;AAAA,cAGnD,8BAAA,kBAA8B,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,iBAAA,oBAAA,oBAAA,CAAA,iBAAA"}
@@ -1,18 +1,25 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAui, useAuiState } from "@assistant-ui/store";
5
- export const McpServerPrimitiveRemoveButton = forwardRef((props, ref) => {
6
- const kind = useAuiState((s) => s.mcpServer.kind);
7
- const aui = useAui();
8
- if (kind !== "custom")
9
- return null;
10
- return (_jsx(Primitive.button, { ...props, type: "button", ref: ref, onClick: (e) => {
11
- props.onClick?.(e);
12
- if (e.defaultPrevented)
13
- return;
14
- void aui.mcpServer().remove();
15
- } }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerRemoveButton.tsx
6
+ const McpServerPrimitiveRemoveButton = forwardRef((props, ref) => {
7
+ const kind = useAuiState((s) => s.mcpServer.kind);
8
+ const aui = useAui();
9
+ if (kind !== "custom") return null;
10
+ return /* @__PURE__ */ jsx(Primitive.button, {
11
+ ...props,
12
+ type: "button",
13
+ ref,
14
+ onClick: (e) => {
15
+ props.onClick?.(e);
16
+ if (e.defaultPrevented) return;
17
+ aui.mcpServer().remove();
18
+ }
19
+ });
16
20
  });
17
21
  McpServerPrimitiveRemoveButton.displayName = "McpServerPrimitive.RemoveButton";
22
+ //#endregion
23
+ export { McpServerPrimitiveRemoveButton };
24
+
18
25
  //# sourceMappingURL=McpServerRemoveButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRemoveButton.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAO1D,MAAM,CAAC,MAAM,8BAA8B,GAAG,UAAU,CAGtD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;IACrB,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACnC,OAAO,CACL,KAAC,SAAS,CAAC,MAAM,OACX,KAAK,EACT,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACb,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;YACnB,IAAI,CAAC,CAAC,gBAAgB;gBAAE,OAAO;YAC/B,KAAK,GAAG,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC;QAChC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,8BAA8B,CAAC,WAAW,GAAG,iCAAiC,CAAC"}
1
+ {"version":3,"file":"McpServerRemoveButton.js","names":[],"sources":["../../../src/primitives/server/McpServerRemoveButton.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAui, useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveRemoveButton {\n export type Element = ComponentRef<typeof Primitive.button>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.button>;\n}\n\nexport const McpServerPrimitiveRemoveButton = forwardRef<\n McpServerPrimitiveRemoveButton.Element,\n McpServerPrimitiveRemoveButton.Props\n>((props, ref) => {\n const kind = useAuiState((s) => s.mcpServer.kind);\n const aui = useAui();\n if (kind !== \"custom\") return null;\n return (\n <Primitive.button\n {...props}\n type=\"button\"\n ref={ref}\n onClick={(e) => {\n props.onClick?.(e);\n if (e.defaultPrevented) return;\n void aui.mcpServer().remove();\n }}\n />\n );\n});\n\nMcpServerPrimitiveRemoveButton.displayName = \"McpServerPrimitive.RemoveButton\";\n"],"mappings":";;;;;AAaA,MAAa,iCAAiC,YAG3C,OAAO,QAAQ;CAChB,MAAM,OAAO,aAAa,MAAM,EAAE,UAAU,IAAI;CAChD,MAAM,MAAM,OAAO;CACnB,IAAI,SAAS,UAAU,OAAO;CAC9B,OACE,oBAAC,UAAU,QAAX;EACE,GAAI;EACJ,MAAK;EACA;EACL,UAAU,MAAM;GACd,MAAM,UAAU,CAAC;GACjB,IAAI,EAAE,kBAAkB;GACxB,IAAS,UAAU,EAAE,OAAO;EAC9B;CACD,CAAA;AAEL,CAAC;AAED,+BAA+B,cAAc"}
@@ -1,10 +1,14 @@
1
- import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- export declare namespace McpServerPrimitiveRoot {
4
- type Element = ComponentRef<typeof Primitive.div>;
5
- type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
3
+
4
+ //#region src/primitives/server/McpServerRoot.d.ts
5
+ declare namespace McpServerPrimitiveRoot {
6
+ type Element = ComponentRef<typeof Primitive.div>;
7
+ type Props = ComponentPropsWithoutRef<typeof Primitive.div>;
6
8
  }
7
- export declare const McpServerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
8
- asChild?: boolean;
9
+ declare const McpServerPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
10
+ asChild?: boolean;
9
11
  }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
+ //#endregion
13
+ export { McpServerPrimitiveRoot };
10
14
  //# sourceMappingURL=McpServerRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRoot.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACzD,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,sBAAsB;;0DAmBjC,CAAC"}
1
+ {"version":3,"file":"McpServerRoot.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerRoot.tsx"],"mappings":";;;;kBAQiB,sBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,GAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,GAAA;AAAA;AAAA,cAGnD,sBAAA,kBAAsB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,cAAA,oBAAA,cAAA,CAAA,cAAA"}
@@ -1,13 +1,24 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAuiState } from "@assistant-ui/store";
5
- export const McpServerPrimitiveRoot = forwardRef((props, ref) => {
6
- const id = useAuiState((s) => s.mcpServer.id);
7
- const kind = useAuiState((s) => s.mcpServer.kind);
8
- const connectionState = useAuiState((s) => s.mcpServer.connectionState);
9
- const hasError = useAuiState((s) => s.mcpServer.lastError !== null);
10
- return (_jsx(Primitive.div, { ...props, ref: ref, "data-server-id": id, "data-kind": kind, "data-connection-state": connectionState, "data-has-error": hasError || undefined }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerRoot.tsx
6
+ const McpServerPrimitiveRoot = forwardRef((props, ref) => {
7
+ const id = useAuiState((s) => s.mcpServer.id);
8
+ const kind = useAuiState((s) => s.mcpServer.kind);
9
+ const connectionState = useAuiState((s) => s.mcpServer.connectionState);
10
+ const hasError = useAuiState((s) => s.mcpServer.lastError !== null);
11
+ return /* @__PURE__ */ jsx(Primitive.div, {
12
+ ...props,
13
+ ref,
14
+ "data-server-id": id,
15
+ "data-kind": kind,
16
+ "data-connection-state": connectionState,
17
+ "data-has-error": hasError || void 0
18
+ });
11
19
  });
12
20
  McpServerPrimitiveRoot.displayName = "McpServerPrimitive.Root";
21
+ //#endregion
22
+ export { McpServerPrimitiveRoot };
23
+
13
24
  //# sourceMappingURL=McpServerRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerRoot.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerRoot.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAG9C,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,eAAe,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACxE,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC;IAEpE,OAAO,CACL,KAAC,SAAS,CAAC,GAAG,OACR,KAAK,EACT,GAAG,EAAE,GAAG,oBACQ,EAAE,eACP,IAAI,2BACQ,eAAe,oBACtB,QAAQ,IAAI,SAAS,GACrC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,sBAAsB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
1
+ {"version":3,"file":"McpServerRoot.js","names":[],"sources":["../../../src/primitives/server/McpServerRoot.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveRoot {\n export type Element = ComponentRef<typeof Primitive.div>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.div>;\n}\n\nexport const McpServerPrimitiveRoot = forwardRef<\n McpServerPrimitiveRoot.Element,\n McpServerPrimitiveRoot.Props\n>((props, ref) => {\n const id = useAuiState((s) => s.mcpServer.id);\n const kind = useAuiState((s) => s.mcpServer.kind);\n const connectionState = useAuiState((s) => s.mcpServer.connectionState);\n const hasError = useAuiState((s) => s.mcpServer.lastError !== null);\n\n return (\n <Primitive.div\n {...props}\n ref={ref}\n data-server-id={id}\n data-kind={kind}\n data-connection-state={connectionState}\n data-has-error={hasError || undefined}\n />\n );\n});\n\nMcpServerPrimitiveRoot.displayName = \"McpServerPrimitive.Root\";\n"],"mappings":";;;;;AAaA,MAAa,yBAAyB,YAGnC,OAAO,QAAQ;CAChB,MAAM,KAAK,aAAa,MAAM,EAAE,UAAU,EAAE;CAC5C,MAAM,OAAO,aAAa,MAAM,EAAE,UAAU,IAAI;CAChD,MAAM,kBAAkB,aAAa,MAAM,EAAE,UAAU,eAAe;CACtE,MAAM,WAAW,aAAa,MAAM,EAAE,UAAU,cAAc,IAAI;CAElE,OACE,oBAAC,UAAU,KAAX;EACE,GAAI;EACC;EACL,kBAAgB;EAChB,aAAW;EACX,yBAAuB;EACvB,kBAAgB,YAAY,KAAA;CAC7B,CAAA;AAEL,CAAC;AAED,uBAAuB,cAAc"}
@@ -1,10 +1,14 @@
1
- import { type ComponentPropsWithoutRef, type ComponentRef } from "react";
1
+ import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
- export declare namespace McpServerPrimitiveStatus {
4
- type Element = ComponentRef<typeof Primitive.span>;
5
- type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
3
+
4
+ //#region src/primitives/server/McpServerStatus.d.ts
5
+ declare namespace McpServerPrimitiveStatus {
6
+ type Element = ComponentRef<typeof Primitive.span>;
7
+ type Props = ComponentPropsWithoutRef<typeof Primitive.span>;
6
8
  }
7
- export declare const McpServerPrimitiveStatus: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
8
- asChild?: boolean;
9
+ declare const McpServerPrimitiveStatus: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
10
+ asChild?: boolean;
9
11
  }, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
12
+ //#endregion
13
+ export { McpServerPrimitiveStatus };
10
14
  //# sourceMappingURL=McpServerStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerStatus.d.ts","sourceRoot":"","sources":["../../../src/primitives/server/McpServerStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1D,KAAY,KAAK,GAAG,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;CACrE;AAED,eAAO,MAAM,wBAAwB;;2DAUnC,CAAC"}
1
+ {"version":3,"file":"McpServerStatus.d.ts","names":[],"sources":["../../../src/primitives/server/McpServerStatus.tsx"],"mappings":";;;;kBAQiB,wBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,IAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,IAAA;AAAA;AAAA,cAGnD,wBAAA,kBAAwB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,eAAA,oBAAA,cAAA,CAAA,eAAA"}
@@ -1,10 +1,19 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef, } from "react";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
1
  import { useAuiState } from "@assistant-ui/store";
5
- export const McpServerPrimitiveStatus = forwardRef((props, ref) => {
6
- const state = useAuiState((s) => s.mcpServer.connectionState);
7
- return (_jsx(Primitive.span, { ...props, ref: ref, "data-state": state, children: props.children ?? state }));
2
+ import { forwardRef } from "react";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/primitives/server/McpServerStatus.tsx
6
+ const McpServerPrimitiveStatus = forwardRef((props, ref) => {
7
+ const state = useAuiState((s) => s.mcpServer.connectionState);
8
+ return /* @__PURE__ */ jsx(Primitive.span, {
9
+ ...props,
10
+ ref,
11
+ "data-state": state,
12
+ children: props.children ?? state
13
+ });
8
14
  });
9
15
  McpServerPrimitiveStatus.displayName = "McpServerPrimitive.Status";
16
+ //#endregion
17
+ export { McpServerPrimitiveStatus };
18
+
10
19
  //# sourceMappingURL=McpServerStatus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"McpServerStatus.js","sourceRoot":"","sources":["../../../src/primitives/server/McpServerStatus.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAGhD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACf,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAC9D,OAAO,CACL,KAAC,SAAS,CAAC,IAAI,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,gBAAc,KAAK,YACnD,KAAK,CAAC,QAAQ,IAAI,KAAK,GACT,CAClB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,wBAAwB,CAAC,WAAW,GAAG,2BAA2B,CAAC"}
1
+ {"version":3,"file":"McpServerStatus.js","names":[],"sources":["../../../src/primitives/server/McpServerStatus.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useAuiState } from \"@assistant-ui/store\";\n\nexport namespace McpServerPrimitiveStatus {\n export type Element = ComponentRef<typeof Primitive.span>;\n export type Props = ComponentPropsWithoutRef<typeof Primitive.span>;\n}\n\nexport const McpServerPrimitiveStatus = forwardRef<\n McpServerPrimitiveStatus.Element,\n McpServerPrimitiveStatus.Props\n>((props, ref) => {\n const state = useAuiState((s) => s.mcpServer.connectionState);\n return (\n <Primitive.span {...props} ref={ref} data-state={state}>\n {props.children ?? state}\n </Primitive.span>\n );\n});\n\nMcpServerPrimitiveStatus.displayName = \"McpServerPrimitive.Status\";\n"],"mappings":";;;;;AAaA,MAAa,2BAA2B,YAGrC,OAAO,QAAQ;CAChB,MAAM,QAAQ,aAAa,MAAM,EAAE,UAAU,eAAe;CAC5D,OACE,oBAAC,UAAU,MAAX;EAAgB,GAAI;EAAY;EAAK,cAAY;YAC9C,MAAM,YAAY;CACL,CAAA;AAEpB,CAAC;AAED,yBAAyB,cAAc"}