@gmb/bitmark-parser-generator 4.2.0 → 4.3.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
@@ -299,6 +299,8 @@ var BitType = (0, import_superenum.superenum)({
299
299
  extractorAiChat: "extractor-ai-chat",
300
300
  extractorBlock: "extractor-block",
301
301
  extractorConfiguration: "extractor-configuration",
302
+ extractorEmbeddedImage: "extractor-embedded-image",
303
+ extractorEmbeddedImageCollapsible: "extractor-embedded-image-collapsible",
302
304
  extractorInformation: "extractor-information",
303
305
  extractorPage: "extractor-page",
304
306
  extractorPageCollapsible: "extractor-page-collapsible",
@@ -6319,6 +6321,18 @@ var BITS = {
6319
6321
  description: "Extractor configuration bit, used to configure extractors in articles or books",
6320
6322
  textFormatDefault: TextFormat.plainText
6321
6323
  },
6324
+ [BitType.extractorEmbeddedImage]: {
6325
+ since: "4.3.0",
6326
+ baseBitType: BitType.image,
6327
+ description: "Extractor embedded image bit, used for embedded images extracted from PDFs",
6328
+ textFormatDefault: TextFormat.plainText
6329
+ },
6330
+ [BitType.extractorEmbeddedImageCollapsible]: {
6331
+ since: "4.3.0",
6332
+ baseBitType: BitType.extractorEmbeddedImage,
6333
+ description: "Collapsible extractor embedded image bit, used for embedded images extracted from PDFs",
6334
+ textFormatDefault: TextFormat.plainText
6335
+ },
6322
6336
  [BitType.extractorInformation]: {
6323
6337
  since: "3.8.0",
6324
6338
  baseBitType: BitType._standard,
@@ -9102,7 +9116,7 @@ var instance2 = new Config();
9102
9116
  // src/generated/package_info.ts
9103
9117
  var PACKAGE_INFO = {
9104
9118
  "name": "@gmb/bitmark-parser-generator",
9105
- "version": "4.2.0",
9119
+ "version": "4.3.0",
9106
9120
  "author": "Get More Brain Ltd",
9107
9121
  "license": "ISC",
9108
9122
  "description": "A bitmark parser and generator using Peggy.js"
@@ -27793,7 +27807,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
27793
27807
  */
27794
27808
  cleanBitJson(bitJson) {
27795
27809
  const bitType = instance2.getBitType(bitJson.type);
27796
- const bitConfig = instance2.getBitConfig(bitType);
27797
27810
  if (bitJson.originalType == null) bitJson.originalType = void 0;
27798
27811
  if (!bitJson.item) bitJson.item = void 0;
27799
27812
  if (instance2.isOfBitType(bitType, [BitType._error, BitType._comment])) {
@@ -28029,9 +28042,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28029
28042
  if (instance2.isOfBitType(bitType, BitType.container)) {
28030
28043
  if (bitJson.allowedBit == null) bitJson.allowedBit = [];
28031
28044
  }
28032
- if (bitConfig.quizBit) {
28033
- if (bitJson.revealSolutions == null) bitJson.revealSolutions = false;
28034
- }
28035
28045
  if (instance2.isOfBitType(bitType, BitType.platformPath)) {
28036
28046
  if (bitJson.path == null) bitJson.path = "";
28037
28047
  }