vzcode 2.36.0 → 3.1.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.
Files changed (46) hide show
  1. package/README.md +30 -0
  2. package/dist/assets/index-5qf102c2.css +1 -0
  3. package/dist/assets/index-dSJDl5x9.js +356 -0
  4. package/dist/index.html +2 -2
  5. package/package.json +1 -4
  6. package/src/client/AIAssist/AIAssistWidget/index.tsx +2 -2
  7. package/src/client/AIAssist/AIAssistWidget/style.scss +8 -8
  8. package/src/client/AIAssist/Spinner.jsx +2 -2
  9. package/src/client/App/index.tsx +7 -0
  10. package/src/client/App/initialSidebarView.ts +14 -0
  11. package/src/client/App/style.scss +6 -9
  12. package/src/client/CodeEditor/getOrCreateEditor.tsx +1 -1
  13. package/src/client/CodeEditor/style.scss +13 -13
  14. package/src/client/CodeErrorOverlay/index.tsx +1 -1
  15. package/src/client/CodeErrorOverlay/style.scss +3 -3
  16. package/src/client/ImageViewer/style.scss +6 -6
  17. package/src/client/RunCodeWidget/index.tsx +3 -3
  18. package/src/client/RunCodeWidget/style.scss +2 -2
  19. package/src/client/TabList/Tab.tsx +2 -2
  20. package/src/client/TabList/style.scss +6 -5
  21. package/src/client/VZKeyboardShortcutsDoc.tsx +4 -4
  22. package/src/client/VZSettings.tsx +27 -19
  23. package/src/client/VZSidebar/CreateDirModal.tsx +3 -3
  24. package/src/client/VZSidebar/CreateFileModal.tsx +3 -3
  25. package/src/client/VZSidebar/DeleteConfirmationModal.tsx +2 -2
  26. package/src/client/VZSidebar/Item.tsx +4 -4
  27. package/src/client/VZSidebar/Search.tsx +2 -2
  28. package/src/client/VZSidebar/VoiceChatModal.tsx +1 -1
  29. package/src/client/VZSidebar/index.tsx +24 -21
  30. package/src/client/VZSidebar/styles.scss +134 -125
  31. package/src/client/main.jsx +1 -0
  32. package/src/client/standalone.scss +6 -0
  33. package/src/client/ui.scss +324 -0
  34. package/src/client/ui.tsx +323 -0
  35. package/src/llm-streaming-ui/README.md +2 -2
  36. package/src/llm-streaming-ui/components/ChatInput.tsx +26 -49
  37. package/src/llm-streaming-ui/components/DiffView.scss +1 -1
  38. package/src/llm-streaming-ui/components/Spinner.scss +3 -3
  39. package/src/llm-streaming-ui/components/Spinner.tsx +2 -2
  40. package/src/llm-streaming-ui/components/styles.scss +127 -75
  41. package/dist/assets/bootstrap-icons-BeopsB42.woff +0 -0
  42. package/dist/assets/bootstrap-icons-mSm7cUeB.woff2 +0 -0
  43. package/dist/assets/index-Cj-ERpBu.css +0 -1
  44. package/dist/assets/index-DD7vzp4U.js +0 -364
  45. package/src/client/bootstrap.ts +0 -26
  46. package/src/llm-streaming-ui/components/bootstrap.ts +0 -16
@@ -7,7 +7,7 @@ import {
7
7
  } from 'react';
8
8
  import { ItemId } from '../../types';
9
9
  import { EditSVG, TrashSVG } from '../Icons';
10
- import { Tooltip, OverlayTrigger } from '../bootstrap';
10
+ import { Tooltip, OverlayTrigger } from '../ui';
11
11
  import { VZCodeContext } from '../VZCodeContext';
12
12
  import { FileTypeIcon } from './FileTypeIcon';
13
13
 
@@ -152,7 +152,7 @@ export const Item = ({
152
152
 
153
153
  return (
154
154
  <div
155
- className={`file-or-directory user-select-none ${
155
+ className={`file-or-directory ${
156
156
  isActive ? 'active-file' : ''
157
157
  }`}
158
158
  onClick={isRenaming ? null : handleClick}
@@ -199,7 +199,7 @@ export const Item = ({
199
199
  >
200
200
  <i
201
201
  onClick={handleRenameIconClick}
202
- className="icon-button icon-button-dark"
202
+ className="vz-icon-button"
203
203
  >
204
204
  <EditSVG />
205
205
  </i>
@@ -215,7 +215,7 @@ export const Item = ({
215
215
  >
216
216
  <i
217
217
  onClick={handleModalOpen}
218
- className="icon-button icon-button-dark"
218
+ className="vz-icon-button"
219
219
  >
220
220
  <TrashSVG />
221
221
  </i>
@@ -5,7 +5,7 @@ import {
5
5
  useState,
6
6
  useCallback,
7
7
  } from 'react';
8
- import { Form } from '../bootstrap';
8
+ import { Form } from '../ui';
9
9
  import { VZCodeContext } from '../VZCodeContext';
10
10
  import { VizFileId } from '@vizhub/viz-types';
11
11
  import { SearchFile } from '../../types';
@@ -311,7 +311,7 @@ export const Search = () => {
311
311
  return (
312
312
  <div>
313
313
  <Form.Group
314
- className="sidebar-search-form mb-3"
314
+ className="sidebar-search-form"
315
315
  controlId="searchName"
316
316
  >
317
317
  <Form.Control
@@ -5,7 +5,7 @@ import {
5
5
  useRoomContext,
6
6
  } from '@livekit/components-react';
7
7
  import { useContext, useState } from 'react';
8
- import { Button, Form, Modal } from 'react-bootstrap';
8
+ import { Button, Form, Modal } from '../ui';
9
9
  import { v4 } from 'uuid';
10
10
  import { VZCodeContext } from '../VZCodeContext';
11
11
 
@@ -14,7 +14,13 @@ import {
14
14
  PresenceIndicator,
15
15
  } from '../../types';
16
16
  import { VizFileId } from '@vizhub/viz-types';
17
- import { OverlayTrigger, Tooltip } from '../bootstrap';
17
+ import {
18
+ Download,
19
+ Copy,
20
+ ClipboardPlus,
21
+ Trash2,
22
+ } from 'lucide-react';
23
+ import { OverlayTrigger, Tooltip } from '../ui';
18
24
  import { getFileTree } from '../getFileTree';
19
25
  import {
20
26
  BugSVG,
@@ -350,7 +356,7 @@ export const VZSidebar = ({
350
356
  >
351
357
  <i
352
358
  id="ai-chat-icon"
353
- className="icon-button icon-button-dark"
359
+ className="vz-icon-button"
354
360
  onClick={() =>
355
361
  handleAIChatButtonClick({
356
362
  aiChatButtonEvent,
@@ -378,7 +384,7 @@ export const VZSidebar = ({
378
384
  >
379
385
  <i
380
386
  id="files-icon"
381
- className="icon-button icon-button-dark"
387
+ className="vz-icon-button"
382
388
  onClick={() => {
383
389
  setIsSearchOpen(false);
384
390
  setIsAIChatOpen(false);
@@ -400,7 +406,7 @@ export const VZSidebar = ({
400
406
  >
401
407
  <i
402
408
  id="search-icon"
403
- className="icon-button icon-button-dark"
409
+ className="vz-icon-button"
404
410
  onClick={() => {
405
411
  setIsSearchOpen(true);
406
412
  setIsAIChatOpen(false);
@@ -422,7 +428,7 @@ export const VZSidebar = ({
422
428
  >
423
429
  <i
424
430
  id="visual-editor-icon"
425
- className="icon-button icon-button-dark"
431
+ className="vz-icon-button"
426
432
  onClick={() => {
427
433
  setIsVisualEditorOpen(true);
428
434
  setIsAIChatOpen(false);
@@ -444,7 +450,7 @@ export const VZSidebar = ({
444
450
  >
445
451
  <i
446
452
  id="shortcut-icon"
447
- className="icon-button icon-button-dark"
453
+ className="vz-icon-button"
448
454
  onClick={handleQuestionMarkClick}
449
455
  >
450
456
  <QuestionMarkSVG />
@@ -464,10 +470,7 @@ export const VZSidebar = ({
464
470
  target="_blank"
465
471
  rel="noopener noreferrer"
466
472
  >
467
- <i
468
- id="bug-icon"
469
- className="icon-button icon-button-dark"
470
- >
473
+ <i id="bug-icon" className="vz-icon-button">
471
474
  <BugSVG />
472
475
  </i>
473
476
  </a>
@@ -483,7 +486,7 @@ export const VZSidebar = ({
483
486
  >
484
487
  <i
485
488
  id="settings-icon"
486
- className="icon-button icon-button-dark"
489
+ className="vz-icon-button"
487
490
  onClick={handleSettingsClick}
488
491
  >
489
492
  <GearSVG />
@@ -500,7 +503,7 @@ export const VZSidebar = ({
500
503
  >
501
504
  <i
502
505
  id="new-file-icon"
503
- className="icon-button icon-button-dark"
506
+ className="vz-icon-button"
504
507
  onClick={handleOpenCreateFileModal}
505
508
  >
506
509
  <NewSVG />
@@ -518,7 +521,7 @@ export const VZSidebar = ({
518
521
  >
519
522
  <i
520
523
  id="new-directory-icon"
521
- className="icon-button icon-button-dark"
524
+ className="vz-icon-button"
522
525
  onClick={handleOpenCreateDirModal}
523
526
  >
524
527
  <FileSVG />
@@ -538,9 +541,9 @@ export const VZSidebar = ({
538
541
  >
539
542
  <i
540
543
  id="auto-focus-icon"
541
- className={`icon-button icon-button-dark${
544
+ className={`vz-icon-button${
542
545
  enableAutoFollow
543
- ? ' vh-color-success-01'
546
+ ? ' vz-color-success-01'
544
547
  : ''
545
548
  }`}
546
549
  onClick={toggleAutoFollow}
@@ -561,7 +564,7 @@ export const VZSidebar = ({
561
564
  >
562
565
  <i
563
566
  id="mic-icon"
564
- className="icon-button icon-button-dark"
567
+ className="vz-icon-button"
565
568
  onClick={() => {
566
569
  setVoiceChatModalOpen(true);
567
570
  }}
@@ -646,7 +649,7 @@ export const VZSidebar = ({
646
649
  onClick={handleExportToZip}
647
650
  title="Export files to ZIP"
648
651
  >
649
- <i className="bi bi-download"></i>
652
+ <Download size={14} aria-hidden="true" />
650
653
  {exportButtonText}
651
654
  </button>
652
655
  )}
@@ -656,7 +659,7 @@ export const VZSidebar = ({
656
659
  onClick={handleCopyForAI}
657
660
  title="Copy files formatted for AI"
658
661
  >
659
- <i className="bi bi-clipboard"></i>
662
+ <Copy size={14} aria-hidden="true" />
660
663
  {copyButtonText}
661
664
  </button>
662
665
  )}
@@ -666,7 +669,7 @@ export const VZSidebar = ({
666
669
  onClick={handlePasteForAI}
667
670
  title="Paste files from AI"
668
671
  >
669
- <i className="bi bi-clipboard-plus"></i>
672
+ <ClipboardPlus size={14} aria-hidden="true" />
670
673
  {pasteButtonText}
671
674
  </button>
672
675
 
@@ -676,8 +679,8 @@ export const VZSidebar = ({
676
679
  onClick={handleDeleteAllClick}
677
680
  title="Delete all files"
678
681
  >
679
- <i className="bi bi-trash"></i>
680
- delete all
682
+ <Trash2 size={14} aria-hidden="true" />
683
+ Delete all files
681
684
  </button>
682
685
  )}
683
686
  </div>