@gmb/bitmark-parser-generator 1.4.17 → 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 (209) 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 +328 -467
  12. package/dist/cjs/config/raw/bits.js.map +1 -1
  13. package/dist/cjs/config/raw/properties.js +10 -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 +224 -205
  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 +4 -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 +2 -0
  29. package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
  30. package/dist/cjs/model/enum/BitType.js +86 -89
  31. package/dist/cjs/model/enum/BitType.js.map +1 -1
  32. package/dist/cjs/model/enum/PropertyTag.js +2 -0
  33. package/dist/cjs/model/enum/PropertyTag.js.map +1 -1
  34. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +9 -9
  35. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
  36. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +6 -6
  37. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
  38. package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
  39. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +4 -4
  40. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  41. package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
  42. package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
  43. package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +52 -47
  44. package/dist/cjs/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
  45. package/dist/cjs/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
  46. package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
  47. package/dist/cjs/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +1 -1
  48. package/dist/cjs/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
  49. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
  50. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
  51. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +1 -1
  52. package/dist/cjs/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js.map +1 -1
  53. package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
  54. package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
  55. package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
  56. package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +15 -17
  57. package/dist/cjs/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
  58. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +14 -11
  59. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
  60. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
  61. package/dist/cjs/parser/json/JsonParser.js +5 -5
  62. package/dist/cjs/parser/json/JsonParser.js.map +1 -1
  63. package/dist/cjs/utils/ObjectUtils.js +62 -0
  64. package/dist/cjs/utils/ObjectUtils.js.map +1 -1
  65. package/dist/esm/BitmarkParserGenerator.js +2 -13
  66. package/dist/esm/BitmarkParserGenerator.js.map +1 -1
  67. package/dist/esm/ast/Builder.js +9 -9
  68. package/dist/esm/ast/Builder.js.map +1 -1
  69. package/dist/esm/ast/rules/NodeValidator.js +6 -23
  70. package/dist/esm/ast/rules/NodeValidator.js.map +1 -1
  71. package/dist/esm/config/Config.js +57 -86
  72. package/dist/esm/config/Config.js.map +1 -1
  73. package/dist/esm/config/raw/bits.js +329 -468
  74. package/dist/esm/config/raw/bits.js.map +1 -1
  75. package/dist/esm/config/raw/properties.js +10 -0
  76. package/dist/esm/config/raw/properties.js.map +1 -1
  77. package/dist/esm/generated/build-info.js +1 -1
  78. package/dist/esm/generator/bitmark/BitmarkGenerator.js +10 -12
  79. package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
  80. package/dist/esm/generator/json/JsonGenerator.js +225 -206
  81. package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
  82. package/dist/esm/index.js +1 -1
  83. package/dist/esm/index.js.map +1 -1
  84. package/dist/esm/info/InfoBuilder.js +11 -34
  85. package/dist/esm/info/InfoBuilder.js.map +1 -1
  86. package/dist/esm/model/ast/NodeType.js +4 -0
  87. package/dist/esm/model/ast/NodeType.js.map +1 -1
  88. package/dist/esm/model/config/BitConfig.js +8 -7
  89. package/dist/esm/model/config/BitConfig.js.map +1 -1
  90. package/dist/esm/model/config/enum/PropertyConfigKey.js +2 -0
  91. package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
  92. package/dist/esm/model/enum/BitType.js +85 -87
  93. package/dist/esm/model/enum/BitType.js.map +1 -1
  94. package/dist/esm/model/enum/PropertyTag.js +2 -0
  95. package/dist/esm/model/enum/PropertyTag.js.map +1 -1
  96. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +10 -10
  97. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
  98. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +6 -6
  99. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
  100. package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
  101. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +5 -5
  102. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  103. package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
  104. package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
  105. package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js +53 -48
  106. package/dist/esm/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.js.map +1 -1
  107. package/dist/esm/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.js.map +1 -1
  108. package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
  109. package/dist/esm/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.js.map +1 -1
  110. package/dist/esm/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.js.map +1 -1
  111. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.js.map +1 -1
  112. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
  113. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.js.map +1 -1
  114. package/dist/esm/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js.map +1 -1
  115. package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
  116. package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
  117. package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
  118. package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js +16 -18
  119. package/dist/esm/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.js.map +1 -1
  120. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js +15 -12
  121. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.js.map +1 -1
  122. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
  123. package/dist/esm/parser/json/JsonParser.js +6 -6
  124. package/dist/esm/parser/json/JsonParser.js.map +1 -1
  125. package/dist/esm/utils/ObjectUtils.js +59 -0
  126. package/dist/esm/utils/ObjectUtils.js.map +1 -1
  127. package/dist/types/BitmarkParserGenerator.d.ts.map +1 -1
  128. package/dist/types/ast/Builder.d.ts +4 -2
  129. package/dist/types/ast/Builder.d.ts.map +1 -1
  130. package/dist/types/ast/rules/NodeValidator.d.ts +0 -1
  131. package/dist/types/ast/rules/NodeValidator.d.ts.map +1 -1
  132. package/dist/types/config/Config.d.ts +16 -28
  133. package/dist/types/config/Config.d.ts.map +1 -1
  134. package/dist/types/config/raw/bits.d.ts.map +1 -1
  135. package/dist/types/config/raw/properties.d.ts.map +1 -1
  136. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +4 -4
  137. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
  138. package/dist/types/generator/json/JsonGenerator.d.ts +22 -22
  139. package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
  140. package/dist/types/generator/text/TextGenerator.d.ts +2 -2
  141. package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
  142. package/dist/types/index.d.ts +2 -2
  143. package/dist/types/index.d.ts.map +1 -1
  144. package/dist/types/info/InfoBuilder.d.ts +3 -4
  145. package/dist/types/info/InfoBuilder.d.ts.map +1 -1
  146. package/dist/types/model/ast/NodeType.d.ts +8 -0
  147. package/dist/types/model/ast/NodeType.d.ts.map +1 -1
  148. package/dist/types/model/ast/Nodes.d.ts +4 -2
  149. package/dist/types/model/ast/Nodes.d.ts.map +1 -1
  150. package/dist/types/model/config/BitConfig.d.ts +5 -4
  151. package/dist/types/model/config/BitConfig.d.ts.map +1 -1
  152. package/dist/types/model/config/_Config.d.ts +3 -5
  153. package/dist/types/model/config/_Config.d.ts.map +1 -1
  154. package/dist/types/model/config/enum/ConfigKey.d.ts +4 -0
  155. package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
  156. package/dist/types/model/config/enum/PropertyConfigKey.d.ts +6 -0
  157. package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
  158. package/dist/types/model/enum/BitType.d.ts +171 -188
  159. package/dist/types/model/enum/BitType.d.ts.map +1 -1
  160. package/dist/types/model/enum/PropertyTag.d.ts +4 -0
  161. package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
  162. package/dist/types/model/json/BitJson.d.ts +2 -0
  163. package/dist/types/model/json/BitJson.d.ts.map +1 -1
  164. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +3 -3
  165. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
  166. package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts +6 -6
  167. package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
  168. package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts +2 -2
  169. package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +1 -1
  170. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts +2 -2
  171. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
  172. package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts +2 -2
  173. package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +1 -1
  174. package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts +2 -2
  175. package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +1 -1
  176. package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts +2 -2
  177. package/dist/types/parser/bitmark/peg/contentProcessors/ExampleTagContentProcessor.d.ts.map +1 -1
  178. package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts +2 -2
  179. package/dist/types/parser/bitmark/peg/contentProcessors/GapChainContentProcessor.d.ts.map +1 -1
  180. package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts +2 -2
  181. package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +1 -1
  182. package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts +2 -2
  183. package/dist/types/parser/bitmark/peg/contentProcessors/InternalCommentTagContentProcessor.d.ts.map +1 -1
  184. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts +2 -2
  185. package/dist/types/parser/bitmark/peg/contentProcessors/ItemLeadTagContentProcessor.d.ts.map +1 -1
  186. package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts +2 -2
  187. package/dist/types/parser/bitmark/peg/contentProcessors/MarkChainContentProcessor.d.ts.map +1 -1
  188. package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts +2 -2
  189. package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +1 -1
  190. package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts +2 -2
  191. package/dist/types/parser/bitmark/peg/contentProcessors/MarkTagContentProcessor.d.ts.map +1 -1
  192. package/dist/types/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.d.ts +2 -2
  193. package/dist/types/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.d.ts.map +1 -1
  194. package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts +2 -2
  195. package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
  196. package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts +2 -2
  197. package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +1 -1
  198. package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts +3 -3
  199. package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +1 -1
  200. package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts +3 -3
  201. package/dist/types/parser/bitmark/peg/contentProcessors/TitleTagContentProcessor.d.ts.map +1 -1
  202. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts +2 -2
  203. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseChainContentProcessor.d.ts.map +1 -1
  204. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts +2 -2
  205. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +1 -1
  206. package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
  207. package/dist/types/utils/ObjectUtils.d.ts +9 -0
  208. package/dist/types/utils/ObjectUtils.d.ts.map +1 -1
  209. package/package.json +3 -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,27 @@ 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]: {
956
883
  since: '1.3.0',
957
- tags: [
958
- {
959
- type: BitTagType.group,
960
- configKey: GroupConfigKey.group_standardTags,
961
- },
962
- ],
884
+ baseBitType: BitType.match,
963
885
  cardSet: CardSetConfigKey._matchMatrix,
964
- resourceAttachmentAllowed: true,
965
- bodyAllowed: true,
966
- footerAllowed: true,
967
886
  },
968
- [RootBitType.matchAudio]: {
887
+ [BitType.matchAudio]: {
969
888
  since: '1.3.0',
970
- tags: [
971
- {
972
- type: BitTagType.group,
973
- configKey: GroupConfigKey.group_standardTags,
974
- },
975
- ],
889
+ baseBitType: BitType.match,
976
890
  cardSet: CardSetConfigKey._matchAudioPairs,
977
- resourceAttachmentAllowed: true,
978
- bodyAllowed: true,
979
- footerAllowed: true,
980
891
  },
981
- [RootBitType.matchPicture]: {
892
+ [BitType.matchPicture]: {
982
893
  since: '1.3.0',
983
- tags: [
984
- {
985
- type: BitTagType.group,
986
- configKey: GroupConfigKey.group_standardTags,
987
- },
988
- ],
894
+ baseBitType: BitType.match,
989
895
  cardSet: CardSetConfigKey._matchImagePairs,
990
- resourceAttachmentAllowed: true,
991
- bodyAllowed: true,
992
- footerAllowed: true,
993
896
  },
994
- [RootBitType.multipleChoice1]: {
897
+ [BitType.multipleChoice1]: {
995
898
  since: '1.3.0',
996
899
  tags: [
997
900
  {
@@ -1005,11 +908,9 @@ const BITS = {
1005
908
  ],
1006
909
  resourceAttachmentAllowed: true,
1007
910
  bodyAllowed: true,
1008
- aliases: {
1009
- [AliasBitType.coachSelfReflectionMultipleChoice1]: { since: '1.3.0' },
1010
- },
1011
911
  },
1012
- [RootBitType.multipleChoice]: {
912
+ [BitType.coachSelfReflectionMultipleChoice1]: { since: '1.3.0', baseBitType: BitType.multipleChoice1 },
913
+ [BitType.multipleChoice]: {
1013
914
  since: '1.3.0',
1014
915
  tags: [
1015
916
  {
@@ -1025,11 +926,9 @@ const BITS = {
1025
926
  resourceAttachmentAllowed: true,
1026
927
  bodyAllowed: true,
1027
928
  footerAllowed: true,
1028
- aliases: {
1029
- [AliasBitType.coachSelfReflectionMultipleChoice]: { since: '1.3.0' },
1030
- },
1031
929
  },
1032
- [RootBitType.multipleChoiceText]: {
930
+ [BitType.coachSelfReflectionMultipleChoice]: { since: '1.3.0', baseBitType: BitType.multipleChoice },
931
+ [BitType.multipleChoiceText]: {
1033
932
  since: '1.3.0',
1034
933
  tags: [
1035
934
  {
@@ -1043,12 +942,10 @@ const BITS = {
1043
942
  ],
1044
943
  resourceAttachmentAllowed: true,
1045
944
  bodyAllowed: true,
1046
- aliases: {
1047
- [AliasBitType.coachCallToActionMultipleChoiceText]: { since: '1.3.0' },
1048
- [AliasBitType.coachSelfReflectionMultipleChoiceText]: { since: '1.3.0' },
1049
- },
1050
945
  },
1051
- [RootBitType.multipleResponse1]: {
946
+ [BitType.coachCallToActionMultipleChoiceText]: { since: '1.3.0', baseBitType: BitType.multipleChoiceText },
947
+ [BitType.coachSelfReflectionMultipleChoiceText]: { since: '1.3.0', baseBitType: BitType.multipleChoiceText },
948
+ [BitType.multipleResponse1]: {
1052
949
  since: '1.3.0',
1053
950
  tags: [
1054
951
  {
@@ -1062,11 +959,9 @@ const BITS = {
1062
959
  ],
1063
960
  resourceAttachmentAllowed: true,
1064
961
  bodyAllowed: true,
1065
- aliases: {
1066
- [AliasBitType.coachSelfReflectionMultipleResponse1]: { since: '1.3.0' },
1067
- },
1068
962
  },
1069
- [RootBitType.multipleResponse]: {
963
+ [BitType.coachSelfReflectionMultipleResponse1]: { since: '1.3.0', baseBitType: BitType.multipleResponse1 },
964
+ [BitType.multipleResponse]: {
1070
965
  since: '1.3.0',
1071
966
  tags: [
1072
967
  {
@@ -1082,11 +977,9 @@ const BITS = {
1082
977
  resourceAttachmentAllowed: true,
1083
978
  bodyAllowed: true,
1084
979
  footerAllowed: true,
1085
- aliases: {
1086
- [AliasBitType.coachSelfReflectionMultipleResponse]: { since: '1.3.0' },
1087
- },
1088
980
  },
1089
- [RootBitType.page]: {
981
+ [BitType.coachSelfReflectionMultipleResponse]: { since: '1.3.0', baseBitType: BitType.multipleResponse },
982
+ [BitType.page]: {
1090
983
  since: '1.3.0',
1091
984
  tags: [
1092
985
  {
@@ -1105,7 +998,7 @@ const BITS = {
1105
998
  resourceAttachmentAllowed: true,
1106
999
  bodyAllowed: true,
1107
1000
  },
1108
- [RootBitType.pageBuyButton]: {
1001
+ [BitType.pageBuyButton]: {
1109
1002
  since: '1.4.3',
1110
1003
  tags: [
1111
1004
  {
@@ -1120,7 +1013,7 @@ const BITS = {
1120
1013
  resourceAttachmentAllowed: true,
1121
1014
  bodyAllowed: true,
1122
1015
  },
1123
- [RootBitType.pageProduct]: {
1016
+ [BitType.pageProduct]: {
1124
1017
  since: '1.4.17',
1125
1018
  tags: [
1126
1019
  {
@@ -1135,7 +1028,7 @@ const BITS = {
1135
1028
  resourceAttachmentAllowed: true,
1136
1029
  bodyAllowed: true,
1137
1030
  },
1138
- [RootBitType.pageProductList]: {
1031
+ [BitType.pageProductList]: {
1139
1032
  since: '1.4.17',
1140
1033
  tags: [
1141
1034
  {
@@ -1151,7 +1044,7 @@ const BITS = {
1151
1044
  resourceAttachmentAllowed: true,
1152
1045
  bodyAllowed: true,
1153
1046
  },
1154
- [RootBitType.pageProductVideo]: {
1047
+ [BitType.pageProductVideo]: {
1155
1048
  since: '1.4.17',
1156
1049
  tags: [
1157
1050
  {
@@ -1166,7 +1059,7 @@ const BITS = {
1166
1059
  resourceAttachmentAllowed: true,
1167
1060
  bodyAllowed: true,
1168
1061
  },
1169
- [RootBitType.pageProductVideoList]: {
1062
+ [BitType.pageProductVideoList]: {
1170
1063
  since: '1.4.17',
1171
1064
  tags: [
1172
1065
  {
@@ -1182,7 +1075,7 @@ const BITS = {
1182
1075
  resourceAttachmentAllowed: true,
1183
1076
  bodyAllowed: true,
1184
1077
  },
1185
- [RootBitType.pageSectionFolder]: {
1078
+ [BitType.pageSectionFolder]: {
1186
1079
  since: '1.4.17',
1187
1080
  tags: [
1188
1081
  {
@@ -1197,22 +1090,11 @@ const BITS = {
1197
1090
  resourceAttachmentAllowed: true,
1198
1091
  bodyAllowed: true,
1199
1092
  },
1200
- [RootBitType.photo]: {
1093
+ [BitType.photo]: {
1201
1094
  since: '1.3.0',
1202
- tags: [
1203
- {
1204
- type: BitTagType.group,
1205
- configKey: GroupConfigKey.group_standardTags,
1206
- },
1207
- {
1208
- type: BitTagType.group,
1209
- configKey: GroupConfigKey.group_resourceImage,
1210
- minCount: 1,
1211
- },
1212
- ],
1213
- bodyAllowed: true,
1095
+ baseBitType: BitType.image,
1214
1096
  },
1215
- [RootBitType.quote]: {
1097
+ [BitType.quote]: {
1216
1098
  since: '1.3.0',
1217
1099
  tags: [
1218
1100
  {
@@ -1226,7 +1108,7 @@ const BITS = {
1226
1108
  ],
1227
1109
  bodyAllowed: true,
1228
1110
  },
1229
- [RootBitType.rating]: {
1111
+ [BitType.rating]: {
1230
1112
  since: '1.3.0',
1231
1113
  tags: [
1232
1114
  {
@@ -1235,11 +1117,9 @@ const BITS = {
1235
1117
  },
1236
1118
  ],
1237
1119
  bodyAllowed: true,
1238
- aliases: {
1239
- [AliasBitType.coachSelfReflectionRating]: { since: '1.3.0' },
1240
- },
1241
1120
  },
1242
- [RootBitType.releaseNote]: {
1121
+ [BitType.coachSelfReflectionRating]: { since: '1.3.0', baseBitType: BitType.rating },
1122
+ [BitType.releaseNote]: {
1243
1123
  since: '1.3.0',
1244
1124
  tags: [
1245
1125
  {
@@ -1254,7 +1134,7 @@ const BITS = {
1254
1134
  resourceAttachmentAllowed: true,
1255
1135
  bodyAllowed: true,
1256
1136
  },
1257
- [RootBitType.reviewNote]: {
1137
+ [BitType.reviewNote]: {
1258
1138
  since: '1.3.0',
1259
1139
  tags: [
1260
1140
  {
@@ -1281,14 +1161,12 @@ const BITS = {
1281
1161
  resourceAttachmentAllowed: true,
1282
1162
  bodyAllowed: true,
1283
1163
  rootExampleType: ExampleType.string,
1284
- aliases: {
1285
- [AliasBitType.reviewAuthorNote]: { since: '1.3.0' },
1286
- [AliasBitType.reviewReviewerNote]: { since: '1.3.0' },
1287
- [AliasBitType.reviewRequestForReviewNote]: { since: '1.3.0' },
1288
- [AliasBitType.reviewApprovedNote]: { since: '1.3.0' },
1289
- },
1290
1164
  },
1291
- [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]: {
1292
1170
  since: '1.3.0',
1293
1171
  tags: [
1294
1172
  {
@@ -1308,7 +1186,7 @@ const BITS = {
1308
1186
  resourceAttachmentAllowed: true,
1309
1187
  bodyAllowed: true,
1310
1188
  },
1311
- [RootBitType.sequence]: {
1189
+ [BitType.sequence]: {
1312
1190
  since: '1.3.0',
1313
1191
  tags: [
1314
1192
  {
@@ -1322,7 +1200,7 @@ const BITS = {
1322
1200
  footerAllowed: true,
1323
1201
  rootExampleType: ExampleType.boolean,
1324
1202
  },
1325
- [RootBitType.stillImageFilm]: {
1203
+ [BitType.stillImageFilm]: {
1326
1204
  since: '1.3.0',
1327
1205
  tags: [
1328
1206
  {
@@ -1337,7 +1215,7 @@ const BITS = {
1337
1215
  ],
1338
1216
  bodyAllowed: true,
1339
1217
  },
1340
- [RootBitType.stillImageFilmEmbed]: {
1218
+ [BitType.stillImageFilmEmbed]: {
1341
1219
  since: '1.3.0',
1342
1220
  tags: [
1343
1221
  {
@@ -1352,7 +1230,7 @@ const BITS = {
1352
1230
  ],
1353
1231
  bodyAllowed: true,
1354
1232
  },
1355
- [RootBitType.stillImageFilmLink]: {
1233
+ [BitType.stillImageFilmLink]: {
1356
1234
  since: '1.3.0',
1357
1235
  tags: [
1358
1236
  {
@@ -1367,7 +1245,7 @@ const BITS = {
1367
1245
  ],
1368
1246
  bodyAllowed: true,
1369
1247
  },
1370
- [RootBitType.surveyAnonymous]: {
1248
+ [BitType.surveyAnonymous]: {
1371
1249
  since: '1.3.0',
1372
1250
  tags: [
1373
1251
  {
@@ -1378,7 +1256,7 @@ const BITS = {
1378
1256
  resourceAttachmentAllowed: true,
1379
1257
  bodyAllowed: true,
1380
1258
  },
1381
- [RootBitType.survey]: {
1259
+ [BitType.survey]: {
1382
1260
  since: '1.3.0',
1383
1261
  tags: [
1384
1262
  {
@@ -1389,7 +1267,7 @@ const BITS = {
1389
1267
  resourceAttachmentAllowed: true,
1390
1268
  bodyAllowed: true,
1391
1269
  },
1392
- [RootBitType.toc]: {
1270
+ [BitType.toc]: {
1393
1271
  since: '1.3.0',
1394
1272
  tags: [
1395
1273
  {
@@ -1398,28 +1276,26 @@ const BITS = {
1398
1276
  },
1399
1277
  ],
1400
1278
  bodyAllowed: true,
1401
- aliases: {
1402
- [AliasBitType.anchor]: { since: '1.3.0' },
1403
- [AliasBitType.bitBookEnding]: { since: '1.3.0' },
1404
- [AliasBitType.bitBookSummary]: { since: '1.3.0' },
1405
- [AliasBitType.botActionAnnounce]: { since: '1.3.0' },
1406
- [AliasBitType.botActionRatingNumber]: { since: '1.3.0' },
1407
- [AliasBitType.botActionRemind]: { since: '1.3.0' },
1408
- [AliasBitType.botActionSave]: { since: '1.3.0' },
1409
- [AliasBitType.botActionTrueFalse]: { since: '1.3.0' },
1410
- [AliasBitType.chapterSubjectMatter]: { since: '1.3.0' },
1411
- [AliasBitType.chat]: { since: '1.3.0' },
1412
- [AliasBitType.conclusion]: { since: '1.3.0' },
1413
- [AliasBitType.documentUpload]: { since: '1.3.0' },
1414
- [AliasBitType.footNote]: { since: '1.3.0' },
1415
- [AliasBitType.groupBorn]: { since: '1.3.0' },
1416
- [AliasBitType.groupDied]: { since: '1.3.0' },
1417
- [AliasBitType.recordAudio]: { since: '1.3.0' },
1418
- [AliasBitType.stickyNote]: { since: '1.3.0' },
1419
- [AliasBitType.takePicture]: { since: '1.3.0' },
1420
- },
1421
1279
  },
1422
- [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]: {
1423
1299
  since: '1.3.0',
1424
1300
  tags: [
1425
1301
  {
@@ -1447,7 +1323,7 @@ const BITS = {
1447
1323
  bodyAllowed: false,
1448
1324
  rootExampleType: ExampleType.boolean,
1449
1325
  },
1450
- [RootBitType.trueFalse]: {
1326
+ [BitType.trueFalse]: {
1451
1327
  since: '1.3.0',
1452
1328
  tags: [
1453
1329
  {
@@ -1468,7 +1344,7 @@ const BITS = {
1468
1344
  bodyAllowed: true,
1469
1345
  footerAllowed: true,
1470
1346
  },
1471
- [RootBitType.vendorPadletEmbed]: {
1347
+ [BitType.vendorPadletEmbed]: {
1472
1348
  since: '1.3.0',
1473
1349
  tags: [
1474
1350
  {
@@ -1483,13 +1359,10 @@ const BITS = {
1483
1359
  textFormatDefault: TextFormat.text,
1484
1360
  bodyAllowed: true,
1485
1361
  },
1486
- [RootBitType.vendorJupyterOutput]: {
1362
+ [BitType.vendorJupyterOutput]: {
1487
1363
  since: '1.4.3',
1364
+ baseBitType: BitType.code,
1488
1365
  tags: [
1489
- {
1490
- type: BitTagType.group,
1491
- configKey: GroupConfigKey.group_standardTags,
1492
- },
1493
1366
  {
1494
1367
  type: BitTagType.property,
1495
1368
  configKey: PropertyConfigKey.jupyterId,
@@ -1498,21 +1371,15 @@ const BITS = {
1498
1371
  type: BitTagType.property,
1499
1372
  configKey: PropertyConfigKey.jupyterExecutionCount,
1500
1373
  },
1501
- {
1502
- type: BitTagType.property,
1503
- configKey: PropertyConfigKey.computerLanguage,
1504
- },
1505
1374
  ],
1506
1375
  textFormatDefault: TextFormat.text,
1507
1376
  bodyAllowed: true,
1508
- aliases: {
1509
- [AliasBitType.vendorJupyterCellCode]: { since: '1.4.3' },
1510
- [AliasBitType.vendorJupyterCellMarkdown]: { since: '1.4.3' },
1511
- [AliasBitType.vendorJupyterCellRaw]: { since: '1.4.3' },
1512
- [AliasBitType.vendorJupyterIpynb]: { since: '1.4.3' },
1513
- },
1514
1377
  },
1515
- [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]: {
1516
1383
  since: '1.3.0',
1517
1384
  tags: [
1518
1385
  {
@@ -1526,12 +1393,10 @@ const BITS = {
1526
1393
  },
1527
1394
  ],
1528
1395
  bodyAllowed: true,
1529
- aliases: {
1530
- [AliasBitType.videoLandscape]: { since: '1.3.0' },
1531
- [AliasBitType.videoPortrait]: { since: '1.3.0' },
1532
- },
1533
1396
  },
1534
- [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]: {
1535
1400
  since: '1.3.0',
1536
1401
  tags: [
1537
1402
  {
@@ -1545,12 +1410,10 @@ const BITS = {
1545
1410
  },
1546
1411
  ],
1547
1412
  bodyAllowed: true,
1548
- aliases: {
1549
- [AliasBitType.videoEmbedLandscape]: { since: '1.3.0' },
1550
- [AliasBitType.videoEmbedPortrait]: { since: '1.3.0' },
1551
- },
1552
1413
  },
1553
- [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]: {
1554
1417
  since: '1.3.0',
1555
1418
  tags: [
1556
1419
  {
@@ -1564,12 +1427,10 @@ const BITS = {
1564
1427
  },
1565
1428
  ],
1566
1429
  bodyAllowed: true,
1567
- aliases: {
1568
- [AliasBitType.videoLinkLandscape]: { since: '1.3.0' },
1569
- [AliasBitType.videoLinkPortrait]: { since: '1.3.0' },
1570
- },
1571
1430
  },
1572
- [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]: {
1573
1434
  since: '1.3.0',
1574
1435
  tags: [
1575
1436
  {