@digabi/exam-engine-core 22.1.6-alpha.4 → 22.1.7-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/__tests__/editor/Formula.test.js +0 -11
  2. package/dist/__tests__/editor/Formula.test.js.map +1 -1
  3. package/dist/__tests__/editor/ImageUploadButton.test.js +1 -26
  4. package/dist/__tests__/editor/ImageUploadButton.test.js.map +1 -1
  5. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  6. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
  7. package/dist/components/grading-instructions/EditableGradingInstruction.js +5 -17
  8. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
  9. package/dist/components/grading-instructions/editor/schemas/formulaSchema.js +1 -8
  10. package/dist/components/grading-instructions/editor/schemas/formulaSchema.js.map +1 -1
  11. package/dist/components/grading-instructions/editor/schemas/imageSchema.d.ts.map +1 -1
  12. package/dist/components/grading-instructions/editor/schemas/imageSchema.js +4 -18
  13. package/dist/components/grading-instructions/editor/schemas/imageSchema.js.map +1 -1
  14. package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.js +1 -1
  15. package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.js.map +1 -1
  16. package/dist/main-bundle.js +1 -1
  17. package/package.json +2 -2
  18. package/dist/__tests__/editor/spanLang.test.d.ts +0 -2
  19. package/dist/__tests__/editor/spanLang.test.d.ts.map +0 -1
  20. package/dist/__tests__/editor/spanLang.test.js +0 -50
  21. package/dist/__tests__/editor/spanLang.test.js.map +0 -1
  22. package/dist/__tests__/editor/spanWithLang.test.d.ts +0 -2
  23. package/dist/__tests__/editor/spanWithLang.test.d.ts.map +0 -1
  24. package/dist/__tests__/editor/spanWithLang.test.js +0 -38
  25. package/dist/__tests__/editor/spanWithLang.test.js.map +0 -1
  26. package/dist/__tests__/editor/sub.test.d.ts +0 -2
  27. package/dist/__tests__/editor/sub.test.d.ts.map +0 -1
  28. package/dist/__tests__/editor/sub.test.js +0 -62
  29. package/dist/__tests__/editor/sub.test.js.map +0 -1
  30. package/dist/__tests__/editor/subSup.test.d.ts +0 -2
  31. package/dist/__tests__/editor/subSup.test.d.ts.map +0 -1
  32. package/dist/__tests__/editor/subSup.test.js +0 -50
  33. package/dist/__tests__/editor/subSup.test.js.map +0 -1
  34. package/dist/components/grading-instructions/editor/schemas/spanLang.d.ts +0 -3
  35. package/dist/components/grading-instructions/editor/schemas/spanLang.d.ts.map +0 -1
  36. package/dist/components/grading-instructions/editor/schemas/spanLang.js +0 -23
  37. package/dist/components/grading-instructions/editor/schemas/spanLang.js.map +0 -1
  38. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.d.ts +0 -3
  39. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.d.ts.map +0 -1
  40. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.js +0 -19
  41. package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.js.map +0 -1
  42. package/dist/components/grading-instructions/editor/schemas/subSup.d.ts +0 -3
  43. package/dist/components/grading-instructions/editor/schemas/subSup.d.ts.map +0 -1
  44. package/dist/components/grading-instructions/editor/schemas/subSup.js +0 -23
  45. package/dist/components/grading-instructions/editor/schemas/subSup.js.map +0 -1
  46. package/dist/components/grading-instructions/editor/schemas/subSupSchema.d.ts +0 -3
  47. package/dist/components/grading-instructions/editor/schemas/subSupSchema.d.ts.map +0 -1
  48. package/dist/components/grading-instructions/editor/schemas/subSupSchema.js +0 -23
  49. package/dist/components/grading-instructions/editor/schemas/subSupSchema.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAA;AAwE9D,iBAAS,0BAA0B,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,qBAwFpE;AAED,eAAe,0BAA0B,CAAA"}
1
+ {"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAA;AAsE9D,iBAAS,0BAA0B,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,qBA8EpE;AAED,eAAe,0BAA0B,CAAA"}
@@ -21,8 +21,6 @@ import { spanWithNowrapSchema } from './editor/schemas/spanWithNowrapSchema';
21
21
  import { localization } from './editor/localization';
22
22
  import { listSchema } from './editor/schemas/listSchema';
23
23
  import { createListPlugin, ListButton } from './editor/List';
24
- import { subSupSchema } from './editor/schemas/subSupSchema';
25
- import { spanWithLangSchema } from './editor/schemas/spanWithLangSchema';
26
24
  function Menu(props) {
27
25
  const { onSaveImage } = useContext(GradingInstructionContext);
28
26
  const [isFloating, setIsFloating] = useState(false);
@@ -66,11 +64,7 @@ function EditableGradingInstruction({ element }) {
66
64
  .append(tableSchema)
67
65
  .append(listSchema)
68
66
  .update('image', imageInputSchema(resolveAttachment)),
69
- marks: baseSchema.spec.marks
70
- .append(spanWithNowrapSchema)
71
- .append(localization(true))
72
- .append(subSupSchema)
73
- .append(spanWithLangSchema)
67
+ marks: baseSchema.spec.marks.append(spanWithNowrapSchema).append(localization(true))
74
68
  });
75
69
  const outputSchema = new Schema({
76
70
  nodes: baseSchema.spec.nodes
@@ -78,11 +72,7 @@ function EditableGradingInstruction({ element }) {
78
72
  .append(tableSchema)
79
73
  .append(listSchema)
80
74
  .update('image', imageOutputSchema),
81
- marks: baseSchema.spec.marks
82
- .append(spanWithNowrapSchema)
83
- .append(localization(false))
84
- .append(subSupSchema)
85
- .append(spanWithLangSchema)
75
+ marks: baseSchema.spec.marks.append(spanWithNowrapSchema).append(localization(false))
86
76
  });
87
77
  const doc = ProseDOMParser.fromSchema(inputSchema).parse(element);
88
78
  const [mount, setMount] = useState(null);
@@ -103,13 +93,11 @@ function EditableGradingInstruction({ element }) {
103
93
  div.appendChild(fragment);
104
94
  const path = (_a = element.getAttribute('path')) !== null && _a !== void 0 ? _a : '';
105
95
  if (onContentChange) {
106
- const fixedHtml = div.innerHTML
96
+ const nbspFixed = div.innerHTML
107
97
  .replace(/ /g, ' ')
108
98
  .replace(/<br>/g, '<br/>')
109
- .replace(/<hr>/g, '<hr/>')
110
- .replace(/&amp;gt;/g, '&gt;')
111
- .replace(/&amp;lt;/g, '&lt;');
112
- onContentChange(fixedHtml, path);
99
+ .replace(/<hr>/g, '<hr/>');
100
+ onContentChange(nbspFixed, path);
113
101
  }
114
102
  }
115
103
  return newContent;
@@ -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,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC9D,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,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACnF,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAA;A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OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;6BACzB,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC;6BAC5B,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;wBAC/B,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;oBAClC,CAAC;gBACH,CAAC;gBACD,OAAO,UAAU,CAAA;YACnB,CAAC,CAAC,CAAA;QACJ,CAAC;QAEA,KAAK,IAAI,CACR,oBAAC,IAAI,IACH,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,KAAK,GACpB,CACH;QACD,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"}
1
+ {"version":3,"file":"EditableGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC9D,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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OAAO,EAAE,OAAO,CAAC,CAAA;wBAC5B,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;oBAClC,CAAC;gBACH,CAAC;gBACD,OAAO,UAAU,CAAA;YACnB,CAAC,CAAC,CAAA;QACJ,CAAC;QAEA,KAAK,IAAI,CACR,oBAAC,IAAI,IACH,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,KAAK,GACpB,CACH;QACD,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"}
@@ -43,7 +43,7 @@ export const formulaOutputSchema = {
43
43
  formulaElement.setAttribute('mode', node.attrs.mode);
44
44
  }
45
45
  if (node.attrs.assistiveTitle) {
46
- formulaElement.setAttribute('assistive-title', escapeHtml(node.attrs.assistiveTitle));
46
+ formulaElement.setAttribute('assistive-title', node.attrs.assistiveTitle);
47
47
  }
48
48
  formulaElement.textContent = node.attrs.latex;
49
49
  const container = document.createElement('span');
@@ -52,11 +52,4 @@ export const formulaOutputSchema = {
52
52
  }
53
53
  }
54
54
  };
55
- function escapeHtml(input) {
56
- const map = {
57
- '<': '&lt;',
58
- '>': '&gt;'
59
- };
60
- return input.replace(/[<>]/g, char => map[char]);
61
- }
62
55
  //# sourceMappingURL=formulaSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formulaSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/formulaSchema.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAa;IACrC,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,QAAQ;QACf,IAAI,E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ACpB,cAAc,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,IAAc,CAAC,CAAA;YAChE,CAAC;YACD,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC;gBAC9B,cAAc,CAAC,YAAY,CAAC,iBAAiB,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,cAAwB,CAAC,CAAC,CAAA;YACjG,CAAC;YACD,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,KAAe,CAAA;YACvD,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;YAChD,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAA;YACrC,OAAO,SAAS,CAAC,iBAAkB,CAAA;QACrC,CAAC;KACF;CACF,CAAA;AAED,SAAS,UAAU,CAAC,KAAa;IAC/B,MAAM,GAAG,GAA2B;QAClC,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,MAAM;KACZ,CAAA;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;AAClD,CAAC"}
1
+ {"version":3,"file":"formulaSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/formulaSchema.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAa;IACrC,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,IAAI;QACV,KAAK,EAAE;YACL,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YACrB,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;SAChC;QACD,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,4BAA4B;gBACjC,QAAQ,CAAC,GAAgB;oBACvB,OAAO;wBACL,KAAK,EAAE,GAAG,CAA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AW,GAAG,IAAI,CAAC,KAAK,CAAC,KAAe,CAAA;YACvD,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;YAChD,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAA;YACrC,OAAO,SAAS,CAAC,iBAAkB,CAAA;QACrC,CAAC;KACF;CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"imageSchema.d.ts","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/imageSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAK5C,eAAO,MAAM,gBAAgB,sBAAuB,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,KAAG,QAqCjF,CAAA;AAIF,eAAO,MAAM,iBAAiB,EAAE,QAgB/B,CAAA"}
1
+ {"version":3,"file":"imageSchema.d.ts","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/imageSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAK5C,eAAO,MAAM,gBAAgB,sBAAuB,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,KAAG,QA6BjF,CAAA;AAIF,eAAO,MAAM,iBAAiB,EAAE,QAY/B,CAAA"}
@@ -3,15 +3,12 @@ import { schema as baseSchema } from 'prosemirror-schema-basic';
3
3
  const existingImageNode = baseSchema.spec.nodes.get('image');
4
4
  export const imageInputSchema = (resolveAttachment) => ({
5
5
  ...existingImageNode,
6
- content: 'inline*',
7
- marks: '_',
8
6
  attrs: {
9
7
  ...existingImageNode === null || existingImageNode === void 0 ? void 0 : existingImageNode.attrs,
10
8
  width: { default: null },
11
9
  height: { default: null },
12
10
  class: { default: null },
13
- lang: { default: null },
14
- hasTitle: { default: false }
11
+ lang: { default: null }
15
12
  },
16
13
  parseDOM: [
17
14
  {
@@ -23,20 +20,14 @@ export const imageInputSchema = (resolveAttachment) => ({
23
20
  }
24
21
  const attrs = {
25
22
  ...Object.fromEntries(Array.from(element.attributes).map(attr => [attr.name, attr.value])),
26
- src: resolveAttachment(element.getAttribute('src') || ''),
27
- hasTitle: !!element.querySelector('[data-editor-id="e-image-title"]')
23
+ src: resolveAttachment(element.getAttribute('src') || '')
28
24
  };
29
25
  return attrs;
30
26
  }
31
27
  }
32
28
  ],
33
29
  toDOM(node) {
34
- if (node.attrs.hasTitle) {
35
- return ['figure', {}, ['img', node.attrs], ['figcaption', {}, 0]];
36
- }
37
- else {
38
- return ['img', node.attrs];
39
- }
30
+ return ['img', node.attrs];
40
31
  }
41
32
  });
42
33
  const pathToFilename = (path) => path.split('/').pop();
@@ -50,12 +41,7 @@ export const imageOutputSchema = {
50
41
  }
51
42
  return value;
52
43
  });
53
- if (node.attrs.hasTitle) {
54
- return ['e:image', attributes, ['e:image-title', {}, 0]];
55
- }
56
- else {
57
- return ['e:image', attributes];
58
- }
44
+ return ['e:image', attributes];
59
45
  }
60
46
  };
61
47
  //# sourceMappingURL=imageSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"imageSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/imageSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAE9B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE/D,MAAM,iBAAiB,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;AAE5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,iBAA+C,EAAY,EAAE,CAAC,CAAC;IAC9F,GAAG,iBAAiB;IACpB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,GAAG;IACV,KAAK,EAAE;QACL,GAAG,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,KAAK;QAC3B,KAAK,EAAE,EAAE,OAAO,EAAE,IA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;CACF,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAA;AAE9D,MAAM,CAAC,MAAM,iBAAiB,GAAa;IACzC,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;QAC1D,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAA;QACjD,MAAM,UAAU,GAAG,CAAC,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC3D,IAAI,GAAG,KAAK,KAAK,EAAE,CAAC;gBAClB,OAAO,cAAc,CAAC,KAAK,CAAC,CAAA;YAC9B,CAAC;YACD,OAAO,KAAK,CAAA;QACd,CAAC,CAAC,CAAA;QACF,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YACxB,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE,CAAC,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;QAC1D,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;QAChC,CAAC;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"imageSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/imageSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAE9B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE/D,MAAM,iBAAiB,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;AAE5D,MAAM,CAAC,MAA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,iBAAiB,GAAa;IACzC,KAAK,CAAC,IAAI;QACR,MAAM,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;QAC1D,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAA;QACjD,MAAM,UAAU,GAAG,CAAC,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC3D,IAAI,GAAG,KAAK,KAAK,EAAE,CAAC;gBAClB,OAAO,cAAc,CAAC,KAAK,CAAC,CAAA;YAC9B,CAAC;YACD,OAAO,KAAK,CAAA;QACd,CAAC,CAAC,CAAA;QACF,OAAO,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;IAChC,CAAC;CACF,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export const spanWithNowrapSchema = {
2
- spanWithNowrap: {
2
+ spanWithClass: {
3
3
  attrs: {
4
4
  class: { default: null }
5
5
  },
@@ -1 +1 @@
1
- {"version":3,"file":"spanWithNowrapSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/spanWithNowrapSchema.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAa;IAC5C,cAAc,EAAE;QACd,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"}
1
+ {"version":3,"file":"spanWithNowrapSchema.js","sourceRoot":"","sources":["../../../../../src/components/grading-instructions/editor/schemas/spanWithNowrapSchema.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAa;IAC5C,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"}