@dodona/papyros 0.1.954-darkmode → 0.1.955-darkmode
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/Library.js +1 -1
- package/dist/OutputManager.d.ts +2 -1
- package/dist/Papyros.d.ts +4 -4
- package/package.json +1 -1
package/dist/OutputManager.d.ts
CHANGED
|
@@ -45,8 +45,9 @@ export declare class OutputManager extends Renderable {
|
|
|
45
45
|
/**
|
|
46
46
|
* Render an element in the next position of the output area
|
|
47
47
|
* @param {string} html Safe string version of the next child to render
|
|
48
|
+
* @param {boolean} isNewElement Whether this a newly generated element
|
|
48
49
|
*/
|
|
49
|
-
renderNextElement(html: string): void;
|
|
50
|
+
renderNextElement(html: string, isNewElement?: boolean): void;
|
|
50
51
|
/**
|
|
51
52
|
* Convert a piece of text to a span element for displaying
|
|
52
53
|
* @param {string} text The text content for the span
|
package/dist/Papyros.d.ts
CHANGED
|
@@ -24,6 +24,10 @@ interface PapyrosConfig {
|
|
|
24
24
|
* The InputMode to use
|
|
25
25
|
*/
|
|
26
26
|
inputMode: InputMode;
|
|
27
|
+
/**
|
|
28
|
+
* The selected code example
|
|
29
|
+
*/
|
|
30
|
+
example?: string;
|
|
27
31
|
}
|
|
28
32
|
/**
|
|
29
33
|
* Options for rendering Papyros
|
|
@@ -70,10 +74,6 @@ export declare class Papyros extends Renderable<PapyrosRenderOptions> {
|
|
|
70
74
|
* Component to handle output generated by the user's code
|
|
71
75
|
*/
|
|
72
76
|
outputManager: OutputManager;
|
|
73
|
-
/**
|
|
74
|
-
* Whether this instance has been launched
|
|
75
|
-
*/
|
|
76
|
-
private launched;
|
|
77
77
|
/**
|
|
78
78
|
* Construct a new Papyros instance
|
|
79
79
|
* @param {PapyrosConfig} config Properties to configure this instance
|