jderobot-ide-interface 0.2.36 → 0.2.38
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/dist/7b4e08097443269a0929c67369d1e670.svg +15 -0
- package/dist/assets/index.d.ts +1 -0
- package/dist/components/FileEditor/FileEditor.d.ts +3 -2
- package/dist/components/FileEditor/TextEditor.d.ts +3 -1
- package/dist/components/FileEditor/extras.d.ts +3 -2
- package/dist/components/FileEditor/snippets.d.ts +1 -7
- package/dist/components/IdeInterface/IdeInterface.d.ts +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/main.js +74 -17
- package/dist/package.json +1 -1
- package/dist/types/editor.d.ts +11 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
<svg width="20" height="20" fill="current" version="1.1" viewBox="0 0 .6 .6" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<g transform="matrix(.024545 0 0 .024545 .0054546 .0054546)" fill="current">
|
|
5
|
+
<path d="m5 6c0-0.55229 0.44772-1 1-1 0.55229 0 1 0.44771 1 1s-0.44771 1-1 1c-0.55228 0-1-0.44771-1-1z"/>
|
|
6
|
+
<path d="m5 10c0-0.55229 0.44772-1 1-1 0.55229 0 1 0.44771 1 1 0 0.5523-0.44771 1-1 1-0.55228 0-1-0.4477-1-1z"/>
|
|
7
|
+
<path d="m10 9c-0.55228 0-1 0.44771-1 1 0 0.5523 0.44772 1 1 1h4c0.5523 0 1-0.4477 1-1 0-0.55229-0.4477-1-1-1z"/>
|
|
8
|
+
<path d="m17 10c0-0.55229 0.4477-1 1-1s1 0.44771 1 1c0 0.5523-0.4477 1-1 1s-1-0.4477-1-1z"/>
|
|
9
|
+
<path d="m9 6c0-0.55229 0.44771-1 1-1 0.5523 0 1 0.44771 1 1s-0.4477 1-1 1c-0.55229 0-1-0.44771-1-1z"/>
|
|
10
|
+
<path d="m13 6c0-0.55229 0.4477-1 1-1s1 0.44771 1 1-0.4477 1-1 1-1-0.44771-1-1z"/>
|
|
11
|
+
<path d="m17 6c0-0.55229 0.4477-1 1-1s1 0.44771 1 1-0.4477 1-1 1-1-0.44771-1-1z"/>
|
|
12
|
+
<path d="m20 1c1.6569 0 3 1.3432 3 3v8c0 1.6569-1.3431 3-3 3h-16c-1.6568 0-3-1.3431-3-3v-8c0-1.6568 1.3432-3 3-3zm0 2c0.5523 0 1 0.44771 1 1v8c0 0.5523-0.4477 1-1 1h-16c-0.55228 0-1-0.4477-1-1v-8c0-0.55228 0.44772-1 1-1z" clip-rule="evenodd" fill-rule="evenodd"/>
|
|
13
|
+
<path d="m16.192 21.243c0.3905 0.3905 0.3905 1.0237 0 1.4142s-1.0237 0.3905-1.4142 0l-2.8284-2.8284-2.8285 2.8285c-0.39052 0.3905-1.0237 0.3905-1.4142 0-0.39053-0.3905-0.39053-1.0237 0-1.4142l2.8284-2.8284s1e-4 -1e-4 0 0c0.7811-0.7811 2.0474-0.7812 2.8285-1e-4z"/>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
package/dist/assets/index.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export { ReactComponent as SaveIcon } from "./save.svg";
|
|
|
20
20
|
export { ReactComponent as SplashIcon } from "./logo_jderobot.svg";
|
|
21
21
|
export { ReactComponent as MinusIcon } from "./minus.svg";
|
|
22
22
|
export { ReactComponent as PlusIcon } from "./plus.svg";
|
|
23
|
+
export { ReactComponent as KeyboardIcon } from "./keyboard.svg";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommsManager } from "jderobot-commsmanager";
|
|
2
|
-
import { Entry, EditorsEntry, Options } from "Types";
|
|
2
|
+
import { Entry, EditorsEntry, Options, ExtraSnippets } from "Types";
|
|
3
3
|
import { ExtraApi } from "src/types/fileTypes";
|
|
4
|
-
declare const FileEditor: ({ currentFile, changeCurrentFile, currentProjectname, autosave, manager, api, extraEditors, splashIcon, options, }: {
|
|
4
|
+
declare const FileEditor: ({ currentFile, changeCurrentFile, currentProjectname, autosave, manager, api, extraEditors, splashIcon, options, extraSnippets }: {
|
|
5
5
|
currentFile?: Entry;
|
|
6
6
|
changeCurrentFile: Function;
|
|
7
7
|
currentProjectname: string;
|
|
@@ -11,5 +11,6 @@ declare const FileEditor: ({ currentFile, changeCurrentFile, currentProjectname,
|
|
|
11
11
|
splashIcon: JSX.Element;
|
|
12
12
|
extraEditors: EditorsEntry[];
|
|
13
13
|
options?: Options;
|
|
14
|
+
extraSnippets?: ExtraSnippets;
|
|
14
15
|
}) => JSX.Element;
|
|
15
16
|
export default FileEditor;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CommsManager } from "jderobot-commsmanager";
|
|
2
|
-
|
|
2
|
+
import { ExtraSnippets } from "Types";
|
|
3
|
+
declare const FileEditor: ({ commsManager, fileContent, setFileContent, saveFile, language, zoomLevel, extraSnippets, }: {
|
|
3
4
|
commsManager: CommsManager | null;
|
|
4
5
|
fileContent: string;
|
|
5
6
|
setFileContent: Function;
|
|
6
7
|
saveFile: Function;
|
|
7
8
|
language: string;
|
|
8
9
|
zoomLevel: number;
|
|
10
|
+
extraSnippets?: ExtraSnippets;
|
|
9
11
|
}) => JSX.Element;
|
|
10
12
|
export default FileEditor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Monaco } from "@monaco-editor/react";
|
|
2
2
|
import { CommsManager } from "jderobot-commsmanager";
|
|
3
3
|
import type { languages } from "monaco-editor";
|
|
4
|
+
import { ExtraSnippets, Snippet } from "Types";
|
|
4
5
|
interface Range {
|
|
5
6
|
startLineNumber: number;
|
|
6
7
|
endLineNumber: number;
|
|
@@ -16,7 +17,7 @@ interface CompletionItem {
|
|
|
16
17
|
label: string;
|
|
17
18
|
range: Range;
|
|
18
19
|
}
|
|
19
|
-
export declare const monacoEditorSnippet: (monaco: Monaco, manager: CommsManager | null) => void;
|
|
20
|
+
export declare const monacoEditorSnippet: (monaco: Monaco, manager: CommsManager | null, extraSnippets?: ExtraSnippets) => void;
|
|
20
21
|
export declare const snippetKind: (kind: string, monaco: Monaco) => languages.CompletionItemKind.Method | languages.CompletionItemKind.Function | languages.CompletionItemKind.Variable | languages.CompletionItemKind.Class | languages.CompletionItemKind.Module | languages.CompletionItemKind.Property | languages.CompletionItemKind.Keyword | languages.CompletionItemKind.File | languages.CompletionItemKind.TypeParameter | languages.CompletionItemKind.Snippet;
|
|
21
|
-
export declare const snippetsBuilderV2: (monaco: Monaco, range: Range) => CompletionItem[];
|
|
22
|
+
export declare const snippetsBuilderV2: (monaco: Monaco, range: Range, callback?: () => Snippet[]) => CompletionItem[];
|
|
22
23
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommsManager } from "jderobot-commsmanager";
|
|
2
|
-
import { Entry, Layout, ExplorerEntry, EditorsEntry, ViewersEntry, Options } from "Types";
|
|
2
|
+
import { Entry, Layout, ExplorerEntry, EditorsEntry, ViewersEntry, Options, ExtraSnippets } from "Types";
|
|
3
3
|
import { ExtraApi, StatusBarComponents } from "Types";
|
|
4
4
|
export interface IdeInterfaceStyles {
|
|
5
5
|
bgColor?: string;
|
|
@@ -18,6 +18,7 @@ interface IdeInterfaceProps {
|
|
|
18
18
|
splashIcon?: JSX.Element;
|
|
19
19
|
baseFile?: Entry;
|
|
20
20
|
baseUniverse?: string;
|
|
21
|
+
extraSnippets?: ExtraSnippets;
|
|
21
22
|
}
|
|
22
|
-
declare const IdeInterface: ({ commsManager, connectManager, project, explorers, api, extraEditors, statusBarComponents, viewers, layout, options, splashIcon, baseFile, baseUniverse, }: IdeInterfaceProps) => JSX.Element;
|
|
23
|
+
declare const IdeInterface: ({ commsManager, connectManager, project, explorers, api, extraEditors, statusBarComponents, viewers, layout, options, splashIcon, baseFile, baseUniverse, extraSnippets, }: IdeInterfaceProps) => JSX.Element;
|
|
23
24
|
export default IdeInterface;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export { ProgressBar } from "./components";
|
|
|
6
6
|
export { Button, MenuButton, MenuButtonStroke, MenuButtonLabel, } from "./components";
|
|
7
7
|
export { Modal, ModalTitlebar, ModalRow, ModalInputBox, ModalInputDropdown, ModalEditableList, ModalInputDropArea, ModalInputSelectIcon, ModalActionList, ModalRowDataText, } from "./components";
|
|
8
8
|
export { ThemeProvider, useTheme, OptionsProvider, useOptions, ErrorProvider, useError, contrastSelector } from "./utils";
|
|
9
|
-
export type { ExtraEditorProps, Layout, Entry, Options, Theme, ExplorerEntry, EditorsEntry, ViewersEntry, ExtraApi, StatusBarComponents, ModelRowTypes, ModalInputSelectIconEntry, } from "./types";
|
|
9
|
+
export type { ExtraEditorProps, Layout, Entry, Options, Theme, ExplorerEntry, EditorsEntry, ViewersEntry, ExtraApi, StatusBarComponents, ModelRowTypes, ModalInputSelectIconEntry, ExtraSnippets, Snippet } from "./types";
|