@gmb/bitmark-parser-generator 4.18.0 → 4.20.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 +45 -6
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +39 -9
- package/dist/browser/esm/index.d.ts +39 -9
- package/dist/browser/esm/index.js +43 -6
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +45 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -9
- package/dist/index.d.ts +39 -9
- package/dist/index.js +43 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -57,6 +57,8 @@ __export(index_exports, {
|
|
|
57
57
|
ResourceBuilder: () => ResourceBuilder,
|
|
58
58
|
StreamWriter: () => StreamWriter,
|
|
59
59
|
StringWriter: () => StringWriter,
|
|
60
|
+
TextMarkType: () => TextMarkType,
|
|
61
|
+
TextNodeType: () => TextNodeType,
|
|
60
62
|
bitmarkTextParse: () => parse
|
|
61
63
|
});
|
|
62
64
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -452,6 +454,7 @@ var BitType = (0, import_superenum.superenum)({
|
|
|
452
454
|
multipleResponse: "multiple-response",
|
|
453
455
|
multipleResponse1: "multiple-response-1",
|
|
454
456
|
newspaperArticle: "newspaper-article",
|
|
457
|
+
nonProductionPrototypeIframe: "non-production-prototype-iframe",
|
|
455
458
|
note: "note",
|
|
456
459
|
noteAi: "note-ai",
|
|
457
460
|
noteAlt: "note-alt",
|
|
@@ -1280,6 +1283,8 @@ var propertyKeys = {
|
|
|
1280
1283
|
property_icon: "@icon",
|
|
1281
1284
|
property_iconTag: "@iconTag",
|
|
1282
1285
|
property_id: "@id",
|
|
1286
|
+
property_iframeSrc: "@iframeSrc",
|
|
1287
|
+
property_iframeName: "@iframeName",
|
|
1283
1288
|
property_imageFirst: "@imageFirst",
|
|
1284
1289
|
property_imageSource: "@imageSource",
|
|
1285
1290
|
property_index: "@index",
|
|
@@ -3613,17 +3618,17 @@ var GROUPS = {
|
|
|
3613
3618
|
{
|
|
3614
3619
|
key: ConfigKey.property_platformMargin,
|
|
3615
3620
|
description: "The platform margin",
|
|
3616
|
-
format: TagFormat.
|
|
3621
|
+
format: TagFormat.number
|
|
3617
3622
|
},
|
|
3618
3623
|
{
|
|
3619
3624
|
key: ConfigKey.property_platformBorderRadius,
|
|
3620
3625
|
description: "The platform border radius",
|
|
3621
|
-
format: TagFormat.
|
|
3626
|
+
format: TagFormat.number
|
|
3622
3627
|
},
|
|
3623
3628
|
{
|
|
3624
3629
|
key: ConfigKey.property_platformSelectionBorderRadius,
|
|
3625
3630
|
description: "The platform selection border radius",
|
|
3626
|
-
format: TagFormat.
|
|
3631
|
+
format: TagFormat.number
|
|
3627
3632
|
},
|
|
3628
3633
|
{
|
|
3629
3634
|
key: ConfigKey.property_platformNeedsShadow,
|
|
@@ -8738,6 +8743,10 @@ var BITS = {
|
|
|
8738
8743
|
}
|
|
8739
8744
|
],
|
|
8740
8745
|
maxCount: 1
|
|
8746
|
+
},
|
|
8747
|
+
{
|
|
8748
|
+
key: ConfigKey.group_platformStylesCommon,
|
|
8749
|
+
description: "Common platform styles"
|
|
8741
8750
|
}
|
|
8742
8751
|
]
|
|
8743
8752
|
},
|
|
@@ -9198,6 +9207,7 @@ var BITS = {
|
|
|
9198
9207
|
key: ConfigKey.property_tableHeaderWhitespaceNoWrap,
|
|
9199
9208
|
description: "No wrap for table header whitespace, used to prevent header text wrapping",
|
|
9200
9209
|
format: TagFormat.boolean
|
|
9210
|
+
// defaultValue: 'false',
|
|
9201
9211
|
},
|
|
9202
9212
|
{
|
|
9203
9213
|
key: ConfigKey.property_tableSearch,
|
|
@@ -9230,7 +9240,7 @@ var BITS = {
|
|
|
9230
9240
|
key: ConfigKey.property_tableWhitespaceNoWrap,
|
|
9231
9241
|
description: "No wrap for table whitespace, used to prevent text wrapping in table cells",
|
|
9232
9242
|
format: TagFormat.boolean
|
|
9233
|
-
// defaultValue: '
|
|
9243
|
+
// defaultValue: 'false',
|
|
9234
9244
|
},
|
|
9235
9245
|
{
|
|
9236
9246
|
key: ConfigKey.property_tableAutoWidth,
|
|
@@ -9896,6 +9906,22 @@ var BITS = {
|
|
|
9896
9906
|
}
|
|
9897
9907
|
],
|
|
9898
9908
|
resourceAttachmentAllowed: false
|
|
9909
|
+
},
|
|
9910
|
+
[BitType.nonProductionPrototypeIframe]: {
|
|
9911
|
+
since: "4.20.0",
|
|
9912
|
+
baseBitType: BitType._standard,
|
|
9913
|
+
description: "A non-production prototype iframe bit, used to embed prototype iframes",
|
|
9914
|
+
tags: [
|
|
9915
|
+
{
|
|
9916
|
+
key: ConfigKey.property_iframeSrc,
|
|
9917
|
+
description: "Iframe source URL, used to define the source of the iframe"
|
|
9918
|
+
},
|
|
9919
|
+
{
|
|
9920
|
+
key: ConfigKey.property_iframeName,
|
|
9921
|
+
description: "Iframe name, used to define the name of the iframe",
|
|
9922
|
+
minCount: 1
|
|
9923
|
+
}
|
|
9924
|
+
]
|
|
9899
9925
|
}
|
|
9900
9926
|
};
|
|
9901
9927
|
|
|
@@ -10238,7 +10264,7 @@ var instance2 = new Config();
|
|
|
10238
10264
|
// src/generated/package_info.ts
|
|
10239
10265
|
var PACKAGE_INFO = {
|
|
10240
10266
|
"name": "@gmb/bitmark-parser-generator",
|
|
10241
|
-
"version": "4.
|
|
10267
|
+
"version": "4.20.0",
|
|
10242
10268
|
"author": "Get More Brain Ltd",
|
|
10243
10269
|
"license": "ISC",
|
|
10244
10270
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10832,6 +10858,8 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10832
10858
|
iconValue: "iconValue",
|
|
10833
10859
|
id: "id",
|
|
10834
10860
|
idValue: "idValue",
|
|
10861
|
+
iframeSrc: "iframeSrc",
|
|
10862
|
+
iframeName: "iframeName",
|
|
10835
10863
|
image: "image",
|
|
10836
10864
|
imageFirst: "imageFirst",
|
|
10837
10865
|
imageFirstValue: "imageFirstValue",
|
|
@@ -23821,6 +23849,13 @@ var Builder = class extends BaseBuilder {
|
|
|
23821
23849
|
data.releaseDate,
|
|
23822
23850
|
options
|
|
23823
23851
|
),
|
|
23852
|
+
iframeSrc: this.toAstProperty(bitType, ConfigKey.property_iframeSrc, data.iframeSrc, options),
|
|
23853
|
+
iframeName: this.toAstProperty(
|
|
23854
|
+
bitType,
|
|
23855
|
+
ConfigKey.property_iframeName,
|
|
23856
|
+
data.iframeName,
|
|
23857
|
+
options
|
|
23858
|
+
),
|
|
23824
23859
|
book: this.buildBooks(context, data.book),
|
|
23825
23860
|
ageRange: this.toAstProperty(bitType, ConfigKey.property_ageRange, data.ageRange, options),
|
|
23826
23861
|
lang: this.toAstProperty(bitType, ConfigKey.property_lang, data.lang, options),
|
|
@@ -30088,7 +30123,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30088
30123
|
}
|
|
30089
30124
|
if (instance2.isOfBitType(bitType, BitType.table)) {
|
|
30090
30125
|
if (bitJson.tableFixedHeader == null) bitJson.tableFixedHeader = false;
|
|
30091
|
-
if (bitJson.tableHeaderWhitespaceNoWrap == null)
|
|
30126
|
+
if (bitJson.tableHeaderWhitespaceNoWrap == null) {
|
|
30127
|
+
bitJson.tableHeaderWhitespaceNoWrap = false;
|
|
30128
|
+
}
|
|
30092
30129
|
if (bitJson.tableSearch == null) bitJson.tableSearch = false;
|
|
30093
30130
|
if (bitJson.tableSort == null) bitJson.tableSort = false;
|
|
30094
30131
|
if (bitJson.tablePagination == null) bitJson.tablePagination = false;
|
|
@@ -39593,6 +39630,8 @@ init();
|
|
|
39593
39630
|
ResourceBuilder,
|
|
39594
39631
|
StreamWriter,
|
|
39595
39632
|
StringWriter,
|
|
39633
|
+
TextMarkType,
|
|
39634
|
+
TextNodeType,
|
|
39596
39635
|
bitmarkTextParse
|
|
39597
39636
|
});
|
|
39598
39637
|
//# sourceMappingURL=index.cjs.map
|