@svadmin/ai-elements 0.7.4 → 0.9.0
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/README.md +31 -4
- package/THIRD_PARTY_NOTICES.md +67 -6
- package/dist/ai-workspace-contract.d.ts +14 -0
- package/dist/ai-workspace-contract.js +14 -0
- package/dist/ai.css +2 -5
- package/dist/ai.theme.css +1 -0
- package/dist/class-properties.generated.d.ts +1 -0
- package/dist/class-properties.generated.js +2 -0
- package/dist/classnames.d.ts +8 -0
- package/dist/classnames.js +26 -0
- package/dist/components/Response.svelte +2 -2
- package/dist/components/Response.svelte.d.ts +1 -1
- package/dist/components/code/index.d.ts +9 -18
- package/dist/components/code/index.js +8 -11
- package/dist/components/code-block/highlight.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/utilities.css +3172 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +36 -11
- package/vendor/streamdown/AnimatedText.svelte +93 -0
- package/vendor/streamdown/AnimatedText.svelte.d.ts +6 -0
- package/vendor/streamdown/Block.svelte +96 -0
- package/vendor/streamdown/Block.svelte.d.ts +11 -0
- package/vendor/streamdown/Elements/Alert.svelte +69 -0
- package/vendor/streamdown/Elements/Alert.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/Citation.svelte +260 -0
- package/vendor/streamdown/Elements/Citation.svelte.d.ts +7 -0
- package/vendor/streamdown/Elements/Code.svelte +226 -0
- package/vendor/streamdown/Elements/Code.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/Element.svelte +574 -0
- package/vendor/streamdown/Elements/Element.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/FootnoteRef.svelte +30 -0
- package/vendor/streamdown/Elements/FootnoteRef.svelte.d.ts +7 -0
- package/vendor/streamdown/Elements/Footnotes.svelte +54 -0
- package/vendor/streamdown/Elements/Footnotes.svelte.d.ts +7 -0
- package/vendor/streamdown/Elements/Image.svelte +200 -0
- package/vendor/streamdown/Elements/Image.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/Link.svelte +220 -0
- package/vendor/streamdown/Elements/Link.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/LinkSafetyModal.svelte +121 -0
- package/vendor/streamdown/Elements/LinkSafetyModal.svelte.d.ts +4 -0
- package/vendor/streamdown/Elements/Math.svelte +100 -0
- package/vendor/streamdown/Elements/Math.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/Mermaid.svelte +455 -0
- package/vendor/streamdown/Elements/Mermaid.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/MermaidDownload.svelte +145 -0
- package/vendor/streamdown/Elements/MermaidDownload.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/Slot.svelte +23 -0
- package/vendor/streamdown/Elements/Slot.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/Table.svelte +195 -0
- package/vendor/streamdown/Elements/Table.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/TableDownload.svelte +221 -0
- package/vendor/streamdown/Elements/TableDownload.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/fallbacks/CodeFallback.svelte +41 -0
- package/vendor/streamdown/Elements/fallbacks/CodeFallback.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/fallbacks/MathFallback.svelte +35 -0
- package/vendor/streamdown/Elements/fallbacks/MathFallback.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/fallbacks/MermaidFallback.svelte +36 -0
- package/vendor/streamdown/Elements/fallbacks/MermaidFallback.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/fallbacks/index.d.ts +3 -0
- package/vendor/streamdown/Elements/fallbacks/index.js +3 -0
- package/vendor/streamdown/Elements/icons.d.ts +31 -0
- package/vendor/streamdown/Elements/icons.js +200 -0
- package/vendor/streamdown/Elements/index.d.ts +8 -0
- package/vendor/streamdown/Elements/index.js +8 -0
- package/vendor/streamdown/Elements/popover.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/popover.svelte.js +45 -0
- package/vendor/streamdown/Elements/stepperState.svelte.d.ts +36 -0
- package/vendor/streamdown/Elements/stepperState.svelte.js +92 -0
- package/vendor/streamdown/IconProvider.svelte +11 -0
- package/vendor/streamdown/IconProvider.svelte.d.ts +30 -0
- package/vendor/streamdown/LICENSE +202 -0
- package/vendor/streamdown/PluginProvider.svelte +11 -0
- package/vendor/streamdown/PluginProvider.svelte.d.ts +30 -0
- package/vendor/streamdown/README.svadmin.md +5 -0
- package/vendor/streamdown/Streamdown.svelte +447 -0
- package/vendor/streamdown/Streamdown.svelte.d.ts +25 -0
- package/vendor/streamdown/block/BlockTokens.svelte +45 -0
- package/vendor/streamdown/block/BlockTokens.svelte.d.ts +9 -0
- package/vendor/streamdown/block/html.d.ts +14 -0
- package/vendor/streamdown/block/html.js +27 -0
- package/vendor/streamdown/block/text.d.ts +10 -0
- package/vendor/streamdown/block/text.js +31 -0
- package/vendor/streamdown/context-key.d.ts +1 -0
- package/vendor/streamdown/context-key.js +1 -0
- package/vendor/streamdown/context.svelte.d.ts +24 -0
- package/vendor/streamdown/context.svelte.js +75 -0
- package/vendor/streamdown/contracts/plugins.d.ts +26 -0
- package/vendor/streamdown/contracts/plugins.js +1 -0
- package/vendor/streamdown/contracts/streamdown.d.ts +374 -0
- package/vendor/streamdown/contracts/streamdown.js +29 -0
- package/vendor/streamdown/detect-direction.d.ts +1 -0
- package/vendor/streamdown/detect-direction.js +1 -0
- package/vendor/streamdown/icon-context.d.ts +36 -0
- package/vendor/streamdown/icon-context.js +52 -0
- package/vendor/streamdown/incomplete-code.d.ts +6 -0
- package/vendor/streamdown/incomplete-code.js +23 -0
- package/vendor/streamdown/index.d.ts +22 -0
- package/vendor/streamdown/index.js +20 -0
- package/vendor/streamdown/markdown-parse-cache.d.ts +37 -0
- package/vendor/streamdown/markdown-parse-cache.js +109 -0
- package/vendor/streamdown/markdown.d.ts +21 -0
- package/vendor/streamdown/markdown.js +214 -0
- package/vendor/streamdown/marked/index.d.ts +44 -0
- package/vendor/streamdown/marked/index.js +228 -0
- package/vendor/streamdown/marked/marked-alert.d.ts +13 -0
- package/vendor/streamdown/marked/marked-alert.js +47 -0
- package/vendor/streamdown/marked/marked-align.d.ts +10 -0
- package/vendor/streamdown/marked/marked-align.js +45 -0
- package/vendor/streamdown/marked/marked-br.d.ts +6 -0
- package/vendor/streamdown/marked/marked-br.js +15 -0
- package/vendor/streamdown/marked/marked-citations.d.ts +8 -0
- package/vendor/streamdown/marked/marked-citations.js +53 -0
- package/vendor/streamdown/marked/marked-cjk.d.ts +2 -0
- package/vendor/streamdown/marked/marked-cjk.js +165 -0
- package/vendor/streamdown/marked/marked-dl.d.ts +23 -0
- package/vendor/streamdown/marked/marked-dl.js +44 -0
- package/vendor/streamdown/marked/marked-footnotes.d.ts +26 -0
- package/vendor/streamdown/marked/marked-footnotes.js +101 -0
- package/vendor/streamdown/marked/marked-hr.d.ts +6 -0
- package/vendor/streamdown/marked/marked-hr.js +18 -0
- package/vendor/streamdown/marked/marked-list.d.ts +31 -0
- package/vendor/streamdown/marked/marked-list.js +330 -0
- package/vendor/streamdown/marked/marked-math.d.ts +13 -0
- package/vendor/streamdown/marked/marked-math.js +129 -0
- package/vendor/streamdown/marked/marked-mdx.d.ts +12 -0
- package/vendor/streamdown/marked/marked-mdx.js +124 -0
- package/vendor/streamdown/marked/marked-subsup.d.ts +22 -0
- package/vendor/streamdown/marked/marked-subsup.js +40 -0
- package/vendor/streamdown/marked/marked-table.d.ts +80 -0
- package/vendor/streamdown/marked/marked-table.js +527 -0
- package/vendor/streamdown/plugin-context.d.ts +19 -0
- package/vendor/streamdown/plugin-context.js +40 -0
- package/vendor/streamdown/plugins/cjk-shared.d.ts +1 -0
- package/vendor/streamdown/plugins/cjk-shared.js +1 -0
- package/vendor/streamdown/plugins.d.ts +19 -0
- package/vendor/streamdown/plugins.js +107 -0
- package/vendor/streamdown/provenance.json +229 -0
- package/vendor/streamdown/remend.d.ts +2 -0
- package/vendor/streamdown/remend.js +1 -0
- package/vendor/streamdown/security/html.d.ts +19 -0
- package/vendor/streamdown/security/html.js +329 -0
- package/vendor/streamdown/security/preprocess-custom-tags.d.ts +1 -0
- package/vendor/streamdown/security/preprocess-custom-tags.js +20 -0
- package/vendor/streamdown/security/preprocess-literal-tag-content.d.ts +1 -0
- package/vendor/streamdown/security/preprocess-literal-tag-content.js +16 -0
- package/vendor/streamdown/security/types.d.ts +1 -0
- package/vendor/streamdown/security/types.js +1 -0
- package/vendor/streamdown/site/SiteHeader.svelte +94 -0
- package/vendor/streamdown/site/SiteHeader.svelte.d.ts +6 -0
- package/vendor/streamdown/site/home/HomeDemo.svelte +122 -0
- package/vendor/streamdown/site/home/HomeDemo.svelte.d.ts +3 -0
- package/vendor/streamdown/site/home/HomePage.svelte +293 -0
- package/vendor/streamdown/site/home/HomePage.svelte.d.ts +3 -0
- package/vendor/streamdown/site/home/content.d.ts +69 -0
- package/vendor/streamdown/site/home/content.js +144 -0
- package/vendor/streamdown/site/metadata.d.ts +4 -0
- package/vendor/streamdown/site/metadata.js +4 -0
- package/vendor/streamdown/site/navigation.d.ts +6 -0
- package/vendor/streamdown/site/navigation.js +22 -0
- package/vendor/streamdown/streamdown/config.d.ts +41 -0
- package/vendor/streamdown/streamdown/config.js +125 -0
- package/vendor/streamdown/streamdown/context.d.ts +12 -0
- package/vendor/streamdown/streamdown/context.js +2 -0
- package/vendor/streamdown/streamdown/incomplete-markdown.d.ts +5 -0
- package/vendor/streamdown/streamdown/incomplete-markdown.js +79 -0
- package/vendor/streamdown/streamdown/pipeline.d.ts +95 -0
- package/vendor/streamdown/streamdown/pipeline.js +138 -0
- package/vendor/streamdown/streamdown/runtime.d.ts +59 -0
- package/vendor/streamdown/streamdown/runtime.js +112 -0
- package/vendor/streamdown/streaming.d.ts +5 -0
- package/vendor/streamdown/streaming.js +5 -0
- package/vendor/streamdown/theme.d.ts +486 -0
- package/vendor/streamdown/theme.js +370 -0
- package/vendor/streamdown/translations.d.ts +43 -0
- package/vendor/streamdown/translations.js +54 -0
- package/vendor/streamdown/url-policy.d.ts +1 -0
- package/vendor/streamdown/url-policy.js +1 -0
- package/vendor/streamdown/utils/bind.d.ts +8 -0
- package/vendor/streamdown/utils/bind.js +26 -0
- package/vendor/streamdown/utils/bundledLanguages.d.ts +1 -0
- package/vendor/streamdown/utils/bundledLanguages.js +1 -0
- package/vendor/streamdown/utils/code-block.d.ts +8 -0
- package/vendor/streamdown/utils/code-block.js +38 -0
- package/vendor/streamdown/utils/copy.svelte.d.ts +7 -0
- package/vendor/streamdown/utils/copy.svelte.js +38 -0
- package/vendor/streamdown/utils/darkMode.svelte.d.ts +3 -0
- package/vendor/streamdown/utils/darkMode.svelte.js +49 -0
- package/vendor/streamdown/utils/detectDirection.d.ts +1 -0
- package/vendor/streamdown/utils/detectDirection.js +19 -0
- package/vendor/streamdown/utils/get.d.ts +1 -0
- package/vendor/streamdown/utils/get.js +25 -0
- package/vendor/streamdown/utils/hightlighter.svelte.d.ts +30 -0
- package/vendor/streamdown/utils/hightlighter.svelte.js +524 -0
- package/vendor/streamdown/utils/index.d.ts +3 -0
- package/vendor/streamdown/utils/index.js +3 -0
- package/vendor/streamdown/utils/mermaid.d.ts +13 -0
- package/vendor/streamdown/utils/mermaid.js +49 -0
- package/vendor/streamdown/utils/panzoom.svelte.d.ts +35 -0
- package/vendor/streamdown/utils/panzoom.svelte.js +556 -0
- package/vendor/streamdown/utils/parse-incomplete-markdown.d.ts +2 -0
- package/vendor/streamdown/utils/parse-incomplete-markdown.js +2 -0
- package/vendor/streamdown/utils/runtime-env.d.ts +1 -0
- package/vendor/streamdown/utils/runtime-env.js +13 -0
- package/vendor/streamdown/utils/save.d.ts +1 -0
- package/vendor/streamdown/utils/save.js +14 -0
- package/vendor/streamdown/utils/scroll-lock.d.ts +2 -0
- package/vendor/streamdown/utils/scroll-lock.js +35 -0
- package/vendor/streamdown/utils/table.d.ts +8 -0
- package/vendor/streamdown/utils/table.js +176 -0
- package/vendor/streamdown/utils/url.d.ts +22 -0
- package/vendor/streamdown/utils/url.js +98 -0
- package/vendor/streamdown/utils/useClickOutside.svelte.d.ts +8 -0
- package/vendor/streamdown/utils/useClickOutside.svelte.js +41 -0
- package/vendor/streamdown/utils/useKeyDown.svelte.d.ts +5 -0
- package/vendor/streamdown/utils/useKeyDown.svelte.js +23 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Tokens } from 'marked';
|
|
2
|
+
import type { Extension } from './marked/index.js';
|
|
3
|
+
export { cjk, createCjkPlugin, type CjkPlugin } from './plugins/cjk-shared.js';
|
|
4
|
+
import { getThemeName } from '@streamdown-svelte/plugin-core';
|
|
5
|
+
import type { CodeHighlighterPlugin, CodePluginOptions, CustomRenderer, DiagramPlugin, MathPlugin, MathPluginOptions, MermaidPluginOptions, PluginConfig } from './contracts/plugins.js';
|
|
6
|
+
export type { CodeHighlighterPlugin, CodePluginOptions, CustomRenderer, CustomRendererProps, DiagramPlugin, HighlightOptions, HighlightResult, HighlightToken, MathPlugin, MathPluginOptions, MermaidInstance, MermaidPluginOptions, PluginConfig, ThemeInput } from './contracts/plugins.js';
|
|
7
|
+
export { getThemeName };
|
|
8
|
+
export declare function extractCodeFenceMeta(token: Tokens.Code): string | undefined;
|
|
9
|
+
export declare function extractCodeFenceLanguage(token: Tokens.Code): string;
|
|
10
|
+
export declare function findCustomRenderer(renderers: CustomRenderer[] | undefined, language: string | undefined): CustomRenderer | null;
|
|
11
|
+
export declare function getMathPluginOptions(plugin: MathPlugin | undefined): Required<MathPluginOptions>;
|
|
12
|
+
export declare function applyPluginMarkdownTransforms(markdown: string, plugins: PluginConfig | undefined): string;
|
|
13
|
+
export declare function resolveParserExtensions(extensions: Extension[] | undefined, plugins: PluginConfig | undefined): Extension[] | undefined;
|
|
14
|
+
export declare function createCodePlugin(options?: CodePluginOptions): CodeHighlighterPlugin;
|
|
15
|
+
export declare function createMathPlugin(options?: MathPluginOptions): MathPlugin;
|
|
16
|
+
export declare function createMermaidPlugin(options?: MermaidPluginOptions): DiagramPlugin;
|
|
17
|
+
export declare const code: CodeHighlighterPlugin;
|
|
18
|
+
export declare const math: MathPlugin;
|
|
19
|
+
export declare const mermaid: DiagramPlugin;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { createMarkedMathExtensions } from './marked/marked-math.js';
|
|
2
|
+
export { cjk, createCjkPlugin } from './plugins/cjk-shared.js';
|
|
3
|
+
import { createCodePlugin as createSharedCodePlugin, createMathPlugin as createSharedMathPlugin, createMermaidPlugin as createSharedMermaidPlugin, getThemeName } from '@streamdown-svelte/plugin-core';
|
|
4
|
+
import { bundledLanguagesInfo } from './utils/bundledLanguages.js';
|
|
5
|
+
export { getThemeName };
|
|
6
|
+
const CJK_AUTOLINK_BOUNDARY_CHARS = '[。.,、?!:;)】」』〉》]';
|
|
7
|
+
const CJK_AUTOLINK_PREFIX_CHARS = '(^|[\\s(【「『〈《:])';
|
|
8
|
+
const CJK_AUTOLINK_PATTERN = new RegExp(`${CJK_AUTOLINK_PREFIX_CHARS}((?:https?:\\/\\/|mailto:)[^\\s<>。.,、?!:;()【】「」『』〈〉《》]+)(?=${CJK_AUTOLINK_BOUNDARY_CHARS})`, 'gu');
|
|
9
|
+
export function extractCodeFenceMeta(token) {
|
|
10
|
+
const firstLine = token.raw.split('\n', 1)[0]?.trimEnd() ?? '';
|
|
11
|
+
if (!firstLine.startsWith('```')) {
|
|
12
|
+
const language = token.lang?.trim() ?? '';
|
|
13
|
+
const parts = language.split(/\s+/);
|
|
14
|
+
return parts.length > 1 ? parts.slice(1).join(' ') : undefined;
|
|
15
|
+
}
|
|
16
|
+
const fenceContent = firstLine.slice(3).trim();
|
|
17
|
+
if (!fenceContent) {
|
|
18
|
+
const language = token.lang?.trim() ?? '';
|
|
19
|
+
const parts = language.split(/\s+/);
|
|
20
|
+
return parts.length > 1 ? parts.slice(1).join(' ') : undefined;
|
|
21
|
+
}
|
|
22
|
+
const language = extractCodeFenceLanguage(token);
|
|
23
|
+
if (!language || fenceContent === language) {
|
|
24
|
+
const langValue = token.lang?.trim() ?? '';
|
|
25
|
+
const parts = langValue.split(/\s+/);
|
|
26
|
+
return parts.length > 1 ? parts.slice(1).join(' ') : undefined;
|
|
27
|
+
}
|
|
28
|
+
const meta = fenceContent.startsWith(language)
|
|
29
|
+
? fenceContent.slice(language.length).trim()
|
|
30
|
+
: fenceContent;
|
|
31
|
+
return meta.length > 0 ? meta : undefined;
|
|
32
|
+
}
|
|
33
|
+
export function extractCodeFenceLanguage(token) {
|
|
34
|
+
const langValue = token.lang?.trim() ?? '';
|
|
35
|
+
if (langValue) {
|
|
36
|
+
return langValue.split(/\s+/, 1)[0] ?? '';
|
|
37
|
+
}
|
|
38
|
+
const firstLine = token.raw.split('\n', 1)[0]?.trimEnd() ?? '';
|
|
39
|
+
if (!firstLine.startsWith('```')) {
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
42
|
+
const fenceContent = firstLine.slice(3).trim();
|
|
43
|
+
if (!fenceContent) {
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
return fenceContent.split(/\s+/, 1)[0] ?? token.lang ?? '';
|
|
47
|
+
}
|
|
48
|
+
export function findCustomRenderer(renderers, language) {
|
|
49
|
+
if (!(renderers && language)) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return (renderers.find((renderer) => Array.isArray(renderer.language)
|
|
53
|
+
? renderer.language.includes(language)
|
|
54
|
+
: renderer.language === language) ?? null);
|
|
55
|
+
}
|
|
56
|
+
export function getMathPluginOptions(plugin) {
|
|
57
|
+
const defaultOptions = {
|
|
58
|
+
errorColor: 'var(--color-muted-foreground)',
|
|
59
|
+
singleDollarTextMath: false
|
|
60
|
+
};
|
|
61
|
+
if (!plugin) {
|
|
62
|
+
return defaultOptions;
|
|
63
|
+
}
|
|
64
|
+
const remarkOptions = Array.isArray(plugin.remarkPlugin) && typeof plugin.remarkPlugin[1] === 'object'
|
|
65
|
+
? plugin.remarkPlugin[1]
|
|
66
|
+
: {};
|
|
67
|
+
const rehypeOptions = Array.isArray(plugin.rehypePlugin) && typeof plugin.rehypePlugin[1] === 'object'
|
|
68
|
+
? plugin.rehypePlugin[1]
|
|
69
|
+
: {};
|
|
70
|
+
return {
|
|
71
|
+
errorColor: rehypeOptions.errorColor ?? defaultOptions.errorColor,
|
|
72
|
+
singleDollarTextMath: remarkOptions.singleDollarTextMath ?? defaultOptions.singleDollarTextMath
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function applyPluginMarkdownTransforms(markdown, plugins) {
|
|
76
|
+
if (!plugins?.cjk) {
|
|
77
|
+
return markdown;
|
|
78
|
+
}
|
|
79
|
+
return markdown.replace(CJK_AUTOLINK_PATTERN, (_match, prefix, url) => {
|
|
80
|
+
return `${prefix}<${url}>`;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
export function resolveParserExtensions(extensions, plugins) {
|
|
84
|
+
const singleDollarTextMath = getMathPluginOptions(plugins?.math).singleDollarTextMath;
|
|
85
|
+
if (!singleDollarTextMath) {
|
|
86
|
+
return extensions;
|
|
87
|
+
}
|
|
88
|
+
if (extensions?.some((extension) => extension.name === 'math')) {
|
|
89
|
+
return extensions;
|
|
90
|
+
}
|
|
91
|
+
return [...createMarkedMathExtensions({ singleDollarTextMath: true }), ...(extensions ?? [])];
|
|
92
|
+
}
|
|
93
|
+
export function createCodePlugin(options = {}) {
|
|
94
|
+
return createSharedCodePlugin({
|
|
95
|
+
themes: options.themes,
|
|
96
|
+
languages: options.languages ?? bundledLanguagesInfo
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
export function createMathPlugin(options = {}) {
|
|
100
|
+
return createSharedMathPlugin(options);
|
|
101
|
+
}
|
|
102
|
+
export function createMermaidPlugin(options = {}) {
|
|
103
|
+
return createSharedMermaidPlugin(options);
|
|
104
|
+
}
|
|
105
|
+
export const code = /* @__PURE__ */ createCodePlugin();
|
|
106
|
+
export const math = /* @__PURE__ */ createMathPlugin();
|
|
107
|
+
export const mermaid = /* @__PURE__ */ createMermaidPlugin();
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
{
|
|
2
|
+
"upstream": "streamdown-svelte",
|
|
3
|
+
"version": "3.0.6",
|
|
4
|
+
"repository": "git+https://github.com/PacificStudio/streamdown-svelte.git",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"originalFileHashes": {
|
|
7
|
+
"AnimatedText.svelte": "e391b64a34c2ce947be6bb206b156eb577db6f6e887ab6bbadc487e31325c68c",
|
|
8
|
+
"AnimatedText.svelte.d.ts": "d3bb219a62827057cef13bf84397351c89fe18e7251955f857d1fa97910c8fb0",
|
|
9
|
+
"Block.svelte": "29c27ed641532fcb03bc3d39e9848065e48e868d7fadddc11e7dc99cd45e46e3",
|
|
10
|
+
"Block.svelte.d.ts": "65a141656681145435197c599a91c692291404af55e7cc21b3cd443d645aa8b4",
|
|
11
|
+
"Elements/Alert.svelte": "2ece8fe67151cadf94ac8dd8d3b9b66f5e1c8569582be8bed0e2aae2f6c7d205",
|
|
12
|
+
"Elements/Alert.svelte.d.ts": "396b595839dfd27cc010ec6980cced448c2f319bfe5d7d7f05df7995473a999c",
|
|
13
|
+
"Elements/Citation.svelte": "d0e32db8b57f48d6b8bc282cdd9fa2bddcb90213dcd95406f8a981fb2d0eee9f",
|
|
14
|
+
"Elements/Citation.svelte.d.ts": "314c8831099a2da15afcf18d24985c0eaabf6e092d0143c51b513c7441e87b6c",
|
|
15
|
+
"Elements/Code.svelte": "8303f7741ae88e5d3f1338414bee73cf3835f7e5fbc849e67a91fc291ac3524e",
|
|
16
|
+
"Elements/Code.svelte.d.ts": "f52f72fda1d2f7fc2c2d60ce831fc32c444feaef21397ea2f73c35a64cae7864",
|
|
17
|
+
"Elements/Element.svelte": "2f1e48fc4e32dc6009f81a6fa8261a480817609efdb1ce1bede4a1ed8a61f692",
|
|
18
|
+
"Elements/Element.svelte.d.ts": "082bf3968fb1e1b51e54d1cde3d800ed8bcc57a7d1c86728505d9269ec8f5980",
|
|
19
|
+
"Elements/FootnoteRef.svelte": "4123e6d5465d700bfdd8eeb9f4cdfb67d3fe1700a180c8cab978a1739f6b5351",
|
|
20
|
+
"Elements/FootnoteRef.svelte.d.ts": "8022deb0a7a24964197af7c23648408e33977175c5f54b393546cbf7b87ef0e7",
|
|
21
|
+
"Elements/Footnotes.svelte": "4fdb13e1fb2c64ab17ded808e287ad56645a9421c8a0a852fea6129ec1d02038",
|
|
22
|
+
"Elements/Footnotes.svelte.d.ts": "24d269a07d031c85a7b94866e45c8007595955a22b6bb0875e86f95083097f0a",
|
|
23
|
+
"Elements/Image.svelte": "7a745eea442a9f92c4a36d61956374140d1c08f35daabd81bc7257a4e80da7e7",
|
|
24
|
+
"Elements/Image.svelte.d.ts": "7762c38d3e517d9becfef9520bbaab4e857220f290a32809f84237f941a3805b",
|
|
25
|
+
"Elements/Link.svelte": "8ab2a2b2dfa2fe7b1e6ae4620ca6df2f1f875070c3b2d1d3e79bed23b2802367",
|
|
26
|
+
"Elements/Link.svelte.d.ts": "b3236f2ceb7be4d4e52f666769cc3dbc9a65503fd41d6da1c60d247e30eeb0c2",
|
|
27
|
+
"Elements/LinkSafetyModal.svelte": "dd3e2b5bccf6bd88048bb25f85210cb819e0db264664e5d4aa9632030713b64b",
|
|
28
|
+
"Elements/LinkSafetyModal.svelte.d.ts": "66f05eef4d4070b68f3100aafcdeb62b0f9169b93c107261cd5f9bd478d1385a",
|
|
29
|
+
"Elements/Math.svelte": "97b11edd100bb2a88b8b1ae50aacc2817bb6b36ef3516261a52dcf0451cde406",
|
|
30
|
+
"Elements/Math.svelte.d.ts": "8292a230ecc610170e0db8a337c43dff1219446077c1ebf80c5ce1f12beab169",
|
|
31
|
+
"Elements/Mermaid.svelte": "72e063b37ee5cf490aa8c39f7e653059d35e64c494e7757f453cfecc9e8d6c79",
|
|
32
|
+
"Elements/Mermaid.svelte.d.ts": "a69cc43b16714a34a5307c92010995eb0c0c99dd78475bff32167c054ca27144",
|
|
33
|
+
"Elements/MermaidDownload.svelte": "d92b5f7f94ef33b1d84c402192197edff8f532da34805599312e92224f9ee82a",
|
|
34
|
+
"Elements/MermaidDownload.svelte.d.ts": "b2900f5c453263dd033e4bef43f7775d527a0bf6492f48f84032e1caab6c2acb",
|
|
35
|
+
"Elements/Slot.svelte": "fbc11dc230214f6d0f010153b49221e21b6d74ba873efc3c6b733a81b9c3e098",
|
|
36
|
+
"Elements/Slot.svelte.d.ts": "02931574ffa9f408f972dead240697b523932bde197f6e94db4f21080ef4da11",
|
|
37
|
+
"Elements/Table.svelte": "27762075462ce70a7b15c4e4b4903fc2fdcf38d622284423a6b2ddbe9a8f86bf",
|
|
38
|
+
"Elements/Table.svelte.d.ts": "b559377f7776463c3c02ea2c93afa695cb1ec9a5b8aa4ca97480109b861a07d3",
|
|
39
|
+
"Elements/TableDownload.svelte": "61fcf6b252258c6f15e8bace6fd8e0771e25c5201b1d189862aa2989aa63f680",
|
|
40
|
+
"Elements/TableDownload.svelte.d.ts": "8b7554f882ad7df87629e26ccdab110dd9cf9dbc294a655b34b160c39c25ca35",
|
|
41
|
+
"Elements/fallbacks/CodeFallback.svelte": "ec821599a5aeaab9be78e488f6d13207b89e98b08c1f29f365689f4117fc1c77",
|
|
42
|
+
"Elements/fallbacks/CodeFallback.svelte.d.ts": "3fb5d88b7b5d3a555b11e6b11bb4146a14f19f69268ba03192bed2ea8dcff466",
|
|
43
|
+
"Elements/fallbacks/MathFallback.svelte": "2d9e2b172d27a8ce7ac4d0def30e70f2a26bcfcfabfb7565a96bd9750e574279",
|
|
44
|
+
"Elements/fallbacks/MathFallback.svelte.d.ts": "a2a03b8dfa2e882666cb49eeaff4f3c7cec58eb2bd311984be863a151e478c82",
|
|
45
|
+
"Elements/fallbacks/MermaidFallback.svelte": "7d189ada1b92dc4589613f8d0ddf0cabc1910b3217c610b68ee4288781ec7645",
|
|
46
|
+
"Elements/fallbacks/MermaidFallback.svelte.d.ts": "0766c6c4586ce252f560c0889cb31302c3b4966bb25d59f386a47f77de705ba8",
|
|
47
|
+
"Elements/fallbacks/index.d.ts": "381af5d625c6fcfc5ad18bd7652cb26b92a8ea1a38852d785d880be187f12db4",
|
|
48
|
+
"Elements/fallbacks/index.js": "381af5d625c6fcfc5ad18bd7652cb26b92a8ea1a38852d785d880be187f12db4",
|
|
49
|
+
"Elements/icons.d.ts": "a223a27529d34db9106cafc5f87e60a1204b2f9f6583a1d9b0a1f539e338e7d6",
|
|
50
|
+
"Elements/icons.js": "42c3170fd68426e37421d95326acc19a4af1e4c46ac730a5b797c61dbe747349",
|
|
51
|
+
"Elements/index.d.ts": "26c318bcfe19dc080e084b0c371fc3817758c0b23f4faed79db40c5345d64fec",
|
|
52
|
+
"Elements/index.js": "26c318bcfe19dc080e084b0c371fc3817758c0b23f4faed79db40c5345d64fec",
|
|
53
|
+
"Elements/popover.svelte.d.ts": "aeefb67209b25877db1b592c955ec26129dde5d236d98489031faac950f28f2f",
|
|
54
|
+
"Elements/popover.svelte.js": "2da49701943aded7f267ef69e3ab28a0bef9675442f95b1839d3548e3c0e3090",
|
|
55
|
+
"Elements/stepperState.svelte.d.ts": "3a3b2bb4f9c4168f52607e0901f681f8035e8bb9f4f5b3a0beb08d5c6c056b14",
|
|
56
|
+
"Elements/stepperState.svelte.js": "8aa2d072ecaafe59dff9a6754ed0a49bd520d7b8d68b7f2bba3e323363a4e089",
|
|
57
|
+
"IconProvider.svelte": "01f0a927d6a84de47c38f9c6c4be3d959775ab1f5265cc978174800482e1be96",
|
|
58
|
+
"IconProvider.svelte.d.ts": "f776a915f96397c053d81903e5ab44fc6a75dcfbb8d1b00cdfcb7625e319b11b",
|
|
59
|
+
"PluginProvider.svelte": "8c61de30f6b6426d66abe269f01c0d59d6a4d47daba9aa01fa326526eac41584",
|
|
60
|
+
"PluginProvider.svelte.d.ts": "39b2d6377225a5b8e9fd808374b3a8966d062aa6f93af9e7a5e8b37072f73cb3",
|
|
61
|
+
"Streamdown.svelte": "8a31e682a1d7518d95b552db9cba715f9975c4146425b590a8ad1f2e22efe369",
|
|
62
|
+
"Streamdown.svelte.d.ts": "27decfa5287720f581c8b33237d13ff2994425770f12099b53540251129a6d91",
|
|
63
|
+
"block/BlockTokens.svelte": "c706cd143e041d81f623f5a3d467db667f93e6ce8ecfd62437bd38278dd6638c",
|
|
64
|
+
"block/BlockTokens.svelte.d.ts": "ccafb210abac73e93d69f8e2d06e08c3454432420fdcccee2e0e6d1f9348011a",
|
|
65
|
+
"block/html.d.ts": "713c4e8ec6b81f99b24b805192ee69f9fe332feffe4abed0c1c05570c675d1c1",
|
|
66
|
+
"block/html.js": "4984bb837c2174efd1e004da4fbaa0012f602e2f8b59a220d81a1d40f2ad021e",
|
|
67
|
+
"block/text.d.ts": "d91166af350c74408e81e93f24b8fe48c22f65184d224ea2a2a01c5c5ff07049",
|
|
68
|
+
"block/text.js": "654d7c1477fd2266db531931f68395934cb7a98d263a46573dcf1c0caee9e6e3",
|
|
69
|
+
"context-key.d.ts": "d02aabcb50445309c65eb350d2e81bafcb8a3bfad8041d95da776c9751b23f6c",
|
|
70
|
+
"context-key.js": "b4e92373b2b8036133d23889c2501594203b4d4dd397b36690dac246980e3dc3",
|
|
71
|
+
"context.svelte.d.ts": "0edb8cf0b8af2659c342209ff887a723b3437f2640245fecf679325ed1ff62d2",
|
|
72
|
+
"context.svelte.js": "1e9ed5d16648805e622ad1257a583efde52470b28a3b2e328fe1e3ef336fdb86",
|
|
73
|
+
"contracts/plugins.d.ts": "9caec0aead4c5004fb14eb8ef38077cb1f57d570a67b4e6ed70b7bad1eb30fe0",
|
|
74
|
+
"contracts/plugins.js": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
75
|
+
"contracts/streamdown.d.ts": "d9bb267540d23db47683360576c12874ed6da9e2dcc75ebe0dbfd5006ed8a205",
|
|
76
|
+
"contracts/streamdown.js": "33d6cfbf40f5a564f3059a73a28f65b4eb85139fa626c97942fdbbcd2f047916",
|
|
77
|
+
"detect-direction.d.ts": "8d0c7971658329d6831a48eb6476d5b6b70d158fd1275d1a23a7761d99b94f58",
|
|
78
|
+
"detect-direction.js": "8d0c7971658329d6831a48eb6476d5b6b70d158fd1275d1a23a7761d99b94f58",
|
|
79
|
+
"icon-context.d.ts": "648fc29d2886fdfbb247099c000498358174a8809946532d749f11d65324c4b8",
|
|
80
|
+
"icon-context.js": "5e9fdb86454b0c0088c8a3512f949d42c8447732f43eb487314ec40b12c433fe",
|
|
81
|
+
"incomplete-code.d.ts": "c72337a1dd69bbb1a378872171282a438d9bac953824354534a67c618e36aa2b",
|
|
82
|
+
"incomplete-code.js": "a6d03f7fbcffd03937fce77bdd4f3019177f9b0415f6678c04fc5d14ab3b6781",
|
|
83
|
+
"index.d.ts": "04b8988d376c222c38f0c99f53b2f2b105d82407f2d33b031651fbc9024a40cf",
|
|
84
|
+
"index.js": "68198ccf6ca0a235f9d865accc07d0f529a28269658d954d1a90be45b453bce1",
|
|
85
|
+
"markdown-parse-cache.d.ts": "0708f46c23b8a975c80cc256522a45786550cf49edd0beb3b62798b28cace9f6",
|
|
86
|
+
"markdown-parse-cache.js": "fbc632bbc043c94762e5f162919bbdccd8c8d8d708114e86bf41c517993c0a4f",
|
|
87
|
+
"markdown.d.ts": "8b321f9241a12de24a8a6d537a1e320738b9f67d9e9ecad04d751f2807e2fc10",
|
|
88
|
+
"markdown.js": "e5adfa0d67cc1a397e6207022696b5545782c75f0a48b9f2b78b4dc28ed1d840",
|
|
89
|
+
"marked/index.d.ts": "97cd82a7e12c498ae7e5299764a51723c9e1c14383f040f896ead186a16559ae",
|
|
90
|
+
"marked/index.js": "15e517d6eb36d7d73c1604ef29c0b4d770f7ee90a68fc741a16c590073f629a0",
|
|
91
|
+
"marked/marked-alert.d.ts": "422228f835ce9167297558a690408f2a1b6c8c5b767661d19b065602b72887cd",
|
|
92
|
+
"marked/marked-alert.js": "71e70a95d2a8d566196d9252d6e048e6a94d90daa6354ba328c1a40d53a38e31",
|
|
93
|
+
"marked/marked-align.d.ts": "08a53184443b71b5f2870338a7c273263c89908e4b5859eb4f0eaf6d80276348",
|
|
94
|
+
"marked/marked-align.js": "4115f20f87e0cee2d89708f9148f7354ecd95abb4c725b11b8c84a7f5ad17cc9",
|
|
95
|
+
"marked/marked-br.d.ts": "e334a927d61f9c0d8431c841662e0f3741a8d6e45003fe808756a189a7831a6b",
|
|
96
|
+
"marked/marked-br.js": "6c0abb749361f6ef3f99256f2b1cbd477f9042a5b00957ca0916549886e8ebec",
|
|
97
|
+
"marked/marked-citations.d.ts": "0117d87c6af183f2995103b58c50ad1e769cea39e96d55a67174445121fabd9c",
|
|
98
|
+
"marked/marked-citations.js": "b70d970fab08a2a1b06be63e1899ca2b13ece29daae3a69310aa2cdc4070e2bc",
|
|
99
|
+
"marked/marked-cjk.d.ts": "987d7e26a21ad5736d14c33827f6f42ccb4ff3270ae887ef0025491059e196f2",
|
|
100
|
+
"marked/marked-cjk.js": "6cfc64044e917d1f9271a8a36213d83c2095cdf35c3af9598f9747cc7daba2a1",
|
|
101
|
+
"marked/marked-dl.d.ts": "9973426f272c1cea6e93d0632e1780ee20591b2072165ae687e6de4828cd3aca",
|
|
102
|
+
"marked/marked-dl.js": "37175e285713ecc5d9b6e2fd4b33564bb1fbaedca037bc284c33eb7e42acd388",
|
|
103
|
+
"marked/marked-footnotes.d.ts": "8061dbc74c96c0d57672a660d8a3c2b6106b95bf71f2c7b54963955b145e759f",
|
|
104
|
+
"marked/marked-footnotes.js": "ad62b9bbd845d86fa7f231a2f1c3783084b415c9826a4612ee5532a23ccafe8e",
|
|
105
|
+
"marked/marked-hr.d.ts": "2242755c353977cbc6b693c9c5ed7c22b36b6937d0829278edca0c1c9749a8e3",
|
|
106
|
+
"marked/marked-hr.js": "ef61d76d5c2f8fedbb1b18838e0e85d50e3f6f9b893c7c6deeb01344a0cab36a",
|
|
107
|
+
"marked/marked-list.d.ts": "3c89ac60481e34c36cfbf95611a294256eb2bc263215f0034d9a9b8d8315682c",
|
|
108
|
+
"marked/marked-list.js": "8b9c13641b5dc8c37e3882250f604f579832b44a13187b111e17947f3db81833",
|
|
109
|
+
"marked/marked-math.d.ts": "b7082b13ca37b9bad16504f978e24d8fca946416561797a82c7395d2c2f892af",
|
|
110
|
+
"marked/marked-math.js": "801bd6b674c63568562af1bfc3f54c960c80bdb1e972063f34444448d8c20708",
|
|
111
|
+
"marked/marked-mdx.d.ts": "1a40c6ba15f8c169f67e3203d07425e321e04bf21fa4eff426fbff03add80856",
|
|
112
|
+
"marked/marked-mdx.js": "ef96d85d2d4ce590d59a7bc55440104141e5d6818b64f26dd8e1c8849359bf4d",
|
|
113
|
+
"marked/marked-subsup.d.ts": "fa9c5be09f49381f58a84e0071490dd1c1ddb0291f2a8a1d9ebfb25f711080ac",
|
|
114
|
+
"marked/marked-subsup.js": "431cdd61c87d5700534124a0f5561fcf63a7bc30f0ecfa594e68e2e943aa22c7",
|
|
115
|
+
"marked/marked-table.d.ts": "af3895c06bbdadeedf515397f0799f220784ee61874555838e4d7f6583c43cfa",
|
|
116
|
+
"marked/marked-table.js": "87fe5f8d293bd91ac3020403be1add3ed4aa618227a29c03a52f3ed4eec9e693",
|
|
117
|
+
"plugin-context.d.ts": "bef9eaeb0b15e79170a9758553f402c7e398ff46ca61f53ef4ac8034036d61a3",
|
|
118
|
+
"plugin-context.js": "b24daa35b2ade7fb9eeab23d986270072d8dc14bd59c9bed7da7265491cec0bd",
|
|
119
|
+
"plugins.d.ts": "d78019e71f56c286d6c5660fe501a59401c3c754d75ded1caf4541977f79b3e7",
|
|
120
|
+
"plugins.js": "f997a8c4915404cc177ae3ee80cc8ea350e19aa146dd0440f1ec8d79a345ab6e",
|
|
121
|
+
"plugins/cjk-shared.d.ts": "4036e14e3e2bf6249a0b3688e608e03e7ba98ee112dcfcf97e6b50852739da29",
|
|
122
|
+
"plugins/cjk-shared.js": "c54dfcb5ace93e7b0dd29a6210cff25bff6c5d98389f074af6e692b7835e8937",
|
|
123
|
+
"remend.d.ts": "c4f3247d315167a12bd0f26a0a41f2a9b760b051227034b822215fd040cf60b2",
|
|
124
|
+
"remend.js": "19ce9e02e50870d474317ba1f00836aaa5f96ac07a30bc72902478365b2a0d21",
|
|
125
|
+
"security/html.d.ts": "71c1d63fc90b98236b7407f289442f517fb87fa3ce65ca4ec6fd1f9763a39282",
|
|
126
|
+
"security/html.js": "37b3dfda71f900ee807f3bdad6ef1a3f294bb2fd62aceefe04535dae05b68904",
|
|
127
|
+
"security/preprocess-custom-tags.d.ts": "ddd0e3d53f841e01dd63add7d05a58b0b977927c0ba293d84ea52bf6500c6b61",
|
|
128
|
+
"security/preprocess-custom-tags.js": "ee8d13a50ae9a0467b76bbf84e4ac5bf9a4cf618653a653eb1c6c6b3ebcc29c3",
|
|
129
|
+
"security/preprocess-literal-tag-content.d.ts": "9539f72864cdceee332d0344fcfe1e613d8ff1a65953554a2e91a69c1ba652d4",
|
|
130
|
+
"security/preprocess-literal-tag-content.js": "4d48fa0a058408133923390519e4fd53726eadb9bd612cbe47da263fe1937c5c",
|
|
131
|
+
"security/types.d.ts": "1bd53c279155d419990cd38e0a2c490795dc10128e7e8e9a8af12cc482176124",
|
|
132
|
+
"security/types.js": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
133
|
+
"site/SiteHeader.svelte": "83a82fecbd38d5eda1efd8c359d1ff90415591a190d7b1422aeccc1de340ac22",
|
|
134
|
+
"site/SiteHeader.svelte.d.ts": "8683a3f64357e7b8e3c01f19307ffb8904360b657cf9b95fdfbdadfaeff9119e",
|
|
135
|
+
"site/home/HomeDemo.svelte": "9a7399ffb416c2c5aa9d2a7881128ee9152254fa35289bcad842189c2f343993",
|
|
136
|
+
"site/home/HomeDemo.svelte.d.ts": "28359f9859e82a586fa5c995e53ad2eca2d9b4c371cd6643f4c1ff52a5464b75",
|
|
137
|
+
"site/home/HomePage.svelte": "e55cd755ebc80ee0b3cbb9525477594ab10d30e22d9e9b29d8439be97f6389dd",
|
|
138
|
+
"site/home/HomePage.svelte.d.ts": "88627402328e565e1c1362b641408bb9d20197460c2ec6f3ae78651afae1c641",
|
|
139
|
+
"site/home/content.d.ts": "3f46ddd893e104276b755c8d6d5c8ae7aca5d3a21c60a35da0e4c9cb3546c026",
|
|
140
|
+
"site/home/content.js": "961b3c48310c531a7e75576dd763b9534b57e21a9197f8bf38afef358b63b956",
|
|
141
|
+
"site/metadata.d.ts": "c8010f42bf196cd2c0baeabe87e162d5d13858ef4791bf67f5f9053c71ae064b",
|
|
142
|
+
"site/metadata.js": "8105c2893dd562c79acd9268d2f2e7f97848a90d394d2d0ef9afed698130d15c",
|
|
143
|
+
"site/navigation.d.ts": "6e3308c91b72b5d31c7dc7cca8e3620f9c461975a90788fe6f3b4a14c5d0551d",
|
|
144
|
+
"site/navigation.js": "d3703274e1e2b4024c523f45f449397481aabe274f454b4c5b2331abc0fa21c1",
|
|
145
|
+
"streamdown/config.d.ts": "ad6dbc59cb645c469d8f8a8cc226430213d11298d7424a5072743e798503f417",
|
|
146
|
+
"streamdown/config.js": "f6ca0fb7353653404275e7efdcb3552bff826d5584370c2a59c39591cdd644dd",
|
|
147
|
+
"streamdown/context.d.ts": "9f490b00c84f3317f062446f4b895566bccc0f85eb02c29009803c1a19558370",
|
|
148
|
+
"streamdown/context.js": "d2d1f0d37f4ff863b6b947eed635dbc124fed2499b083b1d92230bd1734feb27",
|
|
149
|
+
"streamdown/incomplete-markdown.d.ts": "c54d21ddf5d7f82b33b29fb8679d5eef56719d9fd67b35587ee64be9a6de98b2",
|
|
150
|
+
"streamdown/incomplete-markdown.js": "a47d74236e9735e503686e4d75ecb8f047113b1c31569551d4119aa8af42374e",
|
|
151
|
+
"streamdown/pipeline.d.ts": "fe255fce7c3740f36aef18c352efb425e608bea86f82bca29392539fe6592b83",
|
|
152
|
+
"streamdown/pipeline.js": "af084a0788a1915a878b9d9a2af61b5849ffa9f0f37b36285b8cc9c8f3ff074d",
|
|
153
|
+
"streamdown/runtime.d.ts": "2c93b35801e1261e163f5901d4f287335f3aa923594578942d56a7f06709c8cc",
|
|
154
|
+
"streamdown/runtime.js": "e957214815b1fe415db3b119798757a66c77962e38aeae0277003557288d7ae8",
|
|
155
|
+
"streaming.d.ts": "255dbcdc641352be3138b6572e503755733458b5aae8f6fe1ebc6adbc6981cc6",
|
|
156
|
+
"streaming.js": "5c74ba785d33e279b6727fb7f4572f66ab1df89a6e8210591f7c07967ef88d05",
|
|
157
|
+
"theme.d.ts": "dedf05be150225e87a5cbb3da6b39c1c17fe8b58f2ecf38d35da0c427b95366d",
|
|
158
|
+
"theme.js": "3a7522ae1a0ba4604967a69896ee14835f214358f61e07480c8efbdb50a2bcdf",
|
|
159
|
+
"translations.d.ts": "fba3afca949a5d50e22085833e972876e7f83201d18728db98022ee83b3f7c58",
|
|
160
|
+
"translations.js": "853b4f7c82f89f3c39739e80e0700bb710b65ae7a8b5d3c6e22eed149d0409db",
|
|
161
|
+
"url-policy.d.ts": "237506dce3fec1bb5cc701c7aa80a0ad94251cd7a0edb63dfcb34dbe81eb8c73",
|
|
162
|
+
"url-policy.js": "f1d110069be4701469374f735bedef5f3ddbb48af579df2ab2697639fdc3bae1",
|
|
163
|
+
"utils/bind.d.ts": "51a7d01580d7a5410e516f1ab71c1e0e97818c00f857a695b508e5695a16a1ce",
|
|
164
|
+
"utils/bind.js": "11a38bd93837c2191d0fb553d20bb43e5999bb710179ba5db3bd08743fd9bf7f",
|
|
165
|
+
"utils/bundledLanguages.d.ts": "5ecc327e4bc40aba535821f5eeaa5537b2c310b3ce6ce4dff4d2be8a05991751",
|
|
166
|
+
"utils/bundledLanguages.js": "de9d14a9b31b43911660f4d6a4dc40bafa25c8fa28426bb5513abfc87fbfefa0",
|
|
167
|
+
"utils/code-block.d.ts": "ca1fe6ccee24b1e3c4e6e354af787800bbf27804e7be60c42cfa049bed74b2d7",
|
|
168
|
+
"utils/code-block.js": "d826cf94b9f89eabdbda03c1c05d2f30753943d9bbf9e1cae031be4a8d103966",
|
|
169
|
+
"utils/copy.svelte.d.ts": "c4dc7a14236c62dcac467ff8e881d1ef88f57e1b9ef94ec79a468c240669e986",
|
|
170
|
+
"utils/copy.svelte.js": "9ef017a01f72f35632d5b23c57c1f11d3a9805129780fd41dd76476fd57633c5",
|
|
171
|
+
"utils/darkMode.svelte.d.ts": "ccef293e28ce66afe3805c38f9d66959c3dcaa0399f8dfd89436fcce8857a75c",
|
|
172
|
+
"utils/darkMode.svelte.js": "c349915bc0c10fb1057164ce696c30386e6447a0a7043ad07ac20ba817fb9067",
|
|
173
|
+
"utils/detectDirection.d.ts": "4a6a57445e68537353dbaa87b0417143ddfdc8a07ddd70b354b4b8be92d2ab00",
|
|
174
|
+
"utils/detectDirection.js": "9be0826d18138385a18e6d540859867b9d0bfeac0d9ee3eb83eed09cca03f163",
|
|
175
|
+
"utils/get.d.ts": "2ae9140f8a563706d7ea4763427bcc694cbe6fba0485eb6565e8618f0812a0bc",
|
|
176
|
+
"utils/get.js": "55ceea3e5a6412418de9ee9ce4df90dc03c708397f08777be9d56be393f7895d",
|
|
177
|
+
"utils/hightlighter.svelte.d.ts": "39869cd962c90912f060803a57d8c4474dc0e6cb715f2995e2cad2252ec26dac",
|
|
178
|
+
"utils/hightlighter.svelte.js": "38e41de8c8408fc0b0b76b8c7a6eff7d74186f01d51297fa6fc15a86756bb2c3",
|
|
179
|
+
"utils/index.d.ts": "310b6a4fdf27e7c5f590a5990b62391570ce0c7dabf6d8c7bb5186e9f54dfb00",
|
|
180
|
+
"utils/index.js": "310b6a4fdf27e7c5f590a5990b62391570ce0c7dabf6d8c7bb5186e9f54dfb00",
|
|
181
|
+
"utils/mermaid.d.ts": "a873b30c103d2f43e7aa96bb22b20c64aa5f5e2d8459d81bb6b5a2bc4eeb62df",
|
|
182
|
+
"utils/mermaid.js": "80a84538642c7d247ca7cba688138e1d57425a8689fd84af5bf919be734f16b1",
|
|
183
|
+
"utils/panzoom.svelte.d.ts": "991c928d1ab3dc69e267bfd88594753c7c16703480508b8089844a8f4239cb7b",
|
|
184
|
+
"utils/panzoom.svelte.js": "9c9ff18bdeb26277e9379f9cb59d3fd5cfe766f056d62ca153a9675dad6d6ed5",
|
|
185
|
+
"utils/parse-incomplete-markdown.d.ts": "7572651b53985e6c13a524156059de221741ee423b6d404b8064b967c500f0c1",
|
|
186
|
+
"utils/parse-incomplete-markdown.js": "3311ce2721d4981f5ffe80ce18595effbd3fee79e8633e75a4e25493592e6b18",
|
|
187
|
+
"utils/runtime-env.d.ts": "3b1bd820f8be9a30376c35c226312a390118fed32f89daee5b6caa5d42c3faf0",
|
|
188
|
+
"utils/runtime-env.js": "b5b84e300c05c0d1166488756a285cd62ab2879aeb52a3f3505b6b81c17574c2",
|
|
189
|
+
"utils/save.d.ts": "69ff510ed1cbaf35ee2e62d054be2f1b583fbafacb9f1128ebc86cd4d3fa1cbc",
|
|
190
|
+
"utils/save.js": "528d5cae5d56b5a942c9fbd38e20624fa063bacd89a2d13e25a21dc6e61633cd",
|
|
191
|
+
"utils/scroll-lock.d.ts": "a2f85cf48670c23d990083ed92c09695662c9fbb6fa2b1f19bfb6daafee4aed5",
|
|
192
|
+
"utils/scroll-lock.js": "16a2fc9945a67ac6f13a1ac32b76822c869811f4a3e7b8f01691233e0d7f2de6",
|
|
193
|
+
"utils/table.d.ts": "6c4108bef7c2496ff3f996c7a3afc601208c69c068f7b94d90e68f370314db0a",
|
|
194
|
+
"utils/table.js": "34d3aefe8741c716713166f634fd347e5305c874906311a90132a5803b2090cd",
|
|
195
|
+
"utils/url.d.ts": "d11c4ed0dcbbae171def0992124cfa5498173d09d1e325c6b35fe195ead467d1",
|
|
196
|
+
"utils/url.js": "804680599e2fbaf829be084520e727fe89dc1a51a6d4fb88467aa545878460d8",
|
|
197
|
+
"utils/useClickOutside.svelte.d.ts": "013df02bf395df0d30bae48f3a89c8413a47755edf54da9df0670c5c235153c1",
|
|
198
|
+
"utils/useClickOutside.svelte.js": "e30ff90528323b89e7056b312a0a3038e33b7e4645b665d628a554740dc10734",
|
|
199
|
+
"utils/useKeyDown.svelte.d.ts": "b87221518e81d6b5b165e8d45a9dba8f06a48b5a07a341a8d057cfa348fab3d2",
|
|
200
|
+
"utils/useKeyDown.svelte.js": "380a2278d34cf51e8ac348ab2a814fca8168ecccfac79270299b7da119438ddb"
|
|
201
|
+
},
|
|
202
|
+
"modifiedFiles": [
|
|
203
|
+
"theme.js"
|
|
204
|
+
],
|
|
205
|
+
"runtimeDependencies": {
|
|
206
|
+
"@floating-ui/dom": "^1.7.4",
|
|
207
|
+
"@shikijs/langs": "^3.17.1",
|
|
208
|
+
"@shikijs/themes": "^3.17.1",
|
|
209
|
+
"clsx": "^2.1.1",
|
|
210
|
+
"esm-env": "^1.2.2",
|
|
211
|
+
"katex": "^0.16.22",
|
|
212
|
+
"marked": "^16.2.1",
|
|
213
|
+
"mermaid": "^11.11.0",
|
|
214
|
+
"rehype-harden": "^1.1.8",
|
|
215
|
+
"rehype-raw": "^7.0.0",
|
|
216
|
+
"rehype-sanitize": "^6.0.0",
|
|
217
|
+
"rehype-stringify": "^10.0.1",
|
|
218
|
+
"remark-cjk-friendly": "^2.0.1",
|
|
219
|
+
"remark-cjk-friendly-gfm-strikethrough": "^2.0.1",
|
|
220
|
+
"remark-gfm": "^4.0.1",
|
|
221
|
+
"remark-parse": "^11.0.0",
|
|
222
|
+
"remark-rehype": "^11.1.2",
|
|
223
|
+
"shiki": "^3.13.0",
|
|
224
|
+
"unified": "^11.0.5",
|
|
225
|
+
"unist-util-visit": "^5.1.0",
|
|
226
|
+
"@streamdown-svelte/plugin-core": "1.0.0",
|
|
227
|
+
"@streamdown-svelte/remend": "1.3.0"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, IncompleteMarkdownParser, isWithinCodeBlock, isWithinLinkOrImageUrl, isWithinMathBlock, isWordChar, parseIncompleteMarkdown } from '@streamdown-svelte/remend';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Tokens } from 'marked';
|
|
2
|
+
import { type UrlTransform } from '../markdown.js';
|
|
3
|
+
import type { AllowedTags } from './types.js';
|
|
4
|
+
type HtmlRenderOverride = boolean | ((token: Tokens.HTML | Tokens.Tag) => string) | undefined;
|
|
5
|
+
type SecurityRenderOptions = {
|
|
6
|
+
allowedImagePrefixes?: string[];
|
|
7
|
+
allowedLinkPrefixes?: string[];
|
|
8
|
+
allowedTags?: AllowedTags;
|
|
9
|
+
defaultOrigin?: string;
|
|
10
|
+
skipHtml?: boolean;
|
|
11
|
+
urlTransform?: UrlTransform;
|
|
12
|
+
};
|
|
13
|
+
export declare const escapeHtml: (value: string) => string;
|
|
14
|
+
export declare function normalizeHtmlIndentation(content: string): string;
|
|
15
|
+
export declare function renderMarkdownFragment(source: string, { allowedImagePrefixes, allowedLinkPrefixes, allowedTags, defaultOrigin, urlTransform }?: SecurityRenderOptions): string;
|
|
16
|
+
export declare function renderHtmlToken(token: Tokens.HTML | Tokens.Tag, { renderHtml, ...options }?: SecurityRenderOptions & {
|
|
17
|
+
renderHtml?: HtmlRenderOverride;
|
|
18
|
+
}): string;
|
|
19
|
+
export {};
|