@knpkv/confluence-to-markdown 0.5.0 → 0.7.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 +61 -0
- package/README.md +58 -14
- package/dist/AdfPlaceholders.d.ts +42 -0
- package/dist/AdfPlaceholders.d.ts.map +1 -0
- package/dist/AdfPlaceholders.js +547 -0
- package/dist/AdfPlaceholders.js.map +1 -0
- package/dist/AdfSchemaValidator.d.ts +37 -0
- package/dist/AdfSchemaValidator.d.ts.map +1 -0
- package/dist/AdfSchemaValidator.js +37 -0
- package/dist/AdfSchemaValidator.js.map +1 -0
- package/dist/AdfWalker.d.ts +39 -0
- package/dist/AdfWalker.d.ts.map +1 -0
- package/dist/AdfWalker.js +527 -0
- package/dist/AdfWalker.js.map +1 -0
- package/dist/AtlaskitTransformers.d.ts +35 -0
- package/dist/AtlaskitTransformers.d.ts.map +1 -0
- package/dist/AtlaskitTransformers.js +48 -0
- package/dist/AtlaskitTransformers.js.map +1 -0
- package/dist/Brand.d.ts +6 -6
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +8 -6
- package/dist/Brand.js.map +1 -1
- package/dist/ConfluenceAuth.d.ts +4 -4
- package/dist/ConfluenceAuth.d.ts.map +1 -1
- package/dist/ConfluenceAuth.js +15 -27
- package/dist/ConfluenceAuth.js.map +1 -1
- package/dist/ConfluenceClient.d.ts +4 -4
- package/dist/ConfluenceClient.d.ts.map +1 -1
- package/dist/ConfluenceClient.js +21 -14
- package/dist/ConfluenceClient.js.map +1 -1
- package/dist/ConfluenceConfig.d.ts +3 -3
- package/dist/ConfluenceConfig.d.ts.map +1 -1
- package/dist/ConfluenceConfig.js +13 -11
- package/dist/ConfluenceConfig.js.map +1 -1
- package/dist/ConfluenceError.d.ts +56 -4
- package/dist/ConfluenceError.d.ts.map +1 -1
- package/dist/ConfluenceError.js +30 -1
- package/dist/ConfluenceError.js.map +1 -1
- package/dist/GitService.d.ts +11 -3
- package/dist/GitService.d.ts.map +1 -1
- package/dist/GitService.js +19 -27
- package/dist/GitService.js.map +1 -1
- package/dist/LocalFileSystem.d.ts +3 -3
- package/dist/LocalFileSystem.d.ts.map +1 -1
- package/dist/LocalFileSystem.js +6 -6
- package/dist/LocalFileSystem.js.map +1 -1
- package/dist/MarkdownConverter.d.ts +16 -65
- package/dist/MarkdownConverter.d.ts.map +1 -1
- package/dist/MarkdownConverter.js +64 -85
- package/dist/MarkdownConverter.js.map +1 -1
- package/dist/Schemas.d.ts +128 -141
- package/dist/Schemas.d.ts.map +1 -1
- package/dist/Schemas.js +21 -23
- package/dist/Schemas.js.map +1 -1
- package/dist/SyncEngine.d.ts +8 -5
- package/dist/SyncEngine.d.ts.map +1 -1
- package/dist/SyncEngine.js +189 -113
- package/dist/SyncEngine.js.map +1 -1
- package/dist/bin.js +23 -35
- package/dist/bin.js.map +1 -1
- package/dist/commands/auth.d.ts +2 -14
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +11 -16
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/clone.d.ts +4 -6
- package/dist/commands/clone.d.ts.map +1 -1
- package/dist/commands/clone.js +34 -32
- package/dist/commands/clone.js.map +1 -1
- package/dist/commands/delete.d.ts +2 -10
- package/dist/commands/delete.d.ts.map +1 -1
- package/dist/commands/delete.js +5 -4
- package/dist/commands/delete.js.map +1 -1
- package/dist/commands/errorHandler.d.ts +2 -1
- package/dist/commands/errorHandler.d.ts.map +1 -1
- package/dist/commands/errorHandler.js +22 -15
- package/dist/commands/errorHandler.js.map +1 -1
- package/dist/commands/fetch.d.ts +27 -0
- package/dist/commands/fetch.d.ts.map +1 -0
- package/dist/commands/fetch.js +48 -0
- package/dist/commands/fetch.js.map +1 -0
- package/dist/commands/git.d.ts +7 -10
- package/dist/commands/git.d.ts.map +1 -1
- package/dist/commands/git.js +6 -6
- package/dist/commands/git.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/layers.d.ts +10 -9
- package/dist/commands/layers.d.ts.map +1 -1
- package/dist/commands/layers.js +41 -30
- package/dist/commands/layers.js.map +1 -1
- package/dist/commands/new.d.ts +2 -6
- package/dist/commands/new.d.ts.map +1 -1
- package/dist/commands/new.js +5 -4
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/pageInput.d.ts +19 -0
- package/dist/commands/pageInput.d.ts.map +1 -0
- package/dist/commands/pageInput.js +68 -0
- package/dist/commands/pageInput.js.map +1 -0
- package/dist/commands/root.d.ts +8 -0
- package/dist/commands/root.d.ts.map +1 -0
- package/dist/commands/root.js +29 -0
- package/dist/commands/root.js.map +1 -0
- package/dist/commands/sync.d.ts +6 -9
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +5 -6
- package/dist/commands/sync.js.map +1 -1
- package/dist/index.d.ts +3 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -13
- package/dist/index.js.map +1 -1
- package/dist/internal/NodeLayers.d.ts.map +1 -1
- package/dist/internal/NodeLayers.js +1 -2
- package/dist/internal/NodeLayers.js.map +1 -1
- package/dist/internal/adfMetadata.d.ts +30 -0
- package/dist/internal/adfMetadata.d.ts.map +1 -0
- package/dist/internal/adfMetadata.js +126 -0
- package/dist/internal/adfMetadata.js.map +1 -0
- package/dist/internal/cleanMarkdown.d.ts +5 -0
- package/dist/internal/cleanMarkdown.d.ts.map +1 -0
- package/dist/internal/cleanMarkdown.js +13 -0
- package/dist/internal/cleanMarkdown.js.map +1 -0
- package/dist/internal/frontmatter.d.ts.map +1 -1
- package/dist/internal/frontmatter.js +41 -8
- package/dist/internal/frontmatter.js.map +1 -1
- package/dist/internal/gitCommands.d.ts +9 -3
- package/dist/internal/gitCommands.d.ts.map +1 -1
- package/dist/internal/gitCommands.js +18 -9
- package/dist/internal/gitCommands.js.map +1 -1
- package/dist/internal/hashUtils.d.ts +1 -1
- package/dist/internal/hashUtils.d.ts.map +1 -1
- package/dist/internal/hashUtils.js +1 -1
- package/dist/internal/hashUtils.js.map +1 -1
- package/dist/internal/oauthServer.d.ts +10 -5
- package/dist/internal/oauthServer.d.ts.map +1 -1
- package/dist/internal/oauthServer.js +19 -40
- package/dist/internal/oauthServer.js.map +1 -1
- package/dist/internal/pathUtils.d.ts +1 -1
- package/dist/internal/pathUtils.d.ts.map +1 -1
- package/dist/internal/pathUtils.js +1 -1
- package/dist/internal/pathUtils.js.map +1 -1
- package/dist/internal/process.d.ts +15 -0
- package/dist/internal/process.d.ts.map +1 -0
- package/dist/internal/process.js +10 -0
- package/dist/internal/process.js.map +1 -0
- package/dist/internal/stdio.d.ts +6 -0
- package/dist/internal/stdio.d.ts.map +1 -0
- package/dist/internal/stdio.js +15 -0
- package/dist/internal/stdio.js.map +1 -0
- package/dist/internal/tokenStorage.d.ts +3 -13
- package/dist/internal/tokenStorage.d.ts.map +1 -1
- package/dist/internal/tokenStorage.js +26 -24
- package/dist/internal/tokenStorage.js.map +1 -1
- package/dist/internal/userCache.d.ts +1 -1
- package/dist/internal/userCache.d.ts.map +1 -1
- package/dist/internal/userCache.js +1 -1
- package/dist/internal/userCache.js.map +1 -1
- package/package.json +29 -20
- package/skills/confluence/SKILL.md +143 -0
- package/skills/confluence/agents/openai.yaml +4 -0
- package/src/AdfPlaceholders.ts +563 -0
- package/src/AdfSchemaValidator.ts +65 -0
- package/src/AdfWalker.ts +591 -0
- package/src/AtlaskitTransformers.ts +70 -0
- package/src/Brand.ts +11 -16
- package/src/ConfluenceAuth.ts +22 -30
- package/src/ConfluenceClient.ts +28 -24
- package/src/ConfluenceConfig.ts +14 -14
- package/src/ConfluenceError.ts +65 -3
- package/src/GitService.ts +39 -49
- package/src/LocalFileSystem.ts +7 -9
- package/src/MarkdownConverter.ts +108 -143
- package/src/Schemas.ts +17 -16
- package/src/SyncEngine.ts +272 -127
- package/src/atlaskit-adf-schema.d.ts +3 -0
- package/src/bin.ts +30 -56
- package/src/commands/auth.ts +21 -18
- package/src/commands/clone.ts +46 -38
- package/src/commands/delete.ts +5 -4
- package/src/commands/errorHandler.ts +25 -18
- package/src/commands/fetch.ts +90 -0
- package/src/commands/git.ts +6 -6
- package/src/commands/index.ts +1 -0
- package/src/commands/layers.ts +64 -37
- package/src/commands/new.ts +5 -4
- package/src/commands/pageInput.ts +103 -0
- package/src/commands/root.ts +59 -0
- package/src/commands/sync.ts +7 -6
- package/src/index.ts +3 -18
- package/src/internal/NodeLayers.ts +1 -2
- package/src/internal/adfMetadata.ts +145 -0
- package/src/internal/cleanMarkdown.ts +15 -0
- package/src/internal/frontmatter.ts +45 -8
- package/src/internal/gitCommands.ts +23 -17
- package/src/internal/hashUtils.ts +2 -2
- package/src/internal/oauthServer.ts +84 -105
- package/src/internal/pathUtils.ts +1 -1
- package/src/internal/process.ts +15 -0
- package/src/internal/stdio.ts +22 -0
- package/src/internal/tokenStorage.ts +39 -29
- package/src/internal/userCache.ts +2 -2
- package/test/AdfPlaceholders.test.ts +508 -0
- package/test/AdfSchemaValidator.test.ts +34 -0
- package/test/AdfWalker.test.ts +676 -0
- package/test/AtlaskitTransformers.test.ts +25 -0
- package/test/Brand.test.ts +11 -11
- package/test/GitService.test.ts +6 -2
- package/test/MarkdownConverter.test.ts +121 -105
- package/test/RoundTrip.test.ts +521 -0
- package/test/Schemas.test.ts +40 -40
- package/test/adfMetadata.test.ts +110 -0
- package/test/cleanMarkdown.test.ts +36 -0
- package/test/commandHarness.test.ts +79 -0
- package/test/commandHarness.ts +147 -0
- package/test/fetch.test.ts +61 -0
- package/test/frontmatter.test.ts +41 -0
- package/test/integration.test.ts +569 -156
- package/test/layers.test.ts +12 -0
- package/test/oauthServer.test.ts +4 -5
- package/test/pageInput.test.ts +83 -0
- package/test/tokenStorage.test.ts +17 -17
- package/dist/SchemaConverterError.d.ts +0 -108
- package/dist/SchemaConverterError.d.ts.map +0 -1
- package/dist/SchemaConverterError.js +0 -84
- package/dist/SchemaConverterError.js.map +0 -1
- package/dist/ast/BlockNode.d.ts +0 -453
- package/dist/ast/BlockNode.d.ts.map +0 -1
- package/dist/ast/BlockNode.js +0 -310
- package/dist/ast/BlockNode.js.map +0 -1
- package/dist/ast/Document.d.ts +0 -216
- package/dist/ast/Document.d.ts.map +0 -1
- package/dist/ast/Document.js +0 -69
- package/dist/ast/Document.js.map +0 -1
- package/dist/ast/InlineNode.d.ts +0 -477
- package/dist/ast/InlineNode.d.ts.map +0 -1
- package/dist/ast/InlineNode.js +0 -263
- package/dist/ast/InlineNode.js.map +0 -1
- package/dist/ast/MacroNode.d.ts +0 -267
- package/dist/ast/MacroNode.d.ts.map +0 -1
- package/dist/ast/MacroNode.js +0 -164
- package/dist/ast/MacroNode.js.map +0 -1
- package/dist/ast/index.d.ts +0 -10
- package/dist/ast/index.d.ts.map +0 -1
- package/dist/ast/index.js +0 -14
- package/dist/ast/index.js.map +0 -1
- package/dist/parsers/ConfluenceParser.d.ts +0 -26
- package/dist/parsers/ConfluenceParser.d.ts.map +0 -1
- package/dist/parsers/ConfluenceParser.js +0 -797
- package/dist/parsers/ConfluenceParser.js.map +0 -1
- package/dist/parsers/MarkdownParser.d.ts +0 -26
- package/dist/parsers/MarkdownParser.d.ts.map +0 -1
- package/dist/parsers/MarkdownParser.js +0 -982
- package/dist/parsers/MarkdownParser.js.map +0 -1
- package/dist/parsers/index.d.ts +0 -8
- package/dist/parsers/index.d.ts.map +0 -1
- package/dist/parsers/index.js +0 -8
- package/dist/parsers/index.js.map +0 -1
- package/dist/schemas/ConfluenceSchema.d.ts +0 -21
- package/dist/schemas/ConfluenceSchema.d.ts.map +0 -1
- package/dist/schemas/ConfluenceSchema.js +0 -38
- package/dist/schemas/ConfluenceSchema.js.map +0 -1
- package/dist/schemas/ConversionSchema.d.ts +0 -35
- package/dist/schemas/ConversionSchema.d.ts.map +0 -1
- package/dist/schemas/ConversionSchema.js +0 -208
- package/dist/schemas/ConversionSchema.js.map +0 -1
- package/dist/schemas/MarkdownSchema.d.ts +0 -21
- package/dist/schemas/MarkdownSchema.d.ts.map +0 -1
- package/dist/schemas/MarkdownSchema.js +0 -38
- package/dist/schemas/MarkdownSchema.js.map +0 -1
- package/dist/schemas/hast/HastFromHtml.d.ts +0 -27
- package/dist/schemas/hast/HastFromHtml.d.ts.map +0 -1
- package/dist/schemas/hast/HastFromHtml.js +0 -107
- package/dist/schemas/hast/HastFromHtml.js.map +0 -1
- package/dist/schemas/hast/HastSchema.d.ts +0 -195
- package/dist/schemas/hast/HastSchema.d.ts.map +0 -1
- package/dist/schemas/hast/HastSchema.js +0 -183
- package/dist/schemas/hast/HastSchema.js.map +0 -1
- package/dist/schemas/hast/index.d.ts +0 -9
- package/dist/schemas/hast/index.d.ts.map +0 -1
- package/dist/schemas/hast/index.js +0 -3
- package/dist/schemas/hast/index.js.map +0 -1
- package/dist/schemas/index.d.ts +0 -14
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/index.js +0 -16
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/mdast/MdastFromMarkdown.d.ts +0 -30
- package/dist/schemas/mdast/MdastFromMarkdown.d.ts.map +0 -1
- package/dist/schemas/mdast/MdastFromMarkdown.js +0 -79
- package/dist/schemas/mdast/MdastFromMarkdown.js.map +0 -1
- package/dist/schemas/mdast/MdastSchema.d.ts +0 -385
- package/dist/schemas/mdast/MdastSchema.d.ts.map +0 -1
- package/dist/schemas/mdast/MdastSchema.js +0 -266
- package/dist/schemas/mdast/MdastSchema.js.map +0 -1
- package/dist/schemas/mdast/index.d.ts +0 -10
- package/dist/schemas/mdast/index.d.ts.map +0 -1
- package/dist/schemas/mdast/index.js +0 -4
- package/dist/schemas/mdast/index.js.map +0 -1
- package/dist/schemas/mdast/mdastToString.d.ts +0 -13
- package/dist/schemas/mdast/mdastToString.d.ts.map +0 -1
- package/dist/schemas/mdast/mdastToString.js +0 -85
- package/dist/schemas/mdast/mdastToString.js.map +0 -1
- package/dist/schemas/nodes/block/BlockSchema.d.ts +0 -43
- package/dist/schemas/nodes/block/BlockSchema.d.ts.map +0 -1
- package/dist/schemas/nodes/block/BlockSchema.js +0 -634
- package/dist/schemas/nodes/block/BlockSchema.js.map +0 -1
- package/dist/schemas/nodes/block/index.d.ts +0 -7
- package/dist/schemas/nodes/block/index.d.ts.map +0 -1
- package/dist/schemas/nodes/block/index.js +0 -7
- package/dist/schemas/nodes/block/index.js.map +0 -1
- package/dist/schemas/nodes/index.d.ts +0 -9
- package/dist/schemas/nodes/index.d.ts.map +0 -1
- package/dist/schemas/nodes/index.js +0 -12
- package/dist/schemas/nodes/index.js.map +0 -1
- package/dist/schemas/nodes/inline/InlineSchema.d.ts +0 -48
- package/dist/schemas/nodes/inline/InlineSchema.d.ts.map +0 -1
- package/dist/schemas/nodes/inline/InlineSchema.js +0 -436
- package/dist/schemas/nodes/inline/InlineSchema.js.map +0 -1
- package/dist/schemas/nodes/inline/index.d.ts +0 -7
- package/dist/schemas/nodes/inline/index.d.ts.map +0 -1
- package/dist/schemas/nodes/inline/index.js +0 -7
- package/dist/schemas/nodes/inline/index.js.map +0 -1
- package/dist/schemas/nodes/macro/MacroSchema.d.ts +0 -27
- package/dist/schemas/nodes/macro/MacroSchema.d.ts.map +0 -1
- package/dist/schemas/nodes/macro/MacroSchema.js +0 -162
- package/dist/schemas/nodes/macro/MacroSchema.js.map +0 -1
- package/dist/schemas/nodes/macro/index.d.ts +0 -7
- package/dist/schemas/nodes/macro/index.d.ts.map +0 -1
- package/dist/schemas/nodes/macro/index.js +0 -7
- package/dist/schemas/nodes/macro/index.js.map +0 -1
- package/dist/schemas/preprocessing/ConfluencePreprocessor.d.ts +0 -24
- package/dist/schemas/preprocessing/ConfluencePreprocessor.d.ts.map +0 -1
- package/dist/schemas/preprocessing/ConfluencePreprocessor.js +0 -359
- package/dist/schemas/preprocessing/ConfluencePreprocessor.js.map +0 -1
- package/dist/schemas/preprocessing/index.d.ts +0 -8
- package/dist/schemas/preprocessing/index.d.ts.map +0 -1
- package/dist/schemas/preprocessing/index.js +0 -2
- package/dist/schemas/preprocessing/index.js.map +0 -1
- package/dist/serializers/ConfluenceSerializer.d.ts +0 -30
- package/dist/serializers/ConfluenceSerializer.d.ts.map +0 -1
- package/dist/serializers/ConfluenceSerializer.js +0 -560
- package/dist/serializers/ConfluenceSerializer.js.map +0 -1
- package/dist/serializers/MarkdownSerializer.d.ts +0 -34
- package/dist/serializers/MarkdownSerializer.d.ts.map +0 -1
- package/dist/serializers/MarkdownSerializer.js +0 -395
- package/dist/serializers/MarkdownSerializer.js.map +0 -1
- package/dist/serializers/index.d.ts +0 -8
- package/dist/serializers/index.d.ts.map +0 -1
- package/dist/serializers/index.js +0 -8
- package/dist/serializers/index.js.map +0 -1
- package/src/SchemaConverterError.ts +0 -108
- package/src/ast/BlockNode.ts +0 -469
- package/src/ast/Document.ts +0 -90
- package/src/ast/InlineNode.ts +0 -323
- package/src/ast/MacroNode.ts +0 -245
- package/src/ast/index.ts +0 -83
- package/src/parsers/ConfluenceParser.ts +0 -956
- package/src/parsers/MarkdownParser.ts +0 -1338
- package/src/parsers/index.ts +0 -8
- package/src/schemas/ConfluenceSchema.ts +0 -56
- package/src/schemas/ConversionSchema.ts +0 -318
- package/src/schemas/MarkdownSchema.ts +0 -56
- package/src/schemas/hast/HastFromHtml.ts +0 -153
- package/src/schemas/hast/HastSchema.ts +0 -274
- package/src/schemas/hast/index.ts +0 -35
- package/src/schemas/index.ts +0 -20
- package/src/schemas/mdast/MdastFromMarkdown.ts +0 -118
- package/src/schemas/mdast/MdastSchema.ts +0 -566
- package/src/schemas/mdast/index.ts +0 -59
- package/src/schemas/mdast/mdastToString.ts +0 -102
- package/src/schemas/nodes/block/BlockSchema.ts +0 -773
- package/src/schemas/nodes/block/index.ts +0 -13
- package/src/schemas/nodes/index.ts +0 -20
- package/src/schemas/nodes/inline/InlineSchema.ts +0 -523
- package/src/schemas/nodes/inline/index.ts +0 -14
- package/src/schemas/nodes/macro/MacroSchema.ts +0 -226
- package/src/schemas/nodes/macro/index.ts +0 -6
- package/src/schemas/preprocessing/ConfluencePreprocessor.ts +0 -455
- package/src/schemas/preprocessing/index.ts +0 -8
- package/src/serializers/ConfluenceSerializer.ts +0 -737
- package/src/serializers/MarkdownSerializer.ts +0 -543
- package/src/serializers/index.ts +0 -8
- package/test/ast/BlockNode.test.ts +0 -265
- package/test/ast/Document.test.ts +0 -126
- package/test/ast/InlineNode.test.ts +0 -161
- package/test/fixtures/integration-test.html.fixture +0 -103
- package/test/fixtures/integration-test.md.expected +0 -257
- package/test/parsers/ConfluenceParser.test.ts +0 -452
- package/test/schemas/ConfluencePreprocessor.test.ts +0 -180
- package/test/schemas/ConversionSchema.test.ts +0 -159
- package/test/schemas/HastSchema.test.ts +0 -138
- package/test/schemas/MdastSchema.test.ts +0 -145
- package/test/schemas/nodes/block/BlockSchema.test.ts +0 -173
- package/test/schemas/nodes/inline/InlineSchema.test.ts +0 -198
- package/test/schemas/nodes/macro/MacroSchema.test.ts +0 -142
package/dist/ast/BlockNode.d.ts
DELETED
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Block-level AST node types for structural content.
|
|
3
|
-
*
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
import * as Schema from "effect/Schema";
|
|
7
|
-
import { type InlineNode as InlineNodeType } from "./InlineNode.js";
|
|
8
|
-
/**
|
|
9
|
-
* Schema version for migration support.
|
|
10
|
-
*
|
|
11
|
-
* @category Version
|
|
12
|
-
*/
|
|
13
|
-
export declare const SchemaVersion: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
14
|
-
default: () => number;
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* Optional raw Confluence HTML for exact roundtrip preservation.
|
|
18
|
-
* When present, the Confluence serializer will output this instead of reconstructing.
|
|
19
|
-
*
|
|
20
|
-
* @category BlockNode
|
|
21
|
-
*/
|
|
22
|
-
export declare const RawConfluence: Schema.optional<typeof Schema.String>;
|
|
23
|
-
declare const Heading_base: Schema.TaggedClass<Heading, "Heading", {
|
|
24
|
-
readonly _tag: Schema.tag<"Heading">;
|
|
25
|
-
} & {
|
|
26
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
27
|
-
default: () => number;
|
|
28
|
-
}>;
|
|
29
|
-
level: Schema.Literal<[1, 2, 3, 4, 5, 6]>;
|
|
30
|
-
children: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
|
|
31
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* Heading element (h1-h6).
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* import { Heading, Text } from "@knpkv/confluence-to-markdown/ast"
|
|
39
|
-
*
|
|
40
|
-
* const h1 = new Heading({
|
|
41
|
-
* level: 1,
|
|
42
|
-
* children: [new Text({ value: "Introduction" })]
|
|
43
|
-
* })
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @category BlockNode
|
|
47
|
-
*/
|
|
48
|
-
export declare class Heading extends Heading_base {
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Text alignment options.
|
|
52
|
-
*
|
|
53
|
-
* @category BlockNode
|
|
54
|
-
*/
|
|
55
|
-
export declare const TextAlignment: Schema.Literal<["left", "center", "right"]>;
|
|
56
|
-
/**
|
|
57
|
-
* Type for TextAlignment.
|
|
58
|
-
*
|
|
59
|
-
* @category Types
|
|
60
|
-
*/
|
|
61
|
-
export type TextAlignment = Schema.Schema.Type<typeof TextAlignment>;
|
|
62
|
-
declare const Paragraph_base: Schema.TaggedClass<Paragraph, "Paragraph", {
|
|
63
|
-
readonly _tag: Schema.tag<"Paragraph">;
|
|
64
|
-
} & {
|
|
65
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
66
|
-
default: () => number;
|
|
67
|
-
}>;
|
|
68
|
-
alignment: Schema.optional<Schema.Literal<["left", "center", "right"]>>;
|
|
69
|
-
indent: Schema.optional<typeof Schema.Number>;
|
|
70
|
-
children: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
|
|
71
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
72
|
-
}>;
|
|
73
|
-
/**
|
|
74
|
-
* Paragraph element with optional alignment and indentation.
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```typescript
|
|
78
|
-
* import { Paragraph, Text } from "@knpkv/confluence-to-markdown/ast"
|
|
79
|
-
*
|
|
80
|
-
* const para = new Paragraph({
|
|
81
|
-
* children: [new Text({ value: "Hello world" })]
|
|
82
|
-
* })
|
|
83
|
-
*
|
|
84
|
-
* // With alignment
|
|
85
|
-
* const centered = new Paragraph({
|
|
86
|
-
* alignment: "center",
|
|
87
|
-
* children: [new Text({ value: "Centered text" })]
|
|
88
|
-
* })
|
|
89
|
-
*
|
|
90
|
-
* // With indentation (in pixels)
|
|
91
|
-
* const indented = new Paragraph({
|
|
92
|
-
* indent: 30,
|
|
93
|
-
* children: [new Text({ value: "Indented text" })]
|
|
94
|
-
* })
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* @category BlockNode
|
|
98
|
-
*/
|
|
99
|
-
export declare class Paragraph extends Paragraph_base {
|
|
100
|
-
}
|
|
101
|
-
declare const CodeBlock_base: Schema.TaggedClass<CodeBlock, "CodeBlock", {
|
|
102
|
-
readonly _tag: Schema.tag<"CodeBlock">;
|
|
103
|
-
} & {
|
|
104
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
105
|
-
default: () => number;
|
|
106
|
-
}>;
|
|
107
|
-
language: Schema.optional<typeof Schema.String>;
|
|
108
|
-
code: typeof Schema.String;
|
|
109
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
110
|
-
}>;
|
|
111
|
-
/**
|
|
112
|
-
* Code block with optional language.
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* ```typescript
|
|
116
|
-
* import { CodeBlock } from "@knpkv/confluence-to-markdown/ast"
|
|
117
|
-
*
|
|
118
|
-
* const code = new CodeBlock({
|
|
119
|
-
* language: "typescript",
|
|
120
|
-
* code: "const x = 1"
|
|
121
|
-
* })
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
124
|
-
* @category BlockNode
|
|
125
|
-
*/
|
|
126
|
-
export declare class CodeBlock extends CodeBlock_base {
|
|
127
|
-
}
|
|
128
|
-
declare const ThematicBreak_base: Schema.TaggedClass<ThematicBreak, "ThematicBreak", {
|
|
129
|
-
readonly _tag: Schema.tag<"ThematicBreak">;
|
|
130
|
-
} & {
|
|
131
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
132
|
-
}>;
|
|
133
|
-
/**
|
|
134
|
-
* Thematic break / horizontal rule.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```typescript
|
|
138
|
-
* import { ThematicBreak } from "@knpkv/confluence-to-markdown/ast"
|
|
139
|
-
*
|
|
140
|
-
* const hr = new ThematicBreak({})
|
|
141
|
-
* ```
|
|
142
|
-
*
|
|
143
|
-
* @category BlockNode
|
|
144
|
-
*/
|
|
145
|
-
export declare class ThematicBreak extends ThematicBreak_base {
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Attachment reference for images stored in Confluence.
|
|
149
|
-
*
|
|
150
|
-
* @category BlockNode
|
|
151
|
-
*/
|
|
152
|
-
export declare const ImageAttachment: Schema.Struct<{
|
|
153
|
-
filename: typeof Schema.String;
|
|
154
|
-
version: Schema.optional<typeof Schema.Number>;
|
|
155
|
-
}>;
|
|
156
|
-
/**
|
|
157
|
-
* Type for ImageAttachment.
|
|
158
|
-
*
|
|
159
|
-
* @category Types
|
|
160
|
-
*/
|
|
161
|
-
export type ImageAttachment = Schema.Schema.Type<typeof ImageAttachment>;
|
|
162
|
-
declare const Image_base: Schema.TaggedClass<Image, "Image", {
|
|
163
|
-
readonly _tag: Schema.tag<"Image">;
|
|
164
|
-
} & {
|
|
165
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
166
|
-
default: () => number;
|
|
167
|
-
}>;
|
|
168
|
-
src: Schema.optional<typeof Schema.String>;
|
|
169
|
-
attachment: Schema.optional<Schema.Struct<{
|
|
170
|
-
filename: typeof Schema.String;
|
|
171
|
-
version: Schema.optional<typeof Schema.Number>;
|
|
172
|
-
}>>;
|
|
173
|
-
alt: Schema.optional<typeof Schema.String>;
|
|
174
|
-
title: Schema.optional<typeof Schema.String>;
|
|
175
|
-
align: Schema.optional<typeof Schema.String>;
|
|
176
|
-
width: Schema.optional<typeof Schema.Number>;
|
|
177
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
178
|
-
}>;
|
|
179
|
-
/**
|
|
180
|
-
* Image element with support for both URL and Confluence attachments.
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* ```typescript
|
|
184
|
-
* import { Image } from "@knpkv/confluence-to-markdown/ast"
|
|
185
|
-
*
|
|
186
|
-
* // URL-based image
|
|
187
|
-
* const img = new Image({
|
|
188
|
-
* src: "https://example.com/image.png",
|
|
189
|
-
* alt: "Example image"
|
|
190
|
-
* })
|
|
191
|
-
*
|
|
192
|
-
* // Confluence attachment
|
|
193
|
-
* const attachment = new Image({
|
|
194
|
-
* attachment: { filename: "logo.svg" },
|
|
195
|
-
* align: "center",
|
|
196
|
-
* width: 250
|
|
197
|
-
* })
|
|
198
|
-
* ```
|
|
199
|
-
*
|
|
200
|
-
* @category BlockNode
|
|
201
|
-
*/
|
|
202
|
-
export declare class Image extends Image_base {
|
|
203
|
-
}
|
|
204
|
-
declare const TableCell_base: Schema.TaggedClass<TableCell, "TableCell", {
|
|
205
|
-
readonly _tag: Schema.tag<"TableCell">;
|
|
206
|
-
} & {
|
|
207
|
-
isHeader: Schema.optionalWith<typeof Schema.Boolean, {
|
|
208
|
-
default: () => false;
|
|
209
|
-
}>;
|
|
210
|
-
children: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
|
|
211
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
212
|
-
}>;
|
|
213
|
-
/**
|
|
214
|
-
* Table cell element.
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* ```typescript
|
|
218
|
-
* import { TableCell, Text } from "@knpkv/confluence-to-markdown/ast"
|
|
219
|
-
*
|
|
220
|
-
* const cell = new TableCell({
|
|
221
|
-
* isHeader: true,
|
|
222
|
-
* children: [new Text({ value: "Header" })]
|
|
223
|
-
* })
|
|
224
|
-
* ```
|
|
225
|
-
*
|
|
226
|
-
* @category BlockNode
|
|
227
|
-
*/
|
|
228
|
-
export declare class TableCell extends TableCell_base {
|
|
229
|
-
}
|
|
230
|
-
declare const TableRow_base: Schema.TaggedClass<TableRow, "TableRow", {
|
|
231
|
-
readonly _tag: Schema.tag<"TableRow">;
|
|
232
|
-
} & {
|
|
233
|
-
cells: Schema.Array$<typeof TableCell>;
|
|
234
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
235
|
-
}>;
|
|
236
|
-
/**
|
|
237
|
-
* Table row element.
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* ```typescript
|
|
241
|
-
* import { TableRow, TableCell, Text } from "@knpkv/confluence-to-markdown/ast"
|
|
242
|
-
*
|
|
243
|
-
* const row = new TableRow({
|
|
244
|
-
* cells: [
|
|
245
|
-
* new TableCell({ children: [new Text({ value: "A" })] }),
|
|
246
|
-
* new TableCell({ children: [new Text({ value: "B" })] })
|
|
247
|
-
* ]
|
|
248
|
-
* })
|
|
249
|
-
* ```
|
|
250
|
-
*
|
|
251
|
-
* @category BlockNode
|
|
252
|
-
*/
|
|
253
|
-
export declare class TableRow extends TableRow_base {
|
|
254
|
-
}
|
|
255
|
-
declare const Table_base: Schema.TaggedClass<Table, "Table", {
|
|
256
|
-
readonly _tag: Schema.tag<"Table">;
|
|
257
|
-
} & {
|
|
258
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
259
|
-
default: () => number;
|
|
260
|
-
}>;
|
|
261
|
-
header: Schema.optional<typeof TableRow>;
|
|
262
|
-
rows: Schema.Array$<typeof TableRow>;
|
|
263
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
264
|
-
}>;
|
|
265
|
-
/**
|
|
266
|
-
* Table element with optional header row.
|
|
267
|
-
*
|
|
268
|
-
* @example
|
|
269
|
-
* ```typescript
|
|
270
|
-
* import { Table, TableRow, TableCell, Text } from "@knpkv/confluence-to-markdown/ast"
|
|
271
|
-
*
|
|
272
|
-
* const table = new Table({
|
|
273
|
-
* header: new TableRow({
|
|
274
|
-
* cells: [new TableCell({ isHeader: true, children: [new Text({ value: "Col" })] })]
|
|
275
|
-
* }),
|
|
276
|
-
* rows: []
|
|
277
|
-
* })
|
|
278
|
-
* ```
|
|
279
|
-
*
|
|
280
|
-
* @category BlockNode
|
|
281
|
-
*/
|
|
282
|
-
export declare class Table extends Table_base {
|
|
283
|
-
}
|
|
284
|
-
declare const UnsupportedBlock_base: Schema.TaggedClass<UnsupportedBlock, "UnsupportedBlock", {
|
|
285
|
-
readonly _tag: Schema.tag<"UnsupportedBlock">;
|
|
286
|
-
} & {
|
|
287
|
-
rawHtml: Schema.optional<typeof Schema.String>;
|
|
288
|
-
rawMarkdown: Schema.optional<typeof Schema.String>;
|
|
289
|
-
source: Schema.Literal<["confluence", "markdown"]>;
|
|
290
|
-
}>;
|
|
291
|
-
/**
|
|
292
|
-
* Unsupported block element - preserves raw content for round-tripping.
|
|
293
|
-
*
|
|
294
|
-
* @example
|
|
295
|
-
* ```typescript
|
|
296
|
-
* import { UnsupportedBlock } from "@knpkv/confluence-to-markdown/ast"
|
|
297
|
-
*
|
|
298
|
-
* const unknown = new UnsupportedBlock({
|
|
299
|
-
* rawHtml: "<custom-block>content</custom-block>",
|
|
300
|
-
* source: "confluence"
|
|
301
|
-
* })
|
|
302
|
-
* ```
|
|
303
|
-
*
|
|
304
|
-
* @category BlockNode
|
|
305
|
-
*/
|
|
306
|
-
export declare class UnsupportedBlock extends UnsupportedBlock_base {
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Block quote element with nested block content.
|
|
310
|
-
*
|
|
311
|
-
* @category BlockNode
|
|
312
|
-
*/
|
|
313
|
-
export declare const BlockQuote: Schema.Struct<{
|
|
314
|
-
_tag: Schema.Literal<["BlockQuote"]>;
|
|
315
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
316
|
-
default: () => number;
|
|
317
|
-
}>;
|
|
318
|
-
children: Schema.Array$<Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
|
|
319
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
320
|
-
}>;
|
|
321
|
-
/**
|
|
322
|
-
* Type for BlockQuote.
|
|
323
|
-
*
|
|
324
|
-
* @category Types
|
|
325
|
-
*/
|
|
326
|
-
export type BlockQuote = Schema.Schema.Type<typeof BlockQuote>;
|
|
327
|
-
/**
|
|
328
|
-
* List item with nested block content.
|
|
329
|
-
*
|
|
330
|
-
* Children may include any simple block as well as nested {@link List} elements.
|
|
331
|
-
*
|
|
332
|
-
* @category BlockNode
|
|
333
|
-
*/
|
|
334
|
-
export interface ListItem {
|
|
335
|
-
readonly _tag: "ListItem";
|
|
336
|
-
readonly checked?: boolean | undefined;
|
|
337
|
-
readonly children: ReadonlyArray<Heading | Paragraph | CodeBlock | ThematicBreak | Image | Table | UnsupportedBlock | List>;
|
|
338
|
-
readonly rawConfluence?: string | undefined;
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* List element (ordered or unordered).
|
|
342
|
-
*
|
|
343
|
-
* @category BlockNode
|
|
344
|
-
*/
|
|
345
|
-
export interface List {
|
|
346
|
-
readonly _tag: "List";
|
|
347
|
-
readonly version: number;
|
|
348
|
-
readonly ordered: boolean;
|
|
349
|
-
readonly start?: number | undefined;
|
|
350
|
-
readonly children: ReadonlyArray<ListItem>;
|
|
351
|
-
readonly rawConfluence?: string | undefined;
|
|
352
|
-
}
|
|
353
|
-
export interface ListEncoded {
|
|
354
|
-
readonly _tag: "List";
|
|
355
|
-
readonly version?: number | undefined;
|
|
356
|
-
readonly ordered: boolean;
|
|
357
|
-
readonly start?: number | undefined;
|
|
358
|
-
readonly children: ReadonlyArray<ListItemEncoded>;
|
|
359
|
-
readonly rawConfluence?: string | undefined;
|
|
360
|
-
}
|
|
361
|
-
export interface ListItemEncoded {
|
|
362
|
-
readonly _tag: "ListItem";
|
|
363
|
-
readonly checked?: boolean | undefined;
|
|
364
|
-
readonly children: ReadonlyArray<Schema.Schema.Encoded<typeof Heading> | Schema.Schema.Encoded<typeof Paragraph> | Schema.Schema.Encoded<typeof CodeBlock> | Schema.Schema.Encoded<typeof ThematicBreak> | Schema.Schema.Encoded<typeof Image> | Schema.Schema.Encoded<typeof Table> | Schema.Schema.Encoded<typeof UnsupportedBlock> | ListEncoded>;
|
|
365
|
-
readonly rawConfluence?: string | undefined;
|
|
366
|
-
}
|
|
367
|
-
export declare const ListItem: Schema.Schema<ListItem, ListItemEncoded>;
|
|
368
|
-
export declare const List: Schema.Schema<List, ListEncoded>;
|
|
369
|
-
/**
|
|
370
|
-
* Task item with status for Confluence task lists.
|
|
371
|
-
*
|
|
372
|
-
* @category BlockNode
|
|
373
|
-
*/
|
|
374
|
-
export declare const TaskItem: Schema.Struct<{
|
|
375
|
-
_tag: Schema.Literal<["TaskItem"]>;
|
|
376
|
-
id: typeof Schema.String;
|
|
377
|
-
uuid: typeof Schema.String;
|
|
378
|
-
status: Schema.Literal<["incomplete", "complete"]>;
|
|
379
|
-
body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
|
|
380
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
381
|
-
}>;
|
|
382
|
-
/**
|
|
383
|
-
* Type for TaskItem.
|
|
384
|
-
*
|
|
385
|
-
* @category Types
|
|
386
|
-
*/
|
|
387
|
-
export type TaskItem = Schema.Schema.Type<typeof TaskItem>;
|
|
388
|
-
/**
|
|
389
|
-
* Task list (Confluence action items).
|
|
390
|
-
*
|
|
391
|
-
* @category BlockNode
|
|
392
|
-
*/
|
|
393
|
-
export declare const TaskList: Schema.Struct<{
|
|
394
|
-
_tag: Schema.Literal<["TaskList"]>;
|
|
395
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
396
|
-
default: () => number;
|
|
397
|
-
}>;
|
|
398
|
-
children: Schema.Array$<Schema.Struct<{
|
|
399
|
-
_tag: Schema.Literal<["TaskItem"]>;
|
|
400
|
-
id: typeof Schema.String;
|
|
401
|
-
uuid: typeof Schema.String;
|
|
402
|
-
status: Schema.Literal<["incomplete", "complete"]>;
|
|
403
|
-
body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
|
|
404
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
405
|
-
}>>;
|
|
406
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
407
|
-
}>;
|
|
408
|
-
/**
|
|
409
|
-
* Type for TaskList.
|
|
410
|
-
*
|
|
411
|
-
* @category Types
|
|
412
|
-
*/
|
|
413
|
-
export type TaskList = Schema.Schema.Type<typeof TaskList>;
|
|
414
|
-
/**
|
|
415
|
-
* Union of all block node types.
|
|
416
|
-
*
|
|
417
|
-
* @category BlockNode
|
|
418
|
-
*/
|
|
419
|
-
export declare const BlockNode: Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, Schema.Struct<{
|
|
420
|
-
_tag: Schema.Literal<["BlockQuote"]>;
|
|
421
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
422
|
-
default: () => number;
|
|
423
|
-
}>;
|
|
424
|
-
children: Schema.Array$<Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
|
|
425
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
426
|
-
}>, typeof Image, typeof Table, Schema.Schema<List, ListEncoded, never>, Schema.Struct<{
|
|
427
|
-
_tag: Schema.Literal<["TaskList"]>;
|
|
428
|
-
version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
429
|
-
default: () => number;
|
|
430
|
-
}>;
|
|
431
|
-
children: Schema.Array$<Schema.Struct<{
|
|
432
|
-
_tag: Schema.Literal<["TaskItem"]>;
|
|
433
|
-
id: typeof Schema.String;
|
|
434
|
-
uuid: typeof Schema.String;
|
|
435
|
-
status: Schema.Literal<["incomplete", "complete"]>;
|
|
436
|
-
body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
|
|
437
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
438
|
-
}>>;
|
|
439
|
-
rawConfluence: Schema.optional<typeof Schema.String>;
|
|
440
|
-
}>, typeof UnsupportedBlock]>;
|
|
441
|
-
/**
|
|
442
|
-
* Type for block nodes.
|
|
443
|
-
*
|
|
444
|
-
* @category Types
|
|
445
|
-
*/
|
|
446
|
-
export type BlockNode = Heading | Paragraph | CodeBlock | ThematicBreak | BlockQuote | Image | Table | List | TaskList | UnsupportedBlock;
|
|
447
|
-
/**
|
|
448
|
-
* Type helper for inline node children in blocks.
|
|
449
|
-
*
|
|
450
|
-
* @category Types
|
|
451
|
-
*/
|
|
452
|
-
export type { InlineNodeType as InlineNode };
|
|
453
|
-
//# sourceMappingURL=BlockNode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockNode.d.ts","sourceRoot":"","sources":["../../src/ast/BlockNode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAc,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAE/E;;;;GAIG;AACH,eAAO,MAAM,aAAa;;EAIzB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa,uCAAiC,CAAA;;;;;;;;;;;AAE3D;;;;;;;;;;;;;;GAcG;AACH,qBAAa,OAAQ,SAAQ,YAK3B;CAAG;AAEL;;;;GAIG;AACH,eAAO,MAAM,aAAa,6CAA4C,CAAA;AAEtE;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