@knpkv/atlassian-common 0.2.0 → 0.3.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/CHANGELOG.md +19 -0
- package/dist/Brand.d.ts +15 -15
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +5 -5
- package/dist/Brand.js.map +1 -1
- package/dist/Hash.d.ts +12 -14
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +18 -24
- package/dist/Hash.js.map +1 -1
- package/dist/ast/BlockNode.d.ts +120 -177
- package/dist/ast/BlockNode.d.ts.map +1 -1
- package/dist/ast/BlockNode.js +28 -8
- package/dist/ast/BlockNode.js.map +1 -1
- package/dist/ast/Document.d.ts +114 -156
- package/dist/ast/Document.d.ts.map +1 -1
- package/dist/ast/Document.js +1 -1
- package/dist/ast/Document.js.map +1 -1
- package/dist/ast/InlineNode.d.ts +59 -247
- package/dist/ast/InlineNode.d.ts.map +1 -1
- package/dist/ast/InlineNode.js +28 -3
- package/dist/ast/InlineNode.js.map +1 -1
- package/dist/ast/MacroNode.d.ts +62 -102
- package/dist/ast/MacroNode.d.ts.map +1 -1
- package/dist/ast/MacroNode.js +12 -5
- package/dist/ast/MacroNode.js.map +1 -1
- package/dist/auth/OAuthOperations.d.ts +1 -1
- package/dist/auth/OAuthOperations.d.ts.map +1 -1
- package/dist/auth/OAuthOperations.js +5 -6
- package/dist/auth/OAuthOperations.js.map +1 -1
- package/dist/auth/OAuthResponseSchemas.d.ts +13 -13
- package/dist/config/ConfigPaths.d.ts +6 -26
- package/dist/config/ConfigPaths.d.ts.map +1 -1
- package/dist/config/ConfigPaths.js +23 -3
- package/dist/config/ConfigPaths.js.map +1 -1
- package/dist/config/OAuthSchemas.d.ts +24 -24
- package/dist/config/TokenStorage.d.ts +5 -24
- package/dist/config/TokenStorage.d.ts.map +1 -1
- package/dist/config/TokenStorage.js +35 -22
- package/dist/config/TokenStorage.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -9
- package/src/Brand.ts +5 -17
- package/src/Hash.ts +27 -27
- package/src/ast/BlockNode.ts +13 -13
- package/src/ast/Document.ts +1 -1
- package/src/ast/InlineNode.ts +5 -5
- package/src/ast/MacroNode.ts +7 -6
- package/src/auth/OAuthOperations.ts +5 -6
- package/src/config/ConfigPaths.ts +7 -7
- package/src/config/TokenStorage.ts +23 -27
- package/src/index.ts +1 -1
- package/test/Hash.test.ts +52 -0
- package/test/OAuthOperations.test.ts +2 -3
- package/tsconfig.tsbuildinfo +1 -1
package/dist/ast/Document.d.ts
CHANGED
|
@@ -22,90 +22,70 @@ import { type MacroNode as MacroNodeType } from "./MacroNode.js";
|
|
|
22
22
|
*
|
|
23
23
|
* @category Document
|
|
24
24
|
*/
|
|
25
|
-
export declare const DocumentNode: Schema.Union<[Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, Schema.Struct<{
|
|
26
|
-
_tag: Schema.Literal<
|
|
27
|
-
version: Schema.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
31
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
25
|
+
export declare const DocumentNode: Schema.Union<readonly [Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, Schema.Struct<{
|
|
26
|
+
readonly _tag: Schema.Literal<"BlockQuote">;
|
|
27
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
28
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
29
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
32
30
|
}>, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, Schema.Struct<{
|
|
33
|
-
_tag: Schema.Literal<
|
|
34
|
-
version: Schema.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
43
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
31
|
+
readonly _tag: Schema.Literal<"List">;
|
|
32
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
33
|
+
readonly ordered: Schema.Boolean;
|
|
34
|
+
readonly start: Schema.optional<Schema.Number>;
|
|
35
|
+
readonly children: Schema.$Array<Schema.Struct<{
|
|
36
|
+
readonly _tag: Schema.Literal<"ListItem">;
|
|
37
|
+
readonly checked: Schema.optional<Schema.Boolean>;
|
|
38
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
39
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
44
40
|
}>>;
|
|
45
|
-
rawSource: Schema.optional<
|
|
41
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
46
42
|
}>, Schema.Struct<{
|
|
47
|
-
_tag: Schema.Literal<
|
|
48
|
-
version: Schema.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.ts").Text, typeof import("./InlineNode.ts").Strong, typeof import("./InlineNode.ts").Emphasis, typeof import("./InlineNode.ts").InlineCode, typeof import("./InlineNode.ts").Link, typeof import("./InlineNode.ts").LineBreak, typeof import("./InlineNode.ts").Emoticon, typeof import("./InlineNode.ts").UserMention, typeof import("./InlineNode.ts").DateTime, typeof import("./InlineNode.ts").Underline, typeof import("./InlineNode.ts").Subscript, typeof import("./InlineNode.ts").Superscript, typeof import("./InlineNode.ts").Strikethrough, typeof import("./InlineNode.ts").ColoredText, typeof import("./InlineNode.ts").Highlight, typeof import("./InlineNode.ts").UnsupportedInline]>>;
|
|
57
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
43
|
+
readonly _tag: Schema.Literal<"TaskList">;
|
|
44
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
45
|
+
readonly children: Schema.$Array<Schema.Struct<{
|
|
46
|
+
readonly _tag: Schema.Literal<"TaskItem">;
|
|
47
|
+
readonly id: Schema.String;
|
|
48
|
+
readonly uuid: Schema.String;
|
|
49
|
+
readonly status: Schema.Literals<readonly ["incomplete", "complete"]>;
|
|
50
|
+
readonly body: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.ts").Text, typeof import("./InlineNode.ts").Strong, typeof import("./InlineNode.ts").Emphasis, typeof import("./InlineNode.ts").InlineCode, typeof import("./InlineNode.ts").Link, typeof import("./InlineNode.ts").LineBreak, typeof import("./InlineNode.ts").Emoticon, typeof import("./InlineNode.ts").UserMention, typeof import("./InlineNode.ts").DateTime, typeof import("./InlineNode.ts").Underline, typeof import("./InlineNode.ts").Subscript, typeof import("./InlineNode.ts").Superscript, typeof import("./InlineNode.ts").Strikethrough, typeof import("./InlineNode.ts").ColoredText, typeof import("./InlineNode.ts").Highlight, typeof import("./InlineNode.ts").UnsupportedInline]>>;
|
|
51
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
58
52
|
}>>;
|
|
59
|
-
rawSource: Schema.optional<
|
|
60
|
-
}>, typeof import("./BlockNode.js").UnsupportedBlock]>, Schema.Union<[Schema.Struct<{
|
|
61
|
-
_tag: Schema.Literal<
|
|
62
|
-
version: Schema.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
68
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
53
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
54
|
+
}>, typeof import("./BlockNode.js").UnsupportedBlock]>, Schema.Union<readonly [Schema.Struct<{
|
|
55
|
+
readonly _tag: Schema.Literal<"InfoPanel">;
|
|
56
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
57
|
+
readonly panelType: Schema.Literals<readonly ["info", "warning", "note", "tip", "error", "panel"]>;
|
|
58
|
+
readonly title: Schema.optional<Schema.String>;
|
|
59
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
60
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
69
61
|
}>, Schema.Struct<{
|
|
70
|
-
_tag: Schema.Literal<
|
|
71
|
-
version: Schema.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
76
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
62
|
+
readonly _tag: Schema.Literal<"ExpandMacro">;
|
|
63
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
64
|
+
readonly title: Schema.optional<Schema.String>;
|
|
65
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
66
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
77
67
|
}>, Schema.Struct<{
|
|
78
|
-
_tag: Schema.Literal<
|
|
79
|
-
version: Schema.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
maxLevel: Schema.optional<typeof Schema.Number>;
|
|
84
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
68
|
+
readonly _tag: Schema.Literal<"TocMacro">;
|
|
69
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
70
|
+
readonly minLevel: Schema.optional<Schema.Number>;
|
|
71
|
+
readonly maxLevel: Schema.optional<Schema.Number>;
|
|
72
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
85
73
|
}>, Schema.Struct<{
|
|
86
|
-
_tag: Schema.Literal<
|
|
87
|
-
version: Schema.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}>;
|
|
96
|
-
collapse: Schema.optionalWith<typeof Schema.Boolean, {
|
|
97
|
-
default: () => false;
|
|
98
|
-
}>;
|
|
99
|
-
firstLine: Schema.optional<typeof Schema.Number>;
|
|
100
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
74
|
+
readonly _tag: Schema.Literal<"CodeMacro">;
|
|
75
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
76
|
+
readonly language: Schema.optional<Schema.String>;
|
|
77
|
+
readonly title: Schema.optional<Schema.String>;
|
|
78
|
+
readonly code: Schema.String;
|
|
79
|
+
readonly lineNumbers: Schema.withConstructorDefault<Schema.Boolean>;
|
|
80
|
+
readonly collapse: Schema.withConstructorDefault<Schema.Boolean>;
|
|
81
|
+
readonly firstLine: Schema.optional<Schema.Number>;
|
|
82
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
101
83
|
}>, Schema.Struct<{
|
|
102
|
-
_tag: Schema.Literal<
|
|
103
|
-
version: Schema.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
color: Schema.Literal<["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
108
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
84
|
+
readonly _tag: Schema.Literal<"StatusMacro">;
|
|
85
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
86
|
+
readonly text: Schema.String;
|
|
87
|
+
readonly color: Schema.Literals<readonly ["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
88
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
109
89
|
}>]>]>;
|
|
110
90
|
/**
|
|
111
91
|
* Type for document nodes.
|
|
@@ -135,95 +115,73 @@ export type DocumentNode = BlockNodeType | MacroNodeType;
|
|
|
135
115
|
* @category Document
|
|
136
116
|
*/
|
|
137
117
|
export declare const Document: Schema.Struct<{
|
|
138
|
-
version: Schema.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
default: () => number;
|
|
145
|
-
}>;
|
|
146
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
147
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
118
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
119
|
+
readonly children: Schema.$Array<Schema.Union<readonly [Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, Schema.Struct<{
|
|
120
|
+
readonly _tag: Schema.Literal<"BlockQuote">;
|
|
121
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
122
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
123
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
148
124
|
}>, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, Schema.Struct<{
|
|
149
|
-
_tag: Schema.Literal<
|
|
150
|
-
version: Schema.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
159
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
125
|
+
readonly _tag: Schema.Literal<"List">;
|
|
126
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
127
|
+
readonly ordered: Schema.Boolean;
|
|
128
|
+
readonly start: Schema.optional<Schema.Number>;
|
|
129
|
+
readonly children: Schema.$Array<Schema.Struct<{
|
|
130
|
+
readonly _tag: Schema.Literal<"ListItem">;
|
|
131
|
+
readonly checked: Schema.optional<Schema.Boolean>;
|
|
132
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
133
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
160
134
|
}>>;
|
|
161
|
-
rawSource: Schema.optional<
|
|
135
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
162
136
|
}>, Schema.Struct<{
|
|
163
|
-
_tag: Schema.Literal<
|
|
164
|
-
version: Schema.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.ts").Text, typeof import("./InlineNode.ts").Strong, typeof import("./InlineNode.ts").Emphasis, typeof import("./InlineNode.ts").InlineCode, typeof import("./InlineNode.ts").Link, typeof import("./InlineNode.ts").LineBreak, typeof import("./InlineNode.ts").Emoticon, typeof import("./InlineNode.ts").UserMention, typeof import("./InlineNode.ts").DateTime, typeof import("./InlineNode.ts").Underline, typeof import("./InlineNode.ts").Subscript, typeof import("./InlineNode.ts").Superscript, typeof import("./InlineNode.ts").Strikethrough, typeof import("./InlineNode.ts").ColoredText, typeof import("./InlineNode.ts").Highlight, typeof import("./InlineNode.ts").UnsupportedInline]>>;
|
|
173
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
137
|
+
readonly _tag: Schema.Literal<"TaskList">;
|
|
138
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
139
|
+
readonly children: Schema.$Array<Schema.Struct<{
|
|
140
|
+
readonly _tag: Schema.Literal<"TaskItem">;
|
|
141
|
+
readonly id: Schema.String;
|
|
142
|
+
readonly uuid: Schema.String;
|
|
143
|
+
readonly status: Schema.Literals<readonly ["incomplete", "complete"]>;
|
|
144
|
+
readonly body: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.ts").Text, typeof import("./InlineNode.ts").Strong, typeof import("./InlineNode.ts").Emphasis, typeof import("./InlineNode.ts").InlineCode, typeof import("./InlineNode.ts").Link, typeof import("./InlineNode.ts").LineBreak, typeof import("./InlineNode.ts").Emoticon, typeof import("./InlineNode.ts").UserMention, typeof import("./InlineNode.ts").DateTime, typeof import("./InlineNode.ts").Underline, typeof import("./InlineNode.ts").Subscript, typeof import("./InlineNode.ts").Superscript, typeof import("./InlineNode.ts").Strikethrough, typeof import("./InlineNode.ts").ColoredText, typeof import("./InlineNode.ts").Highlight, typeof import("./InlineNode.ts").UnsupportedInline]>>;
|
|
145
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
174
146
|
}>>;
|
|
175
|
-
rawSource: Schema.optional<
|
|
176
|
-
}>, typeof import("./BlockNode.js").UnsupportedBlock]>, Schema.Union<[Schema.Struct<{
|
|
177
|
-
_tag: Schema.Literal<
|
|
178
|
-
version: Schema.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
184
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
147
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
148
|
+
}>, typeof import("./BlockNode.js").UnsupportedBlock]>, Schema.Union<readonly [Schema.Struct<{
|
|
149
|
+
readonly _tag: Schema.Literal<"InfoPanel">;
|
|
150
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
151
|
+
readonly panelType: Schema.Literals<readonly ["info", "warning", "note", "tip", "error", "panel"]>;
|
|
152
|
+
readonly title: Schema.optional<Schema.String>;
|
|
153
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
154
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
185
155
|
}>, Schema.Struct<{
|
|
186
|
-
_tag: Schema.Literal<
|
|
187
|
-
version: Schema.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
children: Schema.Array$<Schema.Union<[typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
192
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
156
|
+
readonly _tag: Schema.Literal<"ExpandMacro">;
|
|
157
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
158
|
+
readonly title: Schema.optional<Schema.String>;
|
|
159
|
+
readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./BlockNode.js").Heading, typeof import("./BlockNode.js").Paragraph, typeof import("./BlockNode.js").CodeBlock, typeof import("./BlockNode.js").ThematicBreak, typeof import("./BlockNode.js").Image, typeof import("./BlockNode.js").Table, typeof import("./BlockNode.js").UnsupportedBlock]>>;
|
|
160
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
193
161
|
}>, Schema.Struct<{
|
|
194
|
-
_tag: Schema.Literal<
|
|
195
|
-
version: Schema.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
maxLevel: Schema.optional<typeof Schema.Number>;
|
|
200
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
162
|
+
readonly _tag: Schema.Literal<"TocMacro">;
|
|
163
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
164
|
+
readonly minLevel: Schema.optional<Schema.Number>;
|
|
165
|
+
readonly maxLevel: Schema.optional<Schema.Number>;
|
|
166
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
201
167
|
}>, Schema.Struct<{
|
|
202
|
-
_tag: Schema.Literal<
|
|
203
|
-
version: Schema.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}>;
|
|
212
|
-
collapse: Schema.optionalWith<typeof Schema.Boolean, {
|
|
213
|
-
default: () => false;
|
|
214
|
-
}>;
|
|
215
|
-
firstLine: Schema.optional<typeof Schema.Number>;
|
|
216
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
168
|
+
readonly _tag: Schema.Literal<"CodeMacro">;
|
|
169
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
170
|
+
readonly language: Schema.optional<Schema.String>;
|
|
171
|
+
readonly title: Schema.optional<Schema.String>;
|
|
172
|
+
readonly code: Schema.String;
|
|
173
|
+
readonly lineNumbers: Schema.withConstructorDefault<Schema.Boolean>;
|
|
174
|
+
readonly collapse: Schema.withConstructorDefault<Schema.Boolean>;
|
|
175
|
+
readonly firstLine: Schema.optional<Schema.Number>;
|
|
176
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
217
177
|
}>, Schema.Struct<{
|
|
218
|
-
_tag: Schema.Literal<
|
|
219
|
-
version: Schema.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
color: Schema.Literal<["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
224
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
178
|
+
readonly _tag: Schema.Literal<"StatusMacro">;
|
|
179
|
+
readonly version: Schema.withConstructorDefault<Schema.Int>;
|
|
180
|
+
readonly text: Schema.String;
|
|
181
|
+
readonly color: Schema.Literals<readonly ["Grey", "Red", "Yellow", "Green", "Blue"]>;
|
|
182
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
225
183
|
}>]>]>>;
|
|
226
|
-
rawSource: Schema.optional<
|
|
184
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
227
185
|
}>;
|
|
228
186
|
/**
|
|
229
187
|
* Type for Document.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../src/ast/Document.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAa,KAAK,SAAS,IAAI,aAAa,EAA4B,MAAM,gBAAgB,CAAA;AACrG,OAAO,EAAa,KAAK,SAAS,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE3E;;;;GAIG;AACH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../src/ast/Document.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAa,KAAK,SAAS,IAAI,aAAa,EAA4B,MAAM,gBAAgB,CAAA;AACrG,OAAO,EAAa,KAAK,SAAS,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE3E;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAuC,CAAA;AAEhE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,aAAa,CAAA;AAExD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInB,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE1D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,aAAa,CAAC,YAAY,CAAC,EACrC,YAAY,MAAM,KACjB,QAID,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,QAIR,CAAA"}
|
package/dist/ast/Document.js
CHANGED
|
@@ -22,7 +22,7 @@ import { MacroNode } from "./MacroNode.js";
|
|
|
22
22
|
*
|
|
23
23
|
* @category Document
|
|
24
24
|
*/
|
|
25
|
-
export const DocumentNode = Schema.Union(BlockNode, MacroNode);
|
|
25
|
+
export const DocumentNode = Schema.Union([BlockNode, MacroNode]);
|
|
26
26
|
/**
|
|
27
27
|
* Document schema - the root AST node.
|
|
28
28
|
*
|
package/dist/ast/Document.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Document.js","sourceRoot":"","sources":["../../src/ast/Document.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,SAAS,EAAmC,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACrG,OAAO,EAAE,SAAS,EAAmC,MAAM,gBAAgB,CAAA;AAE3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"Document.js","sourceRoot":"","sources":["../../src/ast/Document.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,SAAS,EAAmC,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACrG,OAAO,EAAE,SAAS,EAAmC,MAAM,gBAAgB,CAAA;AAE3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAShE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC;IACpC,SAAS,EAAE,SAAS;CACrB,CAAC,CAAA;AASF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,QAAqC,EACrC,SAAkB,EACR,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC;IACV,QAAQ;IACR,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;CAClD,CAAC,CAAA;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAc,EAAqB,EAAE,CAC9D,OAAO,KAAK,KAAK,QAAQ;IACzB,KAAK,KAAK,IAAI;IACd,UAAU,IAAI,KAAK;IACnB,KAAK,CAAC,OAAO,CAAE,KAAkB,CAAC,QAAQ,CAAC,CAAA"}
|