@gmb/bitmark-parser-generator 5.36.0 → 5.38.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 +823 -77
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +426 -376
- package/dist/browser/esm/index.d.ts +426 -376
- package/dist/browser/esm/index.js +823 -77
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +826 -77
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +826 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +426 -376
- package/dist/index.d.ts +426 -376
- package/dist/index.js +826 -77
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1277,6 +1277,7 @@ var import_superenum14 = require("@ncoderz/superenum");
|
|
|
1277
1277
|
// src/model/enum/GroupKey.ts
|
|
1278
1278
|
var import_superenum10 = require("@ncoderz/superenum");
|
|
1279
1279
|
var groupKeys = {
|
|
1280
|
+
group_accessibilityDecorative: "group_accessibilityDecorative",
|
|
1280
1281
|
group_standardAllBits: "group_standardAllBits",
|
|
1281
1282
|
group_standardItemLead: "group_standardItemLead",
|
|
1282
1283
|
group_standardItemLeadInstructionHint: "group_standardItemLeadInstructionHint",
|
|
@@ -1342,6 +1343,8 @@ var groupKeys = {
|
|
|
1342
1343
|
// src/model/enum/PropertyKey.ts
|
|
1343
1344
|
var import_superenum11 = require("@ncoderz/superenum");
|
|
1344
1345
|
var propertyKeys = {
|
|
1346
|
+
property_accessibilityGroupTag: "@accessibilityGroupTag",
|
|
1347
|
+
property_accessibilityTag: "@accessibilityTag",
|
|
1345
1348
|
property_action: "@action",
|
|
1346
1349
|
property_activityType: "@activityType",
|
|
1347
1350
|
property_additionalSolutions: "@additionalSolutions",
|
|
@@ -1629,6 +1632,8 @@ var propertyKeys = {
|
|
|
1629
1632
|
property_trim: "@trim",
|
|
1630
1633
|
property_unit: "@unit",
|
|
1631
1634
|
property_unitAbbr: "@unitAbbr",
|
|
1635
|
+
property_unitAbbrPlural: "@unitAbbrPlural",
|
|
1636
|
+
property_unitPlural: "@unitPlural",
|
|
1632
1637
|
property_vendorDashboardId: "@vendorDashboardId",
|
|
1633
1638
|
property_vendorSurveyId: "@vendorSurveyId",
|
|
1634
1639
|
property_vendorUrl: "@vendorUrl",
|
|
@@ -4442,12 +4447,22 @@ var CARDSETS = {
|
|
|
4442
4447
|
},
|
|
4443
4448
|
{
|
|
4444
4449
|
key: ConfigKey.property_unit,
|
|
4445
|
-
description: "Unit of measurement for the ingredient.",
|
|
4450
|
+
description: "Unit of measurement for the ingredient (singular).",
|
|
4451
|
+
format: TagFormat.plainText
|
|
4452
|
+
},
|
|
4453
|
+
{
|
|
4454
|
+
key: ConfigKey.property_unitPlural,
|
|
4455
|
+
description: "Unit of measurement for the ingredient (plural).",
|
|
4446
4456
|
format: TagFormat.plainText
|
|
4447
4457
|
},
|
|
4448
4458
|
{
|
|
4449
4459
|
key: ConfigKey.property_unitAbbr,
|
|
4450
|
-
description: "Abbreviation for the unit of measurement.",
|
|
4460
|
+
description: "Abbreviation for the unit of measurement (singular).",
|
|
4461
|
+
format: TagFormat.plainText
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
key: ConfigKey.property_unitAbbrPlural,
|
|
4465
|
+
description: "Abbreviation for the unit of measurement (plural).",
|
|
4451
4466
|
format: TagFormat.plainText
|
|
4452
4467
|
},
|
|
4453
4468
|
{
|
|
@@ -4520,6 +4535,7 @@ var CARDSETS = {
|
|
|
4520
4535
|
};
|
|
4521
4536
|
|
|
4522
4537
|
// src/config/raw/groups.ts
|
|
4538
|
+
var ACCESSIBILITY_TAG_VALUES = ["complex", "functional", "decorative", "standard"];
|
|
4523
4539
|
var GROUPS = {
|
|
4524
4540
|
[ConfigKey.group_standardAllBits]: {
|
|
4525
4541
|
name: "Standard",
|
|
@@ -4623,6 +4639,12 @@ var GROUPS = {
|
|
|
4623
4639
|
description: "Translation source reference",
|
|
4624
4640
|
format: TagFormat.plainText
|
|
4625
4641
|
},
|
|
4642
|
+
{
|
|
4643
|
+
key: ConfigKey.property_isCollapsible,
|
|
4644
|
+
description: "If true, the bit is collapsible",
|
|
4645
|
+
format: TagFormat.boolean,
|
|
4646
|
+
nullable: true
|
|
4647
|
+
},
|
|
4626
4648
|
{
|
|
4627
4649
|
key: ConfigKey.property_spansPageBreak,
|
|
4628
4650
|
description: "If true, the bit spans a page break",
|
|
@@ -4786,6 +4808,36 @@ var GROUPS = {
|
|
|
4786
4808
|
}
|
|
4787
4809
|
]
|
|
4788
4810
|
},
|
|
4811
|
+
{
|
|
4812
|
+
key: ConfigKey.property_accessibilityTag,
|
|
4813
|
+
description: "The accessibility classification(s) for the bit",
|
|
4814
|
+
format: TagFormat.enumeration,
|
|
4815
|
+
values: ACCESSIBILITY_TAG_VALUES,
|
|
4816
|
+
nullable: true,
|
|
4817
|
+
maxCount: Count.infinity
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
key: ConfigKey.property_accessibilityGroupTag,
|
|
4821
|
+
jsonKey: "accessibilityGroupTag.name",
|
|
4822
|
+
// Entity-merge semantics, as for `@groupTag`: repeated
|
|
4823
|
+
// `[@accessibilityGroupTag: name]` occurrences with the same value fold
|
|
4824
|
+
// into one entry; chained `@accessibilityTag` children's arrays merge as sets.
|
|
4825
|
+
exportJsonKey: { accessibilityGroupTag: [{ "@id": "name", name: "$" }] },
|
|
4826
|
+
description: "The accessibility group tag(s) for the bit",
|
|
4827
|
+
format: TagFormat.plainText,
|
|
4828
|
+
maxCount: Count.infinity,
|
|
4829
|
+
chain: [
|
|
4830
|
+
{
|
|
4831
|
+
key: ConfigKey.property_accessibilityTag,
|
|
4832
|
+
exportJsonKey: { tags: ["$"] },
|
|
4833
|
+
description: "The accessibility classification(s) for the group",
|
|
4834
|
+
format: TagFormat.enumeration,
|
|
4835
|
+
values: ACCESSIBILITY_TAG_VALUES,
|
|
4836
|
+
nullable: true,
|
|
4837
|
+
maxCount: Count.infinity
|
|
4838
|
+
}
|
|
4839
|
+
]
|
|
4840
|
+
},
|
|
4789
4841
|
{
|
|
4790
4842
|
key: ConfigKey.property_reviewTag,
|
|
4791
4843
|
description: "The review tag(s) for the bit",
|
|
@@ -4916,6 +4968,37 @@ var GROUPS = {
|
|
|
4916
4968
|
}
|
|
4917
4969
|
]
|
|
4918
4970
|
},
|
|
4971
|
+
[ConfigKey.group_accessibilityDecorative]: {
|
|
4972
|
+
name: "Accessibility (decorative)",
|
|
4973
|
+
description: "Accessibility tags defaulting to a decorative image, for bits that are decorative by definition",
|
|
4974
|
+
type: GroupConfigType.standard,
|
|
4975
|
+
// Re-declares `@accessibilityGroupTag` (in full — tag hydration is last-wins
|
|
4976
|
+
// per config key, it does not merge) with the decorative defaults. The
|
|
4977
|
+
// standalone `@accessibilityTag` is deliberately NOT re-declared: the default
|
|
4978
|
+
// belongs to the group structure only.
|
|
4979
|
+
tags: [
|
|
4980
|
+
{
|
|
4981
|
+
key: ConfigKey.property_accessibilityGroupTag,
|
|
4982
|
+
jsonKey: "accessibilityGroupTag.name",
|
|
4983
|
+
exportJsonKey: { accessibilityGroupTag: [{ "@id": "name", name: "$" }] },
|
|
4984
|
+
description: "The accessibility group tag(s) for the bit",
|
|
4985
|
+
format: TagFormat.plainText,
|
|
4986
|
+
defaultValue: "image",
|
|
4987
|
+
maxCount: Count.infinity,
|
|
4988
|
+
chain: [
|
|
4989
|
+
{
|
|
4990
|
+
key: ConfigKey.property_accessibilityTag,
|
|
4991
|
+
exportJsonKey: { tags: ["$"] },
|
|
4992
|
+
description: "The accessibility classification(s) for the group",
|
|
4993
|
+
format: TagFormat.enumeration,
|
|
4994
|
+
values: ACCESSIBILITY_TAG_VALUES,
|
|
4995
|
+
defaultValue: "decorative",
|
|
4996
|
+
maxCount: Count.infinity
|
|
4997
|
+
}
|
|
4998
|
+
]
|
|
4999
|
+
}
|
|
5000
|
+
]
|
|
5001
|
+
},
|
|
4919
5002
|
[ConfigKey.group_standardItemLead]: {
|
|
4920
5003
|
type: GroupConfigType.standard,
|
|
4921
5004
|
description: "Standard group for item, lead, page number, and margin number tags",
|
|
@@ -7676,13 +7759,31 @@ var BITS = {
|
|
|
7676
7759
|
},
|
|
7677
7760
|
[BitType.smartStandardArticleNormativeCollapsible]: {
|
|
7678
7761
|
since: "1.28.0",
|
|
7762
|
+
deprecated: "5.37.0",
|
|
7679
7763
|
baseBitType: BitType.smartStandardArticleNormative,
|
|
7680
|
-
description: "Smart standard normative article bit that is collapsible"
|
|
7764
|
+
description: "Smart standard normative article bit that is collapsible",
|
|
7765
|
+
tags: [
|
|
7766
|
+
{
|
|
7767
|
+
key: ConfigKey.property_isCollapsible,
|
|
7768
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
7769
|
+
format: TagFormat.boolean,
|
|
7770
|
+
defaultValue: "true"
|
|
7771
|
+
}
|
|
7772
|
+
]
|
|
7681
7773
|
},
|
|
7682
7774
|
[BitType.smartStandardArticleNonNormativeCollapsible]: {
|
|
7683
7775
|
since: "1.28.0",
|
|
7776
|
+
deprecated: "5.37.0",
|
|
7684
7777
|
baseBitType: BitType.smartStandardArticleNonNormative,
|
|
7685
|
-
description: "Smart standard non-normative article bit that is collapsible"
|
|
7778
|
+
description: "Smart standard non-normative article bit that is collapsible",
|
|
7779
|
+
tags: [
|
|
7780
|
+
{
|
|
7781
|
+
key: ConfigKey.property_isCollapsible,
|
|
7782
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
7783
|
+
format: TagFormat.boolean,
|
|
7784
|
+
defaultValue: "true"
|
|
7785
|
+
}
|
|
7786
|
+
]
|
|
7686
7787
|
},
|
|
7687
7788
|
[BitType.statement]: {
|
|
7688
7789
|
since: "1.3.0",
|
|
@@ -8804,7 +8905,7 @@ var BITS = {
|
|
|
8804
8905
|
},
|
|
8805
8906
|
{
|
|
8806
8907
|
key: ConfigKey.property_isCollapsible,
|
|
8807
|
-
description: "If true, the chapter is collapsible",
|
|
8908
|
+
description: "If true, the chapter is collapsible (always emitted; defaults false)",
|
|
8808
8909
|
format: TagFormat.boolean,
|
|
8809
8910
|
defaultValue: "false"
|
|
8810
8911
|
}
|
|
@@ -9413,12 +9514,22 @@ var BITS = {
|
|
|
9413
9514
|
chain: [
|
|
9414
9515
|
{
|
|
9415
9516
|
key: ConfigKey.property_unit,
|
|
9416
|
-
description: "The unit of measurement for the ingredients",
|
|
9517
|
+
description: "The unit of measurement for the ingredients (singular)",
|
|
9518
|
+
format: TagFormat.plainText
|
|
9519
|
+
},
|
|
9520
|
+
{
|
|
9521
|
+
key: ConfigKey.property_unitPlural,
|
|
9522
|
+
description: "The unit of measurement for the ingredients (plural)",
|
|
9417
9523
|
format: TagFormat.plainText
|
|
9418
9524
|
},
|
|
9419
9525
|
{
|
|
9420
9526
|
key: ConfigKey.property_unitAbbr,
|
|
9421
|
-
description: "The abbreviation for the unit of measurement",
|
|
9527
|
+
description: "The abbreviation for the unit of measurement (singular)",
|
|
9528
|
+
format: TagFormat.plainText
|
|
9529
|
+
},
|
|
9530
|
+
{
|
|
9531
|
+
key: ConfigKey.property_unitAbbrPlural,
|
|
9532
|
+
description: "The abbreviation for the unit of measurement (plural)",
|
|
9422
9533
|
format: TagFormat.plainText
|
|
9423
9534
|
},
|
|
9424
9535
|
{
|
|
@@ -9697,13 +9808,31 @@ var BITS = {
|
|
|
9697
9808
|
},
|
|
9698
9809
|
[BitType.smartStandardExampleNormativeCollapsible]: {
|
|
9699
9810
|
since: "1.28.0",
|
|
9811
|
+
deprecated: "5.37.0",
|
|
9700
9812
|
baseBitType: BitType.smartStandardExampleNormative,
|
|
9701
|
-
description: "Smart standard normative example collapsible bit, used to provide normative examples in smart standards that can be collapsed"
|
|
9813
|
+
description: "Smart standard normative example collapsible bit, used to provide normative examples in smart standards that can be collapsed",
|
|
9814
|
+
tags: [
|
|
9815
|
+
{
|
|
9816
|
+
key: ConfigKey.property_isCollapsible,
|
|
9817
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
9818
|
+
format: TagFormat.boolean,
|
|
9819
|
+
defaultValue: "true"
|
|
9820
|
+
}
|
|
9821
|
+
]
|
|
9702
9822
|
},
|
|
9703
9823
|
[BitType.smartStandardExampleNonNormativeCollapsible]: {
|
|
9704
9824
|
since: "1.28.0",
|
|
9825
|
+
deprecated: "5.37.0",
|
|
9705
9826
|
baseBitType: BitType.smartStandardExampleNonNormative,
|
|
9706
|
-
description: "Smart standard non-normative example collapsible bit, used to provide non-normative examples in smart standards that can be collapsed"
|
|
9827
|
+
description: "Smart standard non-normative example collapsible bit, used to provide non-normative examples in smart standards that can be collapsed",
|
|
9828
|
+
tags: [
|
|
9829
|
+
{
|
|
9830
|
+
key: ConfigKey.property_isCollapsible,
|
|
9831
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
9832
|
+
format: TagFormat.boolean,
|
|
9833
|
+
defaultValue: "true"
|
|
9834
|
+
}
|
|
9835
|
+
]
|
|
9707
9836
|
},
|
|
9708
9837
|
[BitType.authorContentBitGenerator]: {
|
|
9709
9838
|
since: "4.2.0",
|
|
@@ -10039,8 +10168,17 @@ var BITS = {
|
|
|
10039
10168
|
},
|
|
10040
10169
|
[BitType.smartStandardListCollapsible]: {
|
|
10041
10170
|
since: "1.28.0",
|
|
10171
|
+
deprecated: "5.37.0",
|
|
10042
10172
|
baseBitType: BitType.smartStandardList,
|
|
10043
|
-
description: "Smart standard list collapsible bit, used to create collapsible smart standard lists in articles or books"
|
|
10173
|
+
description: "Smart standard list collapsible bit, used to create collapsible smart standard lists in articles or books",
|
|
10174
|
+
tags: [
|
|
10175
|
+
{
|
|
10176
|
+
key: ConfigKey.property_isCollapsible,
|
|
10177
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10178
|
+
format: TagFormat.boolean,
|
|
10179
|
+
defaultValue: "true"
|
|
10180
|
+
}
|
|
10181
|
+
]
|
|
10044
10182
|
},
|
|
10045
10183
|
[BitType.message]: {
|
|
10046
10184
|
since: "1.3.0",
|
|
@@ -10094,13 +10232,31 @@ var BITS = {
|
|
|
10094
10232
|
},
|
|
10095
10233
|
[BitType.smartStandardNoteNormativeCollapsible]: {
|
|
10096
10234
|
since: "1.28.0",
|
|
10235
|
+
deprecated: "5.37.0",
|
|
10097
10236
|
baseBitType: BitType.smartStandardNoteNormative,
|
|
10098
|
-
description: "Smart standard normative note collapsible bit, used to provide normative notes in smart standards that can be collapsed"
|
|
10237
|
+
description: "Smart standard normative note collapsible bit, used to provide normative notes in smart standards that can be collapsed",
|
|
10238
|
+
tags: [
|
|
10239
|
+
{
|
|
10240
|
+
key: ConfigKey.property_isCollapsible,
|
|
10241
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10242
|
+
format: TagFormat.boolean,
|
|
10243
|
+
defaultValue: "true"
|
|
10244
|
+
}
|
|
10245
|
+
]
|
|
10099
10246
|
},
|
|
10100
10247
|
[BitType.smartStandardNoteNonNormativeCollapsible]: {
|
|
10101
10248
|
since: "1.28.0",
|
|
10249
|
+
deprecated: "5.37.0",
|
|
10102
10250
|
baseBitType: BitType.smartStandardNoteNonNormative,
|
|
10103
|
-
description: "Smart standard non-normative note collapsible bit, used to provide non-normative notes in smart standards that can be collapsed"
|
|
10251
|
+
description: "Smart standard non-normative note collapsible bit, used to provide non-normative notes in smart standards that can be collapsed",
|
|
10252
|
+
tags: [
|
|
10253
|
+
{
|
|
10254
|
+
key: ConfigKey.property_isCollapsible,
|
|
10255
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10256
|
+
format: TagFormat.boolean,
|
|
10257
|
+
defaultValue: "true"
|
|
10258
|
+
}
|
|
10259
|
+
]
|
|
10104
10260
|
},
|
|
10105
10261
|
[BitType.noteAi]: {
|
|
10106
10262
|
since: "1.3.0",
|
|
@@ -10161,7 +10317,9 @@ var BITS = {
|
|
|
10161
10317
|
},
|
|
10162
10318
|
[BitType.printPageBreak]: {
|
|
10163
10319
|
since: "5.4.0",
|
|
10164
|
-
|
|
10320
|
+
// Based on `article`, not `separator`: `separator` adds nothing over `article`,
|
|
10321
|
+
// and basing on it would inherit the decorative accessibility defaults.
|
|
10322
|
+
baseBitType: BitType.article,
|
|
10165
10323
|
description: "Print page break bit, used to create page breaks for printing in articles or books"
|
|
10166
10324
|
},
|
|
10167
10325
|
[BitType.releaseNotesSummary]: {
|
|
@@ -10213,13 +10371,31 @@ var BITS = {
|
|
|
10213
10371
|
},
|
|
10214
10372
|
[BitType.smartStandardRemarkNormativeCollapsible]: {
|
|
10215
10373
|
since: "1.28.0",
|
|
10374
|
+
deprecated: "5.37.0",
|
|
10216
10375
|
baseBitType: BitType.smartStandardRemarkNormative,
|
|
10217
|
-
description: "Smart standard normative remark collapsible bit, used to provide normative remarks in smart standards that can be collapsed"
|
|
10376
|
+
description: "Smart standard normative remark collapsible bit, used to provide normative remarks in smart standards that can be collapsed",
|
|
10377
|
+
tags: [
|
|
10378
|
+
{
|
|
10379
|
+
key: ConfigKey.property_isCollapsible,
|
|
10380
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10381
|
+
format: TagFormat.boolean,
|
|
10382
|
+
defaultValue: "true"
|
|
10383
|
+
}
|
|
10384
|
+
]
|
|
10218
10385
|
},
|
|
10219
10386
|
[BitType.smartStandardRemarkNonNormativeCollapsible]: {
|
|
10220
10387
|
since: "1.28.0",
|
|
10388
|
+
deprecated: "5.37.0",
|
|
10221
10389
|
baseBitType: BitType.smartStandardRemarkNonNormative,
|
|
10222
|
-
description: "Smart standard non-normative remark collapsible bit, used to provide non-normative remarks in smart standards that can be collapsed"
|
|
10390
|
+
description: "Smart standard non-normative remark collapsible bit, used to provide non-normative remarks in smart standards that can be collapsed",
|
|
10391
|
+
tags: [
|
|
10392
|
+
{
|
|
10393
|
+
key: ConfigKey.property_isCollapsible,
|
|
10394
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10395
|
+
format: TagFormat.boolean,
|
|
10396
|
+
defaultValue: "true"
|
|
10397
|
+
}
|
|
10398
|
+
]
|
|
10223
10399
|
},
|
|
10224
10400
|
[BitType.selfAssessment]: {
|
|
10225
10401
|
since: "1.3.0",
|
|
@@ -10229,12 +10405,24 @@ var BITS = {
|
|
|
10229
10405
|
[BitType.separator]: {
|
|
10230
10406
|
since: "1.4.15",
|
|
10231
10407
|
baseBitType: BitType.article,
|
|
10232
|
-
description: "Separator bit, used to create visual separators in articles or books"
|
|
10408
|
+
description: "Separator bit, used to create visual separators in articles or books",
|
|
10409
|
+
tags: [
|
|
10410
|
+
{
|
|
10411
|
+
key: ConfigKey.group_accessibilityDecorative,
|
|
10412
|
+
description: "Accessibility tags, defaulting to a decorative image"
|
|
10413
|
+
}
|
|
10414
|
+
]
|
|
10233
10415
|
},
|
|
10234
10416
|
[BitType.separatorAlt]: {
|
|
10235
10417
|
since: "1.16.0",
|
|
10236
10418
|
baseBitType: BitType.separator,
|
|
10237
|
-
description: "Alternative separator bit, used to create visual separators in articles or books with alternative styling"
|
|
10419
|
+
description: "Alternative separator bit, used to create visual separators in articles or books with alternative styling",
|
|
10420
|
+
tags: [
|
|
10421
|
+
{
|
|
10422
|
+
key: ConfigKey.group_accessibilityDecorative,
|
|
10423
|
+
description: "Accessibility tags, defaulting to a decorative image"
|
|
10424
|
+
}
|
|
10425
|
+
]
|
|
10238
10426
|
},
|
|
10239
10427
|
[BitType.sticker]: {
|
|
10240
10428
|
since: "1.5.28",
|
|
@@ -10290,53 +10478,143 @@ var BITS = {
|
|
|
10290
10478
|
},
|
|
10291
10479
|
[BitType.collapsible]: {
|
|
10292
10480
|
since: "1.21.0",
|
|
10481
|
+
deprecated: "5.37.0",
|
|
10293
10482
|
baseBitType: BitType.article,
|
|
10294
|
-
description: "Collapsible bit, used to create collapsible sections in articles or books"
|
|
10483
|
+
description: "Collapsible bit, used to create collapsible sections in articles or books",
|
|
10484
|
+
tags: [
|
|
10485
|
+
{
|
|
10486
|
+
key: ConfigKey.property_isCollapsible,
|
|
10487
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10488
|
+
format: TagFormat.boolean,
|
|
10489
|
+
defaultValue: "true"
|
|
10490
|
+
}
|
|
10491
|
+
]
|
|
10295
10492
|
},
|
|
10296
10493
|
[BitType.sideNoteCollapsible]: {
|
|
10297
10494
|
since: "1.21.0",
|
|
10298
|
-
|
|
10299
|
-
|
|
10495
|
+
deprecated: "5.37.0",
|
|
10496
|
+
baseBitType: BitType.sideNote,
|
|
10497
|
+
description: "Side note collapsible bit, used to create collapsible side notes in articles or books",
|
|
10498
|
+
tags: [
|
|
10499
|
+
{
|
|
10500
|
+
key: ConfigKey.property_isCollapsible,
|
|
10501
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10502
|
+
format: TagFormat.boolean,
|
|
10503
|
+
defaultValue: "true"
|
|
10504
|
+
}
|
|
10505
|
+
]
|
|
10300
10506
|
},
|
|
10301
10507
|
[BitType.infoCollapsible]: {
|
|
10302
10508
|
since: "1.21.0",
|
|
10303
|
-
|
|
10304
|
-
|
|
10509
|
+
deprecated: "5.37.0",
|
|
10510
|
+
baseBitType: BitType.info,
|
|
10511
|
+
description: "Info collapsible bit, used to create collapsible informational sections in articles or books",
|
|
10512
|
+
tags: [
|
|
10513
|
+
{
|
|
10514
|
+
key: ConfigKey.property_isCollapsible,
|
|
10515
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10516
|
+
format: TagFormat.boolean,
|
|
10517
|
+
defaultValue: "true"
|
|
10518
|
+
}
|
|
10519
|
+
]
|
|
10305
10520
|
},
|
|
10306
10521
|
[BitType.remarkCollapsible]: {
|
|
10307
10522
|
since: "1.21.0",
|
|
10308
|
-
|
|
10309
|
-
|
|
10523
|
+
deprecated: "5.37.0",
|
|
10524
|
+
baseBitType: BitType.remark,
|
|
10525
|
+
description: "Remark collapsible bit, used to create collapsible remarks in articles or books",
|
|
10526
|
+
tags: [
|
|
10527
|
+
{
|
|
10528
|
+
key: ConfigKey.property_isCollapsible,
|
|
10529
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10530
|
+
format: TagFormat.boolean,
|
|
10531
|
+
defaultValue: "true"
|
|
10532
|
+
}
|
|
10533
|
+
]
|
|
10310
10534
|
},
|
|
10311
10535
|
[BitType.warningCollapsible]: {
|
|
10312
10536
|
since: "1.21.0",
|
|
10313
|
-
|
|
10314
|
-
|
|
10537
|
+
deprecated: "5.37.0",
|
|
10538
|
+
baseBitType: BitType.warning,
|
|
10539
|
+
description: "Warning collapsible bit, used to create collapsible warnings in articles or books",
|
|
10540
|
+
tags: [
|
|
10541
|
+
{
|
|
10542
|
+
key: ConfigKey.property_isCollapsible,
|
|
10543
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10544
|
+
format: TagFormat.boolean,
|
|
10545
|
+
defaultValue: "true"
|
|
10546
|
+
}
|
|
10547
|
+
]
|
|
10315
10548
|
},
|
|
10316
10549
|
[BitType.dangerCollapsible]: {
|
|
10317
10550
|
since: "1.21.0",
|
|
10318
|
-
|
|
10319
|
-
|
|
10551
|
+
deprecated: "5.37.0",
|
|
10552
|
+
baseBitType: BitType.danger,
|
|
10553
|
+
description: "Danger collapsible bit, used to create collapsible danger sections in articles or books",
|
|
10554
|
+
tags: [
|
|
10555
|
+
{
|
|
10556
|
+
key: ConfigKey.property_isCollapsible,
|
|
10557
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10558
|
+
format: TagFormat.boolean,
|
|
10559
|
+
defaultValue: "true"
|
|
10560
|
+
}
|
|
10561
|
+
]
|
|
10320
10562
|
},
|
|
10321
10563
|
[BitType.noteCollapsible]: {
|
|
10322
10564
|
since: "1.21.0",
|
|
10323
|
-
|
|
10324
|
-
|
|
10565
|
+
deprecated: "5.37.0",
|
|
10566
|
+
baseBitType: BitType.note,
|
|
10567
|
+
description: "Note collapsible bit, used to create collapsible notes in articles or books",
|
|
10568
|
+
tags: [
|
|
10569
|
+
{
|
|
10570
|
+
key: ConfigKey.property_isCollapsible,
|
|
10571
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10572
|
+
format: TagFormat.boolean,
|
|
10573
|
+
defaultValue: "true"
|
|
10574
|
+
}
|
|
10575
|
+
]
|
|
10325
10576
|
},
|
|
10326
10577
|
[BitType.exampleCollapsible]: {
|
|
10327
10578
|
since: "1.21.0",
|
|
10328
|
-
|
|
10329
|
-
|
|
10579
|
+
deprecated: "5.37.0",
|
|
10580
|
+
baseBitType: BitType.example,
|
|
10581
|
+
description: "Example collapsible bit, used to create collapsible examples in articles or books",
|
|
10582
|
+
tags: [
|
|
10583
|
+
{
|
|
10584
|
+
key: ConfigKey.property_isCollapsible,
|
|
10585
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10586
|
+
format: TagFormat.boolean,
|
|
10587
|
+
defaultValue: "true"
|
|
10588
|
+
}
|
|
10589
|
+
]
|
|
10330
10590
|
},
|
|
10331
10591
|
[BitType.hintCollapsible]: {
|
|
10332
10592
|
since: "1.21.0",
|
|
10333
|
-
|
|
10334
|
-
|
|
10593
|
+
deprecated: "5.37.0",
|
|
10594
|
+
baseBitType: BitType.hint,
|
|
10595
|
+
description: "Hint collapsible bit, used to create collapsible hints in articles or books",
|
|
10596
|
+
tags: [
|
|
10597
|
+
{
|
|
10598
|
+
key: ConfigKey.property_isCollapsible,
|
|
10599
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10600
|
+
format: TagFormat.boolean,
|
|
10601
|
+
defaultValue: "true"
|
|
10602
|
+
}
|
|
10603
|
+
]
|
|
10335
10604
|
},
|
|
10336
10605
|
[BitType.bugCollapsible]: {
|
|
10337
10606
|
since: "1.21.0",
|
|
10338
|
-
|
|
10339
|
-
|
|
10607
|
+
deprecated: "5.37.0",
|
|
10608
|
+
baseBitType: BitType.bug,
|
|
10609
|
+
description: "Bug collapsible bit, used to create collapsible bug reports in articles or books",
|
|
10610
|
+
tags: [
|
|
10611
|
+
{
|
|
10612
|
+
key: ConfigKey.property_isCollapsible,
|
|
10613
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10614
|
+
format: TagFormat.boolean,
|
|
10615
|
+
defaultValue: "true"
|
|
10616
|
+
}
|
|
10617
|
+
]
|
|
10340
10618
|
},
|
|
10341
10619
|
[BitType.platformPath]: {
|
|
10342
10620
|
since: "3.14.1",
|
|
@@ -10558,8 +10836,17 @@ var BITS = {
|
|
|
10558
10836
|
},
|
|
10559
10837
|
[BitType.extractorPageCollapsible]: {
|
|
10560
10838
|
since: "1.30.0",
|
|
10839
|
+
deprecated: "5.37.0",
|
|
10561
10840
|
baseBitType: BitType.extractorPage,
|
|
10562
|
-
description: "Collapsible extractor page bit, used to extract pages from images with collapsible functionality"
|
|
10841
|
+
description: "Collapsible extractor page bit, used to extract pages from images with collapsible functionality",
|
|
10842
|
+
tags: [
|
|
10843
|
+
{
|
|
10844
|
+
key: ConfigKey.property_isCollapsible,
|
|
10845
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10846
|
+
format: TagFormat.boolean,
|
|
10847
|
+
defaultValue: "true"
|
|
10848
|
+
}
|
|
10849
|
+
]
|
|
10563
10850
|
},
|
|
10564
10851
|
[BitType.extractorPageWithBlocks]: {
|
|
10565
10852
|
since: "1.5.21",
|
|
@@ -10568,8 +10855,17 @@ var BITS = {
|
|
|
10568
10855
|
},
|
|
10569
10856
|
[BitType.extractorPageWithBlocksCollapsible]: {
|
|
10570
10857
|
since: "1.30.0",
|
|
10858
|
+
deprecated: "5.37.0",
|
|
10571
10859
|
baseBitType: BitType.extractorPageWithBlocks,
|
|
10572
|
-
description: "Collapsible extractor page with blocks bit, used to extract pages with blocks from images with collapsible functionality"
|
|
10860
|
+
description: "Collapsible extractor page with blocks bit, used to extract pages with blocks from images with collapsible functionality",
|
|
10861
|
+
tags: [
|
|
10862
|
+
{
|
|
10863
|
+
key: ConfigKey.property_isCollapsible,
|
|
10864
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10865
|
+
format: TagFormat.boolean,
|
|
10866
|
+
defaultValue: "true"
|
|
10867
|
+
}
|
|
10868
|
+
]
|
|
10573
10869
|
},
|
|
10574
10870
|
[BitType.extractorConfiguration]: {
|
|
10575
10871
|
since: "1.7.1",
|
|
@@ -10609,8 +10905,17 @@ var BITS = {
|
|
|
10609
10905
|
},
|
|
10610
10906
|
[BitType.extractorImageCollapsible]: {
|
|
10611
10907
|
since: "4.3.0",
|
|
10908
|
+
deprecated: "5.37.0",
|
|
10612
10909
|
baseBitType: BitType.extractorImage,
|
|
10613
|
-
description: "Collapsible extractor images bit, used for images extracted from PDFs"
|
|
10910
|
+
description: "Collapsible extractor images bit, used for images extracted from PDFs",
|
|
10911
|
+
tags: [
|
|
10912
|
+
{
|
|
10913
|
+
key: ConfigKey.property_isCollapsible,
|
|
10914
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
10915
|
+
format: TagFormat.boolean,
|
|
10916
|
+
defaultValue: "true"
|
|
10917
|
+
}
|
|
10918
|
+
]
|
|
10614
10919
|
},
|
|
10615
10920
|
[BitType.extractorBlueprint]: {
|
|
10616
10921
|
since: "5.12.0",
|
|
@@ -10747,8 +11052,17 @@ var BITS = {
|
|
|
10747
11052
|
},
|
|
10748
11053
|
[BitType.extractorPageNumberCollapsible]: {
|
|
10749
11054
|
since: "1.30.0",
|
|
11055
|
+
deprecated: "5.37.0",
|
|
10750
11056
|
baseBitType: BitType.extractorPageNumber,
|
|
10751
|
-
description: "Collapsible extractor page number bit, used to define page numbers in extractor pages with collapsible functionality"
|
|
11057
|
+
description: "Collapsible extractor page number bit, used to define page numbers in extractor pages with collapsible functionality",
|
|
11058
|
+
tags: [
|
|
11059
|
+
{
|
|
11060
|
+
key: ConfigKey.property_isCollapsible,
|
|
11061
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11062
|
+
format: TagFormat.boolean,
|
|
11063
|
+
defaultValue: "true"
|
|
11064
|
+
}
|
|
11065
|
+
]
|
|
10752
11066
|
},
|
|
10753
11067
|
[BitType.extractorPageHeader]: {
|
|
10754
11068
|
since: "1.5.21",
|
|
@@ -10757,8 +11071,17 @@ var BITS = {
|
|
|
10757
11071
|
},
|
|
10758
11072
|
[BitType.extractorPageHeaderCollapsible]: {
|
|
10759
11073
|
since: "1.30.0",
|
|
11074
|
+
deprecated: "5.37.0",
|
|
10760
11075
|
baseBitType: BitType.extractorPageHeader,
|
|
10761
|
-
description: "Collapsible extractor page header bit, used to define headers in extractor pages with collapsible functionality"
|
|
11076
|
+
description: "Collapsible extractor page header bit, used to define headers in extractor pages with collapsible functionality",
|
|
11077
|
+
tags: [
|
|
11078
|
+
{
|
|
11079
|
+
key: ConfigKey.property_isCollapsible,
|
|
11080
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11081
|
+
format: TagFormat.boolean,
|
|
11082
|
+
defaultValue: "true"
|
|
11083
|
+
}
|
|
11084
|
+
]
|
|
10762
11085
|
},
|
|
10763
11086
|
[BitType.extractorPageFooter]: {
|
|
10764
11087
|
since: "1.5.21",
|
|
@@ -10767,8 +11090,17 @@ var BITS = {
|
|
|
10767
11090
|
},
|
|
10768
11091
|
[BitType.extractorPageFooterCollapsible]: {
|
|
10769
11092
|
since: "1.30.0",
|
|
11093
|
+
deprecated: "5.37.0",
|
|
10770
11094
|
baseBitType: BitType.extractorPageFooter,
|
|
10771
|
-
description: "Collapsible extractor page footer bit, used to define footers in extractor pages with collapsible functionality"
|
|
11095
|
+
description: "Collapsible extractor page footer bit, used to define footers in extractor pages with collapsible functionality",
|
|
11096
|
+
tags: [
|
|
11097
|
+
{
|
|
11098
|
+
key: ConfigKey.property_isCollapsible,
|
|
11099
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11100
|
+
format: TagFormat.boolean,
|
|
11101
|
+
defaultValue: "true"
|
|
11102
|
+
}
|
|
11103
|
+
]
|
|
10772
11104
|
},
|
|
10773
11105
|
[BitType.pageOpenBook]: {
|
|
10774
11106
|
since: "1.5.10",
|
|
@@ -11058,8 +11390,17 @@ var BITS = {
|
|
|
11058
11390
|
},
|
|
11059
11391
|
[BitType.definitionListCollapsible]: {
|
|
11060
11392
|
since: "5.25.0",
|
|
11393
|
+
deprecated: "5.37.0",
|
|
11061
11394
|
baseBitType: BitType.definitionList,
|
|
11062
|
-
description: "Collapsible definition list bit, used to create collapsible lists of definitions in articles or books"
|
|
11395
|
+
description: "Collapsible definition list bit, used to create collapsible lists of definitions in articles or books",
|
|
11396
|
+
tags: [
|
|
11397
|
+
{
|
|
11398
|
+
key: ConfigKey.property_isCollapsible,
|
|
11399
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11400
|
+
format: TagFormat.boolean,
|
|
11401
|
+
defaultValue: "true"
|
|
11402
|
+
}
|
|
11403
|
+
]
|
|
11063
11404
|
},
|
|
11064
11405
|
[BitType.standardDefinitionListNormative]: {
|
|
11065
11406
|
since: "5.24.0",
|
|
@@ -11283,13 +11624,31 @@ var BITS = {
|
|
|
11283
11624
|
},
|
|
11284
11625
|
[BitType.smartStandardImageFigureNormativeCollapsible]: {
|
|
11285
11626
|
since: "1.28.0",
|
|
11627
|
+
deprecated: "5.37.0",
|
|
11286
11628
|
baseBitType: BitType.smartStandardImageFigureNormative,
|
|
11287
|
-
description: "Collapsible smart standard normative image figure bit, used to create collapsible smart standard normative image figures in articles or books"
|
|
11629
|
+
description: "Collapsible smart standard normative image figure bit, used to create collapsible smart standard normative image figures in articles or books",
|
|
11630
|
+
tags: [
|
|
11631
|
+
{
|
|
11632
|
+
key: ConfigKey.property_isCollapsible,
|
|
11633
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11634
|
+
format: TagFormat.boolean,
|
|
11635
|
+
defaultValue: "true"
|
|
11636
|
+
}
|
|
11637
|
+
]
|
|
11288
11638
|
},
|
|
11289
11639
|
[BitType.smartStandardImageFigureNonNormativeCollapsible]: {
|
|
11290
11640
|
since: "1.28.0",
|
|
11641
|
+
deprecated: "5.37.0",
|
|
11291
11642
|
baseBitType: BitType.smartStandardImageFigureNonNormative,
|
|
11292
|
-
description: "Collapsible smart standard non-normative image figure bit, used to create collapsible smart standard non-normative image figures in articles or books"
|
|
11643
|
+
description: "Collapsible smart standard non-normative image figure bit, used to create collapsible smart standard non-normative image figures in articles or books",
|
|
11644
|
+
tags: [
|
|
11645
|
+
{
|
|
11646
|
+
key: ConfigKey.property_isCollapsible,
|
|
11647
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11648
|
+
format: TagFormat.boolean,
|
|
11649
|
+
defaultValue: "true"
|
|
11650
|
+
}
|
|
11651
|
+
]
|
|
11293
11652
|
},
|
|
11294
11653
|
[BitType.imageLandscape]: {
|
|
11295
11654
|
since: "1.3.0",
|
|
@@ -11299,7 +11658,13 @@ var BITS = {
|
|
|
11299
11658
|
[BitType.imageMood]: {
|
|
11300
11659
|
since: "1.3.0",
|
|
11301
11660
|
baseBitType: BitType.image,
|
|
11302
|
-
description: "Image mood bit, used to create mood images in articles or books"
|
|
11661
|
+
description: "Image mood bit, used to create mood images in articles or books",
|
|
11662
|
+
tags: [
|
|
11663
|
+
{
|
|
11664
|
+
key: ConfigKey.group_accessibilityDecorative,
|
|
11665
|
+
description: "Accessibility tags, defaulting to a decorative image"
|
|
11666
|
+
}
|
|
11667
|
+
]
|
|
11303
11668
|
},
|
|
11304
11669
|
[BitType.imagePortrait]: {
|
|
11305
11670
|
since: "1.3.0",
|
|
@@ -11319,6 +11684,10 @@ var BITS = {
|
|
|
11319
11684
|
{
|
|
11320
11685
|
key: ConfigKey.group_imageNoZoom,
|
|
11321
11686
|
description: "Image no zoom tags for images, used to define whether images should have zoom functionality"
|
|
11687
|
+
},
|
|
11688
|
+
{
|
|
11689
|
+
key: ConfigKey.group_accessibilityDecorative,
|
|
11690
|
+
description: "Accessibility tags, defaulting to a decorative image"
|
|
11322
11691
|
}
|
|
11323
11692
|
],
|
|
11324
11693
|
resourceAttachmentAllowed: false
|
|
@@ -11326,7 +11695,13 @@ var BITS = {
|
|
|
11326
11695
|
[BitType.imageSeparatorAlt]: {
|
|
11327
11696
|
since: "1.16.0",
|
|
11328
11697
|
baseBitType: BitType.imageSeparator,
|
|
11329
|
-
description: "Alternative image separator bit, used to create alternative separators in articles or books"
|
|
11698
|
+
description: "Alternative image separator bit, used to create alternative separators in articles or books",
|
|
11699
|
+
tags: [
|
|
11700
|
+
{
|
|
11701
|
+
key: ConfigKey.group_accessibilityDecorative,
|
|
11702
|
+
description: "Accessibility tags, defaulting to a decorative image"
|
|
11703
|
+
}
|
|
11704
|
+
]
|
|
11330
11705
|
},
|
|
11331
11706
|
[BitType.imageScreenshot]: {
|
|
11332
11707
|
since: "1.3.0",
|
|
@@ -11501,43 +11876,115 @@ var BITS = {
|
|
|
11501
11876
|
},
|
|
11502
11877
|
[BitType.smartStandardTableImageNormativeCollapsible]: {
|
|
11503
11878
|
since: "1.28.0",
|
|
11879
|
+
deprecated: "5.37.0",
|
|
11504
11880
|
baseBitType: BitType.smartStandardTableImageNormative,
|
|
11505
|
-
description: "Collapsible smart standard normative table image bit, used to create collapsible smart standard normative images in tables in articles or books"
|
|
11881
|
+
description: "Collapsible smart standard normative table image bit, used to create collapsible smart standard normative images in tables in articles or books",
|
|
11882
|
+
tags: [
|
|
11883
|
+
{
|
|
11884
|
+
key: ConfigKey.property_isCollapsible,
|
|
11885
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11886
|
+
format: TagFormat.boolean,
|
|
11887
|
+
defaultValue: "true"
|
|
11888
|
+
}
|
|
11889
|
+
]
|
|
11506
11890
|
},
|
|
11507
11891
|
[BitType.smartStandardTableImageNonNormativeCollapsible]: {
|
|
11508
11892
|
since: "1.28.0",
|
|
11893
|
+
deprecated: "5.37.0",
|
|
11509
11894
|
baseBitType: BitType.smartStandardTableImageNonNormative,
|
|
11510
|
-
description: "Collapsible smart standard non-normative table image bit, used to create collapsible smart standard non-normative images in tables in articles or books"
|
|
11895
|
+
description: "Collapsible smart standard non-normative table image bit, used to create collapsible smart standard non-normative images in tables in articles or books",
|
|
11896
|
+
tags: [
|
|
11897
|
+
{
|
|
11898
|
+
key: ConfigKey.property_isCollapsible,
|
|
11899
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11900
|
+
format: TagFormat.boolean,
|
|
11901
|
+
defaultValue: "true"
|
|
11902
|
+
}
|
|
11903
|
+
]
|
|
11511
11904
|
},
|
|
11512
11905
|
[BitType.smartStandardRemarkTableImageNormativeCollapsible]: {
|
|
11513
11906
|
since: "1.28.0",
|
|
11907
|
+
deprecated: "5.37.0",
|
|
11514
11908
|
baseBitType: BitType.smartStandardRemarkTableImageNormative,
|
|
11515
|
-
description: "Collapsible smart standard normative remark table image bit, used to create collapsible smart standard normative remark images in tables in articles or books"
|
|
11909
|
+
description: "Collapsible smart standard normative remark table image bit, used to create collapsible smart standard normative remark images in tables in articles or books",
|
|
11910
|
+
tags: [
|
|
11911
|
+
{
|
|
11912
|
+
key: ConfigKey.property_isCollapsible,
|
|
11913
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11914
|
+
format: TagFormat.boolean,
|
|
11915
|
+
defaultValue: "true"
|
|
11916
|
+
}
|
|
11917
|
+
]
|
|
11516
11918
|
},
|
|
11517
11919
|
[BitType.smartStandardRemarkTableImageNonNormativeCollapsible]: {
|
|
11518
11920
|
since: "1.28.0",
|
|
11921
|
+
deprecated: "5.37.0",
|
|
11519
11922
|
baseBitType: BitType.smartStandardRemarkTableImageNonNormative,
|
|
11520
|
-
description: "Collapsible smart standard non-normative remark table image bit, used to create collapsible smart standard non-normative remark images in tables in articles or books"
|
|
11923
|
+
description: "Collapsible smart standard non-normative remark table image bit, used to create collapsible smart standard non-normative remark images in tables in articles or books",
|
|
11924
|
+
tags: [
|
|
11925
|
+
{
|
|
11926
|
+
key: ConfigKey.property_isCollapsible,
|
|
11927
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11928
|
+
format: TagFormat.boolean,
|
|
11929
|
+
defaultValue: "true"
|
|
11930
|
+
}
|
|
11931
|
+
]
|
|
11521
11932
|
},
|
|
11522
11933
|
[BitType.smartStandardTableExtendedImageNormativeCollapsible]: {
|
|
11523
11934
|
since: "1.28.0",
|
|
11935
|
+
deprecated: "5.37.0",
|
|
11524
11936
|
baseBitType: BitType.smartStandardTableExtendedImageNormative,
|
|
11525
|
-
description: "Collapsible smart standard normative extended table image bit, used to create collapsible smart standard normative extended images in tables in articles or books"
|
|
11937
|
+
description: "Collapsible smart standard normative extended table image bit, used to create collapsible smart standard normative extended images in tables in articles or books",
|
|
11938
|
+
tags: [
|
|
11939
|
+
{
|
|
11940
|
+
key: ConfigKey.property_isCollapsible,
|
|
11941
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11942
|
+
format: TagFormat.boolean,
|
|
11943
|
+
defaultValue: "true"
|
|
11944
|
+
}
|
|
11945
|
+
]
|
|
11526
11946
|
},
|
|
11527
11947
|
[BitType.smartStandardTableExtendedImageNonNormativeCollapsible]: {
|
|
11528
11948
|
since: "1.28.0",
|
|
11949
|
+
deprecated: "5.37.0",
|
|
11529
11950
|
baseBitType: BitType.smartStandardTableExtendedImageNonNormative,
|
|
11530
|
-
description: "Collapsible smart standard non-normative extended table image bit, used to create collapsible smart standard non-normative extended images in tables in articles or books"
|
|
11951
|
+
description: "Collapsible smart standard non-normative extended table image bit, used to create collapsible smart standard non-normative extended images in tables in articles or books",
|
|
11952
|
+
tags: [
|
|
11953
|
+
{
|
|
11954
|
+
key: ConfigKey.property_isCollapsible,
|
|
11955
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11956
|
+
format: TagFormat.boolean,
|
|
11957
|
+
defaultValue: "true"
|
|
11958
|
+
}
|
|
11959
|
+
]
|
|
11531
11960
|
},
|
|
11532
11961
|
[BitType.smartStandardRemarkTableExtendedImageNormativeCollapsible]: {
|
|
11533
11962
|
since: "1.28.0",
|
|
11963
|
+
deprecated: "5.37.0",
|
|
11534
11964
|
baseBitType: BitType.smartStandardRemarkTableExtendedImageNormative,
|
|
11535
|
-
description: "Collapsible smart standard normative remark extended table image bit, used to create collapsible smart standard normative remark extended images in tables in articles or books"
|
|
11965
|
+
description: "Collapsible smart standard normative remark extended table image bit, used to create collapsible smart standard normative remark extended images in tables in articles or books",
|
|
11966
|
+
tags: [
|
|
11967
|
+
{
|
|
11968
|
+
key: ConfigKey.property_isCollapsible,
|
|
11969
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11970
|
+
format: TagFormat.boolean,
|
|
11971
|
+
defaultValue: "true"
|
|
11972
|
+
}
|
|
11973
|
+
]
|
|
11536
11974
|
},
|
|
11537
11975
|
[BitType.smartStandardRemarkTableExtendedImageNonNormativeCollapsible]: {
|
|
11538
11976
|
since: "1.28.0",
|
|
11977
|
+
deprecated: "5.37.0",
|
|
11539
11978
|
baseBitType: BitType.smartStandardRemarkTableExtendedImageNonNormative,
|
|
11540
|
-
description: "Collapsible smart standard non-normative remark extended table image bit, used to create collapsible smart standard non-normative remark extended images in tables in articles or books"
|
|
11979
|
+
description: "Collapsible smart standard non-normative remark extended table image bit, used to create collapsible smart standard non-normative remark extended images in tables in articles or books",
|
|
11980
|
+
tags: [
|
|
11981
|
+
{
|
|
11982
|
+
key: ConfigKey.property_isCollapsible,
|
|
11983
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
11984
|
+
format: TagFormat.boolean,
|
|
11985
|
+
defaultValue: "true"
|
|
11986
|
+
}
|
|
11987
|
+
]
|
|
11541
11988
|
},
|
|
11542
11989
|
[BitType.imageLink]: {
|
|
11543
11990
|
since: "1.3.0",
|
|
@@ -12018,8 +12465,17 @@ var BITS = {
|
|
|
12018
12465
|
},
|
|
12019
12466
|
[BitType.smartStandardListItemCollapsible]: {
|
|
12020
12467
|
since: "1.28.0",
|
|
12468
|
+
deprecated: "5.37.0",
|
|
12021
12469
|
baseBitType: BitType.smartStandardListItem,
|
|
12022
|
-
description: "Collapsible smart standard list item bit, used to create collapsible smart standard list items in articles or books"
|
|
12470
|
+
description: "Collapsible smart standard list item bit, used to create collapsible smart standard list items in articles or books",
|
|
12471
|
+
tags: [
|
|
12472
|
+
{
|
|
12473
|
+
key: ConfigKey.property_isCollapsible,
|
|
12474
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
12475
|
+
format: TagFormat.boolean,
|
|
12476
|
+
defaultValue: "true"
|
|
12477
|
+
}
|
|
12478
|
+
]
|
|
12023
12479
|
},
|
|
12024
12480
|
[BitType.mark]: {
|
|
12025
12481
|
since: "1.3.0",
|
|
@@ -12352,8 +12808,17 @@ var BITS = {
|
|
|
12352
12808
|
},
|
|
12353
12809
|
[BitType.pageCollapsible]: {
|
|
12354
12810
|
since: "1.30.0",
|
|
12811
|
+
deprecated: "5.37.0",
|
|
12355
12812
|
baseBitType: BitType.page,
|
|
12356
|
-
description: "Collapsible page bit, used to create collapsible sections in pages"
|
|
12813
|
+
description: "Collapsible page bit, used to create collapsible sections in pages",
|
|
12814
|
+
tags: [
|
|
12815
|
+
{
|
|
12816
|
+
key: ConfigKey.property_isCollapsible,
|
|
12817
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
12818
|
+
format: TagFormat.boolean,
|
|
12819
|
+
defaultValue: "true"
|
|
12820
|
+
}
|
|
12821
|
+
]
|
|
12357
12822
|
},
|
|
12358
12823
|
[BitType.pageCoverImage]: {
|
|
12359
12824
|
since: "1.22.0",
|
|
@@ -13328,43 +13793,115 @@ var BITS = {
|
|
|
13328
13793
|
},
|
|
13329
13794
|
[BitType.smartStandardTableNormativeCollapsible]: {
|
|
13330
13795
|
since: "1.28.0",
|
|
13796
|
+
deprecated: "5.37.0",
|
|
13331
13797
|
baseBitType: BitType.smartStandardTableNormative,
|
|
13332
|
-
description: "Collapsible smart standard normative table bit, used to create collapsible smart standard normative tables in articles or books"
|
|
13798
|
+
description: "Collapsible smart standard normative table bit, used to create collapsible smart standard normative tables in articles or books",
|
|
13799
|
+
tags: [
|
|
13800
|
+
{
|
|
13801
|
+
key: ConfigKey.property_isCollapsible,
|
|
13802
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13803
|
+
format: TagFormat.boolean,
|
|
13804
|
+
defaultValue: "true"
|
|
13805
|
+
}
|
|
13806
|
+
]
|
|
13333
13807
|
},
|
|
13334
13808
|
[BitType.smartStandardTableNonNormativeCollapsible]: {
|
|
13335
13809
|
since: "1.28.0",
|
|
13810
|
+
deprecated: "5.37.0",
|
|
13336
13811
|
baseBitType: BitType.smartStandardTableNonNormative,
|
|
13337
|
-
description: "Collapsible smart standard non-normative table bit, used to create collapsible smart standard non-normative tables in articles or books"
|
|
13812
|
+
description: "Collapsible smart standard non-normative table bit, used to create collapsible smart standard non-normative tables in articles or books",
|
|
13813
|
+
tags: [
|
|
13814
|
+
{
|
|
13815
|
+
key: ConfigKey.property_isCollapsible,
|
|
13816
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13817
|
+
format: TagFormat.boolean,
|
|
13818
|
+
defaultValue: "true"
|
|
13819
|
+
}
|
|
13820
|
+
]
|
|
13338
13821
|
},
|
|
13339
13822
|
[BitType.smartStandardRemarkTableNormativeCollapsible]: {
|
|
13340
13823
|
since: "1.28.0",
|
|
13824
|
+
deprecated: "5.37.0",
|
|
13341
13825
|
baseBitType: BitType.smartStandardRemarkTableNormative,
|
|
13342
|
-
description: "Collapsible smart standard normative remark table bit, used to create collapsible smart standard normative remark tables in articles or books"
|
|
13826
|
+
description: "Collapsible smart standard normative remark table bit, used to create collapsible smart standard normative remark tables in articles or books",
|
|
13827
|
+
tags: [
|
|
13828
|
+
{
|
|
13829
|
+
key: ConfigKey.property_isCollapsible,
|
|
13830
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13831
|
+
format: TagFormat.boolean,
|
|
13832
|
+
defaultValue: "true"
|
|
13833
|
+
}
|
|
13834
|
+
]
|
|
13343
13835
|
},
|
|
13344
13836
|
[BitType.smartStandardRemarkTableNonNormativeCollapsible]: {
|
|
13345
13837
|
since: "1.28.0",
|
|
13838
|
+
deprecated: "5.37.0",
|
|
13346
13839
|
baseBitType: BitType.smartStandardRemarkTableNonNormative,
|
|
13347
|
-
description: "Collapsible smart standard non-normative remark table bit, used to create collapsible smart standard non-normative remark tables in articles or books"
|
|
13840
|
+
description: "Collapsible smart standard non-normative remark table bit, used to create collapsible smart standard non-normative remark tables in articles or books",
|
|
13841
|
+
tags: [
|
|
13842
|
+
{
|
|
13843
|
+
key: ConfigKey.property_isCollapsible,
|
|
13844
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13845
|
+
format: TagFormat.boolean,
|
|
13846
|
+
defaultValue: "true"
|
|
13847
|
+
}
|
|
13848
|
+
]
|
|
13348
13849
|
},
|
|
13349
13850
|
[BitType.smartStandardTableExtendedNormativeCollapsible]: {
|
|
13350
13851
|
since: "1.28.0",
|
|
13852
|
+
deprecated: "5.37.0",
|
|
13351
13853
|
baseBitType: BitType.smartStandardTableExtendedNormative,
|
|
13352
|
-
description: "Collapsible smart standard normative extended table bit, used to create collapsible smart standard normative extended tables in articles or books"
|
|
13854
|
+
description: "Collapsible smart standard normative extended table bit, used to create collapsible smart standard normative extended tables in articles or books",
|
|
13855
|
+
tags: [
|
|
13856
|
+
{
|
|
13857
|
+
key: ConfigKey.property_isCollapsible,
|
|
13858
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13859
|
+
format: TagFormat.boolean,
|
|
13860
|
+
defaultValue: "true"
|
|
13861
|
+
}
|
|
13862
|
+
]
|
|
13353
13863
|
},
|
|
13354
13864
|
[BitType.smartStandardTableExtendedNonNormativeCollapsible]: {
|
|
13355
13865
|
since: "1.28.0",
|
|
13866
|
+
deprecated: "5.37.0",
|
|
13356
13867
|
baseBitType: BitType.smartStandardTableExtendedNonNormative,
|
|
13357
|
-
description: "Collapsible smart standard non-normative extended table bit, used to create collapsible smart standard non-normative extended tables in articles or books"
|
|
13868
|
+
description: "Collapsible smart standard non-normative extended table bit, used to create collapsible smart standard non-normative extended tables in articles or books",
|
|
13869
|
+
tags: [
|
|
13870
|
+
{
|
|
13871
|
+
key: ConfigKey.property_isCollapsible,
|
|
13872
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13873
|
+
format: TagFormat.boolean,
|
|
13874
|
+
defaultValue: "true"
|
|
13875
|
+
}
|
|
13876
|
+
]
|
|
13358
13877
|
},
|
|
13359
13878
|
[BitType.smartStandardRemarkTableExtendedNormativeCollapsible]: {
|
|
13360
13879
|
since: "1.28.0",
|
|
13880
|
+
deprecated: "5.37.0",
|
|
13361
13881
|
baseBitType: BitType.smartStandardRemarkTableExtendedNormative,
|
|
13362
|
-
description: "Collapsible smart standard normative remark extended table bit, used to create collapsible smart standard normative remark extended tables in articles or books"
|
|
13882
|
+
description: "Collapsible smart standard normative remark extended table bit, used to create collapsible smart standard normative remark extended tables in articles or books",
|
|
13883
|
+
tags: [
|
|
13884
|
+
{
|
|
13885
|
+
key: ConfigKey.property_isCollapsible,
|
|
13886
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13887
|
+
format: TagFormat.boolean,
|
|
13888
|
+
defaultValue: "true"
|
|
13889
|
+
}
|
|
13890
|
+
]
|
|
13363
13891
|
},
|
|
13364
13892
|
[BitType.smartStandardRemarkTableExtendedNonNormativeCollapsible]: {
|
|
13365
13893
|
since: "1.28.0",
|
|
13894
|
+
deprecated: "5.37.0",
|
|
13366
13895
|
baseBitType: BitType.smartStandardRemarkTableExtendedNonNormative,
|
|
13367
|
-
description: "Collapsible smart standard non-normative remark extended table bit, used to create collapsible smart standard non-normative remark extended tables in articles or books"
|
|
13896
|
+
description: "Collapsible smart standard non-normative remark extended table bit, used to create collapsible smart standard non-normative remark extended tables in articles or books",
|
|
13897
|
+
tags: [
|
|
13898
|
+
{
|
|
13899
|
+
key: ConfigKey.property_isCollapsible,
|
|
13900
|
+
description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
|
|
13901
|
+
format: TagFormat.boolean,
|
|
13902
|
+
defaultValue: "true"
|
|
13903
|
+
}
|
|
13904
|
+
]
|
|
13368
13905
|
},
|
|
13369
13906
|
[BitType.parameters]: {
|
|
13370
13907
|
since: "1.18.0",
|
|
@@ -14076,11 +14613,13 @@ var BITS = {
|
|
|
14076
14613
|
};
|
|
14077
14614
|
|
|
14078
14615
|
// src/config/Config.ts
|
|
14616
|
+
var COLLAPSIBLE_BIT_TYPE_SUFFIX = "-collapsible";
|
|
14079
14617
|
var Config = class {
|
|
14080
14618
|
constructor() {
|
|
14081
14619
|
__publicField(this, "bitLevelMin", 1);
|
|
14082
14620
|
__publicField(this, "bitLevelMax", 7);
|
|
14083
14621
|
__publicField(this, "bitCache", /* @__PURE__ */ new Map());
|
|
14622
|
+
__publicField(this, "migratedBitCache", /* @__PURE__ */ new Map());
|
|
14084
14623
|
__publicField(this, "allResourcesCache");
|
|
14085
14624
|
__publicField(this, "comboResourcesCache", /* @__PURE__ */ new Map());
|
|
14086
14625
|
}
|
|
@@ -14096,6 +14635,29 @@ var Config = class {
|
|
|
14096
14635
|
if (bitType?.startsWith("|")) bitType = bitType.substring(1);
|
|
14097
14636
|
return (0, import_superenum16.Enum)(BitType).fromValue(bitType) ?? BitType._error;
|
|
14098
14637
|
}
|
|
14638
|
+
/**
|
|
14639
|
+
* PLAN-017: Return the migration target for a deprecated `*-collapsible` bit type.
|
|
14640
|
+
*
|
|
14641
|
+
* Every `*-collapsible` bit type declares its non-collapsible cousin as its `baseBitType`, so the
|
|
14642
|
+
* target is read from the config rather than a hand-maintained table — a new `*-collapsible` bit
|
|
14643
|
+
* type is covered automatically.
|
|
14644
|
+
*
|
|
14645
|
+
* `BitType.collapsible` is the one exclusion: it has no non-collapsible cousin (its `baseBitType`
|
|
14646
|
+
* is `article`, which is not a migration target).
|
|
14647
|
+
*
|
|
14648
|
+
* @param bitType the bit type
|
|
14649
|
+
* @returns the bit type to migrate to, or undefined if the bit type does not migrate
|
|
14650
|
+
*/
|
|
14651
|
+
getMigratedBitType(bitType) {
|
|
14652
|
+
const cached = this.migratedBitCache.get(bitType);
|
|
14653
|
+
if (cached !== void 0 || this.migratedBitCache.has(bitType)) return cached;
|
|
14654
|
+
let target;
|
|
14655
|
+
if (bitType !== BitType.collapsible && bitType.endsWith(COLLAPSIBLE_BIT_TYPE_SUFFIX)) {
|
|
14656
|
+
target = BITS[bitType]?.baseBitType;
|
|
14657
|
+
}
|
|
14658
|
+
this.migratedBitCache.set(bitType, target);
|
|
14659
|
+
return target;
|
|
14660
|
+
}
|
|
14099
14661
|
/**
|
|
14100
14662
|
* Check if a bit type is and instance of the given root bit type.
|
|
14101
14663
|
*
|
|
@@ -14418,7 +14980,7 @@ var instance2 = new Config();
|
|
|
14418
14980
|
// src/generated/package_info.ts
|
|
14419
14981
|
var PACKAGE_INFO = {
|
|
14420
14982
|
"name": "@gmb/bitmark-parser-generator",
|
|
14421
|
-
"version": "5.
|
|
14983
|
+
"version": "5.38.0",
|
|
14422
14984
|
"author": "Get More Brain Ltd",
|
|
14423
14985
|
"license": "ISC",
|
|
14424
14986
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -14772,6 +15334,10 @@ var NodeType = {
|
|
|
14772
15334
|
// unknown
|
|
14773
15335
|
__isDefaultExample: "__isDefaultExample",
|
|
14774
15336
|
__typeAlias: "__typeAlias",
|
|
15337
|
+
accessibilityGroupTag: "accessibilityGroupTag",
|
|
15338
|
+
accessibilityGroupTagValue: "accessibilityGroupTagValue",
|
|
15339
|
+
accessibilityTag: "accessibilityTag",
|
|
15340
|
+
accessibilityTagValue: "accessibilityTagValue",
|
|
14775
15341
|
action: "action",
|
|
14776
15342
|
actionValue: "actionValue",
|
|
14777
15343
|
activityType: "activityType",
|
|
@@ -15477,6 +16043,8 @@ var NodeType = {
|
|
|
15477
16043
|
type: "type",
|
|
15478
16044
|
unit: "unit",
|
|
15479
16045
|
unitAbbr: "unitAbbr",
|
|
16046
|
+
unitAbbrPlural: "unitAbbrPlural",
|
|
16047
|
+
unitPlural: "unitPlural",
|
|
15480
16048
|
url: "url",
|
|
15481
16049
|
validationDate: "validationDate",
|
|
15482
16050
|
validationDateValue: "validationDateValue",
|
|
@@ -27094,6 +27662,12 @@ var BaseBuilder = class {
|
|
|
27094
27662
|
case TagFormat.plainText:
|
|
27095
27663
|
if (instance6.asNumber(v) != null) v = `${v}`;
|
|
27096
27664
|
return stringUtils.isString(v) ? stringUtils.trimmedString(v) : void 0;
|
|
27665
|
+
case TagFormat.enumeration: {
|
|
27666
|
+
if (instance6.asNumber(v) != null) v = `${v}`;
|
|
27667
|
+
const enumValue = stringUtils.isString(v) ? stringUtils.trimmedString(v) : void 0;
|
|
27668
|
+
if (enumValue == null || enumValue === "") return propertyConfig?.defaultValue ?? "";
|
|
27669
|
+
return enumValue;
|
|
27670
|
+
}
|
|
27097
27671
|
case TagFormat.number:
|
|
27098
27672
|
return instance6.asNumber(v);
|
|
27099
27673
|
case TagFormat.boolean:
|
|
@@ -28652,8 +29226,18 @@ var Builder = class extends BaseBuilder {
|
|
|
28652
29226
|
*/
|
|
28653
29227
|
buildBit(data, options) {
|
|
28654
29228
|
data = structuredClone(data);
|
|
29229
|
+
const migratedBitType = instance2.getMigratedBitType(data.bitType);
|
|
29230
|
+
if (migratedBitType) {
|
|
29231
|
+
data.bitType = migratedBitType;
|
|
29232
|
+
data.isCollapsible = data.isCollapsible ?? true;
|
|
29233
|
+
}
|
|
28655
29234
|
const bitType = data.bitType;
|
|
28656
29235
|
const bitConfig = instance2.getBitConfig(bitType);
|
|
29236
|
+
const isCollapsibleDefaultsTrue = bitConfig.tags[ConfigKey.property_isCollapsible]?.defaultValue === "true";
|
|
29237
|
+
const accessibilityGroupTag = this.resolveAccessibilityGroupTag(
|
|
29238
|
+
bitConfig,
|
|
29239
|
+
data.accessibilityGroupTag
|
|
29240
|
+
);
|
|
28657
29241
|
const deprecatedTextFormat = (0, import_superenum30.Enum)(DeprecatedTextFormat).fromValue(data.textFormat);
|
|
28658
29242
|
let textFormat = (0, import_superenum30.Enum)(TextFormat).fromValue(data.textFormat) ?? bitConfig.textFormatDefault;
|
|
28659
29243
|
if (deprecatedTextFormat === DeprecatedTextFormat.bitmarkMinusMinus) {
|
|
@@ -28889,6 +29473,13 @@ var Builder = class extends BaseBuilder {
|
|
|
28889
29473
|
slug: this.toAstProperty(bitType, ConfigKey.property_slug, data.slug, options),
|
|
28890
29474
|
tag: this.toAstProperty(bitType, ConfigKey.property_tag, data.tag, options),
|
|
28891
29475
|
groupTag: this.buildGroupTags(context, data.groupTag),
|
|
29476
|
+
accessibilityTag: this.toAstProperty(
|
|
29477
|
+
bitType,
|
|
29478
|
+
ConfigKey.property_accessibilityTag,
|
|
29479
|
+
data.accessibilityTag,
|
|
29480
|
+
options
|
|
29481
|
+
),
|
|
29482
|
+
accessibilityGroupTag: this.buildGroupTags(context, accessibilityGroupTag),
|
|
28892
29483
|
reviewTag: this.toAstProperty(bitType, ConfigKey.property_reviewTag, data.reviewTag, options),
|
|
28893
29484
|
reviewerTag: this.toAstProperty(
|
|
28894
29485
|
bitType,
|
|
@@ -29786,7 +30377,7 @@ var Builder = class extends BaseBuilder {
|
|
|
29786
30377
|
isCollapsible: this.toAstProperty(
|
|
29787
30378
|
bitType,
|
|
29788
30379
|
ConfigKey.property_isCollapsible,
|
|
29789
|
-
data.isCollapsible,
|
|
30380
|
+
data.isCollapsible ?? (isCollapsibleDefaultsTrue ? true : void 0),
|
|
29790
30381
|
options
|
|
29791
30382
|
),
|
|
29792
30383
|
anchor: data.anchor,
|
|
@@ -29941,6 +30532,26 @@ var Builder = class extends BaseBuilder {
|
|
|
29941
30532
|
});
|
|
29942
30533
|
return node;
|
|
29943
30534
|
}
|
|
30535
|
+
/**
|
|
30536
|
+
* Resolve the accessibilityGroupTag data, materialising the bit type's default when absent.
|
|
30537
|
+
*
|
|
30538
|
+
* PLAN-019: `group_accessibilityDecorative` re-declares `@accessibilityGroupTag` with a
|
|
30539
|
+
* `defaultValue`, and its chained `@accessibilityTag` likewise. When the bit carries no
|
|
30540
|
+
* authored value, synthesize the default group so it reaches both generators. An authored
|
|
30541
|
+
* value always wins.
|
|
30542
|
+
*
|
|
30543
|
+
* @param bitConfig - the resolved config for the bit
|
|
30544
|
+
* @param data - authored data for the node, if any
|
|
30545
|
+
* @returns
|
|
30546
|
+
*/
|
|
30547
|
+
resolveAccessibilityGroupTag(bitConfig, data) {
|
|
30548
|
+
if (data != null && (!Array.isArray(data) || data.length > 0)) return data;
|
|
30549
|
+
const groupConfig = bitConfig.tags[ConfigKey.property_accessibilityGroupTag];
|
|
30550
|
+
const name = groupConfig?.defaultValue;
|
|
30551
|
+
if (name == null) return data;
|
|
30552
|
+
const tag = groupConfig?.chain?.[ConfigKey.property_accessibilityTag]?.defaultValue;
|
|
30553
|
+
return [{ name, tags: tag != null ? [tag] : [] }];
|
|
30554
|
+
}
|
|
29944
30555
|
/**
|
|
29945
30556
|
* Build groupTag[] node
|
|
29946
30557
|
*
|
|
@@ -30555,7 +31166,9 @@ var Builder = class extends BaseBuilder {
|
|
|
30555
31166
|
ingredient: this.handleJsonText(context, TextLocation.tag, data.ingredient),
|
|
30556
31167
|
quantity: data.quantity ?? 0,
|
|
30557
31168
|
unit: data.unit ?? "",
|
|
31169
|
+
unitPlural: data.unitPlural ?? "",
|
|
30558
31170
|
unitAbbr: data.unitAbbr ?? "",
|
|
31171
|
+
unitAbbrPlural: data.unitAbbrPlural ?? "",
|
|
30559
31172
|
decimalPlaces: data.decimalPlaces ?? 1,
|
|
30560
31173
|
disableCalculation: data.disableCalculation ?? false,
|
|
30561
31174
|
item: this.handleJsonText(context, TextLocation.tag, data.item),
|
|
@@ -31152,11 +31765,22 @@ var Builder = class extends BaseBuilder {
|
|
|
31152
31765
|
*/
|
|
31153
31766
|
buildServings(_context, data) {
|
|
31154
31767
|
if (!data) return void 0;
|
|
31155
|
-
const {
|
|
31768
|
+
const {
|
|
31769
|
+
servings,
|
|
31770
|
+
unit,
|
|
31771
|
+
unitPlural,
|
|
31772
|
+
unitAbbr,
|
|
31773
|
+
unitAbbrPlural,
|
|
31774
|
+
decimalPlaces,
|
|
31775
|
+
disableCalculation,
|
|
31776
|
+
hint
|
|
31777
|
+
} = data;
|
|
31156
31778
|
const node = {
|
|
31157
31779
|
servings: servings ?? 0,
|
|
31158
31780
|
unit: unit ?? "",
|
|
31781
|
+
unitPlural: unitPlural ?? "",
|
|
31159
31782
|
unitAbbr: unitAbbr ?? "",
|
|
31783
|
+
unitAbbrPlural: unitAbbrPlural ?? "",
|
|
31160
31784
|
decimalPlaces: decimalPlaces ?? 1,
|
|
31161
31785
|
disableCalculation: disableCalculation ?? false,
|
|
31162
31786
|
hint: hint ?? ""
|
|
@@ -32010,6 +32634,29 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
32010
32634
|
}
|
|
32011
32635
|
return false;
|
|
32012
32636
|
}
|
|
32637
|
+
// bitmarkAst -> bits -> bitsValue -> accessibilityGroupTag
|
|
32638
|
+
enter_accessibilityGroupTag(node, route) {
|
|
32639
|
+
const accessibilityGroupTag = node.value;
|
|
32640
|
+
const parent = this.getParentNode(route);
|
|
32641
|
+
if (parent?.key !== NodeType.bitsValue) return true;
|
|
32642
|
+
for (const gt of accessibilityGroupTag) {
|
|
32643
|
+
const { name, tags: tags2 } = gt;
|
|
32644
|
+
this.writeProperty("accessibilityGroupTag", name, route, {
|
|
32645
|
+
format: TagFormat.plainText,
|
|
32646
|
+
writeEmpty: true
|
|
32647
|
+
});
|
|
32648
|
+
if (tags2 && tags2.length > 0) {
|
|
32649
|
+
for (const t of tags2) {
|
|
32650
|
+
this.writeProperty("accessibilityTag", t, route, {
|
|
32651
|
+
format: TagFormat.plainText,
|
|
32652
|
+
writeEmpty: true,
|
|
32653
|
+
forceChain: true
|
|
32654
|
+
});
|
|
32655
|
+
}
|
|
32656
|
+
}
|
|
32657
|
+
}
|
|
32658
|
+
return false;
|
|
32659
|
+
}
|
|
32013
32660
|
// bitmarkAst -> bits -> bitsValue -> labelTrue / labelFalse
|
|
32014
32661
|
leaf_labelTrue(node, route) {
|
|
32015
32662
|
const value = node.value;
|
|
@@ -32093,7 +32740,16 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
32093
32740
|
const nodeValue = node.value;
|
|
32094
32741
|
const parent = this.getParentNode(route);
|
|
32095
32742
|
if (parent?.key !== NodeType.bitsValue) return true;
|
|
32096
|
-
const {
|
|
32743
|
+
const {
|
|
32744
|
+
servings,
|
|
32745
|
+
unit,
|
|
32746
|
+
unitPlural,
|
|
32747
|
+
unitAbbr,
|
|
32748
|
+
unitAbbrPlural,
|
|
32749
|
+
decimalPlaces,
|
|
32750
|
+
disableCalculation,
|
|
32751
|
+
hint
|
|
32752
|
+
} = nodeValue;
|
|
32097
32753
|
this.writeProperty("servings", servings, route, {
|
|
32098
32754
|
format: TagFormat.plainText
|
|
32099
32755
|
});
|
|
@@ -32103,12 +32759,24 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
32103
32759
|
forceChain: true
|
|
32104
32760
|
});
|
|
32105
32761
|
}
|
|
32762
|
+
if (unitPlural != null) {
|
|
32763
|
+
this.writeProperty("unitPlural", unitPlural, route, {
|
|
32764
|
+
format: TagFormat.plainText,
|
|
32765
|
+
forceChain: true
|
|
32766
|
+
});
|
|
32767
|
+
}
|
|
32106
32768
|
if (unitAbbr != null) {
|
|
32107
32769
|
this.writeProperty("unitAbbr", unitAbbr, route, {
|
|
32108
32770
|
format: TagFormat.plainText,
|
|
32109
32771
|
forceChain: true
|
|
32110
32772
|
});
|
|
32111
32773
|
}
|
|
32774
|
+
if (unitAbbrPlural != null) {
|
|
32775
|
+
this.writeProperty("unitAbbrPlural", unitAbbrPlural, route, {
|
|
32776
|
+
format: TagFormat.plainText,
|
|
32777
|
+
forceChain: true
|
|
32778
|
+
});
|
|
32779
|
+
}
|
|
32112
32780
|
if (decimalPlaces != null) {
|
|
32113
32781
|
this.writeProperty("decimalPlaces", decimalPlaces, route, {
|
|
32114
32782
|
format: TagFormat.plainText,
|
|
@@ -32955,10 +33623,18 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
32955
33623
|
this.writeProperty("unit", ingredient.unit, route, {
|
|
32956
33624
|
format: TagFormat.plainText
|
|
32957
33625
|
});
|
|
33626
|
+
if (ingredient.unitPlural != null)
|
|
33627
|
+
this.writeProperty("unitPlural", ingredient.unitPlural, route, {
|
|
33628
|
+
format: TagFormat.plainText
|
|
33629
|
+
});
|
|
32958
33630
|
if (ingredient.unitAbbr != null)
|
|
32959
33631
|
this.writeProperty("unitAbbr", ingredient.unitAbbr, route, {
|
|
32960
33632
|
format: TagFormat.plainText
|
|
32961
33633
|
});
|
|
33634
|
+
if (ingredient.unitAbbrPlural != null)
|
|
33635
|
+
this.writeProperty("unitAbbrPlural", ingredient.unitAbbrPlural, route, {
|
|
33636
|
+
format: TagFormat.plainText
|
|
33637
|
+
});
|
|
32962
33638
|
if (ingredient.decimalPlaces != null)
|
|
32963
33639
|
this.writeProperty("decimalPlaces", ingredient.decimalPlaces, route, {
|
|
32964
33640
|
format: TagFormat.plainText
|
|
@@ -34737,6 +35413,29 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
34737
35413
|
}
|
|
34738
35414
|
return false;
|
|
34739
35415
|
}
|
|
35416
|
+
// bitmarkAst -> bits -> bitsValue -> isCollapsible
|
|
35417
|
+
/**
|
|
35418
|
+
* `isCollapsible` is emitted only when explicitly set on the bit — an explicit
|
|
35419
|
+
* `true`/`false` in the source is emitted as-is, and an absent tag yields no
|
|
35420
|
+
* JSON key (the tag is nullable in the config: no default, unset when absent).
|
|
35421
|
+
*
|
|
35422
|
+
* Two exceptions always carry a value: chapter bits default to `false`
|
|
35423
|
+
* (`defaultValue: 'false'` in the bit config, applied in `cleanBitJson()`),
|
|
35424
|
+
* and the deprecated `*-collapsible` bit types default to `true` (materialised
|
|
35425
|
+
* into the AST by the Builder).
|
|
35426
|
+
*
|
|
35427
|
+
* Defining these handlers suppresses the generic property handlers that
|
|
35428
|
+
* `generatePropertyHandlers()` would otherwise install for this tag.
|
|
35429
|
+
*/
|
|
35430
|
+
leaf_isCollapsible(node, route) {
|
|
35431
|
+
const parent = this.getParentNode(route);
|
|
35432
|
+
if (parent?.key !== NodeType.bitsValue) return false;
|
|
35433
|
+
if (node.value != null) this.bitJson.isCollapsible = node.value === true;
|
|
35434
|
+
return false;
|
|
35435
|
+
}
|
|
35436
|
+
enter_isCollapsible(node, route) {
|
|
35437
|
+
return this.leaf_isCollapsible(node, route);
|
|
35438
|
+
}
|
|
34740
35439
|
// bitmarkAst -> bits -> bitsValue -> markConfig
|
|
34741
35440
|
enter_markConfig(_node, _route) {
|
|
34742
35441
|
return true;
|
|
@@ -38589,7 +39288,9 @@ function parseIngredients(_context, _bitType, cardSet) {
|
|
|
38589
39288
|
title: titleArray,
|
|
38590
39289
|
__instructionString,
|
|
38591
39290
|
unit,
|
|
39291
|
+
unitPlural,
|
|
38592
39292
|
unitAbbr,
|
|
39293
|
+
unitAbbrPlural,
|
|
38593
39294
|
decimalPlaces,
|
|
38594
39295
|
disableCalculation,
|
|
38595
39296
|
cardBodyStr,
|
|
@@ -38619,7 +39320,9 @@ function parseIngredients(_context, _bitType, cardSet) {
|
|
|
38619
39320
|
ingredient: cardBodyStr,
|
|
38620
39321
|
quantity,
|
|
38621
39322
|
unit: unit ?? instance3.EMPTY_STRING,
|
|
39323
|
+
unitPlural,
|
|
38622
39324
|
unitAbbr: unitAbbr ?? instance3.EMPTY_STRING,
|
|
39325
|
+
unitAbbrPlural,
|
|
38623
39326
|
decimalPlaces: decimalPlaces ?? 1,
|
|
38624
39327
|
disableCalculation,
|
|
38625
39328
|
...tags2
|
|
@@ -39121,19 +39824,25 @@ function handleStandardStringExample(context, _content, example, target) {
|
|
|
39121
39824
|
}
|
|
39122
39825
|
|
|
39123
39826
|
// src/parser/bitmark/peg/contentProcessors/GroupTagChainContentProcessor.ts
|
|
39124
|
-
|
|
39827
|
+
var GROUP_TAG = { groupKey: "groupTag", memberKey: "tag" };
|
|
39828
|
+
var ACCESSIBILITY_GROUP_TAG = {
|
|
39829
|
+
groupKey: "accessibilityGroupTag",
|
|
39830
|
+
memberKey: "accessibilityTag"
|
|
39831
|
+
};
|
|
39832
|
+
function groupTagChainContentProcessor(context, _contentDepth, tagsConfig, content, target, keys = GROUP_TAG) {
|
|
39125
39833
|
const { value } = content;
|
|
39126
|
-
|
|
39834
|
+
const { groupKey, memberKey } = keys;
|
|
39835
|
+
if (context.DEBUG_CHAIN_CONTENT) context.debugPrint(`${groupKey} content`, content);
|
|
39127
39836
|
const tags2 = context.bitContentProcessor(ContentDepth.Chain, tagsConfig, content.chain);
|
|
39128
|
-
if (context.DEBUG_CHAIN_TAGS) context.debugPrint(
|
|
39129
|
-
const
|
|
39837
|
+
if (context.DEBUG_CHAIN_TAGS) context.debugPrint(`${groupKey} TAGS`, tags2);
|
|
39838
|
+
const memberTags = tags2[memberKey];
|
|
39130
39839
|
const name = stringUtils.trimmedString(value) ?? "";
|
|
39131
39840
|
const node = {
|
|
39132
39841
|
name,
|
|
39133
|
-
tags:
|
|
39842
|
+
tags: memberTags ?? []
|
|
39134
39843
|
};
|
|
39135
|
-
if (!Array.isArray(target
|
|
39136
|
-
target.
|
|
39844
|
+
if (!Array.isArray(target[groupKey])) target[groupKey] = [];
|
|
39845
|
+
target[groupKey].push(node);
|
|
39137
39846
|
}
|
|
39138
39847
|
|
|
39139
39848
|
// src/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.ts
|
|
@@ -39290,12 +39999,22 @@ function servingsChainContentProcessor(context, _contentDepth, tagsConfig, conte
|
|
|
39290
39999
|
if (context.DEBUG_CHAIN_CONTENT) context.debugPrint("servings content", content);
|
|
39291
40000
|
const tags2 = context.bitContentProcessor(ContentDepth.Chain, tagsConfig, content.chain);
|
|
39292
40001
|
if (context.DEBUG_CHAIN_TAGS) context.debugPrint("servings TAGS", tags2);
|
|
39293
|
-
const {
|
|
40002
|
+
const {
|
|
40003
|
+
unit,
|
|
40004
|
+
unitPlural,
|
|
40005
|
+
unitAbbr,
|
|
40006
|
+
unitAbbrPlural,
|
|
40007
|
+
decimalPlaces,
|
|
40008
|
+
disableCalculation,
|
|
40009
|
+
__hintString
|
|
40010
|
+
} = tags2;
|
|
39294
40011
|
const servings = instance6.asNumber(content.value) ?? 1;
|
|
39295
40012
|
const node = {
|
|
39296
40013
|
servings,
|
|
39297
40014
|
unit,
|
|
40015
|
+
unitPlural,
|
|
39298
40016
|
unitAbbr,
|
|
40017
|
+
unitAbbrPlural,
|
|
39299
40018
|
decimalPlaces: decimalPlaces ?? 1,
|
|
39300
40019
|
disableCalculation,
|
|
39301
40020
|
hint: __hintString
|
|
@@ -39343,6 +40062,16 @@ function propertyContentProcessor(context, contentDepth, tagsConfig, content, ta
|
|
|
39343
40062
|
} else if (configKey === ConfigKey.property_groupTag) {
|
|
39344
40063
|
groupTagChainContentProcessor(context, contentDepth, propertyConfig.chain, content, target);
|
|
39345
40064
|
return;
|
|
40065
|
+
} else if (configKey === ConfigKey.property_accessibilityGroupTag) {
|
|
40066
|
+
groupTagChainContentProcessor(
|
|
40067
|
+
context,
|
|
40068
|
+
contentDepth,
|
|
40069
|
+
propertyConfig.chain,
|
|
40070
|
+
content,
|
|
40071
|
+
target,
|
|
40072
|
+
ACCESSIBILITY_GROUP_TAG
|
|
40073
|
+
);
|
|
40074
|
+
return;
|
|
39346
40075
|
} else if (configKey === ConfigKey.property_ratingLevelStart || configKey === ConfigKey.property_ratingLevelEnd) {
|
|
39347
40076
|
ratingLevelChainContentProcessor(
|
|
39348
40077
|
context,
|
|
@@ -39395,6 +40124,23 @@ function propertyContentProcessor(context, contentDepth, tagsConfig, content, ta
|
|
|
39395
40124
|
location: TextLocation.tag
|
|
39396
40125
|
}
|
|
39397
40126
|
);
|
|
40127
|
+
case TagFormat.enumeration: {
|
|
40128
|
+
const enumValue = instance3.unbreakscape(
|
|
40129
|
+
stringUtils.isString(v2) ? stringUtils.trimmedString(v2) : void 0,
|
|
40130
|
+
{
|
|
40131
|
+
format: TextFormat.plainText,
|
|
40132
|
+
location: TextLocation.tag
|
|
40133
|
+
}
|
|
40134
|
+
);
|
|
40135
|
+
if (enumValue == null || enumValue === "") return c.defaultValue ?? "";
|
|
40136
|
+
if (c.values && !c.values.includes(enumValue)) {
|
|
40137
|
+
context.addWarning(
|
|
40138
|
+
`Invalid value '${enumValue}' for property [@${tag}]. Valid values: ${c.values.join(" | ")}`,
|
|
40139
|
+
content
|
|
40140
|
+
);
|
|
40141
|
+
}
|
|
40142
|
+
return enumValue;
|
|
40143
|
+
}
|
|
39398
40144
|
case TagFormat.number:
|
|
39399
40145
|
return instance6.asNumber(
|
|
39400
40146
|
instance3.unbreakscape(v2, {
|
|
@@ -45121,6 +45867,8 @@ var ConfigBuilder = class {
|
|
|
45121
45867
|
format = "number";
|
|
45122
45868
|
} else if (tag.format === TagFormat.coordinates) {
|
|
45123
45869
|
format = "coordinates";
|
|
45870
|
+
} else if (tag.format === TagFormat.enumeration) {
|
|
45871
|
+
format = "enum";
|
|
45124
45872
|
}
|
|
45125
45873
|
} else if (tagType === BitTagConfigKeyType.resource) {
|
|
45126
45874
|
format = "string";
|
|
@@ -45185,6 +45933,7 @@ var ConfigBuilder = class {
|
|
|
45185
45933
|
{ value: tag.htmlKey, present: hasHtml }
|
|
45186
45934
|
),
|
|
45187
45935
|
...format && format !== "string" ? { format } : {},
|
|
45936
|
+
...tag.values != null ? { values: tag.values } : {},
|
|
45188
45937
|
...tag.defaultValue != null ? { default: tag.defaultValue } : {},
|
|
45189
45938
|
...tag.nullable ? { nullable: true } : {},
|
|
45190
45939
|
...tag.minCount != null && tag.minCount !== 0 ? { min: tag.minCount } : {},
|