pro-editor-schema 0.1.195 → 0.1.196

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/dist/index.js CHANGED
@@ -2772,33 +2772,6 @@ var validateElementAgainstSchema = (element, schema, inheritedForbiddenScope) =>
2772
2772
  description: `The element is not allowed in this context.`
2773
2773
  });
2774
2774
  }
2775
- if (schema.code === "insertion" && !element.classList.contains("ins")) {
2776
- addValidationIssue(errors, {
2777
- store: getStore(element),
2778
- title: 'Missing class "ins" for insertion element',
2779
- level: "warning",
2780
- kind: "missing",
2781
- description: `The element is missing the class "ins".`
2782
- });
2783
- }
2784
- if (schema.code === "deletion" && !element.classList.contains("del")) {
2785
- addValidationIssue(errors, {
2786
- store: getStore(element),
2787
- title: 'Missing class "del" for deletion element',
2788
- level: "warning",
2789
- kind: "missing",
2790
- description: `The element is missing the class "del".`
2791
- });
2792
- }
2793
- if (schema.code === "commentQuerySection" && !element.classList.contains("cmtQurySection")) {
2794
- addValidationIssue(errors, {
2795
- store: getStore(element),
2796
- title: 'Missing class "cmtQurySection" for comment query section',
2797
- level: "warning",
2798
- kind: "missing",
2799
- description: `The element is missing the class "cmtQurySection".`
2800
- });
2801
- }
2802
2775
  errors.push(...validateAttributes(element, schema));
2803
2776
  errors.push(...validateChildren(element, schema, inheritedForbiddenScope));
2804
2777
  return errors;
package/dist/index.mjs CHANGED
@@ -2707,33 +2707,6 @@ var validateElementAgainstSchema = (element, schema, inheritedForbiddenScope) =>
2707
2707
  description: `The element is not allowed in this context.`
2708
2708
  });
2709
2709
  }
2710
- if (schema.code === "insertion" && !element.classList.contains("ins")) {
2711
- addValidationIssue(errors, {
2712
- store: getStore(element),
2713
- title: 'Missing class "ins" for insertion element',
2714
- level: "warning",
2715
- kind: "missing",
2716
- description: `The element is missing the class "ins".`
2717
- });
2718
- }
2719
- if (schema.code === "deletion" && !element.classList.contains("del")) {
2720
- addValidationIssue(errors, {
2721
- store: getStore(element),
2722
- title: 'Missing class "del" for deletion element',
2723
- level: "warning",
2724
- kind: "missing",
2725
- description: `The element is missing the class "del".`
2726
- });
2727
- }
2728
- if (schema.code === "commentQuerySection" && !element.classList.contains("cmtQurySection")) {
2729
- addValidationIssue(errors, {
2730
- store: getStore(element),
2731
- title: 'Missing class "cmtQurySection" for comment query section',
2732
- level: "warning",
2733
- kind: "missing",
2734
- description: `The element is missing the class "cmtQurySection".`
2735
- });
2736
- }
2737
2710
  errors.push(...validateAttributes(element, schema));
2738
2711
  errors.push(...validateChildren(element, schema, inheritedForbiddenScope));
2739
2712
  return errors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-editor-schema",
3
- "version": "0.1.195",
3
+ "version": "0.1.196",
4
4
  "description": "Pro Editor XML schemas",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",