vzcode 0.62.0 → 0.63.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-rnGm5_OY.css → index-7hPfA_d2.css} +1 -1
- package/dist/assets/{index-QfTeKC1O.js → index-cVB2xPdw.js} +2 -2
- package/dist/index.html +2 -2
- package/package.json +3 -3
- package/src/client/CodeErrorOverlay/index.tsx +9 -3
- package/src/client/CodeErrorOverlay/style.scss +9 -7
- package/src/client/VZSidebar/Item.tsx +1 -0
- package/src/client/VZSidebar/styles.scss +6 -0
package/dist/index.html
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
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-
|
|
24
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
23
|
+
<script type="module" crossorigin src="/assets/index-cVB2xPdw.js"></script>
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/assets/index-7hPfA_d2.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body>
|
|
27
27
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vzcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "Multiplayer code editor system",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"json0-ot-diff": "^1.1.2",
|
|
101
101
|
"ngrok": "^4.3.3",
|
|
102
102
|
"open": "^10.0.3",
|
|
103
|
-
"openai": "^4.26.
|
|
103
|
+
"openai": "^4.26.1",
|
|
104
104
|
"prettier-plugin-svelte": "^3.1.2",
|
|
105
105
|
"react": "^18.2.0",
|
|
106
106
|
"react-bootstrap": "^2.10.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"ws": "^8.16.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@types/react": "^18.2.
|
|
115
|
+
"@types/react": "^18.2.55",
|
|
116
116
|
"@types/react-dom": "^18.2.18",
|
|
117
117
|
"@vitejs/plugin-react": "^4.2.1",
|
|
118
118
|
"concurrently": "^8.2.2",
|
|
@@ -12,6 +12,10 @@ export const CodeErrorOverlay = ({
|
|
|
12
12
|
errorMessage: string | null;
|
|
13
13
|
content: VZCodeContent;
|
|
14
14
|
}) => {
|
|
15
|
+
// console.log(
|
|
16
|
+
// 'errorMessage in CodeErrorOverlay: ',
|
|
17
|
+
// errorMessage,
|
|
18
|
+
// );
|
|
15
19
|
const [isOverlayVisible, setIsOverlayVisible] =
|
|
16
20
|
useState(true);
|
|
17
21
|
|
|
@@ -23,9 +27,11 @@ export const CodeErrorOverlay = ({
|
|
|
23
27
|
}, [errorMessage]);
|
|
24
28
|
|
|
25
29
|
// If the content changes, set the overlay to be not visible.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
// Removed because it was interfering in the case of
|
|
31
|
+
// server-side build errors on page load.
|
|
32
|
+
// useEffect(() => {
|
|
33
|
+
// setIsOverlayVisible(false);
|
|
34
|
+
// }, [content]);
|
|
29
35
|
|
|
30
36
|
// Set the visibility state to false when the button is clicked
|
|
31
37
|
const handleCloseClick = useCallback(() => {
|
|
@@ -7,25 +7,27 @@
|
|
|
7
7
|
bottom: 0;
|
|
8
8
|
left: 0;
|
|
9
9
|
right: 0;
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding
|
|
10
|
+
margin: 0 12px;
|
|
11
|
+
/* Right padding is so that the wrapped text
|
|
12
|
+
doesn't overlap with the .error-dismiss-button */
|
|
13
|
+
padding: 14px 38px 14px 16px;
|
|
12
14
|
border-top-left-radius: 4px;
|
|
13
15
|
border-top-right-radius: 4px;
|
|
14
16
|
|
|
15
|
-
/* Add a box shadow for a subtle effect */
|
|
16
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
|
17
|
-
|
|
18
17
|
/* Style the monospace font */
|
|
19
18
|
pre {
|
|
20
19
|
font-family: var(--vzcode-font-family);
|
|
21
20
|
font-size: var(--vzcode-font-size);
|
|
22
21
|
margin: 0;
|
|
22
|
+
|
|
23
|
+
/* Wrap long lines */
|
|
24
|
+
white-space: pre-wrap;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
/* Customize the dismiss button style */
|
|
26
28
|
.error-dismiss-button {
|
|
27
29
|
position: absolute;
|
|
28
|
-
top:
|
|
29
|
-
right:
|
|
30
|
+
top: 8px;
|
|
31
|
+
right: 8px;
|
|
30
32
|
}
|
|
31
33
|
}
|