pro-editor-schema 0.1.18 → 0.1.182
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -18,7 +18,7 @@ type Schema<TRequiredAttributes = readonly AttributeDefinition[], TOptionalAttri
|
|
|
18
18
|
optionalAttributes: TOptionalAttributes;
|
|
19
19
|
defaultChildTagName?: string;
|
|
20
20
|
allowedChildTagNames: ReadonlySet<AllowedChildren>;
|
|
21
|
-
|
|
21
|
+
unhierarchicalAllowedChildTagNames?: readonly string[];
|
|
22
22
|
};
|
|
23
23
|
type SchemaCode = ElementSchemaCode | InlineSchemaCode | AtomSchemaCode;
|
|
24
24
|
type ElementSchemaCode = "degrees" | "email" | "equation" | "fignote" | "figsource" | "firstname" | "footnote" | "footnoteno" | "honorific" | "img" | "informalfigure" | "keyword" | "label1" | "li" | "line" | "lrh" | "math" | "mathphrase" | "merror" | "mfrac" | "mi" | "mmultiscripts" | "mn" | "mo" | "mover" | "mpadded" | "mphantom" | "mprescripts" | "mroot" | "mrow" | "ms" | "mspace" | "msqrt" | "mstyle" | "msub" | "msubsup" | "msup" | "mtable" | "mtd" | "mtext" | "mtr" | "munder" | "munderover" | "olink" | "org" | "orgname" | "para" | "punc" | "rrh" | "source1" | "speaker" | "subtitle1" | "surname" | "tag" | "tblfn" | "tblsource" | "thead" | "title1" | "token" | "tp" | "abstract1" | "affiliation" | "alttext" | "appendix" | "author" | "authorgroup" | "blockquote" | "caption1" | "chapter" | "dialogue" | "epigraph" | "figure1" | "footnoteSection" | "heading" | "imageobject" | "info1" | "keywordset" | "mediaobject" | "ol" | "personname" | "poem" | "sidebar" | "table" | "table1" | "tbody" | "td" | "tgroup" | "tr" | "ul";
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ type Schema<TRequiredAttributes = readonly AttributeDefinition[], TOptionalAttri
|
|
|
18
18
|
optionalAttributes: TOptionalAttributes;
|
|
19
19
|
defaultChildTagName?: string;
|
|
20
20
|
allowedChildTagNames: ReadonlySet<AllowedChildren>;
|
|
21
|
-
|
|
21
|
+
unhierarchicalAllowedChildTagNames?: readonly string[];
|
|
22
22
|
};
|
|
23
23
|
type SchemaCode = ElementSchemaCode | InlineSchemaCode | AtomSchemaCode;
|
|
24
24
|
type ElementSchemaCode = "degrees" | "email" | "equation" | "fignote" | "figsource" | "firstname" | "footnote" | "footnoteno" | "honorific" | "img" | "informalfigure" | "keyword" | "label1" | "li" | "line" | "lrh" | "math" | "mathphrase" | "merror" | "mfrac" | "mi" | "mmultiscripts" | "mn" | "mo" | "mover" | "mpadded" | "mphantom" | "mprescripts" | "mroot" | "mrow" | "ms" | "mspace" | "msqrt" | "mstyle" | "msub" | "msubsup" | "msup" | "mtable" | "mtd" | "mtext" | "mtr" | "munder" | "munderover" | "olink" | "org" | "orgname" | "para" | "punc" | "rrh" | "source1" | "speaker" | "subtitle1" | "surname" | "tag" | "tblfn" | "tblsource" | "thead" | "title1" | "token" | "tp" | "abstract1" | "affiliation" | "alttext" | "appendix" | "author" | "authorgroup" | "blockquote" | "caption1" | "chapter" | "dialogue" | "epigraph" | "figure1" | "footnoteSection" | "heading" | "imageobject" | "info1" | "keywordset" | "mediaobject" | "ol" | "personname" | "poem" | "sidebar" | "table" | "table1" | "tbody" | "td" | "tgroup" | "tr" | "ul";
|
package/dist/index.js
CHANGED
|
@@ -70,7 +70,7 @@ var createSchema = ({
|
|
|
70
70
|
optionalAttributes,
|
|
71
71
|
defaultChildTagName,
|
|
72
72
|
allowedChildTagNames,
|
|
73
|
-
|
|
73
|
+
unhierarchicalAllowedChildTagNames
|
|
74
74
|
}) => {
|
|
75
75
|
return {
|
|
76
76
|
code,
|
|
@@ -80,7 +80,7 @@ var createSchema = ({
|
|
|
80
80
|
optionalAttributes,
|
|
81
81
|
defaultChildTagName,
|
|
82
82
|
allowedChildTagNames: new Set(allowedChildTagNames),
|
|
83
|
-
|
|
83
|
+
unhierarchicalAllowedChildTagNames
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
|
|
@@ -897,8 +897,7 @@ var MATH_SCHEMA = createSchema({
|
|
|
897
897
|
tag: MATH_TAG,
|
|
898
898
|
requiredAttributes: [],
|
|
899
899
|
optionalAttributes: ["xmlns"],
|
|
900
|
-
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
901
|
-
canBeWrappedByInsertOrDelete: true
|
|
900
|
+
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
902
901
|
});
|
|
903
902
|
|
|
904
903
|
// src/schema/elementSchemas/elements/equation/merror.ts
|
|
@@ -2023,7 +2022,8 @@ var MATHPHRASE_SCHEMA = createSchema({
|
|
|
2023
2022
|
tag: MATHPHRASE_TAG,
|
|
2024
2023
|
requiredAttributes: [ELE_ID_ATTRIBUTE],
|
|
2025
2024
|
optionalAttributes: [],
|
|
2026
|
-
allowedChildTagNames: [{ tagName: MATH_TAG, required: true }]
|
|
2025
|
+
allowedChildTagNames: [{ tagName: MATH_TAG, required: true }],
|
|
2026
|
+
unhierarchicalAllowedChildTagNames: [SPAN_TAG]
|
|
2027
2027
|
});
|
|
2028
2028
|
|
|
2029
2029
|
// src/schema/elementSchemas/elements/index.ts
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var createSchema = ({
|
|
|
7
7
|
optionalAttributes,
|
|
8
8
|
defaultChildTagName,
|
|
9
9
|
allowedChildTagNames,
|
|
10
|
-
|
|
10
|
+
unhierarchicalAllowedChildTagNames
|
|
11
11
|
}) => {
|
|
12
12
|
return {
|
|
13
13
|
code,
|
|
@@ -17,7 +17,7 @@ var createSchema = ({
|
|
|
17
17
|
optionalAttributes,
|
|
18
18
|
defaultChildTagName,
|
|
19
19
|
allowedChildTagNames: new Set(allowedChildTagNames),
|
|
20
|
-
|
|
20
|
+
unhierarchicalAllowedChildTagNames
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -834,8 +834,7 @@ var MATH_SCHEMA = createSchema({
|
|
|
834
834
|
tag: MATH_TAG,
|
|
835
835
|
requiredAttributes: [],
|
|
836
836
|
optionalAttributes: ["xmlns"],
|
|
837
|
-
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
838
|
-
canBeWrappedByInsertOrDelete: true
|
|
837
|
+
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
839
838
|
});
|
|
840
839
|
|
|
841
840
|
// src/schema/elementSchemas/elements/equation/merror.ts
|
|
@@ -1960,7 +1959,8 @@ var MATHPHRASE_SCHEMA = createSchema({
|
|
|
1960
1959
|
tag: MATHPHRASE_TAG,
|
|
1961
1960
|
requiredAttributes: [ELE_ID_ATTRIBUTE],
|
|
1962
1961
|
optionalAttributes: [],
|
|
1963
|
-
allowedChildTagNames: [{ tagName: MATH_TAG, required: true }]
|
|
1962
|
+
allowedChildTagNames: [{ tagName: MATH_TAG, required: true }],
|
|
1963
|
+
unhierarchicalAllowedChildTagNames: [SPAN_TAG]
|
|
1964
1964
|
});
|
|
1965
1965
|
|
|
1966
1966
|
// src/schema/elementSchemas/elements/index.ts
|