@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.cjs CHANGED
@@ -108,6 +108,8 @@ var BitType = {
108
108
  appFlashcardsQuiz: "app-flashcards-quiz",
109
109
  appGetScreenshot: "app-get-screenshot",
110
110
  appLink: "app-link",
111
+ appRag: "app-rag",
112
+ appSearch: "app-search",
111
113
  article: "article",
112
114
  articleAi: "article-ai",
113
115
  articleAlt: "article-alt",
@@ -658,6 +660,7 @@ var BitType = {
658
660
  table: "table",
659
661
  tableAlt: "table-alt",
660
662
  tableExtended: "table-extended",
663
+ tableExtendedImage: "table-extended-image",
661
664
  tableImage: "table-image",
662
665
  tableImageAlt: "table-image-alt",
663
666
  takePicture: "take-picture",
@@ -5058,6 +5061,16 @@ var BITS = {
5058
5061
  ],
5059
5062
  resourceAttachmentAllowed: false
5060
5063
  },
5064
+ [BitType.appRag]: {
5065
+ since: "5.14.0",
5066
+ baseBitType: BitType.article,
5067
+ description: "App RAG (Retrieval-Augmented Generation) bit, equal to article"
5068
+ },
5069
+ [BitType.appSearch]: {
5070
+ since: "5.14.0",
5071
+ baseBitType: BitType.article,
5072
+ description: "App search bit, equal to article"
5073
+ },
5061
5074
  [BitType.author]: {
5062
5075
  since: "4.2.0",
5063
5076
  baseBitType: BitType._standard,
@@ -9894,6 +9907,38 @@ var BITS = {
9894
9907
  baseBitType: BitType.table,
9895
9908
  description: "Extended table bit, used to create complex tables with all HTML table features"
9896
9909
  },
9910
+ [BitType.tableExtendedImage]: {
9911
+ since: "5.13.0",
9912
+ baseBitType: BitType.tableExtended,
9913
+ description: "Extended table image bit, used to create complex tables with images and all HTML table features",
9914
+ tags: [
9915
+ {
9916
+ key: ConfigKey.property_caption,
9917
+ description: "Caption for the table image, used to provide a description for the image",
9918
+ format: TagFormat.bitmarkText
9919
+ },
9920
+ {
9921
+ key: ConfigKey.resource_backgroundWallpaper,
9922
+ description: "Background wallpaper for the image, used to set a background for the image",
9923
+ chain: [
9924
+ {
9925
+ key: ConfigKey.group_resourceImageCommon,
9926
+ description: "Common resource image tags for images"
9927
+ }
9928
+ ]
9929
+ },
9930
+ {
9931
+ key: ConfigKey.group_resourceBitTags,
9932
+ description: "Resource bit tags for images, used to define additional properties for images"
9933
+ },
9934
+ {
9935
+ key: ConfigKey.group_resourceImage,
9936
+ description: "Resource image tags for images, used to attach images to the bit",
9937
+ minCount: 1
9938
+ }
9939
+ ],
9940
+ resourceAttachmentAllowed: false
9941
+ },
9897
9942
  [BitType.tableAlt]: {
9898
9943
  since: "1.16.0",
9899
9944
  baseBitType: BitType.table,
@@ -10917,7 +10962,7 @@ var instance2 = new Config();
10917
10962
  // src/generated/package_info.ts
10918
10963
  var PACKAGE_INFO = {
10919
10964
  "name": "@gmb/bitmark-parser-generator",
10920
- "version": "5.12.0",
10965
+ "version": "5.14.0",
10921
10966
  "author": "Get More Brain Ltd",
10922
10967
  "license": "ISC",
10923
10968
  "description": "A bitmark parser and generator using Peggy.js"
@@ -12821,6 +12866,7 @@ var TextGenerator = class _TextGenerator extends AstWalkerGenerator {
12821
12866
  * @param ast bitmark text AST
12822
12867
  */
12823
12868
  generateSync(ast, textFormat, textLocation, options) {
12869
+ if (!ast || !Array.isArray(ast)) return "";
12824
12870
  this.generateOptions = Object.assign({}, options);
12825
12871
  this.validateGenerateOptions(ast);
12826
12872
  if (!this.generateOptions.plainTextDividerAllowed) {