@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/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",
@@ -1470,6 +1471,7 @@ var propertyKeys = {
1470
1471
  property_revealSolutions: "@revealSolutions",
1471
1472
  property_reviewTag: "@reviewTag",
1472
1473
  property_reviewerTag: "@reviewerTag",
1474
+ property_rightsPolicy: "@rightsPolicy",
1473
1475
  property_sampleSolution: "@sampleSolution",
1474
1476
  property_scormSource: "@scormSource",
1475
1477
  property_search: "@search",
@@ -2470,6 +2472,7 @@ var CARDSETS = {
2470
2472
  key: ConfigKey.tag_title,
2471
2473
  description: "Title of the definition.",
2472
2474
  format: TagFormat.plainText,
2475
+ nullable: true,
2473
2476
  jsonKey: "^heading.forKeys",
2474
2477
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2475
2478
  },
@@ -2510,6 +2513,7 @@ var CARDSETS = {
2510
2513
  key: ConfigKey.tag_title,
2511
2514
  description: "Title of the definition.",
2512
2515
  format: TagFormat.plainText,
2516
+ nullable: true,
2513
2517
  jsonKey: "^heading.forValues",
2514
2518
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2515
2519
  },
@@ -2588,6 +2592,7 @@ var CARDSETS = {
2588
2592
  key: ConfigKey.tag_title,
2589
2593
  description: "Title of the definition.",
2590
2594
  format: TagFormat.plainText,
2595
+ nullable: true,
2591
2596
  jsonKey: "^heading.forKeys",
2592
2597
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2593
2598
  },
@@ -2629,6 +2634,7 @@ var CARDSETS = {
2629
2634
  key: ConfigKey.tag_title,
2630
2635
  description: "Title of the definition.",
2631
2636
  format: TagFormat.plainText,
2637
+ nullable: true,
2632
2638
  jsonKey: "^heading.forValues",
2633
2639
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2634
2640
  },
@@ -2742,6 +2748,7 @@ var CARDSETS = {
2742
2748
  key: ConfigKey.tag_title,
2743
2749
  description: "Title of the match pair.",
2744
2750
  format: TagFormat.plainText,
2751
+ nullable: true,
2745
2752
  jsonKey: "^heading.forKeys",
2746
2753
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2747
2754
  },
@@ -2871,6 +2878,7 @@ var CARDSETS = {
2871
2878
  key: ConfigKey.tag_title,
2872
2879
  description: "Title of the match pair.",
2873
2880
  format: TagFormat.plainText,
2881
+ nullable: true,
2874
2882
  jsonKey: "^heading.forValues",
2875
2883
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2876
2884
  },
@@ -2917,6 +2925,7 @@ var CARDSETS = {
2917
2925
  key: ConfigKey.tag_title,
2918
2926
  description: "Title of the audio match pair.",
2919
2927
  format: TagFormat.plainText,
2928
+ nullable: true,
2920
2929
  jsonKey: "^heading.forKeys",
2921
2930
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2922
2931
  },
@@ -2948,6 +2957,7 @@ var CARDSETS = {
2948
2957
  key: ConfigKey.tag_title,
2949
2958
  description: "Title of the audio match pair.",
2950
2959
  format: TagFormat.plainText,
2960
+ nullable: true,
2951
2961
  jsonKey: "^heading.forValues",
2952
2962
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
2953
2963
  },
@@ -2985,6 +2995,7 @@ var CARDSETS = {
2985
2995
  key: ConfigKey.tag_title,
2986
2996
  description: "Title of the image match pair.",
2987
2997
  format: TagFormat.plainText,
2998
+ nullable: true,
2988
2999
  jsonKey: "^heading.forKeys",
2989
3000
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
2990
3001
  },
@@ -3016,6 +3027,7 @@ var CARDSETS = {
3016
3027
  key: ConfigKey.tag_title,
3017
3028
  description: "Title of the image match pair.",
3018
3029
  format: TagFormat.plainText,
3030
+ nullable: true,
3019
3031
  jsonKey: "^heading.forValues",
3020
3032
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3021
3033
  },
@@ -3091,6 +3103,7 @@ var CARDSETS = {
3091
3103
  key: ConfigKey.tag_title,
3092
3104
  description: "Title of the match matrix.",
3093
3105
  format: TagFormat.plainText,
3106
+ nullable: true,
3094
3107
  jsonKey: "^heading.forKeys",
3095
3108
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3096
3109
  },
@@ -3203,6 +3216,7 @@ var CARDSETS = {
3203
3216
  key: ConfigKey.tag_title,
3204
3217
  description: "Title of the match matrix.",
3205
3218
  format: TagFormat.plainText,
3219
+ nullable: true,
3206
3220
  jsonKey: "^heading.forValues",
3207
3221
  exportJsonKey: [
3208
3222
  { "@keyonly": { "@bit": { heading: { forValues: [""] } } } },
@@ -3485,6 +3499,7 @@ var CARDSETS = {
3485
3499
  key: ConfigKey.tag_title,
3486
3500
  description: "Title of the feedback.",
3487
3501
  format: TagFormat.plainText,
3502
+ nullable: true,
3488
3503
  jsonKey: "^heading.forKeys",
3489
3504
  exportJsonKey: { "@bit": { heading: { forKeys: "$" } } }
3490
3505
  }
@@ -3567,6 +3582,7 @@ var CARDSETS = {
3567
3582
  key: ConfigKey.tag_title,
3568
3583
  description: "Title of the feedback.",
3569
3584
  format: TagFormat.plainText,
3585
+ nullable: true,
3570
3586
  jsonKey: "^heading.forValues",
3571
3587
  exportJsonKey: { "@bit": { heading: { forValues: "$" } } }
3572
3588
  }
@@ -4354,6 +4370,22 @@ var GROUPS = {
4354
4370
  description: "The original location of the information in the original source material",
4355
4371
  format: TagFormat.plainText
4356
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
+ },
4357
4389
  {
4358
4390
  key: ConfigKey.property_isTemplate,
4359
4391
  description: "If true, the bit is a template",
@@ -4380,7 +4412,8 @@ var GROUPS = {
4380
4412
  {
4381
4413
  key: ConfigKey.property_aiGenerated,
4382
4414
  description: "If true, the bit is AI-generated",
4383
- format: TagFormat.boolean
4415
+ format: TagFormat.boolean,
4416
+ nullable: true
4384
4417
  },
4385
4418
  {
4386
4419
  key: ConfigKey.property_machineTranslated,
@@ -4395,7 +4428,8 @@ var GROUPS = {
4395
4428
  {
4396
4429
  key: ConfigKey.property_spansPageBreak,
4397
4430
  description: "If true, the bit spans a page break",
4398
- format: TagFormat.boolean
4431
+ format: TagFormat.boolean,
4432
+ nullable: true
4399
4433
  },
4400
4434
  {
4401
4435
  key: ConfigKey.property_searchIndex,
@@ -4498,6 +4532,7 @@ var GROUPS = {
4498
4532
  key: ConfigKey.property_theme,
4499
4533
  description: "The theme(s) for the bit",
4500
4534
  format: TagFormat.plainText,
4535
+ nullable: true,
4501
4536
  maxCount: Count.infinity
4502
4537
  },
4503
4538
  {
@@ -4516,6 +4551,7 @@ var GROUPS = {
4516
4551
  key: ConfigKey.property_tag,
4517
4552
  description: "The tag(s) for the bit",
4518
4553
  format: TagFormat.plainText,
4554
+ nullable: true,
4519
4555
  maxCount: Count.infinity
4520
4556
  },
4521
4557
  {
@@ -4535,6 +4571,7 @@ var GROUPS = {
4535
4571
  exportJsonKey: { tags: ["$"] },
4536
4572
  description: "The tag(s) for the group",
4537
4573
  format: TagFormat.plainText,
4574
+ nullable: true,
4538
4575
  maxCount: Count.infinity
4539
4576
  }
4540
4577
  ]
@@ -4652,6 +4689,20 @@ var GROUPS = {
4652
4689
  description: "The layer role(s) for the bit",
4653
4690
  format: TagFormat.plainText,
4654
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: {}
4655
4706
  }
4656
4707
  ]
4657
4708
  },
@@ -4808,7 +4859,8 @@ var GROUPS = {
4808
4859
  {
4809
4860
  key: ConfigKey.property_size,
4810
4861
  description: "The size of the image",
4811
- format: TagFormat.number
4862
+ format: TagFormat.number,
4863
+ nullable: true
4812
4864
  },
4813
4865
  {
4814
4866
  key: ConfigKey.property_format,
@@ -5711,6 +5763,7 @@ var GROUPS = {
5711
5763
  key: ConfigKey.property_coverImage,
5712
5764
  description: "The cover image(s) of the book",
5713
5765
  format: TagFormat.plainText,
5766
+ nullable: true,
5714
5767
  maxCount: Count.infinity
5715
5768
  },
5716
5769
  {
@@ -6027,7 +6080,8 @@ var GROUPS = {
6027
6080
  {
6028
6081
  key: ConfigKey.property_platformNeedsShadow,
6029
6082
  description: "If true, the platform needs shadow",
6030
- format: TagFormat.boolean
6083
+ format: TagFormat.boolean,
6084
+ nullable: true
6031
6085
  }
6032
6086
  ]
6033
6087
  },
@@ -6038,7 +6092,8 @@ var GROUPS = {
6038
6092
  {
6039
6093
  key: ConfigKey.property_revealSolutions,
6040
6094
  description: "If true, the quiz solutions are revealed",
6041
- format: TagFormat.boolean
6095
+ format: TagFormat.boolean,
6096
+ nullable: true
6042
6097
  // defaultValue: 'false',
6043
6098
  },
6044
6099
  {
@@ -6185,12 +6240,14 @@ var GROUPS = {
6185
6240
  {
6186
6241
  key: ConfigKey.property_width,
6187
6242
  description: "The width of the image",
6188
- format: TagFormat.number
6243
+ format: TagFormat.number,
6244
+ nullable: true
6189
6245
  },
6190
6246
  {
6191
6247
  key: ConfigKey.property_height,
6192
6248
  description: "The height of the image",
6193
- format: TagFormat.number
6249
+ format: TagFormat.number,
6250
+ nullable: true
6194
6251
  },
6195
6252
  {
6196
6253
  key: ConfigKey.property_alt,
@@ -6235,12 +6292,14 @@ var GROUPS = {
6235
6292
  {
6236
6293
  key: ConfigKey.property_width,
6237
6294
  description: "The width of the image",
6238
- format: TagFormat.number
6295
+ format: TagFormat.number,
6296
+ nullable: true
6239
6297
  },
6240
6298
  {
6241
6299
  key: ConfigKey.property_height,
6242
6300
  description: "The height of the image",
6243
- format: TagFormat.number
6301
+ format: TagFormat.number,
6302
+ nullable: true
6244
6303
  },
6245
6304
  {
6246
6305
  key: ConfigKey.property_alt,
@@ -6292,12 +6351,14 @@ var GROUPS = {
6292
6351
  {
6293
6352
  key: ConfigKey.property_width,
6294
6353
  description: "The width of the video",
6295
- format: TagFormat.number
6354
+ format: TagFormat.number,
6355
+ nullable: true
6296
6356
  },
6297
6357
  {
6298
6358
  key: ConfigKey.property_height,
6299
6359
  description: "The height of the video",
6300
- format: TagFormat.number
6360
+ format: TagFormat.number,
6361
+ nullable: true
6301
6362
  },
6302
6363
  {
6303
6364
  key: ConfigKey.property_duration,
@@ -7382,7 +7443,8 @@ var BITS = {
7382
7443
  {
7383
7444
  key: ConfigKey.property_coverImage,
7384
7445
  description: "Cover image of the catalog item",
7385
- format: TagFormat.plainText
7446
+ format: TagFormat.plainText,
7447
+ nullable: true
7386
7448
  },
7387
7449
  {
7388
7450
  key: ConfigKey.resource_coverImage,
@@ -7546,7 +7608,8 @@ var BITS = {
7546
7608
  {
7547
7609
  key: ConfigKey.property_coverImage,
7548
7610
  description: "Cover image of the catalog item",
7549
- format: TagFormat.plainText
7611
+ format: TagFormat.plainText,
7612
+ nullable: true
7550
7613
  },
7551
7614
  {
7552
7615
  key: ConfigKey.resource_coverImage,
@@ -7710,7 +7773,8 @@ var BITS = {
7710
7773
  {
7711
7774
  key: ConfigKey.property_coverImage,
7712
7775
  description: "Cover image of the catalog item",
7713
- format: TagFormat.plainText
7776
+ format: TagFormat.plainText,
7777
+ nullable: true
7714
7778
  },
7715
7779
  {
7716
7780
  key: ConfigKey.property_content2Buy,
@@ -8496,12 +8560,14 @@ var BITS = {
8496
8560
  {
8497
8561
  key: ConfigKey.property_quizCountItems,
8498
8562
  description: "The number of items in the cloze quiz",
8499
- format: TagFormat.boolean
8563
+ format: TagFormat.boolean,
8564
+ nullable: true
8500
8565
  },
8501
8566
  {
8502
8567
  key: ConfigKey.property_quizStrikethroughSolutions,
8503
8568
  description: "If the cloze solutions should be strikethrough",
8504
- format: TagFormat.boolean
8569
+ format: TagFormat.boolean,
8570
+ nullable: true
8505
8571
  },
8506
8572
  {
8507
8573
  key: ConfigKey.group_gap,
@@ -10197,6 +10263,12 @@ var BITS = {
10197
10263
  description: "Extractor theme bit, used to store design/theme JSON extracted from documents",
10198
10264
  textFormatDefault: TextFormat.json
10199
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
+ },
10200
10272
  [BitType.extractorAiChat]: {
10201
10273
  since: "3.19.0",
10202
10274
  baseBitType: BitType._standard,
@@ -10220,12 +10292,14 @@ var BITS = {
10220
10292
  {
10221
10293
  key: ConfigKey.property_x,
10222
10294
  description: "X-coordinate for the block, used to position the block on the page",
10223
- format: TagFormat.number
10295
+ format: TagFormat.number,
10296
+ nullable: true
10224
10297
  },
10225
10298
  {
10226
10299
  key: ConfigKey.property_y,
10227
10300
  description: "Y-coordinate for the block, used to position the block on the page",
10228
- format: TagFormat.number
10301
+ format: TagFormat.number,
10302
+ nullable: true
10229
10303
  },
10230
10304
  {
10231
10305
  key: ConfigKey.property_width,
@@ -11983,7 +12057,8 @@ var BITS = {
11983
12057
  {
11984
12058
  key: ConfigKey.property_product,
11985
12059
  description: "Product reference for the product page, used to link to the product",
11986
- format: TagFormat.plainText
12060
+ format: TagFormat.plainText,
12061
+ nullable: true
11987
12062
  }
11988
12063
  ]
11989
12064
  },
@@ -12002,6 +12077,7 @@ var BITS = {
12002
12077
  key: ConfigKey.property_product,
12003
12078
  description: "Product reference for the product list, used to link to the product",
12004
12079
  format: TagFormat.plainText,
12080
+ nullable: true,
12005
12081
  maxCount: Count.infinity
12006
12082
  }
12007
12083
  // {
@@ -12563,7 +12639,8 @@ var BITS = {
12563
12639
  {
12564
12640
  key: ConfigKey.property_ratingLevelSelected,
12565
12641
  description: "Selected level for the rating survey, used to define the default rating",
12566
- format: TagFormat.number
12642
+ format: TagFormat.number,
12643
+ nullable: true
12567
12644
  },
12568
12645
  {
12569
12646
  key: ConfigKey.property_buttonCaption,
@@ -13895,7 +13972,7 @@ var instance2 = new Config();
13895
13972
  // src/generated/package_info.ts
13896
13973
  var PACKAGE_INFO = {
13897
13974
  "name": "@gmb/bitmark-parser-generator",
13898
- "version": "5.34.0",
13975
+ "version": "5.35.0",
13899
13976
  "license": "ISC"};
13900
13977
  var Environment = {
13901
13978
  unknown: "",
@@ -14788,6 +14865,8 @@ var NodeType = {
14788
14865
  reviewTagValue: "reviewTagValue",
14789
14866
  reviewerTag: "reviewerTag",
14790
14867
  reviewerTagValue: "reviewerTagValue",
14868
+ rightsPolicy: "rightsPolicy",
14869
+ rightsPolicyValue: "rightsPolicyValue",
14791
14870
  root: "root",
14792
14871
  // bit type (root)
14793
14872
  rows: "rows",
@@ -27972,6 +28051,14 @@ var Builder = class extends BaseBuilder {
27972
28051
  data.jupyterExecutionCount,
27973
28052
  options
27974
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
+ ),
27975
28062
  sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
27976
28063
  isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
27977
28064
  isTemplate: this.toAstProperty(