@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.
package/dist/index.cjs CHANGED
@@ -324,6 +324,7 @@ var BitType = {
324
324
  extractorPageWithBlocks: "extractor-page-with-blocks",
325
325
  extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible",
326
326
  extractorRepeatedText: "extractor-repeated-text",
327
+ extractorTheme: "extractor-theme",
327
328
  featured: "featured",
328
329
  feedback: "feedback",
329
330
  figure: "figure",
@@ -539,6 +540,9 @@ var BitType = {
539
540
  reviewApprovedNote: "review-approved-note",
540
541
  reviewAuthorNote: "review-author-note",
541
542
  reviewCustomerNote: "review-customer-note",
543
+ reviewError: "review-error",
544
+ reviewErrorAi: "review-error-ai",
545
+ reviewErrorTranslation: "review-error-translation",
542
546
  reviewNote: "review-note",
543
547
  reviewRequestForReviewNote: "review-request-for-review-note",
544
548
  reviewReviewerNote: "review-reviewer-note",
@@ -1272,6 +1276,8 @@ var propertyKeys = {
1272
1276
  property_disableFeedback: "@disableFeedback",
1273
1277
  property_duration: "@duration",
1274
1278
  property_isEditable: "@isEditable",
1279
+ property_needsValidation: "@needsValidation",
1280
+ property_validationDate: "@validationDate",
1275
1281
  property_emphasis: "@emphasis",
1276
1282
  property_example: "@example",
1277
1283
  property_externalId: "@externalId",
@@ -2812,6 +2818,18 @@ var GROUPS = {
2812
2818
  format: TagFormat.boolean,
2813
2819
  defaultValue: "false"
2814
2820
  },
2821
+ {
2822
+ key: ConfigKey.property_needsValidation,
2823
+ description: "If true, the bit needs validation",
2824
+ format: TagFormat.boolean,
2825
+ defaultValue: "false"
2826
+ },
2827
+ {
2828
+ key: ConfigKey.property_validationDate,
2829
+ description: "The date when the bit was validated",
2830
+ format: TagFormat.plainText,
2831
+ defaultValue: ""
2832
+ },
2815
2833
  {
2816
2834
  key: ConfigKey.property_aiGenerated,
2817
2835
  description: "If true, the bit is AI-generated",
@@ -7331,6 +7349,12 @@ var BITS = {
7331
7349
  description: "Extractor information bit, used to provide information about extractors in articles or books",
7332
7350
  textFormatDefault: TextFormat.json
7333
7351
  },
7352
+ [BitType.extractorTheme]: {
7353
+ since: "5.7.0",
7354
+ baseBitType: BitType._standard,
7355
+ description: "Extractor theme bit, used to store design/theme JSON extracted from documents",
7356
+ textFormatDefault: TextFormat.json
7357
+ },
7334
7358
  [BitType.extractorAiChat]: {
7335
7359
  since: "3.19.0",
7336
7360
  baseBitType: BitType._standard,
@@ -9097,6 +9121,21 @@ var BITS = {
9097
9121
  baseBitType: BitType.reviewNote,
9098
9122
  description: "Customer review note bit, used to create customer notes in reviews"
9099
9123
  },
9124
+ [BitType.reviewError]: {
9125
+ since: "5.8.0",
9126
+ baseBitType: BitType.reviewNote,
9127
+ description: "Review error note bit, used to create error notes in reviews"
9128
+ },
9129
+ [BitType.reviewErrorAi]: {
9130
+ since: "5.8.0",
9131
+ baseBitType: BitType.reviewNote,
9132
+ description: "Review error AI note bit, used to create AI error notes in reviews"
9133
+ },
9134
+ [BitType.reviewErrorTranslation]: {
9135
+ since: "5.8.0",
9136
+ baseBitType: BitType.reviewNote,
9137
+ description: "Review error translation note bit, used to create translation error notes in reviews"
9138
+ },
9100
9139
  [BitType.reviewReviewerNote]: {
9101
9140
  since: "1.3.0",
9102
9141
  baseBitType: BitType.reviewNote,
@@ -10411,7 +10450,7 @@ var instance2 = new Config();
10411
10450
  // src/generated/package_info.ts
10412
10451
  var PACKAGE_INFO = {
10413
10452
  "name": "@gmb/bitmark-parser-generator",
10414
- "version": "5.7.0",
10453
+ "version": "5.8.0",
10415
10454
  "author": "Get More Brain Ltd",
10416
10455
  "license": "ISC",
10417
10456
  "description": "A bitmark parser and generator using Peggy.js"
@@ -10760,10 +10799,6 @@ var NodeType = {
10760
10799
  advertisingClickUrl: "advertisingClickUrl",
10761
10800
  advertisingClickUrlValue: "advertisingClickUrlValue",
10762
10801
  ageRange: "ageRange",
10763
- brandColor: "brandColor",
10764
- brandColorValue: "brandColorValue",
10765
- brandColorName: "brandColorName",
10766
- brandColorNameValue: "brandColorNameValue",
10767
10802
  ageRangeValue: "ageRangeValue",
10768
10803
  aiGenerated: "aiGenerated",
10769
10804
  aiGeneratedValue: "aiGeneratedValue",
@@ -10791,7 +10826,6 @@ var NodeType = {
10791
10826
  audioEmbed: "audioEmbed",
10792
10827
  audioLink: "audioLink",
10793
10828
  author: "author",
10794
- authorValue: "authorValue",
10795
10829
  authorFullName: "authorFullName",
10796
10830
  authorFullNameValue: "authorFullNameValue",
10797
10831
  authorJobTitle: "authorJobTitle",
@@ -10800,6 +10834,7 @@ var NodeType = {
10800
10834
  authorPseudonymValue: "authorPseudonymValue",
10801
10835
  authorTitle: "authorTitle",
10802
10836
  authorTitleValue: "authorTitleValue",
10837
+ authorValue: "authorValue",
10803
10838
  availableClassifications: "availableClassifications",
10804
10839
  availableClassificationsValue: "availableClassificationsValue",
10805
10840
  avatarImage: "avatarImage",
@@ -10851,6 +10886,10 @@ var NodeType = {
10851
10886
  botResponses: "botResponses",
10852
10887
  botResponsesValue: "botResponsesValue",
10853
10888
  botValue: "botValue",
10889
+ brandColor: "brandColor",
10890
+ brandColorName: "brandColorName",
10891
+ brandColorNameValue: "brandColorNameValue",
10892
+ brandColorValue: "brandColorValue",
10854
10893
  bubbleTag: "bubbleTag",
10855
10894
  bubbleTagValue: "bubbleTagValue",
10856
10895
  buttonCaption: "buttonCaption",
@@ -10946,6 +10985,8 @@ var NodeType = {
10946
10985
  elementsValueValue: "elementsValueValue",
10947
10986
  emphasis: "emphasis",
10948
10987
  end: "end",
10988
+ enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10989
+ enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10949
10990
  errors: "errors",
10950
10991
  errorsValue: "errorsValue",
10951
10992
  example: "example",
@@ -10954,6 +10995,8 @@ var NodeType = {
10954
10995
  externalIdValue: "externalIdValue",
10955
10996
  externalLink: "externalLink",
10956
10997
  externalLinkText: "externalLinkText",
10998
+ extractorExtractionTimestamp: "extractorExtractionTimestamp",
10999
+ extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10957
11000
  extractorTag: "extractorTag",
10958
11001
  extractorTagValue: "extractorTagValue",
10959
11002
  extraProperties: "extraProperties",
@@ -10972,8 +11015,8 @@ var NodeType = {
10972
11015
  focusY: "focusY",
10973
11016
  focusYValue: "focusYValue",
10974
11017
  footer: "footer",
10975
- footerValue: "footerValue",
10976
11018
  footerText: "footerText",
11019
+ footerValue: "footerValue",
10977
11020
  forKeys: "forKeys",
10978
11021
  format: "format",
10979
11022
  formula: "formula",
@@ -10997,6 +11040,8 @@ var NodeType = {
10997
11040
  hasBookNavigationValue: "hasBookNavigationValue",
10998
11041
  hasMarkAsDone: "hasMarkAsDone",
10999
11042
  hasMarkAsDoneValue: "hasMarkAsDoneValue",
11043
+ hasPrintRestriction: "hasPrintRestriction",
11044
+ hasPrintRestrictionValue: "hasPrintRestrictionValue",
11000
11045
  head: "head",
11001
11046
  heading: "heading",
11002
11047
  height: "height",
@@ -11011,8 +11056,8 @@ var NodeType = {
11011
11056
  iconValue: "iconValue",
11012
11057
  id: "id",
11013
11058
  idValue: "idValue",
11014
- iframeSrc: "iframeSrc",
11015
11059
  iframeName: "iframeName",
11060
+ iframeSrc: "iframeSrc",
11016
11061
  image: "image",
11017
11062
  imageFirst: "imageFirst",
11018
11063
  imageFirstValue: "imageFirstValue",
@@ -11032,12 +11077,6 @@ var NodeType = {
11032
11077
  internalCommentValue: "internalCommentValue",
11033
11078
  internalPrintPdf: "internalPrintPdf",
11034
11079
  internalPrintPdfValue: "internalPrintPdfValue",
11035
- hasPrintRestriction: "hasPrintRestriction",
11036
- hasPrintRestrictionValue: "hasPrintRestrictionValue",
11037
- enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
11038
- enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
11039
- extractorExtractionTimestamp: "extractorExtractionTimestamp",
11040
- extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
11041
11080
  isCaseSensitive: "isCaseSensitive",
11042
11081
  isCommented: "isCommented",
11043
11082
  isCorrect: "isCorrect",
@@ -11056,8 +11095,8 @@ var NodeType = {
11056
11095
  isTracked: "isTracked",
11057
11096
  isTrackedValue: "isTrackedValue",
11058
11097
  item: "item",
11059
- itemValue: "itemValue",
11060
11098
  itemLead: "itemLead",
11099
+ itemValue: "itemValue",
11061
11100
  jobTitle: "jobTitle",
11062
11101
  jobTitleValue: "jobTitleValue",
11063
11102
  jupyterExecutionCount: "jupyterExecutionCount",
@@ -11104,10 +11143,6 @@ var NodeType = {
11104
11143
  locationValue: "locationValue",
11105
11144
  machineTranslated: "machineTranslated",
11106
11145
  machineTranslatedValue: "machineTranslatedValue",
11107
- translationOf: "translationOf",
11108
- translationOfValue: "translationOfValue",
11109
- spansPageBreak: "spansPageBreak",
11110
- spansPageBreakValue: "spansPageBreakValue",
11111
11146
  mailingList: "mailingList",
11112
11147
  marginNumber: "marginNumber",
11113
11148
  marginNumberValue: "marginNumberValue",
@@ -11129,6 +11164,8 @@ var NodeType = {
11129
11164
  message: "message",
11130
11165
  mockupId: "mockupId",
11131
11166
  name: "name",
11167
+ needsValidation: "needsValidation",
11168
+ needsValidationValue: "needsValidationValue",
11132
11169
  offset: "offset",
11133
11170
  options: "options",
11134
11171
  optionsValue: "optionsValue",
@@ -11141,8 +11178,6 @@ var NodeType = {
11141
11178
  pageNumber: "pageNumber",
11142
11179
  pageNumberValue: "pageNumberValue",
11143
11180
  pageValue: "pageValue",
11144
- printParentChapterLevel: "printParentChapterLevel",
11145
- printParentChapterLevelValue: "printParentChapterLevelValue",
11146
11181
  pairs: "pairs",
11147
11182
  pairsValue: "pairsValue",
11148
11183
  parent: "parent",
@@ -11151,55 +11186,55 @@ var NodeType = {
11151
11186
  partialAnswerValue: "partialAnswerValue",
11152
11187
  path: "path",
11153
11188
  pathValue: "pathValue",
11189
+ person: "person",
11190
+ platformBackgroundColor: "platformBackgroundColor",
11191
+ platformBackgroundColorValue: "platformBackgroundColorValue",
11192
+ platformBackgroundImage: "platformBackgroundImage",
11193
+ platformBackgroundImageValue: "platformBackgroundImageValue",
11194
+ platformBaseLayerColor: "platformBaseLayerColor",
11195
+ platformBaseLayerColorValue: "platformBaseLayerColorValue",
11196
+ platformBorderColor: "platformBorderColor",
11197
+ platformBorderColorValue: "platformBorderColorValue",
11198
+ platformBorderRadius: "platformBorderRadius",
11199
+ platformBorderRadiusValue: "platformBorderRadiusValue",
11154
11200
  platformBrandTarget: "platformBrandTarget",
11155
11201
  platformBrandTargetValue: "platformBrandTargetValue",
11156
- platformName: "platformName",
11157
- platformNameValue: "platformNameValue",
11202
+ platformButtonBackgroundColor: "platformButtonBackgroundColor",
11203
+ platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11204
+ platformButtonPrimaryColor: "platformButtonPrimaryColor",
11205
+ platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11158
11206
  platformIcon: "platformIcon",
11159
11207
  platformIconValue: "platformIconValue",
11160
11208
  platformLogo: "platformLogo",
11161
- platformLogoValue: "platformLogoValue",
11162
11209
  platformLogoMaxHeight: "platformLogoMaxHeight",
11163
11210
  platformLogoMaxHeightValue: "platformLogoMaxHeightValue",
11211
+ platformLogoValue: "platformLogoValue",
11212
+ platformMargin: "platformMargin",
11213
+ platformMarginValue: "platformMarginValue",
11214
+ platformMessageBackgroundColor: "platformMessageBackgroundColor",
11215
+ platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11216
+ platformName: "platformName",
11217
+ platformNameValue: "platformNameValue",
11218
+ platformNeedsShadow: "platformNeedsShadow",
11219
+ platformNeedsShadowValue: "platformNeedsShadowValue",
11220
+ platformPlaceholderColor: "platformPlaceholderColor",
11221
+ platformPlaceholderColorValue: "platformPlaceholderColorValue",
11164
11222
  platformPrimaryColor: "platformPrimaryColor",
11165
11223
  platformPrimaryColorValue: "platformPrimaryColorValue",
11166
- platformSecondaryColor: "platformSecondaryColor",
11167
- platformSecondaryColorValue: "platformSecondaryColorValue",
11168
- platformBackgroundColor: "platformBackgroundColor",
11169
- platformBackgroundColorValue: "platformBackgroundColorValue",
11170
11224
  platformScrollbarColor: "platformScrollbarColor",
11171
11225
  platformScrollbarColorValue: "platformScrollbarColorValue",
11226
+ platformSecondaryColor: "platformSecondaryColor",
11227
+ platformSecondaryColorValue: "platformSecondaryColorValue",
11228
+ platformSelectionBorderRadius: "platformSelectionBorderRadius",
11229
+ platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11172
11230
  platformSelectionColor: "platformSelectionColor",
11173
11231
  platformSelectionColorValue: "platformSelectionColorValue",
11232
+ platformSelectionTextColor: "platformSelectionTextColor",
11233
+ platformSelectionTextColorValue: "platformSelectionTextColorValue",
11174
11234
  platformSeparatorColor: "platformSeparatorColor",
11175
11235
  platformSeparatorColorValue: "platformSeparatorColorValue",
11176
- platformPlaceholderColor: "platformPlaceholderColor",
11177
- platformPlaceholderColorValue: "platformPlaceholderColorValue",
11178
11236
  platformTextSelectionColor: "platformTextSelectionColor",
11179
11237
  platformTextSelectionColorValue: "platformTextSelectionColorValue",
11180
- platformButtonPrimaryColor: "platformButtonPrimaryColor",
11181
- platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11182
- platformButtonBackgroundColor: "platformButtonBackgroundColor",
11183
- platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11184
- platformMessageBackgroundColor: "platformMessageBackgroundColor",
11185
- platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11186
- platformBackgroundImage: "platformBackgroundImage",
11187
- platformBackgroundImageValue: "platformBackgroundImageValue",
11188
- platformBorderColor: "platformBorderColor",
11189
- platformBorderColorValue: "platformBorderColorValue",
11190
- platformSelectionTextColor: "platformSelectionTextColor",
11191
- platformSelectionTextColorValue: "platformSelectionTextColorValue",
11192
- platformBaseLayerColor: "platformBaseLayerColor",
11193
- platformBaseLayerColorValue: "platformBaseLayerColorValue",
11194
- platformMargin: "platformMargin",
11195
- platformMarginValue: "platformMarginValue",
11196
- platformBorderRadius: "platformBorderRadius",
11197
- platformBorderRadiusValue: "platformBorderRadiusValue",
11198
- platformSelectionBorderRadius: "platformSelectionBorderRadius",
11199
- platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11200
- platformNeedsShadow: "platformNeedsShadow",
11201
- platformNeedsShadowValue: "platformNeedsShadowValue",
11202
- person: "person",
11203
11238
  pointerLeft: "pointerLeft",
11204
11239
  pointerLeftValue: "pointerLeftValue",
11205
11240
  pointerTop: "pointerTop",
@@ -11212,6 +11247,8 @@ var NodeType = {
11212
11247
  previewImageValue: "previewImageValue",
11213
11248
  previewVideo: "previewVideo",
11214
11249
  previewVideoValue: "previewVideoValue",
11250
+ printParentChapterLevel: "printParentChapterLevel",
11251
+ printParentChapterLevelValue: "printParentChapterLevelValue",
11215
11252
  processHandIn: "processHandIn",
11216
11253
  processHandInLocation: "processHandInLocation",
11217
11254
  processHandInLocationValue: "processHandInLocationValue",
@@ -11247,9 +11284,9 @@ var NodeType = {
11247
11284
  publisherValue: "publisherValue",
11248
11285
  quantity: "quantity",
11249
11286
  question: "question",
11250
- questionValue: "questionValue",
11251
11287
  questions: "questions",
11252
11288
  questionsValue: "questionsValue",
11289
+ questionValue: "questionValue",
11253
11290
  quizCountItems: "quizCountItems",
11254
11291
  quizCountItemsValue: "quizCountItemsValue",
11255
11292
  quizStrikethroughSolutions: "quizStrikethroughSolutions",
@@ -11302,6 +11339,8 @@ var NodeType = {
11302
11339
  // bit type (root)
11303
11340
  rows: "rows",
11304
11341
  rowsValue: "rowsValue",
11342
+ rtl: "rtl",
11343
+ rtlValue: "rtlValue",
11305
11344
  rubric: "rubric",
11306
11345
  rubricValue: "rubricValue",
11307
11346
  sampleSolution: "sampleSolution",
@@ -11331,6 +11370,8 @@ var NodeType = {
11331
11370
  sourceRLValue: "sourceRLValue",
11332
11371
  spaceId: "spaceId",
11333
11372
  spaceIdValue: "spaceIdValue",
11373
+ spansPageBreak: "spansPageBreak",
11374
+ spansPageBreakValue: "spansPageBreakValue",
11334
11375
  src: "src",
11335
11376
  src1x: "src1x",
11336
11377
  src2x: "src2x",
@@ -11396,15 +11437,13 @@ var NodeType = {
11396
11437
  textsValue: "textsValue",
11397
11438
  theme: "theme",
11398
11439
  themeValue: "themeValue",
11399
- rtl: "rtl",
11400
- rtlValue: "rtlValue",
11401
11440
  thumbImage: "thumbImage",
11402
11441
  thumbImageValue: "thumbImageValue",
11403
11442
  thumbnails: "thumbnails",
11404
11443
  thumbnailsValue: "thumbnailsValue",
11405
11444
  title: "title",
11406
- titleValue: "titleValue",
11407
11445
  titleString: "titleString",
11446
+ titleValue: "titleValue",
11408
11447
  toc: "toc",
11409
11448
  tocContent: "tocContent",
11410
11449
  tocContentValue: "tocContentValue",
@@ -11413,11 +11452,15 @@ var NodeType = {
11413
11452
  tocValue: "tocValue",
11414
11453
  topicTag: "topicTag",
11415
11454
  topicTagValue: "topicTagValue",
11455
+ translationOf: "translationOf",
11456
+ translationOfValue: "translationOfValue",
11416
11457
  trim: "trim",
11417
11458
  type: "type",
11418
11459
  unit: "unit",
11419
11460
  unitAbbr: "unitAbbr",
11420
11461
  url: "url",
11462
+ validationDate: "validationDate",
11463
+ validationDateValue: "validationDateValue",
11421
11464
  value: "value",
11422
11465
  values: "values",
11423
11466
  valuesValue: "valuesValue",
@@ -24184,6 +24227,18 @@ var Builder = class extends BaseBuilder {
24184
24227
  data.isEditable,
24185
24228
  options
24186
24229
  ),
24230
+ needsValidation: this.toAstProperty(
24231
+ bitType,
24232
+ ConfigKey.property_needsValidation,
24233
+ data.needsValidation,
24234
+ options
24235
+ ),
24236
+ validationDate: this.toAstProperty(
24237
+ bitType,
24238
+ ConfigKey.property_validationDate,
24239
+ data.validationDate,
24240
+ options
24241
+ ),
24187
24242
  aiGenerated: this.toAstProperty(
24188
24243
  bitType,
24189
24244
  ConfigKey.property_aiGenerated,