Skip to content

Commit

Permalink
August 2022 Release of the APL 2022.1.1 compliant APL Viewhost Web
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bddufour committed Aug 26, 2022
1 parent 7c88de4 commit d875b5e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog for apl-viewhost-web

## [2022.1.1]

### Changed

- Bug fixes

## [2022.1]

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)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Alexa Presentation Language (APL) Viewhost Web

<p>
<a href="https://github.com/alexa/apl-viewhost-web/tree/v2022.1" alt="version">
<img src="https://img.shields.io/badge/stable%20version-2022.1-brightgreen" /></a>
<a href="https://github.com/alexa/apl-core-library/tree/v2022.1" alt="APLCore">
<img src="https://img.shields.io/badge/apl%20core%20library-2022.1-navy" /></a>
<a href="https://github.com/alexa/apl-viewhost-web/tree/v2022.1.1" alt="version">
<img src="https://img.shields.io/badge/stable%20version-2022.1.1-brightgreen" /></a>
<a href="https://github.com/alexa/apl-core-library/tree/v2022.1.1" alt="APLCore">
<img src="https://img.shields.io/badge/apl%20core%20library-2022.1.1-navy" /></a>
</p>

## Introduction
Expand Down
9 changes: 7 additions & 2 deletions js/apl-html/src/events/Speak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export class Speak extends Event implements IPlaybackEventListener {

public onPlaybackStarted() {
this.renderer.onSpeakEventStart(this.type);
if (this.component === undefined) {
return;
}
const markers = this.renderer.audioPlayer.getLatestMarkers();
const componentType = this.component.component.getType();
const useSequencer = HighlightSequencer.shouldUseSequencer(markers,
Expand Down Expand Up @@ -59,8 +62,10 @@ export class Speak extends Event implements IPlaybackEventListener {

public async execute() {
this.component = this.renderer.componentMap[this.event.getComponent().getUniqueId()];
this.align = this.event.getValue<CommandScrollAlign>(EventProperty.kEventPropertyAlign);
this.highlightMode = this.event.getValue<CommandHighlightMode>(EventProperty.kEventPropertyHighlightMode);
if (this.component !== undefined) {
this.align = this.event.getValue<CommandScrollAlign>(EventProperty.kEventPropertyAlign);
this.highlightMode = this.event.getValue<CommandHighlightMode>(EventProperty.kEventPropertyHighlightMode);
}

this.renderer.audioPlayer.playLatest(this);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apl-viewhost-web",
"version": "2022.1.0",
"version": "2022.1.1",
"description": "This is a Web-assembly version (WASM) of apl viewhost web.",
"license": "Apache 2.0",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const https = require('https');
const fs = require('fs');

const artifactUrl = 'https://d1gkjrhppbyzyh.cloudfront.net/apl-viewhost-web/3e426132-cb14-11ec-9d64-0242ac120002/index.js';
const artifactUrl = 'https://d1gkjrhppbyzyh.cloudfront.net/apl-viewhost-web/047eb172-2563-11ed-861d-0242ac120002/index.js';

const outputFilePath = 'index.js';
const outputFile = fs.createWriteStream(outputFilePath);
Expand Down

0 comments on commit d875b5e

Please sign in to comment.