@contentful/field-editor-markdown 1.5.9 → 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.
@@ -61,12 +61,10 @@ function _interop_require_wildcard(obj, nodeInterop) {
61
61
  const styles = {
62
62
  root: (0, _emotion.css)({
63
63
  display: 'flex',
64
- justifyContent: 'flex-end',
65
- float: 'right',
64
+ justifyContent: 'space-between',
66
65
  fontSize: _f36tokens.default.fontSizeM,
67
66
  marginTop: _f36tokens.default.spacingXs,
68
- marginLeft: _f36tokens.default.spacingS,
69
- color: _f36tokens.default.gray500
67
+ color: _f36tokens.default.gray700
70
68
  })
71
69
  };
72
70
  function MarkdownConstraints(props) {
@@ -76,7 +74,8 @@ function MarkdownConstraints(props) {
76
74
  className: styles.root
77
75
  }, _react.createElement(_fieldeditorshared.CharCounter, {
78
76
  value: props.value,
79
- checkConstraint: checkConstraint,
77
+ checkConstraint: checkConstraint
78
+ }), _react.createElement(_fieldeditorshared.CharValidation, {
80
79
  constraints: constraints
81
80
  }));
82
81
  }
@@ -1,16 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import tokens from '@contentful/f36-tokens';
3
- import { CharCounter, ConstraintsUtils } from '@contentful/field-editor-shared';
3
+ import { CharCounter, CharValidation, ConstraintsUtils } from '@contentful/field-editor-shared';
4
4
  import { css } from 'emotion';
5
5
  const styles = {
6
6
  root: css({
7
7
  display: 'flex',
8
- justifyContent: 'flex-end',
9
- float: 'right',
8
+ justifyContent: 'space-between',
10
9
  fontSize: tokens.fontSizeM,
11
10
  marginTop: tokens.spacingXs,
12
- marginLeft: tokens.spacingS,
13
- color: tokens.gray500
11
+ color: tokens.gray700
14
12
  })
15
13
  };
16
14
  export function MarkdownConstraints(props) {
@@ -20,7 +18,8 @@ export function MarkdownConstraints(props) {
20
18
  className: styles.root
21
19
  }, React.createElement(CharCounter, {
22
20
  value: props.value,
23
- checkConstraint: checkConstraint,
21
+ checkConstraint: checkConstraint
22
+ }), React.createElement(CharValidation, {
24
23
  constraints: constraints
25
24
  }));
26
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-markdown",
3
- "version": "1.5.9",
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.8",
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": "1d7d630fe6f9576ee4cf35feed8badc8440acbf1"
64
+ "gitHead": "29cf5fb16a8d61f6c23678dad618c61aceec320d"
65
65
  }