@contentful/field-editor-markdown 1.5.7 → 1.5.9

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