@gmb/bitmark-parser-generator 5.33.0 → 5.35.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/index.cjs CHANGED
@@ -332,6 +332,7 @@ var BitType = {
332
332
  extractorPageNumberCollapsible: "extractor-page-number-collapsible",
333
333
  extractorPageWithBlocks: "extractor-page-with-blocks",
334
334
  extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible",
335
+ extractorReconcile: "extractor-reconcile",
335
336
  extractorRepeatedText: "extractor-repeated-text",
336
337
  extractorRule: "extractor-rule",
337
338
  extractorTheme: "extractor-theme",
@@ -1568,6 +1569,9 @@ var propertyKeys = {
1568
1569
  property_resolvedBy: "@resolvedBy",
1569
1570
  property_resolvedDate: "@resolvedDate",
1570
1571
  property_revealSolutions: "@revealSolutions",
1572
+ property_reviewTag: "@reviewTag",
1573
+ property_reviewerTag: "@reviewerTag",
1574
+ property_rightsPolicy: "@rightsPolicy",
1571
1575
  property_sampleSolution: "@sampleSolution",
1572
1576
  property_scormSource: "@scormSource",
1573
1577
  property_search: "@search",
@@ -2577,6 +2581,7 @@ var CARDSETS = {
2577
2581
  key: ConfigKey.tag_title,
2578
2582
  description: "Title of the definition.",
2579
2583
  format: TagFormat.plainText,
2584
+ nullable: true,
2580
2585
  jsonKey: "^heading.forKeys",
2581
2586
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2582
2587
  },
@@ -2617,6 +2622,7 @@ var CARDSETS = {
2617
2622
  key: ConfigKey.tag_title,
2618
2623
  description: "Title of the definition.",
2619
2624
  format: TagFormat.plainText,
2625
+ nullable: true,
2620
2626
  jsonKey: "^heading.forValues",
2621
2627
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2622
2628
  },
@@ -2695,6 +2701,7 @@ var CARDSETS = {
2695
2701
  key: ConfigKey.tag_title,
2696
2702
  description: "Title of the definition.",
2697
2703
  format: TagFormat.plainText,
2704
+ nullable: true,
2698
2705
  jsonKey: "^heading.forKeys",
2699
2706
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2700
2707
  },
@@ -2736,6 +2743,7 @@ var CARDSETS = {
2736
2743
  key: ConfigKey.tag_title,
2737
2744
  description: "Title of the definition.",
2738
2745
  format: TagFormat.plainText,
2746
+ nullable: true,
2739
2747
  jsonKey: "^heading.forValues",
2740
2748
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2741
2749
  },
@@ -2849,6 +2857,7 @@ var CARDSETS = {
2849
2857
  key: ConfigKey.tag_title,
2850
2858
  description: "Title of the match pair.",
2851
2859
  format: TagFormat.plainText,
2860
+ nullable: true,
2852
2861
  jsonKey: "^heading.forKeys",
2853
2862
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2854
2863
  },
@@ -2978,6 +2987,7 @@ var CARDSETS = {
2978
2987
  key: ConfigKey.tag_title,
2979
2988
  description: "Title of the match pair.",
2980
2989
  format: TagFormat.plainText,
2990
+ nullable: true,
2981
2991
  jsonKey: "^heading.forValues",
2982
2992
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2983
2993
  },
@@ -3024,6 +3034,7 @@ var CARDSETS = {
3024
3034
  key: ConfigKey.tag_title,
3025
3035
  description: "Title of the audio match pair.",
3026
3036
  format: TagFormat.plainText,
3037
+ nullable: true,
3027
3038
  jsonKey: "^heading.forKeys",
3028
3039
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3029
3040
  },
@@ -3055,6 +3066,7 @@ var CARDSETS = {
3055
3066
  key: ConfigKey.tag_title,
3056
3067
  description: "Title of the audio match pair.",
3057
3068
  format: TagFormat.plainText,
3069
+ nullable: true,
3058
3070
  jsonKey: "^heading.forValues",
3059
3071
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3060
3072
  },
@@ -3092,6 +3104,7 @@ var CARDSETS = {
3092
3104
  key: ConfigKey.tag_title,
3093
3105
  description: "Title of the image match pair.",
3094
3106
  format: TagFormat.plainText,
3107
+ nullable: true,
3095
3108
  jsonKey: "^heading.forKeys",
3096
3109
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3097
3110
  },
@@ -3123,6 +3136,7 @@ var CARDSETS = {
3123
3136
  key: ConfigKey.tag_title,
3124
3137
  description: "Title of the image match pair.",
3125
3138
  format: TagFormat.plainText,
3139
+ nullable: true,
3126
3140
  jsonKey: "^heading.forValues",
3127
3141
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3128
3142
  },
@@ -3198,6 +3212,7 @@ var CARDSETS = {
3198
3212
  key: ConfigKey.tag_title,
3199
3213
  description: "Title of the match matrix.",
3200
3214
  format: TagFormat.plainText,
3215
+ nullable: true,
3201
3216
  jsonKey: "^heading.forKeys",
3202
3217
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3203
3218
  },
@@ -3310,6 +3325,7 @@ var CARDSETS = {
3310
3325
  key: ConfigKey.tag_title,
3311
3326
  description: "Title of the match matrix.",
3312
3327
  format: TagFormat.plainText,
3328
+ nullable: true,
3313
3329
  jsonKey: "^heading.forValues",
3314
3330
  exportJsonKey: [
3315
3331
  { "@keyonly": { "@bit": { heading: { forValues: [""] } } } },
@@ -3592,6 +3608,7 @@ var CARDSETS = {
3592
3608
  key: ConfigKey.tag_title,
3593
3609
  description: "Title of the feedback.",
3594
3610
  format: TagFormat.plainText,
3611
+ nullable: true,
3595
3612
  jsonKey: "^heading.forKeys",
3596
3613
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3597
3614
  }
@@ -3674,6 +3691,7 @@ var CARDSETS = {
3674
3691
  key: ConfigKey.tag_title,
3675
3692
  description: "Title of the feedback.",
3676
3693
  format: TagFormat.plainText,
3694
+ nullable: true,
3677
3695
  jsonKey: "^heading.forValues",
3678
3696
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3679
3697
  }
@@ -4461,6 +4479,22 @@ var GROUPS = {
4461
4479
  description: "The original location of the information in the original source material",
4462
4480
  format: TagFormat.plainText
4463
4481
  },
4482
+ {
4483
+ key: ConfigKey.property_copyright,
4484
+ description: "The copyright information for the bit",
4485
+ format: TagFormat.plainText
4486
+ },
4487
+ {
4488
+ key: ConfigKey.property_license,
4489
+ description: "The license for the bit",
4490
+ format: TagFormat.plainText
4491
+ },
4492
+ {
4493
+ key: ConfigKey.property_rightsPolicy,
4494
+ description: "The rights policy or policies for the bit",
4495
+ format: TagFormat.plainText,
4496
+ maxCount: Count.infinity
4497
+ },
4464
4498
  {
4465
4499
  key: ConfigKey.property_isTemplate,
4466
4500
  description: "If true, the bit is a template",
@@ -4487,7 +4521,8 @@ var GROUPS = {
4487
4521
  {
4488
4522
  key: ConfigKey.property_aiGenerated,
4489
4523
  description: "If true, the bit is AI-generated",
4490
- format: TagFormat.boolean
4524
+ format: TagFormat.boolean,
4525
+ nullable: true
4491
4526
  },
4492
4527
  {
4493
4528
  key: ConfigKey.property_machineTranslated,
@@ -4502,7 +4537,8 @@ var GROUPS = {
4502
4537
  {
4503
4538
  key: ConfigKey.property_spansPageBreak,
4504
4539
  description: "If true, the bit spans a page break",
4505
- format: TagFormat.boolean
4540
+ format: TagFormat.boolean,
4541
+ nullable: true
4506
4542
  },
4507
4543
  {
4508
4544
  key: ConfigKey.property_searchIndex,
@@ -4605,6 +4641,7 @@ var GROUPS = {
4605
4641
  key: ConfigKey.property_theme,
4606
4642
  description: "The theme(s) for the bit",
4607
4643
  format: TagFormat.plainText,
4644
+ nullable: true,
4608
4645
  maxCount: Count.infinity
4609
4646
  },
4610
4647
  {
@@ -4623,6 +4660,7 @@ var GROUPS = {
4623
4660
  key: ConfigKey.property_tag,
4624
4661
  description: "The tag(s) for the bit",
4625
4662
  format: TagFormat.plainText,
4663
+ nullable: true,
4626
4664
  maxCount: Count.infinity
4627
4665
  },
4628
4666
  {
@@ -4642,10 +4680,23 @@ var GROUPS = {
4642
4680
  exportJsonKey: { tags: ["$"] },
4643
4681
  description: "The tag(s) for the group",
4644
4682
  format: TagFormat.plainText,
4683
+ nullable: true,
4645
4684
  maxCount: Count.infinity
4646
4685
  }
4647
4686
  ]
4648
4687
  },
4688
+ {
4689
+ key: ConfigKey.property_reviewTag,
4690
+ description: "The review tag(s) for the bit",
4691
+ format: TagFormat.plainText,
4692
+ maxCount: Count.infinity
4693
+ },
4694
+ {
4695
+ key: ConfigKey.property_reviewerTag,
4696
+ description: "The reviewer tag(s) for the bit",
4697
+ format: TagFormat.plainText,
4698
+ maxCount: Count.infinity
4699
+ },
4649
4700
  {
4650
4701
  key: ConfigKey.property_reductionTag,
4651
4702
  description: "The reduction tag(s) for the bit",
@@ -4747,6 +4798,20 @@ var GROUPS = {
4747
4798
  description: "The layer role(s) for the bit",
4748
4799
  format: TagFormat.plainText,
4749
4800
  maxCount: Count.infinity
4801
+ },
4802
+ {
4803
+ // Universal @internalComment — declares in config what Config.ts also
4804
+ // injects programmatically into every bit (its push runs last and wins
4805
+ // the keyed merge, so runtime behaviour is unchanged). Declared here so
4806
+ // the config export (ConfigBuilder → assets/config → configurator →
4807
+ // bitmark.json) carries the tag for downstream parsers. Empty
4808
+ // exportJsonKey: consumed but never emitted to the bit JSON (the value
4809
+ // is routed to parser.internalComments).
4810
+ key: ConfigKey.property_internalComment,
4811
+ description: "Internal comment for the bit.",
4812
+ format: TagFormat.plainText,
4813
+ maxCount: Count.infinity,
4814
+ exportJsonKey: {}
4750
4815
  }
4751
4816
  ]
4752
4817
  },
@@ -4903,7 +4968,8 @@ var GROUPS = {
4903
4968
  {
4904
4969
  key: ConfigKey.property_size,
4905
4970
  description: "The size of the image",
4906
- format: TagFormat.number
4971
+ format: TagFormat.number,
4972
+ nullable: true
4907
4973
  },
4908
4974
  {
4909
4975
  key: ConfigKey.property_format,
@@ -5806,6 +5872,7 @@ var GROUPS = {
5806
5872
  key: ConfigKey.property_coverImage,
5807
5873
  description: "The cover image(s) of the book",
5808
5874
  format: TagFormat.plainText,
5875
+ nullable: true,
5809
5876
  maxCount: Count.infinity
5810
5877
  },
5811
5878
  {
@@ -6122,7 +6189,8 @@ var GROUPS = {
6122
6189
  {
6123
6190
  key: ConfigKey.property_platformNeedsShadow,
6124
6191
  description: "If true, the platform needs shadow",
6125
- format: TagFormat.boolean
6192
+ format: TagFormat.boolean,
6193
+ nullable: true
6126
6194
  }
6127
6195
  ]
6128
6196
  },
@@ -6133,7 +6201,8 @@ var GROUPS = {
6133
6201
  {
6134
6202
  key: ConfigKey.property_revealSolutions,
6135
6203
  description: "If true, the quiz solutions are revealed",
6136
- format: TagFormat.boolean
6204
+ format: TagFormat.boolean,
6205
+ nullable: true
6137
6206
  // defaultValue: 'false',
6138
6207
  },
6139
6208
  {
@@ -6280,12 +6349,14 @@ var GROUPS = {
6280
6349
  {
6281
6350
  key: ConfigKey.property_width,
6282
6351
  description: "The width of the image",
6283
- format: TagFormat.number
6352
+ format: TagFormat.number,
6353
+ nullable: true
6284
6354
  },
6285
6355
  {
6286
6356
  key: ConfigKey.property_height,
6287
6357
  description: "The height of the image",
6288
- format: TagFormat.number
6358
+ format: TagFormat.number,
6359
+ nullable: true
6289
6360
  },
6290
6361
  {
6291
6362
  key: ConfigKey.property_alt,
@@ -6330,12 +6401,14 @@ var GROUPS = {
6330
6401
  {
6331
6402
  key: ConfigKey.property_width,
6332
6403
  description: "The width of the image",
6333
- format: TagFormat.number
6404
+ format: TagFormat.number,
6405
+ nullable: true
6334
6406
  },
6335
6407
  {
6336
6408
  key: ConfigKey.property_height,
6337
6409
  description: "The height of the image",
6338
- format: TagFormat.number
6410
+ format: TagFormat.number,
6411
+ nullable: true
6339
6412
  },
6340
6413
  {
6341
6414
  key: ConfigKey.property_alt,
@@ -6387,12 +6460,14 @@ var GROUPS = {
6387
6460
  {
6388
6461
  key: ConfigKey.property_width,
6389
6462
  description: "The width of the video",
6390
- format: TagFormat.number
6463
+ format: TagFormat.number,
6464
+ nullable: true
6391
6465
  },
6392
6466
  {
6393
6467
  key: ConfigKey.property_height,
6394
6468
  description: "The height of the video",
6395
- format: TagFormat.number
6469
+ format: TagFormat.number,
6470
+ nullable: true
6396
6471
  },
6397
6472
  {
6398
6473
  key: ConfigKey.property_duration,
@@ -7477,7 +7552,8 @@ var BITS = {
7477
7552
  {
7478
7553
  key: ConfigKey.property_coverImage,
7479
7554
  description: "Cover image of the catalog item",
7480
- format: TagFormat.plainText
7555
+ format: TagFormat.plainText,
7556
+ nullable: true
7481
7557
  },
7482
7558
  {
7483
7559
  key: ConfigKey.resource_coverImage,
@@ -7641,7 +7717,8 @@ var BITS = {
7641
7717
  {
7642
7718
  key: ConfigKey.property_coverImage,
7643
7719
  description: "Cover image of the catalog item",
7644
- format: TagFormat.plainText
7720
+ format: TagFormat.plainText,
7721
+ nullable: true
7645
7722
  },
7646
7723
  {
7647
7724
  key: ConfigKey.resource_coverImage,
@@ -7805,7 +7882,8 @@ var BITS = {
7805
7882
  {
7806
7883
  key: ConfigKey.property_coverImage,
7807
7884
  description: "Cover image of the catalog item",
7808
- format: TagFormat.plainText
7885
+ format: TagFormat.plainText,
7886
+ nullable: true
7809
7887
  },
7810
7888
  {
7811
7889
  key: ConfigKey.property_content2Buy,
@@ -8591,12 +8669,14 @@ var BITS = {
8591
8669
  {
8592
8670
  key: ConfigKey.property_quizCountItems,
8593
8671
  description: "The number of items in the cloze quiz",
8594
- format: TagFormat.boolean
8672
+ format: TagFormat.boolean,
8673
+ nullable: true
8595
8674
  },
8596
8675
  {
8597
8676
  key: ConfigKey.property_quizStrikethroughSolutions,
8598
8677
  description: "If the cloze solutions should be strikethrough",
8599
- format: TagFormat.boolean
8678
+ format: TagFormat.boolean,
8679
+ nullable: true
8600
8680
  },
8601
8681
  {
8602
8682
  key: ConfigKey.group_gap,
@@ -10292,6 +10372,12 @@ var BITS = {
10292
10372
  description: "Extractor theme bit, used to store design/theme JSON extracted from documents",
10293
10373
  textFormatDefault: TextFormat.json
10294
10374
  },
10375
+ [BitType.extractorReconcile]: {
10376
+ since: "5.35.0",
10377
+ baseBitType: BitType._standard,
10378
+ description: "Extractor reconcile bit, used to store PDF-compare reconciliation decisions (config and issues) in JSON",
10379
+ textFormatDefault: TextFormat.json
10380
+ },
10295
10381
  [BitType.extractorAiChat]: {
10296
10382
  since: "3.19.0",
10297
10383
  baseBitType: BitType._standard,
@@ -10315,12 +10401,14 @@ var BITS = {
10315
10401
  {
10316
10402
  key: ConfigKey.property_x,
10317
10403
  description: "X-coordinate for the block, used to position the block on the page",
10318
- format: TagFormat.number
10404
+ format: TagFormat.number,
10405
+ nullable: true
10319
10406
  },
10320
10407
  {
10321
10408
  key: ConfigKey.property_y,
10322
10409
  description: "Y-coordinate for the block, used to position the block on the page",
10323
- format: TagFormat.number
10410
+ format: TagFormat.number,
10411
+ nullable: true
10324
10412
  },
10325
10413
  {
10326
10414
  key: ConfigKey.property_width,
@@ -12078,7 +12166,8 @@ var BITS = {
12078
12166
  {
12079
12167
  key: ConfigKey.property_product,
12080
12168
  description: "Product reference for the product page, used to link to the product",
12081
- format: TagFormat.plainText
12169
+ format: TagFormat.plainText,
12170
+ nullable: true
12082
12171
  }
12083
12172
  ]
12084
12173
  },
@@ -12097,6 +12186,7 @@ var BITS = {
12097
12186
  key: ConfigKey.property_product,
12098
12187
  description: "Product reference for the product list, used to link to the product",
12099
12188
  format: TagFormat.plainText,
12189
+ nullable: true,
12100
12190
  maxCount: Count.infinity
12101
12191
  }
12102
12192
  // {
@@ -12658,7 +12748,8 @@ var BITS = {
12658
12748
  {
12659
12749
  key: ConfigKey.property_ratingLevelSelected,
12660
12750
  description: "Selected level for the rating survey, used to define the default rating",
12661
- format: TagFormat.number
12751
+ format: TagFormat.number,
12752
+ nullable: true
12662
12753
  },
12663
12754
  {
12664
12755
  key: ConfigKey.property_buttonCaption,
@@ -13990,7 +14081,7 @@ var instance2 = new Config();
13990
14081
  // src/generated/package_info.ts
13991
14082
  var PACKAGE_INFO = {
13992
14083
  "name": "@gmb/bitmark-parser-generator",
13993
- "version": "5.33.0",
14084
+ "version": "5.35.0",
13994
14085
  "author": "Get More Brain Ltd",
13995
14086
  "license": "ISC",
13996
14087
  "description": "A bitmark parser and generator using Peggy.js"
@@ -14911,6 +15002,12 @@ var NodeType = {
14911
15002
  responses: "responses",
14912
15003
  responsesValue: "responsesValue",
14913
15004
  revealSolutions: "revealSolutions",
15005
+ reviewTag: "reviewTag",
15006
+ reviewTagValue: "reviewTagValue",
15007
+ reviewerTag: "reviewerTag",
15008
+ reviewerTagValue: "reviewerTagValue",
15009
+ rightsPolicy: "rightsPolicy",
15010
+ rightsPolicyValue: "rightsPolicyValue",
14914
15011
  root: "root",
14915
15012
  // bit type (root)
14916
15013
  rows: "rows",
@@ -28280,6 +28377,14 @@ var Builder = class extends BaseBuilder {
28280
28377
  data.jupyterExecutionCount,
28281
28378
  options
28282
28379
  ),
28380
+ copyright: this.toAstProperty(bitType, ConfigKey.property_copyright, data.copyright, options),
28381
+ license: this.toAstProperty(bitType, ConfigKey.property_license, data.license, options),
28382
+ rightsPolicy: this.toAstProperty(
28383
+ bitType,
28384
+ ConfigKey.property_rightsPolicy,
28385
+ data.rightsPolicy,
28386
+ options
28387
+ ),
28283
28388
  sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
28284
28389
  isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
28285
28390
  isTemplate: this.toAstProperty(
@@ -28439,6 +28544,13 @@ var Builder = class extends BaseBuilder {
28439
28544
  slug: this.toAstProperty(bitType, ConfigKey.property_slug, data.slug, options),
28440
28545
  tag: this.toAstProperty(bitType, ConfigKey.property_tag, data.tag, options),
28441
28546
  groupTag: this.buildGroupTags(context, data.groupTag),
28547
+ reviewTag: this.toAstProperty(bitType, ConfigKey.property_reviewTag, data.reviewTag, options),
28548
+ reviewerTag: this.toAstProperty(
28549
+ bitType,
28550
+ ConfigKey.property_reviewerTag,
28551
+ data.reviewerTag,
28552
+ options
28553
+ ),
28442
28554
  reductionTag: this.toAstProperty(
28443
28555
  bitType,
28444
28556
  ConfigKey.property_reductionTag,