@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
package/dist/cli/main.js
CHANGED
|
@@ -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",
|
|
@@ -9789,6 +9790,38 @@ var BITS = {
|
|
|
9789
9790
|
baseBitType: BitType.table,
|
|
9790
9791
|
description: "Extended table bit, used to create complex tables with all HTML table features"
|
|
9791
9792
|
},
|
|
9793
|
+
[BitType.tableExtendedImage]: {
|
|
9794
|
+
since: "5.13.0",
|
|
9795
|
+
baseBitType: BitType.tableExtended,
|
|
9796
|
+
description: "Extended table image bit, used to create complex tables with images and all HTML table features",
|
|
9797
|
+
tags: [
|
|
9798
|
+
{
|
|
9799
|
+
key: ConfigKey.property_caption,
|
|
9800
|
+
description: "Caption for the table image, used to provide a description for the image",
|
|
9801
|
+
format: TagFormat.bitmarkText
|
|
9802
|
+
},
|
|
9803
|
+
{
|
|
9804
|
+
key: ConfigKey.resource_backgroundWallpaper,
|
|
9805
|
+
description: "Background wallpaper for the image, used to set a background for the image",
|
|
9806
|
+
chain: [
|
|
9807
|
+
{
|
|
9808
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
9809
|
+
description: "Common resource image tags for images"
|
|
9810
|
+
}
|
|
9811
|
+
]
|
|
9812
|
+
},
|
|
9813
|
+
{
|
|
9814
|
+
key: ConfigKey.group_resourceBitTags,
|
|
9815
|
+
description: "Resource bit tags for images, used to define additional properties for images"
|
|
9816
|
+
},
|
|
9817
|
+
{
|
|
9818
|
+
key: ConfigKey.group_resourceImage,
|
|
9819
|
+
description: "Resource image tags for images, used to attach images to the bit",
|
|
9820
|
+
minCount: 1
|
|
9821
|
+
}
|
|
9822
|
+
],
|
|
9823
|
+
resourceAttachmentAllowed: false
|
|
9824
|
+
},
|
|
9792
9825
|
[BitType.tableAlt]: {
|
|
9793
9826
|
since: "1.16.0",
|
|
9794
9827
|
baseBitType: BitType.table,
|
|
@@ -10812,7 +10845,7 @@ var instance2 = new Config();
|
|
|
10812
10845
|
// src/generated/package_info.ts
|
|
10813
10846
|
var PACKAGE_INFO = {
|
|
10814
10847
|
"name": "@gmb/bitmark-parser-generator",
|
|
10815
|
-
"version": "5.
|
|
10848
|
+
"version": "5.13.0",
|
|
10816
10849
|
"license": "ISC"};
|
|
10817
10850
|
var Environment = {
|
|
10818
10851
|
unknown: "",
|
|
@@ -12658,6 +12691,7 @@ var TextGenerator = class _TextGenerator extends AstWalkerGenerator {
|
|
|
12658
12691
|
* @param ast bitmark text AST
|
|
12659
12692
|
*/
|
|
12660
12693
|
generateSync(ast, textFormat, textLocation, options) {
|
|
12694
|
+
if (!ast || !Array.isArray(ast)) return "";
|
|
12661
12695
|
this.generateOptions = Object.assign({}, options);
|
|
12662
12696
|
this.validateGenerateOptions(ast);
|
|
12663
12697
|
if (!this.generateOptions.plainTextDividerAllowed) {
|