markstream-octane 0.1.0-beta.4 → 2.0.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/dist/client/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.px.css +1 -1
- package/dist/server.d.ts +0 -1
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +1 -1
- package/dist/types/types/component-props.d.ts +0 -1
- package/package.json +20 -20
- package/dist/types/components/CodeBlockNode/monaco.d.ts +0 -2
- package/dist/types/components/CodeBlockNode/monacoThemeRegistry.d.ts +0 -8
- package/dist/types/components/CodeBlockNode/monacoThemeScheduler.d.ts +0 -5
- package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.d.ts +0 -34
- package/dist/types/components/NodeRenderer/preloadMonaco.d.ts +0 -2
package/dist/tailwind.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const safeList = `octane class=\"admonition-header\"><!><span data-index-key id typeof note admonition-icon admonition-toggle aria-expanded aria-controls collapsed admonition-content aria-labelledby clsx
|
|
1
|
+
const safeList = `octane class=\"admonition-header\"><!><span data-index-key id typeof note admonition-icon admonition-toggle aria-expanded aria-controls collapsed admonition-content aria-labelledby click class=\"footnote-reference\"><span>\n $$click footnote-link cursor-pointer className ref smooth clsx auto heading-node font-semibold object html-block-node stream-markdown-parser safe escape html-block html-block-node__placeholder html-block-node__placeholder-bar w-4/5 w-2/3 token.type block child string name value ms-html text self_closing tag_open tag_close to parse html-inline dynamic template html-inline-node html-inline-node--loading inline primary fallback failed image async ?? placeholder image-node__placeholder image-node__spinner image-node__placeholder-text image… image-node__error aria-hidden currentColor load none w-4 h-4 flex-shrink-0 library error in rendered render returned empty text-red-500 p-4 hidden keydown transform ease center flex fullscreen touches p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200 text-gray-600 hover:bg-gray-200 hover:text-gray-700 data-markstream-infographic data-markstream-mode source hasPreview my-4 rounded-lg border overflow-hidden justify-between items-center px-4 py-2.5 border-b bg-gray-800 border-gray-700/30 bg-gray-50 border-gray-200 gap-x-2 text-sm font-medium font-mono gap-x-1 rounded-md px-2.5 py-1 transition-colors bg-gray-600 text-gray-200 shadow-sm bg-white text-gray-700 text-gray-500 w-3 h-3 round m16 top m9 opacity-50 cursor-not-allowed m7 m14 relative absolute top-2 right-2 z-10 gap-2 backdrop-blur infographic-preview min-h-[360px] transition-all duration-100 inset-0 overflow-auto text-left isDragging w-full text-center justify-center min-h-full markstream-octane fixed z-50 bg-black/70 dialog aria-modal dialog-panel h-full max-w-full max-h-full shadow-lg top-6 right-6 inline-flex !isDragging class=\"inline-code text-[85%] px-1 py-0.5 bg-[hsl(var(--secondary))] whitespace-normal break-words text-node-stream-delta text-node-stream-delta--a text-node-stream-delta--b class=\"list-item pl-1.5 list-item list-node my-5 pl-[calc(13/8*1em)] list-decimal list-disc max-lg:my-[calc(4/3*1em)] max-lg:pl-[calc(14/9*1em)] list mermaid loose strict viewBox gantt open-modal [data-mermaid-wrapper] mermaid-action-btn toggle-mode preview common.zoomIn common.zoomOut −\n common.resetZoom transition-[height] duration-150 data-mermaid-wrapper mermaid-loading mermaid-spinner diagram… mermaid-block-header space-x-2 icon-slot space-x-1 common.preview common.source aria-pressed common.export bg-gray-900 text-gray-300 whitespace-pre-wrap mermaid-error data-markstream-mermaid showSource hasRenderedOnce mermaid-modal-overlay mermaid-modal-header mermaid-modal-title mermaid-modal-close common.close mermaid-modal-body mermaid-modal-content not available abort timed out paragraph paragraph-node child.type renderNode ctx class=\"unknown-node italic\">\n node type:\n mouseenter mouseleave class=\"reference-node bg-[hsl(var(--muted))] px-1.5 mx-0.5 $$mouseenter $$mouseleave $$keydown event.key class=\"table-node-wrapper\"><table><!><thead class=\"border-[var(--table-border,#cbd5e1)]\"><tr p-[calc(4/7*1em)] table-node__resize-handle aria-label rowIdx bodyRows.length aria-busy pointermove pointerup pointercancel my-8 isLoading table-node__loading status aria-live polite table-node__spinner sr-only animationend $$animationend text-node node.center class=\"hr-node boolean dark window.matchMedia ms-tooltip z-[9999] inline-block text-base py-2 px-3 shadow-md whitespace-nowrap pointer-events-none tooltip-element text-white border-gray-700 is-dark text-gray-900 tooltip zoom cannot delete global call clearGlobalCustomComponents was provided both streamingComponents and entry will be used parser-backed markstream-core javascript typescript go python ruby shell powershell d2 plain cpp csharp objectivec objectivecpp yaml markdown rust kotlin plaintext zsh objective-c objective-cpp diff java php sql node.type next.maxHeight infographic language code_block html_inline text_special heading list_item definition_list footnote footnote_reference footnote_anchor admonition hardbreak inline_code emphasis strikethrough highlight insert subscript superscript checkbox checkbox_input emoji thematic_break math_inline math_block reference html_block vmr_container label_open label_close markstream-d2-root-svg number window.requestAnimationFrame d2InstanceRef.current is instance.render throw new instance missing d2-block text-gray-100 d2-block-header border-gray-400/5 mode-btn px-2 !showSource d2-action-btn hover:bg-[var(--vscode-editor-selectionBackground)] d2-block-body d2-source py-4 d2-code d2-error mt-2 d2-render d2-svg pb-3 class=\"checkbox-node\"><input [katexWorkerClient] worker inject via init cache-hit busy timeout waiting slot [markstream-octane] htmlPreviewSandbox contains allow-scripts this only fully trusted content served an isolated en utf-8 viewport content="width=device-width initial-scale=1 html-preview-frame__header html-preview-frame__title html-preview-frame__dot html-preview-frame__label ×\n html-preview-frame__iframe no-referrer about:blank class=\"mb-4\"><dt class=\"definition-term font-semibold\"></dt><dd class=\"definition-desc definition mb-4 dt definition-term dd definition-desc ml-4 class=\"footnote-anchor hover:underline cursor-pointer\">\n ↩︎\n href class=\"footnote-node leading-relaxed border-t border-[var(--footnote-border,#eaecef)] pt-2\"><div dependency install it enable [mermaidWorkerClient] messageerror cleared canParse findPrefix target rel infinite node.title link-loading items-baseline gap-1.5 link-text-wrapper leading-[normal] link-text link-loading-indicator noopener noreferrer class children key data-language data-markstream-line-numbers !options.preserveBlankKind added context markstream-pre__diff-pane--inline original markstream-pre__diff-pane--original modified markstream-pre__diff-pane--modified removed no markstream-pre__diff-code markstream-pre__diff-line markstream-pre__diff-rail markstream-pre__diff-number markstream-pre__diff-content markstream-pre__diff-content-inner markstream-pre__line-numbers markstream-pre__line-numbers-text markstream-pre__code document module did expected thinking normalizedType class=\"math-block overflow-x-auto math-rendering role aria-describedby $$ math-inline__loading math-inline__spinner viteEnv.MODE development process globalThis.requestAnimationFrame globalThis.cancelAnimationFrame indexKey prototype constructor sequencediagram classdiagram kind statediagram erdiagram flowchart graph °C class=\"code-editor-layer\"><div></div><div code-height-placeholder code-fallback-plain m-0 style.visibility theme themes themeType languages stream disableFileHeader onThemeChange renderCustomHeader renderHeaderMetadata renderHeaderPrefix wrap split line-info night moon black dracula mocha frappe macchiato palenight ocean poimandres monokai laserwave tokyo slack-dark rose-pine github-dark material-theme one-dark catppuccin-mocha catppuccin-frappe catppuccin-macchiato transparent visible max-height height onDidUpdateDiff onDidContentSizeChange onDidLayoutChange window.MutationObserver record.type resolvedOptions.padding vitesse-dark vitesse-light monospace unified fontSize lineHeight maxHeight paddingBottom paddingTop tabSize resolvedOptions.overflow fontFamily nextOptions.unsafeCSS [data-file] [data-diff] canonicalLanguage single window.cancelAnimationFrame clientX navigator.clipboard navigator.clipboard.writeText code-block-container code-block-header flex-1 truncate code-action-btn evenodd code-loading-placeholder loading-skeleton skeleton-line short next next.type window.requestIdleCallback [data-node-index] node-spacer data-custom-id node-slot data-node-index data-node-type fade-node node-placeholder typewriter-cursor [data-node-type="code_block"] [data-node-type="admonition"] [data-node-type="table"] [data-node-type="math_block"] [data-node-type="html_block"] [data-node-type="image"] performance [markstream-octane][perf] markdown-renderer katex value?.useMonaco stream-diffs/markstream stream-diffs runtime cite`;
|
|
2
2
|
module.exports = safeList;
|
|
3
3
|
module.exports.safeList = safeList;
|
|
4
4
|
module.exports.default = safeList;
|
package/dist/tailwind.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const safeList = `octane class=\"admonition-header\"><!><span data-index-key id typeof note admonition-icon admonition-toggle aria-expanded aria-controls collapsed admonition-content aria-labelledby clsx
|
|
1
|
+
export const safeList = `octane class=\"admonition-header\"><!><span data-index-key id typeof note admonition-icon admonition-toggle aria-expanded aria-controls collapsed admonition-content aria-labelledby click class=\"footnote-reference\"><span>\n $$click footnote-link cursor-pointer className ref smooth clsx auto heading-node font-semibold object html-block-node stream-markdown-parser safe escape html-block html-block-node__placeholder html-block-node__placeholder-bar w-4/5 w-2/3 token.type block child string name value ms-html text self_closing tag_open tag_close to parse html-inline dynamic template html-inline-node html-inline-node--loading inline primary fallback failed image async ?? placeholder image-node__placeholder image-node__spinner image-node__placeholder-text image… image-node__error aria-hidden currentColor load none w-4 h-4 flex-shrink-0 library error in rendered render returned empty text-red-500 p-4 hidden keydown transform ease center flex fullscreen touches p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200 text-gray-600 hover:bg-gray-200 hover:text-gray-700 data-markstream-infographic data-markstream-mode source hasPreview my-4 rounded-lg border overflow-hidden justify-between items-center px-4 py-2.5 border-b bg-gray-800 border-gray-700/30 bg-gray-50 border-gray-200 gap-x-2 text-sm font-medium font-mono gap-x-1 rounded-md px-2.5 py-1 transition-colors bg-gray-600 text-gray-200 shadow-sm bg-white text-gray-700 text-gray-500 w-3 h-3 round m16 top m9 opacity-50 cursor-not-allowed m7 m14 relative absolute top-2 right-2 z-10 gap-2 backdrop-blur infographic-preview min-h-[360px] transition-all duration-100 inset-0 overflow-auto text-left isDragging w-full text-center justify-center min-h-full markstream-octane fixed z-50 bg-black/70 dialog aria-modal dialog-panel h-full max-w-full max-h-full shadow-lg top-6 right-6 inline-flex !isDragging class=\"inline-code text-[85%] px-1 py-0.5 bg-[hsl(var(--secondary))] whitespace-normal break-words text-node-stream-delta text-node-stream-delta--a text-node-stream-delta--b class=\"list-item pl-1.5 list-item list-node my-5 pl-[calc(13/8*1em)] list-decimal list-disc max-lg:my-[calc(4/3*1em)] max-lg:pl-[calc(14/9*1em)] list mermaid loose strict viewBox gantt open-modal [data-mermaid-wrapper] mermaid-action-btn toggle-mode preview common.zoomIn common.zoomOut −\n common.resetZoom transition-[height] duration-150 data-mermaid-wrapper mermaid-loading mermaid-spinner diagram… mermaid-block-header space-x-2 icon-slot space-x-1 common.preview common.source aria-pressed common.export bg-gray-900 text-gray-300 whitespace-pre-wrap mermaid-error data-markstream-mermaid showSource hasRenderedOnce mermaid-modal-overlay mermaid-modal-header mermaid-modal-title mermaid-modal-close common.close mermaid-modal-body mermaid-modal-content not available abort timed out paragraph paragraph-node child.type renderNode ctx class=\"unknown-node italic\">\n node type:\n mouseenter mouseleave class=\"reference-node bg-[hsl(var(--muted))] px-1.5 mx-0.5 $$mouseenter $$mouseleave $$keydown event.key class=\"table-node-wrapper\"><table><!><thead class=\"border-[var(--table-border,#cbd5e1)]\"><tr p-[calc(4/7*1em)] table-node__resize-handle aria-label rowIdx bodyRows.length aria-busy pointermove pointerup pointercancel my-8 isLoading table-node__loading status aria-live polite table-node__spinner sr-only animationend $$animationend text-node node.center class=\"hr-node boolean dark window.matchMedia ms-tooltip z-[9999] inline-block text-base py-2 px-3 shadow-md whitespace-nowrap pointer-events-none tooltip-element text-white border-gray-700 is-dark text-gray-900 tooltip zoom cannot delete global call clearGlobalCustomComponents was provided both streamingComponents and entry will be used parser-backed markstream-core javascript typescript go python ruby shell powershell d2 plain cpp csharp objectivec objectivecpp yaml markdown rust kotlin plaintext zsh objective-c objective-cpp diff java php sql node.type next.maxHeight infographic language code_block html_inline text_special heading list_item definition_list footnote footnote_reference footnote_anchor admonition hardbreak inline_code emphasis strikethrough highlight insert subscript superscript checkbox checkbox_input emoji thematic_break math_inline math_block reference html_block vmr_container label_open label_close markstream-d2-root-svg number window.requestAnimationFrame d2InstanceRef.current is instance.render throw new instance missing d2-block text-gray-100 d2-block-header border-gray-400/5 mode-btn px-2 !showSource d2-action-btn hover:bg-[var(--vscode-editor-selectionBackground)] d2-block-body d2-source py-4 d2-code d2-error mt-2 d2-render d2-svg pb-3 class=\"checkbox-node\"><input [katexWorkerClient] worker inject via init cache-hit busy timeout waiting slot [markstream-octane] htmlPreviewSandbox contains allow-scripts this only fully trusted content served an isolated en utf-8 viewport content="width=device-width initial-scale=1 html-preview-frame__header html-preview-frame__title html-preview-frame__dot html-preview-frame__label ×\n html-preview-frame__iframe no-referrer about:blank class=\"mb-4\"><dt class=\"definition-term font-semibold\"></dt><dd class=\"definition-desc definition mb-4 dt definition-term dd definition-desc ml-4 class=\"footnote-anchor hover:underline cursor-pointer\">\n ↩︎\n href class=\"footnote-node leading-relaxed border-t border-[var(--footnote-border,#eaecef)] pt-2\"><div dependency install it enable [mermaidWorkerClient] messageerror cleared canParse findPrefix target rel infinite node.title link-loading items-baseline gap-1.5 link-text-wrapper leading-[normal] link-text link-loading-indicator noopener noreferrer class children key data-language data-markstream-line-numbers !options.preserveBlankKind added context markstream-pre__diff-pane--inline original markstream-pre__diff-pane--original modified markstream-pre__diff-pane--modified removed no markstream-pre__diff-code markstream-pre__diff-line markstream-pre__diff-rail markstream-pre__diff-number markstream-pre__diff-content markstream-pre__diff-content-inner markstream-pre__line-numbers markstream-pre__line-numbers-text markstream-pre__code document module did expected thinking normalizedType class=\"math-block overflow-x-auto math-rendering role aria-describedby $$ math-inline__loading math-inline__spinner viteEnv.MODE development process globalThis.requestAnimationFrame globalThis.cancelAnimationFrame indexKey prototype constructor sequencediagram classdiagram kind statediagram erdiagram flowchart graph °C class=\"code-editor-layer\"><div></div><div code-height-placeholder code-fallback-plain m-0 style.visibility theme themes themeType languages stream disableFileHeader onThemeChange renderCustomHeader renderHeaderMetadata renderHeaderPrefix wrap split line-info night moon black dracula mocha frappe macchiato palenight ocean poimandres monokai laserwave tokyo slack-dark rose-pine github-dark material-theme one-dark catppuccin-mocha catppuccin-frappe catppuccin-macchiato transparent visible max-height height onDidUpdateDiff onDidContentSizeChange onDidLayoutChange window.MutationObserver record.type resolvedOptions.padding vitesse-dark vitesse-light monospace unified fontSize lineHeight maxHeight paddingBottom paddingTop tabSize resolvedOptions.overflow fontFamily nextOptions.unsafeCSS [data-file] [data-diff] canonicalLanguage single window.cancelAnimationFrame clientX navigator.clipboard navigator.clipboard.writeText code-block-container code-block-header flex-1 truncate code-action-btn evenodd code-loading-placeholder loading-skeleton skeleton-line short next next.type window.requestIdleCallback [data-node-index] node-spacer data-custom-id node-slot data-node-index data-node-type fade-node node-placeholder typewriter-cursor [data-node-type="code_block"] [data-node-type="admonition"] [data-node-type="table"] [data-node-type="math_block"] [data-node-type="html_block"] [data-node-type="image"] performance [markstream-octane][perf] markdown-renderer katex value?.useMonaco stream-diffs/markstream stream-diffs runtime cite`;
|
|
2
2
|
export default safeList;
|
|
@@ -25,7 +25,6 @@ export interface CodeBlockOptions {
|
|
|
25
25
|
disableLineNumbers?: boolean;
|
|
26
26
|
overflow?: 'scroll' | 'wrap';
|
|
27
27
|
disableVirtualizationBuffers?: boolean;
|
|
28
|
-
preferredHighlighter?: 'shiki-js' | 'shiki-wasm';
|
|
29
28
|
useCSSClasses?: boolean;
|
|
30
29
|
useTokenTransformer?: boolean;
|
|
31
30
|
tokenizeMaxLineLength?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-octane",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"description": "Octane streaming Markdown renderer for AI chat, LLM token streams, SSE/WebSocket output, incomplete Markdown, long documents, Mermaid, KaTeX, stream-diffs powered code blocks, and custom Octane components.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
@@ -76,22 +76,6 @@
|
|
|
76
76
|
"files": [
|
|
77
77
|
"dist"
|
|
78
78
|
],
|
|
79
|
-
"scripts": {
|
|
80
|
-
"dev": "vite dev",
|
|
81
|
-
"build": "pnpm --dir ../markdown-parser build && pnpm --dir ../markstream-core build && vite build --mode npm-client && vite build --mode npm-server && node ./scripts/finalize-runtime-build.mjs && node ./scripts/finalize-tailwind-export.mjs && vite build -c vite.config.tailwind.ts --mode npm && node ./scripts/copy-tailwind-css.mjs && node ../../scripts/generate-px-css.mjs && pnpm run build:dts && node ./scripts/check-built-package.mjs",
|
|
82
|
-
"build:analyze": "ANALYZE=true pnpm build",
|
|
83
|
-
"build:dts": "node ./scripts/generate-tsrx-types.mjs --out-dir dist/types && rollup -c ./scripts/rollup.dts.config.mjs",
|
|
84
|
-
"check:exports": "node ./scripts/check-built-package.mjs",
|
|
85
|
-
"preview": "vite preview",
|
|
86
|
-
"test": "pnpm run test:client && pnpm run test:ssr",
|
|
87
|
-
"test:client": "vitest run --config vitest.config.ts",
|
|
88
|
-
"test:ssr": "vitest run --config vitest.ssr.config.ts",
|
|
89
|
-
"typecheck": "tsrx-tsc --noEmit -p tsconfig.json",
|
|
90
|
-
"size:check": "node ../../scripts/check-package-size.mjs",
|
|
91
|
-
"check:core-published": "node ../../scripts/check-core-published.mjs --package-json package.json --core-package-json ../markstream-core/package.json",
|
|
92
|
-
"check:workspace-deps-published": "node ../../scripts/check-workspace-deps-published.mjs --package-json package.json",
|
|
93
|
-
"release": "pnpm run check:workspace-deps-published && bumpp --all --commit --no-tag --no-push --execute 'pnpm --workspace-root run docs:llms:generate' && DIST_TAG=\"$(node ../../scripts/dist-tag.mjs)\" && pnpm publish --access public --tag \"${DIST_TAG}\" && node ../../scripts/tag-package.mjs --package-json package.json --push"
|
|
94
|
-
},
|
|
95
79
|
"peerDependencies": {
|
|
96
80
|
"@antv/infographic": "^0.2.3",
|
|
97
81
|
"@terrastruct/d2": ">=0.1.33",
|
|
@@ -120,8 +104,8 @@
|
|
|
120
104
|
"dependencies": {
|
|
121
105
|
"@floating-ui/dom": "^1.8.0",
|
|
122
106
|
"clsx": "^2.1.1",
|
|
123
|
-
"markstream-core": "
|
|
124
|
-
"stream-markdown-parser": "1.2.
|
|
107
|
+
"markstream-core": "2.0.1",
|
|
108
|
+
"stream-markdown-parser": "1.2.9"
|
|
125
109
|
},
|
|
126
110
|
"devDependencies": {
|
|
127
111
|
"@octanejs/testing-library": "^0.1.18",
|
|
@@ -139,5 +123,21 @@
|
|
|
139
123
|
"typescript": "^5.9.3",
|
|
140
124
|
"vite": "^8.0.16",
|
|
141
125
|
"vite-plugin-dts": "^4.5.4"
|
|
126
|
+
},
|
|
127
|
+
"scripts": {
|
|
128
|
+
"dev": "vite dev",
|
|
129
|
+
"build": "pnpm --dir ../markdown-parser build && pnpm --dir ../markstream-core build && vite build --mode npm-client && vite build --mode npm-server && node ./scripts/finalize-runtime-build.mjs && node ./scripts/finalize-tailwind-export.mjs && vite build -c vite.config.tailwind.ts --mode npm && node ./scripts/copy-tailwind-css.mjs && node ../../scripts/generate-px-css.mjs && pnpm run build:dts && node ./scripts/check-built-package.mjs",
|
|
130
|
+
"build:analyze": "ANALYZE=true pnpm build",
|
|
131
|
+
"build:dts": "node ./scripts/generate-tsrx-types.mjs --out-dir dist/types && rollup -c ./scripts/rollup.dts.config.mjs",
|
|
132
|
+
"check:exports": "node ./scripts/check-built-package.mjs",
|
|
133
|
+
"preview": "vite preview",
|
|
134
|
+
"test": "pnpm run test:client && pnpm run test:ssr",
|
|
135
|
+
"test:client": "vitest run --config vitest.config.ts",
|
|
136
|
+
"test:ssr": "vitest run --config vitest.ssr.config.ts",
|
|
137
|
+
"typecheck": "tsrx-tsc --noEmit -p tsconfig.json",
|
|
138
|
+
"size:check": "node ../../scripts/check-package-size.mjs",
|
|
139
|
+
"check:core-published": "node ../../scripts/check-core-published.mjs --package-json package.json --core-package-json ../markstream-core/package.json",
|
|
140
|
+
"check:workspace-deps-published": "node ../../scripts/check-workspace-deps-published.mjs --package-json package.json",
|
|
141
|
+
"release": "pnpm run check:workspace-deps-published && bumpp --all --commit --no-tag --no-push --execute 'pnpm --workspace-root run docs:llms:generate' && DIST_TAG=\"$(node ../../scripts/dist-tag.mjs)\" && pnpm publish --access public --tag \"${DIST_TAG}\" && node ../../scripts/tag-package.mjs --package-json package.json --push"
|
|
142
142
|
}
|
|
143
|
-
}
|
|
143
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/generate-tsrx-types.mjs for the built package.
|
|
2
|
-
type MonacoTheme = any;
|
|
3
|
-
type SetThemeFn = (theme: MonacoTheme, force?: boolean) => Promise<void> | void;
|
|
4
|
-
export declare function subscribeMonacoThemeApplied(listener: () => void): () => void;
|
|
5
|
-
export declare function registerMonacoThemeSetter(setTheme: SetThemeFn | null | undefined): void;
|
|
6
|
-
export declare function setDesiredMonacoTheme(theme: MonacoTheme | null | undefined): void;
|
|
7
|
-
export declare function getDesiredMonacoTheme(): MonacoTheme | null;
|
|
8
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/generate-tsrx-types.mjs for the built package.
|
|
2
|
-
type MonacoTheme = any;
|
|
3
|
-
type SetThemeFn = (theme: MonacoTheme, force?: boolean) => Promise<void> | void;
|
|
4
|
-
export declare function scheduleMonacoThemeUpdate(theme: MonacoTheme, setTheme: SetThemeFn): Promise<void>;
|
|
5
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Generated by scripts/generate-tsrx-types.mjs for the built package.
|
|
2
|
-
import type { ShikiCodeBlockProps } from '../../types/component-props';
|
|
3
|
-
export interface MarkdownCodeBlockNodeProps extends ShikiCodeBlockProps {
|
|
4
|
-
node: {
|
|
5
|
-
type: 'code_block';
|
|
6
|
-
language: string;
|
|
7
|
-
code: string;
|
|
8
|
-
raw: string;
|
|
9
|
-
diff?: boolean;
|
|
10
|
-
originalCode?: string;
|
|
11
|
-
updatedCode?: string;
|
|
12
|
-
};
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
stream?: boolean;
|
|
15
|
-
darkTheme?: string;
|
|
16
|
-
lightTheme?: string;
|
|
17
|
-
isDark?: boolean;
|
|
18
|
-
isShowPreview?: boolean;
|
|
19
|
-
enableFontSizeControl?: boolean;
|
|
20
|
-
minWidth?: string | number;
|
|
21
|
-
maxWidth?: string | number;
|
|
22
|
-
showPreviewButton?: boolean;
|
|
23
|
-
showCollapseButton?: boolean;
|
|
24
|
-
showFontSizeButtons?: boolean;
|
|
25
|
-
showTooltips?: boolean;
|
|
26
|
-
onCopy?: (code: string) => void;
|
|
27
|
-
onPreviewCode?: (payload: {
|
|
28
|
-
type: string;
|
|
29
|
-
content: string;
|
|
30
|
-
title: string;
|
|
31
|
-
}) => void;
|
|
32
|
-
}
|
|
33
|
-
export declare function MarkdownCodeBlockNode(rawProps: MarkdownCodeBlockNodeProps): import("octane/jsx-runtime").Octane.JSX.Element;
|
|
34
|
-
export default MarkdownCodeBlockNode;
|