Skip to content

Commit d875b5e

Browse files
committed
August 2022 Release of the APL 2022.1.1 compliant APL Viewhost Web
For more details on this release refer to CHANGELOG.md To learn about APL see: https://developer.amazon.com/docs/alexa-presentation-language/understand-apl.html
1 parent 7c88de4 commit d875b5e

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog for apl-viewhost-web
22

3+
## [2022.1.1]
4+
5+
### Changed
6+
7+
- Bug fixes
8+
39
## [2022.1]
410

511
This 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)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

js/apl-html/src/events/Speak.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

scripts/fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const https = require('https');
44
const 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

88
const outputFilePath = 'index.js';
99
const outputFile = fs.createWriteStream(outputFilePath);

0 commit comments

Comments
 (0)