@gmb/bitmark-parser-generator 1.35.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/cjs/BitmarkParserGenerator.js +8 -3
- package/dist/cjs/BitmarkParserGenerator.js.map +1 -1
- package/dist/cjs/ast/Ast.js +1 -0
- package/dist/cjs/ast/Ast.js.map +1 -1
- package/dist/cjs/ast/BaseBuilder.js +91 -54
- package/dist/cjs/ast/BaseBuilder.js.map +1 -1
- package/dist/cjs/ast/Builder.js +776 -389
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/ast/ResourceBuilder.js +516 -252
- package/dist/cjs/ast/ResourceBuilder.js.map +1 -1
- package/dist/cjs/ast/rules/NodeValidator.js +61 -22
- package/dist/cjs/ast/rules/NodeValidator.js.map +1 -1
- package/dist/cjs/breakscaping/Breakscape.js +96 -71
- package/dist/cjs/breakscaping/Breakscape.js.map +1 -1
- package/dist/cjs/config/raw/bits.js +14 -5
- package/dist/cjs/config/raw/bits.js.map +1 -1
- package/dist/cjs/config/raw/properties.js +7 -2
- package/dist/cjs/config/raw/properties.js.map +1 -1
- package/dist/cjs/generated/build-info.js +1 -1
- package/dist/cjs/generated/build-info.js.map +1 -1
- package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js +1 -0
- package/dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
- package/dist/cjs/generator/AstWalkerGenerator.js +4 -1
- package/dist/cjs/generator/AstWalkerGenerator.js.map +1 -1
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js +959 -338
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +308 -1982
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/generator/text/TextGenerator.js +26 -8
- package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/ast/NodeType.js +27 -8
- package/dist/cjs/model/ast/NodeType.js.map +1 -1
- package/dist/cjs/model/config/enum/PropertyConfigKey.js +1 -0
- package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/cjs/model/enum/BitType.js +1 -2
- package/dist/cjs/model/enum/BitType.js.map +1 -1
- package/dist/cjs/model/enum/PropertyFormat.js +3 -1
- package/dist/cjs/model/enum/PropertyFormat.js.map +1 -1
- package/dist/cjs/model/enum/TextFormat.js +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js +9 -3
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +49 -131
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +7 -31
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +255 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +2 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +175 -129
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +8 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +61 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +11 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +21 -17
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +50 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +2 -15
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +2 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +4 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +2 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +5 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +23 -7
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +3 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +19 -8
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +4 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +14 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +37 -21
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +3 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/json/JsonParser.js +73 -765
- package/dist/cjs/parser/json/JsonParser.js.map +1 -1
- package/dist/cjs/parser/text/TextParser.js +61 -2
- package/dist/cjs/parser/text/TextParser.js.map +1 -1
- package/dist/cjs/utils/BitUtils.js +15 -13
- package/dist/cjs/utils/BitUtils.js.map +1 -1
- package/dist/esm/BitmarkParserGenerator.js +8 -3
- package/dist/esm/BitmarkParserGenerator.js.map +1 -1
- package/dist/esm/ast/Ast.js +1 -0
- package/dist/esm/ast/Ast.js.map +1 -1
- package/dist/esm/ast/BaseBuilder.js +91 -54
- package/dist/esm/ast/BaseBuilder.js.map +1 -1
- package/dist/esm/ast/Builder.js +776 -389
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/ast/ResourceBuilder.js +516 -252
- package/dist/esm/ast/ResourceBuilder.js.map +1 -1
- package/dist/esm/ast/rules/NodeValidator.js +61 -22
- package/dist/esm/ast/rules/NodeValidator.js.map +1 -1
- package/dist/esm/breakscaping/Breakscape.js +96 -71
- package/dist/esm/breakscaping/Breakscape.js.map +1 -1
- package/dist/esm/config/raw/bits.js +14 -5
- package/dist/esm/config/raw/bits.js.map +1 -1
- package/dist/esm/config/raw/properties.js +7 -2
- package/dist/esm/config/raw/properties.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/generated/build-info.js.map +1 -1
- package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js +1 -0
- package/dist/esm/generated/parser/bitmark/bitmark-peggy-parser.js.map +1 -1
- package/dist/esm/generator/AstWalkerGenerator.js +4 -1
- package/dist/esm/generator/AstWalkerGenerator.js.map +1 -1
- package/dist/esm/generator/bitmark/BitmarkGenerator.js +959 -338
- package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +308 -1982
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/generator/text/TextGenerator.js +26 -8
- package/dist/esm/generator/text/TextGenerator.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/ast/NodeType.js +27 -8
- package/dist/esm/model/ast/NodeType.js.map +1 -1
- package/dist/esm/model/config/enum/PropertyConfigKey.js +1 -0
- package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/esm/model/enum/BitType.js +1 -2
- package/dist/esm/model/enum/BitType.js.map +1 -1
- package/dist/esm/model/enum/PropertyFormat.js +3 -1
- package/dist/esm/model/enum/PropertyFormat.js.map +1 -1
- package/dist/esm/model/enum/TextFormat.js +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js +9 -3
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +49 -131
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +7 -31
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +252 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +2 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +175 -129
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +8 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js +58 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +11 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +21 -17
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +47 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +2 -15
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +2 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +4 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +2 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +5 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +23 -7
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +3 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +19 -8
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +4 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +14 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +37 -21
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +3 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/json/JsonParser.js +73 -765
- package/dist/esm/parser/json/JsonParser.js.map +1 -1
- package/dist/esm/parser/text/TextParser.js +61 -2
- package/dist/esm/parser/text/TextParser.js.map +1 -1
- package/dist/esm/utils/BitUtils.js +15 -13
- package/dist/esm/utils/BitUtils.js.map +1 -1
- package/dist/types/BitmarkParserGenerator.d.ts +8 -0
- package/dist/types/BitmarkParserGenerator.d.ts.map +1 -1
- package/dist/types/ast/Ast.d.ts.map +1 -1
- package/dist/types/ast/BaseBuilder.d.ts +31 -21
- package/dist/types/ast/BaseBuilder.d.ts.map +1 -1
- package/dist/types/ast/Builder.d.ts +279 -441
- package/dist/types/ast/Builder.d.ts.map +1 -1
- package/dist/types/ast/ResourceBuilder.d.ts +177 -164
- package/dist/types/ast/ResourceBuilder.d.ts.map +1 -1
- package/dist/types/ast/rules/NodeValidator.d.ts +3 -2
- package/dist/types/ast/rules/NodeValidator.d.ts.map +1 -1
- package/dist/types/breakscaping/Breakscape.d.ts +6 -5
- package/dist/types/breakscaping/Breakscape.d.ts.map +1 -1
- package/dist/types/config/raw/bits.d.ts.map +1 -1
- package/dist/types/config/raw/properties.d.ts.map +1 -1
- package/dist/types/generated/parser/bitmark/bitmark-peggy-parser.d.ts.map +1 -1
- package/dist/types/generator/AstWalkerGenerator.d.ts.map +1 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +89 -55
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +88 -108
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/generator/text/TextGenerator.d.ts +14 -2
- package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/ast/NodeType.d.ts +48 -16
- package/dist/types/model/ast/NodeType.d.ts.map +1 -1
- package/dist/types/model/ast/Nodes.d.ts +64 -440
- package/dist/types/model/ast/Nodes.d.ts.map +1 -1
- package/dist/types/model/config/enum/ConfigKey.d.ts +2 -0
- package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts +3 -0
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
- package/dist/types/model/enum/BitType.d.ts +2 -4
- package/dist/types/model/enum/BitType.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyFormat.d.ts +4 -2
- package/dist/types/model/enum/PropertyFormat.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyTag.d.ts +2 -0
- package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
- package/dist/types/model/json/BitJson.d.ts +32 -20
- package/dist/types/model/json/BitJson.d.ts.map +1 -1
- package/dist/types/model/json/BodyBitJson.d.ts +16 -12
- package/dist/types/model/json/BodyBitJson.d.ts.map +1 -1
- package/dist/types/model/json/ResourceJson.d.ts +2 -22
- package/dist/types/model/json/ResourceJson.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts +3 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserHelper.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts +2 -15
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +83 -71
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts +37 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts +15 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts +16 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +2 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts +5 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/json/JsonParser.d.ts +9 -72
- package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
- package/dist/types/parser/text/TextParser.d.ts +16 -1
- package/dist/types/parser/text/TextParser.d.ts.map +1 -1
- package/dist/types/utils/BitUtils.d.ts +8 -8
- package/dist/types/utils/BitUtils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitmarkPegParserProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/parser/bitmark/peg/BitmarkPegParserProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;
|
|
1
|
+
{"version":3,"file":"BitmarkPegParserProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/parser/bitmark/peg/BitmarkPegParserProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAKH,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAY,MAAM,0BAA0B,CAAC;AAwBrE,OAAO,EACL,UAAU,EAGV,SAAS,EAET,mBAAmB,EACnB,eAAe,EAKf,SAAS,EAGT,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AA0BjC,cAAM,yBAAyB;IAC7B,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,OAAO,CAAC,cAAc,CAAqB;IAC3C,OAAO,CAAC,MAAM,CAAkB;IAEhC,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,UAAU,CAA4B;IAC9C,OAAO,CAAC,cAAc,CAAgC;gBAE1C,OAAO,EAAE,mBAAmB;IAmCxC,SAAS,CAAC,OAAO,EAAE,eAAe,CAAC,GAAG,CAAC,EAAE,GAAG,UAAU;IA6BtD,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC,GAAG,CAAC;IAkG9E,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC;IAkBnD,cAAc,CACZ,kBAAkB,EAAE,iBAAiB,EACrC,QAAQ,EAAE,MAAM,EAChB,yBAAyB,EAAE,sBAAsB,GAChD,SAAS;IAkDZ,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,sBAAsB;IAuB9G;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAIxB;;;;;;;;OAQG;IACH,OAAO,CAAC,4BAA4B;IA8DpC;;;;;;;;;OASG;IACH,OAAO,CAAC,mBAAmB;IAsR3B,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,mBAAmB;IAS3B;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAqBvB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAYlB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;IAYhB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;CAwBnB;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -8,15 +8,18 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { EnumType } from '@ncoderz/superenum';
|
|
10
10
|
import { BreakscapedString } from '../../../model/ast/BreakscapedString';
|
|
11
|
+
import { Body, ExtraProperties, CardBit, Footer } from '../../../model/ast/Nodes';
|
|
12
|
+
import { JsonText, TextAst } from '../../../model/ast/TextNodes';
|
|
11
13
|
import { TagsConfig } from '../../../model/config/TagsConfig';
|
|
12
14
|
import { BitTypeType } from '../../../model/enum/BitType';
|
|
13
15
|
import { ResourceTagType } from '../../../model/enum/ResourceTag';
|
|
14
16
|
import { TextFormatType } from '../../../model/enum/TextFormat';
|
|
17
|
+
import { ResourceJson } from '../../../model/json/ResourceJson';
|
|
15
18
|
import { ParserData } from '../../../model/parser/ParserData';
|
|
16
19
|
import { ParserError } from '../../../model/parser/ParserError';
|
|
17
20
|
import { ParserInfo } from '../../../model/parser/ParserInfo';
|
|
18
21
|
import { PeggyGrammarLocation } from './PeggyGrammarLocation';
|
|
19
|
-
import {
|
|
22
|
+
import { BotResponseJson, CaptionDefinitionListJson, ChoiceJson, DefinitionListItemJson, ExampleJson, FlashcardJson, HeadingJson, ImageSourceJson, IngredientJson, MarkConfigJson, MatrixJson, PairJson, PersonJson, QuestionJson, QuizJson, RatingLevelStartEndJson, ResponseJson, ServingsJson, StatementJson, TableJson, TechnicalTermJson } from '../../../model/json/BitJson';
|
|
20
23
|
declare const CARD_DIVIDER_V2 = "====";
|
|
21
24
|
declare const CARD_SIDE_DIVIDER_V2 = "--";
|
|
22
25
|
declare const CARD_VARIANT_DIVIDER_V2 = "++";
|
|
@@ -51,10 +54,10 @@ export interface BitHeader {
|
|
|
51
54
|
isCommented?: boolean;
|
|
52
55
|
}
|
|
53
56
|
export interface TrueFalseValue {
|
|
54
|
-
text:
|
|
57
|
+
text: string;
|
|
55
58
|
isCorrect: boolean;
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
example?: ExampleJson;
|
|
60
|
+
__isDefaultExample: boolean;
|
|
58
61
|
}
|
|
59
62
|
export interface CardData {
|
|
60
63
|
cardIndex: number;
|
|
@@ -65,69 +68,75 @@ export interface CardData {
|
|
|
65
68
|
export interface BitContentProcessorResult {
|
|
66
69
|
cardSet?: ParsedCardSet;
|
|
67
70
|
cardBody?: Body;
|
|
68
|
-
cardBodyStr?:
|
|
71
|
+
cardBodyStr?: string;
|
|
69
72
|
body?: Body;
|
|
70
73
|
footer?: Footer;
|
|
71
|
-
imageSource?:
|
|
72
|
-
technicalTerm?:
|
|
73
|
-
servings?:
|
|
74
|
-
ratingLevelStart?:
|
|
75
|
-
ratingLevelEnd?:
|
|
76
|
-
label?:
|
|
77
|
-
person?:
|
|
74
|
+
imageSource?: Partial<ImageSourceJson>;
|
|
75
|
+
technicalTerm?: Partial<TechnicalTermJson>;
|
|
76
|
+
servings?: Partial<ServingsJson>;
|
|
77
|
+
ratingLevelStart?: Partial<RatingLevelStartEndJson>;
|
|
78
|
+
ratingLevelEnd?: Partial<RatingLevelStartEndJson>;
|
|
79
|
+
label?: TextAst;
|
|
80
|
+
person?: Partial<PersonJson>;
|
|
78
81
|
propertyTitle?: BreakscapedString;
|
|
79
82
|
trueFalse?: TrueFalseValue[];
|
|
80
|
-
isDefaultExample?: boolean;
|
|
81
83
|
lang?: BreakscapedString;
|
|
82
|
-
example?:
|
|
84
|
+
example?: ExampleJson;
|
|
83
85
|
isCorrect?: boolean;
|
|
84
|
-
markConfig?:
|
|
85
|
-
solutions?:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
markConfig?: Partial<MarkConfigJson>[];
|
|
87
|
+
solutions?: string[];
|
|
88
|
+
__solutionsAst?: TextAst[];
|
|
89
|
+
statement?: Partial<StatementJson>;
|
|
90
|
+
statements?: Partial<StatementJson>[];
|
|
91
|
+
choices?: Partial<ChoiceJson>[];
|
|
92
|
+
responses?: Partial<ResponseJson>[];
|
|
90
93
|
solution?: BreakscapedString;
|
|
91
94
|
mark?: BreakscapedString[];
|
|
92
|
-
title?:
|
|
93
|
-
|
|
95
|
+
title?: {
|
|
96
|
+
titleAst: TextAst;
|
|
97
|
+
titleString: string;
|
|
98
|
+
}[];
|
|
94
99
|
propertyStyleResources?: {
|
|
95
|
-
[key: string]:
|
|
100
|
+
[key: string]: ResourceJson;
|
|
96
101
|
};
|
|
97
|
-
resources?:
|
|
98
|
-
itemLead?:
|
|
99
|
-
item?:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
resources?: ResourceJson[];
|
|
103
|
+
itemLead?: TextAst[];
|
|
104
|
+
item?: JsonText;
|
|
105
|
+
itemString?: string;
|
|
106
|
+
lead?: TextAst;
|
|
107
|
+
pageNumber?: TextAst;
|
|
108
|
+
marginNumber?: TextAst;
|
|
109
|
+
instruction?: TextAst;
|
|
110
|
+
__instructionString?: string;
|
|
111
|
+
hint?: TextAst;
|
|
112
|
+
__hintString?: string;
|
|
113
|
+
anchor?: string;
|
|
114
|
+
book?: string;
|
|
115
|
+
reference?: string;
|
|
116
|
+
referenceEnd?: string;
|
|
117
|
+
sampleSolution?: string;
|
|
118
|
+
__sampleSolutionAst?: TextAst;
|
|
119
|
+
additionalSolutions?: string[];
|
|
111
120
|
isCaseSensitive?: boolean;
|
|
112
121
|
reaction?: BreakscapedString;
|
|
113
|
-
license?:
|
|
114
|
-
copyright?:
|
|
122
|
+
license?: string;
|
|
123
|
+
copyright?: string;
|
|
115
124
|
showInIndex?: boolean;
|
|
116
|
-
caption?:
|
|
117
|
-
src1x?:
|
|
118
|
-
src2x?:
|
|
119
|
-
src3x?:
|
|
120
|
-
src4x?:
|
|
125
|
+
caption?: TextAst;
|
|
126
|
+
src1x?: string;
|
|
127
|
+
src2x?: string;
|
|
128
|
+
src3x?: string;
|
|
129
|
+
src4x?: string;
|
|
121
130
|
width?: string;
|
|
122
131
|
height?: string;
|
|
123
|
-
alt?:
|
|
132
|
+
alt?: string;
|
|
124
133
|
mute?: boolean;
|
|
125
134
|
autoplay?: boolean;
|
|
126
135
|
allowSubtitles?: boolean;
|
|
127
136
|
showSubtitles?: boolean;
|
|
128
|
-
posterImage?:
|
|
129
|
-
siteName?:
|
|
130
|
-
imageSourceUrl?:
|
|
137
|
+
posterImage?: string;
|
|
138
|
+
siteName?: string;
|
|
139
|
+
imageSourceUrl?: string;
|
|
131
140
|
mockupId?: BreakscapedString;
|
|
132
141
|
size?: number;
|
|
133
142
|
format?: BreakscapedString;
|
|
@@ -137,36 +146,39 @@ export interface BitContentProcessorResult {
|
|
|
137
146
|
disableCalculation?: boolean;
|
|
138
147
|
extraProperties?: ExtraProperties;
|
|
139
148
|
internalComments?: BreakscapedString[];
|
|
149
|
+
__isDefaultExample?: boolean;
|
|
140
150
|
}
|
|
141
151
|
export interface BitSpecificTitles {
|
|
142
|
-
title?:
|
|
143
|
-
|
|
152
|
+
title?: TextAst;
|
|
153
|
+
titleString?: string;
|
|
154
|
+
subtitle?: TextAst;
|
|
155
|
+
subtitleString?: string;
|
|
144
156
|
level?: number;
|
|
145
157
|
}
|
|
146
158
|
export interface StatementsOrChoicesOrResponses {
|
|
147
|
-
statements?:
|
|
148
|
-
choices?:
|
|
149
|
-
responses?:
|
|
159
|
+
statements?: Partial<StatementJson>[];
|
|
160
|
+
choices?: Partial<ChoiceJson>[];
|
|
161
|
+
responses?: Partial<ResponseJson>[];
|
|
150
162
|
}
|
|
151
163
|
export interface BitSpecificCards {
|
|
152
|
-
sampleSolution?:
|
|
153
|
-
elements?:
|
|
154
|
-
flashcards?:
|
|
155
|
-
definitions?:
|
|
156
|
-
statements?:
|
|
157
|
-
responses?:
|
|
158
|
-
quizzes?:
|
|
159
|
-
heading?:
|
|
160
|
-
pairs?:
|
|
161
|
-
matrix?:
|
|
162
|
-
choices?:
|
|
163
|
-
questions?:
|
|
164
|
-
table?:
|
|
165
|
-
botResponses?:
|
|
166
|
-
ingredients?:
|
|
167
|
-
captionDefinitionList?:
|
|
168
|
-
cardBits?: CardBit[];
|
|
169
|
-
internalComments?:
|
|
164
|
+
sampleSolution?: string;
|
|
165
|
+
elements?: string[];
|
|
166
|
+
flashcards?: Partial<FlashcardJson>[];
|
|
167
|
+
definitions?: Partial<DefinitionListItemJson>[];
|
|
168
|
+
statements?: Partial<StatementJson>[];
|
|
169
|
+
responses?: Partial<ResponseJson>[];
|
|
170
|
+
quizzes?: Partial<QuizJson>[];
|
|
171
|
+
heading?: Partial<HeadingJson>;
|
|
172
|
+
pairs?: Partial<PairJson>[];
|
|
173
|
+
matrix?: Partial<MatrixJson>[];
|
|
174
|
+
choices?: Partial<ChoiceJson>[];
|
|
175
|
+
questions?: Partial<QuestionJson>[];
|
|
176
|
+
table?: Partial<TableJson>;
|
|
177
|
+
botResponses?: Partial<BotResponseJson>[];
|
|
178
|
+
ingredients?: Partial<IngredientJson>[];
|
|
179
|
+
captionDefinitionList?: Partial<CaptionDefinitionListJson>;
|
|
180
|
+
cardBits?: Partial<CardBit>[];
|
|
181
|
+
internalComments?: string[];
|
|
170
182
|
}
|
|
171
183
|
export type BitContent = TypeValue | TypeKeyValue;
|
|
172
184
|
export interface TypeValue<T = unknown> extends ParserData {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitmarkPegParserTypes.d.ts","sourceRoot":"","sources":["../../../../../src/parser/bitmark/peg/BitmarkPegParserTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,EAAa,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"BitmarkPegParserTypes.d.ts","sourceRoot":"","sources":["../../../../../src/parser/bitmark/peg/BitmarkPegParserTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,EAAa,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,UAAU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
*/
|
|
9
9
|
import { BreakscapedString } from '../../../model/ast/BreakscapedString';
|
|
10
|
-
import { Body } from '../../../model/ast/Nodes';
|
|
10
|
+
import { Body, BodyPart } from '../../../model/ast/Nodes';
|
|
11
11
|
import { BitTypeType } from '../../../model/enum/BitType';
|
|
12
12
|
import { ResourceTagType } from '../../../model/enum/ResourceTag';
|
|
13
13
|
import { TextFormatType } from '../../../model/enum/TextFormat';
|
|
@@ -37,7 +37,7 @@ declare class BitmarkPegParserValidator {
|
|
|
37
37
|
* @param body
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
|
-
checkBody(context: BitmarkPegParserContext, _contentDepth: ContentDepthType, bitType: BitTypeType,
|
|
40
|
+
checkBody(context: BitmarkPegParserContext, _contentDepth: ContentDepthType, bitType: BitTypeType, _textFormat: TextFormatType, bodyParts: BodyPart[] | undefined): BodyPart[] | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Check the body part of the bit.
|
|
43
43
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BitmarkPegParserValidator.d.ts","sourceRoot":"","sources":["../../../../../src/parser/bitmark/peg/BitmarkPegParserValidator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"BitmarkPegParserValidator.d.ts","sourceRoot":"","sources":["../../../../../src/parser/bitmark/peg/BitmarkPegParserValidator.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM1D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIhE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,uBAAuB,EAKxB,M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A2B3B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,eAAe;IA2EvB;;;;;;;;OAQG;IACH,OAAO,CAAC,mCAAmC;IA2B3C;;;;;;;;;OASG;IACH,OAAO,CAAC,uBAAuB;IA4C/B;;;;;;;;;OASG;IACH,OAAO,CAAC,gBAAgB;IAyBxB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,sBAAsB;CAU/B;AAED,QAAA,MAAM,QAAQ,2BAAkC,CAAC;AAEjD,OAAO,EAAE,QAAQ,IAAI,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BreakscapedString } from '../../../../model/ast/BreakscapedString';
|
|
2
|
+
import { Body, BodyPart } from '../../../../model/ast/Nodes';
|
|
3
|
+
import { TextAst } from '../../../../model/ast/TextNodes';
|
|
4
|
+
import { TagsConfig } from '../../../../model/config/TagsConfig';
|
|
5
|
+
import { BitTypeType } from '../../../../model/enum/BitType';
|
|
6
|
+
import { TextFormatType } from '../../../../model/enum/TextFormat';
|
|
7
|
+
import { BodyBitJson } from '../../../../model/json/BodyBitJson';
|
|
8
|
+
import { BitContentProcessorResult, BitmarkPegParserContext, ContentDepthType } from '../BitmarkPegParserTypes';
|
|
9
|
+
export interface BodyText extends BodyPart {
|
|
10
|
+
type: 'text';
|
|
11
|
+
data: {
|
|
12
|
+
bodyText: BreakscapedString;
|
|
13
|
+
isPlain: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare class BodyContentProcessor {
|
|
17
|
+
process(context: BitmarkPegParserContext, contentDepth: ContentDepthType, bitType: BitTypeType, textFormat: TextFormatType, _tagsConfig: TagsConfig | undefined, _target: BitContentProcessorResult, bodyParts: BodyPart[], isCardBody: boolean): Partial<Body> | undefined;
|
|
18
|
+
buildBodyText(bodyTextPart: BreakscapedString, isPlain: boolean): BodyText;
|
|
19
|
+
/**
|
|
20
|
+
* Walk the body AST to find the placeholder and replace it with the body bit.
|
|
21
|
+
*
|
|
22
|
+
* @param bodyAst the body AST
|
|
23
|
+
* @param bodyBitJson the body bit json to insert at the placeholder position
|
|
24
|
+
* @param index the index of the placeholder to replace
|
|
25
|
+
*/
|
|
26
|
+
protected replacePlaceholderWithBodyBit(bodyAst: TextAst, bodyBitJson: BodyBitJson, index: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* Trim the body parts, removing any whitespace only parts at start and end of body
|
|
29
|
+
*
|
|
30
|
+
* @param parts the body parts to trim
|
|
31
|
+
* @returns the trimmed body parts
|
|
32
|
+
*/
|
|
33
|
+
private trimBodyParts;
|
|
34
|
+
}
|
|
35
|
+
declare const instance: BodyContentProcessor;
|
|
36
|
+
export { instance as BodyContentProcessor };
|
|
37
|
+
//# sourceMappingURL=BodyContentProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BodyContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/BodyContentProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAY,OAAO,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAc,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAgD,MAAM,oCAAoC,CAAC;AAG/G,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAKhH,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,QAAQ,EAAE,iBAAiB,CAAC;QAC5B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAID,cAAM,oBAAoB;IACjB,OAAO,CACZ,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,WAAW,EAAE,UAAU,GAAG,SAAS,EACnC,OAAO,EAAE,yBAAyB,EAClC,SAAS,EAAE,QAAQ,EAAE,EACrB,UAAU,EAAE,OAAO,GAClB,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS;IAuKrB,aAAa,CAAC,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,QAAQ;IAWjF;;;;;;OAMG;IACH,SAAS,CAAC,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM;IA4BjG;;;;;OAKG;IACH,OAAO,CAAC,aAAa;CAyCtB;AAED,QAAA,MAAM,QAAQ,sBAA6B,CAAC;AAC5C,OAAO,EAAE,QAAQ,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BookChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAIlC,iBAAS,yBAAyB,CAChC,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CASN;AAgCD,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BitTypeType } from '../../../../model/enum/BitType';
|
|
2
2
|
import { TextFormatType } from '../../../../model/enum/TextFormat';
|
|
3
|
-
import {
|
|
3
|
+
import { ChoiceJson, ResponseJson, StatementJson } from '../../../../model/json/BitJson';
|
|
4
4
|
import { BitSpecificCards, BitmarkPegParserContext, ParsedCardSet } from '../BitmarkPegParserTypes';
|
|
5
|
-
declare function buildCards(context: BitmarkPegParserContext, bitType: BitTypeType, textFormat: TextFormatType, parsedCardSet: ParsedCardSet | undefined, statementV1:
|
|
5
|
+
declare function buildCards(context: BitmarkPegParserContext, bitType: BitTypeType, textFormat: TextFormatType, parsedCardSet: ParsedCardSet | undefined, statementV1: Partial<StatementJson> | undefined, statementsV1: Partial<StatementJson>[] | undefined, choicesV1: Partial<ChoiceJson>[] | undefined, responsesV1: Partial<ResponseJson>[] | undefined): BitSpecificCards;
|
|
6
6
|
export { buildCards };
|
|
7
7
|
//# sourceMappingURL=CardContentProcessor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/CardContentProcessor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAGtE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"CardContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/CardContentProcessor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAGtE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAKnE,OAAO,EAIL,UAAU,EAWV,YAAY,EACZ,aAAa,EAEd,MAAM,gCAAgC,CAAC;AAOxC,OAAO,EAGL,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EAKd,MAAM,0BAA0B,CAAC;AAElC,iBAAS,UAAU,CACjB,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,aAAa,EAAE,aAAa,GAAG,SAAS,EACxC,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS,EAC/C,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,EAAE,GAAG,SAAS,EAClD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,SAAS,EAC5C,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,GAAG,SAAS,GAC/C,gBAAgB,CA6ElB;AAo4BD,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClozeTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClozeTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAIlC,iBAAS,wBAAwB,CAC/B,QAAQ,EAAE,uBAAuB,EACjC,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,cAAc,EAC3B,WAAW,EAAE,UAAU,GAAG,SAAS,EACnC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAgBN;AACD,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JsonText } from '../../../../model/ast/TextNodes';
|
|
2
|
+
declare class ContentProcessorUtils {
|
|
3
|
+
/**
|
|
4
|
+
* Concatenates a plain JSON text with a JsonText that may be plain (v2) or BitmarkText (v3)
|
|
5
|
+
* Returns the combined text.
|
|
6
|
+
*
|
|
7
|
+
* @param text the text to concatenate
|
|
8
|
+
* @param extraBreaks extra breaks to add between concatenated texts
|
|
9
|
+
* @param textPlain the plain text to concatenate
|
|
10
|
+
*/
|
|
11
|
+
concatenatePlainTextWithAstTexts(text: JsonText, extraBreaks: number, textPlain: string): JsonText;
|
|
12
|
+
}
|
|
13
|
+
declare const instance: ContentProcessorUtils;
|
|
14
|
+
export { instance as ContentProcessorUtils };
|
|
15
|
+
//# sourceMappingURL=ContentProcessorUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentProcessorUtils.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA+B,MAAM,iCAAiC,CAAC;AAGxF,cAAM,qBAAqB;IACzB;;;;;;;OAOG;IACI,gCAAgC,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,QAAQ;CA8C1G;AAED,QAAA,MAAM,QAAQ,uBAA8B,CAAC;AAC7C,OAAO,EAAE,QAAQ,IAAI,qBAAqB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DefaultTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAGxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,cAAc,EAC3B,WAAW,EAAE,UAAU,GAAG,SAAS,EACnC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAwCN;AACD,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,WAAW,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAGxB,MAAM,0BAA0B,CAAC;AAKlC,iBAAS,0BAA0B,CACjC,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CA+BN;AAiID,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BreakscapedString } from '../../../../model/ast/BreakscapedString';
|
|
2
|
+
import { Footer } from '../../../../model/ast/Nodes';
|
|
3
|
+
import { TagsConfig } from '../../../../model/config/TagsConfig';
|
|
4
|
+
import { BitTypeType } from '../../../../model/enum/BitType';
|
|
5
|
+
import { TextFormatType } from '../../../../model/enum/TextFormat';
|
|
6
|
+
import { BitContentProcessorResult, BitmarkPegParserContext, ContentDepthType } from '../BitmarkPegParserTypes';
|
|
7
|
+
export interface FooterText {
|
|
8
|
+
footerText: BreakscapedString;
|
|
9
|
+
isPlain: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare class FooterContentProcessor {
|
|
12
|
+
process(context: BitmarkPegParserContext, contentDepth: ContentDepthType, bitType: BitTypeType, textFormat: TextFormatType, _tagsConfig: TagsConfig | undefined, _target: BitContentProcessorResult, footer: BreakscapedString, footerPlainText: BreakscapedString): Footer | undefined;
|
|
13
|
+
}
|
|
14
|
+
declare const instance: FooterContentProcessor;
|
|
15
|
+
export { instance as FooterContentProcessor };
|
|
16
|
+
//# sourceMappingURL=FooterContentProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/FooterContentProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAc,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAKhH,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,cAAM,sBAAsB;IACnB,OAAO,CACZ,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,WAAW,EAAE,UAAU,GAAG,SAAS,EACnC,OAAO,EAAE,yBAAyB,EAClC,MAAM,EAAE,iBAAiB,EACzB,eAAe,EAAE,iBAAiB,GACjC,MAAM,GAAG,SAAS;CAgDtB;AAED,QAAA,MAAM,QAAQ,wBAA+B,CAAC;AAC9C,OAAO,EAAE,QAAQ,IAAI,sBAAsB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GapChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GapChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAKnE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,wBAAwB,CAC/B,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,EACjC,SAAS,EAAE,QAAQ,EAAE,GACpB,IAAI,CAON;AAkCD,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageSourceChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageSourceChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAGxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,gCAAgC,CACvC,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAMN;AA+DD,OAAO,EAAE,gCAAgC,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemLeadTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"ItemLeadTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,2BAA2B,CAClC,QAAQ,EAAE,uBAAuB,EACjC,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,cAAc,EAC3B,WAAW,EAAE,UAAU,GAAG,SAAS,EACnC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CASN;AACD,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAMnE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,yBAAyB,CAChC,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,EACjC,SAAS,EAAE,QAAQ,EAAE,GACpB,IAAI,CAcN;AAsCD,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkConfigChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"MarkConfigChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,+BAA+B,CACtC,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAkCN;AAED,OAAO,EAAE,+BAA+B,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PersonChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAKnE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,2BAA2B,CAClC,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CA2BN;AAgCD,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PropertyContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAI7D,OAAO,EAAc,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAiB/E,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAIlC,iBAAS,wBAAwB,CAC/B,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAkKN;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingLevelChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RatingLevelChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAKnE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAIlC,iBAAS,gCAAgC,CACvC,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CA+BN;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReferenceTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,4BAA4B,CACnC,QAAQ,EAAE,uBAAuB,EACjC,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,cAAc,EAC3B,WAAW,EAAE,UAAU,GAAG,SAAS,EACnC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,EACjC,cAAc,EAAE,OAAO,GACtB,IAAI,CAUN;AACD,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Resource } from '../../../../model/ast/Nodes';
|
|
2
1
|
import { TagsConfig } from '../../../../model/config/TagsConfig';
|
|
3
2
|
import { BitTypeType } from '../../../../model/enum/BitType';
|
|
4
3
|
import { ResourceTagType } from '../../../../model/enum/ResourceTag';
|
|
5
4
|
import { TextFormatType } from '../../../../model/enum/TextFormat';
|
|
5
|
+
import { ResourceJson } from '../../../../model/json/ResourceJson';
|
|
6
6
|
import { BitContent, ContentDepthType, BitContentProcessorResult, BitmarkPegParserContext } from '../BitmarkPegParserTypes';
|
|
7
7
|
/**
|
|
8
8
|
* Get the valid resource from all the resources on the bit, and add the invalid ones to
|
|
@@ -11,7 +11,7 @@ import { BitContent, ContentDepthType, BitContentProcessorResult, BitmarkPegPars
|
|
|
11
11
|
* @param resourceTypeAttachment the resource type specified in the bit header
|
|
12
12
|
* @param resources the resources on the bit
|
|
13
13
|
*/
|
|
14
|
-
declare function buildResources(context: BitmarkPegParserContext, bitType: BitTypeType, resourceTypeAttachment: string | undefined, resources:
|
|
14
|
+
declare function buildResources(context: BitmarkPegParserContext, bitType: BitTypeType, resourceTypeAttachment: string | undefined, resources: ResourceJson[] | undefined): ResourceJson[] | undefined;
|
|
15
15
|
declare function resourceContentProcessor(context: BitmarkPegParserContext, _contentDepth: ContentDepthType, bitType: BitTypeType, textFormat: TextFormatType, tagsConfig: TagsConfig | undefined, content: BitContent, target: BitContentProcessorResult): void;
|
|
16
16
|
declare function propertyStyleResourceContentProcessor(context: BitmarkPegParserContext, _contentDepth: ContentDepthType, bitType: BitTypeType, textFormat: TextFormatType, tagsConfig: TagsConfig | undefined, content: BitContent, target: BitContentProcessorResult, type: ResourceTagType): void;
|
|
17
17
|
export { buildResources, resourceContentProcessor, propertyStyleResourceContentProcessor };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResourceContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,EAAe,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAA4B,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAE7F,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAKlC;;;;;;GAMG;AACH,iBAAS,cAAc,CACrB,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,WAAW,EACpB,sBAAsB,EAAE,MAAM,GAAG,SAAS,EAC1C,SAAS,EAAE,YAAY,EAAE,GAAG,SAAS,GACpC,YAAY,EAAE,GAAG,SAAS,CAqD5B;AAED,iBAAS,wBAAwB,CAC/B,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAsCN;AAED,iBAAS,qCAAqC,CAC5C,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,EACjC,IAAI,EAAE,eAAe,GACpB,IAAI,CAmCN;AAED,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,qCAAqC,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServingsChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServingsChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,6BAA6B,CACpC,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAwBN;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
|
package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TechnicalTermChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"TechnicalTermChainContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EAEV,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAElC,iBAAS,kCAAkC,CACzC,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,gBAAgB,EAC/B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAoBN;AAED,OAAO,EAAE,kCAAkC,EAAE,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextAst } from '../../../../model/ast/TextNodes';
|
|
2
2
|
import { TagsConfig } from '../../../../model/config/TagsConfig';
|
|
3
3
|
import { BitTypeType } from '../../../../model/enum/BitType';
|
|
4
4
|
import { TextFormatType } from '../../../../model/enum/TextFormat';
|
|
5
5
|
import { BitContent, ContentDepthType, BitContentProcessorResult, BitSpecificTitles, BitmarkPegParserContext } from '../BitmarkPegParserTypes';
|
|
6
6
|
declare function titleTagContentProcessor(_context: BitmarkPegParserContext, _contentDepth: ContentDepthType, _bitType: BitTypeType, _textFormat: TextFormatType, _tagsConfig: TagsConfig | undefined, content: BitContent, target: BitContentProcessorResult): void;
|
|
7
|
-
declare function buildTitles(_context: BitmarkPegParserContext, bitType: BitTypeType, title:
|
|
7
|
+
declare function buildTitles(_context: BitmarkPegParserContext, bitType: BitTypeType, title: {
|
|
8
|
+
titleAst: TextAst;
|
|
9
|
+
titleString: string;
|
|
10
|
+
}[] | undefined): BitSpecificTitles;
|
|
8
11
|
export { titleTagContentProcessor, buildTitles };
|
|
9
12
|
//# sourceMappingURL=TitleTagContentProcessor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TitleTagContentProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAW,WAAW,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EACjB,uBAAuB,EAExB,MAAM,0BAA0B,CAAC;AAIlC,iBAAS,wBAAwB,CAC/B,QAAQ,EAAE,uBAAuB,EACjC,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,cAAc,EAC3B,WAAW,EAAE,UAAU,GAAG,SAAS,EACnC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAiBN;AAED,iBAAS,WAAW,CAClB,QAAQ,EAAE,uBAAuB,EACjC,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,SAAS,GAC9D,iBAAiB,CAoBnB;AAED,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { BodyPart } from '../../../../model/ast/Nodes';
|
|
1
2
|
import { TagsConfig } from '../../../../model/config/TagsConfig';
|
|
2
3
|
import { BitTypeType } from '../../../../model/enum/BitType';
|
|
3
4
|
import { TextFormatType } from '../../../../model/enum/TextFormat';
|
|
4
|
-
import { BodyPart } from '../../../../model/ast/Nodes';
|
|
5
5
|
import { BitContent, ContentDepthType, BitContentProcessorResult, BitmarkPegParserContext } from '../BitmarkPegParserTypes';
|
|
6
6
|
declare function trueFalseChainContentProcessor(context: BitmarkPegParserContext, contentDepth: ContentDepthType, bitType: BitTypeType, textFormat: TextFormatType, tagsConfig: TagsConfig | undefined, content: BitContent, target: BitContentProcessorResult, bodyParts: BodyPart[]): void;
|
|
7
7
|
export { trueFalseChainContentProcessor };
|