@gmb/bitmark-parser-generator 1.4.16 → 1.4.18

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.
Files changed (226) hide show
  1. package/dist/browser/bitmark-parser-generator.min.js +1 -1
  2. package/dist/browser/bundle-report.html +2 -2
  3. package/dist/cjs/BitmarkParserGenerator.js +2 -13
  4. package/dist/cjs/BitmarkParserGenerator.js.map +1 -1
  5. package/dist/cjs/ast/Builder.js +8 -8
  6. package/dist/cjs/ast/Builder.js.map +1 -1
  7. package/dist/cjs/ast/rules/NodeValidator.js +6 -23
  8. package/dist/cjs/ast/rules/NodeValidator.js.map +1 -1
  9. package/dist/cjs/config/Config.js +57 -86
  10. package/dist/cjs/config/Config.js.map +1 -1
  11. package/dist/cjs/config/raw/bits.js +388 -450
  12. package/dist/cjs/config/raw/bits.js.map +1 -1
  13. package/dist/cjs/config/raw/properties.js +37 -0
  14. package/dist/cjs/config/raw/properties.js.map +1 -1
  15. package/dist/cjs/generated/build-info.js +1 -1
  16. package/dist/cjs/generator/bitmark/BitmarkGenerator.js +9 -11
  17. package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
  18. package/dist/cjs/generator/json/JsonGenerator.js +236 -208
  19. package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
  20. package/dist/cjs/index.js +2 -3
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/cjs/info/InfoBuilder.js +10 -33
  23. package/dist/cjs/info/InfoBuilder.js.map +1 -1
  24. package/dist/cjs/model/ast/NodeType.js +16 -0
  25. package/dist/cjs/model/ast/NodeType.js.map +1 -1
  26. package/dist/cjs/model/config/BitConfig.js +8 -7
  27. package/dist/cjs/model/config/BitConfig.js.map +1 -1
  28. package/dist/cjs/model/config/enum/PropertyConfigKey.js +7 -0
  29. package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
  30. package/dist/cjs/model/enum/BitType.js +86 -84
  31. package/dist/cjs/model/enum/BitType.js.map +1 -1
  32. package/dist/cjs/model/enum/PropertyAstKey.js +2 -0
  33. package/dist/cjs/model/enum/PropertyAstKey.js.map +1 -1
  34. package/dist/cjs/model/enum/PropertyTag.js +5 -0
  35. package/dist/cjs/model/enum/PropertyTag.js.map +1 -1
  36. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +14 -14
  37. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
  38. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +6 -6
  39. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
  40. package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
  41. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +11 -10
  42. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  43. package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
  44. package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
  45. package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +52 -47
  46. package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
  47. package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
  48. package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
  49. package/dist/cjs/parser/bitmark/peg/contentProcessors/{CommentTagContentProcessor.js → InternalCommentTagContentProcessor.js} +5 -5
  50. package/dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +1 -0
  51. package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
  52. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
  53. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
  54. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +1 -1
  55. package/dist/cjs/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js.map +1 -1
  56. package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +2 -2
  57. package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
  58. package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
  59. package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
  60. package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +15 -17
  61. package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
  62. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +14 -11
  63. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
  64. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
  65. package/dist/cjs/parser/json/JsonParser.js +9 -9
  66. package/dist/cjs/parser/json/JsonParser.js.map +1 -1
  67. package/dist/cjs/utils/ObjectUtils.js +62 -0
  68. package/dist/cjs/utils/ObjectUtils.js.map +1 -1
  69. package/dist/esm/BitmarkParserGenerator.js +2 -13
  70. package/dist/esm/BitmarkParserGenerator.js.map +1 -1
  71. package/dist/esm/ast/Builder.js +9 -9
  72. package/dist/esm/ast/Builder.js.map +1 -1
  73. package/dist/esm/ast/rules/NodeValidator.js +6 -23
  74. package/dist/esm/ast/rules/NodeValidator.js.map +1 -1
  75. package/dist/esm/config/Config.js +57 -86
  76. package/dist/esm/config/Config.js.map +1 -1
  77. package/dist/esm/config/raw/bits.js +389 -451
  78. package/dist/esm/config/raw/bits.js.map +1 -1
  79. package/dist/esm/config/raw/properties.js +37 -0
  80. package/dist/esm/config/raw/properties.js.map +1 -1
  81. package/dist/esm/generated/build-info.js +1 -1
  82. package/dist/esm/generator/bitmark/BitmarkGenerator.js +10 -12
  83. package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
  84. package/dist/esm/generator/json/JsonGenerator.js +237 -209
  85. package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
  86. package/dist/esm/index.js +1 -1
  87. package/dist/esm/index.js.map +1 -1
  88. package/dist/esm/info/InfoBuilder.js +11 -34
  89. package/dist/esm/info/InfoBuilder.js.map +1 -1
  90. package/dist/esm/model/ast/NodeType.js +16 -0
  91. package/dist/esm/model/ast/NodeType.js.map +1 -1
  92. package/dist/esm/model/config/BitConfig.js +8 -7
  93. package/dist/esm/model/config/BitConfig.js.map +1 -1
  94. package/dist/esm/model/config/enum/PropertyConfigKey.js +7 -0
  95. package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
  96. package/dist/esm/model/enum/BitType.js +85 -82
  97. package/dist/esm/model/enum/BitType.js.map +1 -1
  98. package/dist/esm/model/enum/PropertyAstKey.js +2 -0
  99. package/dist/esm/model/enum/PropertyAstKey.js.map +1 -1
  100. package/dist/esm/model/enum/PropertyTag.js +5 -0
  101. package/dist/esm/model/enum/PropertyTag.js.map +1 -1
  102. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +15 -15
  103. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
  104. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +6 -6
  105. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
  106. package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
  107. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +12 -11
  108. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  109. package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
  110. package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
  111. package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +53 -48
  112. package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
  113. package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
  114. package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
  115. package/dist/esm/parser/bitmark/peg/contentProcessors/{CommentTagContentProcessor.js → InternalCommentTagContentProcessor.js} +5 -5
  116. package/dist/esm/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +1 -0
  117. package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
  118. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
  119. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
  120. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +1 -1
  121. package/dist/esm/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js.map +1 -1
  122. package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +2 -2
  123. package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
  124. package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
  125. package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
  126. package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +16 -18
  127. package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
  128. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +15 -12
  129. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
  130. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
  131. package/dist/esm/parser/json/JsonParser.js +10 -10
  132. package/dist/esm/parser/json/JsonParser.js.map +1 -1
  133. package/dist/esm/utils/ObjectUtils.js +59 -0
  134. package/dist/esm/utils/ObjectUtils.js.map +1 -1
  135. package/dist/types/BitmarkParserGenerator.d.ts.map +1 -1
  136. package/dist/types/ast/Builder.d.ts +9 -2
  137. package/dist/types/ast/Builder.d.ts.map +1 -1
  138. package/dist/types/ast/rules/NodeValidator.d.ts +0 -1
  139. package/dist/types/ast/rules/NodeValidator.d.ts.map +1 -1
  140. package/dist/types/config/Config.d.ts +16 -28
  141. package/dist/types/config/Config.d.ts.map +1 -1
  142. package/dist/types/config/raw/bits.d.ts.map +1 -1
  143. package/dist/types/config/raw/properties.d.ts.map +1 -1
  144. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +4 -4
  145. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
  146. package/dist/types/generator/json/JsonGenerator.d.ts +22 -22
  147. package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
  148. package/dist/types/generator/text/TextGenerator.d.ts +2 -2
  149. package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
  150. package/dist/types/index.d.ts +2 -2
  151. package/dist/types/index.d.ts.map +1 -1
  152. package/dist/types/info/InfoBuilder.d.ts +3 -4
  153. package/dist/types/info/InfoBuilder.d.ts.map +1 -1
  154. package/dist/types/model/ast/NodeType.d.ts +32 -0
  155. package/dist/types/model/ast/NodeType.d.ts.map +1 -1
  156. package/dist/types/model/ast/Nodes.d.ts +9 -2
  157. package/dist/types/model/ast/Nodes.d.ts.map +1 -1
  158. package/dist/types/model/config/BitConfig.d.ts +5 -4
  159. package/dist/types/model/config/BitConfig.d.ts.map +1 -1
  160. package/dist/types/model/config/_Config.d.ts +3 -5
  161. package/dist/types/model/config/_Config.d.ts.map +1 -1
  162. package/dist/types/model/config/enum/ConfigKey.d.ts +14 -0
  163. package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
  164. package/dist/types/model/config/enum/PropertyConfigKey.d.ts +21 -0
  165. package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
  166. package/dist/types/model/enum/BitType.d.ts +171 -178
  167. package/dist/types/model/enum/BitType.d.ts.map +1 -1
  168. package/dist/types/model/enum/PropertyAstKey.d.ts +4 -0
  169. package/dist/types/model/enum/PropertyAstKey.d.ts.map +1 -1
  170. package/dist/types/model/enum/PropertyTag.d.ts +10 -0
  171. package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
  172. package/dist/types/model/json/BitJson.d.ts +5 -0
  173. package/dist/types/model/json/BitJson.d.ts.map +1 -1
  174. package/dist/types/model/json/ParserJson.d.ts +1 -1
  175. package/dist/types/model/json/ParserJson.d.ts.map +1 -1
  176. package/dist/types/parser/bitmark/peg/BitmarkPegParserProcessor.d.ts.map +1 -1
  177. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +6 -6
  178. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
  179. package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts +6 -6
  180. package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
  181. package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts +2 -2
  182. package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +1 -1
  183. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts +2 -2
  184. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
  185. package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts +2 -2
  186. package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +1 -1
  187. package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts +2 -2
  188. package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +1 -1
  189. package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts +2 -2
  190. package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts.map +1 -1
  191. package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts +2 -2
  192. package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts.map +1 -1
  193. package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts +2 -2
  194. package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +1 -1
  195. package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts +5 -0
  196. package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts.map +1 -0
  197. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts +2 -2
  198. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map +1 -1
  199. package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts +2 -2
  200. package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts.map +1 -1
  201. package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts +2 -2
  202. package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +1 -1
  203. package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts +2 -2
  204. package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts.map +1 -1
  205. package/dist/types/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.d.ts +2 -2
  206. package/dist/types/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.d.ts.map +1 -1
  207. package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts +2 -2
  208. package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
  209. package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts +2 -2
  210. package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +1 -1
  211. package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +3 -3
  212. package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +1 -1
  213. package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts +3 -3
  214. package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts.map +1 -1
  215. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts +2 -2
  216. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map +1 -1
  217. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts +2 -2
  218. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +1 -1
  219. package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
  220. package/dist/types/utils/ObjectUtils.d.ts +9 -0
  221. package/dist/types/utils/ObjectUtils.d.ts.map +1 -1
  222. package/package.json +3 -1
  223. package/dist/cjs/parser/bitmark/peg/contentProcessors/CommentTagContentProcessor.js.map +0 -1
  224. package/dist/esm/parser/bitmark/peg/contentProcessors/CommentTagContentProcessor.js.map +0 -1
  225. package/dist/types/parser/bitmark/peg/contentProcessors/CommentTagContentProcessor.d.ts +0 -5
  226. package/dist/types/parser/bitmark/peg/contentProcessors/CommentTagContentProcessor.d.ts.map +0 -1
@@ -3,20 +3,20 @@ import { GroupConfigKey } from '../../model/config/enum/GroupConfigKey';
3
3
  import { PropertyConfigKey } from '../../model/config/enum/PropertyConfigKey';
4
4
  import { TagConfigKey } from '../../model/config/enum/TagConfigKey';
5
5
  import { BitTagType } from '../../model/enum/BitTagType';
6
- import { AliasBitType, RootBitType } from '../../model/enum/BitType';
6
+ import { BitType } from '../../model/enum/BitType';
7
7
  import { Count } from '../../model/enum/Count';
8
8
  import { ExampleType } from '../../model/enum/ExampleType';
9
9
  import { TextFormat } from '../../model/enum/TextFormat';
10
10
  const BITS = {
11
- [RootBitType._error]: {
11
+ [BitType._error]: {
12
12
  since: '1.3.0',
13
13
  tags: [],
14
14
  },
15
- [RootBitType._comment]: {
15
+ [BitType._comment]: {
16
16
  since: '1.4.12',
17
17
  tags: [],
18
18
  },
19
- [RootBitType.appFlashcards]: {
19
+ [BitType.appFlashcards]: {
20
20
  since: '1.3.0',
21
21
  tags: [
22
22
  {
@@ -36,12 +36,10 @@ const BITS = {
36
36
  resourceAttachmentAllowed: true,
37
37
  bodyAllowed: true,
38
38
  rootExampleType: ExampleType.string,
39
- aliases: {
40
- [AliasBitType.appFlashcardsQuiz]: { since: '1.3.0' },
41
- [AliasBitType.appFlashcardsLearn]: { since: '1.3.0' },
42
- },
43
39
  },
44
- [RootBitType.appLink]: {
40
+ [BitType.appFlashcardsQuiz]: { since: '1.3.0', baseBitType: BitType.appFlashcards },
41
+ [BitType.appFlashcardsLearn]: { since: '1.3.0', baseBitType: BitType.appFlashcards },
42
+ [BitType.appLink]: {
45
43
  since: '1.3.0',
46
44
  tags: [
47
45
  {
@@ -56,7 +54,7 @@ const BITS = {
56
54
  ],
57
55
  bodyAllowed: false,
58
56
  },
59
- [RootBitType.article]: {
57
+ [BitType.article]: {
60
58
  since: '1.3.0',
61
59
  tags: [
62
60
  {
@@ -70,12 +68,10 @@ const BITS = {
70
68
  ],
71
69
  resourceAttachmentAllowed: true,
72
70
  bodyAllowed: true,
73
- aliases: {
74
- [AliasBitType.statement]: { since: '1.3.0' },
75
- [AliasBitType.buttonCopyText]: { since: '1.4.3' },
76
- },
77
71
  },
78
- [RootBitType.appBitmarkFromJavascript]: {
72
+ [BitType.statement]: { since: '1.3.0', baseBitType: BitType.article },
73
+ [BitType.buttonCopyText]: { since: '1.4.3', baseBitType: BitType.article },
74
+ [BitType.appBitmarkFromJavascript]: {
79
75
  since: '1.4.5',
80
76
  tags: [
81
77
  {
@@ -90,11 +86,9 @@ const BITS = {
90
86
  textFormatDefault: TextFormat.text,
91
87
  resourceAttachmentAllowed: true,
92
88
  bodyAllowed: true,
93
- aliases: {
94
- [AliasBitType.appBitmarkFromEditor]: { since: '1.4.5' },
95
- },
96
89
  },
97
- [RootBitType.articleEmbed]: {
90
+ [BitType.appBitmarkFromEditor]: { since: '1.4.5', baseBitType: BitType.appBitmarkFromJavascript },
91
+ [BitType.articleEmbed]: {
98
92
  since: '1.3.0',
99
93
  tags: [
100
94
  {
@@ -109,7 +103,7 @@ const BITS = {
109
103
  ],
110
104
  bodyAllowed: true,
111
105
  },
112
- [RootBitType.articleLink]: {
106
+ [BitType.articleLink]: {
113
107
  since: '1.3.0',
114
108
  tags: [
115
109
  {
@@ -124,7 +118,7 @@ const BITS = {
124
118
  ],
125
119
  bodyAllowed: true,
126
120
  },
127
- [RootBitType.audio]: {
121
+ [BitType.audio]: {
128
122
  since: '1.3.0',
129
123
  tags: [
130
124
  {
@@ -139,7 +133,7 @@ const BITS = {
139
133
  ],
140
134
  bodyAllowed: true,
141
135
  },
142
- [RootBitType.audioEmbed]: {
136
+ [BitType.audioEmbed]: {
143
137
  since: '1.3.0',
144
138
  tags: [
145
139
  {
@@ -154,7 +148,7 @@ const BITS = {
154
148
  ],
155
149
  bodyAllowed: true,
156
150
  },
157
- [RootBitType.audioLink]: {
151
+ [BitType.audioLink]: {
158
152
  since: '1.3.0',
159
153
  tags: [
160
154
  {
@@ -169,7 +163,7 @@ const BITS = {
169
163
  ],
170
164
  bodyAllowed: true,
171
165
  },
172
- [RootBitType.bitAlias]: {
166
+ [BitType.bitAlias]: {
173
167
  since: '1.3.0',
174
168
  tags: [
175
169
  {
@@ -187,7 +181,7 @@ const BITS = {
187
181
  ],
188
182
  bodyAllowed: true,
189
183
  },
190
- [RootBitType.book]: {
184
+ [BitType.book]: {
191
185
  since: '1.3.0',
192
186
  tags: [
193
187
  {
@@ -200,60 +194,50 @@ const BITS = {
200
194
  },
201
195
  ],
202
196
  bodyAllowed: true,
203
- aliases: {
204
- [AliasBitType.bookAcknowledgments]: { since: '1.3.0' },
205
- [AliasBitType.bookAddendum]: { since: '1.3.0' },
206
- [AliasBitType.bookAfterword]: { since: '1.3.0' },
207
- [AliasBitType.bookAppendix]: { since: '1.3.0' },
208
- [AliasBitType.bookArticle]: { since: '1.3.0' },
209
- [AliasBitType.bookAutherBio]: { since: '1.3.0' },
210
- [AliasBitType.bookBibliography]: { since: '1.3.0' },
211
- [AliasBitType.bookComingSoon]: { since: '1.3.0' },
212
- [AliasBitType.bookConclusion]: { since: '1.3.0' },
213
- [AliasBitType.bookCopyright]: { since: '1.3.0' },
214
- [AliasBitType.bookCopyrightPermissions]: { since: '1.3.0' },
215
- [AliasBitType.bookDedication]: { since: '1.3.0' },
216
- [AliasBitType.bookEndnotes]: { since: '1.3.0' },
217
- [AliasBitType.bookEpigraph]: { since: '1.3.0' },
218
- [AliasBitType.bookEpilogue]: { since: '1.3.0' },
219
- [AliasBitType.bookForword]: { since: '1.3.0' },
220
- [AliasBitType.bookFrontispiece]: { since: '1.3.0' },
221
- [AliasBitType.bookImprint]: { since: '1.3.0' },
222
- [AliasBitType.bookIncitingIncident]: { since: '1.3.0' },
223
- [AliasBitType.bookIntroduction]: { since: '1.3.0' },
224
- [AliasBitType.bookListOfContributors]: { since: '1.3.0' },
225
- [AliasBitType.bookNotes]: { since: '1.3.0' },
226
- [AliasBitType.bookPostscript]: { since: '1.3.0' },
227
- [AliasBitType.bookPreface]: { since: '1.3.0' },
228
- [AliasBitType.bookPrologue]: { since: '1.3.0' },
229
- [AliasBitType.bookReadMore]: { since: '1.3.0' },
230
- [AliasBitType.bookReferenceList]: { since: '1.3.0' },
231
- [AliasBitType.bookRequestForABookReview]: { since: '1.3.0' },
232
- [AliasBitType.bookSummary]: { since: '1.3.0' },
233
- [AliasBitType.bookTeaser]: { since: '1.3.0' },
234
- [AliasBitType.bookTitle]: { since: '1.3.0' },
235
- },
236
- },
237
- [RootBitType.bookAlias]: {
197
+ },
198
+ [BitType.bookAcknowledgments]: { since: '1.3.0', baseBitType: BitType.book },
199
+ [BitType.bookAddendum]: { since: '1.3.0', baseBitType: BitType.book },
200
+ [BitType.bookAfterword]: { since: '1.3.0', baseBitType: BitType.book },
201
+ [BitType.bookAppendix]: { since: '1.3.0', baseBitType: BitType.book },
202
+ [BitType.bookArticle]: { since: '1.3.0', baseBitType: BitType.book },
203
+ [BitType.bookAutherBio]: { since: '1.3.0', baseBitType: BitType.book },
204
+ [BitType.bookBibliography]: { since: '1.3.0', baseBitType: BitType.book },
205
+ [BitType.bookComingSoon]: { since: '1.3.0', baseBitType: BitType.book },
206
+ [BitType.bookConclusion]: { since: '1.3.0', baseBitType: BitType.book },
207
+ [BitType.bookCopyright]: { since: '1.3.0', baseBitType: BitType.book },
208
+ [BitType.bookCopyrightPermissions]: { since: '1.3.0', baseBitType: BitType.book },
209
+ [BitType.bookDedication]: { since: '1.3.0', baseBitType: BitType.book },
210
+ [BitType.bookEndnotes]: { since: '1.3.0', baseBitType: BitType.book },
211
+ [BitType.bookEpigraph]: { since: '1.3.0', baseBitType: BitType.book },
212
+ [BitType.bookEpilogue]: { since: '1.3.0', baseBitType: BitType.book },
213
+ [BitType.bookForword]: { since: '1.3.0', baseBitType: BitType.book },
214
+ [BitType.bookFrontispiece]: { since: '1.3.0', baseBitType: BitType.book },
215
+ [BitType.bookImprint]: { since: '1.3.0', baseBitType: BitType.book },
216
+ [BitType.bookIncitingIncident]: { since: '1.3.0', baseBitType: BitType.book },
217
+ [BitType.bookIntroduction]: { since: '1.3.0', baseBitType: BitType.book },
218
+ [BitType.bookListOfContributors]: { since: '1.3.0', baseBitType: BitType.book },
219
+ [BitType.bookNotes]: { since: '1.3.0', baseBitType: BitType.book },
220
+ [BitType.bookPostscript]: { since: '1.3.0', baseBitType: BitType.book },
221
+ [BitType.bookPreface]: { since: '1.3.0', baseBitType: BitType.book },
222
+ [BitType.bookPrologue]: { since: '1.3.0', baseBitType: BitType.book },
223
+ [BitType.bookReadMore]: { since: '1.3.0', baseBitType: BitType.book },
224
+ [BitType.bookReferenceList]: { since: '1.3.0', baseBitType: BitType.book },
225
+ [BitType.bookRequestForABookReview]: { since: '1.3.0', baseBitType: BitType.book },
226
+ [BitType.bookSummary]: { since: '1.3.0', baseBitType: BitType.book },
227
+ [BitType.bookTeaser]: { since: '1.3.0', baseBitType: BitType.book },
228
+ [BitType.bookTitle]: { since: '1.3.0', baseBitType: BitType.book },
229
+ [BitType.bookAlias]: {
238
230
  since: '1.4.3',
231
+ baseBitType: BitType.book,
239
232
  tags: [
240
- {
241
- type: BitTagType.group,
242
- configKey: GroupConfigKey.group_standardTags,
243
- },
244
- {
245
- type: BitTagType.group,
246
- configKey: GroupConfigKey.group_bookCommon,
247
- },
248
233
  {
249
234
  type: BitTagType.property,
250
235
  configKey: PropertyConfigKey.bookAlias,
251
236
  maxCount: Count.infinity,
252
237
  },
253
238
  ],
254
- bodyAllowed: true,
255
239
  },
256
- [RootBitType.botActionResponse]: {
240
+ [BitType.botActionResponse]: {
257
241
  since: '1.3.0',
258
242
  tags: [
259
243
  {
@@ -265,7 +249,7 @@ const BITS = {
265
249
  bodyAllowed: true,
266
250
  footerAllowed: true,
267
251
  },
268
- [RootBitType.botActionSend]: {
252
+ [BitType.botActionSend]: {
269
253
  since: '1.3.0',
270
254
  tags: [
271
255
  {
@@ -279,18 +263,10 @@ const BITS = {
279
263
  ],
280
264
  bodyAllowed: true,
281
265
  },
282
- [RootBitType.browserImage]: {
266
+ [BitType.browserImage]: {
283
267
  since: '1.3.0',
268
+ baseBitType: BitType.image,
284
269
  tags: [
285
- {
286
- type: BitTagType.group,
287
- configKey: GroupConfigKey.group_standardTags,
288
- },
289
- {
290
- type: BitTagType.group,
291
- configKey: GroupConfigKey.group_resourceImage,
292
- minCount: 1,
293
- },
294
270
  {
295
271
  type: BitTagType.property,
296
272
  configKey: PropertyConfigKey.focusX,
@@ -300,9 +276,8 @@ const BITS = {
300
276
  configKey: PropertyConfigKey.focusY,
301
277
  },
302
278
  ],
303
- bodyAllowed: true,
304
279
  },
305
- [RootBitType.card1]: {
280
+ [BitType.card1]: {
306
281
  since: '1.3.0',
307
282
  tags: [
308
283
  {
@@ -312,13 +287,11 @@ const BITS = {
312
287
  ],
313
288
  resourceAttachmentAllowed: true,
314
289
  bodyAllowed: true,
315
- aliases: {
316
- [AliasBitType.question1]: { since: '1.3.0' },
317
- [AliasBitType.survey1]: { since: '1.3.0' },
318
- [AliasBitType.surveyAnonymous1]: { since: '1.3.0' },
319
- },
320
290
  },
321
- [RootBitType.chapter]: {
291
+ [BitType.question1]: { since: '1.3.0', baseBitType: BitType.card1 },
292
+ [BitType.survey1]: { since: '1.3.0', baseBitType: BitType.card1 },
293
+ [BitType.surveyAnonymous1]: { since: '1.3.0', baseBitType: BitType.card1 },
294
+ [BitType.chapter]: {
322
295
  since: '1.3.0',
323
296
  tags: [
324
297
  {
@@ -344,7 +317,7 @@ const BITS = {
344
317
  ],
345
318
  bodyAllowed: true,
346
319
  },
347
- [RootBitType.clozeAndMultipleChoiceText]: {
320
+ [BitType.clozeAndMultipleChoiceText]: {
348
321
  since: '1.3.0',
349
322
  tags: [
350
323
  {
@@ -362,11 +335,12 @@ const BITS = {
362
335
  ],
363
336
  resourceAttachmentAllowed: true,
364
337
  bodyAllowed: true,
365
- aliases: {
366
- [AliasBitType.coachCallToActionClozeAndMultipleChoiceText]: { since: '1.3.0' },
367
- },
368
338
  },
369
- [RootBitType.cloze]: {
339
+ [BitType.coachCallToActionClozeAndMultipleChoiceText]: {
340
+ since: '1.3.0',
341
+ baseBitType: BitType.clozeAndMultipleChoiceText,
342
+ },
343
+ [BitType.cloze]: {
370
344
  since: '1.3.0',
371
345
  tags: [
372
346
  {
@@ -380,14 +354,12 @@ const BITS = {
380
354
  ],
381
355
  resourceAttachmentAllowed: true,
382
356
  bodyAllowed: true,
383
- aliases: {
384
- [AliasBitType.clozeInstructionGrouped]: { since: '1.3.0' },
385
- [AliasBitType.clozeSolutionGrouped]: { since: '1.3.0' },
386
- [AliasBitType.coachSelfReflectionCloze]: { since: '1.3.0' },
387
- [AliasBitType.coachCallToActionCloze]: { since: '1.3.0' },
388
- },
389
357
  },
390
- [RootBitType.clozeList]: {
358
+ [BitType.clozeInstructionGrouped]: { since: '1.3.0', baseBitType: BitType.cloze },
359
+ [BitType.clozeSolutionGrouped]: { since: '1.3.0', baseBitType: BitType.cloze },
360
+ [BitType.coachSelfReflectionCloze]: { since: '1.3.0', baseBitType: BitType.cloze },
361
+ [BitType.coachCallToActionCloze]: { since: '1.3.0', baseBitType: BitType.cloze },
362
+ [BitType.clozeList]: {
391
363
  since: '1.4.13',
392
364
  tags: [
393
365
  {
@@ -400,7 +372,7 @@ const BITS = {
400
372
  bodyAllowed: true,
401
373
  footerAllowed: true,
402
374
  },
403
- [RootBitType.code]: {
375
+ [BitType.code]: {
404
376
  since: '1.3.0',
405
377
  tags: [
406
378
  {
@@ -414,17 +386,35 @@ const BITS = {
414
386
  ],
415
387
  textFormatDefault: TextFormat.text,
416
388
  bodyAllowed: true,
417
- aliases: {
418
- [AliasBitType.appCodeCell]: { since: '1.4.3' },
419
- [AliasBitType.appCodeEditor]: { since: '1.4.3' },
420
- [AliasBitType.appCodeIde]: { since: '1.4.3' },
421
- [AliasBitType.codeRuntime]: { since: '1.4.3' },
422
- [AliasBitType.consoleLog]: { since: '1.4.3' },
423
- [AliasBitType.output]: { since: '1.4.3' },
424
- [AliasBitType.stdout]: { since: '1.4.3' },
425
- },
426
389
  },
427
- [RootBitType.conversationLeft1]: {
390
+ [BitType.appCodeCell]: { since: '1.4.3', baseBitType: BitType.code },
391
+ [BitType.appCodeEditor]: { since: '1.4.3', baseBitType: BitType.code },
392
+ [BitType.appCodeIde]: { since: '1.4.3', baseBitType: BitType.code },
393
+ [BitType.codeRuntime]: { since: '1.4.3', baseBitType: BitType.code },
394
+ [BitType.consoleLog]: { since: '1.4.3', baseBitType: BitType.code },
395
+ [BitType.output]: { since: '1.4.3', baseBitType: BitType.code },
396
+ [BitType.stdout]: { since: '1.4.3', baseBitType: BitType.code },
397
+ [BitType.step]: { since: '1.5.0', baseBitType: BitType.example },
398
+ [BitType.stepImageScreenshot]: { since: '1.5.0', baseBitType: BitType.image },
399
+ [BitType.stepImageScreenshotWithPointer]: {
400
+ since: '1.5.0',
401
+ baseBitType: BitType.image,
402
+ tags: [
403
+ {
404
+ type: BitTagType.property,
405
+ configKey: PropertyConfigKey.pointerTop,
406
+ minCount: 1,
407
+ maxCount: 1,
408
+ },
409
+ {
410
+ type: BitTagType.property,
411
+ configKey: PropertyConfigKey.pointerLeft,
412
+ minCount: 1,
413
+ maxCount: 1,
414
+ },
415
+ ],
416
+ },
417
+ [BitType.conversationLeft1]: {
428
418
  since: '1.3.0',
429
419
  tags: [
430
420
  {
@@ -438,15 +428,13 @@ const BITS = {
438
428
  ],
439
429
  resourceAttachmentAllowed: true,
440
430
  bodyAllowed: true,
441
- aliases: {
442
- [AliasBitType.conversationLeft1Scream]: { since: '1.3.0' },
443
- [AliasBitType.conversationLeft1Thought]: { since: '1.3.0' },
444
- [AliasBitType.conversationRight1]: { since: '1.3.0' },
445
- [AliasBitType.conversationRight1Scream]: { since: '1.3.0' },
446
- [AliasBitType.conversationRight1Thought]: { since: '1.3.0' },
447
- },
448
431
  },
449
- [RootBitType.document]: {
432
+ [BitType.conversationLeft1Scream]: { since: '1.3.0', baseBitType: BitType.conversationLeft1 },
433
+ [BitType.conversationLeft1Thought]: { since: '1.3.0', baseBitType: BitType.conversationLeft1 },
434
+ [BitType.conversationRight1]: { since: '1.3.0', baseBitType: BitType.conversationLeft1 },
435
+ [BitType.conversationRight1Scream]: { since: '1.3.0', baseBitType: BitType.conversationLeft1 },
436
+ [BitType.conversationRight1Thought]: { since: '1.3.0', baseBitType: BitType.conversationLeft1 },
437
+ [BitType.document]: {
450
438
  since: '1.3.0',
451
439
  tags: [
452
440
  {
@@ -461,7 +449,7 @@ const BITS = {
461
449
  ],
462
450
  bodyAllowed: true,
463
451
  },
464
- [RootBitType.documentDownload]: {
452
+ [BitType.documentDownload]: {
465
453
  since: '1.3.0',
466
454
  tags: [
467
455
  {
@@ -476,7 +464,7 @@ const BITS = {
476
464
  ],
477
465
  bodyAllowed: true,
478
466
  },
479
- [RootBitType.documentEmbed]: {
467
+ [BitType.documentEmbed]: {
480
468
  since: '1.3.0',
481
469
  tags: [
482
470
  {
@@ -491,7 +479,7 @@ const BITS = {
491
479
  ],
492
480
  bodyAllowed: true,
493
481
  },
494
- [RootBitType.documentLink]: {
482
+ [BitType.documentLink]: {
495
483
  since: '1.3.0',
496
484
  tags: [
497
485
  {
@@ -506,7 +494,7 @@ const BITS = {
506
494
  ],
507
495
  bodyAllowed: true,
508
496
  },
509
- [RootBitType.essay]: {
497
+ [BitType.essay]: {
510
498
  since: '1.3.0',
511
499
  tags: [
512
500
  {
@@ -534,12 +522,10 @@ const BITS = {
534
522
  resourceAttachmentAllowed: true,
535
523
  bodyAllowed: true,
536
524
  rootExampleType: ExampleType.string,
537
- aliases: {
538
- [AliasBitType.coachSelfReflectionEssay]: { since: '1.3.0' },
539
- [AliasBitType.coachCallToActionEssay]: { since: '1.3.0' },
540
- },
541
525
  },
542
- [RootBitType.example]: {
526
+ [BitType.coachSelfReflectionEssay]: { since: '1.3.0', baseBitType: BitType.essay },
527
+ [BitType.coachCallToActionEssay]: { since: '1.3.0', baseBitType: BitType.essay },
528
+ [BitType.example]: {
543
529
  since: '1.3.0',
544
530
  tags: [
545
531
  {
@@ -554,105 +540,92 @@ const BITS = {
554
540
  resourceAttachmentAllowed: true,
555
541
  bodyAllowed: true,
556
542
  rootExampleType: ExampleType.string,
557
- aliases: {
558
- [AliasBitType.appAiPrompt]: { since: '1.3.0' },
559
- [AliasBitType.aiPrompt]: { since: '1.3.0' },
560
- [AliasBitType.articleAi]: { since: '1.3.0' },
561
- [AliasBitType.articleAttachment]: { since: '1.3.0' },
562
- [AliasBitType.assignment]: { since: '1.3.0' },
563
- [AliasBitType.audioTranscript]: { since: '1.3.0' },
564
- [AliasBitType.bitmarkExample]: { since: '1.3.0' },
565
- [AliasBitType.blogArticle]: { since: '1.3.0' },
566
- [AliasBitType.bug]: { since: '1.3.0' },
567
- [AliasBitType.checklist]: { since: '1.3.0' },
568
- [AliasBitType.coachAudioTranscript]: { since: '1.3.0' },
569
- [AliasBitType.coachCallToActionChecklist]: { since: '1.3.0' },
570
- [AliasBitType.coachHomeRules]: { since: '1.3.0' },
571
- [AliasBitType.coachVideoTranscript]: { since: '1.3.0' },
572
- [AliasBitType.correction]: { since: '1.3.0' },
573
- [AliasBitType.cookPreparation]: { since: '1.3.0' },
574
- [AliasBitType.cookStep]: { since: '1.3.0' },
575
- [AliasBitType.cookIngredients]: { since: '1.3.0' },
576
- [AliasBitType.cookRemark]: { since: '1.3.0' },
577
- [AliasBitType.cookVariation]: { since: '1.3.0' },
578
- [AliasBitType.cookInsert]: { since: '1.3.0' },
579
- [AliasBitType.cookArrangement]: { since: '1.3.0' },
580
- [AliasBitType.cookPracticeAdvise]: { since: '1.3.0' },
581
- [AliasBitType.cookPlate]: { since: '1.3.0' },
582
- [AliasBitType.cookRecommendation]: { since: '1.3.0' },
583
- [AliasBitType.cookPersonalRecommendation]: { since: '1.3.0' },
584
- [AliasBitType.cookSideDrink]: { since: '1.3.0' },
585
- [AliasBitType.cookSideDish]: { since: '1.3.0' },
586
- [AliasBitType.cookTimer]: { since: '1.3.0' },
587
- [AliasBitType.danger]: { since: '1.3.0' },
588
- [AliasBitType.details1]: { since: '1.3.0' },
589
- [AliasBitType.details]: { since: '1.3.0' },
590
- [AliasBitType.editorial]: { since: '1.3.0' },
591
- [AliasBitType.editorNote]: { since: '1.3.0' },
592
- [AliasBitType.featured]: { since: '1.3.0' },
593
- [AliasBitType.help]: { since: '1.3.0' },
594
- [AliasBitType.hint]: { since: '1.3.0' },
595
- [AliasBitType.info]: { since: '1.3.0' },
596
- [AliasBitType.langLearningOutcomes]: { since: '1.3.0' },
597
- [AliasBitType.langEnablingLanguageSkills]: { since: '1.3.0' },
598
- [AliasBitType.langLifeSkills]: { since: '1.3.0' },
599
- [AliasBitType.langEnglishAroundWorld]: { since: '1.3.0' },
600
- [AliasBitType.langGoodToKnow]: { since: '1.3.0' },
601
- [AliasBitType.langLearningGoal]: { since: '1.3.0' },
602
- [AliasBitType.langLearningStrategy]: { since: '1.3.0' },
603
- [AliasBitType.langLikeALocal]: { since: '1.3.0' },
604
- [AliasBitType.langMaterial]: { since: '1.3.0' },
605
- [AliasBitType.langUsefulPhrases]: { since: '1.3.0' },
606
- [AliasBitType.langLevelDown]: { since: '1.3.0' },
607
- [AliasBitType.langLevelUp]: { since: '1.3.0' },
608
- [AliasBitType.langExtraActivity]: { since: '1.3.0' },
609
- [AliasBitType.langVideoScript]: { since: '1.3.0' },
610
- [AliasBitType.langAudioScript]: { since: '1.3.0' },
611
- [AliasBitType.langVocabulary]: { since: '1.3.0' },
612
- [AliasBitType.langHomework]: { since: '1.3.0' },
613
- [AliasBitType.langTeacherNote]: { since: '1.3.0' },
614
- [AliasBitType.langTeacherPronunciation]: { since: '1.3.0' },
615
- [AliasBitType.message]: { since: '1.3.0' },
616
- [AliasBitType.newspaperArticle]: { since: '1.3.0' },
617
- [AliasBitType.note]: { since: '1.3.0' },
618
- [AliasBitType.noteAi]: { since: '1.3.0' },
619
- [AliasBitType.notebookArticle]: { since: '1.3.0' },
620
- [AliasBitType.preparationNote]: { since: '1.3.0' },
621
- [AliasBitType.releaseNotesSummary]: { since: '1.3.0' },
622
- [AliasBitType.remark]: { since: '1.3.0' },
623
- [AliasBitType.selfAssessment]: { since: '1.3.0' },
624
- [AliasBitType.separator]: { since: '1.4.15' },
625
- [AliasBitType.sideNote]: { since: '1.3.0' },
626
- [AliasBitType.summary]: { since: '1.3.0' },
627
- [AliasBitType.summaryAi]: { since: '1.3.0' },
628
- [AliasBitType.videoTranscript]: { since: '1.3.0' },
629
- [AliasBitType.warning]: { since: '1.3.0' },
630
- [AliasBitType.workbookArticle]: { since: '1.3.0' },
631
- },
632
- },
633
- [RootBitType.exampleList]: {
543
+ },
544
+ [BitType.appAiPrompt]: { since: '1.3.0', baseBitType: BitType.example },
545
+ [BitType.aiPrompt]: { since: '1.3.0', baseBitType: BitType.example },
546
+ [BitType.articleAi]: { since: '1.3.0', baseBitType: BitType.example },
547
+ [BitType.articleAttachment]: { since: '1.3.0', baseBitType: BitType.example },
548
+ [BitType.assignment]: { since: '1.3.0', baseBitType: BitType.example },
549
+ [BitType.audioTranscript]: { since: '1.3.0', baseBitType: BitType.example },
550
+ [BitType.bitmarkExample]: { since: '1.3.0', baseBitType: BitType.example },
551
+ [BitType.blogArticle]: { since: '1.3.0', baseBitType: BitType.example },
552
+ [BitType.bug]: { since: '1.3.0', baseBitType: BitType.example },
553
+ [BitType.checklist]: { since: '1.3.0', baseBitType: BitType.example },
554
+ [BitType.coachAudioTranscript]: { since: '1.3.0', baseBitType: BitType.example },
555
+ [BitType.coachCallToActionChecklist]: { since: '1.3.0', baseBitType: BitType.example },
556
+ [BitType.coachHomeRules]: { since: '1.3.0', baseBitType: BitType.example },
557
+ [BitType.coachVideoTranscript]: { since: '1.3.0', baseBitType: BitType.example },
558
+ [BitType.correction]: { since: '1.3.0', baseBitType: BitType.example },
559
+ [BitType.cookPreparation]: { since: '1.3.0', baseBitType: BitType.example },
560
+ [BitType.cookStep]: { since: '1.3.0', baseBitType: BitType.example },
561
+ [BitType.cookIngredients]: { since: '1.3.0', baseBitType: BitType.example },
562
+ [BitType.cookRemark]: { since: '1.3.0', baseBitType: BitType.example },
563
+ [BitType.cookVariation]: { since: '1.3.0', baseBitType: BitType.example },
564
+ [BitType.cookInsert]: { since: '1.3.0', baseBitType: BitType.example },
565
+ [BitType.cookArrangement]: { since: '1.3.0', baseBitType: BitType.example },
566
+ [BitType.cookPracticeAdvise]: { since: '1.3.0', baseBitType: BitType.example },
567
+ [BitType.cookPlate]: { since: '1.3.0', baseBitType: BitType.example },
568
+ [BitType.cookRecommendation]: { since: '1.3.0', baseBitType: BitType.example },
569
+ [BitType.cookPersonalRecommendation]: { since: '1.3.0', baseBitType: BitType.example },
570
+ [BitType.cookSideDrink]: { since: '1.3.0', baseBitType: BitType.example },
571
+ [BitType.cookSideDish]: { since: '1.3.0', baseBitType: BitType.example },
572
+ [BitType.cookTimer]: { since: '1.3.0', baseBitType: BitType.example },
573
+ [BitType.danger]: { since: '1.3.0', baseBitType: BitType.example },
574
+ [BitType.details1]: { since: '1.3.0', baseBitType: BitType.example },
575
+ [BitType.details]: { since: '1.3.0', baseBitType: BitType.example },
576
+ [BitType.editorial]: { since: '1.3.0', baseBitType: BitType.example },
577
+ [BitType.editorNote]: { since: '1.3.0', baseBitType: BitType.example },
578
+ [BitType.featured]: { since: '1.3.0', baseBitType: BitType.example },
579
+ [BitType.help]: { since: '1.3.0', baseBitType: BitType.example },
580
+ [BitType.hint]: { since: '1.3.0', baseBitType: BitType.example },
581
+ [BitType.info]: { since: '1.3.0', baseBitType: BitType.example },
582
+ [BitType.langLearningOutcomes]: { since: '1.3.0', baseBitType: BitType.example },
583
+ [BitType.langEnablingLanguageSkills]: { since: '1.3.0', baseBitType: BitType.example },
584
+ [BitType.langLifeSkills]: { since: '1.3.0', baseBitType: BitType.example },
585
+ [BitType.langEnglishAroundWorld]: { since: '1.3.0', baseBitType: BitType.example },
586
+ [BitType.langGoodToKnow]: { since: '1.3.0', baseBitType: BitType.example },
587
+ [BitType.langLearningGoal]: { since: '1.3.0', baseBitType: BitType.example },
588
+ [BitType.langLearningStrategy]: { since: '1.3.0', baseBitType: BitType.example },
589
+ [BitType.langLikeALocal]: { since: '1.3.0', baseBitType: BitType.example },
590
+ [BitType.langMaterial]: { since: '1.3.0', baseBitType: BitType.example },
591
+ [BitType.langUsefulPhrases]: { since: '1.3.0', baseBitType: BitType.example },
592
+ [BitType.langLevelDown]: { since: '1.3.0', baseBitType: BitType.example },
593
+ [BitType.langLevelUp]: { since: '1.3.0', baseBitType: BitType.example },
594
+ [BitType.langExtraActivity]: { since: '1.3.0', baseBitType: BitType.example },
595
+ [BitType.langVideoScript]: { since: '1.3.0', baseBitType: BitType.example },
596
+ [BitType.langAudioScript]: { since: '1.3.0', baseBitType: BitType.example },
597
+ [BitType.langVocabulary]: { since: '1.3.0', baseBitType: BitType.example },
598
+ [BitType.langHomework]: { since: '1.3.0', baseBitType: BitType.example },
599
+ [BitType.langTeacherNote]: { since: '1.3.0', baseBitType: BitType.example },
600
+ [BitType.langTeacherPronunciation]: { since: '1.3.0', baseBitType: BitType.example },
601
+ [BitType.message]: { since: '1.3.0', baseBitType: BitType.example },
602
+ [BitType.newspaperArticle]: { since: '1.3.0', baseBitType: BitType.example },
603
+ [BitType.note]: { since: '1.3.0', baseBitType: BitType.example },
604
+ [BitType.noteAi]: { since: '1.3.0', baseBitType: BitType.example },
605
+ [BitType.notebookArticle]: { since: '1.3.0', baseBitType: BitType.example },
606
+ [BitType.preparationNote]: { since: '1.3.0', baseBitType: BitType.example },
607
+ [BitType.releaseNotesSummary]: { since: '1.3.0', baseBitType: BitType.example },
608
+ [BitType.remark]: { since: '1.3.0', baseBitType: BitType.example },
609
+ [BitType.selfAssessment]: { since: '1.3.0', baseBitType: BitType.example },
610
+ [BitType.separator]: { since: '1.4.15', baseBitType: BitType.example },
611
+ [BitType.sideNote]: { since: '1.3.0', baseBitType: BitType.example },
612
+ [BitType.summary]: { since: '1.3.0', baseBitType: BitType.example },
613
+ [BitType.summaryAi]: { since: '1.3.0', baseBitType: BitType.example },
614
+ [BitType.videoTranscript]: { since: '1.3.0', baseBitType: BitType.example },
615
+ [BitType.warning]: { since: '1.3.0', baseBitType: BitType.example },
616
+ [BitType.workbookArticle]: { since: '1.3.0', baseBitType: BitType.example },
617
+ [BitType.exampleList]: {
634
618
  since: '1.4.13',
635
- tags: [
636
- {
637
- type: BitTagType.group,
638
- configKey: GroupConfigKey.group_standardTags,
639
- },
640
- {
641
- type: BitTagType.tag,
642
- configKey: TagConfigKey.title,
643
- },
644
- ],
619
+ baseBitType: BitType.example,
645
620
  cardSet: CardSetConfigKey._exampleBitList,
646
621
  resourceAttachmentAllowed: true,
647
622
  bodyAllowed: true,
648
623
  footerAllowed: true,
649
624
  rootExampleType: ExampleType.string,
650
- aliases: {
651
- [AliasBitType.assignmentList]: { since: '1.4.13' },
652
- [AliasBitType.pageFooter]: { since: '1.4.13' },
653
- },
654
625
  },
655
- [RootBitType.flashcard]: {
626
+ [BitType.assignmentList]: { since: '1.4.13', baseBitType: BitType.exampleList },
627
+ [BitType.pageFooter]: { since: '1.4.13', baseBitType: BitType.exampleList },
628
+ [BitType.flashcard]: {
656
629
  since: '1.3.0',
657
630
  tags: [
658
631
  {
@@ -664,22 +637,12 @@ const BITS = {
664
637
  resourceAttachmentAllowed: true,
665
638
  bodyAllowed: true,
666
639
  footerAllowed: true,
667
- aliases: {
668
- [AliasBitType.flashcard1]: { since: '1.3.0' },
669
- },
670
640
  },
671
- [RootBitType.focusImage]: {
641
+ [BitType.flashcard1]: { since: '1.3.0', baseBitType: BitType.flashcard },
642
+ [BitType.focusImage]: {
672
643
  since: '1.3.0',
644
+ baseBitType: BitType.image,
673
645
  tags: [
674
- {
675
- type: BitTagType.group,
676
- configKey: GroupConfigKey.group_standardTags,
677
- },
678
- {
679
- type: BitTagType.group,
680
- configKey: GroupConfigKey.group_resourceImage,
681
- minCount: 1,
682
- },
683
646
  {
684
647
  type: BitTagType.property,
685
648
  configKey: PropertyConfigKey.focusX,
@@ -689,9 +652,8 @@ const BITS = {
689
652
  configKey: PropertyConfigKey.focusY,
690
653
  },
691
654
  ],
692
- bodyAllowed: true,
693
655
  },
694
- [RootBitType.highlightText]: {
656
+ [BitType.highlightText]: {
695
657
  since: '1.3.0',
696
658
  tags: [
697
659
  {
@@ -706,7 +668,7 @@ const BITS = {
706
668
  resourceAttachmentAllowed: true,
707
669
  bodyAllowed: true,
708
670
  },
709
- [RootBitType.image]: {
671
+ [BitType.image]: {
710
672
  since: '1.3.0',
711
673
  tags: [
712
674
  {
@@ -720,29 +682,27 @@ const BITS = {
720
682
  },
721
683
  ],
722
684
  bodyAllowed: true,
723
- aliases: {
724
- [AliasBitType.appCreateBitsFromImage]: { since: '1.3.0' },
725
- [AliasBitType.appGetScreenshot]: { since: '1.3.0' },
726
- [AliasBitType.detailsImage]: { since: '1.3.0' },
727
- [AliasBitType.figure]: { since: '1.3.0', deprecated: '1.4.0' },
728
- [AliasBitType.imageBanner]: { since: '1.3.0' },
729
- [AliasBitType.imageFigure]: { since: '1.3.0' },
730
- [AliasBitType.imageLandscape]: { since: '1.3.0' },
731
- [AliasBitType.imageMood]: { since: '1.3.0' },
732
- [AliasBitType.imagePortrait]: { since: '1.3.0' },
733
- [AliasBitType.imagePrototype]: { since: '1.3.0' },
734
- [AliasBitType.imageSeparator]: { since: '1.4.15' },
735
- [AliasBitType.imageScreenshot]: { since: '1.3.0' },
736
- [AliasBitType.imageStyled]: { since: '1.3.0' },
737
- [AliasBitType.imageSuperWide]: { since: '1.3.0' },
738
- [AliasBitType.imageZoom]: { since: '1.3.0' },
739
- [AliasBitType.langLifeSkillIcon]: { since: '1.3.0' },
740
- [AliasBitType.lifeSkillSticker]: { since: '1.3.0' },
741
- [AliasBitType.pageBanner]: { since: '1.4.3' },
742
- [AliasBitType.screenshot]: { since: '1.3.0', deprecated: '1.4.0' },
743
- },
744
685
  },
745
- [RootBitType.imageLink]: {
686
+ [BitType.appCreateBitsFromImage]: { since: '1.3.0', baseBitType: BitType.image },
687
+ [BitType.appGetScreenshot]: { since: '1.3.0', baseBitType: BitType.image },
688
+ [BitType.detailsImage]: { since: '1.3.0', baseBitType: BitType.image },
689
+ [BitType.figure]: { since: '1.3.0', deprecated: '1.4.0', baseBitType: BitType.image },
690
+ [BitType.imageBanner]: { since: '1.3.0', baseBitType: BitType.image },
691
+ [BitType.imageFigure]: { since: '1.3.0', baseBitType: BitType.image },
692
+ [BitType.imageLandscape]: { since: '1.3.0', baseBitType: BitType.image },
693
+ [BitType.imageMood]: { since: '1.3.0', baseBitType: BitType.image },
694
+ [BitType.imagePortrait]: { since: '1.3.0', baseBitType: BitType.image },
695
+ [BitType.imagePrototype]: { since: '1.3.0', baseBitType: BitType.image },
696
+ [BitType.imageSeparator]: { since: '1.4.15', baseBitType: BitType.image },
697
+ [BitType.imageScreenshot]: { since: '1.3.0', baseBitType: BitType.image },
698
+ [BitType.imageStyled]: { since: '1.3.0', baseBitType: BitType.image },
699
+ [BitType.imageSuperWide]: { since: '1.3.0', baseBitType: BitType.image },
700
+ [BitType.imageZoom]: { since: '1.3.0', baseBitType: BitType.image },
701
+ [BitType.langLifeSkillIcon]: { since: '1.3.0', baseBitType: BitType.image },
702
+ [BitType.lifeSkillSticker]: { since: '1.3.0', baseBitType: BitType.image },
703
+ [BitType.pageBanner]: { since: '1.4.3', baseBitType: BitType.image },
704
+ [BitType.screenshot]: { since: '1.3.0', deprecated: '1.4.0', baseBitType: BitType.image },
705
+ [BitType.imageLink]: {
746
706
  since: '1.3.0',
747
707
  tags: [
748
708
  {
@@ -757,7 +717,7 @@ const BITS = {
757
717
  ],
758
718
  bodyAllowed: true,
759
719
  },
760
- [RootBitType.imageOnDevice]: {
720
+ [BitType.imageOnDevice]: {
761
721
  since: '1.3.0',
762
722
  tags: [
763
723
  {
@@ -775,7 +735,7 @@ const BITS = {
775
735
  ],
776
736
  bodyAllowed: true,
777
737
  },
778
- [RootBitType.imageResponsive]: {
738
+ [BitType.imageResponsive]: {
779
739
  since: '1.3.0',
780
740
  tags: [
781
741
  {
@@ -790,7 +750,7 @@ const BITS = {
790
750
  ],
791
751
  bodyAllowed: true, // false??
792
752
  },
793
- [RootBitType.internalLink]: {
753
+ [BitType.internalLink]: {
794
754
  since: '1.3.0',
795
755
  tags: [
796
756
  {
@@ -804,7 +764,7 @@ const BITS = {
804
764
  ],
805
765
  bodyAllowed: true,
806
766
  },
807
- [RootBitType.interview]: {
767
+ [BitType.interview]: {
808
768
  since: '1.3.0',
809
769
  tags: [
810
770
  {
@@ -820,12 +780,10 @@ const BITS = {
820
780
  resourceAttachmentAllowed: true,
821
781
  bodyAllowed: true,
822
782
  footerAllowed: true,
823
- aliases: {
824
- [AliasBitType.interviewInstructionGrouped]: { since: '1.3.0' },
825
- [AliasBitType.botInterview]: { since: '1.3.0' },
826
- },
827
783
  },
828
- [RootBitType.learningPathBook]: {
784
+ [BitType.interviewInstructionGrouped]: { since: '1.3.0', baseBitType: BitType.interview },
785
+ [BitType.botInterview]: { since: '1.3.0', baseBitType: BitType.interview },
786
+ [BitType.learningPathBook]: {
829
787
  since: '1.3.0',
830
788
  tags: [
831
789
  {
@@ -839,50 +797,32 @@ const BITS = {
839
797
  ],
840
798
  resourceAttachmentAllowed: true,
841
799
  bodyAllowed: true,
842
- aliases: {
843
- [AliasBitType.bookLink]: { since: '1.3.0' },
844
- [AliasBitType.bookLinkNext]: { since: '1.3.0' },
845
- [AliasBitType.bookLinkPrev]: { since: '1.3.0' },
846
- [AliasBitType.learningPathClassroomEvent]: { since: '1.3.0' },
847
- [AliasBitType.learningPathClassroomTraining]: { since: '1.3.0' },
848
- [AliasBitType.learningPathClosing]: { since: '1.3.0' },
849
- [AliasBitType.learningPathFeedback]: { since: '1.3.0' },
850
- [AliasBitType.learningPathLearningGoal]: { since: '1.3.0' },
851
- [AliasBitType.learningPathLti]: { since: '1.3.0' },
852
- [AliasBitType.learningPathSign]: { since: '1.3.0' },
853
- [AliasBitType.learningPathStep]: { since: '1.3.0' },
854
- },
855
800
  },
856
- [RootBitType.learningPathBotTraining]: {
801
+ [BitType.bookLink]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
802
+ [BitType.bookLinkNext]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
803
+ [BitType.bookLinkPrev]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
804
+ [BitType.learningPathClassroomEvent]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
805
+ [BitType.learningPathClassroomTraining]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
806
+ [BitType.learningPathClosing]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
807
+ [BitType.learningPathFeedback]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
808
+ [BitType.learningPathLearningGoal]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
809
+ [BitType.learningPathLti]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
810
+ [BitType.learningPathSign]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
811
+ [BitType.learningPathStep]: { since: '1.3.0', baseBitType: BitType.learningPathBook },
812
+ [BitType.learningPathBotTraining]: {
857
813
  since: '1.3.0',
814
+ baseBitType: BitType.learningPathBook,
858
815
  tags: [
859
- {
860
- type: BitTagType.group,
861
- configKey: GroupConfigKey.group_standardTags,
862
- },
863
- {
864
- type: BitTagType.group,
865
- configKey: GroupConfigKey.group_learningPathCommon,
866
- },
867
816
  {
868
817
  type: BitTagType.property,
869
818
  configKey: PropertyConfigKey.bot,
870
819
  },
871
820
  ],
872
- resourceAttachmentAllowed: true,
873
- bodyAllowed: true,
874
821
  },
875
- [RootBitType.learningPathExternalLink]: {
822
+ [BitType.learningPathExternalLink]: {
876
823
  since: '1.3.0',
824
+ baseBitType: BitType.learningPathBook,
877
825
  tags: [
878
- {
879
- type: BitTagType.group,
880
- configKey: GroupConfigKey.group_standardTags,
881
- },
882
- {
883
- type: BitTagType.group,
884
- configKey: GroupConfigKey.group_learningPathCommon,
885
- },
886
826
  {
887
827
  type: BitTagType.property,
888
828
  configKey: PropertyConfigKey.externalLink,
@@ -892,29 +832,18 @@ const BITS = {
892
832
  configKey: PropertyConfigKey.externalLinkText,
893
833
  },
894
834
  ],
895
- resourceAttachmentAllowed: true,
896
- bodyAllowed: true,
897
835
  },
898
- [RootBitType.learningPathVideoCall]: {
836
+ [BitType.learningPathVideoCall]: {
899
837
  since: '1.3.0',
838
+ baseBitType: BitType.learningPathBook,
900
839
  tags: [
901
- {
902
- type: BitTagType.group,
903
- configKey: GroupConfigKey.group_standardTags,
904
- },
905
- {
906
- type: BitTagType.group,
907
- configKey: GroupConfigKey.group_learningPathCommon,
908
- },
909
840
  {
910
841
  type: BitTagType.property,
911
842
  configKey: PropertyConfigKey.videoCallLink,
912
843
  },
913
844
  ],
914
- resourceAttachmentAllowed: true,
915
- bodyAllowed: true,
916
845
  },
917
- [RootBitType.mark]: {
846
+ [BitType.mark]: {
918
847
  since: '1.3.0',
919
848
  tags: [
920
849
  {
@@ -933,7 +862,7 @@ const BITS = {
933
862
  resourceAttachmentAllowed: true,
934
863
  bodyAllowed: true,
935
864
  },
936
- [RootBitType.match]: {
865
+ [BitType.match]: {
937
866
  since: '1.3.0',
938
867
  tags: [
939
868
  {
@@ -945,53 +874,78 @@ const BITS = {
945
874
  resourceAttachmentAllowed: true,
946
875
  bodyAllowed: true,
947
876
  footerAllowed: true,
948
- aliases: {
949
- [AliasBitType.matchAll]: { since: '1.3.0' },
950
- [AliasBitType.matchReverse]: { since: '1.3.0' },
951
- [AliasBitType.matchAllReverse]: { since: '1.3.0' },
952
- [AliasBitType.matchSolutionGrouped]: { since: '1.3.0' },
953
- },
954
877
  },
955
- [RootBitType.matchMatrix]: {
878
+ [BitType.matchAll]: { since: '1.3.0', baseBitType: BitType.match },
879
+ [BitType.matchReverse]: { since: '1.3.0', baseBitType: BitType.match },
880
+ [BitType.matchAllReverse]: { since: '1.3.0', baseBitType: BitType.match },
881
+ [BitType.matchSolutionGrouped]: { since: '1.3.0', baseBitType: BitType.match },
882
+ [BitType.matchMatrix]: {
883
+ since: '1.3.0',
884
+ baseBitType: BitType.match,
885
+ cardSet: CardSetConfigKey._matchMatrix,
886
+ },
887
+ [BitType.matchAudio]: {
888
+ since: '1.3.0',
889
+ baseBitType: BitType.match,
890
+ cardSet: CardSetConfigKey._matchAudioPairs,
891
+ },
892
+ [BitType.matchPicture]: {
893
+ since: '1.3.0',
894
+ baseBitType: BitType.match,
895
+ cardSet: CardSetConfigKey._matchImagePairs,
896
+ },
897
+ [BitType.multipleChoice1]: {
956
898
  since: '1.3.0',
957
899
  tags: [
958
900
  {
959
901
  type: BitTagType.group,
960
902
  configKey: GroupConfigKey.group_standardTags,
961
903
  },
904
+ {
905
+ type: BitTagType.group,
906
+ configKey: GroupConfigKey.group_trueFalse,
907
+ },
962
908
  ],
963
- cardSet: CardSetConfigKey._matchMatrix,
964
909
  resourceAttachmentAllowed: true,
965
910
  bodyAllowed: true,
966
- footerAllowed: true,
967
911
  },
968
- [RootBitType.matchAudio]: {
912
+ [BitType.coachSelfReflectionMultipleChoice1]: { since: '1.3.0', baseBitType: BitType.multipleChoice1 },
913
+ [BitType.multipleChoice]: {
969
914
  since: '1.3.0',
970
915
  tags: [
971
916
  {
972
917
  type: BitTagType.group,
973
918
  configKey: GroupConfigKey.group_standardTags,
974
919
  },
920
+ {
921
+ type: BitTagType.group,
922
+ configKey: GroupConfigKey.group_trueFalse,
923
+ }, // This is actually for multiple-choice-1, but we support it here as well (as many bits are wrong)
975
924
  ],
976
- cardSet: CardSetConfigKey._matchAudioPairs,
925
+ cardSet: CardSetConfigKey._quiz,
977
926
  resourceAttachmentAllowed: true,
978
927
  bodyAllowed: true,
979
928
  footerAllowed: true,
980
929
  },
981
- [RootBitType.matchPicture]: {
930
+ [BitType.coachSelfReflectionMultipleChoice]: { since: '1.3.0', baseBitType: BitType.multipleChoice },
931
+ [BitType.multipleChoiceText]: {
982
932
  since: '1.3.0',
983
933
  tags: [
984
934
  {
985
935
  type: BitTagType.group,
986
936
  configKey: GroupConfigKey.group_standardTags,
987
937
  },
938
+ {
939
+ type: BitTagType.group,
940
+ configKey: GroupConfigKey.group_trueFalse,
941
+ },
988
942
  ],
989
- cardSet: CardSetConfigKey._matchImagePairs,
990
943
  resourceAttachmentAllowed: true,
991
944
  bodyAllowed: true,
992
- footerAllowed: true,
993
945
  },
994
- [RootBitType.multipleChoice1]: {
946
+ [BitType.coachCallToActionMultipleChoiceText]: { since: '1.3.0', baseBitType: BitType.multipleChoiceText },
947
+ [BitType.coachSelfReflectionMultipleChoiceText]: { since: '1.3.0', baseBitType: BitType.multipleChoiceText },
948
+ [BitType.multipleResponse1]: {
995
949
  since: '1.3.0',
996
950
  tags: [
997
951
  {
@@ -1005,11 +959,9 @@ const BITS = {
1005
959
  ],
1006
960
  resourceAttachmentAllowed: true,
1007
961
  bodyAllowed: true,
1008
- aliases: {
1009
- [AliasBitType.coachSelfReflectionMultipleChoice1]: { since: '1.3.0' },
1010
- },
1011
962
  },
1012
- [RootBitType.multipleChoice]: {
963
+ [BitType.coachSelfReflectionMultipleResponse1]: { since: '1.3.0', baseBitType: BitType.multipleResponse1 },
964
+ [BitType.multipleResponse]: {
1013
965
  since: '1.3.0',
1014
966
  tags: [
1015
967
  {
@@ -1019,17 +971,15 @@ const BITS = {
1019
971
  {
1020
972
  type: BitTagType.group,
1021
973
  configKey: GroupConfigKey.group_trueFalse,
1022
- }, // This is actually for multiple-choice-1, but we support it here as well (as many bits are wrong)
974
+ }, // This is actually for multiple-response-1, but we support it here as well (as many bits are wrong)
1023
975
  ],
1024
976
  cardSet: CardSetConfigKey._quiz,
1025
977
  resourceAttachmentAllowed: true,
1026
978
  bodyAllowed: true,
1027
979
  footerAllowed: true,
1028
- aliases: {
1029
- [AliasBitType.coachSelfReflectionMultipleChoice]: { since: '1.3.0' },
1030
- },
1031
980
  },
1032
- [RootBitType.multipleChoiceText]: {
981
+ [BitType.coachSelfReflectionMultipleResponse]: { since: '1.3.0', baseBitType: BitType.multipleResponse },
982
+ [BitType.page]: {
1033
983
  since: '1.3.0',
1034
984
  tags: [
1035
985
  {
@@ -1037,76 +987,80 @@ const BITS = {
1037
987
  configKey: GroupConfigKey.group_standardTags,
1038
988
  },
1039
989
  {
1040
- type: BitTagType.group,
1041
- configKey: GroupConfigKey.group_trueFalse,
990
+ type: BitTagType.tag,
991
+ configKey: TagConfigKey.title,
992
+ },
993
+ {
994
+ type: BitTagType.property,
995
+ configKey: PropertyConfigKey.thumbImage,
1042
996
  },
1043
997
  ],
1044
998
  resourceAttachmentAllowed: true,
1045
999
  bodyAllowed: true,
1046
- aliases: {
1047
- [AliasBitType.coachCallToActionMultipleChoiceText]: { since: '1.3.0' },
1048
- [AliasBitType.coachSelfReflectionMultipleChoiceText]: { since: '1.3.0' },
1049
- },
1050
1000
  },
1051
- [RootBitType.multipleResponse1]: {
1052
- since: '1.3.0',
1001
+ [BitType.pageBuyButton]: {
1002
+ since: '1.4.3',
1053
1003
  tags: [
1054
1004
  {
1055
1005
  type: BitTagType.group,
1056
1006
  configKey: GroupConfigKey.group_standardTags,
1057
1007
  },
1058
1008
  {
1059
- type: BitTagType.group,
1060
- configKey: GroupConfigKey.group_trueFalse,
1009
+ type: BitTagType.property,
1010
+ configKey: PropertyConfigKey.content2Buy,
1061
1011
  },
1062
1012
  ],
1063
1013
  resourceAttachmentAllowed: true,
1064
1014
  bodyAllowed: true,
1065
- aliases: {
1066
- [AliasBitType.coachSelfReflectionMultipleResponse1]: { since: '1.3.0' },
1067
- },
1068
1015
  },
1069
- [RootBitType.multipleResponse]: {
1070
- since: '1.3.0',
1016
+ [BitType.pageProduct]: {
1017
+ since: '1.4.17',
1071
1018
  tags: [
1072
1019
  {
1073
1020
  type: BitTagType.group,
1074
1021
  configKey: GroupConfigKey.group_standardTags,
1075
1022
  },
1076
1023
  {
1077
- type: BitTagType.group,
1078
- configKey: GroupConfigKey.group_trueFalse,
1079
- }, // This is actually for multiple-response-1, but we support it here as well (as many bits are wrong)
1024
+ type: BitTagType.property,
1025
+ configKey: PropertyConfigKey.product,
1026
+ },
1080
1027
  ],
1081
- cardSet: CardSetConfigKey._quiz,
1082
1028
  resourceAttachmentAllowed: true,
1083
1029
  bodyAllowed: true,
1084
- footerAllowed: true,
1085
- aliases: {
1086
- [AliasBitType.coachSelfReflectionMultipleResponse]: { since: '1.3.0' },
1087
- },
1088
1030
  },
1089
- [RootBitType.page]: {
1090
- since: '1.3.0',
1031
+ [BitType.pageProductList]: {
1032
+ since: '1.4.17',
1091
1033
  tags: [
1092
1034
  {
1093
1035
  type: BitTagType.group,
1094
1036
  configKey: GroupConfigKey.group_standardTags,
1095
1037
  },
1096
1038
  {
1097
- type: BitTagType.tag,
1098
- configKey: TagConfigKey.title,
1039
+ type: BitTagType.property,
1040
+ configKey: PropertyConfigKey.productList,
1041
+ maxCount: Count.infinity,
1042
+ },
1043
+ ],
1044
+ resourceAttachmentAllowed: true,
1045
+ bodyAllowed: true,
1046
+ },
1047
+ [BitType.pageProductVideo]: {
1048
+ since: '1.4.17',
1049
+ tags: [
1050
+ {
1051
+ type: BitTagType.group,
1052
+ configKey: GroupConfigKey.group_standardTags,
1099
1053
  },
1100
1054
  {
1101
1055
  type: BitTagType.property,
1102
- configKey: PropertyConfigKey.thumbImage,
1056
+ configKey: PropertyConfigKey.productVideo,
1103
1057
  },
1104
1058
  ],
1105
1059
  resourceAttachmentAllowed: true,
1106
1060
  bodyAllowed: true,
1107
1061
  },
1108
- [RootBitType.pageBuyButton]: {
1109
- since: '1.4.3',
1062
+ [BitType.pageProductVideoList]: {
1063
+ since: '1.4.17',
1110
1064
  tags: [
1111
1065
  {
1112
1066
  type: BitTagType.group,
@@ -1114,28 +1068,33 @@ const BITS = {
1114
1068
  },
1115
1069
  {
1116
1070
  type: BitTagType.property,
1117
- configKey: PropertyConfigKey.content2Buy,
1071
+ configKey: PropertyConfigKey.productVideoList,
1072
+ maxCount: Count.infinity,
1118
1073
  },
1119
1074
  ],
1120
1075
  resourceAttachmentAllowed: true,
1121
1076
  bodyAllowed: true,
1122
1077
  },
1123
- [RootBitType.photo]: {
1124
- since: '1.3.0',
1078
+ [BitType.pageSectionFolder]: {
1079
+ since: '1.4.17',
1125
1080
  tags: [
1126
1081
  {
1127
1082
  type: BitTagType.group,
1128
1083
  configKey: GroupConfigKey.group_standardTags,
1129
1084
  },
1130
1085
  {
1131
- type: BitTagType.group,
1132
- configKey: GroupConfigKey.group_resourceImage,
1133
- minCount: 1,
1086
+ type: BitTagType.property,
1087
+ configKey: PropertyConfigKey.productFolder,
1134
1088
  },
1135
1089
  ],
1090
+ resourceAttachmentAllowed: true,
1136
1091
  bodyAllowed: true,
1137
1092
  },
1138
- [RootBitType.quote]: {
1093
+ [BitType.photo]: {
1094
+ since: '1.3.0',
1095
+ baseBitType: BitType.image,
1096
+ },
1097
+ [BitType.quote]: {
1139
1098
  since: '1.3.0',
1140
1099
  tags: [
1141
1100
  {
@@ -1149,7 +1108,7 @@ const BITS = {
1149
1108
  ],
1150
1109
  bodyAllowed: true,
1151
1110
  },
1152
- [RootBitType.rating]: {
1111
+ [BitType.rating]: {
1153
1112
  since: '1.3.0',
1154
1113
  tags: [
1155
1114
  {
@@ -1158,11 +1117,9 @@ const BITS = {
1158
1117
  },
1159
1118
  ],
1160
1119
  bodyAllowed: true,
1161
- aliases: {
1162
- [AliasBitType.coachSelfReflectionRating]: { since: '1.3.0' },
1163
- },
1164
1120
  },
1165
- [RootBitType.releaseNote]: {
1121
+ [BitType.coachSelfReflectionRating]: { since: '1.3.0', baseBitType: BitType.rating },
1122
+ [BitType.releaseNote]: {
1166
1123
  since: '1.3.0',
1167
1124
  tags: [
1168
1125
  {
@@ -1177,7 +1134,7 @@ const BITS = {
1177
1134
  resourceAttachmentAllowed: true,
1178
1135
  bodyAllowed: true,
1179
1136
  },
1180
- [RootBitType.reviewNote]: {
1137
+ [BitType.reviewNote]: {
1181
1138
  since: '1.3.0',
1182
1139
  tags: [
1183
1140
  {
@@ -1204,14 +1161,12 @@ const BITS = {
1204
1161
  resourceAttachmentAllowed: true,
1205
1162
  bodyAllowed: true,
1206
1163
  rootExampleType: ExampleType.string,
1207
- aliases: {
1208
- [AliasBitType.reviewAuthorNote]: { since: '1.3.0' },
1209
- [AliasBitType.reviewReviewerNote]: { since: '1.3.0' },
1210
- [AliasBitType.reviewRequestForReviewNote]: { since: '1.3.0' },
1211
- [AliasBitType.reviewApprovedNote]: { since: '1.3.0' },
1212
- },
1213
1164
  },
1214
- [RootBitType.sampleSolution]: {
1165
+ [BitType.reviewAuthorNote]: { since: '1.3.0', baseBitType: BitType.reviewNote },
1166
+ [BitType.reviewReviewerNote]: { since: '1.3.0', baseBitType: BitType.reviewNote },
1167
+ [BitType.reviewRequestForReviewNote]: { since: '1.3.0', baseBitType: BitType.reviewNote },
1168
+ [BitType.reviewApprovedNote]: { since: '1.3.0', baseBitType: BitType.reviewNote },
1169
+ [BitType.sampleSolution]: {
1215
1170
  since: '1.3.0',
1216
1171
  tags: [
1217
1172
  {
@@ -1231,7 +1186,7 @@ const BITS = {
1231
1186
  resourceAttachmentAllowed: true,
1232
1187
  bodyAllowed: true,
1233
1188
  },
1234
- [RootBitType.sequence]: {
1189
+ [BitType.sequence]: {
1235
1190
  since: '1.3.0',
1236
1191
  tags: [
1237
1192
  {
@@ -1245,7 +1200,7 @@ const BITS = {
1245
1200
  footerAllowed: true,
1246
1201
  rootExampleType: ExampleType.boolean,
1247
1202
  },
1248
- [RootBitType.stillImageFilm]: {
1203
+ [BitType.stillImageFilm]: {
1249
1204
  since: '1.3.0',
1250
1205
  tags: [
1251
1206
  {
@@ -1260,7 +1215,7 @@ const BITS = {
1260
1215
  ],
1261
1216
  bodyAllowed: true,
1262
1217
  },
1263
- [RootBitType.stillImageFilmEmbed]: {
1218
+ [BitType.stillImageFilmEmbed]: {
1264
1219
  since: '1.3.0',
1265
1220
  tags: [
1266
1221
  {
@@ -1275,7 +1230,7 @@ const BITS = {
1275
1230
  ],
1276
1231
  bodyAllowed: true,
1277
1232
  },
1278
- [RootBitType.stillImageFilmLink]: {
1233
+ [BitType.stillImageFilmLink]: {
1279
1234
  since: '1.3.0',
1280
1235
  tags: [
1281
1236
  {
@@ -1290,7 +1245,7 @@ const BITS = {
1290
1245
  ],
1291
1246
  bodyAllowed: true,
1292
1247
  },
1293
- [RootBitType.surveyAnonymous]: {
1248
+ [BitType.surveyAnonymous]: {
1294
1249
  since: '1.3.0',
1295
1250
  tags: [
1296
1251
  {
@@ -1301,7 +1256,7 @@ const BITS = {
1301
1256
  resourceAttachmentAllowed: true,
1302
1257
  bodyAllowed: true,
1303
1258
  },
1304
- [RootBitType.survey]: {
1259
+ [BitType.survey]: {
1305
1260
  since: '1.3.0',
1306
1261
  tags: [
1307
1262
  {
@@ -1312,7 +1267,7 @@ const BITS = {
1312
1267
  resourceAttachmentAllowed: true,
1313
1268
  bodyAllowed: true,
1314
1269
  },
1315
- [RootBitType.toc]: {
1270
+ [BitType.toc]: {
1316
1271
  since: '1.3.0',
1317
1272
  tags: [
1318
1273
  {
@@ -1321,28 +1276,26 @@ const BITS = {
1321
1276
  },
1322
1277
  ],
1323
1278
  bodyAllowed: true,
1324
- aliases: {
1325
- [AliasBitType.anchor]: { since: '1.3.0' },
1326
- [AliasBitType.bitBookEnding]: { since: '1.3.0' },
1327
- [AliasBitType.bitBookSummary]: { since: '1.3.0' },
1328
- [AliasBitType.botActionAnnounce]: { since: '1.3.0' },
1329
- [AliasBitType.botActionRatingNumber]: { since: '1.3.0' },
1330
- [AliasBitType.botActionRemind]: { since: '1.3.0' },
1331
- [AliasBitType.botActionSave]: { since: '1.3.0' },
1332
- [AliasBitType.botActionTrueFalse]: { since: '1.3.0' },
1333
- [AliasBitType.chapterSubjectMatter]: { since: '1.3.0' },
1334
- [AliasBitType.chat]: { since: '1.3.0' },
1335
- [AliasBitType.conclusion]: { since: '1.3.0' },
1336
- [AliasBitType.documentUpload]: { since: '1.3.0' },
1337
- [AliasBitType.footNote]: { since: '1.3.0' },
1338
- [AliasBitType.groupBorn]: { since: '1.3.0' },
1339
- [AliasBitType.groupDied]: { since: '1.3.0' },
1340
- [AliasBitType.recordAudio]: { since: '1.3.0' },
1341
- [AliasBitType.stickyNote]: { since: '1.3.0' },
1342
- [AliasBitType.takePicture]: { since: '1.3.0' },
1343
- },
1344
1279
  },
1345
- [RootBitType.trueFalse1]: {
1280
+ [BitType.anchor]: { since: '1.3.0', baseBitType: BitType.toc },
1281
+ [BitType.bitBookEnding]: { since: '1.3.0', baseBitType: BitType.toc },
1282
+ [BitType.bitBookSummary]: { since: '1.3.0', baseBitType: BitType.toc },
1283
+ [BitType.botActionAnnounce]: { since: '1.3.0', baseBitType: BitType.toc },
1284
+ [BitType.botActionRatingNumber]: { since: '1.3.0', baseBitType: BitType.toc },
1285
+ [BitType.botActionRemind]: { since: '1.3.0', baseBitType: BitType.toc },
1286
+ [BitType.botActionSave]: { since: '1.3.0', baseBitType: BitType.toc },
1287
+ [BitType.botActionTrueFalse]: { since: '1.3.0', baseBitType: BitType.toc },
1288
+ [BitType.chapterSubjectMatter]: { since: '1.3.0', baseBitType: BitType.toc },
1289
+ [BitType.chat]: { since: '1.3.0', baseBitType: BitType.toc },
1290
+ [BitType.conclusion]: { since: '1.3.0', baseBitType: BitType.toc },
1291
+ [BitType.documentUpload]: { since: '1.3.0', baseBitType: BitType.toc },
1292
+ [BitType.footNote]: { since: '1.3.0', baseBitType: BitType.toc },
1293
+ [BitType.groupBorn]: { since: '1.3.0', baseBitType: BitType.toc },
1294
+ [BitType.groupDied]: { since: '1.3.0', baseBitType: BitType.toc },
1295
+ [BitType.recordAudio]: { since: '1.3.0', baseBitType: BitType.toc },
1296
+ [BitType.stickyNote]: { since: '1.3.0', baseBitType: BitType.toc },
1297
+ [BitType.takePicture]: { since: '1.3.0', baseBitType: BitType.toc },
1298
+ [BitType.trueFalse1]: {
1346
1299
  since: '1.3.0',
1347
1300
  tags: [
1348
1301
  {
@@ -1370,7 +1323,7 @@ const BITS = {
1370
1323
  bodyAllowed: false,
1371
1324
  rootExampleType: ExampleType.boolean,
1372
1325
  },
1373
- [RootBitType.trueFalse]: {
1326
+ [BitType.trueFalse]: {
1374
1327
  since: '1.3.0',
1375
1328
  tags: [
1376
1329
  {
@@ -1391,7 +1344,7 @@ const BITS = {
1391
1344
  bodyAllowed: true,
1392
1345
  footerAllowed: true,
1393
1346
  },
1394
- [RootBitType.vendorPadletEmbed]: {
1347
+ [BitType.vendorPadletEmbed]: {
1395
1348
  since: '1.3.0',
1396
1349
  tags: [
1397
1350
  {
@@ -1406,13 +1359,10 @@ const BITS = {
1406
1359
  textFormatDefault: TextFormat.text,
1407
1360
  bodyAllowed: true,
1408
1361
  },
1409
- [RootBitType.vendorJupyterOutput]: {
1362
+ [BitType.vendorJupyterOutput]: {
1410
1363
  since: '1.4.3',
1364
+ baseBitType: BitType.code,
1411
1365
  tags: [
1412
- {
1413
- type: BitTagType.group,
1414
- configKey: GroupConfigKey.group_standardTags,
1415
- },
1416
1366
  {
1417
1367
  type: BitTagType.property,
1418
1368
  configKey: PropertyConfigKey.jupyterId,
@@ -1421,21 +1371,15 @@ const BITS = {
1421
1371
  type: BitTagType.property,
1422
1372
  configKey: PropertyConfigKey.jupyterExecutionCount,
1423
1373
  },
1424
- {
1425
- type: BitTagType.property,
1426
- configKey: PropertyConfigKey.computerLanguage,
1427
- },
1428
1374
  ],
1429
1375
  textFormatDefault: TextFormat.text,
1430
1376
  bodyAllowed: true,
1431
- aliases: {
1432
- [AliasBitType.vendorJupyterCellCode]: { since: '1.4.3' },
1433
- [AliasBitType.vendorJupyterCellMarkdown]: { since: '1.4.3' },
1434
- [AliasBitType.vendorJupyterCellRaw]: { since: '1.4.3' },
1435
- [AliasBitType.vendorJupyterIpynb]: { since: '1.4.3' },
1436
- },
1437
1377
  },
1438
- [RootBitType.video]: {
1378
+ [BitType.vendorJupyterCellCode]: { since: '1.4.3', baseBitType: BitType.vendorJupyterOutput },
1379
+ [BitType.vendorJupyterCellMarkdown]: { since: '1.4.3', baseBitType: BitType.vendorJupyterOutput },
1380
+ [BitType.vendorJupyterCellRaw]: { since: '1.4.3', baseBitType: BitType.vendorJupyterOutput },
1381
+ [BitType.vendorJupyterIpynb]: { since: '1.4.3', baseBitType: BitType.vendorJupyterOutput },
1382
+ [BitType.video]: {
1439
1383
  since: '1.3.0',
1440
1384
  tags: [
1441
1385
  {
@@ -1449,12 +1393,10 @@ const BITS = {
1449
1393
  },
1450
1394
  ],
1451
1395
  bodyAllowed: true,
1452
- aliases: {
1453
- [AliasBitType.videoLandscape]: { since: '1.3.0' },
1454
- [AliasBitType.videoPortrait]: { since: '1.3.0' },
1455
- },
1456
1396
  },
1457
- [RootBitType.videoEmbed]: {
1397
+ [BitType.videoLandscape]: { since: '1.3.0', baseBitType: BitType.video },
1398
+ [BitType.videoPortrait]: { since: '1.3.0', baseBitType: BitType.video },
1399
+ [BitType.videoEmbed]: {
1458
1400
  since: '1.3.0',
1459
1401
  tags: [
1460
1402
  {
@@ -1468,12 +1410,10 @@ const BITS = {
1468
1410
  },
1469
1411
  ],
1470
1412
  bodyAllowed: true,
1471
- aliases: {
1472
- [AliasBitType.videoEmbedLandscape]: { since: '1.3.0' },
1473
- [AliasBitType.videoEmbedPortrait]: { since: '1.3.0' },
1474
- },
1475
1413
  },
1476
- [RootBitType.videoLink]: {
1414
+ [BitType.videoEmbedLandscape]: { since: '1.3.0', baseBitType: BitType.videoEmbed },
1415
+ [BitType.videoEmbedPortrait]: { since: '1.3.0', baseBitType: BitType.videoEmbed },
1416
+ [BitType.videoLink]: {
1477
1417
  since: '1.3.0',
1478
1418
  tags: [
1479
1419
  {
@@ -1487,12 +1427,10 @@ const BITS = {
1487
1427
  },
1488
1428
  ],
1489
1429
  bodyAllowed: true,
1490
- aliases: {
1491
- [AliasBitType.videoLinkLandscape]: { since: '1.3.0' },
1492
- [AliasBitType.videoLinkPortrait]: { since: '1.3.0' },
1493
- },
1494
1430
  },
1495
- [RootBitType.websiteLink]: {
1431
+ [BitType.videoLinkLandscape]: { since: '1.3.0', baseBitType: BitType.videoLink },
1432
+ [BitType.videoLinkPortrait]: { since: '1.3.0', baseBitType: BitType.videoLink },
1433
+ [BitType.websiteLink]: {
1496
1434
  since: '1.3.0',
1497
1435
  tags: [
1498
1436
  {