@digabi/exam-engine-core 22.1.1-alpha.0 → 22.1.3-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/EditableGradingInstruction.test.js +26 -26
- package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -1
- package/dist/__tests__/editor/NBSP.test.js +17 -1
- package/dist/__tests__/editor/NBSP.test.js.map +1 -1
- package/dist/__tests__/editor/no-wrap.test.d.ts +2 -0
- package/dist/__tests__/editor/no-wrap.test.d.ts.map +1 -0
- package/dist/__tests__/editor/no-wrap.test.js +43 -0
- package/dist/__tests__/editor/no-wrap.test.js.map +1 -0
- package/dist/__tests__/editor/noWrap.test.d.ts +2 -0
- package/dist/__tests__/editor/noWrap.test.d.ts.map +1 -0
- package/dist/__tests__/editor/noWrap.test.js +62 -0
- package/dist/__tests__/editor/noWrap.test.js.map +1 -0
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.js +7 -4
- package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/editor/NBSP.d.ts +4 -0
- package/dist/components/grading-instructions/editor/NBSP.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/NBSP.js +17 -0
- package/dist/components/grading-instructions/editor/NBSP.js.map +1 -0
- package/dist/components/grading-instructions/editor/Table.js +1 -1
- package/dist/components/grading-instructions/editor/Table.js.map +1 -1
- package/dist/components/grading-instructions/editor/noWrap.d.ts +3 -0
- package/dist/components/grading-instructions/editor/noWrap.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/noWrap.js +13 -0
- package/dist/components/grading-instructions/editor/noWrap.js.map +1 -0
- package/dist/components/grading-instructions/editor/spanWithClass.d.ts +3 -0
- package/dist/components/grading-instructions/editor/spanWithClass.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/spanWithClass.js +19 -0
- package/dist/components/grading-instructions/editor/spanWithClass.js.map +1 -0
- package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts +3 -0
- package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/spanWithNowrap.js +19 -0
- package/dist/components/grading-instructions/editor/spanWithNowrap.js.map +1 -0
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/package.json +3 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAqCnD,iBAAS,0BAA0B,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,qBA0CpE;AAED,eAAe,0BAA0B,CAAA"}
|
@@ -10,20 +10,23 @@ import { FormulaButton, formulaOutputSchema, FormulaPlugin, formulaSchema } from
|
|
10
10
|
import { TableMenu, tableSchema } from './editor/Table';
|
11
11
|
import { FormulaPopup } from './editor/FormulaPopup';
|
12
12
|
import FormatButton from './editor/FormatButton';
|
13
|
+
import { NbspButton, nbspPlugin } from './editor/NBSP';
|
14
|
+
import { spanWithNowrap } from './editor/spanWithNowrap';
|
13
15
|
const schema = new Schema({
|
14
16
|
nodes: baseSchema.spec.nodes.append(formulaSchema).append(tableSchema),
|
15
|
-
marks: baseSchema.spec.marks
|
17
|
+
marks: baseSchema.spec.marks.append(spanWithNowrap)
|
16
18
|
});
|
17
19
|
const outputSchema = new Schema({
|
18
20
|
nodes: baseSchema.spec.nodes.append(formulaOutputSchema).append(tableSchema),
|
19
|
-
marks: baseSchema.spec.marks
|
21
|
+
marks: baseSchema.spec.marks.append(spanWithNowrap)
|
20
22
|
});
|
21
23
|
function Menu(props) {
|
22
24
|
return (React.createElement(React.Fragment, null,
|
23
25
|
React.createElement(FormatButton, { markName: "strong", displayName: "Bold" }),
|
24
26
|
React.createElement(FormatButton, { markName: "em", displayName: "Italic" }),
|
25
27
|
React.createElement(TableMenu, null),
|
26
|
-
React.createElement(FormulaButton, { setFormulaState: props.setFormulaState })
|
28
|
+
React.createElement(FormulaButton, { setFormulaState: props.setFormulaState }),
|
29
|
+
React.createElement(NbspButton, null)));
|
27
30
|
}
|
28
31
|
function EditableGradingInstruction({ element }) {
|
29
32
|
const { onContentChange } = useContext(GradingInstructionContext);
|
@@ -31,7 +34,7 @@ function EditableGradingInstruction({ element }) {
|
|
31
34
|
const [mount, setMount] = useState(null);
|
32
35
|
const [formulaState, setFormulaState] = useState(null);
|
33
36
|
const formulaPlugin = new FormulaPlugin(setFormulaState);
|
34
|
-
const [state, setState] = useState(EditorState.create({ schema, doc, plugins: [keymap(baseKeymap), formulaPlugin] }));
|
37
|
+
const [state, setState] = useState(EditorState.create({ schema, doc, plugins: [keymap(baseKeymap), formulaPlugin, nbspPlugin] }));
|
35
38
|
return (React.createElement(ProseMirror, { mount: mount, state: state, dispatchTransaction: tr => {
|
36
39
|
var _a;
|
37
40
|
setState(s => s.apply(tr));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditableGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAsB,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAA;
|
1
|
+
{"version":3,"file":"EditableGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAsB,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAA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I;QAC1C,6BAAK,GAAG,EAAE,QAAQ,GAAI;QAErB,YAAY,IAAI,CACf,oBAAC,YAAY,IACX,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,GAAG,EAAE;gBACb,eAAe,CAAC,IAAI,CAAC,CAAA;YACvB,CAAC,GACD,CACH,CACW,CACf,CAAA;AACH,CAAC;AAED,eAAe,0BAA0B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NBSP.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/NBSP.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,UAAU,uGAAoC,CAAA;AAE3D,wBAAgB,UAAU,sBAYzB"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { useEditorEventCallback } from '@nytimes/react-prosemirror';
|
2
|
+
import React from 'react';
|
3
|
+
import { createInvisiblesPlugin, nbSpace } from '@guardian/prosemirror-invisibles';
|
4
|
+
export const nbspPlugin = createInvisiblesPlugin([nbSpace]);
|
5
|
+
export function NbspButton() {
|
6
|
+
const onClick = useEditorEventCallback(view => {
|
7
|
+
const { state } = view;
|
8
|
+
if (view.dispatch) {
|
9
|
+
const tr = state.tr.insertText('\u00A0');
|
10
|
+
view.dispatch(tr);
|
11
|
+
}
|
12
|
+
view.focus();
|
13
|
+
return true;
|
14
|
+
});
|
15
|
+
return React.createElement("button", { onClick: onClick }, "NBSP");
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=NBSP.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NBSP.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/NBSP.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAElF,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;AAE3D,MAAM,UAAU,UAAU;IACxB,MAAM,OAAO,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE;QAC5C,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;QACtB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;YACxC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QACnB,CAAC;QACD,IAAI,CAAC,KAAK,EAAE,CAAA;QACZ,OAAO,IAAI,CAAA;IACb,CAAC,CAAC,CAAA;IAEF,OAAO,gCAAQ,OAAO,EAAE,OAAO,WAAe,CAAA;AAChD,CAAC"}
|
@@ -7,7 +7,7 @@ import { faTable } from '@fortawesome/free-solid-svg-icons';
|
|
7
7
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
8
8
|
const defaultSchema = tableNodes({
|
9
9
|
tableGroup: 'block',
|
10
|
-
cellContent: '
|
10
|
+
cellContent: 'inline*',
|
11
11
|
cellAttributes: { class: { default: '' } }
|
12
12
|
});
|
13
13
|
export const tableSchema = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAClH,OAAO,EAAE,QAAQ,EAAkB,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAe,aAAa,EAAe,MAAM,mBAAmB,CAAA;A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AG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;AAC/G,CAAC;AAED,SAAS,aAAa,CACpB,IAAgB,EAChB,SAAiB,EACjB,cAA8D;IAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAA;IACvC,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7B,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,OAAO,EAAE,CAAC;YACxC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,IAAI,CAAC,QAAQ,CACX,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE;oBACpD,GAAG,IAAI,CAAC,KAAK;oBACb,GAAG,EAAE,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,KAAe,EAAE,SAAS,CAAC,EAAE;iBACpE,CAAC,CACH,CAAA;YACH,CAAC;YACD,IAAI,CAAC,KAAK,EAAE,CAAA;YACZ,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"noWrap.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/noWrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,eAAO,MAAM,YAAY,EAAE,QAW1B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"noWrap.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/noWrap.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAa;IACpC,UAAU,EAAE;QACV,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,wBAAwB;aAC9B;SACF;QACD,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;KAChD;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"spanWithClass.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,eAAO,MAAM,mBAAmB,EAAE,QAiBjC,CAAA"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export const spanWithClassSchema = {
|
2
|
+
spanWithClass: {
|
3
|
+
attrs: {
|
4
|
+
class: { default: null }
|
5
|
+
},
|
6
|
+
parseDOM: [
|
7
|
+
{
|
8
|
+
tag: 'span',
|
9
|
+
getAttrs(dom) {
|
10
|
+
return { class: dom.getAttribute('class') || null };
|
11
|
+
}
|
12
|
+
}
|
13
|
+
],
|
14
|
+
toDOM(node) {
|
15
|
+
return ['span', { class: node.attrs.class }, 0];
|
16
|
+
}
|
17
|
+
}
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=spanWithClass.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"spanWithClass.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithClass.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAa;IAC3C,aAAa,EAAE;QACb,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SACzB;QACD,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,MAAM;gBACX,QAAQ,CAAC,GAAgB;oBACvB,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAA;gBACrD,CAAC;aACF;SACF;QACD,KAAK,CAAC,IAAU;YACd,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAe,EAAE,EAAE,CAAC,CAAC,CAAA;QAC3D,CAAC;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"spanWithNowrap.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithNowrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,eAAO,MAAM,cAAc,EAAE,QAiB5B,CAAA"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export const spanWithNowrap = {
|
2
|
+
spanWithClass: {
|
3
|
+
attrs: {
|
4
|
+
class: { default: null }
|
5
|
+
},
|
6
|
+
parseDOM: [
|
7
|
+
{
|
8
|
+
tag: 'span[class="e-nowrap"]',
|
9
|
+
getAttrs(dom) {
|
10
|
+
return { class: dom.getAttribute('class') || null };
|
11
|
+
}
|
12
|
+
}
|
13
|
+
],
|
14
|
+
toDOM(node) {
|
15
|
+
return ['span', { class: node.attrs.class }, 0];
|
16
|
+
}
|
17
|
+
}
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=spanWithNowrap.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"spanWithNowrap.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithNowrap.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAa;IACtC,aAAa,EAAE;QACb,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SACzB;QACD,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,wBAAwB;gBAC7B,QAAQ,CAAC,GAAgB;oBACvB,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAA;gBACrD,CAAC;aACF;SACF;QACD,KAAK,CAAC,IAAU;YACd,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAe,EAAE,EAAE,CAAC,CAAC,CAAA;QAC3D,CAAC;KACF;CACF,CAAA"}
|