comark-ui 0.0.0-stage → 0.7.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/LICENSE +69 -0
- package/README.md +70 -2
- package/dist/client.d.mts +12 -0
- package/dist/client.mjs +26 -0
- package/dist/editor-BAdok66p.mjs +835 -0
- package/dist/editor-CNivEuMH.d.mts +131 -0
- package/dist/editor-vue.d.mts +57 -0
- package/dist/editor-vue.mjs +85 -0
- package/dist/editor.d.mts +2 -0
- package/dist/editor.mjs +1 -0
- package/dist/html.d.mts +7 -0
- package/dist/html.mjs +90 -0
- package/dist/index-B0YvApci.d.mts +173 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +3 -0
- package/dist/nuxt-ui.d.mts +17 -0
- package/dist/nuxt-ui.mjs +488 -0
- package/dist/react.d.mts +8 -0
- package/dist/react.mjs +83 -0
- package/dist/skills/comark-ui/SKILL.md +138 -0
- package/dist/skills/comark-ui/agents/openai.yaml +3 -0
- package/dist/skills/comark-ui/references/annotate.md +65 -0
- package/dist/skills/comark-ui/references/badge.md +52 -0
- package/dist/skills/comark-ui/references/cards.md +57 -0
- package/dist/skills/comark-ui/references/carousel.md +31 -0
- package/dist/skills/comark-ui/references/cast.md +48 -0
- package/dist/skills/comark-ui/references/charts.md +80 -0
- package/dist/skills/comark-ui/references/chat.md +25 -0
- package/dist/skills/comark-ui/references/chips.md +33 -0
- package/dist/skills/comark-ui/references/cjk.md +23 -0
- package/dist/skills/comark-ui/references/code-notes.md +34 -0
- package/dist/skills/comark-ui/references/code.md +84 -0
- package/dist/skills/comark-ui/references/colors.md +33 -0
- package/dist/skills/comark-ui/references/critic.md +30 -0
- package/dist/skills/comark-ui/references/deflist.md +38 -0
- package/dist/skills/comark-ui/references/details.md +49 -0
- package/dist/skills/comark-ui/references/diagrams.md +45 -0
- package/dist/skills/comark-ui/references/diff.md +43 -0
- package/dist/skills/comark-ui/references/embed.md +40 -0
- package/dist/skills/comark-ui/references/fields.md +48 -0
- package/dist/skills/comark-ui/references/figure.md +25 -0
- package/dist/skills/comark-ui/references/file-tree.md +42 -0
- package/dist/skills/comark-ui/references/footnotes.md +26 -0
- package/dist/skills/comark-ui/references/github.md +44 -0
- package/dist/skills/comark-ui/references/icon.md +28 -0
- package/dist/skills/comark-ui/references/include.md +44 -0
- package/dist/skills/comark-ui/references/keys.md +28 -0
- package/dist/skills/comark-ui/references/links.md +43 -0
- package/dist/skills/comark-ui/references/lint.md +96 -0
- package/dist/skills/comark-ui/references/magic-move.md +34 -0
- package/dist/skills/comark-ui/references/mark.md +22 -0
- package/dist/skills/comark-ui/references/math.md +25 -0
- package/dist/skills/comark-ui/references/media.md +29 -0
- package/dist/skills/comark-ui/references/metrics.md +34 -0
- package/dist/skills/comark-ui/references/outline.md +36 -0
- package/dist/skills/comark-ui/references/properties.md +32 -0
- package/dist/skills/comark-ui/references/qr.md +20 -0
- package/dist/skills/comark-ui/references/quiz.md +45 -0
- package/dist/skills/comark-ui/references/reading-time.md +32 -0
- package/dist/skills/comark-ui/references/sources.md +24 -0
- package/dist/skills/comark-ui/references/steps.md +34 -0
- package/dist/skills/comark-ui/references/table.md +48 -0
- package/dist/skills/comark-ui/references/tabs.md +46 -0
- package/dist/skills/comark-ui/references/tests.md +59 -0
- package/dist/skills/comark-ui/references/ui.md +54 -0
- package/dist/skills/comark-ui/references/xref.md +48 -0
- package/dist/skills/comark-ui/references/zoom.md +35 -0
- package/dist/src-DROB05U6.mjs +119 -0
- package/dist/svelte/Typeset.svelte +7 -0
- package/dist/svelte/index.d.ts +9 -0
- package/dist/svelte/index.js +84 -0
- package/dist/typeset-css-DPB0S1bV.mjs +202 -0
- package/dist/typeset-css-DdOGL7WF.d.mts +10 -0
- package/dist/vue.d.mts +7 -0
- package/dist/vue.mjs +86 -0
- package/package.json +170 -3
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { theme } from "comark-zoom/theme";
|
|
2
|
+
//#region src/typeset-css.ts
|
|
3
|
+
const grain = `url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E")`;
|
|
4
|
+
const own = ":where(.not-typeset, [data-not-typeset], .not-typeset *, [data-not-typeset] *)";
|
|
5
|
+
const rules = `
|
|
6
|
+
:scope {
|
|
7
|
+
--_ty-flow: var(--typeset-flow, 1.25em);
|
|
8
|
+
--_ty-muted: var(--_comark-muted);
|
|
9
|
+
--_ty-rule: var(--_comark-border);
|
|
10
|
+
--_ty-surface: var(--_comark-accent);
|
|
11
|
+
--_ty-radius: calc(var(--_comark-radius) * 0.8);
|
|
12
|
+
--_ty-mono: var(--comark-font-mono, var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));
|
|
13
|
+
font-family: var(--_comark-font);
|
|
14
|
+
font-size: calc(var(--typeset-size, 1em) * 1.125);
|
|
15
|
+
line-height: var(--typeset-leading, 1.75);
|
|
16
|
+
color: var(--_comark-foreground);
|
|
17
|
+
overflow-wrap: break-word;
|
|
18
|
+
/* T3 Code's grain, painted into the document's own background rather than a fixed overlay, which the compositor
|
|
19
|
+
would blend again on every animated frame. It sits over any background color the page gives this element. */
|
|
20
|
+
background-image: var(--comark-grain, ${grain});
|
|
21
|
+
background-repeat: repeat;
|
|
22
|
+
background-size: var(--comark-grain-size, 256px 256px);
|
|
23
|
+
@media (min-width: 48rem), print {
|
|
24
|
+
font-size: var(--typeset-size, 1em);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:scope *:not(${own}) {
|
|
29
|
+
&:where(p) { margin-block: var(--_ty-flow) 0; }
|
|
30
|
+
|
|
31
|
+
&:where(h1, h2, h3, h4, h5, h6) {
|
|
32
|
+
color: var(--_comark-foreground);
|
|
33
|
+
font-family: var(--comark-font-heading, var(--font-heading, inherit));
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
margin-block-end: 0;
|
|
36
|
+
}
|
|
37
|
+
&:where(h1) { font-size: 1.75em; line-height: 1.3; margin-block-start: var(--_ty-flow); }
|
|
38
|
+
&:where(h2) { font-size: 1.25em; line-height: 1.4; margin-block-start: calc(var(--_ty-flow) * 1.4); }
|
|
39
|
+
&:where(h3) { font-size: 1.125em; line-height: 1.45; margin-block-start: var(--_ty-flow); }
|
|
40
|
+
&:where(h4) { font-size: 1em; line-height: 1.5; margin-block-start: var(--_ty-flow); }
|
|
41
|
+
&:where(h5) {
|
|
42
|
+
font-size: 0.875em; line-height: 1.5; font-weight: 500; color: var(--_ty-muted);
|
|
43
|
+
margin-block-start: calc(var(--_ty-flow) / 0.875);
|
|
44
|
+
}
|
|
45
|
+
&:where(h6) {
|
|
46
|
+
font-size: 0.8125em; line-height: 1.5; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
|
|
47
|
+
color: var(--_ty-muted); margin-block-start: calc(var(--_ty-flow) / 0.8125);
|
|
48
|
+
}
|
|
49
|
+
&:where([id]) { scroll-margin-block-start: var(--_ty-flow); }
|
|
50
|
+
/* Headings own the space below them. */
|
|
51
|
+
&:where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) { margin-block-start: 1em; }
|
|
52
|
+
&:where(:is(h1, h2, h3, h4) code) { font-size: 0.9em; }
|
|
53
|
+
|
|
54
|
+
&:where(a) {
|
|
55
|
+
color: inherit;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
text-decoration-line: underline;
|
|
58
|
+
text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
|
|
59
|
+
}
|
|
60
|
+
&:where(a:hover) { text-decoration-color: currentColor; }
|
|
61
|
+
&:where(a:focus-visible) { outline: 2px solid var(--_comark-ring); outline-offset: 2px; border-radius: 0.125em; }
|
|
62
|
+
&:where(:is(h1, h2, h3, h4, h5, h6) a) { font-weight: inherit; }
|
|
63
|
+
|
|
64
|
+
&:where(strong, b) { font-weight: 600; }
|
|
65
|
+
&:where(mark) {
|
|
66
|
+
background-color: color-mix(in oklab, oklch(0.86 0.17 95) 40%, transparent);
|
|
67
|
+
color: inherit; padding: 0.05em 0.15em; border-radius: 0.2em;
|
|
68
|
+
}
|
|
69
|
+
&:where(abbr[title]) {
|
|
70
|
+
text-decoration-line: underline; text-decoration-style: dotted; text-underline-offset: 0.2em; cursor: help;
|
|
71
|
+
}
|
|
72
|
+
&:where(del, s) { color: var(--_ty-muted); text-decoration-line: line-through; }
|
|
73
|
+
&:where(sup, sub) { font-size: 0.75em; line-height: 0; position: relative; vertical-align: baseline; }
|
|
74
|
+
&:where(sup) { top: -0.5em; }
|
|
75
|
+
&:where(sub) { bottom: -0.25em; }
|
|
76
|
+
&:where(sup a) { text-decoration-line: none; font-weight: 500; }
|
|
77
|
+
|
|
78
|
+
&:where(ul) { list-style-type: disc; }
|
|
79
|
+
&:where(ol) { list-style-type: decimal; }
|
|
80
|
+
&:where(ul ul) { list-style-type: circle; }
|
|
81
|
+
&:where(ul ul ul) { list-style-type: square; }
|
|
82
|
+
&:where(ol[type="a" i]) { list-style-type: lower-alpha; }
|
|
83
|
+
&:where(ol[type="i" i]) { list-style-type: lower-roman; }
|
|
84
|
+
&:where(ol[type="A" s]) { list-style-type: upper-alpha; }
|
|
85
|
+
&:where(ol[type="I" s]) { list-style-type: upper-roman; }
|
|
86
|
+
&:where(ul, ol) { margin-block: var(--_ty-flow) 0; padding-inline-start: 1.5em; }
|
|
87
|
+
&:where(li) { margin-block-start: 0.5em; padding-inline-start: 0.4em; }
|
|
88
|
+
&:where(li > p, li > ul, li > ol) { margin-block-start: 0.5em; }
|
|
89
|
+
&:where(ul > li, ol > li)::marker { color: var(--_ty-muted); }
|
|
90
|
+
&:where(ul.contains-task-list) { list-style-type: none; padding-inline-start: 0.25em; }
|
|
91
|
+
&:where(li.task-list-item > input[type="checkbox"]) {
|
|
92
|
+
margin-inline-end: 0.5em; vertical-align: -0.1em; accent-color: var(--ui-primary, var(--primary, currentColor));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:where(details) { margin-block: var(--_ty-flow) 0; }
|
|
96
|
+
&:where(summary) { cursor: pointer; font-weight: 500; }
|
|
97
|
+
&:where(summary)::marker { color: var(--_ty-muted); }
|
|
98
|
+
|
|
99
|
+
&:where(kbd) {
|
|
100
|
+
font-family: inherit; font-size: 0.85em; font-weight: 500;
|
|
101
|
+
border: 1px solid var(--_ty-rule); border-block-end-width: 2px; border-radius: 0.35em; padding: 0.0625em 0.35em;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:where(dl) { margin-block: var(--_ty-flow) 0; }
|
|
105
|
+
&:where(dt) { font-weight: 500; margin-block-start: 1em; }
|
|
106
|
+
&:where(dt + dt) { margin-block-start: 0.25em; }
|
|
107
|
+
&:where(dd) { margin-block-start: 0.25em; margin-inline-start: 0; padding-inline-start: 1em; color: var(--_ty-muted); }
|
|
108
|
+
|
|
109
|
+
&:where(:not(pre) > code) {
|
|
110
|
+
background-color: var(--_ty-surface); font-family: var(--_ty-mono); font-size: 0.85em;
|
|
111
|
+
border-radius: 0.35em; padding: 0.125em 0.3em;
|
|
112
|
+
}
|
|
113
|
+
&:where(pre) {
|
|
114
|
+
background-color: var(--_ty-surface); font-family: var(--_ty-mono); font-size: 0.875em; line-height: 1.5;
|
|
115
|
+
tab-size: 2; direction: ltr; border-radius: var(--_ty-radius); padding: 0.75em 1em; overflow-x: auto;
|
|
116
|
+
margin-block: calc(var(--_ty-flow) / 0.875) 0;
|
|
117
|
+
}
|
|
118
|
+
&:where(pre code) { background-color: transparent; font-family: inherit; font-size: inherit; padding: 0; border-radius: 0; }
|
|
119
|
+
|
|
120
|
+
&:where(blockquote) {
|
|
121
|
+
border-inline-start: 2px solid var(--_ty-rule); padding-inline-start: 1em; margin-block: var(--_ty-flow) 0;
|
|
122
|
+
margin-inline: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:where(hr) { border: 0; border-block-start: 1px solid var(--_ty-rule); margin-block: calc(var(--_ty-flow) * 2.4) 0; }
|
|
126
|
+
&:where(hr + h1, hr + h2, hr + h3, hr + h4) { margin-block-start: var(--_ty-flow); }
|
|
127
|
+
|
|
128
|
+
/* comark-footnotes opens the section with its own rule and heading, so the section adds none. */
|
|
129
|
+
&:where(.footnotes, [data-footnotes]) {
|
|
130
|
+
margin-block-start: calc(var(--_ty-flow) * 2); font-size: 0.875em; color: var(--_ty-muted);
|
|
131
|
+
}
|
|
132
|
+
&:where(.footnotes > hr:first-child) { margin-block-start: 0; }
|
|
133
|
+
&:where(.footnote-ref a, .footnote-backref) { text-decoration-line: none; }
|
|
134
|
+
|
|
135
|
+
&:where(math[display="block"]) {
|
|
136
|
+
margin-block: var(--_ty-flow) 0; overflow-x: auto; overflow-y: hidden; padding-block: 0.25em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:where(img, video) { border-radius: var(--_ty-radius); max-width: 100%; height: auto; margin-block: var(--_ty-flow) 0; }
|
|
140
|
+
&:where(p img) { margin-block-start: 0; }
|
|
141
|
+
&:where(figure) { margin-block: var(--_ty-flow) 0; margin-inline: 0; }
|
|
142
|
+
&:where(figcaption, caption) {
|
|
143
|
+
color: var(--_ty-muted); font-size: 0.875em; text-align: center; margin-block-start: calc(0.75em / 0.875);
|
|
144
|
+
}
|
|
145
|
+
&:where(caption) { caption-side: bottom; }
|
|
146
|
+
|
|
147
|
+
/* A table scrolls inside the column when it can't fit, as on GitHub, and its headers wrap like its cells. Separators
|
|
148
|
+
sit on cells, not on the last row, so appending a row keeps them. */
|
|
149
|
+
&:where(table) {
|
|
150
|
+
display: block; width: max-content; max-width: 100%; overflow-x: auto; font-size: 1em; line-height: 1.5;
|
|
151
|
+
font-variant-numeric: tabular-nums; border-collapse: separate; border-spacing: 0;
|
|
152
|
+
border-block-end: 1px solid var(--_ty-rule); margin-block: var(--_ty-flow) 0;
|
|
153
|
+
}
|
|
154
|
+
&:where(thead th) { font-weight: 500; text-align: start; padding: 0.65em 1em; }
|
|
155
|
+
&:where(:is(tbody, tfoot) :is(td, th)) {
|
|
156
|
+
padding: 0.75em 1em; text-align: start; vertical-align: top; border-block-start: 1px solid var(--_ty-rule);
|
|
157
|
+
}
|
|
158
|
+
&:where(tbody th, tfoot th) { font-weight: 500; }
|
|
159
|
+
&:where(th:first-child, td:first-child) { padding-inline-start: 0; }
|
|
160
|
+
&:where(th[align="center"], td[align="center"]) { text-align: center; }
|
|
161
|
+
&:where(th[align="right"], td[align="right"]) { text-align: end; }
|
|
162
|
+
|
|
163
|
+
/* Blocks inside list items keep the list's tighter rhythm. */
|
|
164
|
+
&:where(li > blockquote, li > table, li > figure) { margin-block-start: 0.5em; }
|
|
165
|
+
&:where(li > pre) { margin-block-start: calc(0.5em / 0.875); }
|
|
166
|
+
|
|
167
|
+
@media print {
|
|
168
|
+
&:where(pre, table, blockquote, figure) { break-inside: avoid; }
|
|
169
|
+
&:where(h1, h2, h3, h4) { break-after: avoid; }
|
|
170
|
+
}
|
|
171
|
+
/* Forced colors strips the code background, so give it a border. */
|
|
172
|
+
@media (forced-colors: active) {
|
|
173
|
+
&:where(:not(pre) > code) { border: 1px solid; }
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Code highlighted with a light and a dark theme follows the page into dark mode, as the tokens do: a .dark class
|
|
178
|
+
above it, or the system's dark mode on a page with no .light class. Only spans that carry a dark color switch. */
|
|
179
|
+
.shiki:where(.dark *) span[style*="--shiki-dark:"] { color: var(--shiki-dark) !important; }
|
|
180
|
+
@media (prefers-color-scheme: dark) {
|
|
181
|
+
.shiki:not(:where(.light *)) span[style*="--shiki-dark:"] { color: var(--shiki-dark) !important; }
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* The first child adds no space above. Last, so it wins ties. */
|
|
185
|
+
:scope > :where(:first-child):not(${own}),
|
|
186
|
+
:scope > :where(:first-child) > :where(:first-child):not(${own}),
|
|
187
|
+
:scope :where(
|
|
188
|
+
li > :first-child, blockquote > :first-child, td > :first-child, th > :first-child, dd > :first-child,
|
|
189
|
+
figure > :first-child, figure > picture > img
|
|
190
|
+
):not(${own}) {
|
|
191
|
+
margin-block-start: 0;
|
|
192
|
+
}
|
|
193
|
+
`;
|
|
194
|
+
/**
|
|
195
|
+
* The text around the blocks: headings, paragraphs, lists, tables, code, and quotes. `@scope` with no selector styles
|
|
196
|
+
* the element the `<style>` sits in, so the document carries its own look into any page and leaves the rest of the
|
|
197
|
+
* page alone. The `typeset` layer sits inside `comark`, so every block's own rules win over it, and any plain rule of
|
|
198
|
+
* the page wins over both.
|
|
199
|
+
*/
|
|
200
|
+
const typesetCss = `@layer comark{@layer typeset{@scope{${theme(":scope")}${rules}}}}`.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/ ?([{};,>(]) ?/g, "$1").replace(/: /g, ":").trim();
|
|
201
|
+
//#endregion
|
|
202
|
+
export { typesetCss as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/typeset-css.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The text around the blocks: headings, paragraphs, lists, tables, code, and quotes. `@scope` with no selector styles
|
|
4
|
+
* the element the `<style>` sits in, so the document carries its own look into any page and leaves the rest of the
|
|
5
|
+
* page alone. The `typeset` layer sits inside `comark`, so every block's own rules win over it, and any plain rule of
|
|
6
|
+
* the page wins over both.
|
|
7
|
+
*/
|
|
8
|
+
declare const typesetCss: string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { typesetCss as t };
|
package/dist/vue.d.mts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as criticCss, n as Preset, r as PresetOptions } from "./index-B0YvApci.mjs";
|
|
2
|
+
import { Component } from "vue";
|
|
3
|
+
//#region src/vue.d.ts
|
|
4
|
+
/** Every plugin with components for `@comark/vue`, which leaves out annotate, diff, and quiz. */
|
|
5
|
+
declare const _default: (options?: PresetOptions) => Preset<Component>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { type PresetOptions, criticCss, _default as default };
|
package/dist/vue.mjs
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { t as typesetCss } from "./typeset-css-DPB0S1bV.mjs";
|
|
2
|
+
import { n as preset, t as criticCss } from "./src-DROB05U6.mjs";
|
|
3
|
+
import { addMermaidStyles } from "./client.mjs";
|
|
4
|
+
import { defineComponent, h } from "vue";
|
|
5
|
+
import * as badge from "comark-badge/vue";
|
|
6
|
+
import * as cards from "comark-cards/vue";
|
|
7
|
+
import * as carousel from "comark-carousel/vue";
|
|
8
|
+
import * as cast from "comark-cast/vue";
|
|
9
|
+
import * as charts from "comark-charts/vue";
|
|
10
|
+
import * as chips from "comark-chips/vue";
|
|
11
|
+
import * as code from "comark-code/vue";
|
|
12
|
+
import * as codeNotes from "comark-code-notes/vue";
|
|
13
|
+
import * as colors from "comark-colors/vue";
|
|
14
|
+
import * as details from "comark-details/vue";
|
|
15
|
+
import * as diagrams from "comark-diagrams/vue";
|
|
16
|
+
import * as embed from "comark-embed/vue";
|
|
17
|
+
import * as fields from "comark-fields/vue";
|
|
18
|
+
import * as fileTree from "comark-file-tree/vue";
|
|
19
|
+
import * as github from "comark-github/vue";
|
|
20
|
+
import * as icon from "comark-icon/vue";
|
|
21
|
+
import * as links from "comark-links/vue";
|
|
22
|
+
import * as magicMove from "comark-magic-move/vue";
|
|
23
|
+
import * as mark from "comark-mark/vue";
|
|
24
|
+
import * as math from "comark-mathml/vue";
|
|
25
|
+
import * as media from "comark-media/vue";
|
|
26
|
+
import pele, { createPeleComponent } from "comark-pele/vue";
|
|
27
|
+
import * as metrics from "comark-metrics/vue";
|
|
28
|
+
import * as outline from "comark-outline/vue";
|
|
29
|
+
import * as properties from "comark-properties/vue";
|
|
30
|
+
import * as qr from "comark-qr/vue";
|
|
31
|
+
import * as sources from "comark-sources/vue";
|
|
32
|
+
import * as steps from "comark-steps/vue";
|
|
33
|
+
import * as table from "comark-table/vue";
|
|
34
|
+
import * as tabs from "comark-tabs/vue";
|
|
35
|
+
import * as tests from "comark-tests/vue";
|
|
36
|
+
import * as zoom from "comark-zoom/vue";
|
|
37
|
+
//#region src/vue.ts
|
|
38
|
+
const mermaid = {
|
|
39
|
+
default: pele,
|
|
40
|
+
components: { pele: createPeleComponent({ onRender: addMermaidStyles }) }
|
|
41
|
+
};
|
|
42
|
+
const typeset = defineComponent({
|
|
43
|
+
name: "ComarkTypeset",
|
|
44
|
+
setup: () => () => h("style", {
|
|
45
|
+
"data-comark-typeset": "",
|
|
46
|
+
innerHTML: typesetCss
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
/** Every plugin with components for `@comark/vue`, which leaves out annotate, diff, and quiz. */
|
|
50
|
+
var vue_default = (options) => preset({
|
|
51
|
+
badge,
|
|
52
|
+
cards,
|
|
53
|
+
carousel,
|
|
54
|
+
cast,
|
|
55
|
+
charts,
|
|
56
|
+
chips,
|
|
57
|
+
code,
|
|
58
|
+
codeNotes,
|
|
59
|
+
colors,
|
|
60
|
+
details,
|
|
61
|
+
diagrams,
|
|
62
|
+
embed,
|
|
63
|
+
fields,
|
|
64
|
+
fileTree,
|
|
65
|
+
github,
|
|
66
|
+
icon,
|
|
67
|
+
links,
|
|
68
|
+
magicMove,
|
|
69
|
+
mark,
|
|
70
|
+
math,
|
|
71
|
+
media,
|
|
72
|
+
mermaid,
|
|
73
|
+
metrics,
|
|
74
|
+
outline,
|
|
75
|
+
properties,
|
|
76
|
+
qr,
|
|
77
|
+
sources,
|
|
78
|
+
steps,
|
|
79
|
+
table,
|
|
80
|
+
tabs,
|
|
81
|
+
tests,
|
|
82
|
+
typeset,
|
|
83
|
+
zoom
|
|
84
|
+
}, options);
|
|
85
|
+
//#endregion
|
|
86
|
+
export { criticCss, vue_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,173 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comark-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.7.1",
|
|
4
|
+
"description": "Every comark-ui block in one install: annotated screenshots, charts, diffs, tabs, zoom, and more, registered in the order they need with shared icons. Turn any of them off or pass its options.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"comark",
|
|
7
|
+
"components",
|
|
8
|
+
"markdown",
|
|
9
|
+
"plugin",
|
|
10
|
+
"preset",
|
|
11
|
+
"ui"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://comark-ui.onmax.me",
|
|
14
|
+
"bugs": "https://github.com/onmax/comark-ui/issues",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "onmax",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/onmax/comark-ui.git",
|
|
20
|
+
"directory": "packages/ui"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"exports": {
|
|
28
|
+
".": "./dist/index.mjs",
|
|
29
|
+
"./client": "./dist/client.mjs",
|
|
30
|
+
"./editor": "./dist/editor.mjs",
|
|
31
|
+
"./editor/vue": "./dist/editor-vue.mjs",
|
|
32
|
+
"./html": "./dist/html.mjs",
|
|
33
|
+
"./nuxt-ui": "./dist/nuxt-ui.mjs",
|
|
34
|
+
"./react": "./dist/react.mjs",
|
|
35
|
+
"./svelte": {
|
|
36
|
+
"types": "./dist/svelte/index.d.ts",
|
|
37
|
+
"svelte": "./dist/svelte/index.js",
|
|
38
|
+
"default": "./dist/svelte/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./vue": "./dist/vue.mjs",
|
|
41
|
+
"./package.json": "./package.json",
|
|
42
|
+
"./skills/*": "./dist/skills/*"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public",
|
|
46
|
+
"provenance": true
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"comark-pele": "^1.1.0",
|
|
50
|
+
"comark-badge": "^0.7.1",
|
|
51
|
+
"comark-annotate": "^0.7.1",
|
|
52
|
+
"comark-cards": "^0.7.1",
|
|
53
|
+
"comark-carousel": "^0.7.1",
|
|
54
|
+
"comark-cast": "^0.7.1",
|
|
55
|
+
"comark-charts": "^0.7.1",
|
|
56
|
+
"comark-chips": "^0.7.1",
|
|
57
|
+
"comark-cjk": "^0.7.1",
|
|
58
|
+
"comark-code": "^0.7.1",
|
|
59
|
+
"comark-code-notes": "^0.7.1",
|
|
60
|
+
"comark-colors": "^0.7.1",
|
|
61
|
+
"comark-critic": "^0.7.1",
|
|
62
|
+
"comark-deflist": "^0.7.1",
|
|
63
|
+
"comark-details": "^0.7.1",
|
|
64
|
+
"comark-diff": "^0.7.1",
|
|
65
|
+
"comark-diagrams": "^0.7.1",
|
|
66
|
+
"comark-fields": "^0.7.1",
|
|
67
|
+
"comark-figure": "^0.7.1",
|
|
68
|
+
"comark-file-tree": "^0.7.1",
|
|
69
|
+
"comark-footnotes": "^0.7.1",
|
|
70
|
+
"comark-embed": "^0.7.1",
|
|
71
|
+
"comark-icon": "^0.7.1",
|
|
72
|
+
"comark-include": "^0.7.1",
|
|
73
|
+
"comark-keys": "^0.7.1",
|
|
74
|
+
"comark-links": "^0.7.1",
|
|
75
|
+
"comark-mark": "^0.7.1",
|
|
76
|
+
"comark-magic-move": "^0.7.1",
|
|
77
|
+
"comark-github": "^0.7.1",
|
|
78
|
+
"comark-mathml": "^0.7.1",
|
|
79
|
+
"comark-media": "^0.7.1",
|
|
80
|
+
"comark-metrics": "^0.7.1",
|
|
81
|
+
"comark-qr": "^0.7.1",
|
|
82
|
+
"comark-properties": "^0.7.1",
|
|
83
|
+
"comark-outline": "^0.7.1",
|
|
84
|
+
"comark-quiz": "^0.7.1",
|
|
85
|
+
"comark-sources": "^0.7.1",
|
|
86
|
+
"comark-reading-time": "^0.7.1",
|
|
87
|
+
"comark-table": "^0.7.1",
|
|
88
|
+
"comark-steps": "^0.7.1",
|
|
89
|
+
"comark-tabs": "^0.7.1",
|
|
90
|
+
"comark-tests": "^0.7.1",
|
|
91
|
+
"comark-xref": "^0.7.1",
|
|
92
|
+
"comark-zoom": "^0.7.1"
|
|
93
|
+
},
|
|
94
|
+
"devDependencies": {
|
|
95
|
+
"@comark/html": "^0.8.1",
|
|
96
|
+
"@comark/react": "^0.8.1",
|
|
97
|
+
"@comark/vue": "^0.8.1",
|
|
98
|
+
"@tiptap/core": "^3.31.4",
|
|
99
|
+
"@tiptap/extension-image": "^3.31.4",
|
|
100
|
+
"@tiptap/extension-list": "^3.31.4",
|
|
101
|
+
"@tiptap/extension-table": "^3.31.4",
|
|
102
|
+
"@tiptap/pm": "^3.31.4",
|
|
103
|
+
"@tiptap/starter-kit": "^3.31.4",
|
|
104
|
+
"@tiptap/vue-3": "^3.31.4",
|
|
105
|
+
"@tiptap/y-tiptap": "^3.0.9",
|
|
106
|
+
"@types/react": "^19.3.0",
|
|
107
|
+
"@types/react-dom": "^19.3.0",
|
|
108
|
+
"comark": "^0.8.1",
|
|
109
|
+
"react": "^19.3.1",
|
|
110
|
+
"react-dom": "^19.3.1",
|
|
111
|
+
"svelte": "^5.57.2",
|
|
112
|
+
"vue": "^3.5.44",
|
|
113
|
+
"yjs": "^13.6.33"
|
|
114
|
+
},
|
|
115
|
+
"peerDependencies": {
|
|
116
|
+
"@comark/html": "^0.8.0",
|
|
117
|
+
"@tiptap/core": "^3.31.0",
|
|
118
|
+
"@tiptap/extension-image": "^3.31.0",
|
|
119
|
+
"@tiptap/extension-list": "^3.31.0",
|
|
120
|
+
"@tiptap/extension-table": "^3.31.0",
|
|
121
|
+
"@tiptap/pm": "^3.31.0",
|
|
122
|
+
"@tiptap/starter-kit": "^3.31.0",
|
|
123
|
+
"@tiptap/vue-3": "^3.31.0",
|
|
124
|
+
"comark": "^0.8.0",
|
|
125
|
+
"react": ">=18",
|
|
126
|
+
"svelte": ">=5.20",
|
|
127
|
+
"vue": ">=3.5"
|
|
128
|
+
},
|
|
129
|
+
"peerDependenciesMeta": {
|
|
130
|
+
"@comark/html": {
|
|
131
|
+
"optional": true
|
|
132
|
+
},
|
|
133
|
+
"@tiptap/core": {
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
136
|
+
"@tiptap/extension-image": {
|
|
137
|
+
"optional": true
|
|
138
|
+
},
|
|
139
|
+
"@tiptap/extension-list": {
|
|
140
|
+
"optional": true
|
|
141
|
+
},
|
|
142
|
+
"@tiptap/extension-table": {
|
|
143
|
+
"optional": true
|
|
144
|
+
},
|
|
145
|
+
"@tiptap/pm": {
|
|
146
|
+
"optional": true
|
|
147
|
+
},
|
|
148
|
+
"@tiptap/starter-kit": {
|
|
149
|
+
"optional": true
|
|
150
|
+
},
|
|
151
|
+
"@tiptap/vue-3": {
|
|
152
|
+
"optional": true
|
|
153
|
+
},
|
|
154
|
+
"react": {
|
|
155
|
+
"optional": true
|
|
156
|
+
},
|
|
157
|
+
"svelte": {
|
|
158
|
+
"optional": true
|
|
159
|
+
},
|
|
160
|
+
"vue": {
|
|
161
|
+
"optional": true
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"engines": {
|
|
165
|
+
"node": ">=22.12.0"
|
|
166
|
+
},
|
|
167
|
+
"scripts": {
|
|
168
|
+
"build": "tsdown",
|
|
169
|
+
"dev": "tsdown --watch",
|
|
170
|
+
"doctor": "vite-doctor . --no-cache --max-warnings 0 --format text",
|
|
171
|
+
"playground": "vp dev playground --port 5199"
|
|
172
|
+
}
|
|
6
173
|
}
|