svelte-streamdown 2.2.5 → 2.2.6

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.
@@ -95,7 +95,7 @@
95
95
  {/snippet}
96
96
  {#snippet Skeleton(lines: string[])}
97
97
  {#each lines as line}
98
- <span class={streamdown.theme.code.line}>
98
+ <span class={streamdown.theme.code.skeleton}>
99
99
  {line.trim().length > 0 ? line : '\u200B'}
100
100
  </span>
101
101
  {/each}
package/dist/theme.js CHANGED
@@ -43,7 +43,7 @@ export const theme = {
43
43
  header: 'flex items-center justify-between bg-gray-100/80 p-2 text-gray-600 text-xs',
44
44
  button: 'cursor-pointer size-6 p-1 text-gray-600 transition-all hover:text-gray-900 rounded hover:bg-gray-100',
45
45
  language: 'ml-1 font-mono lowercase',
46
- skeleton: 'rounded-md font-mono text-transparent bg-gray-200 scale-y-90 animate-pulse whitespace-nowrap inline-block',
46
+ skeleton: 'block rounded-md font-mono text-transparent bg-gray-200 scale-y-90 animate-pulse whitespace-nowrap',
47
47
  pre: 'overflow-x-auto font-mono p-0 bg-gray-100/40',
48
48
  line: 'block'
49
49
  },
@@ -171,7 +171,7 @@ export const shadcnTheme = {
171
171
  header: 'flex items-center justify-between bg-muted/80 px-2 py-1 text-muted-foreground text-xs',
172
172
  button: 'cursor-pointer size-6 p-1 text-muted-foreground transition-all hover:text-foreground rounded hover:bg-muted',
173
173
  language: 'ml-1 font-mono lowercase',
174
- skeleton: 'rounded-md font-mono text-transparent bg-border/80 scale-y-90 w-fit animate-pulse whitespace-nowrap inline-block',
174
+ skeleton: 'block rounded-md font-mono text-transparent bg-border/80 scale-y-90 w-fit animate-pulse whitespace-nowrap',
175
175
  pre: 'overflow-x-auto font-mono p-0 bg-muted/40',
176
176
  line: 'block '
177
177
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-streamdown",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",