@mdxeditor/editor 2.15.1 → 2.17.0
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/plugins/jsx/{LexicalMdxTextExpressionNode.js → LexicalMdxExpressionNode.js} +22 -15
- package/dist/plugins/jsx/LexicalMdxExpressionVisitor.js +14 -0
- package/dist/plugins/jsx/MdastMdxExpressionVisitor.js +11 -0
- package/dist/plugins/jsx/index.js +6 -6
- package/dist/style.css +48 -48
- package/dist/styles/lexical-theme.module.css.js +24 -24
- package/package.json +1 -1
- package/dist/plugins/jsx/LexicalMdxTextExpressionVisitor.js +0 -14
- package/dist/plugins/jsx/MdastMdxTextExpressionVisitor.js +0 -11
|
@@ -8,31 +8,37 @@ import React__default from "react";
|
|
|
8
8
|
import { DecoratorNode, $applyNodeReplacement } from "lexical";
|
|
9
9
|
import lexicalThemeStyles from "../../styles/lexical-theme.module.css.js";
|
|
10
10
|
import styles from "../../styles/ui.module.css.js";
|
|
11
|
-
class
|
|
11
|
+
class LexicalMdxExpressionNode extends DecoratorNode {
|
|
12
12
|
/**
|
|
13
13
|
* Constructs a new {@link GenericHTMLNode} with the specified MDAST HTML node as the object to edit.
|
|
14
14
|
*/
|
|
15
|
-
constructor(value, key) {
|
|
15
|
+
constructor(value, mdastType, key) {
|
|
16
16
|
super(key);
|
|
17
17
|
/** @internal */
|
|
18
18
|
__publicField(this, "__value");
|
|
19
|
+
/** @internal */
|
|
20
|
+
__publicField(this, "__mdastType");
|
|
19
21
|
this.__value = value;
|
|
22
|
+
this.__mdastType = mdastType;
|
|
20
23
|
}
|
|
21
24
|
/** @internal */
|
|
22
25
|
static getType() {
|
|
23
|
-
return "mdx-
|
|
26
|
+
return "mdx-expression";
|
|
24
27
|
}
|
|
25
28
|
/** @internal */
|
|
26
29
|
static clone(node) {
|
|
27
|
-
return new
|
|
30
|
+
return new LexicalMdxExpressionNode(node.__value, node.__mdastType, node.__key);
|
|
28
31
|
}
|
|
29
32
|
getValue() {
|
|
30
33
|
return this.__value;
|
|
31
34
|
}
|
|
35
|
+
getMdastType() {
|
|
36
|
+
return this.__mdastType;
|
|
37
|
+
}
|
|
32
38
|
// View
|
|
33
39
|
createDOM() {
|
|
34
40
|
const element = document.createElement("span");
|
|
35
|
-
element.classList.add(lexicalThemeStyles.
|
|
41
|
+
element.classList.add(lexicalThemeStyles.mdxExpression);
|
|
36
42
|
return element;
|
|
37
43
|
}
|
|
38
44
|
updateDOM() {
|
|
@@ -48,13 +54,14 @@ class LexicalMdxTextExpressionNode extends DecoratorNode {
|
|
|
48
54
|
};
|
|
49
55
|
}
|
|
50
56
|
static importJSON(serializedNode) {
|
|
51
|
-
return $
|
|
57
|
+
return $createLexicalMdxExpressionNode(serializedNode.value, serializedNode.mdastType);
|
|
52
58
|
}
|
|
53
59
|
exportJSON() {
|
|
54
60
|
return {
|
|
55
61
|
...super.exportJSON(),
|
|
56
62
|
value: this.getValue(),
|
|
57
|
-
|
|
63
|
+
mdastType: this.getMdastType(),
|
|
64
|
+
type: "mdx-expression",
|
|
58
65
|
version: 1
|
|
59
66
|
};
|
|
60
67
|
}
|
|
@@ -81,7 +88,7 @@ class LexicalMdxTextExpressionNode extends DecoratorNode {
|
|
|
81
88
|
return true;
|
|
82
89
|
}
|
|
83
90
|
isInline() {
|
|
84
|
-
return
|
|
91
|
+
return this.__mdastType === "mdxTextExpression";
|
|
85
92
|
}
|
|
86
93
|
decorate(editor) {
|
|
87
94
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, "{", /* @__PURE__ */ React__default.createElement("span", { className: styles.inputSizer, "data-value": this.getValue() }, /* @__PURE__ */ React__default.createElement(
|
|
@@ -112,14 +119,14 @@ class LexicalMdxTextExpressionNode extends DecoratorNode {
|
|
|
112
119
|
)), "}");
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
|
-
function $
|
|
116
|
-
return $applyNodeReplacement(new
|
|
122
|
+
function $createLexicalMdxExpressionNode(value, type) {
|
|
123
|
+
return $applyNodeReplacement(new LexicalMdxExpressionNode(value, type));
|
|
117
124
|
}
|
|
118
|
-
function $
|
|
119
|
-
return node instanceof
|
|
125
|
+
function $isLexicalMdxExpressionNode(node) {
|
|
126
|
+
return node instanceof LexicalMdxExpressionNode;
|
|
120
127
|
}
|
|
121
128
|
export {
|
|
122
|
-
$
|
|
123
|
-
$
|
|
124
|
-
|
|
129
|
+
$createLexicalMdxExpressionNode,
|
|
130
|
+
$isLexicalMdxExpressionNode,
|
|
131
|
+
LexicalMdxExpressionNode
|
|
125
132
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { $isLexicalMdxExpressionNode } from "./LexicalMdxExpressionNode.js";
|
|
2
|
+
const LexicalMdxExpressionVisitor = {
|
|
3
|
+
testLexicalNode: $isLexicalMdxExpressionNode,
|
|
4
|
+
visitLexicalNode({ actions, mdastParent, lexicalNode }) {
|
|
5
|
+
const mdastNode = {
|
|
6
|
+
type: lexicalNode.getMdastType(),
|
|
7
|
+
value: lexicalNode.getValue()
|
|
8
|
+
};
|
|
9
|
+
actions.appendToParent(mdastParent, mdastNode);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
LexicalMdxExpressionVisitor
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { $createLexicalMdxExpressionNode } from "./LexicalMdxExpressionNode.js";
|
|
2
|
+
const MdastMdxExpressionVisitor = {
|
|
3
|
+
testNode: (node) => node.type === "mdxTextExpression" || node.type === "mdxFlowExpression",
|
|
4
|
+
visitNode({ lexicalParent, mdastNode }) {
|
|
5
|
+
lexicalParent.append($createLexicalMdxExpressionNode(mdastNode.value, mdastNode.type));
|
|
6
|
+
},
|
|
7
|
+
priority: -200
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
MdastMdxExpressionVisitor
|
|
11
|
+
};
|
|
@@ -7,9 +7,9 @@ import { MdastMdxJsEsmVisitor } from "./MdastMdxJsEsmVisitor.js";
|
|
|
7
7
|
import { MdastMdxJsxElementVisitor } from "./MdastMdxJsxElementVisitor.js";
|
|
8
8
|
import { Signal, map } from "@mdxeditor/gurx";
|
|
9
9
|
import { realmPlugin } from "../../RealmWithPlugins.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { MdastMdxExpressionVisitor } from "./MdastMdxExpressionVisitor.js";
|
|
11
|
+
import { LexicalMdxExpressionNode } from "./LexicalMdxExpressionNode.js";
|
|
12
|
+
import { LexicalMdxExpressionVisitor } from "./LexicalMdxExpressionVisitor.js";
|
|
13
13
|
import { GenericJsxEditor } from "../../jsx-editors/GenericJsxEditor.js";
|
|
14
14
|
function isMdastJsxNode(node) {
|
|
15
15
|
return node.type === "mdxJsxFlowElement" || node.type === "mdxJsxTextElement";
|
|
@@ -78,10 +78,10 @@ const jsxPlugin = realmPlugin({
|
|
|
78
78
|
[jsxIsAvailable$]: true,
|
|
79
79
|
[addMdastExtension$]: mdxFromMarkdown(),
|
|
80
80
|
[addSyntaxExtension$]: mdxjs(),
|
|
81
|
-
[addImportVisitor$]: [MdastMdxJsxElementVisitor, MdastMdxJsEsmVisitor,
|
|
81
|
+
[addImportVisitor$]: [MdastMdxJsxElementVisitor, MdastMdxJsEsmVisitor, MdastMdxExpressionVisitor],
|
|
82
82
|
// export
|
|
83
|
-
[addLexicalNode$]: [LexicalJsxNode,
|
|
84
|
-
[addExportVisitor$]: [LexicalJsxVisitor,
|
|
83
|
+
[addLexicalNode$]: [LexicalJsxNode, LexicalMdxExpressionNode],
|
|
84
|
+
[addExportVisitor$]: [LexicalJsxVisitor, LexicalMdxExpressionVisitor],
|
|
85
85
|
[addToMarkdownExtension$]: mdxToMarkdown(),
|
|
86
86
|
[jsxComponentDescriptors$]: getDescriptors(params)
|
|
87
87
|
});
|
package/dist/style.css
CHANGED
|
@@ -1695,7 +1695,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1695
1695
|
content: attr(data-value);
|
|
1696
1696
|
white-space: pre-wrap;
|
|
1697
1697
|
}
|
|
1698
|
-
:root, .
|
|
1698
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1699
1699
|
--blue-1: #fbfdff;
|
|
1700
1700
|
--blue-2: #f4faff;
|
|
1701
1701
|
--blue-3: #e6f4fe;
|
|
@@ -1712,7 +1712,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1712
1712
|
|
|
1713
1713
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1714
1714
|
@media (color-gamut: p3) {
|
|
1715
|
-
:root, .
|
|
1715
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1716
1716
|
--blue-1: color(display-p3 0.986 0.992 0.999);
|
|
1717
1717
|
--blue-2: color(display-p3 0.96 0.979 0.998);
|
|
1718
1718
|
--blue-3: color(display-p3 0.912 0.956 0.991);
|
|
@@ -1729,7 +1729,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
|
|
1732
|
-
.
|
|
1732
|
+
._dark_1tncs_1, ._dark-theme_1tncs_1 {
|
|
1733
1733
|
--blue-1: #0d1520;
|
|
1734
1734
|
--blue-2: #111927;
|
|
1735
1735
|
--blue-3: #0d2847;
|
|
@@ -1746,7 +1746,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1746
1746
|
|
|
1747
1747
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1748
1748
|
@media (color-gamut: p3) {
|
|
1749
|
-
.
|
|
1749
|
+
._dark_1tncs_1, ._dark-theme_1tncs_1 {
|
|
1750
1750
|
--blue-1: color(display-p3 0.057 0.081 0.122);
|
|
1751
1751
|
--blue-2: color(display-p3 0.072 0.098 0.147);
|
|
1752
1752
|
--blue-3: color(display-p3 0.078 0.154 0.27);
|
|
@@ -1763,7 +1763,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
|
-
:root, .
|
|
1766
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1767
1767
|
--slate-1: #fcfcfd;
|
|
1768
1768
|
--slate-2: #f9f9fb;
|
|
1769
1769
|
--slate-3: #f0f0f3;
|
|
@@ -1780,7 +1780,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1780
1780
|
|
|
1781
1781
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1782
1782
|
@media (color-gamut: p3) {
|
|
1783
|
-
:root, .
|
|
1783
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1784
1784
|
--slate-1: color(display-p3 0.988 0.988 0.992);
|
|
1785
1785
|
--slate-2: color(display-p3 0.976 0.976 0.984);
|
|
1786
1786
|
--slate-3: color(display-p3 0.94 0.941 0.953);
|
|
@@ -1797,7 +1797,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
-
.
|
|
1800
|
+
._dark_1tncs_1, ._dark-theme_1tncs_1 {
|
|
1801
1801
|
--slate-1: #111113;
|
|
1802
1802
|
--slate-2: #18191b;
|
|
1803
1803
|
--slate-3: #212225;
|
|
@@ -1814,7 +1814,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1814
1814
|
|
|
1815
1815
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1816
1816
|
@media (color-gamut: p3) {
|
|
1817
|
-
.
|
|
1817
|
+
._dark_1tncs_1, ._dark-theme_1tncs_1 {
|
|
1818
1818
|
--slate-1: color(display-p3 0.067 0.067 0.074);
|
|
1819
1819
|
--slate-2: color(display-p3 0.095 0.098 0.105);
|
|
1820
1820
|
--slate-3: color(display-p3 0.13 0.135 0.145);
|
|
@@ -1831,7 +1831,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
|
|
1834
|
-
:root, .
|
|
1834
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1835
1835
|
--grass-1: #fbfefb;
|
|
1836
1836
|
--grass-2: #f5fbf5;
|
|
1837
1837
|
--grass-3: #e9f6e9;
|
|
@@ -1848,7 +1848,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1848
1848
|
|
|
1849
1849
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1850
1850
|
@media (color-gamut: p3) {
|
|
1851
|
-
:root, .
|
|
1851
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1852
1852
|
--grass-1: color(display-p3 0.986 0.996 0.985);
|
|
1853
1853
|
--grass-2: color(display-p3 0.966 0.983 0.964);
|
|
1854
1854
|
--grass-3: color(display-p3 0.923 0.965 0.917);
|
|
@@ -1865,7 +1865,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
1867
1867
|
|
|
1868
|
-
:root, .
|
|
1868
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1869
1869
|
--cyan-1: #fafdfe;
|
|
1870
1870
|
--cyan-2: #f2fafb;
|
|
1871
1871
|
--cyan-3: #def7f9;
|
|
@@ -1882,7 +1882,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1882
1882
|
|
|
1883
1883
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1884
1884
|
@media (color-gamut: p3) {
|
|
1885
|
-
:root, .
|
|
1885
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1886
1886
|
--cyan-1: color(display-p3 0.982 0.992 0.996);
|
|
1887
1887
|
--cyan-2: color(display-p3 0.955 0.981 0.984);
|
|
1888
1888
|
--cyan-3: color(display-p3 0.888 0.965 0.975);
|
|
@@ -1899,7 +1899,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
|
-
:root, .
|
|
1902
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1903
1903
|
--amber-1: #fefdfb;
|
|
1904
1904
|
--amber-2: #fefbe9;
|
|
1905
1905
|
--amber-3: #fff7c2;
|
|
@@ -1916,7 +1916,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1916
1916
|
|
|
1917
1917
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1918
1918
|
@media (color-gamut: p3) {
|
|
1919
|
-
:root, .
|
|
1919
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1920
1920
|
--amber-1: color(display-p3 0.995 0.992 0.985);
|
|
1921
1921
|
--amber-2: color(display-p3 0.994 0.986 0.921);
|
|
1922
1922
|
--amber-3: color(display-p3 0.994 0.969 0.782);
|
|
@@ -1933,7 +1933,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
1935
|
|
|
1936
|
-
:root, .
|
|
1936
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1937
1937
|
--red-1: #fffcfc;
|
|
1938
1938
|
--red-2: #fff7f7;
|
|
1939
1939
|
--red-3: #feebec;
|
|
@@ -1950,7 +1950,7 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1950
1950
|
|
|
1951
1951
|
@supports (color: color(display-p3 1 1 1)) {
|
|
1952
1952
|
@media (color-gamut: p3) {
|
|
1953
|
-
:root, .
|
|
1953
|
+
:root, ._light_1tncs_1, ._light-theme_1tncs_1 {
|
|
1954
1954
|
--red-1: color(display-p3 0.998 0.989 0.988);
|
|
1955
1955
|
--red-2: color(display-p3 0.995 0.971 0.971);
|
|
1956
1956
|
--red-3: color(display-p3 0.985 0.925 0.925);
|
|
@@ -1967,69 +1967,69 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
|
-
.
|
|
1970
|
+
._bold_1tncs_10 {
|
|
1971
1971
|
font-weight: bold;
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
|
-
.
|
|
1974
|
+
._italic_1tncs_14 {
|
|
1975
1975
|
font-style: italic;
|
|
1976
1976
|
}
|
|
1977
1977
|
|
|
1978
|
-
.
|
|
1978
|
+
._underline_1tncs_18 {
|
|
1979
1979
|
text-decoration: underline;
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
|
-
.
|
|
1982
|
+
._bold_1tncs_10 {
|
|
1983
1983
|
font-weight: 700;
|
|
1984
1984
|
}
|
|
1985
1985
|
|
|
1986
|
-
.
|
|
1986
|
+
._italic_1tncs_14 {
|
|
1987
1987
|
font-style: italic;
|
|
1988
1988
|
}
|
|
1989
1989
|
|
|
1990
|
-
.
|
|
1990
|
+
._underline_1tncs_18 {
|
|
1991
1991
|
text-decoration: underline
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
|
-
.
|
|
1994
|
+
._strikethrough_1tncs_34 {
|
|
1995
1995
|
text-decoration: line-through
|
|
1996
1996
|
}
|
|
1997
1997
|
|
|
1998
|
-
.
|
|
1998
|
+
._underlineStrikethrough_1tncs_38 {
|
|
1999
1999
|
text-decoration: underline line-through
|
|
2000
2000
|
}
|
|
2001
2001
|
|
|
2002
|
-
.
|
|
2002
|
+
._subscript_1tncs_42 {
|
|
2003
2003
|
font-size: .8em;
|
|
2004
2004
|
vertical-align: sub !important
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
|
-
.
|
|
2007
|
+
._superscript_1tncs_47 {
|
|
2008
2008
|
font-size: .8em;
|
|
2009
2009
|
vertical-align: super
|
|
2010
2010
|
}
|
|
2011
2011
|
|
|
2012
|
-
.
|
|
2012
|
+
._code_1tncs_52 {
|
|
2013
2013
|
background-color: var(--baseBg);
|
|
2014
2014
|
padding: 1px .25rem;
|
|
2015
2015
|
font-family: var(--font-mono);
|
|
2016
2016
|
font-size: 94%
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
|
-
.
|
|
2019
|
+
._nestedListItem_1tncs_59 {
|
|
2020
2020
|
list-style: none;
|
|
2021
2021
|
list-style-type: none;
|
|
2022
2022
|
}
|
|
2023
2023
|
|
|
2024
|
-
.
|
|
2024
|
+
._nestedListItem_1tncs_59:before, ._nestedListItem_1tncs_59:after {
|
|
2025
2025
|
display: none;
|
|
2026
2026
|
}
|
|
2027
2027
|
|
|
2028
|
-
.
|
|
2028
|
+
._listitem_1tncs_69 {
|
|
2029
2029
|
margin: var(--spacing-2) 0;
|
|
2030
2030
|
}
|
|
2031
2031
|
|
|
2032
|
-
.
|
|
2032
|
+
._listItemChecked_1tncs_73, ._listItemUnchecked_1tncs_74 {
|
|
2033
2033
|
position: relative;
|
|
2034
2034
|
margin-left: 0;
|
|
2035
2035
|
margin-right: 0;
|
|
@@ -2040,11 +2040,11 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
2040
2040
|
outline: none;
|
|
2041
2041
|
}
|
|
2042
2042
|
|
|
2043
|
-
.
|
|
2043
|
+
._listItemChecked_1tncs_73 {
|
|
2044
2044
|
text-decoration: line-through;
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
|
-
.
|
|
2047
|
+
._listItemUnchecked_1tncs_74:before, ._listItemChecked_1tncs_73:before {
|
|
2048
2048
|
content: '';
|
|
2049
2049
|
width: var(--spacing-4);
|
|
2050
2050
|
height: var(--spacing-4);
|
|
@@ -2056,29 +2056,29 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
2056
2056
|
position: absolute;
|
|
2057
2057
|
}
|
|
2058
2058
|
|
|
2059
|
-
.
|
|
2059
|
+
._listItemUnchecked_1tncs_74[dir='rtl']:before, ._listItemChecked_1tncs_73[dir='rtl']:before {
|
|
2060
2060
|
left: auto;
|
|
2061
2061
|
right: 0;
|
|
2062
2062
|
}
|
|
2063
2063
|
|
|
2064
|
-
.
|
|
2064
|
+
._listItemUnchecked_1tncs_74:focus:before, ._listItemChecked_1tncs_73:focus:before {
|
|
2065
2065
|
box-shadow: 0 0 0 2px var(--accentBgActive);
|
|
2066
2066
|
border-radius: var(--radius-small);
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
2069
|
-
.
|
|
2069
|
+
._listItemUnchecked_1tncs_74:before {
|
|
2070
2070
|
border: 1px solid var(--baseBorder);
|
|
2071
2071
|
border-radius: var(--radius-small);
|
|
2072
2072
|
}
|
|
2073
2073
|
|
|
2074
|
-
.
|
|
2074
|
+
._listItemChecked_1tncs_73:before {
|
|
2075
2075
|
border: 1px solid var(--accentBorder);
|
|
2076
2076
|
border-radius: var(--radius-small);
|
|
2077
2077
|
background-color: var(--accentSolid);
|
|
2078
2078
|
background-repeat: no-repeat;
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
|
-
.
|
|
2081
|
+
._listItemChecked_1tncs_73:after {
|
|
2082
2082
|
content: '';
|
|
2083
2083
|
cursor: pointer;
|
|
2084
2084
|
border-color: var(--baseBase);
|
|
@@ -2094,15 +2094,15 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
2094
2094
|
border-width: 0 var(--spacing-0_5) var(--spacing-0_5) 0;
|
|
2095
2095
|
}
|
|
2096
2096
|
|
|
2097
|
-
.
|
|
2097
|
+
._nestedListItem_1tncs_59 {
|
|
2098
2098
|
list-style-type: none;
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
|
-
.
|
|
2101
|
+
._nestedListItem_1tncs_59:before, ._nestedListItem_1tncs_59:after {
|
|
2102
2102
|
display: none;
|
|
2103
2103
|
}
|
|
2104
2104
|
|
|
2105
|
-
.
|
|
2105
|
+
._admonitionDanger_1tncs_151, ._admonitionInfo_1tncs_152, ._admonitionNote_1tncs_153, ._admonitionTip_1tncs_154, ._admonitionCaution_1tncs_155 {
|
|
2106
2106
|
padding: var(--spacing-2);
|
|
2107
2107
|
margin-top: var(--spacing-2);
|
|
2108
2108
|
margin-bottom: var(--spacing-2);
|
|
@@ -2110,37 +2110,37 @@ form._multiFieldForm_19o4e_1144 ._formField_19o4e_1150 label {
|
|
|
2110
2110
|
background-color: var(--admonitionBg);
|
|
2111
2111
|
}
|
|
2112
2112
|
|
|
2113
|
-
.
|
|
2113
|
+
._admonitionInfo_1tncs_152 {
|
|
2114
2114
|
--admonitionBorder: var(--admonitionInfoBorder);
|
|
2115
2115
|
--admonitionBg: var(--admonitionInfoBg);
|
|
2116
2116
|
}
|
|
2117
2117
|
|
|
2118
|
-
.
|
|
2118
|
+
._admonitionTip_1tncs_154 {
|
|
2119
2119
|
--admonitionBorder: var(--admonitionTipBorder);
|
|
2120
2120
|
--admonitionBg: var(--admonitionTipBg);
|
|
2121
2121
|
}
|
|
2122
2122
|
|
|
2123
|
-
.
|
|
2123
|
+
._admonitionCaution_1tncs_155 {
|
|
2124
2124
|
--admonitionBorder: var(--admonitionCautionBorder);
|
|
2125
2125
|
--admonitionBg: var(--admonitionCautionBg);
|
|
2126
2126
|
}
|
|
2127
2127
|
|
|
2128
|
-
.
|
|
2128
|
+
._admonitionDanger_1tncs_151 {
|
|
2129
2129
|
--admonitionBorder: var(--admonitionDangerBorder);
|
|
2130
2130
|
--admonitionBg: var(--admonitionDangerBg);
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
|
-
.
|
|
2133
|
+
._admonitionNote_1tncs_153 {
|
|
2134
2134
|
--admonitionBorder: var(--admonitionNoteBorder);
|
|
2135
2135
|
--admonitionBg: var(--admonitionNoteBg);
|
|
2136
2136
|
}
|
|
2137
2137
|
|
|
2138
|
-
.
|
|
2138
|
+
._mdxExpression_1tncs_188 {
|
|
2139
2139
|
font-family: var(--font-mono);
|
|
2140
2140
|
font-size: 84%;
|
|
2141
2141
|
color: var(--accentText);
|
|
2142
2142
|
}
|
|
2143
2143
|
|
|
2144
|
-
.
|
|
2144
|
+
._mdxExpression_1tncs_188 input:focus-visible {
|
|
2145
2145
|
outline: none;
|
|
2146
2146
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const light = "
|
|
2
|
-
const lightTheme = "_light-
|
|
3
|
-
const dark = "
|
|
4
|
-
const darkTheme = "_dark-
|
|
5
|
-
const bold = "
|
|
6
|
-
const italic = "
|
|
7
|
-
const underline = "
|
|
8
|
-
const strikethrough = "
|
|
9
|
-
const underlineStrikethrough = "
|
|
10
|
-
const subscript = "
|
|
11
|
-
const superscript = "
|
|
12
|
-
const code = "
|
|
13
|
-
const nestedListItem = "
|
|
14
|
-
const listitem = "
|
|
15
|
-
const listItemChecked = "
|
|
16
|
-
const listItemUnchecked = "
|
|
17
|
-
const admonitionDanger = "
|
|
18
|
-
const admonitionInfo = "
|
|
19
|
-
const admonitionNote = "
|
|
20
|
-
const admonitionTip = "
|
|
21
|
-
const admonitionCaution = "
|
|
22
|
-
const
|
|
1
|
+
const light = "_light_1tncs_1";
|
|
2
|
+
const lightTheme = "_light-theme_1tncs_1";
|
|
3
|
+
const dark = "_dark_1tncs_1";
|
|
4
|
+
const darkTheme = "_dark-theme_1tncs_1";
|
|
5
|
+
const bold = "_bold_1tncs_10";
|
|
6
|
+
const italic = "_italic_1tncs_14";
|
|
7
|
+
const underline = "_underline_1tncs_18";
|
|
8
|
+
const strikethrough = "_strikethrough_1tncs_34";
|
|
9
|
+
const underlineStrikethrough = "_underlineStrikethrough_1tncs_38";
|
|
10
|
+
const subscript = "_subscript_1tncs_42";
|
|
11
|
+
const superscript = "_superscript_1tncs_47";
|
|
12
|
+
const code = "_code_1tncs_52";
|
|
13
|
+
const nestedListItem = "_nestedListItem_1tncs_59";
|
|
14
|
+
const listitem = "_listitem_1tncs_69";
|
|
15
|
+
const listItemChecked = "_listItemChecked_1tncs_73";
|
|
16
|
+
const listItemUnchecked = "_listItemUnchecked_1tncs_74";
|
|
17
|
+
const admonitionDanger = "_admonitionDanger_1tncs_151";
|
|
18
|
+
const admonitionInfo = "_admonitionInfo_1tncs_152";
|
|
19
|
+
const admonitionNote = "_admonitionNote_1tncs_153";
|
|
20
|
+
const admonitionTip = "_admonitionTip_1tncs_154";
|
|
21
|
+
const admonitionCaution = "_admonitionCaution_1tncs_155";
|
|
22
|
+
const mdxExpression = "_mdxExpression_1tncs_188";
|
|
23
23
|
const lexicalThemeStyles = {
|
|
24
24
|
light,
|
|
25
25
|
lightTheme,
|
|
@@ -42,7 +42,7 @@ const lexicalThemeStyles = {
|
|
|
42
42
|
admonitionNote,
|
|
43
43
|
admonitionTip,
|
|
44
44
|
admonitionCaution,
|
|
45
|
-
|
|
45
|
+
mdxExpression
|
|
46
46
|
};
|
|
47
47
|
export {
|
|
48
48
|
admonitionCaution,
|
|
@@ -61,7 +61,7 @@ export {
|
|
|
61
61
|
listItemChecked,
|
|
62
62
|
listItemUnchecked,
|
|
63
63
|
listitem,
|
|
64
|
-
|
|
64
|
+
mdxExpression,
|
|
65
65
|
nestedListItem,
|
|
66
66
|
strikethrough,
|
|
67
67
|
subscript,
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { $isLexicalMdxTextExpressionNode } from "./LexicalMdxTextExpressionNode.js";
|
|
2
|
-
const LexicalMdxTextExpressionVisitor = {
|
|
3
|
-
testLexicalNode: $isLexicalMdxTextExpressionNode,
|
|
4
|
-
visitLexicalNode({ actions, mdastParent, lexicalNode }) {
|
|
5
|
-
const mdastNode = {
|
|
6
|
-
type: "mdxTextExpression",
|
|
7
|
-
value: lexicalNode.getValue()
|
|
8
|
-
};
|
|
9
|
-
actions.appendToParent(mdastParent, mdastNode);
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
LexicalMdxTextExpressionVisitor
|
|
14
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { $createLexicalMdxTextExpressionNode } from "./LexicalMdxTextExpressionNode.js";
|
|
2
|
-
const MdastMdxTextExpressionVisitor = {
|
|
3
|
-
testNode: "mdxTextExpression",
|
|
4
|
-
visitNode({ lexicalParent, mdastNode }) {
|
|
5
|
-
lexicalParent.append($createLexicalMdxTextExpressionNode(mdastNode.value));
|
|
6
|
-
},
|
|
7
|
-
priority: -200
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
MdastMdxTextExpressionVisitor
|
|
11
|
-
};
|