Commit Graph

146 Commits

Author SHA1 Message Date
3e596aaadf Move replies preview dropdown out of Post-footer (#55) 2021-05-12 20:42:33 +01:00
e2b309ad95 Bundled output for commit 02d3355989e3fc179b5807584478a4b7b2bee588 [skip ci] 2021-05-02 20:38:50 +00:00
02d3355989 Add space when inserting a post mention 2021-05-02 21:37:31 +01:00
83ed624223 Bundled output for commit e407c6678471368273eb6fadc4a018849149816e [skip ci] 2021-04-21 09:59:51 +00:00
e407c66784 New mentions format, decouple usernames from mentions (#65)
* Convert user mentions to new `@"Display Name"#ID` format

* Handle deleted user's mentions

* Convert post mentions to `@"Display Name"#pID` format

* Handle deleted user's post mentions and deleted posts mentions

* Clean display name of `"#{letters}{numbers}` (replace with underscore _)

* Adapt integration tests to new mention formats

* Use a deleted attribute for user mentions

* Introduce cleanDisplayName util

* Detect new format with autocomplete

* Slug needed on rendering only

* Invalidate user mention tag when ID is invalid
This used to be implicitly done, when there was a username attribute configured, formatter would check that all attributes are available and if not invalidate.

since we now only have `displayname` and `id` attributes which are both available from the regex matching, formatter doesn't implicitly invalidate anymore and therefore validates ANY matches. So we explicitly invalidate the tag when the ID does not match a user.

* Allow username mention format with a setting

* Add tests for turning setting on/off

* Move setting check to tag filter
Because the configurator caches, changing the setting only takes effect after the cache is cleared.

* fix: showing autocomplete at the right moment

* Add dockblocks to explain unparsing process
2021-04-21 10:58:54 +01:00
613664525d Release v0.1.0-beta.16 2021-03-15 12:11:51 +01:00
37f0a100bd Bundled output for commit 0ad97bb4edbdd53f1d445badda4b1f5921a56b9e [skip ci] 2021-03-02 04:33:37 +00:00
0ad97bb4ed Fix dropdown going off top of screen
The previous solution didn't properly account for document scroll, so when replying to posts, the parent offset would be extremely large, and it'd fall back to the top coordinate, which is out of bounds on small screens.
2021-03-01 23:32:30 -05:00
8c78af4b1c Bundled output for commit d4db946c31dbeaf636a2a296596f76e1005af000 [skip ci] 2021-02-26 21:20:57 +00:00
d4db946c31 Update for Editor Drivers Abstraction (#61) 2021-02-26 16:20:07 -05:00
80101d52a9 npm audit fix 2020-12-15 09:15:26 +01:00
4f153a099d Bundled output for commit eea694e021df0bdd839f48464e9ddaa17bc0c856 [skip ci] 2020-12-11 04:50:41 +00:00
eea694e021 Fix mention button in composer toolbar
It seems like we missed one `this.props` during the beta 14 rewrite
2020-12-10 23:49:26 -05:00
6f7b86b0a9 Bundled output for commit 367a1b232918f86338238e2b79fa2c3ac651926b [skip ci] 2020-10-29 22:34:16 +00:00
367a1b2329 Check if event is cancelable before preventDefault (#54)
This recovers the initial wanted behavior of opening the post mention preview dropdown instead of directly going to the post on touchscreens.
2020-10-29 18:33:26 -04:00
5cfb1550eb npm audit security vulnerabilities patched 2020-10-14 09:59:01 +02:00
d94dfa6090 Bundled output for commit 26c84b9e5b265ae33a26a2ed46a20dd28bdc2423 [skip ci] 2020-10-03 00:20:06 +00:00
26c84b9e5b Use Link component instead of route patch 2020-10-02 20:19:10 -04:00
51134ff625 Bundled output for commit ea56f39a53fee6e411f083cf73ab70d4d47e74e0 [skip ci] 2020-09-24 02:54:49 +00:00
ea56f39a53 Mithril 2 Update (#52)
Update for Mithril 2

- Please note that PostQuoteButton and AutocompleteDropdown are not Fragments, not Components. Accordingly, they have been moved to the components folder.

Co-authored-by: Matthew Kilgore <tankerkiller125@gmail.com>
Co-authored-by: Franz Liedke <franz@develophp.org>
2020-09-23 22:53:46 -04:00
a48a84fcd0 Bundled output for commit 1674e7a313a68da81cb6d26b16b6978b441aff28 [skip ci] 2020-09-04 16:26:07 +00:00
1674e7a313 Fix extension to work with Composer state changes
Refs flarum/core#2162.
2020-09-04 18:19:27 +02:00
8f1ba6e7d2 Bundled output for commit 921db74fe4757931f6c5d3f586e57a3cecf3bcee [skip ci] 2020-09-04 14:47:16 +00:00
921db74fe4 Fix extension to work with Composer state changes
Refs flarum/core#2162.
2020-09-04 16:46:01 +02:00
1ce62ca3c5 Bundled output for commit ce039d3dd665d60f46e3c4376447dbaf43c66c93 [skip ci] 2020-09-04 14:43:38 +00:00
ce039d3dd6 Fix extension to work with Composer state changes
Refs flarum/core#2162.
2020-09-04 16:42:07 +02:00
6da004c7ae Bump elliptic from 6.5.2 to 6.5.3 in /js (#51)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:09:16 +02:00
c192cbc57b Bump lodash from 4.17.15 to 4.17.19 in /js (#49)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:48:25 +02:00
ebc8b763ce Bundled output for commit 68163d462a7c59d15f901f4bf149dcf7e00d58ea [skip ci] 2020-07-01 21:10:06 +00:00
68163d462a Stop mentions dropdown from jumping around (#48)
Cache the order in which users are returned by the API to stop the mentions list from jumping around
Only ping the api when 2 or more characters are entered
2020-07-01 17:08:31 -04:00
a905fbd073 Bundled output for commit af979f20ffae54dad7dbfea1e19f3a8a7cfb7825 [skip ci] 2020-06-10 00:14:45 +00:00
af979f20ff Always show replies list on posts (#47)
Previously, if there was a single reply and it was adjacent to the post it wasn't shown.

See discussion on Discuss: https://discuss.flarum.org/d/23666-flarum-010-beta13-released/75
2020-06-09 20:13:24 -04:00
494ec8b8a6 Bundled output for commit 5855b0367f2aaa8a893991ecc50f2dcee726e124 [skip ci] 2020-05-01 09:59:00 +00:00
5855b0367f Update Webpack 2020-05-01 11:56:01 +02:00
9587d3b416 npm audit fix 2020-04-24 14:30:29 +02:00
dd89498150 Bump acorn from 6.4.0 to 6.4.1 in /js (#45)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 21:52:38 +01:00
62ec7dc2fc Bundled output for commit 969638a31147e58e7f7d9fea12fab8fa90acbda6 [skip ci] 2020-02-11 20:44:30 +00:00
969638a311 Update Webpack 2020-02-11 21:43:28 +01:00
d9fb5ab31b Update vulnerable JS dependencies 2019-09-13 15:33:06 +02:00
ce1f81a460 Bundled output for commit 87ed42157f407a27e0a811da91f556d3b19adc30 [skip ci] 2018-12-03 23:43:48 +00:00
e2bb04ce34 Truncate notification excerpts 2018-12-03 09:37:01 +10:30
4f190d6b74 Bundled output for commit 2786476ab1ede152954164b203a65a8f25a71667 [skip ci] 2018-11-21 08:23:18 +00:00
2786476ab1 Make npm package private, update deps, change watch to dev 2018-11-21 18:45:36 +10:30
a808ccab69 Bundled output for commit 54660c2cc81d4364c4ddba40a64f21237cb68022 [skip ci] 2018-11-17 08:37:36 +00:00
54660c2cc8 Update dependencies 2018-11-17 19:06:29 +10:30
c8a3c3c22b Bundled output for commit 1f04c732a0a4356fe3e2ac60ce6eba5f0abd8630 [skip ci] 2018-11-14 03:07:37 +00:00
1f04c732a0 Fix cursor not being placed correctly after mention insertion 2018-11-14 13:36:21 +10:30
7929d2e4bf Bundled output for commit dd500ec54bc816b2a17e83efcff352b0c78d5a75 [skip ci] 2018-11-12 10:35:09 +00:00
dd500ec54b Add mention button to text editor toolbar 2018-11-12 17:37:25 +10:30
d34c7745f8 Bundled output for commit 4bd704c9c5cde1729ae514a6c2272b253a108479 [skip ci] 2018-11-06 08:42:37 +00:00