rspress-plugin-api-extractor 0.1.2 → 0.2.1

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 (109) hide show
  1. package/README.md +2 -2
  2. package/api-extracted-package.js +426 -0
  3. package/build-program.js +120 -0
  4. package/build-stages.js +664 -0
  5. package/category-resolver.js +50 -0
  6. package/code-post-processor.js +38 -0
  7. package/config-helpers.js +106 -0
  8. package/config-utils.js +258 -0
  9. package/content-hash.js +79 -0
  10. package/errors.js +29 -0
  11. package/formatter.js +69 -0
  12. package/hide-cut-transformer.js +96 -0
  13. package/index.d.ts +901 -831
  14. package/index.js +4 -6128
  15. package/layers/ConfigServiceLive.js +377 -0
  16. package/layers/ObservabilityLive.js +136 -0
  17. package/layers/PathDerivationServiceLive.js +16 -0
  18. package/layers/SnapshotServiceLive.js +94 -0
  19. package/layers/TypeRegistryServiceLive.js +46 -0
  20. package/llms-processing.js +270 -0
  21. package/llms-program.js +262 -0
  22. package/loader.js +186 -0
  23. package/markdown/cross-linker.js +156 -0
  24. package/markdown/helpers.js +364 -0
  25. package/markdown/index.js +11 -0
  26. package/markdown/page-generators/class-page.js +357 -0
  27. package/markdown/page-generators/enum-page.js +152 -0
  28. package/markdown/page-generators/function-page.js +127 -0
  29. package/markdown/page-generators/index-pages.js +27 -0
  30. package/markdown/page-generators/interface-page.js +307 -0
  31. package/markdown/page-generators/namespace-page.js +280 -0
  32. package/markdown/page-generators/type-alias-page.js +110 -0
  33. package/markdown/page-generators/variable-page.js +110 -0
  34. package/markdown/shiki-utils.js +48 -0
  35. package/migrations/001_create_snapshots.js +25 -0
  36. package/model-loader.js +95 -0
  37. package/multi-entry-resolver.js +70 -0
  38. package/og-resolver.js +271 -0
  39. package/package.json +64 -73
  40. package/path-derivation.js +48 -0
  41. package/plugin.js +218 -0
  42. package/prettier-formatter.js +73 -0
  43. package/public/tsconfig/rspress.json +44 -0
  44. package/remark-api-codeblocks.js +130 -0
  45. package/remark-with-api.js +172 -0
  46. package/route-collisions.js +52 -0
  47. package/runtime/components/ApiExample/index.js +29 -25
  48. package/runtime/components/ApiLlmsPackageActions/index.js +252 -323
  49. package/runtime/components/ApiLlmsViewOptions/index.js +269 -340
  50. package/runtime/components/ApiMember/index.js +49 -47
  51. package/runtime/components/ApiSignature/index.js +32 -28
  52. package/runtime/components/EnumMembersTable/{index_module.css → index.css} +18 -19
  53. package/runtime/components/EnumMembersTable/index.js +36 -67
  54. package/runtime/components/EnumMembersTable/index.module.js +9 -6
  55. package/runtime/components/ExampleBlock/{index_module.css → index.css} +2 -3
  56. package/runtime/components/ExampleBlock/index.js +23 -28
  57. package/runtime/components/ExampleBlock/index.module.js +8 -5
  58. package/runtime/components/MarkdownContent/index.js +26 -18
  59. package/runtime/components/MarkdownText/index.js +28 -22
  60. package/runtime/components/MemberSignature/{index_module.css → index.css} +5 -6
  61. package/runtime/components/MemberSignature/index.js +46 -46
  62. package/runtime/components/MemberSignature/index.module.js +9 -6
  63. package/runtime/components/ParametersTable/{index_module.css → index.css} +19 -20
  64. package/runtime/components/ParametersTable/index.js +36 -67
  65. package/runtime/components/ParametersTable/index.module.js +9 -6
  66. package/runtime/components/SignatureBlock/{index_module.css → index.css} +5 -6
  67. package/runtime/components/SignatureBlock/index.js +30 -29
  68. package/runtime/components/SignatureBlock/index.module.js +9 -6
  69. package/runtime/components/SignatureCode/{index_module.css → index.css} +9 -10
  70. package/runtime/components/SignatureCode/index.js +40 -32
  71. package/runtime/components/SignatureCode/index.module.js +9 -6
  72. package/runtime/components/SignatureToolbar/{index_module.css → index.css} +18 -20
  73. package/runtime/components/SignatureToolbar/index.js +48 -51
  74. package/runtime/components/SignatureToolbar/index.module.js +13 -10
  75. package/runtime/components/buttons/ButtonGroup.js +13 -6
  76. package/runtime/components/buttons/CopyCodeButton.js +40 -38
  77. package/runtime/components/buttons/WrapSignatureButton.js +20 -16
  78. package/runtime/components/buttons/{index_module.css → index.css} +5 -6
  79. package/runtime/components/buttons/index.module.js +8 -5
  80. package/runtime/components/icons/CheckIcon/index.js +20 -17
  81. package/runtime/components/icons/CopyIcon/index.js +20 -17
  82. package/runtime/components/icons/UnwrapIcon/index.js +22 -18
  83. package/runtime/components/icons/WrapIcon/index.js +20 -17
  84. package/runtime/components/shared/_twoslash.css +3 -10
  85. package/runtime/components/shared/variables.css +0 -3
  86. package/runtime/hooks/useWrapToggle.js +32 -9
  87. package/runtime/index.d.ts +513 -173
  88. package/runtime/index.js +11 -9
  89. package/runtime/utils/decode-hast.js +31 -16
  90. package/runtime/utils/hast-renderer.js +21 -7
  91. package/schemas/config.js +199 -0
  92. package/schemas/index.js +5 -0
  93. package/schemas/opengraph.js +26 -0
  94. package/schemas/performance.js +19 -0
  95. package/serve.js +133 -0
  96. package/services/ConfigService.js +7 -0
  97. package/services/PathDerivationService.js +7 -0
  98. package/services/SnapshotService.js +7 -0
  99. package/services/TypeRegistryService.js +7 -0
  100. package/shiki-transformer.js +758 -0
  101. package/tsconfig-parser.js +127 -0
  102. package/tsdoc-metadata.json +11 -11
  103. package/twoslash-patterns.js +87 -0
  104. package/twoslash-transformer.js +316 -0
  105. package/type-reference-extractor.js +201 -0
  106. package/typescript-config.js +168 -0
  107. package/vfs-registry.js +121 -0
  108. package/0~llms-program.js +0 -344
  109. package/runtime/components/ApiLlmsPackageActions/index.module.js +0 -2
@@ -1,348 +1,277 @@
1
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
1
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
3
  import { usePage, useSite } from "@rspress/core/runtime";
3
- import { useCallback, useEffect, useMemo, useRef, useState } from "react";
4
4
  import { createPortal } from "react-dom";
5
+
6
+ //#region src/runtime/components/ApiLlmsPackageActions/index.tsx
5
7
  function resolveUrl(urlPath) {
6
- if ("u" < typeof window) return urlPath;
7
- if (urlPath.startsWith("http://") || urlPath.startsWith("https://")) return urlPath;
8
- return `${window.location.origin}${urlPath}`;
8
+ if (typeof window === "undefined") return urlPath;
9
+ if (urlPath.startsWith("http://") || urlPath.startsWith("https://")) return urlPath;
10
+ return `${window.location.origin}${urlPath}`;
9
11
  }
10
12
  function findMatchingScope(pathname, scopes) {
11
- const sorted = [
12
- ...scopes
13
- ].sort((a, b)=>b.packageRoute.length - a.packageRoute.length);
14
- for (const scope of sorted){
15
- const base = scope.packageRoute.endsWith("/") ? scope.packageRoute : `${scope.packageRoute}/`;
16
- if (pathname === scope.packageRoute || pathname.startsWith(base)) return scope;
17
- }
18
- return null;
13
+ const sorted = [...scopes].sort((a, b) => b.packageRoute.length - a.packageRoute.length);
14
+ for (const scope of sorted) {
15
+ const base = scope.packageRoute.endsWith("/") ? scope.packageRoute : `${scope.packageRoute}/`;
16
+ if (pathname === scope.packageRoute || pathname.startsWith(base)) return scope;
17
+ }
18
+ return null;
19
19
  }
20
20
  async function copyToClipboard(text) {
21
- await navigator.clipboard.writeText(text);
21
+ await navigator.clipboard.writeText(text);
22
22
  }
23
+ /**
24
+ * Package-scoped LLM actions injected via React portals into RSPress's
25
+ * existing LLMs UI containers. Adds package-level copy/open actions
26
+ * alongside the default page-level options.
27
+ *
28
+ * For outline mode: injects rows into .rp-outline__bottom
29
+ * For title mode: injects a dropdown into .rp-llms-container
30
+ */
23
31
  function ApiLlmsPackageActions() {
24
- const { site } = useSite();
25
- const { page } = usePage();
26
- const [outlineTarget, setOutlineTarget] = useState(null);
27
- const scopes = useMemo(()=>{
28
- if (import.meta.env.SSG_MD) return [];
29
- const tc = site?.themeConfig;
30
- return tc?.apiExtractorScopes ?? [];
31
- }, [
32
- site
33
- ]);
34
- const activeScope = useMemo(()=>findMatchingScope(page.routePath, scopes), [
35
- page.routePath,
36
- scopes
37
- ]);
38
- const placement = useMemo(()=>{
39
- const llmsUI = site?.themeConfig?.llmsUI;
40
- return "object" == typeof llmsUI ? llmsUI?.placement ?? "title" : "title";
41
- }, [
42
- site
43
- ]);
44
- useEffect(()=>{
45
- if (import.meta.env.SSG_MD || !activeScope) return void setOutlineTarget(null);
46
- if ("outline" !== placement) return;
47
- const timer = setTimeout(()=>{
48
- setOutlineTarget(document.querySelector(".rp-outline__bottom"));
49
- }, 100);
50
- return ()=>clearTimeout(timer);
51
- }, [
52
- activeScope,
53
- placement,
54
- page.routePath
55
- ]);
56
- if (import.meta.env.SSG_MD || !activeScope) return null;
57
- if ("outline" === placement && outlineTarget) return /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx(OutlinePackageActions, {
58
- scope: activeScope
59
- }), outlineTarget);
60
- return null;
32
+ const { site } = useSite();
33
+ const { page } = usePage();
34
+ const [outlineTarget, setOutlineTarget] = useState(null);
35
+ const scopes = useMemo(() => {
36
+ if (import.meta.env.SSG_MD) return [];
37
+ return (site?.themeConfig)?.apiExtractorScopes ?? [];
38
+ }, [site]);
39
+ const activeScope = useMemo(() => findMatchingScope(page.routePath, scopes), [page.routePath, scopes]);
40
+ const placement = useMemo(() => {
41
+ const llmsUI = site?.themeConfig?.llmsUI;
42
+ return typeof llmsUI === "object" ? llmsUI?.placement ?? "title" : "title";
43
+ }, [site]);
44
+ useEffect(() => {
45
+ if (import.meta.env.SSG_MD || !activeScope) {
46
+ setOutlineTarget(null);
47
+ return;
48
+ }
49
+ if (placement !== "outline") return;
50
+ const timer = setTimeout(() => {
51
+ setOutlineTarget(document.querySelector(".rp-outline__bottom"));
52
+ }, 100);
53
+ return () => clearTimeout(timer);
54
+ }, [
55
+ activeScope,
56
+ placement,
57
+ page.routePath
58
+ ]);
59
+ if (import.meta.env.SSG_MD || !activeScope) return null;
60
+ if (placement === "outline" && outlineTarget) return createPortal(/* @__PURE__ */ jsx(OutlinePackageActions, { scope: activeScope }), outlineTarget);
61
+ return null;
61
62
  }
62
63
  function OutlinePackageActions({ scope }) {
63
- const [copyFeedback, setCopyFeedback] = useState(null);
64
- const [isOpenMenuOpen, setIsOpenMenuOpen] = useState(false);
65
- const wrapperRef = useRef(null);
66
- useEffect(()=>{
67
- if (!isOpenMenuOpen) return;
68
- const handleClick = (e)=>{
69
- if (wrapperRef.current && !wrapperRef.current.contains(e.target)) setIsOpenMenuOpen(false);
70
- };
71
- document.addEventListener("mousedown", handleClick);
72
- return ()=>document.removeEventListener("mousedown", handleClick);
73
- }, [
74
- isOpenMenuOpen
75
- ]);
76
- const handleCopyDocs = useCallback(async ()=>{
77
- try {
78
- const url = resolveUrl(scope.llmsDocsTxt);
79
- const response = await fetch(url);
80
- const text = await response.text();
81
- await copyToClipboard(text);
82
- setCopyFeedback("Copied!");
83
- setTimeout(()=>setCopyFeedback(null), 1500);
84
- } catch {
85
- setCopyFeedback("Failed");
86
- setTimeout(()=>setCopyFeedback(null), 1500);
87
- }
88
- }, [
89
- scope
90
- ]);
91
- const handleCopyLink = useCallback(async (urlPath)=>{
92
- try {
93
- await copyToClipboard(resolveUrl(urlPath));
94
- setCopyFeedback("Copied!");
95
- setTimeout(()=>setCopyFeedback(null), 1500);
96
- } catch {
97
- setCopyFeedback("Failed");
98
- setTimeout(()=>setCopyFeedback(null), 1500);
99
- }
100
- }, []);
101
- const llmsTxtUrl = resolveUrl(scope.llmsTxt);
102
- const q = `Read ${llmsTxtUrl}, I want to ask questions about the ${scope.name} package.`;
103
- return /*#__PURE__*/ jsxs(Fragment, {
104
- children: [
105
- /*#__PURE__*/ jsxs("button", {
106
- type: "button",
107
- className: "rp-outline__action-row",
108
- onClick: handleCopyDocs,
109
- children: [
110
- /*#__PURE__*/ jsx(CopyIcon, {}),
111
- /*#__PURE__*/ jsx("span", {
112
- children: copyFeedback ?? `Copy ${scope.name} docs`
113
- })
114
- ]
115
- }),
116
- /*#__PURE__*/ jsxs("button", {
117
- type: "button",
118
- className: "rp-outline__action-row",
119
- onClick: ()=>handleCopyLink(scope.llmsTxt),
120
- children: [
121
- /*#__PURE__*/ jsx(LinkIcon, {}),
122
- /*#__PURE__*/ jsx("span", {
123
- children: "Copy llms.txt link"
124
- })
125
- ]
126
- }),
127
- /*#__PURE__*/ jsxs("div", {
128
- ref: wrapperRef,
129
- className: "rp-outline__open-in-wrapper",
130
- children: [
131
- /*#__PURE__*/ jsxs("button", {
132
- type: "button",
133
- className: "rp-outline__action-row",
134
- onClick: ()=>setIsOpenMenuOpen(!isOpenMenuOpen),
135
- children: [
136
- /*#__PURE__*/ jsx(ExternalLinkIcon, {}),
137
- /*#__PURE__*/ jsxs("span", {
138
- children: [
139
- "Open ",
140
- scope.name,
141
- " in chat"
142
- ]
143
- })
144
- ]
145
- }),
146
- isOpenMenuOpen && /*#__PURE__*/ jsxs("div", {
147
- className: "rp-llms-view-options__menu",
148
- children: [
149
- /*#__PURE__*/ jsxs("a", {
150
- className: "rp-llms-view-options__menu-item",
151
- href: `https://chatgpt.com/?${new URLSearchParams({
152
- hints: "search",
153
- q
154
- })}`,
155
- target: "_blank",
156
- rel: "noopener noreferrer",
157
- onClick: ()=>setIsOpenMenuOpen(false),
158
- children: [
159
- /*#__PURE__*/ jsx("span", {
160
- className: "rp-llms-view-options__item-icon",
161
- children: /*#__PURE__*/ jsx(ChatGPTIcon, {})
162
- }),
163
- /*#__PURE__*/ jsx("span", {
164
- children: "Open in ChatGPT"
165
- }),
166
- /*#__PURE__*/ jsx("span", {
167
- className: "rp-llms-view-options__external-icon",
168
- children: /*#__PURE__*/ jsx(ExternalLinkSmallIcon, {})
169
- })
170
- ]
171
- }),
172
- /*#__PURE__*/ jsxs("a", {
173
- className: "rp-llms-view-options__menu-item",
174
- href: `https://claude.ai/new?${new URLSearchParams({
175
- q
176
- })}`,
177
- target: "_blank",
178
- rel: "noopener noreferrer",
179
- onClick: ()=>setIsOpenMenuOpen(false),
180
- children: [
181
- /*#__PURE__*/ jsx("span", {
182
- className: "rp-llms-view-options__item-icon",
183
- children: /*#__PURE__*/ jsx(ClaudeIcon, {})
184
- }),
185
- /*#__PURE__*/ jsx("span", {
186
- children: "Open in Claude"
187
- }),
188
- /*#__PURE__*/ jsx("span", {
189
- className: "rp-llms-view-options__external-icon",
190
- children: /*#__PURE__*/ jsx(ExternalLinkSmallIcon, {})
191
- })
192
- ]
193
- })
194
- ]
195
- })
196
- ]
197
- })
198
- ]
199
- });
64
+ const [copyFeedback, setCopyFeedback] = useState(null);
65
+ const [isOpenMenuOpen, setIsOpenMenuOpen] = useState(false);
66
+ const wrapperRef = useRef(null);
67
+ useEffect(() => {
68
+ if (!isOpenMenuOpen) return;
69
+ const handleClick = (e) => {
70
+ if (wrapperRef.current && !wrapperRef.current.contains(e.target)) setIsOpenMenuOpen(false);
71
+ };
72
+ document.addEventListener("mousedown", handleClick);
73
+ return () => document.removeEventListener("mousedown", handleClick);
74
+ }, [isOpenMenuOpen]);
75
+ const handleCopyDocs = useCallback(async () => {
76
+ try {
77
+ const url = resolveUrl(scope.llmsDocsTxt);
78
+ await copyToClipboard(await (await fetch(url)).text());
79
+ setCopyFeedback("Copied!");
80
+ setTimeout(() => setCopyFeedback(null), 1500);
81
+ } catch {
82
+ setCopyFeedback("Failed");
83
+ setTimeout(() => setCopyFeedback(null), 1500);
84
+ }
85
+ }, [scope]);
86
+ const handleCopyLink = useCallback(async (urlPath) => {
87
+ try {
88
+ await copyToClipboard(resolveUrl(urlPath));
89
+ setCopyFeedback("Copied!");
90
+ setTimeout(() => setCopyFeedback(null), 1500);
91
+ } catch {
92
+ setCopyFeedback("Failed");
93
+ setTimeout(() => setCopyFeedback(null), 1500);
94
+ }
95
+ }, []);
96
+ const q = `Read ${resolveUrl(scope.llmsTxt)}, I want to ask questions about the ${scope.name} package.`;
97
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
98
+ /* @__PURE__ */ jsxs("button", {
99
+ type: "button",
100
+ className: "rp-outline__action-row",
101
+ onClick: handleCopyDocs,
102
+ children: [/* @__PURE__ */ jsx(CopyIcon, {}), /* @__PURE__ */ jsx("span", { children: copyFeedback ?? `Copy ${scope.name} docs` })]
103
+ }),
104
+ /* @__PURE__ */ jsxs("button", {
105
+ type: "button",
106
+ className: "rp-outline__action-row",
107
+ onClick: () => handleCopyLink(scope.llmsTxt),
108
+ children: [/* @__PURE__ */ jsx(LinkIcon, {}), /* @__PURE__ */ jsx("span", { children: "Copy llms.txt link" })]
109
+ }),
110
+ /* @__PURE__ */ jsxs("div", {
111
+ ref: wrapperRef,
112
+ className: "rp-outline__open-in-wrapper",
113
+ children: [/* @__PURE__ */ jsxs("button", {
114
+ type: "button",
115
+ className: "rp-outline__action-row",
116
+ onClick: () => setIsOpenMenuOpen(!isOpenMenuOpen),
117
+ children: [/* @__PURE__ */ jsx(ExternalLinkIcon, {}), /* @__PURE__ */ jsxs("span", { children: [
118
+ "Open ",
119
+ scope.name,
120
+ " in chat"
121
+ ] })]
122
+ }), isOpenMenuOpen && /* @__PURE__ */ jsxs("div", {
123
+ className: "rp-llms-view-options__menu",
124
+ children: [/* @__PURE__ */ jsxs("a", {
125
+ className: "rp-llms-view-options__menu-item",
126
+ href: `https://chatgpt.com/?${new URLSearchParams({
127
+ hints: "search",
128
+ q
129
+ })}`,
130
+ target: "_blank",
131
+ rel: "noopener noreferrer",
132
+ onClick: () => setIsOpenMenuOpen(false),
133
+ children: [
134
+ /* @__PURE__ */ jsx("span", {
135
+ className: "rp-llms-view-options__item-icon",
136
+ children: /* @__PURE__ */ jsx(ChatGPTIcon, {})
137
+ }),
138
+ /* @__PURE__ */ jsx("span", { children: "Open in ChatGPT" }),
139
+ /* @__PURE__ */ jsx("span", {
140
+ className: "rp-llms-view-options__external-icon",
141
+ children: /* @__PURE__ */ jsx(ExternalLinkSmallIcon, {})
142
+ })
143
+ ]
144
+ }), /* @__PURE__ */ jsxs("a", {
145
+ className: "rp-llms-view-options__menu-item",
146
+ href: `https://claude.ai/new?${new URLSearchParams({ q })}`,
147
+ target: "_blank",
148
+ rel: "noopener noreferrer",
149
+ onClick: () => setIsOpenMenuOpen(false),
150
+ children: [
151
+ /* @__PURE__ */ jsx("span", {
152
+ className: "rp-llms-view-options__item-icon",
153
+ children: /* @__PURE__ */ jsx(ClaudeIcon, {})
154
+ }),
155
+ /* @__PURE__ */ jsx("span", { children: "Open in Claude" }),
156
+ /* @__PURE__ */ jsx("span", {
157
+ className: "rp-llms-view-options__external-icon",
158
+ children: /* @__PURE__ */ jsx(ExternalLinkSmallIcon, {})
159
+ })
160
+ ]
161
+ })]
162
+ })]
163
+ })
164
+ ] });
200
165
  }
201
166
  function CopyIcon() {
202
- return /*#__PURE__*/ jsxs("svg", {
203
- width: 16,
204
- height: 16,
205
- viewBox: "0 0 24 24",
206
- fill: "none",
207
- stroke: "currentColor",
208
- strokeWidth: 2,
209
- strokeLinecap: "round",
210
- strokeLinejoin: "round",
211
- children: [
212
- /*#__PURE__*/ jsx("title", {
213
- children: "Copy"
214
- }),
215
- /*#__PURE__*/ jsx("rect", {
216
- x: 9,
217
- y: 9,
218
- width: 13,
219
- height: 13,
220
- rx: 2,
221
- ry: 2
222
- }),
223
- /*#__PURE__*/ jsx("path", {
224
- d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
225
- })
226
- ]
227
- });
167
+ return /* @__PURE__ */ jsxs("svg", {
168
+ width: 16,
169
+ height: 16,
170
+ viewBox: "0 0 24 24",
171
+ fill: "none",
172
+ stroke: "currentColor",
173
+ strokeWidth: 2,
174
+ strokeLinecap: "round",
175
+ strokeLinejoin: "round",
176
+ children: [
177
+ /* @__PURE__ */ jsx("title", { children: "Copy" }),
178
+ /* @__PURE__ */ jsx("rect", {
179
+ x: 9,
180
+ y: 9,
181
+ width: 13,
182
+ height: 13,
183
+ rx: 2,
184
+ ry: 2
185
+ }),
186
+ /* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
187
+ ]
188
+ });
228
189
  }
229
190
  function LinkIcon() {
230
- return /*#__PURE__*/ jsxs("svg", {
231
- width: 16,
232
- height: 16,
233
- viewBox: "0 0 24 24",
234
- fill: "none",
235
- stroke: "currentColor",
236
- strokeWidth: 2,
237
- strokeLinecap: "round",
238
- strokeLinejoin: "round",
239
- children: [
240
- /*#__PURE__*/ jsx("title", {
241
- children: "Link"
242
- }),
243
- /*#__PURE__*/ jsx("path", {
244
- d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
245
- }),
246
- /*#__PURE__*/ jsx("path", {
247
- d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"
248
- })
249
- ]
250
- });
191
+ return /* @__PURE__ */ jsxs("svg", {
192
+ width: 16,
193
+ height: 16,
194
+ viewBox: "0 0 24 24",
195
+ fill: "none",
196
+ stroke: "currentColor",
197
+ strokeWidth: 2,
198
+ strokeLinecap: "round",
199
+ strokeLinejoin: "round",
200
+ children: [
201
+ /* @__PURE__ */ jsx("title", { children: "Link" }),
202
+ /* @__PURE__ */ jsx("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }),
203
+ /* @__PURE__ */ jsx("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })
204
+ ]
205
+ });
251
206
  }
252
207
  function ExternalLinkIcon() {
253
- return /*#__PURE__*/ jsxs("svg", {
254
- width: 16,
255
- height: 16,
256
- viewBox: "0 0 24 24",
257
- fill: "none",
258
- stroke: "currentColor",
259
- strokeWidth: 2,
260
- strokeLinecap: "round",
261
- strokeLinejoin: "round",
262
- children: [
263
- /*#__PURE__*/ jsx("title", {
264
- children: "External link"
265
- }),
266
- /*#__PURE__*/ jsx("path", {
267
- d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
268
- }),
269
- /*#__PURE__*/ jsx("polyline", {
270
- points: "15 3 21 3 21 9"
271
- }),
272
- /*#__PURE__*/ jsx("line", {
273
- x1: 10,
274
- y1: 14,
275
- x2: 21,
276
- y2: 3
277
- })
278
- ]
279
- });
208
+ return /* @__PURE__ */ jsxs("svg", {
209
+ width: 16,
210
+ height: 16,
211
+ viewBox: "0 0 24 24",
212
+ fill: "none",
213
+ stroke: "currentColor",
214
+ strokeWidth: 2,
215
+ strokeLinecap: "round",
216
+ strokeLinejoin: "round",
217
+ children: [
218
+ /* @__PURE__ */ jsx("title", { children: "External link" }),
219
+ /* @__PURE__ */ jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
220
+ /* @__PURE__ */ jsx("polyline", { points: "15 3 21 3 21 9" }),
221
+ /* @__PURE__ */ jsx("line", {
222
+ x1: 10,
223
+ y1: 14,
224
+ x2: 21,
225
+ y2: 3
226
+ })
227
+ ]
228
+ });
280
229
  }
281
230
  function ExternalLinkSmallIcon() {
282
- return /*#__PURE__*/ jsxs("svg", {
283
- width: 12,
284
- height: 12,
285
- viewBox: "0 0 24 24",
286
- fill: "none",
287
- stroke: "currentColor",
288
- strokeWidth: 2,
289
- strokeLinecap: "round",
290
- strokeLinejoin: "round",
291
- children: [
292
- /*#__PURE__*/ jsx("title", {
293
- children: "External link"
294
- }),
295
- /*#__PURE__*/ jsx("path", {
296
- d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
297
- }),
298
- /*#__PURE__*/ jsx("polyline", {
299
- points: "15 3 21 3 21 9"
300
- }),
301
- /*#__PURE__*/ jsx("line", {
302
- x1: 10,
303
- y1: 14,
304
- x2: 21,
305
- y2: 3
306
- })
307
- ]
308
- });
231
+ return /* @__PURE__ */ jsxs("svg", {
232
+ width: 12,
233
+ height: 12,
234
+ viewBox: "0 0 24 24",
235
+ fill: "none",
236
+ stroke: "currentColor",
237
+ strokeWidth: 2,
238
+ strokeLinecap: "round",
239
+ strokeLinejoin: "round",
240
+ children: [
241
+ /* @__PURE__ */ jsx("title", { children: "External link" }),
242
+ /* @__PURE__ */ jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
243
+ /* @__PURE__ */ jsx("polyline", { points: "15 3 21 3 21 9" }),
244
+ /* @__PURE__ */ jsx("line", {
245
+ x1: 10,
246
+ y1: 14,
247
+ x2: 21,
248
+ y2: 3
249
+ })
250
+ ]
251
+ });
309
252
  }
310
253
  function ChatGPTIcon() {
311
- return /*#__PURE__*/ jsxs("svg", {
312
- role: "img",
313
- viewBox: "0 0 24 24",
314
- fill: "currentColor",
315
- xmlns: "http://www.w3.org/2000/svg",
316
- width: 16,
317
- height: 16,
318
- children: [
319
- /*#__PURE__*/ jsx("title", {
320
- children: "ChatGPT"
321
- }),
322
- /*#__PURE__*/ jsx("path", {
323
- d: "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"
324
- })
325
- ]
326
- });
254
+ return /* @__PURE__ */ jsxs("svg", {
255
+ role: "img",
256
+ viewBox: "0 0 24 24",
257
+ fill: "currentColor",
258
+ xmlns: "http://www.w3.org/2000/svg",
259
+ width: 16,
260
+ height: 16,
261
+ children: [/* @__PURE__ */ jsx("title", { children: "ChatGPT" }), /* @__PURE__ */ jsx("path", { d: "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" })]
262
+ });
327
263
  }
328
264
  function ClaudeIcon() {
329
- return /*#__PURE__*/ jsxs("svg", {
330
- fill: "currentColor",
331
- role: "img",
332
- viewBox: "0 0 24 24",
333
- xmlns: "http://www.w3.org/2000/svg",
334
- width: 16,
335
- height: 16,
336
- children: [
337
- /*#__PURE__*/ jsx("title", {
338
- children: "Anthropic"
339
- }),
340
- /*#__PURE__*/ jsx("path", {
341
- d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"
342
- })
343
- ]
344
- });
265
+ return /* @__PURE__ */ jsxs("svg", {
266
+ fill: "currentColor",
267
+ role: "img",
268
+ viewBox: "0 0 24 24",
269
+ xmlns: "http://www.w3.org/2000/svg",
270
+ width: 16,
271
+ height: 16,
272
+ children: [/* @__PURE__ */ jsx("title", { children: "Anthropic" }), /* @__PURE__ */ jsx("path", { d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z" })]
273
+ });
345
274
  }
346
- const components_ApiLlmsPackageActions = ApiLlmsPackageActions;
347
- export default components_ApiLlmsPackageActions;
348
- export { ApiLlmsPackageActions };
275
+
276
+ //#endregion
277
+ export { ApiLlmsPackageActions, ApiLlmsPackageActions as default };