@dodona/papyros 0.1.43 → 0.1.51
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/Constants.d.ts +1 -0
- package/dist/InputServiceWorker.d.ts +1 -0
- package/dist/OutputManager.d.ts +1 -0
- package/dist/Papyros.d.ts +3 -1
- package/dist/ProgrammingLanguage.d.ts +0 -2
- package/dist/index.js +1 -1
- package/dist/inputServiceWorker.js +1 -1
- package/dist/util/HTMLShapes.d.ts +1 -2
- package/dist/workers/input/InputWorker.d.ts +8 -0
- package/dist/workers/python/Pyodide.d.ts +9 -0
- package/package.json +4 -2
package/dist/Constants.d.ts
CHANGED
|
@@ -16,4 +16,5 @@ export declare const DEFAULT_PROGRAMMING_LANGUAGE = ProgrammingLanguage.Python;
|
|
|
16
16
|
export declare const EXAMPLE_SELECT_ID = "example-select";
|
|
17
17
|
export declare const LOCALE_SELECT_ID = "locale-select";
|
|
18
18
|
export declare const DEFAULT_LOCALE = "nl";
|
|
19
|
+
export declare const DEFAULT_SERVICE_WORKER = "inputServiceWorker.js";
|
|
19
20
|
export declare const INPUT_RELATIVE_URL = "__papyros_input";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/OutputManager.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface FriendlyError {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class OutputManager {
|
|
12
12
|
outputAreaId: string;
|
|
13
|
+
options: RenderOptions;
|
|
13
14
|
get outputArea(): HTMLElement;
|
|
14
15
|
renderNextElement(html: string): void;
|
|
15
16
|
spanify(text: string, ignoreEmpty?: boolean): string;
|
package/dist/Papyros.d.ts
CHANGED
|
@@ -56,12 +56,14 @@ export declare class Papyros {
|
|
|
56
56
|
getCode(): string;
|
|
57
57
|
startBackend(): Promise<void>;
|
|
58
58
|
static fromElement(config: PapyrosConfig, renderOptions: PapyrosRenderOptions): Papyros;
|
|
59
|
-
static configureInput(allowReload: boolean): Promise<boolean>;
|
|
59
|
+
static configureInput(allowReload: boolean, serviceWorkerPath: string): Promise<boolean>;
|
|
60
60
|
onError(e: PapyrosEvent): void;
|
|
61
61
|
onInput(e: PapyrosEvent): Promise<void>;
|
|
62
62
|
onMessage(e: PapyrosEvent): void;
|
|
63
63
|
runCode(): Promise<void>;
|
|
64
64
|
stop(): Promise<void>;
|
|
65
65
|
render(standAlone: boolean, programmingLanguage: ProgrammingLanguage, locale: string, renderOptions: PapyrosRenderOptions): void;
|
|
66
|
+
static supportsProgrammingLanguage(language: string): boolean;
|
|
67
|
+
static toProgrammingLanguage(language: string): ProgrammingLanguage | undefined;
|
|
66
68
|
}
|
|
67
69
|
export {};
|