@digabi/exam-engine-core 22.0.4-editor-ee-to-em.1 → 22.0.6-alpha.0

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__/tsconfig.tsbuildinfo +1 -1
  4. package/dist/components/context/GradingInstructionContext.d.ts +11 -6
  5. package/dist/components/context/GradingInstructionContext.d.ts.map +1 -1
  6. package/dist/components/context/GradingInstructionContext.js.map +1 -1
  7. package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
  8. package/dist/components/grading-instructions/AnswerGradingInstruction.js +3 -4
  9. package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
  10. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts +1 -1
  11. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -1
  12. package/dist/components/grading-instructions/GradingInstructionProvider.js +4 -1
  13. package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -1
  14. package/dist/components/grading-instructions/GradingInstructions.d.ts +2 -6
  15. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  16. package/dist/components/grading-instructions/GradingInstructions.js +3 -2
  17. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  18. package/dist/components/grading-instructions/editor/List.d.ts +1 -1
  19. package/dist/components/grading-instructions/editor/List.d.ts.map +1 -1
  20. package/dist/components/grading-instructions/editor/NBSP.d.ts +1 -1
  21. package/dist/components/grading-instructions/editor/NBSP.d.ts.map +1 -1
  22. package/dist/components/grading-instructions/editor/Table.d.ts +1 -1
  23. package/dist/components/grading-instructions/editor/Table.d.ts.map +1 -1
  24. package/dist/components/grading-instructions/editor/findNode.d.ts +1 -1
  25. package/dist/components/grading-instructions/editor/findNode.d.ts.map +1 -1
  26. package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts +69 -3
  27. package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts.map +1 -1
  28. package/dist/components/grading-instructions/editor/schemas/tableSchema.d.ts.map +1 -1
  29. package/dist/components/grading-instructions/editor/schemas/tableSchema.js +13 -3
  30. package/dist/components/grading-instructions/editor/schemas/tableSchema.js.map +1 -1
  31. package/dist/components/shared/Popup.js +2 -2
  32. package/dist/components/shared/Popup.js.map +1 -1
  33. package/dist/main-bundle.js +1 -1
  34. package/dist/main.css +1 -1
  35. package/package.json +11 -2
@@ -2,11 +2,16 @@ import React from 'react';
2
2
  export interface GradingInstructionPropsBase {
3
3
  children?: React.ReactNode;
4
4
  }
5
- export type GradingInstructionProps = GradingInstructionPropsBase & {
6
- EditorComponent?: React.ComponentType<{
7
- element: Element;
8
- displayNumber: string;
9
- }>;
10
- };
5
+ export interface EditableProps extends GradingInstructionPropsBase {
6
+ editable: true;
7
+ onContentChange: (answerHTML: string, path: string) => void;
8
+ onSaveImage: (file: File, displayNumber?: string) => Promise<string>;
9
+ }
10
+ export interface NotEditableProps extends GradingInstructionPropsBase {
11
+ editable?: false;
12
+ onContentChange?: never;
13
+ onSaveImage?: never;
14
+ }
15
+ export type GradingInstructionProps = EditableProps | NotEditableProps;
11
16
  export declare const GradingInstructionContext: React.Context<GradingInstructionProps>;
12
17
  //# sourceMappingURL=GradingInstructionContext.d.ts.map
@@ -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,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACnF,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,WAAW,aAAc,SAAQ,2BAA2B;IAChE,QAAQ,EAAE,IAAI,CAAA;IACd,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3D,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACrE;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,eAAe,CAAC,EAAE,KAAK,CAAA;IACvB,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,gBAAgB,CAAA;AAEtE,eAAO,MAAM,yBAAyB,wCAAqD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructionContext.js","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA6B,CAAC,CAAA"}
1
+ {"version":3,"file":"GradingInstructionContext.js","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAoBzB,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA6B,CAAC,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;AAIjE,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAazE,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,CAOzE,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -1,10 +1,9 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { GradingInstructionContext } from '../context/GradingInstructionContext';
3
- import { QuestionContext } from '../context/QuestionContext';
3
+ import EditableGradingInstruction from './EditableGradingInstruction';
4
4
  const AnswerGradingInstruction = ({ element, renderChildNodes }) => {
5
- const { EditorComponent } = useContext(GradingInstructionContext);
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))));
5
+ const { editable } = useContext(GradingInstructionContext);
6
+ return (React.createElement("div", { className: "e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2" }, editable ? React.createElement(EditableGradingInstruction, { element: element }) : renderChildNodes(element)));
8
7
  };
9
8
  export default AnswerGradingInstruction;
10
9
  //# 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;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"}
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,0BAA0B,MAAM,8BAA8B,CAAA;AAErE,MAAM,wBAAwB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC9G,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IAC1D,OAAO,CACL,6BAAK,SAAS,EAAC,kFAAkF,IAC9F,QAAQ,CAAC,CAAC,CAAC,oBAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CACpF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { GradingInstructionProps } from '../context/GradingInstructionContext';
3
- export declare const GradingInstructionProvider: ({ EditorComponent, children }: GradingInstructionProps) => React.JSX.Element;
3
+ export declare const GradingInstructionProvider: ({ editable, onContentChange, onSaveImage, children }: GradingInstructionProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=GradingInstructionProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructionProvider.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA6B,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAEzG,eAAO,MAAM,0BAA0B,kCAAmC,uBAAuB,sBAIhG,CAAA"}
1
+ {"version":3,"file":"GradingInstructionProvider.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA6B,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAEzG,eAAO,MAAM,0BAA0B,yDAKpC,uBAAuB,sBAGzB,CAAA"}
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { GradingInstructionContext } from '../context/GradingInstructionContext';
3
- export const GradingInstructionProvider = ({ EditorComponent, children }) => (React.createElement(GradingInstructionContext.Provider, { value: { EditorComponent: EditorComponent } }, children));
3
+ export const GradingInstructionProvider = ({ editable, onContentChange, onSaveImage, children }) => {
4
+ const contextValue = editable ? { editable, onContentChange, onSaveImage } : { editable };
5
+ return React.createElement(GradingInstructionContext.Provider, { value: contextValue }, children);
6
+ };
4
7
  //# sourceMappingURL=GradingInstructionProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructionProvider.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,yBAAyB,EAA2B,MAAM,sCAAsC,CAAA;AAEzG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAAE,eAAe,EAAE,QAAQ,EAA2B,EAAE,EAAE,CAAC,CACpG,oBAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,eAAe,EAAE,eAAe,EAAE,IAC5E,QAAQ,CAC0B,CACtC,CAAA"}
1
+ {"version":3,"file":"GradingInstructionProvider.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,yBAAyB,EAA2B,MAAM,sCAAsC,CAAA;AAEzG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EACzC,QAAQ,EACR,eAAe,EACf,WAAW,EACX,QAAQ,EACgB,EAAE,EAAE;IAC5B,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAA;IACzF,OAAO,oBAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAsC,CAAA;AACjH,CAAC,CAAA"}
@@ -1,11 +1,7 @@
1
1
  import React from 'react';
2
2
  import { AnnotationProps, CommonExamProps } from '../exam/Exam';
3
+ import { GradingInstructionProps } from '../context/GradingInstructionContext';
3
4
  export declare const GradingInstructionsPageTitle: React.FunctionComponent;
4
- declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & AnnotationProps & import("../context/GradingInstructionContext").GradingInstructionPropsBase & {
5
- EditorComponent?: React.ComponentType<{
6
- element: Element;
7
- displayNumber: string;
8
- }>;
9
- }>>;
5
+ declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & (AnnotationProps & GradingInstructionProps)>>;
10
6
  export default _default;
11
7
  //# sourceMappingURL=GradingInstructions.d.ts.map
@@ -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;AAoB/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAmH9E,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,iBAGhD,CAAA;;AAED,wBAAqE"}
@@ -71,7 +71,7 @@ const renderChildNodes = createRenderChildNodes({
71
71
  'section-title': SectionTitle,
72
72
  video: Recording
73
73
  });
74
- const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnotation, EditorComponent }) => {
74
+ const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnotation, editable, onContentChange, onSaveImage }) => {
75
75
  const root = doc.documentElement;
76
76
  const { date, dateTimeFormatter, dayCode, examCode, language, subjectLanguage } = useContext(CommonExamContext);
77
77
  const examTitle = findChildElement(root, 'exam-title');
@@ -85,8 +85,9 @@ const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnota
85
85
  const i18n = useCached(() => initI18n(language, examCode, dayCode));
86
86
  useEffect(changeLanguage(i18n, language));
87
87
  useEffect(scrollToHash, []);
88
+ const props = editable ? { editable, onContentChange, onSaveImage } : { editable };
88
89
  return (React.createElement(AnnotationProvider, { annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation },
89
- React.createElement(GradingInstructionProvider, { EditorComponent: EditorComponent },
90
+ React.createElement(GradingInstructionProvider, { ...props },
90
91
  React.createElement(I18nextProvider, { i18n: i18n },
91
92
  React.createElement("main", { className: "e-exam e-grading-instructions", lang: subjectLanguage },
92
93
  React.createElement(React.StrictMode, null),
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructions.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,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6BAAK,SAAS,EAAC,oBAAoB;4BACjC,oBAAC,eAAe,IAAO,OAAO,EAAE,eAAe,EAAE,gBAAgB,GAAM,CACnE,CACP,CACc;oBAChB,gBAAgB,CAAC,IAAI,CAAC,CAClB,CACS,CACS,CACV,CACtB,CAAA;AACH,CAAC,CAAA;AAED,4FAA4F;AAC5F,MAAM,CAAC,MAAM,4BAA4B,GAA4B,GAAG,EAAE;IACxE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,OAAO,0CAAG,CAAC,CAAC,iCAAiC,CAAC,CAAI,CAAA;AACpD,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"GradingInstructions.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,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,IAAI,IAAI,CACP;4BACE,oCAAS,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAU,CAC/C,CACL;wBACA,sBAAsB,IAAI,CACzB,oBAAC,sBAAsB,IAAO,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,GAAM,CACtF;wBACA,eAAe,IAAI,CAClB,6BAAK,SAAS,EAAC,oBAAoB;4BACjC,oBAAC,eAAe,IAAO,OAAO,EAAE,eAAe,EAAE,gBAAgB,GAAM,CACnE,CACP,CACc;oBAChB,gBAAgB,CAAC,IAAI,CAAC,CAClB,CACS,CACS,CACV,CACtB,CAAA;AACH,CAAC,CAAA;AAED,4FAA4F;AAC5F,MAAM,CAAC,MAAM,4BAA4B,GAA4B,GAAG,EAAE;IACxE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,OAAO,0CAAG,CAAC,CAAC,iCAAiC,CAAC,CAAI,CAAA;AACpD,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAA"}
@@ -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"}
@@ -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;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,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;CACnE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAa;IACnC,GAAG,aAAa;IAChB,KAAK,EAAE;QACL,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AAC,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;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAY9D,MAAM,UAAU,KAAK,CAAC,KAAiB;IACrC,MAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,EAAkB,CAAA;IAClD,MAAM,WAAW,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