@neo4j-cypher/react-codemirror 1.0.0-next.13 → 1.0.0-next.15

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.
@@ -96,6 +96,8 @@ class CypherEditor extends Component {
96
96
  autocompleteOpen,
97
97
  autocompleteTriggerStrings,
98
98
  autofocus,
99
+ bracketMatching,
100
+ closeBrackets,
99
101
  cursorWide,
100
102
  cypherLanguage,
101
103
  history,
@@ -119,7 +121,9 @@ class CypherEditor extends Component {
119
121
  tooltipAbsolute,
120
122
  parseOnSetValue,
121
123
  value,
122
- onEditorCreated
124
+ onEditorCreated,
125
+ preExtensions,
126
+ postExtensions
123
127
  } = this.props;
124
128
  this.value = value;
125
129
  const {
@@ -130,6 +134,8 @@ class CypherEditor extends Component {
130
134
  autocompleteOpen,
131
135
  autocompleteTriggerStrings,
132
136
  autofocus,
137
+ bracketMatching,
138
+ closeBrackets,
133
139
  cursorWide,
134
140
  cypherLanguage,
135
141
  history,
@@ -152,7 +158,9 @@ class CypherEditor extends Component {
152
158
  theme,
153
159
  tooltipAbsolute,
154
160
  parseOnSetValue,
155
- value
161
+ value,
162
+ preExtensions,
163
+ postExtensions
156
164
  });
157
165
  this.cypherEditor = editor;
158
166
  this.cypherEditor.onValueChanged(this.valueChanged);
@@ -105,6 +105,8 @@ class CypherEditor extends _react.Component {
105
105
  autocompleteOpen,
106
106
  autocompleteTriggerStrings,
107
107
  autofocus,
108
+ bracketMatching,
109
+ closeBrackets,
108
110
  cursorWide,
109
111
  cypherLanguage,
110
112
  history,
@@ -128,7 +130,9 @@ class CypherEditor extends _react.Component {
128
130
  tooltipAbsolute,
129
131
  parseOnSetValue,
130
132
  value,
131
- onEditorCreated
133
+ onEditorCreated,
134
+ preExtensions,
135
+ postExtensions
132
136
  } = this.props;
133
137
  this.value = value;
134
138
  const {
@@ -139,6 +143,8 @@ class CypherEditor extends _react.Component {
139
143
  autocompleteOpen,
140
144
  autocompleteTriggerStrings,
141
145
  autofocus,
146
+ bracketMatching,
147
+ closeBrackets,
142
148
  cursorWide,
143
149
  cypherLanguage,
144
150
  history,
@@ -161,7 +167,9 @@ class CypherEditor extends _react.Component {
161
167
  theme,
162
168
  tooltipAbsolute,
163
169
  parseOnSetValue,
164
- value
170
+ value,
171
+ preExtensions,
172
+ postExtensions
165
173
  });
166
174
  this.cypherEditor = editor;
167
175
  this.cypherEditor.onValueChanged(this.valueChanged);
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "codemirror",
8
8
  "codemirror 6"
9
9
  ],
10
- "version": "1.0.0-next.13",
10
+ "version": "1.0.0-next.15",
11
11
  "author": "Neo4j Inc.",
12
12
  "license": "GPL-3.0",
13
13
  "main": "./lib/react-codemirror.js",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@babel/runtime": "^7.20.6",
41
- "@neo4j-cypher/codemirror": "1.0.0-next.12",
41
+ "@neo4j-cypher/codemirror": "1.0.0-next.14",
42
42
  "codemirror": "^6.0.1"
43
43
  },
44
44
  "peerDependencies": {
@@ -62,11 +62,23 @@ export interface CypherEditorProps {
62
62
  */
63
63
  autofocusProps?: AutofocusProp[];
64
64
  /**
65
- * setting any of these props will trigger the editor to clear its undo/redo history
65
+ * Whether to show matching brackets in the editor view
66
+ *
67
+ * @defaultValue true
68
+ */
69
+ bracketMatching?: boolean;
70
+ /**
71
+ * Setting any of these props will trigger the editor to clear its undo/redo history
66
72
  *
67
73
  * @defaultValue ["cypherLanguage"]
68
74
  */
69
75
  clearHistoryProps?: AutofocusProp[];
76
+ /**
77
+ * Whether to automatically close brackets or wrap selected text with quotes on quote press
78
+ *
79
+ * @defaultValue true
80
+ */
81
+ closeBrackets?: boolean;
70
82
  /**
71
83
  * Whether the wide cursor should be shown
72
84
  *