@gmb/bitmark-parser-generator 3.7.0 → 3.10.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 +1 -0
- package/dist/cjs/BitmarkParserGenerator.js.map +1 -1
- package/dist/cjs/ast/BaseBuilder.js +7 -6
- package/dist/cjs/ast/BaseBuilder.js.map +1 -1
- package/dist/cjs/ast/Builder.js +165 -160
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/ast/ResourceBuilder.js +68 -67
- package/dist/cjs/ast/ResourceBuilder.js.map +1 -1
- package/dist/cjs/breakscaping/Breakscape.js +1 -1
- package/dist/cjs/config/raw/bits.js +41 -0
- package/dist/cjs/config/raw/bits.js.map +1 -1
- package/dist/cjs/config/raw/groups.js +35 -0
- package/dist/cjs/config/raw/groups.js.map +1 -1
- package/dist/cjs/config/raw/properties.js +48 -0
- 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/text/text-peggy-parser.js +960 -595
- package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +7 -3
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/generator/text/TextGenerator.js +84 -38
- package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
- package/dist/cjs/model/ast/NodeType.js +19 -0
- package/dist/cjs/model/ast/NodeType.js.map +1 -1
- package/dist/cjs/model/config/enum/PropertyConfigKey.js +10 -0
- package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/cjs/model/enum/BitType.js +7 -0
- package/dist/cjs/model/enum/BitType.js.map +1 -1
- package/dist/cjs/model/enum/TextMarkType.js +2 -0
- package/dist/cjs/model/enum/TextMarkType.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +28 -20
- 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 +11 -10
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +5 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +5 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +3 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +5 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +20 -12
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +4 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +7 -7
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js +5 -5
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +6 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +6 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +2 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +2 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +19 -13
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +4 -3
- package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +11 -10
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +2 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +2 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +6 -2
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +19 -16
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/cjs/parser/text/TextParser.js +7 -6
- package/dist/cjs/parser/text/TextParser.js.map +1 -1
- package/dist/cjs/utils/BitUtils.js +2 -2
- package/dist/cjs/utils/BitUtils.js.map +1 -1
- package/dist/esm/BitmarkParserGenerator.js +1 -0
- package/dist/esm/BitmarkParserGenerator.js.map +1 -1
- package/dist/esm/ast/BaseBuilder.js +7 -6
- package/dist/esm/ast/BaseBuilder.js.map +1 -1
- package/dist/esm/ast/Builder.js +165 -160
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/ast/ResourceBuilder.js +68 -67
- package/dist/esm/ast/ResourceBuilder.js.map +1 -1
- package/dist/esm/breakscaping/Breakscape.js +1 -1
- package/dist/esm/config/raw/bits.js +41 -0
- package/dist/esm/config/raw/bits.js.map +1 -1
- package/dist/esm/config/raw/groups.js +35 -0
- package/dist/esm/config/raw/groups.js.map +1 -1
- package/dist/esm/config/raw/properties.js +48 -0
- 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/text/text-peggy-parser.js +960 -595
- package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +7 -3
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/generator/text/TextGenerator.js +84 -38
- package/dist/esm/generator/text/TextGenerator.js.map +1 -1
- package/dist/esm/model/ast/NodeType.js +19 -0
- package/dist/esm/model/ast/NodeType.js.map +1 -1
- package/dist/esm/model/config/enum/PropertyConfigKey.js +10 -0
- package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/esm/model/enum/BitType.js +7 -0
- package/dist/esm/model/enum/BitType.js.map +1 -1
- package/dist/esm/model/enum/TextMarkType.js +2 -0
- package/dist/esm/model/enum/TextMarkType.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +28 -20
- 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 +11 -10
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +5 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +5 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +3 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +5 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +20 -12
- package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js +4 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +7 -7
- package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js +5 -5
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js +6 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js +6 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +2 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +2 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +19 -13
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js +4 -3
- package/dist/esm/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +11 -10
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js +2 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +2 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +6 -2
- package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +19 -16
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
- package/dist/esm/parser/text/TextParser.js +7 -6
- package/dist/esm/parser/text/TextParser.js.map +1 -1
- package/dist/esm/utils/BitUtils.js +2 -2
- package/dist/esm/utils/BitUtils.js.map +1 -1
- package/dist/types/BitmarkParserGenerator.d.ts.map +1 -1
- package/dist/types/ast/BaseBuilder.d.ts +8 -1
- package/dist/types/ast/BaseBuilder.d.ts.map +1 -1
- package/dist/types/ast/Builder.d.ts +60 -50
- package/dist/types/ast/Builder.d.ts.map +1 -1
- package/dist/types/ast/ResourceBuilder.d.ts +21 -22
- package/dist/types/ast/ResourceBuilder.d.ts.map +1 -1
- package/dist/types/config/raw/bits.d.ts.map +1 -1
- package/dist/types/config/raw/groups.d.ts.map +1 -1
- package/dist/types/config/raw/properties.d.ts.map +1 -1
- package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +3 -1
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/generator/text/TextGenerator.d.ts +4 -1
- package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
- package/dist/types/model/ast/NodeType.d.ts +38 -0
- package/dist/types/model/ast/NodeType.d.ts.map +1 -1
- package/dist/types/model/ast/Nodes.d.ts +10 -0
- package/dist/types/model/ast/Nodes.d.ts.map +1 -1
- package/dist/types/model/ast/TextNodes.d.ts +26 -9
- package/dist/types/model/ast/TextNodes.d.ts.map +1 -1
- package/dist/types/model/config/enum/ConfigKey.d.ts +20 -0
- package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts +30 -0
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
- package/dist/types/model/enum/BitType.d.ts +14 -0
- package/dist/types/model/enum/BitType.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyTag.d.ts +20 -0
- package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
- package/dist/types/model/enum/TextMarkType.d.ts +4 -0
- package/dist/types/model/enum/TextMarkType.d.ts.map +1 -1
- package/dist/types/model/json/BitJson.d.ts +10 -0
- package/dist/types/model/json/BitJson.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts +0 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +6 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts +3 -4
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/BodyContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/FooterContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts +1 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts +1 -2
- package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +3 -5
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts +1 -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 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/text/TextParser.d.ts +3 -2
- package/dist/types/parser/text/TextParser.d.ts.map +1 -1
- package/dist/types/utils/BitUtils.d.ts +2 -1
- package/dist/types/utils/BitUtils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ExampleTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.ts"],"names":[],"mappings":";;AA4LS,gEAA0B;AA5LnC,oEAAiE;AACjE,sDAAmD;AAEnD,4DAAyD;AACzD,iEAA8D;AAC9D,yDAAsD;AAWtD,iCAAiC;AACjC,MAAM,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;AAEpC,SAAS,0BAA0B,CACjC,OAAgC,EAChC,aAA+B,EAC/B,OAAmB,EACnB,MAAiC;IAEjC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,KAAK,EAAE,GAAG,OAAoB,CAAC;IACvC,MAAM,OAAO,GAAG,KAAoC,CAAC;IAErD,iDAAiD;IACjD,IACE,eAAM,CAAC,WAAW,CAAC,OAAO,EAAE;QAC1B,iBAAO,CAAC,KAAK;QACb,iBAAO,CAAC,0BAA0B;QAClC,iBAAO,CAAC,kBAAkB;QAC1B,iBAAO,CAAC,aAAa;QACrB,iBAAO,CAAC,SAAS;QACjB,iBAAO,CAAC,UAAU;QAClB,iBAAO,CAAC,gBAAgB;QACxB,iBAAO,CAAC,iBAAiB;QACzB,iBAAO,CAAC,cAAc;QACtB,iBAAO,CAAC,eAAe;KACxB,CAAC,EACF,CAAC;QACD,EAAE;QACF,mCAAmC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACvE,EAAE;IACJ,CAAC;SAAM,IAAI,eAAM,CAAC,WAAW,CAAC,OAAO,EAAE,iBAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACrD,gCAAgC;QAChC,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC5D,EAAE;IACJ,CAAC;SAAM,CAAC;QACN,4BAA4B;QAC5B,2BA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EAAE,GAAG,OAAO,CAAC;IAC/B,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QAC3C,MAAM,CAAC,kBAAkB,GAAG,IAAI,CAAC;QACjC,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;IAC7B,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACrG,CAAC;AACH,CAAC"}
|
|
@@ -9,7 +9,8 @@ const BitmarkPegParserValidator_1 = require("../BitmarkPegParserValidator");
|
|
|
9
9
|
const ContentProcessorUtils_1 = require("./ContentProcessorUtils");
|
|
10
10
|
const textParser = new TextParser_1.TextParser();
|
|
11
11
|
class FooterContentProcessor {
|
|
12
|
-
process(context, contentDepth,
|
|
12
|
+
process(context, contentDepth, _tagsConfig, _target, footer, footerPlainText) {
|
|
13
|
+
const { textFormat } = context;
|
|
13
14
|
let finalFooterText;
|
|
14
15
|
footer = footer.trimStart();
|
|
15
16
|
footerPlainText = footerPlainText.trimEnd();
|
|
@@ -26,12 +27,13 @@ class FooterContentProcessor {
|
|
|
26
27
|
if (footer || footerPlainText) {
|
|
27
28
|
const isBitmarkText = textFormat === TextFormat_1.TextFormat.bitmarkMinusMinus || textFormat === TextFormat_1.TextFormat.bitmarkPlusPlus;
|
|
28
29
|
if (footer) {
|
|
29
|
-
footer = BitmarkPegParserValidator_1.BitmarkPegParserValidator.checkFooter(context, contentDepth,
|
|
30
|
+
footer = BitmarkPegParserValidator_1.BitmarkPegParserValidator.checkFooter(context, contentDepth, footer);
|
|
30
31
|
}
|
|
31
32
|
const parsedFooterText = isBitmarkText
|
|
32
33
|
? textParser.toAst(footer, {
|
|
33
34
|
//
|
|
34
35
|
textFormat,
|
|
36
|
+
isProperty: false,
|
|
35
37
|
})
|
|
36
38
|
: Breakscape_1.Breakscape.unbreakscape(footer, {
|
|
37
39
|
textFormat: TextFormat_1.TextFormat.text,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FooterContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/FooterContentProcessor.ts"],"names":[],"mappings":";;;AAAA,oEAAiE;
|
|
1
|
+
{"version":3,"file":"FooterContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/FooterContentProcessor.ts"],"names":[],"mappings":";;;AAAA,oEAAiE;AAKjE,kEAA+D;AAC/D,+DAA4D;AAC5D,yDAAsD;AAEtD,4EAAyE;AAEzE,mEAAgE;AAOhE,MAAM,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;AAEpC,MAAM,sBAAsB;IACnB,OAAO,CACZ,OAAgC,EAChC,YAA8B,EAC9B,WAAmC,EACnC,OAAkC,EAClC,MAAyB,EACzB,eAAkC;QAElC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAC/B,IAAI,eAAqC,CAAC;QAE1C,MAAM,GAAG,MAAM,CAAC,SAAS,EAAuB,CAAC;QACjD,eAAe,GAAG,eAAe,CAAC,OAAO,EAAuB,CAAC;QAEjE,2BAA2B;QAC3B,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACnC,MAAM,mBAAmB,GAAG,CAAC,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QAErD,6EAA6E;QAC7E,4CAA4C;QAC5C,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,UAAU,IAAI,mBAAmB,EAAE,CAAC;YACtC,QAAQ;gBACN,yBAAW,CAAC,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,yBAAW,CAAC,uBAAuB,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;QACjH,CAAC;QAED,IAAI,MAAM,IAAI,eAAe,EAAE,CAAC;YAC9B,MAAM,aAAa,GAAG,UAAU,KAAK,uBAAU,CAAC,iBAAiB,IAAI,UAAU,KAAK,uBAAU,CAAC,eAAe,CAAC;YAE/G,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,GAAG,qDAAyB,CAAC,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;YAChF,CAAC;YAED,MAAM,gBAAgB,GAAa,aAAa;gBAC9C,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE;oBACvB,EAAE;oBACF,UAAU;oBACV,UAAU,EAAE,KAAK;iBAClB,CAAC;gBACJ,CAAC,CAAC,uBAAU,CAAC,YAAY,CAAC,MAAM,EAAE;oBAC9B,UAAU,EAAE,uBAAU,CAAC,IAAI;iBAC5B,CAAC,CAAC;YAEP,MAAM,qBAAqB,GAAG,uBAAU,CAAC,YAAY,CAAC,eAAe,EAAE;gBACrE,UAAU,EAAE,uBAAU,CAAC,IAAI;aAC5B,CAAC,CAAC;YAEH,eAAe,GAAG,6CAAqB,CAAC,gCAAgC,CACtE,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,CACtB,CAAC;QACJ,CAAC;QAED,kCAAkC;QAClC,OAAO,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,sBAAsB,EAAE,CAAC;AACzB,0CAAsB"}
|
|
@@ -6,23 +6,23 @@ const BodyBitType_1 = require("../../../../model/enum/BodyBitType");
|
|
|
6
6
|
const Tag_1 = require("../../../../model/enum/Tag");
|
|
7
7
|
const ClozeTagContentProcessor_1 = require("./ClozeTagContentProcessor");
|
|
8
8
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
9
|
-
function gapChainContentProcessor(context, contentDepth,
|
|
9
|
+
function gapChainContentProcessor(context, contentDepth, tagsConfig, content, target, bodyParts) {
|
|
10
10
|
if (contentDepth === BitmarkPegParserTypes_1.BitContentLevel.Chain) {
|
|
11
|
-
(0, ClozeTagContentProcessor_1.clozeTagContentProcessor)(context, contentDepth,
|
|
11
|
+
(0, ClozeTagContentProcessor_1.clozeTagContentProcessor)(context, contentDepth, tagsConfig, content, target);
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
14
|
-
const gap = buildGap(context, contentDepth,
|
|
14
|
+
const gap = buildGap(context, contentDepth, tagsConfig, content);
|
|
15
15
|
if (gap)
|
|
16
16
|
bodyParts.push(gap);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
function buildGap(context, _contentDepth,
|
|
19
|
+
function buildGap(context, _contentDepth, tagsConfig, content) {
|
|
20
20
|
var _a;
|
|
21
21
|
if (context.DEBUG_CHAIN_CONTENT)
|
|
22
22
|
context.debugPrint('gap content', content);
|
|
23
23
|
const gapConfig = Config_1.Config.getTagConfigForTag(tagsConfig, Tag_1.Tag.fromValue(content.type));
|
|
24
24
|
const chainContent = [content, ...((_a = content.chain) !== null && _a !== void 0 ? _a : [])];
|
|
25
|
-
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
25
|
+
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, gapConfig === null || gapConfig === void 0 ? void 0 : gapConfig.chain, chainContent);
|
|
26
26
|
if (context.DEBUG_CHAIN_TAGS)
|
|
27
27
|
context.debugPrint('gap TAGS', chainTags);
|
|
28
28
|
const gap = Object.assign({ type: BodyBitType_1.BodyBitType.gap }, chainTags);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GapChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"GapChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/GapChainContentProcessor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P,IAAI,EAAE,yBAAW,CAAC,GAAG,IAClB,SAAS,CACb,CAAC;IAEF,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -17,27 +17,27 @@ const Config_1 = require("../../../../config/Config");
|
|
|
17
17
|
const PropertyTag_1 = require("../../../../model/enum/PropertyTag");
|
|
18
18
|
const StringUtils_1 = require("../../../../utils/StringUtils");
|
|
19
19
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
20
|
-
function imageSourceChainContentProcessor(context, contentDepth,
|
|
20
|
+
function imageSourceChainContentProcessor(context, contentDepth, tagsConfig, content, target) {
|
|
21
21
|
if (contentDepth === BitmarkPegParserTypes_1.BitContentLevel.Chain) {
|
|
22
|
-
imageSourceTagContentProcessor(context, contentDepth,
|
|
22
|
+
imageSourceTagContentProcessor(context, contentDepth, tagsConfig, content, target);
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
|
-
buildImageSource(context, contentDepth,
|
|
25
|
+
buildImageSource(context, contentDepth, tagsConfig, content, target);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function imageSourceTagContentProcessor(_context, _contentDepth,
|
|
28
|
+
function imageSourceTagContentProcessor(_context, _contentDepth, _tagsConfig, content, target) {
|
|
29
29
|
const { value } = content;
|
|
30
30
|
// Extract the url from the content tag
|
|
31
31
|
const url = Breakscape_1.Breakscape.unbreakscape(StringUtils_1.StringUtils.trimmedString(value));
|
|
32
32
|
target.imageSourceUrl = url;
|
|
33
33
|
}
|
|
34
|
-
function buildImageSource(context, _contentDepth,
|
|
34
|
+
function buildImageSource(context, _contentDepth, tagsConfig, content, target) {
|
|
35
35
|
if (context.DEBUG_CHAIN_CONTENT)
|
|
36
36
|
context.debugPrint('imageSource content', content);
|
|
37
37
|
const { key: tag } = content;
|
|
38
38
|
const imageSourceConfig = Config_1.Config.getTagConfigForTag(tagsConfig, PropertyTag_1.PropertyTag.fromValue(tag));
|
|
39
|
-
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
40
|
-
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
39
|
+
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, tagsConfig, [content]);
|
|
40
|
+
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, imageSourceConfig === null || imageSourceConfig === void 0 ? void 0 : imageSourceConfig.chain, content.chain);
|
|
41
41
|
if (context.DEBUG_CHAIN_TAGS)
|
|
42
42
|
context.debugPrint('imageSource TAGS', chainTags);
|
|
43
43
|
const { imageSourceUrl: url } = tags;
|
package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageSourceChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ImageSourceChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAmFS,4EAAgC;AAnFzC,oEAAiE;AACjE,sDAAmD;AAGnD,oEAAiE;AAEjE,+DAA4D;AAE5D,oEAQkC;AAElC,SAAS,gCAAgC,CACvC,OAAgC,EAChC,YAA8B,EAC9B,UAAkC,EAClC,OAAmB,EACnB,MAAiC;IAEjC,IAAI,YAAY,KAAK,uCAAe,CAAC,KAAK,EAAE,CAAC;QAC3C,8BAA8B,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrF,CAAC;SAAM,CAAC;QACN,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC;AACH,CAAC;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AAC;QACT,OAAO,CAAC,UAAU,CAAC,yCAAyC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IACD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,CAAC,UAAU,CAAC,gDAAgD,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED,MAAM,WAAW,mBACf,GAAG,EAAE,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,EAAE,EACd,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,IACrB,IAAI,CACR,CAAC;IAEF,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;AACnC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.commentTagContentProcessor = commentTagContentProcessor;
|
|
4
4
|
const StringUtils_1 = require("../../../../utils/StringUtils");
|
|
5
|
-
function commentTagContentProcessor(_context, _contentDepth,
|
|
5
|
+
function commentTagContentProcessor(_context, _contentDepth, content, target) {
|
|
6
6
|
if (!target.internalComments)
|
|
7
7
|
return;
|
|
8
8
|
const { value } = content;
|
package/dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalCommentTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"InternalCommentTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.ts"],"names":[],"mappings":";;AA4BS,gEAA0B;AA3BnC,+DAA4D;AAU5D,SAAS,0BAA0B,CACjC,QAAiC,EACjC,aAA+B,EAC/B,OAAmB,EACnB,MAAiC;IAEjC,IAAI,CAAC,MAAM,CAAC,gBAAgB;QAAE,OAAO;IAErC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAoB,CAAC;IAEvC,MAAM,eAAe,GAAkC,yBAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;QAChF,CAAC,CAAE,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAuB;QACzD,CAAC,CAAC,SAAS,CAAC;IACd,IAAI,CAAC,eAAe;QAAE,OAAO;IAE7B,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -5,22 +5,22 @@ const Config_1 = require("../../../../config/Config");
|
|
|
5
5
|
const Tag_1 = require("../../../../model/enum/Tag");
|
|
6
6
|
const ItemLeadTagContentProcessor_1 = require("./ItemLeadTagContentProcessor");
|
|
7
7
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
8
|
-
function itemLeadChainContentProcessor(context, contentDepth,
|
|
8
|
+
function itemLeadChainContentProcessor(context, contentDepth, tagsConfig, content, target) {
|
|
9
9
|
if (contentDepth === BitmarkPegParserTypes_1.BitContentLevel.Chain) {
|
|
10
|
-
(0, ItemLeadTagContentProcessor_1.itemLeadTagContentProcessor)(context, contentDepth,
|
|
10
|
+
(0, ItemLeadTagContentProcessor_1.itemLeadTagContentProcessor)(context, contentDepth, tagsConfig, content, target);
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
13
|
-
buildItemLead(context, contentDepth,
|
|
13
|
+
buildItemLead(context, contentDepth, tagsConfig, content, target);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
function buildItemLead(context, _contentDepth,
|
|
16
|
+
function buildItemLead(context, _contentDepth, tagsConfig, content, target) {
|
|
17
17
|
var _a;
|
|
18
18
|
if (context.DEBUG_CHAIN_CONTENT)
|
|
19
19
|
context.debugPrint('item lead content', content);
|
|
20
20
|
// Process the chain (lead)
|
|
21
21
|
const itemLeadConfig = Config_1.Config.getTagConfigForTag(tagsConfig, Tag_1.Tag.fromValue(content.type));
|
|
22
22
|
const chainContent = [content, ...((_a = content.chain) !== null && _a !== void 0 ? _a : [])];
|
|
23
|
-
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
23
|
+
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, itemLeadConfig === null || itemLeadConfig === void 0 ? void 0 : itemLeadConfig.chain, chainContent);
|
|
24
24
|
if (context.DEBUG_CHAIN_TAGS)
|
|
25
25
|
context.debugPrint('item lead TAGS', chainTags);
|
|
26
26
|
// Set the lead item from the chain
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemLeadChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ItemLeadChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.ts"],"names":[],"mappings":";;AAiDS,sEAA6B;AAjDtC,sDAAmD;AAEnD,oDAAiD;AAEjD,+EAA4E;AAE5E,oEAMkC;AAElC,SAAS,6BAA6B,CACpC,OAAgC,EAChC,YAA8B,EAC9B,UAAkC,EAClC,OAAmB,EACnB,MAAiC;IAEjC,IAAI,YAAY,KAAK,uCAAe,CAAC,KAAK,EAAE,CAAC;QAC3C,IAAA,yDAA2B,EAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClF,CAAC;SAAM,CAAC;QACN,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpE,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CACpB,OAAgC,EAChC,aAA+B,EAC/B,UAAkC,EAClC,OAAmB,EACnB,MAAiC;;IAEjC,IAAI,OAAO,CAAC,mBAAmB;QAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAElF,2BAA2B;IAC3B,MAAM,cAAc,GAAG,eAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,SAAG,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1F,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,MAAA,OAAO,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,CAAC;IAEzD,MAAM,SAAS,GAAG,OAAO,CAAC,mBAAmB,CAAC,uCAAe,CAAC,KAAK,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,KAAK,EAAE,YAAY,CAAC,CAAC;IAE1G,IAAI,OAAO,CAAC,gBAAgB;QAAE,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAE9E,mCAAmC;IACnC,MAAM,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;AACvC,CAAC"}
|
|
@@ -3,13 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.itemLeadTagContentProcessor = itemLeadTagContentProcessor;
|
|
4
4
|
const StringUtils_1 = require("../../../../utils/StringUtils");
|
|
5
5
|
const TextParser_1 = require("../../../text/TextParser");
|
|
6
|
-
function itemLeadTagContentProcessor(
|
|
6
|
+
function itemLeadTagContentProcessor(context, _contentDepth, _tagsConfig, content, target) {
|
|
7
|
+
const { textFormat } = context;
|
|
7
8
|
const { value } = content;
|
|
8
9
|
const textParser = new TextParser_1.TextParser();
|
|
9
10
|
const trimmedStringValue = StringUtils_1.StringUtils.trimmedString(value);
|
|
10
11
|
if (!target.itemLead)
|
|
11
12
|
target.itemLead = [];
|
|
12
|
-
const text = textParser.toAst(trimmedStringValue
|
|
13
|
+
const text = textParser.toAst(trimmedStringValue, {
|
|
14
|
+
textFormat,
|
|
15
|
+
isProperty: true,
|
|
16
|
+
});
|
|
13
17
|
target.itemLead.push(text);
|
|
14
18
|
}
|
|
15
19
|
//# sourceMappingURL=ItemLeadTagContentProcessor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemLeadTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.ts"],"names":[],"mappings":";;AAiCS,kEAA2B;
|
|
1
|
+
{"version":3,"file":"ItemLeadTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.ts"],"names":[],"mappings":";;AAiCS,kEAA2B;AA/BpC,+DAA4D;AAC5D,yDAAsD;AAUtD,SAAS,2BAA2B,CAClC,OAAgC,EAChC,aAA+B,EAC/B,WAAmC,EACnC,OAAmB,EACnB,MAAiC;IAEjC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAC/B,MAAM,EAAE,KAAK,EAAE,GAAG,OAAoB,CAAC;IACvC,MAAM,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;IAEpC,MAAM,kBAAkB,GAAG,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAsB,CAAC;IAEjF,IAAI,CAAC,MAAM,CAAC,QAAQ;QAAE,MAAM,CAAC,QAAQ,GAAG,EAAE,CAAC;IAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,kBAAkB,EAAE;QAChD,UAAU;QACV,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -18,23 +18,23 @@ const Tag_1 = require("../../../../model/enum/Tag");
|
|
|
18
18
|
const ArrayUtils_1 = require("../../../../utils/ArrayUtils");
|
|
19
19
|
const MarkTagContentProcessor_1 = require("./MarkTagContentProcessor");
|
|
20
20
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
21
|
-
function markChainContentProcessor(context, contentDepth,
|
|
21
|
+
function markChainContentProcessor(context, contentDepth, tagsConfig, content, target, bodyParts) {
|
|
22
22
|
if (contentDepth === BitmarkPegParserTypes_1.BitContentLevel.Chain) {
|
|
23
|
-
(0, MarkTagContentProcessor_1.markTagContentProcessor)(context, BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
23
|
+
(0, MarkTagContentProcessor_1.markTagContentProcessor)(context, BitmarkPegParserTypes_1.BitContentLevel.Chain, content, target);
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
const mark = buildMark(context, contentDepth,
|
|
26
|
+
const mark = buildMark(context, contentDepth, tagsConfig, content);
|
|
27
27
|
if (mark)
|
|
28
28
|
bodyParts.push(mark);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function buildMark(context, _contentDepth,
|
|
31
|
+
function buildMark(context, _contentDepth, tagsConfig, content) {
|
|
32
32
|
var _a;
|
|
33
33
|
if (context.DEBUG_CHAIN_CONTENT)
|
|
34
34
|
context.debugPrint('mark content', content);
|
|
35
35
|
const markConfig = Config_1.Config.getTagConfigForTag(tagsConfig, Tag_1.Tag.fromValue(content.type));
|
|
36
|
-
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
37
|
-
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
36
|
+
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, tagsConfig, [content]);
|
|
37
|
+
const chainTags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, markConfig === null || markConfig === void 0 ? void 0 : markConfig.chain, content.chain);
|
|
38
38
|
if (context.DEBUG_CHAIN_TAGS)
|
|
39
39
|
context.debugPrint('mark TAGS', chainTags);
|
|
40
40
|
const { solution } = tags;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MarkChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AA8DS,8DAAyB;AA9DlC,sDAAmD;AAGnD,oEAAiE;AACjE,oDAAiD;AAEjD,6DAA0D;AAE1D,uEAAoE;AAEpE,oEAMkC;AAElC,SAAS,yBAAyB,CAChC,OAAgC,EAChC,YAA8B,EAC9B,UAAkC,EAClC,OAAmB,EACnB,MAAiC,EACjC,SAAqB;IAErB,IAAI,YAAY,KAAK,uCAAe,CAAC,KAAK,EAAE,CAAC;QAC3C,IAAA,iDAAuB,EAAC,OAAO,EAAE,uCAAe,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,GAAkC,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAClG,IAAI,IAAI;YAAE,SAAS,CAAC,IAAI,CAAC,IAAgB,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC;AAED,SAAS,SAAS,CAChB,OAAgC,EAChC,aAA+B,EAC/B,UAAkC,EAClC,OAAmB;;IAEnB,IAAI,OAAO,CAAC,mBAAmB;QAAE,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAE7E,MAAM,UAAU,GAAG,eAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,SAAG,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAEtF,MAAM,IAAI,GAAG,OAAO,CAAC,mBAAmB,CAAC,uCAAe,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,OAAO,CAAC,mBAAmB,CAAC,uCAAe,CAAC,KAAK,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAEvG,IAAI,OAAO,CAAC,gBAAgB;QAAE,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAEzE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAc,SAAS,EAAlB,IAAI,UAAK,SAAS,EAAvC,QAA2B,CAAY,CAAC;IAE9C,MAAM,IAAI,mBACR,IAAI,EAAE,yBAAW,CAAC,IAAI,EACtB,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,EACxB,IAAI,EAAE,MAAA,uBAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,mCAAI,EAAE,IACtC,IAAI,CACR,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -17,7 +17,7 @@ const Config_1 = require("../../../../config/Config");
|
|
|
17
17
|
const PropertyTag_1 = require("../../../../model/enum/PropertyTag");
|
|
18
18
|
const StringUtils_1 = require("../../../../utils/StringUtils");
|
|
19
19
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
20
|
-
function markConfigChainContentProcessor(context, _contentDepth,
|
|
20
|
+
function markConfigChainContentProcessor(context, _contentDepth, tagsConfig, content, target) {
|
|
21
21
|
var _a;
|
|
22
22
|
const { key: tag } = content;
|
|
23
23
|
if (context.DEBUG_CHAIN_CONTENT)
|
|
@@ -27,7 +27,7 @@ function markConfigChainContentProcessor(context, _contentDepth, bitType, textFo
|
|
|
27
27
|
return;
|
|
28
28
|
const markTagConfig = Config_1.Config.getTagConfigForTag(tagsConfig, PropertyTag_1.PropertyTag.fromValue(tag));
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
|
-
const _b = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
30
|
+
const _b = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, markTagConfig === null || markTagConfig === void 0 ? void 0 : markTagConfig.chain, content.chain), { mark: _ignoreMark } = _b, tags = __rest(_b, ["mark"]);
|
|
31
31
|
if (context.DEBUG_CHAIN_TAGS)
|
|
32
32
|
context.debugPrint('mark TAGS', tags);
|
|
33
33
|
// Extract the name from the content tag
|
package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkConfigChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MarkConfigChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAyDS,0EAA+B;AAzDxC,oEAAiE;AACjE,sDAAmD;AAGnD,oEAAiE;AAEjE,+DAA4D;AAE5D,oEAOkC;AAElC,SAAS,+BAA+B,CACtC,OAAgC,EAChC,aAA+B,EAC/B,UAAkC,EAClC,OAAmB,EACnB,MAAiC;;IAEjC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,OAAuB,CAAC;IAE7C,IAAI,OAAO,CAAC,mBAAmB;QAAE,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAE7E,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAErC,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,MAAM,aAAa,GAAG,eAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,yBAAW,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;IAExF,6DAA6D;IAC7D,MAAM,KAAiC,OAAO,CAAC,mBAAmB,CAChE,uCAAe,CAAC,KAAK,EACrB,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,KAAK,EACpB,OAAO,CAAC,KAAK,CACd,EAJK,EAAE,IAAI,EAAE,WAAW,OAIxB,EAJ6B,IAAI,cAA5B,QAA8B,CAInC,CAAC;IAEF,IAAI,OAAO,CAAC,gBAAgB;QAAE,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IAEpE,wCAAwC;IACxC,MAAM,IAAI,GAAW,uBAAU,CAAC,YAAY,CAC1C,CAAC,MAAA,yBAAW,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,mCAAI,SAAS,CAAsB,CAC7E,CAAC;IAEF,MAAM,MAAM,mBACV,IAAI,EACJ,QAAQ,EAAE,WAAqB,IAC5B,IAAI,CACR,CAAC;IAEF,IAAI,MAAM;QAAE,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.markTagContentProcessor = markTagContentProcessor;
|
|
4
4
|
const StringUtils_1 = require("../../../../utils/StringUtils");
|
|
5
|
-
function markTagContentProcessor(_context, _contentDepth,
|
|
5
|
+
function markTagContentProcessor(_context, _contentDepth, content, target) {
|
|
6
6
|
const { value } = content;
|
|
7
7
|
if (StringUtils_1.StringUtils.isString(value)) {
|
|
8
8
|
target.solution = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"MarkTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.ts"],"names":[],"mappings":";;AAuBS,0DAAuB;AAtBhC,+DAA4D;AAU5D,SAAS,uBAAuB,CAC9B,QAAiC,EACjC,aAA+B,EAC/B,OAAmB,EACnB,MAAiC;IAEjC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAoB,CAAC;IAEvC,IAAI,yBAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAChC,MAAM,CAAC,QAAQ,GAAG,KAA0B,CAAC;IAC/C,CAAC;AACH,CAAC"}
|
|
@@ -5,11 +5,11 @@ const Breakscape_1 = require("../../../../breakscaping/Breakscape");
|
|
|
5
5
|
const ResourceTag_1 = require("../../../../model/enum/ResourceTag");
|
|
6
6
|
const StringUtils_1 = require("../../../../utils/StringUtils");
|
|
7
7
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
8
|
-
function personChainContentProcessor(context, _contentDepth,
|
|
8
|
+
function personChainContentProcessor(context, _contentDepth, tagsConfig, content, target) {
|
|
9
9
|
// const { value } = content as TypeValue;
|
|
10
10
|
if (context.DEBUG_CHAIN_CONTENT)
|
|
11
11
|
context.debugPrint('person content', content);
|
|
12
|
-
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
12
|
+
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, tagsConfig, content.chain);
|
|
13
13
|
if (context.DEBUG_CHAIN_TAGS)
|
|
14
14
|
context.debugPrint('person TAGS', tags);
|
|
15
15
|
const { propertyTitle, resources } = tags;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"PersonChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.ts"],"names":[],"mappings":";;AAiFS,kEAA2B;AAjFpC,oEAAiE;AAGjE,oEAAiE;AAGjE,+DAA4D;AAE5D,oEAMkC;AAElC,SAAS,2BAA2B,CAClC,OAAgC,EAChC,aAA+B,EAC/B,UAAkC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,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,8CAA8C;QAC9C,OAAO,CAAC,MAAM,CAAC,eAAe,GAAG,eAAe,CAAC;QAEjD,oDAAoD;QACpD,OAAO,CAAC,UAAU,CAAC,GAAG,eAAe,CAAC,MAAM,qDAAqD,CAAC,CAAC;IACrG,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -26,7 +26,7 @@ const ServingsChainContentProcessor_1 = require("./ServingsChainContentProcessor
|
|
|
26
26
|
const TechnicalTermChainContentProcessor_1 = require("./TechnicalTermChainContentProcessor");
|
|
27
27
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
28
28
|
const textParser = new TextParser_1.TextParser();
|
|
29
|
-
function propertyContentProcessor(context, contentDepth,
|
|
29
|
+
function propertyContentProcessor(context, contentDepth, tagsConfig, content, target) {
|
|
30
30
|
const { value } = content;
|
|
31
31
|
let { key: tag } = content;
|
|
32
32
|
const isChain = contentDepth === BitmarkPegParserTypes_1.BitContentLevel.Chain;
|
|
@@ -35,7 +35,7 @@ function propertyContentProcessor(context, contentDepth, bitType, textFormat, ta
|
|
|
35
35
|
const configKey = propertyConfig ? propertyConfig.configKey : undefined;
|
|
36
36
|
// Handle internal comments
|
|
37
37
|
if (tag === PropertyTag_1.PropertyTag.internalComment) {
|
|
38
|
-
(0, InternalCommentTagContentProcessor_1.commentTagContentProcessor)(context, contentDepth,
|
|
38
|
+
(0, InternalCommentTagContentProcessor_1.commentTagContentProcessor)(context, contentDepth, content, target);
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
// Check for chains
|
|
@@ -43,35 +43,35 @@ function propertyContentProcessor(context, contentDepth, bitType, textFormat, ta
|
|
|
43
43
|
// should also be checked here if the property may occur in another bit with a different meaning.
|
|
44
44
|
if (propertyConfig) {
|
|
45
45
|
if (configKey === PropertyConfigKey_1.PropertyConfigKey.example) {
|
|
46
|
-
(0, ExampleTagContentProcessor_1.exampleTagContentProcessor)(context, contentDepth,
|
|
46
|
+
(0, ExampleTagContentProcessor_1.exampleTagContentProcessor)(context, contentDepth, content, target);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.ratingLevelStart || configKey === PropertyConfigKey_1.PropertyConfigKey.ratingLevelEnd) {
|
|
50
|
-
(0, RatingLevelChainContentProcessor_1.ratingLevelChainContentProcessor)(context, contentDepth,
|
|
50
|
+
(0, RatingLevelChainContentProcessor_1.ratingLevelChainContentProcessor)(context, contentDepth, propertyConfig.chain, content, target);
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.technicalTerm) {
|
|
54
|
-
(0, TechnicalTermChainContentProcessor_1.technicalTermChainContentProcessor)(context, contentDepth,
|
|
54
|
+
(0, TechnicalTermChainContentProcessor_1.technicalTermChainContentProcessor)(context, contentDepth, propertyConfig.chain, content, target);
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.servings) {
|
|
58
|
-
(0, ServingsChainContentProcessor_1.servingsChainContentProcessor)(context, contentDepth,
|
|
58
|
+
(0, ServingsChainContentProcessor_1.servingsChainContentProcessor)(context, contentDepth, propertyConfig.chain, content, target);
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.person || configKey === PropertyConfigKey_1.PropertyConfigKey.partner) {
|
|
62
|
-
(0, PersonChainContentProcessor_1.personChainContentProcessor)(context, contentDepth,
|
|
62
|
+
(0, PersonChainContentProcessor_1.personChainContentProcessor)(context, contentDepth, propertyConfig.chain, content, target);
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.imageSource) {
|
|
66
|
-
(0, ImageSourceChainContentProcessor_1.imageSourceChainContentProcessor)(context, contentDepth,
|
|
66
|
+
(0, ImageSourceChainContentProcessor_1.imageSourceChainContentProcessor)(context, contentDepth, tagsConfig, content, target);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.book) {
|
|
70
|
-
(0, BookChainContentProcessor_1.bookChainContentProcessor)(context, contentDepth,
|
|
70
|
+
(0, BookChainContentProcessor_1.bookChainContentProcessor)(context, contentDepth, propertyConfig.chain, content, target);
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
73
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.markConfig && !isChain) {
|
|
74
|
-
(0, MarkConfigChainContentProcessor_1.markConfigChainContentProcessor)(context, contentDepth,
|
|
74
|
+
(0, MarkConfigChainContentProcessor_1.markConfigChainContentProcessor)(context, contentDepth, tagsConfig, content, target);
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
77
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.property_title && isChain) {
|
|
@@ -79,7 +79,7 @@ function propertyContentProcessor(context, contentDepth, bitType, textFormat, ta
|
|
|
79
79
|
tag = 'propertyTitle';
|
|
80
80
|
}
|
|
81
81
|
else if (configKey === PropertyConfigKey_1.PropertyConfigKey.imagePlaceholder) {
|
|
82
|
-
(0, ResourceContentProcessor_1.propertyStyleResourceContentProcessor)(context, contentDepth,
|
|
82
|
+
(0, ResourceContentProcessor_1.propertyStyleResourceContentProcessor)(context, contentDepth, tagsConfig, content, target, ResourceTag_1.ResourceTag.image);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -104,9 +104,15 @@ function propertyContentProcessor(context, contentDepth, bitType, textFormat, ta
|
|
|
104
104
|
case PropertyFormat_1.PropertyFormat.invertedBoolean:
|
|
105
105
|
return !BooleanUtils_1.BooleanUtils.toBoolean(Breakscape_1.Breakscape.unbreakscape(v), true);
|
|
106
106
|
case PropertyFormat_1.PropertyFormat.bitmarkMinusMinus:
|
|
107
|
-
return textParser.toAst(v, {
|
|
107
|
+
return textParser.toAst(v, {
|
|
108
|
+
textFormat: TextFormat_1.TextFormat.bitmarkMinusMinus,
|
|
109
|
+
isProperty: true,
|
|
110
|
+
});
|
|
108
111
|
case PropertyFormat_1.PropertyFormat.bitmarkPlusPlus:
|
|
109
|
-
return textParser.toAst(v, {
|
|
112
|
+
return textParser.toAst(v, {
|
|
113
|
+
textFormat: TextFormat_1.TextFormat.bitmarkPlusPlus,
|
|
114
|
+
isProperty: true,
|
|
115
|
+
});
|
|
110
116
|
}
|
|
111
117
|
}
|
|
112
118
|
return Breakscape_1.Breakscape.unbreakscape(v);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"PropertyContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.ts"],"names":[],"mappings":";;AA6LS,4DAAwB;AA7LjC,oEAAiE;AACjE,sDAAmD;AAEnD,kFAA+E;AAE/E,uEAAoE;AACpE,uFAAoF;AACpF,0EAAuE;AACvE,oEAAiE;AACjE,oEAAiE;AACjE,kEAA+D;AAC/D,iEAA8D;AAC9D,+DAA4D;AAC5D,+DAA4D;AAC5D,yDAAsD;AAEtD,2EAAwE;AACxE,6EAA0E;AAC1E,yFAAsF;AACtF,6FAAwH;AACxH,uFAAoF;AACpF,+EAA4E;AAC5E,yFAAsF;AACtF,yEAAmF;AACnF,mFAAgF;AAChF,6FAA0F;AAE1F,oEAOkC;AAElC,MAAM,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;AAEpC,SAAS,wBAAwB,CAC/B,OAAgC,EAChC,YAA8B,EAC9B,UAAkC,EAClC,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kB,EAAE,CAAC;QAC3C,WAAW,CACT,MAAM,EACN,qBAAqB,EACrB,KAAK,EACL,IAAI,qCAAiB,CACnB,qBAAS,CAAC,cAAc,EACxB,yBAAW,CAAC,kBAAkB,EAC9B,CAAC,EACD,CAAC,EACD,SAAS,EACT,SAAS,EACT,SAAS,EACT,IAAI,EACJ,+BAAc,CAAC,iBAAiB,EAChC,SAAS,EACT,SAAS,CACV,CACF,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -6,12 +6,13 @@ const NumberUtils_1 = require("../../../../utils/NumberUtils");
|
|
|
6
6
|
const TextParser_1 = require("../../../text/TextParser");
|
|
7
7
|
const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
|
|
8
8
|
const textParser = new TextParser_1.TextParser();
|
|
9
|
-
function ratingLevelChainContentProcessor(context, _contentDepth,
|
|
9
|
+
function ratingLevelChainContentProcessor(context, _contentDepth, tagsConfig, content, target) {
|
|
10
10
|
var _a;
|
|
11
|
+
const { textFormat } = context;
|
|
11
12
|
const { key, value } = content;
|
|
12
13
|
if (context.DEBUG_CHAIN_CONTENT)
|
|
13
14
|
context.debugPrint('ratingLevel content', content);
|
|
14
|
-
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain,
|
|
15
|
+
const tags = context.bitContentProcessor(BitmarkPegParserTypes_1.BitContentLevel.Chain, tagsConfig, content.chain);
|
|
15
16
|
if (context.DEBUG_CHAIN_TAGS)
|
|
16
17
|
context.debugPrint('ratingLevel TAGS', tags);
|
|
17
18
|
const { label } = tags;
|
|
@@ -19,7 +20,7 @@ function ratingLevelChainContentProcessor(context, _contentDepth, bitType, textF
|
|
|
19
20
|
const level = (_a = NumberUtils_1.NumberUtils.asNumber(value)) !== null && _a !== void 0 ? _a : 0;
|
|
20
21
|
const node = {
|
|
21
22
|
level,
|
|
22
|
-
label: label ? textParser.toAst(label) : undefined,
|
|
23
|
+
label: label ? textParser.toAst(label, { textFormat, isProperty: true }) : undefined,
|
|
23
24
|
};
|
|
24
25
|
switch (key) {
|
|
25
26
|
case PropertyTag_1.PropertyTag.ratingLevelStart:
|
package/dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingLevelChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"RatingLevelChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.ts"],"names":[],"mappings":";;AAyDS,4EAAgC;AAxDzC,oEAAiE;AAEjE,+DAA4D;AAC5D,yDAAsD;AAEtD,oEAOkC;AAElC,MAAM,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;AAEpC,SAAS,gCAAgC,CACvC,OAAgC,EAChC,aAA+B,EAC/B,UAAkC,EAClC,OAAmB,EACnB,MAAiC;;IAEjC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAC/B,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,OAAuB,CAAC;IAE/C,IAAI,OAAO,CAAC,mBAAmB;QAAE,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAEpF,MAAM,IAAI,GAAG,OAAO,CAAC,mBAAmB,CAAC,uCAAe,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE3F,IAAI,OAAO,CAAC,gBAAgB;QAAE,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAE3E,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAEvB,iDAAiD;IACjD,MAAM,KAAK,GAAG,MAAA,yBAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,mCAAI,CAAC,CAAC;IAE/C,MAAM,IAAI,GAAqC;QAC7C,KAAK;QACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;KACrF,CAAC;IAEF,QAAQ,GAAG,EAAE,CAAC;QACZ,KAAK,yBAAW,CAAC,gBAAgB;YAC/B,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAE/B,MAAM;QACR,KAAK,yBAAW,CAAC,cAAc;YAC7B,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;YAE7B,MAAM;QACR,QAAQ;QACR,aAAa;IACf,CAAC;AACH,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.referenceTagContentProcessor = referenceTagContentProcessor;
|
|
4
4
|
const Breakscape_1 = require("../../../../breakscaping/Breakscape");
|
|
5
5
|
const StringUtils_1 = require("../../../../utils/StringUtils");
|
|
6
|
-
function referenceTagContentProcessor(_context, _contentDepth,
|
|
6
|
+
function referenceTagContentProcessor(_context, _contentDepth, _tagsConfig, content, target, isReferenceEnd) {
|
|
7
7
|
const { value } = content;
|
|
8
8
|
const trimmedStringValue = StringUtils_1.StringUtils.trimmedString(value);
|
|
9
9
|
if (isReferenceEnd) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ReferenceTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.ts"],"names":[],"mappings":";;AA+BS,oEAA4B;AA/BrC,oEAAiE;AAGjE,+DAA4D;AAU5D,SAAS,4BAA4B,CACnC,QAAiC,EACjC,aAA+B,EAC/B,WAAmC,EACnC,OAAmB,EACnB,MAAiC,EACjC,cAAuB;IAEvB,MAAM,EAAE,KAAK,EAAE,GAAG,OAAoB,CAAC;IAEvC,MAAM,kBAAkB,GAAG,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAsB,CAAC;IAEjF,IAAI,cAAc,EAAE,CAAC;QACnB,MAAM,CAAC,YAAY,GAAG,uBAAU,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IACpE,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,SAAS,GAAG,uBAAU,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IACjE,CAAC;AACH,CAAC"}
|