@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/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",
@@ -1450,6 +1456,7 @@ var propertyKeys = {
1450
1456
  property_technicalTerm: "@technicalTerm",
1451
1457
  property_textReference: "@textReference",
1452
1458
  property_theme: "@theme",
1459
+ property_rtl: "@rtl",
1453
1460
  property_thumbImage: "@thumbImage",
1454
1461
  property_title: "@title",
1455
1462
  property_toc: "@toc",
@@ -2811,6 +2818,18 @@ var GROUPS = {
2811
2818
  format: TagFormat.boolean,
2812
2819
  defaultValue: "false"
2813
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
+ },
2814
2833
  {
2815
2834
  key: ConfigKey.property_aiGenerated,
2816
2835
  description: "If true, the bit is AI-generated",
@@ -2934,6 +2953,12 @@ var GROUPS = {
2934
2953
  format: TagFormat.plainText,
2935
2954
  maxCount: Count.infinity
2936
2955
  },
2956
+ {
2957
+ key: ConfigKey.property_rtl,
2958
+ description: "If true, the book is right-to-left",
2959
+ format: TagFormat.boolean,
2960
+ defaultValue: "false"
2961
+ },
2937
2962
  {
2938
2963
  key: ConfigKey.property_target,
2939
2964
  description: "The target(s) for the bit",
@@ -7324,6 +7349,12 @@ var BITS = {
7324
7349
  description: "Extractor information bit, used to provide information about extractors in articles or books",
7325
7350
  textFormatDefault: TextFormat.json
7326
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
+ },
7327
7358
  [BitType.extractorAiChat]: {
7328
7359
  since: "3.19.0",
7329
7360
  baseBitType: BitType._standard,
@@ -9090,6 +9121,21 @@ var BITS = {
9090
9121
  baseBitType: BitType.reviewNote,
9091
9122
  description: "Customer review note bit, used to create customer notes in reviews"
9092
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
+ },
9093
9139
  [BitType.reviewReviewerNote]: {
9094
9140
  since: "1.3.0",
9095
9141
  baseBitType: BitType.reviewNote,
@@ -10404,7 +10450,7 @@ var instance2 = new Config();
10404
10450
  // src/generated/package_info.ts
10405
10451
  var PACKAGE_INFO = {
10406
10452
  "name": "@gmb/bitmark-parser-generator",
10407
- "version": "5.6.0",
10453
+ "version": "5.8.0",
10408
10454
  "author": "Get More Brain Ltd",
10409
10455
  "license": "ISC",
10410
10456
  "description": "A bitmark parser and generator using Peggy.js"
@@ -10753,10 +10799,6 @@ var NodeType = {
10753
10799
  advertisingClickUrl: "advertisingClickUrl",
10754
10800
  advertisingClickUrlValue: "advertisingClickUrlValue",
10755
10801
  ageRange: "ageRange",
10756
- brandColor: "brandColor",
10757
- brandColorValue: "brandColorValue",
10758
- brandColorName: "brandColorName",
10759
- brandColorNameValue: "brandColorNameValue",
10760
10802
  ageRangeValue: "ageRangeValue",
10761
10803
  aiGenerated: "aiGenerated",
10762
10804
  aiGeneratedValue: "aiGeneratedValue",
@@ -10784,7 +10826,6 @@ var NodeType = {
10784
10826
  audioEmbed: "audioEmbed",
10785
10827
  audioLink: "audioLink",
10786
10828
  author: "author",
10787
- authorValue: "authorValue",
10788
10829
  authorFullName: "authorFullName",
10789
10830
  authorFullNameValue: "authorFullNameValue",
10790
10831
  authorJobTitle: "authorJobTitle",
@@ -10793,6 +10834,7 @@ var NodeType = {
10793
10834
  authorPseudonymValue: "authorPseudonymValue",
10794
10835
  authorTitle: "authorTitle",
10795
10836
  authorTitleValue: "authorTitleValue",
10837
+ authorValue: "authorValue",
10796
10838
  availableClassifications: "availableClassifications",
10797
10839
  availableClassificationsValue: "availableClassificationsValue",
10798
10840
  avatarImage: "avatarImage",
@@ -10844,6 +10886,10 @@ var NodeType = {
10844
10886
  botResponses: "botResponses",
10845
10887
  botResponsesValue: "botResponsesValue",
10846
10888
  botValue: "botValue",
10889
+ brandColor: "brandColor",
10890
+ brandColorName: "brandColorName",
10891
+ brandColorNameValue: "brandColorNameValue",
10892
+ brandColorValue: "brandColorValue",
10847
10893
  bubbleTag: "bubbleTag",
10848
10894
  bubbleTagValue: "bubbleTagValue",
10849
10895
  buttonCaption: "buttonCaption",
@@ -10939,6 +10985,8 @@ var NodeType = {
10939
10985
  elementsValueValue: "elementsValueValue",
10940
10986
  emphasis: "emphasis",
10941
10987
  end: "end",
10988
+ enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
10989
+ enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
10942
10990
  errors: "errors",
10943
10991
  errorsValue: "errorsValue",
10944
10992
  example: "example",
@@ -10947,6 +10995,8 @@ var NodeType = {
10947
10995
  externalIdValue: "externalIdValue",
10948
10996
  externalLink: "externalLink",
10949
10997
  externalLinkText: "externalLinkText",
10998
+ extractorExtractionTimestamp: "extractorExtractionTimestamp",
10999
+ extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
10950
11000
  extractorTag: "extractorTag",
10951
11001
  extractorTagValue: "extractorTagValue",
10952
11002
  extraProperties: "extraProperties",
@@ -10965,8 +11015,8 @@ var NodeType = {
10965
11015
  focusY: "focusY",
10966
11016
  focusYValue: "focusYValue",
10967
11017
  footer: "footer",
10968
- footerValue: "footerValue",
10969
11018
  footerText: "footerText",
11019
+ footerValue: "footerValue",
10970
11020
  forKeys: "forKeys",
10971
11021
  format: "format",
10972
11022
  formula: "formula",
@@ -10990,6 +11040,8 @@ var NodeType = {
10990
11040
  hasBookNavigationValue: "hasBookNavigationValue",
10991
11041
  hasMarkAsDone: "hasMarkAsDone",
10992
11042
  hasMarkAsDoneValue: "hasMarkAsDoneValue",
11043
+ hasPrintRestriction: "hasPrintRestriction",
11044
+ hasPrintRestrictionValue: "hasPrintRestrictionValue",
10993
11045
  head: "head",
10994
11046
  heading: "heading",
10995
11047
  height: "height",
@@ -11004,8 +11056,8 @@ var NodeType = {
11004
11056
  iconValue: "iconValue",
11005
11057
  id: "id",
11006
11058
  idValue: "idValue",
11007
- iframeSrc: "iframeSrc",
11008
11059
  iframeName: "iframeName",
11060
+ iframeSrc: "iframeSrc",
11009
11061
  image: "image",
11010
11062
  imageFirst: "imageFirst",
11011
11063
  imageFirstValue: "imageFirstValue",
@@ -11025,12 +11077,6 @@ var NodeType = {
11025
11077
  internalCommentValue: "internalCommentValue",
11026
11078
  internalPrintPdf: "internalPrintPdf",
11027
11079
  internalPrintPdfValue: "internalPrintPdfValue",
11028
- hasPrintRestriction: "hasPrintRestriction",
11029
- hasPrintRestrictionValue: "hasPrintRestrictionValue",
11030
- enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
11031
- enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
11032
- extractorExtractionTimestamp: "extractorExtractionTimestamp",
11033
- extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
11034
11080
  isCaseSensitive: "isCaseSensitive",
11035
11081
  isCommented: "isCommented",
11036
11082
  isCorrect: "isCorrect",
@@ -11049,8 +11095,8 @@ var NodeType = {
11049
11095
  isTracked: "isTracked",
11050
11096
  isTrackedValue: "isTrackedValue",
11051
11097
  item: "item",
11052
- itemValue: "itemValue",
11053
11098
  itemLead: "itemLead",
11099
+ itemValue: "itemValue",
11054
11100
  jobTitle: "jobTitle",
11055
11101
  jobTitleValue: "jobTitleValue",
11056
11102
  jupyterExecutionCount: "jupyterExecutionCount",
@@ -11097,10 +11143,6 @@ var NodeType = {
11097
11143
  locationValue: "locationValue",
11098
11144
  machineTranslated: "machineTranslated",
11099
11145
  machineTranslatedValue: "machineTranslatedValue",
11100
- translationOf: "translationOf",
11101
- translationOfValue: "translationOfValue",
11102
- spansPageBreak: "spansPageBreak",
11103
- spansPageBreakValue: "spansPageBreakValue",
11104
11146
  mailingList: "mailingList",
11105
11147
  marginNumber: "marginNumber",
11106
11148
  marginNumberValue: "marginNumberValue",
@@ -11122,6 +11164,8 @@ var NodeType = {
11122
11164
  message: "message",
11123
11165
  mockupId: "mockupId",
11124
11166
  name: "name",
11167
+ needsValidation: "needsValidation",
11168
+ needsValidationValue: "needsValidationValue",
11125
11169
  offset: "offset",
11126
11170
  options: "options",
11127
11171
  optionsValue: "optionsValue",
@@ -11134,8 +11178,6 @@ var NodeType = {
11134
11178
  pageNumber: "pageNumber",
11135
11179
  pageNumberValue: "pageNumberValue",
11136
11180
  pageValue: "pageValue",
11137
- printParentChapterLevel: "printParentChapterLevel",
11138
- printParentChapterLevelValue: "printParentChapterLevelValue",
11139
11181
  pairs: "pairs",
11140
11182
  pairsValue: "pairsValue",
11141
11183
  parent: "parent",
@@ -11144,55 +11186,55 @@ var NodeType = {
11144
11186
  partialAnswerValue: "partialAnswerValue",
11145
11187
  path: "path",
11146
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",
11147
11200
  platformBrandTarget: "platformBrandTarget",
11148
11201
  platformBrandTargetValue: "platformBrandTargetValue",
11149
- platformName: "platformName",
11150
- platformNameValue: "platformNameValue",
11202
+ platformButtonBackgroundColor: "platformButtonBackgroundColor",
11203
+ platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11204
+ platformButtonPrimaryColor: "platformButtonPrimaryColor",
11205
+ platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11151
11206
  platformIcon: "platformIcon",
11152
11207
  platformIconValue: "platformIconValue",
11153
11208
  platformLogo: "platformLogo",
11154
- platformLogoValue: "platformLogoValue",
11155
11209
  platformLogoMaxHeight: "platformLogoMaxHeight",
11156
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",
11157
11222
  platformPrimaryColor: "platformPrimaryColor",
11158
11223
  platformPrimaryColorValue: "platformPrimaryColorValue",
11159
- platformSecondaryColor: "platformSecondaryColor",
11160
- platformSecondaryColorValue: "platformSecondaryColorValue",
11161
- platformBackgroundColor: "platformBackgroundColor",
11162
- platformBackgroundColorValue: "platformBackgroundColorValue",
11163
11224
  platformScrollbarColor: "platformScrollbarColor",
11164
11225
  platformScrollbarColorValue: "platformScrollbarColorValue",
11226
+ platformSecondaryColor: "platformSecondaryColor",
11227
+ platformSecondaryColorValue: "platformSecondaryColorValue",
11228
+ platformSelectionBorderRadius: "platformSelectionBorderRadius",
11229
+ platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11165
11230
  platformSelectionColor: "platformSelectionColor",
11166
11231
  platformSelectionColorValue: "platformSelectionColorValue",
11232
+ platformSelectionTextColor: "platformSelectionTextColor",
11233
+ platformSelectionTextColorValue: "platformSelectionTextColorValue",
11167
11234
  platformSeparatorColor: "platformSeparatorColor",
11168
11235
  platformSeparatorColorValue: "platformSeparatorColorValue",
11169
- platformPlaceholderColor: "platformPlaceholderColor",
11170
- platformPlaceholderColorValue: "platformPlaceholderColorValue",
11171
11236
  platformTextSelectionColor: "platformTextSelectionColor",
11172
11237
  platformTextSelectionColorValue: "platformTextSelectionColorValue",
11173
- platformButtonPrimaryColor: "platformButtonPrimaryColor",
11174
- platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
11175
- platformButtonBackgroundColor: "platformButtonBackgroundColor",
11176
- platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
11177
- platformMessageBackgroundColor: "platformMessageBackgroundColor",
11178
- platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
11179
- platformBackgroundImage: "platformBackgroundImage",
11180
- platformBackgroundImageValue: "platformBackgroundImageValue",
11181
- platformBorderColor: "platformBorderColor",
11182
- platformBorderColorValue: "platformBorderColorValue",
11183
- platformSelectionTextColor: "platformSelectionTextColor",
11184
- platformSelectionTextColorValue: "platformSelectionTextColorValue",
11185
- platformBaseLayerColor: "platformBaseLayerColor",
11186
- platformBaseLayerColorValue: "platformBaseLayerColorValue",
11187
- platformMargin: "platformMargin",
11188
- platformMarginValue: "platformMarginValue",
11189
- platformBorderRadius: "platformBorderRadius",
11190
- platformBorderRadiusValue: "platformBorderRadiusValue",
11191
- platformSelectionBorderRadius: "platformSelectionBorderRadius",
11192
- platformSelectionBorderRadiusValue: "platformSelectionBorderRadiusValue",
11193
- platformNeedsShadow: "platformNeedsShadow",
11194
- platformNeedsShadowValue: "platformNeedsShadowValue",
11195
- person: "person",
11196
11238
  pointerLeft: "pointerLeft",
11197
11239
  pointerLeftValue: "pointerLeftValue",
11198
11240
  pointerTop: "pointerTop",
@@ -11205,6 +11247,8 @@ var NodeType = {
11205
11247
  previewImageValue: "previewImageValue",
11206
11248
  previewVideo: "previewVideo",
11207
11249
  previewVideoValue: "previewVideoValue",
11250
+ printParentChapterLevel: "printParentChapterLevel",
11251
+ printParentChapterLevelValue: "printParentChapterLevelValue",
11208
11252
  processHandIn: "processHandIn",
11209
11253
  processHandInLocation: "processHandInLocation",
11210
11254
  processHandInLocationValue: "processHandInLocationValue",
@@ -11240,9 +11284,9 @@ var NodeType = {
11240
11284
  publisherValue: "publisherValue",
11241
11285
  quantity: "quantity",
11242
11286
  question: "question",
11243
- questionValue: "questionValue",
11244
11287
  questions: "questions",
11245
11288
  questionsValue: "questionsValue",
11289
+ questionValue: "questionValue",
11246
11290
  quizCountItems: "quizCountItems",
11247
11291
  quizCountItemsValue: "quizCountItemsValue",
11248
11292
  quizStrikethroughSolutions: "quizStrikethroughSolutions",
@@ -11295,6 +11339,8 @@ var NodeType = {
11295
11339
  // bit type (root)
11296
11340
  rows: "rows",
11297
11341
  rowsValue: "rowsValue",
11342
+ rtl: "rtl",
11343
+ rtlValue: "rtlValue",
11298
11344
  rubric: "rubric",
11299
11345
  rubricValue: "rubricValue",
11300
11346
  sampleSolution: "sampleSolution",
@@ -11324,6 +11370,8 @@ var NodeType = {
11324
11370
  sourceRLValue: "sourceRLValue",
11325
11371
  spaceId: "spaceId",
11326
11372
  spaceIdValue: "spaceIdValue",
11373
+ spansPageBreak: "spansPageBreak",
11374
+ spansPageBreakValue: "spansPageBreakValue",
11327
11375
  src: "src",
11328
11376
  src1x: "src1x",
11329
11377
  src2x: "src2x",
@@ -11394,8 +11442,8 @@ var NodeType = {
11394
11442
  thumbnails: "thumbnails",
11395
11443
  thumbnailsValue: "thumbnailsValue",
11396
11444
  title: "title",
11397
- titleValue: "titleValue",
11398
11445
  titleString: "titleString",
11446
+ titleValue: "titleValue",
11399
11447
  toc: "toc",
11400
11448
  tocContent: "tocContent",
11401
11449
  tocContentValue: "tocContentValue",
@@ -11404,11 +11452,15 @@ var NodeType = {
11404
11452
  tocValue: "tocValue",
11405
11453
  topicTag: "topicTag",
11406
11454
  topicTagValue: "topicTagValue",
11455
+ translationOf: "translationOf",
11456
+ translationOfValue: "translationOfValue",
11407
11457
  trim: "trim",
11408
11458
  type: "type",
11409
11459
  unit: "unit",
11410
11460
  unitAbbr: "unitAbbr",
11411
11461
  url: "url",
11462
+ validationDate: "validationDate",
11463
+ validationDateValue: "validationDateValue",
11412
11464
  value: "value",
11413
11465
  values: "values",
11414
11466
  valuesValue: "valuesValue",
@@ -24175,6 +24227,18 @@ var Builder = class extends BaseBuilder {
24175
24227
  data.isEditable,
24176
24228
  options
24177
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
+ ),
24178
24242
  aiGenerated: this.toAstProperty(
24179
24243
  bitType,
24180
24244
  ConfigKey.property_aiGenerated,
@@ -24291,6 +24355,7 @@ var Builder = class extends BaseBuilder {
24291
24355
  options
24292
24356
  ),
24293
24357
  theme: this.toAstProperty(bitType, ConfigKey.property_theme, data.theme, options),
24358
+ rtl: this.toAstProperty(bitType, ConfigKey.property_rtl, data.rtl, options),
24294
24359
  computerLanguage: this.toAstProperty(
24295
24360
  bitType,
24296
24361
  ConfigKey.property_computerLanguage,