windmill-components 1.383.5 → 1.383.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.
|
@@ -772,6 +772,8 @@ async function loadMonaco() {
|
|
|
772
772
|
// console.log('bef ready')
|
|
773
773
|
// console.log('af ready')
|
|
774
774
|
initialized = true;
|
|
775
|
+
await import('@codingame/monaco-vscode-standalone-languages');
|
|
776
|
+
await import('@codingame/monaco-vscode-standalone-typescript-language-features');
|
|
775
777
|
languages.typescript.typescriptDefaults.addExtraLib(processStdContent, 'process.d.ts');
|
|
776
778
|
languages.typescript.javascriptDefaults.setModeConfiguration({
|
|
777
779
|
completionItems: true,
|
|
@@ -108,47 +108,44 @@
|
|
|
108
108
|
// }
|
|
109
109
|
// }
|
|
110
110
|
// }
|
|
111
|
-
import { graphql } from 'graphql'
|
|
112
|
-
import { useWorkerFactory } from 'monaco-editor-wrapper/workerFactory';
|
|
111
|
+
// import { graphql } from 'graphql'
|
|
112
|
+
import { useWorkerFactory } from '@windmill-labs/monaco-editor-wrapper/workerFactory';
|
|
113
|
+
import cssWorker from '@windmill-labs/monaco-editor-wrapper/workers/module/css?worker';
|
|
114
|
+
import htmlWorker from '@windmill-labs/monaco-editor-wrapper/workers/module/html?worker';
|
|
115
|
+
import tsWorker from '@windmill-labs/monaco-editor-wrapper/workers/module/ts?worker';
|
|
116
|
+
import jsonWorker from '@windmill-labs/monaco-editor-wrapper/workers/module/json?worker';
|
|
117
|
+
import editorWorker from '@windmill-labs/monaco-editor-wrapper/workers/module/editor?worker';
|
|
118
|
+
// import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker'
|
|
119
|
+
// import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker'
|
|
120
|
+
// import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker'
|
|
121
|
+
// import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker'
|
|
113
122
|
export function buildWorkerDefinition(...args) {
|
|
114
123
|
useWorkerFactory({
|
|
115
124
|
ignoreMapping: true,
|
|
116
125
|
workerLoaders: {
|
|
117
126
|
editorWorkerService: () => {
|
|
118
127
|
console.log('editorWorkerService');
|
|
119
|
-
return new
|
|
120
|
-
type: 'module'
|
|
121
|
-
});
|
|
128
|
+
return new editorWorker();
|
|
122
129
|
},
|
|
123
130
|
javascript: () => {
|
|
124
131
|
console.log('javascript');
|
|
125
|
-
return new
|
|
126
|
-
type: 'module'
|
|
127
|
-
});
|
|
132
|
+
return new tsWorker();
|
|
128
133
|
},
|
|
129
134
|
typescript: () => {
|
|
130
135
|
console.log('typescript');
|
|
131
|
-
return new
|
|
132
|
-
type: 'module'
|
|
133
|
-
});
|
|
136
|
+
return new tsWorker();
|
|
134
137
|
},
|
|
135
138
|
json: () => {
|
|
136
139
|
console.log('json');
|
|
137
|
-
return new
|
|
138
|
-
type: 'module'
|
|
139
|
-
});
|
|
140
|
+
return new jsonWorker();
|
|
140
141
|
},
|
|
141
142
|
html: () => {
|
|
142
143
|
console.log('html');
|
|
143
|
-
return new
|
|
144
|
-
type: 'module'
|
|
145
|
-
});
|
|
144
|
+
return new htmlWorker();
|
|
146
145
|
},
|
|
147
146
|
css: () => {
|
|
148
147
|
console.log('html');
|
|
149
|
-
return new
|
|
150
|
-
type: 'module'
|
|
151
|
-
});
|
|
148
|
+
return new cssWorker();
|
|
152
149
|
}
|
|
153
150
|
}
|
|
154
151
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-components",
|
|
3
|
-
"version": "1.383.
|
|
3
|
+
"version": "1.383.8",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"lucide-svelte": "^0.293.0",
|
|
117
117
|
"minimatch": "^10.0.1",
|
|
118
118
|
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~8.0.2",
|
|
119
|
-
"monaco-editor-wrapper": "^5.5.2",
|
|
119
|
+
"@windmill-labs/monaco-editor-wrapper": "^5.5.2",
|
|
120
120
|
"monaco-graphql": "^1.6.0",
|
|
121
121
|
"@windmill-labs/monaco-languageclient": "~8.8.2",
|
|
122
122
|
"ol": "^7.4.0",
|