boltdocs 2.5.1 → 2.5.3
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 +12 -0
- package/dist/chunk-CNGM3N5C.mjs +75 -0
- package/dist/{chunk-ITFGVXPE.mjs → chunk-J2PTDWZM.mjs} +1 -1
- package/dist/client/index.d.mts +0 -50
- package/dist/client/index.d.ts +0 -50
- package/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/client/ssr.js +1 -1
- package/dist/client/ssr.mjs +1 -1
- package/dist/node/cli-entry.js +13 -13
- package/dist/node/cli-entry.mjs +1 -1
- package/dist/node/index.d.mts +0 -14
- package/dist/node/index.d.ts +0 -14
- package/dist/node/index.js +16 -16
- package/dist/node/index.mjs +1 -1
- package/dist/package-NW2UUNQH.mjs +1 -0
- package/dist/{search-dialog-YBM4GYDR.mjs → search-dialog-O6VLVSOA.mjs} +1 -1
- package/package.json +1 -2
- package/src/client/components/mdx/code-block.tsx +0 -19
- package/src/client/components/mdx/component-preview.tsx +0 -7
- package/src/client/components/mdx/hooks/use-code-block.ts +1 -21
- package/src/client/types.ts +0 -36
- package/src/node/config.ts +0 -16
- package/src/node/plugin/index.ts +0 -2
- package/src/node/schema/config.ts +0 -13
- package/dist/chunk-JGR2ELBA.mjs +0 -75
- package/dist/package-SGBODKXD.mjs +0 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -263,18 +263,6 @@ interface BoltdocsPlugin {
|
|
|
263
263
|
/** Implementation of lifecycle hooks */
|
|
264
264
|
hooks?: PluginLifecycleHooks;
|
|
265
265
|
}
|
|
266
|
-
/**
|
|
267
|
-
* Configuration for external integrations (e.g., CodeSandbox).
|
|
268
|
-
*/
|
|
269
|
-
interface BoltdocsIntegrationsConfig {
|
|
270
|
-
/** CodeSandbox integration settings */
|
|
271
|
-
sandbox?: {
|
|
272
|
-
/** Whether to enable the "Open in Sandbox" button in CodeBlocks */
|
|
273
|
-
enable?: boolean;
|
|
274
|
-
/** Default options for the sandbox (files, dependencies, etc.) */
|
|
275
|
-
config?: Record<string, unknown>;
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
266
|
/**
|
|
279
267
|
* Configuration for security-related settings.
|
|
280
268
|
*/
|
|
@@ -304,8 +292,6 @@ interface BoltdocsConfig {
|
|
|
304
292
|
versions?: BoltdocsVersionsConfig;
|
|
305
293
|
/** Custom plugins for extending functionality */
|
|
306
294
|
plugins?: BoltdocsPlugin[];
|
|
307
|
-
/** External integrations configuration */
|
|
308
|
-
integrations?: BoltdocsIntegrationsConfig;
|
|
309
295
|
/** Configuration for the robots.txt file */
|
|
310
296
|
robots?: BoltdocsRobotsConfig;
|
|
311
297
|
/** Security-related settings and headers */
|
|
@@ -401,38 +387,6 @@ interface CreateBoltdocsAppOptions {
|
|
|
401
387
|
/** Optional custom MDX components provided by plugins */
|
|
402
388
|
components?: Record<string, React__default.ComponentType>;
|
|
403
389
|
}
|
|
404
|
-
/**
|
|
405
|
-
* Types for CodeSandbox integration.
|
|
406
|
-
*/
|
|
407
|
-
interface SandboxFile {
|
|
408
|
-
content: string | object;
|
|
409
|
-
isBinary?: boolean;
|
|
410
|
-
}
|
|
411
|
-
type SandboxFiles = Record<string, SandboxFile>;
|
|
412
|
-
interface SandboxOptions {
|
|
413
|
-
files?: SandboxFiles;
|
|
414
|
-
dependencies?: Record<string, string>;
|
|
415
|
-
devDependencies?: Record<string, string>;
|
|
416
|
-
title?: string;
|
|
417
|
-
description?: string;
|
|
418
|
-
template?: string;
|
|
419
|
-
/** The file path to open by default in the editor (e.g. `"src/App.tsx"`). */
|
|
420
|
-
entry?: string;
|
|
421
|
-
/** Options for the embedded iframe view, used by `embedSandbox()`. */
|
|
422
|
-
embed?: SandboxEmbedOptions;
|
|
423
|
-
/** Custom scripts for the package.json (e.g. `{ "start": "vite" }`). */
|
|
424
|
-
scripts?: Record<string, string>;
|
|
425
|
-
/** Optional default theme configuration for the sandbox project. */
|
|
426
|
-
themeConfig?: Record<string, unknown>;
|
|
427
|
-
}
|
|
428
|
-
interface SandboxEmbedOptions {
|
|
429
|
-
/** Which panel to display: `"editor"`, `"preview"`, or `"split"`. */
|
|
430
|
-
view?: 'editor' | 'preview' | 'split';
|
|
431
|
-
/** Color theme: `"dark"` or `"light"`. */
|
|
432
|
-
theme?: 'dark' | 'light';
|
|
433
|
-
/** Whether to hide the navigation bar in the embed. */
|
|
434
|
-
hideNavigation?: boolean;
|
|
435
|
-
}
|
|
436
390
|
/**
|
|
437
391
|
* Tab configuration for the documentation site.
|
|
438
392
|
*/
|
|
@@ -779,9 +733,7 @@ declare function Loading(): react_jsx_runtime.JSX.Element;
|
|
|
779
733
|
interface CodeBlockProps {
|
|
780
734
|
children?: React.ReactNode;
|
|
781
735
|
className?: string;
|
|
782
|
-
sandbox?: boolean | any;
|
|
783
736
|
hideCopy?: boolean;
|
|
784
|
-
hideSandbox?: boolean;
|
|
785
737
|
title?: string;
|
|
786
738
|
lang?: string;
|
|
787
739
|
highlightedHtml?: string;
|
|
@@ -997,9 +949,7 @@ interface ComponentPreviewProps {
|
|
|
997
949
|
children?: string;
|
|
998
950
|
preview?: React.ReactNode;
|
|
999
951
|
hideCode?: boolean;
|
|
1000
|
-
hideSandbox?: boolean;
|
|
1001
952
|
hideCopy?: boolean;
|
|
1002
|
-
sandboxOptions?: SandboxOptions;
|
|
1003
953
|
}
|
|
1004
954
|
declare function ComponentPreview(props: ComponentPreviewProps): react_jsx_runtime.JSX.Element;
|
|
1005
955
|
|