svelte-streamdown 2.2.2 → 2.2.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/dist/AnimatedBlock.svelte +1 -1
- package/dist/AnimatedText.svelte +1 -1
- package/dist/Block.svelte +1 -1
- package/dist/Elements/Alert.svelte +1 -1
- package/dist/Elements/Code.svelte +1 -1
- package/dist/Elements/Element.svelte +1 -1
- package/dist/Elements/FootnoteRef.svelte +1 -1
- package/dist/Elements/Image.svelte +1 -1
- package/dist/Elements/Link.svelte +1 -1
- package/dist/Elements/Math.svelte +1 -1
- package/dist/Elements/Mermaid.svelte +1 -1
- package/dist/Elements/Table.svelte +1 -1
- package/dist/Streamdown.svelte +1 -1
- package/dist/Streamdown.svelte.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/marked/marked-footnotes.js +1 -1
- package/package.json +1 -1
- /package/dist/{streamdown.svelte.d.ts → context.svelte.d.ts} +0 -0
- /package/dist/{streamdown.svelte.js → context.svelte.js} +0 -0
package/dist/AnimatedText.svelte
CHANGED
package/dist/Block.svelte
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import Element from './Elements/Element.svelte';
|
|
4
4
|
import { lex, type StreamdownToken } from './marked/index.js';
|
|
5
5
|
import AnimatedText from './AnimatedText.svelte';
|
|
6
|
-
import { useStreamdown } from './
|
|
6
|
+
import { useStreamdown } from './context.svelte.js';
|
|
7
7
|
import AnimatedBlock from './AnimatedBlock.svelte';
|
|
8
8
|
|
|
9
9
|
let {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/><path d="M12 17h.01" />`
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
import { useStreamdown } from '../
|
|
16
|
+
import { useStreamdown } from '../context.svelte.js';
|
|
17
17
|
import Slot from './Slot.svelte';
|
|
18
18
|
import type { AlertToken } from '../marked/index.js';
|
|
19
19
|
import type { Snippet } from 'svelte';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { useStreamdown } from '../
|
|
2
|
+
import { useStreamdown } from '../context.svelte.js';
|
|
3
3
|
import { save } from '../utils/save.js';
|
|
4
4
|
import { useCopy } from '../utils/copy.svelte.js';
|
|
5
5
|
import { HighlighterManager, languageExtensionMap } from '../utils/hightlighter.svelte.js';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import Alert from './Alert.svelte';
|
|
9
9
|
import type { StreamdownToken } from '../marked/index.js';
|
|
10
10
|
import Slot from './Slot.svelte';
|
|
11
|
-
import { useStreamdown } from '../
|
|
11
|
+
import { useStreamdown } from '../context.svelte.js';
|
|
12
12
|
import FootnoteRef from './FootnoteRef.svelte';
|
|
13
13
|
let { token, children }: { token: StreamdownToken; children: Snippet } = $props();
|
|
14
14
|
const streamdown = useStreamdown();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount, untrack } from 'svelte';
|
|
3
|
-
import { useStreamdown } from '../
|
|
3
|
+
import { useStreamdown } from '../context.svelte.js';
|
|
4
4
|
import type { MathToken } from '../marked/index.js';
|
|
5
5
|
import type { KatexOptions } from 'katex';
|
|
6
6
|
import 'katex/dist/katex.min.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount } from 'svelte';
|
|
3
|
-
import { useStreamdown } from '../
|
|
3
|
+
import { useStreamdown } from '../context.svelte.js';
|
|
4
4
|
import type { Tokens } from 'marked';
|
|
5
5
|
import type { MermaidConfig } from 'mermaid';
|
|
6
6
|
import { on } from 'svelte/events';
|
package/dist/Streamdown.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Block from './Block.svelte';
|
|
3
|
-
import { StreamdownContext, type StreamdownProps } from './
|
|
3
|
+
import { StreamdownContext, type StreamdownProps } from './context.svelte.js';
|
|
4
4
|
import { mergeTheme, shadcnTheme } from './theme.js';
|
|
5
5
|
import { parseBlocks } from './marked/index.js';
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as Streamdown } from './Streamdown.svelte';
|
|
2
|
-
export { useStreamdown, type StreamdownProps } from './
|
|
2
|
+
export { useStreamdown, type StreamdownProps } from './context.svelte.js';
|
|
3
3
|
export { theme, shadcnTheme, mergeTheme, type Theme } from './theme.js';
|
|
4
4
|
export { lex, parseBlocks, type StreamdownToken } from './marked/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as Streamdown } from './Streamdown.svelte';
|
|
2
|
-
export { useStreamdown } from './
|
|
2
|
+
export { useStreamdown } from './context.svelte.js';
|
|
3
3
|
export { theme, shadcnTheme, mergeTheme } from './theme.js';
|
|
4
4
|
export { lex, parseBlocks } from './marked/index.js';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|