From 789168192077ac5a425834c5f3ea14fbde08b69a Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 24 Jul 2018 18:27:30 +0100 Subject: [PATCH 1/9] js-sdk rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f79e0abd82..dd40c86f3b 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "linkifyjs": "^2.1.6", "lodash": "^4.13.1", "lolex": "2.3.2", - "matrix-js-sdk": "0.10.6", + "matrix-js-sdk": "0.10.7-rc.1", "optimist": "^0.6.1", "pako": "^1.0.5", "prop-types": "^15.5.8", From ca35ef3fa50b995aa8775d42bdb66b4337825bbc Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 24 Jul 2018 18:31:28 +0100 Subject: [PATCH 2/9] Prepare changelog for v0.13.0-rc.1 --- CHANGELOG.md | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e35c20d79..0d5d6de4bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,82 @@ +Changes in [0.13.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.13.0-rc.1) (2018-07-24) +=============================================================================================================== +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.12.9...v0.13.0-rc.1) + + * Update from Weblate. + [\#2086](https://github.com/matrix-org/matrix-react-sdk/pull/2086) + * Moar Slate Fixes + [\#2082](https://github.com/matrix-org/matrix-react-sdk/pull/2082) + * Destroy the widget when its permission is revoked + [\#2081](https://github.com/matrix-org/matrix-react-sdk/pull/2081) + * Make ActiveWidgetStore clear persistent widgets + [\#2084](https://github.com/matrix-org/matrix-react-sdk/pull/2084) + * CreateRoomDialog is rendered before getting the config default_federate + [\#2078](https://github.com/matrix-org/matrix-react-sdk/pull/2078) + * Slate Fixes + [\#2076](https://github.com/matrix-org/matrix-react-sdk/pull/2076) + * FIX: Don't error on rooms the user has left already + [\#2077](https://github.com/matrix-org/matrix-react-sdk/pull/2077) + * Fix persistent apps being the wrong size + [\#2080](https://github.com/matrix-org/matrix-react-sdk/pull/2080) + * Fix widgets resetting when going to the top-left + [\#2079](https://github.com/matrix-org/matrix-react-sdk/pull/2079) + * Jitsi: Use integrations URL from config + [\#2062](https://github.com/matrix-org/matrix-react-sdk/pull/2062) + * Allow jitsi in e2e rooms + [\#2075](https://github.com/matrix-org/matrix-react-sdk/pull/2075) + * Fix border around persisted widgets + [\#2071](https://github.com/matrix-org/matrix-react-sdk/pull/2071) + * Fix e2e icons floating above jitsi + [\#2073](https://github.com/matrix-org/matrix-react-sdk/pull/2073) + * hide some commands after space as they have special semantics + [\#2074](https://github.com/matrix-org/matrix-react-sdk/pull/2074) + * Even More Slate Fixes :D + [\#2070](https://github.com/matrix-org/matrix-react-sdk/pull/2070) + * Improve UX for Jitsi by adding local echo for widgets + [\#2035](https://github.com/matrix-org/matrix-react-sdk/pull/2035) + * Jitsi: Check integrations server before call + [\#2063](https://github.com/matrix-org/matrix-react-sdk/pull/2063) + * Jitsi: Error message on no permission + [\#2061](https://github.com/matrix-org/matrix-react-sdk/pull/2061) + * Fix read receipts on top of Jitsi + [\#2065](https://github.com/matrix-org/matrix-react-sdk/pull/2065) + * Moar Slate Fixes + [\#2069](https://github.com/matrix-org/matrix-react-sdk/pull/2069) + * fix 2nd typo in one PR :( + [\#2068](https://github.com/matrix-org/matrix-react-sdk/pull/2068) + * check if has some completions, not if >=0 + [\#2067](https://github.com/matrix-org/matrix-react-sdk/pull/2067) + * Slate fixes + [\#2066](https://github.com/matrix-org/matrix-react-sdk/pull/2066) + * Implement always-on-screen capability for widgets + [\#2056](https://github.com/matrix-org/matrix-react-sdk/pull/2056) + * simplify MessageComposerStore and improve its performance + [\#2064](https://github.com/matrix-org/matrix-react-sdk/pull/2064) + * Replace Draft with Slate + [\#1890](https://github.com/matrix-org/matrix-react-sdk/pull/1890) + * Fix not stopping to peek when navigating away from peeked room + [\#2055](https://github.com/matrix-org/matrix-react-sdk/pull/2055) + * T3chguy/slate cont2 + [\#2049](https://github.com/matrix-org/matrix-react-sdk/pull/2049) + * add null-guard for stickerpickerWidget in StickerPicker + [\#2057](https://github.com/matrix-org/matrix-react-sdk/pull/2057) + * Implement always-on-screen capability for widgets + [\#2053](https://github.com/matrix-org/matrix-react-sdk/pull/2053) + * fix nullguard on EventTile, getComponent never returns falsey, it throws + [\#2024](https://github.com/matrix-org/matrix-react-sdk/pull/2024) + * Fix stickerpicker PersistedElement usage + [\#2051](https://github.com/matrix-org/matrix-react-sdk/pull/2051) + * encrypt for invited users if history visibility allows. + [\#2042](https://github.com/matrix-org/matrix-react-sdk/pull/2042) + * move nag bar clear statement to any desktop notif toggle not just 0->1 + [\#2031](https://github.com/matrix-org/matrix-react-sdk/pull/2031) + * use TruncatedList to prevent rendering hundreds/thousands of DOM nodes + [\#2041](https://github.com/matrix-org/matrix-react-sdk/pull/2041) + * Fix stuff + [\#2047](https://github.com/matrix-org/matrix-react-sdk/pull/2047) + * Show m.room.server_acl + [\#2046](https://github.com/matrix-org/matrix-react-sdk/pull/2046) + Changes in [0.12.9](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.12.9) (2018-07-09) ===================================================================================================== [Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.12.9-rc.2...v0.12.9) From 15c3d4ed1683dbfa8ecf311656780b23ff5a50cd Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 24 Jul 2018 18:31:28 +0100 Subject: [PATCH 3/9] v0.13.0-rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd40c86f3b..bbcb20aaeb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-react-sdk", - "version": "0.12.9", + "version": "0.13.0-rc.1", "description": "SDK for matrix.org using React", "author": "matrix.org", "repository": { From 97fd6054401ed74ccb815831bad206e33a277fd6 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 24 Jul 2018 19:34:36 +0100 Subject: [PATCH 4/9] Prepare changelog for v0.13.0-rc.2 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d5d6de4bd..a49d50ae48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Changes in [0.13.0-rc.2](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.13.0-rc.2) (2018-07-24) +=============================================================================================================== +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.13.0-rc.1...v0.13.0-rc.2) + + * Take jitsi conf calling out of labs + [\#2087](https://github.com/matrix-org/matrix-react-sdk/pull/2087) + Changes in [0.13.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.13.0-rc.1) (2018-07-24) =============================================================================================================== [Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.12.9...v0.13.0-rc.1) From c6ad30ff853f575354f9a874b630c177782c8e06 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 24 Jul 2018 19:34:37 +0100 Subject: [PATCH 5/9] v0.13.0-rc.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bbcb20aaeb..1bd1b69ffd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-react-sdk", - "version": "0.13.0-rc.1", + "version": "0.13.0-rc.2", "description": "SDK for matrix.org using React", "author": "matrix.org", "repository": { From 1c0f778e8254f61362bc00d0264e14b481f67fc8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 27 Jul 2018 14:33:05 +0100 Subject: [PATCH 6/9] Fix persistend element location not updating As hopefully all explained in comment --- .../views/elements/PersistedElement.js | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/views/elements/PersistedElement.js b/src/components/views/elements/PersistedElement.js index 6a10fadeb3..ff839de2a9 100644 --- a/src/components/views/elements/PersistedElement.js +++ b/src/components/views/elements/PersistedElement.js @@ -20,6 +20,8 @@ import PropTypes from 'prop-types'; import ResizeObserver from 'resize-observer-polyfill'; +import dis from '../../../dispatcher'; + // Shamelessly ripped off Modal.js. There's probably a better way // of doing reusable widgets like dialog boxes & menus where we go and // pass in a custom control as the actual body. @@ -64,9 +66,17 @@ export default class PersistedElement extends React.Component { super(); this.collectChildContainer = this.collectChildContainer.bind(this); this.collectChild = this.collectChild.bind(this); - this._onContainerResize = this._onContainerResize.bind(this); + this._repositionChild = this._repositionChild.bind(this); + this._onAction = this._onAction.bind(this); - this.resizeObserver = new ResizeObserver(this._onContainerResize); + this.resizeObserver = new ResizeObserver(this._repositionChild); + // Annoyingly, a resize observer is insufficient, since we also care + // about when the element moves on the screen without changing its + // dimensions. Doesn't look like there's a ResizeObserver equivalent + // for this, so we bodge it by listening for document resize and + // the timeline_resize action. + window.addEventListener('resize', this._repositionChild); + this._dispatcherRef = dis.register(this._onAction); } /** @@ -113,9 +123,17 @@ export default class PersistedElement extends React.Component { componentWillUnmount() { this.updateChildVisibility(this.child, false); this.resizeObserver.disconnect(); + window.removeEventListener('resize', this._repositionChild); + dis.unregister(this._dispatcherRef); } - _onContainerResize() { + _onAction(payload) { + if (payload.action === 'timeline_resize') { + this._repositionChild(); + } + } + + _repositionChild() { this.updateChildPosition(this.child, this.childContainer); } From 2df3580c60851d159c91ea2d9434b0fc0ba695e9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 30 Jul 2018 11:46:28 +0100 Subject: [PATCH 7/9] Released js-sdk --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1bd1b69ffd..5d970dbfa6 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "linkifyjs": "^2.1.6", "lodash": "^4.13.1", "lolex": "2.3.2", - "matrix-js-sdk": "0.10.7-rc.1", + "matrix-js-sdk": "0.10.7", "optimist": "^0.6.1", "pako": "^1.0.5", "prop-types": "^15.5.8", From 1ebcd0f0ec3d74c0948fc90c1b28df0c10a53ab6 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 30 Jul 2018 11:53:15 +0100 Subject: [PATCH 8/9] Prepare changelog for v0.13.0 --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a49d50ae48..5d7bef4a88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Changes in [0.13.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.13.0) (2018-07-30) +===================================================================================================== +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.13.0-rc.2...v0.13.0) + + * Fix composer bug where cursor position would change when Riot regained focus + [\#2093](https://github.com/matrix-org/matrix-react-sdk/pull/2093) + * Fix persistend element location not updating + [\#2094](https://github.com/matrix-org/matrix-react-sdk/pull/2094) + * Slate Fixes 42? + [\#2089](https://github.com/matrix-org/matrix-react-sdk/pull/2089) + Changes in [0.13.0-rc.2](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.13.0-rc.2) (2018-07-24) =============================================================================================================== [Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.13.0-rc.1...v0.13.0-rc.2) From 3c8fc5a8afa4a7923b9858513188da2af962ce2e Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 30 Jul 2018 11:57:53 +0100 Subject: [PATCH 9/9] v0.13.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d970dbfa6..307b0913e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-react-sdk", - "version": "0.13.0-rc.2", + "version": "0.13.0", "description": "SDK for matrix.org using React", "author": "matrix.org", "repository": {