@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/InlineNode.d.ts
CHANGED
|
@@ -16,12 +16,10 @@ import * as Schema from "effect/Schema";
|
|
|
16
16
|
*
|
|
17
17
|
* @category InlineNode
|
|
18
18
|
*/
|
|
19
|
-
export declare const RawSource: Schema.optional<
|
|
20
|
-
declare const Text_base: Schema.
|
|
21
|
-
readonly
|
|
22
|
-
}
|
|
23
|
-
value: typeof Schema.String;
|
|
24
|
-
}>;
|
|
19
|
+
export declare const RawSource: Schema.optional<Schema.String>;
|
|
20
|
+
declare const Text_base: Schema.Class<Text, Schema.TaggedStruct<"Text", {
|
|
21
|
+
readonly value: Schema.String;
|
|
22
|
+
}>, {}>;
|
|
25
23
|
/**
|
|
26
24
|
* Plain text content.
|
|
27
25
|
*
|
|
@@ -36,11 +34,9 @@ declare const Text_base: Schema.TaggedClass<Text, "Text", {
|
|
|
36
34
|
*/
|
|
37
35
|
export declare class Text extends Text_base {
|
|
38
36
|
}
|
|
39
|
-
declare const InlineCode_base: Schema.
|
|
40
|
-
readonly
|
|
41
|
-
}
|
|
42
|
-
value: typeof Schema.String;
|
|
43
|
-
}>;
|
|
37
|
+
declare const InlineCode_base: Schema.Class<InlineCode, Schema.TaggedStruct<"InlineCode", {
|
|
38
|
+
readonly value: Schema.String;
|
|
39
|
+
}>, {}>;
|
|
44
40
|
/**
|
|
45
41
|
* Inline code span.
|
|
46
42
|
*
|
|
@@ -55,9 +51,7 @@ declare const InlineCode_base: Schema.TaggedClass<InlineCode, "InlineCode", {
|
|
|
55
51
|
*/
|
|
56
52
|
export declare class InlineCode extends InlineCode_base {
|
|
57
53
|
}
|
|
58
|
-
declare const LineBreak_base: Schema.
|
|
59
|
-
readonly _tag: Schema.tag<"LineBreak">;
|
|
60
|
-
}>;
|
|
54
|
+
declare const LineBreak_base: Schema.Class<LineBreak, Schema.TaggedStruct<"LineBreak", {}>, {}>;
|
|
61
55
|
/**
|
|
62
56
|
* Line break element.
|
|
63
57
|
*
|
|
@@ -72,12 +66,10 @@ declare const LineBreak_base: Schema.TaggedClass<LineBreak, "LineBreak", {
|
|
|
72
66
|
*/
|
|
73
67
|
export declare class LineBreak extends LineBreak_base {
|
|
74
68
|
}
|
|
75
|
-
declare const UnsupportedInline_base: Schema.
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
source: Schema.Literal<["confluence", "markdown", "adf"]>;
|
|
80
|
-
}>;
|
|
69
|
+
declare const UnsupportedInline_base: Schema.Class<UnsupportedInline, Schema.TaggedStruct<"UnsupportedInline", {
|
|
70
|
+
readonly raw: Schema.String;
|
|
71
|
+
readonly source: Schema.Literals<readonly ["confluence", "markdown", "adf"]>;
|
|
72
|
+
}>, {}>;
|
|
81
73
|
/**
|
|
82
74
|
* Unsupported inline element - preserves raw content for round-tripping.
|
|
83
75
|
*
|
|
@@ -95,14 +87,12 @@ declare const UnsupportedInline_base: Schema.TaggedClass<UnsupportedInline, "Uns
|
|
|
95
87
|
*/
|
|
96
88
|
export declare class UnsupportedInline extends UnsupportedInline_base {
|
|
97
89
|
}
|
|
98
|
-
declare const Emoticon_base: Schema.
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
105
|
-
}>;
|
|
90
|
+
declare const Emoticon_base: Schema.Class<Emoticon, Schema.TaggedStruct<"Emoticon", {
|
|
91
|
+
readonly shortname: Schema.String;
|
|
92
|
+
readonly emojiId: Schema.String;
|
|
93
|
+
readonly fallback: Schema.String;
|
|
94
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
95
|
+
}>, {}>;
|
|
106
96
|
/**
|
|
107
97
|
* Emoticon/emoji element.
|
|
108
98
|
*
|
|
@@ -121,12 +111,10 @@ declare const Emoticon_base: Schema.TaggedClass<Emoticon, "Emoticon", {
|
|
|
121
111
|
*/
|
|
122
112
|
export declare class Emoticon extends Emoticon_base {
|
|
123
113
|
}
|
|
124
|
-
declare const UserMention_base: Schema.
|
|
125
|
-
readonly
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
129
|
-
}>;
|
|
114
|
+
declare const UserMention_base: Schema.Class<UserMention, Schema.TaggedStruct<"UserMention", {
|
|
115
|
+
readonly accountId: Schema.String;
|
|
116
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
117
|
+
}>, {}>;
|
|
130
118
|
/**
|
|
131
119
|
* User mention element.
|
|
132
120
|
*
|
|
@@ -141,12 +129,10 @@ declare const UserMention_base: Schema.TaggedClass<UserMention, "UserMention", {
|
|
|
141
129
|
*/
|
|
142
130
|
export declare class UserMention extends UserMention_base {
|
|
143
131
|
}
|
|
144
|
-
declare const DateTime_base: Schema.
|
|
145
|
-
readonly
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
149
|
-
}>;
|
|
132
|
+
declare const DateTime_base: Schema.Class<DateTime, Schema.TaggedStruct<"DateTime", {
|
|
133
|
+
readonly datetime: Schema.String;
|
|
134
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
135
|
+
}>, {}>;
|
|
150
136
|
/**
|
|
151
137
|
* Date/time element.
|
|
152
138
|
*
|
|
@@ -161,37 +147,9 @@ declare const DateTime_base: Schema.TaggedClass<DateTime, "DateTime", {
|
|
|
161
147
|
*/
|
|
162
148
|
export declare class DateTime extends DateTime_base {
|
|
163
149
|
}
|
|
164
|
-
declare const Underline_base: Schema.
|
|
165
|
-
readonly
|
|
166
|
-
}
|
|
167
|
-
children: Schema.suspend<readonly (Text | InlineCode | LineBreak | UnsupportedInline | Emoticon | UserMention | DateTime)[], readonly ({
|
|
168
|
-
readonly value: string;
|
|
169
|
-
readonly _tag: "Text";
|
|
170
|
-
} | {
|
|
171
|
-
readonly value: string;
|
|
172
|
-
readonly _tag: "InlineCode";
|
|
173
|
-
} | {
|
|
174
|
-
readonly _tag: "LineBreak";
|
|
175
|
-
} | {
|
|
176
|
-
readonly source: "confluence" | "markdown" | "adf";
|
|
177
|
-
readonly _tag: "UnsupportedInline";
|
|
178
|
-
readonly raw: string;
|
|
179
|
-
} | {
|
|
180
|
-
readonly _tag: "Emoticon";
|
|
181
|
-
readonly shortname: string;
|
|
182
|
-
readonly emojiId: string;
|
|
183
|
-
readonly fallback: string;
|
|
184
|
-
readonly rawSource?: string | undefined;
|
|
185
|
-
} | {
|
|
186
|
-
readonly _tag: "UserMention";
|
|
187
|
-
readonly accountId: string;
|
|
188
|
-
readonly rawSource?: string | undefined;
|
|
189
|
-
} | {
|
|
190
|
-
readonly _tag: "DateTime";
|
|
191
|
-
readonly datetime: string;
|
|
192
|
-
readonly rawSource?: string | undefined;
|
|
193
|
-
})[], never>;
|
|
194
|
-
}>;
|
|
150
|
+
declare const Underline_base: Schema.Class<Underline, Schema.TaggedStruct<"Underline", {
|
|
151
|
+
readonly children: Schema.suspend<Schema.$Array<Schema.Union<readonly [typeof Text, typeof InlineCode, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof UnsupportedInline]>>>;
|
|
152
|
+
}>, {}>;
|
|
195
153
|
/**
|
|
196
154
|
* Underlined text.
|
|
197
155
|
*
|
|
@@ -199,37 +157,9 @@ declare const Underline_base: Schema.TaggedClass<Underline, "Underline", {
|
|
|
199
157
|
*/
|
|
200
158
|
export declare class Underline extends Underline_base {
|
|
201
159
|
}
|
|
202
|
-
declare const Subscript_base: Schema.
|
|
203
|
-
readonly
|
|
204
|
-
}
|
|
205
|
-
children: Schema.suspend<readonly (Text | InlineCode | LineBreak | UnsupportedInline | Emoticon | UserMention | DateTime)[], readonly ({
|
|
206
|
-
readonly value: string;
|
|
207
|
-
readonly _tag: "Text";
|
|
208
|
-
} | {
|
|
209
|
-
readonly value: string;
|
|
210
|
-
readonly _tag: "InlineCode";
|
|
211
|
-
} | {
|
|
212
|
-
readonly _tag: "LineBreak";
|
|
213
|
-
} | {
|
|
214
|
-
readonly source: "confluence" | "markdown" | "adf";
|
|
215
|
-
readonly _tag: "UnsupportedInline";
|
|
216
|
-
readonly raw: string;
|
|
217
|
-
} | {
|
|
218
|
-
readonly _tag: "Emoticon";
|
|
219
|
-
readonly shortname: string;
|
|
220
|
-
readonly emojiId: string;
|
|
221
|
-
readonly fallback: string;
|
|
222
|
-
readonly rawSource?: string | undefined;
|
|
223
|
-
} | {
|
|
224
|
-
readonly _tag: "UserMention";
|
|
225
|
-
readonly accountId: string;
|
|
226
|
-
readonly rawSource?: string | undefined;
|
|
227
|
-
} | {
|
|
228
|
-
readonly _tag: "DateTime";
|
|
229
|
-
readonly datetime: string;
|
|
230
|
-
readonly rawSource?: string | undefined;
|
|
231
|
-
})[], never>;
|
|
232
|
-
}>;
|
|
160
|
+
declare const Subscript_base: Schema.Class<Subscript, Schema.TaggedStruct<"Subscript", {
|
|
161
|
+
readonly children: Schema.suspend<Schema.$Array<Schema.Union<readonly [typeof Text, typeof InlineCode, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof UnsupportedInline]>>>;
|
|
162
|
+
}>, {}>;
|
|
233
163
|
/**
|
|
234
164
|
* Subscript text.
|
|
235
165
|
*
|
|
@@ -237,37 +167,9 @@ declare const Subscript_base: Schema.TaggedClass<Subscript, "Subscript", {
|
|
|
237
167
|
*/
|
|
238
168
|
export declare class Subscript extends Subscript_base {
|
|
239
169
|
}
|
|
240
|
-
declare const Superscript_base: Schema.
|
|
241
|
-
readonly
|
|
242
|
-
}
|
|
243
|
-
children: Schema.suspend<readonly (Text | InlineCode | LineBreak | UnsupportedInline | Emoticon | UserMention | DateTime)[], readonly ({
|
|
244
|
-
readonly value: string;
|
|
245
|
-
readonly _tag: "Text";
|
|
246
|
-
} | {
|
|
247
|
-
readonly value: string;
|
|
248
|
-
readonly _tag: "InlineCode";
|
|
249
|
-
} | {
|
|
250
|
-
readonly _tag: "LineBreak";
|
|
251
|
-
} | {
|
|
252
|
-
readonly source: "confluence" | "markdown" | "adf";
|
|
253
|
-
readonly _tag: "UnsupportedInline";
|
|
254
|
-
readonly raw: string;
|
|
255
|
-
} | {
|
|
256
|
-
readonly _tag: "Emoticon";
|
|
257
|
-
readonly shortname: string;
|
|
258
|
-
readonly emojiId: string;
|
|
259
|
-
readonly fallback: string;
|
|
260
|
-
readonly rawSource?: string | undefined;
|
|
261
|
-
} | {
|
|
262
|
-
readonly _tag: "UserMention";
|
|
263
|
-
readonly accountId: string;
|
|
264
|
-
readonly rawSource?: string | undefined;
|
|
265
|
-
} | {
|
|
266
|
-
readonly _tag: "DateTime";
|
|
267
|
-
readonly datetime: string;
|
|
268
|
-
readonly rawSource?: string | undefined;
|
|
269
|
-
})[], never>;
|
|
270
|
-
}>;
|
|
170
|
+
declare const Superscript_base: Schema.Class<Superscript, Schema.TaggedStruct<"Superscript", {
|
|
171
|
+
readonly children: Schema.suspend<Schema.$Array<Schema.Union<readonly [typeof Text, typeof InlineCode, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof UnsupportedInline]>>>;
|
|
172
|
+
}>, {}>;
|
|
271
173
|
/**
|
|
272
174
|
* Superscript text.
|
|
273
175
|
*
|
|
@@ -275,37 +177,9 @@ declare const Superscript_base: Schema.TaggedClass<Superscript, "Superscript", {
|
|
|
275
177
|
*/
|
|
276
178
|
export declare class Superscript extends Superscript_base {
|
|
277
179
|
}
|
|
278
|
-
declare const Strikethrough_base: Schema.
|
|
279
|
-
readonly
|
|
280
|
-
}
|
|
281
|
-
children: Schema.suspend<readonly (Text | InlineCode | LineBreak | UnsupportedInline | Emoticon | UserMention | DateTime)[], readonly ({
|
|
282
|
-
readonly value: string;
|
|
283
|
-
readonly _tag: "Text";
|
|
284
|
-
} | {
|
|
285
|
-
readonly value: string;
|
|
286
|
-
readonly _tag: "InlineCode";
|
|
287
|
-
} | {
|
|
288
|
-
readonly _tag: "LineBreak";
|
|
289
|
-
} | {
|
|
290
|
-
readonly source: "confluence" | "markdown" | "adf";
|
|
291
|
-
readonly _tag: "UnsupportedInline";
|
|
292
|
-
readonly raw: string;
|
|
293
|
-
} | {
|
|
294
|
-
readonly _tag: "Emoticon";
|
|
295
|
-
readonly shortname: string;
|
|
296
|
-
readonly emojiId: string;
|
|
297
|
-
readonly fallback: string;
|
|
298
|
-
readonly rawSource?: string | undefined;
|
|
299
|
-
} | {
|
|
300
|
-
readonly _tag: "UserMention";
|
|
301
|
-
readonly accountId: string;
|
|
302
|
-
readonly rawSource?: string | undefined;
|
|
303
|
-
} | {
|
|
304
|
-
readonly _tag: "DateTime";
|
|
305
|
-
readonly datetime: string;
|
|
306
|
-
readonly rawSource?: string | undefined;
|
|
307
|
-
})[], never>;
|
|
308
|
-
}>;
|
|
180
|
+
declare const Strikethrough_base: Schema.Class<Strikethrough, Schema.TaggedStruct<"Strikethrough", {
|
|
181
|
+
readonly children: Schema.suspend<Schema.$Array<Schema.Union<readonly [typeof Text, typeof InlineCode, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof UnsupportedInline]>>>;
|
|
182
|
+
}>, {}>;
|
|
309
183
|
/**
|
|
310
184
|
* Strikethrough text.
|
|
311
185
|
*
|
|
@@ -313,38 +187,10 @@ declare const Strikethrough_base: Schema.TaggedClass<Strikethrough, "Strikethrou
|
|
|
313
187
|
*/
|
|
314
188
|
export declare class Strikethrough extends Strikethrough_base {
|
|
315
189
|
}
|
|
316
|
-
declare const ColoredText_base: Schema.
|
|
317
|
-
readonly
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
children: Schema.suspend<readonly (Text | InlineCode | LineBreak | UnsupportedInline | Emoticon | UserMention | DateTime)[], readonly ({
|
|
321
|
-
readonly value: string;
|
|
322
|
-
readonly _tag: "Text";
|
|
323
|
-
} | {
|
|
324
|
-
readonly value: string;
|
|
325
|
-
readonly _tag: "InlineCode";
|
|
326
|
-
} | {
|
|
327
|
-
readonly _tag: "LineBreak";
|
|
328
|
-
} | {
|
|
329
|
-
readonly source: "confluence" | "markdown" | "adf";
|
|
330
|
-
readonly _tag: "UnsupportedInline";
|
|
331
|
-
readonly raw: string;
|
|
332
|
-
} | {
|
|
333
|
-
readonly _tag: "Emoticon";
|
|
334
|
-
readonly shortname: string;
|
|
335
|
-
readonly emojiId: string;
|
|
336
|
-
readonly fallback: string;
|
|
337
|
-
readonly rawSource?: string | undefined;
|
|
338
|
-
} | {
|
|
339
|
-
readonly _tag: "UserMention";
|
|
340
|
-
readonly accountId: string;
|
|
341
|
-
readonly rawSource?: string | undefined;
|
|
342
|
-
} | {
|
|
343
|
-
readonly _tag: "DateTime";
|
|
344
|
-
readonly datetime: string;
|
|
345
|
-
readonly rawSource?: string | undefined;
|
|
346
|
-
})[], never>;
|
|
347
|
-
}>;
|
|
190
|
+
declare const ColoredText_base: Schema.Class<ColoredText, Schema.TaggedStruct<"ColoredText", {
|
|
191
|
+
readonly color: Schema.String;
|
|
192
|
+
readonly children: Schema.suspend<Schema.$Array<Schema.Union<readonly [typeof Text, typeof InlineCode, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof UnsupportedInline]>>>;
|
|
193
|
+
}>, {}>;
|
|
348
194
|
/**
|
|
349
195
|
* Colored text with CSS color value.
|
|
350
196
|
*
|
|
@@ -352,38 +198,10 @@ declare const ColoredText_base: Schema.TaggedClass<ColoredText, "ColoredText", {
|
|
|
352
198
|
*/
|
|
353
199
|
export declare class ColoredText extends ColoredText_base {
|
|
354
200
|
}
|
|
355
|
-
declare const Highlight_base: Schema.
|
|
356
|
-
readonly
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
children: Schema.suspend<readonly (Text | InlineCode | LineBreak | UnsupportedInline | Emoticon | UserMention | DateTime)[], readonly ({
|
|
360
|
-
readonly value: string;
|
|
361
|
-
readonly _tag: "Text";
|
|
362
|
-
} | {
|
|
363
|
-
readonly value: string;
|
|
364
|
-
readonly _tag: "InlineCode";
|
|
365
|
-
} | {
|
|
366
|
-
readonly _tag: "LineBreak";
|
|
367
|
-
} | {
|
|
368
|
-
readonly source: "confluence" | "markdown" | "adf";
|
|
369
|
-
readonly _tag: "UnsupportedInline";
|
|
370
|
-
readonly raw: string;
|
|
371
|
-
} | {
|
|
372
|
-
readonly _tag: "Emoticon";
|
|
373
|
-
readonly shortname: string;
|
|
374
|
-
readonly emojiId: string;
|
|
375
|
-
readonly fallback: string;
|
|
376
|
-
readonly rawSource?: string | undefined;
|
|
377
|
-
} | {
|
|
378
|
-
readonly _tag: "UserMention";
|
|
379
|
-
readonly accountId: string;
|
|
380
|
-
readonly rawSource?: string | undefined;
|
|
381
|
-
} | {
|
|
382
|
-
readonly _tag: "DateTime";
|
|
383
|
-
readonly datetime: string;
|
|
384
|
-
readonly rawSource?: string | undefined;
|
|
385
|
-
})[], never>;
|
|
386
|
-
}>;
|
|
201
|
+
declare const Highlight_base: Schema.Class<Highlight, Schema.TaggedStruct<"Highlight", {
|
|
202
|
+
readonly backgroundColor: Schema.String;
|
|
203
|
+
readonly children: Schema.suspend<Schema.$Array<Schema.Union<readonly [typeof Text, typeof InlineCode, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof UnsupportedInline]>>>;
|
|
204
|
+
}>, {}>;
|
|
387
205
|
/**
|
|
388
206
|
* Highlighted text with background color.
|
|
389
207
|
*
|
|
@@ -397,11 +215,9 @@ export declare class Highlight extends Highlight_base {
|
|
|
397
215
|
* @category InlineNode
|
|
398
216
|
*/
|
|
399
217
|
export declare const InlineNodeChildren: Schema.Schema<ReadonlyArray<InlineNode>>;
|
|
400
|
-
declare const Strong_base: Schema.
|
|
401
|
-
readonly
|
|
402
|
-
}
|
|
403
|
-
children: Schema.suspend<readonly InlineNode[], readonly InlineNode[], never>;
|
|
404
|
-
}>;
|
|
218
|
+
declare const Strong_base: Schema.Class<Strong, Schema.TaggedStruct<"Strong", {
|
|
219
|
+
readonly children: Schema.suspend<Schema.Schema<readonly InlineNode[]>>;
|
|
220
|
+
}>, {}>;
|
|
405
221
|
/**
|
|
406
222
|
* Strong/bold text.
|
|
407
223
|
*
|
|
@@ -416,11 +232,9 @@ declare const Strong_base: Schema.TaggedClass<Strong, "Strong", {
|
|
|
416
232
|
*/
|
|
417
233
|
export declare class Strong extends Strong_base {
|
|
418
234
|
}
|
|
419
|
-
declare const Emphasis_base: Schema.
|
|
420
|
-
readonly
|
|
421
|
-
}
|
|
422
|
-
children: Schema.suspend<readonly InlineNode[], readonly InlineNode[], never>;
|
|
423
|
-
}>;
|
|
235
|
+
declare const Emphasis_base: Schema.Class<Emphasis, Schema.TaggedStruct<"Emphasis", {
|
|
236
|
+
readonly children: Schema.suspend<Schema.Schema<readonly InlineNode[]>>;
|
|
237
|
+
}>, {}>;
|
|
424
238
|
/**
|
|
425
239
|
* Emphasized/italic text.
|
|
426
240
|
*
|
|
@@ -435,14 +249,12 @@ declare const Emphasis_base: Schema.TaggedClass<Emphasis, "Emphasis", {
|
|
|
435
249
|
*/
|
|
436
250
|
export declare class Emphasis extends Emphasis_base {
|
|
437
251
|
}
|
|
438
|
-
declare const Link_base: Schema.
|
|
439
|
-
readonly
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
rawSource: Schema.optional<typeof Schema.String>;
|
|
445
|
-
}>;
|
|
252
|
+
declare const Link_base: Schema.Class<Link, Schema.TaggedStruct<"Link", {
|
|
253
|
+
readonly href: Schema.String;
|
|
254
|
+
readonly title: Schema.optional<Schema.String>;
|
|
255
|
+
readonly children: Schema.suspend<Schema.Schema<readonly InlineNode[]>>;
|
|
256
|
+
readonly rawSource: Schema.optional<Schema.String>;
|
|
257
|
+
}>, {}>;
|
|
446
258
|
/**
|
|
447
259
|
* Hyperlink with optional title.
|
|
448
260
|
*
|
|
@@ -466,7 +278,7 @@ export declare class Link extends Link_base {
|
|
|
466
278
|
*
|
|
467
279
|
* @category InlineNode
|
|
468
280
|
*/
|
|
469
|
-
export declare const InlineNode: Schema.Union<[typeof Text, typeof Strong, typeof Emphasis, typeof InlineCode, typeof Link, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof Underline, typeof Subscript, typeof Superscript, typeof Strikethrough, typeof ColoredText, typeof Highlight, typeof UnsupportedInline]>;
|
|
281
|
+
export declare const InlineNode: Schema.Union<readonly [typeof Text, typeof Strong, typeof Emphasis, typeof InlineCode, typeof Link, typeof LineBreak, typeof Emoticon, typeof UserMention, typeof DateTime, typeof Underline, typeof Subscript, typeof Superscript, typeof Strikethrough, typeof ColoredText, typeof Highlight, typeof UnsupportedInline]>;
|
|
470
282
|
/**
|
|
471
283
|
* Type for inline nodes.
|
|
472
284
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineNode.d.ts","sourceRoot":"","sources":["../../src/ast/InlineNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC;;;;GAIG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"InlineNode.d.ts","sourceRoot":"","sources":["../../src/ast/InlineNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC;;;;GAIG;AACH,eAAO,MAAM,SAAS,gCAAiC,CAAA;;;;AAEvD;;;;;;;;;;;GAWG;AACH,qBAAa,IAAK,SAAQ,SAExB;CAAG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,GACJ,SAAS,GACT,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,GACT,WAAW,GACX,aAAa,GACb,WAAW,GACX,SAAS,GACT,iBAAiB,CAAA;AAErB;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,UAAU,CAAA"}
|
package/dist/ast/InlineNode.js
CHANGED
|
@@ -80,7 +80,7 @@ export class LineBreak extends Schema.TaggedClass()("LineBreak", {}) {
|
|
|
80
80
|
*/
|
|
81
81
|
export class UnsupportedInline extends Schema.TaggedClass()("UnsupportedInline", {
|
|
82
82
|
raw: Schema.String,
|
|
83
|
-
source: Schema.
|
|
83
|
+
source: Schema.Literals(["confluence", "markdown", "adf"])
|
|
84
84
|
}) {
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
@@ -197,7 +197,15 @@ export class Highlight extends Schema.TaggedClass()("Highlight", {
|
|
|
197
197
|
}) {
|
|
198
198
|
}
|
|
199
199
|
// Forward declaration for recursive types
|
|
200
|
-
const InlineNodeBase = Schema.Union(
|
|
200
|
+
const InlineNodeBase = Schema.Union([
|
|
201
|
+
Text,
|
|
202
|
+
InlineCode,
|
|
203
|
+
LineBreak,
|
|
204
|
+
Emoticon,
|
|
205
|
+
UserMention,
|
|
206
|
+
DateTime,
|
|
207
|
+
UnsupportedInline
|
|
208
|
+
]);
|
|
201
209
|
/**
|
|
202
210
|
* Inline node children schema - use this for recursive inline content.
|
|
203
211
|
*
|
|
@@ -264,5 +272,22 @@ export class Link extends Schema.TaggedClass()("Link", {
|
|
|
264
272
|
*
|
|
265
273
|
* @category InlineNode
|
|
266
274
|
*/
|
|
267
|
-
export const InlineNode = Schema.Union(
|
|
275
|
+
export const InlineNode = Schema.Union([
|
|
276
|
+
Text,
|
|
277
|
+
Strong,
|
|
278
|
+
Emphasis,
|
|
279
|
+
InlineCode,
|
|
280
|
+
Link,
|
|
281
|
+
LineBreak,
|
|
282
|
+
Emoticon,
|
|
283
|
+
UserMention,
|
|
284
|
+
DateTime,
|
|
285
|
+
Underline,
|
|
286
|
+
Subscript,
|
|
287
|
+
Superscript,
|
|
288
|
+
Strikethrough,
|
|
289
|
+
ColoredText,
|
|
290
|
+
Highlight,
|
|
291
|
+
UnsupportedInline
|
|
292
|
+
]);
|
|
268
293
|
//# sourceMappingURL=InlineNode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineNode.js","sourceRoot":"","sources":["../../src/ast/InlineNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAEvD;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,IAAK,SAAQ,MAAM,CAAC,WAAW,EAAQ,CAAC,MAAM,EAAE;IAC3D,KAAK,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC;CAAG;AAEL;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM,CAAC,WAAW,EAAc,CAAC,YAAY,EAAE;IAC7E,KAAK,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC;CAAG;AAEL;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,SAAU,SAAQ,MAAM,CAAC,WAAW,EAAa,CAAC,WAAW,EAAE,EAAE,CAAC;CAAG;AAElF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,WAAW,EAAqB,CAAC,mBAAmB,EAAE;IAClG,GAAG,EAAE,MAAM,CAAC,MAAM;IAClB,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"InlineNode.js","sourceRoot":"","sources":["../../src/ast/InlineNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC;;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