@stainless-api/docs 0.1.0-beta.134 → 0.1.0-beta.136

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.
@@ -26,10 +26,10 @@ fs.mkdirSync(DEPS_DIR, { recursive: true });
26
26
 
27
27
  const previewWorkerPath = path.join(
28
28
  env.STAINLESS_ROOT,
29
- '/packages/preview-worker/dist/stainless/preview.worker.docs.js',
29
+ '/packages/preview-worker/dist/stainless/preview.worker.docs.cjs',
30
30
  );
31
31
 
32
- const readmeTemplatePath = path.join(env.STAINLESS_ROOT, '/legacy-dir-root/templates');
32
+ const readmeTemplatePath = path.join(env.STAINLESS_ROOT, 'packages/sdk-codegen/templates');
33
33
 
34
34
  fs.copyFileSync(previewWorkerPath, path.join(DEPS_DIR, 'preview.worker.docs.js'));
35
35
 
@@ -105,7 +105,7 @@ export type StainlessDocsUserConfig = {
105
105
  /**
106
106
  * Enable and configure Open Graph image generation.
107
107
  *
108
- * Requires `@takumi-rs/image-response` to be installed as a dependency.
108
+ * Requires `takumi-js` to be installed as a dependency.
109
109
  */
110
110
  ogImage?: OGImageConfig;
111
111
  } & PassThroughStarlightConfigOptions;
@@ -2,7 +2,7 @@ import { darkThemeVars, lightThemeVars, typography } from '../theme';
2
2
  import { resolveLocalImageFile } from '../image-gen/get-logo-url';
3
3
  import { OG_IMAGE_OPTIONS } from 'virtual:stainless-docs/docs-og-image';
4
4
 
5
- /* The default open graph image template. It is expected to be used with @takumi-rs/image-response */
5
+ /* The default open graph image template. It is expected to be used with takumi-js */
6
6
  export default function OpenGraphImage({
7
7
  title,
8
8
  description,
@@ -1,6 +1,6 @@
1
1
  // Exported utilites for @stainless-api/docs consumers
2
2
 
3
- import type { ImageResponseOptions } from '@takumi-rs/image-response';
3
+ import type { ImageResponseOptions } from 'takumi-js/response';
4
4
  import type { CSSProperties } from 'react';
5
5
 
6
6
  export type OGImageConfig = {
@@ -1,4 +1,4 @@
1
- import { ImageResponse } from '@takumi-rs/image-response';
1
+ import { ImageResponse } from 'takumi-js/response';
2
2
  import { generateDocsRoutes } from '@stainless-api/docs/generate-docs-routes';
3
3
  import { DocsLanguage, parseStainlessPath } from '@stainless-api/docs-ui/routing';
4
4
  import { getResourceFromSpec } from '@stainless-api/docs-ui/utils';
@@ -1,6 +1,6 @@
1
1
  import { getCollection } from 'astro:content';
2
2
  import { z } from 'astro/zod';
3
- import { ImageResponse } from '@takumi-rs/image-response';
3
+ import { ImageResponse } from 'takumi-js/response';
4
4
  import { Tabs } from '@stainless-api/docs/docs-config';
5
5
  import OpenGraphImage from 'virtual:stainless-docs/docs-og-image/components/OpenGraphImage';
6
6
  import { OG_IMAGE_OPTIONS } from 'virtual:stainless-docs/docs-og-image';
@@ -19,7 +19,7 @@ const stainlessComponentDefaults = {
19
19
 
20
20
  function checkTakumiInstalled(): boolean {
21
21
  try {
22
- import.meta.resolve('@takumi-rs/image-response');
22
+ import.meta.resolve('takumi-js/response');
23
23
  return true;
24
24
  } catch {
25
25
  return false;
@@ -40,8 +40,8 @@ export function ogImageStarlightPlugin(
40
40
 
41
41
  if (!checkTakumiInstalled()) {
42
42
  logger.error(
43
- 'The "@takumi-rs/image-response" package is required to use OG image generation. ' +
44
- 'Please install it: npm install @takumi-rs/image-response',
43
+ 'The "takumi-js" package is required to use OG image generation. ' +
44
+ 'Please install it: npm install takumi-js',
45
45
  );
46
46
  process.exit(1);
47
47
  }
@@ -1,4 +1,4 @@
1
- import { ImageResponseOptions } from '@takumi-rs/image-response';
1
+ import { ImageResponseOptions } from 'takumi-js/response';
2
2
  import { OG_IMAGE_OPTIONS } from 'virtual:stainless-docs/docs-og-image';
3
3
 
4
4
  const defaultRenderOptions: ImageResponseOptions & { width: number; height: number } = {