Commit graph

761 commits

Author SHA1 Message Date
libraryupgrader 9f69f2cf76 build: Updating cross-spawn to 7.0.6
* https://github.com/advisories/GHSA-3xgq-45jj-v275

Change-Id: I79307006e1d2a980d21079f62550b114ef0b0aa9
2024-11-23 04:09:11 +00:00
Translation updater bot b698bbff44
Localisation updates from https://translatewiki.net.
Change-Id: Ia9f25f9025498ccf24f7893eb66beec46b1aae28
2024-10-31 07:09:55 +01:00
libraryupgrader e6938d85e0 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I1f85890bc39168986b239b13304f2a7d25985010
2024-08-26 01:41:51 +00:00
Translation updater bot 42c22e5d44
Localisation updates from https://translatewiki.net.
Change-Id: I9992e74846274c5ff18e0734ba0fa5c9074d08de
2024-08-01 07:54:06 +02:00
Translation updater bot b03ddf764e
Localisation updates from https://translatewiki.net.
Change-Id: I740e4322c42f75d34acc2311c950cfdcccea4b03
2024-07-25 08:21:35 +02:00
libraryupgrader 549934791b build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: I9cab463141b9b48c14d909b63c550e683e883e11
2024-06-13 17:56:38 +00:00
Translation updater bot 716beaf721 Localisation updates from https://translatewiki.net.
Change-Id: I02395ed3ef5cda90f10e1ea89876279a4e8fe8d4
2024-05-30 09:11:22 +02:00
Translation updater bot 23694838f9 Localisation updates from https://translatewiki.net.
Change-Id: I2a7c432a6962580541bba49b72808bc77919e0a2
2024-05-23 08:38:07 +02:00
Translation updater bot 67e9b621c0 Localisation updates from https://translatewiki.net.
Change-Id: I37450b696fc2f759f7b4e57af423968b429858b1
2024-03-22 08:43:49 +01:00
libraryupgrader 833c4cbe7b build: Updating mediawiki/mediawiki-codesniffer to 43.0.0
Change-Id: I4830e3e728c6be74dd23887ac5436533ff311cdb
2024-03-17 16:16:55 +00:00
James D. Forrester 3bb1c3173f Upgrade Ace from 1.15.2 to 1.32.7
Steps, so that others can know how to upgrade later:
* Alter entry in package.json and run `npm i` and then `npx grunt update-ace` to update.
* Test locally for CSS, JS, and JSON pages (as the most-affected types).
* Verify code diffs and add to git staging manually.
* Update foreign-resources.yaml entry manually.

Bug: T342387
Change-Id: I3566e8271ce37807f7d24867680d8229aa97302c
2024-03-15 16:32:40 -04:00
James D. Forrester 46ee5c493b Register Ace as a foreign resource, move credits link to that library
Also move to modules/lib/ like in other repos. As we're using the build
step rather than a direct release, let's leave it as doc-only, but this
at least makes the process more clear.

Also add the README.md and CHANGELOG.md files like we do for others.

Change-Id: I3566e8271ce37807f7d24867680d8229aa97302b
2024-03-15 16:32:36 -04:00
Fomafix 47ed85f491 Hooks: Use private instead of public for internal functions
Change-Id: I3566e8271ce37807f7d24867680d8229aa97302a
2024-03-09 16:21:17 +00:00
jenkins-bot 8565e167d7 Merge "Avoid FOUCs more flexibly" 2024-02-23 19:34:37 +00:00
Nardog 1e646acfdb Avoid FOUCs more flexibly
Style the textbox to mimic when CodeEditor is enabled only if
"usecodeeditor" is set, and only before CodeEditor is loaded (I0ce663e
added a gutter even when CodeEditor was turned off, which no one asked
for).

.wikiEditor-ui-text is added client-side, so there's no point in styling
it.

Bug: T351487
Change-Id: I3918e1c120805ca007e8e7eb7e29304ddbb6af56
2024-02-22 18:33:14 +00:00
Nardog d798a5ad6c Update toolbar group hiding logic
Accommodate upstream change in WikiEditor (Iff6d806).

Bug: T357222
Change-Id: I10e06d129677e7ac40199a31e4bad7914dda993c
2024-02-11 00:51:18 +00:00
libraryupgrader 6b5da58aec build: Updating mediawiki/mediawiki-phan-config to 0.14.0
Change-Id: Ia4986bad525b3699196882e90c70aec32b6898a1
2024-02-10 07:28:08 +00:00
Translation updater bot 9efe3db548 Localisation updates from https://translatewiki.net.
Change-Id: Ie4191d53c70b86af4798cca18ab84de9d41e4f89
2024-01-30 09:38:49 +01:00
jenkins-bot 7c4558741d Merge "extension.json: Drop RL targets definitions, no longer honoured" 2024-01-12 17:32:45 +00:00
James D. Forrester 3a440c1389 extension.json: Drop RL targets definitions, no longer honoured
Bug: T328497
Change-Id: Ibbdd8e48a527f7b37482a7366300a8bd6ac21f58
2024-01-12 08:43:38 -05:00
Derk-Jan Hartman a3e2b2c8a6 Remove unnecesary targets from RL module definitions
Bug: T328497
Change-Id: I0018a7df9576d571c1d6f1dd8dcf2788efa4c097
2024-01-12 14:07:44 +01:00
Fomafix b3279e4382 Remove outdated comments about known issues
On tab close on Firefox there is a 'discard your changes?' dialog.

On preview the cursor/scroll position is still on the same position.
Just the focus is not in the textarea, but this in WikiEditor, too.

Change-Id: I0d7b59c39381cdc7da72c0a6c366d74071f7ef54
2023-12-29 10:26:21 +00:00
jenkins-bot f391e4768c Merge "build: Update linters" 2023-12-23 08:20:11 +00:00
Translation updater bot 1f5dfcb315 Localisation updates from https://translatewiki.net.
Change-Id: If23354e73c00c88789e03101ed05acc03925dded
2023-12-20 14:04:32 +01:00
Ed Sanders 1528c7740f build: Update linters
Change-Id: Idaed1bf627d8d92968b422ad428acd29a179d94a
2023-12-18 17:09:57 +00:00
Fomafix bf0ba2f20c Use MediaWiki\ResourceLoader\ImageModule instead of ResourceLoaderImageModule
The class name ResourceLoaderImageModule is deprecated since 1.39.

Change-Id: I39156ac04b1c0609487d359579bac1fefcea6356
2023-12-01 13:23:39 +00:00
gerritbot dafb05f12d Update UserOptionsLookup's FQN
User-options related classes are being moved to the MediaWiki\User\Options namespace in MediaWiki Core; reflect that change here.

Bug: T352284
Depends-On: I9822eb1553870b876d0b8a927e4e86c27d83bd52
Change-Id: I2af14da0c4f2d13e94b0301ae5d4d2589e05f0b7
2023-11-29 12:38:27 +00:00
Ed Sanders 9111107de8 CodeEditor: Avoid movement while loading
Bug: T73015
Change-Id: I0ce663ebad4bb9ab9f435aeba65c545ee21e0680
2023-10-15 07:21:36 +00:00
Fomafix 0094c01f7f Use namespaced classes
Change-Id: If12b9c731ff89e2ca2d855f9d3ed4b887f9a356e
2023-10-03 09:11:09 +00:00
Sam Wilson f7a7c7afea Add change handler for Edit Recovery
When the Edit Recovery loading process is finished, add an Ace
editor change handler so that the Edit Recovery fields are saved
whenever there's a change to the CodeEditor data.

This is similar to the change made for CodeMirror:
I352470752130c7b9b2dfc55a066cecf785d40067

Bug: T344406
Change-Id: I2c7826379108a88be7956d84bbfd3200b5ad542f
2023-09-20 16:15:52 +08:00
Translation updater bot 7c52cac05e Localisation updates from https://translatewiki.net.
Change-Id: Ifbcafb706a271976f721cceba1b79633988bc045
2023-09-12 08:26:30 +02:00
Translation updater bot b5b9cba7f8 Localisation updates from https://translatewiki.net.
Change-Id: I12f123cd3b596db91189328149b40e27f6228435
2023-09-11 09:03:15 +02:00
James D. Forrester d63555f3e8 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I3606309b5d9e401577fcf7a5230ae60e6f5b6774
2023-08-19 11:27:24 +00:00
gerritbot 4f513b6232 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I1de316ddfa572a72ca68f9806b93f958286c8ef2
2023-08-19 04:14:04 +00:00
Translation updater bot a67d9a1d85 Localisation updates from https://translatewiki.net.
Change-Id: I1c6670e012b01f6d78f693d2428fc5d4a71c0d31
2023-08-17 12:09:35 +02:00
Translation updater bot 56fb5412ce Localisation updates from https://translatewiki.net.
Change-Id: Ied0dc3d61d547e35b56f0d67d9f54d58361d8e1f
2023-07-24 09:36:52 +02:00
Máté Szabó a6030db858 Follow-up Ie3ed681b: Unstub getCaretPosition() as well
It was pointed out in the review of Ie3ed681b that the naive fallback
for replaceSelection() was not working because CodeEditor only had a
stub getCaretPosition() implementation. So, let's implement that as well
in case people want to use it. It seems to work reasonably well locally
with the native replaceSelection() disabled.

Bug: T342127
Change-Id: I8d3683808394faefa56c7cdff31dc18978c4dd92
2023-07-21 14:45:41 +02:00
Máté Szabó 2f7ce4dd50 Add explicit replaceSelection() implementation
The $.textSelection() facade in CodeEditor is missing a
replaceSelection() implementation. This causes $.textSelection() to
fall back to a naive implementation, which does not work, thus breaking
any gadget or extension that tries to interact with CodeEditor using
this method. As a fix, provide a native replaceSelection()
implementation that calls the appropriate ACE editor method:

Bug: T342127
Change-Id: Ie3ed681b39c5d4d2bed50030a397a2b1c877c9fb
2023-07-18 16:38:55 +02:00
Translation updater bot 795d19bd6f Localisation updates from https://translatewiki.net.
Change-Id: Ic3aa714080d7225b311a182c59a253770109f5b6
2023-07-14 09:32:49 +02:00
Translation updater bot 90c61ea9d8 Localisation updates from https://translatewiki.net.
Change-Id: I31d3c04421b45dfb25c73a01e0cff9f57d162ac7
2023-07-06 10:11:28 +02:00
Jon Harald Søby 075cfc12e4 Remove use of autoMsg in favour of using mw.message directly
Use mw.message directly instead of relying on WikiEditor's
<key>Msg feature.

Bug: T154891
Change-Id: Ifc9016ecd35cb0d8bbbf858b704cb0b574e38f56
2023-07-05 02:03:55 +02:00
Umherirrender 4d6a470aae Create HookRunner class and the hook handler interface
Bug: T271013
Change-Id: Ie8e152530599d11da12cb9272a3b757da1cca1ab
2023-06-04 21:23:14 +02:00
libraryupgrader 024d0332f3 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: Ifecf31f6a86fd640ce5f9cc0cc2d9a89aeaea587
2023-06-01 02:55:33 +00:00
Translation updater bot c6ee9083c1 Localisation updates from https://translatewiki.net.
Change-Id: I86d9d6227089afd7fbba657d4a30fbdc0b946f1a
2023-05-29 09:58:49 +02:00
gerritbot 417ce7bebf Update moved class EditPage
See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: I5a66b76658c3eb19f2afe5b9a8ce4748767e6c2d
2023-05-06 21:19:29 +00:00
Translation updater bot 83ec48d13f Localisation updates from https://translatewiki.net.
Change-Id: I4a5e81349bccb7c5452fbf67c1f46937cc8bb733
2023-05-05 10:38:16 +02:00
libraryupgrader 4af38f4930 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Ib1eb68c26716ef9e144a9dc7030f40c35560e5ef
2023-05-05 02:40:22 +00:00
jenkins-bot 3590c0195c Merge "Replace deprecated Hooks::run" 2023-05-01 09:42:22 +00:00
Umherirrender 10dddec75b Replace deprecated Hooks::run
Bug: T335536
Change-Id: Ifc18d80c15f714d58aef33c9991079db9406a19e
2023-04-29 20:13:21 +02:00
libraryupgrader da6252f405 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: Ib912e9a015a90ffdb39d2696d98c8be5431442d7
2023-04-29 01:27:12 +00:00