@prosekit/basic 0.7.2 → 0.7.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/typography.css +11 -0
- package/dist/typography.css.map +1 -1
- package/package.json +7 -6
- package/src/typography.css +11 -0
package/dist/typography.css
CHANGED
|
@@ -232,6 +232,17 @@
|
|
|
232
232
|
&.prosekit-dragging {
|
|
233
233
|
--prosekit-node-selection-color: transparent;
|
|
234
234
|
}
|
|
235
|
+
|
|
236
|
+
.prosemirror-math-inline.prosemirror-math-head-inside .prosemirror-math-source {
|
|
237
|
+
&::before {
|
|
238
|
+
content: "$";
|
|
239
|
+
opacity: 0.5;
|
|
240
|
+
}
|
|
241
|
+
&::after {
|
|
242
|
+
content: "$";
|
|
243
|
+
opacity: 0.5;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
235
246
|
}
|
|
236
247
|
|
|
237
248
|
|
package/dist/typography.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.css","names":[],"sources":["../src/typography.css"],"sourcesContent":[":root {\n --prosekit-node-selection-color: rgba(57, 136, 255, 0.2);\n --prosekit-autocomplete-color: rgba(209, 213, 219, 0.15); /* tailwind bg-gray-300/15 */\n}\n\n.ProseMirror {\n & {\n /* Disable margin collapsing */\n display: flex;\n flex-direction: column;\n }\n\n & {\n /* Set the default line height as same as block handle's height */\n line-height: 1.5;\n }\n\n & p:first-child,\n & h1:first-child,\n & h2:first-child,\n & h3:first-child,\n & h4:first-child,\n & h5:first-child,\n & h6:first-child {\n margin-top: 0;\n }\n\n & p:last-child,\n & h1:last-child,\n & h2:last-child,\n & h3:last-child,\n & h4:last-child,\n & h5:last-child,\n & h6:last-child {\n margin-bottom: 0;\n }\n\n & h1,\n & h2,\n & h3,\n & h4,\n & h5,\n & h6 {\n padding-top: 0;\n padding-bottom: 0;\n border-style: none;\n font-weight: 600;\n line-height: 1.25;\n }\n\n & a {\n font-weight: 500;\n text-decoration: underline;\n }\n\n & p,\n & ul,\n & ol,\n & pre {\n margin: 0;\n padding: 0.5rem 0;\n line-height: 1.5;\n }\n\n & blockquote {\n padding-inline-start: 1em;\n border-inline-start: 0.25em solid hsl(0 0% 60% / 0.4);\n }\n\n & h1 {\n margin: 1rem 0;\n font-size: 2.25em;\n }\n\n & h2 {\n margin: 1.75em 0 0.5em;\n font-size: 1.75em;\n }\n\n & h3 {\n margin: 1.5em 0 0.5em;\n font-size: 1.375em;\n }\n\n & h4 {\n margin: 1em 0;\n font-size: 1.125em;\n }\n\n & h5 {\n margin: 0.5em 0;\n }\n\n & h6 {\n opacity: 0.8;\n }\n\n & img,\n & video {\n width: min-content;\n max-width: 100%;\n margin: 0.5em 0;\n }\n\n & code {\n font-weight: 600;\n font-size: 0.875em;\n }\n\n & pre {\n margin: 0.5rem 0;\n padding: 2rem 2rem;\n overflow-x: auto;\n border: 1px solid hsl(0 0% 50% / 0.2);\n border-radius: 0.375rem;\n /* CSS variables `prosemirror-highlight` and `prosemirror-highlight-bg` are set by package `prosemirror-highlight` */\n background-color: var(--prosemirror-highlight-bg, inherit);\n color: var(--prosemirror-highlight, inherit);\n }\n\n & pre,\n & code {\n white-space: pre;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n hyphens: none;\n tab-size: 4;\n }\n\n & pre code {\n font-weight: inherit;\n }\n\n & pre:has(code) {\n /* Force the code block to be left-to-right */\n direction: ltr;\n }\n\n & hr {\n margin: 2em 0;\n border-width: 1px;\n }\n\n & .prosekit-horizontal-rule {\n margin: 1em 0;\n padding: 1em 0;\n /* Set a small line-height so that the block handle can align to the middle\n of the horizontal rule */\n line-height: 1px;\n\n & hr {\n margin: 0;\n }\n }\n\n & .tableWrapper {\n margin-top: 0.5em;\n margin-bottom: 1em;\n }\n\n & .prosemirror-flat-list {\n /* Use the same line-height as <p> */\n line-height: 1.5;\n\n &::before,\n & > .list-marker {\n /* Use the same padding as <p> */\n top: 0.5rem;\n }\n\n &:has(> div.list-content > h1) {\n &::before,\n & > .list-marker {\n top: 0.75em;\n }\n }\n &:has(> div.list-content > h2) {\n &::before,\n & > .list-marker {\n top: 0.5em;\n }\n }\n &:has(> div.list-content > h3) {\n &::before,\n & > .list-marker {\n top: 0.25em;\n }\n }\n &:has(> div.list-content > h4) {\n &::before,\n & > .list-marker {\n top: 0;\n }\n }\n &:has(> div.list-content > h5) {\n &::before,\n & > .list-marker {\n top: -0.2em;\n }\n }\n &:has(> div.list-content > h6) {\n &::before,\n & > .list-marker {\n top: -0.3em;\n }\n }\n }\n\n /*\n Don't generate box for node view wrapper. This make it easier to style\n the node views.\n */\n div[data-node-view-root=\"true\"] {\n display: contents;\n }\n\n & .ProseMirror-selectednode {\n border-radius: 0.2rem;\n outline-color: var(--prosekit-node-selection-color);\n outline-style: solid;\n outline-width: 0.3rem;\n background-color: var(--prosekit-node-selection-color);\n }\n\n & .prosekit-autocomplete-match {\n border-radius: 0.1em;\n background-color: var(--prosekit-autocomplete-color);\n box-shadow: 0 0 0 0.3em var(--prosekit-autocomplete-color);\n }\n\n &.prosekit-dragging {\n --prosekit-node-selection-color: transparent;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"file":"typography.css","names":[],"sources":["../src/typography.css"],"sourcesContent":[":root {\n --prosekit-node-selection-color: rgba(57, 136, 255, 0.2);\n --prosekit-autocomplete-color: rgba(209, 213, 219, 0.15); /* tailwind bg-gray-300/15 */\n}\n\n.ProseMirror {\n & {\n /* Disable margin collapsing */\n display: flex;\n flex-direction: column;\n }\n\n & {\n /* Set the default line height as same as block handle's height */\n line-height: 1.5;\n }\n\n & p:first-child,\n & h1:first-child,\n & h2:first-child,\n & h3:first-child,\n & h4:first-child,\n & h5:first-child,\n & h6:first-child {\n margin-top: 0;\n }\n\n & p:last-child,\n & h1:last-child,\n & h2:last-child,\n & h3:last-child,\n & h4:last-child,\n & h5:last-child,\n & h6:last-child {\n margin-bottom: 0;\n }\n\n & h1,\n & h2,\n & h3,\n & h4,\n & h5,\n & h6 {\n padding-top: 0;\n padding-bottom: 0;\n border-style: none;\n font-weight: 600;\n line-height: 1.25;\n }\n\n & a {\n font-weight: 500;\n text-decoration: underline;\n }\n\n & p,\n & ul,\n & ol,\n & pre {\n margin: 0;\n padding: 0.5rem 0;\n line-height: 1.5;\n }\n\n & blockquote {\n padding-inline-start: 1em;\n border-inline-start: 0.25em solid hsl(0 0% 60% / 0.4);\n }\n\n & h1 {\n margin: 1rem 0;\n font-size: 2.25em;\n }\n\n & h2 {\n margin: 1.75em 0 0.5em;\n font-size: 1.75em;\n }\n\n & h3 {\n margin: 1.5em 0 0.5em;\n font-size: 1.375em;\n }\n\n & h4 {\n margin: 1em 0;\n font-size: 1.125em;\n }\n\n & h5 {\n margin: 0.5em 0;\n }\n\n & h6 {\n opacity: 0.8;\n }\n\n & img,\n & video {\n width: min-content;\n max-width: 100%;\n margin: 0.5em 0;\n }\n\n & code {\n font-weight: 600;\n font-size: 0.875em;\n }\n\n & pre {\n margin: 0.5rem 0;\n padding: 2rem 2rem;\n overflow-x: auto;\n border: 1px solid hsl(0 0% 50% / 0.2);\n border-radius: 0.375rem;\n /* CSS variables `prosemirror-highlight` and `prosemirror-highlight-bg` are set by package `prosemirror-highlight` */\n background-color: var(--prosemirror-highlight-bg, inherit);\n color: var(--prosemirror-highlight, inherit);\n }\n\n & pre,\n & code {\n white-space: pre;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n hyphens: none;\n tab-size: 4;\n }\n\n & pre code {\n font-weight: inherit;\n }\n\n & pre:has(code) {\n /* Force the code block to be left-to-right */\n direction: ltr;\n }\n\n & hr {\n margin: 2em 0;\n border-width: 1px;\n }\n\n & .prosekit-horizontal-rule {\n margin: 1em 0;\n padding: 1em 0;\n /* Set a small line-height so that the block handle can align to the middle\n of the horizontal rule */\n line-height: 1px;\n\n & hr {\n margin: 0;\n }\n }\n\n & .tableWrapper {\n margin-top: 0.5em;\n margin-bottom: 1em;\n }\n\n & .prosemirror-flat-list {\n /* Use the same line-height as <p> */\n line-height: 1.5;\n\n &::before,\n & > .list-marker {\n /* Use the same padding as <p> */\n top: 0.5rem;\n }\n\n &:has(> div.list-content > h1) {\n &::before,\n & > .list-marker {\n top: 0.75em;\n }\n }\n &:has(> div.list-content > h2) {\n &::before,\n & > .list-marker {\n top: 0.5em;\n }\n }\n &:has(> div.list-content > h3) {\n &::before,\n & > .list-marker {\n top: 0.25em;\n }\n }\n &:has(> div.list-content > h4) {\n &::before,\n & > .list-marker {\n top: 0;\n }\n }\n &:has(> div.list-content > h5) {\n &::before,\n & > .list-marker {\n top: -0.2em;\n }\n }\n &:has(> div.list-content > h6) {\n &::before,\n & > .list-marker {\n top: -0.3em;\n }\n }\n }\n\n /*\n Don't generate box for node view wrapper. This make it easier to style\n the node views.\n */\n div[data-node-view-root=\"true\"] {\n display: contents;\n }\n\n & .ProseMirror-selectednode {\n border-radius: 0.2rem;\n outline-color: var(--prosekit-node-selection-color);\n outline-style: solid;\n outline-width: 0.3rem;\n background-color: var(--prosekit-node-selection-color);\n }\n\n & .prosekit-autocomplete-match {\n border-radius: 0.1em;\n background-color: var(--prosekit-autocomplete-color);\n box-shadow: 0 0 0 0.3em var(--prosekit-autocomplete-color);\n }\n\n &.prosekit-dragging {\n --prosekit-node-selection-color: transparent;\n }\n\n .prosemirror-math-inline.prosemirror-math-head-inside .prosemirror-math-source {\n &::before {\n content: \"$\";\n opacity: 0.5;\n }\n &::after {\n content: \"$\";\n opacity: 0.5;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/basic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "A quick starter for ProseKit",
|
|
7
7
|
"author": {
|
|
@@ -43,18 +43,19 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@prosekit/core": "^0.10.0",
|
|
46
|
-
"@prosekit/extensions": "^0.14.
|
|
46
|
+
"@prosekit/extensions": "^0.14.2",
|
|
47
47
|
"@prosekit/pm": "^0.1.15"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/jsdom": "^27.0.0",
|
|
51
|
-
"happy-dom": "^20.
|
|
51
|
+
"happy-dom": "^20.7.0",
|
|
52
52
|
"jsdom": "^28.1.0",
|
|
53
53
|
"tsdown": "^0.20.3",
|
|
54
54
|
"typescript": "~5.9.3",
|
|
55
|
-
"vitest": "^4.0.
|
|
56
|
-
"@prosekit/config-
|
|
57
|
-
"@prosekit/config-tsdown": "0.0.0"
|
|
55
|
+
"vitest": "^4.1.0-beta.4",
|
|
56
|
+
"@prosekit/config-ts": "0.0.0",
|
|
57
|
+
"@prosekit/config-tsdown": "0.0.0",
|
|
58
|
+
"@prosekit/config-vitest": "0.0.0"
|
|
58
59
|
},
|
|
59
60
|
"publishConfig": {
|
|
60
61
|
"dev": {}
|
package/src/typography.css
CHANGED
|
@@ -232,4 +232,15 @@
|
|
|
232
232
|
&.prosekit-dragging {
|
|
233
233
|
--prosekit-node-selection-color: transparent;
|
|
234
234
|
}
|
|
235
|
+
|
|
236
|
+
.prosemirror-math-inline.prosemirror-math-head-inside .prosemirror-math-source {
|
|
237
|
+
&::before {
|
|
238
|
+
content: "$";
|
|
239
|
+
opacity: 0.5;
|
|
240
|
+
}
|
|
241
|
+
&::after {
|
|
242
|
+
content: "$";
|
|
243
|
+
opacity: 0.5;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
235
246
|
}
|