windmill-components 1.394.6 → 1.394.8
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/package/components/DiffEditor.svelte +2 -2
- package/package/components/Editor.svelte +2 -2
- package/package/components/SimpleEditor.svelte +2 -2
- package/package/components/TemplateEditor.svelte +2 -2
- package/package/monaco_workers/build_workers.d.ts +1 -0
- package/package/{components → monaco_workers}/build_workers.js +3 -5
- package/package/monaco_workers/graphql.worker.bundle.d.ts +0 -0
- package/package/monaco_workers/graphql.worker.bundle.js +233 -0
- package/package.json +1 -1
- package/package/components/build_workers.d.ts +0 -1
|
@@ -6,8 +6,8 @@ import '@codingame/monaco-vscode-standalone-typescript-language-features';
|
|
|
6
6
|
import { editor as meditor } from 'monaco-editor';
|
|
7
7
|
import { initializeVscode } from './vscode';
|
|
8
8
|
import EditorTheme from './EditorTheme.svelte';
|
|
9
|
-
import { buildWorkerDefinition } from '
|
|
10
|
-
buildWorkerDefinition(
|
|
9
|
+
import { buildWorkerDefinition } from '../monaco_workers/build_workers';
|
|
10
|
+
buildWorkerDefinition();
|
|
11
11
|
const SIDE_BY_SIDE_MIN_WIDTH = 700;
|
|
12
12
|
export let automaticLayout = true;
|
|
13
13
|
export let fixedOverflowWidgets = true;
|
|
@@ -115,7 +115,6 @@ import { CloseAction, ErrorAction, RequestType } from 'vscode-languageclient';
|
|
|
115
115
|
import { MonacoBinding } from 'y-monaco';
|
|
116
116
|
import { dbSchemas, copilotInfo, codeCompletionSessionEnabled, lspTokenStore, formatOnSave, vimMode } from '../stores';
|
|
117
117
|
import { createHash as randomHash, editorConfig, langToExt, updateOptions } from '../editorUtils';
|
|
118
|
-
import { buildWorkerDefinition } from './build_workers';
|
|
119
118
|
import { workspaceStore } from '../stores';
|
|
120
119
|
import { UserService } from '../gen';
|
|
121
120
|
import { initializeVscode } from './vscode';
|
|
@@ -128,6 +127,7 @@ import { BIGQUERY_TYPES, MSSQL_TYPES, MYSQL_TYPES, POSTGRES_TYPES, SNOWFLAKE_TYP
|
|
|
128
127
|
import { setupTypeAcquisition } from '../ata/index';
|
|
129
128
|
import { initWasmTs, parseDeps } from '../infer';
|
|
130
129
|
import { initVim } from './monaco_keybindings';
|
|
130
|
+
import { buildWorkerDefinition } from '../monaco_workers/build_workers';
|
|
131
131
|
// import EditorTheme from './EditorTheme.svelte'
|
|
132
132
|
let divEl = null;
|
|
133
133
|
let editor = null;
|
|
@@ -183,7 +183,7 @@ const uri = lang != 'go' && lang != 'typescript' && lang != 'python'
|
|
|
183
183
|
? `file:///${filePath ?? rHash}.${langToExt(lang)}`
|
|
184
184
|
: `file:///tmp/monaco/${randomHash()}.${langToExt(lang)}`;
|
|
185
185
|
console.log('uri', uri);
|
|
186
|
-
buildWorkerDefinition(
|
|
186
|
+
buildWorkerDefinition();
|
|
187
187
|
export function getCode() {
|
|
188
188
|
return editor?.getValue() ?? '';
|
|
189
189
|
}
|
|
@@ -39,12 +39,12 @@ import { allClasses } from './apps/editor/componentsPanel/cssUtils';
|
|
|
39
39
|
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
|
|
40
40
|
import libStdContent from '../es6.d.ts.txt?raw';
|
|
41
41
|
import domContent from '../dom.d.ts.txt?raw';
|
|
42
|
-
import { buildWorkerDefinition } from './build_workers';
|
|
43
42
|
import { initializeVscode } from './vscode';
|
|
44
43
|
import EditorTheme from './EditorTheme.svelte';
|
|
45
44
|
import { writable } from 'svelte/store';
|
|
46
45
|
import { vimMode } from '../stores';
|
|
47
46
|
import { initVim } from './monaco_keybindings';
|
|
47
|
+
import { buildWorkerDefinition } from '../monaco_workers/build_workers';
|
|
48
48
|
// import { createConfiguredEditor } from 'vscode/monaco'
|
|
49
49
|
// import type { IStandaloneCodeEditor } from 'vscode/vscode/vs/editor/standalone/browser/standaloneCodeEditor'
|
|
50
50
|
let divEl = null;
|
|
@@ -67,7 +67,7 @@ export let allowVim = false;
|
|
|
67
67
|
export let tailwindClasses = [];
|
|
68
68
|
const dispatch = createEventDispatcher();
|
|
69
69
|
const uri = `file:///${hash}.${langToExt(lang)}`;
|
|
70
|
-
buildWorkerDefinition(
|
|
70
|
+
buildWorkerDefinition();
|
|
71
71
|
export function getCode() {
|
|
72
72
|
return editor?.getValue() ?? '';
|
|
73
73
|
}
|
|
@@ -4,11 +4,11 @@ import libStdContent from '../es6.d.ts.txt?raw';
|
|
|
4
4
|
import { editor as meditor, Uri as mUri, languages, Range, KeyMod, KeyCode } from 'monaco-editor';
|
|
5
5
|
import { createEventDispatcher, getContext, onDestroy, onMount } from 'svelte';
|
|
6
6
|
import { writable } from 'svelte/store';
|
|
7
|
-
import { buildWorkerDefinition } from './build_workers';
|
|
8
7
|
import '@codingame/monaco-vscode-standalone-languages';
|
|
9
8
|
import '@codingame/monaco-vscode-standalone-typescript-language-features';
|
|
10
9
|
import { initializeVscode } from './vscode';
|
|
11
10
|
import EditorTheme from './EditorTheme.svelte';
|
|
11
|
+
import { buildWorkerDefinition } from '../monaco_workers/build_workers';
|
|
12
12
|
export const conf = {
|
|
13
13
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
14
14
|
comments: {
|
|
@@ -336,7 +336,7 @@ if (typeof code != 'string') {
|
|
|
336
336
|
const lang = 'template';
|
|
337
337
|
const dispatch = createEventDispatcher();
|
|
338
338
|
const uri = `file:///${hash}.ts`;
|
|
339
|
-
buildWorkerDefinition(
|
|
339
|
+
buildWorkerDefinition();
|
|
340
340
|
export function insertAtCursor(code) {
|
|
341
341
|
if (editor) {
|
|
342
342
|
editor.trigger('keyboard', 'type', { text: code });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildWorkerDefinition(): void;
|
|
@@ -3,7 +3,7 @@ import { useWorkerFactory } from 'monaco-editor-wrapper/workerFactory';
|
|
|
3
3
|
// import htmlWorker from 'monaco-editor-wrapper/workers/module/html?worker&url'
|
|
4
4
|
// import jsonWorker from 'monaco-editor-wrapper/workers/module/json?worker&url'
|
|
5
5
|
// import editorWorker from 'monaco-editor-wrapper/workers/module/editor?worker&url'
|
|
6
|
-
export function buildWorkerDefinition(
|
|
6
|
+
export function buildWorkerDefinition() {
|
|
7
7
|
useWorkerFactory({
|
|
8
8
|
ignoreMapping: true,
|
|
9
9
|
workerLoaders: {
|
|
@@ -38,10 +38,8 @@ export function buildWorkerDefinition(workerPath, basePath, ...args) {
|
|
|
38
38
|
});
|
|
39
39
|
},
|
|
40
40
|
graphql: () => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const workerUrl = new URL(workerPathLocal, basePath);
|
|
44
|
-
return new Worker(workerUrl.href, {
|
|
41
|
+
console.log('Creating graphql worker');
|
|
42
|
+
return new Worker(new URL(`./graphql.worker.bundle.js`, import.meta.url), {
|
|
45
43
|
name: 'graphql'
|
|
46
44
|
});
|
|
47
45
|
}
|
|
File without changes
|