@stainless-api/docs 0.1.0-beta.11 → 0.1.0-beta.111

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 (150) hide show
  1. package/CHANGELOG.md +931 -0
  2. package/eslint-suppressions.json +27 -0
  3. package/locals.d.ts +17 -0
  4. package/package.json +50 -41
  5. package/playground-virtual-modules.d.ts +96 -0
  6. package/plugin/assets/languages/cli.svg +14 -0
  7. package/plugin/assets/languages/csharp.svg +1 -0
  8. package/plugin/assets/languages/php.svg +4 -0
  9. package/plugin/buildAlgoliaIndex.ts +40 -39
  10. package/plugin/components/MethodDescription.tsx +54 -0
  11. package/plugin/components/RequestBuilder/ParamEditor.tsx +55 -0
  12. package/plugin/components/RequestBuilder/SnippetStainlessIsland.tsx +107 -0
  13. package/plugin/components/RequestBuilder/index.tsx +37 -0
  14. package/plugin/components/RequestBuilder/props.ts +9 -0
  15. package/plugin/components/RequestBuilder/spec-helpers.ts +47 -0
  16. package/plugin/components/RequestBuilder/styles.css +67 -0
  17. package/plugin/components/SDKSelect.astro +18 -111
  18. package/plugin/components/SnippetCode.tsx +110 -68
  19. package/plugin/components/StainlessIslands.tsx +126 -0
  20. package/plugin/components/search/SearchAlgolia.astro +46 -29
  21. package/plugin/components/search/SearchIsland.tsx +47 -29
  22. package/plugin/generateAPIReferenceLink.ts +2 -2
  23. package/plugin/globalJs/ai-dropdown-options.ts +243 -0
  24. package/plugin/globalJs/code-snippets.ts +40 -11
  25. package/plugin/globalJs/copy.ts +95 -17
  26. package/plugin/globalJs/create-playground.shim.ts +3 -0
  27. package/plugin/globalJs/method-descriptions.ts +33 -0
  28. package/plugin/globalJs/navigation.ts +12 -32
  29. package/plugin/globalJs/playground-data.shim.ts +1 -0
  30. package/plugin/globalJs/playground-data.ts +14 -0
  31. package/plugin/globalJs/summary-selection-tweak.ts +29 -0
  32. package/plugin/helpers/generateDocsRoutes.ts +59 -0
  33. package/plugin/helpers/multiSpec.ts +8 -0
  34. package/plugin/index.ts +304 -138
  35. package/plugin/languages.ts +8 -2
  36. package/plugin/loadPluginConfig.ts +251 -107
  37. package/plugin/middlewareBuilder/stainlessMiddleware.d.ts +3 -1
  38. package/plugin/react/Routing.tsx +212 -141
  39. package/plugin/referencePlaceholderUtils.ts +18 -15
  40. package/plugin/replaceSidebarPlaceholderMiddleware.ts +38 -34
  41. package/plugin/routes/Docs.astro +71 -111
  42. package/plugin/routes/DocsStatic.astro +6 -5
  43. package/plugin/routes/Overview.astro +45 -21
  44. package/plugin/routes/markdown.ts +13 -12
  45. package/plugin/{cms → sidebar-utils}/sidebar-builder.ts +49 -60
  46. package/plugin/specs/FileCache.ts +99 -0
  47. package/plugin/specs/fetchSpecSSR.ts +27 -0
  48. package/plugin/specs/generateSpec.ts +112 -0
  49. package/plugin/specs/index.ts +132 -0
  50. package/plugin/specs/inputResolver.ts +146 -0
  51. package/plugin/{cms → specs}/worker.ts +82 -5
  52. package/plugin/vendor/preview.worker.docs.js +27303 -18260
  53. package/plugin/vendor/templates/cli.md +1 -0
  54. package/plugin/vendor/templates/go.md +4 -2
  55. package/plugin/vendor/templates/java.md +5 -1
  56. package/plugin/vendor/templates/kotlin.md +5 -1
  57. package/plugin/vendor/templates/node.md +4 -2
  58. package/plugin/vendor/templates/python.md +4 -2
  59. package/plugin/vendor/templates/ruby.md +4 -2
  60. package/plugin/vendor/templates/terraform.md +1 -1
  61. package/plugin/vendor/templates/typescript.md +3 -1
  62. package/resolveSrcFile.ts +10 -0
  63. package/scripts/vendor_deps.ts +5 -5
  64. package/shared/conditionalIntegration.ts +28 -0
  65. package/shared/getProsePages.ts +41 -0
  66. package/shared/getSharedLogger.ts +15 -0
  67. package/shared/terminalUtils.ts +3 -0
  68. package/shared/virtualModule.ts +54 -1
  69. package/src/content.config.ts +9 -0
  70. package/stl-docs/components/AIDropdown.tsx +63 -0
  71. package/stl-docs/components/AiChatIsland.tsx +14 -0
  72. package/stl-docs/components/{content-panel/ContentBreadcrumbs.tsx → ContentBreadcrumbs.tsx} +2 -2
  73. package/stl-docs/components/Footer.astro +89 -0
  74. package/stl-docs/components/Head.astro +20 -0
  75. package/stl-docs/components/Header.astro +3 -10
  76. package/stl-docs/components/PageFrame.astro +34 -0
  77. package/stl-docs/components/PageSidebar.astro +11 -0
  78. package/stl-docs/components/PageTitle.astro +82 -0
  79. package/stl-docs/components/StainlessLogo.svg +4 -0
  80. package/stl-docs/components/TableOfContents.astro +34 -0
  81. package/stl-docs/components/ThemeProvider.astro +36 -0
  82. package/stl-docs/components/ThemeSelect.astro +84 -146
  83. package/stl-docs/components/TwoColumnContent.astro +2 -0
  84. package/stl-docs/components/content-panel/ContentPanel.astro +4 -64
  85. package/stl-docs/components/headers/DefaultHeader.astro +4 -6
  86. package/stl-docs/components/headers/StackedHeader.astro +8 -51
  87. package/stl-docs/components/icons/chat-gpt.tsx +2 -2
  88. package/stl-docs/components/icons/cursor.tsx +10 -0
  89. package/stl-docs/components/icons/gemini.tsx +19 -0
  90. package/stl-docs/components/icons/markdown.tsx +1 -1
  91. package/stl-docs/components/index.ts +1 -0
  92. package/stl-docs/components/mintlify-compat/Frame.astro +4 -4
  93. package/stl-docs/components/mintlify-compat/card.css +4 -4
  94. package/stl-docs/components/mintlify-compat/index.ts +2 -4
  95. package/stl-docs/components/nav-tabs/NavDropdown.astro +31 -75
  96. package/stl-docs/components/nav-tabs/NavTabs.astro +79 -81
  97. package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +15 -7
  98. package/stl-docs/components/nav-tabs/buildNavLinks.ts +3 -2
  99. package/stl-docs/components/pagination/HomeLink.astro +10 -0
  100. package/stl-docs/components/pagination/Pagination.astro +177 -0
  101. package/stl-docs/components/pagination/PaginationLinkEmphasized.astro +22 -0
  102. package/stl-docs/components/pagination/PaginationLinkQuiet.astro +13 -0
  103. package/stl-docs/components/pagination/util.ts +71 -0
  104. package/stl-docs/components/scripts.ts +1 -0
  105. package/stl-docs/components/sidebars/BaseSidebar.astro +79 -2
  106. package/stl-docs/components/sidebars/SidebarWithComponents.tsx +10 -0
  107. package/stl-docs/components/sidebars/convertAstroSidebarToStl.tsx +62 -0
  108. package/stl-docs/disableCalloutSyntax.ts +36 -0
  109. package/stl-docs/fonts.ts +186 -0
  110. package/stl-docs/index.ts +171 -51
  111. package/stl-docs/loadStlDocsConfig.ts +64 -8
  112. package/stl-docs/proseDocSync.ts +314 -0
  113. package/stl-docs/proseMarkdown/proseMarkdownIntegration.ts +53 -0
  114. package/stl-docs/proseMarkdown/proseMarkdownMiddleware.ts +41 -0
  115. package/stl-docs/proseMarkdown/toMarkdown.ts +158 -0
  116. package/stl-docs/proseSearchIndexing.ts +222 -0
  117. package/stl-docs/tabsMiddleware.ts +13 -4
  118. package/styles/code.css +53 -49
  119. package/styles/links.css +2 -37
  120. package/styles/method-descriptions.css +36 -0
  121. package/styles/overrides.css +28 -46
  122. package/styles/page.css +230 -52
  123. package/styles/sdk_select.css +9 -6
  124. package/styles/search.css +11 -21
  125. package/styles/sidebar.css +25 -211
  126. package/styles/{variables.css → sl-variables.css} +4 -8
  127. package/styles/stldocs-variables.css +6 -0
  128. package/styles/toc.css +19 -8
  129. package/theme.css +11 -9
  130. package/tsconfig.json +1 -4
  131. package/virtual-module.d.ts +65 -8
  132. package/components/variables.css +0 -112
  133. package/plugin/cms/client.ts +0 -62
  134. package/plugin/cms/server.ts +0 -268
  135. package/plugin/globalJs/ai-dropdown.ts +0 -57
  136. package/stl-docs/components/APIReferenceAIDropdown.tsx +0 -58
  137. package/stl-docs/components/content-panel/ProseAIDropdown.tsx +0 -55
  138. package/stl-docs/components/headers/SplashMobileMenuToggle.astro +0 -49
  139. package/stl-docs/components/mintlify-compat/Step.astro +0 -56
  140. package/stl-docs/components/mintlify-compat/Steps.astro +0 -15
  141. package/styles/fonts.css +0 -68
  142. /package/{plugin/assets → assets}/fonts/geist/OFL.txt +0 -0
  143. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin-ext.woff2 +0 -0
  144. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin.woff2 +0 -0
  145. /package/{plugin/assets → assets}/fonts/geist/geist-latin-ext.woff2 +0 -0
  146. /package/{plugin/assets → assets}/fonts/geist/geist-latin.woff2 +0 -0
  147. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin-ext.woff2 +0 -0
  148. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin.woff2 +0 -0
  149. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin-ext.woff2 +0 -0
  150. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin.woff2 +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.