@conloca/mdx 0.2.1 → 0.2.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.
- package/package.json +7 -7
- package/src/editor-styles.css +22 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conloca/mdx",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"main": "./dist/index.js",
|
|
13
13
|
"module": "./dist/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@conloca/content-api": "0.2.
|
|
15
|
+
"@conloca/content-api": "0.2.2",
|
|
16
16
|
"@mdx-js/mdx": "^3.1.1",
|
|
17
17
|
"@mdx-js/react": "^3.1.1",
|
|
18
18
|
"@mdxeditor/editor": "^4.2.3",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"remark-frontmatter": "^5.0.0",
|
|
25
25
|
"remark-gfm": "^4.0.1",
|
|
26
26
|
"remark-mdx": "^3.1.1",
|
|
27
|
-
"remark-mdx-frontmatter": "^
|
|
27
|
+
"remark-mdx-frontmatter": "^6.0.0",
|
|
28
28
|
"remark-parse": "^11.0.0",
|
|
29
29
|
"remark-rehype": "^11.1.2",
|
|
30
30
|
"tslib": "^2.8.1",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"react-dom": "^19.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@happy-dom/global-registrator": "
|
|
38
|
+
"@happy-dom/global-registrator": "21.0.4",
|
|
39
39
|
"@testing-library/react": "^16.3.3",
|
|
40
40
|
"@types/mdast": "^4.0.4",
|
|
41
41
|
"@types/react": "19.2.18",
|
|
42
42
|
"@types/react-dom": "19.2.7",
|
|
43
|
-
"happy-dom": "
|
|
43
|
+
"happy-dom": "21.0.4",
|
|
44
44
|
"mdast-util-from-markdown": "^2.0.3",
|
|
45
45
|
"mdast-util-gfm": "^3.1.0",
|
|
46
46
|
"micromark-extension-gfm": "^3.0.0",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
],
|
|
87
87
|
"executor": "@smoothbricks/nx-plugin:bounded-exec",
|
|
88
88
|
"options": {
|
|
89
|
-
"command": "bun --conditions=production
|
|
89
|
+
"command": "bun test --timeout=0 --conditions=production",
|
|
90
90
|
"cwd": "{projectRoot}",
|
|
91
|
-
"
|
|
91
|
+
"idleTimeoutMs": 180000,
|
|
92
92
|
"killAfterMs": 10000
|
|
93
93
|
}
|
|
94
94
|
},
|
package/src/editor-styles.css
CHANGED
|
@@ -25,37 +25,39 @@
|
|
|
25
25
|
/* L0 heading scale. Tailwind preflight sets `h1..h6 { font-size: inherit;
|
|
26
26
|
font-weight: inherit }`, so BlockType → Heading looks identical to a
|
|
27
27
|
paragraph unless something restores real sizes. Use :where() so specificity
|
|
28
|
-
stays (0,0,1) and
|
|
29
|
-
|
|
28
|
+
stays (0,0,1) and host class selectors still win. Host-probe rules sit at
|
|
29
|
+
the same specificity, so head order alone would pick between them; the
|
|
30
|
+
probe also sets `--conloca-host-hN-*` on the heading, which these rules
|
|
31
|
+
read first, so the host's value wins whichever sheet loads last. */
|
|
30
32
|
:where(.conloca-prose--editor) h1 {
|
|
31
|
-
font-size: 2.25em;
|
|
32
|
-
font-weight: 700;
|
|
33
|
-
line-height: 1.2;
|
|
33
|
+
font-size: var(--conloca-host-h1-font-size, 2.25em);
|
|
34
|
+
font-weight: var(--conloca-host-h1-font-weight, 700);
|
|
35
|
+
line-height: var(--conloca-host-h1-line-height, 1.2);
|
|
34
36
|
}
|
|
35
37
|
:where(.conloca-prose--editor) h2 {
|
|
36
|
-
font-size: 1.75em;
|
|
37
|
-
font-weight: 700;
|
|
38
|
-
line-height: 1.25;
|
|
38
|
+
font-size: var(--conloca-host-h2-font-size, 1.75em);
|
|
39
|
+
font-weight: var(--conloca-host-h2-font-weight, 700);
|
|
40
|
+
line-height: var(--conloca-host-h2-line-height, 1.25);
|
|
39
41
|
}
|
|
40
42
|
:where(.conloca-prose--editor) h3 {
|
|
41
|
-
font-size: 1.375em;
|
|
42
|
-
font-weight: 600;
|
|
43
|
-
line-height: 1.3;
|
|
43
|
+
font-size: var(--conloca-host-h3-font-size, 1.375em);
|
|
44
|
+
font-weight: var(--conloca-host-h3-font-weight, 600);
|
|
45
|
+
line-height: var(--conloca-host-h3-line-height, 1.3);
|
|
44
46
|
}
|
|
45
47
|
:where(.conloca-prose--editor) h4 {
|
|
46
|
-
font-size: 1.125em;
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
line-height: 1.35;
|
|
48
|
+
font-size: var(--conloca-host-h4-font-size, 1.125em);
|
|
49
|
+
font-weight: var(--conloca-host-h4-font-weight, 600);
|
|
50
|
+
line-height: var(--conloca-host-h4-line-height, 1.35);
|
|
49
51
|
}
|
|
50
52
|
:where(.conloca-prose--editor) h5 {
|
|
51
|
-
font-size: 1em;
|
|
52
|
-
font-weight: 600;
|
|
53
|
-
line-height: 1.4;
|
|
53
|
+
font-size: var(--conloca-host-h5-font-size, 1em);
|
|
54
|
+
font-weight: var(--conloca-host-h5-font-weight, 600);
|
|
55
|
+
line-height: var(--conloca-host-h5-line-height, 1.4);
|
|
54
56
|
}
|
|
55
57
|
:where(.conloca-prose--editor) h6 {
|
|
56
|
-
font-size: 0.875em;
|
|
57
|
-
font-weight: 600;
|
|
58
|
-
line-height: 1.4;
|
|
58
|
+
font-size: var(--conloca-host-h6-font-size, 0.875em);
|
|
59
|
+
font-weight: var(--conloca-host-h6-font-weight, 600);
|
|
60
|
+
line-height: var(--conloca-host-h6-line-height, 1.4);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
/* Editor chrome styles only. Prose typography is intentionally NOT
|