jderobot-ide-interface 0.1.14

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.
Files changed (94) hide show
  1. package/README.md +1 -0
  2. package/dist/0896126134a9b188344fa6e4ad704b0d.svg +4 -0
  3. package/dist/094070de94411c40fa83db7cfbd274b0.svg +4 -0
  4. package/dist/0a933c3e6eeabc70f06c42942a14519a.svg +4 -0
  5. package/dist/0dbb251678b3c31813ac68b35701ae40.svg +27 -0
  6. package/dist/2e62728ae4c396b0a80d277259b378d1.svg +4 -0
  7. package/dist/32474416e5f4515085e53df0b4e21357.svg +4 -0
  8. package/dist/39d7dc6012dc2093fc281466cc28f6c7.svg +8 -0
  9. package/dist/3a6e3acd0b2afc8572ac399fd3d98456.svg +4 -0
  10. package/dist/4b4fa0fa1fe33beed86a9dde9e03ce33.svg +4 -0
  11. package/dist/4e8079ca6526a8ef2538faab426f1386.svg +17 -0
  12. package/dist/597d04d21f9ffffe44d4c1c7cee4a8a2.svg +4 -0
  13. package/dist/5d7a32e100f500c95ebc1be7495d48a0.svg +4 -0
  14. package/dist/5f9c8c3872ccef6b9e6ea1273c4fd544.svg +4 -0
  15. package/dist/7dd50ec0079c5fcfb4d02e852d14a2c9.svg +4 -0
  16. package/dist/a0d7f6744fa00f02309a98ebb3da5e48.svg +4 -0
  17. package/dist/a211ea02b722dc943b1c3890dd984348.svg +4 -0
  18. package/dist/assets/index.d.ts +20 -0
  19. package/dist/cc0581c9b68e8c05bdabf15be9f68268.svg +4 -0
  20. package/dist/components/Button/Button.d.ts +24 -0
  21. package/dist/components/Button/Button.stories.d.ts +8 -0
  22. package/dist/components/Button/Button.styles.d.ts +11 -0
  23. package/dist/components/Button/index.d.ts +1 -0
  24. package/dist/components/ButtonsContainer/ButtonsContainer.styles.d.ts +6 -0
  25. package/dist/components/ButtonsContainer/index.d.ts +1 -0
  26. package/dist/components/Dropdown/Dropdown.d.ts +19 -0
  27. package/dist/components/Dropdown/Dropdown.styles.d.ts +12 -0
  28. package/dist/components/Dropdown/index.d.ts +1 -0
  29. package/dist/components/Explorer/Explorer.d.ts +8 -0
  30. package/dist/components/Explorer/Explorer.styles.d.ts +7 -0
  31. package/dist/components/Explorer/file_explorer/FileExplorer.d.ts +16 -0
  32. package/dist/components/Explorer/file_explorer/FileExplorer.styles.d.ts +1 -0
  33. package/dist/components/Explorer/file_explorer/FileIcon.d.ts +7 -0
  34. package/dist/components/Explorer/file_explorer/MoreActionsMenu.d.ts +27 -0
  35. package/dist/components/Explorer/file_explorer/MoreActionsMenu.styles.d.ts +21 -0
  36. package/dist/components/Explorer/file_explorer/TreeNode.d.ts +11 -0
  37. package/dist/components/Explorer/file_explorer/TreeNode.styles.d.ts +34 -0
  38. package/dist/components/Explorer/index.d.ts +1 -0
  39. package/dist/components/FileEditor/FileEditor.d.ts +14 -0
  40. package/dist/components/FileEditor/FileEditor.styles.d.ts +9 -0
  41. package/dist/components/FileEditor/TextEditor.d.ts +10 -0
  42. package/dist/components/FileEditor/extras.d.ts +22 -0
  43. package/dist/components/FileEditor/index.d.ts +1 -0
  44. package/dist/components/FileEditor/snippets.d.ts +8 -0
  45. package/dist/components/IdeInterface/IdeInterface.d.ts +21 -0
  46. package/dist/components/IdeInterface/IdeInterface.stories.d.ts +6 -0
  47. package/dist/components/IdeInterface/IdeInterface.styles.d.ts +34 -0
  48. package/dist/components/IdeInterface/index.d.ts +1 -0
  49. package/dist/components/Modals/DeleteModal.d.ts +8 -0
  50. package/dist/components/Modals/ErrorModal.d.ts +3 -0
  51. package/dist/components/Modals/ErrorModal.styles.d.ts +66 -0
  52. package/dist/components/Modals/Modal.d.ts +24 -0
  53. package/dist/components/Modals/Modal.styles.d.ts +62 -0
  54. package/dist/components/Modals/NewFileModal.d.ts +9 -0
  55. package/dist/components/Modals/NewFileModal.stories.d.ts +6 -0
  56. package/dist/components/Modals/NewFileModal.styles.d.ts +11 -0
  57. package/dist/components/Modals/NewFolderModal.d.ts +14 -0
  58. package/dist/components/Modals/RenameModal.d.ts +9 -0
  59. package/dist/components/Modals/UploadModal.d.ts +9 -0
  60. package/dist/components/Modals/UploadModal.styles.d.ts +12 -0
  61. package/dist/components/Modals/index.d.ts +6 -0
  62. package/dist/components/ProgressBar/ProgressBar.d.ts +4 -0
  63. package/dist/components/ProgressBar/ProgressBar.style.d.ts +9 -0
  64. package/dist/components/ProgressBar/index.d.ts +1 -0
  65. package/dist/components/ResizableLayout/ResizableComponents.d.ts +44 -0
  66. package/dist/components/ResizableLayout/ResizableComponents.styles.d.ts +28 -0
  67. package/dist/components/ResizableLayout/index.d.ts +1 -0
  68. package/dist/components/StatusBar/StatusBar.d.ts +10 -0
  69. package/dist/components/StatusBar/StatusBar.style.d.ts +15 -0
  70. package/dist/components/StatusBar/index.d.ts +1 -0
  71. package/dist/components/VncViewer/VncViewer.d.ts +6 -0
  72. package/dist/components/VncViewer/VncViewer.stories.d.ts +6 -0
  73. package/dist/components/VncViewer/VncViewer.styles.d.ts +7 -0
  74. package/dist/components/VncViewer/index.d.ts +1 -0
  75. package/dist/components/index.d.ts +11 -0
  76. package/dist/d8a2b45df92c9ae68c85bf6ece9289ae.svg +4 -0
  77. package/dist/ec99f20bab9b2b9417dd202dcef39e6f.svg +4 -0
  78. package/dist/fca5588274453e3a7ffc9b828deeab14.svg +4 -0
  79. package/dist/index.d.ts +5 -0
  80. package/dist/main.js +3 -0
  81. package/dist/main.js.LICENSE.txt +30 -0
  82. package/dist/package.json +60 -0
  83. package/dist/types/error.d.ts +16 -0
  84. package/dist/types/events.d.ts +9 -0
  85. package/dist/types/fileTypes.d.ts +73 -0
  86. package/dist/types/index.d.ts +6 -0
  87. package/dist/types/options.d.ts +5 -0
  88. package/dist/types/theme.d.ts +36 -0
  89. package/dist/utils/errorProvider.d.ts +5 -0
  90. package/dist/utils/events.d.ts +3 -0
  91. package/dist/utils/index.d.ts +4 -0
  92. package/dist/utils/optionsProvider.d.ts +9 -0
  93. package/dist/utils/themeProvider.d.ts +9 -0
  94. package/package.json +60 -0
@@ -0,0 +1,30 @@
1
+ /*!
2
+
3
+ JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
+ <http://stuartk.com/jszip>
5
+
6
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
7
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
8
+
9
+ JSZip uses the library pako released under the MIT license :
10
+ https://github.com/nodeca/pako/blob/main/LICENSE
11
+ */
12
+
13
+ /**
14
+ * @license
15
+ * Lodash <https://lodash.com/>
16
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
17
+ * Released under MIT license <https://lodash.com/license>
18
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
19
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
20
+ */
21
+
22
+ /**
23
+ * @license React
24
+ * react-jsx-runtime.production.min.js
25
+ *
26
+ * Copyright (c) Facebook, Inc. and its affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "jderobot-ide-interface",
3
+ "version": "0.1.14",
4
+ "main": "dist/main.js",
5
+ "typings": "dist/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\"",
11
+ "storybook": "storybook dev -p 6006",
12
+ "build-storybook": "storybook build",
13
+ "start": "webpack serve --config ./webpack.config.js --mode development",
14
+ "build": "webpack --mode production --config ./webpack.config.js",
15
+ "postbuild": "cp package.json dist",
16
+ "format": "prettier --write src/**/*.{tsx,ts,html}"
17
+ },
18
+ "keywords": [],
19
+ "author": "",
20
+ "license": "ISC",
21
+ "description": "",
22
+ "devDependencies": {
23
+ "@babel/preset-env": "^7.27.2",
24
+ "@babel/preset-react": "^7.27.1",
25
+ "@babel/preset-typescript": "^7.27.1",
26
+ "@storybook/addon-docs": "^9.0.10",
27
+ "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
28
+ "@storybook/react-webpack5": "^9.0.10",
29
+ "@svgr/webpack": "^8.1.0",
30
+ "@types/lodash": "^4.17.17",
31
+ "@types/react": "18.2.0",
32
+ "@types/react-dom": "18.2.0",
33
+ "@types/styled-components": "^5.1.34",
34
+ "babel-loader": "^10.0.0",
35
+ "file-loader": "^6.2.0",
36
+ "prettier": "^3.5.3",
37
+ "storybook": "^9.0.10",
38
+ "styled-components": "^6.1.19",
39
+ "ts-loader": "^9.5.2",
40
+ "tsconfig-paths-webpack-plugin": "^4.2.0",
41
+ "webpack": "^5.99.9",
42
+ "webpack-bundle-tracker": "^3.2.1",
43
+ "webpack-cli": "^6.0.1",
44
+ "webpack-dev-server": "^5.2.2"
45
+ },
46
+ "dependencies": {
47
+ "@monaco-editor/react": "^4.7.0",
48
+ "@storybook/react": "^9.0.12",
49
+ "jderobot-commsmanager": "^1.0.1",
50
+ "jszip": "^3.10.1",
51
+ "lodash": "^4.17.21",
52
+ "monaco-editor": "^0.52.2",
53
+ "re-resizable": "^6.11.2",
54
+ "react-spinners": "^0.17.0"
55
+ },
56
+ "peerDependencies": {
57
+ "react": "18.2.0",
58
+ "react-dom": "18.2.0"
59
+ }
60
+ }
@@ -0,0 +1,16 @@
1
+ export interface Error {
2
+ isOpen: boolean;
3
+ msg: string;
4
+ type: ErrorType;
5
+ error: (msg: string) => void;
6
+ error_critical: (msg: string) => void;
7
+ warning: (msg: string) => void;
8
+ info: (msg: string) => void;
9
+ close: () => void;
10
+ }
11
+ export declare enum ErrorType {
12
+ ERROR = 0,
13
+ ERROR_CRITICAL = 1,
14
+ WARNING = 2,
15
+ INFO = 3
16
+ }
@@ -0,0 +1,9 @@
1
+ export interface EventData<T> {
2
+ detail?: T;
3
+ }
4
+ interface AccentColorEvent {
5
+ name: string;
6
+ color: string;
7
+ }
8
+ export type AccentColorEventData = EventData<AccentColorEvent>;
9
+ export {};
@@ -0,0 +1,73 @@
1
+ export interface newFileData {
2
+ fileType: string;
3
+ fileName: string;
4
+ templateType: string;
5
+ }
6
+ export interface ExplorerEntry {
7
+ name: string;
8
+ list(project: string): Promise<string>;
9
+ file: {
10
+ create(project: string, location: string, data: newFileData): Promise<void>;
11
+ get(project: string, path: string): Promise<string>;
12
+ rename(project: string, oldPath: string, newPath: string): Promise<void>;
13
+ delete(project: string, path: string): Promise<void>;
14
+ upload(project: string, path: string, name: string, content: string): Promise<void>;
15
+ };
16
+ folder: {
17
+ create(project: string, location: string, name: string): Promise<void>;
18
+ rename(project: string, oldPath: string, newPath: string): Promise<void>;
19
+ delete(project: string, path: string): Promise<void>;
20
+ };
21
+ }
22
+ export interface ExtraApi {
23
+ file: {
24
+ save(project: string, file: Entry, content: string): Promise<void>;
25
+ get(project: string, file: Entry): Promise<string>;
26
+ };
27
+ universes: {
28
+ list(project: string): Promise<string[]>;
29
+ get_config(universe: string): Promise<any>;
30
+ };
31
+ }
32
+ export interface ViewersEntry {
33
+ component: JSX.Element;
34
+ icon: JSX.Element;
35
+ name: string;
36
+ active: boolean;
37
+ activate: React.Dispatch<React.SetStateAction<boolean>>;
38
+ }
39
+ export interface Entry {
40
+ name: string;
41
+ is_dir: boolean;
42
+ path: string;
43
+ group: string;
44
+ access: boolean;
45
+ files: Entry[];
46
+ }
47
+ export interface ExtraEditorProps {
48
+ commsManager: any | null;
49
+ project: string;
50
+ file: Entry;
51
+ changeFile: Function;
52
+ fileContent: string;
53
+ setFileContent: Function;
54
+ contentRef: React.MutableRefObject<string>;
55
+ saveFile: Function;
56
+ language: string;
57
+ zoomLevel: number;
58
+ }
59
+ export interface EditorsEntry {
60
+ component: any;
61
+ buttons: any[];
62
+ name: string;
63
+ language: string;
64
+ trigger: {
65
+ group: string;
66
+ extension: string;
67
+ }[];
68
+ }
69
+ export type Layout = "only-editor" | "only-viewers" | "both";
70
+ export interface StatusBarComponents {
71
+ universeSelector?: JSX.Element;
72
+ extras: JSX.Element[];
73
+ }
@@ -0,0 +1,6 @@
1
+ export type { Entry, newFileData, ExplorerEntry, EditorsEntry, ViewersEntry, ExtraApi, Layout, ExtraEditorProps, StatusBarComponents, } from "./fileTypes";
2
+ export type { EventData, AccentColorEventData } from "./events";
3
+ export type { Error } from "./error";
4
+ export { ErrorType } from "./error";
5
+ export type { Options } from "./options";
6
+ export type { Theme } from "./theme";
@@ -0,0 +1,5 @@
1
+ export interface Options {
2
+ explorer: {
3
+ showAccentColors?: boolean;
4
+ };
5
+ }
@@ -0,0 +1,36 @@
1
+ export interface Theme {
2
+ palette: {
3
+ text?: string;
4
+ darkText?: string;
5
+ placeholderText?: string;
6
+ success?: string;
7
+ warning?: string;
8
+ error?: string;
9
+ background: string;
10
+ primary?: string;
11
+ secondary?: string;
12
+ border: {
13
+ warning: string;
14
+ error: string;
15
+ info: string;
16
+ };
17
+ progressBar: {
18
+ background: string;
19
+ color: string;
20
+ };
21
+ button: {
22
+ error: string;
23
+ success: string;
24
+ warning: string;
25
+ info: string;
26
+ hoverError: string;
27
+ hoverSuccess: string;
28
+ hoverWarning: string;
29
+ hoverInfo: string;
30
+ };
31
+ selectedGradient: string;
32
+ };
33
+ roundness?: number;
34
+ transitionSpeed?: number;
35
+ monacoTheme?: string;
36
+ }
@@ -0,0 +1,5 @@
1
+ import { Error } from "Types";
2
+ export declare const ErrorProvider: ({ children }: {
3
+ children: any;
4
+ }) => JSX.Element;
5
+ export declare const useError: () => Error;
@@ -0,0 +1,3 @@
1
+ export declare function subscribe(eventName: string, listener: (e: any) => void): void;
2
+ export declare function unsubscribe(eventName: string, listener: () => void): void;
3
+ export declare function publish(eventName: string, extra?: any): void;
@@ -0,0 +1,4 @@
1
+ export { ThemeProvider, useTheme } from "./themeProvider";
2
+ export { OptionsProvider, useOptions } from "./optionsProvider";
3
+ export { ErrorProvider, useError } from "./errorProvider";
4
+ export { subscribe, unsubscribe, publish } from "./events";
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { Options } from "Types";
3
+ interface OptionsProviderProps {
4
+ options?: Options;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const useOptions: () => Options;
8
+ export declare const OptionsProvider: ({ options, children, }: OptionsProviderProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { Theme } from "Types";
3
+ interface ThemeProviderProps {
4
+ theme?: Theme;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const useTheme: () => Theme;
8
+ export declare const ThemeProvider: ({ theme, children }: ThemeProviderProps) => JSX.Element;
9
+ export {};
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "jderobot-ide-interface",
3
+ "version": "0.1.14",
4
+ "main": "dist/main.js",
5
+ "typings": "dist/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\"",
11
+ "storybook": "storybook dev -p 6006",
12
+ "build-storybook": "storybook build",
13
+ "start": "webpack serve --config ./webpack.config.js --mode development",
14
+ "build": "webpack --mode production --config ./webpack.config.js",
15
+ "postbuild": "cp package.json dist",
16
+ "format": "prettier --write src/**/*.{tsx,ts,html}"
17
+ },
18
+ "keywords": [],
19
+ "author": "",
20
+ "license": "ISC",
21
+ "description": "",
22
+ "devDependencies": {
23
+ "@babel/preset-env": "^7.27.2",
24
+ "@babel/preset-react": "^7.27.1",
25
+ "@babel/preset-typescript": "^7.27.1",
26
+ "@storybook/addon-docs": "^9.0.10",
27
+ "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
28
+ "@storybook/react-webpack5": "^9.0.10",
29
+ "@svgr/webpack": "^8.1.0",
30
+ "@types/lodash": "^4.17.17",
31
+ "@types/react": "18.2.0",
32
+ "@types/react-dom": "18.2.0",
33
+ "@types/styled-components": "^5.1.34",
34
+ "babel-loader": "^10.0.0",
35
+ "file-loader": "^6.2.0",
36
+ "prettier": "^3.5.3",
37
+ "storybook": "^9.0.10",
38
+ "styled-components": "^6.1.19",
39
+ "ts-loader": "^9.5.2",
40
+ "tsconfig-paths-webpack-plugin": "^4.2.0",
41
+ "webpack": "^5.99.9",
42
+ "webpack-bundle-tracker": "^3.2.1",
43
+ "webpack-cli": "^6.0.1",
44
+ "webpack-dev-server": "^5.2.2"
45
+ },
46
+ "dependencies": {
47
+ "@monaco-editor/react": "^4.7.0",
48
+ "@storybook/react": "^9.0.12",
49
+ "jderobot-commsmanager": "^1.0.1",
50
+ "jszip": "^3.10.1",
51
+ "lodash": "^4.17.21",
52
+ "monaco-editor": "^0.52.2",
53
+ "re-resizable": "^6.11.2",
54
+ "react-spinners": "^0.17.0"
55
+ },
56
+ "peerDependencies": {
57
+ "react": "18.2.0",
58
+ "react-dom": "18.2.0"
59
+ }
60
+ }