@gmb/bitmark-parser-generator 3.28.0 → 3.30.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/ast/Builder.js +24 -18
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/ast/ResourceBuilder.js +3 -1
- package/dist/cjs/ast/ResourceBuilder.js.map +1 -1
- package/dist/cjs/breakscaping/Breakscape.js +3 -3
- package/dist/cjs/breakscaping/Breakscape.js.map +1 -1
- package/dist/cjs/config/raw/bits.js +11 -2
- package/dist/cjs/config/raw/bits.js.map +1 -1
- package/dist/cjs/config/raw/groups.js +2 -2
- package/dist/cjs/config/raw/properties.js +2 -12
- package/dist/cjs/config/raw/properties.js.map +1 -1
- package/dist/cjs/config/raw/resources.js +10 -3
- package/dist/cjs/config/raw/resources.js.map +1 -1
- package/dist/cjs/generated/build-info.js +1 -1
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js +21 -7
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +4 -0
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/model/config/enum/PropertyConfigKey.js +0 -2
- package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/cjs/model/config/enum/ResourceConfigKey.js +3 -1
- package/dist/cjs/model/config/enum/ResourceConfigKey.js.map +1 -1
- package/dist/cjs/model/enum/BitType.js +2 -0
- package/dist/cjs/model/enum/BitType.js.map +1 -1
- package/dist/cjs/model/enum/ResourceTag.js +4 -1
- package/dist/cjs/model/enum/ResourceTag.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +16 -10
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +0 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +10 -26
- package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/esm/ast/Builder.js +24 -18
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/ast/ResourceBuilder.js +3 -1
- package/dist/esm/ast/ResourceBuilder.js.map +1 -1
- package/dist/esm/breakscaping/Breakscape.js +3 -3
- package/dist/esm/breakscaping/Breakscape.js.map +1 -1
- package/dist/esm/config/raw/bits.js +11 -2
- package/dist/esm/config/raw/bits.js.map +1 -1
- package/dist/esm/config/raw/groups.js +2 -2
- package/dist/esm/config/raw/properties.js +2 -12
- package/dist/esm/config/raw/properties.js.map +1 -1
- package/dist/esm/config/raw/resources.js +10 -3
- package/dist/esm/config/raw/resources.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/generator/bitmark/BitmarkGenerator.js +21 -7
- package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +4 -0
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/model/config/enum/PropertyConfigKey.js +0 -2
- package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/esm/model/config/enum/ResourceConfigKey.js +3 -1
- package/dist/esm/model/config/enum/ResourceConfigKey.js.map +1 -1
- package/dist/esm/model/enum/BitType.js +2 -0
- package/dist/esm/model/enum/BitType.js.map +1 -1
- package/dist/esm/model/enum/ResourceTag.js +4 -1
- package/dist/esm/model/enum/ResourceTag.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +16 -10
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +0 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +11 -26
- package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
- package/dist/types/ast/Builder.d.ts +3 -2
- package/dist/types/ast/Builder.d.ts.map +1 -1
- package/dist/types/ast/ResourceBuilder.d.ts.map +1 -1
- package/dist/types/breakscaping/Breakscape.d.ts +1 -1
- package/dist/types/breakscaping/Breakscape.d.ts.map +1 -1
- package/dist/types/config/raw/bits.d.ts.map +1 -1
- package/dist/types/config/raw/properties.d.ts.map +1 -1
- package/dist/types/config/raw/resources.d.ts.map +1 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +2 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +1 -0
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/model/ast/Nodes.d.ts +1 -1
- package/dist/types/model/ast/Nodes.d.ts.map +1 -1
- package/dist/types/model/config/enum/ConfigKey.d.ts +6 -6
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts +0 -6
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/ResourceConfigKey.d.ts +9 -3
- package/dist/types/model/config/enum/ResourceConfigKey.d.ts.map +1 -1
- package/dist/types/model/enum/BitType.d.ts +4 -0
- package/dist/types/model/enum/BitType.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyTag.d.ts +0 -4
- package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
- package/dist/types/model/enum/ResourceTag.d.ts +6 -2
- package/dist/types/model/enum/ResourceTag.d.ts.map +1 -1
- package/dist/types/model/json/BitJson.d.ts +5 -2
- package/dist/types/model/json/BitJson.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +1 -3
- package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.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 [
|
|
6
|
+
<title>@gmb/bitmark-parser-generator [3 Jun 2025 at 09:14]</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>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<body>
|
|
32
32
|
<div id="app"></div>
|
|
33
33
|
<script>
|
|
34
|
-
window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1569034,"parsedSize":515786,"gzipSize":101149,"groups":[{"label":"dist/cjs","path":"./dist/cjs","statSize":1553957,"groups":[{"id":1791,"label":"BitmarkParserGenerator.js","path":"./dist/cjs/BitmarkParserGenerator.js","statSize":32200},{"label":"ast","path":"./dist/cjs/ast","statSize":173910,"groups":[{"id":5126,"label":"Ast.js","path":"./dist/cjs/ast/Ast.js","statSize":7709},{"id":4470,"label":"BaseBuilder.js","path":"./dist/cjs/ast/BaseBuilder.js","statSize":8124},{"id":5809,"label":"Builder.js","path":"./dist/cjs/ast/Builder.js","statSize":97201},{"id":5533,"label":"ResourceBuilder.js","path":"./dist/cjs/ast/ResourceBuilder.js","statSize":50850},{"label":"rules","path":"./dist/cjs/ast/rules","statSize":6615,"groups":[{"id":4564,"label":"NodeValidator.js","path":"./dist/cjs/ast/rules/NodeValidator.js","statSize":6615}],"parsedSize":0,"gzipSize":0},{"label":"writer","path":"./dist/cjs/ast/writer","statSize":3411,"groups":[{"id":6772,"label":"StringWriter.js","path":"./dist/cjs/ast/writer/StringWriter.js","statSize":3411}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"breakscaping","path":"./dist/cjs/breakscaping","statSize":17401,"groups":[{"id":7735,"label":"Breakscape.js","path":"./dist/cjs/breakscaping/Breakscape.js","statSize":17401}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/config","statSize":252774,"groups":[{"id":2028,"label":"Config.js","path":"./dist/cjs/config/Config.js","statSize":15538},{"id":4445,"label":"ConfigHydrator.js","path":"./dist/cjs/config/ConfigHydrator.js","statSize":7700},{"label":"raw","path":"./dist/cjs/config/raw","statSize":229536,"groups":[{"id":6853,"label":"bits.js","path":"./dist/cjs/config/raw/bits.js","statSize":116792},{"id":5554,"label":"cardSets.js","path":"./dist/cjs/config/raw/cardSets.js","statSize":22160},{"id":5837,"label":"groups.js","path":"./dist/cjs/config/raw/groups.js","statSize":45341},{"id":9916,"label":"properties.js","path":"./dist/cjs/config/raw/properties.js","statSize":39607},{"id":168,"label":"resources.js","path":"./dist/cjs/config/raw/resources.js","statSize":4198},{"id":9248,"label":"tags.js","path":"./dist/cjs/config/raw/tags.js","statSize":1438}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generated","path":"./dist/cjs/generated","statSize":479358,"groups":[{"id":1464,"label":"build-info.js","path":"./dist/cjs/generated/build-info.js","statSize":438},{"label":"parser","path":"./dist/cjs/generated/parser","statSize":478920,"groups":[{"label":"bitmark","path":"./dist/cjs/generated/parser/bitmark","statSize":95348,"groups":[{"id":5057,"label":"bitmark-peggy-parser.js","path":"./dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js","statSize":95348}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generated/parser/text","statSize":383572,"groups":[{"id":8321,"label":"text-peggy-parser.js","path":"./dist/cjs/generated/parser/text/text-peggy-parser.js","statSize":383572}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generator","path":"./dist/cjs/generator","statSize":232955,"groups":[{"id":4,"label":"AstWalkerGenerator.js","path":"./dist/cjs/generator/AstWalkerGenerator.js","statSize":3051},{"label":"bitmark","path":"./dist/cjs/generator/bitmark","statSize":107747,"groups":[{"id":5087,"label":"BitmarkGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkGenerator.js","statSize":105682},{"id":3968,"label":"BitmarkStringGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkStringGenerator.js","statSize":2065}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/generator/json","statSize":74263,"groups":[{"id":2497,"label":"JsonGenerator.js","path":"./dist/cjs/generator/json/JsonGenerator.js","statSize":70313},{"id":7984,"label":"JsonObjectGenerator.js","path":"./dist/cjs/generator/json/JsonObjectGenerator.js","statSize":2002},{"id":98,"label":"JsonStringGenerator.js","path":"./dist/cjs/generator/json/JsonStringGenerator.js","statSize":1948}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generator/text","statSize":47894,"groups":[{"id":431,"label":"TextGenerator.js","path":"./dist/cjs/generator/text/TextGenerator.js","statSize":47894}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"id":5469,"label":"index.js","path":"./dist/cjs/index.js","statSize":5650,"parsedSize":515654,"gzipSize":101149},{"label":"info","path":"./dist/cjs/info","statSize":1971,"groups":[{"id":3881,"label":"InfoBuilder.js","path":"./dist/cjs/info/InfoBuilder.js","statSize":1971}],"parsedSize":0,"gzipSize":0},{"label":"init","path":"./dist/cjs/init","statSize":480,"groups":[{"id":1412,"label":"init.js","path":"./dist/cjs/init/init.js","statSize":480}],"parsedSize":0,"gzipSize":0},{"label":"model","path":"./dist/cjs/model","statSize":82345,"groups":[{"label":"ast","path":"./dist/cjs/model/ast","statSize":18236,"groups":[{"id":126,"label":"NodeType.js","path":"./dist/cjs/model/ast/NodeType.js","statSize":18236}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/model/config","statSize":26281,"groups":[{"id":6634,"label":"AbstractTagConfig.js","path":"./dist/cjs/model/config/AbstractTagConfig.js","statSize":617},{"id":3619,"label":"BitConfig.js","path":"./dist/cjs/model/config/BitConfig.js","statSize":2977},{"id":5814,"label":"CardSetConfig.js","path":"./dist/cjs/model/config/CardSetConfig.js","statSize":781},{"id":9371,"label":"CardVariantConfig.js","path":"./dist/cjs/model/config/CardVariantConfig.js","statSize":1073},{"id":9788,"label":"MarkupTagConfig.js","path":"./dist/cjs/model/config/MarkupTagConfig.js","statSize":1553},{"id":1519,"label":"PropertyTagConfig.js","path":"./dist/cjs/model/config/PropertyTagConfig.js","statSize":2005},{"id":9600,"label":"ResourceTagConfig.js","path":"./dist/cjs/model/config/ResourceTagConfig.js","statSize":1594},{"id":1457,"label":"ResourcesConfig.js","path":"./dist/cjs/model/config/ResourcesConfig.js","statSize":1127},{"label":"enum","path":"./dist/cjs/model/config/enum","statSize":14554,"groups":[{"id":8199,"label":"CardSetConfigKey.js","path":"./dist/cjs/model/config/enum/CardSetConfigKey.js","statSize":1043},{"id":5591,"label":"ConfigKey.js","path":"./dist/cjs/model/config/enum/ConfigKey.js","statSize":1390},{"id":7112,"label":"GroupConfigKey.js","path":"./dist/cjs/model/config/enum/GroupConfigKey.js","statSize":2905},{"id":6915,"label":"GroupConfigType.js","path":"./dist/cjs/model/config/enum/GroupConfigType.js","statSize":493},{"id":9888,"label":"PropertyConfigKey.js","path":"./dist/cjs/model/config/enum/PropertyConfigKey.js","statSize":6712},{"id":5051,"label":"ResourceConfigKey.js","path":"./dist/cjs/model/config/enum/ResourceConfigKey.js","statSize":1265},{"id":7797,"label":"TagConfigKey.js","path":"./dist/cjs/model/config/enum/TagConfigKey.js","statSize":746}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"enum","path":"./dist/cjs/model/enum","statSize":37046,"groups":[{"id":5512,"label":"BitTagType.js","path":"./dist/cjs/model/enum/BitTagType.js","statSize":457},{"id":5854,"label":"BitType.js","path":"./dist/cjs/model/enum/BitType.js","statSize":25671},{"id":8588,"label":"BitmarkParserType.js","path":"./dist/cjs/model/enum/BitmarkParserType.js","statSize":335},{"id":3811,"label":"BitmarkVersion.js","path":"./dist/cjs/model/enum/BitmarkVersion.js","statSize":466},{"id":4410,"label":"BodyBitType.js","path":"./dist/cjs/model/enum/BodyBitType.js","statSize":426},{"id":8453,"label":"BodyTextFormat.js","path":"./dist/cjs/model/enum/BodyTextFormat.js","statSize":476},{"id":1163,"label":"CardSetVersion.js","path":"./dist/cjs/model/enum/CardSetVersion.js","statSize":322},{"id":3778,"label":"Count.js","path":"./dist/cjs/model/enum/Count.js","statSize":281},{"id":6220,"label":"DeprecatedTextFormat.js","path":"./dist/cjs/model/enum/DeprecatedTextFormat.js","statSize":403},{"id":363,"label":"ExampleType.js","path":"./dist/cjs/model/enum/ExampleType.js","statSize":434},{"id":7203,"label":"PropertyAstKey.js","path":"./dist/cjs/model/enum/PropertyAstKey.js","statSize":615},{"id":9727,"label":"PropertyFormat.js","path":"./dist/cjs/model/enum/PropertyFormat.js","statSize":822},{"id":166,"label":"PropertyTag.js","path":"./dist/cjs/model/enum/PropertyTag.js","statSize":535},{"id":9984,"label":"ResourceJsonKey.js","path":"./dist/cjs/model/enum/ResourceJsonKey.js","statSize":959},{"id":6149,"label":"ResourceTag.js","path":"./dist/cjs/model/enum/ResourceTag.js","statSize":1134},{"id":9917,"label":"Tag.js","path":"./dist/cjs/model/enum/Tag.js","statSize":533},{"id":385,"label":"TextFormat.js","path":"./dist/cjs/model/enum/TextFormat.js","statSize":582},{"id":6877,"label":"TextLocation.js","path":"./dist/cjs/model/enum/TextLocation.js","statSize":425},{"id":2483,"label":"TextMarkType.js","path":"./dist/cjs/model/enum/TextMarkType.js","statSize":1164},{"id":9554,"label":"TextNodeType.js","path":"./dist/cjs/model/enum/TextNodeType.js","statSize":1006}],"parsedSize":0,"gzipSize":0},{"label":"info/enum","path":"./dist/cjs/model/info/enum","statSize":782,"groups":[{"id":3069,"label":"InfoFormat.js","path":"./dist/cjs/model/info/enum/InfoFormat.js","statSize":334},{"id":486,"label":"InfoType.js","path":"./dist/cjs/model/info/enum/InfoType.js","statSize":448}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"parser","path":"./dist/cjs/parser","statSize":236868,"groups":[{"label":"bitmark","path":"./dist/cjs/parser/bitmark","statSize":220653,"groups":[{"id":5633,"label":"BitmarkParser.js","path":"./dist/cjs/parser/bitmark/BitmarkParser.js","statSize":795},{"label":"peg","path":"./dist/cjs/parser/bitmark/peg","statSize":219858,"groups":[{"id":5078,"label":"BitmarkPegParser.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParser.js","statSize":319},{"id":3206,"label":"BitmarkPegParserHelper.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js","statSize":21782},{"id":7124,"label":"BitmarkPegParserProcessor.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js","statSize":34675},{"id":3029,"label":"BitmarkPegParserTypes.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js","statSize":2433},{"id":4266,"label":"BitmarkPegParserValidator.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js","statSize":31987},{"id":7461,"label":"PeggyGrammarLocation.js","path":"./dist/cjs/parser/bitmark/peg/PeggyGrammarLocation.js","statSize":2879},{"label":"contentProcessors","path":"./dist/cjs/parser/bitmark/peg/contentProcessors","statSize":125783,"groups":[{"id":5033,"label":"BodyContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js","statSize":11928},{"id":3045,"label":"BookChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js","statSize":2430},{"id":1083,"label":"CardContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js","statSize":40443},{"id":554,"label":"ClozeTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js","statSize":1395},{"id":6128,"label":"ContentProcessorUtils.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js","statSize":2643},{"id":4402,"label":"DefaultTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js","statSize":3150},{"id":4091,"label":"ExampleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js","statSize":6973},{"id":4382,"label":"FooterContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js","statSize":2884},{"id":3904,"label":"GapChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js","statSize":1689},{"id":8848,"label":"ImageSourceChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js","statSize":3252},{"id":6991,"label":"InternalCommentTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js","statSize":672},{"id":9289,"label":"ItemLeadChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js","statSize":1652},{"id":8216,"label":"ItemLeadTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js","statSize":914},{"id":5189,"label":"MarkChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js","statSize":2560},{"id":3063,"label":"MarkConfigChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js","statSize":2439},{"id":5980,"label":"MarkTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js","statSize":494},{"id":21,"label":"PersonChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js","statSize":2577},{"id":9647,"label":"PropertyContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js","statSize":9959},{"id":3967,"label":"RatingLevelChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js","statSize":1732},{"id":3990,"label":"ReferenceTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js","statSize":1184},{"id":6521,"label":"ResourceContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js","statSize":9218},{"id":4953,"label":"ServingsChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js","statSize":1296},{"id":4475,"label":"TechnicalTermChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js","statSize":1435},{"id":7667,"label":"TitleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js","statSize":2644},{"id":9885,"label":"TrueFalseChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js","statSize":9079},{"id":4020,"label":"TrueFalseTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js","statSize":1141}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/parser/json","statSize":11001,"groups":[{"id":5663,"label":"JsonParser.js","path":"./dist/cjs/parser/json/JsonParser.js","statSize":11001}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/parser/text","statSize":5214,"groups":[{"id":777,"label":"TextParser.js","path":"./dist/cjs/parser/text/TextParser.js","statSize":4910},{"label":"peg","path":"./dist/cjs/parser/text/peg","statSize":304,"groups":[{"id":2220,"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":38045,"groups":[{"id":6989,"label":"ArrayUtils.js","path":"./dist/cjs/utils/ArrayUtils.js","statSize":1474},{"id":8903,"label":"BitUtils.js","path":"./dist/cjs/utils/BitUtils.js","statSize":2625},{"id":4078,"label":"BooleanUtils.js","path":"./dist/cjs/utils/BooleanUtils.js","statSize":1839},{"id":8025,"label":"NumberUtils.js","path":"./dist/cjs/utils/NumberUtils.js","statSize":1890},{"id":955,"label":"ObjectUtils.js","path":"./dist/cjs/utils/ObjectUtils.js","statSize":14455},{"id":9681,"label":"StringUtils.js","path":"./dist/cjs/utils/StringUtils.js","statSize":6529},{"id":201,"label":"UrlUtils.js","path":"./dist/cjs/utils/UrlUtils.js","statSize":986},{"label":"env","path":"./dist/cjs/utils/env","statSize":8247,"groups":[{"id":6936,"label":"Env.js","path":"./dist/cjs/utils/env/Env.js","statSize":4069},{"id":6278,"label":"Environment.js","path":"./dist/cjs/utils/env/Environment.js","statSize":420},{"id":9561,"label":"Os.js","path":"./dist/cjs/utils/env/Os.js","statSize":361},{"id":2287,"label":"Version.js","path":"./dist/cjs/utils/env/Version.js","statSize":284},{"id":5659,"label":"userAgent.js","path":"./dist/cjs/utils/env/userAgent.js","statSize":3113}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":515654,"gzipSize":101149},{"label":"node_modules","path":"./node_modules","statSize":15077,"groups":[{"label":"@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6980,"groups":[{"id":4718,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6980}],"parsedSize":0,"gzipSize":0},{"label":"@ungap/structured-clone/cjs","path":"./node_modules/@ungap/structured-clone/cjs","statSize":8097,"groups":[{"id":5005,"label":"deserialize.js","path":"./node_modules/@ungap/structured-clone/cjs/deserialize.js","statSize":2210},{"id":7678,"label":"index.js","path":"./node_modules/@ungap/structured-clone/cjs/index.js","statSize":941},{"id":5416,"label":"serialize.js","path":"./node_modules/@ungap/structured-clone/cjs/serialize.js","statSize":4451},{"id":1731,"label":"types.js","path":"./node_modules/@ungap/structured-clone/cjs/types.js","statSize":495}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
|
|
34
|
+
window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1569979,"parsedSize":516354,"gzipSize":101299,"groups":[{"label":"dist/cjs","path":"./dist/cjs","statSize":1554902,"groups":[{"id":1791,"label":"BitmarkParserGenerator.js","path":"./dist/cjs/BitmarkParserGenerator.js","statSize":32200},{"label":"ast","path":"./dist/cjs/ast","statSize":174394,"groups":[{"id":5126,"label":"Ast.js","path":"./dist/cjs/ast/Ast.js","statSize":7709},{"id":4470,"label":"BaseBuilder.js","path":"./dist/cjs/ast/BaseBuilder.js","statSize":8124},{"id":5809,"label":"Builder.js","path":"./dist/cjs/ast/Builder.js","statSize":97560},{"id":5533,"label":"ResourceBuilder.js","path":"./dist/cjs/ast/ResourceBuilder.js","statSize":50975},{"label":"rules","path":"./dist/cjs/ast/rules","statSize":6615,"groups":[{"id":4564,"label":"NodeValidator.js","path":"./dist/cjs/ast/rules/NodeValidator.js","statSize":6615}],"parsedSize":0,"gzipSize":0},{"label":"writer","path":"./dist/cjs/ast/writer","statSize":3411,"groups":[{"id":6772,"label":"StringWriter.js","path":"./dist/cjs/ast/writer/StringWriter.js","statSize":3411}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"breakscaping","path":"./dist/cjs/breakscaping","statSize":17404,"groups":[{"id":7735,"label":"Breakscape.js","path":"./dist/cjs/breakscaping/Breakscape.js","statSize":17404}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/config","statSize":253153,"groups":[{"id":2028,"label":"Config.js","path":"./dist/cjs/config/Config.js","statSize":15538},{"id":4445,"label":"ConfigHydrator.js","path":"./dist/cjs/config/ConfigHydrator.js","statSize":7700},{"label":"raw","path":"./dist/cjs/config/raw","statSize":229915,"groups":[{"id":6853,"label":"bits.js","path":"./dist/cjs/config/raw/bits.js","statSize":117332},{"id":5554,"label":"cardSets.js","path":"./dist/cjs/config/raw/cardSets.js","statSize":22160},{"id":5837,"label":"groups.js","path":"./dist/cjs/config/raw/groups.js","statSize":45341},{"id":9916,"label":"properties.js","path":"./dist/cjs/config/raw/properties.js","statSize":39177},{"id":168,"label":"resources.js","path":"./dist/cjs/config/raw/resources.js","statSize":4467},{"id":9248,"label":"tags.js","path":"./dist/cjs/config/raw/tags.js","statSize":1438}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generated","path":"./dist/cjs/generated","statSize":479358,"groups":[{"id":1464,"label":"build-info.js","path":"./dist/cjs/generated/build-info.js","statSize":438},{"label":"parser","path":"./dist/cjs/generated/parser","statSize":478920,"groups":[{"label":"bitmark","path":"./dist/cjs/generated/parser/bitmark","statSize":95348,"groups":[{"id":5057,"label":"bitmark-peggy-parser.js","path":"./dist/cjs/generated/parser/bitmark/bitmark-peggy-parser.js","statSize":95348}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generated/parser/text","statSize":383572,"groups":[{"id":8321,"label":"text-peggy-parser.js","path":"./dist/cjs/generated/parser/text/text-peggy-parser.js","statSize":383572}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"generator","path":"./dist/cjs/generator","statSize":233722,"groups":[{"id":4,"label":"AstWalkerGenerator.js","path":"./dist/cjs/generator/AstWalkerGenerator.js","statSize":3051},{"label":"bitmark","path":"./dist/cjs/generator/bitmark","statSize":108302,"groups":[{"id":5087,"label":"BitmarkGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkGenerator.js","statSize":106237},{"id":3968,"label":"BitmarkStringGenerator.js","path":"./dist/cjs/generator/bitmark/BitmarkStringGenerator.js","statSize":2065}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/generator/json","statSize":74475,"groups":[{"id":2497,"label":"JsonGenerator.js","path":"./dist/cjs/generator/json/JsonGenerator.js","statSize":70525},{"id":7984,"label":"JsonObjectGenerator.js","path":"./dist/cjs/generator/json/JsonObjectGenerator.js","statSize":2002},{"id":98,"label":"JsonStringGenerator.js","path":"./dist/cjs/generator/json/JsonStringGenerator.js","statSize":1948}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/generator/text","statSize":47894,"groups":[{"id":431,"label":"TextGenerator.js","path":"./dist/cjs/generator/text/TextGenerator.js","statSize":47894}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"id":5469,"label":"index.js","path":"./dist/cjs/index.js","statSize":5650,"parsedSize":516222,"gzipSize":101299},{"label":"info","path":"./dist/cjs/info","statSize":1971,"groups":[{"id":3881,"label":"InfoBuilder.js","path":"./dist/cjs/info/InfoBuilder.js","statSize":1971}],"parsedSize":0,"gzipSize":0},{"label":"init","path":"./dist/cjs/init","statSize":480,"groups":[{"id":1412,"label":"init.js","path":"./dist/cjs/init/init.js","statSize":480}],"parsedSize":0,"gzipSize":0},{"label":"model","path":"./dist/cjs/model","statSize":82543,"groups":[{"label":"ast","path":"./dist/cjs/model/ast","statSize":18236,"groups":[{"id":126,"label":"NodeType.js","path":"./dist/cjs/model/ast/NodeType.js","statSize":18236}],"parsedSize":0,"gzipSize":0},{"label":"config","path":"./dist/cjs/model/config","statSize":26281,"groups":[{"id":6634,"label":"AbstractTagConfig.js","path":"./dist/cjs/model/config/AbstractTagConfig.js","statSize":617},{"id":3619,"label":"BitConfig.js","path":"./dist/cjs/model/config/BitConfig.js","statSize":2977},{"id":5814,"label":"CardSetConfig.js","path":"./dist/cjs/model/config/CardSetConfig.js","statSize":781},{"id":9371,"label":"CardVariantConfig.js","path":"./dist/cjs/model/config/CardVariantConfig.js","statSize":1073},{"id":9788,"label":"MarkupTagConfig.js","path":"./dist/cjs/model/config/MarkupTagConfig.js","statSize":1553},{"id":1519,"label":"PropertyTagConfig.js","path":"./dist/cjs/model/config/PropertyTagConfig.js","statSize":2005},{"id":9600,"label":"ResourceTagConfig.js","path":"./dist/cjs/model/config/ResourceTagConfig.js","statSize":1594},{"id":1457,"label":"ResourcesConfig.js","path":"./dist/cjs/model/config/ResourcesConfig.js","statSize":1127},{"label":"enum","path":"./dist/cjs/model/config/enum","statSize":14554,"groups":[{"id":8199,"label":"CardSetConfigKey.js","path":"./dist/cjs/model/config/enum/CardSetConfigKey.js","statSize":1043},{"id":5591,"label":"ConfigKey.js","path":"./dist/cjs/model/config/enum/ConfigKey.js","statSize":1390},{"id":7112,"label":"GroupConfigKey.js","path":"./dist/cjs/model/config/enum/GroupConfigKey.js","statSize":2905},{"id":6915,"label":"GroupConfigType.js","path":"./dist/cjs/model/config/enum/GroupConfigType.js","statSize":493},{"id":9888,"label":"PropertyConfigKey.js","path":"./dist/cjs/model/config/enum/PropertyConfigKey.js","statSize":6622},{"id":5051,"label":"ResourceConfigKey.js","path":"./dist/cjs/model/config/enum/ResourceConfigKey.js","statSize":1355},{"id":7797,"label":"TagConfigKey.js","path":"./dist/cjs/model/config/enum/TagConfigKey.js","statSize":746}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"enum","path":"./dist/cjs/model/enum","statSize":37244,"groups":[{"id":5512,"label":"BitTagType.js","path":"./dist/cjs/model/enum/BitTagType.js","statSize":457},{"id":5854,"label":"BitType.js","path":"./dist/cjs/model/enum/BitType.js","statSize":25773},{"id":8588,"label":"BitmarkParserType.js","path":"./dist/cjs/model/enum/BitmarkParserType.js","statSize":335},{"id":3811,"label":"BitmarkVersion.js","path":"./dist/cjs/model/enum/BitmarkVersion.js","statSize":466},{"id":4410,"label":"BodyBitType.js","path":"./dist/cjs/model/enum/BodyBitType.js","statSize":426},{"id":8453,"label":"BodyTextFormat.js","path":"./dist/cjs/model/enum/BodyTextFormat.js","statSize":476},{"id":1163,"label":"CardSetVersion.js","path":"./dist/cjs/model/enum/CardSetVersion.js","statSize":322},{"id":3778,"label":"Count.js","path":"./dist/cjs/model/enum/Count.js","statSize":281},{"id":6220,"label":"DeprecatedTextFormat.js","path":"./dist/cjs/model/enum/DeprecatedTextFormat.js","statSize":403},{"id":363,"label":"ExampleType.js","path":"./dist/cjs/model/enum/ExampleType.js","statSize":434},{"id":7203,"label":"PropertyAstKey.js","path":"./dist/cjs/model/enum/PropertyAstKey.js","statSize":615},{"id":9727,"label":"PropertyFormat.js","path":"./dist/cjs/model/enum/PropertyFormat.js","statSize":822},{"id":166,"label":"PropertyTag.js","path":"./dist/cjs/model/enum/PropertyTag.js","statSize":535},{"id":9984,"label":"ResourceJsonKey.js","path":"./dist/cjs/model/enum/ResourceJsonKey.js","statSize":959},{"id":6149,"label":"ResourceTag.js","path":"./dist/cjs/model/enum/ResourceTag.js","statSize":1230},{"id":9917,"label":"Tag.js","path":"./dist/cjs/model/enum/Tag.js","statSize":533},{"id":385,"label":"TextFormat.js","path":"./dist/cjs/model/enum/TextFormat.js","statSize":582},{"id":6877,"label":"TextLocation.js","path":"./dist/cjs/model/enum/TextLocation.js","statSize":425},{"id":2483,"label":"TextMarkType.js","path":"./dist/cjs/model/enum/TextMarkType.js","statSize":1164},{"id":9554,"label":"TextNodeType.js","path":"./dist/cjs/model/enum/TextNodeType.js","statSize":1006}],"parsedSize":0,"gzipSize":0},{"label":"info/enum","path":"./dist/cjs/model/info/enum","statSize":782,"groups":[{"id":3069,"label":"InfoFormat.js","path":"./dist/cjs/model/info/enum/InfoFormat.js","statSize":334},{"id":486,"label":"InfoType.js","path":"./dist/cjs/model/info/enum/InfoType.js","statSize":448}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"parser","path":"./dist/cjs/parser","statSize":235982,"groups":[{"label":"bitmark","path":"./dist/cjs/parser/bitmark","statSize":219767,"groups":[{"id":5633,"label":"BitmarkParser.js","path":"./dist/cjs/parser/bitmark/BitmarkParser.js","statSize":795},{"label":"peg","path":"./dist/cjs/parser/bitmark/peg","statSize":218972,"groups":[{"id":5078,"label":"BitmarkPegParser.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParser.js","statSize":319},{"id":3206,"label":"BitmarkPegParserHelper.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js","statSize":21782},{"id":7124,"label":"BitmarkPegParserProcessor.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js","statSize":34675},{"id":3029,"label":"BitmarkPegParserTypes.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js","statSize":2433},{"id":4266,"label":"BitmarkPegParserValidator.js","path":"./dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js","statSize":32596},{"id":7461,"label":"PeggyGrammarLocation.js","path":"./dist/cjs/parser/bitmark/peg/PeggyGrammarLocation.js","statSize":2879},{"label":"contentProcessors","path":"./dist/cjs/parser/bitmark/peg/contentProcessors","statSize":124288,"groups":[{"id":5033,"label":"BodyContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/BodyContentProcessor.js","statSize":11928},{"id":3045,"label":"BookChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js","statSize":2430},{"id":1083,"label":"CardContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js","statSize":40449},{"id":554,"label":"ClozeTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js","statSize":1395},{"id":6128,"label":"ContentProcessorUtils.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ContentProcessorUtils.js","statSize":2643},{"id":4402,"label":"DefaultTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js","statSize":3150},{"id":4091,"label":"ExampleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js","statSize":6973},{"id":4382,"label":"FooterContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/FooterContentProcessor.js","statSize":2884},{"id":3904,"label":"GapChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js","statSize":1689},{"id":8848,"label":"ImageSourceChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js","statSize":3252},{"id":6991,"label":"InternalCommentTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js","statSize":672},{"id":9289,"label":"ItemLeadChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadChainContentProcessor.js","statSize":1652},{"id":8216,"label":"ItemLeadTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js","statSize":914},{"id":5189,"label":"MarkChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js","statSize":2560},{"id":3063,"label":"MarkConfigChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js","statSize":2439},{"id":5980,"label":"MarkTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js","statSize":494},{"id":21,"label":"PersonChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js","statSize":2577},{"id":9647,"label":"PropertyContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js","statSize":9529},{"id":3967,"label":"RatingLevelChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/RatingLevelChainContentProcessor.js","statSize":1732},{"id":3990,"label":"ReferenceTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js","statSize":1184},{"id":6521,"label":"ResourceContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js","statSize":8147},{"id":4953,"label":"ServingsChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/ServingsChainContentProcessor.js","statSize":1296},{"id":4475,"label":"TechnicalTermChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js","statSize":1435},{"id":7667,"label":"TitleTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js","statSize":2644},{"id":9885,"label":"TrueFalseChainContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js","statSize":9079},{"id":4020,"label":"TrueFalseTagContentProcessor.js","path":"./dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js","statSize":1141}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0},{"label":"json","path":"./dist/cjs/parser/json","statSize":11001,"groups":[{"id":5663,"label":"JsonParser.js","path":"./dist/cjs/parser/json/JsonParser.js","statSize":11001}],"parsedSize":0,"gzipSize":0},{"label":"text","path":"./dist/cjs/parser/text","statSize":5214,"groups":[{"id":777,"label":"TextParser.js","path":"./dist/cjs/parser/text/TextParser.js","statSize":4910},{"label":"peg","path":"./dist/cjs/parser/text/peg","statSize":304,"groups":[{"id":2220,"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":38045,"groups":[{"id":6989,"label":"ArrayUtils.js","path":"./dist/cjs/utils/ArrayUtils.js","statSize":1474},{"id":8903,"label":"BitUtils.js","path":"./dist/cjs/utils/BitUtils.js","statSize":2625},{"id":4078,"label":"BooleanUtils.js","path":"./dist/cjs/utils/BooleanUtils.js","statSize":1839},{"id":8025,"label":"NumberUtils.js","path":"./dist/cjs/utils/NumberUtils.js","statSize":1890},{"id":955,"label":"ObjectUtils.js","path":"./dist/cjs/utils/ObjectUtils.js","statSize":14455},{"id":9681,"label":"StringUtils.js","path":"./dist/cjs/utils/StringUtils.js","statSize":6529},{"id":201,"label":"UrlUtils.js","path":"./dist/cjs/utils/UrlUtils.js","statSize":986},{"label":"env","path":"./dist/cjs/utils/env","statSize":8247,"groups":[{"id":6936,"label":"Env.js","path":"./dist/cjs/utils/env/Env.js","statSize":4069},{"id":6278,"label":"Environment.js","path":"./dist/cjs/utils/env/Environment.js","statSize":420},{"id":9561,"label":"Os.js","path":"./dist/cjs/utils/env/Os.js","statSize":361},{"id":2287,"label":"Version.js","path":"./dist/cjs/utils/env/Version.js","statSize":284},{"id":5659,"label":"userAgent.js","path":"./dist/cjs/utils/env/userAgent.js","statSize":3113}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"parsedSize":516222,"gzipSize":101299},{"label":"node_modules","path":"./node_modules","statSize":15077,"groups":[{"label":"@ncoderz/superenum/dist/esm","path":"./node_modules/@ncoderz/superenum/dist/esm","statSize":6980,"groups":[{"id":4718,"label":"superenum.js","path":"./node_modules/@ncoderz/superenum/dist/esm/superenum.js","statSize":6980}],"parsedSize":0,"gzipSize":0},{"label":"@ungap/structured-clone/cjs","path":"./node_modules/@ungap/structured-clone/cjs","statSize":8097,"groups":[{"id":5005,"label":"deserialize.js","path":"./node_modules/@ungap/structured-clone/cjs/deserialize.js","statSize":2210},{"id":7678,"label":"index.js","path":"./node_modules/@ungap/structured-clone/cjs/index.js","statSize":941},{"id":5416,"label":"serialize.js","path":"./node_modules/@ungap/structured-clone/cjs/serialize.js","statSize":4451},{"id":1731,"label":"types.js","path":"./node_modules/@ungap/structured-clone/cjs/types.js","statSize":495}],"parsedSize":0,"gzipSize":0}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
|
|
35
35
|
window.entrypoints = ["main"];
|
|
36
36
|
window.defaultSizes = "stat";
|
|
37
37
|
</script>
|
package/dist/cjs/ast/Builder.js
CHANGED
|
@@ -55,7 +55,7 @@ class Builder extends BaseBuilder_1.BaseBuilder {
|
|
|
55
55
|
* @returns
|
|
56
56
|
*/
|
|
57
57
|
buildBit(data) {
|
|
58
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
58
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
59
59
|
const bitConfig = Config_1.Config.getBitConfig(data.bitType);
|
|
60
60
|
const bitType = data.bitType;
|
|
61
61
|
// Text Format (accepts deprecated values, and converts them to the new format)
|
|
@@ -81,19 +81,19 @@ class Builder extends BaseBuilder_1.BaseBuilder {
|
|
|
81
81
|
// NOTE: Node order is important and is defined here
|
|
82
82
|
const node = Object.assign(Object.assign({ bitType, bitLevel: data.bitLevel, textFormat, resourceType: ResourceTag_1.ResourceTag.fromValue(data.resourceType), isCommented: data.isCommented,
|
|
83
83
|
// Properties
|
|
84
|
-
id: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.id, data.id), internalComment: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.internalComment, data.internalComment), customerId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.customerId, data.customerId), customerExternalId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.customerExternalId, data.customerExternalId), externalId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.externalId, data.externalId), spaceId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.spaceId, data.spaceId), padletId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.padletId, data.padletId), jupyterId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.jupyterId, data.jupyterId), jupyterExecutionCount: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.jupyterExecutionCount, data.jupyterExecutionCount), isPublic: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.isPublic, data.isPublic), aiGenerated: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.aiGenerated, data.aiGenerated), machineTranslated: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.machineTranslated, data.machineTranslated), searchIndex: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.searchIndex, data.searchIndex), analyticsTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.analyticsTag, data.analyticsTag), categoryTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.categoryTag, data.categoryTag), topicTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.topicTag, data.topicTag), altLangTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.altLangTag, data.altLangTag), feedbackEngine: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.feedbackEngine, data.feedbackEngine), feedbackType: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.feedbackType, data.feedbackType), disableFeedback: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.disableFeedback, data.disableFeedback), diffTo: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffTo, data.diffTo), diffOp: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffOp, data.diffOp), diffRef: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffRef, data.diffRef), diffContext: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffContext, data.diffContext), diffTime: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffTime, data.diffTime), path: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.path, data.path), releaseVersion: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.releaseVersion, data.releaseVersion), releaseKind: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.releaseKind, data.releaseKind), releaseDate: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.releaseDate, data.releaseDate), book: this.buildBooks(context, data.book), ageRange: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.ageRange, data.ageRange), lang: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.lang, data.lang), language: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.language, data.language), publisher: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.publisher, data.publisher), publisherName: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.publisherName, data.publisherName), theme: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.theme, data.theme), computerLanguage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.computerLanguage, data.computerLanguage), target: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.target, data.target), slug: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.slug, data.slug), tag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tag, data.tag), reductionTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.reductionTag, data.reductionTag), bubbleTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bubbleTag, data.bubbleTag), levelCEFRp: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelCEFRp, data.levelCEFRp), levelCEFR: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelCEFR, data.levelCEFR), levelILR: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelILR, data.levelILR), levelACTFL: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelACTFL, data.levelACTFL), icon: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.icon, data.icon), iconTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.iconTag, data.iconTag), colorTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.colorTag, data.colorTag), flashcardSet: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.flashcardSet, data.flashcardSet), subtype: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.subtype, data.subtype), bookAlias: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bookAlias, data.bookAlias), bookDiff: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bookDiff, data.bookDiff), coverImage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.coverImage, data.coverImage), coverColor: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.coverColor, data.coverColor), publications: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.publications, data.publications), author: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.author, data.author), subject: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.subject, data.subject), date: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.date, data.date), dateEnd: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.dateEnd, data.dateEnd), location: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.location, data.location), kind: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.kind, data.kind), hasMarkAsDone: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.hasMarkAsDone, data.hasMarkAsDone), processHandIn: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.processHandIn, data.processHandIn), chatWithBook: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.chatWithBook, data.chatWithBook), chatWithBookBrainKey: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.chatWithBookBrainKey, data.chatWithBookBrainKey), action: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.action, data.action), showInIndex: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.showInIndex, data.showInIndex), refAuthor: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refAuthor, data.refAuthor), refBookTitle: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refBookTitle, data.refBookTitle), refPublisher: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refPublisher, data.refPublisher), refPublicationYear: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refPublicationYear, data.refPublicationYear), citationStyle: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.citationStyle, data.citationStyle), blockId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.blockId, data.blockId), pageNo: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.pageNo, data.pageNo), x: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.x, data.x), y: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.y, data.y), width: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.width, data.width), height: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.height, data.height), index: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.index, data.index), classification: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.classification, data.classification), availableClassifications: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.availableClassifications, data.availableClassifications), allowedBit: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.allowedBit, data.allowedBit), tableFixedHeader: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableFixedHeader, data.tableFixedHeader), tableSearch: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableSearch, data.tableSearch), tableSort: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableSort, data.tableSort), tablePagination: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tablePagination, data.tablePagination), tablePaginationLimit: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tablePaginationLimit, data.tablePaginationLimit), tableHeight: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableHeight, data.tableHeight), tableWhitespaceNoWrap: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableWhitespaceNoWrap, data.tableWhitespaceNoWrap), tableAutoWidth: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableAutoWidth, data.tableAutoWidth), tableResizableColumns: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableResizableColumns, data.tableResizableColumns), tableColumnMinWidth: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableColumnMinWidth, data.tableColumnMinWidth), quizCountItems: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.quizCountItems, data.quizCountItems), quizStrikethroughSolutions: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.quizStrikethroughSolutions, data.quizStrikethroughSolutions), codeLineNumbers: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.codeLineNumbers, data.codeLineNumbers), codeMinimap: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.codeMinimap, data.codeMinimap), stripePricingTableId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.stripePricingTableId, data.stripePricingTableId), stripePublishableKey: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.stripePublishableKey, data.stripePublishableKey), thumbImage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.thumbImage, data.thumbImage), scormSource: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.scormSource, data.scormSource), posterImage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.posterImage, data.posterImage), focusX: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.focusX, data.focusX), focusY: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.focusY, data.focusY), pointerLeft: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.pointerLeft, data.pointerLeft), pointerTop: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.pointerTop, data.pointerTop), listItemIndent: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.listItemIndent, data.listItemIndent), backgroundWallpaper: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.backgroundWallpaper, data.backgroundWallpaper), hasBookNavigation: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.hasBookNavigation, data.hasBookNavigation), duration: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.duration, data.duration), deeplink: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.deeplink, data.deeplink), externalLink: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.externalLink, data.externalLink), externalLinkText: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.externalLinkText, data.externalLinkText), videoCallLink: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.videoCallLink, data.videoCallLink), vendorDashboardId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.vendorDashboardId, data.vendorDashboardId), vendorSurveyId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.vendorSurveyId, data.vendorSurveyId), vendorUrl: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.vendorUrl, data.vendorUrl), search: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.search, data.search), list: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.list, data.list), layer: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.layer, data.layer), layerRole: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.layerRole, data.layerRole), textReference: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.textReference, data.textReference), isTracked: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.isTracked, data.isTracked), isInfoOnly: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.isInfoOnly, data.isInfoOnly), imageFirst: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.imageFirst, data.imageFirst), activityType: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.activityType, data.activityType), labelTrue: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.labelTrue, data.labelTrue), labelFalse: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.labelFalse, data.labelFalse), content2Buy: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.content2Buy, data.content2Buy), mailingList: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.mailingList, data.mailingList), buttonCaption: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.buttonCaption, data.buttonCaption), callToActionUrl: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.callToActionUrl, data.callToActionUrl), caption: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.caption), quotedPerson: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.quotedPerson, data.quotedPerson), reasonableNumOfChars: reasonableNumOfCharsProperty, resolved: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.resolved, data.resolved), resolvedDate: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.resolvedDate, data.resolvedDate), resolvedBy: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.resolvedBy, data.resolvedBy), handInAcceptFileType: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.handInAcceptFileType, data.handInAcceptFileType), handInRequirement: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.handInRequirement, data.handInRequirement), handInInstruction: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.handInInstruction, data.handInInstruction), maxCreatedBits: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.maxCreatedBits, data.maxCreatedBits), maxDisplayLevel: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.maxDisplayLevel, data.maxDisplayLevel), maxTocChapterLevel: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.maxTocChapterLevel, data.maxTocChapterLevel), page: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.page, data.page), productId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productId, data.productId), product: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.product, data.product), productList: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productList, data.productList), productVideo: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productVideo, data.productVideo), productVideoList: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productVideoList, data.productVideoList), productFolder: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productFolder, data.productFolder), technicalTerm: this.buildTechnicalTerm(context, data.technicalTerm), servings: this.buildServings(context, data.servings), ratingLevelStart: this.buildRatingLevelStartEnd(context, data.ratingLevelStart), ratingLevelEnd: this.buildRatingLevelStartEnd(context, data.ratingLevelEnd), ratingLevelSelected: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.ratingLevelSelected, data.ratingLevelSelected), markConfig: this.buildMarkConfigs(context, data.markConfig), imageSource: this.buildImageSource(context, data.imageSource), person: this.buildPerson(context, data.person), bot: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bot, data.bot), referenceProperty: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.property_reference, data.referenceProperty),
|
|
84
|
+
id: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.id, data.id), internalComment: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.internalComment, data.internalComment), customerId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.customerId, data.customerId), customerExternalId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.customerExternalId, data.customerExternalId), externalId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.externalId, data.externalId), spaceId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.spaceId, data.spaceId), padletId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.padletId, data.padletId), jupyterId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.jupyterId, data.jupyterId), jupyterExecutionCount: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.jupyterExecutionCount, data.jupyterExecutionCount), isPublic: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.isPublic, data.isPublic), aiGenerated: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.aiGenerated, data.aiGenerated), machineTranslated: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.machineTranslated, data.machineTranslated), searchIndex: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.searchIndex, data.searchIndex), analyticsTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.analyticsTag, data.analyticsTag), categoryTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.categoryTag, data.categoryTag), topicTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.topicTag, data.topicTag), altLangTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.altLangTag, data.altLangTag), feedbackEngine: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.feedbackEngine, data.feedbackEngine), feedbackType: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.feedbackType, data.feedbackType), disableFeedback: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.disableFeedback, data.disableFeedback), diffTo: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffTo, data.diffTo), diffOp: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffOp, data.diffOp), diffRef: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffRef, data.diffRef), diffContext: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffContext, data.diffContext), diffTime: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.diffTime, data.diffTime), path: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.path, data.path), releaseVersion: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.releaseVersion, data.releaseVersion), releaseKind: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.releaseKind, data.releaseKind), releaseDate: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.releaseDate, data.releaseDate), book: this.buildBooks(context, data.book), ageRange: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.ageRange, data.ageRange), lang: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.lang, data.lang), language: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.language, data.language), publisher: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.publisher, data.publisher), publisherName: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.publisherName, data.publisherName), theme: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.theme, data.theme), computerLanguage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.computerLanguage, data.computerLanguage), target: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.target, data.target), slug: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.slug, data.slug), tag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tag, data.tag), reductionTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.reductionTag, data.reductionTag), bubbleTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bubbleTag, data.bubbleTag), levelCEFRp: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelCEFRp, data.levelCEFRp), levelCEFR: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelCEFR, data.levelCEFR), levelILR: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelILR, data.levelILR), levelACTFL: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.levelACTFL, data.levelACTFL), icon: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.icon, data.icon), iconTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.iconTag, data.iconTag), colorTag: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.colorTag, data.colorTag), flashcardSet: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.flashcardSet, data.flashcardSet), subtype: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.subtype, data.subtype), bookAlias: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bookAlias, data.bookAlias), bookDiff: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bookDiff, data.bookDiff), coverImage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.coverImage, data.coverImage), coverColor: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.coverColor, data.coverColor), publications: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.publications, data.publications), author: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.author, data.author), subject: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.subject, data.subject), date: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.date, data.date), dateEnd: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.dateEnd, data.dateEnd), location: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.location, data.location), kind: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.kind, data.kind), hasMarkAsDone: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.hasMarkAsDone, data.hasMarkAsDone), processHandIn: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.processHandIn, data.processHandIn), chatWithBook: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.chatWithBook, data.chatWithBook), chatWithBookBrainKey: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.chatWithBookBrainKey, data.chatWithBookBrainKey), action: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.action, data.action), showInIndex: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.showInIndex, data.showInIndex), refAuthor: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refAuthor, data.refAuthor), refBookTitle: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refBookTitle, data.refBookTitle), refPublisher: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refPublisher, data.refPublisher), refPublicationYear: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.refPublicationYear, data.refPublicationYear), citationStyle: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.citationStyle, data.citationStyle), blockId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.blockId, data.blockId), pageNo: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.pageNo, data.pageNo), x: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.x, data.x), y: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.y, data.y), width: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.width, data.width), height: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.height, data.height), index: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.index, data.index), classification: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.classification, data.classification), availableClassifications: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.availableClassifications, data.availableClassifications), allowedBit: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.allowedBit, data.allowedBit), tableFixedHeader: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableFixedHeader, data.tableFixedHeader), tableSearch: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableSearch, data.tableSearch), tableSort: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableSort, data.tableSort), tablePagination: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tablePagination, data.tablePagination), tablePaginationLimit: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tablePaginationLimit, data.tablePaginationLimit), tableHeight: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableHeight, data.tableHeight), tableWhitespaceNoWrap: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableWhitespaceNoWrap, data.tableWhitespaceNoWrap), tableAutoWidth: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableAutoWidth, data.tableAutoWidth), tableResizableColumns: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableResizableColumns, data.tableResizableColumns), tableColumnMinWidth: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.tableColumnMinWidth, data.tableColumnMinWidth), quizCountItems: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.quizCountItems, data.quizCountItems), quizStrikethroughSolutions: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.quizStrikethroughSolutions, data.quizStrikethroughSolutions), codeLineNumbers: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.codeLineNumbers, data.codeLineNumbers), codeMinimap: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.codeMinimap, data.codeMinimap), stripePricingTableId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.stripePricingTableId, data.stripePricingTableId), stripePublishableKey: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.stripePublishableKey, data.stripePublishableKey), thumbImage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.thumbImage, data.thumbImage), scormSource: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.scormSource, data.scormSource), posterImage: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.posterImage, data.posterImage), focusX: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.focusX, data.focusX), focusY: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.focusY, data.focusY), pointerLeft: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.pointerLeft, data.pointerLeft), pointerTop: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.pointerTop, data.pointerTop), listItemIndent: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.listItemIndent, data.listItemIndent), backgroundWallpaper: this.toImageResource(context, data.backgroundWallpaper), hasBookNavigation: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.hasBookNavigation, data.hasBookNavigation), duration: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.duration, data.duration), deeplink: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.deeplink, data.deeplink), externalLink: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.externalLink, data.externalLink), externalLinkText: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.externalLinkText, data.externalLinkText), videoCallLink: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.videoCallLink, data.videoCallLink), vendorDashboardId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.vendorDashboardId, data.vendorDashboardId), vendorSurveyId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.vendorSurveyId, data.vendorSurveyId), vendorUrl: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.vendorUrl, data.vendorUrl), search: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.search, data.search), list: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.list, data.list), layer: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.layer, data.layer), layerRole: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.layerRole, data.layerRole), textReference: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.textReference, data.textReference), isTracked: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.isTracked, data.isTracked), isInfoOnly: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.isInfoOnly, data.isInfoOnly), imageFirst: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.imageFirst, data.imageFirst), activityType: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.activityType, data.activityType), labelTrue: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.labelTrue, data.labelTrue), labelFalse: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.labelFalse, data.labelFalse), content2Buy: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.content2Buy, data.content2Buy), mailingList: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.mailingList, data.mailingList), buttonCaption: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.buttonCaption, data.buttonCaption), callToActionUrl: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.callToActionUrl, data.callToActionUrl), caption: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.caption), quotedPerson: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.quotedPerson, data.quotedPerson), reasonableNumOfChars: reasonableNumOfCharsProperty, resolved: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.resolved, data.resolved), resolvedDate: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.resolvedDate, data.resolvedDate), resolvedBy: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.resolvedBy, data.resolvedBy), handInAcceptFileType: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.handInAcceptFileType, data.handInAcceptFileType), handInRequirement: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.handInRequirement, data.handInRequirement), handInInstruction: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.handInInstruction, data.handInInstruction), maxCreatedBits: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.maxCreatedBits, data.maxCreatedBits), maxDisplayLevel: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.maxDisplayLevel, data.maxDisplayLevel), maxTocChapterLevel: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.maxTocChapterLevel, data.maxTocChapterLevel), page: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.page, data.page), productId: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productId, data.productId), product: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.product, data.product), productList: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productList, data.productList), productVideo: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productVideo, data.productVideo), productVideoList: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productVideoList, data.productVideoList), productFolder: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.productFolder, data.productFolder), technicalTerm: this.buildTechnicalTerm(context, data.technicalTerm), servings: this.buildServings(context, data.servings), ratingLevelStart: this.buildRatingLevelStartEnd(context, data.ratingLevelStart), ratingLevelEnd: this.buildRatingLevelStartEnd(context, data.ratingLevelEnd), ratingLevelSelected: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.ratingLevelSelected, data.ratingLevelSelected), markConfig: this.buildMarkConfigs(context, data.markConfig), imageSource: this.buildImageSource(context, data.imageSource), person: this.buildPerson(context, data.person), bot: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.bot, data.bot), referenceProperty: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.property_reference, data.referenceProperty),
|
|
85
85
|
// Book data
|
|
86
86
|
title: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.title), subtitle: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.subtitle), level: NumberUtils_1.NumberUtils.asNumber(data.level), toc: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.toc, data.toc), progress: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.progress, data.progress), anchor: data.anchor, reference: data.reference, referenceEnd: data.referenceEnd, revealSolutions: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.revealSolutions, data.revealSolutions),
|
|
87
87
|
// Item, Lead, Hint, Instruction
|
|
88
88
|
item: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.item), lead: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.lead), pageNumber: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.pageNumber), marginNumber: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.marginNumber), hint: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.hint), instruction: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.instruction), partialAnswer: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.partialAnswer, data.partialAnswer), sampleSolution: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.property_sampleSolution, data.sampleSolution), additionalSolutions: this.toAstProperty(PropertyConfigKey_1.PropertyConfigKey.additionalSolutions, data.additionalSolutions) }, this.toExample(data.__isDefaultExample, data.example)), {
|
|
89
89
|
// Person
|
|
90
|
-
imagePlaceholder:
|
|
90
|
+
imagePlaceholder: this.toImageResource(context, data.imagePlaceholder), resources: ArrayUtils_1.ArrayUtils.asArray(this.resourceBuilder.resourceFromResourceJson(context, data.resources)),
|
|
91
91
|
// Body, Card, Footer, must be after all other properties except the extraProperties and markup / parser
|
|
92
92
|
body: this.buildBody(context, data.body), cardNode, footer: this.buildFooter(context, data.footer),
|
|
93
93
|
// Must be after other properties/tags in the AST so key clashes are avoided correctly
|
|
94
94
|
extraProperties: this.parseExtraProperties(data.extraProperties), markup: data.markup, parser: data.parser,
|
|
95
95
|
// Private properties
|
|
96
|
-
__isDefaultExample: (
|
|
96
|
+
__isDefaultExample: (_b = data.__isDefaultExample) !== null && _b !== void 0 ? _b : false });
|
|
97
97
|
// Push reasonableNumOfChars down the tree for the interview bits
|
|
98
98
|
if (Config_1.Config.isOfBitType(node.bitType, BitType_1.BitType.interview)) {
|
|
99
99
|
this.pushDownTree(context, undefined, undefined, cardNode, 'questions', PropertyConfigKey_1.PropertyConfigKey.reasonableNumOfChars, data.reasonableNumOfChars);
|
|
@@ -103,10 +103,10 @@ class Builder extends BaseBuilder_1.BaseBuilder {
|
|
|
103
103
|
this.pushDownTree(context, undefined, undefined, cardNode, ['feedbacks', 'reason'], PropertyConfigKey_1.PropertyConfigKey.reasonableNumOfChars, data.reasonableNumOfChars);
|
|
104
104
|
}
|
|
105
105
|
// Push isCaseSensitive down the tree for the cloze, match and match-matrix bits
|
|
106
|
-
this.pushDownTree(context, [node.body, ...((
|
|
107
|
-
PropertyConfigKey_1.PropertyConfigKey.isCaseSensitive, (
|
|
108
|
-
this.pushDownTree(context, undefined, undefined, cardNode, 'pairs', PropertyConfigKey_1.PropertyConfigKey.isCaseSensitive, (
|
|
109
|
-
this.pushDownTree(context, undefined, undefined, cardNode, ['matrix', 'cells'], PropertyConfigKey_1.PropertyConfigKey.isCaseSensitive, (
|
|
106
|
+
this.pushDownTree(context, [node.body, ...((_d = (_c = cardNode === null || cardNode === void 0 ? void 0 : cardNode.cardBits) === null || _c === void 0 ? void 0 : _c.map((cardBit) => cardBit.body)) !== null && _d !== void 0 ? _d : [])], [BodyBitType_1.BodyBitType.gap], undefined, undefined, //'isCaseSensitive',
|
|
107
|
+
PropertyConfigKey_1.PropertyConfigKey.isCaseSensitive, (_e = data.isCaseSensitive) !== null && _e !== void 0 ? _e : true);
|
|
108
|
+
this.pushDownTree(context, undefined, undefined, cardNode, 'pairs', PropertyConfigKey_1.PropertyConfigKey.isCaseSensitive, (_f = data.isCaseSensitive) !== null && _f !== void 0 ? _f : true);
|
|
109
|
+
this.pushDownTree(context, undefined, undefined, cardNode, ['matrix', 'cells'], PropertyConfigKey_1.PropertyConfigKey.isCaseSensitive, (_g = data.isCaseSensitive) !== null && _g !== void 0 ? _g : true);
|
|
110
110
|
// If __isDefaultExample is set at the bit level, push the default example down the tree to the relevant nodes
|
|
111
111
|
this.pushExampleDownTree(context, node.body, cardNode, node.__isDefaultExample, convertedExample.example);
|
|
112
112
|
// Set default values
|
|
@@ -680,20 +680,23 @@ class Builder extends BaseBuilder_1.BaseBuilder {
|
|
|
680
680
|
* @param data - data for the node
|
|
681
681
|
* @returns
|
|
682
682
|
*/
|
|
683
|
-
buildIngredient(
|
|
684
|
-
var _a, _b, _c, _d, _e, _f
|
|
683
|
+
buildIngredient(context, data) {
|
|
684
|
+
var _a, _b, _c, _d, _e, _f;
|
|
685
685
|
if (!data)
|
|
686
686
|
return undefined;
|
|
687
687
|
// NOTE: Node order is important and is defined here
|
|
688
688
|
const node = {
|
|
689
|
-
title: (
|
|
690
|
-
checked: (
|
|
691
|
-
|
|
692
|
-
quantity: (
|
|
693
|
-
unit: (
|
|
694
|
-
unitAbbr: (
|
|
695
|
-
decimalPlaces: (
|
|
696
|
-
disableCalculation: (
|
|
689
|
+
title: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.title),
|
|
690
|
+
checked: (_a = data.checked) !== null && _a !== void 0 ? _a : false,
|
|
691
|
+
ingredient: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.ingredient),
|
|
692
|
+
quantity: (_b = data.quantity) !== null && _b !== void 0 ? _b : 0,
|
|
693
|
+
unit: (_c = data.unit) !== null && _c !== void 0 ? _c : '',
|
|
694
|
+
unitAbbr: (_d = data.unitAbbr) !== null && _d !== void 0 ? _d : '',
|
|
695
|
+
decimalPlaces: (_e = data.decimalPlaces) !== null && _e !== void 0 ? _e : 1,
|
|
696
|
+
disableCalculation: (_f = data.disableCalculation) !== null && _f !== void 0 ? _f : false,
|
|
697
|
+
item: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.item),
|
|
698
|
+
lead: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.lead),
|
|
699
|
+
hint: this.handleJsonText(context, TextLocation_1.TextLocation.tag, data.hint),
|
|
697
700
|
};
|
|
698
701
|
// Remove Unset Optionals
|
|
699
702
|
ObjectUtils_1.ObjectUtils.removeUnwantedProperties(node, {
|
|
@@ -1416,6 +1419,9 @@ class Builder extends BaseBuilder_1.BaseBuilder {
|
|
|
1416
1419
|
// Validate and correct invalid bits as much as possible
|
|
1417
1420
|
return NodeValidator_1.NodeValidator.validateCardBit(node);
|
|
1418
1421
|
}
|
|
1422
|
+
toImageResource(context, data) {
|
|
1423
|
+
return ArrayUtils_1.ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(context, ResourceTag_1.ResourceTag.image, data === null || data === void 0 ? void 0 : data.image));
|
|
1424
|
+
}
|
|
1419
1425
|
//
|
|
1420
1426
|
// Private
|
|
1421
1427
|
//
|