@ws-ui/code-editor 0.1.30-rc.6 → 0.1.30
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 +0 -0
- package/dist/demo/LSPDemo.d.ts +0 -1
- package/dist/demo/common.d.ts +4 -2
- package/dist/demo/index.d.ts +0 -1
- package/dist/editor/Alerts.d.ts +0 -1
- package/dist/editor/configurations/4d.d.ts +0 -0
- package/dist/editor/index.d.ts +1 -2
- package/dist/editor/keybindings.d.ts +0 -1
- package/dist/editor/plugins/index.d.ts +0 -0
- package/dist/editor/plugins/readonly/dom.d.ts +0 -0
- package/dist/editor/plugins/readonly/index.d.ts +1 -1
- package/dist/editor/plugins/readonly/intervals.d.ts +1 -1
- package/dist/editor/plugins/readonly/types.d.ts +0 -0
- package/dist/editor/providers/CodeEditorProvider.d.ts +0 -1
- package/dist/editor/providers/LSPProvider/WebSocketMessageReader.d.ts +0 -1
- package/dist/editor/providers/LSPProvider/WebSocketMessageWriter.d.ts +0 -1
- package/dist/editor/providers/LSPProvider/ZoomInit.d.ts +0 -1
- package/dist/editor/providers/LSPProvider/index.d.ts +1 -3
- package/dist/editor/providers/index.d.ts +0 -0
- package/dist/editor/schemas/condition.schema.json.d.ts +0 -0
- package/dist/editor/services/CodeEditorService.d.ts +11 -0
- package/dist/editor/services/LanguageFeaturesService.d.ts +7 -0
- package/dist/editor/services/TextModelService.d.ts +7 -0
- package/dist/editor/snippets/4d.d.ts +0 -0
- package/dist/editor/snippets/css.d.ts +0 -0
- package/dist/editor/snippets/qodly.d.ts +0 -0
- package/dist/editor/themes/4d-dark.d.ts +0 -1
- package/dist/editor/themes/index.d.ts +0 -0
- package/dist/editor/utils.d.ts +0 -1
- package/dist/index.cjs.js +28 -136
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1181 -27307
- package/dist/index.es.js.map +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/monaco_theme.json +0 -0
- package/dist/style.css +1 -1
- package/dist/vite.svg +0 -0
- package/package.json +20 -29
- package/dist/editor/loader/index.d.ts +0 -1
- package/dist/editor/loader/setup-workers.d.ts +0 -1
- package/dist/editor/services/editor-service-override.d.ts +0 -2
- package/dist/editor/services/index.d.ts +0 -11
- package/dist/editor/services/model-service-override.d.ts +0 -2
- package/dist/languages/index.d.ts +0 -1
- package/dist/languages/utils.d.ts +0 -3
- package/dist/studio/assets/css.worker.bundle.js +0 -49784
- package/dist/studio/assets/editor.worker.bundle.js +0 -12601
- package/dist/studio/assets/html.worker.bundle.js +0 -28780
- package/dist/studio/assets/json.worker.bundle.js +0 -20013
- package/dist/studio/assets/ts.worker.bundle.js +0 -220366
package/README.md
CHANGED
|
File without changes
|
package/dist/demo/LSPDemo.d.ts
CHANGED
package/dist/demo/common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { LSPProps } from '..';
|
|
2
|
-
|
|
3
3
|
export declare const files: {
|
|
4
4
|
css: {
|
|
5
5
|
path: string;
|
|
@@ -15,11 +15,13 @@ export declare const files: {
|
|
|
15
15
|
path: string;
|
|
16
16
|
initialValue: string;
|
|
17
17
|
language: string;
|
|
18
|
+
requireLSP: boolean;
|
|
18
19
|
};
|
|
19
20
|
qodly: {
|
|
20
21
|
path: string;
|
|
21
22
|
initialValue: string;
|
|
22
23
|
language: string;
|
|
24
|
+
requireLSP: boolean;
|
|
23
25
|
};
|
|
24
26
|
json: {
|
|
25
27
|
path: string;
|
|
@@ -38,4 +40,4 @@ export interface IFile {
|
|
|
38
40
|
initialValue: string;
|
|
39
41
|
language: string;
|
|
40
42
|
}
|
|
41
|
-
export declare function renderCodeEditor(file: IFile, lspProps?: LSPProps):
|
|
43
|
+
export declare function renderCodeEditor(file: IFile, lspProps?: LSPProps): JSX.Element;
|
package/dist/demo/index.d.ts
CHANGED
package/dist/editor/Alerts.d.ts
CHANGED
|
File without changes
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FileFolderType, IMethodAttributes, ITextEditorSelection } from '@ws-ui/shared';
|
|
3
3
|
import { LSPProps } from './Alerts';
|
|
4
4
|
import { editor as MonacoEditor } from 'monaco-editor';
|
|
5
|
-
|
|
6
5
|
type TCodeEditorExtra = Partial<{
|
|
7
6
|
initialLineInfo: {
|
|
8
7
|
line: number;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
1
2
|
import { SynchronizedIntervals } from './intervals';
|
|
2
3
|
import { Interval, Prefer } from './types';
|
|
3
|
-
import * as monaco from 'monaco-editor';
|
|
4
4
|
/**
|
|
5
5
|
* @warnings
|
|
6
6
|
* For correct behavior, all models must have a single character at the end of the line.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Interval, ReadonlyInterval, Prefer } from './types';
|
|
2
1
|
import * as monaco from 'monaco-editor';
|
|
2
|
+
import { Interval, ReadonlyInterval, Prefer } from './types';
|
|
3
3
|
type Callback = (intervals: readonly ReadonlyInterval[]) => void;
|
|
4
4
|
export declare function SynchronizedIntervals(editor: monaco.editor.ICodeEditor, isMethod: boolean): {
|
|
5
5
|
readonly buffer: Interval[];
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IWebSocket, WebSocketMessageWriter as BaseWebSocketMessageWriter } from 'vscode-ws-jsonrpc';
|
|
2
2
|
import { Message } from 'vscode-jsonrpc';
|
|
3
|
-
|
|
4
3
|
export declare class WebSocketMessageWriter extends BaseWebSocketMessageWriter {
|
|
5
4
|
private onSend;
|
|
6
5
|
constructor(socket: IWebSocket, onSend?: () => void);
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { FC, MutableRefObject } from 'react';
|
|
2
2
|
import { MonacoLanguageClient } from 'monaco-languageclient';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { ICodeEditorOpenHandler } from '../../services/CodeEditorService';
|
|
5
4
|
export type LSPContextType = {
|
|
6
5
|
inited: boolean;
|
|
7
6
|
clientRef: MutableRefObject<MonacoLanguageClient | undefined>;
|
|
8
7
|
lastError: Event | null;
|
|
9
8
|
reload: () => void;
|
|
10
9
|
};
|
|
11
|
-
export type ICodeEditorOpenHandler = Parameters<ICodeEditorService['registerCodeEditorOpenHandler']>[0];
|
|
12
10
|
export declare const LSPProvider: FC<{
|
|
13
11
|
language?: string;
|
|
14
12
|
url: string;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICodeEditorService } from 'vscode/services';
|
|
2
|
+
export type ICodeEditorOpenHandler = Parameters<ICodeEditorService['registerCodeEditorOpenHandler']>[0];
|
|
3
|
+
type ServiceProps = {
|
|
4
|
+
openHandler?: ICodeEditorOpenHandler;
|
|
5
|
+
};
|
|
6
|
+
declare const service: {
|
|
7
|
+
getServiceOverride: ({ openHandler }: ServiceProps) => {
|
|
8
|
+
[x: string]: ICodeEditorService;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default service;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/editor/utils.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Monaco } from '@monaco-editor/react';
|
|
2
2
|
import { editor as MonacoEditor } from 'monaco-editor';
|
|
3
3
|
import { ITextEditorSelection } from '@ws-ui/shared';
|
|
4
|
-
|
|
5
4
|
export declare function getFileSystemPath(path: string): string;
|
|
6
5
|
export declare function _await(callback: () => void, timeout?: number): void;
|
|
7
6
|
export declare function jumpToSelection(editor: MonacoEditor.IStandaloneCodeEditor, sel: ITextEditorSelection): void;
|