@gmb/bitmark-parser-generator 5.12.0 → 5.14.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.d.cts CHANGED
@@ -38,6 +38,8 @@ declare const BitType: {
38
38
  readonly appFlashcardsQuiz: "app-flashcards-quiz";
39
39
  readonly appGetScreenshot: "app-get-screenshot";
40
40
  readonly appLink: "app-link";
41
+ readonly appRag: "app-rag";
42
+ readonly appSearch: "app-search";
41
43
  readonly article: "article";
42
44
  readonly articleAi: "article-ai";
43
45
  readonly articleAlt: "article-alt";
@@ -588,6 +590,7 @@ declare const BitType: {
588
590
  readonly table: "table";
589
591
  readonly tableAlt: "table-alt";
590
592
  readonly tableExtended: "table-extended";
593
+ readonly tableExtendedImage: "table-extended-image";
591
594
  readonly tableImage: "table-image";
592
595
  readonly tableImageAlt: "table-image-alt";
593
596
  readonly takePicture: "take-picture";
package/dist/index.d.ts CHANGED
@@ -38,6 +38,8 @@ declare const BitType: {
38
38
  readonly appFlashcardsQuiz: "app-flashcards-quiz";
39
39
  readonly appGetScreenshot: "app-get-screenshot";
40
40
  readonly appLink: "app-link";
41
+ readonly appRag: "app-rag";
42
+ readonly appSearch: "app-search";
41
43
  readonly article: "article";
42
44
  readonly articleAi: "article-ai";
43
45
  readonly articleAlt: "article-alt";
@@ -588,6 +590,7 @@ declare const BitType: {
588
590
  readonly table: "table";
589
591
  readonly tableAlt: "table-alt";
590
592
  readonly tableExtended: "table-extended";
593
+ readonly tableExtendedImage: "table-extended-image";
591
594
  readonly tableImage: "table-image";
592
595
  readonly tableImageAlt: "table-image-alt";
593
596
  readonly takePicture: "take-picture";
package/dist/index.js CHANGED
@@ -47,6 +47,8 @@ var BitType = {
47
47
  appFlashcardsQuiz: "app-flashcards-quiz",
48
48
  appGetScreenshot: "app-get-screenshot",
49
49
  appLink: "app-link",
50
+ appRag: "app-rag",
51
+ appSearch: "app-search",
50
52
  article: "article",
51
53
  articleAi: "article-ai",
52
54
  articleAlt: "article-alt",
@@ -597,6 +599,7 @@ var BitType = {
597
599
  table: "table",
598
600
  tableAlt: "table-alt",
599
601
  tableExtended: "table-extended",
602
+ tableExtendedImage: "table-extended-image",
600
603
  tableImage: "table-image",
601
604
  tableImageAlt: "table-image-alt",
602
605
  takePicture: "take-picture",
@@ -4997,6 +5000,16 @@ var BITS = {
4997
5000
  ],
4998
5001
  resourceAttachmentAllowed: false
4999
5002
  },
5003
+ [BitType.appRag]: {
5004
+ since: "5.14.0",
5005
+ baseBitType: BitType.article,
5006
+ description: "App RAG (Retrieval-Augmented Generation) bit, equal to article"
5007
+ },
5008
+ [BitType.appSearch]: {
5009
+ since: "5.14.0",
5010
+ baseBitType: BitType.article,
5011
+ description: "App search bit, equal to article"
5012
+ },
5000
5013
  [BitType.author]: {
5001
5014
  since: "4.2.0",
5002
5015
  baseBitType: BitType._standard,
@@ -9833,6 +9846,38 @@ var BITS = {
9833
9846
  baseBitType: BitType.table,
9834
9847
  description: "Extended table bit, used to create complex tables with all HTML table features"
9835
9848
  },
9849
+ [BitType.tableExtendedImage]: {
9850
+ since: "5.13.0",
9851
+ baseBitType: BitType.tableExtended,
9852
+ description: "Extended table image bit, used to create complex tables with images and all HTML table features",
9853
+ tags: [
9854
+ {
9855
+ key: ConfigKey.property_caption,
9856
+ description: "Caption for the table image, used to provide a description for the image",
9857
+ format: TagFormat.bitmarkText
9858
+ },
9859
+ {
9860
+ key: ConfigKey.resource_backgroundWallpaper,
9861
+ description: "Background wallpaper for the image, used to set a background for the image",
9862
+ chain: [
9863
+ {
9864
+ key: ConfigKey.group_resourceImageCommon,
9865
+ description: "Common resource image tags for images"
9866
+ }
9867
+ ]
9868
+ },
9869
+ {
9870
+ key: ConfigKey.group_resourceBitTags,
9871
+ description: "Resource bit tags for images, used to define additional properties for images"
9872
+ },
9873
+ {
9874
+ key: ConfigKey.group_resourceImage,
9875
+ description: "Resource image tags for images, used to attach images to the bit",
9876
+ minCount: 1
9877
+ }
9878
+ ],
9879
+ resourceAttachmentAllowed: false
9880
+ },
9836
9881
  [BitType.tableAlt]: {
9837
9882
  since: "1.16.0",
9838
9883
  baseBitType: BitType.table,
@@ -10856,7 +10901,7 @@ var instance2 = new Config();
10856
10901
  // src/generated/package_info.ts
10857
10902
  var PACKAGE_INFO = {
10858
10903
  "name": "@gmb/bitmark-parser-generator",
10859
- "version": "5.12.0",
10904
+ "version": "5.14.0",
10860
10905
  "author": "Get More Brain Ltd",
10861
10906
  "license": "ISC",
10862
10907
  "description": "A bitmark parser and generator using Peggy.js"
@@ -12760,6 +12805,7 @@ var TextGenerator = class _TextGenerator extends AstWalkerGenerator {
12760
12805
  * @param ast bitmark text AST
12761
12806
  */
12762
12807
  generateSync(ast, textFormat, textLocation, options) {
12808
+ if (!ast || !Array.isArray(ast)) return "";
12763
12809
  this.generateOptions = Object.assign({}, options);
12764
12810
  this.validateGenerateOptions(ast);
12765
12811
  if (!this.generateOptions.plainTextDividerAllowed) {