@neo4j-cypher/react-codemirror 1.0.0-next.1 → 1.0.0-next.10
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/es/react-codemirror.js +1 -2
- package/lib/CypherEditor.js +4 -0
- package/lib/react-codemirror.js +1 -8
- package/package.json +2 -2
- package/src/CypherEditor.d.ts +12 -0
- package/src/react-codemirror.d.ts +1 -5
- package/es/CypherEditorStyled.js +0 -22
- package/lib/CypherEditorStyled.js +0 -14
- package/src/CypherEditorStyled.d.ts +0 -10
package/es/CypherEditor.js
CHANGED
|
@@ -96,7 +96,9 @@ class CypherEditor extends Component {
|
|
|
96
96
|
readOnly,
|
|
97
97
|
readOnlyCursor,
|
|
98
98
|
schema,
|
|
99
|
+
tabKey,
|
|
99
100
|
theme,
|
|
101
|
+
tooltipAbsolute,
|
|
100
102
|
parseOnSetValue,
|
|
101
103
|
value,
|
|
102
104
|
onEditorCreated
|
|
@@ -120,7 +122,9 @@ class CypherEditor extends Component {
|
|
|
120
122
|
readOnly,
|
|
121
123
|
readOnlyCursor,
|
|
122
124
|
schema,
|
|
125
|
+
tabKey,
|
|
123
126
|
theme,
|
|
127
|
+
tooltipAbsolute,
|
|
124
128
|
parseOnSetValue,
|
|
125
129
|
value
|
|
126
130
|
});
|
package/es/react-codemirror.js
CHANGED
|
@@ -18,5 +18,4 @@
|
|
|
18
18
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as CypherEditor } from "./CypherEditorStyled";
|
|
21
|
+
export { default as CypherEditor } from "./CypherEditor";
|
package/lib/CypherEditor.js
CHANGED
|
@@ -105,7 +105,9 @@ class CypherEditor extends _react.Component {
|
|
|
105
105
|
readOnly,
|
|
106
106
|
readOnlyCursor,
|
|
107
107
|
schema,
|
|
108
|
+
tabKey,
|
|
108
109
|
theme,
|
|
110
|
+
tooltipAbsolute,
|
|
109
111
|
parseOnSetValue,
|
|
110
112
|
value,
|
|
111
113
|
onEditorCreated
|
|
@@ -129,7 +131,9 @@ class CypherEditor extends _react.Component {
|
|
|
129
131
|
readOnly,
|
|
130
132
|
readOnlyCursor,
|
|
131
133
|
schema,
|
|
134
|
+
tabKey,
|
|
132
135
|
theme,
|
|
136
|
+
tooltipAbsolute,
|
|
133
137
|
parseOnSetValue,
|
|
134
138
|
value
|
|
135
139
|
});
|
package/lib/react-codemirror.js
CHANGED
|
@@ -5,16 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
Object.defineProperty(exports, "CypherEditor", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _CypherEditorStyled.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "UnstyledCypherEditor", {
|
|
14
8
|
enumerable: true,
|
|
15
9
|
get: function () {
|
|
16
10
|
return _CypherEditor.default;
|
|
17
11
|
}
|
|
18
12
|
});
|
|
19
|
-
var _CypherEditor = _interopRequireDefault(require("./CypherEditor"));
|
|
20
|
-
var _CypherEditorStyled = _interopRequireDefault(require("./CypherEditorStyled"));
|
|
13
|
+
var _CypherEditor = _interopRequireDefault(require("./CypherEditor"));
|
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.10",
|
|
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.9",
|
|
42
42
|
"codemirror": "^6.0.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
package/src/CypherEditor.d.ts
CHANGED
|
@@ -120,12 +120,24 @@ export interface CypherEditorProps {
|
|
|
120
120
|
* The schema making the editor aware of things such as node labels & relationship types & procedures in the current graph database
|
|
121
121
|
*/
|
|
122
122
|
schema?: EditorSupportSchema;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the tab key is enabled
|
|
125
|
+
*
|
|
126
|
+
* @defaultValue true
|
|
127
|
+
*/
|
|
128
|
+
tabKey?: boolean;
|
|
123
129
|
/**
|
|
124
130
|
* Whether to use the light or dark theme for the editor
|
|
125
131
|
*
|
|
126
132
|
* @defaultValue "light"
|
|
127
133
|
*/
|
|
128
134
|
theme?: Theme;
|
|
135
|
+
/**
|
|
136
|
+
* Whether or not the tooltips use simple absolute position styling (vs trying to stay within bounds)
|
|
137
|
+
*
|
|
138
|
+
* @defaultValue false
|
|
139
|
+
*/
|
|
140
|
+
tooltipAbsolute?: boolean;
|
|
129
141
|
/**
|
|
130
142
|
* The editor text value
|
|
131
143
|
*
|
|
@@ -15,8 +15,4 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @packageDocumentation
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
19
|
-
default as UnstyledCypherEditor,
|
|
20
|
-
CypherEditorProps
|
|
21
|
-
} from "./CypherEditor";
|
|
22
|
-
export type { default as CypherEditor } from "./CypherEditorStyled";
|
|
18
|
+
export { default as CypherEditor, CypherEditorProps } from "./CypherEditor";
|
package/es/CypherEditorStyled.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) "Neo4j"
|
|
3
|
-
* Neo4j Sweden AB [http://neo4j.com]
|
|
4
|
-
*
|
|
5
|
-
* This file is part of Neo4j.
|
|
6
|
-
*
|
|
7
|
-
* Neo4j is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
-
* GNU General Public License for more details.
|
|
16
|
-
*
|
|
17
|
-
* You should have received a copy of the GNU General Public License
|
|
18
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
import "@neo4j-cypher/codemirror/css/cypher-codemirror.css";
|
|
22
|
-
export { default } from "./CypherEditor";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "default", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _CypherEditor.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
require("@neo4j-cypher/codemirror/css/cypher-codemirror.css");
|
|
14
|
-
var _CypherEditor = _interopRequireDefault(require("./CypherEditor"));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CypherEditorProps } from "./CypherEditor";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Cypher Editor React Component (with css styles included)
|
|
6
|
-
*/
|
|
7
|
-
export default class CypherEditorStyled extends React.Component<
|
|
8
|
-
CypherEditorProps,
|
|
9
|
-
any
|
|
10
|
-
> {}
|