@nocturnium/svelte-ide 1.0.1 → 1.0.3

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 (74) hide show
  1. package/README.md +5 -3
  2. package/dist/components/ai/AIMessageContent.svelte +24 -14
  3. package/dist/components/ai/AIPanel.svelte +22 -0
  4. package/dist/components/editor/CollaborativeEditor.svelte +68 -5
  5. package/dist/components/editor/CollaborativeEditor.svelte.d.ts +14 -0
  6. package/dist/components/editor/CustomEditor.svelte +52 -33
  7. package/dist/components/editor/CustomEditor.svelte.d.ts +2 -2
  8. package/dist/components/editor/Editor.svelte +17 -0
  9. package/dist/components/editor/Editor.svelte.d.ts +9 -0
  10. package/dist/components/editor/EditorPane.svelte +18 -1
  11. package/dist/components/editor/EditorPane.svelte.d.ts +5 -0
  12. package/dist/components/editor/EditorSelections.svelte +27 -11
  13. package/dist/components/editor/EditorSelections.svelte.d.ts +1 -0
  14. package/dist/components/editor/core/folding.d.ts +11 -0
  15. package/dist/components/editor/core/folding.js +41 -0
  16. package/dist/components/editor/core/index.d.ts +0 -5
  17. package/dist/components/editor/core/index.js +4 -5
  18. package/dist/components/editor/core/state.d.ts +5 -0
  19. package/dist/components/editor/core/state.js +131 -12
  20. package/dist/components/editor/editor-find.d.ts +1 -0
  21. package/dist/components/editor/editor-find.js +6 -5
  22. package/dist/components/editor/editor-input.d.ts +1 -0
  23. package/dist/components/editor/editor-input.js +4 -1
  24. package/dist/components/editor/editor-scroll.d.ts +1 -0
  25. package/dist/components/editor/editor-scroll.js +2 -1
  26. package/dist/components/editor/index.d.ts +19 -3
  27. package/dist/components/editor/index.js +18 -4
  28. package/dist/components/editor/tokenizer/base.d.ts +1 -25
  29. package/dist/components/editor/tokenizer/base.js +0 -172
  30. package/dist/components/editor/tokenizer/index.d.ts +4 -0
  31. package/dist/components/editor/tokenizer/index.js +1 -1
  32. package/dist/components/editor/tokenizer/languages/html.d.ts +3 -2
  33. package/dist/components/editor/tokenizer/languages/html.js +64 -6
  34. package/dist/components/editor/tokenizer/languages/javascript.d.ts +13 -5
  35. package/dist/components/editor/tokenizer/languages/javascript.js +69 -57
  36. package/dist/components/editor/tokenizer/languages/svelte.d.ts +1 -1
  37. package/dist/components/editor/tokenizer/languages/svelte.js +6 -1
  38. package/dist/components/editor/tokenizer/types.d.ts +0 -28
  39. package/dist/crdt/awareness.d.ts +8 -2
  40. package/dist/crdt/awareness.js +11 -4
  41. package/dist/crdt/document.d.ts +10 -1
  42. package/dist/crdt/document.js +15 -7
  43. package/dist/crdt/index.d.ts +8 -2
  44. package/dist/crdt/index.js +5 -2
  45. package/dist/crdt/undo.d.ts +2 -7
  46. package/dist/crdt/undo.js +1 -8
  47. package/dist/index.d.ts +7 -9
  48. package/dist/index.js +7 -9
  49. package/dist/services/error-handling.d.ts +2 -11
  50. package/dist/services/error-handling.js +15 -4
  51. package/dist/services/lsp-client.d.ts +3 -0
  52. package/dist/services/lsp-client.js +55 -10
  53. package/dist/services/optimistic.d.ts +8 -5
  54. package/dist/services/optimistic.js +36 -10
  55. package/dist/services/vfs-client.js +11 -3
  56. package/dist/stores/agents.svelte.js +3 -2
  57. package/dist/stores/ai-persistence.svelte.js +7 -2
  58. package/dist/stores/ai.svelte.js +2 -1
  59. package/dist/stores/collaboration.svelte.d.ts +1 -1
  60. package/dist/stores/collaboration.svelte.js +3 -2
  61. package/dist/stores/editor.svelte.js +29 -5
  62. package/dist/stores/layout.svelte.js +3 -0
  63. package/dist/stores/plugin.svelte.js +9 -3
  64. package/dist/stores/vfs.svelte.js +26 -9
  65. package/dist/styles/theme.css +43 -0
  66. package/dist/types/vfs.d.ts +15 -1
  67. package/dist/types/vfs.js +9 -0
  68. package/dist/utils/language.d.ts +4 -3
  69. package/dist/utils/language.js +8 -18
  70. package/package.json +1 -1
  71. package/dist/components/editor/MinimalEditor.svelte +0 -75
  72. package/dist/components/editor/MinimalEditor.svelte.d.ts +0 -6
  73. package/dist/components/editor/MinimalEditor2.svelte +0 -84
  74. package/dist/components/editor/MinimalEditor2.svelte.d.ts +0 -6
@@ -1,84 +0,0 @@
1
- <script lang="ts">
2
- // Minimal editor with CSS variables like CustomEditor
3
- interface Props {
4
- content: string;
5
- }
6
-
7
- let { content }: Props = $props();
8
- const lines = $derived(content.split('\n'));
9
- </script>
10
-
11
- <div class="custom-editor">
12
- <div class="custom-editor__content">
13
- <div class="custom-editor__lines">
14
- {#each lines as line, i (i)}
15
- <div class="custom-editor__line">
16
- <div class="custom-editor__gutter">
17
- <span class="custom-editor__line-number">{i + 1}</span>
18
- </div>
19
- <div class="custom-editor__line-content">{line || '\u00A0'}</div>
20
- </div>
21
- {/each}
22
- </div>
23
- </div>
24
- </div>
25
-
26
- <style>
27
- .custom-editor {
28
- position: relative;
29
- width: 100%;
30
- height: 100%;
31
- overflow: hidden;
32
- background: var(--ide-bg-primary);
33
- font-family: var(--ide-font-mono);
34
- font-size: 14px;
35
- }
36
-
37
- .custom-editor__content {
38
- position: relative;
39
- width: 100%;
40
- height: 100%;
41
- overflow: auto;
42
- cursor: default;
43
- }
44
-
45
- .custom-editor__lines {
46
- position: relative;
47
- min-height: 100%;
48
- z-index: 2;
49
- }
50
-
51
- .custom-editor__line {
52
- display: flex;
53
- line-height: 20px;
54
- min-height: 20px;
55
- cursor: default;
56
- }
57
-
58
- .custom-editor__gutter {
59
- position: sticky;
60
- left: 0;
61
- width: 50px;
62
- min-width: 50px;
63
- background: var(--ide-bg-secondary);
64
- border-right: 1px solid var(--ide-border);
65
- text-align: right;
66
- padding-right: 8px;
67
- user-select: none;
68
- cursor: default;
69
- z-index: 3;
70
- }
71
-
72
- .custom-editor__line-number {
73
- color: var(--ide-text-muted);
74
- cursor: default;
75
- }
76
-
77
- .custom-editor__line-content {
78
- flex: 1;
79
- white-space: pre;
80
- padding-left: 8px;
81
- color: var(--ide-text-primary);
82
- cursor: text;
83
- }
84
- </style>
@@ -1,6 +0,0 @@
1
- interface Props {
2
- content: string;
3
- }
4
- declare const MinimalEditor2: import("svelte").Component<Props, {}, "">;
5
- type MinimalEditor2 = ReturnType<typeof MinimalEditor2>;
6
- export default MinimalEditor2;