@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/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +47 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +3 -0
- package/dist/browser/esm/index.d.ts +3 -0
- package/dist/browser/esm/index.js +47 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +47 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +47 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +47 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/main.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",
|
|
@@ -4953,6 +4956,16 @@ var BITS = {
|
|
|
4953
4956
|
],
|
|
4954
4957
|
resourceAttachmentAllowed: false
|
|
4955
4958
|
},
|
|
4959
|
+
[BitType.appRag]: {
|
|
4960
|
+
since: "5.14.0",
|
|
4961
|
+
baseBitType: BitType.article,
|
|
4962
|
+
description: "App RAG (Retrieval-Augmented Generation) bit, equal to article"
|
|
4963
|
+
},
|
|
4964
|
+
[BitType.appSearch]: {
|
|
4965
|
+
since: "5.14.0",
|
|
4966
|
+
baseBitType: BitType.article,
|
|
4967
|
+
description: "App search bit, equal to article"
|
|
4968
|
+
},
|
|
4956
4969
|
[BitType.author]: {
|
|
4957
4970
|
since: "4.2.0",
|
|
4958
4971
|
baseBitType: BitType._standard,
|
|
@@ -9789,6 +9802,38 @@ var BITS = {
|
|
|
9789
9802
|
baseBitType: BitType.table,
|
|
9790
9803
|
description: "Extended table bit, used to create complex tables with all HTML table features"
|
|
9791
9804
|
},
|
|
9805
|
+
[BitType.tableExtendedImage]: {
|
|
9806
|
+
since: "5.13.0",
|
|
9807
|
+
baseBitType: BitType.tableExtended,
|
|
9808
|
+
description: "Extended table image bit, used to create complex tables with images and all HTML table features",
|
|
9809
|
+
tags: [
|
|
9810
|
+
{
|
|
9811
|
+
key: ConfigKey.property_caption,
|
|
9812
|
+
description: "Caption for the table image, used to provide a description for the image",
|
|
9813
|
+
format: TagFormat.bitmarkText
|
|
9814
|
+
},
|
|
9815
|
+
{
|
|
9816
|
+
key: ConfigKey.resource_backgroundWallpaper,
|
|
9817
|
+
description: "Background wallpaper for the image, used to set a background for the image",
|
|
9818
|
+
chain: [
|
|
9819
|
+
{
|
|
9820
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
9821
|
+
description: "Common resource image tags for images"
|
|
9822
|
+
}
|
|
9823
|
+
]
|
|
9824
|
+
},
|
|
9825
|
+
{
|
|
9826
|
+
key: ConfigKey.group_resourceBitTags,
|
|
9827
|
+
description: "Resource bit tags for images, used to define additional properties for images"
|
|
9828
|
+
},
|
|
9829
|
+
{
|
|
9830
|
+
key: ConfigKey.group_resourceImage,
|
|
9831
|
+
description: "Resource image tags for images, used to attach images to the bit",
|
|
9832
|
+
minCount: 1
|
|
9833
|
+
}
|
|
9834
|
+
],
|
|
9835
|
+
resourceAttachmentAllowed: false
|
|
9836
|
+
},
|
|
9792
9837
|
[BitType.tableAlt]: {
|
|
9793
9838
|
since: "1.16.0",
|
|
9794
9839
|
baseBitType: BitType.table,
|
|
@@ -10812,7 +10857,7 @@ var instance2 = new Config();
|
|
|
10812
10857
|
// src/generated/package_info.ts
|
|
10813
10858
|
var PACKAGE_INFO = {
|
|
10814
10859
|
"name": "@gmb/bitmark-parser-generator",
|
|
10815
|
-
"version": "5.
|
|
10860
|
+
"version": "5.14.0",
|
|
10816
10861
|
"license": "ISC"};
|
|
10817
10862
|
var Environment = {
|
|
10818
10863
|
unknown: "",
|
|
@@ -12658,6 +12703,7 @@ var TextGenerator = class _TextGenerator extends AstWalkerGenerator {
|
|
|
12658
12703
|
* @param ast bitmark text AST
|
|
12659
12704
|
*/
|
|
12660
12705
|
generateSync(ast, textFormat, textLocation, options) {
|
|
12706
|
+
if (!ast || !Array.isArray(ast)) return "";
|
|
12661
12707
|
this.generateOptions = Object.assign({}, options);
|
|
12662
12708
|
this.validateGenerateOptions(ast);
|
|
12663
12709
|
if (!this.generateOptions.plainTextDividerAllowed) {
|