pro-editor-schema 0.1.18 → 0.1.181
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 +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -18,7 +18,6 @@ type Schema<TRequiredAttributes = readonly AttributeDefinition[], TOptionalAttri
|
|
|
18
18
|
optionalAttributes: TOptionalAttributes;
|
|
19
19
|
defaultChildTagName?: string;
|
|
20
20
|
allowedChildTagNames: ReadonlySet<AllowedChildren>;
|
|
21
|
-
canBeWrappedByInsertOrDelete?: boolean;
|
|
22
21
|
};
|
|
23
22
|
type SchemaCode = ElementSchemaCode | InlineSchemaCode | AtomSchemaCode;
|
|
24
23
|
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,6 @@ type Schema<TRequiredAttributes = readonly AttributeDefinition[], TOptionalAttri
|
|
|
18
18
|
optionalAttributes: TOptionalAttributes;
|
|
19
19
|
defaultChildTagName?: string;
|
|
20
20
|
allowedChildTagNames: ReadonlySet<AllowedChildren>;
|
|
21
|
-
canBeWrappedByInsertOrDelete?: boolean;
|
|
22
21
|
};
|
|
23
22
|
type SchemaCode = ElementSchemaCode | InlineSchemaCode | AtomSchemaCode;
|
|
24
23
|
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
|
@@ -69,8 +69,7 @@ var createSchema = ({
|
|
|
69
69
|
requiredAttributes,
|
|
70
70
|
optionalAttributes,
|
|
71
71
|
defaultChildTagName,
|
|
72
|
-
allowedChildTagNames
|
|
73
|
-
canBeWrappedByInsertOrDelete
|
|
72
|
+
allowedChildTagNames
|
|
74
73
|
}) => {
|
|
75
74
|
return {
|
|
76
75
|
code,
|
|
@@ -79,8 +78,7 @@ var createSchema = ({
|
|
|
79
78
|
requiredAttributes,
|
|
80
79
|
optionalAttributes,
|
|
81
80
|
defaultChildTagName,
|
|
82
|
-
allowedChildTagNames: new Set(allowedChildTagNames)
|
|
83
|
-
canBeWrappedByInsertOrDelete
|
|
81
|
+
allowedChildTagNames: new Set(allowedChildTagNames)
|
|
84
82
|
};
|
|
85
83
|
};
|
|
86
84
|
|
|
@@ -897,8 +895,7 @@ var MATH_SCHEMA = createSchema({
|
|
|
897
895
|
tag: MATH_TAG,
|
|
898
896
|
requiredAttributes: [],
|
|
899
897
|
optionalAttributes: ["xmlns"],
|
|
900
|
-
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
901
|
-
canBeWrappedByInsertOrDelete: true
|
|
898
|
+
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
902
899
|
});
|
|
903
900
|
|
|
904
901
|
// src/schema/elementSchemas/elements/equation/merror.ts
|
|
@@ -2023,7 +2020,10 @@ var MATHPHRASE_SCHEMA = createSchema({
|
|
|
2023
2020
|
tag: MATHPHRASE_TAG,
|
|
2024
2021
|
requiredAttributes: [ELE_ID_ATTRIBUTE],
|
|
2025
2022
|
optionalAttributes: [],
|
|
2026
|
-
allowedChildTagNames: [
|
|
2023
|
+
allowedChildTagNames: [
|
|
2024
|
+
{ tagName: MATH_TAG, required: true },
|
|
2025
|
+
{ tagName: SPAN_TAG, required: false }
|
|
2026
|
+
]
|
|
2027
2027
|
});
|
|
2028
2028
|
|
|
2029
2029
|
// src/schema/elementSchemas/elements/index.ts
|
package/dist/index.mjs
CHANGED
|
@@ -6,8 +6,7 @@ var createSchema = ({
|
|
|
6
6
|
requiredAttributes,
|
|
7
7
|
optionalAttributes,
|
|
8
8
|
defaultChildTagName,
|
|
9
|
-
allowedChildTagNames
|
|
10
|
-
canBeWrappedByInsertOrDelete
|
|
9
|
+
allowedChildTagNames
|
|
11
10
|
}) => {
|
|
12
11
|
return {
|
|
13
12
|
code,
|
|
@@ -16,8 +15,7 @@ var createSchema = ({
|
|
|
16
15
|
requiredAttributes,
|
|
17
16
|
optionalAttributes,
|
|
18
17
|
defaultChildTagName,
|
|
19
|
-
allowedChildTagNames: new Set(allowedChildTagNames)
|
|
20
|
-
canBeWrappedByInsertOrDelete
|
|
18
|
+
allowedChildTagNames: new Set(allowedChildTagNames)
|
|
21
19
|
};
|
|
22
20
|
};
|
|
23
21
|
|
|
@@ -834,8 +832,7 @@ var MATH_SCHEMA = createSchema({
|
|
|
834
832
|
tag: MATH_TAG,
|
|
835
833
|
requiredAttributes: [],
|
|
836
834
|
optionalAttributes: ["xmlns"],
|
|
837
|
-
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
838
|
-
canBeWrappedByInsertOrDelete: true
|
|
835
|
+
allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
|
|
839
836
|
});
|
|
840
837
|
|
|
841
838
|
// src/schema/elementSchemas/elements/equation/merror.ts
|
|
@@ -1960,7 +1957,10 @@ var MATHPHRASE_SCHEMA = createSchema({
|
|
|
1960
1957
|
tag: MATHPHRASE_TAG,
|
|
1961
1958
|
requiredAttributes: [ELE_ID_ATTRIBUTE],
|
|
1962
1959
|
optionalAttributes: [],
|
|
1963
|
-
allowedChildTagNames: [
|
|
1960
|
+
allowedChildTagNames: [
|
|
1961
|
+
{ tagName: MATH_TAG, required: true },
|
|
1962
|
+
{ tagName: SPAN_TAG, required: false }
|
|
1963
|
+
]
|
|
1964
1964
|
});
|
|
1965
1965
|
|
|
1966
1966
|
// src/schema/elementSchemas/elements/index.ts
|