pro-editor-schema 0.1.185 → 0.1.186

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
@@ -2572,6 +2572,9 @@ var validateChildren = (element, schema) => {
2572
2572
  (child) => !isIgnoredElement(child)
2573
2573
  );
2574
2574
  const allowedChildren = [...schema.allowedChildTagNames];
2575
+ if (schema.kind === "atom") {
2576
+ return errors;
2577
+ }
2575
2578
  for (const child of childElements) {
2576
2579
  const childTag = child.tagName.toUpperCase();
2577
2580
  const allowedChild = allowedChildren.find(
package/dist/index.mjs CHANGED
@@ -2509,6 +2509,9 @@ var validateChildren = (element, schema) => {
2509
2509
  (child) => !isIgnoredElement(child)
2510
2510
  );
2511
2511
  const allowedChildren = [...schema.allowedChildTagNames];
2512
+ if (schema.kind === "atom") {
2513
+ return errors;
2514
+ }
2512
2515
  for (const child of childElements) {
2513
2516
  const childTag = child.tagName.toUpperCase();
2514
2517
  const allowedChild = allowedChildren.find(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-editor-schema",
3
- "version": "0.1.185",
3
+ "version": "0.1.186",
4
4
  "description": "Pro Editor XML schemas",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",