@deephaven/mocks 0.16.1-beta.1 → 0.16.1-beta.2
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/package.json +2 -2
- package/src/index.js +0 -1
- package/src/monaco-editor.js +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/mocks",
|
|
3
|
-
"version": "0.16.1-beta.
|
|
3
|
+
"version": "0.16.1-beta.2+8c9fe7c",
|
|
4
4
|
"description": "Deephaven Mocks for common libraries",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "8c9fe7c421c3b53b9af6820a3d74f0574426c15d"
|
|
21
21
|
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as GoldenLayout } from './golden-layout';
|
|
2
2
|
export { default as LodashThrottle } from './lodash.throttle';
|
|
3
3
|
export { default as LodashDebounce } from './lodash.debounce';
|
|
4
|
-
export { default as MonacoEditor } from './monaco-editor';
|
|
5
4
|
export { default as PouchDbBrowser } from './pouchdb-browser';
|
|
6
5
|
export { default as ReactVirtualizedAutoSizer } from './react-virtualized-auto-sizer';
|
package/src/monaco-editor.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock needed because for some reason jest gets and unable to resolve import with monaco.
|
|
3
|
-
* If the issue gets resolved, this mock shouldn't be needed:
|
|
4
|
-
* https://github.com/facebook/create-react-app/issues/5881
|
|
5
|
-
*/
|
|
6
|
-
const editor = {
|
|
7
|
-
create: () => ({
|
|
8
|
-
addAction: () => {},
|
|
9
|
-
addCommand: () => {},
|
|
10
|
-
focus: () => {},
|
|
11
|
-
layout: () => {},
|
|
12
|
-
dispose: () => {},
|
|
13
|
-
getModel: () => ({
|
|
14
|
-
getLineCount: () => 0,
|
|
15
|
-
getModeId: () => 'modeId',
|
|
16
|
-
getValue: () => '',
|
|
17
|
-
}),
|
|
18
|
-
onDidChangeModelContent: () => () => {},
|
|
19
|
-
onKeyDown: () => {},
|
|
20
|
-
}),
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const languages = {
|
|
24
|
-
registerCompletionItemProvider: () => {},
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const KeyMod = {
|
|
28
|
-
CtrlCmd: 'C',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const KeyCode = {
|
|
32
|
-
KEY_F: 'F',
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const monaco = {
|
|
36
|
-
editor,
|
|
37
|
-
languages,
|
|
38
|
-
KeyMod,
|
|
39
|
-
KeyCode,
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
module.exports = monaco;
|