@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/cli/main.js CHANGED
@@ -267,6 +267,7 @@ var BitType = {
267
267
  extractorPageNumberCollapsible: "extractor-page-number-collapsible",
268
268
  extractorPageWithBlocks: "extractor-page-with-blocks",
269
269
  extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible",
270
+ extractorReconcile: "extractor-reconcile",
270
271
  extractorRepeatedText: "extractor-repeated-text",
271
272
  extractorRule: "extractor-rule",
272
273
  extractorTheme: "extractor-theme",
@@ -1468,6 +1469,9 @@ var propertyKeys = {
1468
1469
  property_resolvedBy: "@resolvedBy",
1469
1470
  property_resolvedDate: "@resolvedDate",
1470
1471
  property_revealSolutions: "@revealSolutions",
1472
+ property_reviewTag: "@reviewTag",
1473
+ property_reviewerTag: "@reviewerTag",
1474
+ property_rightsPolicy: "@rightsPolicy",
1471
1475
  property_sampleSolution: "@sampleSolution",
1472
1476
  property_scormSource: "@scormSource",
1473
1477
  property_search: "@search",
@@ -2468,6 +2472,7 @@ var CARDSETS = {
2468
2472
  key: ConfigKey.tag_title,
2469
2473
  description: "Title of the definition.",
2470
2474
  format: TagFormat.plainText,
2475
+ nullable: true,
2471
2476
  jsonKey: "^heading.forKeys",
2472
2477
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2473
2478
  },
@@ -2508,6 +2513,7 @@ var CARDSETS = {
2508
2513
  key: ConfigKey.tag_title,
2509
2514
  description: "Title of the definition.",
2510
2515
  format: TagFormat.plainText,
2516
+ nullable: true,
2511
2517
  jsonKey: "^heading.forValues",
2512
2518
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2513
2519
  },
@@ -2586,6 +2592,7 @@ var CARDSETS = {
2586
2592
  key: ConfigKey.tag_title,
2587
2593
  description: "Title of the definition.",
2588
2594
  format: TagFormat.plainText,
2595
+ nullable: true,
2589
2596
  jsonKey: "^heading.forKeys",
2590
2597
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2591
2598
  },
@@ -2627,6 +2634,7 @@ var CARDSETS = {
2627
2634
  key: ConfigKey.tag_title,
2628
2635
  description: "Title of the definition.",
2629
2636
  format: TagFormat.plainText,
2637
+ nullable: true,
2630
2638
  jsonKey: "^heading.forValues",
2631
2639
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2632
2640
  },
@@ -2740,6 +2748,7 @@ var CARDSETS = {
2740
2748
  key: ConfigKey.tag_title,
2741
2749
  description: "Title of the match pair.",
2742
2750
  format: TagFormat.plainText,
2751
+ nullable: true,
2743
2752
  jsonKey: "^heading.forKeys",
2744
2753
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2745
2754
  },
@@ -2869,6 +2878,7 @@ var CARDSETS = {
2869
2878
  key: ConfigKey.tag_title,
2870
2879
  description: "Title of the match pair.",
2871
2880
  format: TagFormat.plainText,
2881
+ nullable: true,
2872
2882
  jsonKey: "^heading.forValues",
2873
2883
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2874
2884
  },
@@ -2915,6 +2925,7 @@ var CARDSETS = {
2915
2925
  key: ConfigKey.tag_title,
2916
2926
  description: "Title of the audio match pair.",
2917
2927
  format: TagFormat.plainText,
2928
+ nullable: true,
2918
2929
  jsonKey: "^heading.forKeys",
2919
2930
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2920
2931
  },
@@ -2946,6 +2957,7 @@ var CARDSETS = {
2946
2957
  key: ConfigKey.tag_title,
2947
2958
  description: "Title of the audio match pair.",
2948
2959
  format: TagFormat.plainText,
2960
+ nullable: true,
2949
2961
  jsonKey: "^heading.forValues",
2950
2962
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2951
2963
  },
@@ -2983,6 +2995,7 @@ var CARDSETS = {
2983
2995
  key: ConfigKey.tag_title,
2984
2996
  description: "Title of the image match pair.",
2985
2997
  format: TagFormat.plainText,
2998
+ nullable: true,
2986
2999
  jsonKey: "^heading.forKeys",
2987
3000
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2988
3001
  },
@@ -3014,6 +3027,7 @@ var CARDSETS = {
3014
3027
  key: ConfigKey.tag_title,
3015
3028
  description: "Title of the image match pair.",
3016
3029
  format: TagFormat.plainText,
3030
+ nullable: true,
3017
3031
  jsonKey: "^heading.forValues",
3018
3032
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3019
3033
  },
@@ -3089,6 +3103,7 @@ var CARDSETS = {
3089
3103
  key: ConfigKey.tag_title,
3090
3104
  description: "Title of the match matrix.",
3091
3105
  format: TagFormat.plainText,
3106
+ nullable: true,
3092
3107
  jsonKey: "^heading.forKeys",
3093
3108
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3094
3109
  },
@@ -3201,6 +3216,7 @@ var CARDSETS = {
3201
3216
  key: ConfigKey.tag_title,
3202
3217
  description: "Title of the match matrix.",
3203
3218
  format: TagFormat.plainText,
3219
+ nullable: true,
3204
3220
  jsonKey: "^heading.forValues",
3205
3221
  exportJsonKey: [
3206
3222
  { "@keyonly": { "@bit": { heading: { forValues: [""] } } } },
@@ -3483,6 +3499,7 @@ var CARDSETS = {
3483
3499
  key: ConfigKey.tag_title,
3484
3500
  description: "Title of the feedback.",
3485
3501
  format: TagFormat.plainText,
3502
+ nullable: true,
3486
3503
  jsonKey: "^heading.forKeys",
3487
3504
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3488
3505
  }
@@ -3565,6 +3582,7 @@ var CARDSETS = {
3565
3582
  key: ConfigKey.tag_title,
3566
3583
  description: "Title of the feedback.",
3567
3584
  format: TagFormat.plainText,
3585
+ nullable: true,
3568
3586
  jsonKey: "^heading.forValues",
3569
3587
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3570
3588
  }
@@ -4352,6 +4370,22 @@ var GROUPS = {
4352
4370
  description: "The original location of the information in the original source material",
4353
4371
  format: TagFormat.plainText
4354
4372
  },
4373
+ {
4374
+ key: ConfigKey.property_copyright,
4375
+ description: "The copyright information for the bit",
4376
+ format: TagFormat.plainText
4377
+ },
4378
+ {
4379
+ key: ConfigKey.property_license,
4380
+ description: "The license for the bit",
4381
+ format: TagFormat.plainText
4382
+ },
4383
+ {
4384
+ key: ConfigKey.property_rightsPolicy,
4385
+ description: "The rights policy or policies for the bit",
4386
+ format: TagFormat.plainText,
4387
+ maxCount: Count.infinity
4388
+ },
4355
4389
  {
4356
4390
  key: ConfigKey.property_isTemplate,
4357
4391
  description: "If true, the bit is a template",
@@ -4378,7 +4412,8 @@ var GROUPS = {
4378
4412
  {
4379
4413
  key: ConfigKey.property_aiGenerated,
4380
4414
  description: "If true, the bit is AI-generated",
4381
- format: TagFormat.boolean
4415
+ format: TagFormat.boolean,
4416
+ nullable: true
4382
4417
  },
4383
4418
  {
4384
4419
  key: ConfigKey.property_machineTranslated,
@@ -4393,7 +4428,8 @@ var GROUPS = {
4393
4428
  {
4394
4429
  key: ConfigKey.property_spansPageBreak,
4395
4430
  description: "If true, the bit spans a page break",
4396
- format: TagFormat.boolean
4431
+ format: TagFormat.boolean,
4432
+ nullable: true
4397
4433
  },
4398
4434
  {
4399
4435
  key: ConfigKey.property_searchIndex,
@@ -4496,6 +4532,7 @@ var GROUPS = {
4496
4532
  key: ConfigKey.property_theme,
4497
4533
  description: "The theme(s) for the bit",
4498
4534
  format: TagFormat.plainText,
4535
+ nullable: true,
4499
4536
  maxCount: Count.infinity
4500
4537
  },
4501
4538
  {
@@ -4514,6 +4551,7 @@ var GROUPS = {
4514
4551
  key: ConfigKey.property_tag,
4515
4552
  description: "The tag(s) for the bit",
4516
4553
  format: TagFormat.plainText,
4554
+ nullable: true,
4517
4555
  maxCount: Count.infinity
4518
4556
  },
4519
4557
  {
@@ -4533,10 +4571,23 @@ var GROUPS = {
4533
4571
  exportJsonKey: { tags: ["$"] },
4534
4572
  description: "The tag(s) for the group",
4535
4573
  format: TagFormat.plainText,
4574
+ nullable: true,
4536
4575
  maxCount: Count.infinity
4537
4576
  }
4538
4577
  ]
4539
4578
  },
4579
+ {
4580
+ key: ConfigKey.property_reviewTag,
4581
+ description: "The review tag(s) for the bit",
4582
+ format: TagFormat.plainText,
4583
+ maxCount: Count.infinity
4584
+ },
4585
+ {
4586
+ key: ConfigKey.property_reviewerTag,
4587
+ description: "The reviewer tag(s) for the bit",
4588
+ format: TagFormat.plainText,
4589
+ maxCount: Count.infinity
4590
+ },
4540
4591
  {
4541
4592
  key: ConfigKey.property_reductionTag,
4542
4593
  description: "The reduction tag(s) for the bit",
@@ -4638,6 +4689,20 @@ var GROUPS = {
4638
4689
  description: "The layer role(s) for the bit",
4639
4690
  format: TagFormat.plainText,
4640
4691
  maxCount: Count.infinity
4692
+ },
4693
+ {
4694
+ // Universal @internalComment — declares in config what Config.ts also
4695
+ // injects programmatically into every bit (its push runs last and wins
4696
+ // the keyed merge, so runtime behaviour is unchanged). Declared here so
4697
+ // the config export (ConfigBuilder → assets/config → configurator →
4698
+ // bitmark.json) carries the tag for downstream parsers. Empty
4699
+ // exportJsonKey: consumed but never emitted to the bit JSON (the value
4700
+ // is routed to parser.internalComments).
4701
+ key: ConfigKey.property_internalComment,
4702
+ description: "Internal comment for the bit.",
4703
+ format: TagFormat.plainText,
4704
+ maxCount: Count.infinity,
4705
+ exportJsonKey: {}
4641
4706
  }
4642
4707
  ]
4643
4708
  },
@@ -4794,7 +4859,8 @@ var GROUPS = {
4794
4859
  {
4795
4860
  key: ConfigKey.property_size,
4796
4861
  description: "The size of the image",
4797
- format: TagFormat.number
4862
+ format: TagFormat.number,
4863
+ nullable: true
4798
4864
  },
4799
4865
  {
4800
4866
  key: ConfigKey.property_format,
@@ -5697,6 +5763,7 @@ var GROUPS = {
5697
5763
  key: ConfigKey.property_coverImage,
5698
5764
  description: "The cover image(s) of the book",
5699
5765
  format: TagFormat.plainText,
5766
+ nullable: true,
5700
5767
  maxCount: Count.infinity
5701
5768
  },
5702
5769
  {
@@ -6013,7 +6080,8 @@ var GROUPS = {
6013
6080
  {
6014
6081
  key: ConfigKey.property_platformNeedsShadow,
6015
6082
  description: "If true, the platform needs shadow",
6016
- format: TagFormat.boolean
6083
+ format: TagFormat.boolean,
6084
+ nullable: true
6017
6085
  }
6018
6086
  ]
6019
6087
  },
@@ -6024,7 +6092,8 @@ var GROUPS = {
6024
6092
  {
6025
6093
  key: ConfigKey.property_revealSolutions,
6026
6094
  description: "If true, the quiz solutions are revealed",
6027
- format: TagFormat.boolean
6095
+ format: TagFormat.boolean,
6096
+ nullable: true
6028
6097
  // defaultValue: 'false',
6029
6098
  },
6030
6099
  {
@@ -6171,12 +6240,14 @@ var GROUPS = {
6171
6240
  {
6172
6241
  key: ConfigKey.property_width,
6173
6242
  description: "The width of the image",
6174
- format: TagFormat.number
6243
+ format: TagFormat.number,
6244
+ nullable: true
6175
6245
  },
6176
6246
  {
6177
6247
  key: ConfigKey.property_height,
6178
6248
  description: "The height of the image",
6179
- format: TagFormat.number
6249
+ format: TagFormat.number,
6250
+ nullable: true
6180
6251
  },
6181
6252
  {
6182
6253
  key: ConfigKey.property_alt,
@@ -6221,12 +6292,14 @@ var GROUPS = {
6221
6292
  {
6222
6293
  key: ConfigKey.property_width,
6223
6294
  description: "The width of the image",
6224
- format: TagFormat.number
6295
+ format: TagFormat.number,
6296
+ nullable: true
6225
6297
  },
6226
6298
  {
6227
6299
  key: ConfigKey.property_height,
6228
6300
  description: "The height of the image",
6229
- format: TagFormat.number
6301
+ format: TagFormat.number,
6302
+ nullable: true
6230
6303
  },
6231
6304
  {
6232
6305
  key: ConfigKey.property_alt,
@@ -6278,12 +6351,14 @@ var GROUPS = {
6278
6351
  {
6279
6352
  key: ConfigKey.property_width,
6280
6353
  description: "The width of the video",
6281
- format: TagFormat.number
6354
+ format: TagFormat.number,
6355
+ nullable: true
6282
6356
  },
6283
6357
  {
6284
6358
  key: ConfigKey.property_height,
6285
6359
  description: "The height of the video",
6286
- format: TagFormat.number
6360
+ format: TagFormat.number,
6361
+ nullable: true
6287
6362
  },
6288
6363
  {
6289
6364
  key: ConfigKey.property_duration,
@@ -7368,7 +7443,8 @@ var BITS = {
7368
7443
  {
7369
7444
  key: ConfigKey.property_coverImage,
7370
7445
  description: "Cover image of the catalog item",
7371
- format: TagFormat.plainText
7446
+ format: TagFormat.plainText,
7447
+ nullable: true
7372
7448
  },
7373
7449
  {
7374
7450
  key: ConfigKey.resource_coverImage,
@@ -7532,7 +7608,8 @@ var BITS = {
7532
7608
  {
7533
7609
  key: ConfigKey.property_coverImage,
7534
7610
  description: "Cover image of the catalog item",
7535
- format: TagFormat.plainText
7611
+ format: TagFormat.plainText,
7612
+ nullable: true
7536
7613
  },
7537
7614
  {
7538
7615
  key: ConfigKey.resource_coverImage,
@@ -7696,7 +7773,8 @@ var BITS = {
7696
7773
  {
7697
7774
  key: ConfigKey.property_coverImage,
7698
7775
  description: "Cover image of the catalog item",
7699
- format: TagFormat.plainText
7776
+ format: TagFormat.plainText,
7777
+ nullable: true
7700
7778
  },
7701
7779
  {
7702
7780
  key: ConfigKey.property_content2Buy,
@@ -8482,12 +8560,14 @@ var BITS = {
8482
8560
  {
8483
8561
  key: ConfigKey.property_quizCountItems,
8484
8562
  description: "The number of items in the cloze quiz",
8485
- format: TagFormat.boolean
8563
+ format: TagFormat.boolean,
8564
+ nullable: true
8486
8565
  },
8487
8566
  {
8488
8567
  key: ConfigKey.property_quizStrikethroughSolutions,
8489
8568
  description: "If the cloze solutions should be strikethrough",
8490
- format: TagFormat.boolean
8569
+ format: TagFormat.boolean,
8570
+ nullable: true
8491
8571
  },
8492
8572
  {
8493
8573
  key: ConfigKey.group_gap,
@@ -10183,6 +10263,12 @@ var BITS = {
10183
10263
  description: "Extractor theme bit, used to store design/theme JSON extracted from documents",
10184
10264
  textFormatDefault: TextFormat.json
10185
10265
  },
10266
+ [BitType.extractorReconcile]: {
10267
+ since: "5.35.0",
10268
+ baseBitType: BitType._standard,
10269
+ description: "Extractor reconcile bit, used to store PDF-compare reconciliation decisions (config and issues) in JSON",
10270
+ textFormatDefault: TextFormat.json
10271
+ },
10186
10272
  [BitType.extractorAiChat]: {
10187
10273
  since: "3.19.0",
10188
10274
  baseBitType: BitType._standard,
@@ -10206,12 +10292,14 @@ var BITS = {
10206
10292
  {
10207
10293
  key: ConfigKey.property_x,
10208
10294
  description: "X-coordinate for the block, used to position the block on the page",
10209
- format: TagFormat.number
10295
+ format: TagFormat.number,
10296
+ nullable: true
10210
10297
  },
10211
10298
  {
10212
10299
  key: ConfigKey.property_y,
10213
10300
  description: "Y-coordinate for the block, used to position the block on the page",
10214
- format: TagFormat.number
10301
+ format: TagFormat.number,
10302
+ nullable: true
10215
10303
  },
10216
10304
  {
10217
10305
  key: ConfigKey.property_width,
@@ -11969,7 +12057,8 @@ var BITS = {
11969
12057
  {
11970
12058
  key: ConfigKey.property_product,
11971
12059
  description: "Product reference for the product page, used to link to the product",
11972
- format: TagFormat.plainText
12060
+ format: TagFormat.plainText,
12061
+ nullable: true
11973
12062
  }
11974
12063
  ]
11975
12064
  },
@@ -11988,6 +12077,7 @@ var BITS = {
11988
12077
  key: ConfigKey.property_product,
11989
12078
  description: "Product reference for the product list, used to link to the product",
11990
12079
  format: TagFormat.plainText,
12080
+ nullable: true,
11991
12081
  maxCount: Count.infinity
11992
12082
  }
11993
12083
  // {
@@ -12549,7 +12639,8 @@ var BITS = {
12549
12639
  {
12550
12640
  key: ConfigKey.property_ratingLevelSelected,
12551
12641
  description: "Selected level for the rating survey, used to define the default rating",
12552
- format: TagFormat.number
12642
+ format: TagFormat.number,
12643
+ nullable: true
12553
12644
  },
12554
12645
  {
12555
12646
  key: ConfigKey.property_buttonCaption,
@@ -13881,7 +13972,7 @@ var instance2 = new Config();
13881
13972
  // src/generated/package_info.ts
13882
13973
  var PACKAGE_INFO = {
13883
13974
  "name": "@gmb/bitmark-parser-generator",
13884
- "version": "5.33.0",
13975
+ "version": "5.35.0",
13885
13976
  "license": "ISC"};
13886
13977
  var Environment = {
13887
13978
  unknown: "",
@@ -14770,6 +14861,12 @@ var NodeType = {
14770
14861
  responses: "responses",
14771
14862
  responsesValue: "responsesValue",
14772
14863
  revealSolutions: "revealSolutions",
14864
+ reviewTag: "reviewTag",
14865
+ reviewTagValue: "reviewTagValue",
14866
+ reviewerTag: "reviewerTag",
14867
+ reviewerTagValue: "reviewerTagValue",
14868
+ rightsPolicy: "rightsPolicy",
14869
+ rightsPolicyValue: "rightsPolicyValue",
14773
14870
  root: "root",
14774
14871
  // bit type (root)
14775
14872
  rows: "rows",
@@ -27954,6 +28051,14 @@ var Builder = class extends BaseBuilder {
27954
28051
  data.jupyterExecutionCount,
27955
28052
  options
27956
28053
  ),
28054
+ copyright: this.toAstProperty(bitType, ConfigKey.property_copyright, data.copyright, options),
28055
+ license: this.toAstProperty(bitType, ConfigKey.property_license, data.license, options),
28056
+ rightsPolicy: this.toAstProperty(
28057
+ bitType,
28058
+ ConfigKey.property_rightsPolicy,
28059
+ data.rightsPolicy,
28060
+ options
28061
+ ),
27957
28062
  sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
27958
28063
  isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
27959
28064
  isTemplate: this.toAstProperty(
@@ -28113,6 +28218,13 @@ var Builder = class extends BaseBuilder {
28113
28218
  slug: this.toAstProperty(bitType, ConfigKey.property_slug, data.slug, options),
28114
28219
  tag: this.toAstProperty(bitType, ConfigKey.property_tag, data.tag, options),
28115
28220
  groupTag: this.buildGroupTags(context, data.groupTag),
28221
+ reviewTag: this.toAstProperty(bitType, ConfigKey.property_reviewTag, data.reviewTag, options),
28222
+ reviewerTag: this.toAstProperty(
28223
+ bitType,
28224
+ ConfigKey.property_reviewerTag,
28225
+ data.reviewerTag,
28226
+ options
28227
+ ),
28116
28228
  reductionTag: this.toAstProperty(
28117
28229
  bitType,
28118
28230
  ConfigKey.property_reductionTag,