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.
- package/README.md +2 -2
- package/api-extracted-package.js +426 -0
- package/build-program.js +120 -0
- package/build-stages.js +664 -0
- package/category-resolver.js +50 -0
- package/code-post-processor.js +38 -0
- package/config-helpers.js +106 -0
- package/config-utils.js +258 -0
- package/content-hash.js +79 -0
- package/errors.js +29 -0
- package/formatter.js +69 -0
- package/hide-cut-transformer.js +96 -0
- package/index.d.ts +901 -831
- package/index.js +4 -6128
- package/layers/ConfigServiceLive.js +377 -0
- package/layers/ObservabilityLive.js +136 -0
- package/layers/PathDerivationServiceLive.js +16 -0
- package/layers/SnapshotServiceLive.js +94 -0
- package/layers/TypeRegistryServiceLive.js +46 -0
- package/llms-processing.js +270 -0
- package/llms-program.js +262 -0
- package/loader.js +186 -0
- package/markdown/cross-linker.js +156 -0
- package/markdown/helpers.js +364 -0
- package/markdown/index.js +11 -0
- package/markdown/page-generators/class-page.js +357 -0
- package/markdown/page-generators/enum-page.js +152 -0
- package/markdown/page-generators/function-page.js +127 -0
- package/markdown/page-generators/index-pages.js +27 -0
- package/markdown/page-generators/interface-page.js +307 -0
- package/markdown/page-generators/namespace-page.js +280 -0
- package/markdown/page-generators/type-alias-page.js +110 -0
- package/markdown/page-generators/variable-page.js +110 -0
- package/markdown/shiki-utils.js +48 -0
- package/migrations/001_create_snapshots.js +25 -0
- package/model-loader.js +95 -0
- package/multi-entry-resolver.js +70 -0
- package/og-resolver.js +271 -0
- package/package.json +64 -73
- package/path-derivation.js +48 -0
- package/plugin.js +218 -0
- package/prettier-formatter.js +73 -0
- package/public/tsconfig/rspress.json +44 -0
- package/remark-api-codeblocks.js +130 -0
- package/remark-with-api.js +172 -0
- package/route-collisions.js +52 -0
- package/runtime/components/ApiExample/index.js +29 -25
- package/runtime/components/ApiLlmsPackageActions/index.js +252 -323
- package/runtime/components/ApiLlmsViewOptions/index.js +269 -340
- package/runtime/components/ApiMember/index.js +49 -47
- package/runtime/components/ApiSignature/index.js +32 -28
- package/runtime/components/EnumMembersTable/{index_module.css → index.css} +18 -19
- package/runtime/components/EnumMembersTable/index.js +36 -67
- package/runtime/components/EnumMembersTable/index.module.js +9 -6
- package/runtime/components/ExampleBlock/{index_module.css → index.css} +2 -3
- package/runtime/components/ExampleBlock/index.js +23 -28
- package/runtime/components/ExampleBlock/index.module.js +8 -5
- package/runtime/components/MarkdownContent/index.js +26 -18
- package/runtime/components/MarkdownText/index.js +28 -22
- package/runtime/components/MemberSignature/{index_module.css → index.css} +5 -6
- package/runtime/components/MemberSignature/index.js +46 -46
- package/runtime/components/MemberSignature/index.module.js +9 -6
- package/runtime/components/ParametersTable/{index_module.css → index.css} +19 -20
- package/runtime/components/ParametersTable/index.js +36 -67
- package/runtime/components/ParametersTable/index.module.js +9 -6
- package/runtime/components/SignatureBlock/{index_module.css → index.css} +5 -6
- package/runtime/components/SignatureBlock/index.js +30 -29
- package/runtime/components/SignatureBlock/index.module.js +9 -6
- package/runtime/components/SignatureCode/{index_module.css → index.css} +9 -10
- package/runtime/components/SignatureCode/index.js +40 -32
- package/runtime/components/SignatureCode/index.module.js +9 -6
- package/runtime/components/SignatureToolbar/{index_module.css → index.css} +18 -20
- package/runtime/components/SignatureToolbar/index.js +48 -51
- package/runtime/components/SignatureToolbar/index.module.js +13 -10
- package/runtime/components/buttons/ButtonGroup.js +13 -6
- package/runtime/components/buttons/CopyCodeButton.js +40 -38
- package/runtime/components/buttons/WrapSignatureButton.js +20 -16
- package/runtime/components/buttons/{index_module.css → index.css} +5 -6
- package/runtime/components/buttons/index.module.js +8 -5
- package/runtime/components/icons/CheckIcon/index.js +20 -17
- package/runtime/components/icons/CopyIcon/index.js +20 -17
- package/runtime/components/icons/UnwrapIcon/index.js +22 -18
- package/runtime/components/icons/WrapIcon/index.js +20 -17
- package/runtime/components/shared/_twoslash.css +3 -10
- package/runtime/components/shared/variables.css +0 -3
- package/runtime/hooks/useWrapToggle.js +32 -9
- package/runtime/index.d.ts +513 -173
- package/runtime/index.js +11 -9
- package/runtime/utils/decode-hast.js +31 -16
- package/runtime/utils/hast-renderer.js +21 -7
- package/schemas/config.js +199 -0
- package/schemas/index.js +5 -0
- package/schemas/opengraph.js +26 -0
- package/schemas/performance.js +19 -0
- package/serve.js +133 -0
- package/services/ConfigService.js +7 -0
- package/services/PathDerivationService.js +7 -0
- package/services/SnapshotService.js +7 -0
- package/services/TypeRegistryService.js +7 -0
- package/shiki-transformer.js +758 -0
- package/tsconfig-parser.js +127 -0
- package/tsdoc-metadata.json +11 -11
- package/twoslash-patterns.js +87 -0
- package/twoslash-transformer.js +316 -0
- package/type-reference-extractor.js +201 -0
- package/typescript-config.js +168 -0
- package/vfs-registry.js +121 -0
- package/0~llms-program.js +0 -344
- 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
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
|
-
|
|
347
|
-
|
|
348
|
-
export { ApiLlmsPackageActions };
|
|
275
|
+
|
|
276
|
+
//#endregion
|
|
277
|
+
export { ApiLlmsPackageActions, ApiLlmsPackageActions as default };
|