@pie-element/graphing-solution-set 7.0.4-next.20261011174919 → 7.0.4
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/author/configure.d.ts +23 -13
- package/dist/author/configure.js +46 -58
- package/dist/author/correct-response.d.ts +1 -0
- package/dist/author/correct-response.js +1 -0
- package/dist/author/defaults.d.ts +138 -60
- package/dist/author/graphing-config.d.ts +1 -0
- package/dist/author/graphing-config.js +1 -0
- package/dist/author/index.d.ts +15 -49
- package/dist/author/index.js +5 -2
- package/dist/browser/author/index.js +77 -85
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +57 -55
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/editor-runtime/author/index.js +77 -85
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js +57 -55
- package/dist/browser/editor-runtime/controller/index.js.map +1 -1
- package/dist/controller/defaults.d.ts +19 -18
- package/dist/controller/index.d.ts +45 -13
- package/dist/controller/index.js +16 -12
- package/dist/controller/utils.d.ts +17 -11
- package/dist/controller/utils.js +28 -30
- package/dist/index.d.ts +1 -0
- package/dist/schemas/configuration.schema.json +561 -0
- package/dist/schemas/model.schema.json +744 -0
- package/dist/schemas/session.schema.json +126 -0
- package/dist/types.d.ts +349 -0
- package/package.json +18 -14
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/graphing-solution-set@7.0.4/dist/schemas/session.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "Identifier of the session"
|
|
9
|
+
},
|
|
10
|
+
"element": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The element the session belongs to"
|
|
13
|
+
},
|
|
14
|
+
"answer": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"$ref": "#/definitions/Mark"
|
|
18
|
+
},
|
|
19
|
+
"description": "The lines the student drew and the section picked as the solution set"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"description": "A student response",
|
|
23
|
+
"definitions": {
|
|
24
|
+
"Mark": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"type": {
|
|
28
|
+
"$ref": "#/definitions/MarkType",
|
|
29
|
+
"description": "Indicates type of mark"
|
|
30
|
+
},
|
|
31
|
+
"building": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "Indicates if mark is in build process"
|
|
34
|
+
},
|
|
35
|
+
"from": {
|
|
36
|
+
"$ref": "#/definitions/MarkPoint",
|
|
37
|
+
"description": "Indicates where the line starts if type is line"
|
|
38
|
+
},
|
|
39
|
+
"to": {
|
|
40
|
+
"$ref": "#/definitions/MarkPoint",
|
|
41
|
+
"description": "Indicates where the line ends if type is line"
|
|
42
|
+
},
|
|
43
|
+
"fill": {
|
|
44
|
+
"$ref": "#/definitions/LineType",
|
|
45
|
+
"description": "Line type of a line mark, copied from the line's `gssLineData` setting"
|
|
46
|
+
},
|
|
47
|
+
"points": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"$ref": "#/definitions/MarkPoint"
|
|
51
|
+
},
|
|
52
|
+
"description": "Indicates all mark's points if type is polygon"
|
|
53
|
+
},
|
|
54
|
+
"closed": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"description": "Indicates if mark is closed if type is polygon"
|
|
57
|
+
},
|
|
58
|
+
"isSolution": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"description": "Indicates if a polygon mark is the selected solution set"
|
|
61
|
+
},
|
|
62
|
+
"middle": {
|
|
63
|
+
"$ref": "#/definitions/MarkPoint",
|
|
64
|
+
"description": "Labelled midpoint of a line or polygon mark"
|
|
65
|
+
},
|
|
66
|
+
"x": {
|
|
67
|
+
"type": "number",
|
|
68
|
+
"description": "Not read by this element or `@pie-lib/graphing-solution-set`."
|
|
69
|
+
},
|
|
70
|
+
"y": {
|
|
71
|
+
"type": "number",
|
|
72
|
+
"description": "Not read by this element or `@pie-lib/graphing-solution-set`."
|
|
73
|
+
},
|
|
74
|
+
"label": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "Not read by this element or `@pie-lib/graphing-solution-set`."
|
|
77
|
+
},
|
|
78
|
+
"showLabel": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"description": "Not read by this element or `@pie-lib/graphing-solution-set`."
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"type"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"MarkType": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"line",
|
|
91
|
+
"polygon"
|
|
92
|
+
],
|
|
93
|
+
"description": "Kind of mark: one of the item's lines, or a section of the graph picked as the solution set."
|
|
94
|
+
},
|
|
95
|
+
"MarkPoint": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"x": {
|
|
99
|
+
"type": "number",
|
|
100
|
+
"description": "Indicates x coordinate"
|
|
101
|
+
},
|
|
102
|
+
"y": {
|
|
103
|
+
"type": "number",
|
|
104
|
+
"description": "Indicates y coordinate"
|
|
105
|
+
},
|
|
106
|
+
"label": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "Label shown next to the point"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"x",
|
|
113
|
+
"y"
|
|
114
|
+
],
|
|
115
|
+
"description": "A point of a mark, optionally labelled."
|
|
116
|
+
},
|
|
117
|
+
"LineType": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"enum": [
|
|
120
|
+
"Solid",
|
|
121
|
+
"Dashed"
|
|
122
|
+
],
|
|
123
|
+
"description": "How a line is drawn: solid for an inclusive inequality, dashed for a strict one."
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import type { ConfigureLanguageOptions, ConfigureMathMLProp, ConfigureMaxImageDimensionsProp, ConfigureProp, ConfigurePropWithEnabled, ContentDimensions, ExtraCSSRules, PieModel } from '@pie-element/shared-types';
|
|
2
|
+
/** Kind of mark: one of the item's lines, or a section of the graph picked as the solution set. */
|
|
3
|
+
export type MarkType = 'line' | 'polygon';
|
|
4
|
+
/** How a line is drawn: solid for an inclusive inequality, dashed for a strict one. */
|
|
5
|
+
export type LineType = 'Solid' | 'Dashed';
|
|
6
|
+
export interface Point {
|
|
7
|
+
/** Indicates x coordinate */
|
|
8
|
+
x: number;
|
|
9
|
+
/** Indicates y coordinate */
|
|
10
|
+
y: number;
|
|
11
|
+
}
|
|
12
|
+
/** A point of a mark, optionally labelled. */
|
|
13
|
+
export interface MarkPoint extends Point {
|
|
14
|
+
/** Label shown next to the point */
|
|
15
|
+
label?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface Mark {
|
|
18
|
+
/** Indicates type of mark */
|
|
19
|
+
type: MarkType;
|
|
20
|
+
/** Indicates if mark is in build process */
|
|
21
|
+
building?: boolean;
|
|
22
|
+
/** Indicates where the line starts if type is line */
|
|
23
|
+
from?: MarkPoint;
|
|
24
|
+
/** Indicates where the line ends if type is line */
|
|
25
|
+
to?: MarkPoint;
|
|
26
|
+
/** Line type of a line mark, copied from the line's `gssLineData` setting */
|
|
27
|
+
fill?: LineType;
|
|
28
|
+
/** Indicates all mark's points if type is polygon */
|
|
29
|
+
points?: MarkPoint[];
|
|
30
|
+
/** Indicates if mark is closed if type is polygon */
|
|
31
|
+
closed?: boolean;
|
|
32
|
+
/** Indicates if a polygon mark is the selected solution set */
|
|
33
|
+
isSolution?: boolean;
|
|
34
|
+
/** Labelled midpoint of a line or polygon mark */
|
|
35
|
+
middle?: MarkPoint;
|
|
36
|
+
/** Not read by this element or `@pie-lib/graphing-solution-set`. */
|
|
37
|
+
x?: number;
|
|
38
|
+
/** Not read by this element or `@pie-lib/graphing-solution-set`. */
|
|
39
|
+
y?: number;
|
|
40
|
+
/** Not read by this element or `@pie-lib/graphing-solution-set`. */
|
|
41
|
+
label?: string;
|
|
42
|
+
/** Not read by this element or `@pie-lib/graphing-solution-set`. */
|
|
43
|
+
showLabel?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface Answer {
|
|
46
|
+
/** Indicates name of answer */
|
|
47
|
+
name: string;
|
|
48
|
+
/** Indicates marks for the answer */
|
|
49
|
+
marks: Mark[];
|
|
50
|
+
}
|
|
51
|
+
/** The correct answer, plus alternates keyed `alternate<N>`, e.g. `alternate1`; scoring reads alternates too. */
|
|
52
|
+
export interface GraphingSolutionSetAnswers {
|
|
53
|
+
/** The correct answer */
|
|
54
|
+
correctAnswer: Answer;
|
|
55
|
+
[alternate: string]: Answer;
|
|
56
|
+
}
|
|
57
|
+
export interface Arrows {
|
|
58
|
+
/** Indicates if left arrow is enabled */
|
|
59
|
+
left: boolean;
|
|
60
|
+
/** Indicates if right arrow is enabled */
|
|
61
|
+
right: boolean;
|
|
62
|
+
/** Indicates if up arrow is enabled */
|
|
63
|
+
up: boolean;
|
|
64
|
+
/** Indicates if down arrow is enabled */
|
|
65
|
+
down: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface GraphSettings {
|
|
68
|
+
/** Min value */
|
|
69
|
+
min: number;
|
|
70
|
+
/** Max value */
|
|
71
|
+
max: number;
|
|
72
|
+
/** Padding value */
|
|
73
|
+
padding?: number;
|
|
74
|
+
/** Step value */
|
|
75
|
+
step: number;
|
|
76
|
+
/** Label step value */
|
|
77
|
+
labelStep: number;
|
|
78
|
+
/** Axis Label */
|
|
79
|
+
axisLabel: string;
|
|
80
|
+
}
|
|
81
|
+
export interface Graph {
|
|
82
|
+
/** Width for graph representation */
|
|
83
|
+
width: number;
|
|
84
|
+
/** Height for graph representation */
|
|
85
|
+
height: number;
|
|
86
|
+
}
|
|
87
|
+
export interface Labels {
|
|
88
|
+
/** Label for top side of the graph */
|
|
89
|
+
top?: string;
|
|
90
|
+
/** Label for bottom side of the graph */
|
|
91
|
+
bottom?: string;
|
|
92
|
+
/** Label for left side of the graph */
|
|
93
|
+
left?: string;
|
|
94
|
+
/** Label for right side of the graph */
|
|
95
|
+
right?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface LineTypeSetting {
|
|
98
|
+
/** Indicates line type */
|
|
99
|
+
lineType: LineType;
|
|
100
|
+
}
|
|
101
|
+
/** The item's lines and the sections they divide the graph into. */
|
|
102
|
+
export interface GssLineData {
|
|
103
|
+
/** Indicates number of lines for GSS item: 1 or 2 */
|
|
104
|
+
numberOfLines: number;
|
|
105
|
+
/** Indicates selected tool default is lineA */
|
|
106
|
+
selectedTool: 'lineA' | 'lineB' | 'solutionSet';
|
|
107
|
+
/** Indicates array of polygons, each a list of points, formed by intersection of lines drawn */
|
|
108
|
+
sections?: Point[][];
|
|
109
|
+
/** Settings for the first line */
|
|
110
|
+
lineA: LineTypeSetting;
|
|
111
|
+
/** Settings for the second line; present when there are 2 lines */
|
|
112
|
+
lineB?: LineTypeSetting;
|
|
113
|
+
}
|
|
114
|
+
/** Model for the Graphing Solution Set Interaction */
|
|
115
|
+
export interface GraphingSolutionSetModel extends PieModel {
|
|
116
|
+
/** Indicates marks that are set as answers */
|
|
117
|
+
answers: GraphingSolutionSetAnswers;
|
|
118
|
+
/** Indicates if arrows are enabled; a boolean sets all four arrows (older models) */
|
|
119
|
+
arrows?: Arrows | boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Indicates if coordinates of a point are displayed on hover
|
|
122
|
+
* @default false
|
|
123
|
+
*/
|
|
124
|
+
coordinatesOnHover?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Indicates the default grid configuration: an index into the configuration's `gridConfigurations`
|
|
127
|
+
* @default 0
|
|
128
|
+
* @minimum 0
|
|
129
|
+
*/
|
|
130
|
+
defaultGridConfiguration?: number;
|
|
131
|
+
/** Indicates if the graph dimensions are displayed */
|
|
132
|
+
dimensionsEnabled?: boolean;
|
|
133
|
+
/** Indicates domain settings for the graph */
|
|
134
|
+
domain?: GraphSettings;
|
|
135
|
+
/** Host-supplied CSS scoped to the element */
|
|
136
|
+
extraCSSRules?: ExtraCSSRules;
|
|
137
|
+
/** Indicates the graph line model */
|
|
138
|
+
graph?: Graph;
|
|
139
|
+
/** Indicates the item's lines and the sections they form */
|
|
140
|
+
gssLineData?: GssLineData;
|
|
141
|
+
/**
|
|
142
|
+
* Indicates if the graph axes and labels are enabled
|
|
143
|
+
* @default true
|
|
144
|
+
*/
|
|
145
|
+
includeAxes?: boolean;
|
|
146
|
+
/** Not read: the author copies it from the selected grid configuration. */
|
|
147
|
+
label?: string;
|
|
148
|
+
/** Indicates labels */
|
|
149
|
+
labels?: Labels;
|
|
150
|
+
/**
|
|
151
|
+
* Indicates if the graph labels are displayed
|
|
152
|
+
* @default true
|
|
153
|
+
*/
|
|
154
|
+
labelsEnabled?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Indicates the language of the component
|
|
157
|
+
* Supported options: en, es, en_US, en-US, es_ES, es-ES, es_MX, es-MX
|
|
158
|
+
*/
|
|
159
|
+
language?: string;
|
|
160
|
+
/** Not read by this element; the defaults carry it. */
|
|
161
|
+
marks?: Mark[];
|
|
162
|
+
/** Not read by this element; the author's padding toggle writes it. */
|
|
163
|
+
padding?: boolean;
|
|
164
|
+
/** Indicates prompt value */
|
|
165
|
+
prompt?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Indicates if the prompt is enabled
|
|
168
|
+
* @default true
|
|
169
|
+
*/
|
|
170
|
+
promptEnabled?: boolean;
|
|
171
|
+
/** Indicates range settings for the graph */
|
|
172
|
+
range?: GraphSettings;
|
|
173
|
+
/** Indicates rationale for the answer */
|
|
174
|
+
rationale?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Indicates if Rationale are enabled
|
|
177
|
+
* @default true
|
|
178
|
+
*/
|
|
179
|
+
rationaleEnabled?: boolean;
|
|
180
|
+
/** Indicates if Rubric is enabled */
|
|
181
|
+
rubricEnabled?: boolean;
|
|
182
|
+
/** Indicates scoring type */
|
|
183
|
+
scoringType?: 'dichotomous' | 'partial scoring';
|
|
184
|
+
/** Indicates if spellcheck is enabled for the author. Default value is true */
|
|
185
|
+
spellCheckEnabled?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Indicates if some domain values will be synched to the range values
|
|
188
|
+
* @default false
|
|
189
|
+
*/
|
|
190
|
+
standardGrid?: boolean;
|
|
191
|
+
/** Not read by this element. */
|
|
192
|
+
studentInstructions?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Indicates if Student Instructions are enabled
|
|
195
|
+
* @default true
|
|
196
|
+
*/
|
|
197
|
+
studentInstructionsEnabled?: boolean;
|
|
198
|
+
/** Indicates teacher instructions */
|
|
199
|
+
teacherInstructions?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Indicates if Teacher Instructions are enabled
|
|
202
|
+
* @default true
|
|
203
|
+
*/
|
|
204
|
+
teacherInstructionsEnabled?: boolean;
|
|
205
|
+
/** Indicates graph title */
|
|
206
|
+
title?: string;
|
|
207
|
+
/** Indicates if the graph title is displayed */
|
|
208
|
+
titleEnabled?: boolean;
|
|
209
|
+
}
|
|
210
|
+
/** A student response */
|
|
211
|
+
export interface GraphingSolutionSetSession {
|
|
212
|
+
/** Identifier of the session */
|
|
213
|
+
id?: string;
|
|
214
|
+
/** The element the session belongs to */
|
|
215
|
+
element?: string;
|
|
216
|
+
/** The lines the student drew and the section picked as the solution set */
|
|
217
|
+
answer?: Mark[];
|
|
218
|
+
}
|
|
219
|
+
export interface ArrowsConfigProp extends ConfigureProp {
|
|
220
|
+
/** Configuration for the left arrow checkbox */
|
|
221
|
+
left?: ConfigureProp;
|
|
222
|
+
/** Configuration for the right arrow checkbox */
|
|
223
|
+
right?: ConfigureProp;
|
|
224
|
+
/** Configuration for the up arrow checkbox */
|
|
225
|
+
up?: ConfigureProp;
|
|
226
|
+
/** Configuration for the down arrow checkbox */
|
|
227
|
+
down?: ConfigureProp;
|
|
228
|
+
}
|
|
229
|
+
export interface DimensionsConfigProp extends ConfigurePropWithEnabled {
|
|
230
|
+
/** Minimum graph dimension, in pixels */
|
|
231
|
+
min?: number;
|
|
232
|
+
/** Maximum graph dimension, in pixels */
|
|
233
|
+
max?: number;
|
|
234
|
+
/** Step between graph dimensions, in pixels */
|
|
235
|
+
step?: number;
|
|
236
|
+
}
|
|
237
|
+
export interface GridPanelConfigProp {
|
|
238
|
+
/** Label for the field in the Grid Setup Panel */
|
|
239
|
+
label?: string;
|
|
240
|
+
/** Indicates if the field is displayed in the Grid Setup Panel */
|
|
241
|
+
enabled?: boolean;
|
|
242
|
+
}
|
|
243
|
+
export interface AuthoringConfigProp extends ConfigurePropWithEnabled {
|
|
244
|
+
/** Indicates if the "Include axes and labels?" toggle is displayed in the Grid Setup Panel */
|
|
245
|
+
includeAxesEnabled?: boolean;
|
|
246
|
+
/** Indicates if the "Constrain to standard coordinate grid?" toggle is displayed in the Grid Setup Panel */
|
|
247
|
+
standardGridEnabled?: boolean;
|
|
248
|
+
/** Min value configuration */
|
|
249
|
+
min?: GridPanelConfigProp;
|
|
250
|
+
/** Max value configuration */
|
|
251
|
+
max?: GridPanelConfigProp;
|
|
252
|
+
/** Axis label configuration */
|
|
253
|
+
axisLabel?: GridPanelConfigProp;
|
|
254
|
+
/** Step value configuration */
|
|
255
|
+
step?: GridPanelConfigProp;
|
|
256
|
+
/** Label step value configuration */
|
|
257
|
+
labelStep?: GridPanelConfigProp;
|
|
258
|
+
}
|
|
259
|
+
/** A preset grid an author picks from; selecting it copies these values into the model. */
|
|
260
|
+
export interface GridConfiguration {
|
|
261
|
+
/** Name shown in the grid configuration picker */
|
|
262
|
+
label?: string;
|
|
263
|
+
/** Arrows for the grid */
|
|
264
|
+
arrows?: Arrows;
|
|
265
|
+
/** Domain settings for the grid */
|
|
266
|
+
domain?: GraphSettings;
|
|
267
|
+
/** Graph dimensions for the grid */
|
|
268
|
+
graph?: Graph;
|
|
269
|
+
/** Indicates if the graph axes and labels are enabled */
|
|
270
|
+
includeAxes?: boolean;
|
|
271
|
+
/** Labels for the grid */
|
|
272
|
+
labels?: Labels;
|
|
273
|
+
/** Indicates if padding is enabled */
|
|
274
|
+
padding?: boolean;
|
|
275
|
+
/** Range settings for the grid */
|
|
276
|
+
range?: GraphSettings;
|
|
277
|
+
/** Indicates if domain values are synched to the range values */
|
|
278
|
+
standardGrid?: boolean;
|
|
279
|
+
/** Graph title */
|
|
280
|
+
title?: string;
|
|
281
|
+
}
|
|
282
|
+
export interface LabelsConfigProp extends ConfigurePropWithEnabled {
|
|
283
|
+
/** Placeholder for the top label */
|
|
284
|
+
top?: string;
|
|
285
|
+
/** Placeholder for the right label */
|
|
286
|
+
right?: string;
|
|
287
|
+
/** Placeholder for the bottom label */
|
|
288
|
+
bottom?: string;
|
|
289
|
+
/** Placeholder for the left label */
|
|
290
|
+
left?: string;
|
|
291
|
+
}
|
|
292
|
+
export interface TitleConfigProp extends ConfigurePropWithEnabled {
|
|
293
|
+
/** Placeholder for the graph title */
|
|
294
|
+
placeholder?: string;
|
|
295
|
+
}
|
|
296
|
+
export interface GraphingSolutionSetConfiguration {
|
|
297
|
+
/** Grid Setup Panel configuration */
|
|
298
|
+
authoring?: AuthoringConfigProp;
|
|
299
|
+
/** Arrows configuration */
|
|
300
|
+
arrows?: ArrowsConfigProp;
|
|
301
|
+
/** Coordinates configuration */
|
|
302
|
+
coordinatesOnHover?: ConfigureProp;
|
|
303
|
+
/** Minimum and maximum dimensions of the authoring view */
|
|
304
|
+
contentDimensions?: ContentDimensions;
|
|
305
|
+
/** Graph dimensions configuration */
|
|
306
|
+
graphDimensions?: DimensionsConfigProp;
|
|
307
|
+
/** Grid default configurations */
|
|
308
|
+
gridConfigurations?: GridConfiguration[];
|
|
309
|
+
/** Instructions shown at the top of the authoring view */
|
|
310
|
+
instruction?: ConfigureProp;
|
|
311
|
+
/** Padding configuration */
|
|
312
|
+
padding?: ConfigureProp;
|
|
313
|
+
/** Labels configuration */
|
|
314
|
+
labels?: LabelsConfigProp;
|
|
315
|
+
/** Language configuration */
|
|
316
|
+
language?: ConfigurePropWithEnabled;
|
|
317
|
+
/** Language choices configuration Only available if language is enabled */
|
|
318
|
+
languageChoices?: ConfigureLanguageOptions;
|
|
319
|
+
/** Configuration for the prompt */
|
|
320
|
+
prompt?: ConfigureProp;
|
|
321
|
+
/** Configuration for the rationale */
|
|
322
|
+
rationale?: ConfigureProp;
|
|
323
|
+
/** Indicates if the settings panel is not available */
|
|
324
|
+
settingsPanelDisabled?: boolean;
|
|
325
|
+
/** Configuration for the author's spellcheck */
|
|
326
|
+
spellCheck?: ConfigurePropWithEnabled;
|
|
327
|
+
/** Scoring Type configuration */
|
|
328
|
+
scoringType?: ConfigureProp;
|
|
329
|
+
/** Student Instructions configuration */
|
|
330
|
+
studentInstructions?: ConfigureProp;
|
|
331
|
+
/** Teacher Instructions configuration */
|
|
332
|
+
teacherInstructions?: ConfigureProp;
|
|
333
|
+
/** Graph title configuration */
|
|
334
|
+
title?: TitleConfigProp;
|
|
335
|
+
/** Maximum image width for input fields */
|
|
336
|
+
maxImageWidth?: ConfigureMaxImageDimensionsProp;
|
|
337
|
+
/** Maximum image height for input fields */
|
|
338
|
+
maxImageHeight?: ConfigureMaxImageDimensionsProp;
|
|
339
|
+
/** Rubric configuration - only relevant in environments that use pie-player-components */
|
|
340
|
+
withRubric?: ConfigureProp;
|
|
341
|
+
/** Configuration for editable-html */
|
|
342
|
+
mathMlOptions?: ConfigureMathMLProp;
|
|
343
|
+
/** Not read by this element. */
|
|
344
|
+
showPrompt?: boolean;
|
|
345
|
+
/** Not read by this element. */
|
|
346
|
+
promptLabel?: string;
|
|
347
|
+
/** Not read by this element. */
|
|
348
|
+
settingsPartialScoring?: boolean;
|
|
349
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/graphing-solution-set",
|
|
3
|
-
"version": "7.0.4
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,21 +11,22 @@
|
|
|
11
11
|
"@emotion/react": "^11.14.0",
|
|
12
12
|
"@mui/icons-material": "^7.3.4",
|
|
13
13
|
"@mui/material": "^7.3.4",
|
|
14
|
-
"@pie-lib/config-ui": "14.0.4
|
|
15
|
-
"@pie-lib/correct-answer-toggle": "5.0.4
|
|
16
|
-
"@pie-lib/graphing-solution-set": "5.0.4
|
|
17
|
-
"@pie-lib/render-ui": "8.0.4
|
|
18
|
-
"@pie-lib/translator": "5.0.
|
|
14
|
+
"@pie-lib/config-ui": "14.0.4",
|
|
15
|
+
"@pie-lib/correct-answer-toggle": "5.0.4",
|
|
16
|
+
"@pie-lib/graphing-solution-set": "5.0.4",
|
|
17
|
+
"@pie-lib/render-ui": "8.0.4",
|
|
18
|
+
"@pie-lib/translator": "5.0.1",
|
|
19
19
|
"debug": "^4.1.1",
|
|
20
20
|
"prop-types": "^15.8.1",
|
|
21
|
-
"@pie-lib/editable-html-tip-tap": "3.0.4
|
|
22
|
-
"@pie-element/shared-lodash": "0.1.
|
|
23
|
-
"@pie-element/shared-configure-events": "0.1.
|
|
24
|
-
"@pie-element/shared-math-rendering-mathjax": "0.1.5
|
|
25
|
-
"@pie-element/shared-player-events": "0.1.
|
|
21
|
+
"@pie-lib/editable-html-tip-tap": "3.0.4",
|
|
22
|
+
"@pie-element/shared-lodash": "0.1.2",
|
|
23
|
+
"@pie-element/shared-configure-events": "0.1.1",
|
|
24
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.5",
|
|
25
|
+
"@pie-element/shared-player-events": "0.1.1",
|
|
26
26
|
"clsx": "^2.1.1",
|
|
27
27
|
"react": "^18.2.0",
|
|
28
|
-
"react-dom": "^18.2.0"
|
|
28
|
+
"react-dom": "^18.2.0",
|
|
29
|
+
"@pie-element/shared-types": "0.2.1"
|
|
29
30
|
},
|
|
30
31
|
"exports": {
|
|
31
32
|
".": {
|
|
@@ -68,6 +69,9 @@
|
|
|
68
69
|
"types": "./dist/runtime-support.d.ts",
|
|
69
70
|
"default": "./dist/runtime-support.js"
|
|
70
71
|
},
|
|
72
|
+
"./schemas/model.schema.json": "./dist/schemas/model.schema.json",
|
|
73
|
+
"./schemas/configuration.schema.json": "./dist/schemas/configuration.schema.json",
|
|
74
|
+
"./schemas/session.schema.json": "./dist/schemas/session.schema.json",
|
|
71
75
|
"./package.json": "./package.json"
|
|
72
76
|
},
|
|
73
77
|
"type": "module",
|
|
@@ -81,7 +85,7 @@
|
|
|
81
85
|
],
|
|
82
86
|
"sideEffects": false,
|
|
83
87
|
"scripts": {
|
|
84
|
-
"build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config ../../../tools/vite/element-browser-editor-runtime.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
88
|
+
"build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config ../../../tools/vite/element-browser-editor-runtime.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly && bun ../../../tools/schemas/build.ts",
|
|
85
89
|
"dev": "bun x vite",
|
|
86
90
|
"demo": "bun x vite --mode demo",
|
|
87
91
|
"test": "bun x vitest run"
|
|
@@ -95,7 +99,7 @@
|
|
|
95
99
|
},
|
|
96
100
|
"browserEditorRuntime": {
|
|
97
101
|
"name": "@pie-element/shared-editor-runtime",
|
|
98
|
-
"version": "0.1.
|
|
102
|
+
"version": "0.1.2",
|
|
99
103
|
"views": {
|
|
100
104
|
"delivery": "editor-runtime/delivery",
|
|
101
105
|
"author": "editor-runtime/author",
|