vzcode 1.21.0 → 1.23.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/index.html CHANGED
@@ -20,7 +20,7 @@
20
20
  href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
21
21
  rel="stylesheet"
22
22
  />
23
- <script type="module" crossorigin src="/assets/index-CrtGDLnC.js"></script>
23
+ <script type="module" crossorigin src="/assets/index-kb-h8kAY.js"></script>
24
24
  <link rel="stylesheet" crossorigin href="/assets/index-zzK6rRiK.css">
25
25
  </head>
26
26
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vzcode",
3
- "version": "1.21.0",
3
+ "version": "1.23.0",
4
4
  "description": "Multiplayer code editor system",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -112,7 +112,7 @@
112
112
  "@codemirror/lang-markdown": "^6.3.2",
113
113
  "@codemirror/state": "^6.5.2",
114
114
  "@codemirror/theme-one-dark": "^6.1.2",
115
- "@codemirror/view": "^6.36.2",
115
+ "@codemirror/view": "^6.36.3",
116
116
  "@lezer/highlight": "^1.2.1",
117
117
  "@livekit/components-react": "^2.8.1",
118
118
  "@livekit/components-styles": "^1.1.4",
@@ -142,15 +142,15 @@
142
142
  "express": "^4.21.2",
143
143
  "ignore": "^7.0.3",
144
144
  "json0-ot-diff": "^1.1.2",
145
- "livekit-client": "^2.9.1",
145
+ "livekit-client": "^2.9.2",
146
146
  "livekit-server-sdk": "^2.10.1",
147
147
  "ngrok": "^4.3.3",
148
148
  "open": "^10.1.0",
149
149
  "openai": "^4.85.1",
150
150
  "prettier-plugin-svelte": "^3.3.3",
151
- "react": "^19.0.0",
151
+ "react": "^18",
152
152
  "react-bootstrap": "^2.10.9",
153
- "react-dom": "^19.0.0",
153
+ "react-dom": "^18",
154
154
  "react-router-dom": "^7.1.5",
155
155
  "sharedb": "^5.1.1",
156
156
  "sharedb-client-browser": "^5.1.1",
@@ -159,8 +159,8 @@
159
159
  "ws": "^8.18.0"
160
160
  },
161
161
  "devDependencies": {
162
- "@types/react": "^19.0.10",
163
- "@types/react-dom": "^19.0.4",
162
+ "@types/react": "^18",
163
+ "@types/react-dom": "^18",
164
164
  "@vitejs/plugin-react": "^4.3.4",
165
165
  "concurrently": "^9.1.2",
166
166
  "cross-env": "^7.0.3",
@@ -168,7 +168,7 @@
168
168
  "sass": "^1.85.0",
169
169
  "typescript": "^5.7.3",
170
170
  "vite": "^6.1.0",
171
- "vitest": "^3.0.5"
171
+ "vitest": "^3.0.6"
172
172
  },
173
173
  "optionalDependencies": {
174
174
  "@rollup/rollup-darwin-arm64": "^4.34.8",
@@ -1,14 +1,23 @@
1
1
  import { oneDark } from '@codemirror/theme-one-dark';
2
- import { okaidia } from '@uiw/codemirror-theme-okaidia';
3
- import { abcdef } from '@uiw/codemirror-theme-abcdef';
4
- import { dracula } from '@uiw/codemirror-theme-dracula';
5
- import { eclipse } from '@uiw/codemirror-theme-eclipse';
6
- import { githubDark } from '@uiw/codemirror-theme-github';
7
- import { material } from '@uiw/codemirror-theme-material';
8
- import { nord } from '@uiw/codemirror-theme-nord';
9
- import { xcodeLight } from '@uiw/codemirror-theme-xcode';
2
+ import * as okaidiaModule from '@uiw/codemirror-theme-okaidia';
3
+ import * as abcdefModule from '@uiw/codemirror-theme-abcdef';
4
+ import * as draculaModule from '@uiw/codemirror-theme-dracula';
5
+ import * as eclipseModule from '@uiw/codemirror-theme-eclipse';
6
+ import * as githubDarkModule from '@uiw/codemirror-theme-github';
7
+ import * as materialModule from '@uiw/codemirror-theme-material';
8
+ import * as nordModule from '@uiw/codemirror-theme-nord';
9
+ import * as xcodeLightModule from '@uiw/codemirror-theme-xcode';
10
10
  import { vizhubTheme } from './vizhubTheme';
11
11
 
12
+ const { okaidia } = okaidiaModule;
13
+ const { abcdef } = abcdefModule;
14
+ const { dracula } = draculaModule;
15
+ const { eclipse } = eclipseModule;
16
+ const { githubDark } = githubDarkModule;
17
+ const { material } = materialModule;
18
+ const { nord } = nordModule;
19
+ const { xcodeLight } = xcodeLightModule;
20
+
12
21
  // CodeMirror themes
13
22
  export type ThemeLabel =
14
23
  | 'abcdef'
@@ -3,10 +3,9 @@
3
3
  // Inspired by https://github.com/uiwjs/react-codemirror/blob/master/themes/vscode/src/index.ts
4
4
 
5
5
  import { tags as t } from '@lezer/highlight';
6
- import {
7
- createTheme,
8
- CreateThemeOptions,
9
- } from '@uiw/codemirror-themes';
6
+ import * as codemirrorThemes from '@uiw/codemirror-themes';
7
+
8
+ const { createTheme } = codemirrorThemes;
10
9
 
11
10
  import {
12
11
  // Colors for various things outside the code itself
@@ -37,7 +36,7 @@ import { EditorView } from 'codemirror';
37
36
  // This looks way better as we are pulling in the semi-bold font from Google Fonts
38
37
  const boldWeight = '500';
39
38
 
40
- const defaultSettingsVizhubTheme: CreateThemeOptions['settings'] =
39
+ const defaultSettingsVizhubTheme: codemirrorThemes.CreateThemeOptions['settings'] =
41
40
  {
42
41
  background: backgroundColor,
43
42
  foreground: light,
@@ -51,7 +50,7 @@ const defaultSettingsVizhubTheme: CreateThemeOptions['settings'] =
51
50
  };
52
51
 
53
52
  function vizhubThemeInit(
54
- options?: Partial<CreateThemeOptions>,
53
+ options?: Partial<codemirrorThemes.CreateThemeOptions>,
55
54
  ) {
56
55
  const {
57
56
  theme = 'dark',