diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fe6f80e43..5390cad319 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,117 @@ +Changes in [1.7.5](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v1.7.5) (2019-12-09) +=================================================================================================== +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v1.7.5-rc.1...v1.7.5) + + * No changes since rc.1 + +Changes in [1.7.5-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v1.7.5-rc.1) (2019-12-04) +============================================================================================================= +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v1.7.4...v1.7.5-rc.1) + + * Remove logs before running end-to-end tests + [\#3700](https://github.com/matrix-org/matrix-react-sdk/pull/3700) + * Update from Weblate + [\#3699](https://github.com/matrix-org/matrix-react-sdk/pull/3699) + * Match e2e icons on events to expectations + [\#3697](https://github.com/matrix-org/matrix-react-sdk/pull/3697) + * Match room upgrade warning to the new design + [\#3695](https://github.com/matrix-org/matrix-react-sdk/pull/3695) + * Remove unused translations + [\#3683](https://github.com/matrix-org/matrix-react-sdk/pull/3683) + * Remove broken velocity-ui animation + [\#3678](https://github.com/matrix-org/matrix-react-sdk/pull/3678) + * Update from Weblate + [\#3696](https://github.com/matrix-org/matrix-react-sdk/pull/3696) + * Hide Remove button in message editing history if you don't have permission + to redact + [\#3685](https://github.com/matrix-org/matrix-react-sdk/pull/3685) + * Add an option to invite users to upgraded private rooms + [\#3684](https://github.com/matrix-org/matrix-react-sdk/pull/3684) + * Do not trap Key ContextMenu into composer for keyboard a11y + [\#3689](https://github.com/matrix-org/matrix-react-sdk/pull/3689) + * Make EmojiPicker filtering case-insensitive + [\#3690](https://github.com/matrix-org/matrix-react-sdk/pull/3690) + * Ensure the settings page accurately represents theme choices + [\#3686](https://github.com/matrix-org/matrix-react-sdk/pull/3686) + * Ensure read receipts end up with a valid reference to checkUnmounting + [\#3688](https://github.com/matrix-org/matrix-react-sdk/pull/3688) + * Convert Velociraptor component to a class + [\#3687](https://github.com/matrix-org/matrix-react-sdk/pull/3687) + * Add a link to the labs feature documentation + [\#3675](https://github.com/matrix-org/matrix-react-sdk/pull/3675) + * Improve translatable strings for calls + [\#3682](https://github.com/matrix-org/matrix-react-sdk/pull/3682) + * Don't assume that diffs will have an appropriate child node + [\#3680](https://github.com/matrix-org/matrix-react-sdk/pull/3680) + * Fix persisted widgets getting stuck at loading screens + [\#3681](https://github.com/matrix-org/matrix-react-sdk/pull/3681) + * Add button to clear all notification counts, sometimes stuck in historical + [\#2959](https://github.com/matrix-org/matrix-react-sdk/pull/2959) + * Fix multi-invite error dialog messaging + [\#3679](https://github.com/matrix-org/matrix-react-sdk/pull/3679) + * Make the communities button behave more like a toggle + [\#3670](https://github.com/matrix-org/matrix-react-sdk/pull/3670) + * Change read markers to use CSS transitions + [\#3674](https://github.com/matrix-org/matrix-react-sdk/pull/3674) + * fix font smoothing to match figma + [\#3677](https://github.com/matrix-org/matrix-react-sdk/pull/3677) + * Update breadcrumbs when we do eventually see upgraded rooms + [\#3669](https://github.com/matrix-org/matrix-react-sdk/pull/3669) + * Fix override behaviour of system vs defined themes + [\#3673](https://github.com/matrix-org/matrix-react-sdk/pull/3673) + * console.log doesn't take %s substitutions + [\#3671](https://github.com/matrix-org/matrix-react-sdk/pull/3671) + * EventIndex: Move the checkpoint loading logic into the init method. + [\#3648](https://github.com/matrix-org/matrix-react-sdk/pull/3648) + * Clarify that cross-signing is in development + [\#3668](https://github.com/matrix-org/matrix-react-sdk/pull/3668) + * Hide tooltips with CSS when they aren't visible + [\#3665](https://github.com/matrix-org/matrix-react-sdk/pull/3665) + * a11y: adjustments for toasts + [\#3667](https://github.com/matrix-org/matrix-react-sdk/pull/3667) + * Update from Weblate + [\#3666](https://github.com/matrix-org/matrix-react-sdk/pull/3666) + * Null check on thumbnail_file + [\#3664](https://github.com/matrix-org/matrix-react-sdk/pull/3664) + * Fix double date separator for room upgrade tiles + [\#3662](https://github.com/matrix-org/matrix-react-sdk/pull/3662) + * Show incoming verification requests in in-app notifications + [\#3661](https://github.com/matrix-org/matrix-react-sdk/pull/3661) + * Show m.room.create event before the ELS on room upgrade + [\#3655](https://github.com/matrix-org/matrix-react-sdk/pull/3655) + * Convert MessagePanel to React class + [\#3656](https://github.com/matrix-org/matrix-react-sdk/pull/3656) + * Make addEventListener conditional + [\#3657](https://github.com/matrix-org/matrix-react-sdk/pull/3657) + * Fix e2e icons + [\#3653](https://github.com/matrix-org/matrix-react-sdk/pull/3653) + * Workaround for soft-crash with calls on startup + [\#3654](https://github.com/matrix-org/matrix-react-sdk/pull/3654) + * Catch exceptions when we can't play audio + [\#3652](https://github.com/matrix-org/matrix-react-sdk/pull/3652) + * Rename section heading for integrations in settings + [\#3650](https://github.com/matrix-org/matrix-react-sdk/pull/3650) + * Update copy for widgets not using message encryption + [\#3651](https://github.com/matrix-org/matrix-react-sdk/pull/3651) + * Ignore media actions + [\#3649](https://github.com/matrix-org/matrix-react-sdk/pull/3649) + * Add an option to disable the use of integration managers for provisioning + [\#3646](https://github.com/matrix-org/matrix-react-sdk/pull/3646) + * Move many widget options to a context menu + [\#3645](https://github.com/matrix-org/matrix-react-sdk/pull/3645) + * Re-add encryption warning to widget permission prompt + [\#3644](https://github.com/matrix-org/matrix-react-sdk/pull/3644) + * Update CIDER docs now that it is used for main composer as well + [\#3647](https://github.com/matrix-org/matrix-react-sdk/pull/3647) + * get rid of bluebird + [\#3593](https://github.com/matrix-org/matrix-react-sdk/pull/3593) + * Remove getBaseTheme + [\#3638](https://github.com/matrix-org/matrix-react-sdk/pull/3638) + * ReactionsRowButtonTooltip: fix null dereference if emoji owner left room + [\#3643](https://github.com/matrix-org/matrix-react-sdk/pull/3643) + * Add eslint-plugin-jest because we inherit js-sdk's eslintrc and it wants + [\#3642](https://github.com/matrix-org/matrix-react-sdk/pull/3642) + Changes in [1.7.4](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v1.7.4) (2019-11-27) =================================================================================================== [Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v1.7.3...v1.7.4) diff --git a/package.json b/package.json index 5b82d9b111..29ddfff5f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-react-sdk", - "version": "1.7.4", + "version": "1.7.5", "description": "SDK for matrix.org using React", "author": "matrix.org", "repository": { @@ -88,7 +88,7 @@ "linkifyjs": "^2.1.6", "lodash": "^4.17.14", "lolex": "4.2", - "matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop", + "matrix-js-sdk": "2.4.6", "optimist": "^0.6.1", "pako": "^1.0.5", "png-chunks-extract": "^1.0.0", @@ -110,6 +110,7 @@ "text-encoding-utf-8": "^1.0.1", "url": "^0.11.0", "velocity-animate": "^1.5.2", + "what-input": "^5.2.6", "whatwg-fetch": "^1.1.1", "zxcvbn": "^4.4.2" }, diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index 43aed34a23..5359992f84 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -169,6 +169,7 @@ limitations under the License. .mx_EventTile:hover .mx_MessageActionBar, .mx_EventTile.mx_EventTile_actionBarFocused .mx_MessageActionBar, +[data-whatinput='keyboard'] .mx_EventTile:focus-within .mx_MessageActionBar, .mx_EventTile.focus-visible:focus-within .mx_MessageActionBar { visibility: visible; } diff --git a/res/css/views/rooms/_SearchBar.scss b/res/css/views/rooms/_SearchBar.scss index 894473a5fe..b6748e5ad2 100644 --- a/res/css/views/rooms/_SearchBar.scss +++ b/res/css/views/rooms/_SearchBar.scss @@ -37,6 +37,10 @@ limitations under the License. mask-position: center; } + .mx_SearchBar_buttons { + display: inherit; + } + .mx_SearchBar_button { border: 0; margin: 0 0 0 22px; diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 585499ddeb..1ea7243303 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -24,6 +24,8 @@ import Matrix from "matrix-js-sdk"; // focus-visible is a Polyfill for the :focus-visible CSS pseudo-attribute used by _AccessibleButton.scss import 'focus-visible'; +// what-input helps improve keyboard accessibility +import 'what-input'; import Analytics from "../../Analytics"; import { DecryptionFailureTracker } from "../../DecryptionFailureTracker"; diff --git a/src/components/views/messages/ReactionsRowButton.js b/src/components/views/messages/ReactionsRowButton.js index 10dea34809..89bd6e7938 100644 --- a/src/components/views/messages/ReactionsRowButton.js +++ b/src/components/views/messages/ReactionsRowButton.js @@ -126,10 +126,9 @@ export default class ReactionsRowButton extends React.PureComponent { ); } - return {tooltip} - ; + ; } } diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index 2680c13512..6e06a6e7b5 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -401,13 +401,18 @@ module.exports = createReactClass({ label={_t("Edited at %(date)s. Click to view edits.", {date: dateString})} />; } + + const AccessibleButton = sdk.getComponent('elements.AccessibleButton'); return ( -
{editedTooltip}{`(${_t("edited")})`}
+ > + { editedTooltip }{`(${_t("edited")})`} + ); }, diff --git a/src/components/views/rooms/SearchBar.js b/src/components/views/rooms/SearchBar.js index 5e0ac9a953..08cb9bbee0 100644 --- a/src/components/views/rooms/SearchBar.js +++ b/src/components/views/rooms/SearchBar.js @@ -57,19 +57,31 @@ module.exports = createReactClass({ }, render: function() { - const searchButtonClasses = classNames({ mx_SearchBar_searchButton: true, mx_SearchBar_searching: this.props.searchInProgress }); - const thisRoomClasses = classNames({ mx_SearchBar_button: true, mx_SearchBar_unselected: this.state.scope !== 'Room' }); - const allRoomsClasses = classNames({ mx_SearchBar_button: true, mx_SearchBar_unselected: this.state.scope !== 'All' }); + const searchButtonClasses = classNames("mx_SearchBar_searchButton", { + mx_SearchBar_searching: this.props.searchInProgress, + }); + const thisRoomClasses = classNames("mx_SearchBar_button", { + mx_SearchBar_unselected: this.state.scope !== 'Room', + }); + const allRoomsClasses = classNames("mx_SearchBar_button", { + mx_SearchBar_unselected: this.state.scope !== 'All', + }); return (
- {_t("This Room")} - {_t("All Rooms")} +
+ + {_t("This Room")} + + + {_t("All Rooms")} + +
- +
- +
); }, diff --git a/src/i18n/strings/es.json b/src/i18n/strings/es.json index 2474d9a233..958203a020 100644 --- a/src/i18n/strings/es.json +++ b/src/i18n/strings/es.json @@ -663,7 +663,7 @@ "Jump to read receipt": "Saltar a recibo leído", "Mention": "Mencionar", "Invite": "Invitar", - "Share Link to User": "Compartir Enlace con Usuario", + "Share Link to User": "Compartir Enlace al Usuario", "User Options": "Opciones de Usuario", "Make Moderator": "Convertir a Moderador", "bold": "negrita", @@ -1330,5 +1330,45 @@ "You cannot modify widgets in this room.": "No puedes modificar widgets en esta sala.", "Displays list of commands with usages and descriptions": "Muestra lista de comandos con usos y descripciones", "Multiple integration managers": "Administradores de integración múltiples", - "Room upgrade confirmation": "Confirmación de actualización de sala" + "Room upgrade confirmation": "Confirmación de actualización de sala", + "Add Email Address": "Añadir dirección de correo", + "Add Phone Number": "Añadir número de teléfono", + "Identity server has no terms of service": "El servidor de identidad no tiene términos de servicio", + "This action requires accessing the default identity server to validate an email address or phone number, but the server does not have any terms of service.": "Esta acción necesita acceder al servidor de identidad por defecto para validar un correo o un teléfono, pero el servidor no tiene términos de servicio.", + "Only continue if you trust the owner of the server.": "Continúe solamente si confía en el propietario del servidor.", + "Trust": "Confianza", + "Custom (%(level)s)": "Personalizado (%(level)s)", + "Error upgrading room": "Fallo al mejorar la sala", + "Double check that your server supports the room version chosen and try again.": "Asegúrese de que su servidor soporta la versión de sala elegida y pruebe otra vez.", + "%(senderName)s placed a voice call.": "%(senderName)s hizo una llamada de voz.", + "%(senderName)s placed a voice call. (not supported by this browser)": "%(senderName)s hizo una llamada de voz. (no soportada por este navegador)", + "%(senderName)s placed a video call.": "%(senderName)s hizo una llamada de vídeo.", + "%(senderName)s placed a video call. (not supported by this browser)": "%(senderName)s hizo una llamada de vídeo (no soportada por este navegador)", + "%(name)s (%(userId)s)": "%(name)s (%(userId)s)", + "Try out new ways to ignore people (experimental)": "Pruebe nuevas formas de ignorar a usuarios (experimental)", + "Send verification requests in direct message, including a new verification UX in the member panel.": "Envíe solicitudes de verificación por mensaje directo, con una nueva interfaz de verificación en el panel de miembros.", + "Enable cross-signing to verify per-user instead of per-device (in development)": "Active la firma cruzada para verificar usuarios en vez de dispositivos (en desarrollo)", + "Enable local event indexing and E2EE search (requires restart)": "Active el indexado de eventos locales y la búsqueda E2EE (necesita reiniciar)", + "Use the new, faster, composer for writing messages": "Escriba mensajes con el nuevo y mejorado compositor", + "Match system theme": "Usar el tema del sistema", + "Show previews/thumbnails for images": "Mostrar vistas previas para las imágenes", + "When rooms are upgraded": "Cuando se mejoran las salas", + "My Ban List": "Mi lista de baneos", + "This is your list of users/servers you have blocked - don't leave the room!": "Esta es la lista de usuarios y servidores que ha bloqueado - ¡No deje la sala!", + "Decline (%(counter)s)": "Declinar (%(counter)s)", + "Accept to continue:": "Aceptar para continuar:", + "ID": "Identificación", + "Public Name": "Nombre Público", + "Connecting to integration manager...": "Conectando al gestor de integraciones...", + "Cannot connect to integration manager": "No se puede conectar al gestor de integraciones", + "The integration manager is offline or it cannot reach your homeserver.": "El gestor de integraciones está desconectado o no puede conectar con su servidor.", + "%(count)s unread messages including mentions.|other": "%(count)s mensajes sin leer incluyendo menciones.", + "%(count)s unread messages including mentions.|one": "1 mención sin leer.", + "%(count)s unread messages.|other": "%(count)s mensajes sin leer.", + "%(count)s unread messages.|one": "1 mensaje sin leer.", + "Unread mentions.": "Menciones sin leer.", + "Unread messages.": "Mensajes sin leer.", + "Jump to first unread room.": "Saltar a la primera sala sin leer.", + "You have %(count)s unread notifications in a prior version of this room.|other": "Tiene %(count)s notificaciones sin leer en una versión anterior de esta sala.", + "You have %(count)s unread notifications in a prior version of this room.|one": "Tiene %(count)s notificaciones sin leer en una versión anterior de esta sala." } diff --git a/src/i18n/strings/fr.json b/src/i18n/strings/fr.json index ba924b3636..bed99fed86 100644 --- a/src/i18n/strings/fr.json +++ b/src/i18n/strings/fr.json @@ -1923,5 +1923,20 @@ "%(senderName)s placed a video call.": "%(senderName)s a passé un appel vidéo.", "%(senderName)s placed a video call. (not supported by this browser)": "%(senderName)s a passé un appel vidéo. (pas pris en charge par ce navigateur)", "Clear notifications": "Vider les notifications", - "Customise your experience with experimental labs features. Learn more.": "Personnalisez votre expérience avec des fonctionnalités expérimentales du labo. En savoir plus." + "Customise your experience with experimental labs features. Learn more.": "Personnalisez votre expérience avec des fonctionnalités expérimentales du labo. En savoir plus.", + "Error upgrading room": "Erreur lors de la mise à niveau du salon", + "Double check that your server supports the room version chosen and try again.": "Vérifiez que votre serveur prend en charge la version de salon choisie et réessayez.", + "This message cannot be decrypted": "Ce message ne peut pas être déchiffré", + "Unencrypted": "Non chiffré", + "Automatically invite users": "Inviter automatiquement les utilisateurs", + "Upgrade private room": "Mettre à niveau le salon privé", + "Upgrade public room": "Mettre à niveau le salon public", + "Upgrading a room is an advanced action and is usually recommended when a room is unstable due to bugs, missing features or security vulnerabilities.": "La mise à niveau d’un salon est une action avancée et qui est généralement recommandée quand un salon est instable à cause d’anomalies, de fonctionnalités manquantes ou de failles de sécurité.", + "This usually only affects how the room is processed on the server. If you're having problems with your Riot, please report a bug.": "Cela n’affecte généralement que la façon dont le salon est traité sur le serveur. Si vous avez des problèmes avec votre Riot, signalez une anomalie.", + "You'll upgrade this room from to .": "Vous allez mettre à niveau ce salon de vers .", + "Upgrade": "Mettre à niveau", + "Notification settings": "Paramètres de notification", + "User Status": "Statut de l’utilisateur", + "Reactions": "Réactions", + " reacted with %(content)s": " ont réagi avec %(content)s" } diff --git a/src/i18n/strings/hu.json b/src/i18n/strings/hu.json index 3fb00cfcd7..04b5b993ee 100644 --- a/src/i18n/strings/hu.json +++ b/src/i18n/strings/hu.json @@ -1926,5 +1926,18 @@ "Customise your experience with experimental labs features. Learn more.": "Kísérleti labor tulajdonságokkal egyénre szabhatod az élményt. Tudj meg többet.", "Error upgrading room": "A szoba verziófrissítésénél hiba történt", "Double check that your server supports the room version chosen and try again.": "Ellenőrizd még egyszer, hogy a szervered támogatja-e a szoba verzióját és próbáld újra.", - "Invite joined members to the new room automatically": "Tagok meghívása automatikusan az új szobába" + "Invite joined members to the new room automatically": "Tagok meghívása automatikusan az új szobába", + "This message cannot be decrypted": "Ezt az üzenetet nem lehet visszafejteni", + "Unencrypted": "Titkosítatlan", + "Automatically invite users": "Felhasználók automatikus meghívása", + "Upgrade private room": "Privát szoba frissítése", + "Upgrade public room": "Nyilvános szoba frissítése", + "Upgrading a room is an advanced action and is usually recommended when a room is unstable due to bugs, missing features or security vulnerabilities.": "A szoba frissítése nem egyszerű művelet, általában a szoba hibás működése, hiányzó funkció vagy biztonsági sérülékenység esetén javasolt.", + "This usually only affects how the room is processed on the server. If you're having problems with your Riot, please report a bug.": "Ez általában a szoba szerver oldali kezelésében jelent változást. Ha a Riotban van problémád, kérlek küldj egy hibajelentést.", + "You'll upgrade this room from to .": " verzióról verzióra frissíted a szobát.", + "Upgrade": "Frissítés", + "Notification settings": "Értesítések beállítása", + "User Status": "Felhasználó állapota", + "Reactions": "Reakciók", + " reacted with %(content)s": " ezzel reagáltak: %(content)s" } diff --git a/src/i18n/strings/zh_Hant.json b/src/i18n/strings/zh_Hant.json index d722ce9f5b..0c230734e0 100644 --- a/src/i18n/strings/zh_Hant.json +++ b/src/i18n/strings/zh_Hant.json @@ -1923,5 +1923,20 @@ "%(senderName)s placed a video call.": "%(senderName)s 撥打了視訊通話。", "%(senderName)s placed a video call. (not supported by this browser)": "%(senderName)s 撥打了視訊通話。(不被此瀏覽器支援)", "Clear notifications": "清除通知", - "Customise your experience with experimental labs features. Learn more.": "使用實驗室功能來自訂您的體驗。了解更多。" + "Customise your experience with experimental labs features. Learn more.": "使用實驗室功能來自訂您的體驗。了解更多。", + "Error upgrading room": "升級聊天室時遇到錯誤", + "Double check that your server supports the room version chosen and try again.": "仔細檢查您的伺服器是否支援選定的聊天室版本,然後再試一次。", + "This message cannot be decrypted": "此訊息無法解密", + "Unencrypted": "未加密", + "Automatically invite users": "自動邀請使用者", + "Upgrade private room": "升級私密聊天室", + "Upgrade public room": "升級公開聊天室", + "Upgrading a room is an advanced action and is usually recommended when a room is unstable due to bugs, missing features or security vulnerabilities.": "升級聊天室為進階動作,通常建議在聊天室因為臭蟲而不穩定、缺少功能或安全漏洞等才升級。", + "This usually only affects how the room is processed on the server. If you're having problems with your Riot, please report a bug.": "這通常僅影響如何在伺服器上處理聊天室的方式。如果您遇到與 Riot 相關的問題,請回報臭蟲。", + "You'll upgrade this room from to .": "您將要把此聊天室從 升級到 。", + "Upgrade": "升級", + "Notification settings": "通知設定", + "User Status": "使用者狀態", + "Reactions": "反應", + " reacted with %(content)s": " 反應了 %(content)s" } diff --git a/yarn.lock b/yarn.lock index 883a1ee90c..f5f291d15d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8646,6 +8646,11 @@ webpack@^4.20.2: watchpack "^1.6.0" webpack-sources "^1.4.1" +what-input@^5.2.6: + version "5.2.6" + resolved "https://registry.yarnpkg.com/what-input/-/what-input-5.2.6.tgz#ac6f003bf8d3592a0031dea7a03565469b00020b" + integrity sha512-a0BcI5YR7xp87vSzGcbN0IszJKpUQuTmrZaTSQBl7TLDIdKj6rDhluQ7b/7lYGG81gWDvkySsEvwv4BW5an9kg== + whatwg-fetch@>=0.10.0: version "3.0.0" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz#fc804e458cc460009b1a2b966bc8817d2578aefb"