@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.
@@ -1212,6 +1212,7 @@ import { Enum } from "@ncoderz/superenum";
1212
1212
  // src/model/enum/GroupKey.ts
1213
1213
  import "@ncoderz/superenum";
1214
1214
  var groupKeys = {
1215
+ group_accessibilityDecorative: "group_accessibilityDecorative",
1215
1216
  group_standardAllBits: "group_standardAllBits",
1216
1217
  group_standardItemLead: "group_standardItemLead",
1217
1218
  group_standardItemLeadInstructionHint: "group_standardItemLeadInstructionHint",
@@ -1277,6 +1278,8 @@ var groupKeys = {
1277
1278
  // src/model/enum/PropertyKey.ts
1278
1279
  import "@ncoderz/superenum";
1279
1280
  var propertyKeys = {
1281
+ property_accessibilityGroupTag: "@accessibilityGroupTag",
1282
+ property_accessibilityTag: "@accessibilityTag",
1280
1283
  property_action: "@action",
1281
1284
  property_activityType: "@activityType",
1282
1285
  property_additionalSolutions: "@additionalSolutions",
@@ -1564,6 +1567,8 @@ var propertyKeys = {
1564
1567
  property_trim: "@trim",
1565
1568
  property_unit: "@unit",
1566
1569
  property_unitAbbr: "@unitAbbr",
1570
+ property_unitAbbrPlural: "@unitAbbrPlural",
1571
+ property_unitPlural: "@unitPlural",
1567
1572
  property_vendorDashboardId: "@vendorDashboardId",
1568
1573
  property_vendorSurveyId: "@vendorSurveyId",
1569
1574
  property_vendorUrl: "@vendorUrl",
@@ -4377,12 +4382,22 @@ var CARDSETS = {
4377
4382
  },
4378
4383
  {
4379
4384
  key: ConfigKey.property_unit,
4380
- description: "Unit of measurement for the ingredient.",
4385
+ description: "Unit of measurement for the ingredient (singular).",
4386
+ format: TagFormat.plainText
4387
+ },
4388
+ {
4389
+ key: ConfigKey.property_unitPlural,
4390
+ description: "Unit of measurement for the ingredient (plural).",
4381
4391
  format: TagFormat.plainText
4382
4392
  },
4383
4393
  {
4384
4394
  key: ConfigKey.property_unitAbbr,
4385
- description: "Abbreviation for the unit of measurement.",
4395
+ description: "Abbreviation for the unit of measurement (singular).",
4396
+ format: TagFormat.plainText
4397
+ },
4398
+ {
4399
+ key: ConfigKey.property_unitAbbrPlural,
4400
+ description: "Abbreviation for the unit of measurement (plural).",
4386
4401
  format: TagFormat.plainText
4387
4402
  },
4388
4403
  {
@@ -4455,6 +4470,7 @@ var CARDSETS = {
4455
4470
  };
4456
4471
 
4457
4472
  // src/config/raw/groups.ts
4473
+ var ACCESSIBILITY_TAG_VALUES = ["complex", "functional", "decorative", "standard"];
4458
4474
  var GROUPS = {
4459
4475
  [ConfigKey.group_standardAllBits]: {
4460
4476
  name: "Standard",
@@ -4558,6 +4574,12 @@ var GROUPS = {
4558
4574
  description: "Translation source reference",
4559
4575
  format: TagFormat.plainText
4560
4576
  },
4577
+ {
4578
+ key: ConfigKey.property_isCollapsible,
4579
+ description: "If true, the bit is collapsible",
4580
+ format: TagFormat.boolean,
4581
+ nullable: true
4582
+ },
4561
4583
  {
4562
4584
  key: ConfigKey.property_spansPageBreak,
4563
4585
  description: "If true, the bit spans a page break",
@@ -4721,6 +4743,36 @@ var GROUPS = {
4721
4743
  }
4722
4744
  ]
4723
4745
  },
4746
+ {
4747
+ key: ConfigKey.property_accessibilityTag,
4748
+ description: "The accessibility classification(s) for the bit",
4749
+ format: TagFormat.enumeration,
4750
+ values: ACCESSIBILITY_TAG_VALUES,
4751
+ nullable: true,
4752
+ maxCount: Count.infinity
4753
+ },
4754
+ {
4755
+ key: ConfigKey.property_accessibilityGroupTag,
4756
+ jsonKey: "accessibilityGroupTag.name",
4757
+ // Entity-merge semantics, as for `@groupTag`: repeated
4758
+ // `[@accessibilityGroupTag: name]` occurrences with the same value fold
4759
+ // into one entry; chained `@accessibilityTag` children's arrays merge as sets.
4760
+ exportJsonKey: { accessibilityGroupTag: [{ "@id": "name", name: "$" }] },
4761
+ description: "The accessibility group tag(s) for the bit",
4762
+ format: TagFormat.plainText,
4763
+ maxCount: Count.infinity,
4764
+ chain: [
4765
+ {
4766
+ key: ConfigKey.property_accessibilityTag,
4767
+ exportJsonKey: { tags: ["$"] },
4768
+ description: "The accessibility classification(s) for the group",
4769
+ format: TagFormat.enumeration,
4770
+ values: ACCESSIBILITY_TAG_VALUES,
4771
+ nullable: true,
4772
+ maxCount: Count.infinity
4773
+ }
4774
+ ]
4775
+ },
4724
4776
  {
4725
4777
  key: ConfigKey.property_reviewTag,
4726
4778
  description: "The review tag(s) for the bit",
@@ -4851,6 +4903,37 @@ var GROUPS = {
4851
4903
  }
4852
4904
  ]
4853
4905
  },
4906
+ [ConfigKey.group_accessibilityDecorative]: {
4907
+ name: "Accessibility (decorative)",
4908
+ description: "Accessibility tags defaulting to a decorative image, for bits that are decorative by definition",
4909
+ type: GroupConfigType.standard,
4910
+ // Re-declares `@accessibilityGroupTag` (in full — tag hydration is last-wins
4911
+ // per config key, it does not merge) with the decorative defaults. The
4912
+ // standalone `@accessibilityTag` is deliberately NOT re-declared: the default
4913
+ // belongs to the group structure only.
4914
+ tags: [
4915
+ {
4916
+ key: ConfigKey.property_accessibilityGroupTag,
4917
+ jsonKey: "accessibilityGroupTag.name",
4918
+ exportJsonKey: { accessibilityGroupTag: [{ "@id": "name", name: "$" }] },
4919
+ description: "The accessibility group tag(s) for the bit",
4920
+ format: TagFormat.plainText,
4921
+ defaultValue: "image",
4922
+ maxCount: Count.infinity,
4923
+ chain: [
4924
+ {
4925
+ key: ConfigKey.property_accessibilityTag,
4926
+ exportJsonKey: { tags: ["$"] },
4927
+ description: "The accessibility classification(s) for the group",
4928
+ format: TagFormat.enumeration,
4929
+ values: ACCESSIBILITY_TAG_VALUES,
4930
+ defaultValue: "decorative",
4931
+ maxCount: Count.infinity
4932
+ }
4933
+ ]
4934
+ }
4935
+ ]
4936
+ },
4854
4937
  [ConfigKey.group_standardItemLead]: {
4855
4938
  type: GroupConfigType.standard,
4856
4939
  description: "Standard group for item, lead, page number, and margin number tags",
@@ -7611,13 +7694,31 @@ var BITS = {
7611
7694
  },
7612
7695
  [BitType2.smartStandardArticleNormativeCollapsible]: {
7613
7696
  since: "1.28.0",
7697
+ deprecated: "5.37.0",
7614
7698
  baseBitType: BitType2.smartStandardArticleNormative,
7615
- description: "Smart standard normative article bit that is collapsible"
7699
+ description: "Smart standard normative article bit that is collapsible",
7700
+ tags: [
7701
+ {
7702
+ key: ConfigKey.property_isCollapsible,
7703
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
7704
+ format: TagFormat.boolean,
7705
+ defaultValue: "true"
7706
+ }
7707
+ ]
7616
7708
  },
7617
7709
  [BitType2.smartStandardArticleNonNormativeCollapsible]: {
7618
7710
  since: "1.28.0",
7711
+ deprecated: "5.37.0",
7619
7712
  baseBitType: BitType2.smartStandardArticleNonNormative,
7620
- description: "Smart standard non-normative article bit that is collapsible"
7713
+ description: "Smart standard non-normative article bit that is collapsible",
7714
+ tags: [
7715
+ {
7716
+ key: ConfigKey.property_isCollapsible,
7717
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
7718
+ format: TagFormat.boolean,
7719
+ defaultValue: "true"
7720
+ }
7721
+ ]
7621
7722
  },
7622
7723
  [BitType2.statement]: {
7623
7724
  since: "1.3.0",
@@ -8739,7 +8840,7 @@ var BITS = {
8739
8840
  },
8740
8841
  {
8741
8842
  key: ConfigKey.property_isCollapsible,
8742
- description: "If true, the chapter is collapsible",
8843
+ description: "If true, the chapter is collapsible (always emitted; defaults false)",
8743
8844
  format: TagFormat.boolean,
8744
8845
  defaultValue: "false"
8745
8846
  }
@@ -9348,12 +9449,22 @@ var BITS = {
9348
9449
  chain: [
9349
9450
  {
9350
9451
  key: ConfigKey.property_unit,
9351
- description: "The unit of measurement for the ingredients",
9452
+ description: "The unit of measurement for the ingredients (singular)",
9453
+ format: TagFormat.plainText
9454
+ },
9455
+ {
9456
+ key: ConfigKey.property_unitPlural,
9457
+ description: "The unit of measurement for the ingredients (plural)",
9352
9458
  format: TagFormat.plainText
9353
9459
  },
9354
9460
  {
9355
9461
  key: ConfigKey.property_unitAbbr,
9356
- description: "The abbreviation for the unit of measurement",
9462
+ description: "The abbreviation for the unit of measurement (singular)",
9463
+ format: TagFormat.plainText
9464
+ },
9465
+ {
9466
+ key: ConfigKey.property_unitAbbrPlural,
9467
+ description: "The abbreviation for the unit of measurement (plural)",
9357
9468
  format: TagFormat.plainText
9358
9469
  },
9359
9470
  {
@@ -9632,13 +9743,31 @@ var BITS = {
9632
9743
  },
9633
9744
  [BitType2.smartStandardExampleNormativeCollapsible]: {
9634
9745
  since: "1.28.0",
9746
+ deprecated: "5.37.0",
9635
9747
  baseBitType: BitType2.smartStandardExampleNormative,
9636
- description: "Smart standard normative example collapsible bit, used to provide normative examples in smart standards that can be collapsed"
9748
+ description: "Smart standard normative example collapsible bit, used to provide normative examples in smart standards that can be collapsed",
9749
+ tags: [
9750
+ {
9751
+ key: ConfigKey.property_isCollapsible,
9752
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
9753
+ format: TagFormat.boolean,
9754
+ defaultValue: "true"
9755
+ }
9756
+ ]
9637
9757
  },
9638
9758
  [BitType2.smartStandardExampleNonNormativeCollapsible]: {
9639
9759
  since: "1.28.0",
9760
+ deprecated: "5.37.0",
9640
9761
  baseBitType: BitType2.smartStandardExampleNonNormative,
9641
- description: "Smart standard non-normative example collapsible bit, used to provide non-normative examples in smart standards that can be collapsed"
9762
+ description: "Smart standard non-normative example collapsible bit, used to provide non-normative examples in smart standards that can be collapsed",
9763
+ tags: [
9764
+ {
9765
+ key: ConfigKey.property_isCollapsible,
9766
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
9767
+ format: TagFormat.boolean,
9768
+ defaultValue: "true"
9769
+ }
9770
+ ]
9642
9771
  },
9643
9772
  [BitType2.authorContentBitGenerator]: {
9644
9773
  since: "4.2.0",
@@ -9974,8 +10103,17 @@ var BITS = {
9974
10103
  },
9975
10104
  [BitType2.smartStandardListCollapsible]: {
9976
10105
  since: "1.28.0",
10106
+ deprecated: "5.37.0",
9977
10107
  baseBitType: BitType2.smartStandardList,
9978
- description: "Smart standard list collapsible bit, used to create collapsible smart standard lists in articles or books"
10108
+ description: "Smart standard list collapsible bit, used to create collapsible smart standard lists in articles or books",
10109
+ tags: [
10110
+ {
10111
+ key: ConfigKey.property_isCollapsible,
10112
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10113
+ format: TagFormat.boolean,
10114
+ defaultValue: "true"
10115
+ }
10116
+ ]
9979
10117
  },
9980
10118
  [BitType2.message]: {
9981
10119
  since: "1.3.0",
@@ -10029,13 +10167,31 @@ var BITS = {
10029
10167
  },
10030
10168
  [BitType2.smartStandardNoteNormativeCollapsible]: {
10031
10169
  since: "1.28.0",
10170
+ deprecated: "5.37.0",
10032
10171
  baseBitType: BitType2.smartStandardNoteNormative,
10033
- description: "Smart standard normative note collapsible bit, used to provide normative notes in smart standards that can be collapsed"
10172
+ description: "Smart standard normative note collapsible bit, used to provide normative notes in smart standards that can be collapsed",
10173
+ tags: [
10174
+ {
10175
+ key: ConfigKey.property_isCollapsible,
10176
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10177
+ format: TagFormat.boolean,
10178
+ defaultValue: "true"
10179
+ }
10180
+ ]
10034
10181
  },
10035
10182
  [BitType2.smartStandardNoteNonNormativeCollapsible]: {
10036
10183
  since: "1.28.0",
10184
+ deprecated: "5.37.0",
10037
10185
  baseBitType: BitType2.smartStandardNoteNonNormative,
10038
- description: "Smart standard non-normative note collapsible bit, used to provide non-normative notes in smart standards that can be collapsed"
10186
+ description: "Smart standard non-normative note collapsible bit, used to provide non-normative notes in smart standards that can be collapsed",
10187
+ tags: [
10188
+ {
10189
+ key: ConfigKey.property_isCollapsible,
10190
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10191
+ format: TagFormat.boolean,
10192
+ defaultValue: "true"
10193
+ }
10194
+ ]
10039
10195
  },
10040
10196
  [BitType2.noteAi]: {
10041
10197
  since: "1.3.0",
@@ -10096,7 +10252,9 @@ var BITS = {
10096
10252
  },
10097
10253
  [BitType2.printPageBreak]: {
10098
10254
  since: "5.4.0",
10099
- baseBitType: BitType2.separator,
10255
+ // Based on `article`, not `separator`: `separator` adds nothing over `article`,
10256
+ // and basing on it would inherit the decorative accessibility defaults.
10257
+ baseBitType: BitType2.article,
10100
10258
  description: "Print page break bit, used to create page breaks for printing in articles or books"
10101
10259
  },
10102
10260
  [BitType2.releaseNotesSummary]: {
@@ -10148,13 +10306,31 @@ var BITS = {
10148
10306
  },
10149
10307
  [BitType2.smartStandardRemarkNormativeCollapsible]: {
10150
10308
  since: "1.28.0",
10309
+ deprecated: "5.37.0",
10151
10310
  baseBitType: BitType2.smartStandardRemarkNormative,
10152
- description: "Smart standard normative remark collapsible bit, used to provide normative remarks in smart standards that can be collapsed"
10311
+ description: "Smart standard normative remark collapsible bit, used to provide normative remarks in smart standards that can be collapsed",
10312
+ tags: [
10313
+ {
10314
+ key: ConfigKey.property_isCollapsible,
10315
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10316
+ format: TagFormat.boolean,
10317
+ defaultValue: "true"
10318
+ }
10319
+ ]
10153
10320
  },
10154
10321
  [BitType2.smartStandardRemarkNonNormativeCollapsible]: {
10155
10322
  since: "1.28.0",
10323
+ deprecated: "5.37.0",
10156
10324
  baseBitType: BitType2.smartStandardRemarkNonNormative,
10157
- description: "Smart standard non-normative remark collapsible bit, used to provide non-normative remarks in smart standards that can be collapsed"
10325
+ description: "Smart standard non-normative remark collapsible bit, used to provide non-normative remarks in smart standards that can be collapsed",
10326
+ tags: [
10327
+ {
10328
+ key: ConfigKey.property_isCollapsible,
10329
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10330
+ format: TagFormat.boolean,
10331
+ defaultValue: "true"
10332
+ }
10333
+ ]
10158
10334
  },
10159
10335
  [BitType2.selfAssessment]: {
10160
10336
  since: "1.3.0",
@@ -10164,12 +10340,24 @@ var BITS = {
10164
10340
  [BitType2.separator]: {
10165
10341
  since: "1.4.15",
10166
10342
  baseBitType: BitType2.article,
10167
- description: "Separator bit, used to create visual separators in articles or books"
10343
+ description: "Separator bit, used to create visual separators in articles or books",
10344
+ tags: [
10345
+ {
10346
+ key: ConfigKey.group_accessibilityDecorative,
10347
+ description: "Accessibility tags, defaulting to a decorative image"
10348
+ }
10349
+ ]
10168
10350
  },
10169
10351
  [BitType2.separatorAlt]: {
10170
10352
  since: "1.16.0",
10171
10353
  baseBitType: BitType2.separator,
10172
- description: "Alternative separator bit, used to create visual separators in articles or books with alternative styling"
10354
+ description: "Alternative separator bit, used to create visual separators in articles or books with alternative styling",
10355
+ tags: [
10356
+ {
10357
+ key: ConfigKey.group_accessibilityDecorative,
10358
+ description: "Accessibility tags, defaulting to a decorative image"
10359
+ }
10360
+ ]
10173
10361
  },
10174
10362
  [BitType2.sticker]: {
10175
10363
  since: "1.5.28",
@@ -10225,53 +10413,143 @@ var BITS = {
10225
10413
  },
10226
10414
  [BitType2.collapsible]: {
10227
10415
  since: "1.21.0",
10416
+ deprecated: "5.37.0",
10228
10417
  baseBitType: BitType2.article,
10229
- description: "Collapsible bit, used to create collapsible sections in articles or books"
10418
+ description: "Collapsible bit, used to create collapsible sections in articles or books",
10419
+ tags: [
10420
+ {
10421
+ key: ConfigKey.property_isCollapsible,
10422
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10423
+ format: TagFormat.boolean,
10424
+ defaultValue: "true"
10425
+ }
10426
+ ]
10230
10427
  },
10231
10428
  [BitType2.sideNoteCollapsible]: {
10232
10429
  since: "1.21.0",
10233
- baseBitType: BitType2.article,
10234
- description: "Side note collapsible bit, used to create collapsible side notes in articles or books"
10430
+ deprecated: "5.37.0",
10431
+ baseBitType: BitType2.sideNote,
10432
+ description: "Side note collapsible bit, used to create collapsible side notes in articles or books",
10433
+ tags: [
10434
+ {
10435
+ key: ConfigKey.property_isCollapsible,
10436
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10437
+ format: TagFormat.boolean,
10438
+ defaultValue: "true"
10439
+ }
10440
+ ]
10235
10441
  },
10236
10442
  [BitType2.infoCollapsible]: {
10237
10443
  since: "1.21.0",
10238
- baseBitType: BitType2.article,
10239
- description: "Info collapsible bit, used to create collapsible informational sections in articles or books"
10444
+ deprecated: "5.37.0",
10445
+ baseBitType: BitType2.info,
10446
+ description: "Info collapsible bit, used to create collapsible informational sections in articles or books",
10447
+ tags: [
10448
+ {
10449
+ key: ConfigKey.property_isCollapsible,
10450
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10451
+ format: TagFormat.boolean,
10452
+ defaultValue: "true"
10453
+ }
10454
+ ]
10240
10455
  },
10241
10456
  [BitType2.remarkCollapsible]: {
10242
10457
  since: "1.21.0",
10243
- baseBitType: BitType2.article,
10244
- description: "Remark collapsible bit, used to create collapsible remarks in articles or books"
10458
+ deprecated: "5.37.0",
10459
+ baseBitType: BitType2.remark,
10460
+ description: "Remark collapsible bit, used to create collapsible remarks in articles or books",
10461
+ tags: [
10462
+ {
10463
+ key: ConfigKey.property_isCollapsible,
10464
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10465
+ format: TagFormat.boolean,
10466
+ defaultValue: "true"
10467
+ }
10468
+ ]
10245
10469
  },
10246
10470
  [BitType2.warningCollapsible]: {
10247
10471
  since: "1.21.0",
10248
- baseBitType: BitType2.article,
10249
- description: "Warning collapsible bit, used to create collapsible warnings in articles or books"
10472
+ deprecated: "5.37.0",
10473
+ baseBitType: BitType2.warning,
10474
+ description: "Warning collapsible bit, used to create collapsible warnings in articles or books",
10475
+ tags: [
10476
+ {
10477
+ key: ConfigKey.property_isCollapsible,
10478
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10479
+ format: TagFormat.boolean,
10480
+ defaultValue: "true"
10481
+ }
10482
+ ]
10250
10483
  },
10251
10484
  [BitType2.dangerCollapsible]: {
10252
10485
  since: "1.21.0",
10253
- baseBitType: BitType2.article,
10254
- description: "Danger collapsible bit, used to create collapsible danger sections in articles or books"
10486
+ deprecated: "5.37.0",
10487
+ baseBitType: BitType2.danger,
10488
+ description: "Danger collapsible bit, used to create collapsible danger sections in articles or books",
10489
+ tags: [
10490
+ {
10491
+ key: ConfigKey.property_isCollapsible,
10492
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10493
+ format: TagFormat.boolean,
10494
+ defaultValue: "true"
10495
+ }
10496
+ ]
10255
10497
  },
10256
10498
  [BitType2.noteCollapsible]: {
10257
10499
  since: "1.21.0",
10258
- baseBitType: BitType2.article,
10259
- description: "Note collapsible bit, used to create collapsible notes in articles or books"
10500
+ deprecated: "5.37.0",
10501
+ baseBitType: BitType2.note,
10502
+ description: "Note collapsible bit, used to create collapsible notes in articles or books",
10503
+ tags: [
10504
+ {
10505
+ key: ConfigKey.property_isCollapsible,
10506
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10507
+ format: TagFormat.boolean,
10508
+ defaultValue: "true"
10509
+ }
10510
+ ]
10260
10511
  },
10261
10512
  [BitType2.exampleCollapsible]: {
10262
10513
  since: "1.21.0",
10263
- baseBitType: BitType2.article,
10264
- description: "Example collapsible bit, used to create collapsible examples in articles or books"
10514
+ deprecated: "5.37.0",
10515
+ baseBitType: BitType2.example,
10516
+ description: "Example collapsible bit, used to create collapsible examples in articles or books",
10517
+ tags: [
10518
+ {
10519
+ key: ConfigKey.property_isCollapsible,
10520
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10521
+ format: TagFormat.boolean,
10522
+ defaultValue: "true"
10523
+ }
10524
+ ]
10265
10525
  },
10266
10526
  [BitType2.hintCollapsible]: {
10267
10527
  since: "1.21.0",
10268
- baseBitType: BitType2.article,
10269
- description: "Hint collapsible bit, used to create collapsible hints in articles or books"
10528
+ deprecated: "5.37.0",
10529
+ baseBitType: BitType2.hint,
10530
+ description: "Hint collapsible bit, used to create collapsible hints in articles or books",
10531
+ tags: [
10532
+ {
10533
+ key: ConfigKey.property_isCollapsible,
10534
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10535
+ format: TagFormat.boolean,
10536
+ defaultValue: "true"
10537
+ }
10538
+ ]
10270
10539
  },
10271
10540
  [BitType2.bugCollapsible]: {
10272
10541
  since: "1.21.0",
10273
- baseBitType: BitType2.article,
10274
- description: "Bug collapsible bit, used to create collapsible bug reports in articles or books"
10542
+ deprecated: "5.37.0",
10543
+ baseBitType: BitType2.bug,
10544
+ description: "Bug collapsible bit, used to create collapsible bug reports in articles or books",
10545
+ tags: [
10546
+ {
10547
+ key: ConfigKey.property_isCollapsible,
10548
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10549
+ format: TagFormat.boolean,
10550
+ defaultValue: "true"
10551
+ }
10552
+ ]
10275
10553
  },
10276
10554
  [BitType2.platformPath]: {
10277
10555
  since: "3.14.1",
@@ -10493,8 +10771,17 @@ var BITS = {
10493
10771
  },
10494
10772
  [BitType2.extractorPageCollapsible]: {
10495
10773
  since: "1.30.0",
10774
+ deprecated: "5.37.0",
10496
10775
  baseBitType: BitType2.extractorPage,
10497
- description: "Collapsible extractor page bit, used to extract pages from images with collapsible functionality"
10776
+ description: "Collapsible extractor page bit, used to extract pages from images with collapsible functionality",
10777
+ tags: [
10778
+ {
10779
+ key: ConfigKey.property_isCollapsible,
10780
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10781
+ format: TagFormat.boolean,
10782
+ defaultValue: "true"
10783
+ }
10784
+ ]
10498
10785
  },
10499
10786
  [BitType2.extractorPageWithBlocks]: {
10500
10787
  since: "1.5.21",
@@ -10503,8 +10790,17 @@ var BITS = {
10503
10790
  },
10504
10791
  [BitType2.extractorPageWithBlocksCollapsible]: {
10505
10792
  since: "1.30.0",
10793
+ deprecated: "5.37.0",
10506
10794
  baseBitType: BitType2.extractorPageWithBlocks,
10507
- description: "Collapsible extractor page with blocks bit, used to extract pages with blocks from images with collapsible functionality"
10795
+ description: "Collapsible extractor page with blocks bit, used to extract pages with blocks from images with collapsible functionality",
10796
+ tags: [
10797
+ {
10798
+ key: ConfigKey.property_isCollapsible,
10799
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10800
+ format: TagFormat.boolean,
10801
+ defaultValue: "true"
10802
+ }
10803
+ ]
10508
10804
  },
10509
10805
  [BitType2.extractorConfiguration]: {
10510
10806
  since: "1.7.1",
@@ -10544,8 +10840,17 @@ var BITS = {
10544
10840
  },
10545
10841
  [BitType2.extractorImageCollapsible]: {
10546
10842
  since: "4.3.0",
10843
+ deprecated: "5.37.0",
10547
10844
  baseBitType: BitType2.extractorImage,
10548
- description: "Collapsible extractor images bit, used for images extracted from PDFs"
10845
+ description: "Collapsible extractor images bit, used for images extracted from PDFs",
10846
+ tags: [
10847
+ {
10848
+ key: ConfigKey.property_isCollapsible,
10849
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10850
+ format: TagFormat.boolean,
10851
+ defaultValue: "true"
10852
+ }
10853
+ ]
10549
10854
  },
10550
10855
  [BitType2.extractorBlueprint]: {
10551
10856
  since: "5.12.0",
@@ -10682,8 +10987,17 @@ var BITS = {
10682
10987
  },
10683
10988
  [BitType2.extractorPageNumberCollapsible]: {
10684
10989
  since: "1.30.0",
10990
+ deprecated: "5.37.0",
10685
10991
  baseBitType: BitType2.extractorPageNumber,
10686
- description: "Collapsible extractor page number bit, used to define page numbers in extractor pages with collapsible functionality"
10992
+ description: "Collapsible extractor page number bit, used to define page numbers in extractor pages with collapsible functionality",
10993
+ tags: [
10994
+ {
10995
+ key: ConfigKey.property_isCollapsible,
10996
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
10997
+ format: TagFormat.boolean,
10998
+ defaultValue: "true"
10999
+ }
11000
+ ]
10687
11001
  },
10688
11002
  [BitType2.extractorPageHeader]: {
10689
11003
  since: "1.5.21",
@@ -10692,8 +11006,17 @@ var BITS = {
10692
11006
  },
10693
11007
  [BitType2.extractorPageHeaderCollapsible]: {
10694
11008
  since: "1.30.0",
11009
+ deprecated: "5.37.0",
10695
11010
  baseBitType: BitType2.extractorPageHeader,
10696
- description: "Collapsible extractor page header bit, used to define headers in extractor pages with collapsible functionality"
11011
+ description: "Collapsible extractor page header bit, used to define headers in extractor pages with collapsible functionality",
11012
+ tags: [
11013
+ {
11014
+ key: ConfigKey.property_isCollapsible,
11015
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11016
+ format: TagFormat.boolean,
11017
+ defaultValue: "true"
11018
+ }
11019
+ ]
10697
11020
  },
10698
11021
  [BitType2.extractorPageFooter]: {
10699
11022
  since: "1.5.21",
@@ -10702,8 +11025,17 @@ var BITS = {
10702
11025
  },
10703
11026
  [BitType2.extractorPageFooterCollapsible]: {
10704
11027
  since: "1.30.0",
11028
+ deprecated: "5.37.0",
10705
11029
  baseBitType: BitType2.extractorPageFooter,
10706
- description: "Collapsible extractor page footer bit, used to define footers in extractor pages with collapsible functionality"
11030
+ description: "Collapsible extractor page footer bit, used to define footers in extractor pages with collapsible functionality",
11031
+ tags: [
11032
+ {
11033
+ key: ConfigKey.property_isCollapsible,
11034
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11035
+ format: TagFormat.boolean,
11036
+ defaultValue: "true"
11037
+ }
11038
+ ]
10707
11039
  },
10708
11040
  [BitType2.pageOpenBook]: {
10709
11041
  since: "1.5.10",
@@ -10993,8 +11325,17 @@ var BITS = {
10993
11325
  },
10994
11326
  [BitType2.definitionListCollapsible]: {
10995
11327
  since: "5.25.0",
11328
+ deprecated: "5.37.0",
10996
11329
  baseBitType: BitType2.definitionList,
10997
- description: "Collapsible definition list bit, used to create collapsible lists of definitions in articles or books"
11330
+ description: "Collapsible definition list bit, used to create collapsible lists of definitions in articles or books",
11331
+ tags: [
11332
+ {
11333
+ key: ConfigKey.property_isCollapsible,
11334
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11335
+ format: TagFormat.boolean,
11336
+ defaultValue: "true"
11337
+ }
11338
+ ]
10998
11339
  },
10999
11340
  [BitType2.standardDefinitionListNormative]: {
11000
11341
  since: "5.24.0",
@@ -11218,13 +11559,31 @@ var BITS = {
11218
11559
  },
11219
11560
  [BitType2.smartStandardImageFigureNormativeCollapsible]: {
11220
11561
  since: "1.28.0",
11562
+ deprecated: "5.37.0",
11221
11563
  baseBitType: BitType2.smartStandardImageFigureNormative,
11222
- description: "Collapsible smart standard normative image figure bit, used to create collapsible smart standard normative image figures in articles or books"
11564
+ description: "Collapsible smart standard normative image figure bit, used to create collapsible smart standard normative image figures in articles or books",
11565
+ tags: [
11566
+ {
11567
+ key: ConfigKey.property_isCollapsible,
11568
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11569
+ format: TagFormat.boolean,
11570
+ defaultValue: "true"
11571
+ }
11572
+ ]
11223
11573
  },
11224
11574
  [BitType2.smartStandardImageFigureNonNormativeCollapsible]: {
11225
11575
  since: "1.28.0",
11576
+ deprecated: "5.37.0",
11226
11577
  baseBitType: BitType2.smartStandardImageFigureNonNormative,
11227
- description: "Collapsible smart standard non-normative image figure bit, used to create collapsible smart standard non-normative image figures in articles or books"
11578
+ description: "Collapsible smart standard non-normative image figure bit, used to create collapsible smart standard non-normative image figures in articles or books",
11579
+ tags: [
11580
+ {
11581
+ key: ConfigKey.property_isCollapsible,
11582
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11583
+ format: TagFormat.boolean,
11584
+ defaultValue: "true"
11585
+ }
11586
+ ]
11228
11587
  },
11229
11588
  [BitType2.imageLandscape]: {
11230
11589
  since: "1.3.0",
@@ -11234,7 +11593,13 @@ var BITS = {
11234
11593
  [BitType2.imageMood]: {
11235
11594
  since: "1.3.0",
11236
11595
  baseBitType: BitType2.image,
11237
- description: "Image mood bit, used to create mood images in articles or books"
11596
+ description: "Image mood bit, used to create mood images in articles or books",
11597
+ tags: [
11598
+ {
11599
+ key: ConfigKey.group_accessibilityDecorative,
11600
+ description: "Accessibility tags, defaulting to a decorative image"
11601
+ }
11602
+ ]
11238
11603
  },
11239
11604
  [BitType2.imagePortrait]: {
11240
11605
  since: "1.3.0",
@@ -11254,6 +11619,10 @@ var BITS = {
11254
11619
  {
11255
11620
  key: ConfigKey.group_imageNoZoom,
11256
11621
  description: "Image no zoom tags for images, used to define whether images should have zoom functionality"
11622
+ },
11623
+ {
11624
+ key: ConfigKey.group_accessibilityDecorative,
11625
+ description: "Accessibility tags, defaulting to a decorative image"
11257
11626
  }
11258
11627
  ],
11259
11628
  resourceAttachmentAllowed: false
@@ -11261,7 +11630,13 @@ var BITS = {
11261
11630
  [BitType2.imageSeparatorAlt]: {
11262
11631
  since: "1.16.0",
11263
11632
  baseBitType: BitType2.imageSeparator,
11264
- description: "Alternative image separator bit, used to create alternative separators in articles or books"
11633
+ description: "Alternative image separator bit, used to create alternative separators in articles or books",
11634
+ tags: [
11635
+ {
11636
+ key: ConfigKey.group_accessibilityDecorative,
11637
+ description: "Accessibility tags, defaulting to a decorative image"
11638
+ }
11639
+ ]
11265
11640
  },
11266
11641
  [BitType2.imageScreenshot]: {
11267
11642
  since: "1.3.0",
@@ -11436,43 +11811,115 @@ var BITS = {
11436
11811
  },
11437
11812
  [BitType2.smartStandardTableImageNormativeCollapsible]: {
11438
11813
  since: "1.28.0",
11814
+ deprecated: "5.37.0",
11439
11815
  baseBitType: BitType2.smartStandardTableImageNormative,
11440
- description: "Collapsible smart standard normative table image bit, used to create collapsible smart standard normative images in tables in articles or books"
11816
+ description: "Collapsible smart standard normative table image bit, used to create collapsible smart standard normative images in tables in articles or books",
11817
+ tags: [
11818
+ {
11819
+ key: ConfigKey.property_isCollapsible,
11820
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11821
+ format: TagFormat.boolean,
11822
+ defaultValue: "true"
11823
+ }
11824
+ ]
11441
11825
  },
11442
11826
  [BitType2.smartStandardTableImageNonNormativeCollapsible]: {
11443
11827
  since: "1.28.0",
11828
+ deprecated: "5.37.0",
11444
11829
  baseBitType: BitType2.smartStandardTableImageNonNormative,
11445
- description: "Collapsible smart standard non-normative table image bit, used to create collapsible smart standard non-normative images in tables in articles or books"
11830
+ description: "Collapsible smart standard non-normative table image bit, used to create collapsible smart standard non-normative images in tables in articles or books",
11831
+ tags: [
11832
+ {
11833
+ key: ConfigKey.property_isCollapsible,
11834
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11835
+ format: TagFormat.boolean,
11836
+ defaultValue: "true"
11837
+ }
11838
+ ]
11446
11839
  },
11447
11840
  [BitType2.smartStandardRemarkTableImageNormativeCollapsible]: {
11448
11841
  since: "1.28.0",
11842
+ deprecated: "5.37.0",
11449
11843
  baseBitType: BitType2.smartStandardRemarkTableImageNormative,
11450
- description: "Collapsible smart standard normative remark table image bit, used to create collapsible smart standard normative remark images in tables in articles or books"
11844
+ description: "Collapsible smart standard normative remark table image bit, used to create collapsible smart standard normative remark images in tables in articles or books",
11845
+ tags: [
11846
+ {
11847
+ key: ConfigKey.property_isCollapsible,
11848
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11849
+ format: TagFormat.boolean,
11850
+ defaultValue: "true"
11851
+ }
11852
+ ]
11451
11853
  },
11452
11854
  [BitType2.smartStandardRemarkTableImageNonNormativeCollapsible]: {
11453
11855
  since: "1.28.0",
11856
+ deprecated: "5.37.0",
11454
11857
  baseBitType: BitType2.smartStandardRemarkTableImageNonNormative,
11455
- 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"
11858
+ 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",
11859
+ tags: [
11860
+ {
11861
+ key: ConfigKey.property_isCollapsible,
11862
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11863
+ format: TagFormat.boolean,
11864
+ defaultValue: "true"
11865
+ }
11866
+ ]
11456
11867
  },
11457
11868
  [BitType2.smartStandardTableExtendedImageNormativeCollapsible]: {
11458
11869
  since: "1.28.0",
11870
+ deprecated: "5.37.0",
11459
11871
  baseBitType: BitType2.smartStandardTableExtendedImageNormative,
11460
- description: "Collapsible smart standard normative extended table image bit, used to create collapsible smart standard normative extended images in tables in articles or books"
11872
+ description: "Collapsible smart standard normative extended table image bit, used to create collapsible smart standard normative extended images in tables in articles or books",
11873
+ tags: [
11874
+ {
11875
+ key: ConfigKey.property_isCollapsible,
11876
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11877
+ format: TagFormat.boolean,
11878
+ defaultValue: "true"
11879
+ }
11880
+ ]
11461
11881
  },
11462
11882
  [BitType2.smartStandardTableExtendedImageNonNormativeCollapsible]: {
11463
11883
  since: "1.28.0",
11884
+ deprecated: "5.37.0",
11464
11885
  baseBitType: BitType2.smartStandardTableExtendedImageNonNormative,
11465
- 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"
11886
+ 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",
11887
+ tags: [
11888
+ {
11889
+ key: ConfigKey.property_isCollapsible,
11890
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11891
+ format: TagFormat.boolean,
11892
+ defaultValue: "true"
11893
+ }
11894
+ ]
11466
11895
  },
11467
11896
  [BitType2.smartStandardRemarkTableExtendedImageNormativeCollapsible]: {
11468
11897
  since: "1.28.0",
11898
+ deprecated: "5.37.0",
11469
11899
  baseBitType: BitType2.smartStandardRemarkTableExtendedImageNormative,
11470
- 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"
11900
+ 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",
11901
+ tags: [
11902
+ {
11903
+ key: ConfigKey.property_isCollapsible,
11904
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11905
+ format: TagFormat.boolean,
11906
+ defaultValue: "true"
11907
+ }
11908
+ ]
11471
11909
  },
11472
11910
  [BitType2.smartStandardRemarkTableExtendedImageNonNormativeCollapsible]: {
11473
11911
  since: "1.28.0",
11912
+ deprecated: "5.37.0",
11474
11913
  baseBitType: BitType2.smartStandardRemarkTableExtendedImageNonNormative,
11475
- 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"
11914
+ 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",
11915
+ tags: [
11916
+ {
11917
+ key: ConfigKey.property_isCollapsible,
11918
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
11919
+ format: TagFormat.boolean,
11920
+ defaultValue: "true"
11921
+ }
11922
+ ]
11476
11923
  },
11477
11924
  [BitType2.imageLink]: {
11478
11925
  since: "1.3.0",
@@ -11953,8 +12400,17 @@ var BITS = {
11953
12400
  },
11954
12401
  [BitType2.smartStandardListItemCollapsible]: {
11955
12402
  since: "1.28.0",
12403
+ deprecated: "5.37.0",
11956
12404
  baseBitType: BitType2.smartStandardListItem,
11957
- description: "Collapsible smart standard list item bit, used to create collapsible smart standard list items in articles or books"
12405
+ description: "Collapsible smart standard list item bit, used to create collapsible smart standard list items in articles or books",
12406
+ tags: [
12407
+ {
12408
+ key: ConfigKey.property_isCollapsible,
12409
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
12410
+ format: TagFormat.boolean,
12411
+ defaultValue: "true"
12412
+ }
12413
+ ]
11958
12414
  },
11959
12415
  [BitType2.mark]: {
11960
12416
  since: "1.3.0",
@@ -12287,8 +12743,17 @@ var BITS = {
12287
12743
  },
12288
12744
  [BitType2.pageCollapsible]: {
12289
12745
  since: "1.30.0",
12746
+ deprecated: "5.37.0",
12290
12747
  baseBitType: BitType2.page,
12291
- description: "Collapsible page bit, used to create collapsible sections in pages"
12748
+ description: "Collapsible page bit, used to create collapsible sections in pages",
12749
+ tags: [
12750
+ {
12751
+ key: ConfigKey.property_isCollapsible,
12752
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
12753
+ format: TagFormat.boolean,
12754
+ defaultValue: "true"
12755
+ }
12756
+ ]
12292
12757
  },
12293
12758
  [BitType2.pageCoverImage]: {
12294
12759
  since: "1.22.0",
@@ -13263,43 +13728,115 @@ var BITS = {
13263
13728
  },
13264
13729
  [BitType2.smartStandardTableNormativeCollapsible]: {
13265
13730
  since: "1.28.0",
13731
+ deprecated: "5.37.0",
13266
13732
  baseBitType: BitType2.smartStandardTableNormative,
13267
- description: "Collapsible smart standard normative table bit, used to create collapsible smart standard normative tables in articles or books"
13733
+ description: "Collapsible smart standard normative table bit, used to create collapsible smart standard normative tables in articles or books",
13734
+ tags: [
13735
+ {
13736
+ key: ConfigKey.property_isCollapsible,
13737
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13738
+ format: TagFormat.boolean,
13739
+ defaultValue: "true"
13740
+ }
13741
+ ]
13268
13742
  },
13269
13743
  [BitType2.smartStandardTableNonNormativeCollapsible]: {
13270
13744
  since: "1.28.0",
13745
+ deprecated: "5.37.0",
13271
13746
  baseBitType: BitType2.smartStandardTableNonNormative,
13272
- description: "Collapsible smart standard non-normative table bit, used to create collapsible smart standard non-normative tables in articles or books"
13747
+ description: "Collapsible smart standard non-normative table bit, used to create collapsible smart standard non-normative tables in articles or books",
13748
+ tags: [
13749
+ {
13750
+ key: ConfigKey.property_isCollapsible,
13751
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13752
+ format: TagFormat.boolean,
13753
+ defaultValue: "true"
13754
+ }
13755
+ ]
13273
13756
  },
13274
13757
  [BitType2.smartStandardRemarkTableNormativeCollapsible]: {
13275
13758
  since: "1.28.0",
13759
+ deprecated: "5.37.0",
13276
13760
  baseBitType: BitType2.smartStandardRemarkTableNormative,
13277
- description: "Collapsible smart standard normative remark table bit, used to create collapsible smart standard normative remark tables in articles or books"
13761
+ description: "Collapsible smart standard normative remark table bit, used to create collapsible smart standard normative remark tables in articles or books",
13762
+ tags: [
13763
+ {
13764
+ key: ConfigKey.property_isCollapsible,
13765
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13766
+ format: TagFormat.boolean,
13767
+ defaultValue: "true"
13768
+ }
13769
+ ]
13278
13770
  },
13279
13771
  [BitType2.smartStandardRemarkTableNonNormativeCollapsible]: {
13280
13772
  since: "1.28.0",
13773
+ deprecated: "5.37.0",
13281
13774
  baseBitType: BitType2.smartStandardRemarkTableNonNormative,
13282
- description: "Collapsible smart standard non-normative remark table bit, used to create collapsible smart standard non-normative remark tables in articles or books"
13775
+ description: "Collapsible smart standard non-normative remark table bit, used to create collapsible smart standard non-normative remark tables in articles or books",
13776
+ tags: [
13777
+ {
13778
+ key: ConfigKey.property_isCollapsible,
13779
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13780
+ format: TagFormat.boolean,
13781
+ defaultValue: "true"
13782
+ }
13783
+ ]
13283
13784
  },
13284
13785
  [BitType2.smartStandardTableExtendedNormativeCollapsible]: {
13285
13786
  since: "1.28.0",
13787
+ deprecated: "5.37.0",
13286
13788
  baseBitType: BitType2.smartStandardTableExtendedNormative,
13287
- description: "Collapsible smart standard normative extended table bit, used to create collapsible smart standard normative extended tables in articles or books"
13789
+ description: "Collapsible smart standard normative extended table bit, used to create collapsible smart standard normative extended tables in articles or books",
13790
+ tags: [
13791
+ {
13792
+ key: ConfigKey.property_isCollapsible,
13793
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13794
+ format: TagFormat.boolean,
13795
+ defaultValue: "true"
13796
+ }
13797
+ ]
13288
13798
  },
13289
13799
  [BitType2.smartStandardTableExtendedNonNormativeCollapsible]: {
13290
13800
  since: "1.28.0",
13801
+ deprecated: "5.37.0",
13291
13802
  baseBitType: BitType2.smartStandardTableExtendedNonNormative,
13292
- description: "Collapsible smart standard non-normative extended table bit, used to create collapsible smart standard non-normative extended tables in articles or books"
13803
+ description: "Collapsible smart standard non-normative extended table bit, used to create collapsible smart standard non-normative extended tables in articles or books",
13804
+ tags: [
13805
+ {
13806
+ key: ConfigKey.property_isCollapsible,
13807
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13808
+ format: TagFormat.boolean,
13809
+ defaultValue: "true"
13810
+ }
13811
+ ]
13293
13812
  },
13294
13813
  [BitType2.smartStandardRemarkTableExtendedNormativeCollapsible]: {
13295
13814
  since: "1.28.0",
13815
+ deprecated: "5.37.0",
13296
13816
  baseBitType: BitType2.smartStandardRemarkTableExtendedNormative,
13297
- description: "Collapsible smart standard normative remark extended table bit, used to create collapsible smart standard normative remark extended tables in articles or books"
13817
+ description: "Collapsible smart standard normative remark extended table bit, used to create collapsible smart standard normative remark extended tables in articles or books",
13818
+ tags: [
13819
+ {
13820
+ key: ConfigKey.property_isCollapsible,
13821
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13822
+ format: TagFormat.boolean,
13823
+ defaultValue: "true"
13824
+ }
13825
+ ]
13298
13826
  },
13299
13827
  [BitType2.smartStandardRemarkTableExtendedNonNormativeCollapsible]: {
13300
13828
  since: "1.28.0",
13829
+ deprecated: "5.37.0",
13301
13830
  baseBitType: BitType2.smartStandardRemarkTableExtendedNonNormative,
13302
- 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"
13831
+ 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",
13832
+ tags: [
13833
+ {
13834
+ key: ConfigKey.property_isCollapsible,
13835
+ description: "If true, the bit is collapsible (defaults true for this deprecated bit type)",
13836
+ format: TagFormat.boolean,
13837
+ defaultValue: "true"
13838
+ }
13839
+ ]
13303
13840
  },
13304
13841
  [BitType2.parameters]: {
13305
13842
  since: "1.18.0",
@@ -14011,11 +14548,13 @@ var BITS = {
14011
14548
  };
14012
14549
 
14013
14550
  // src/config/Config.ts
14551
+ var COLLAPSIBLE_BIT_TYPE_SUFFIX = "-collapsible";
14014
14552
  var Config = class {
14015
14553
  constructor() {
14016
14554
  __publicField(this, "bitLevelMin", 1);
14017
14555
  __publicField(this, "bitLevelMax", 7);
14018
14556
  __publicField(this, "bitCache", /* @__PURE__ */ new Map());
14557
+ __publicField(this, "migratedBitCache", /* @__PURE__ */ new Map());
14019
14558
  __publicField(this, "allResourcesCache");
14020
14559
  __publicField(this, "comboResourcesCache", /* @__PURE__ */ new Map());
14021
14560
  }
@@ -14031,6 +14570,29 @@ var Config = class {
14031
14570
  if (bitType?.startsWith("|")) bitType = bitType.substring(1);
14032
14571
  return Enum3(BitType2).fromValue(bitType) ?? BitType2._error;
14033
14572
  }
14573
+ /**
14574
+ * PLAN-017: Return the migration target for a deprecated `*-collapsible` bit type.
14575
+ *
14576
+ * Every `*-collapsible` bit type declares its non-collapsible cousin as its `baseBitType`, so the
14577
+ * target is read from the config rather than a hand-maintained table — a new `*-collapsible` bit
14578
+ * type is covered automatically.
14579
+ *
14580
+ * `BitType.collapsible` is the one exclusion: it has no non-collapsible cousin (its `baseBitType`
14581
+ * is `article`, which is not a migration target).
14582
+ *
14583
+ * @param bitType the bit type
14584
+ * @returns the bit type to migrate to, or undefined if the bit type does not migrate
14585
+ */
14586
+ getMigratedBitType(bitType) {
14587
+ const cached = this.migratedBitCache.get(bitType);
14588
+ if (cached !== void 0 || this.migratedBitCache.has(bitType)) return cached;
14589
+ let target;
14590
+ if (bitType !== BitType2.collapsible && bitType.endsWith(COLLAPSIBLE_BIT_TYPE_SUFFIX)) {
14591
+ target = BITS[bitType]?.baseBitType;
14592
+ }
14593
+ this.migratedBitCache.set(bitType, target);
14594
+ return target;
14595
+ }
14034
14596
  /**
14035
14597
  * Check if a bit type is and instance of the given root bit type.
14036
14598
  *
@@ -14353,7 +14915,7 @@ var instance2 = new Config();
14353
14915
  // src/generated/package_info.ts
14354
14916
  var PACKAGE_INFO = {
14355
14917
  "name": "@gmb/bitmark-parser-generator",
14356
- "version": "5.36.0",
14918
+ "version": "5.38.0",
14357
14919
  "author": "Get More Brain Ltd",
14358
14920
  "license": "ISC",
14359
14921
  "description": "A bitmark parser and generator using Peggy.js"
@@ -14707,6 +15269,10 @@ var NodeType = {
14707
15269
  // unknown
14708
15270
  __isDefaultExample: "__isDefaultExample",
14709
15271
  __typeAlias: "__typeAlias",
15272
+ accessibilityGroupTag: "accessibilityGroupTag",
15273
+ accessibilityGroupTagValue: "accessibilityGroupTagValue",
15274
+ accessibilityTag: "accessibilityTag",
15275
+ accessibilityTagValue: "accessibilityTagValue",
14710
15276
  action: "action",
14711
15277
  actionValue: "actionValue",
14712
15278
  activityType: "activityType",
@@ -15412,6 +15978,8 @@ var NodeType = {
15412
15978
  type: "type",
15413
15979
  unit: "unit",
15414
15980
  unitAbbr: "unitAbbr",
15981
+ unitAbbrPlural: "unitAbbrPlural",
15982
+ unitPlural: "unitPlural",
15415
15983
  url: "url",
15416
15984
  validationDate: "validationDate",
15417
15985
  validationDateValue: "validationDateValue",
@@ -27029,6 +27597,12 @@ var BaseBuilder = class {
27029
27597
  case TagFormat.plainText:
27030
27598
  if (instance6.asNumber(v) != null) v = `${v}`;
27031
27599
  return stringUtils.isString(v) ? stringUtils.trimmedString(v) : void 0;
27600
+ case TagFormat.enumeration: {
27601
+ if (instance6.asNumber(v) != null) v = `${v}`;
27602
+ const enumValue = stringUtils.isString(v) ? stringUtils.trimmedString(v) : void 0;
27603
+ if (enumValue == null || enumValue === "") return propertyConfig?.defaultValue ?? "";
27604
+ return enumValue;
27605
+ }
27032
27606
  case TagFormat.number:
27033
27607
  return instance6.asNumber(v);
27034
27608
  case TagFormat.boolean:
@@ -28587,8 +29161,18 @@ var Builder = class extends BaseBuilder {
28587
29161
  */
28588
29162
  buildBit(data, options) {
28589
29163
  data = structuredClone(data);
29164
+ const migratedBitType = instance2.getMigratedBitType(data.bitType);
29165
+ if (migratedBitType) {
29166
+ data.bitType = migratedBitType;
29167
+ data.isCollapsible = data.isCollapsible ?? true;
29168
+ }
28590
29169
  const bitType = data.bitType;
28591
29170
  const bitConfig = instance2.getBitConfig(bitType);
29171
+ const isCollapsibleDefaultsTrue = bitConfig.tags[ConfigKey.property_isCollapsible]?.defaultValue === "true";
29172
+ const accessibilityGroupTag = this.resolveAccessibilityGroupTag(
29173
+ bitConfig,
29174
+ data.accessibilityGroupTag
29175
+ );
28592
29176
  const deprecatedTextFormat = Enum7(DeprecatedTextFormat).fromValue(data.textFormat);
28593
29177
  let textFormat = Enum7(TextFormat2).fromValue(data.textFormat) ?? bitConfig.textFormatDefault;
28594
29178
  if (deprecatedTextFormat === DeprecatedTextFormat.bitmarkMinusMinus) {
@@ -28824,6 +29408,13 @@ var Builder = class extends BaseBuilder {
28824
29408
  slug: this.toAstProperty(bitType, ConfigKey.property_slug, data.slug, options),
28825
29409
  tag: this.toAstProperty(bitType, ConfigKey.property_tag, data.tag, options),
28826
29410
  groupTag: this.buildGroupTags(context, data.groupTag),
29411
+ accessibilityTag: this.toAstProperty(
29412
+ bitType,
29413
+ ConfigKey.property_accessibilityTag,
29414
+ data.accessibilityTag,
29415
+ options
29416
+ ),
29417
+ accessibilityGroupTag: this.buildGroupTags(context, accessibilityGroupTag),
28827
29418
  reviewTag: this.toAstProperty(bitType, ConfigKey.property_reviewTag, data.reviewTag, options),
28828
29419
  reviewerTag: this.toAstProperty(
28829
29420
  bitType,
@@ -29721,7 +30312,7 @@ var Builder = class extends BaseBuilder {
29721
30312
  isCollapsible: this.toAstProperty(
29722
30313
  bitType,
29723
30314
  ConfigKey.property_isCollapsible,
29724
- data.isCollapsible,
30315
+ data.isCollapsible ?? (isCollapsibleDefaultsTrue ? true : void 0),
29725
30316
  options
29726
30317
  ),
29727
30318
  anchor: data.anchor,
@@ -29876,6 +30467,26 @@ var Builder = class extends BaseBuilder {
29876
30467
  });
29877
30468
  return node;
29878
30469
  }
30470
+ /**
30471
+ * Resolve the accessibilityGroupTag data, materialising the bit type's default when absent.
30472
+ *
30473
+ * PLAN-019: `group_accessibilityDecorative` re-declares `@accessibilityGroupTag` with a
30474
+ * `defaultValue`, and its chained `@accessibilityTag` likewise. When the bit carries no
30475
+ * authored value, synthesize the default group so it reaches both generators. An authored
30476
+ * value always wins.
30477
+ *
30478
+ * @param bitConfig - the resolved config for the bit
30479
+ * @param data - authored data for the node, if any
30480
+ * @returns
30481
+ */
30482
+ resolveAccessibilityGroupTag(bitConfig, data) {
30483
+ if (data != null && (!Array.isArray(data) || data.length > 0)) return data;
30484
+ const groupConfig = bitConfig.tags[ConfigKey.property_accessibilityGroupTag];
30485
+ const name = groupConfig?.defaultValue;
30486
+ if (name == null) return data;
30487
+ const tag = groupConfig?.chain?.[ConfigKey.property_accessibilityTag]?.defaultValue;
30488
+ return [{ name, tags: tag != null ? [tag] : [] }];
30489
+ }
29879
30490
  /**
29880
30491
  * Build groupTag[] node
29881
30492
  *
@@ -30490,7 +31101,9 @@ var Builder = class extends BaseBuilder {
30490
31101
  ingredient: this.handleJsonText(context, TextLocation2.tag, data.ingredient),
30491
31102
  quantity: data.quantity ?? 0,
30492
31103
  unit: data.unit ?? "",
31104
+ unitPlural: data.unitPlural ?? "",
30493
31105
  unitAbbr: data.unitAbbr ?? "",
31106
+ unitAbbrPlural: data.unitAbbrPlural ?? "",
30494
31107
  decimalPlaces: data.decimalPlaces ?? 1,
30495
31108
  disableCalculation: data.disableCalculation ?? false,
30496
31109
  item: this.handleJsonText(context, TextLocation2.tag, data.item),
@@ -31087,11 +31700,22 @@ var Builder = class extends BaseBuilder {
31087
31700
  */
31088
31701
  buildServings(_context, data) {
31089
31702
  if (!data) return void 0;
31090
- const { servings, unit, unitAbbr, decimalPlaces, disableCalculation, hint } = data;
31703
+ const {
31704
+ servings,
31705
+ unit,
31706
+ unitPlural,
31707
+ unitAbbr,
31708
+ unitAbbrPlural,
31709
+ decimalPlaces,
31710
+ disableCalculation,
31711
+ hint
31712
+ } = data;
31091
31713
  const node = {
31092
31714
  servings: servings ?? 0,
31093
31715
  unit: unit ?? "",
31716
+ unitPlural: unitPlural ?? "",
31094
31717
  unitAbbr: unitAbbr ?? "",
31718
+ unitAbbrPlural: unitAbbrPlural ?? "",
31095
31719
  decimalPlaces: decimalPlaces ?? 1,
31096
31720
  disableCalculation: disableCalculation ?? false,
31097
31721
  hint: hint ?? ""
@@ -31945,6 +32569,29 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
31945
32569
  }
31946
32570
  return false;
31947
32571
  }
32572
+ // bitmarkAst -> bits -> bitsValue -> accessibilityGroupTag
32573
+ enter_accessibilityGroupTag(node, route) {
32574
+ const accessibilityGroupTag = node.value;
32575
+ const parent = this.getParentNode(route);
32576
+ if (parent?.key !== NodeType.bitsValue) return true;
32577
+ for (const gt of accessibilityGroupTag) {
32578
+ const { name, tags: tags2 } = gt;
32579
+ this.writeProperty("accessibilityGroupTag", name, route, {
32580
+ format: TagFormat.plainText,
32581
+ writeEmpty: true
32582
+ });
32583
+ if (tags2 && tags2.length > 0) {
32584
+ for (const t of tags2) {
32585
+ this.writeProperty("accessibilityTag", t, route, {
32586
+ format: TagFormat.plainText,
32587
+ writeEmpty: true,
32588
+ forceChain: true
32589
+ });
32590
+ }
32591
+ }
32592
+ }
32593
+ return false;
32594
+ }
31948
32595
  // bitmarkAst -> bits -> bitsValue -> labelTrue / labelFalse
31949
32596
  leaf_labelTrue(node, route) {
31950
32597
  const value = node.value;
@@ -32028,7 +32675,16 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
32028
32675
  const nodeValue = node.value;
32029
32676
  const parent = this.getParentNode(route);
32030
32677
  if (parent?.key !== NodeType.bitsValue) return true;
32031
- const { servings, unit, unitAbbr, decimalPlaces, disableCalculation, hint } = nodeValue;
32678
+ const {
32679
+ servings,
32680
+ unit,
32681
+ unitPlural,
32682
+ unitAbbr,
32683
+ unitAbbrPlural,
32684
+ decimalPlaces,
32685
+ disableCalculation,
32686
+ hint
32687
+ } = nodeValue;
32032
32688
  this.writeProperty("servings", servings, route, {
32033
32689
  format: TagFormat.plainText
32034
32690
  });
@@ -32038,12 +32694,24 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
32038
32694
  forceChain: true
32039
32695
  });
32040
32696
  }
32697
+ if (unitPlural != null) {
32698
+ this.writeProperty("unitPlural", unitPlural, route, {
32699
+ format: TagFormat.plainText,
32700
+ forceChain: true
32701
+ });
32702
+ }
32041
32703
  if (unitAbbr != null) {
32042
32704
  this.writeProperty("unitAbbr", unitAbbr, route, {
32043
32705
  format: TagFormat.plainText,
32044
32706
  forceChain: true
32045
32707
  });
32046
32708
  }
32709
+ if (unitAbbrPlural != null) {
32710
+ this.writeProperty("unitAbbrPlural", unitAbbrPlural, route, {
32711
+ format: TagFormat.plainText,
32712
+ forceChain: true
32713
+ });
32714
+ }
32047
32715
  if (decimalPlaces != null) {
32048
32716
  this.writeProperty("decimalPlaces", decimalPlaces, route, {
32049
32717
  format: TagFormat.plainText,
@@ -32890,10 +33558,18 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
32890
33558
  this.writeProperty("unit", ingredient.unit, route, {
32891
33559
  format: TagFormat.plainText
32892
33560
  });
33561
+ if (ingredient.unitPlural != null)
33562
+ this.writeProperty("unitPlural", ingredient.unitPlural, route, {
33563
+ format: TagFormat.plainText
33564
+ });
32893
33565
  if (ingredient.unitAbbr != null)
32894
33566
  this.writeProperty("unitAbbr", ingredient.unitAbbr, route, {
32895
33567
  format: TagFormat.plainText
32896
33568
  });
33569
+ if (ingredient.unitAbbrPlural != null)
33570
+ this.writeProperty("unitAbbrPlural", ingredient.unitAbbrPlural, route, {
33571
+ format: TagFormat.plainText
33572
+ });
32897
33573
  if (ingredient.decimalPlaces != null)
32898
33574
  this.writeProperty("decimalPlaces", ingredient.decimalPlaces, route, {
32899
33575
  format: TagFormat.plainText
@@ -34672,6 +35348,29 @@ var JsonGenerator = class extends AstWalkerGenerator {
34672
35348
  }
34673
35349
  return false;
34674
35350
  }
35351
+ // bitmarkAst -> bits -> bitsValue -> isCollapsible
35352
+ /**
35353
+ * `isCollapsible` is emitted only when explicitly set on the bit — an explicit
35354
+ * `true`/`false` in the source is emitted as-is, and an absent tag yields no
35355
+ * JSON key (the tag is nullable in the config: no default, unset when absent).
35356
+ *
35357
+ * Two exceptions always carry a value: chapter bits default to `false`
35358
+ * (`defaultValue: 'false'` in the bit config, applied in `cleanBitJson()`),
35359
+ * and the deprecated `*-collapsible` bit types default to `true` (materialised
35360
+ * into the AST by the Builder).
35361
+ *
35362
+ * Defining these handlers suppresses the generic property handlers that
35363
+ * `generatePropertyHandlers()` would otherwise install for this tag.
35364
+ */
35365
+ leaf_isCollapsible(node, route) {
35366
+ const parent = this.getParentNode(route);
35367
+ if (parent?.key !== NodeType.bitsValue) return false;
35368
+ if (node.value != null) this.bitJson.isCollapsible = node.value === true;
35369
+ return false;
35370
+ }
35371
+ enter_isCollapsible(node, route) {
35372
+ return this.leaf_isCollapsible(node, route);
35373
+ }
34675
35374
  // bitmarkAst -> bits -> bitsValue -> markConfig
34676
35375
  enter_markConfig(_node, _route) {
34677
35376
  return true;
@@ -38506,7 +39205,9 @@ function parseIngredients(_context, _bitType, cardSet) {
38506
39205
  title: titleArray,
38507
39206
  __instructionString,
38508
39207
  unit,
39208
+ unitPlural,
38509
39209
  unitAbbr,
39210
+ unitAbbrPlural,
38510
39211
  decimalPlaces,
38511
39212
  disableCalculation,
38512
39213
  cardBodyStr,
@@ -38536,7 +39237,9 @@ function parseIngredients(_context, _bitType, cardSet) {
38536
39237
  ingredient: cardBodyStr,
38537
39238
  quantity,
38538
39239
  unit: unit ?? instance3.EMPTY_STRING,
39240
+ unitPlural,
38539
39241
  unitAbbr: unitAbbr ?? instance3.EMPTY_STRING,
39242
+ unitAbbrPlural,
38540
39243
  decimalPlaces: decimalPlaces ?? 1,
38541
39244
  disableCalculation,
38542
39245
  ...tags2
@@ -39038,19 +39741,25 @@ function handleStandardStringExample(context, _content, example, target) {
39038
39741
  }
39039
39742
 
39040
39743
  // src/parser/bitmark/peg/contentProcessors/GroupTagChainContentProcessor.ts
39041
- function groupTagChainContentProcessor(context, _contentDepth, tagsConfig, content, target) {
39744
+ var GROUP_TAG = { groupKey: "groupTag", memberKey: "tag" };
39745
+ var ACCESSIBILITY_GROUP_TAG = {
39746
+ groupKey: "accessibilityGroupTag",
39747
+ memberKey: "accessibilityTag"
39748
+ };
39749
+ function groupTagChainContentProcessor(context, _contentDepth, tagsConfig, content, target, keys = GROUP_TAG) {
39042
39750
  const { value } = content;
39043
- if (context.DEBUG_CHAIN_CONTENT) context.debugPrint("groupTag content", content);
39751
+ const { groupKey, memberKey } = keys;
39752
+ if (context.DEBUG_CHAIN_CONTENT) context.debugPrint(`${groupKey} content`, content);
39044
39753
  const tags2 = context.bitContentProcessor(ContentDepth.Chain, tagsConfig, content.chain);
39045
- if (context.DEBUG_CHAIN_TAGS) context.debugPrint("groupTag TAGS", tags2);
39046
- const { tag } = tags2;
39754
+ if (context.DEBUG_CHAIN_TAGS) context.debugPrint(`${groupKey} TAGS`, tags2);
39755
+ const memberTags = tags2[memberKey];
39047
39756
  const name = stringUtils.trimmedString(value) ?? "";
39048
39757
  const node = {
39049
39758
  name,
39050
- tags: tag ?? []
39759
+ tags: memberTags ?? []
39051
39760
  };
39052
- if (!Array.isArray(target.groupTag)) target.groupTag = [];
39053
- target.groupTag.push(node);
39761
+ if (!Array.isArray(target[groupKey])) target[groupKey] = [];
39762
+ target[groupKey].push(node);
39054
39763
  }
39055
39764
 
39056
39765
  // src/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.ts
@@ -39207,12 +39916,22 @@ function servingsChainContentProcessor(context, _contentDepth, tagsConfig, conte
39207
39916
  if (context.DEBUG_CHAIN_CONTENT) context.debugPrint("servings content", content);
39208
39917
  const tags2 = context.bitContentProcessor(ContentDepth.Chain, tagsConfig, content.chain);
39209
39918
  if (context.DEBUG_CHAIN_TAGS) context.debugPrint("servings TAGS", tags2);
39210
- const { unit, unitAbbr, decimalPlaces, disableCalculation, __hintString } = tags2;
39919
+ const {
39920
+ unit,
39921
+ unitPlural,
39922
+ unitAbbr,
39923
+ unitAbbrPlural,
39924
+ decimalPlaces,
39925
+ disableCalculation,
39926
+ __hintString
39927
+ } = tags2;
39211
39928
  const servings = instance6.asNumber(content.value) ?? 1;
39212
39929
  const node = {
39213
39930
  servings,
39214
39931
  unit,
39932
+ unitPlural,
39215
39933
  unitAbbr,
39934
+ unitAbbrPlural,
39216
39935
  decimalPlaces: decimalPlaces ?? 1,
39217
39936
  disableCalculation,
39218
39937
  hint: __hintString
@@ -39260,6 +39979,16 @@ function propertyContentProcessor(context, contentDepth, tagsConfig, content, ta
39260
39979
  } else if (configKey === ConfigKey.property_groupTag) {
39261
39980
  groupTagChainContentProcessor(context, contentDepth, propertyConfig.chain, content, target);
39262
39981
  return;
39982
+ } else if (configKey === ConfigKey.property_accessibilityGroupTag) {
39983
+ groupTagChainContentProcessor(
39984
+ context,
39985
+ contentDepth,
39986
+ propertyConfig.chain,
39987
+ content,
39988
+ target,
39989
+ ACCESSIBILITY_GROUP_TAG
39990
+ );
39991
+ return;
39263
39992
  } else if (configKey === ConfigKey.property_ratingLevelStart || configKey === ConfigKey.property_ratingLevelEnd) {
39264
39993
  ratingLevelChainContentProcessor(
39265
39994
  context,
@@ -39312,6 +40041,23 @@ function propertyContentProcessor(context, contentDepth, tagsConfig, content, ta
39312
40041
  location: TextLocation2.tag
39313
40042
  }
39314
40043
  );
40044
+ case TagFormat.enumeration: {
40045
+ const enumValue = instance3.unbreakscape(
40046
+ stringUtils.isString(v2) ? stringUtils.trimmedString(v2) : void 0,
40047
+ {
40048
+ format: TextFormat2.plainText,
40049
+ location: TextLocation2.tag
40050
+ }
40051
+ );
40052
+ if (enumValue == null || enumValue === "") return c.defaultValue ?? "";
40053
+ if (c.values && !c.values.includes(enumValue)) {
40054
+ context.addWarning(
40055
+ `Invalid value '${enumValue}' for property [@${tag}]. Valid values: ${c.values.join(" | ")}`,
40056
+ content
40057
+ );
40058
+ }
40059
+ return enumValue;
40060
+ }
39315
40061
  case TagFormat.number:
39316
40062
  return instance6.asNumber(
39317
40063
  instance3.unbreakscape(v2, {