@contentful/field-editor-markdown 1.5.8 → 1.5.10
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.
|
@@ -64,7 +64,7 @@ const styles = {
|
|
|
64
64
|
justifyContent: 'space-between',
|
|
65
65
|
fontSize: _f36tokens.default.fontSizeM,
|
|
66
66
|
marginTop: _f36tokens.default.spacingXs,
|
|
67
|
-
color: _f36tokens.default.
|
|
67
|
+
color: _f36tokens.default.gray700
|
|
68
68
|
})
|
|
69
69
|
};
|
|
70
70
|
function MarkdownConstraints(props) {
|
|
@@ -72,12 +72,10 @@ function MarkdownConstraints(props) {
|
|
|
72
72
|
const checkConstraint = _fieldeditorshared.ConstraintsUtils.makeChecker(constraints);
|
|
73
73
|
return _react.createElement("div", {
|
|
74
74
|
className: styles.root
|
|
75
|
-
}, _react.createElement(_fieldeditorshared.
|
|
76
|
-
constraints: constraints,
|
|
77
|
-
enabled: true
|
|
78
|
-
}), _react.createElement(_fieldeditorshared.CharCounter, {
|
|
75
|
+
}, _react.createElement(_fieldeditorshared.CharCounter, {
|
|
79
76
|
value: props.value,
|
|
80
|
-
checkConstraint: checkConstraint
|
|
77
|
+
checkConstraint: checkConstraint
|
|
78
|
+
}), _react.createElement(_fieldeditorshared.CharValidation, {
|
|
81
79
|
constraints: constraints
|
|
82
80
|
}));
|
|
83
81
|
}
|
|
@@ -8,7 +8,7 @@ const styles = {
|
|
|
8
8
|
justifyContent: 'space-between',
|
|
9
9
|
fontSize: tokens.fontSizeM,
|
|
10
10
|
marginTop: tokens.spacingXs,
|
|
11
|
-
color: tokens.
|
|
11
|
+
color: tokens.gray700
|
|
12
12
|
})
|
|
13
13
|
};
|
|
14
14
|
export function MarkdownConstraints(props) {
|
|
@@ -16,12 +16,10 @@ export function MarkdownConstraints(props) {
|
|
|
16
16
|
const checkConstraint = ConstraintsUtils.makeChecker(constraints);
|
|
17
17
|
return React.createElement("div", {
|
|
18
18
|
className: styles.root
|
|
19
|
-
}, React.createElement(
|
|
20
|
-
constraints: constraints,
|
|
21
|
-
enabled: true
|
|
22
|
-
}), React.createElement(CharCounter, {
|
|
19
|
+
}, React.createElement(CharCounter, {
|
|
23
20
|
value: props.value,
|
|
24
|
-
checkConstraint: checkConstraint
|
|
21
|
+
checkConstraint: checkConstraint
|
|
22
|
+
}), React.createElement(CharValidation, {
|
|
25
23
|
constraints: constraints
|
|
26
24
|
}));
|
|
27
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-markdown",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.10",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@contentful/f36-components": "^4.0.27",
|
|
39
39
|
"@contentful/f36-icons": "^4.1.0",
|
|
40
40
|
"@contentful/f36-tokens": "^4.0.0",
|
|
41
|
-
"@contentful/field-editor-shared": "^1.4.
|
|
41
|
+
"@contentful/field-editor-shared": "^1.4.9",
|
|
42
42
|
"@types/codemirror": "0.0.109",
|
|
43
43
|
"codemirror": "^5.65.11",
|
|
44
44
|
"constate": "^3.2.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"registry": "https://npm.pkg.github.com/"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "29cf5fb16a8d61f6c23678dad618c61aceec320d"
|
|
65
65
|
}
|