File tree Expand file tree Collapse file tree 5 files changed +19
-8
lines changed Expand file tree Collapse file tree 5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 11# Changelog for apl-viewhost-web
22
3+ ## [ 2022.1.1]
4+
5+ ### Changed
6+
7+ - Bug fixes
8+
39## [ 2022.1]
410
511This release adds support for version 2022.1 of the APL specification. Please also see APL Core Library for changes: [ apl-core-library CHANGELOG] ( https://github.com/alexa/apl-core-library/blob/master/CHANGELOG.md )
Original file line number Diff line number Diff line change 11# Alexa Presentation Language (APL) Viewhost Web
22
33<p >
4- <a href =" https://github.com/alexa/apl-viewhost-web/tree/v2022.1 " alt =" version " >
5- <img src =" https://img.shields.io/badge/stable%20version-2022.1-brightgreen " /></a >
6- <a href =" https://github.com/alexa/apl-core-library/tree/v2022.1 " alt =" APLCore " >
7- <img src =" https://img.shields.io/badge/apl%20core%20library-2022.1-navy " /></a >
4+ <a href =" https://github.com/alexa/apl-viewhost-web/tree/v2022.1.1 " alt =" version " >
5+ <img src =" https://img.shields.io/badge/stable%20version-2022.1.1 -brightgreen " /></a >
6+ <a href =" https://github.com/alexa/apl-core-library/tree/v2022.1.1 " alt =" APLCore " >
7+ <img src =" https://img.shields.io/badge/apl%20core%20library-2022.1.1 -navy " /></a >
88</p >
99
1010## Introduction
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ export class Speak extends Event implements IPlaybackEventListener {
2525
2626 public onPlaybackStarted ( ) {
2727 this . renderer . onSpeakEventStart ( this . type ) ;
28+ if ( this . component === undefined ) {
29+ return ;
30+ }
2831 const markers = this . renderer . audioPlayer . getLatestMarkers ( ) ;
2932 const componentType = this . component . component . getType ( ) ;
3033 const useSequencer = HighlightSequencer . shouldUseSequencer ( markers ,
@@ -59,8 +62,10 @@ export class Speak extends Event implements IPlaybackEventListener {
5962
6063 public async execute ( ) {
6164 this . component = this . renderer . componentMap [ this . event . getComponent ( ) . getUniqueId ( ) ] ;
62- this . align = this . event . getValue < CommandScrollAlign > ( EventProperty . kEventPropertyAlign ) ;
63- this . highlightMode = this . event . getValue < CommandHighlightMode > ( EventProperty . kEventPropertyHighlightMode ) ;
65+ if ( this . component !== undefined ) {
66+ this . align = this . event . getValue < CommandScrollAlign > ( EventProperty . kEventPropertyAlign ) ;
67+ this . highlightMode = this . event . getValue < CommandHighlightMode > ( EventProperty . kEventPropertyHighlightMode ) ;
68+ }
6469
6570 this . renderer . audioPlayer . playLatest ( this ) ;
6671 }
Original file line number Diff line number Diff line change 11{
22 "name" : " apl-viewhost-web" ,
3- "version" : " 2022.1.0 " ,
3+ "version" : " 2022.1.1 " ,
44 "description" : " This is a Web-assembly version (WASM) of apl viewhost web." ,
55 "license" : " Apache 2.0" ,
66 "repository" : {
Original file line number Diff line number Diff line change 33const https = require ( 'https' ) ;
44const fs = require ( 'fs' ) ;
55
6- const artifactUrl = 'https://d1gkjrhppbyzyh.cloudfront.net/apl-viewhost-web/3e426132-cb14-11ec-9d64 -0242ac120002/index.js' ;
6+ const artifactUrl = 'https://d1gkjrhppbyzyh.cloudfront.net/apl-viewhost-web/047eb172-2563-11ed-861d -0242ac120002/index.js' ;
77
88const outputFilePath = 'index.js' ;
99const outputFile = fs . createWriteStream ( outputFilePath ) ;
You can’t perform that action at this time.
0 commit comments