Commit graph

21394 commits

Author SHA1 Message Date
jenkins-bot 6044b30dfb Merge "Add VisualEditor's libraries to Special:Version" 2023-05-12 10:41:23 +00:00
Bartosz Dziewoński a223bedce8 Update VE core submodule to master (1a98e553b)
New changes:
0e2f9e80a Localisation updates from https://translatewiki.net.
547d1443d Replace toolbar dialog shield with pointer-events: none
35eb0ee45 Always give ToolbarDialog's a background
895f87436 Update jquery.uls data from upstream
41b789849 Pass selection to scrollSelectionIntoView, use in FindAndReplaceDialog

Change-Id: I0c6b78a35416680a135bb75a2bfce9b3d8fc1bfc
2023-05-12 12:39:20 +02:00
jenkins-bot 929b4d405d Merge "Prevent desktop init from running on mobile" 2023-05-12 10:32:22 +00:00
jenkins-bot 56e76d244c Merge "MobileArticleTarget: Removed unused class" 2023-05-12 10:32:20 +00:00
jenkins-bot 5751edb0e0 Merge "Preserve classes on all file elements, not just broken images" 2023-05-12 10:30:52 +00:00
Arlo Breault 780639f8c5 Preserve classes on all file elements, not just broken images
This also adds mw-file-element to new image nodes.

Bug: T270150
Bug: T314097
Change-Id: I545ed75ed3c87e88b5e776696754e23c05645f81
2023-05-12 10:12:15 +00:00
Translation updater bot 1810eca01b Localisation updates from https://translatewiki.net.
Change-Id: I3358a78141111b8f4747e643f97c8c0f0b62cbb0
2023-05-11 09:21:23 +02:00
Sam Wilson 00abad4861 Don't show the diff-mode selector if not viewing a diff
The DifferenceEngineBeforeDiffTable hook is run when viewing a
diff after switching from visual to source editing, but the
mode selection widget shouldn't be shown then.

Bug: T324759
Change-Id: Ieb8a1b77928201a45635af46635b902cac01a36d
2023-05-10 18:53:37 +00:00
Ed Sanders ee33c850ae Prevent desktop init from running on mobile
3rd parties may load this module inadvertently.

Change-Id: Ie545dc2bf95eae862340531cc36e88a592882c53
2023-05-10 15:25:06 +01:00
Ed Sanders 688a08715a MobileArticleTarget: Removed unused class
This was used when we had a modal toolbar.

Change-Id: I0474270d496a136b5128b6d042284c352f80f363
2023-05-10 15:24:07 +01:00
James D. Forrester 40ccea6a10 Add VisualEditor's libraries to Special:Version
Also add spark-md5, not listed before.

Change-Id: I58dcfcd0d0795350fcc49e86ba253cf2343e0a94
2023-05-10 08:46:51 +01:00
Translation updater bot 285a5399e4 Localisation updates from https://translatewiki.net.
Change-Id: Iacc90bcea603c1524f2df05fa09a1baad6e4d735
2023-05-10 08:42:19 +02:00
jenkins-bot 0347486c8e Merge "Fix one more place where we tried to set preferences for temp users" 2023-05-10 04:43:29 +00:00
Bartosz Dziewoński ec425a06af Fix one more place where we tried to set preferences for temp users
Follow-up to 3b1a2d9dce.

Bug: T332415
Bug: T332435
Change-Id: I1139f1f3421fe43dfd5e3125b18d40421930a0f1
2023-05-10 04:20:03 +02:00
Bartosz Dziewoński 6c2294545e Update VE core submodule to master (faecd7c37)
New changes:
c719ac984 Localisation updates from https://translatewiki.net.
50a3ef04b build: Updating engine.io to 6.4.2
761bbc83f ve.ce.BranchNode: Only add browser support CSS when needed
a00eb470b ve.ce.BranchNode: Limit Firefox image hack to versions <69

Change-Id: I6a93c965e85bffa4f58df1fcc05798569e9a547e
2023-05-10 03:44:05 +02:00
jenkins-bot 3a0ec4a808 Merge "MWWikitextSurface: Deactivate surface on mobile before showing paste context" 2023-05-10 01:09:03 +00:00
Translation updater bot db451d7f20 Localisation updates from https://translatewiki.net.
Change-Id: I216e2c7b35d772721d4f7d37cb16e6c5b629056e
2023-05-09 08:56:06 +02:00
Translation updater bot 826471433a Localisation updates from https://translatewiki.net.
Change-Id: I683d77404e8a0de5d729f0915c667a5bf95eb6ee
2023-05-08 10:33:51 +02:00
gerritbot a6c5082fa3 Update moved class EditPage
See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: I5faaf6c59e96154eba0a4b199e47ecef49a89c72
2023-05-06 21:21:44 +00:00
Ed Sanders 3c07178d05 MWWikitextSurface: Deactivate surface on mobile before showing paste context
Bug: T336073
Change-Id: I6d8c55f2ab7ba7c58f84ac70afe53c04241d1782
2023-05-05 17:57:45 +01:00
jenkins-bot 3f43c00c2b Merge "Remove unused preferences code for "alpha" visual editor opt-in" 2023-05-05 16:39:13 +00:00
jenkins-bot 7c0259a3c3 Merge "Handle temporary users when dealing with user preferences" 2023-05-05 15:55:49 +00:00
jenkins-bot d2d7a7886f Merge "Rephrase visual editor disable preference label" 2023-05-05 15:37:35 +00:00
Bartosz Dziewoński edec1ab393 Remove unused preferences code for "alpha" visual editor opt-in
Change-Id: I60601874f9442992c4f844304a842cf640f5b618
2023-05-05 16:22:46 +02:00
Bartosz Dziewoński 83d3d1f3ba Rephrase visual editor disable preference label
Visual editor is not in beta, and this preference is not temporary.

Change the message key to avoid outdated on-wiki overrides.

Unfortunately the internal preference name still has "betatempdisable"
in it. We should investigate renaming it later.

Bug: T197282
Change-Id: If1475a18474e85cd3a260224c738d087d472af70
2023-05-05 16:15:43 +02:00
Translation updater bot 2427ba1bde Localisation updates from https://translatewiki.net.
Change-Id: I5e8f948a97d69495c12750bce9911dfeffef3214
2023-05-05 10:41:29 +02:00
Bartosz Dziewoński c82ffc7dcd Update VE core submodule to master (abffa3e09)
New changes:
73ea114fa ve.init.Target: Fix actions toolbar teardown compatibility
fd1d6809f Update eslint-config-wikimedia to 0.25.0
36be98960 WindowAction: Allow users to specify a different fragment to the one currently selected

Bug: T335469
Change-Id: I53ee84bb7d19611ac19b949001b06e1769b3e13b
2023-05-04 18:02:38 +02:00
Bartosz Dziewoński 37ab4c2a80 Expose automatic temporary user info in the API
Depends-On: I62b4bb630decac92cbb8c7ddf00307df0dadb516
Bug: T332435
Change-Id: I84ce108b4d46b4e19fad032382f8b69a1b0065d5
2023-05-04 00:44:10 +02:00
jenkins-bot e85b565114 Merge "Update VE core submodule to master (985eb6da7)" 2023-05-03 16:05:47 +00:00
Sam Wilson 3658355cef Remove duplicated diff-mode selector in save dialog
The diff mode selector is now also being returned in the HTML
from the VisualEditorEdit API, but is already implemented
separately. This change just removes the element from the API's
HTML; it is perhaps not the cleanest, but it's not too far off
what is already being done for action=diff, and we want to get
a fix out for this bug as soon as we can.

Bug: T324759
Change-Id: I830b623963111f430640dd4d9a94639f753e4cda
2023-05-03 12:00:17 +08:00
jenkins-bot c2f79c7836 Merge "ApiVisualEditor: Support preloading from i18n messages" 2023-05-02 22:37:36 +00:00
Martin Urbanec c4839e21fb ApiVisualEditor: Support preloading from i18n messages
The `preload` parameter currently does not work with i18n
messages, as pages representing those messages are known, but
do not exist. Resolve this by running any NS_MEDIAWIKI page
through wfMessage() first.

This feature will be used by Personalized praise in GrowthExperiments,
which requires the preload from i18n messages capability. As a benefit,
it also makes it easier to create i18n'ed preload-based systems
(one can create MediaWiki:Foo, MediaWiki:Foo/cs and MediaWiki:Foo/de);
MediaWiki will select the best language version automatically.

MediaWiki core equivalent is uploaded as
I693bcaf71d7b8557c63538a426d7a6bd4c3edf3d.

Bug: T330337
Change-Id: I961ff7ae2263e61161e686107d80bdafa3fe3c32
2023-05-02 20:06:15 +02:00
Ed Sanders 83668ad512 Update VE core submodule to master (985eb6da7)
New changes:
10370c9fc Localisation updates from https://translatewiki.net.
3d5bdecff ve.ce.FocusableNode: Factor out getExtraHighlightClasses
d5f42c59e ve.init.Target: Add deprecation warning to #getActions
b23984a22 AUTHORS: Update for 2020–2023

Change-Id: I8e830fd10f75ecda28f13712245e55a04dbb19ea
2023-05-02 17:10:11 +01:00
Translation updater bot bef44229b0 Localisation updates from https://translatewiki.net.
Change-Id: I8d7af66df5c7153c3acf4568bc7268e4911a988a
2023-05-02 09:00:52 +02:00
jenkins-bot 0a28512624 Merge "Don't force the "view" flavor when using stashing!" 2023-05-01 13:46:25 +00:00
James D. Forrester 88fae93818 build: Upgrade api-testing from 1.5.0 to 1.6.0
Bug: T333134
Change-Id: Id660c24848a3c5cfbac71f5d7f0635c7bd90b913
2023-05-01 08:14:10 -04:00
Translation updater bot ea1ba707e9 Localisation updates from https://translatewiki.net.
Change-Id: I813a8579cdb2ede11575d297625e2cd034e21116
2023-05-01 09:58:50 +02:00
libraryupgrader 5a140d3af1 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Ia7239b5750e51415c14145517c2a8d3c559fd895
2023-04-29 14:17:04 +00:00
jenkins-bot 86568aff16 Merge "Move the diff-mode selector to the new DifferenceEngineBeforeDiffTable hook" 2023-04-28 17:23:09 +00:00
jenkins-bot 0c88c0b639 Merge "lib: Drop promise-finally polyfill, now required by MW" 2023-04-28 14:37:44 +00:00
James D. Forrester a44cd6aea8 lib: Drop promise-finally polyfill, now required by MW
Follows-up Ia6cdb85d33d2b3e0e (c895c60907) from 2018. Was added to
support Chrome <= 64 within WMF CI at the time.

Change-Id: I870de7d148395926d60d8c360f8cae19ac7c4573
2023-04-28 14:01:13 +00:00
Bartosz Dziewoński 3b1a2d9dce Handle temporary users when dealing with user preferences
As temporary users will not have access to user preferences (T330815),
use cookies or localStorage to save them, like we already do for
logged-out users.

Also add some comments to point out where we intentionally distinguish
logged-out and temp users.

Bug: T332435
Change-Id: Ic83dd8bc8bc107f603a9b0340bd9e2bcaad8ff5a
2023-04-28 15:57:46 +02:00
Translation updater bot 9a87f0b353 Localisation updates from https://translatewiki.net.
Change-Id: I2809b8490de89b159ecdcf2a5f73861545856e9c
2023-04-28 08:57:48 +02:00
jenkins-bot 8f1ed26431 Merge "Log TransactionSquasher errors, in case any still occur" 2023-04-27 15:23:01 +00:00
jenkins-bot 26467c6cb4 Merge "Replace references to actionsToolbar" 2023-04-27 14:37:31 +00:00
Bartosz Dziewoński 51a8541255 Replace references to actionsToolbar
Target#actionsToolbar and Target#toolbar refer to the same object
since change dfaed62d3632d381db9682c603b3ddbeed182292 in VE/VE
(barring bugs like T335469). Once we no longer use the old name,
we'll be able to remove this backwards-compatibility alias.

Bug: T335469
Change-Id: I577e8ae6a857519eb0e8181543ca0a96b515e019
2023-04-27 15:51:35 +02:00
Translation updater bot 8cf5552b66 Localisation updates from https://translatewiki.net.
Change-Id: I9a87edaa517922527ed1d6ee4e078d0f31737e6d
2023-04-27 09:15:47 +02:00
libraryupgrader 9c99485fca build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Ieeb1d06761805ff2f3e29c4d0977f515e0629d41
2023-04-27 01:04:37 +00:00
Ed Sanders 51759c3f7e Remove DiffPageEnable config option
Visual diffs are always enabled on history pages, there is no
long a need for this to be configurable.

Change-Id: I9cef558b2b9d32bc86c47f6a6095270220d036db
2023-04-26 17:05:57 +01:00
jenkins-bot 811fee005c Merge "Update moved class WikiMap" 2023-04-26 15:18:15 +00:00