@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.
- package/README.md +5 -3
- package/dist/components/ai/AIMessageContent.svelte +24 -14
- package/dist/components/ai/AIPanel.svelte +22 -0
- package/dist/components/editor/CollaborativeEditor.svelte +68 -5
- package/dist/components/editor/CollaborativeEditor.svelte.d.ts +14 -0
- package/dist/components/editor/CustomEditor.svelte +52 -33
- package/dist/components/editor/CustomEditor.svelte.d.ts +2 -2
- package/dist/components/editor/Editor.svelte +17 -0
- package/dist/components/editor/Editor.svelte.d.ts +9 -0
- package/dist/components/editor/EditorPane.svelte +18 -1
- package/dist/components/editor/EditorPane.svelte.d.ts +5 -0
- package/dist/components/editor/EditorSelections.svelte +27 -11
- package/dist/components/editor/EditorSelections.svelte.d.ts +1 -0
- package/dist/components/editor/core/folding.d.ts +11 -0
- package/dist/components/editor/core/folding.js +41 -0
- package/dist/components/editor/core/index.d.ts +0 -5
- package/dist/components/editor/core/index.js +4 -5
- package/dist/components/editor/core/state.d.ts +5 -0
- package/dist/components/editor/core/state.js +131 -12
- package/dist/components/editor/editor-find.d.ts +1 -0
- package/dist/components/editor/editor-find.js +6 -5
- package/dist/components/editor/editor-input.d.ts +1 -0
- package/dist/components/editor/editor-input.js +4 -1
- package/dist/components/editor/editor-scroll.d.ts +1 -0
- package/dist/components/editor/editor-scroll.js +2 -1
- package/dist/components/editor/index.d.ts +19 -3
- package/dist/components/editor/index.js +18 -4
- package/dist/components/editor/tokenizer/base.d.ts +1 -25
- package/dist/components/editor/tokenizer/base.js +0 -172
- package/dist/components/editor/tokenizer/index.d.ts +4 -0
- package/dist/components/editor/tokenizer/index.js +1 -1
- package/dist/components/editor/tokenizer/languages/html.d.ts +3 -2
- package/dist/components/editor/tokenizer/languages/html.js +64 -6
- package/dist/components/editor/tokenizer/languages/javascript.d.ts +13 -5
- package/dist/components/editor/tokenizer/languages/javascript.js +69 -57
- package/dist/components/editor/tokenizer/languages/svelte.d.ts +1 -1
- package/dist/components/editor/tokenizer/languages/svelte.js +6 -1
- package/dist/components/editor/tokenizer/types.d.ts +0 -28
- package/dist/crdt/awareness.d.ts +8 -2
- package/dist/crdt/awareness.js +11 -4
- package/dist/crdt/document.d.ts +10 -1
- package/dist/crdt/document.js +15 -7
- package/dist/crdt/index.d.ts +8 -2
- package/dist/crdt/index.js +5 -2
- package/dist/crdt/undo.d.ts +2 -7
- package/dist/crdt/undo.js +1 -8
- package/dist/index.d.ts +7 -9
- package/dist/index.js +7 -9
- package/dist/services/error-handling.d.ts +2 -11
- package/dist/services/error-handling.js +15 -4
- package/dist/services/lsp-client.d.ts +3 -0
- package/dist/services/lsp-client.js +55 -10
- package/dist/services/optimistic.d.ts +8 -5
- package/dist/services/optimistic.js +36 -10
- package/dist/services/vfs-client.js +11 -3
- package/dist/stores/agents.svelte.js +3 -2
- package/dist/stores/ai-persistence.svelte.js +7 -2
- package/dist/stores/ai.svelte.js +2 -1
- package/dist/stores/collaboration.svelte.d.ts +1 -1
- package/dist/stores/collaboration.svelte.js +3 -2
- package/dist/stores/editor.svelte.js +29 -5
- package/dist/stores/layout.svelte.js +3 -0
- package/dist/stores/plugin.svelte.js +9 -3
- package/dist/stores/vfs.svelte.js +26 -9
- package/dist/styles/theme.css +43 -0
- package/dist/types/vfs.d.ts +15 -1
- package/dist/types/vfs.js +9 -0
- package/dist/utils/language.d.ts +4 -3
- package/dist/utils/language.js +8 -18
- package/package.json +1 -1
- package/dist/components/editor/MinimalEditor.svelte +0 -75
- package/dist/components/editor/MinimalEditor.svelte.d.ts +0 -6
- package/dist/components/editor/MinimalEditor2.svelte +0 -84
- 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>
|