vzcode 0.36.0 → 0.38.0
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/dist/assets/{index-jSToomnI.js → index--irC_gt8.js} +1 -1
- package/dist/assets/{worker-yC2XHXrj.js → worker-pw8iYY3X.js} +44 -44
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/src/client/App/index.tsx +4 -4
- package/src/client/{App/VZCodeContext.tsx → VZCodeContext.tsx} +9 -10
- package/src/client/{App/VZLeft.tsx → VZLeft.tsx} +2 -2
- package/src/client/{App/VZMiddle.tsx → VZMiddle.tsx} +6 -6
- package/src/client/VZResizer/index.tsx +1 -1
- package/src/client/index.ts +14 -0
- package/src/client/useTypeScript/worker.ts +6 -1
- package/src/index.ts +8 -28
- /package/src/client/{App/VZRight.tsx → VZRight.tsx} +0 -0
package/dist/index.html
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
href="https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css"
|
|
25
25
|
rel="stylesheet"
|
|
26
26
|
/>
|
|
27
|
-
<script type="module" crossorigin src="/assets/index
|
|
27
|
+
<script type="module" crossorigin src="/assets/index--irC_gt8.js"></script>
|
|
28
28
|
<link rel="stylesheet" crossorigin href="/assets/index-ytoSEjV4.css">
|
|
29
29
|
</head>
|
|
30
30
|
<body>
|
package/package.json
CHANGED
package/src/client/App/index.tsx
CHANGED
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
usePersistUsername,
|
|
14
14
|
} from '../usernameLocalStorage';
|
|
15
15
|
import { useShareDB } from './useShareDB';
|
|
16
|
-
import { VZLeft } from '
|
|
17
|
-
import { VZMiddle } from '
|
|
18
|
-
import { VZRight } from '
|
|
16
|
+
import { VZLeft } from '../VZLeft';
|
|
17
|
+
import { VZMiddle } from '../VZMiddle';
|
|
18
|
+
import { VZRight } from '../VZRight';
|
|
19
19
|
import {
|
|
20
20
|
VZCodeContext,
|
|
21
21
|
VZCodeProvider,
|
|
22
|
-
} from '
|
|
22
|
+
} from '../VZCodeContext';
|
|
23
23
|
import './style.scss';
|
|
24
24
|
|
|
25
25
|
// Instantiate the Prettier worker.
|
|
@@ -4,27 +4,26 @@ import {
|
|
|
4
4
|
ShareDBDoc,
|
|
5
5
|
Username,
|
|
6
6
|
VZCodeContent,
|
|
7
|
-
} from '
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { useTypeScript } from '../useTypeScript';
|
|
7
|
+
} from '../types';
|
|
8
|
+
import { usePrettier } from './usePrettier';
|
|
9
|
+
import { useTypeScript } from './useTypeScript';
|
|
11
10
|
import {
|
|
12
11
|
TabState,
|
|
13
12
|
createInitialState,
|
|
14
13
|
vzReducer,
|
|
15
|
-
} from '
|
|
14
|
+
} from './vzReducer';
|
|
16
15
|
import {
|
|
17
16
|
ThemeLabel,
|
|
18
17
|
defaultTheme,
|
|
19
18
|
useDynamicTheme,
|
|
20
|
-
} from '
|
|
21
|
-
import { useActions } from '
|
|
22
|
-
import { useOpenDirectories } from '
|
|
23
|
-
import { useFileCRUD } from '
|
|
19
|
+
} from './themes';
|
|
20
|
+
import { useActions } from './useActions';
|
|
21
|
+
import { useOpenDirectories } from './useOpenDirectories';
|
|
22
|
+
import { useFileCRUD } from './useFileCRUD';
|
|
24
23
|
import {
|
|
25
24
|
EditorCache,
|
|
26
25
|
useEditorCache,
|
|
27
|
-
} from '
|
|
26
|
+
} from './useEditorCache';
|
|
28
27
|
|
|
29
28
|
// This context centralizes all the "smart" logic
|
|
30
29
|
// to do with the application state. This includes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import { VZSettings } from '
|
|
3
|
-
import { VZSidebar } from '
|
|
2
|
+
import { VZSettings } from './VZSettings';
|
|
3
|
+
import { VZSidebar } from './VZSidebar';
|
|
4
4
|
import { VZCodeContext } from './VZCodeContext';
|
|
5
5
|
|
|
6
6
|
// The middle portion of the VZCode environment, containing:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import { SplitPaneResizeContext } from '
|
|
3
|
-
import { TabList } from '
|
|
4
|
-
import { CodeEditor } from '
|
|
5
|
-
import { CodeErrorOverlay } from '
|
|
6
|
-
import { PresenceNotifications } from '
|
|
7
|
-
import { AIAssistWidget } from '
|
|
2
|
+
import { SplitPaneResizeContext } from './SplitPaneResizeContext';
|
|
3
|
+
import { TabList } from './TabList';
|
|
4
|
+
import { CodeEditor } from './CodeEditor';
|
|
5
|
+
import { CodeErrorOverlay } from './CodeErrorOverlay';
|
|
6
|
+
import { PresenceNotifications } from './PresenceNotifications';
|
|
7
|
+
import { AIAssistWidget } from './AIAssistWidget';
|
|
8
8
|
import { VZCodeContext } from './VZCodeContext';
|
|
9
9
|
|
|
10
10
|
// The middle portion of the VZCode environment, containing:
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
Side,
|
|
12
12
|
SplitPaneResizeContext,
|
|
13
13
|
} from '../SplitPaneResizeContext';
|
|
14
|
+
import { VZCodeContext } from '../VZCodeContext';
|
|
14
15
|
import './styles.scss';
|
|
15
|
-
import { VZCodeContext } from '../App/VZCodeContext';
|
|
16
16
|
|
|
17
17
|
// This is the width of the resizer interaction surface.
|
|
18
18
|
// On this surface, the cursor changes to a resize cursor.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type { ThemeLabel, ThemeOption } from './themes';
|
|
2
|
+
export type { EditorCache } from './useEditorCache';
|
|
3
|
+
|
|
4
|
+
export { VZCodeProvider } from './VZCodeContext';
|
|
5
|
+
export { VZSidebar } from './VZSidebar';
|
|
6
|
+
export { VZSettings } from './VZSettings';
|
|
7
|
+
export { VZResizer } from './VZResizer';
|
|
8
|
+
export { VZLeft } from './VZLeft';
|
|
9
|
+
export { VZMiddle } from './VZMiddle';
|
|
10
|
+
export {
|
|
11
|
+
SplitPaneResizeProvider,
|
|
12
|
+
SplitPaneResizeContext,
|
|
13
|
+
} from './SplitPaneResizeContext';
|
|
14
|
+
export { useSubmitOperation } from './useSubmitOperation';
|
|
@@ -216,6 +216,10 @@ onmessage = async ({ data }) => {
|
|
|
216
216
|
// "Binding element 'data' implicitly has an 'any' type."
|
|
217
217
|
const LINT_ERROR_CODE_ANY = 7031;
|
|
218
218
|
|
|
219
|
+
// This code is for errors like:
|
|
220
|
+
// "Parameter 'selection' implicitly has an 'any' type.""
|
|
221
|
+
const LINT_ERROR_CODE_ANY_PARAM = 7006;
|
|
222
|
+
|
|
219
223
|
// This code is for errors like:
|
|
220
224
|
// "Cannot find module 'd3' or its corresponding type declarations."
|
|
221
225
|
const LINT_ERROR_CODE_IMPORT = 2307;
|
|
@@ -226,7 +230,8 @@ onmessage = async ({ data }) => {
|
|
|
226
230
|
tsErrors = tsErrors.filter(
|
|
227
231
|
(error: { code: number }) =>
|
|
228
232
|
error.code !== LINT_ERROR_CODE_ANY &&
|
|
229
|
-
error.code !== LINT_ERROR_CODE_IMPORT
|
|
233
|
+
error.code !== LINT_ERROR_CODE_IMPORT &&
|
|
234
|
+
error.code !== LINT_ERROR_CODE_ANY_PARAM,
|
|
230
235
|
);
|
|
231
236
|
}
|
|
232
237
|
tsErrors = convertToCodeMirrorDiagnostic(tsErrors);
|
package/src/index.ts
CHANGED
|
@@ -7,38 +7,18 @@ export type {
|
|
|
7
7
|
ShareDBDoc,
|
|
8
8
|
VZCodeContent,
|
|
9
9
|
} from './types';
|
|
10
|
-
export type { EditorCache } from './client/useEditorCache';
|
|
11
10
|
export type {
|
|
12
11
|
ThemeLabel,
|
|
13
12
|
ThemeOption,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export { VZCodeProvider } from './client/App/VZCodeContext';
|
|
17
|
-
export { VZSidebar } from './client/VZSidebar';
|
|
18
|
-
export { VZSettings } from './client/VZSettings';
|
|
19
|
-
export { VZResizer } from './client/VZResizer';
|
|
20
|
-
export { VZLeft } from './client/App/VZLeft';
|
|
21
|
-
export { VZMiddle } from './client/App/VZMiddle';
|
|
13
|
+
EditorCache,
|
|
14
|
+
} from './client';
|
|
22
15
|
|
|
23
16
|
export {
|
|
17
|
+
VZCodeProvider,
|
|
18
|
+
VZResizer,
|
|
19
|
+
VZLeft,
|
|
20
|
+
VZMiddle,
|
|
24
21
|
SplitPaneResizeProvider,
|
|
25
22
|
SplitPaneResizeContext,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export { CodeEditor } from './client/CodeEditor';
|
|
29
|
-
export { usePrettier } from './client/usePrettier';
|
|
30
|
-
export { CodeErrorOverlay } from './client/CodeErrorOverlay';
|
|
31
|
-
export { PresenceNotifications } from './client/PresenceNotifications';
|
|
32
|
-
export { useFileCRUD } from './client/useFileCRUD';
|
|
33
|
-
export { useSubmitOperation } from './client/useSubmitOperation';
|
|
34
|
-
export {
|
|
35
|
-
vzReducer,
|
|
36
|
-
createInitialState,
|
|
37
|
-
} from './client/vzReducer';
|
|
38
|
-
export { useActions } from './client/useActions';
|
|
39
|
-
export { useOpenDirectories } from './client/useOpenDirectories';
|
|
40
|
-
export {
|
|
41
|
-
defaultTheme,
|
|
42
|
-
useDynamicTheme,
|
|
43
|
-
} from './client/themes';
|
|
44
|
-
export { useEditorCache } from './client/useEditorCache';
|
|
23
|
+
useSubmitOperation,
|
|
24
|
+
} from './client';
|
|
File without changes
|