@gmb/bitmark-parser-generator 1.4.10 → 1.4.11
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/generated/build-info.js +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +31 -23
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/parser/json/JsonParser.js +97 -61
- package/dist/cjs/parser/json/JsonParser.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +31 -23
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/parser/json/JsonParser.js +97 -61
- package/dist/esm/parser/json/JsonParser.js.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +15 -7
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/ast/TextNodes.d.ts +2 -1
- package/dist/types/model/ast/TextNodes.d.ts.map +1 -1
- package/dist/types/model/json/BitJson.d.ts +49 -49
- package/dist/types/model/json/BitJson.d.ts.map +1 -1
- package/dist/types/model/json/BodyBitJson.d.ts +17 -17
- package/dist/types/model/json/BodyBitJson.d.ts.map +1 -1
- package/dist/types/model/json/ResourceJson.d.ts +2 -2
- package/dist/types/model/json/ResourceJson.d.ts.map +1 -1
- package/dist/types/parser/json/JsonParser.d.ts +23 -3
- package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>@gmb/bitmark-parser-generator [17 Oct 2023 at
|
|
6
|
+
<title>@gmb/bitmark-parser-generator [17 Oct 2023 at 20:58]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
@@ -49,7 +49,7 @@ var t="[object Symbol]",n=/[&<>"'`]/g,i=RegExp(n.source),r="object"==typeof self
|
|
|
49
49
|
<body>
|
|
50
50
|
<div id="app"></div>
|
|
51
51
|
<script>
|
|
52
|
-
window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1099650,"parsedSize":351781,"gzipSize":68524,"groups":[{"label":"dist/cjs","path":"./dist/cjs","statSize":1092656,"groups":[{"id":390,"label":"BitmarkParserGenerator.js","path":"./dist/cjs/BitmarkParserGenerator.js","statSize":30280},{"label":"ast","path":"./dist/cjs/ast","statSize":84547,"groups":[{"id":8256,"label":"Ast.js","path":"./dist/cjs/ast/Ast.js","statSize":7599},{"id":1,"label":"BaseBuilder.js","path":"./dist/cjs/ast/BaseBuilder.js","statSize":5113},{"id":9046,"label":"Builder.js","path":"./dist/cjs/ast/Builder.js","statSize":38516},{"id":8703,"label":"ResourceBuilder.js","path":"./dist/cjs/ast/ResourceBuilder.js","statSize":25212},{"label":"rules","path":"./dist/cjs/ast/rules","statSize":5115,"groups":[{"id":2377,"label":"NodeValidator.js","path":"./dist/cjs/ast/rules/NodeValidator.js","statSize":5115}],"parsedSize":0,"gzipSize":0},{"label":"writer","path":"./dist/cjs/ast/writer","statSize":2992,"groups":[{"id":227,"label":"StringWriter.js","path":"./dist/cjs/ast/writer/StringWriter.js","statSize":2992}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"breakscaping","path":"./dist/cjs/breakscaping","statSize":10868,"groups":[{"id":8159,"label":"Breakscape.js","path":"./dist/cjs/breakscaping/Breakscape.js","statSize":10868}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/config","statSize":148004,"groups":[{"id":2606,"label":"Config.js","path":"./dist/cjs/config/Config.js","statSize":15275},{"id":8360,"label":"ConfigHydrator.js","path":"./dist/cjs/config/ConfigHydrator.js","statSize":7676},{"label":"raw","path":"./dist/cjs/config/raw","statSize":125053,"groups":[{"id":3141,"label":"bits.js","path":"./dist/cjs/config/raw/bits.js","statSize":55832},{"id":4182,"label":"cardSets.js","path":"./dist/cjs/config/raw/cardSets.js","statSize":11487},{"id":9036,"label":"groups.js","path":"./dist/cjs/config/raw/groups.js","statSize":35122},{"id":6260,"label":"properties.js","path":"./dist/cjs/config/raw/properties.js","statSize":16966},{"id":5100,"label":"resources.js","path":"./dist/cjs/config/raw/resources.js","statSize":4094},{"id":3622,"label":"tags.js","path":"./dist/cjs/config/raw/tags.js","statSize":1552}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generated","path":"./dist/cjs/generated","statSize":354914,"groups":[{"id":1022,"label":"build-info.js","path":"./dist/cjs/generated/build-info.js","statSize":438},{"label":"parser","path":"./dist/cjs/generated/parser","statSize":354476,"groups":[{"label":"bitmark","path":"./dist/cjs/generated/parser/bitmark","statSize":102585,"groups":[{"id":4369,"label":"bitmark-peggy-parser.js","path":"./dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js","statSize":102585}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generated/parser/text","statSize":251891,"groups":[{"id":4764,"label":"text-peggy-parser.js","path":"./dist/cjs/generated/parser/text/text-peggy-parser.js","statSize":251891}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generator","path":"./dist/cjs/generator","statSize":187998,"groups":[{"label":"bitmark","path":"./dist/cjs/generator/bitmark","statSize":51595,"groups":[{"id":297,"label":"BitmarkGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkGenerator.js","statSize":49530},{"id":8582,"label":"BitmarkStringGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkStringGenerator.js","statSize":2065}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/generator/json","statSize":110430,"groups":[{"id":3857,"label":"JsonGenerator.js","path":"./dist/cjs/generator/json/JsonGenerator.js","statSize":106480},{"id":4275,"label":"JsonObjectGenerator.js","path":"./dist/cjs/generator/json/JsonObjectGenerator.js","statSize":2002},{"id":5132,"label":"JsonStringGenerator.js","path":"./dist/cjs/generator/json/JsonStringGenerator.js","statSize":1948}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generator/text","statSize":25973,"groups":[{"id":6300,"label":"TextGenerator.js","path":"./dist/cjs/generator/text/TextGenerator.js","statSize":25973}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"id":2160,"label":"index.js","path":"./dist/cjs/index.js","statSize":5335,"parsedSize":351691,"gzipSize":68524},{"label":"info","path":"./dist/cjs/info","statSize":3031,"groups":[{"id":9677,"label":"InfoBuilder.js","path":"./dist/cjs/info/InfoBuilder.js","statSize":3031}],"parsedSize":0,"gzipSize":0},{"label":"init","path":"./dist/cjs/init","statSize":503,"groups":[{"id":7087,"label":"init.js","path":"./dist/cjs/init/init.js","statSize":503}],"parsedSize":0,"gzipSize":0},{"label":"model","path":"./dist/cjs/model","statSize":52364,"groups":[{"label":"ast","path":"./dist/cjs/model/ast","statSize":8426,"groups":[{"id":549,"label":"NodeType.js","path":"./dist/cjs/model/ast/NodeType.js","statSize":8426}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/model/config","statSize":21119,"groups":[{"id":7200,"label":"AbstractTagConfig.js","path":"./dist/cjs/model/config/AbstractTagConfig.js","statSize":617},{"id":429,"label":"BitConfig.js","path":"./dist/cjs/model/config/BitConfig.js","statSize":2519},{"id":2005,"label":"CardSetConfig.js","path":"./dist/cjs/model/config/CardSetConfig.js","statSize":781},{"id":3585,"label":"CardVariantConfig.js","path":"./dist/cjs/model/config/CardVariantConfig.js","statSize":1044},{"id":6620,"label":"MarkupTagConfig.js","path":"./dist/cjs/model/config/MarkupTagConfig.js","statSize":1553},{"id":6956,"label":"PropertyTagConfig.js","path":"./dist/cjs/model/config/PropertyTagConfig.js","statSize":2005},{"id":7585,"label":"ResourceTagConfig.js","path":"./dist/cjs/model/config/ResourceTagConfig.js","statSize":1594},{"id":3059,"label":"ResourcesConfig.js","path":"./dist/cjs/model/config/ResourcesConfig.js","statSize":1127},{"label":"enum","path":"./dist/cjs/model/config/enum","statSize":9879,"groups":[{"id":2574,"label":"CardSetConfigKey.js","path":"./dist/cjs/model/config/enum/CardSetConfigKey.js","statSize":650},{"id":8620,"label":"ConfigKey.js","path":"./dist/cjs/model/config/enum/ConfigKey.js","statSize":1267},{"id":177,"label":"GroupConfigKey.js","path":"./dist/cjs/model/config/enum/GroupConfigKey.js","statSize":2664},{"id":5428,"label":"GroupConfigType.js","path":"./dist/cjs/model/config/enum/GroupConfigType.js","statSize":451},{"id":3518,"label":"PropertyConfigKey.js","path":"./dist/cjs/model/config/enum/PropertyConfigKey.js","statSize":2808},{"id":6194,"label":"ResourceConfigKey.js","path":"./dist/cjs/model/config/enum/ResourceConfigKey.js","statSize":1247},{"id":1595,"label":"TagConfigKey.js","path":"./dist/cjs/model/config/enum/TagConfigKey.js","statSize":792}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"enum","path":"./dist/cjs/model/enum","statSize":22106,"groups":[{"id":742,"label":"BitTagType.js","path":"./dist/cjs/model/enum/BitTagType.js","statSize":403},{"id":208,"label":"BitType.js","path":"./dist/cjs/model/enum/BitType.js","statSize":11568},{"id":6958,"label":"BitmarkParserType.js","path":"./dist/cjs/model/enum/BitmarkParserType.js","statSize":335},{"id":8791,"label":"BitmarkVersion.js","path":"./dist/cjs/model/enum/BitmarkVersion.js","statSize":466},{"id":1060,"label":"BodyBitType.js","path":"./dist/cjs/model/enum/BodyBitType.js","statSize":426},{"id":8565,"label":"CardSetVersion.js","path":"./dist/cjs/model/enum/CardSetVersion.js","statSize":322},{"id":1035,"label":"Count.js","path":"./dist/cjs/model/enum/Count.js","statSize":281},{"id":7028,"label":"ExampleType.js","path":"./dist/cjs/model/enum/ExampleType.js","statSize":379},{"id":7204,"label":"PropertyAstKey.js","path":"./dist/cjs/model/enum/PropertyAstKey.js","statSize":553},{"id":5486,"label":"PropertyFormat.js","path":"./dist/cjs/model/enum/PropertyFormat.js","statSize":572},{"id":7953,"label":"PropertyTag.js","path":"./dist/cjs/model/enum/PropertyTag.js","statSize":2531},{"id":9431,"label":"ResourceJsonKey.js","path":"./dist/cjs/model/enum/ResourceJsonKey.js","statSize":959},{"id":9779,"label":"ResourceTag.js","path":"./dist/cjs/model/enum/ResourceTag.js","statSize":1097},{"id":8739,"label":"Tag.js","path":"./dist/cjs/model/enum/Tag.js","statSize":518},{"id":1353,"label":"TextFormat.js","path":"./dist/cjs/model/enum/TextFormat.js","statSize":368},{"id":1888,"label":"TextMarkType.js","path":"./dist/cjs/model/enum/TextMarkType.js","statSize":619},{"id":2610,"label":"TextNodeType.js","path":"./dist/cjs/model/enum/TextNodeType.js","statSize":709}],"parsedSize":0,"gzipSize":0},{"label":"info/enum","path":"./dist/cjs/model/info/enum","statSize":713,"groups":[{"id":8681,"label":"InfoFormat.js","path":"./dist/cjs/model/info/enum/InfoFormat.js","statSize":334},{"id":7347,"label":"InfoType.js","path":"./dist/cjs/model/info/enum/InfoType.js","statSize":379}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"parser","path":"./dist/cjs/parser","statSize":186654,"groups":[{"label":"bitmark","path":"./dist/cjs/parser/bitmark","statSize":150289,"groups":[{"id":9556,"label":"BitmarkParser.js","path":"./dist/cjs/parser/bitmark/BitmarkParser.js","statSize":795},{"label":"peg","path":"./dist/cjs/parser/bitmark/peg","statSize":149494,"groups":[{"id":8030,"label":"BitmarkPegParser.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParser.js","statSize":319},{"id":2892,"label":"BitmarkPegParserHelper.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js","statSize":19658},{"id":7448,"label":"BitmarkPegParserProcessor.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js","statSize":27504},{"id":6831,"label":"BitmarkPegParserTypes.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js","statSize":2297},{"id":8386,"label":"BitmarkPegParserValidator.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js","statSize":26279},{"id":7542,"label":"PeggyGrammarLocation.js","path":"./dist/cjs/parser/bitmark/peg/PeggyGrammarLocation.js","statSize":2879},{"label":"contentProcessors","path":"./dist/cjs/parser/bitmark/peg/contentProcessors","statSize":70558,"groups":[{"id":4185,"label":"BookChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js","statSize":1433},{"id":1182,"label":"CardContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js","statSize":25530},{"id":4471,"label":"ClozeTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js","statSize":689},{"id":6934,"label":"CommentTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/CommentTagContentProcessor.js","statSize":785},{"id":8081,"label":"DefaultTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js","statSize":1512},{"id":4787,"label":"ExampleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js","statSize":6090},{"id":9577,"label":"GapChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js","statSize":2321},{"id":8664,"label":"ImageSourceChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js","statSize":3124},{"id":2786,"label":"ItemLeadTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js","statSize":655},{"id":857,"label":"MarkChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js","statSize":2707},{"id":2595,"label":"MarkConfigChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js","statSize":2126},{"id":3298,"label":"MarkTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js","statSize":501},{"id":8326,"label":"PartnerChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js","statSize":2237},{"id":3287,"label":"PropertyContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js","statSize":5155},{"id":3130,"label":"ReferenceTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js","statSize":688},{"id":5516,"label":"ResourceContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js","statSize":4357},{"id":1838,"label":"TitleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js","statSize":1622},{"id":4177,"label":"TrueFalseChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js","statSize":8200},{"id":8660,"label":"TrueFalseTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js","statSize":826}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/parser/json","statSize":33542,"groups":[{"id":2434,"label":"JsonParser.js","path":"./dist/cjs/parser/json/JsonParser.js","statSize":33542}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/parser/text","statSize":2823,"groups":[{"id":406,"label":"TextParser.js","path":"./dist/cjs/parser/text/TextParser.js","statSize":2519},{"label":"peg","path":"./dist/cjs/parser/text/peg","statSize":304,"groups":[{"id":8436,"label":"TextPegParser.js","path":"./dist/cjs/parser/text/peg/TextPegParser.js","statSize":304}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"utils","path":"./dist/cjs/utils","statSize":28158,"groups":[{"id":7646,"label":"ArrayUtils.js","path":"./dist/cjs/utils/ArrayUtils.js","statSize":1474},{"id":4598,"label":"BitUtils.js","path":"./dist/cjs/utils/BitUtils.js","statSize":2295},{"id":672,"label":"BooleanUtils.js","path":"./dist/cjs/utils/BooleanUtils.js","statSize":1839},{"id":994,"label":"NumberUtils.js","path":"./dist/cjs/utils/NumberUtils.js","statSize":956},{"id":3589,"label":"ObjectUtils.js","path":"./dist/cjs/utils/ObjectUtils.js","statSize":7097},{"id":3633,"label":"StringUtils.js","path":"./dist/cjs/utils/StringUtils.js","statSize":5231},{"id":169,"label":"UrlUtils.js","path":"./dist/cjs/utils/UrlUtils.js","statSize":986},{"label":"env","path":"./dist/cjs/utils/env","statSize":8280,"groups":[{"id":671,"label":"Env.js","path":"./dist/cjs/utils/env/Env.js","statSize":4069},{"id":2164,"label":"Environment.js","path":"./dist/cjs/utils/env/Environment.js","statSize":420},{"id":7619,"label":"Os.js","path":"./dist/cjs/utils/env/Os.js","statSize":361},{"id":306,"label":"Version.js","path":"./dist/cjs/utils/env/Version.js","statSize":284},{"id":9870,"label":"userAgent.js","path":"./dist/cjs/utils/env/userAgent.js","statSize":3146}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":351691,"gzipSize":68524},{"label":"node_modules/@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6994,"groups":[{"id":6688,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6994}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
|
|
52
|
+
window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1104103,"parsedSize":354740,"gzipSize":68668,"groups":[{"label":"dist/cjs","path":"./dist/cjs","statSize":1097109,"groups":[{"id":390,"label":"BitmarkParserGenerator.js","path":"./dist/cjs/BitmarkParserGenerator.js","statSize":30280},{"label":"ast","path":"./dist/cjs/ast","statSize":84547,"groups":[{"id":8256,"label":"Ast.js","path":"./dist/cjs/ast/Ast.js","statSize":7599},{"id":1,"label":"BaseBuilder.js","path":"./dist/cjs/ast/BaseBuilder.js","statSize":5113},{"id":9046,"label":"Builder.js","path":"./dist/cjs/ast/Builder.js","statSize":38516},{"id":8703,"label":"ResourceBuilder.js","path":"./dist/cjs/ast/ResourceBuilder.js","statSize":25212},{"label":"rules","path":"./dist/cjs/ast/rules","statSize":5115,"groups":[{"id":2377,"label":"NodeValidator.js","path":"./dist/cjs/ast/rules/NodeValidator.js","statSize":5115}],"parsedSize":0,"gzipSize":0},{"label":"writer","path":"./dist/cjs/ast/writer","statSize":2992,"groups":[{"id":227,"label":"StringWriter.js","path":"./dist/cjs/ast/writer/StringWriter.js","statSize":2992}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"breakscaping","path":"./dist/cjs/breakscaping","statSize":10868,"groups":[{"id":8159,"label":"Breakscape.js","path":"./dist/cjs/breakscaping/Breakscape.js","statSize":10868}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/config","statSize":148004,"groups":[{"id":2606,"label":"Config.js","path":"./dist/cjs/config/Config.js","statSize":15275},{"id":8360,"label":"ConfigHydrator.js","path":"./dist/cjs/config/ConfigHydrator.js","statSize":7676},{"label":"raw","path":"./dist/cjs/config/raw","statSize":125053,"groups":[{"id":3141,"label":"bits.js","path":"./dist/cjs/config/raw/bits.js","statSize":55832},{"id":4182,"label":"cardSets.js","path":"./dist/cjs/config/raw/cardSets.js","statSize":11487},{"id":9036,"label":"groups.js","path":"./dist/cjs/config/raw/groups.js","statSize":35122},{"id":6260,"label":"properties.js","path":"./dist/cjs/config/raw/properties.js","statSize":16966},{"id":5100,"label":"resources.js","path":"./dist/cjs/config/raw/resources.js","statSize":4094},{"id":3622,"label":"tags.js","path":"./dist/cjs/config/raw/tags.js","statSize":1552}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generated","path":"./dist/cjs/generated","statSize":354914,"groups":[{"id":1022,"label":"build-info.js","path":"./dist/cjs/generated/build-info.js","statSize":438},{"label":"parser","path":"./dist/cjs/generated/parser","statSize":354476,"groups":[{"label":"bitmark","path":"./dist/cjs/generated/parser/bitmark","statSize":102585,"groups":[{"id":4369,"label":"bitmark-peggy-parser.js","path":"./dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js","statSize":102585}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generated/parser/text","statSize":251891,"groups":[{"id":4764,"label":"text-peggy-parser.js","path":"./dist/cjs/generated/parser/text/text-peggy-parser.js","statSize":251891}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generator","path":"./dist/cjs/generator","statSize":188626,"groups":[{"label":"bitmark","path":"./dist/cjs/generator/bitmark","statSize":51595,"groups":[{"id":297,"label":"BitmarkGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkGenerator.js","statSize":49530},{"id":8582,"label":"BitmarkStringGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkStringGenerator.js","statSize":2065}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/generator/json","statSize":111058,"groups":[{"id":3857,"label":"JsonGenerator.js","path":"./dist/cjs/generator/json/JsonGenerator.js","statSize":107108},{"id":4275,"label":"JsonObjectGenerator.js","path":"./dist/cjs/generator/json/JsonObjectGenerator.js","statSize":2002},{"id":5132,"label":"JsonStringGenerator.js","path":"./dist/cjs/generator/json/JsonStringGenerator.js","statSize":1948}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generator/text","statSize":25973,"groups":[{"id":6300,"label":"TextGenerator.js","path":"./dist/cjs/generator/text/TextGenerator.js","statSize":25973}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"id":2160,"label":"index.js","path":"./dist/cjs/index.js","statSize":5335,"parsedSize":354650,"gzipSize":68668},{"label":"info","path":"./dist/cjs/info","statSize":3031,"groups":[{"id":9677,"label":"InfoBuilder.js","path":"./dist/cjs/info/InfoBuilder.js","statSize":3031}],"parsedSize":0,"gzipSize":0},{"label":"init","path":"./dist/cjs/init","statSize":503,"groups":[{"id":7087,"label":"init.js","path":"./dist/cjs/init/init.js","statSize":503}],"parsedSize":0,"gzipSize":0},{"label":"model","path":"./dist/cjs/model","statSize":52364,"groups":[{"label":"ast","path":"./dist/cjs/model/ast","statSize":8426,"groups":[{"id":549,"label":"NodeType.js","path":"./dist/cjs/model/ast/NodeType.js","statSize":8426}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/model/config","statSize":21119,"groups":[{"id":7200,"label":"AbstractTagConfig.js","path":"./dist/cjs/model/config/AbstractTagConfig.js","statSize":617},{"id":429,"label":"BitConfig.js","path":"./dist/cjs/model/config/BitConfig.js","statSize":2519},{"id":2005,"label":"CardSetConfig.js","path":"./dist/cjs/model/config/CardSetConfig.js","statSize":781},{"id":3585,"label":"CardVariantConfig.js","path":"./dist/cjs/model/config/CardVariantConfig.js","statSize":1044},{"id":6620,"label":"MarkupTagConfig.js","path":"./dist/cjs/model/config/MarkupTagConfig.js","statSize":1553},{"id":6956,"label":"PropertyTagConfig.js","path":"./dist/cjs/model/config/PropertyTagConfig.js","statSize":2005},{"id":7585,"label":"ResourceTagConfig.js","path":"./dist/cjs/model/config/ResourceTagConfig.js","statSize":1594},{"id":3059,"label":"ResourcesConfig.js","path":"./dist/cjs/model/config/ResourcesConfig.js","statSize":1127},{"label":"enum","path":"./dist/cjs/model/config/enum","statSize":9879,"groups":[{"id":2574,"label":"CardSetConfigKey.js","path":"./dist/cjs/model/config/enum/CardSetConfigKey.js","statSize":650},{"id":8620,"label":"ConfigKey.js","path":"./dist/cjs/model/config/enum/ConfigKey.js","statSize":1267},{"id":177,"label":"GroupConfigKey.js","path":"./dist/cjs/model/config/enum/GroupConfigKey.js","statSize":2664},{"id":5428,"label":"GroupConfigType.js","path":"./dist/cjs/model/config/enum/GroupConfigType.js","statSize":451},{"id":3518,"label":"PropertyConfigKey.js","path":"./dist/cjs/model/config/enum/PropertyConfigKey.js","statSize":2808},{"id":6194,"label":"ResourceConfigKey.js","path":"./dist/cjs/model/config/enum/ResourceConfigKey.js","statSize":1247},{"id":1595,"label":"TagConfigKey.js","path":"./dist/cjs/model/config/enum/TagConfigKey.js","statSize":792}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"enum","path":"./dist/cjs/model/enum","statSize":22106,"groups":[{"id":742,"label":"BitTagType.js","path":"./dist/cjs/model/enum/BitTagType.js","statSize":403},{"id":208,"label":"BitType.js","path":"./dist/cjs/model/enum/BitType.js","statSize":11568},{"id":6958,"label":"BitmarkParserType.js","path":"./dist/cjs/model/enum/BitmarkParserType.js","statSize":335},{"id":8791,"label":"BitmarkVersion.js","path":"./dist/cjs/model/enum/BitmarkVersion.js","statSize":466},{"id":1060,"label":"BodyBitType.js","path":"./dist/cjs/model/enum/BodyBitType.js","statSize":426},{"id":8565,"label":"CardSetVersion.js","path":"./dist/cjs/model/enum/CardSetVersion.js","statSize":322},{"id":1035,"label":"Count.js","path":"./dist/cjs/model/enum/Count.js","statSize":281},{"id":7028,"label":"ExampleType.js","path":"./dist/cjs/model/enum/ExampleType.js","statSize":379},{"id":7204,"label":"PropertyAstKey.js","path":"./dist/cjs/model/enum/PropertyAstKey.js","statSize":553},{"id":5486,"label":"PropertyFormat.js","path":"./dist/cjs/model/enum/PropertyFormat.js","statSize":572},{"id":7953,"label":"PropertyTag.js","path":"./dist/cjs/model/enum/PropertyTag.js","statSize":2531},{"id":9431,"label":"ResourceJsonKey.js","path":"./dist/cjs/model/enum/ResourceJsonKey.js","statSize":959},{"id":9779,"label":"ResourceTag.js","path":"./dist/cjs/model/enum/ResourceTag.js","statSize":1097},{"id":8739,"label":"Tag.js","path":"./dist/cjs/model/enum/Tag.js","statSize":518},{"id":1353,"label":"TextFormat.js","path":"./dist/cjs/model/enum/TextFormat.js","statSize":368},{"id":1888,"label":"TextMarkType.js","path":"./dist/cjs/model/enum/TextMarkType.js","statSize":619},{"id":2610,"label":"TextNodeType.js","path":"./dist/cjs/model/enum/TextNodeType.js","statSize":709}],"parsedSize":0,"gzipSize":0},{"label":"info/enum","path":"./dist/cjs/model/info/enum","statSize":713,"groups":[{"id":8681,"label":"InfoFormat.js","path":"./dist/cjs/model/info/enum/InfoFormat.js","statSize":334},{"id":7347,"label":"InfoType.js","path":"./dist/cjs/model/info/enum/InfoType.js","statSize":379}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"parser","path":"./dist/cjs/parser","statSize":190479,"groups":[{"label":"bitmark","path":"./dist/cjs/parser/bitmark","statSize":150289,"groups":[{"id":9556,"label":"BitmarkParser.js","path":"./dist/cjs/parser/bitmark/BitmarkParser.js","statSize":795},{"label":"peg","path":"./dist/cjs/parser/bitmark/peg","statSize":149494,"groups":[{"id":8030,"label":"BitmarkPegParser.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParser.js","statSize":319},{"id":2892,"label":"BitmarkPegParserHelper.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js","statSize":19658},{"id":7448,"label":"BitmarkPegParserProcessor.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js","statSize":27504},{"id":6831,"label":"BitmarkPegParserTypes.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js","statSize":2297},{"id":8386,"label":"BitmarkPegParserValidator.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js","statSize":26279},{"id":7542,"label":"PeggyGrammarLocation.js","path":"./dist/cjs/parser/bitmark/peg/PeggyGrammarLocation.js","statSize":2879},{"label":"contentProcessors","path":"./dist/cjs/parser/bitmark/peg/contentProcessors","statSize":70558,"groups":[{"id":4185,"label":"BookChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js","statSize":1433},{"id":1182,"label":"CardContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js","statSize":25530},{"id":4471,"label":"ClozeTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js","statSize":689},{"id":6934,"label":"CommentTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/CommentTagContentProcessor.js","statSize":785},{"id":8081,"label":"DefaultTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js","statSize":1512},{"id":4787,"label":"ExampleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js","statSize":6090},{"id":9577,"label":"GapChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js","statSize":2321},{"id":8664,"label":"ImageSourceChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js","statSize":3124},{"id":2786,"label":"ItemLeadTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js","statSize":655},{"id":857,"label":"MarkChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js","statSize":2707},{"id":2595,"label":"MarkConfigChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js","statSize":2126},{"id":3298,"label":"MarkTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js","statSize":501},{"id":8326,"label":"PartnerChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js","statSize":2237},{"id":3287,"label":"PropertyContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js","statSize":5155},{"id":3130,"label":"ReferenceTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js","statSize":688},{"id":5516,"label":"ResourceContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js","statSize":4357},{"id":1838,"label":"TitleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js","statSize":1622},{"id":4177,"label":"TrueFalseChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js","statSize":8200},{"id":8660,"label":"TrueFalseTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js","statSize":826}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/parser/json","statSize":37367,"groups":[{"id":2434,"label":"JsonParser.js","path":"./dist/cjs/parser/json/JsonParser.js","statSize":37367}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/parser/text","statSize":2823,"groups":[{"id":406,"label":"TextParser.js","path":"./dist/cjs/parser/text/TextParser.js","statSize":2519},{"label":"peg","path":"./dist/cjs/parser/text/peg","statSize":304,"groups":[{"id":8436,"label":"TextPegParser.js","path":"./dist/cjs/parser/text/peg/TextPegParser.js","statSize":304}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"utils","path":"./dist/cjs/utils","statSize":28158,"groups":[{"id":7646,"label":"ArrayUtils.js","path":"./dist/cjs/utils/ArrayUtils.js","statSize":1474},{"id":4598,"label":"BitUtils.js","path":"./dist/cjs/utils/BitUtils.js","statSize":2295},{"id":672,"label":"BooleanUtils.js","path":"./dist/cjs/utils/BooleanUtils.js","statSize":1839},{"id":994,"label":"NumberUtils.js","path":"./dist/cjs/utils/NumberUtils.js","statSize":956},{"id":3589,"label":"ObjectUtils.js","path":"./dist/cjs/utils/ObjectUtils.js","statSize":7097},{"id":3633,"label":"StringUtils.js","path":"./dist/cjs/utils/StringUtils.js","statSize":5231},{"id":169,"label":"UrlUtils.js","path":"./dist/cjs/utils/UrlUtils.js","statSize":986},{"label":"env","path":"./dist/cjs/utils/env","statSize":8280,"groups":[{"id":671,"label":"Env.js","path":"./dist/cjs/utils/env/Env.js","statSize":4069},{"id":2164,"label":"Environment.js","path":"./dist/cjs/utils/env/Environment.js","statSize":420},{"id":7619,"label":"Os.js","path":"./dist/cjs/utils/env/Os.js","statSize":361},{"id":306,"label":"Version.js","path":"./dist/cjs/utils/env/Version.js","statSize":284},{"id":9870,"label":"userAgent.js","path":"./dist/cjs/utils/env/userAgent.js","statSize":3146}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":354650,"gzipSize":68668},{"label":"node_modules/@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6994,"groups":[{"id":6688,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6994}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
|
|
53
53
|
window.entrypoints = ["main"];
|
|
54
54
|
window.defaultSizes = "stat";
|
|
55
55
|
</script>
|
|
@@ -5,7 +5,7 @@ exports.buildInfo = void 0;
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
exports.buildInfo = {
|
|
7
7
|
"name": "@gmb/bitmark-parser-generator",
|
|
8
|
-
"version": "1.4.
|
|
8
|
+
"version": "1.4.11",
|
|
9
9
|
"author": "Get More Brain Ltd",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -61,8 +61,8 @@ class JsonGenerator {
|
|
|
61
61
|
this.json = [];
|
|
62
62
|
this.bitWrapperJson = {};
|
|
63
63
|
this.bitJson = {};
|
|
64
|
-
this.textDefault =
|
|
65
|
-
this.bodyDefault =
|
|
64
|
+
this.textDefault = Breakscape_1.Breakscape.EMPTY_STRING;
|
|
65
|
+
this.bodyDefault = Breakscape_1.Breakscape.EMPTY_STRING;
|
|
66
66
|
// Debug
|
|
67
67
|
this.printed = false;
|
|
68
68
|
this.bitmarkVersion = (_a = BitmarkVersion_1.BitmarkVersion.fromValue(options === null || options === void 0 ? void 0 : options.bitmarkVersion)) !== null && _a !== void 0 ? _a : BitmarkVersion_1.DEFAULT_BITMARK_VERSION;
|
|
@@ -124,8 +124,8 @@ class JsonGenerator {
|
|
|
124
124
|
this.json = [];
|
|
125
125
|
this.bitWrapperJson = {};
|
|
126
126
|
this.bitJson = {};
|
|
127
|
-
this.textDefault = this.options.textAsPlainText ?
|
|
128
|
-
this.bodyDefault = this.options.textAsPlainText ?
|
|
127
|
+
this.textDefault = this.options.textAsPlainText ? Breakscape_1.Breakscape.EMPTY_STRING : [];
|
|
128
|
+
this.bodyDefault = this.options.textAsPlainText ? Breakscape_1.Breakscape.EMPTY_STRING : [];
|
|
129
129
|
this.printed = false;
|
|
130
130
|
}
|
|
131
131
|
walkAndWrite(ast) {
|
|
@@ -307,10 +307,10 @@ class JsonGenerator {
|
|
|
307
307
|
if ((parent === null || parent === void 0 ? void 0 : parent.key) !== NodeType_1.NodeType.bitsValue)
|
|
308
308
|
return;
|
|
309
309
|
if (item != null) {
|
|
310
|
-
this.bitJson.item = this.
|
|
310
|
+
this.bitJson.item = this.convertBreakscapedStringToJsonText(item, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
311
311
|
}
|
|
312
312
|
if (lead != null) {
|
|
313
|
-
this.bitJson.lead = this.
|
|
313
|
+
this.bitJson.lead = this.convertBreakscapedStringToJsonText(lead, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
// bitmarkAst -> bits -> bitsValue -> extraProperties
|
|
@@ -373,7 +373,7 @@ class JsonGenerator {
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
// Add string or AST to the body
|
|
376
|
-
this.bitJson.body = this.
|
|
376
|
+
this.bitJson.body = this.convertBreakscapedStringToJsonText(fullBodyTextStr, textFormat);
|
|
377
377
|
const bodyAst = this.bitJson.body;
|
|
378
378
|
// Loop the body parts again to create the body bits:
|
|
379
379
|
// - For text output the body bits are inserted into the 'placeholders' object
|
|
@@ -822,11 +822,11 @@ class JsonGenerator {
|
|
|
822
822
|
//
|
|
823
823
|
// bitmarkAst -> bits -> bitsValue -> title
|
|
824
824
|
leaf_title(node, _parent, _route) {
|
|
825
|
-
this.bitJson.title = this.
|
|
825
|
+
this.bitJson.title = this.convertBreakscapedStringToJsonText(node.value, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
826
826
|
}
|
|
827
827
|
// bitmarkAst -> bits -> bitsValue -> subtitle
|
|
828
828
|
leaf_subtitle(node, _parent, _route) {
|
|
829
|
-
this.bitJson.subtitle = this.
|
|
829
|
+
this.bitJson.subtitle = this.convertBreakscapedStringToJsonText(node.value, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
830
830
|
}
|
|
831
831
|
// // bitmarkAst -> bits -> bitsValue -> level
|
|
832
832
|
leaf_level(node, _parent, _route) {
|
|
@@ -860,7 +860,7 @@ class JsonGenerator {
|
|
|
860
860
|
// Ignore hint that is not at the bit level as it are handled elsewhere
|
|
861
861
|
if ((parent === null || parent === void 0 ? void 0 : parent.key) !== NodeType_1.NodeType.bitsValue)
|
|
862
862
|
return;
|
|
863
|
-
this.bitJson.hint = this.
|
|
863
|
+
this.bitJson.hint = this.convertBreakscapedStringToJsonText(hint, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
864
864
|
}
|
|
865
865
|
// bitmarkAst -> bits -> bitsValue -> * -> instruction
|
|
866
866
|
leaf_instruction(node, parent, _route) {
|
|
@@ -868,12 +868,12 @@ class JsonGenerator {
|
|
|
868
868
|
// Ignore instruction that is not at the bit level as it are handled elsewhere
|
|
869
869
|
if ((parent === null || parent === void 0 ? void 0 : parent.key) !== NodeType_1.NodeType.bitsValue)
|
|
870
870
|
return;
|
|
871
|
-
this.bitJson.instruction = this.
|
|
871
|
+
this.bitJson.instruction = this.convertBreakscapedStringToJsonText(instruction, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
872
872
|
}
|
|
873
873
|
// bitmarkAst -> bits -> footer -> footerText
|
|
874
874
|
leaf_footerText(node, _parent, _route) {
|
|
875
875
|
const footer = node.value;
|
|
876
|
-
this.bitJson.footer = this.
|
|
876
|
+
this.bitJson.footer = this.convertBreakscapedStringToJsonText(footer, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
877
877
|
}
|
|
878
878
|
// bitmarkAst -> bits -> bitsValue -> markup
|
|
879
879
|
leaf_markup(node, _parent, _route) {
|
|
@@ -1553,7 +1553,7 @@ class JsonGenerator {
|
|
|
1553
1553
|
if (resource.showInIndex != null)
|
|
1554
1554
|
resourceJson.showInIndex = (_c = resource.showInIndex) !== null && _c !== void 0 ? _c : false;
|
|
1555
1555
|
if (resource.caption != null)
|
|
1556
|
-
resourceJson.caption = this.
|
|
1556
|
+
resourceJson.caption = this.convertBreakscapedStringToJsonText((_d = resource.caption) !== null && _d !== void 0 ? _d : '', TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
1557
1557
|
}
|
|
1558
1558
|
else {
|
|
1559
1559
|
resourceJson.license = (_e = Breakscape_1.Breakscape.unbreakscape(resource.license)) !== null && _e !== void 0 ? _e : '';
|
|
@@ -1561,17 +1561,17 @@ class JsonGenerator {
|
|
|
1561
1561
|
if (resource.provider != null)
|
|
1562
1562
|
resourceJson.provider = Breakscape_1.Breakscape.unbreakscape(resource.provider);
|
|
1563
1563
|
resourceJson.showInIndex = (_g = resource.showInIndex) !== null && _g !== void 0 ? _g : false;
|
|
1564
|
-
resourceJson.caption = this.
|
|
1564
|
+
resourceJson.caption = this.convertBreakscapedStringToJsonText((_h = resource.caption) !== null && _h !== void 0 ? _h : Breakscape_1.Breakscape.EMPTY_STRING, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
1565
1565
|
}
|
|
1566
1566
|
return resourceJson;
|
|
1567
1567
|
}
|
|
1568
1568
|
toItemLeadHintInstruction(item) {
|
|
1569
1569
|
var _a, _b, _c, _d, _e, _f;
|
|
1570
1570
|
return {
|
|
1571
|
-
item: this.
|
|
1572
|
-
lead: this.
|
|
1573
|
-
hint: this.
|
|
1574
|
-
instruction: this.
|
|
1571
|
+
item: this.convertBreakscapedStringToJsonText((_b = (_a = item.itemLead) === null || _a === void 0 ? void 0 : _a.item) !== null && _b !== void 0 ? _b : Breakscape_1.Breakscape.EMPTY_STRING, TextFormat_1.TextFormat.bitmarkMinusMinus),
|
|
1572
|
+
lead: this.convertBreakscapedStringToJsonText((_d = (_c = item.itemLead) === null || _c === void 0 ? void 0 : _c.lead) !== null && _d !== void 0 ? _d : Breakscape_1.Breakscape.EMPTY_STRING, TextFormat_1.TextFormat.bitmarkMinusMinus),
|
|
1573
|
+
hint: this.convertBreakscapedStringToJsonText((_e = item.hint) !== null && _e !== void 0 ? _e : Breakscape_1.Breakscape.EMPTY_STRING, TextFormat_1.TextFormat.bitmarkMinusMinus),
|
|
1574
|
+
instruction: this.convertBreakscapedStringToJsonText((_f = item.instruction) !== null && _f !== void 0 ? _f : Breakscape_1.Breakscape.EMPTY_STRING, TextFormat_1.TextFormat.bitmarkMinusMinus),
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
1577
|
toExample(node, options) {
|
|
@@ -1587,12 +1587,12 @@ class JsonGenerator {
|
|
|
1587
1587
|
if (isDefaultExample) {
|
|
1588
1588
|
exampleValue = isBoolean
|
|
1589
1589
|
? BooleanUtils_1.BooleanUtils.toBoolean(defaultExample)
|
|
1590
|
-
: this.
|
|
1590
|
+
: this.convertBreakscapedStringToJsonText(defaultExample, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
1591
1591
|
}
|
|
1592
1592
|
else {
|
|
1593
1593
|
exampleValue = isBoolean
|
|
1594
1594
|
? BooleanUtils_1.BooleanUtils.toBoolean(example)
|
|
1595
|
-
: this.
|
|
1595
|
+
: this.convertBreakscapedStringToJsonText(example, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
1596
1596
|
}
|
|
1597
1597
|
return {
|
|
1598
1598
|
isExample: true,
|
|
@@ -1668,15 +1668,23 @@ class JsonGenerator {
|
|
|
1668
1668
|
return undefined;
|
|
1669
1669
|
}
|
|
1670
1670
|
/**
|
|
1671
|
-
* Convert
|
|
1671
|
+
* Convert the text from the AST to the JSON format:
|
|
1672
|
+
* Input:
|
|
1673
|
+
* - breakscaped string
|
|
1674
|
+
* Output:
|
|
1675
|
+
* - Bitmark v2: breakscaped string
|
|
1676
|
+
* - Bitmark v3: bitmark text JSON (TextAst)
|
|
1677
|
+
*
|
|
1678
|
+
* In the case of Bitmark v2 type texts, there is nothing to do but cast the type.
|
|
1679
|
+
*
|
|
1672
1680
|
* @param text
|
|
1673
1681
|
* @returns
|
|
1674
1682
|
*/
|
|
1675
|
-
|
|
1683
|
+
convertBreakscapedStringToJsonText(text, format) {
|
|
1676
1684
|
if (!text)
|
|
1677
1685
|
undefined;
|
|
1678
1686
|
if (this.options.textAsPlainText || format === TextFormat_1.TextFormat.text) {
|
|
1679
|
-
return Breakscape_1.Breakscape.
|
|
1687
|
+
return text || Breakscape_1.Breakscape.EMPTY_STRING;
|
|
1680
1688
|
}
|
|
1681
1689
|
// Use the text parser to parse the text
|
|
1682
1690
|
const textAst = this.textParser.toAst(text, {
|