@@ -34,8 +34,6 @@ type Props = {
34
34
answerArea ?: PerseusAnswerArea | null ; // related to the question,
35
35
// TODO(CP-4838): Should this be a required prop?
36
36
contentPaths ?: ReadonlyArray < string > ;
37
- /** "Power user" mode. Shows the raw JSON of the question. */
38
- developerMode : boolean ;
39
37
hints ?: ReadonlyArray < Hint > ; // related to the question,
40
38
/** A function which takes a file object (guaranteed to be an image) and
41
39
* a callback, then calls the callback with the url where the image
@@ -45,11 +43,22 @@ type Props = {
45
43
imageUploader ?: ImageUploader ;
46
44
/** The content ID of the AssessmentItem being edited. */
47
45
itemId : string ;
48
- /** Whether the question is displaying as JSON or if it is
49
- * showing the editor itself with the rendering
50
- * Only used in the perseus demos. Consider removing.
46
+ /**
47
+ * If both jsonMode and developerMode are true, an editable text box with
48
+ * the item JSON is displayed. If either jsonMode or developerMode is
49
+ * false, the regular editor GUI is hidden.
50
+ *
51
+ * @see {@linkcode Props.developerMode }
51
52
*/
52
53
jsonMode : boolean ;
54
+ /**
55
+ * If both jsonMode and developerMode are true, an editable text box with
56
+ * the item JSON is displayed. If either jsonMode or developerMode is
57
+ * false, the regular editor GUI is hidden.
58
+ *
59
+ * @see {@linkcode Props.jsonMode }
60
+ */
61
+ developerMode : boolean ;
53
62
/** A function which is called with the new JSON blob of content. */
54
63
onChange : ChangeHandler ;
55
64
/** A function which is called when the preview device changes. */
0 commit comments