@neo4j-cypher/react-codemirror 1.0.0-next.1 → 1.0.0-next.11

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,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
  });
@@ -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 UnstyledCypherEditor } from "./CypherEditor";
22
- export { default as CypherEditor } from "./CypherEditorStyled";
21
+ export { default as CypherEditor } from "./CypherEditor";
@@ -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
  });
@@ -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.1",
10
+ "version": "1.0.0-next.11",
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.1",
41
+ "@neo4j-cypher/codemirror": "1.0.0-next.10",
42
42
  "codemirror": "^6.0.1"
43
43
  },
44
44
  "peerDependencies": {
@@ -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 true
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 type {
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";
@@ -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
- > {}