vzcode 0.37.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/package.json +1 -1
- package/src/client/App/index.tsx +4 -4
- package/src/client/{App/VZCodeContext.tsx → VZCodeContext.tsx} +9 -9
- 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/index.ts +8 -28
- /package/src/client/{App/VZRight.tsx → VZRight.tsx} +0 -0
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,26 +4,26 @@ import {
|
|
|
4
4
|
ShareDBDoc,
|
|
5
5
|
Username,
|
|
6
6
|
VZCodeContent,
|
|
7
|
-
} from '
|
|
8
|
-
import { usePrettier } from '
|
|
9
|
-
import { useTypeScript } from '
|
|
7
|
+
} from '../types';
|
|
8
|
+
import { usePrettier } from './usePrettier';
|
|
9
|
+
import { useTypeScript } from './useTypeScript';
|
|
10
10
|
import {
|
|
11
11
|
TabState,
|
|
12
12
|
createInitialState,
|
|
13
13
|
vzReducer,
|
|
14
|
-
} from '
|
|
14
|
+
} from './vzReducer';
|
|
15
15
|
import {
|
|
16
16
|
ThemeLabel,
|
|
17
17
|
defaultTheme,
|
|
18
18
|
useDynamicTheme,
|
|
19
|
-
} from '
|
|
20
|
-
import { useActions } from '
|
|
21
|
-
import { useOpenDirectories } from '
|
|
22
|
-
import { useFileCRUD } from '
|
|
19
|
+
} from './themes';
|
|
20
|
+
import { useActions } from './useActions';
|
|
21
|
+
import { useOpenDirectories } from './useOpenDirectories';
|
|
22
|
+
import { useFileCRUD } from './useFileCRUD';
|
|
23
23
|
import {
|
|
24
24
|
EditorCache,
|
|
25
25
|
useEditorCache,
|
|
26
|
-
} from '
|
|
26
|
+
} from './useEditorCache';
|
|
27
27
|
|
|
28
28
|
// This context centralizes all the "smart" logic
|
|
29
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';
|
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
|