@dodona/papyros 0.1.955-darkmode → 0.2.0
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/Backend.d.ts +21 -0
- package/dist/BackendEventQueue.d.ts +85 -0
- package/dist/BackendManager.d.ts +8 -2
- package/dist/CodeEditor.d.ts +52 -61
- package/dist/Constants.d.ts +3 -1
- package/dist/InputManager.d.ts +7 -7
- package/dist/Library.js +1 -1
- package/dist/OutputManager.d.ts +2 -1
- package/dist/examples/PythonExamples.d.ts +1 -0
- package/dist/util/Util.d.ts +1 -0
- package/package.json +26 -35
- package/dist/RunListener.d.ts +0 -13
package/dist/OutputManager.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare class OutputManager extends Renderable {
|
|
|
55
55
|
* @param {string} className Optional class name for the span
|
|
56
56
|
* @return {string} String version of the created span
|
|
57
57
|
*/
|
|
58
|
-
spanify
|
|
58
|
+
private spanify;
|
|
59
59
|
/**
|
|
60
60
|
* Display output to the user, based on its content type
|
|
61
61
|
* @param {BackendEvent} output Event containing the output data
|
|
@@ -71,4 +71,5 @@ export declare class OutputManager extends Renderable {
|
|
|
71
71
|
* Clear the contents of the output area
|
|
72
72
|
*/
|
|
73
73
|
reset(): void;
|
|
74
|
+
onRunEnd(): void;
|
|
74
75
|
}
|
package/dist/util/Util.d.ts
CHANGED
|
@@ -38,4 +38,5 @@ export declare function removeSelection(selectId: string): void;
|
|
|
38
38
|
* @return {any} The parsed data
|
|
39
39
|
*/
|
|
40
40
|
export declare function parseData(data: string, contentType?: string): any;
|
|
41
|
+
export declare function downloadResults(data: string, filename: string): void;
|
|
41
42
|
export {};
|
package/package.json
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodona/papyros",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": ".",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@babel/traverse": "^7.16.3",
|
|
8
7
|
"@types/escape-html": "^1.0.1",
|
|
9
8
|
"@types/i18n-js": "^3.8.2",
|
|
10
|
-
"@types/
|
|
11
|
-
"@
|
|
12
|
-
"@typescript-eslint/
|
|
9
|
+
"@types/jest": "27.4.1",
|
|
10
|
+
"@types/serviceworker": "^0.0.42",
|
|
11
|
+
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
12
|
+
"@typescript-eslint/parser": "^5.21.0",
|
|
13
13
|
"autoprefixer": "^10.4.0",
|
|
14
|
-
"bootstrap": "^5.1.2",
|
|
15
14
|
"css-loader": "^6.5.1",
|
|
16
15
|
"eslint": "^7.11.0",
|
|
17
16
|
"eslint-config-google": "^0.14.0",
|
|
18
|
-
"eslint-plugin-flowtype": "^
|
|
17
|
+
"eslint-plugin-flowtype": "^7.0.0",
|
|
19
18
|
"eslint-plugin-import": "^2.22.1",
|
|
20
|
-
"eslint-plugin-jest": "^
|
|
21
|
-
"eslint-webpack-plugin": "^
|
|
22
|
-
"glob": "^7.2.0",
|
|
19
|
+
"eslint-plugin-jest": "^26.1.5",
|
|
20
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
23
21
|
"i18n-extract": "^0.6.7",
|
|
24
|
-
"jest": "
|
|
25
|
-
"jest-junit": "^13.0.0",
|
|
22
|
+
"jest": "27.0.0",
|
|
26
23
|
"postcss": "^8.3.11",
|
|
27
24
|
"postcss-import": "^14.0.2",
|
|
28
25
|
"postcss-loader": "^6.2.0",
|
|
@@ -30,9 +27,9 @@
|
|
|
30
27
|
"style-loader": "^3.3.1",
|
|
31
28
|
"tailwindcss": "^3.0.24",
|
|
32
29
|
"terser-webpack-plugin": "^5.3.1",
|
|
33
|
-
"ts-jest": "^27.
|
|
30
|
+
"ts-jest": "^27.1.4",
|
|
34
31
|
"ts-loader": "^9.2.6",
|
|
35
|
-
"typescript": "^4.
|
|
32
|
+
"typescript": "^4.6.4",
|
|
36
33
|
"url-loader": "^4.1.1",
|
|
37
34
|
"webpack": "^5.70.0",
|
|
38
35
|
"webpack-cli": "^4.9.2",
|
|
@@ -40,20 +37,16 @@
|
|
|
40
37
|
"worker-loader": "^3.0.8"
|
|
41
38
|
},
|
|
42
39
|
"dependencies": {
|
|
43
|
-
"@codemirror/autocomplete": "^0.
|
|
44
|
-
"@codemirror/
|
|
45
|
-
"@codemirror/
|
|
46
|
-
"@codemirror/
|
|
47
|
-
"@codemirror/
|
|
48
|
-
"@codemirror/
|
|
49
|
-
"@codemirror/
|
|
50
|
-
"@codemirror/
|
|
51
|
-
"@codemirror/
|
|
52
|
-
"@codemirror/
|
|
53
|
-
"@codemirror/rectangular-selection": "^0.19.1",
|
|
54
|
-
"@codemirror/search": "^0.19.3",
|
|
55
|
-
"@codemirror/state": "^0.19.6",
|
|
56
|
-
"@codemirror/theme-one-dark": "^0.19.0",
|
|
40
|
+
"@codemirror/autocomplete": "^0.20.0",
|
|
41
|
+
"@codemirror/commands": "^0.20.0",
|
|
42
|
+
"@codemirror/lang-javascript": "^0.20.0",
|
|
43
|
+
"@codemirror/lang-python": "^0.20.0",
|
|
44
|
+
"@codemirror/language": "^0.20.0",
|
|
45
|
+
"@codemirror/lint": "^0.20.2",
|
|
46
|
+
"@codemirror/search": "^0.20.1",
|
|
47
|
+
"@codemirror/state": "^0.20.0",
|
|
48
|
+
"@codemirror/theme-one-dark": "^0.20.0",
|
|
49
|
+
"@codemirror/view": "^0.20.3",
|
|
57
50
|
"comlink": "^4.3.1",
|
|
58
51
|
"comsync": "^0.0.8",
|
|
59
52
|
"escape-html": "^1.0.3",
|
|
@@ -66,15 +59,10 @@
|
|
|
66
59
|
"setup": "bash scripts/setup.sh",
|
|
67
60
|
"build:app": "bash scripts/build_package.sh development",
|
|
68
61
|
"build:library": "bash scripts/build_package.sh production",
|
|
69
|
-
"test": "
|
|
62
|
+
"test": "jest",
|
|
70
63
|
"lint": "eslint --ext '.js' --ext '.ts' src",
|
|
71
64
|
"validate:translations": "node scripts/ValidateTranslations.js"
|
|
72
65
|
},
|
|
73
|
-
"babel": {
|
|
74
|
-
"presets": [
|
|
75
|
-
"@babel/preset-typescript"
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
66
|
"description": "Scratchpad for multiple programming languages in the browser.",
|
|
79
67
|
"repository": {
|
|
80
68
|
"type": "git",
|
|
@@ -82,7 +70,10 @@
|
|
|
82
70
|
},
|
|
83
71
|
"keywords": [
|
|
84
72
|
"programming",
|
|
85
|
-
"scratchpad"
|
|
73
|
+
"scratchpad",
|
|
74
|
+
"Dodona",
|
|
75
|
+
"Python",
|
|
76
|
+
"Pyodide"
|
|
86
77
|
],
|
|
87
78
|
"author": "Winnie De Ridder",
|
|
88
79
|
"license": "MIT",
|
package/dist/RunListener.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for components that maintain state based on runs of code
|
|
3
|
-
*/
|
|
4
|
-
export interface RunListener {
|
|
5
|
-
/**
|
|
6
|
-
* Inform this listener that a new run started
|
|
7
|
-
*/
|
|
8
|
-
onRunStart(): void;
|
|
9
|
-
/**
|
|
10
|
-
* Inform this listener that the run ended
|
|
11
|
-
*/
|
|
12
|
-
onRunEnd(): void;
|
|
13
|
-
}
|