@contentful/field-editor-markdown 1.5.8 → 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,9 +61,11 @@ 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,
68
+ marginLeft: _f36tokens.default.spacingS,
67
69
  color: _f36tokens.default.gray500
68
70
  })
69
71
  };
@@ -72,10 +74,7 @@ function MarkdownConstraints(props) {
72
74
  const checkConstraint = _fieldeditorshared.ConstraintsUtils.makeChecker(constraints);
73
75
  return _react.createElement("div", {
74
76
  className: styles.root
75
- }, _react.createElement(_fieldeditorshared.CharValidation, {
76
- constraints: constraints,
77
- enabled: true
78
- }), _react.createElement(_fieldeditorshared.CharCounter, {
77
+ }, _react.createElement(_fieldeditorshared.CharCounter, {
79
78
  value: props.value,
80
79
  checkConstraint: checkConstraint,
81
80
  constraints: constraints
@@ -1,13 +1,15 @@
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,
12
+ marginLeft: tokens.spacingS,
11
13
  color: tokens.gray500
12
14
  })
13
15
  };
@@ -16,10 +18,7 @@ export function MarkdownConstraints(props) {
16
18
  const checkConstraint = ConstraintsUtils.makeChecker(constraints);
17
19
  return React.createElement("div", {
18
20
  className: styles.root
19
- }, React.createElement(CharValidation, {
20
- constraints: constraints,
21
- enabled: true
22
- }), React.createElement(CharCounter, {
21
+ }, React.createElement(CharCounter, {
23
22
  value: props.value,
24
23
  checkConstraint: checkConstraint,
25
24
  constraints: constraints
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-markdown",
3
- "version": "1.5.8",
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.7",
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": "129510a558258ae7eb0c53e7845868048a465ca7"
64
+ "gitHead": "1d7d630fe6f9576ee4cf35feed8badc8440acbf1"
65
65
  }