Skip to content

Commit

Permalink
Merge pull request #15 from alexa/apl-suggester-2022.1
Browse files Browse the repository at this point in the history
June 2022 Release APL Suggester 2022.1
  • Loading branch information
jamescryptoji committed Jun 7, 2022
2 parents 73580c5 + 658ca93 commit 444aafe
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 7 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ For more information of how to build APL templates, please visit https://develop
## Installation and usage
The easiest way to use apl-suggester is to install it from npm and build it into your app with webpack.
```
npm install apl-suggester
npm install apl-suggester --save
```

Since June 7 2022, we have changed our versioning strategy. Existing users please make sure to pull the latest and update your `package.json`:
```
npm install apl-suggester@2022 --save
```

Then use it in your app:
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-suggester",
"version": "1.9.0",
"version": "2022.1.0",
"description": "This Package is developed for providing suggestions and validations on APL templates.",
"engines": {
"node": ">=8.0.0"
Expand Down
8 changes: 8 additions & 0 deletions src/__tests__/components/ImageWithSources.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
{
"url": "https://hello.com",
"description": "test"
},
{
"url": "URL1",
"headers": [
"key1: value1",
"key2: value2",
"keynovalue"
]
}
],
"scale": "best-fill",
Expand Down
9 changes: 7 additions & 2 deletions src/__tests__/components/VectorGraphicWithSources.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"type": "VectorGraphic",
"source": {
"url": "https://hello.com",
"description": "test source"
"url": "URL1",
"description": "Vector graphic description",
"headers": [
"key1: value1",
"key2: value2",
"keynovalue"
]
},
"width": 100,
"height": 100,
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/components/Video.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@
"property": "opacity",
"value": 0
}],
"preserve": [ "source","playingState" ]
"preserve": [ "source","playingState" ],
"muted": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"source": [
{
"url": "https://delivery.vidible.tv/video/redirect/5b634e2dbf488517fc64fbb4.mp4?bcid=5593271909eab110d8f43789&w=852&h=480&enc=mp4&domain=cdn.vidible.tv"
}
},
"URL2"
],
"onPause": [
{
Expand Down
3 changes: 3 additions & 0 deletions src/assets/CommonDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ export const ExtendedUrl = {
"type": "object",
"properties": {
"url": SimpleUrl,
"headers": {
"$ref": "#/definitions/stringArray"
},
"description": {
"type": "string"
},
Expand Down
3 changes: 2 additions & 1 deletion src/assets/JsonSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,8 @@ export const JSON_SCHEMA : IJsonSchema = {
"1.6",
"1.7",
"1.8",
"1.9"
"1.9",
"2022.1"
]
},
"license": {
Expand Down
6 changes: 6 additions & 0 deletions src/assets/Video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'use strict';
import * as commonDefinition from "./CommonDefinition";
import { IJsonSchema, Categories } from './IJsonSchema';
import { SimpleUrl } from './CommonDefinition';

export const JSON_SCHEMA : IJsonSchema = {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down Expand Up @@ -480,6 +481,11 @@ export const JSON_SCHEMA : IJsonSchema = {
}
],
},
"muted": {
"type": "boolean",
"category": Categories.video,
"description": "If true, mute the video."
},
"padding": {
"$ref": "#/definitions/paddingArray",
"category": Categories.padding,
Expand Down

0 comments on commit 444aafe

Please sign in to comment.