@neo4j-cypher/react-codemirror 1.0.0-next.13 → 1.0.0-next.14
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.
- package/es/CypherEditor.js +4 -0
- package/lib/CypherEditor.js +4 -0
- package/package.json +2 -2
- package/src/CypherEditor.d.ts +13 -1
package/es/CypherEditor.js
CHANGED
|
@@ -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,
|
|
@@ -130,6 +132,8 @@ class CypherEditor extends Component {
|
|
|
130
132
|
autocompleteOpen,
|
|
131
133
|
autocompleteTriggerStrings,
|
|
132
134
|
autofocus,
|
|
135
|
+
bracketMatching,
|
|
136
|
+
closeBrackets,
|
|
133
137
|
cursorWide,
|
|
134
138
|
cypherLanguage,
|
|
135
139
|
history,
|
package/lib/CypherEditor.js
CHANGED
|
@@ -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,
|
|
@@ -139,6 +141,8 @@ class CypherEditor extends _react.Component {
|
|
|
139
141
|
autocompleteOpen,
|
|
140
142
|
autocompleteTriggerStrings,
|
|
141
143
|
autofocus,
|
|
144
|
+
bracketMatching,
|
|
145
|
+
closeBrackets,
|
|
142
146
|
cursorWide,
|
|
143
147
|
cypherLanguage,
|
|
144
148
|
history,
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"codemirror",
|
|
8
8
|
"codemirror 6"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.0.0-next.
|
|
10
|
+
"version": "1.0.0-next.14",
|
|
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.
|
|
41
|
+
"@neo4j-cypher/codemirror": "1.0.0-next.13",
|
|
42
42
|
"codemirror": "^6.0.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
package/src/CypherEditor.d.ts
CHANGED
|
@@ -62,11 +62,23 @@ export interface CypherEditorProps {
|
|
|
62
62
|
*/
|
|
63
63
|
autofocusProps?: AutofocusProp[];
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
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
|
*
|