@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.
@@ -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",
@@ -1211,6 +1215,8 @@ var propertyKeys = {
1211
1215
  property_disableFeedback: "@disableFeedback",
1212
1216
  property_duration: "@duration",
1213
1217
  property_isEditable: "@isEditable",
1218
+ property_needsValidation: "@needsValidation",
1219
+ property_validationDate: "@validationDate",
1214
1220
  property_emphasis: "@emphasis",
1215
1221
  property_example: "@example",
1216
1222
  property_externalId: "@externalId",
@@ -1389,6 +1395,7 @@ var propertyKeys = {
1389
1395
  property_technicalTerm: "@technicalTerm",
1390
1396
  property_textReference: "@textReference",
1391
1397
  property_theme: "@theme",
1398
+ property_rtl: "@rtl",
1392
1399
  property_thumbImage: "@thumbImage",
1393
1400
  property_title: "@title",
1394
1401
  property_toc: "@toc",
@@ -2750,6 +2757,18 @@ var GROUPS = {
2750
2757
  format: TagFormat.boolean,
2751
2758
  defaultValue: "false"
2752
2759
  },
2760
+ {
2761
+ key: ConfigKey.property_needsValidation,
2762
+ description: "If true, the bit needs validation",
2763
+ format: TagFormat.boolean,
2764
+ defaultValue: "false"
2765
+ },
2766
+ {
2767
+ key: ConfigKey.property_validationDate,
2768
+ description: "The date when the bit was validated",
2769
+ format: TagFormat.plainText,
2770
+ defaultValue: ""
2771
+ },
2753
2772
  {
2754
2773
  key: ConfigKey.property_aiGenerated,
2755
2774
  description: "If true, the bit is AI-generated",
@@ -2873,6 +2892,12 @@ var GROUPS = {
2873
2892
  format: TagFormat.plainText,
2874
2893
  maxCount: Count.infinity
2875
2894
  },
2895
+ {
2896
+ key: ConfigKey.property_rtl,
2897
+ description: "If true, the book is right-to-left",
2898
+ format: TagFormat.boolean,
2899
+ defaultValue: "false"
2900
+ },
2876
2901
  {
2877
2902
  key: ConfigKey.property_target,
2878
2903
  description: "The target(s) for the bit",
@@ -7263,6 +7288,12 @@ var BITS = {
7263
7288
  description: "Extractor information bit, used to provide information about extractors in articles or books",
7264
7289
  textFormatDefault: TextFormat2.json
7265
7290
  },
7291
+ [BitType.extractorTheme]: {
7292
+ since: "5.7.0",
7293
+ baseBitType: BitType._standard,
7294
+ description: "Extractor theme bit, used to store design/theme JSON extracted from documents",
7295
+ textFormatDefault: TextFormat2.json
7296
+ },
7266
7297
  [BitType.extractorAiChat]: {
7267
7298
  since: "3.19.0",
7268
7299
  baseBitType: BitType._standard,
@@ -9029,6 +9060,21 @@ var BITS = {
9029
9060
  baseBitType: BitType.reviewNote,
9030
9061
  description: "Customer review note bit, used to create customer notes in reviews"
9031
9062
  },
9063
+ [BitType.reviewError]: {
9064
+ since: "5.8.0",
9065
+ baseBitType: BitType.reviewNote,
9066
+ description: "Review error note bit, used to create error notes in reviews"
9067
+ },
9068
+ [BitType.reviewErrorAi]: {
9069
+ since: "5.8.0",
9070
+ baseBitType: BitType.reviewNote,
9071
+ description: "Review error AI note bit, used to create AI error notes in reviews"
9072
+ },
9073
+ [BitType.reviewErrorTranslation]: {
9074
+ since: "5.8.0",
9075
+ baseBitType: BitType.reviewNote,
9076
+ description: "Review error translation note bit, used to create translation error notes in reviews"
9077
+ },
9032
9078
  [BitType.reviewReviewerNote]: {
9033
9079
  since: "1.3.0",
9034
9080
  baseBitType: BitType.reviewNote,
@@ -10343,7 +10389,7 @@ var instance2 = new Config();
10343
10389
  // src/generated/package_info.ts
10344
10390
  var PACKAGE_INFO = {
10345
10391
  "name": "@gmb/bitmark-parser-generator",
10346
- "version": "5.6.0",
10392
+ "version": "5.8.0",
10347
10393
  "author": "Get More Brain Ltd",
10348
10394
  "license": "ISC",
10349
10395
  "description": "A bitmark parser and generator using Peggy.js"
@@ -10692,10 +10738,6 @@ var NodeType = {
10692
10738
  advertisingClickUrl: "advertisingClickUrl",
10693
10739
  advertisingClickUrlValue: "advertisingClickUrlValue",
10694
10740
  ageRange: "ageRange",
10695
- brandColor: "brandColor",
10696
- brandColorValue: "brandColorValue",
10697
- brandColorName: "brandColorName",
10698
- brandColorNameValue: "brandColorNameValue",
10699
10741
  ageRangeValue: "ageRangeValue",
10700
10742
  aiGenerated: "aiGenerated",
10701
10743
  aiGeneratedValue: "aiGeneratedValue",
@@ -10723,7 +10765,6 @@ var NodeType = {
10723
10765
  audioEmbed: "audioEmbed",
10724
10766
  audioLink: "audioLink",
10725
10767
  author: "author",
10726
- authorValue: "authorValue",
10727
10768
  authorFullName: "authorFullName",
10728
10769
  authorFullNameValue: "authorFullNameValue",
10729
10770
  authorJobTitle: "authorJobTitle",
@@ -10732,6 +10773,7 @@ var NodeType = {
10732
10773
  authorPseudonymValue: "authorPseudonymValue",
10733
10774
  authorTitle: "authorTitle",
10734
10775
  authorTitleValue: "authorTitleValue",
10776
+ authorValue: "authorValue",
10735
10777
  availableClassifications: "availableClassifications",
10736
10778
  availableClassificationsValue: "availableClassificationsValue",
10737
10779
  avatarImage: "avatarImage",
@@ -10783,6 +10825,10 @@ var NodeType = {
10783
10825
  botResponses: "botResponses",
10784
10826
  botResponsesValue: "botResponsesValue",
10785
10827
  botValue: "botValue",
10828
+ brandColor: "brandColor",
10829
+ brandColorName: "brandColorName",
10830
+ brandColorNameValue: "brandColorNameValue",
10831
+ brandColorValue: "brandColorValue",
10786
10832
  bubbleTag: "bubbleTag",
10787
10833
  bubbleTagValue: "bubbleTagValue",
10788
10834
  buttonCaption: "buttonCaption",
@@ -10878,6 +10924,8 @@ var NodeType = {
10878
10924
  elementsValueValue: "elementsValueValue",
10879
10925
  emphasis: "emphasis",
10880
10926
  end: "end",
10927
+ enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10928
+ enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10881
10929
  errors: "errors",
10882
10930
  errorsValue: "errorsValue",
10883
10931
  example: "example",
@@ -10886,6 +10934,8 @@ var NodeType = {
10886
10934
  externalIdValue: "externalIdValue",
10887
10935
  externalLink: "externalLink",
10888
10936
  externalLinkText: "externalLinkText",
10937
+ extractorExtractionTimestamp: "extractorExtractionTimestamp",
10938
+ extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10889
10939
  extractorTag: "extractorTag",
10890
10940
  extractorTagValue: "extractorTagValue",
10891
10941
  extraProperties: "extraProperties",
@@ -10904,8 +10954,8 @@ var NodeType = {
10904
10954
  focusY: "focusY",
10905
10955
  focusYValue: "focusYValue",
10906
10956
  footer: "footer",
10907
- footerValue: "footerValue",
10908
10957
  footerText: "footerText",
10958
+ footerValue: "footerValue",
10909
10959
  forKeys: "forKeys",
10910
10960
  format: "format",
10911
10961
  formula: "formula",
@@ -10929,6 +10979,8 @@ var NodeType = {
10929
10979
  hasBookNavigationValue: "hasBookNavigationValue",
10930
10980
  hasMarkAsDone: "hasMarkAsDone",
10931
10981
  hasMarkAsDoneValue: "hasMarkAsDoneValue",
10982
+ hasPrintRestriction: "hasPrintRestriction",
10983
+ hasPrintRestrictionValue: "hasPrintRestrictionValue",
10932
10984
  head: "head",
10933
10985
  heading: "heading",
10934
10986
  height: "height",
@@ -10943,8 +10995,8 @@ var NodeType = {
10943
10995
  iconValue: "iconValue",
10944
10996
  id: "id",
10945
10997
  idValue: "idValue",
10946
- iframeSrc: "iframeSrc",
10947
10998
  iframeName: "iframeName",
10999
+ iframeSrc: "iframeSrc",
10948
11000
  image: "image",
10949
11001
  imageFirst: "imageFirst",
10950
11002
  imageFirstValue: "imageFirstValue",
@@ -10964,12 +11016,6 @@ var NodeType = {
10964
11016
  internalCommentValue: "internalCommentValue",
10965
11017
  internalPrintPdf: "internalPrintPdf",
10966
11018
  internalPrintPdfValue: "internalPrintPdfValue",
10967
- hasPrintRestriction: "hasPrintRestriction",
10968
- hasPrintRestrictionValue: "hasPrintRestrictionValue",
10969
- enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10970
- enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10971
- extractorExtractionTimestamp: "extractorExtractionTimestamp",
10972
- extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10973
11019
  isCaseSensitive: "isCaseSensitive",
10974
11020
  isCommented: "isCommented",
10975
11021
  isCorrect: "isCorrect",
@@ -10988,8 +11034,8 @@ var NodeType = {
10988
11034
  isTracked: "isTracked",
10989
11035
  isTrackedValue: "isTrackedValue",
10990
11036
  item: "item",
10991
- itemValue: "itemValue",
10992
11037
  itemLead: "itemLead",
11038
+ itemValue: "itemValue",
10993
11039
  jobTitle: "jobTitle",
10994
11040
  jobTitleValue: "jobTitleValue",
10995
11041
  jupyterExecutionCount: "jupyterExecutionCount",
@@ -11036,10 +11082,6 @@ var NodeType = {
11036
11082
  locationValue: "locationValue",
11037
11083
  machineTranslated: "machineTranslated",
11038
11084
  machineTranslatedValue: "machineTranslatedValue",
11039
- translationOf: "translationOf",
11040
- translationOfValue: "translationOfValue",
11041
- spansPageBreak: "spansPageBreak",
11042
- spansPageBreakValue: "spansPageBreakValue",
11043
11085
  mailingList: "mailingList",
11044
11086
  marginNumber: "marginNumber",
11045
11087
  marginNumberValue: "marginNumberValue",
@@ -11061,6 +11103,8 @@ var NodeType = {
11061
11103
  message: "message",
11062
11104
  mockupId: "mockupId",
11063
11105
  name: "name",
11106
+ needsValidation: "needsValidation",
11107
+ needsValidationValue: "needsValidationValue",
11064
11108
  offset: "offset",
11065
11109
  options: "options",
11066
11110
  optionsValue: "optionsValue",
@@ -11073,8 +11117,6 @@ var NodeType = {
11073
11117
  pageNumber: "pageNumber",
11074
11118
  pageNumberValue: "pageNumberValue",
11075
11119
  pageValue: "pageValue",
11076
- printParentChapterLevel: "printParentChapterLevel",
11077
- printParentChapterLevelValue: "printParentChapterLevelValue",
11078
11120
  pairs: "pairs",
11079
11121
  pairsValue: "pairsValue",
11080
11122
  parent: "parent",
@@ -11083,55 +11125,55 @@ var NodeType = {
11083
11125
  partialAnswerValue: "partialAnswerValue",
11084
11126
  path: "path",
11085
11127
  pathValue: "pathValue",
11128
+ person: "person",
11129
+ platformBackgroundColor: "platformBackgroundColor",
11130
+ platformBackgroundColorValue: "platformBackgroundColorValue",
11131
+ platformBackgroundImage: "platformBackgroundImage",
11132
+ platformBackgroundImageValue: "platformBackgroundImageValue",
11133
+ platformBaseLayerColor: "platformBaseLayerColor",
11134
+ platformBaseLayerColorValue: "platformBaseLayerColorValue",
11135
+ platformBorderColor: "platformBorderColor",
11136
+ platformBorderColorValue: "platformBorderColorValue",
11137
+ platformBorderRadius: "platformBorderRadius",
11138
+ platformBorderRadiusValue: "platformBorderRadiusValue",
11086
11139
  platformBrandTarget: "platformBrandTarget",
11087
11140
  platformBrandTargetValue: "platformBrandTargetValue",
11088
- platformName: "platformName",
11089
- platformNameValue: "platformNameValue",
11141
+ platformButtonBackgroundColor: "platformButtonBackgroundColor",
11142
+ platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11143
+ platformButtonPrimaryColor: "platformButtonPrimaryColor",
11144
+ platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11090
11145
  platformIcon: "platformIcon",
11091
11146
  platformIconValue: "platformIconValue",
11092
11147
  platformLogo: "platformLogo",
11093
- platformLogoValue: "platformLogoValue",
11094
11148
  platformLogoMaxHeight: "platformLogoMaxHeight",
11095
11149
  platformLogoMaxHeightValue: "platformLogoMaxHeightValue",
11150
+ platformLogoValue: "platformLogoValue",
11151
+ platformMargin: "platformMargin",
11152
+ platformMarginValue: "platformMarginValue",
11153
+ platformMessageBackgroundColor: "platformMessageBackgroundColor",
11154
+ platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11155
+ platformName: "platformName",
11156
+ platformNameValue: "platformNameValue",
11157
+ platformNeedsShadow: "platformNeedsShadow",
11158
+ platformNeedsShadowValue: "platformNeedsShadowValue",
11159
+ platformPlaceholderColor: "platformPlaceholderColor",
11160
+ platformPlaceholderColorValue: "platformPlaceholderColorValue",
11096
11161
  platformPrimaryColor: "platformPrimaryColor",
11097
11162
  platformPrimaryColorValue: "platformPrimaryColorValue",
11098
- platformSecondaryColor: "platformSecondaryColor",
11099
- platformSecondaryColorValue: "platformSecondaryColorValue",
11100
- platformBackgroundColor: "platformBackgroundColor",
11101
- platformBackgroundColorValue: "platformBackgroundColorValue",
11102
11163
  platformScrollbarColor: "platformScrollbarColor",
11103
11164
  platformScrollbarColorValue: "platformScrollbarColorValue",
11165
+ platformSecondaryColor: "platformSecondaryColor",
11166
+ platformSecondaryColorValue: "platformSecondaryColorValue",
11167
+ platformSelectionBorderRadius: "platformSelectionBorderRadius",
11168
+ platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11104
11169
  platformSelectionColor: "platformSelectionColor",
11105
11170
  platformSelectionColorValue: "platformSelectionColorValue",
11171
+ platformSelectionTextColor: "platformSelectionTextColor",
11172
+ platformSelectionTextColorValue: "platformSelectionTextColorValue",
11106
11173
  platformSeparatorColor: "platformSeparatorColor",
11107
11174
  platformSeparatorColorValue: "platformSeparatorColorValue",
11108
- platformPlaceholderColor: "platformPlaceholderColor",
11109
- platformPlaceholderColorValue: "platformPlaceholderColorValue",
11110
11175
  platformTextSelectionColor: "platformTextSelectionColor",
11111
11176
  platformTextSelectionColorValue: "platformTextSelectionColorValue",
11112
- platformButtonPrimaryColor: "platformButtonPrimaryColor",
11113
- platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11114
- platformButtonBackgroundColor: "platformButtonBackgroundColor",
11115
- platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11116
- platformMessageBackgroundColor: "platformMessageBackgroundColor",
11117
- platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11118
- platformBackgroundImage: "platformBackgroundImage",
11119
- platformBackgroundImageValue: "platformBackgroundImageValue",
11120
- platformBorderColor: "platformBorderColor",
11121
- platformBorderColorValue: "platformBorderColorValue",
11122
- platformSelectionTextColor: "platformSelectionTextColor",
11123
- platformSelectionTextColorValue: "platformSelectionTextColorValue",
11124
- platformBaseLayerColor: "platformBaseLayerColor",
11125
- platformBaseLayerColorValue: "platformBaseLayerColorValue",
11126
- platformMargin: "platformMargin",
11127
- platformMarginValue: "platformMarginValue",
11128
- platformBorderRadius: "platformBorderRadius",
11129
- platformBorderRadiusValue: "platformBorderRadiusValue",
11130
- platformSelectionBorderRadius: "platformSelectionBorderRadius",
11131
- platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11132
- platformNeedsShadow: "platformNeedsShadow",
11133
- platformNeedsShadowValue: "platformNeedsShadowValue",
11134
- person: "person",
11135
11177
  pointerLeft: "pointerLeft",
11136
11178
  pointerLeftValue: "pointerLeftValue",
11137
11179
  pointerTop: "pointerTop",
@@ -11144,6 +11186,8 @@ var NodeType = {
11144
11186
  previewImageValue: "previewImageValue",
11145
11187
  previewVideo: "previewVideo",
11146
11188
  previewVideoValue: "previewVideoValue",
11189
+ printParentChapterLevel: "printParentChapterLevel",
11190
+ printParentChapterLevelValue: "printParentChapterLevelValue",
11147
11191
  processHandIn: "processHandIn",
11148
11192
  processHandInLocation: "processHandInLocation",
11149
11193
  processHandInLocationValue: "processHandInLocationValue",
@@ -11179,9 +11223,9 @@ var NodeType = {
11179
11223
  publisherValue: "publisherValue",
11180
11224
  quantity: "quantity",
11181
11225
  question: "question",
11182
- questionValue: "questionValue",
11183
11226
  questions: "questions",
11184
11227
  questionsValue: "questionsValue",
11228
+ questionValue: "questionValue",
11185
11229
  quizCountItems: "quizCountItems",
11186
11230
  quizCountItemsValue: "quizCountItemsValue",
11187
11231
  quizStrikethroughSolutions: "quizStrikethroughSolutions",
@@ -11234,6 +11278,8 @@ var NodeType = {
11234
11278
  // bit type (root)
11235
11279
  rows: "rows",
11236
11280
  rowsValue: "rowsValue",
11281
+ rtl: "rtl",
11282
+ rtlValue: "rtlValue",
11237
11283
  rubric: "rubric",
11238
11284
  rubricValue: "rubricValue",
11239
11285
  sampleSolution: "sampleSolution",
@@ -11263,6 +11309,8 @@ var NodeType = {
11263
11309
  sourceRLValue: "sourceRLValue",
11264
11310
  spaceId: "spaceId",
11265
11311
  spaceIdValue: "spaceIdValue",
11312
+ spansPageBreak: "spansPageBreak",
11313
+ spansPageBreakValue: "spansPageBreakValue",
11266
11314
  src: "src",
11267
11315
  src1x: "src1x",
11268
11316
  src2x: "src2x",
@@ -11333,8 +11381,8 @@ var NodeType = {
11333
11381
  thumbnails: "thumbnails",
11334
11382
  thumbnailsValue: "thumbnailsValue",
11335
11383
  title: "title",
11336
- titleValue: "titleValue",
11337
11384
  titleString: "titleString",
11385
+ titleValue: "titleValue",
11338
11386
  toc: "toc",
11339
11387
  tocContent: "tocContent",
11340
11388
  tocContentValue: "tocContentValue",
@@ -11343,11 +11391,15 @@ var NodeType = {
11343
11391
  tocValue: "tocValue",
11344
11392
  topicTag: "topicTag",
11345
11393
  topicTagValue: "topicTagValue",
11394
+ translationOf: "translationOf",
11395
+ translationOfValue: "translationOfValue",
11346
11396
  trim: "trim",
11347
11397
  type: "type",
11348
11398
  unit: "unit",
11349
11399
  unitAbbr: "unitAbbr",
11350
11400
  url: "url",
11401
+ validationDate: "validationDate",
11402
+ validationDateValue: "validationDateValue",
11351
11403
  value: "value",
11352
11404
  values: "values",
11353
11405
  valuesValue: "valuesValue",
@@ -24114,6 +24166,18 @@ var Builder = class extends BaseBuilder {
24114
24166
  data.isEditable,
24115
24167
  options
24116
24168
  ),
24169
+ needsValidation: this.toAstProperty(
24170
+ bitType,
24171
+ ConfigKey.property_needsValidation,
24172
+ data.needsValidation,
24173
+ options
24174
+ ),
24175
+ validationDate: this.toAstProperty(
24176
+ bitType,
24177
+ ConfigKey.property_validationDate,
24178
+ data.validationDate,
24179
+ options
24180
+ ),
24117
24181
  aiGenerated: this.toAstProperty(
24118
24182
  bitType,
24119
24183
  ConfigKey.property_aiGenerated,
@@ -24230,6 +24294,7 @@ var Builder = class extends BaseBuilder {
24230
24294
  options
24231
24295
  ),
24232
24296
  theme: this.toAstProperty(bitType, ConfigKey.property_theme, data.theme, options),
24297
+ rtl: this.toAstProperty(bitType, ConfigKey.property_rtl, data.rtl, options),
24233
24298
  computerLanguage: this.toAstProperty(
24234
24299
  bitType,
24235
24300
  ConfigKey.property_computerLanguage,