@gmb/bitmark-parser-generator 5.34.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",
@@ -1570,6 +1571,7 @@ var propertyKeys = {
1570
1571
  property_revealSolutions: "@revealSolutions",
1571
1572
  property_reviewTag: "@reviewTag",
1572
1573
  property_reviewerTag: "@reviewerTag",
1574
+ property_rightsPolicy: "@rightsPolicy",
1573
1575
  property_sampleSolution: "@sampleSolution",
1574
1576
  property_scormSource: "@scormSource",
1575
1577
  property_search: "@search",
@@ -2579,6 +2581,7 @@ var CARDSETS = {
2579
2581
  key: ConfigKey.tag_title,
2580
2582
  description: "Title of the definition.",
2581
2583
  format: TagFormat.plainText,
2584
+ nullable: true,
2582
2585
  jsonKey: "^heading.forKeys",
2583
2586
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2584
2587
  },
@@ -2619,6 +2622,7 @@ var CARDSETS = {
2619
2622
  key: ConfigKey.tag_title,
2620
2623
  description: "Title of the definition.",
2621
2624
  format: TagFormat.plainText,
2625
+ nullable: true,
2622
2626
  jsonKey: "^heading.forValues",
2623
2627
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2624
2628
  },
@@ -2697,6 +2701,7 @@ var CARDSETS = {
2697
2701
  key: ConfigKey.tag_title,
2698
2702
  description: "Title of the definition.",
2699
2703
  format: TagFormat.plainText,
2704
+ nullable: true,
2700
2705
  jsonKey: "^heading.forKeys",
2701
2706
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2702
2707
  },
@@ -2738,6 +2743,7 @@ var CARDSETS = {
2738
2743
  key: ConfigKey.tag_title,
2739
2744
  description: "Title of the definition.",
2740
2745
  format: TagFormat.plainText,
2746
+ nullable: true,
2741
2747
  jsonKey: "^heading.forValues",
2742
2748
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2743
2749
  },
@@ -2851,6 +2857,7 @@ var CARDSETS = {
2851
2857
  key: ConfigKey.tag_title,
2852
2858
  description: "Title of the match pair.",
2853
2859
  format: TagFormat.plainText,
2860
+ nullable: true,
2854
2861
  jsonKey: "^heading.forKeys",
2855
2862
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2856
2863
  },
@@ -2980,6 +2987,7 @@ var CARDSETS = {
2980
2987
  key: ConfigKey.tag_title,
2981
2988
  description: "Title of the match pair.",
2982
2989
  format: TagFormat.plainText,
2990
+ nullable: true,
2983
2991
  jsonKey: "^heading.forValues",
2984
2992
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2985
2993
  },
@@ -3026,6 +3034,7 @@ var CARDSETS = {
3026
3034
  key: ConfigKey.tag_title,
3027
3035
  description: "Title of the audio match pair.",
3028
3036
  format: TagFormat.plainText,
3037
+ nullable: true,
3029
3038
  jsonKey: "^heading.forKeys",
3030
3039
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3031
3040
  },
@@ -3057,6 +3066,7 @@ var CARDSETS = {
3057
3066
  key: ConfigKey.tag_title,
3058
3067
  description: "Title of the audio match pair.",
3059
3068
  format: TagFormat.plainText,
3069
+ nullable: true,
3060
3070
  jsonKey: "^heading.forValues",
3061
3071
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3062
3072
  },
@@ -3094,6 +3104,7 @@ var CARDSETS = {
3094
3104
  key: ConfigKey.tag_title,
3095
3105
  description: "Title of the image match pair.",
3096
3106
  format: TagFormat.plainText,
3107
+ nullable: true,
3097
3108
  jsonKey: "^heading.forKeys",
3098
3109
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3099
3110
  },
@@ -3125,6 +3136,7 @@ var CARDSETS = {
3125
3136
  key: ConfigKey.tag_title,
3126
3137
  description: "Title of the image match pair.",
3127
3138
  format: TagFormat.plainText,
3139
+ nullable: true,
3128
3140
  jsonKey: "^heading.forValues",
3129
3141
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3130
3142
  },
@@ -3200,6 +3212,7 @@ var CARDSETS = {
3200
3212
  key: ConfigKey.tag_title,
3201
3213
  description: "Title of the match matrix.",
3202
3214
  format: TagFormat.plainText,
3215
+ nullable: true,
3203
3216
  jsonKey: "^heading.forKeys",
3204
3217
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3205
3218
  },
@@ -3312,6 +3325,7 @@ var CARDSETS = {
3312
3325
  key: ConfigKey.tag_title,
3313
3326
  description: "Title of the match matrix.",
3314
3327
  format: TagFormat.plainText,
3328
+ nullable: true,
3315
3329
  jsonKey: "^heading.forValues",
3316
3330
  exportJsonKey: [
3317
3331
  { "@keyonly": { "@bit": { heading: { forValues: [""] } } } },
@@ -3594,6 +3608,7 @@ var CARDSETS = {
3594
3608
  key: ConfigKey.tag_title,
3595
3609
  description: "Title of the feedback.",
3596
3610
  format: TagFormat.plainText,
3611
+ nullable: true,
3597
3612
  jsonKey: "^heading.forKeys",
3598
3613
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3599
3614
  }
@@ -3676,6 +3691,7 @@ var CARDSETS = {
3676
3691
  key: ConfigKey.tag_title,
3677
3692
  description: "Title of the feedback.",
3678
3693
  format: TagFormat.plainText,
3694
+ nullable: true,
3679
3695
  jsonKey: "^heading.forValues",
3680
3696
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3681
3697
  }
@@ -4463,6 +4479,22 @@ var GROUPS = {
4463
4479
  description: "The original location of the information in the original source material",
4464
4480
  format: TagFormat.plainText
4465
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
+ },
4466
4498
  {
4467
4499
  key: ConfigKey.property_isTemplate,
4468
4500
  description: "If true, the bit is a template",
@@ -4489,7 +4521,8 @@ var GROUPS = {
4489
4521
  {
4490
4522
  key: ConfigKey.property_aiGenerated,
4491
4523
  description: "If true, the bit is AI-generated",
4492
- format: TagFormat.boolean
4524
+ format: TagFormat.boolean,
4525
+ nullable: true
4493
4526
  },
4494
4527
  {
4495
4528
  key: ConfigKey.property_machineTranslated,
@@ -4504,7 +4537,8 @@ var GROUPS = {
4504
4537
  {
4505
4538
  key: ConfigKey.property_spansPageBreak,
4506
4539
  description: "If true, the bit spans a page break",
4507
- format: TagFormat.boolean
4540
+ format: TagFormat.boolean,
4541
+ nullable: true
4508
4542
  },
4509
4543
  {
4510
4544
  key: ConfigKey.property_searchIndex,
@@ -4607,6 +4641,7 @@ var GROUPS = {
4607
4641
  key: ConfigKey.property_theme,
4608
4642
  description: "The theme(s) for the bit",
4609
4643
  format: TagFormat.plainText,
4644
+ nullable: true,
4610
4645
  maxCount: Count.infinity
4611
4646
  },
4612
4647
  {
@@ -4625,6 +4660,7 @@ var GROUPS = {
4625
4660
  key: ConfigKey.property_tag,
4626
4661
  description: "The tag(s) for the bit",
4627
4662
  format: TagFormat.plainText,
4663
+ nullable: true,
4628
4664
  maxCount: Count.infinity
4629
4665
  },
4630
4666
  {
@@ -4644,6 +4680,7 @@ var GROUPS = {
4644
4680
  exportJsonKey: { tags: ["$"] },
4645
4681
  description: "The tag(s) for the group",
4646
4682
  format: TagFormat.plainText,
4683
+ nullable: true,
4647
4684
  maxCount: Count.infinity
4648
4685
  }
4649
4686
  ]
@@ -4761,6 +4798,20 @@ var GROUPS = {
4761
4798
  description: "The layer role(s) for the bit",
4762
4799
  format: TagFormat.plainText,
4763
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: {}
4764
4815
  }
4765
4816
  ]
4766
4817
  },
@@ -4917,7 +4968,8 @@ var GROUPS = {
4917
4968
  {
4918
4969
  key: ConfigKey.property_size,
4919
4970
  description: "The size of the image",
4920
- format: TagFormat.number
4971
+ format: TagFormat.number,
4972
+ nullable: true
4921
4973
  },
4922
4974
  {
4923
4975
  key: ConfigKey.property_format,
@@ -5820,6 +5872,7 @@ var GROUPS = {
5820
5872
  key: ConfigKey.property_coverImage,
5821
5873
  description: "The cover image(s) of the book",
5822
5874
  format: TagFormat.plainText,
5875
+ nullable: true,
5823
5876
  maxCount: Count.infinity
5824
5877
  },
5825
5878
  {
@@ -6136,7 +6189,8 @@ var GROUPS = {
6136
6189
  {
6137
6190
  key: ConfigKey.property_platformNeedsShadow,
6138
6191
  description: "If true, the platform needs shadow",
6139
- format: TagFormat.boolean
6192
+ format: TagFormat.boolean,
6193
+ nullable: true
6140
6194
  }
6141
6195
  ]
6142
6196
  },
@@ -6147,7 +6201,8 @@ var GROUPS = {
6147
6201
  {
6148
6202
  key: ConfigKey.property_revealSolutions,
6149
6203
  description: "If true, the quiz solutions are revealed",
6150
- format: TagFormat.boolean
6204
+ format: TagFormat.boolean,
6205
+ nullable: true
6151
6206
  // defaultValue: 'false',
6152
6207
  },
6153
6208
  {
@@ -6294,12 +6349,14 @@ var GROUPS = {
6294
6349
  {
6295
6350
  key: ConfigKey.property_width,
6296
6351
  description: "The width of the image",
6297
- format: TagFormat.number
6352
+ format: TagFormat.number,
6353
+ nullable: true
6298
6354
  },
6299
6355
  {
6300
6356
  key: ConfigKey.property_height,
6301
6357
  description: "The height of the image",
6302
- format: TagFormat.number
6358
+ format: TagFormat.number,
6359
+ nullable: true
6303
6360
  },
6304
6361
  {
6305
6362
  key: ConfigKey.property_alt,
@@ -6344,12 +6401,14 @@ var GROUPS = {
6344
6401
  {
6345
6402
  key: ConfigKey.property_width,
6346
6403
  description: "The width of the image",
6347
- format: TagFormat.number
6404
+ format: TagFormat.number,
6405
+ nullable: true
6348
6406
  },
6349
6407
  {
6350
6408
  key: ConfigKey.property_height,
6351
6409
  description: "The height of the image",
6352
- format: TagFormat.number
6410
+ format: TagFormat.number,
6411
+ nullable: true
6353
6412
  },
6354
6413
  {
6355
6414
  key: ConfigKey.property_alt,
@@ -6401,12 +6460,14 @@ var GROUPS = {
6401
6460
  {
6402
6461
  key: ConfigKey.property_width,
6403
6462
  description: "The width of the video",
6404
- format: TagFormat.number
6463
+ format: TagFormat.number,
6464
+ nullable: true
6405
6465
  },
6406
6466
  {
6407
6467
  key: ConfigKey.property_height,
6408
6468
  description: "The height of the video",
6409
- format: TagFormat.number
6469
+ format: TagFormat.number,
6470
+ nullable: true
6410
6471
  },
6411
6472
  {
6412
6473
  key: ConfigKey.property_duration,
@@ -7491,7 +7552,8 @@ var BITS = {
7491
7552
  {
7492
7553
  key: ConfigKey.property_coverImage,
7493
7554
  description: "Cover image of the catalog item",
7494
- format: TagFormat.plainText
7555
+ format: TagFormat.plainText,
7556
+ nullable: true
7495
7557
  },
7496
7558
  {
7497
7559
  key: ConfigKey.resource_coverImage,
@@ -7655,7 +7717,8 @@ var BITS = {
7655
7717
  {
7656
7718
  key: ConfigKey.property_coverImage,
7657
7719
  description: "Cover image of the catalog item",
7658
- format: TagFormat.plainText
7720
+ format: TagFormat.plainText,
7721
+ nullable: true
7659
7722
  },
7660
7723
  {
7661
7724
  key: ConfigKey.resource_coverImage,
@@ -7819,7 +7882,8 @@ var BITS = {
7819
7882
  {
7820
7883
  key: ConfigKey.property_coverImage,
7821
7884
  description: "Cover image of the catalog item",
7822
- format: TagFormat.plainText
7885
+ format: TagFormat.plainText,
7886
+ nullable: true
7823
7887
  },
7824
7888
  {
7825
7889
  key: ConfigKey.property_content2Buy,
@@ -8605,12 +8669,14 @@ var BITS = {
8605
8669
  {
8606
8670
  key: ConfigKey.property_quizCountItems,
8607
8671
  description: "The number of items in the cloze quiz",
8608
- format: TagFormat.boolean
8672
+ format: TagFormat.boolean,
8673
+ nullable: true
8609
8674
  },
8610
8675
  {
8611
8676
  key: ConfigKey.property_quizStrikethroughSolutions,
8612
8677
  description: "If the cloze solutions should be strikethrough",
8613
- format: TagFormat.boolean
8678
+ format: TagFormat.boolean,
8679
+ nullable: true
8614
8680
  },
8615
8681
  {
8616
8682
  key: ConfigKey.group_gap,
@@ -10306,6 +10372,12 @@ var BITS = {
10306
10372
  description: "Extractor theme bit, used to store design/theme JSON extracted from documents",
10307
10373
  textFormatDefault: TextFormat.json
10308
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
+ },
10309
10381
  [BitType.extractorAiChat]: {
10310
10382
  since: "3.19.0",
10311
10383
  baseBitType: BitType._standard,
@@ -10329,12 +10401,14 @@ var BITS = {
10329
10401
  {
10330
10402
  key: ConfigKey.property_x,
10331
10403
  description: "X-coordinate for the block, used to position the block on the page",
10332
- format: TagFormat.number
10404
+ format: TagFormat.number,
10405
+ nullable: true
10333
10406
  },
10334
10407
  {
10335
10408
  key: ConfigKey.property_y,
10336
10409
  description: "Y-coordinate for the block, used to position the block on the page",
10337
- format: TagFormat.number
10410
+ format: TagFormat.number,
10411
+ nullable: true
10338
10412
  },
10339
10413
  {
10340
10414
  key: ConfigKey.property_width,
@@ -12092,7 +12166,8 @@ var BITS = {
12092
12166
  {
12093
12167
  key: ConfigKey.property_product,
12094
12168
  description: "Product reference for the product page, used to link to the product",
12095
- format: TagFormat.plainText
12169
+ format: TagFormat.plainText,
12170
+ nullable: true
12096
12171
  }
12097
12172
  ]
12098
12173
  },
@@ -12111,6 +12186,7 @@ var BITS = {
12111
12186
  key: ConfigKey.property_product,
12112
12187
  description: "Product reference for the product list, used to link to the product",
12113
12188
  format: TagFormat.plainText,
12189
+ nullable: true,
12114
12190
  maxCount: Count.infinity
12115
12191
  }
12116
12192
  // {
@@ -12672,7 +12748,8 @@ var BITS = {
12672
12748
  {
12673
12749
  key: ConfigKey.property_ratingLevelSelected,
12674
12750
  description: "Selected level for the rating survey, used to define the default rating",
12675
- format: TagFormat.number
12751
+ format: TagFormat.number,
12752
+ nullable: true
12676
12753
  },
12677
12754
  {
12678
12755
  key: ConfigKey.property_buttonCaption,
@@ -14004,7 +14081,7 @@ var instance2 = new Config();
14004
14081
  // src/generated/package_info.ts
14005
14082
  var PACKAGE_INFO = {
14006
14083
  "name": "@gmb/bitmark-parser-generator",
14007
- "version": "5.34.0",
14084
+ "version": "5.35.0",
14008
14085
  "author": "Get More Brain Ltd",
14009
14086
  "license": "ISC",
14010
14087
  "description": "A bitmark parser and generator using Peggy.js"
@@ -14929,6 +15006,8 @@ var NodeType = {
14929
15006
  reviewTagValue: "reviewTagValue",
14930
15007
  reviewerTag: "reviewerTag",
14931
15008
  reviewerTagValue: "reviewerTagValue",
15009
+ rightsPolicy: "rightsPolicy",
15010
+ rightsPolicyValue: "rightsPolicyValue",
14932
15011
  root: "root",
14933
15012
  // bit type (root)
14934
15013
  rows: "rows",
@@ -28298,6 +28377,14 @@ var Builder = class extends BaseBuilder {
28298
28377
  data.jupyterExecutionCount,
28299
28378
  options
28300
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
+ ),
28301
28388
  sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
28302
28389
  isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
28303
28390
  isTemplate: this.toAstProperty(