@gmb/bitmark-parser-generator 5.16.0 → 5.18.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
@@ -356,6 +356,7 @@ var BitType = {
356
356
  handInPhoto: "hand-in-photo",
357
357
  handInScan: "hand-in-scan",
358
358
  handInSubmit: "hand-in-submit",
359
+ handInSystemMedia: "hand-in-system-media",
359
360
  handInVideo: "hand-in-video",
360
361
  handInVoice: "hand-in-voice",
361
362
  help: "help",
@@ -10253,6 +10254,20 @@ var BITS = {
10253
10254
  baseBitType: BitType._standard,
10254
10255
  description: "Hand in scan bit, used to create scan submission sections in articles or books"
10255
10256
  },
10257
+ [BitType.handInSystemMedia]: {
10258
+ //
10259
+ since: "1.5.15",
10260
+ baseBitType: BitType._standard,
10261
+ description: "Hand in system media bit, used to create system media submission sections in articles or books",
10262
+ tags: [
10263
+ {
10264
+ key: ConfigKey.property_handInAcceptFileType,
10265
+ description: "Accepted file types for the hand-in system media, used to define allowed file formats",
10266
+ format: TagFormat.plainText,
10267
+ maxCount: Count.infinity
10268
+ }
10269
+ ]
10270
+ },
10256
10271
  [BitType.handInSubmit]: {
10257
10272
  //
10258
10273
  since: "3.2.0",
@@ -10982,7 +10997,7 @@ var instance2 = new Config();
10982
10997
  // src/generated/package_info.ts
10983
10998
  var PACKAGE_INFO = {
10984
10999
  "name": "@gmb/bitmark-parser-generator",
10985
- "version": "5.16.0",
11000
+ "version": "5.18.0",
10986
11001
  "author": "Get More Brain Ltd",
10987
11002
  "license": "ISC",
10988
11003
  "description": "A bitmark parser and generator using Peggy.js"
@@ -11239,6 +11254,16 @@ var TextMarkType = {
11239
11254
  light: "light",
11240
11255
  italic: "italic",
11241
11256
  highlight: "highlight",
11257
+ highlightOrange: "highlightOrange",
11258
+ highlightYellow: "highlightYellow",
11259
+ highlightGreen: "highlightGreen",
11260
+ highlightBlue: "highlightBlue",
11261
+ highlightPurple: "highlightPurple",
11262
+ highlightPink: "highlightPink",
11263
+ highlightBrown: "highlightBrown",
11264
+ highlightBlack: "highlightBlack",
11265
+ highlightWhite: "highlightWhite",
11266
+ highlightGray: "highlightGray",
11242
11267
  // Inline only styles
11243
11268
  strike: "strike",
11244
11269
  subscript: "subscript",
@@ -12763,6 +12788,16 @@ var STANDARD_MARK_TYPES = [
12763
12788
  TextMarkType.highlight
12764
12789
  ];
12765
12790
  var INLINE_MARK_TYPES = [
12791
+ TextMarkType.highlightOrange,
12792
+ TextMarkType.highlightYellow,
12793
+ TextMarkType.highlightGreen,
12794
+ TextMarkType.highlightBlue,
12795
+ TextMarkType.highlightPurple,
12796
+ TextMarkType.highlightPink,
12797
+ TextMarkType.highlightBrown,
12798
+ TextMarkType.highlightBlack,
12799
+ TextMarkType.highlightWhite,
12800
+ TextMarkType.highlightGray,
12766
12801
  TextMarkType.strike,
12767
12802
  TextMarkType.subscript,
12768
12803
  TextMarkType.superscript,
@@ -31387,7 +31422,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
31387
31422
  if (bitJson.buttonCaption == null) bitJson.buttonCaption = "";
31388
31423
  if (bitJson.callToActionUrl == null) bitJson.callToActionUrl = "";
31389
31424
  }
31390
- if (instance2.isOfBitType(bitType, BitType.handInFile)) {
31425
+ if (instance2.isOfBitType(bitType, [BitType.handInFile, BitType.handInSystemMedia])) {
31391
31426
  if (bitJson.handInAcceptFileType == null) bitJson.handInAcceptFileType = [];
31392
31427
  }
31393
31428
  if (instance2.isOfBitType(bitType, BitType.handInSubmit)) {