vzcode 0.37.0 → 0.39.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-ZDmwFqlb.css +1 -0
- package/dist/assets/{index--irC_gt8.js → index-an0ZIKQ3.js} +35 -35
- package/dist/index.html +2 -2
- package/package.json +10 -10
- package/src/client/App/index.tsx +4 -4
- package/src/client/App/style.scss +6 -5
- 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/dist/assets/index-ytoSEjV4.css +0 -1
- /package/src/client/{App/VZRight.tsx → VZRight.tsx} +0 -0
package/dist/index.html
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
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
|
|
28
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
27
|
+
<script type="module" crossorigin src="/assets/index-an0ZIKQ3.js"></script>
|
|
28
|
+
<link rel="stylesheet" crossorigin href="/assets/index-ZDmwFqlb.css">
|
|
29
29
|
</head>
|
|
30
30
|
<body>
|
|
31
31
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vzcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Multiplayer code editor system",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/vizhub-core/vzcode#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@codemirror/autocomplete": "^6.11.
|
|
48
|
+
"@codemirror/autocomplete": "^6.11.1",
|
|
49
49
|
"@codemirror/lang-css": "^6.2.1",
|
|
50
|
-
"@codemirror/lang-html": "^6.4.
|
|
50
|
+
"@codemirror/lang-html": "^6.4.7",
|
|
51
51
|
"@codemirror/lang-javascript": "^6.2.1",
|
|
52
52
|
"@codemirror/lang-json": "^6.0.1",
|
|
53
|
-
"@codemirror/lang-markdown": "^6.2.
|
|
54
|
-
"@codemirror/state": "^6.3.
|
|
53
|
+
"@codemirror/lang-markdown": "^6.2.3",
|
|
54
|
+
"@codemirror/state": "^6.3.2",
|
|
55
55
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
56
|
-
"@codemirror/view": "^6.22.
|
|
56
|
+
"@codemirror/view": "^6.22.1",
|
|
57
57
|
"@lezer/highlight": "^1.2.0",
|
|
58
58
|
"@replit/codemirror-interact": "^6.3.0",
|
|
59
59
|
"@teamwork/websocket-json-stream": "^2.0.0",
|
|
@@ -78,23 +78,23 @@
|
|
|
78
78
|
"json0-ot-diff": "^1.1.2",
|
|
79
79
|
"ngrok": "^4.3.3",
|
|
80
80
|
"open": "^9.1.0",
|
|
81
|
-
"openai": "^4.20.
|
|
81
|
+
"openai": "^4.20.1",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-bootstrap": "^2.9.1",
|
|
84
84
|
"react-dom": "^18.2.0",
|
|
85
85
|
"sharedb": "^4.1.1",
|
|
86
86
|
"sharedb-client-browser": "^4.4.0",
|
|
87
|
-
"vizhub-ui": "^3.
|
|
87
|
+
"vizhub-ui": "^3.7.0",
|
|
88
88
|
"ws": "^8.14.2"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@types/react": "^18.2.
|
|
91
|
+
"@types/react": "^18.2.39",
|
|
92
92
|
"@types/react-dom": "^18.2.17",
|
|
93
93
|
"@vitejs/plugin-react": "^4.2.0",
|
|
94
94
|
"prettier": "^3.1.0",
|
|
95
95
|
"sass": "^1.69.5",
|
|
96
96
|
"typescript": "^5.3.2",
|
|
97
|
-
"vite": "^5.0.
|
|
97
|
+
"vite": "^5.0.4",
|
|
98
98
|
"vitest": "^0.34.6"
|
|
99
99
|
}
|
|
100
100
|
}
|
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.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--vzcode-font-family: ui-monospace, SFMono-Regular,
|
|
3
|
-
|
|
2
|
+
// --vzcode-font-family: ui-monospace, SFMono-Regular,
|
|
3
|
+
// 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace !important;
|
|
4
4
|
|
|
5
|
+
--vzcode-font-family: 'Inconsolata', monospace !important;
|
|
5
6
|
--vzcode-font-size: 16px;
|
|
6
7
|
|
|
7
8
|
/* Variable for the background color */
|
|
@@ -40,9 +41,9 @@ body,
|
|
|
40
41
|
|
|
41
42
|
.app {
|
|
42
43
|
background-color: var(--vz-bg-color);
|
|
43
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
// font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
45
|
+
// 'Noto Sans', Helvetica, Arial, sans-serif,
|
|
46
|
+
// 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
46
47
|
display: flex;
|
|
47
48
|
|
|
48
49
|
/* To support Resizer, which is position: absolute */
|
|
@@ -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';
|