diff --git a/lambda/custom/documents/helpIntent.json b/lambda/custom/documents/helpIntent.json index b2b4fbc..1ba3c12 100644 --- a/lambda/custom/documents/helpIntent.json +++ b/lambda/custom/documents/helpIntent.json @@ -1,11 +1,11 @@ { "type": "APL", - "version": "1.0", + "version": "1.1", "theme": "dark", "import": [ { "name": "alexa-viewport-profiles", - "version": "1.0.0" + "version": "1.1.0" }, { "name": "alexa-layouts", @@ -13,7 +13,7 @@ }, { "name": "alexa-styles", - "version": "1.0.0" + "version": "1.1.0" } ], "resources": [ diff --git a/lambda/custom/documents/launchRequest.json b/lambda/custom/documents/launchRequest.json index 67812b6..aac8ad5 100644 --- a/lambda/custom/documents/launchRequest.json +++ b/lambda/custom/documents/launchRequest.json @@ -1,11 +1,11 @@ { "type": "APL", - "version": "1.0", + "version": "1.1", "theme": "dark", "import": [ { "name": "alexa-viewport-profiles", - "version": "1.0.0" + "version": "1.1.0" }, { "name": "alexa-layouts", @@ -13,7 +13,7 @@ }, { "name": "alexa-styles", - "version": "1.0.0" + "version": "1.1.0" } ], "resources": [ diff --git a/lambda/custom/documents/recipeIntent.json b/lambda/custom/documents/recipeIntent.json index ed3ba6c..ce04cc7 100644 --- a/lambda/custom/documents/recipeIntent.json +++ b/lambda/custom/documents/recipeIntent.json @@ -1,11 +1,11 @@ { "type": "APL", - "version": "1.0", + "version": "1.1", "theme": "dark", "import": [ { "name": "alexa-viewport-profiles", - "version": "1.0.0" + "version": "1.1.0" }, { "name": "alexa-layouts", @@ -13,9 +13,23 @@ }, { "name": "alexa-styles", - "version": "1.0.0" + "version": "1.1.0" } ], + "styles": { + "karaokeText": { + "values": [ + { + "when": "${state.karaoke}", + "color": "white" + }, + { + "when": "${state.karaokeTarget}", + "color": "aqua" + } + ] + } + }, "resources": [ { "description": "Sauce boss background image assets", @@ -107,7 +121,7 @@ "width": "100vw", "height": "80vh", "position": "relative", - "top": "25vh", + "top": "0vh", "direction": "column", "items": [ { @@ -125,12 +139,12 @@ { "type": "Text", "id": "recipeText", - "style": "textStyleKaraoke", + "style": "karaokeText", "text": "${payload.sauceBossData.properties.selectedSauceText}", "speech": "${payload.sauceBossData.properties.selectedSauceSpeech}", - "width": "75vw", + "width": "70vw", "textAlign": "center", - "fontSize": "7vh", + "fontSize": "6vh", "fontWeight": 300 } ] @@ -165,7 +179,7 @@ { "type": "Text", "id": "recipeText", - "style": "textStyleKaraoke", + "style": "karaokeText", "text": "${payload.sauceBossData.properties.selectedSauceText}", "speech": "${payload.sauceBossData.properties.selectedSauceSpeech}", "fontSize": "6vh", diff --git a/lambda/custom/index.js b/lambda/custom/index.js index 6d31fef..e562d65 100644 --- a/lambda/custom/index.js +++ b/lambda/custom/index.js @@ -78,7 +78,7 @@ const LaunchRequestHandler = { if (supportsAPL(handlerInput)) { responseBuilder.addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', - version: '1.0', + version: '1.1', document: APLDocs.launch, datasources: { sauceBossData: { @@ -148,7 +148,7 @@ const HelpHandler = { if (supportsAPL(handlerInput)) { responseBuilder.addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', - version: '1.0', + version: '1.1', datasources: recipes, document: APLDocs.help, }); @@ -407,7 +407,7 @@ function generateRecipeOutput(handlerInput, itemName) { return responseBuilder.addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', token: 'sauce-boss', - version: '1.0', + version: '1.1', document: APLDocs.recipe, datasources: constructRecipeDataSource(itemName, recipe, requestAttributes.t('HINT_TEMPLATE', itemName)), })