@digabi/exam-engine-core 22.0.4-editor-ee-to-em.0 → 22.0.4-editor-ee-to-em.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/__tests__/editor/Table.test.js +4 -4
  2. package/dist/__tests__/editor/Table.test.js.map +1 -1
  3. package/dist/__tests__/editor/undoRedo.test.d.ts +2 -0
  4. package/dist/__tests__/editor/undoRedo.test.d.ts.map +1 -0
  5. package/dist/__tests__/editor/undoRedo.test.js +61 -0
  6. package/dist/__tests__/editor/undoRedo.test.js.map +1 -0
  7. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  8. package/dist/components/context/GradingInstructionContext.d.ts +1 -0
  9. package/dist/components/context/GradingInstructionContext.d.ts.map +1 -1
  10. package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
  11. package/dist/components/grading-instructions/AnswerGradingInstruction.js +3 -1
  12. package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
  13. package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -0
  14. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  15. package/dist/components/grading-instructions/editor/List.d.ts +1 -1
  16. package/dist/components/grading-instructions/editor/List.d.ts.map +1 -1
  17. package/dist/components/grading-instructions/editor/NBSP.d.ts +1 -1
  18. package/dist/components/grading-instructions/editor/NBSP.d.ts.map +1 -1
  19. package/dist/components/grading-instructions/editor/Table.d.ts +1 -1
  20. package/dist/components/grading-instructions/editor/Table.d.ts.map +1 -1
  21. package/dist/components/grading-instructions/editor/UndoRedoButtons.d.ts +6 -0
  22. package/dist/components/grading-instructions/editor/UndoRedoButtons.d.ts.map +1 -0
  23. package/dist/components/grading-instructions/editor/UndoRedoButtons.js +19 -0
  24. package/dist/components/grading-instructions/editor/UndoRedoButtons.js.map +1 -0
  25. package/dist/components/grading-instructions/editor/findNode.d.ts +1 -1
  26. package/dist/components/grading-instructions/editor/findNode.d.ts.map +1 -1
  27. package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts +69 -3
  28. package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts.map +1 -1
  29. package/dist/components/grading-instructions/editor/schemas/tableSchema.d.ts.map +1 -1
  30. package/dist/components/grading-instructions/editor/schemas/tableSchema.js +13 -3
  31. package/dist/components/grading-instructions/editor/schemas/tableSchema.js.map +1 -1
  32. package/dist/components/shared/Popup.js +2 -2
  33. package/dist/components/shared/Popup.js.map +1 -1
  34. package/dist/main-bundle.js +1 -1
  35. package/package.json +2 -2
@@ -5,6 +5,7 @@ export interface GradingInstructionPropsBase {
5
5
  export type GradingInstructionProps = GradingInstructionPropsBase & {
6
6
  EditorComponent?: React.ComponentType<{
7
7
  element: Element;
8
+ displayNumber: string;
8
9
  }>;
9
10
  };
10
11
  export declare const GradingInstructionContext: React.Context<GradingInstructionProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IAClE,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CAC5D,CAAA;AAED,eAAO,MAAM,yBAAyB,wCAAqD,CAAA"}
1
+ {"version":3,"file":"GradingInstructionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IAClE,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACnF,CAAA;AAED,eAAO,MAAM,yBAAyB,wCAAqD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnswerGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAQzE,CAAA;AAED,eAAe,wBAAwB,CAAA"}
1
+ {"version":3,"file":"AnswerGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAazE,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -1,8 +1,10 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { GradingInstructionContext } from '../context/GradingInstructionContext';
3
+ import { QuestionContext } from '../context/QuestionContext';
3
4
  const AnswerGradingInstruction = ({ element, renderChildNodes }) => {
4
5
  const { EditorComponent } = useContext(GradingInstructionContext);
5
- return (React.createElement("div", { className: "e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2" }, EditorComponent ? React.createElement(EditorComponent, { element: element }) : renderChildNodes(element)));
6
+ const { displayNumber } = useContext(QuestionContext);
7
+ return (React.createElement("div", { className: "e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2" }, EditorComponent ? (React.createElement(EditorComponent, { element: element, displayNumber: displayNumber })) : (renderChildNodes(element))));
6
8
  };
7
9
  export default AnswerGradingInstruction;
8
10
  //# sourceMappingURL=AnswerGradingInstruction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnswerGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,MAAM,wBAAwB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC9G,MAAM,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IAEjE,OAAO,CACL,6BAAK,SAAS,EAAC,kFAAkF,IAC9F,eAAe,CAAC,CAAC,CAAC,oBAAC,eAAe,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAChF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,wBAAwB,CAAA"}
1
+ {"version":3,"file":"AnswerGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,wBAAwB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC9G,MAAM,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IACjE,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAErD,OAAO,CACL,6BAAK,SAAS,EAAC,kFAAkF,IAC9F,eAAe,CAAC,CAAC,CAAC,CACjB,oBAAC,eAAe,IAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,GAAI,CACpE,CAAC,CAAC,CAAC,CACF,gBAAgB,CAAC,OAAO,CAAC,CAC1B,CACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -4,6 +4,7 @@ export declare const GradingInstructionsPageTitle: React.FunctionComponent;
4
4
  declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & AnnotationProps & import("../context/GradingInstructionContext").GradingInstructionPropsBase & {
5
5
  EditorComponent?: React.ComponentType<{
6
6
  element: Element;
7
+ displayNumber: string;
7
8
  }>;
8
9
  }>>;
9
10
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructions.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAcpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAmI/D,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,iBAGhD,CAAA;;sBAjJuB,MAAO,aAAa;;;;AAmJ5C,wBAAqE"}
1
+ {"version":3,"file":"GradingInstructions.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAcpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAmI/D,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,iBAGhD,CAAA;;sBAjJuB,MAAO,aAAa;;;;;AAmJ5C,wBAAqE"}
@@ -1,7 +1,7 @@
1
1
  import { NodeType, Schema } from 'prosemirror-model';
2
2
  import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
3
3
  import React from 'react';
4
- export declare function createListPlugin(schema: Schema): any;
4
+ export declare function createListPlugin(schema: Schema): import("prosemirror-state").Plugin<any>;
5
5
  export declare function ListButton(props: {
6
6
  nodeType: NodeType;
7
7
  icon: IconDefinition;
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/List.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAGpE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAA8B,MAAM,OAAO,CAAA;AAKlD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,OAM9C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,qBAoC7E"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/List.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAkB,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAGpE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,KAA8B,MAAM,OAAO,CAAA;AAKlD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,2CAM9C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,qBAoC7E"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare const nbspPlugin: any;
2
+ export declare const nbspPlugin: import("prosemirror-state").Plugin<import("@guardian/prosemirror-invisibles/dist/state").PluginState>;
3
3
  export declare function NbspButton(): React.JSX.Element;
4
4
  //# sourceMappingURL=NBSP.d.ts.map
@@ -1 +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,KAAoC,CAAA;AAE3D,wBAAgB,UAAU,sBAgBzB"}
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,sBAgBzB"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare function tablePlugin(): any;
2
+ export declare function tablePlugin(): import("prosemirror-state").Plugin<any>;
3
3
  export declare function TableMenu(props: {
4
4
  dropdownsBelow: boolean;
5
5
  }): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/Table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAUlD,wBAAgB,WAAW,QAK1B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,cAAc,EAAE,OAAO,CAAA;CAAE,qBAgL3D"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/Table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAUlD,wBAAgB,WAAW,4CAK1B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,cAAc,EAAE,OAAO,CAAA;CAAE,qBAgL3D"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { EditorState } from 'prosemirror-state';
3
+ export declare function UndoRedoButtons({ state }: {
4
+ state: EditorState;
5
+ }): React.JSX.Element;
6
+ //# sourceMappingURL=UndoRedoButtons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoRedoButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/UndoRedoButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,qBAmBhE"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { useEditorEventCallback } from '@nytimes/react-prosemirror';
3
+ import { undo, redo, undoDepth, redoDepth } from 'prosemirror-history';
4
+ import { faRedo, faUndo } from '@fortawesome/free-solid-svg-icons';
5
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
6
+ export function UndoRedoButtons({ state }) {
7
+ const onUndo = useEditorEventCallback(view => {
8
+ undo(view.state, view.dispatch);
9
+ });
10
+ const onRedo = useEditorEventCallback(view => {
11
+ redo(view.state, view.dispatch);
12
+ });
13
+ return (React.createElement(React.Fragment, null,
14
+ React.createElement("button", { onClick: onUndo, title: "kumoa muutokset", disabled: undoDepth(state) === 0 },
15
+ React.createElement(FontAwesomeIcon, { size: "lg", icon: faUndo, className: "editor-menu-icon" })),
16
+ React.createElement("button", { onClick: onRedo, title: "toista muutokset", disabled: redoDepth(state) === 0 },
17
+ React.createElement(FontAwesomeIcon, { size: "lg", icon: faRedo, className: "editor-menu-icon" }))));
18
+ }
19
+ //# sourceMappingURL=UndoRedoButtons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoRedoButtons.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/UndoRedoButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAA0B;IAC/D,MAAM,MAAM,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE;QAC3C,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACjC,CAAC,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,sBAAsB,CAAC,IAAI,CAAC,EAAE;QAC3C,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACjC,CAAC,CAAC,CAAA;IAEF,OAAO,CACL;QACE,gCAAQ,OAAO,EAAE,MAAM,EAAE,KAAK,EAAC,iBAAiB,EAAC,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC;YAC/E,oBAAC,eAAe,IAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAC,kBAAkB,GAAG,CACjE;QACT,gCAAQ,OAAO,EAAE,MAAM,EAAE,KAAK,EAAC,kBAAkB,EAAC,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC;YAChF,oBAAC,eAAe,IAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAC,kBAAkB,GAAG,CACjE,CACR,CACJ,CAAA;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { ResolvedPos } from 'prosemirror-model';
2
- export declare function getNodeFromPosition(pos: ResolvedPos, type: string): any;
2
+ export declare function getNodeFromPosition(pos: ResolvedPos, type: string): import("prosemirror-model").Node | null;
3
3
  //# sourceMappingURL=findNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"findNode.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/findNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,OAQjE"}
1
+ {"version":3,"file":"findNode.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/findNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,2CAQjE"}
@@ -1,6 +1,72 @@
1
1
  export declare const listSchema: {
2
- ordered_list: any;
3
- bullet_list: any;
4
- list_item: any;
2
+ ordered_list: {
3
+ content: string;
4
+ group: string;
5
+ marks?: string;
6
+ inline?: boolean;
7
+ atom?: boolean;
8
+ attrs?: {
9
+ [name: string]: import("prosemirror-model").AttributeSpec;
10
+ };
11
+ selectable?: boolean;
12
+ draggable?: boolean;
13
+ code?: boolean;
14
+ whitespace?: "pre" | "normal";
15
+ definingAsContext?: boolean;
16
+ definingForContent?: boolean;
17
+ defining?: boolean;
18
+ isolating?: boolean;
19
+ toDOM?: (node: import("prosemirror-model").Node) => import("prosemirror-model").DOMOutputSpec;
20
+ parseDOM?: readonly import("prosemirror-model").TagParseRule[];
21
+ toDebugString?: (node: import("prosemirror-model").Node) => string;
22
+ leafText?: (node: import("prosemirror-model").Node) => string;
23
+ linebreakReplacement?: boolean;
24
+ };
25
+ bullet_list: {
26
+ content: string;
27
+ group: string;
28
+ marks?: string;
29
+ inline?: boolean;
30
+ atom?: boolean;
31
+ attrs?: {
32
+ [name: string]: import("prosemirror-model").AttributeSpec;
33
+ };
34
+ selectable?: boolean;
35
+ draggable?: boolean;
36
+ code?: boolean;
37
+ whitespace?: "pre" | "normal";
38
+ definingAsContext?: boolean;
39
+ definingForContent?: boolean;
40
+ defining?: boolean;
41
+ isolating?: boolean;
42
+ toDOM?: (node: import("prosemirror-model").Node) => import("prosemirror-model").DOMOutputSpec;
43
+ parseDOM?: readonly import("prosemirror-model").TagParseRule[];
44
+ toDebugString?: (node: import("prosemirror-model").Node) => string;
45
+ leafText?: (node: import("prosemirror-model").Node) => string;
46
+ linebreakReplacement?: boolean;
47
+ };
48
+ list_item: {
49
+ content: string;
50
+ marks?: string;
51
+ group?: string;
52
+ inline?: boolean;
53
+ atom?: boolean;
54
+ attrs?: {
55
+ [name: string]: import("prosemirror-model").AttributeSpec;
56
+ };
57
+ selectable?: boolean;
58
+ draggable?: boolean;
59
+ code?: boolean;
60
+ whitespace?: "pre" | "normal";
61
+ definingAsContext?: boolean;
62
+ definingForContent?: boolean;
63
+ defining?: boolean;
64
+ isolating?: boolean;
65
+ toDOM?: (node: import("prosemirror-model").Node) => import("prosemirror-model").DOMOutputSpec;
66
+ parseDOM?: readonly import("prosemirror-model").TagParseRule[];
67
+ toDebugString?: (node: import("prosemirror-model").Node) => string;
68
+ leafText?: (node: import("prosemirror-model").Node) => string;
69
+ linebreakReplacement?: boolean;
70
+ };
5
71
  };
6
72
  //# sourceMappingURL=listSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listSchema.d.ts","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/listSchema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;CAItB,CAAA"}
1
+ {"version":3,"file":"listSchema.d.ts","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/listSchema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tableSchema.d.ts","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/tableSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAQlD,eAAO,MAAM,WAAW,EAAE,QAmCzB,CAAA"}
1
+ {"version":3,"file":"tableSchema.d.ts","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/tableSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAQlD,eAAO,MAAM,WAAW,EAAE,QA6CzB,CAAA"}
@@ -2,7 +2,7 @@ import { tableNodes } from 'prosemirror-tables';
2
2
  const defaultSchema = tableNodes({
3
3
  tableGroup: 'block',
4
4
  cellContent: 'inline*',
5
- cellAttributes: { class: { default: '' } }
5
+ cellAttributes: { class: { default: '' }, scope: { default: '' } }
6
6
  });
7
7
  export const tableSchema = {
8
8
  ...defaultSchema,
@@ -26,17 +26,27 @@ export const tableSchema = {
26
26
  ];
27
27
  }
28
28
  },
29
+ table_row: {
30
+ ...defaultSchema.table_row,
31
+ attrs: { class: { default: '' } },
32
+ parseDOM: [{ tag: 'tr', getAttrs: (dom) => ({ class: dom.getAttribute('class') }) }],
33
+ toDOM(node) {
34
+ const classNames = node.attrs.class || undefined;
35
+ return ['tr', { class: classNames }, 0];
36
+ }
37
+ },
29
38
  table_cell: {
30
39
  ...defaultSchema.table_cell,
31
40
  parseDOM: [
32
41
  {
33
42
  tag: 'td',
34
- getAttrs: (dom) => ({ class: dom.getAttribute('class') })
43
+ getAttrs: (dom) => ({ class: dom.getAttribute('class'), scope: dom.getAttribute('scope') })
35
44
  }
36
45
  ],
37
46
  toDOM(node) {
38
47
  const classNames = node.attrs.class || undefined;
39
- return ['td', { class: classNames }, 0];
48
+ const scope = node.attrs.scope || undefined;
49
+ return ['td', { class: classNames, scope }, 0];
40
50
  }
41
51
  }
42
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tableSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/tableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAG/C,MAAM,aAAa,GAAG,UAAU,CAAC;IAC/B,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,SAAS;IACtB,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAa;IACnC,GAAG,aAAa;IAChB,KAAK,EAAE;QACL,GAAG,aAAa,CAAC,KAAK;QACtB,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,OAAO;gBACZ,QAAQ,EAAE,CAAC,GAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;aACvE;SACF;QACD,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;QACjC,KAAK,CAAC,IAAU;YACd,MAAM,UAAU,GAAI,IAAI,CAAC,KAAK,CAAC,KAAgB,IAAI,SAAS,CAAA;YAC5D,OAAO;gBACL,OAAO;gBACP;oBACE,KAAK,EAAE,UAAU;iBAClB;gBACD,CAAC,OAAO,EAAE,CAAC,CAAC;aACb,CAAA;QACH,CAAC;KACF;IACD,UAAU,EAAE;QACV,GAAG,aAAa,CAAC,UAAU;QAC3B,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,IAAI;gBACT,QAAQ,EAAE,CAAC,GAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;aACvE;SACF;QACD,KAAK,CAAC,IAAU;YACd,MAAM,UAAU,GAAI,IAAI,CAAC,KAAK,CAAC,KAAgB,IAAI,SAAS,CAAA;YAC5D,OAAO,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,CAAA;QACzC,CAAC;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"tableSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/tableSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;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EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,CAAA;QACzC,CAAC;KACF;IACD,UAAU,EAAE;QACV,GAAG,aAAa,CAAC,UAAU;QAC3B,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,IAAI;gBACT,QAAQ,EAAE,CAAC,GAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;aACzG;SACF;QACD,KAAK,CAAC,IAAU;YACd,MAAM,UAAU,GAAI,IAAI,CAAC,KAAK,CAAC,KAAgB,IAAI,SAAS,CAAA;YAC5D,MAAM,KAAK,GAAI,IAAI,CAAC,KAAK,CAAC,KAAgB,IAAI,SAAS,CAAA;YACvD,OAAO,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAA;QAChD,CAAC;KACF;CACF,CAAA"}
@@ -13,7 +13,7 @@ export function Popup(props) {
13
13
  useEffect(() => {
14
14
  if (props.element && textAreaRef.current) {
15
15
  showAndPositionElement(props.element, popupRef);
16
- textAreaRef.current.innerHTML = textContent;
16
+ textAreaRef.current.innerHTML = props.initialTextContent || '';
17
17
  makeRichText(textAreaRef.current, {
18
18
  locale: 'FI',
19
19
  screenshotSaver: () => Promise.resolve('')
@@ -27,7 +27,7 @@ export function Popup(props) {
27
27
  });
28
28
  textAreaRef.current.focus();
29
29
  }
30
- setTextContent('');
30
+ setTextContent(props.initialTextContent || '');
31
31
  setSaveEnabled(props.initialTextContent.length > 0);
32
32
  }, [props.element]);
33
33
  if (!props.element) {
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.js","sourceRoot":"","sources":["../../../src/components/shared/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;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