From bacd371f848950154c81a49b7b58533276c0afee Mon Sep 17 00:00:00 2001 From: peterpeterparker Date: Sat, 29 May 2021 13:34:45 +0200 Subject: [PATCH] fix: keyboard animation transmission --- CHANGELOG.md | 2 +- remote/package-lock.json | 6 +++--- remote/package.json | 2 +- studio/package-lock.json | 6 +++--- studio/package.json | 2 +- webcomponents/core/CHANGELOG.md | 6 ++++++ webcomponents/core/package-lock.json | 2 +- webcomponents/core/package.json | 2 +- .../src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx | 4 ++-- 9 files changed, 19 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e48f2d847..ae10e9fc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ Therefore, to simplify the code base, I deprecate this template. - charts: v2.1.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/charts/CHANGELOG.md)) - color: v4.1.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/color/CHANGELOG.md)) -- core: v8.2.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/core/CHANGELOG.md)) +- core: v8.2.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/core/CHANGELOG.md)) - demo: v2.1.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/demo/CHANGELOG.md)) - drag-resize-rotate: v2.2.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/drag-resize-rotate/CHANGELOG.md)) - inline-editor: v4.1.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/inline-editor/CHANGELOG.md)) diff --git a/remote/package-lock.json b/remote/package-lock.json index 0c0660ab3..23cd5e44a 100644 --- a/remote/package-lock.json +++ b/remote/package-lock.json @@ -1123,9 +1123,9 @@ } }, "@deckdeckgo/core": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/@deckdeckgo/core/-/core-8.2.0.tgz", - "integrity": "sha512-sngK6rL13L3gu8qUM1zS27iMHs/oYd/2UR9kB83kNSsiAJ0xmrIImLp31wq1QXeBa3+b4yzCAPU7513ilmAX+A==", + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@deckdeckgo/core/-/core-8.2.1.tgz", + "integrity": "sha512-6s5LU8vhLXvooIP+J+ocxNkAucKGKqfgxbJMrT7S6xnrzx6w+1N+YWqPMPMQqhVJK8kOo7EJ1xs/LUT3TDlOcw==", "requires": { "@deckdeckgo/deck-utils": "^4.0.2", "@deckdeckgo/utils": "^2.0.1" diff --git a/remote/package.json b/remote/package.json index b48e29881..815760660 100644 --- a/remote/package.json +++ b/remote/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@deckdeckgo/charts": "^2.1.0", - "@deckdeckgo/core": "^8.2.0", + "@deckdeckgo/core": "^8.2.1", "@deckdeckgo/deck-utils": "^4.0.2", "@deckdeckgo/demo": "^2.1.0", "@deckdeckgo/drag-resize-rotate": "^2.2.0", diff --git a/studio/package-lock.json b/studio/package-lock.json index f5ced5d5b..1ccb6a771 100644 --- a/studio/package-lock.json +++ b/studio/package-lock.json @@ -1149,9 +1149,9 @@ } }, "@deckdeckgo/core": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/@deckdeckgo/core/-/core-8.2.0.tgz", - "integrity": "sha512-sngK6rL13L3gu8qUM1zS27iMHs/oYd/2UR9kB83kNSsiAJ0xmrIImLp31wq1QXeBa3+b4yzCAPU7513ilmAX+A==", + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@deckdeckgo/core/-/core-8.2.1.tgz", + "integrity": "sha512-6s5LU8vhLXvooIP+J+ocxNkAucKGKqfgxbJMrT7S6xnrzx6w+1N+YWqPMPMQqhVJK8kOo7EJ1xs/LUT3TDlOcw==", "requires": { "@deckdeckgo/deck-utils": "^4.0.2", "@deckdeckgo/utils": "^2.0.1" diff --git a/studio/package.json b/studio/package.json index dd745a510..1bee6480d 100644 --- a/studio/package.json +++ b/studio/package.json @@ -22,7 +22,7 @@ "dependencies": { "@deckdeckgo/charts": "^2.1.0", "@deckdeckgo/color": "^4.1.0", - "@deckdeckgo/core": "^8.2.0", + "@deckdeckgo/core": "^8.2.1", "@deckdeckgo/deck-utils": "^4.0.2", "@deckdeckgo/demo": "^2.1.0", "@deckdeckgo/drag-resize-rotate": "^2.2.0", diff --git a/webcomponents/core/CHANGELOG.md b/webcomponents/core/CHANGELOG.md index 679bcc4da..fa7048da5 100644 --- a/webcomponents/core/CHANGELOG.md +++ b/webcomponents/core/CHANGELOG.md @@ -1,3 +1,9 @@ +# 8.2.1 (2021-05-29) + +### Fix + +- emit events (for animation) on keyboard triggers + # 8.2.0 (2021-05-29) ### Build diff --git a/webcomponents/core/package-lock.json b/webcomponents/core/package-lock.json index 0195026b3..ee57d63e6 100644 --- a/webcomponents/core/package-lock.json +++ b/webcomponents/core/package-lock.json @@ -1,6 +1,6 @@ { "name": "@deckdeckgo/core", - "version": "8.2.0", + "version": "8.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/webcomponents/core/package.json b/webcomponents/core/package.json index 1a2d4a28d..526f45a52 100644 --- a/webcomponents/core/package.json +++ b/webcomponents/core/package.json @@ -1,6 +1,6 @@ { "name": "@deckdeckgo/core", - "version": "8.2.0", + "version": "8.2.1", "description": "Add a presentation to your web application using HTML and Web Components", "main": "dist/index.cjs.js", "module": "dist/index.js", diff --git a/webcomponents/core/src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx b/webcomponents/core/src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx index 67c750069..cea1b7ad0 100644 --- a/webcomponents/core/src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx +++ b/webcomponents/core/src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx @@ -320,9 +320,9 @@ export class DeckdeckgoDeck { } if (['ArrowLeft', 'k', 'PageUp'].indexOf($event.key) !== -1) { - await this.slideNextPrev(false, true); + await this.slideNextPrev(false, true, true); } else if (['ArrowRight', 'j', 'PageDown'].indexOf($event.key) !== -1) { - await this.slideNextPrev(true, true); + await this.slideNextPrev(true, true, true); } };