@media-quest/builder 0.0.5 → 0.0.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@media-quest/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Builder library for Media-quest schemas",
|
|
5
5
|
"main": "dist/public-api.js",
|
|
6
6
|
"module": "dist/public-api.mjs",
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"prepublishOnly": "npm run build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@media-quest/engine": "0.0.
|
|
16
|
+
"@media-quest/engine": "0.0.6"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -56,6 +56,8 @@ export class DefaultThemeCompiler extends AbstractThemeCompiler<IDefaultTheme> {
|
|
|
56
56
|
compile(source: BuilderSchemaDto): SchemaDto {
|
|
57
57
|
const pages = source.pages.map((p) => this.compilePage(p, source.prefix));
|
|
58
58
|
const rules = this.compileRules(source);
|
|
59
|
+
console.log(pages.map((p) => p.tags));
|
|
60
|
+
|
|
59
61
|
const dto: SchemaDto = {
|
|
60
62
|
backgroundColor: source.backgroundColor,
|
|
61
63
|
baseHeight: source.baseHeight,
|
|
@@ -119,6 +121,7 @@ export class DefaultThemeCompiler extends AbstractThemeCompiler<IDefaultTheme> {
|
|
|
119
121
|
private compilePage(page: BuilderPageDto, modulePrefix: string): PageDto {
|
|
120
122
|
// console.log(_moduleId);
|
|
121
123
|
// const textElement
|
|
124
|
+
const tags = page.tags ?? [];
|
|
122
125
|
const { nextButton, mainText, id, mainMedia, _type } = page;
|
|
123
126
|
const elements: DElementDto[] = [];
|
|
124
127
|
const audioResourcesDto: DAudioDto[] = [];
|
|
@@ -200,7 +203,7 @@ export class DefaultThemeCompiler extends AbstractThemeCompiler<IDefaultTheme> {
|
|
|
200
203
|
elements,
|
|
201
204
|
id,
|
|
202
205
|
mainVideoId,
|
|
203
|
-
tags: [],
|
|
206
|
+
tags: [...tags],
|
|
204
207
|
video: videoResources,
|
|
205
208
|
};
|
|
206
209
|
return pageDto;
|