vzcode 0.52.0 → 0.53.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
@@ -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-zjaIucrc.js"></script>
27
+ <script type="module" crossorigin src="/assets/index-wDsdDSEj.js"></script>
28
28
  <link rel="stylesheet" crossorigin href="/assets/index-7PozlhVS.css">
29
29
  </head>
30
30
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vzcode",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Multiplayer code editor system",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -75,6 +75,7 @@
75
75
  "@lezer/highlight": "^1.2.0",
76
76
  "@replit/codemirror-indentation-markers": "^6.5.0",
77
77
  "@replit/codemirror-interact": "^6.3.0",
78
+ "@replit/codemirror-lang-svelte": "^6.0.0",
78
79
  "@replit/codemirror-vscode-keymap": "^6.0.2",
79
80
  "@teamwork/websocket-json-stream": "^2.0.0",
80
81
  "@typescript/vfs": "^1.5.0",
@@ -93,17 +94,17 @@
93
94
  "color-hash": "^2.0.2",
94
95
  "d3-array": "^3.2.4",
95
96
  "diff-match-patch": "^1.0.5",
96
- "dotenv": "^16.3.1",
97
+ "dotenv": "^16.3.2",
97
98
  "express": "^4.18.2",
98
99
  "ignore": "^5.3.0",
99
100
  "json0-ot-diff": "^1.1.2",
100
101
  "ngrok": "^4.3.3",
101
102
  "open": "^10.0.3",
102
- "openai": "^4.24.7",
103
+ "openai": "^4.25.0",
103
104
  "react": "^18.2.0",
104
105
  "react-bootstrap": "^2.10.0",
105
106
  "react-dom": "^18.2.0",
106
- "react-router-dom": "^6.21.2",
107
+ "react-router-dom": "^6.21.3",
107
108
  "sharedb": "^4.1.2",
108
109
  "sharedb-client-browser": "^4.4.0",
109
110
  "vizhub-ui": "^3.18.0",
@@ -116,7 +117,7 @@
116
117
  "prettier": "^3.2.4",
117
118
  "sass": "^1.70.0",
118
119
  "typescript": "^5.3.3",
119
- "vite": "^5.0.11",
120
+ "vite": "^5.0.12",
120
121
  "vitest": "^1.2.1"
121
122
  }
122
123
  }
@@ -4,6 +4,7 @@ import {
4
4
  EditorState,
5
5
  } from '@codemirror/state';
6
6
  import { javascript } from '@codemirror/lang-javascript';
7
+ import { svelte } from '@replit/codemirror-lang-svelte';
7
8
  import { json } from '@codemirror/lang-json';
8
9
  import { markdown } from '@codemirror/lang-markdown';
9
10
  import { html } from '@codemirror/lang-html';
@@ -60,6 +61,7 @@ const languageExtensions = {
60
61
  html,
61
62
  css,
62
63
  md: markdown,
64
+ svelte,
63
65
  };
64
66
 
65
67
  // Gets a value at a path in an object.
@@ -195,9 +197,9 @@ export const getOrCreateEditor = ({
195
197
  // TODO manually test this case by creating a file
196
198
  // that has no extension, opening it up,
197
199
  // and then adding an extension.
198
- console.warn(
199
- `No language extension for file extension: ${fileExtension}`,
200
- );
200
+ // console.warn(
201
+ // `No language extension for file extension: ${fileExtension}`,
202
+ // );
201
203
  // We still need to push the compartment,
202
204
  // otherwise the compartment won't work when
203
205
  // a file extension _is_ added later on.