@neo4j-cypher/react-codemirror 1.0.2 → 1.0.3

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.
@@ -245,7 +245,8 @@ class CypherEditor extends Component {
245
245
  render() {
246
246
  const {
247
247
  className,
248
- focusedClassName
248
+ focusedClassName,
249
+ style
249
250
  } = this.props;
250
251
  const {
251
252
  focused
@@ -253,6 +254,7 @@ class CypherEditor extends Component {
253
254
  const editorClassName = (className ? className + " " : "") + (focused && focusedClassName ? focusedClassName : "");
254
255
  return /*#__PURE__*/_jsx("div", {
255
256
  className: editorClassName,
257
+ style: style,
256
258
  ref: this.setEditorRef
257
259
  });
258
260
  }
@@ -254,7 +254,8 @@ class CypherEditor extends _react.Component {
254
254
  render() {
255
255
  const {
256
256
  className,
257
- focusedClassName
257
+ focusedClassName,
258
+ style
258
259
  } = this.props;
259
260
  const {
260
261
  focused
@@ -262,6 +263,7 @@ class CypherEditor extends _react.Component {
262
263
  const editorClassName = (className ? className + " " : "") + (focused && focusedClassName ? focusedClassName : "");
263
264
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
264
265
  className: editorClassName,
266
+ style: style,
265
267
  ref: this.setEditorRef
266
268
  });
267
269
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "codemirror",
8
8
  "codemirror 6"
9
9
  ],
10
- "version": "1.0.2",
10
+ "version": "1.0.3",
11
11
  "author": "Neo4j Inc.",
12
12
  "license": "Apache-2.0",
13
13
  "main": "./lib/react-codemirror.js",
@@ -238,7 +238,10 @@ export interface CypherEditorProps {
238
238
  * A css class name to be added to the root editor dom element when it is focused
239
239
  */
240
240
  focusedClassName?: string;
241
-
241
+ /**
242
+ * a style prop to be applied to the root editor dom element
243
+ */
244
+ style?: React.CSSProperties;
242
245
  /**
243
246
  * A listener for when the editor api gets created
244
247
  */