@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/index.cjs
CHANGED
|
@@ -658,6 +658,7 @@ var BitType = {
|
|
|
658
658
|
table: "table",
|
|
659
659
|
tableAlt: "table-alt",
|
|
660
660
|
tableExtended: "table-extended",
|
|
661
|
+
tableExtendedImage: "table-extended-image",
|
|
661
662
|
tableImage: "table-image",
|
|
662
663
|
tableImageAlt: "table-image-alt",
|
|
663
664
|
takePicture: "take-picture",
|
|
@@ -9894,6 +9895,38 @@ var BITS = {
|
|
|
9894
9895
|
baseBitType: BitType.table,
|
|
9895
9896
|
description: "Extended table bit, used to create complex tables with all HTML table features"
|
|
9896
9897
|
},
|
|
9898
|
+
[BitType.tableExtendedImage]: {
|
|
9899
|
+
since: "5.13.0",
|
|
9900
|
+
baseBitType: BitType.tableExtended,
|
|
9901
|
+
description: "Extended table image bit, used to create complex tables with images and all HTML table features",
|
|
9902
|
+
tags: [
|
|
9903
|
+
{
|
|
9904
|
+
key: ConfigKey.property_caption,
|
|
9905
|
+
description: "Caption for the table image, used to provide a description for the image",
|
|
9906
|
+
format: TagFormat.bitmarkText
|
|
9907
|
+
},
|
|
9908
|
+
{
|
|
9909
|
+
key: ConfigKey.resource_backgroundWallpaper,
|
|
9910
|
+
description: "Background wallpaper for the image, used to set a background for the image",
|
|
9911
|
+
chain: [
|
|
9912
|
+
{
|
|
9913
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
9914
|
+
description: "Common resource image tags for images"
|
|
9915
|
+
}
|
|
9916
|
+
]
|
|
9917
|
+
},
|
|
9918
|
+
{
|
|
9919
|
+
key: ConfigKey.group_resourceBitTags,
|
|
9920
|
+
description: "Resource bit tags for images, used to define additional properties for images"
|
|
9921
|
+
},
|
|
9922
|
+
{
|
|
9923
|
+
key: ConfigKey.group_resourceImage,
|
|
9924
|
+
description: "Resource image tags for images, used to attach images to the bit",
|
|
9925
|
+
minCount: 1
|
|
9926
|
+
}
|
|
9927
|
+
],
|
|
9928
|
+
resourceAttachmentAllowed: false
|
|
9929
|
+
},
|
|
9897
9930
|
[BitType.tableAlt]: {
|
|
9898
9931
|
since: "1.16.0",
|
|
9899
9932
|
baseBitType: BitType.table,
|
|
@@ -10917,7 +10950,7 @@ var instance2 = new Config();
|
|
|
10917
10950
|
// src/generated/package_info.ts
|
|
10918
10951
|
var PACKAGE_INFO = {
|
|
10919
10952
|
"name": "@gmb/bitmark-parser-generator",
|
|
10920
|
-
"version": "5.
|
|
10953
|
+
"version": "5.13.0",
|
|
10921
10954
|
"author": "Get More Brain Ltd",
|
|
10922
10955
|
"license": "ISC",
|
|
10923
10956
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -12821,6 +12854,7 @@ var TextGenerator = class _TextGenerator extends AstWalkerGenerator {
|
|
|
12821
12854
|
* @param ast bitmark text AST
|
|
12822
12855
|
*/
|
|
12823
12856
|
generateSync(ast, textFormat, textLocation, options) {
|
|
12857
|
+
if (!ast || !Array.isArray(ast)) return "";
|
|
12824
12858
|
this.generateOptions = Object.assign({}, options);
|
|
12825
12859
|
this.validateGenerateOptions(ast);
|
|
12826
12860
|
if (!this.generateOptions.plainTextDividerAllowed) {
|