@contentful/field-editor-markdown 1.5.6 → 1.5.8

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.gray700
67
+ color: _f36tokens.default.gray500
68
68
  })
69
69
  };
70
70
  function MarkdownConstraints(props) {
@@ -72,10 +72,12 @@ 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.CharCounter, {
75
+ }, _react.createElement(_fieldeditorshared.CharValidation, {
76
+ constraints: constraints,
77
+ enabled: true
78
+ }), _react.createElement(_fieldeditorshared.CharCounter, {
76
79
  value: props.value,
77
- checkConstraint: checkConstraint
78
- }), _react.createElement(_fieldeditorshared.CharValidation, {
80
+ checkConstraint: checkConstraint,
79
81
  constraints: constraints
80
82
  }));
81
83
  }
@@ -8,7 +8,7 @@ const styles = {
8
8
  justifyContent: 'space-between',
9
9
  fontSize: tokens.fontSizeM,
10
10
  marginTop: tokens.spacingXs,
11
- color: tokens.gray700
11
+ color: tokens.gray500
12
12
  })
13
13
  };
14
14
  export function MarkdownConstraints(props) {
@@ -16,10 +16,12 @@ 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(CharCounter, {
19
+ }, React.createElement(CharValidation, {
20
+ constraints: constraints,
21
+ enabled: true
22
+ }), React.createElement(CharCounter, {
20
23
  value: props.value,
21
- checkConstraint: checkConstraint
22
- }), React.createElement(CharValidation, {
24
+ checkConstraint: checkConstraint,
23
25
  constraints: constraints
24
26
  }));
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-markdown",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
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.5",
41
+ "@contentful/field-editor-shared": "^1.4.7",
42
42
  "@types/codemirror": "0.0.109",
43
43
  "codemirror": "^5.65.11",
44
44
  "constate": "^3.2.0",
@@ -52,7 +52,7 @@
52
52
  "devDependencies": {
53
53
  "@babel/core": "^7.5.5",
54
54
  "@contentful/app-sdk": "^4.17.1",
55
- "@contentful/field-editor-test-utils": "^1.4.6"
55
+ "@contentful/field-editor-test-utils": "^1.4.7"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@contentful/app-sdk": "^4.17.1",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "registry": "https://npm.pkg.github.com/"
63
63
  },
64
- "gitHead": "142d2039f023bf4ced956aae1dd08b27c35fdbaa"
64
+ "gitHead": "129510a558258ae7eb0c53e7845868048a465ca7"
65
65
  }