Commit graph

20538 commits

Author SHA1 Message Date
Ed Sanders 916b7beb22 Convert WikitextPasteContextItem to PersistentContextItem
Depends-On: Id2900c2d2c692b611e611b7eee6cacb74a737a8c
Change-Id: Ic539a41e8623c4ed12e4fa0e24db826ca967ee5a
2023-08-11 12:54:38 +01:00
Translation updater bot 8e1c84c0a7 Localisation updates from https://translatewiki.net.
Change-Id: I53066eb145f551cf50b7e485d027cfc788de73fb
2023-08-11 09:02:13 +02:00
Arlo Breault 674095bbaf Port Parsoid's WTUtils::textContentFromCaption
Matches the changes in Ice62d61d1a4f661770869b43d54eb8fc20824b71

Bug: T339237
Change-Id: I16301750ae8693e850aa3ce83bbb477f820d5cae
2023-08-10 18:06:27 -04:00
Ed Sanders c9ab1d148e Update VE core submodule to master (d90ae3a9c)
New changes:
88fe7eef7 Localisation updates from https://translatewiki.net.
54d9ce473 Localisation updates from https://translatewiki.net.
ddb809ba1 Implement PersistentContextItems
7fd68cde3 Add a "review mode" to the surface view
850d0655c Localisation updates from https://translatewiki.net.
d90ae3a9c Localisation updates from https://translatewiki.net.

Change-Id: I4439a413045125972d9756a5a6f149d7abf82f82
2023-08-10 13:59:51 -04:00
Translation updater bot 653ca76afe Localisation updates from https://translatewiki.net.
Change-Id: Ica378aef150f83a9a95e714cba7be09fdc788e7a
2023-08-10 09:42:28 +02:00
Ed Sanders a54f36c886 Use passive event listeners for window scroll events
TODO comments suggested using the VE helper util, but
that is no longer necessary since all our browsers
support passive events.

Change-Id: Idb7e702d58931208d555a3f994cd0b73abec2e20
2023-08-09 16:42:23 +01:00
Translation updater bot 8db407d33a Localisation updates from https://translatewiki.net.
Change-Id: I83ec5340d6a079a98dcf6adcd11004a0a3915ec5
2023-08-09 09:16:02 +02:00
jenkins-bot 8be133fe66 Merge "Reduce code duplication in ve.ui.MWGalleryDialog" 2023-08-08 18:55:30 +00:00
Translation updater bot d780084260 Localisation updates from https://translatewiki.net.
Change-Id: I08f845e049c45c5ee1a2bc408c83a6af96b6b140
2023-08-08 09:01:55 +02:00
jenkins-bot ecdc4252c2 Merge "Do not assume that UTPage exists in ApiVisualEditorTest" 2023-08-07 21:00:20 +00:00
jenkins-bot 2fb87f11e0 Merge "Add option to unify display of VE enable preference" 2023-08-07 15:33:40 +00:00
jenkins-bot 5d079c2012 Merge "Fix conditions for 'visualeditor-autodisable' that depended on WMF config" 2023-08-07 15:31:52 +00:00
Daimona Eaytoy e3a2b537ca Do not assume that UTPage exists in ApiVisualEditorTest
Create a test page explicitly, specifying the expected content as well.

Bug: T342428
Change-Id: I5a6e211fe6d36b6bf0576d1739b7fbc2cf49495b
2023-08-07 16:33:53 +02:00
Translation updater bot 44d0e6f50f Localisation updates from https://translatewiki.net.
Change-Id: I73d6ee05d6b54ec06146f38333e049f6ab3b8bc1
2023-08-07 08:40:19 +02:00
Translation updater bot caa43546af Localisation updates from https://translatewiki.net.
Change-Id: I9f83bccbc29be5a4d61597399efef88794b68a1a
2023-08-04 09:21:28 +02:00
jenkins-bot e2efe5079a Merge "Use different tooltips for ca-edit and ca-ve-edit links" 2023-08-03 15:53:21 +00:00
Translation updater bot ab05a0a951 Localisation updates from https://translatewiki.net.
Change-Id: I343ad68f867d01454efe1f3c232dc525ec63519e
2023-08-03 08:49:18 +02:00
Dringsim cce52fae65 Use different tooltips for ca-edit and ca-ve-edit links
Bug: T337653
Bug: T341424
Change-Id: I3aa79fec71ca2c40a0ece3ca73dd934cf6c9d5a8
2023-08-02 16:36:54 +00:00
Martin Urbanec 35320775e3 ApiVisualEditorEdit: Make tags param actually work
Why:
ApiVisualEditorEdit passes most of its params down to
action=edit. However, $params contains parsed version
of the params. Using it with tags results in the param
validator logic on ApiEdit's end receiving a PHP array,
which it does not expect (neither it should; it is impossible
to pass one via an actual API call).

This feature will be used in DiscussionTools,
which itself reuses ApiVisualEditorEdit.

What:
Use WebRequest::getText() to get the unparsed
value for 'tags', which makes the parameter
forwarding actually work.

Bug: T343339
Change-Id: I0ac60ca8473fe28461b2da60f9911baac4994388
2023-08-02 17:52:11 +02:00
Translation updater bot 3241a2ab86 Localisation updates from https://translatewiki.net.
Change-Id: Idd0979149d1792fff8e86aaeeb2e593b880d133c
2023-08-02 09:04:57 +02:00
Translation updater bot bd7acbc677 Localisation updates from https://translatewiki.net.
Change-Id: I407d28affcffa7d0ab431e2d82f87821105e48e3
2023-08-01 08:37:25 +02:00
Ed Sanders 85d584930f Simplify definition of textStyle group in toolbar
This makes it easier for 3rd parties to insert extra tools
in sensible places.

Change-Id: I6c8d0c96f53655d8f9ae9f01e5d0e1a1678d29a1
Depends-On: Ib8882fa6319915d291b345a69ab95f362739ad7b
2023-07-31 11:06:18 +00:00
Bartosz Dziewoński cbc750206d Update VE core submodule to master (c1420586c)
New changes:
3455d232c Localisation updates from https://translatewiki.net.
1eaffb772 Tests: Add missing close tag
f1a3a4da3 Localisation updates from https://translatewiki.net.
2b3eaa29d Localisation updates from https://translatewiki.net.
02007e7f0 i18n: Add new langauge
d80bb492e Revert "Patch WindowManager fix for multiple window managers"
ae097d2ad Follow-up I8701829: Manually move focus when tab/shift+tab pressed
67a3fac86 ve.ce.Surface: Move some vars closer to usage
ad7651f5a Handle clicking on a focusable node that is already focused
bec0946f2 Make Language and ClearAnnotation tools part of the textStyle group

Bug: T341681
Bug: T341687
Change-Id: I1752db8ff2f683b6cc0631324df6d4f25fd522fd
2023-07-31 13:05:24 +02:00
jenkins-bot 16623ac116 Merge "Simplify code for showing "Loading" message in template context" 2023-07-31 10:16:40 +00:00
Translation updater bot 5a4be2957f Localisation updates from https://translatewiki.net.
Change-Id: I94eb5376139c93e9797d5f59f7d53cad313c45df
2023-07-31 09:02:09 +02:00
Translation updater bot e6ab69ab50 Localisation updates from https://translatewiki.net.
Change-Id: I53472b7088f41b18f9f680c3cd8616fefd7cf047
2023-07-28 09:21:35 +02:00
jenkins-bot 3bd61c40df Merge "Remove DualParsoidClient::class and related code from VE (p.2)" 2023-07-27 12:45:16 +00:00
Translation updater bot f736c61b0a Localisation updates from https://translatewiki.net.
Change-Id: I2e04759088e059106982e2ba3c0bf2681860e0ad
2023-07-27 10:49:43 +02:00
jenkins-bot 8c8205a298 Merge "build: Upgrade grunt-eslint from 24.1.0 to 24.3.0" 2023-07-26 12:54:46 +00:00
jenkins-bot 7970346855 Merge "build: Upgrade stylelint-config-wikimedia from 0.15.0 to 0.16.0" 2023-07-26 12:54:43 +00:00
Translation updater bot 0ac888377a Localisation updates from https://translatewiki.net.
Change-Id: Ie94a45b188256ab57fdde834a207bbe4c27f4b16
2023-07-26 10:28:00 +02:00
Derick Alangi 4418b61894 Remove DualParsoidClient::class and related code from VE (p.2)
I've verified that no other extension uses this code apart from VE
and locally tested that with this patch, VE still works and nothing
explodes.

There parent patch takes care of making sure the mode is no longer
injected and we now have just etags with no hacked in modes because
we now use direct mode always.

Bug: T341612
Change-Id: Ib1756bf60104467a3a34be9bbb06d8f63537e550
2023-07-25 09:01:44 +00:00
Translation updater bot 3da6365933 Localisation updates from https://translatewiki.net.
Change-Id: Icf4680a3fce0808a4b17b04cdf87d711971d2e76
2023-07-25 10:43:41 +02:00
Translation updater bot 3a9114c245 Localisation updates from https://translatewiki.net.
Change-Id: Id2dab457fae54cc171981cece8d4d987728daef2
2023-07-24 09:40:16 +02:00
Translation updater bot d52113b1ef Localisation updates from https://translatewiki.net.
Change-Id: Ibbe41c83cf81049c841211fa13a85d85db4a18df
2023-07-21 08:43:03 +02:00
Translation updater bot f56786d9a6 Localisation updates from https://translatewiki.net.
Change-Id: Ib70e645e90d661abd0e31962c0d3c5e0119cd063
2023-07-20 09:34:16 +02:00
Translation updater bot c683de8bab Localisation updates from https://translatewiki.net.
Change-Id: If344c1638141f094cf3868bd97c23e11f9fb93f2
2023-07-19 09:02:02 +02:00
Winston Sung 12e04f247d Follow-up of "Localisation updates from https://translatewiki.net."
Change-Id: Ic78a4e374a822d5e7465a12d8a763c30d680c449
2023-07-18 12:48:31 +00:00
Translation updater bot 30d2227535 Localisation updates from https://translatewiki.net.
Change-Id: Iddc8d92c8aa935d2b6283f63a778bd1474c8bda2
2023-07-18 09:50:12 +02:00
jenkins-bot e4c4f63c32 Merge "Update VE core submodule to master (8cd2c4933)" 2023-07-18 02:10:15 +00:00
jenkins-bot b9f0764711 Merge "Prevent JS code from changing 'skin-view-edit-local' message to 'skin-view-edit'" 2023-07-17 23:54:53 +00:00
jenkins-bot 4231c7a328 Merge "Use different titles for "Edit" and "Edit source" links (section headings)" 2023-07-17 23:07:44 +00:00
David Lynch fde414149e Update VE core submodule to master (8cd2c4933)
New changes:
4ac9b4290 Localisation updates from https://translatewiki.net.
5db1e6972 Localisation updates from https://translatewiki.net.
439b29f3e PreviewElement: Remove slugs and nails using JS instead of CSS

Bug: T341901
Change-Id: I5da36fe06bd6631f17172029261b1c18daa72bf4
2023-07-17 10:38:04 -05:00
jenkins-bot 0b8469bca6 Merge "Remove ::injectMode(), prep to remove DualParsoidClient p.1" 2023-07-17 12:26:15 +00:00
Derick Alangi daa6861f01
Remove ::injectMode(), prep to remove DualParsoidClient p.1
In order not to break clients who already have VE open with etag
that injects the "mode:direct..." in their etag, let's first stop
injecting the direct mode to subsequent VE sessions (for edits)
and wait for 24hrs+ so that we're sure we've processed all sessions
with the direct mode etag.

After 24hrs of this patch merged and going live, we'll then remove
the DualParsoidClient entirely as the p.2 of this cleanup.

Bug: T341612
Change-Id: Ie4f43089ee6f94f51fc0398e84604a17bc5bebcf
2023-07-17 11:26:47 +03:00
Translation updater bot 34cdcc9604 Localisation updates from https://translatewiki.net.
Change-Id: I112afe5cf6900eb16a3c84e7d9faa6d24827adb9
2023-07-17 10:19:14 +02:00
James D. Forrester 74a72af572 build: Upgrade grunt-eslint from 24.1.0 to 24.3.0
Change-Id: I5eff88095acf4cda1678a76379de04d4877e63b8
2023-07-14 13:27:54 -04:00
James D. Forrester 325ca8a40a build: Upgrade stylelint-config-wikimedia from 0.15.0 to 0.16.0
Change-Id: I993074948832a50997255bd413192c8fdeaf9edb
2023-07-14 13:02:49 -04:00
Translation updater bot 1cdb276552 Localisation updates from https://translatewiki.net.
Change-Id: If39241dcf7411e2406c34dfe239697b49533a033
2023-07-14 09:36:17 +02:00
David Lynch 7d1e9f3eaf When switching from WikiEditor activate VE *after* notifying WikiEditor
This affects logging behavior -- notifying WikiEditor lets its logging
clean up after itself before the init event for VE fires. This was only
an issue when switching *with* changes, because that path resulted in
the timings being cleared, making future events whose timing depended
on the init event have NaN timings.

(This wasn't an issue before we centralized the logging code into
WikimediaEvents, as before that WikiEditor and VE were maintaining
separate timing registries.)

Bug: T237063
Change-Id: Icdb307fa0ce0d1dac3744e4bab41b3588f14777f
2023-07-13 09:32:55 -05:00