princess-python-editor 0.1.0 → 0.1.1

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/index.d.ts CHANGED
@@ -26,6 +26,11 @@ export declare const PythonEditor: import('vue').DefineComponent<import('./Pytho
26
26
  setCode: (code: string) => void;
27
27
  getFiles: () => import('./types').EditorFile[];
28
28
  getActiveFile: () => import('./types').EditorFile;
29
+ writeFile: (path: string, content: string) => Promise<import('./types').FsWriteResult>;
30
+ readFile: (path: string) => Promise<import('./types').FsReadResult>;
31
+ listFiles: (path?: string) => Promise<import('./types').FsListResult>;
32
+ downloadFile: (path: string) => Promise<string | null>;
33
+ clearPersistedState: () => void;
29
34
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
35
  [x: string]: any;
31
36
  } & {
@@ -34,6 +39,7 @@ export declare const PythonEditor: import('vue').DefineComponent<import('./Pytho
34
39
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
35
40
  }>, {
36
41
  height: number | string;
42
+ stdin: string;
37
43
  pyodideUrl: string;
38
44
  modelValue: string;
39
45
  theme: "light" | "dark";
@@ -50,6 +56,9 @@ export declare const PythonEditor: import('vue').DefineComponent<import('./Pytho
50
56
  preload: boolean;
51
57
  fileName: string;
52
58
  language: import('./types').EditorLanguage;
59
+ syncFilesOnRun: boolean;
60
+ storageKey: string;
61
+ preloadPackages: string[];
53
62
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
54
63
  tabsEl: HTMLDivElement;
55
64
  fileInputEl: HTMLInputElement;
@@ -64,4 +73,4 @@ export { PyodideRunner, getRunner, DEFAULT_PYODIDE_URL } from './runtime/Pyodide
64
73
  export type { PyodideRunnerOptions, RunHooks, StatusHandler, OutputHandler, InitErrorHandler, } from './runtime/PyodideRunner';
65
74
  export { createEditor, setErrorLines, MONO_FONT_STACK } from './editor/createEditor';
66
75
  export { makePythonLinter } from './editor/pythonLint';
67
- export type { EditorLanguage, EditorFile, PyodideStatus, OutputStream, OutputLine, PyError, SyntaxIssue, RunResult, InstallResult, RunOutputEvent, FileOpenEvent, } from './types';
76
+ export type { EditorLanguage, EditorFile, PyodideStatus, OutputStream, OutputLine, PyError, SyntaxIssue, RunResult, InstallResult, RunOutputEvent, FileOpenEvent, FsEntry, FsWriteResult, FsReadResult, FsListResult, FsDownloadEvent, } from './types';