comark-ui 0.0.0 → 0.7.2

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 (78) hide show
  1. package/LICENSE +69 -0
  2. package/README.md +69 -1
  3. package/dist/client-Bjd6VcGQ.mjs +241 -0
  4. package/dist/client.d.mts +22 -0
  5. package/dist/client.mjs +3 -0
  6. package/dist/editor-BAdok66p.mjs +835 -0
  7. package/dist/editor-CNivEuMH.d.mts +131 -0
  8. package/dist/editor-vue.d.mts +57 -0
  9. package/dist/editor-vue.mjs +85 -0
  10. package/dist/editor.d.mts +2 -0
  11. package/dist/editor.mjs +1 -0
  12. package/dist/html.d.mts +13 -0
  13. package/dist/html.mjs +108 -0
  14. package/dist/index-jkwx6SyG.d.mts +175 -0
  15. package/dist/index.d.mts +3 -0
  16. package/dist/index.mjs +3 -0
  17. package/dist/nuxt-ui.d.mts +17 -0
  18. package/dist/nuxt-ui.mjs +488 -0
  19. package/dist/react.d.mts +8 -0
  20. package/dist/react.mjs +97 -0
  21. package/dist/skills/comark-ui/SKILL.md +138 -0
  22. package/dist/skills/comark-ui/agents/openai.yaml +3 -0
  23. package/dist/skills/comark-ui/references/annotate.md +65 -0
  24. package/dist/skills/comark-ui/references/badge.md +52 -0
  25. package/dist/skills/comark-ui/references/cards.md +57 -0
  26. package/dist/skills/comark-ui/references/carousel.md +31 -0
  27. package/dist/skills/comark-ui/references/cast.md +48 -0
  28. package/dist/skills/comark-ui/references/charts.md +80 -0
  29. package/dist/skills/comark-ui/references/chat.md +25 -0
  30. package/dist/skills/comark-ui/references/chips.md +33 -0
  31. package/dist/skills/comark-ui/references/cjk.md +23 -0
  32. package/dist/skills/comark-ui/references/code-notes.md +34 -0
  33. package/dist/skills/comark-ui/references/code.md +84 -0
  34. package/dist/skills/comark-ui/references/colors.md +33 -0
  35. package/dist/skills/comark-ui/references/critic.md +30 -0
  36. package/dist/skills/comark-ui/references/deflist.md +38 -0
  37. package/dist/skills/comark-ui/references/details.md +49 -0
  38. package/dist/skills/comark-ui/references/diagrams.md +51 -0
  39. package/dist/skills/comark-ui/references/diff.md +43 -0
  40. package/dist/skills/comark-ui/references/embed.md +40 -0
  41. package/dist/skills/comark-ui/references/fields.md +48 -0
  42. package/dist/skills/comark-ui/references/figure.md +25 -0
  43. package/dist/skills/comark-ui/references/file-tree.md +42 -0
  44. package/dist/skills/comark-ui/references/footnotes.md +26 -0
  45. package/dist/skills/comark-ui/references/github.md +44 -0
  46. package/dist/skills/comark-ui/references/icon.md +28 -0
  47. package/dist/skills/comark-ui/references/include.md +44 -0
  48. package/dist/skills/comark-ui/references/keys.md +28 -0
  49. package/dist/skills/comark-ui/references/links.md +43 -0
  50. package/dist/skills/comark-ui/references/lint.md +96 -0
  51. package/dist/skills/comark-ui/references/magic-move.md +34 -0
  52. package/dist/skills/comark-ui/references/mark.md +22 -0
  53. package/dist/skills/comark-ui/references/math.md +25 -0
  54. package/dist/skills/comark-ui/references/media.md +29 -0
  55. package/dist/skills/comark-ui/references/metrics.md +34 -0
  56. package/dist/skills/comark-ui/references/outline.md +44 -0
  57. package/dist/skills/comark-ui/references/properties.md +32 -0
  58. package/dist/skills/comark-ui/references/qr.md +20 -0
  59. package/dist/skills/comark-ui/references/quiz.md +45 -0
  60. package/dist/skills/comark-ui/references/reading-time.md +32 -0
  61. package/dist/skills/comark-ui/references/sources.md +24 -0
  62. package/dist/skills/comark-ui/references/steps.md +34 -0
  63. package/dist/skills/comark-ui/references/table.md +48 -0
  64. package/dist/skills/comark-ui/references/tabs.md +46 -0
  65. package/dist/skills/comark-ui/references/tests.md +59 -0
  66. package/dist/skills/comark-ui/references/ui.md +54 -0
  67. package/dist/skills/comark-ui/references/xref.md +48 -0
  68. package/dist/skills/comark-ui/references/zoom.md +35 -0
  69. package/dist/src-DROB05U6.mjs +119 -0
  70. package/dist/svelte/Mermaid.svelte +16 -0
  71. package/dist/svelte/Typeset.svelte +7 -0
  72. package/dist/svelte/index.d.ts +9 -0
  73. package/dist/svelte/index.js +80 -0
  74. package/dist/typeset-css-5aJ7cSmh.mjs +216 -0
  75. package/dist/typeset-css-DdOGL7WF.d.mts +10 -0
  76. package/dist/vue.d.mts +7 -0
  77. package/dist/vue.mjs +113 -0
  78. package/package.json +170 -4
@@ -0,0 +1,216 @@
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
+ /* A block marked data-wide, such as a before/after comparison or a diagram wider than the text, grows past the column
185
+ into the room the page gives it on each side, --comark-wide-start and --comark-wide-end, up to its own width
186
+ (--comark-wide-width) and --comark-wide-max. It stays centered on the column while both sides have room, and moves
187
+ toward the side that has more when one doesn't. Without room set, it keeps to the column. Only the document's own
188
+ blocks grow, not one inside a list or tabs. */
189
+ :scope > [data-wide] {
190
+ /* Room a page works out from the window can come out negative on a phone, where the column fills it: none, then. */
191
+ --_ty-start: max(0px, var(--comark-wide-start, 0px));
192
+ --_ty-end: max(0px, var(--comark-wide-end, 0px));
193
+ --_ty-wide: max(100%, min(var(--comark-wide-width, 100vw), var(--comark-wide-max, 72rem), 100% + var(--_ty-start) + var(--_ty-end)));
194
+ width: var(--_ty-wide);
195
+ margin-inline: clamp(-1 * var(--_ty-start), (100% - var(--_ty-wide)) / 2, 100% + var(--_ty-end) - var(--_ty-wide)) 0;
196
+ }
197
+
198
+ /* The first child adds no space above. Last, so it wins ties. */
199
+ :scope > :where(:first-child):not(${own}),
200
+ :scope > :where(:first-child) > :where(:first-child):not(${own}),
201
+ :scope :where(
202
+ li > :first-child, blockquote > :first-child, td > :first-child, th > :first-child, dd > :first-child,
203
+ figure > :first-child, figure > picture > img
204
+ ):not(${own}) {
205
+ margin-block-start: 0;
206
+ }
207
+ `;
208
+ /**
209
+ * The text around the blocks: headings, paragraphs, lists, tables, code, and quotes. `@scope` with no selector styles
210
+ * the element the `<style>` sits in, so the document carries its own look into any page and leaves the rest of the
211
+ * page alone. The `typeset` layer sits inside `comark`, so every block's own rules win over it, and any plain rule of
212
+ * the page wins over both.
213
+ */
214
+ const typesetCss = `@layer comark{@layer typeset{@scope{${theme(":scope")}${rules}}}}`.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/ ?([{};,>(]) ?/g, "$1").replace(/: /g, ":").trim();
215
+ //#endregion
216
+ 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-jkwx6SyG.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,113 @@
1
+ import { t as typesetCss } from "./typeset-css-5aJ7cSmh.mjs";
2
+ import { n as preset, t as criticCss } from "./src-DROB05U6.mjs";
3
+ import { i as startMermaid, n as mermaidBar, t as addMermaidStyles } from "./client-Bjd6VcGQ.mjs";
4
+ import { defineComponent, h, onBeforeUnmount, onMounted } 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 Pele = createPeleComponent({
39
+ onRender: addMermaidStyles,
40
+ onError: addMermaidStyles
41
+ });
42
+ const Mermaid = defineComponent({
43
+ name: "ComarkMermaid",
44
+ inheritAttrs: false,
45
+ props: { content: {
46
+ type: String,
47
+ default: ""
48
+ } },
49
+ setup(props, { attrs }) {
50
+ let stop = () => {};
51
+ onMounted(() => stop = startMermaid());
52
+ onBeforeUnmount(() => stop());
53
+ return () => h("div", {
54
+ class: "cmm",
55
+ "data-source": props.content
56
+ }, [h(Pele, {
57
+ ...attrs,
58
+ content: props.content
59
+ }), h("div", {
60
+ class: "cmm-bar",
61
+ innerHTML: mermaidBar()
62
+ })]);
63
+ }
64
+ });
65
+ const mermaid = {
66
+ default: pele,
67
+ components: { pele: Mermaid }
68
+ };
69
+ const typeset = defineComponent({
70
+ name: "ComarkTypeset",
71
+ setup: () => () => h("style", {
72
+ "data-comark-typeset": "",
73
+ innerHTML: typesetCss
74
+ })
75
+ });
76
+ /** Every plugin with components for `@comark/vue`, which leaves out annotate, diff, and quiz. */
77
+ var vue_default = (options) => preset({
78
+ badge,
79
+ cards,
80
+ carousel,
81
+ cast,
82
+ charts,
83
+ chips,
84
+ code,
85
+ codeNotes,
86
+ colors,
87
+ details,
88
+ diagrams,
89
+ embed,
90
+ fields,
91
+ fileTree,
92
+ github,
93
+ icon,
94
+ links,
95
+ magicMove,
96
+ mark,
97
+ math,
98
+ media,
99
+ mermaid,
100
+ metrics,
101
+ outline,
102
+ properties,
103
+ qr,
104
+ sources,
105
+ steps,
106
+ table,
107
+ tabs,
108
+ tests,
109
+ typeset,
110
+ zoom
111
+ }, options);
112
+ //#endregion
113
+ export { criticCss, vue_default as default };
package/package.json CHANGED
@@ -1,7 +1,173 @@
1
1
  {
2
2
  "name": "comark-ui",
3
- "version": "0.0.0",
4
- "description": "Placeholder for comark-ui. The real package publishes from https://github.com/onmax/comark-ui.",
3
+ "version": "0.7.2",
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",
5
15
  "license": "MIT",
6
- "repository": { "type": "git", "url": "git+https://github.com/onmax/comark-ui.git" }
7
- }
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-annotate": "^0.7.2",
51
+ "comark-badge": "^0.7.2",
52
+ "comark-carousel": "^0.7.2",
53
+ "comark-cards": "^0.7.2",
54
+ "comark-cast": "^0.7.2",
55
+ "comark-charts": "^0.7.2",
56
+ "comark-chips": "^0.7.2",
57
+ "comark-code": "^0.7.2",
58
+ "comark-code-notes": "^0.7.2",
59
+ "comark-colors": "^0.7.2",
60
+ "comark-cjk": "^0.7.2",
61
+ "comark-deflist": "^0.7.2",
62
+ "comark-critic": "^0.7.2",
63
+ "comark-details": "^0.7.2",
64
+ "comark-diagrams": "^0.7.2",
65
+ "comark-fields": "^0.7.2",
66
+ "comark-embed": "^0.7.2",
67
+ "comark-figure": "^0.7.2",
68
+ "comark-diff": "^0.7.2",
69
+ "comark-file-tree": "^0.7.2",
70
+ "comark-github": "^0.7.2",
71
+ "comark-icon": "^0.7.2",
72
+ "comark-include": "^0.7.2",
73
+ "comark-keys": "^0.7.2",
74
+ "comark-footnotes": "^0.7.2",
75
+ "comark-links": "^0.7.2",
76
+ "comark-mark": "^0.7.2",
77
+ "comark-mathml": "^0.7.2",
78
+ "comark-media": "^0.7.2",
79
+ "comark-magic-move": "^0.7.2",
80
+ "comark-metrics": "^0.7.2",
81
+ "comark-outline": "^0.7.2",
82
+ "comark-qr": "^0.7.2",
83
+ "comark-quiz": "^0.7.2",
84
+ "comark-reading-time": "^0.7.2",
85
+ "comark-properties": "^0.7.2",
86
+ "comark-steps": "^0.7.2",
87
+ "comark-table": "^0.7.2",
88
+ "comark-tabs": "^0.7.2",
89
+ "comark-tests": "^0.7.2",
90
+ "comark-sources": "^0.7.2",
91
+ "comark-xref": "^0.7.2",
92
+ "comark-zoom": "^0.7.2"
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
+ }
173
+ }