@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.
@@ -235,6 +235,8 @@ declare const BitType: Readonly<{
235
235
  extractorAiChat: "extractor-ai-chat";
236
236
  extractorBlock: "extractor-block";
237
237
  extractorConfiguration: "extractor-configuration";
238
+ extractorEmbeddedImage: "extractor-embedded-image";
239
+ extractorEmbeddedImageCollapsible: "extractor-embedded-image-collapsible";
238
240
  extractorInformation: "extractor-information";
239
241
  extractorPage: "extractor-page";
240
242
  extractorPageCollapsible: "extractor-page-collapsible";
@@ -825,6 +827,8 @@ declare const BitType: Readonly<{
825
827
  extractorAiChat: "extractor-ai-chat";
826
828
  extractorBlock: "extractor-block";
827
829
  extractorConfiguration: "extractor-configuration";
830
+ extractorEmbeddedImage: "extractor-embedded-image";
831
+ extractorEmbeddedImageCollapsible: "extractor-embedded-image-collapsible";
828
832
  extractorInformation: "extractor-information";
829
833
  extractorPage: "extractor-page";
830
834
  extractorPageCollapsible: "extractor-page-collapsible";
@@ -235,6 +235,8 @@ declare const BitType: Readonly<{
235
235
  extractorAiChat: "extractor-ai-chat";
236
236
  extractorBlock: "extractor-block";
237
237
  extractorConfiguration: "extractor-configuration";
238
+ extractorEmbeddedImage: "extractor-embedded-image";
239
+ extractorEmbeddedImageCollapsible: "extractor-embedded-image-collapsible";
238
240
  extractorInformation: "extractor-information";
239
241
  extractorPage: "extractor-page";
240
242
  extractorPageCollapsible: "extractor-page-collapsible";
@@ -825,6 +827,8 @@ declare const BitType: Readonly<{
825
827
  extractorAiChat: "extractor-ai-chat";
826
828
  extractorBlock: "extractor-block";
827
829
  extractorConfiguration: "extractor-configuration";
830
+ extractorEmbeddedImage: "extractor-embedded-image";
831
+ extractorEmbeddedImageCollapsible: "extractor-embedded-image-collapsible";
828
832
  extractorInformation: "extractor-information";
829
833
  extractorPage: "extractor-page";
830
834
  extractorPageCollapsible: "extractor-page-collapsible";
@@ -240,6 +240,8 @@ var BitType = superenum({
240
240
  extractorAiChat: "extractor-ai-chat",
241
241
  extractorBlock: "extractor-block",
242
242
  extractorConfiguration: "extractor-configuration",
243
+ extractorEmbeddedImage: "extractor-embedded-image",
244
+ extractorEmbeddedImageCollapsible: "extractor-embedded-image-collapsible",
243
245
  extractorInformation: "extractor-information",
244
246
  extractorPage: "extractor-page",
245
247
  extractorPageCollapsible: "extractor-page-collapsible",
@@ -6260,6 +6262,18 @@ var BITS = {
6260
6262
  description: "Extractor configuration bit, used to configure extractors in articles or books",
6261
6263
  textFormatDefault: TextFormat2.plainText
6262
6264
  },
6265
+ [BitType.extractorEmbeddedImage]: {
6266
+ since: "4.3.0",
6267
+ baseBitType: BitType.image,
6268
+ description: "Extractor embedded image bit, used for embedded images extracted from PDFs",
6269
+ textFormatDefault: TextFormat2.plainText
6270
+ },
6271
+ [BitType.extractorEmbeddedImageCollapsible]: {
6272
+ since: "4.3.0",
6273
+ baseBitType: BitType.extractorEmbeddedImage,
6274
+ description: "Collapsible extractor embedded image bit, used for embedded images extracted from PDFs",
6275
+ textFormatDefault: TextFormat2.plainText
6276
+ },
6263
6277
  [BitType.extractorInformation]: {
6264
6278
  since: "3.8.0",
6265
6279
  baseBitType: BitType._standard,
@@ -9043,7 +9057,7 @@ var instance2 = new Config();
9043
9057
  // src/generated/package_info.ts
9044
9058
  var PACKAGE_INFO = {
9045
9059
  "name": "@gmb/bitmark-parser-generator",
9046
- "version": "4.2.0",
9060
+ "version": "4.3.0",
9047
9061
  "author": "Get More Brain Ltd",
9048
9062
  "license": "ISC",
9049
9063
  "description": "A bitmark parser and generator using Peggy.js"
@@ -27734,7 +27748,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
27734
27748
  */
27735
27749
  cleanBitJson(bitJson) {
27736
27750
  const bitType = instance2.getBitType(bitJson.type);
27737
- const bitConfig = instance2.getBitConfig(bitType);
27738
27751
  if (bitJson.originalType == null) bitJson.originalType = void 0;
27739
27752
  if (!bitJson.item) bitJson.item = void 0;
27740
27753
  if (instance2.isOfBitType(bitType, [BitType._error, BitType._comment])) {
@@ -27970,9 +27983,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
27970
27983
  if (instance2.isOfBitType(bitType, BitType.container)) {
27971
27984
  if (bitJson.allowedBit == null) bitJson.allowedBit = [];
27972
27985
  }
27973
- if (bitConfig.quizBit) {
27974
- if (bitJson.revealSolutions == null) bitJson.revealSolutions = false;
27975
- }
27976
27986
  if (instance2.isOfBitType(bitType, BitType.platformPath)) {
27977
27987
  if (bitJson.path == null) bitJson.path = "";
27978
27988
  }