@gmb/bitmark-parser-generator 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/cjs/ast/Builder.js +4 -4
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/config/ConfigHydrator.js +9 -5
- package/dist/cjs/config/ConfigHydrator.js.map +1 -1
- package/dist/cjs/config/raw/bits.js +147 -145
- package/dist/cjs/config/raw/bits.js.map +1 -1
- package/dist/cjs/config/raw/cardSets.js +38 -35
- package/dist/cjs/config/raw/cardSets.js.map +1 -1
- package/dist/cjs/config/raw/groups.js +177 -174
- package/dist/cjs/config/raw/groups.js.map +1 -1
- package/dist/cjs/config/raw/properties.js +83 -83
- package/dist/cjs/config/raw/properties.js.map +1 -1
- package/dist/cjs/config/raw/resources.js +23 -23
- package/dist/cjs/config/raw/resources.js.map +1 -1
- package/dist/cjs/config/raw/tags.js +16 -16
- package/dist/cjs/config/raw/tags.js.map +1 -1
- package/dist/cjs/generated/build-info.js +1 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/config/enum/ConfigKey.js +22 -167
- package/dist/cjs/model/config/enum/ConfigKey.js.map +1 -1
- package/dist/cjs/model/config/enum/GroupConfigKey.js +52 -0
- package/dist/cjs/model/config/enum/GroupConfigKey.js.map +1 -0
- package/dist/cjs/model/config/enum/PropertyConfigKey.js +95 -0
- package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -0
- package/dist/cjs/model/config/enum/ResourceConfigKey.js +37 -0
- package/dist/cjs/model/config/enum/ResourceConfigKey.js.map +1 -0
- package/dist/cjs/model/config/enum/TagConfigKey.js +28 -0
- package/dist/cjs/model/config/enum/TagConfigKey.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +6 -6
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/esm/ast/Builder.js +4 -4
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/config/ConfigHydrator.js +9 -5
- package/dist/esm/config/ConfigHydrator.js.map +1 -1
- package/dist/esm/config/raw/bits.js +147 -145
- package/dist/esm/config/raw/bits.js.map +1 -1
- package/dist/esm/config/raw/cardSets.js +38 -35
- package/dist/esm/config/raw/cardSets.js.map +1 -1
- package/dist/esm/config/raw/groups.js +177 -174
- package/dist/esm/config/raw/groups.js.map +1 -1
- package/dist/esm/config/raw/properties.js +83 -83
- package/dist/esm/config/raw/properties.js.map +1 -1
- package/dist/esm/config/raw/resources.js +23 -23
- package/dist/esm/config/raw/resources.js.map +1 -1
- package/dist/esm/config/raw/tags.js +16 -16
- package/dist/esm/config/raw/tags.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/config/enum/ConfigKey.js +22 -167
- package/dist/esm/model/config/enum/ConfigKey.js.map +1 -1
- package/dist/esm/model/config/enum/GroupConfigKey.js +48 -0
- package/dist/esm/model/config/enum/GroupConfigKey.js.map +1 -0
- package/dist/esm/model/config/enum/PropertyConfigKey.js +91 -0
- package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -0
- package/dist/esm/model/config/enum/ResourceConfigKey.js +33 -0
- package/dist/esm/model/config/enum/ResourceConfigKey.js.map +1 -0
- package/dist/esm/model/config/enum/TagConfigKey.js +24 -0
- package/dist/esm/model/config/enum/TagConfigKey.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +6 -6
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/types/config/ConfigHydrator.d.ts.map +1 -1
- package/dist/types/config/raw/bits.d.ts.map +1 -1
- package/dist/types/config/raw/cardSets.d.ts.map +1 -1
- package/dist/types/config/raw/groups.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/config/enum/ConfigKey.d.ts +319 -316
- package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/GroupConfigKey.d.ts +129 -0
- package/dist/types/model/config/enum/GroupConfigKey.d.ts.map +1 -0
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts +258 -0
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -0
- package/dist/types/model/config/enum/ResourceConfigKey.d.ts +78 -0
- package/dist/types/model/config/enum/ResourceConfigKey.d.ts.map +1 -0
- package/dist/types/model/config/enum/TagConfigKey.d.ts +57 -0
- package/dist/types/model/config/enum/TagConfigKey.d.ts.map +1 -0
- package/package.json +1 -3
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { EnumType } from '@ncoderz/superenum';
|
|
2
|
+
/**
|
|
3
|
+
* Config keys for groups
|
|
4
|
+
*/
|
|
5
|
+
declare const groupConfigKeys: {
|
|
6
|
+
readonly group_standardAllBits: "group_standardAllBits";
|
|
7
|
+
readonly group_standardItemLeadInstructionHint: "group_standardItemLeadInstructionHint";
|
|
8
|
+
readonly group_standardExample: "group_standardExample";
|
|
9
|
+
readonly group_standardTags: "group_standardTags";
|
|
10
|
+
readonly group_imageSource: "group_imageSource";
|
|
11
|
+
readonly group_partner: "group_partner";
|
|
12
|
+
readonly group_gap: "group_gap";
|
|
13
|
+
readonly group_trueFalse: "group_trueFalse";
|
|
14
|
+
readonly group_markConfig: "group_markConfig";
|
|
15
|
+
readonly group_mark: "group_mark";
|
|
16
|
+
readonly group_learningPathCommon: "group_learningPathCommon";
|
|
17
|
+
readonly group_resourceCommon: "group_resourceCommon";
|
|
18
|
+
readonly group_resourceImageCommon: "group_resourceImageCommon";
|
|
19
|
+
readonly group_resourceAudioCommon: "group_resourceAudioCommon";
|
|
20
|
+
readonly group_resourceVideoCommon: "group_resourceVideoCommon";
|
|
21
|
+
readonly group_resourceImage: "group_resourceImage";
|
|
22
|
+
readonly group_resourceImageEmbed: "group_resourceImageEmbed";
|
|
23
|
+
readonly group_resourceImageLink: "group_resourceImageLink";
|
|
24
|
+
readonly group_resourceImageResponsive: "group_resourceImageResponsive";
|
|
25
|
+
readonly group_resourceImagePortrait: "group_resourceImagePortrait";
|
|
26
|
+
readonly group_resourceImageLandscape: "group_resourceImageLandscape";
|
|
27
|
+
readonly group_resourceAudio: "group_resourceAudio";
|
|
28
|
+
readonly group_resourceAudioEmbed: "group_resourceAudioEmbed";
|
|
29
|
+
readonly group_resourceAudioLink: "group_resourceAudioLink";
|
|
30
|
+
readonly group_resourceVideo: "group_resourceVideo";
|
|
31
|
+
readonly group_resourceVideoEmbed: "group_resourceVideoEmbed";
|
|
32
|
+
readonly group_resourceVideoLink: "group_resourceVideoLink";
|
|
33
|
+
readonly group_resourceStillImageFilm: "group_resourceStillImageFilm";
|
|
34
|
+
readonly group_resourceStillImageFilmEmbed: "group_resourceStillImageFilmEmbed";
|
|
35
|
+
readonly group_resourceStillImageFilmLink: "group_resourceStillImageFilmLink";
|
|
36
|
+
readonly group_resourceArticle: "group_resourceArticle";
|
|
37
|
+
readonly group_resourceArticleEmbed: "group_resourceArticleEmbed";
|
|
38
|
+
readonly group_resourceArticleLink: "group_resourceArticleLink";
|
|
39
|
+
readonly group_resourceDocument: "group_resourceDocument";
|
|
40
|
+
readonly group_resourceDocumentEmbed: "group_resourceDocumentEmbed";
|
|
41
|
+
readonly group_resourceDocumentLink: "group_resourceDocumentLink";
|
|
42
|
+
readonly group_resourceDocumentDownload: "group_resourceDocumentDownload";
|
|
43
|
+
readonly group_resourceAppLink: "group_resourceAppLink";
|
|
44
|
+
readonly group_resourceWebsiteLink: "group_resourceWebsiteLink";
|
|
45
|
+
};
|
|
46
|
+
declare const GroupConfigKey: Readonly<{
|
|
47
|
+
readonly group_standardAllBits: "group_standardAllBits";
|
|
48
|
+
readonly group_standardItemLeadInstructionHint: "group_standardItemLeadInstructionHint";
|
|
49
|
+
readonly group_standardExample: "group_standardExample";
|
|
50
|
+
readonly group_standardTags: "group_standardTags";
|
|
51
|
+
readonly group_imageSource: "group_imageSource";
|
|
52
|
+
readonly group_partner: "group_partner";
|
|
53
|
+
readonly group_gap: "group_gap";
|
|
54
|
+
readonly group_trueFalse: "group_trueFalse";
|
|
55
|
+
readonly group_markConfig: "group_markConfig";
|
|
56
|
+
readonly group_mark: "group_mark";
|
|
57
|
+
readonly group_learningPathCommon: "group_learningPathCommon";
|
|
58
|
+
readonly group_resourceCommon: "group_resourceCommon";
|
|
59
|
+
readonly group_resourceImageCommon: "group_resourceImageCommon";
|
|
60
|
+
readonly group_resourceAudioCommon: "group_resourceAudioCommon";
|
|
61
|
+
readonly group_resourceVideoCommon: "group_resourceVideoCommon";
|
|
62
|
+
readonly group_resourceImage: "group_resourceImage";
|
|
63
|
+
readonly group_resourceImageEmbed: "group_resourceImageEmbed";
|
|
64
|
+
readonly group_resourceImageLink: "group_resourceImageLink";
|
|
65
|
+
readonly group_resourceImageResponsive: "group_resourceImageResponsive";
|
|
66
|
+
readonly group_resourceImagePortrait: "group_resourceImagePortrait";
|
|
67
|
+
readonly group_resourceImageLandscape: "group_resourceImageLandscape";
|
|
68
|
+
readonly group_resourceAudio: "group_resourceAudio";
|
|
69
|
+
readonly group_resourceAudioEmbed: "group_resourceAudioEmbed";
|
|
70
|
+
readonly group_resourceAudioLink: "group_resourceAudioLink";
|
|
71
|
+
readonly group_resourceVideo: "group_resourceVideo";
|
|
72
|
+
readonly group_resourceVideoEmbed: "group_resourceVideoEmbed";
|
|
73
|
+
readonly group_resourceVideoLink: "group_resourceVideoLink";
|
|
74
|
+
readonly group_resourceStillImageFilm: "group_resourceStillImageFilm";
|
|
75
|
+
readonly group_resourceStillImageFilmEmbed: "group_resourceStillImageFilmEmbed";
|
|
76
|
+
readonly group_resourceStillImageFilmLink: "group_resourceStillImageFilmLink";
|
|
77
|
+
readonly group_resourceArticle: "group_resourceArticle";
|
|
78
|
+
readonly group_resourceArticleEmbed: "group_resourceArticleEmbed";
|
|
79
|
+
readonly group_resourceArticleLink: "group_resourceArticleLink";
|
|
80
|
+
readonly group_resourceDocument: "group_resourceDocument";
|
|
81
|
+
readonly group_resourceDocumentEmbed: "group_resourceDocumentEmbed";
|
|
82
|
+
readonly group_resourceDocumentLink: "group_resourceDocumentLink";
|
|
83
|
+
readonly group_resourceDocumentDownload: "group_resourceDocumentDownload";
|
|
84
|
+
readonly group_resourceAppLink: "group_resourceAppLink";
|
|
85
|
+
readonly group_resourceWebsiteLink: "group_resourceWebsiteLink";
|
|
86
|
+
}> & import("@ncoderz/superenum").EnumExtensions<EnumType<{
|
|
87
|
+
readonly group_standardAllBits: "group_standardAllBits";
|
|
88
|
+
readonly group_standardItemLeadInstructionHint: "group_standardItemLeadInstructionHint";
|
|
89
|
+
readonly group_standardExample: "group_standardExample";
|
|
90
|
+
readonly group_standardTags: "group_standardTags";
|
|
91
|
+
readonly group_imageSource: "group_imageSource";
|
|
92
|
+
readonly group_partner: "group_partner";
|
|
93
|
+
readonly group_gap: "group_gap";
|
|
94
|
+
readonly group_trueFalse: "group_trueFalse";
|
|
95
|
+
readonly group_markConfig: "group_markConfig";
|
|
96
|
+
readonly group_mark: "group_mark";
|
|
97
|
+
readonly group_learningPathCommon: "group_learningPathCommon";
|
|
98
|
+
readonly group_resourceCommon: "group_resourceCommon";
|
|
99
|
+
readonly group_resourceImageCommon: "group_resourceImageCommon";
|
|
100
|
+
readonly group_resourceAudioCommon: "group_resourceAudioCommon";
|
|
101
|
+
readonly group_resourceVideoCommon: "group_resourceVideoCommon";
|
|
102
|
+
readonly group_resourceImage: "group_resourceImage";
|
|
103
|
+
readonly group_resourceImageEmbed: "group_resourceImageEmbed";
|
|
104
|
+
readonly group_resourceImageLink: "group_resourceImageLink";
|
|
105
|
+
readonly group_resourceImageResponsive: "group_resourceImageResponsive";
|
|
106
|
+
readonly group_resourceImagePortrait: "group_resourceImagePortrait";
|
|
107
|
+
readonly group_resourceImageLandscape: "group_resourceImageLandscape";
|
|
108
|
+
readonly group_resourceAudio: "group_resourceAudio";
|
|
109
|
+
readonly group_resourceAudioEmbed: "group_resourceAudioEmbed";
|
|
110
|
+
readonly group_resourceAudioLink: "group_resourceAudioLink";
|
|
111
|
+
readonly group_resourceVideo: "group_resourceVideo";
|
|
112
|
+
readonly group_resourceVideoEmbed: "group_resourceVideoEmbed";
|
|
113
|
+
readonly group_resourceVideoLink: "group_resourceVideoLink";
|
|
114
|
+
readonly group_resourceStillImageFilm: "group_resourceStillImageFilm";
|
|
115
|
+
readonly group_resourceStillImageFilmEmbed: "group_resourceStillImageFilmEmbed";
|
|
116
|
+
readonly group_resourceStillImageFilmLink: "group_resourceStillImageFilmLink";
|
|
117
|
+
readonly group_resourceArticle: "group_resourceArticle";
|
|
118
|
+
readonly group_resourceArticleEmbed: "group_resourceArticleEmbed";
|
|
119
|
+
readonly group_resourceArticleLink: "group_resourceArticleLink";
|
|
120
|
+
readonly group_resourceDocument: "group_resourceDocument";
|
|
121
|
+
readonly group_resourceDocumentEmbed: "group_resourceDocumentEmbed";
|
|
122
|
+
readonly group_resourceDocumentLink: "group_resourceDocumentLink";
|
|
123
|
+
readonly group_resourceDocumentDownload: "group_resourceDocumentDownload";
|
|
124
|
+
readonly group_resourceAppLink: "group_resourceAppLink";
|
|
125
|
+
readonly group_resourceWebsiteLink: "group_resourceWebsiteLink";
|
|
126
|
+
}>>;
|
|
127
|
+
export type GroupConfigKeyType = EnumType<typeof GroupConfigKey>;
|
|
128
|
+
export { GroupConfigKey, groupConfigKeys };
|
|
129
|
+
//# sourceMappingURL=GroupConfigKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupConfigKey.d.ts","sourceRoot":"","sources":["../../../../../src/model/config/enum/GroupConfigKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,oBAAoB,CAAC;AAEzD;;GAEG;AACH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCX,CAAC;AAEX,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6B,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { EnumType } from '@ncoderz/superenum';
|
|
2
|
+
/**
|
|
3
|
+
* Config keys for properties
|
|
4
|
+
*/
|
|
5
|
+
declare const propertyConfigKeys: {
|
|
6
|
+
readonly action: "action";
|
|
7
|
+
readonly ageRange: "ageRange";
|
|
8
|
+
readonly aiGenerated: "aiGenerated";
|
|
9
|
+
readonly allowSubtitles: "allowSubtitles";
|
|
10
|
+
readonly alt: "alt";
|
|
11
|
+
readonly author: "author";
|
|
12
|
+
readonly autoplay: "autoplay";
|
|
13
|
+
readonly book: "book";
|
|
14
|
+
readonly bot: "bot";
|
|
15
|
+
readonly caption: "caption";
|
|
16
|
+
readonly caseSensitive: "caseSensitive";
|
|
17
|
+
readonly color: "color";
|
|
18
|
+
readonly colorTag: "colorTag";
|
|
19
|
+
readonly computerLanguage: "computerLanguage";
|
|
20
|
+
readonly copyright: "copyright";
|
|
21
|
+
readonly coverImage: "coverImage";
|
|
22
|
+
readonly date: "date";
|
|
23
|
+
readonly deeplink: "deeplink";
|
|
24
|
+
readonly duration: "duration";
|
|
25
|
+
readonly emphasis: "emphasis";
|
|
26
|
+
readonly example: "example";
|
|
27
|
+
readonly externalId: "externalId";
|
|
28
|
+
readonly externalLink: "externalLink";
|
|
29
|
+
readonly externalLinkText: "externalLinkText";
|
|
30
|
+
readonly flashcardSet: "flashcardSet";
|
|
31
|
+
readonly focusX: "focusX";
|
|
32
|
+
readonly focusY: "focusY";
|
|
33
|
+
readonly format: "format";
|
|
34
|
+
readonly height: "height";
|
|
35
|
+
readonly icon: "icon";
|
|
36
|
+
readonly iconTag: "iconTag";
|
|
37
|
+
readonly id: "id";
|
|
38
|
+
readonly imageSource: "imageSource";
|
|
39
|
+
readonly isInfoOnly: "isInfoOnly";
|
|
40
|
+
readonly isTracked: "isTracked";
|
|
41
|
+
readonly kind: "kind";
|
|
42
|
+
readonly labelFalse: "labelFalse";
|
|
43
|
+
readonly labelTrue: "labelTrue";
|
|
44
|
+
readonly language: "language";
|
|
45
|
+
readonly level: "level";
|
|
46
|
+
readonly license: "license";
|
|
47
|
+
readonly list: "list";
|
|
48
|
+
readonly location: "location";
|
|
49
|
+
readonly longAnswer: "longAnswer";
|
|
50
|
+
readonly markConfig: "markConfig";
|
|
51
|
+
readonly property_mark: "property_mark";
|
|
52
|
+
readonly mockupId: "mockupId";
|
|
53
|
+
readonly mute: "mute";
|
|
54
|
+
readonly padletId: "padletId";
|
|
55
|
+
readonly partialAnswer: "partialAnswer";
|
|
56
|
+
readonly partner: "partner";
|
|
57
|
+
readonly posterImage: "posterImage";
|
|
58
|
+
readonly progress: "progress";
|
|
59
|
+
readonly publications: "publications";
|
|
60
|
+
readonly publisher: "publisher";
|
|
61
|
+
readonly quotedPerson: "quotedPerson";
|
|
62
|
+
readonly reaction: "reaction";
|
|
63
|
+
readonly property_reference: "property_reference";
|
|
64
|
+
readonly releaseVersion: "releaseVersion";
|
|
65
|
+
readonly property_sampleSolution: "property_sampleSolution";
|
|
66
|
+
readonly shortAnswer: "shortAnswer";
|
|
67
|
+
readonly showInIndex: "showInIndex";
|
|
68
|
+
readonly showSubtitles: "showSubtitles";
|
|
69
|
+
readonly siteName: "siteName";
|
|
70
|
+
readonly size: "size";
|
|
71
|
+
readonly spaceId: "spaceId";
|
|
72
|
+
readonly src1x: "src1x";
|
|
73
|
+
readonly src2x: "src2x";
|
|
74
|
+
readonly src3x: "src3x";
|
|
75
|
+
readonly src4x: "src4x";
|
|
76
|
+
readonly subject: "subject";
|
|
77
|
+
readonly subtype: "subtype";
|
|
78
|
+
readonly tag: "tag";
|
|
79
|
+
readonly target: "target";
|
|
80
|
+
readonly textReference: "textReference";
|
|
81
|
+
readonly theme: "theme";
|
|
82
|
+
readonly thumbImage: "thumbImage";
|
|
83
|
+
readonly toc: "toc";
|
|
84
|
+
readonly trim: "trim";
|
|
85
|
+
readonly type: "type";
|
|
86
|
+
readonly videoCallLink: "videoCallLink";
|
|
87
|
+
readonly width: "width";
|
|
88
|
+
};
|
|
89
|
+
declare const PropertyConfigKey: Readonly<{
|
|
90
|
+
readonly action: "action";
|
|
91
|
+
readonly ageRange: "ageRange";
|
|
92
|
+
readonly aiGenerated: "aiGenerated";
|
|
93
|
+
readonly allowSubtitles: "allowSubtitles";
|
|
94
|
+
readonly alt: "alt";
|
|
95
|
+
readonly author: "author";
|
|
96
|
+
readonly autoplay: "autoplay";
|
|
97
|
+
readonly book: "book";
|
|
98
|
+
readonly bot: "bot";
|
|
99
|
+
readonly caption: "caption";
|
|
100
|
+
readonly caseSensitive: "caseSensitive";
|
|
101
|
+
readonly color: "color";
|
|
102
|
+
readonly colorTag: "colorTag";
|
|
103
|
+
readonly computerLanguage: "computerLanguage";
|
|
104
|
+
readonly copyright: "copyright";
|
|
105
|
+
readonly coverImage: "coverImage";
|
|
106
|
+
readonly date: "date";
|
|
107
|
+
readonly deeplink: "deeplink";
|
|
108
|
+
readonly duration: "duration";
|
|
109
|
+
readonly emphasis: "emphasis";
|
|
110
|
+
readonly example: "example";
|
|
111
|
+
readonly externalId: "externalId";
|
|
112
|
+
readonly externalLink: "externalLink";
|
|
113
|
+
readonly externalLinkText: "externalLinkText";
|
|
114
|
+
readonly flashcardSet: "flashcardSet";
|
|
115
|
+
readonly focusX: "focusX";
|
|
116
|
+
readonly focusY: "focusY";
|
|
117
|
+
readonly format: "format";
|
|
118
|
+
readonly height: "height";
|
|
119
|
+
readonly icon: "icon";
|
|
120
|
+
readonly iconTag: "iconTag";
|
|
121
|
+
readonly id: "id";
|
|
122
|
+
readonly imageSource: "imageSource";
|
|
123
|
+
readonly isInfoOnly: "isInfoOnly";
|
|
124
|
+
readonly isTracked: "isTracked";
|
|
125
|
+
readonly kind: "kind";
|
|
126
|
+
readonly labelFalse: "labelFalse";
|
|
127
|
+
readonly labelTrue: "labelTrue";
|
|
128
|
+
readonly language: "language";
|
|
129
|
+
readonly level: "level";
|
|
130
|
+
readonly license: "license";
|
|
131
|
+
readonly list: "list";
|
|
132
|
+
readonly location: "location";
|
|
133
|
+
readonly longAnswer: "longAnswer";
|
|
134
|
+
readonly markConfig: "markConfig";
|
|
135
|
+
readonly property_mark: "property_mark";
|
|
136
|
+
readonly mockupId: "mockupId";
|
|
137
|
+
readonly mute: "mute";
|
|
138
|
+
readonly padletId: "padletId";
|
|
139
|
+
readonly partialAnswer: "partialAnswer";
|
|
140
|
+
readonly partner: "partner";
|
|
141
|
+
readonly posterImage: "posterImage";
|
|
142
|
+
readonly progress: "progress";
|
|
143
|
+
readonly publications: "publications";
|
|
144
|
+
readonly publisher: "publisher";
|
|
145
|
+
readonly quotedPerson: "quotedPerson";
|
|
146
|
+
readonly reaction: "reaction";
|
|
147
|
+
readonly property_reference: "property_reference";
|
|
148
|
+
readonly releaseVersion: "releaseVersion";
|
|
149
|
+
readonly property_sampleSolution: "property_sampleSolution";
|
|
150
|
+
readonly shortAnswer: "shortAnswer";
|
|
151
|
+
readonly showInIndex: "showInIndex";
|
|
152
|
+
readonly showSubtitles: "showSubtitles";
|
|
153
|
+
readonly siteName: "siteName";
|
|
154
|
+
readonly size: "size";
|
|
155
|
+
readonly spaceId: "spaceId";
|
|
156
|
+
readonly src1x: "src1x";
|
|
157
|
+
readonly src2x: "src2x";
|
|
158
|
+
readonly src3x: "src3x";
|
|
159
|
+
readonly src4x: "src4x";
|
|
160
|
+
readonly subject: "subject";
|
|
161
|
+
readonly subtype: "subtype";
|
|
162
|
+
readonly tag: "tag";
|
|
163
|
+
readonly target: "target";
|
|
164
|
+
readonly textReference: "textReference";
|
|
165
|
+
readonly theme: "theme";
|
|
166
|
+
readonly thumbImage: "thumbImage";
|
|
167
|
+
readonly toc: "toc";
|
|
168
|
+
readonly trim: "trim";
|
|
169
|
+
readonly type: "type";
|
|
170
|
+
readonly videoCallLink: "videoCallLink";
|
|
171
|
+
readonly width: "width";
|
|
172
|
+
}> & import("@ncoderz/superenum").EnumExtensions<EnumType<{
|
|
173
|
+
readonly action: "action";
|
|
174
|
+
readonly ageRange: "ageRange";
|
|
175
|
+
readonly aiGenerated: "aiGenerated";
|
|
176
|
+
readonly allowSubtitles: "allowSubtitles";
|
|
177
|
+
readonly alt: "alt";
|
|
178
|
+
readonly author: "author";
|
|
179
|
+
readonly autoplay: "autoplay";
|
|
180
|
+
readonly book: "book";
|
|
181
|
+
readonly bot: "bot";
|
|
182
|
+
readonly caption: "caption";
|
|
183
|
+
readonly caseSensitive: "caseSensitive";
|
|
184
|
+
readonly color: "color";
|
|
185
|
+
readonly colorTag: "colorTag";
|
|
186
|
+
readonly computerLanguage: "computerLanguage";
|
|
187
|
+
readonly copyright: "copyright";
|
|
188
|
+
readonly coverImage: "coverImage";
|
|
189
|
+
readonly date: "date";
|
|
190
|
+
readonly deeplink: "deeplink";
|
|
191
|
+
readonly duration: "duration";
|
|
192
|
+
readonly emphasis: "emphasis";
|
|
193
|
+
readonly example: "example";
|
|
194
|
+
readonly externalId: "externalId";
|
|
195
|
+
readonly externalLink: "externalLink";
|
|
196
|
+
readonly externalLinkText: "externalLinkText";
|
|
197
|
+
readonly flashcardSet: "flashcardSet";
|
|
198
|
+
readonly focusX: "focusX";
|
|
199
|
+
readonly focusY: "focusY";
|
|
200
|
+
readonly format: "format";
|
|
201
|
+
readonly height: "height";
|
|
202
|
+
readonly icon: "icon";
|
|
203
|
+
readonly iconTag: "iconTag";
|
|
204
|
+
readonly id: "id";
|
|
205
|
+
readonly imageSource: "imageSource";
|
|
206
|
+
readonly isInfoOnly: "isInfoOnly";
|
|
207
|
+
readonly isTracked: "isTracked";
|
|
208
|
+
readonly kind: "kind";
|
|
209
|
+
readonly labelFalse: "labelFalse";
|
|
210
|
+
readonly labelTrue: "labelTrue";
|
|
211
|
+
readonly language: "language";
|
|
212
|
+
readonly level: "level";
|
|
213
|
+
readonly license: "license";
|
|
214
|
+
readonly list: "list";
|
|
215
|
+
readonly location: "location";
|
|
216
|
+
readonly longAnswer: "longAnswer";
|
|
217
|
+
readonly markConfig: "markConfig";
|
|
218
|
+
readonly property_mark: "property_mark";
|
|
219
|
+
readonly mockupId: "mockupId";
|
|
220
|
+
readonly mute: "mute";
|
|
221
|
+
readonly padletId: "padletId";
|
|
222
|
+
readonly partialAnswer: "partialAnswer";
|
|
223
|
+
readonly partner: "partner";
|
|
224
|
+
readonly posterImage: "posterImage";
|
|
225
|
+
readonly progress: "progress";
|
|
226
|
+
readonly publications: "publications";
|
|
227
|
+
readonly publisher: "publisher";
|
|
228
|
+
readonly quotedPerson: "quotedPerson";
|
|
229
|
+
readonly reaction: "reaction";
|
|
230
|
+
readonly property_reference: "property_reference";
|
|
231
|
+
readonly releaseVersion: "releaseVersion";
|
|
232
|
+
readonly property_sampleSolution: "property_sampleSolution";
|
|
233
|
+
readonly shortAnswer: "shortAnswer";
|
|
234
|
+
readonly showInIndex: "showInIndex";
|
|
235
|
+
readonly showSubtitles: "showSubtitles";
|
|
236
|
+
readonly siteName: "siteName";
|
|
237
|
+
readonly size: "size";
|
|
238
|
+
readonly spaceId: "spaceId";
|
|
239
|
+
readonly src1x: "src1x";
|
|
240
|
+
readonly src2x: "src2x";
|
|
241
|
+
readonly src3x: "src3x";
|
|
242
|
+
readonly src4x: "src4x";
|
|
243
|
+
readonly subject: "subject";
|
|
244
|
+
readonly subtype: "subtype";
|
|
245
|
+
readonly tag: "tag";
|
|
246
|
+
readonly target: "target";
|
|
247
|
+
readonly textReference: "textReference";
|
|
248
|
+
readonly theme: "theme";
|
|
249
|
+
readonly thumbImage: "thumbImage";
|
|
250
|
+
readonly toc: "toc";
|
|
251
|
+
readonly trim: "trim";
|
|
252
|
+
readonly type: "type";
|
|
253
|
+
readonly videoCallLink: "videoCallLink";
|
|
254
|
+
readonly width: "width";
|
|
255
|
+
}>>;
|
|
256
|
+
export type PropertyConfigKeyType = EnumType<typeof PropertyConfigKey>;
|
|
257
|
+
export { PropertyConfigKey, propertyConfigKeys };
|
|
258
|
+
//# sourceMappingURL=PropertyConfigKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyConfigKey.d.ts","sourceRoot":"","sources":["../../../../../src/model/config/enum/PropertyConfigKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,oBAAoB,CAAC;AAEzD;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFd,CAAC;AAEX,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAgC,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { EnumType } from '@ncoderz/superenum';
|
|
2
|
+
/**
|
|
3
|
+
* Config keys for resources
|
|
4
|
+
*/
|
|
5
|
+
declare const resourceConfigKeys: {
|
|
6
|
+
readonly image: "image";
|
|
7
|
+
readonly imagePortrait: "imagePortrait";
|
|
8
|
+
readonly imageLandscape: "imageLandscape";
|
|
9
|
+
readonly imageEmbed: "imageEmbed";
|
|
10
|
+
readonly imageLink: "imageLink";
|
|
11
|
+
readonly audio: "audio";
|
|
12
|
+
readonly audioEmbed: "audioEmbed";
|
|
13
|
+
readonly audioLink: "audioLink";
|
|
14
|
+
readonly video: "video";
|
|
15
|
+
readonly videoEmbed: "videoEmbed";
|
|
16
|
+
readonly videoLink: "videoLink";
|
|
17
|
+
readonly stillImageFilmEmbed: "stillImageFilmEmbed";
|
|
18
|
+
readonly stillImageFilmLink: "stillImageFilmLink";
|
|
19
|
+
readonly article: "article";
|
|
20
|
+
readonly articleEmbed: "articleEmbed";
|
|
21
|
+
readonly articleLink: "articleLink";
|
|
22
|
+
readonly document: "document";
|
|
23
|
+
readonly documentEmbed: "documentEmbed";
|
|
24
|
+
readonly documentLink: "documentLink";
|
|
25
|
+
readonly documentDownload: "documentDownload";
|
|
26
|
+
readonly appLink: "appLink";
|
|
27
|
+
readonly websiteLink: "websiteLink";
|
|
28
|
+
};
|
|
29
|
+
declare const ResourceConfigKey: Readonly<{
|
|
30
|
+
readonly image: "image";
|
|
31
|
+
readonly imagePortrait: "imagePortrait";
|
|
32
|
+
readonly imageLandscape: "imageLandscape";
|
|
33
|
+
readonly imageEmbed: "imageEmbed";
|
|
34
|
+
readonly imageLink: "imageLink";
|
|
35
|
+
readonly audio: "audio";
|
|
36
|
+
readonly audioEmbed: "audioEmbed";
|
|
37
|
+
readonly audioLink: "audioLink";
|
|
38
|
+
readonly video: "video";
|
|
39
|
+
readonly videoEmbed: "videoEmbed";
|
|
40
|
+
readonly videoLink: "videoLink";
|
|
41
|
+
readonly stillImageFilmEmbed: "stillImageFilmEmbed";
|
|
42
|
+
readonly stillImageFilmLink: "stillImageFilmLink";
|
|
43
|
+
readonly article: "article";
|
|
44
|
+
readonly articleEmbed: "articleEmbed";
|
|
45
|
+
readonly articleLink: "articleLink";
|
|
46
|
+
readonly document: "document";
|
|
47
|
+
readonly documentEmbed: "documentEmbed";
|
|
48
|
+
readonly documentLink: "documentLink";
|
|
49
|
+
readonly documentDownload: "documentDownload";
|
|
50
|
+
readonly appLink: "appLink";
|
|
51
|
+
readonly websiteLink: "websiteLink";
|
|
52
|
+
}> & import("@ncoderz/superenum").EnumExtensions<EnumType<{
|
|
53
|
+
readonly image: "image";
|
|
54
|
+
readonly imagePortrait: "imagePortrait";
|
|
55
|
+
readonly imageLandscape: "imageLandscape";
|
|
56
|
+
readonly imageEmbed: "imageEmbed";
|
|
57
|
+
readonly imageLink: "imageLink";
|
|
58
|
+
readonly audio: "audio";
|
|
59
|
+
readonly audioEmbed: "audioEmbed";
|
|
60
|
+
readonly audioLink: "audioLink";
|
|
61
|
+
readonly video: "video";
|
|
62
|
+
readonly videoEmbed: "videoEmbed";
|
|
63
|
+
readonly videoLink: "videoLink";
|
|
64
|
+
readonly stillImageFilmEmbed: "stillImageFilmEmbed";
|
|
65
|
+
readonly stillImageFilmLink: "stillImageFilmLink";
|
|
66
|
+
readonly article: "article";
|
|
67
|
+
readonly articleEmbed: "articleEmbed";
|
|
68
|
+
readonly articleLink: "articleLink";
|
|
69
|
+
readonly document: "document";
|
|
70
|
+
readonly documentEmbed: "documentEmbed";
|
|
71
|
+
readonly documentLink: "documentLink";
|
|
72
|
+
readonly documentDownload: "documentDownload";
|
|
73
|
+
readonly appLink: "appLink";
|
|
74
|
+
readonly websiteLink: "websiteLink";
|
|
75
|
+
}>>;
|
|
76
|
+
export type ResourceConfigKeyType = EnumType<typeof ResourceConfigKey>;
|
|
77
|
+
export { ResourceConfigKey, resourceConfigKeys };
|
|
78
|
+
//# sourceMappingURL=ResourceConfigKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceConfigKey.d.ts","sourceRoot":"","sources":["../../../../../src/model/config/enum/ResourceConfigKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,oBAAoB,CAAC;AAEzD;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;CAyBd,CAAC;AAEX,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAgC,CAAC;AAExD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EnumType } from '@ncoderz/superenum';
|
|
2
|
+
/**
|
|
3
|
+
* Config keys for tags
|
|
4
|
+
*/
|
|
5
|
+
declare const tagConfigKeys: {
|
|
6
|
+
readonly title: "title";
|
|
7
|
+
readonly anchor: "anchor";
|
|
8
|
+
readonly tag_reference: "tag_reference";
|
|
9
|
+
readonly property: "property";
|
|
10
|
+
readonly itemLead: "itemLead";
|
|
11
|
+
readonly instruction: "instruction";
|
|
12
|
+
readonly hint: "hint";
|
|
13
|
+
readonly true: "true";
|
|
14
|
+
readonly false: "false";
|
|
15
|
+
readonly sampleSolution: "sampleSolution";
|
|
16
|
+
readonly gap: "gap";
|
|
17
|
+
readonly tag_mark: "tag_mark";
|
|
18
|
+
readonly resource: "resource";
|
|
19
|
+
readonly remark: "remark";
|
|
20
|
+
readonly comment: "comment";
|
|
21
|
+
};
|
|
22
|
+
declare const TagConfigKey: Readonly<{
|
|
23
|
+
readonly title: "title";
|
|
24
|
+
readonly anchor: "anchor";
|
|
25
|
+
readonly tag_reference: "tag_reference";
|
|
26
|
+
readonly property: "property";
|
|
27
|
+
readonly itemLead: "itemLead";
|
|
28
|
+
readonly instruction: "instruction";
|
|
29
|
+
readonly hint: "hint";
|
|
30
|
+
readonly true: "true";
|
|
31
|
+
readonly false: "false";
|
|
32
|
+
readonly sampleSolution: "sampleSolution";
|
|
33
|
+
readonly gap: "gap";
|
|
34
|
+
readonly tag_mark: "tag_mark";
|
|
35
|
+
readonly resource: "resource";
|
|
36
|
+
readonly remark: "remark";
|
|
37
|
+
readonly comment: "comment";
|
|
38
|
+
}> & import("@ncoderz/superenum").EnumExtensions<EnumType<{
|
|
39
|
+
readonly title: "title";
|
|
40
|
+
readonly anchor: "anchor";
|
|
41
|
+
readonly tag_reference: "tag_reference";
|
|
42
|
+
readonly property: "property";
|
|
43
|
+
readonly itemLead: "itemLead";
|
|
44
|
+
readonly instruction: "instruction";
|
|
45
|
+
readonly hint: "hint";
|
|
46
|
+
readonly true: "true";
|
|
47
|
+
readonly false: "false";
|
|
48
|
+
readonly sampleSolution: "sampleSolution";
|
|
49
|
+
readonly gap: "gap";
|
|
50
|
+
readonly tag_mark: "tag_mark";
|
|
51
|
+
readonly resource: "resource";
|
|
52
|
+
readonly remark: "remark";
|
|
53
|
+
readonly comment: "comment";
|
|
54
|
+
}>>;
|
|
55
|
+
export type TagConfigKeyType = EnumType<typeof TagConfigKey>;
|
|
56
|
+
export { TagConfigKey, tagConfigKeys };
|
|
57
|
+
//# sourceMappingURL=TagConfigKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagConfigKey.d.ts","sourceRoot":"","sources":["../../../../../src/model/config/enum/TagConfigKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,oBAAoB,CAAC;AAEzD;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;CAgBT,CAAC;AAEX,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2B,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmb/bitmark-parser-generator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "A bitmark parser and generator using Peggy.js",
|
|
5
5
|
"author": "Richard Sewell",
|
|
6
6
|
"license": "ISC",
|
|
@@ -32,9 +32,7 @@
|
|
|
32
32
|
"build-grammar-text-test": "BPG_ENV=development node -r esbuild-register ./scripts/grammar/text/generate-text-parser.ts --test",
|
|
33
33
|
"test": "jest --runInBand",
|
|
34
34
|
"test-generator": "jest --config=jest.config.js --testMatch=\\<rootDir\\>/test/standard/bitmark-generator.test.ts --runInBand",
|
|
35
|
-
"test-generator-books": "jest --config=./test/custom/generator/books/jest.generator.books.config.js --runInBand",
|
|
36
35
|
"test-parser": "jest --config=jest.config.js --testMatch=\\<rootDir\\>/test/standard/bitmark-parser.test.ts --runInBand",
|
|
37
|
-
"test-parser-books": "jest --config=./test/custom/parser/books/jest.parser.books.config.js --runInBand",
|
|
38
36
|
"test-text-plusplus-parser": "jest --config=jest.config.js --testMatch=\\<rootDir\\>/test/standard/text-plusplus-parser.test.ts --runInBand",
|
|
39
37
|
"test-text-plusplus-generator": "jest --config=jest.config.js --testMatch=\\<rootDir\\>/test/standard/text-plusplus-generator.test.ts --runInBand",
|
|
40
38
|
"test-text-minusminus-parser": "jest --config=jest.config.js --testMatch=\\<rootDir\\>/test/standard/text-minusminus-parser.test.ts --runInBand",
|