@gmb/bitmark-parser-generator 5.7.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",
@@ -2751,6 +2757,18 @@ var GROUPS = {
2751
2757
  format: TagFormat.boolean,
2752
2758
  defaultValue: "false"
2753
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
+ },
2754
2772
  {
2755
2773
  key: ConfigKey.property_aiGenerated,
2756
2774
  description: "If true, the bit is AI-generated",
@@ -7270,6 +7288,12 @@ var BITS = {
7270
7288
  description: "Extractor information bit, used to provide information about extractors in articles or books",
7271
7289
  textFormatDefault: TextFormat2.json
7272
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
+ },
7273
7297
  [BitType.extractorAiChat]: {
7274
7298
  since: "3.19.0",
7275
7299
  baseBitType: BitType._standard,
@@ -9036,6 +9060,21 @@ var BITS = {
9036
9060
  baseBitType: BitType.reviewNote,
9037
9061
  description: "Customer review note bit, used to create customer notes in reviews"
9038
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
+ },
9039
9078
  [BitType.reviewReviewerNote]: {
9040
9079
  since: "1.3.0",
9041
9080
  baseBitType: BitType.reviewNote,
@@ -10350,7 +10389,7 @@ var instance2 = new Config();
10350
10389
  // src/generated/package_info.ts
10351
10390
  var PACKAGE_INFO = {
10352
10391
  "name": "@gmb/bitmark-parser-generator",
10353
- "version": "5.7.0",
10392
+ "version": "5.8.0",
10354
10393
  "author": "Get More Brain Ltd",
10355
10394
  "license": "ISC",
10356
10395
  "description": "A bitmark parser and generator using Peggy.js"
@@ -10699,10 +10738,6 @@ var NodeType = {
10699
10738
  advertisingClickUrl: "advertisingClickUrl",
10700
10739
  advertisingClickUrlValue: "advertisingClickUrlValue",
10701
10740
  ageRange: "ageRange",
10702
- brandColor: "brandColor",
10703
- brandColorValue: "brandColorValue",
10704
- brandColorName: "brandColorName",
10705
- brandColorNameValue: "brandColorNameValue",
10706
10741
  ageRangeValue: "ageRangeValue",
10707
10742
  aiGenerated: "aiGenerated",
10708
10743
  aiGeneratedValue: "aiGeneratedValue",
@@ -10730,7 +10765,6 @@ var NodeType = {
10730
10765
  audioEmbed: "audioEmbed",
10731
10766
  audioLink: "audioLink",
10732
10767
  author: "author",
10733
- authorValue: "authorValue",
10734
10768
  authorFullName: "authorFullName",
10735
10769
  authorFullNameValue: "authorFullNameValue",
10736
10770
  authorJobTitle: "authorJobTitle",
@@ -10739,6 +10773,7 @@ var NodeType = {
10739
10773
  authorPseudonymValue: "authorPseudonymValue",
10740
10774
  authorTitle: "authorTitle",
10741
10775
  authorTitleValue: "authorTitleValue",
10776
+ authorValue: "authorValue",
10742
10777
  availableClassifications: "availableClassifications",
10743
10778
  availableClassificationsValue: "availableClassificationsValue",
10744
10779
  avatarImage: "avatarImage",
@@ -10790,6 +10825,10 @@ var NodeType = {
10790
10825
  botResponses: "botResponses",
10791
10826
  botResponsesValue: "botResponsesValue",
10792
10827
  botValue: "botValue",
10828
+ brandColor: "brandColor",
10829
+ brandColorName: "brandColorName",
10830
+ brandColorNameValue: "brandColorNameValue",
10831
+ brandColorValue: "brandColorValue",
10793
10832
  bubbleTag: "bubbleTag",
10794
10833
  bubbleTagValue: "bubbleTagValue",
10795
10834
  buttonCaption: "buttonCaption",
@@ -10885,6 +10924,8 @@ var NodeType = {
10885
10924
  elementsValueValue: "elementsValueValue",
10886
10925
  emphasis: "emphasis",
10887
10926
  end: "end",
10927
+ enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10928
+ enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10888
10929
  errors: "errors",
10889
10930
  errorsValue: "errorsValue",
10890
10931
  example: "example",
@@ -10893,6 +10934,8 @@ var NodeType = {
10893
10934
  externalIdValue: "externalIdValue",
10894
10935
  externalLink: "externalLink",
10895
10936
  externalLinkText: "externalLinkText",
10937
+ extractorExtractionTimestamp: "extractorExtractionTimestamp",
10938
+ extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10896
10939
  extractorTag: "extractorTag",
10897
10940
  extractorTagValue: "extractorTagValue",
10898
10941
  extraProperties: "extraProperties",
@@ -10911,8 +10954,8 @@ var NodeType = {
10911
10954
  focusY: "focusY",
10912
10955
  focusYValue: "focusYValue",
10913
10956
  footer: "footer",
10914
- footerValue: "footerValue",
10915
10957
  footerText: "footerText",
10958
+ footerValue: "footerValue",
10916
10959
  forKeys: "forKeys",
10917
10960
  format: "format",
10918
10961
  formula: "formula",
@@ -10936,6 +10979,8 @@ var NodeType = {
10936
10979
  hasBookNavigationValue: "hasBookNavigationValue",
10937
10980
  hasMarkAsDone: "hasMarkAsDone",
10938
10981
  hasMarkAsDoneValue: "hasMarkAsDoneValue",
10982
+ hasPrintRestriction: "hasPrintRestriction",
10983
+ hasPrintRestrictionValue: "hasPrintRestrictionValue",
10939
10984
  head: "head",
10940
10985
  heading: "heading",
10941
10986
  height: "height",
@@ -10950,8 +10995,8 @@ var NodeType = {
10950
10995
  iconValue: "iconValue",
10951
10996
  id: "id",
10952
10997
  idValue: "idValue",
10953
- iframeSrc: "iframeSrc",
10954
10998
  iframeName: "iframeName",
10999
+ iframeSrc: "iframeSrc",
10955
11000
  image: "image",
10956
11001
  imageFirst: "imageFirst",
10957
11002
  imageFirstValue: "imageFirstValue",
@@ -10971,12 +11016,6 @@ var NodeType = {
10971
11016
  internalCommentValue: "internalCommentValue",
10972
11017
  internalPrintPdf: "internalPrintPdf",
10973
11018
  internalPrintPdfValue: "internalPrintPdfValue",
10974
- hasPrintRestriction: "hasPrintRestriction",
10975
- hasPrintRestrictionValue: "hasPrintRestrictionValue",
10976
- enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10977
- enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10978
- extractorExtractionTimestamp: "extractorExtractionTimestamp",
10979
- extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10980
11019
  isCaseSensitive: "isCaseSensitive",
10981
11020
  isCommented: "isCommented",
10982
11021
  isCorrect: "isCorrect",
@@ -10995,8 +11034,8 @@ var NodeType = {
10995
11034
  isTracked: "isTracked",
10996
11035
  isTrackedValue: "isTrackedValue",
10997
11036
  item: "item",
10998
- itemValue: "itemValue",
10999
11037
  itemLead: "itemLead",
11038
+ itemValue: "itemValue",
11000
11039
  jobTitle: "jobTitle",
11001
11040
  jobTitleValue: "jobTitleValue",
11002
11041
  jupyterExecutionCount: "jupyterExecutionCount",
@@ -11043,10 +11082,6 @@ var NodeType = {
11043
11082
  locationValue: "locationValue",
11044
11083
  machineTranslated: "machineTranslated",
11045
11084
  machineTranslatedValue: "machineTranslatedValue",
11046
- translationOf: "translationOf",
11047
- translationOfValue: "translationOfValue",
11048
- spansPageBreak: "spansPageBreak",
11049
- spansPageBreakValue: "spansPageBreakValue",
11050
11085
  mailingList: "mailingList",
11051
11086
  marginNumber: "marginNumber",
11052
11087
  marginNumberValue: "marginNumberValue",
@@ -11068,6 +11103,8 @@ var NodeType = {
11068
11103
  message: "message",
11069
11104
  mockupId: "mockupId",
11070
11105
  name: "name",
11106
+ needsValidation: "needsValidation",
11107
+ needsValidationValue: "needsValidationValue",
11071
11108
  offset: "offset",
11072
11109
  options: "options",
11073
11110
  optionsValue: "optionsValue",
@@ -11080,8 +11117,6 @@ var NodeType = {
11080
11117
  pageNumber: "pageNumber",
11081
11118
  pageNumberValue: "pageNumberValue",
11082
11119
  pageValue: "pageValue",
11083
- printParentChapterLevel: "printParentChapterLevel",
11084
- printParentChapterLevelValue: "printParentChapterLevelValue",
11085
11120
  pairs: "pairs",
11086
11121
  pairsValue: "pairsValue",
11087
11122
  parent: "parent",
@@ -11090,55 +11125,55 @@ var NodeType = {
11090
11125
  partialAnswerValue: "partialAnswerValue",
11091
11126
  path: "path",
11092
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",
11093
11139
  platformBrandTarget: "platformBrandTarget",
11094
11140
  platformBrandTargetValue: "platformBrandTargetValue",
11095
- platformName: "platformName",
11096
- platformNameValue: "platformNameValue",
11141
+ platformButtonBackgroundColor: "platformButtonBackgroundColor",
11142
+ platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11143
+ platformButtonPrimaryColor: "platformButtonPrimaryColor",
11144
+ platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11097
11145
  platformIcon: "platformIcon",
11098
11146
  platformIconValue: "platformIconValue",
11099
11147
  platformLogo: "platformLogo",
11100
- platformLogoValue: "platformLogoValue",
11101
11148
  platformLogoMaxHeight: "platformLogoMaxHeight",
11102
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",
11103
11161
  platformPrimaryColor: "platformPrimaryColor",
11104
11162
  platformPrimaryColorValue: "platformPrimaryColorValue",
11105
- platformSecondaryColor: "platformSecondaryColor",
11106
- platformSecondaryColorValue: "platformSecondaryColorValue",
11107
- platformBackgroundColor: "platformBackgroundColor",
11108
- platformBackgroundColorValue: "platformBackgroundColorValue",
11109
11163
  platformScrollbarColor: "platformScrollbarColor",
11110
11164
  platformScrollbarColorValue: "platformScrollbarColorValue",
11165
+ platformSecondaryColor: "platformSecondaryColor",
11166
+ platformSecondaryColorValue: "platformSecondaryColorValue",
11167
+ platformSelectionBorderRadius: "platformSelectionBorderRadius",
11168
+ platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11111
11169
  platformSelectionColor: "platformSelectionColor",
11112
11170
  platformSelectionColorValue: "platformSelectionColorValue",
11171
+ platformSelectionTextColor: "platformSelectionTextColor",
11172
+ platformSelectionTextColorValue: "platformSelectionTextColorValue",
11113
11173
  platformSeparatorColor: "platformSeparatorColor",
11114
11174
  platformSeparatorColorValue: "platformSeparatorColorValue",
11115
- platformPlaceholderColor: "platformPlaceholderColor",
11116
- platformPlaceholderColorValue: "platformPlaceholderColorValue",
11117
11175
  platformTextSelectionColor: "platformTextSelectionColor",
11118
11176
  platformTextSelectionColorValue: "platformTextSelectionColorValue",
11119
- platformButtonPrimaryColor: "platformButtonPrimaryColor",
11120
- platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11121
- platformButtonBackgroundColor: "platformButtonBackgroundColor",
11122
- platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11123
- platformMessageBackgroundColor: "platformMessageBackgroundColor",
11124
- platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11125
- platformBackgroundImage: "platformBackgroundImage",
11126
- platformBackgroundImageValue: "platformBackgroundImageValue",
11127
- platformBorderColor: "platformBorderColor",
11128
- platformBorderColorValue: "platformBorderColorValue",
11129
- platformSelectionTextColor: "platformSelectionTextColor",
11130
- platformSelectionTextColorValue: "platformSelectionTextColorValue",
11131
- platformBaseLayerColor: "platformBaseLayerColor",
11132
- platformBaseLayerColorValue: "platformBaseLayerColorValue",
11133
- platformMargin: "platformMargin",
11134
- platformMarginValue: "platformMarginValue",
11135
- platformBorderRadius: "platformBorderRadius",
11136
- platformBorderRadiusValue: "platformBorderRadiusValue",
11137
- platformSelectionBorderRadius: "platformSelectionBorderRadius",
11138
- platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11139
- platformNeedsShadow: "platformNeedsShadow",
11140
- platformNeedsShadowValue: "platformNeedsShadowValue",
11141
- person: "person",
11142
11177
  pointerLeft: "pointerLeft",
11143
11178
  pointerLeftValue: "pointerLeftValue",
11144
11179
  pointerTop: "pointerTop",
@@ -11151,6 +11186,8 @@ var NodeType = {
11151
11186
  previewImageValue: "previewImageValue",
11152
11187
  previewVideo: "previewVideo",
11153
11188
  previewVideoValue: "previewVideoValue",
11189
+ printParentChapterLevel: "printParentChapterLevel",
11190
+ printParentChapterLevelValue: "printParentChapterLevelValue",
11154
11191
  processHandIn: "processHandIn",
11155
11192
  processHandInLocation: "processHandInLocation",
11156
11193
  processHandInLocationValue: "processHandInLocationValue",
@@ -11186,9 +11223,9 @@ var NodeType = {
11186
11223
  publisherValue: "publisherValue",
11187
11224
  quantity: "quantity",
11188
11225
  question: "question",
11189
- questionValue: "questionValue",
11190
11226
  questions: "questions",
11191
11227
  questionsValue: "questionsValue",
11228
+ questionValue: "questionValue",
11192
11229
  quizCountItems: "quizCountItems",
11193
11230
  quizCountItemsValue: "quizCountItemsValue",
11194
11231
  quizStrikethroughSolutions: "quizStrikethroughSolutions",
@@ -11241,6 +11278,8 @@ var NodeType = {
11241
11278
  // bit type (root)
11242
11279
  rows: "rows",
11243
11280
  rowsValue: "rowsValue",
11281
+ rtl: "rtl",
11282
+ rtlValue: "rtlValue",
11244
11283
  rubric: "rubric",
11245
11284
  rubricValue: "rubricValue",
11246
11285
  sampleSolution: "sampleSolution",
@@ -11270,6 +11309,8 @@ var NodeType = {
11270
11309
  sourceRLValue: "sourceRLValue",
11271
11310
  spaceId: "spaceId",
11272
11311
  spaceIdValue: "spaceIdValue",
11312
+ spansPageBreak: "spansPageBreak",
11313
+ spansPageBreakValue: "spansPageBreakValue",
11273
11314
  src: "src",
11274
11315
  src1x: "src1x",
11275
11316
  src2x: "src2x",
@@ -11335,15 +11376,13 @@ var NodeType = {
11335
11376
  textsValue: "textsValue",
11336
11377
  theme: "theme",
11337
11378
  themeValue: "themeValue",
11338
- rtl: "rtl",
11339
- rtlValue: "rtlValue",
11340
11379
  thumbImage: "thumbImage",
11341
11380
  thumbImageValue: "thumbImageValue",
11342
11381
  thumbnails: "thumbnails",
11343
11382
  thumbnailsValue: "thumbnailsValue",
11344
11383
  title: "title",
11345
- titleValue: "titleValue",
11346
11384
  titleString: "titleString",
11385
+ titleValue: "titleValue",
11347
11386
  toc: "toc",
11348
11387
  tocContent: "tocContent",
11349
11388
  tocContentValue: "tocContentValue",
@@ -11352,11 +11391,15 @@ var NodeType = {
11352
11391
  tocValue: "tocValue",
11353
11392
  topicTag: "topicTag",
11354
11393
  topicTagValue: "topicTagValue",
11394
+ translationOf: "translationOf",
11395
+ translationOfValue: "translationOfValue",
11355
11396
  trim: "trim",
11356
11397
  type: "type",
11357
11398
  unit: "unit",
11358
11399
  unitAbbr: "unitAbbr",
11359
11400
  url: "url",
11401
+ validationDate: "validationDate",
11402
+ validationDateValue: "validationDateValue",
11360
11403
  value: "value",
11361
11404
  values: "values",
11362
11405
  valuesValue: "valuesValue",
@@ -24123,6 +24166,18 @@ var Builder = class extends BaseBuilder {
24123
24166
  data.isEditable,
24124
24167
  options
24125
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
+ ),
24126
24181
  aiGenerated: this.toAstProperty(
24127
24182
  bitType,
24128
24183
  ConfigKey.property_aiGenerated,