@wdprlib/ast 4.1.0 → 4.2.0
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.cjs +2 -2
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/build-info.generated.ts +2 -2
- package/src/element.ts +13 -0
- package/src/index.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -62,8 +62,8 @@ module.exports = __toCommonJS(exports_src);
|
|
|
62
62
|
|
|
63
63
|
// packages/ast/src/build-info.generated.ts
|
|
64
64
|
var buildInfo = Object.freeze({
|
|
65
|
-
version: "4.
|
|
66
|
-
sha: "
|
|
65
|
+
version: "4.2.0",
|
|
66
|
+
sha: "b71b84c705e05717f5ea12fd89684a91b669dbff",
|
|
67
67
|
dirty: false
|
|
68
68
|
});
|
|
69
69
|
// packages/ast/src/position.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -730,6 +730,20 @@ interface TableOfContentsData {
|
|
|
730
730
|
align: Alignment | null;
|
|
731
731
|
}
|
|
732
732
|
/**
|
|
733
|
+
* Resolved pagination state and navigation targets.
|
|
734
|
+
*
|
|
735
|
+
* @group Element Data
|
|
736
|
+
*/
|
|
737
|
+
interface PagerData {
|
|
738
|
+
currentPage: number;
|
|
739
|
+
totalPages: number;
|
|
740
|
+
/** Ascending targets, including the current page, its neighbors, and both ends. */
|
|
741
|
+
pages: {
|
|
742
|
+
page: number;
|
|
743
|
+
href: string;
|
|
744
|
+
}[];
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
733
747
|
* Data for `[[footnoteblock]]` elements.
|
|
734
748
|
*
|
|
735
749
|
* @group Element Data
|
|
@@ -936,6 +950,7 @@ type ElementDataMap = {
|
|
|
936
950
|
"definition-list": DefinitionListItem[];
|
|
937
951
|
collapsible: CollapsibleData;
|
|
938
952
|
"table-of-contents": TableOfContentsData;
|
|
953
|
+
pager: PagerData;
|
|
939
954
|
footnote: void;
|
|
940
955
|
"footnote-ref": number;
|
|
941
956
|
"footnote-block": FootnoteBlockData;
|
|
@@ -1439,4 +1454,4 @@ interface WikitextPageContext {
|
|
|
1439
1454
|
* @group Core
|
|
1440
1455
|
*/
|
|
1441
1456
|
type Version = "wikidot";
|
|
1442
|
-
export { text, paragraph, listItemSubList, listItemElements, list, link, lineBreak, italics, isTruthy, isStringContainerType, isParagraphSafe, isHeaderType, isContainerTypeParagraphSafe, isAlignType, horizontalRule, heading, formatExprValue, evaluateExpression, createSettings, createPosition, createPoint, container, buildInfo, bold, WikitextSettings, WikitextPageFile, WikitextPageContext, WikitextMode, Version, VariableMap, UserData, TocEntry, TableRow, TableOfContentsData, TableData, TableCell, TabData, SyntaxTree, StringContainerType, STYLE_SLOT_PREFIX, STYLE_ANCHOR_PREFIX, Position, Point, ParseResult, PageRef, Module, MathInlineData, MathData, ListType, ListItem, ListData, LinkType, LinkLocation, LinkLabel, LinkData, IncludeData, ImageSource, ImageData, IframeData, IfTagsData, IfExprData, IfCondData, HtmlData, HeadingLevel, Heading, HeaderType, GallerySize, GalleryOrder, GalleryItem, GalleryData, GalleryContent, FootnoteBlockData, FloatAlignment, ExprResult, ExprData, EmbedBlockData, Embed, ElementOf, ElementName, ElementDataMap, ElementData, Element, DiagnosticSeverity, Diagnostic, DefinitionListItem, DateItem, DateData, DEFAULT_SETTINGS, CssLengthUnit, ContainerType, ContainerData, ColorData, CollapsibleData, CodeBlockData, ClearFloat, CSS_LENGTH_UNITS, BibliographyCiteData, BibliographyBlockData, AttributeMap, AnchorTarget, AnchorData, Alignment, AlignType };
|
|
1457
|
+
export { text, paragraph, listItemSubList, listItemElements, list, link, lineBreak, italics, isTruthy, isStringContainerType, isParagraphSafe, isHeaderType, isContainerTypeParagraphSafe, isAlignType, horizontalRule, heading, formatExprValue, evaluateExpression, createSettings, createPosition, createPoint, container, buildInfo, bold, WikitextSettings, WikitextPageFile, WikitextPageContext, WikitextMode, Version, VariableMap, UserData, TocEntry, TableRow, TableOfContentsData, TableData, TableCell, TabData, SyntaxTree, StringContainerType, STYLE_SLOT_PREFIX, STYLE_ANCHOR_PREFIX, Position, Point, ParseResult, PagerData, PageRef, Module, MathInlineData, MathData, ListType, ListItem, ListData, LinkType, LinkLocation, LinkLabel, LinkData, IncludeData, ImageSource, ImageData, IframeData, IfTagsData, IfExprData, IfCondData, HtmlData, HeadingLevel, Heading, HeaderType, GallerySize, GalleryOrder, GalleryItem, GalleryData, GalleryContent, FootnoteBlockData, FloatAlignment, ExprResult, ExprData, EmbedBlockData, Embed, ElementOf, ElementName, ElementDataMap, ElementData, Element, DiagnosticSeverity, Diagnostic, DefinitionListItem, DateItem, DateData, DEFAULT_SETTINGS, CssLengthUnit, ContainerType, ContainerData, ColorData, CollapsibleData, CodeBlockData, ClearFloat, CSS_LENGTH_UNITS, BibliographyCiteData, BibliographyBlockData, AttributeMap, AnchorTarget, AnchorData, Alignment, AlignType };
|
package/dist/index.d.ts
CHANGED
|
@@ -730,6 +730,20 @@ interface TableOfContentsData {
|
|
|
730
730
|
align: Alignment | null;
|
|
731
731
|
}
|
|
732
732
|
/**
|
|
733
|
+
* Resolved pagination state and navigation targets.
|
|
734
|
+
*
|
|
735
|
+
* @group Element Data
|
|
736
|
+
*/
|
|
737
|
+
interface PagerData {
|
|
738
|
+
currentPage: number;
|
|
739
|
+
totalPages: number;
|
|
740
|
+
/** Ascending targets, including the current page, its neighbors, and both ends. */
|
|
741
|
+
pages: {
|
|
742
|
+
page: number;
|
|
743
|
+
href: string;
|
|
744
|
+
}[];
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
733
747
|
* Data for `[[footnoteblock]]` elements.
|
|
734
748
|
*
|
|
735
749
|
* @group Element Data
|
|
@@ -936,6 +950,7 @@ type ElementDataMap = {
|
|
|
936
950
|
"definition-list": DefinitionListItem[];
|
|
937
951
|
collapsible: CollapsibleData;
|
|
938
952
|
"table-of-contents": TableOfContentsData;
|
|
953
|
+
pager: PagerData;
|
|
939
954
|
footnote: void;
|
|
940
955
|
"footnote-ref": number;
|
|
941
956
|
"footnote-block": FootnoteBlockData;
|
|
@@ -1439,4 +1454,4 @@ interface WikitextPageContext {
|
|
|
1439
1454
|
* @group Core
|
|
1440
1455
|
*/
|
|
1441
1456
|
type Version = "wikidot";
|
|
1442
|
-
export { text, paragraph, listItemSubList, listItemElements, list, link, lineBreak, italics, isTruthy, isStringContainerType, isParagraphSafe, isHeaderType, isContainerTypeParagraphSafe, isAlignType, horizontalRule, heading, formatExprValue, evaluateExpression, createSettings, createPosition, createPoint, container, buildInfo, bold, WikitextSettings, WikitextPageFile, WikitextPageContext, WikitextMode, Version, VariableMap, UserData, TocEntry, TableRow, TableOfContentsData, TableData, TableCell, TabData, SyntaxTree, StringContainerType, STYLE_SLOT_PREFIX, STYLE_ANCHOR_PREFIX, Position, Point, ParseResult, PageRef, Module, MathInlineData, MathData, ListType, ListItem, ListData, LinkType, LinkLocation, LinkLabel, LinkData, IncludeData, ImageSource, ImageData, IframeData, IfTagsData, IfExprData, IfCondData, HtmlData, HeadingLevel, Heading, HeaderType, GallerySize, GalleryOrder, GalleryItem, GalleryData, GalleryContent, FootnoteBlockData, FloatAlignment, ExprResult, ExprData, EmbedBlockData, Embed, ElementOf, ElementName, ElementDataMap, ElementData, Element, DiagnosticSeverity, Diagnostic, DefinitionListItem, DateItem, DateData, DEFAULT_SETTINGS, CssLengthUnit, ContainerType, ContainerData, ColorData, CollapsibleData, CodeBlockData, ClearFloat, CSS_LENGTH_UNITS, BibliographyCiteData, BibliographyBlockData, AttributeMap, AnchorTarget, AnchorData, Alignment, AlignType };
|
|
1457
|
+
export { text, paragraph, listItemSubList, listItemElements, list, link, lineBreak, italics, isTruthy, isStringContainerType, isParagraphSafe, isHeaderType, isContainerTypeParagraphSafe, isAlignType, horizontalRule, heading, formatExprValue, evaluateExpression, createSettings, createPosition, createPoint, container, buildInfo, bold, WikitextSettings, WikitextPageFile, WikitextPageContext, WikitextMode, Version, VariableMap, UserData, TocEntry, TableRow, TableOfContentsData, TableData, TableCell, TabData, SyntaxTree, StringContainerType, STYLE_SLOT_PREFIX, STYLE_ANCHOR_PREFIX, Position, Point, ParseResult, PagerData, PageRef, Module, MathInlineData, MathData, ListType, ListItem, ListData, LinkType, LinkLocation, LinkLabel, LinkData, IncludeData, ImageSource, ImageData, IframeData, IfTagsData, IfExprData, IfCondData, HtmlData, HeadingLevel, Heading, HeaderType, GallerySize, GalleryOrder, GalleryItem, GalleryData, GalleryContent, FootnoteBlockData, FloatAlignment, ExprResult, ExprData, EmbedBlockData, Embed, ElementOf, ElementName, ElementDataMap, ElementData, Element, DiagnosticSeverity, Diagnostic, DefinitionListItem, DateItem, DateData, DEFAULT_SETTINGS, CssLengthUnit, ContainerType, ContainerData, ColorData, CollapsibleData, CodeBlockData, ClearFloat, CSS_LENGTH_UNITS, BibliographyCiteData, BibliographyBlockData, AttributeMap, AnchorTarget, AnchorData, Alignment, AlignType };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// packages/ast/src/build-info.generated.ts
|
|
2
2
|
var buildInfo = Object.freeze({
|
|
3
|
-
version: "4.
|
|
4
|
-
sha: "
|
|
3
|
+
version: "4.2.0",
|
|
4
|
+
sha: "b71b84c705e05717f5ea12fd89684a91b669dbff",
|
|
5
5
|
dirty: false
|
|
6
6
|
});
|
|
7
7
|
// packages/ast/src/position.ts
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ export const buildInfo: Readonly<{
|
|
|
5
5
|
sha: string | null;
|
|
6
6
|
dirty: boolean | null;
|
|
7
7
|
}> = Object.freeze({
|
|
8
|
-
version: "4.
|
|
9
|
-
sha: "
|
|
8
|
+
version: "4.2.0",
|
|
9
|
+
sha: "b71b84c705e05717f5ea12fd89684a91b669dbff",
|
|
10
10
|
dirty: false,
|
|
11
11
|
});
|
package/src/element.ts
CHANGED
|
@@ -742,6 +742,18 @@ export interface TableOfContentsData {
|
|
|
742
742
|
align: Alignment | null;
|
|
743
743
|
}
|
|
744
744
|
|
|
745
|
+
/**
|
|
746
|
+
* Resolved pagination state and navigation targets.
|
|
747
|
+
*
|
|
748
|
+
* @group Element Data
|
|
749
|
+
*/
|
|
750
|
+
export interface PagerData {
|
|
751
|
+
currentPage: number;
|
|
752
|
+
totalPages: number;
|
|
753
|
+
/** Ascending targets, including the current page, its neighbors, and both ends. */
|
|
754
|
+
pages: { page: number; href: string }[];
|
|
755
|
+
}
|
|
756
|
+
|
|
745
757
|
/**
|
|
746
758
|
* Data for `[[footnoteblock]]` elements.
|
|
747
759
|
*
|
|
@@ -969,6 +981,7 @@ export type ElementDataMap = {
|
|
|
969
981
|
"definition-list": DefinitionListItem[];
|
|
970
982
|
collapsible: CollapsibleData;
|
|
971
983
|
"table-of-contents": TableOfContentsData;
|
|
984
|
+
pager: PagerData;
|
|
972
985
|
footnote: void;
|
|
973
986
|
"footnote-ref": number;
|
|
974
987
|
"footnote-block": FootnoteBlockData;
|