@gmb/bitmark-parser-generator 5.12.0 → 5.13.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/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +35 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +1 -0
- package/dist/browser/esm/index.d.ts +1 -0
- package/dist/browser/esm/index.js +35 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +35 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +35 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -588,6 +588,7 @@ declare const BitType: {
|
|
|
588
588
|
readonly table: "table";
|
|
589
589
|
readonly tableAlt: "table-alt";
|
|
590
590
|
readonly tableExtended: "table-extended";
|
|
591
|
+
readonly tableExtendedImage: "table-extended-image";
|
|
591
592
|
readonly tableImage: "table-image";
|
|
592
593
|
readonly tableImageAlt: "table-image-alt";
|
|
593
594
|
readonly takePicture: "take-picture";
|
|
@@ -588,6 +588,7 @@ declare const BitType: {
|
|
|
588
588
|
readonly table: "table";
|
|
589
589
|
readonly tableAlt: "table-alt";
|
|
590
590
|
readonly tableExtended: "table-extended";
|
|
591
|
+
readonly tableExtendedImage: "table-extended-image";
|
|
591
592
|
readonly tableImage: "table-image";
|
|
592
593
|
readonly tableImageAlt: "table-image-alt";
|
|
593
594
|
readonly takePicture: "take-picture";
|
|
@@ -597,6 +597,7 @@ var BitType = {
|
|
|
597
597
|
table: "table",
|
|
598
598
|
tableAlt: "table-alt",
|
|
599
599
|
tableExtended: "table-extended",
|
|
600
|
+
tableExtendedImage: "table-extended-image",
|
|
600
601
|
tableImage: "table-image",
|
|
601
602
|
tableImageAlt: "table-image-alt",
|
|
602
603
|
takePicture: "take-picture",
|
|
@@ -9833,6 +9834,38 @@ var BITS = {
|
|
|
9833
9834
|
baseBitType: BitType.table,
|
|
9834
9835
|
description: "Extended table bit, used to create complex tables with all HTML table features"
|
|
9835
9836
|
},
|
|
9837
|
+
[BitType.tableExtendedImage]: {
|
|
9838
|
+
since: "5.13.0",
|
|
9839
|
+
baseBitType: BitType.tableExtended,
|
|
9840
|
+
description: "Extended table image bit, used to create complex tables with images and all HTML table features",
|
|
9841
|
+
tags: [
|
|
9842
|
+
{
|
|
9843
|
+
key: ConfigKey.property_caption,
|
|
9844
|
+
description: "Caption for the table image, used to provide a description for the image",
|
|
9845
|
+
format: TagFormat.bitmarkText
|
|
9846
|
+
},
|
|
9847
|
+
{
|
|
9848
|
+
key: ConfigKey.resource_backgroundWallpaper,
|
|
9849
|
+
description: "Background wallpaper for the image, used to set a background for the image",
|
|
9850
|
+
chain: [
|
|
9851
|
+
{
|
|
9852
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
9853
|
+
description: "Common resource image tags for images"
|
|
9854
|
+
}
|
|
9855
|
+
]
|
|
9856
|
+
},
|
|
9857
|
+
{
|
|
9858
|
+
key: ConfigKey.group_resourceBitTags,
|
|
9859
|
+
description: "Resource bit tags for images, used to define additional properties for images"
|
|
9860
|
+
},
|
|
9861
|
+
{
|
|
9862
|
+
key: ConfigKey.group_resourceImage,
|
|
9863
|
+
description: "Resource image tags for images, used to attach images to the bit",
|
|
9864
|
+
minCount: 1
|
|
9865
|
+
}
|
|
9866
|
+
],
|
|
9867
|
+
resourceAttachmentAllowed: false
|
|
9868
|
+
},
|
|
9836
9869
|
[BitType.tableAlt]: {
|
|
9837
9870
|
since: "1.16.0",
|
|
9838
9871
|
baseBitType: BitType.table,
|
|
@@ -10856,7 +10889,7 @@ var instance2 = new Config();
|
|
|
10856
10889
|
// src/generated/package_info.ts
|
|
10857
10890
|
var PACKAGE_INFO = {
|
|
10858
10891
|
"name": "@gmb/bitmark-parser-generator",
|
|
10859
|
-
"version": "5.
|
|
10892
|
+
"version": "5.13.0",
|
|
10860
10893
|
"author": "Get More Brain Ltd",
|
|
10861
10894
|
"license": "ISC",
|
|
10862
10895
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -12760,6 +12793,7 @@ var TextGenerator = class _TextGenerator extends AstWalkerGenerator {
|
|
|
12760
12793
|
* @param ast bitmark text AST
|
|
12761
12794
|
*/
|
|
12762
12795
|
generateSync(ast, textFormat, textLocation, options) {
|
|
12796
|
+
if (!ast || !Array.isArray(ast)) return "";
|
|
12763
12797
|
this.generateOptions = Object.assign({}, options);
|
|
12764
12798
|
this.validateGenerateOptions(ast);
|
|
12765
12799
|
if (!this.generateOptions.plainTextDividerAllowed) {
|