@stainless-api/docs 0.1.0-beta.78 → 0.1.0-beta.79
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/CHANGELOG.md +17 -0
- package/package.json +4 -4
- package/plugin/assets/languages/cli.svg +14 -0
- package/plugin/components/RequestBuilder/ParamEditor.tsx +55 -0
- package/plugin/components/RequestBuilder/SnippetStainlessIsland.tsx +107 -0
- package/plugin/components/RequestBuilder/index.tsx +31 -0
- package/plugin/components/RequestBuilder/props.ts +9 -0
- package/plugin/components/RequestBuilder/spec-helpers.ts +50 -0
- package/plugin/components/RequestBuilder/styles.css +67 -0
- package/plugin/components/SnippetCode.tsx +64 -40
- package/plugin/components/StainlessIslands.tsx +126 -0
- package/plugin/index.ts +1 -0
- package/plugin/languages.ts +2 -0
- package/plugin/loadPluginConfig.ts +4 -0
- package/plugin/react/Routing.tsx +5 -3
- package/plugin/routes/Docs.astro +9 -1
- package/plugin/vendor/preview.worker.docs.js +8292 -7260
- package/stl-docs/index.ts +3 -0
- package/styles/code.css +11 -0
- package/virtual-module.d.ts +1 -0
package/stl-docs/index.ts
CHANGED
|
@@ -208,9 +208,12 @@ function stainlessDocsIntegration(
|
|
|
208
208
|
optimizeDeps: {
|
|
209
209
|
include: config.aiChat
|
|
210
210
|
? [
|
|
211
|
+
'@stainless-api/docs-ai-chat > lucide-react',
|
|
211
212
|
'@stainless-api/docs-ai-chat > motion',
|
|
213
|
+
'@stainless-api/docs-ai-chat > motion > framer-motion',
|
|
212
214
|
'@stainless-api/docs-ai-chat > react-markdown',
|
|
213
215
|
'@stainless-api/docs-ai-chat > react-syntax-highlighter',
|
|
216
|
+
'@stainless-api/docs-ai-chat > remark-gfm',
|
|
214
217
|
]
|
|
215
218
|
: [],
|
|
216
219
|
},
|
package/styles/code.css
CHANGED
|
@@ -168,3 +168,14 @@
|
|
|
168
168
|
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
.stldocs-snippet .stldocs-snippet-footer.try-it-footer {
|
|
173
|
+
display: flex;
|
|
174
|
+
justify-content: flex-end;
|
|
175
|
+
gap: 0.5rem;
|
|
176
|
+
|
|
177
|
+
.try-it-button,
|
|
178
|
+
.send-button {
|
|
179
|
+
width: 7rem;
|
|
180
|
+
}
|
|
181
|
+
}
|
package/virtual-module.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ declare module 'virtual:stl-starlight-virtual-module' {
|
|
|
114
114
|
export const EXPERIMENTAL_COLLAPSIBLE_SNIPPETS: boolean | undefined;
|
|
115
115
|
export const EXPERIMENTAL_COLLAPSIBLE_METHOD_DESCRIPTIONS: boolean | undefined;
|
|
116
116
|
export const EXPERIMENTAL_PLAYGROUNDS: boolean | undefined;
|
|
117
|
+
export const EXPERIMENTAL_REQUEST_BUILDER: boolean | undefined;
|
|
117
118
|
export const PROPERTY_SETTINGS: PropertySettingsType;
|
|
118
119
|
export const MIDDLEWARE: StlStarlightMiddleware;
|
|
119
120
|
export const ENABLE_CONTEXT_MENU: boolean;
|