vue-stream-markdown 0.1.1 → 0.1.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.
Files changed (72) hide show
  1. package/README.md +9 -0
  2. package/dist/button-2wMU7qkH.js +5 -0
  3. package/dist/{button-dU2iYZBS.js → button-CJyeXWq2.js} +1 -1
  4. package/dist/{code-BfJ58lYO.js → code-CJ4tMt6L.js} +8 -8
  5. package/dist/code-block-BucFZooo.js +9 -0
  6. package/dist/{code-block-CZHD64ft.js → code-block-CQ4lgva1.js} +13 -17
  7. package/dist/{composables-BwAY_BDJ.js → composables-Cj6_jbwr.js} +54 -33
  8. package/dist/dropdown-dsCfq0Hl.js +5 -0
  9. package/dist/error-component-B0mmLhh6.js +4 -0
  10. package/dist/{error-component-CiIR_1Cg.js → error-component-ClGLfmwy.js} +1 -1
  11. package/dist/{image-BporCeem.js → image-xeiC5YFM.js} +4 -4
  12. package/dist/index.css +627 -17
  13. package/dist/index.d.ts +34 -4
  14. package/dist/index.js +63 -17
  15. package/dist/{inline-math-BfG4600m.js → inline-math-C2NUSasr.js} +12 -15
  16. package/dist/{link-D-OnakwP.js → link-BceXudNH.js} +2 -2
  17. package/dist/{math-CvKkCYb9.js → math-DXOLG3Xg.js} +12 -15
  18. package/dist/{mermaid-FgnWaZtT.js → mermaid-CU4hpB6S.js} +5 -5
  19. package/dist/{previewers-CoU4RlpQ.js → previewers-qHMi6xZ3.js} +1 -1
  20. package/dist/segmented-BeHqXuFx.js +6 -0
  21. package/dist/{segmented-Baxxk3UJ.js → segmented-CF6exjdD.js} +1 -1
  22. package/dist/{shiki-BHOZKGKS.js → shiki-BlfngIRi.js} +9 -14
  23. package/dist/{renderer-CZ41eK_V.js → shiki-token-renderer-D164wC7Y.js} +10 -23
  24. package/dist/{table-B__TdLr7.js → table-C5VHgkTQ.js} +3 -3
  25. package/dist/tooltip-BzVZqo7w.js +4 -0
  26. package/dist/{tooltip-CA6Kp7Ek.js → tooltip-gxsqaBNg.js} +1 -1
  27. package/dist/vanilla-CKj7EQLx.js +4 -0
  28. package/dist/vanilla-D5DzB31q.js +39 -0
  29. package/dist/zoom-container-CwEDlKRx.js +6 -0
  30. package/dist/{zoom-container-Dlqv-z-t.js → zoom-container-D_fBClW2.js} +8 -10
  31. package/package.json +2 -1
  32. package/dist/blockquote-DFANmQEB.css +0 -13
  33. package/dist/button-Bz0s_F3s.js +0 -5
  34. package/dist/button-C12sn_G5.css +0 -24
  35. package/dist/code-NAXHb0o2.css +0 -4
  36. package/dist/code-block-BFUXyGQH.js +0 -9
  37. package/dist/code-block-Bv8s2E8I.css +0 -62
  38. package/dist/delete-Ci7IJDoT.css +0 -4
  39. package/dist/dropdown-RWgcV-8w.js +0 -5
  40. package/dist/emphasis-BseYvUae.css +0 -4
  41. package/dist/error-component-BIPPxd-M.css +0 -21
  42. package/dist/error-component-CR9t-T1D.js +0 -4
  43. package/dist/heading-KxpVX3-u.css +0 -30
  44. package/dist/html-C5_wsY4-.css +0 -5
  45. package/dist/image-B77jbMUB.css +0 -46
  46. package/dist/inline-code-Eo65bj3F.css +0 -12
  47. package/dist/inline-math-DgBjIrPT.css +0 -7
  48. package/dist/link-BA_j8di3.css +0 -12
  49. package/dist/list-CcVBNIly.css +0 -11
  50. package/dist/list-item-Y6Cphjrp.css +0 -15
  51. package/dist/math-Cq89zpB6.css +0 -11
  52. package/dist/mermaid-C9ZUejzK.css +0 -8
  53. package/dist/modal-CWdgVkH_.css +0 -48
  54. package/dist/node-list-C9O-A1aZ.css +0 -11
  55. package/dist/paragraph-wRNmMYAI.css +0 -6
  56. package/dist/segmented-C0uEAYuJ.js +0 -6
  57. package/dist/segmented-DLmggl-e.css +0 -8
  58. package/dist/shiki-CMgjqKKu.css +0 -20
  59. package/dist/spin-B2FU3Sx6.css +0 -19
  60. package/dist/strong-DpeQmP2J.css +0 -4
  61. package/dist/table-BWn_kG8W.css +0 -19
  62. package/dist/table-CJzlDdmv.css +0 -34
  63. package/dist/text-D098eCyi.css +0 -5
  64. package/dist/thematic-break-C5zxgoE9.css +0 -6
  65. package/dist/tooltip-DAngu9Wp.css +0 -5
  66. package/dist/tooltip-DoIUaZgq.js +0 -4
  67. package/dist/vanilla-BZ8bn5Yz.css +0 -4
  68. package/dist/vanilla-CA9QO96X.js +0 -3
  69. package/dist/vanilla-DkX6g0dm.js +0 -87
  70. package/dist/yaml-McBkYbxI.css +0 -5
  71. package/dist/zoom-container-BENM7TpV.css +0 -28
  72. package/dist/zoom-container-BPbftW_I.js +0 -6
@@ -1,24 +0,0 @@
1
- .stream-markdown [data-stream-markdown="dropdown-overlay"] {
2
- padding: .25rem;
3
- }
4
-
5
- .stream-markdown [data-stream-markdown="button"] {
6
- cursor: pointer;
7
- color: var(--muted-foreground);
8
- transition-duration: var(--default-transition-duration);
9
- background-color: #0000;
10
- border: none;
11
- border-radius: .375rem;
12
- justify-content: center;
13
- align-items: center;
14
- gap: .25rem;
15
- padding: .5rem;
16
- font-size: .75rem;
17
- line-height: 1rem;
18
- display: flex;
19
- }
20
- .stream-markdown [data-stream-markdown="button"]:hover {
21
- color: var(--foreground);
22
- background-color: var(--accent);
23
- }
24
-
@@ -1,4 +0,0 @@
1
- .stream-markdown [data-stream-markdown="code"], .stream-markdown [data-stream-markdown="code"] code {
2
- font-family: var(--font-mono);
3
- }
4
-
@@ -1,9 +0,0 @@
1
- import "./previewers-CoU4RlpQ.js";
2
- import "./composables-BwAY_BDJ.js";
3
- import "./tooltip-CA6Kp7Ek.js";
4
- import "./button-dU2iYZBS.js";
5
- import "./modal-CuQR21UD.js";
6
- import { t as code_block_default } from "./code-block-CZHD64ft.js";
7
- import "./segmented-Baxxk3UJ.js";
8
-
9
- export { code_block_default as default };
@@ -1,62 +0,0 @@
1
- .stream-markdown [data-stream-markdown="actions"] {
2
- align-items: center;
3
- gap: .25rem;
4
- display: flex;
5
- }
6
-
7
- .stream-markdown [data-stream-markdown="language-title"] {
8
- align-items: center;
9
- gap: .5rem;
10
- display: flex;
11
- }
12
- .stream-markdown [data-stream-markdown="language-name"] {
13
- font-family: var(--font-mono);
14
- text-transform: lowercase;
15
- font-size: .875rem;
16
- line-height: 1.25rem;
17
- }
18
-
19
- .stream-markdown [data-stream-markdown="code-block"] {
20
- border: 1px solid var(--border);
21
- border-radius: .75rem;
22
- margin-block: 1rem;
23
- overflow: hidden;
24
- }
25
- .stream-markdown [data-stream-markdown="code-block"][data-collapsed="true"] [data-stream-markdown="code-block-header"] {
26
- border-bottom: none;
27
- }
28
- .stream-markdown [data-stream-markdown="code-block-header"] {
29
- border-bottom: 1px solid var(--border);
30
- background-color: color-mix(in oklab, var(--muted) 80%, transparent);
31
- color: var(--muted-foreground);
32
- justify-content: space-between;
33
- align-items: center;
34
- padding-block: .375rem;
35
- padding-inline: 1rem;
36
- font-size: .875rem;
37
- line-height: 1.25rem;
38
- display: flex;
39
- position: relative;
40
- }
41
- @media (max-width: 1024px) {
42
- .stream-markdown [data-stream-markdown="code-block-header"] {
43
- padding-inline: .5rem;
44
- }
45
- }
46
- .stream-markdown [data-stream-markdown="code-block-content"] {
47
- overflow: auto;
48
- }
49
- .stream-markdown [data-stream-markdown="code-block-header"] > :first-child {
50
- flex: 1;
51
- }
52
- .stream-markdown [data-stream-markdown="code-block-header"] > :last-child {
53
- flex: 1;
54
- justify-content: flex-end;
55
- display: flex;
56
- }
57
- .stream-markdown [data-stream-markdown="code-block-header"] > :nth-child(2) {
58
- position: absolute;
59
- left: 50%;
60
- transform: translateX(-50%);
61
- }
62
-
@@ -1,4 +0,0 @@
1
- .stream-markdown [data-stream-markdown="delete"] {
2
- text-decoration: line-through;
3
- }
4
-
@@ -1,5 +0,0 @@
1
- import "./composables-BwAY_BDJ.js";
2
- import "./tooltip-CA6Kp7Ek.js";
3
- import { n as dropdown_default } from "./button-dU2iYZBS.js";
4
-
5
- export { dropdown_default as default };
@@ -1,4 +0,0 @@
1
- .stream-markdown [data-stream-markdown="emphasis"] {
2
- font-style: italic;
3
- }
4
-
@@ -1,21 +0,0 @@
1
- .stream-markdown [data-stream-markdown="error-component"] {
2
- color: var(--muted-foreground);
3
- font-family: var(--font-mono);
4
- font-size: .875rem;
5
- line-height: 1.25rem;
6
- display: inline-block;
7
- }
8
- .stream-markdown [data-stream-markdown="error-component"] span {
9
- word-break: break-word;
10
- overflow-wrap: break-word;
11
- flex: 1;
12
- min-width: 0;
13
- }
14
- .stream-markdown [data-stream-markdown="error-component-icon"] {
15
- vertical-align: text-bottom;
16
- align-items: center;
17
- margin-right: .5rem;
18
- line-height: 1;
19
- display: inline-flex;
20
- }
21
-
@@ -1,4 +0,0 @@
1
- import "./composables-BwAY_BDJ.js";
2
- import { t as error_component_default } from "./error-component-CiIR_1Cg.js";
3
-
4
- export { error_component_default as default };
@@ -1,30 +0,0 @@
1
- .stream-markdown [data-stream-markdown="heading-1"], .stream-markdown [data-stream-markdown="heading-2"], .stream-markdown [data-stream-markdown="heading-3"], .stream-markdown [data-stream-markdown="heading-4"], .stream-markdown [data-stream-markdown="heading-5"], .stream-markdown [data-stream-markdown="heading-6"] {
2
- margin-top: 1.5rem;
3
- margin-bottom: .5rem;
4
- font-weight: 600;
5
- }
6
- .stream-markdown [data-stream-markdown="heading-1"] {
7
- font-size: 1.875rem;
8
- line-height: 2.25rem;
9
- }
10
- .stream-markdown [data-stream-markdown="heading-2"] {
11
- font-size: 1.5rem;
12
- line-height: 2rem;
13
- }
14
- .stream-markdown [data-stream-markdown="heading-3"] {
15
- font-size: 1.25rem;
16
- line-height: 1.75rem;
17
- }
18
- .stream-markdown [data-stream-markdown="heading-4"] {
19
- font-size: 1.125rem;
20
- line-height: 1.75rem;
21
- }
22
- .stream-markdown [data-stream-markdown="heading-5"] {
23
- font-size: 1rem;
24
- line-height: 1.5rem;
25
- }
26
- .stream-markdown [data-stream-markdown="heading-6"] {
27
- font-size: .875rem;
28
- line-height: 1.25rem;
29
- }
30
-
@@ -1,5 +0,0 @@
1
- .stream-markdown [data-stream-markdown="html-previewer"] {
2
- width: 100%;
3
- height: 100%;
4
- }
5
-
@@ -1,46 +0,0 @@
1
- .stream-markdown [data-stream-markdown="image-figure"] {
2
- display: inline-block;
3
- }
4
- .stream-markdown [data-stream-markdown="image-wrapper"] {
5
- text-align: center;
6
- position: relative;
7
- }
8
- .stream-markdown [data-stream-markdown="image"] {
9
- object-fit: contain;
10
- border-radius: .5rem;
11
- max-width: 100%;
12
- height: auto;
13
- display: block;
14
- }
15
- .stream-markdown [data-stream-markdown="image-caption"] {
16
- text-align: center;
17
- font-size: .875rem;
18
- font-style: italic;
19
- line-height: 1.25rem;
20
- }
21
- .stream-markdown [data-stream-markdown="image-mask"] {
22
- pointer-events: none;
23
- background-color: #0000001a;
24
- border-radius: .5rem;
25
- display: none;
26
- position: absolute;
27
- inset: 0;
28
- }
29
- .stream-markdown [data-stream-markdown="image-download-button"] {
30
- pointer-events: all;
31
- position: absolute;
32
- bottom: .5rem;
33
- right: .5rem;
34
- }
35
- .stream-markdown .img-switch-enter-active, .stream-markdown .img-switch-leave-active {
36
- transition: opacity var(--default-transition-duration) ease, transform var(--default-transition-duration) ease;
37
- }
38
- .stream-markdown .img-switch-enter-from, .stream-markdown .img-switch-leave-to {
39
- opacity: 0;
40
- transform: translateY(6px);
41
- }
42
- .stream-markdown .img-switch-enter-to, .stream-markdown .img-switch-leave-from {
43
- opacity: 1;
44
- transform: translateY(0);
45
- }
46
-
@@ -1,12 +0,0 @@
1
- .stream-markdown [data-stream-markdown="inline-code"] {
2
- background-color: var(--muted);
3
- font-family: var(--font-mono);
4
- white-space: normal;
5
- overflow-wrap: break-word;
6
- border-radius: .25rem;
7
- padding-block: .125rem;
8
- padding-inline: .375rem;
9
- font-size: .875rem;
10
- line-height: 1.25rem;
11
- }
12
-
@@ -1,7 +0,0 @@
1
- .stream-markdown .inline-math-enter-active, .stream-markdown .inline-math-leave-active {
2
- transition: opacity var (--default-transition-duration) ease;
3
- }
4
- .stream-markdown .inline-math-enter-from, .stream-markdown .inline-math-leave-to {
5
- opacity: 0;
6
- }
7
-
@@ -1,12 +0,0 @@
1
- .stream-markdown [data-stream-markdown="link"] {
2
- color: var(--primary);
3
- overflow-wrap: anywhere;
4
- text-decoration: underline;
5
- }
6
- .stream-markdown [data-stream-markdown="link"][data-stream-markdown-loading="true"] {
7
- cursor: default;
8
- pointer-events: none;
9
- text-decoration: none;
10
- position: relative;
11
- }
12
-
@@ -1,11 +0,0 @@
1
- .stream-markdown [data-stream-markdown="ordered-list"], .stream-markdown [data-stream-markdown="unordered-list"], .stream-markdown [data-stream-markdown="task-list"] {
2
- white-space: normal;
3
- padding-left: 1.25rem;
4
- }
5
- .stream-markdown [data-stream-markdown="ordered-list"] {
6
- list-style-type: decimal;
7
- }
8
- .stream-markdown [data-stream-markdown="unordered-list"], .stream-markdown [data-stream-markdown="task-list"] {
9
- list-style-type: disc;
10
- }
11
-
@@ -1,15 +0,0 @@
1
- .stream-markdown [data-stream-markdown="list-item"] {
2
- padding-block: .25rem;
3
- padding-left: .25rem;
4
- }
5
- .stream-markdown [data-stream-markdown="list-item"] p {
6
- margin: 0;
7
- }
8
- .stream-markdown [data-stream-markdown="task-list-item"] p {
9
- display: inline-block;
10
- }
11
- .stream-markdown [data-stream-markdown="task-list-item-checkbox"] {
12
- vertical-align: middle;
13
- margin-right: .5rem;
14
- }
15
-
@@ -1,11 +0,0 @@
1
- .stream-markdown [data-stream-markdown="math"] {
2
- text-align: center;
3
- margin-block: 1rem;
4
- }
5
- .stream-markdown .math-enter-active, .stream-markdown .math-leave-active {
6
- transition: opacity var (--default-transition-duration) ease;
7
- }
8
- .stream-markdown .math-enter-from, .stream-markdown .math-leave-to {
9
- opacity: 0;
10
- }
11
-
@@ -1,8 +0,0 @@
1
- .stream-markdown [data-stream-markdown="mermaid-previewer"] {
2
- text-align: center;
3
- }
4
- .stream-markdown [data-stream-markdown="mermaid"] {
5
- justify-content: center;
6
- display: flex;
7
- }
8
-
@@ -1,48 +0,0 @@
1
- .stream-markdown [data-stream-markdown="modal"] {
2
- background-color: var(--background);
3
- flex-direction: column;
4
- display: flex;
5
- position: fixed;
6
- inset: 0;
7
- }
8
- .stream-markdown [data-stream-markdown="modal-header"] {
9
- background-color: color-mix(in oklab, var(--muted) 80%, transparent);
10
- color: var(--muted-foreground);
11
- border-bottom: 1px solid var(--border);
12
- flex-shrink: 0;
13
- justify-content: space-between;
14
- align-items: center;
15
- padding-block: .5rem;
16
- padding-inline: 1rem;
17
- display: flex;
18
- position: relative;
19
- }
20
- .stream-markdown [data-stream-markdown="modal-actions"] {
21
- align-items: center;
22
- gap: .5rem;
23
- display: flex;
24
- }
25
- .stream-markdown [data-stream-markdown="modal-body"] {
26
- flex: 1;
27
- overflow: auto;
28
- }
29
- .stream-markdown .modal-enter-from, .stream-markdown .modal-leave-to {
30
- opacity: 0;
31
- }
32
- .stream-markdown .modal-enter-active, .stream-markdown .modal-leave-active {
33
- transition: opacity var(--default-transition-duration) ease;
34
- }
35
- .stream-markdown [data-stream-markdown="modal-header"] > :first-child {
36
- flex: 1;
37
- }
38
- .stream-markdown [data-stream-markdown="modal-header"] > :last-child {
39
- flex: 1;
40
- justify-content: flex-end;
41
- display: flex;
42
- }
43
- .stream-markdown [data-stream-markdown="modal-header"] > :nth-child(2) {
44
- position: absolute;
45
- left: 50%;
46
- transform: translateX(-50%);
47
- }
48
-
@@ -1,11 +0,0 @@
1
- .stream-markdown .typewriter-enter-from {
2
- opacity: 0;
3
- }
4
- .stream-markdown .typewriter-enter-active {
5
- transition: opacity var(--typewriter-transition-duration) ease-out;
6
- will-change: opacity;
7
- }
8
- .stream-markdown .typewriter-enter-to {
9
- opacity: 1;
10
- }
11
-
@@ -1,6 +0,0 @@
1
- .stream-markdown [data-stream-markdown="paragraph"] {
2
- vertical-align: middle;
3
- transition: height var(--default-transition-duration) ease;
4
- margin-bottom: 1rem;
5
- }
6
-
@@ -1,6 +0,0 @@
1
- import "./composables-BwAY_BDJ.js";
2
- import "./tooltip-CA6Kp7Ek.js";
3
- import "./button-dU2iYZBS.js";
4
- import { t as segmented_default } from "./segmented-Baxxk3UJ.js";
5
-
6
- export { segmented_default as default };
@@ -1,8 +0,0 @@
1
- .stream-markdown [data-stream-markdown="segmented"] {
2
- border-radius: .375rem;
3
- align-items: center;
4
- gap: .25rem;
5
- padding: .125rem;
6
- display: flex;
7
- }
8
-
@@ -1,20 +0,0 @@
1
- .stream-markdown [data-stream-markdown="code"] .line {
2
- display: block;
3
- position: relative;
4
- }
5
- .stream-markdown [data-stream-markdown="code"] .line:before {
6
- text-align: right;
7
- width: 1rem;
8
- color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
9
- font-size: 13px;
10
- font-family: var(--font-mono);
11
- content: counter(line);
12
- counter-increment: line;
13
- user-select: none;
14
- margin-right: 1rem;
15
- display: inline-block;
16
- }
17
- .stream-markdown [data-stream-markdown="code"][data-show-line-numbers="false"] .line:before {
18
- display: none;
19
- }
20
-
@@ -1,19 +0,0 @@
1
- .stream-markdown [data-stream-markdown="spin"] {
2
- border: 2px solid var(--foreground);
3
- border-top-color: #0000;
4
- border-radius: 50%;
5
- width: 1rem;
6
- height: 1rem;
7
- margin-block: 1rem;
8
- animation: 1s linear infinite spin;
9
- display: inline-block;
10
- }
11
- @keyframes spin {
12
- from {
13
- transform: rotate(0);
14
- }
15
- to {
16
- transform: rotate(360deg);
17
- }
18
- }
19
-
@@ -1,4 +0,0 @@
1
- .stream-markdown [data-stream-markdown="strong"] {
2
- font-weight: 600;
3
- }
4
-
@@ -1,19 +0,0 @@
1
- .stream-markdown [data-stream-markdown="table-wrapper"] {
2
- flex-direction: column;
3
- align-items: center;
4
- gap: .5rem;
5
- margin-block: 1rem;
6
- display: flex;
7
- }
8
- .stream-markdown [data-stream-markdown="table-controls"] {
9
- justify-content: end;
10
- align-items: center;
11
- gap: .25rem;
12
- width: 100%;
13
- display: flex;
14
- }
15
- .stream-markdown [data-stream-markdown="table-inner-wrapper"] {
16
- width: 100%;
17
- overflow-x: auto;
18
- }
19
-
@@ -1,34 +0,0 @@
1
- .stream-markdown [data-stream-markdown="table"] {
2
- border-collapse: collapse;
3
- border: 1px solid var(--border);
4
- border-radius: .5rem;
5
- width: 100%;
6
- overflow: hidden;
7
- }
8
- .stream-markdown [data-stream-markdown="table-header"] {
9
- background-color: color-mix(in oklab, var(--muted) 80%, transparent);
10
- position: relative;
11
- }
12
- .stream-markdown [data-stream-markdown="table-body"] {
13
- border-color: var(--border);
14
- background-color: color-mix(in oklab, var(--muted) 40%, transparent);
15
- border-block-width: 1px;
16
- font-weight: 600;
17
- position: relative;
18
- }
19
- .stream-markdown [data-stream-markdown="table"] tr {
20
- border-bottom: 1px solid var(--border);
21
- }
22
- .stream-markdown [data-stream-markdown="table"] p {
23
- margin: 0;
24
- }
25
- .stream-markdown [data-stream-markdown="table-header"] th {
26
- white-space: nowrap;
27
- }
28
- .stream-markdown [data-stream-markdown="table-header"] th, .stream-markdown [data-stream-markdown="table-body"] td {
29
- padding-block: .5rem;
30
- padding-inline: 1rem;
31
- font-size: .875rem;
32
- line-height: 1.25rem;
33
- }
34
-
@@ -1,5 +0,0 @@
1
- .stream-markdown [data-stream-markdown="text"] {
2
- white-space: pre-wrap;
3
- overflow-wrap: break-word;
4
- }
5
-
@@ -1,6 +0,0 @@
1
- .stream-markdown [data-stream-markdown="thematic-break"] {
2
- border-top: 1px solid var(--border);
3
- margin-top: 1.5rem;
4
- margin-bottom: 1.5rem;
5
- }
6
-
@@ -1,5 +0,0 @@
1
- .stream-markdown [data-stream-markdown="tooltip-overlay"] {
2
- padding-block: .25rem;
3
- padding-inline: .5rem;
4
- }
5
-
@@ -1,4 +0,0 @@
1
- import "./composables-BwAY_BDJ.js";
2
- import { t as tooltip_default } from "./tooltip-CA6Kp7Ek.js";
3
-
4
- export { tooltip_default as default };
@@ -1,4 +0,0 @@
1
- .stream-markdown [data-stream-markdown="code"] {
2
- padding: 1rem;
3
- }
4
-
@@ -1,3 +0,0 @@
1
- import { t as vanilla_default } from "./vanilla-DkX6g0dm.js";
2
-
3
- export { vanilla_default as default };
@@ -1,87 +0,0 @@
1
- import { computed, createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString } from "vue";
2
-
3
- //#region src/components/renderers/code/vanilla.vue?vue&type=script&setup=true&lang.ts
4
- const _hoisted_1 = { "data-stream-markdown": "code" };
5
- const _hoisted_2 = ["textContent"];
6
- var vanilla_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
- __name: "vanilla",
8
- props: {
9
- node: {
10
- type: Object,
11
- required: true
12
- },
13
- markdownParser: {
14
- type: Object,
15
- required: true
16
- },
17
- nodeRenderers: {
18
- type: Object,
19
- required: true
20
- },
21
- mediumZoom: {
22
- type: Object,
23
- required: true
24
- },
25
- indexKey: {
26
- type: [Number, String],
27
- required: true
28
- },
29
- getContainer: {
30
- type: Function,
31
- required: true
32
- },
33
- controls: {
34
- type: [Boolean, Object],
35
- required: false
36
- },
37
- previewers: {
38
- type: [Boolean, Object],
39
- required: false
40
- },
41
- shikiOptions: {
42
- type: Object,
43
- required: false
44
- },
45
- mermaidOptions: {
46
- type: Object,
47
- required: false
48
- },
49
- katexOptions: {
50
- type: Object,
51
- required: false
52
- },
53
- hardenOptions: {
54
- type: Object,
55
- required: false
56
- },
57
- codeOptions: {
58
- type: Object,
59
- required: false
60
- },
61
- imageOptions: {
62
- type: Object,
63
- required: false
64
- },
65
- isDark: {
66
- type: Boolean,
67
- required: false
68
- }
69
- },
70
- setup(__props) {
71
- const props = __props;
72
- const code = computed(() => props.node.value.trim());
73
- return (_ctx, _cache) => {
74
- return openBlock(), createElementBlock("pre", _hoisted_1, [createElementVNode("code", {
75
- translate: "no",
76
- textContent: toDisplayString(code.value)
77
- }, null, 8, _hoisted_2)]);
78
- };
79
- }
80
- });
81
-
82
- //#endregion
83
- //#region src/components/renderers/code/vanilla.vue
84
- var vanilla_default = vanilla_vue_vue_type_script_setup_true_lang_default;
85
-
86
- //#endregion
87
- export { vanilla_default as t };
@@ -1,5 +0,0 @@
1
- .stream-markdown [data-stream-markdown="yaml"] {
2
- width: 100%;
3
- overflow-x: auto;
4
- }
5
-