@gmb/bitmark-parser-generator 5.2.0 → 5.3.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.
@@ -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 [14 Dec 2025 at 22:54]</title>
6
+ <title>@gmb/bitmark-parser-generator [12 Jan 2026 at 07:31]</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/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9Ib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nRuLabN4CGNRkAE23na2+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":1256772,"parsedSize":546153,"gzipSize":106168,"groups":[{"label":"dist/browser/cjs","path":"./dist/browser/cjs","statSize":1250710,"groups":[{"id":922,"label":"index.cjs","path":"./dist/browser/cjs/index.cjs","statSize":1250710,"parsedSize":546049,"gzipSize":106168}],"parsedSize":546049,"gzipSize":106168},{"label":"node_modules/@ncoderz/superenum/dist","path":"./node_modules/@ncoderz/superenum/dist","statSize":6062,"groups":[{"id":722,"label":"index.cjs","path":"./node_modules/@ncoderz/superenum/dist/index.cjs","statSize":6062}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
34
+ window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1258290,"parsedSize":547261,"gzipSize":106364,"groups":[{"label":"dist/browser/cjs","path":"./dist/browser/cjs","statSize":1252228,"groups":[{"id":922,"label":"index.cjs","path":"./dist/browser/cjs/index.cjs","statSize":1252228,"parsedSize":547157,"gzipSize":106364}],"parsedSize":547157,"gzipSize":106364},{"label":"node_modules/@ncoderz/superenum/dist","path":"./node_modules/@ncoderz/superenum/dist","statSize":6062,"groups":[{"id":722,"label":"index.cjs","path":"./node_modules/@ncoderz/superenum/dist/index.cjs","statSize":6062}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
35
35
  window.entrypoints = ["main"];
36
36
  window.defaultSizes = "stat";
37
37
  window.compressionAlgorithm = "gzip";
@@ -317,6 +317,7 @@ var BitType = {
317
317
  flashcard1: "flashcard-1",
318
318
  focusImage: "focus-image",
319
319
  footNote: "foot-note",
320
+ formFreeText: "form-free-text",
320
321
  formula: "formula",
321
322
  gapText: "gap-text",
322
323
  gapTextInstructionGrouped: "gap-text-instruction-grouped",
@@ -329,6 +330,8 @@ var BitType = {
329
330
  handInFeedbackExpert: "hand-in-feedback-expert",
330
331
  handInFeedbackSelf: "hand-in-feedback-self",
331
332
  handInFile: "hand-in-file",
333
+ handInFreeText: "hand-in-free-text",
334
+ handInFreeTextExpert: "hand-in-free-text-expert",
332
335
  handInLocation: "hand-in-location",
333
336
  handInPhoto: "hand-in-photo",
334
337
  handInScan: "hand-in-scan",
@@ -1341,6 +1344,7 @@ var propertyKeys = {
1341
1344
  property_platformMargin: "@platformMargin",
1342
1345
  property_platformBorderRadius: "@platformBorderRadius",
1343
1346
  property_platformSelectionBorderRadius: "@platformSelectionBorderRadius",
1347
+ property_platformLogoMaxHeight: "@platformLogoMaxHeight",
1344
1348
  property_platformNeedsShadow: "@platformNeedsShadow",
1345
1349
  property_platformSeparatorColor: "@platformSeparatorColor",
1346
1350
  property_platformTextSelectionColor: "@platformTextSelectionColor",
@@ -8783,6 +8787,11 @@ var BITS = {
8783
8787
  ],
8784
8788
  maxCount: 1
8785
8789
  },
8790
+ {
8791
+ key: ConfigKey.property_platformLogoMaxHeight,
8792
+ description: "Maximum height for the platform logo",
8793
+ format: TagFormat.number
8794
+ },
8786
8795
  {
8787
8796
  key: ConfigKey.group_platformStylesCommon,
8788
8797
  description: "Common platform styles"
@@ -9477,6 +9486,11 @@ var BITS = {
9477
9486
  baseBitType: BitType._standard,
9478
9487
  description: "Footnote bit, used to create footnotes in articles or books"
9479
9488
  },
9489
+ [BitType.formFreeText]: {
9490
+ since: "5.3.0",
9491
+ baseBitType: BitType.interview,
9492
+ description: "Form free text bit, used to create free text forms in articles or books"
9493
+ },
9480
9494
  [BitType.groupBorn]: {
9481
9495
  since: "1.3.0",
9482
9496
  baseBitType: BitType._standard,
@@ -9536,6 +9550,16 @@ var BITS = {
9536
9550
  }
9537
9551
  ]
9538
9552
  },
9553
+ [BitType.handInFreeText]: {
9554
+ since: "5.3.0",
9555
+ baseBitType: BitType.interview,
9556
+ description: "Hand in free text bit, used to create free text submission sections in articles or books"
9557
+ },
9558
+ [BitType.handInFreeTextExpert]: {
9559
+ since: "5.3.0",
9560
+ baseBitType: BitType.interview,
9561
+ description: "Hand in free text expert bit, used to create free text expert submission sections in articles or books"
9562
+ },
9539
9563
  [BitType.handInLocation]: {
9540
9564
  since: "1.5.15",
9541
9565
  baseBitType: BitType._standard,
@@ -10279,7 +10303,7 @@ var instance2 = new Config();
10279
10303
  // src/generated/package_info.ts
10280
10304
  var PACKAGE_INFO = {
10281
10305
  "name": "@gmb/bitmark-parser-generator",
10282
- "version": "5.2.0",
10306
+ "version": "5.3.0",
10283
10307
  "author": "Get More Brain Ltd",
10284
10308
  "license": "ISC",
10285
10309
  "description": "A bitmark parser and generator using Peggy.js"
@@ -11021,6 +11045,8 @@ var NodeType = {
11021
11045
  platformIconValue: "platformIconValue",
11022
11046
  platformLogo: "platformLogo",
11023
11047
  platformLogoValue: "platformLogoValue",
11048
+ platformLogoMaxHeight: "platformLogoMaxHeight",
11049
+ platformLogoMaxHeightValue: "platformLogoMaxHeightValue",
11024
11050
  platformPrimaryColor: "platformPrimaryColor",
11025
11051
  platformPrimaryColorValue: "platformPrimaryColorValue",
11026
11052
  platformSecondaryColor: "platformSecondaryColor",
@@ -24809,6 +24835,12 @@ var Builder = class extends BaseBuilder {
24809
24835
  ),
24810
24836
  platformIcon: this.toImageResource(context, data.platformIcon),
24811
24837
  platformLogo: this.toImageResource(context, data.platformLogo),
24838
+ platformLogoMaxHeight: this.toAstProperty(
24839
+ bitType,
24840
+ ConfigKey.property_platformLogoMaxHeight,
24841
+ data.platformLogoMaxHeight,
24842
+ options
24843
+ ),
24812
24844
  platformPrimaryColor: this.toAstProperty(
24813
24845
  bitType,
24814
24846
  ConfigKey.property_platformPrimaryColor,
@@ -30563,6 +30595,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
30563
30595
  if (instance2.isOfBitType(bitType, BitType.platformBrandTarget)) {
30564
30596
  if (bitJson.platformBrandTarget == null) bitJson.platformBrandTarget = "none";
30565
30597
  }
30598
+ if (instance2.isOfBitType(bitType, BitType.platformHeader)) {
30599
+ if (bitJson.platformLogoMaxHeight == null) bitJson.platformLogoMaxHeight = 40;
30600
+ }
30566
30601
  if (isTopLevelExample) {
30567
30602
  if (bitJson.isExample == null) bitJson.isExample = false;
30568
30603
  } else {
@@ -32832,6 +32867,9 @@ function parseFeedback(_context, _bitType, cardSet) {
32832
32867
  const choice = {
32833
32868
  choice: tfTags.choice,
32834
32869
  requireReason: tfTags.isCorrect,
32870
+ item: tfTags.item,
32871
+ lead: tfTags.lead,
32872
+ instruction: tfTags.instruction,
32835
32873
  __isDefaultExample,
32836
32874
  example
32837
32875
  };