princess-python-editor 0.1.1 → 0.1.3
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 +433 -54
- package/dist/PythonEditor.vue.d.ts +50 -5
- package/dist/editor/theme.d.ts +3 -0
- package/dist/icons.d.ts +6 -0
- package/dist/index.cjs.js +41 -5
- package/dist/index.d.ts +29 -2
- package/dist/index.es.js +3483 -852
- package/dist/runtime/PyodideRunner.d.ts +7 -1
- package/dist/runtime/files.d.ts +17 -0
- package/dist/runtime/python.d.ts +36 -0
- package/dist/runtime/sql.d.ts +41 -0
- package/dist/style.css +1 -1
- package/dist/themes.d.ts +12 -0
- package/dist/types.d.ts +198 -0
- package/package.json +3 -3
- package/README.html +0 -1013
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare const PythonEditor: import('vue').DefineComponent<import('./Pytho
|
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
23
23
|
checkSyntax: () => Promise<import('./types').SyntaxIssue | null>;
|
|
24
|
+
executeSql: (sql?: string) => Promise<import('./types').SqlQueryResult | null>;
|
|
25
|
+
getSqlConfig: () => import('./types').SqlConfig;
|
|
26
|
+
openSqlConfig: () => void;
|
|
27
|
+
closeSqlConfig: () => void;
|
|
24
28
|
getEditorView: () => import('@codemirror/view').EditorView | null;
|
|
25
29
|
getCode: () => string;
|
|
26
30
|
setCode: (code: string) => void;
|
|
@@ -30,6 +34,8 @@ export declare const PythonEditor: import('vue').DefineComponent<import('./Pytho
|
|
|
30
34
|
readFile: (path: string) => Promise<import('./types').FsReadResult>;
|
|
31
35
|
listFiles: (path?: string) => Promise<import('./types').FsListResult>;
|
|
32
36
|
downloadFile: (path: string) => Promise<string | null>;
|
|
37
|
+
saveToServer: () => Promise<import('./types').ServerFile | null>;
|
|
38
|
+
refreshServerFiles: () => Promise<void>;
|
|
33
39
|
clearPersistedState: () => void;
|
|
34
40
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
41
|
[x: string]: any;
|
|
@@ -42,7 +48,7 @@ export declare const PythonEditor: import('vue').DefineComponent<import('./Pytho
|
|
|
42
48
|
stdin: string;
|
|
43
49
|
pyodideUrl: string;
|
|
44
50
|
modelValue: string;
|
|
45
|
-
theme:
|
|
51
|
+
theme: import('./types').EditorTheme;
|
|
46
52
|
outputHeight: number | string;
|
|
47
53
|
placeholder: string;
|
|
48
54
|
readOnly: boolean;
|
|
@@ -59,10 +65,21 @@ export declare const PythonEditor: import('vue').DefineComponent<import('./Pytho
|
|
|
59
65
|
syncFilesOnRun: boolean;
|
|
60
66
|
storageKey: string;
|
|
61
67
|
preloadPackages: string[];
|
|
68
|
+
sqlConfig: import('./types').SqlConfigInput;
|
|
69
|
+
sqlExecutor: import('./types').SqlExecutor;
|
|
70
|
+
showSqlConfig: boolean;
|
|
71
|
+
sqlEndpointLocked: boolean;
|
|
72
|
+
filesEndpoint: string;
|
|
73
|
+
filesHeaders: Record<string, string>;
|
|
74
|
+
pythonEndpoint: string;
|
|
75
|
+
pythonHeaders: Record<string, string>;
|
|
76
|
+
runtime: import('./types').PythonRuntime;
|
|
62
77
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
78
|
+
rootEl: HTMLDivElement;
|
|
63
79
|
tabsEl: HTMLDivElement;
|
|
64
80
|
fileInputEl: HTMLInputElement;
|
|
65
81
|
editorEl: HTMLDivElement;
|
|
82
|
+
outputPanelEl: HTMLDivElement;
|
|
66
83
|
outputEl: HTMLPreElement;
|
|
67
84
|
}, HTMLDivElement>;
|
|
68
85
|
export default PythonEditorSfc;
|
|
@@ -73,4 +90,14 @@ export { PyodideRunner, getRunner, DEFAULT_PYODIDE_URL } from './runtime/Pyodide
|
|
|
73
90
|
export type { PyodideRunnerOptions, RunHooks, StatusHandler, OutputHandler, InitErrorHandler, } from './runtime/PyodideRunner';
|
|
74
91
|
export { createEditor, setErrorLines, MONO_FONT_STACK } from './editor/createEditor';
|
|
75
92
|
export { makePythonLinter } from './editor/pythonLint';
|
|
76
|
-
export
|
|
93
|
+
export { EDITOR_THEMES, getThemeOption, isDarkTheme } from './themes';
|
|
94
|
+
export type { EditorThemeOption } from './themes';
|
|
95
|
+
export { runSql, testSqlConnection, listSqlConnections, saveSqlConnection, deleteSqlConnection, normalizeSqlConfig, getDefaultSqlPort, DEFAULT_SQL_CONFIG, SQL_DIALECT_OPTIONS, } from './runtime/sql';
|
|
96
|
+
export type { RunSqlOptions, SqlDialectOption, SqlConnectionApiOptions } from './runtime/sql';
|
|
97
|
+
export { listServerFiles, saveServerFile, readServerFile, deleteServerFile } from './runtime/files';
|
|
98
|
+
export type { FilesApiOptions } from './runtime/files';
|
|
99
|
+
export { runPythonOnServer } from './runtime/python';
|
|
100
|
+
export type { PythonRunClientOptions } from './runtime/python';
|
|
101
|
+
export { createPythonSession, pollPythonSession, sendPythonSessionInput, interruptPythonSession, } from './runtime/python';
|
|
102
|
+
export type { PythonSessionClientOptions } from './runtime/python';
|
|
103
|
+
export type { EditorLanguage, EditorTheme, EditorFile, PyodideStatus, PythonRuntime, PythonRuntimeError, PythonRuntimeResult, PythonSessionState, PythonSessionResult, PythonSessionStartInput, OutputStream, OutputLine, PyError, SyntaxIssue, RunResult, InstallResult, RunOutputEvent, FileOpenEvent, FsEntry, FsWriteResult, FsReadResult, FsListResult, FsDownloadEvent, ServerFile, ServerFileDetail, ServerFileSaveInput, SqlDialect, SqlMode, SqlConnection, SqlConfig, SqlConfigInput, SqlConnectionProfile, SqlConnectionSaveInput, SqlValue, SqlResultSet, SqlError, SqlQueryResult, SqlTestResult, SqlExecuteRequest, SqlExecuteContext, SqlExecutor, } from './types';
|