@examind/block-types 0.1.40 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-types",
3
- "version": "0.1.40",
3
+ "version": "0.2.0",
4
4
  "@comment version": [
5
5
  "Don't specify package version here. It will be injected by publish workflow."
6
6
  ],
@@ -1,5 +1,7 @@
1
1
  export * from './nodes/CustomQuestionNode';
2
2
  export * from './nodes/EssayQuestionNode';
3
+ export * from './nodes/ExcelQuestionNode';
4
+ export * from './nodes/ExcelWorksheetLinkNode';
3
5
  export * from './nodes/FillInTheBlankQuestionNode';
4
6
  export * from './nodes/FillInTheBlankSpaceNode';
5
7
  export * from './nodes/FinancialStatementQuestionNode';
@@ -0,0 +1,62 @@
1
+ import {
2
+ type SerializedEditor,
3
+ type SerializedLexicalNode,
4
+ type Spread,
5
+ } from '../../lexical';
6
+
7
+ export type SerializedExcelQuestionDataTransformationParameters = {
8
+ name: string;
9
+ };
10
+
11
+ export type SerializedExcelQuestionDataTransformation = {
12
+ id: string;
13
+ type: string;
14
+ parameters: SerializedExcelQuestionDataTransformationParameters;
15
+ };
16
+
17
+ export type SerializedExcelQuestionDataPartLoadActionParameters = {
18
+ name: string;
19
+ visibility: string;
20
+ };
21
+
22
+ export type SerializedExcelQuestionDataPartLoadAction = {
23
+ id: string;
24
+ type: string;
25
+ parameters: SerializedExcelQuestionDataPartLoadActionParameters;
26
+ };
27
+
28
+ export type SerializedExcelQuestionDataPartTaskStep = {
29
+ id: string;
30
+ description: SerializedEditor;
31
+ };
32
+
33
+ export type SerializedExcelQuestionDataPartTask = {
34
+ id: string;
35
+ instructions: SerializedEditor;
36
+ steps: Array<SerializedExcelQuestionDataPartTaskStep>;
37
+ };
38
+
39
+ export type SerializedExcelQuestionDataPart = {
40
+ id: string;
41
+ objective: SerializedEditor;
42
+ instructions: SerializedEditor;
43
+ onLoadActions: Array<SerializedExcelQuestionDataPartLoadAction>;
44
+ onNextActions: Array<any>;
45
+ tasks: Array<SerializedExcelQuestionDataPartTask>;
46
+ };
47
+
48
+ export type SerializedExcelQuestionData = {
49
+ sourceFileName: string;
50
+ transformations: Array<SerializedExcelQuestionDataTransformation>;
51
+ parts: Array<SerializedExcelQuestionDataPart>;
52
+ };
53
+
54
+ export type SerializedExcelQuestionNode = Spread<
55
+ {
56
+ id: string;
57
+ points: number;
58
+ data: SerializedExcelQuestionData;
59
+ active: string;
60
+ },
61
+ SerializedLexicalNode
62
+ >;
@@ -0,0 +1,8 @@
1
+ import { SerializedTextNode, Spread } from '../../lexical';
2
+
3
+ export type SerializedExcelWorksheetLinkNode = Spread<
4
+ {
5
+ dataName: string;
6
+ },
7
+ SerializedTextNode
8
+ >;