@gmb/bitmark-parser-generator 5.6.0 → 5.8.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
@@ -263,6 +263,7 @@ var BitType = {
263
263
  extractorPageWithBlocks: "extractor-page-with-blocks",
264
264
  extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible",
265
265
  extractorRepeatedText: "extractor-repeated-text",
266
+ extractorTheme: "extractor-theme",
266
267
  featured: "featured",
267
268
  feedback: "feedback",
268
269
  figure: "figure",
@@ -478,6 +479,9 @@ var BitType = {
478
479
  reviewApprovedNote: "review-approved-note",
479
480
  reviewAuthorNote: "review-author-note",
480
481
  reviewCustomerNote: "review-customer-note",
482
+ reviewError: "review-error",
483
+ reviewErrorAi: "review-error-ai",
484
+ reviewErrorTranslation: "review-error-translation",
481
485
  reviewNote: "review-note",
482
486
  reviewRequestForReviewNote: "review-request-for-review-note",
483
487
  reviewReviewerNote: "review-reviewer-note",
@@ -1176,6 +1180,8 @@ var propertyKeys = {
1176
1180
  property_disableFeedback: "@disableFeedback",
1177
1181
  property_duration: "@duration",
1178
1182
  property_isEditable: "@isEditable",
1183
+ property_needsValidation: "@needsValidation",
1184
+ property_validationDate: "@validationDate",
1179
1185
  property_emphasis: "@emphasis",
1180
1186
  property_example: "@example",
1181
1187
  property_externalId: "@externalId",
@@ -1354,6 +1360,7 @@ var propertyKeys = {
1354
1360
  property_technicalTerm: "@technicalTerm",
1355
1361
  property_textReference: "@textReference",
1356
1362
  property_theme: "@theme",
1363
+ property_rtl: "@rtl",
1357
1364
  property_thumbImage: "@thumbImage",
1358
1365
  property_title: "@title",
1359
1366
  property_toc: "@toc",
@@ -2706,6 +2713,18 @@ var GROUPS = {
2706
2713
  format: TagFormat.boolean,
2707
2714
  defaultValue: "false"
2708
2715
  },
2716
+ {
2717
+ key: ConfigKey.property_needsValidation,
2718
+ description: "If true, the bit needs validation",
2719
+ format: TagFormat.boolean,
2720
+ defaultValue: "false"
2721
+ },
2722
+ {
2723
+ key: ConfigKey.property_validationDate,
2724
+ description: "The date when the bit was validated",
2725
+ format: TagFormat.plainText,
2726
+ defaultValue: ""
2727
+ },
2709
2728
  {
2710
2729
  key: ConfigKey.property_aiGenerated,
2711
2730
  description: "If true, the bit is AI-generated",
@@ -2829,6 +2848,12 @@ var GROUPS = {
2829
2848
  format: TagFormat.plainText,
2830
2849
  maxCount: Count.infinity
2831
2850
  },
2851
+ {
2852
+ key: ConfigKey.property_rtl,
2853
+ description: "If true, the book is right-to-left",
2854
+ format: TagFormat.boolean,
2855
+ defaultValue: "false"
2856
+ },
2832
2857
  {
2833
2858
  key: ConfigKey.property_target,
2834
2859
  description: "The target(s) for the bit",
@@ -7219,6 +7244,12 @@ var BITS = {
7219
7244
  description: "Extractor information bit, used to provide information about extractors in articles or books",
7220
7245
  textFormatDefault: TextFormat.json
7221
7246
  },
7247
+ [BitType.extractorTheme]: {
7248
+ since: "5.7.0",
7249
+ baseBitType: BitType._standard,
7250
+ description: "Extractor theme bit, used to store design/theme JSON extracted from documents",
7251
+ textFormatDefault: TextFormat.json
7252
+ },
7222
7253
  [BitType.extractorAiChat]: {
7223
7254
  since: "3.19.0",
7224
7255
  baseBitType: BitType._standard,
@@ -8985,6 +9016,21 @@ var BITS = {
8985
9016
  baseBitType: BitType.reviewNote,
8986
9017
  description: "Customer review note bit, used to create customer notes in reviews"
8987
9018
  },
9019
+ [BitType.reviewError]: {
9020
+ since: "5.8.0",
9021
+ baseBitType: BitType.reviewNote,
9022
+ description: "Review error note bit, used to create error notes in reviews"
9023
+ },
9024
+ [BitType.reviewErrorAi]: {
9025
+ since: "5.8.0",
9026
+ baseBitType: BitType.reviewNote,
9027
+ description: "Review error AI note bit, used to create AI error notes in reviews"
9028
+ },
9029
+ [BitType.reviewErrorTranslation]: {
9030
+ since: "5.8.0",
9031
+ baseBitType: BitType.reviewNote,
9032
+ description: "Review error translation note bit, used to create translation error notes in reviews"
9033
+ },
8988
9034
  [BitType.reviewReviewerNote]: {
8989
9035
  since: "1.3.0",
8990
9036
  baseBitType: BitType.reviewNote,
@@ -10299,7 +10345,7 @@ var instance2 = new Config();
10299
10345
  // src/generated/package_info.ts
10300
10346
  var PACKAGE_INFO = {
10301
10347
  "name": "@gmb/bitmark-parser-generator",
10302
- "version": "5.6.0",
10348
+ "version": "5.8.0",
10303
10349
  "license": "ISC"};
10304
10350
  var Environment = {
10305
10351
  unknown: "",
@@ -10616,10 +10662,6 @@ var NodeType = {
10616
10662
  advertisingClickUrl: "advertisingClickUrl",
10617
10663
  advertisingClickUrlValue: "advertisingClickUrlValue",
10618
10664
  ageRange: "ageRange",
10619
- brandColor: "brandColor",
10620
- brandColorValue: "brandColorValue",
10621
- brandColorName: "brandColorName",
10622
- brandColorNameValue: "brandColorNameValue",
10623
10665
  ageRangeValue: "ageRangeValue",
10624
10666
  aiGenerated: "aiGenerated",
10625
10667
  aiGeneratedValue: "aiGeneratedValue",
@@ -10647,7 +10689,6 @@ var NodeType = {
10647
10689
  audioEmbed: "audioEmbed",
10648
10690
  audioLink: "audioLink",
10649
10691
  author: "author",
10650
- authorValue: "authorValue",
10651
10692
  authorFullName: "authorFullName",
10652
10693
  authorFullNameValue: "authorFullNameValue",
10653
10694
  authorJobTitle: "authorJobTitle",
@@ -10656,6 +10697,7 @@ var NodeType = {
10656
10697
  authorPseudonymValue: "authorPseudonymValue",
10657
10698
  authorTitle: "authorTitle",
10658
10699
  authorTitleValue: "authorTitleValue",
10700
+ authorValue: "authorValue",
10659
10701
  availableClassifications: "availableClassifications",
10660
10702
  availableClassificationsValue: "availableClassificationsValue",
10661
10703
  avatarImage: "avatarImage",
@@ -10707,6 +10749,10 @@ var NodeType = {
10707
10749
  botResponses: "botResponses",
10708
10750
  botResponsesValue: "botResponsesValue",
10709
10751
  botValue: "botValue",
10752
+ brandColor: "brandColor",
10753
+ brandColorName: "brandColorName",
10754
+ brandColorNameValue: "brandColorNameValue",
10755
+ brandColorValue: "brandColorValue",
10710
10756
  bubbleTag: "bubbleTag",
10711
10757
  bubbleTagValue: "bubbleTagValue",
10712
10758
  buttonCaption: "buttonCaption",
@@ -10802,6 +10848,8 @@ var NodeType = {
10802
10848
  elementsValueValue: "elementsValueValue",
10803
10849
  emphasis: "emphasis",
10804
10850
  end: "end",
10851
+ enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10852
+ enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10805
10853
  errors: "errors",
10806
10854
  errorsValue: "errorsValue",
10807
10855
  example: "example",
@@ -10810,6 +10858,8 @@ var NodeType = {
10810
10858
  externalIdValue: "externalIdValue",
10811
10859
  externalLink: "externalLink",
10812
10860
  externalLinkText: "externalLinkText",
10861
+ extractorExtractionTimestamp: "extractorExtractionTimestamp",
10862
+ extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10813
10863
  extractorTag: "extractorTag",
10814
10864
  extractorTagValue: "extractorTagValue",
10815
10865
  extraProperties: "extraProperties",
@@ -10828,8 +10878,8 @@ var NodeType = {
10828
10878
  focusY: "focusY",
10829
10879
  focusYValue: "focusYValue",
10830
10880
  footer: "footer",
10831
- footerValue: "footerValue",
10832
10881
  footerText: "footerText",
10882
+ footerValue: "footerValue",
10833
10883
  forKeys: "forKeys",
10834
10884
  format: "format",
10835
10885
  formula: "formula",
@@ -10853,6 +10903,8 @@ var NodeType = {
10853
10903
  hasBookNavigationValue: "hasBookNavigationValue",
10854
10904
  hasMarkAsDone: "hasMarkAsDone",
10855
10905
  hasMarkAsDoneValue: "hasMarkAsDoneValue",
10906
+ hasPrintRestriction: "hasPrintRestriction",
10907
+ hasPrintRestrictionValue: "hasPrintRestrictionValue",
10856
10908
  head: "head",
10857
10909
  heading: "heading",
10858
10910
  height: "height",
@@ -10867,8 +10919,8 @@ var NodeType = {
10867
10919
  iconValue: "iconValue",
10868
10920
  id: "id",
10869
10921
  idValue: "idValue",
10870
- iframeSrc: "iframeSrc",
10871
10922
  iframeName: "iframeName",
10923
+ iframeSrc: "iframeSrc",
10872
10924
  image: "image",
10873
10925
  imageFirst: "imageFirst",
10874
10926
  imageFirstValue: "imageFirstValue",
@@ -10888,12 +10940,6 @@ var NodeType = {
10888
10940
  internalCommentValue: "internalCommentValue",
10889
10941
  internalPrintPdf: "internalPrintPdf",
10890
10942
  internalPrintPdfValue: "internalPrintPdfValue",
10891
- hasPrintRestriction: "hasPrintRestriction",
10892
- hasPrintRestrictionValue: "hasPrintRestrictionValue",
10893
- enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10894
- enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10895
- extractorExtractionTimestamp: "extractorExtractionTimestamp",
10896
- extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10897
10943
  isCaseSensitive: "isCaseSensitive",
10898
10944
  isCommented: "isCommented",
10899
10945
  isCorrect: "isCorrect",
@@ -10912,8 +10958,8 @@ var NodeType = {
10912
10958
  isTracked: "isTracked",
10913
10959
  isTrackedValue: "isTrackedValue",
10914
10960
  item: "item",
10915
- itemValue: "itemValue",
10916
10961
  itemLead: "itemLead",
10962
+ itemValue: "itemValue",
10917
10963
  jobTitle: "jobTitle",
10918
10964
  jobTitleValue: "jobTitleValue",
10919
10965
  jupyterExecutionCount: "jupyterExecutionCount",
@@ -10960,10 +11006,6 @@ var NodeType = {
10960
11006
  locationValue: "locationValue",
10961
11007
  machineTranslated: "machineTranslated",
10962
11008
  machineTranslatedValue: "machineTranslatedValue",
10963
- translationOf: "translationOf",
10964
- translationOfValue: "translationOfValue",
10965
- spansPageBreak: "spansPageBreak",
10966
- spansPageBreakValue: "spansPageBreakValue",
10967
11009
  mailingList: "mailingList",
10968
11010
  marginNumber: "marginNumber",
10969
11011
  marginNumberValue: "marginNumberValue",
@@ -10985,6 +11027,8 @@ var NodeType = {
10985
11027
  message: "message",
10986
11028
  mockupId: "mockupId",
10987
11029
  name: "name",
11030
+ needsValidation: "needsValidation",
11031
+ needsValidationValue: "needsValidationValue",
10988
11032
  offset: "offset",
10989
11033
  options: "options",
10990
11034
  optionsValue: "optionsValue",
@@ -10997,8 +11041,6 @@ var NodeType = {
10997
11041
  pageNumber: "pageNumber",
10998
11042
  pageNumberValue: "pageNumberValue",
10999
11043
  pageValue: "pageValue",
11000
- printParentChapterLevel: "printParentChapterLevel",
11001
- printParentChapterLevelValue: "printParentChapterLevelValue",
11002
11044
  pairs: "pairs",
11003
11045
  pairsValue: "pairsValue",
11004
11046
  parent: "parent",
@@ -11007,55 +11049,55 @@ var NodeType = {
11007
11049
  partialAnswerValue: "partialAnswerValue",
11008
11050
  path: "path",
11009
11051
  pathValue: "pathValue",
11052
+ person: "person",
11053
+ platformBackgroundColor: "platformBackgroundColor",
11054
+ platformBackgroundColorValue: "platformBackgroundColorValue",
11055
+ platformBackgroundImage: "platformBackgroundImage",
11056
+ platformBackgroundImageValue: "platformBackgroundImageValue",
11057
+ platformBaseLayerColor: "platformBaseLayerColor",
11058
+ platformBaseLayerColorValue: "platformBaseLayerColorValue",
11059
+ platformBorderColor: "platformBorderColor",
11060
+ platformBorderColorValue: "platformBorderColorValue",
11061
+ platformBorderRadius: "platformBorderRadius",
11062
+ platformBorderRadiusValue: "platformBorderRadiusValue",
11010
11063
  platformBrandTarget: "platformBrandTarget",
11011
11064
  platformBrandTargetValue: "platformBrandTargetValue",
11012
- platformName: "platformName",
11013
- platformNameValue: "platformNameValue",
11065
+ platformButtonBackgroundColor: "platformButtonBackgroundColor",
11066
+ platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11067
+ platformButtonPrimaryColor: "platformButtonPrimaryColor",
11068
+ platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11014
11069
  platformIcon: "platformIcon",
11015
11070
  platformIconValue: "platformIconValue",
11016
11071
  platformLogo: "platformLogo",
11017
- platformLogoValue: "platformLogoValue",
11018
11072
  platformLogoMaxHeight: "platformLogoMaxHeight",
11019
11073
  platformLogoMaxHeightValue: "platformLogoMaxHeightValue",
11074
+ platformLogoValue: "platformLogoValue",
11075
+ platformMargin: "platformMargin",
11076
+ platformMarginValue: "platformMarginValue",
11077
+ platformMessageBackgroundColor: "platformMessageBackgroundColor",
11078
+ platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11079
+ platformName: "platformName",
11080
+ platformNameValue: "platformNameValue",
11081
+ platformNeedsShadow: "platformNeedsShadow",
11082
+ platformNeedsShadowValue: "platformNeedsShadowValue",
11083
+ platformPlaceholderColor: "platformPlaceholderColor",
11084
+ platformPlaceholderColorValue: "platformPlaceholderColorValue",
11020
11085
  platformPrimaryColor: "platformPrimaryColor",
11021
11086
  platformPrimaryColorValue: "platformPrimaryColorValue",
11022
- platformSecondaryColor: "platformSecondaryColor",
11023
- platformSecondaryColorValue: "platformSecondaryColorValue",
11024
- platformBackgroundColor: "platformBackgroundColor",
11025
- platformBackgroundColorValue: "platformBackgroundColorValue",
11026
11087
  platformScrollbarColor: "platformScrollbarColor",
11027
11088
  platformScrollbarColorValue: "platformScrollbarColorValue",
11089
+ platformSecondaryColor: "platformSecondaryColor",
11090
+ platformSecondaryColorValue: "platformSecondaryColorValue",
11091
+ platformSelectionBorderRadius: "platformSelectionBorderRadius",
11092
+ platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11028
11093
  platformSelectionColor: "platformSelectionColor",
11029
11094
  platformSelectionColorValue: "platformSelectionColorValue",
11095
+ platformSelectionTextColor: "platformSelectionTextColor",
11096
+ platformSelectionTextColorValue: "platformSelectionTextColorValue",
11030
11097
  platformSeparatorColor: "platformSeparatorColor",
11031
11098
  platformSeparatorColorValue: "platformSeparatorColorValue",
11032
- platformPlaceholderColor: "platformPlaceholderColor",
11033
- platformPlaceholderColorValue: "platformPlaceholderColorValue",
11034
11099
  platformTextSelectionColor: "platformTextSelectionColor",
11035
11100
  platformTextSelectionColorValue: "platformTextSelectionColorValue",
11036
- platformButtonPrimaryColor: "platformButtonPrimaryColor",
11037
- platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11038
- platformButtonBackgroundColor: "platformButtonBackgroundColor",
11039
- platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11040
- platformMessageBackgroundColor: "platformMessageBackgroundColor",
11041
- platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11042
- platformBackgroundImage: "platformBackgroundImage",
11043
- platformBackgroundImageValue: "platformBackgroundImageValue",
11044
- platformBorderColor: "platformBorderColor",
11045
- platformBorderColorValue: "platformBorderColorValue",
11046
- platformSelectionTextColor: "platformSelectionTextColor",
11047
- platformSelectionTextColorValue: "platformSelectionTextColorValue",
11048
- platformBaseLayerColor: "platformBaseLayerColor",
11049
- platformBaseLayerColorValue: "platformBaseLayerColorValue",
11050
- platformMargin: "platformMargin",
11051
- platformMarginValue: "platformMarginValue",
11052
- platformBorderRadius: "platformBorderRadius",
11053
- platformBorderRadiusValue: "platformBorderRadiusValue",
11054
- platformSelectionBorderRadius: "platformSelectionBorderRadius",
11055
- platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11056
- platformNeedsShadow: "platformNeedsShadow",
11057
- platformNeedsShadowValue: "platformNeedsShadowValue",
11058
- person: "person",
11059
11101
  pointerLeft: "pointerLeft",
11060
11102
  pointerLeftValue: "pointerLeftValue",
11061
11103
  pointerTop: "pointerTop",
@@ -11068,6 +11110,8 @@ var NodeType = {
11068
11110
  previewImageValue: "previewImageValue",
11069
11111
  previewVideo: "previewVideo",
11070
11112
  previewVideoValue: "previewVideoValue",
11113
+ printParentChapterLevel: "printParentChapterLevel",
11114
+ printParentChapterLevelValue: "printParentChapterLevelValue",
11071
11115
  processHandIn: "processHandIn",
11072
11116
  processHandInLocation: "processHandInLocation",
11073
11117
  processHandInLocationValue: "processHandInLocationValue",
@@ -11103,9 +11147,9 @@ var NodeType = {
11103
11147
  publisherValue: "publisherValue",
11104
11148
  quantity: "quantity",
11105
11149
  question: "question",
11106
- questionValue: "questionValue",
11107
11150
  questions: "questions",
11108
11151
  questionsValue: "questionsValue",
11152
+ questionValue: "questionValue",
11109
11153
  quizCountItems: "quizCountItems",
11110
11154
  quizCountItemsValue: "quizCountItemsValue",
11111
11155
  quizStrikethroughSolutions: "quizStrikethroughSolutions",
@@ -11158,6 +11202,8 @@ var NodeType = {
11158
11202
  // bit type (root)
11159
11203
  rows: "rows",
11160
11204
  rowsValue: "rowsValue",
11205
+ rtl: "rtl",
11206
+ rtlValue: "rtlValue",
11161
11207
  rubric: "rubric",
11162
11208
  rubricValue: "rubricValue",
11163
11209
  sampleSolution: "sampleSolution",
@@ -11187,6 +11233,8 @@ var NodeType = {
11187
11233
  sourceRLValue: "sourceRLValue",
11188
11234
  spaceId: "spaceId",
11189
11235
  spaceIdValue: "spaceIdValue",
11236
+ spansPageBreak: "spansPageBreak",
11237
+ spansPageBreakValue: "spansPageBreakValue",
11190
11238
  src: "src",
11191
11239
  src1x: "src1x",
11192
11240
  src2x: "src2x",
@@ -11257,8 +11305,8 @@ var NodeType = {
11257
11305
  thumbnails: "thumbnails",
11258
11306
  thumbnailsValue: "thumbnailsValue",
11259
11307
  title: "title",
11260
- titleValue: "titleValue",
11261
11308
  titleString: "titleString",
11309
+ titleValue: "titleValue",
11262
11310
  toc: "toc",
11263
11311
  tocContent: "tocContent",
11264
11312
  tocContentValue: "tocContentValue",
@@ -11267,11 +11315,15 @@ var NodeType = {
11267
11315
  tocValue: "tocValue",
11268
11316
  topicTag: "topicTag",
11269
11317
  topicTagValue: "topicTagValue",
11318
+ translationOf: "translationOf",
11319
+ translationOfValue: "translationOfValue",
11270
11320
  trim: "trim",
11271
11321
  type: "type",
11272
11322
  unit: "unit",
11273
11323
  unitAbbr: "unitAbbr",
11274
11324
  url: "url",
11325
+ validationDate: "validationDate",
11326
+ validationDateValue: "validationDateValue",
11275
11327
  value: "value",
11276
11328
  values: "values",
11277
11329
  valuesValue: "valuesValue",
@@ -23854,6 +23906,18 @@ var Builder = class extends BaseBuilder {
23854
23906
  data.isEditable,
23855
23907
  options
23856
23908
  ),
23909
+ needsValidation: this.toAstProperty(
23910
+ bitType,
23911
+ ConfigKey.property_needsValidation,
23912
+ data.needsValidation,
23913
+ options
23914
+ ),
23915
+ validationDate: this.toAstProperty(
23916
+ bitType,
23917
+ ConfigKey.property_validationDate,
23918
+ data.validationDate,
23919
+ options
23920
+ ),
23857
23921
  aiGenerated: this.toAstProperty(
23858
23922
  bitType,
23859
23923
  ConfigKey.property_aiGenerated,
@@ -23970,6 +24034,7 @@ var Builder = class extends BaseBuilder {
23970
24034
  options
23971
24035
  ),
23972
24036
  theme: this.toAstProperty(bitType, ConfigKey.property_theme, data.theme, options),
24037
+ rtl: this.toAstProperty(bitType, ConfigKey.property_rtl, data.rtl, options),
23973
24038
  computerLanguage: this.toAstProperty(
23974
24039
  bitType,
23975
24040
  ConfigKey.property_computerLanguage,