Skip to content

Commit f0507a1

Browse files
chore(all): prepare release 0.17.0
1 parent ede4dfc commit f0507a1

13 files changed

+92
-78
lines changed

bower.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-animator-css",
3-
"version": "0.16.0",
3+
"version": "0.17.0",
44
"description": "An implementation of the abstract Animator interface from templating which enables css-based animations.",
55
"keywords": [
66
"aurelia",
@@ -18,7 +18,8 @@
1818
"url": "https://github.com/aurelia/animator-css"
1919
},
2020
"dependencies": {
21-
"aurelia-metadata": "^0.8.0",
22-
"aurelia-templating": "^0.15.0"
21+
"aurelia-metadata": "^0.9.0",
22+
"aurelia-pal": "^0.2.0",
23+
"aurelia-templating": "^0.16.0"
2324
}
2425
}

config.js

Lines changed: 53 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,54 +14,76 @@ System.config({
1414
},
1515

1616
map: {
17-
"aurelia-metadata": "github:aurelia/metadata@0.8.0",
18-
"aurelia-pal": "github:aurelia/pal@0.1.10",
19-
"aurelia-pal-browser": "github:aurelia/pal-browser@0.1.13",
20-
"aurelia-templating": "github:aurelia/templating@0.15.0",
17+
"aurelia-metadata": "github:aurelia/metadata@0.9.0",
18+
"aurelia-pal": "github:aurelia/pal@0.2.0",
19+
"aurelia-pal-browser": "github:aurelia/pal-browser@0.2.0",
20+
"aurelia-templating": "github:aurelia/templating@0.16.0",
2121
"babel": "npm:[email protected]",
2222
"babel-runtime": "npm:[email protected]",
2323
"core-js": "npm:[email protected]",
24-
"github:aurelia/binding@0.9.0": {
25-
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.10.0",
26-
"aurelia-metadata": "github:aurelia/metadata@0.8.0",
27-
"aurelia-task-queue": "github:aurelia/task-queue@0.7.0",
24+
"github:aurelia/binding@0.10.0": {
25+
"aurelia-metadata": "github:aurelia/metadata@0.9.0",
26+
"aurelia-pal": "github:aurelia/pal@0.2.0",
27+
"aurelia-task-queue": "github:aurelia/task-queue@0.8.0",
2828
"core-js": "npm:[email protected]"
2929
},
30-
"github:aurelia/[email protected]": {
31-
"aurelia-logging": "github:aurelia/[email protected]",
32-
"aurelia-metadata": "github:aurelia/[email protected]",
30+
"github:aurelia/[email protected]": {
31+
"aurelia-logging": "github:aurelia/[email protected]",
32+
"aurelia-metadata": "github:aurelia/[email protected]",
33+
"aurelia-pal": "github:aurelia/[email protected]",
3334
"core-js": "npm:[email protected]"
3435
},
35-
"github:aurelia/[email protected]": {
36-
"aurelia-html-template-element": "github:aurelia/[email protected]",
37-
"aurelia-metadata": "github:aurelia/[email protected]",
38-
"aurelia-path": "github:aurelia/[email protected]",
39-
"core-js": "github:zloirock/[email protected]"
36+
"github:aurelia/[email protected]": {
37+
"aurelia-metadata": "github:aurelia/[email protected]",
38+
"aurelia-path": "github:aurelia/[email protected]"
4039
},
41-
"github:aurelia/[email protected]": {
40+
"github:aurelia/[email protected]": {
41+
"aurelia-pal": "github:aurelia/[email protected]",
4242
"core-js": "npm:[email protected]"
4343
},
44-
"github:aurelia/pal-browser@0.1.13": {
45-
"aurelia-pal": "github:aurelia/pal@0.1.10"
44+
"github:aurelia/pal-browser@0.2.0": {
45+
"aurelia-pal": "github:aurelia/pal@0.2.0"
4646
},
47-
"github:aurelia/[email protected]": {
48-
"aurelia-binding": "github:aurelia/[email protected]",
49-
"aurelia-dependency-injection": "github:aurelia/[email protected]",
50-
"aurelia-html-template-element": "github:aurelia/[email protected]",
51-
"aurelia-loader": "github:aurelia/[email protected]",
52-
"aurelia-logging": "github:aurelia/[email protected]",
53-
"aurelia-metadata": "github:aurelia/[email protected]",
54-
"aurelia-path": "github:aurelia/[email protected]",
55-
"aurelia-task-queue": "github:aurelia/[email protected]",
47+
"github:aurelia/[email protected]": {
48+
"aurelia-pal": "github:aurelia/[email protected]"
49+
},
50+
"github:aurelia/[email protected]": {
51+
"aurelia-binding": "github:aurelia/[email protected]",
52+
"aurelia-dependency-injection": "github:aurelia/[email protected]",
53+
"aurelia-loader": "github:aurelia/[email protected]",
54+
"aurelia-logging": "github:aurelia/[email protected]",
55+
"aurelia-metadata": "github:aurelia/[email protected]",
56+
"aurelia-pal": "github:aurelia/[email protected]",
57+
"aurelia-path": "github:aurelia/[email protected]",
58+
"aurelia-task-queue": "github:aurelia/[email protected]",
5659
"core-js": "npm:[email protected]"
5760
},
58-
"github:jspm/[email protected]": {
59-
"process": "npm:[email protected]"
61+
"github:jspm/[email protected]": {
62+
"assert": "npm:[email protected]"
63+
},
64+
"github:jspm/[email protected]": {
65+
"process": "npm:[email protected]"
66+
},
67+
"github:jspm/[email protected]": {
68+
"util": "npm:[email protected]"
69+
},
70+
71+
"util": "npm:[email protected]"
6072
},
6173
6274
"fs": "github:jspm/[email protected]",
63-
"process": "github:jspm/[email protected].1",
75+
"process": "github:jspm/[email protected].2",
6476
"systemjs-json": "github:systemjs/[email protected]"
77+
},
78+
79+
"util": "github:jspm/[email protected]"
80+
},
81+
82+
"assert": "github:jspm/[email protected]"
83+
},
84+
85+
"inherits": "npm:[email protected]",
86+
"process": "github:jspm/[email protected]"
6587
}
6688
}
6789
});

dist/amd/aurelia-animator-css.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare module 'aurelia-animator-css' {
22
import { animationEvent, Animator } from 'aurelia-templating';
3+
import { DOM } from 'aurelia-pal';
34
export interface CssAnimation {
45
className: string;
56
element: HTMLElement;

dist/amd/aurelia-animator-css.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
define(['exports', 'aurelia-templating'], function (exports, _aureliaTemplating) {
1+
define(['exports', 'aurelia-templating', 'aurelia-pal'], function (exports, _aureliaTemplating, _aureliaPal) {
22
'use strict';
33

44
exports.__esModule = true;
@@ -41,7 +41,7 @@ define(['exports', 'aurelia-templating'], function (exports, _aureliaTemplating)
4141
};
4242

4343
CssAnimator.prototype._getElementAnimationDelay = function _getElementAnimationDelay(element) {
44-
var styl = window.getComputedStyle(element);
44+
var styl = _aureliaPal.DOM.getComputedStyle(element);
4545
var prop = undefined;
4646
var delay = undefined;
4747

@@ -82,8 +82,8 @@ define(['exports', 'aurelia-templating'], function (exports, _aureliaTemplating)
8282
};
8383

8484
CssAnimator.prototype._triggerDOMEvent = function _triggerDOMEvent(eventType, element) {
85-
var evt = new window.CustomEvent(eventType, { bubbles: true, cancelable: true, detail: element });
86-
document.dispatchEvent(evt);
85+
var evt = _aureliaPal.DOM.createCustomEvent(eventType, { bubbles: true, cancelable: true, detail: element });
86+
_aureliaPal.DOM.dispatchEvent(evt);
8787
};
8888

8989
CssAnimator.prototype.animate = function animate(element, className) {

dist/aurelia-animator-css.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare module 'aurelia-animator-css' {
22
import { animationEvent, Animator } from 'aurelia-templating';
3+
import { DOM } from 'aurelia-pal';
34
export interface CssAnimation {
45
className: string;
56
element: HTMLElement;

dist/aurelia-animator-css.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {animationEvent,Animator} from 'aurelia-templating';
2+
import {DOM} from 'aurelia-pal';
23

34
interface CssAnimation {
45
className: string;
@@ -65,7 +66,7 @@ export class CssAnimator {
6566
* @returns animation-delay in seconds
6667
*/
6768
_getElementAnimationDelay(element: HTMLElement): number {
68-
let styl = window.getComputedStyle(element);
69+
let styl = DOM.getComputedStyle(element);
6970
let prop;
7071
let delay;
7172

@@ -119,8 +120,8 @@ export class CssAnimator {
119120
* @param element the element to be dispatched as event detail
120121
*/
121122
_triggerDOMEvent(eventType: string, element: HTMLElement): void {
122-
let evt = new window.CustomEvent(eventType, {bubbles: true, cancelable: true, detail: element});
123-
document.dispatchEvent(evt);
123+
let evt = DOM.createCustomEvent(eventType, {bubbles: true, cancelable: true, detail: element});
124+
DOM.dispatchEvent(evt);
124125
}
125126

126127
/* Public API Begin */

dist/commonjs/aurelia-animator-css.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare module 'aurelia-animator-css' {
22
import { animationEvent, Animator } from 'aurelia-templating';
3+
import { DOM } from 'aurelia-pal';
34
export interface CssAnimation {
45
className: string;
56
element: HTMLElement;

dist/commonjs/aurelia-animator-css.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
77

88
var _aureliaTemplating = require('aurelia-templating');
99

10+
var _aureliaPal = require('aurelia-pal');
11+
1012
var CssAnimator = (function () {
1113
function CssAnimator() {
1214
_classCallCheck(this, CssAnimator);
@@ -42,7 +44,7 @@ var CssAnimator = (function () {
4244
};
4345

4446
CssAnimator.prototype._getElementAnimationDelay = function _getElementAnimationDelay(element) {
45-
var styl = window.getComputedStyle(element);
47+
var styl = _aureliaPal.DOM.getComputedStyle(element);
4648
var prop = undefined;
4749
var delay = undefined;
4850

@@ -83,8 +85,8 @@ var CssAnimator = (function () {
8385
};
8486

8587
CssAnimator.prototype._triggerDOMEvent = function _triggerDOMEvent(eventType, element) {
86-
var evt = new window.CustomEvent(eventType, { bubbles: true, cancelable: true, detail: element });
87-
document.dispatchEvent(evt);
88+
var evt = _aureliaPal.DOM.createCustomEvent(eventType, { bubbles: true, cancelable: true, detail: element });
89+
_aureliaPal.DOM.dispatchEvent(evt);
8890
};
8991

9092
CssAnimator.prototype.animate = function animate(element, className) {

dist/es6/aurelia-animator-css.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare module 'aurelia-animator-css' {
22
import { animationEvent, Animator } from 'aurelia-templating';
3+
import { DOM } from 'aurelia-pal';
34
export interface CssAnimation {
45
className: string;
56
element: HTMLElement;

dist/es6/aurelia-animator-css.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {animationEvent,Animator} from 'aurelia-templating';
2+
import {DOM} from 'aurelia-pal';
23

34
interface CssAnimation {
45
className: string;
@@ -65,7 +66,7 @@ export class CssAnimator {
6566
* @returns animation-delay in seconds
6667
*/
6768
_getElementAnimationDelay(element: HTMLElement): number {
68-
let styl = window.getComputedStyle(element);
69+
let styl = DOM.getComputedStyle(element);
6970
let prop;
7071
let delay;
7172

@@ -119,8 +120,8 @@ export class CssAnimator {
119120
* @param element the element to be dispatched as event detail
120121
*/
121122
_triggerDOMEvent(eventType: string, element: HTMLElement): void {
122-
let evt = new window.CustomEvent(eventType, {bubbles: true, cancelable: true, detail: element});
123-
document.dispatchEvent(evt);
123+
let evt = DOM.createCustomEvent(eventType, {bubbles: true, cancelable: true, detail: element});
124+
DOM.dispatchEvent(evt);
124125
}
125126

126127
/* Public API Begin */

0 commit comments

Comments
 (0)