C. Scott Ananian
5deb04029e
Temporarily disable tests involving data-mw-i18n output
...
These will be updated in I84296d802382131b47fda097878df43e2f6f46ff
but we need to break a cyclic dependency.
Change-Id: I1842447492361fd9eb870b2573eaa50c51cf24fc
2023-10-06 12:58:18 -04:00
Subramanya Sastry
87731b7e09
Add NOTES.md with a note about the migration of the Parsoid code.
...
Change-Id: I2698db2fec66dde5eff9e74b71b7fbc2662c22f2
2023-09-27 13:57:58 -05:00
Subramanya Sastry
04c293d759
Enable Parsoid integrated tests
...
* This replaces the standalone tests that we ran for the Parsoid
implementation while it lived in the Parsoid repo.
* There is no benefit running html2wt (and hence html2html) tests
at this point since html2wt simply uses data-mw information.
Change-Id: I9435267f654eb07bcb1b5733986667a8617f1fbd
2023-09-27 12:46:00 -05:00
Subramanya Sastry
d9a7fea019
Move Parsoid implementation of ImageMap from Parsoid repo
...
* There have been no changes to the code except for:
- class is now called ParsoidImageMap with a matching file name
- the namespace is changed to MediaWiki\Extension\ImageMap.
- adding phan directives to deal with Parsoid's DOM proxies
which phan doesn't seem to be see here.
* Parsoid's SiteConfig extension registration code simply overwrites
the extConfig array for a tag name. So, keeping the config and
implementation identical ensures that no matter which version of
code is registered (based on load order), we get the same behavior.
* Once this rolls out on the next train, we can remove the code
from Parsoid.
* Future patches might refactor the two implementations to extract
common functionality or merge code into a single file.
Change-Id: I6cffa4420d2daa70174fa926d5c7a4d983792969
2023-09-19 16:21:40 -05:00
Subramanya Sastry
7a2d263b39
Sync up ImageMap repo with Parsoid
...
This now aligns with Parsoid commit d76d47b9b1accf2548dc1645c812c309dd84540e
Change-Id: I63ea3d08e8dd2727dec89878f0d8f5f27d9c0de1
2023-09-19 15:29:50 -05:00
Translation updater bot
f23c942ee9
Localisation updates from https://translatewiki.net .
...
Change-Id: I66398b8124a9437aaff6e97236e74bf4c295e228
2023-09-18 08:43:38 +02:00
jenkins-bot
8081cb31f5
Merge "Replace some moved Title class uses, now MediaWiki\Title\Title"
2023-08-19 12:33:00 +00:00
gerritbot
d3b897ffa1
Replace some moved Title class uses, now MediaWiki\Title\Title
...
Bug: T321681
Change-Id: I181ab0a62d32ddcab818b48f2d0301b0374a54d9
2023-08-19 12:02:23 +00:00
jenkins-bot
b2116e1121
Merge "build: Update MediaWiki requirement to 1.41"
2023-08-19 10:15:49 +00:00
James D. Forrester
2b82aea178
build: Update MediaWiki requirement to 1.41
...
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.
Change-Id: I4d99a3c5fe9ada4c52efa911626eb2c41cf057cb
2023-08-19 13:24:11 +08:00
James D. Forrester
9ae9428df0
build: Update MediaWiki requirement to 1.41
...
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.
Change-Id: Iee3f421a9fa0f7f2a0f7b57ce73043fc1d23ec54
2023-08-19 13:24:01 +08:00
Translation updater bot
de0e7a147c
Localisation updates from https://translatewiki.net .
...
Change-Id: Id47412f39377982b88c2bfe373a6687b398c1841
2023-08-17 12:10:09 +02:00
Translation updater bot
2a62e9dd4e
Localisation updates from https://translatewiki.net .
...
Change-Id: Ibc99066c3bb55b4a7931283a56d9dc6f2df66d0c
2023-07-24 09:38:06 +02:00
Translation updater bot
000ccb97b0
Localisation updates from https://translatewiki.net .
...
Change-Id: I1d0149239f6a5ad93c4ffb11b7bdc495bcacc7a4
2023-06-12 13:07:34 +02:00
libraryupgrader
a641766c5b
build: Updating grunt-banana-checker to 0.11.0
...
Change-Id: I0a57907645b3fce4a228d0fc05e2c8f4a829251b
2023-06-01 15:13:13 +00:00
Arlo Breault
7e342a416c
Fix description link icon positioning
...
Bug: T329364
Follows-Up: I20130fd39135dfd5074590ee9c2b6e01693384e4
Change-Id: I9400a6ac607c5170c0aa26ee3a2bf8d9217c19e4
2023-05-31 15:12:35 -04:00
Translation updater bot
ba6a6cd75e
Localisation updates from https://translatewiki.net .
...
Change-Id: I9bef60493a602808f166515d349e2851aa8e540b
2023-05-31 08:20:21 +02:00
Arlo Breault
1a8f86e41b
Sync up ImageMap repo with Parsoid
...
This now aligns with Parsoid commit db0772cd77d89ea166bf6ea162f9d223264a6f50
Change-Id: I263043f284542ff866f633ad8177ab3d072ca679
2023-05-25 13:52:17 -04:00
jenkins-bot
bf1ab0a995
Merge "Add resource for thumb magnify links"
2023-05-25 16:29:49 +00:00
jenkins-bot
7416c17cda
Merge "Add back description links when !$wgParserEnableLegacyMediaDOM"
2023-05-25 16:28:37 +00:00
Arlo Breault
96c60d44ca
Add resource for thumb magnify links
...
Bug: T329413
Depends-On: Id46d1b2ab1af3baebff13e10f1485f3cfd9a4b37
Change-Id: Idec1b8dc1c742ca6ea3b24f3b14738c2d1f5b01d
2023-05-25 16:09:06 +00:00
Arlo Breault
b2113e0154
Add back description links when !$wgParserEnableLegacyMediaDOM
...
The approach taken here is the same as in core for magnify links on
thumbs in Id46d1b2ab1af3baebff13e10f1485f3cfd9a4b37
The gist is that resource attributes are added on the mw-file-element so
that the necessary url is present in the html. A class is also added to
the wrapper element that designates where the link should be positioned.
Finally, a script adds the link which styles in appropriately.
Bug: T329364
Depends-On: Id46d1b2ab1af3baebff13e10f1485f3cfd9a4b37
Change-Id: I20130fd39135dfd5074590ee9c2b6e01693384e4
2023-05-22 15:22:42 +00:00
Mark A. Hershberger
2d9633abc6
Add generic MW editorconfig
...
Change-Id: Iccdfd5af7cabbb08677c8c93a03f6838d5928584
2023-05-12 15:09:10 +00:00
libraryupgrader
454cbe9a5c
build: Updating eslint-config-wikimedia to 0.25.0
...
Change-Id: I10eaf510555c78a4349a5e599d4dbd7369b20c43
2023-05-05 05:45:22 +00:00
libraryupgrader
e5e2e42370
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: I0613a705766269abbd83aadaf41e531aac9e7cc3
2023-04-29 05:43:28 +00:00
Arlo Breault
6d83c5bc21
Fix adding titles when caption isn't visible
...
This was added in Ic0169d3914c5ce442b063f4bbbb6493966dbb302 and it
looks wrong on a few levels: the format isn't captured, and only
mw:File is emitted now.
Change-Id: I5aff7b53348696c485ef5683f6aab7aaafac4973
2023-04-27 13:34:16 +00:00
Arlo Breault
5f132d85a8
Update parsertests with new media classes
...
Depends-On: Ifd4001e312a5fa4b7beaad63ba8c4e79e3201b9b
Change-Id: I771296865ec101d4af05f4dbbe194f01df3d72a6
2023-04-26 13:15:07 -04:00
Arlo Breault
f3f0aa89ea
Disable tests to break circular dependency
...
Needed-By: Ifd4001e312a5fa4b7beaad63ba8c4e79e3201b9b
Change-Id: Ifc17fdf530af515b066de706ca5e69e118fd1c5b
2023-04-20 16:30:55 -04:00
libraryupgrader
53806fe0ad
build: Updating npm dependencies
...
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1
Change-Id: I80e4f86f6369e171a35e5815400785ccdd64293f
2023-03-15 12:20:27 +00:00
C. Scott Ananian
a4d5daa43f
Sync up ImageMap repo with Parsoid
...
This now aligns with Parsoid commit 15cf6010f1342a67282d0e6ace4b1ef1eb2bbc47
Change-Id: Id096a272733cc2452d41a7f4b8cb230b8cfc6f62
2023-03-13 13:53:31 -04:00
libraryupgrader
6212138174
build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
...
Change-Id: I3ca9fba483cc10680b4689fb5dc63cd098290cef
2023-03-12 03:54:53 +00:00
Arlo Breault
08b48fd551
Re-enable tests
...
Follow-Up: I7b1f07190e8eaca5cbda38d9ce366aa60041ab81
Depends-On: If1e55feb86ce8b32f772e3b78bc9d29f122f4d58
Change-Id: I2a7b255f2783fad6b2e7e1478e5b020f396a486b
2023-02-09 10:25:10 -05:00
Arlo Breault
9f55b88fe9
Disable tests for CI
...
Needed-By: If1e55feb86ce8b32f772e3b78bc9d29f122f4d58
Change-Id: I7b1f07190e8eaca5cbda38d9ce366aa60041ab81
2023-02-09 10:21:51 -05:00
Arlo Breault
015a318a05
Re-enable tests
...
Follow-Up: Id6ad0b922f8384f2bbf08e1032b0197aa3136233
Depends-On: I8d059852f472b40b4f4f80a8fa12230f6f4f13ad
Change-Id: I1e5796f768649df466a768f81f2165e601940b8f
2023-02-08 16:20:18 -05:00
Arlo Breault
8d8e95e081
Disable tests for CI
...
Needed-By: I8d059852f472b40b4f4f80a8fa12230f6f4f13ad
Change-Id: Id6ad0b922f8384f2bbf08e1032b0197aa3136233
2023-02-08 16:17:56 -05:00
Umherirrender
581909aa39
Allow composer/installers plugin
...
`composer update --no-interactive` errors out if this flag is not set.
Setting it to true, as that was the status quo before Composer 2.2.
Bug: T298283
Change-Id: Ib087b5e85d6910f17bc622b0b7d7e67cd5327d9f
2023-01-21 02:51:23 +01:00
Translation updater bot
b6615b2fca
Localisation updates from https://translatewiki.net .
...
Change-Id: I2600511a7a9833f97b16b5b2b7c9e6d147980e3a
2023-01-11 09:01:58 +01:00
Umherirrender
4b479f6427
Replace deprecated ConfigFactory::getDefaultInstance
...
Bug: T325966
Change-Id: I2bbaa9d1a65e4f33cb9d919237d8664e3f74a51e
2022-12-27 21:10:16 +01:00
Translation updater bot
105206403f
Localisation updates from https://translatewiki.net .
...
Change-Id: I1e4c4dc9436ca42cd71ca5283dc72efd171bb46f
2022-12-21 09:15:56 +01:00
Translation updater bot
74255b54fc
Localisation updates from https://translatewiki.net .
...
Change-Id: I1494afdc1ad7cafad050f262ae71c168c6f1d234
2022-12-15 11:36:05 +01:00
jenkins-bot
d712dbaa3e
Merge "Avoid Phan PhanUndeclaredMethod false positives"
2022-11-25 19:56:44 +00:00
jenkins-bot
6f54c1b024
Merge "Use Parsoid's HTML5-compliant helpers for HTML transformations"
2022-11-25 19:55:24 +00:00
Bartosz Dziewoński
c8c8b9c735
Avoid Phan PhanUndeclaredMethod false positives
...
The insertBefore() and appendChild() methods return their first
argument, but Phan only knows that they return a DOMNode, even though
we passed in a DOMElement. Rearrange slightly to avoid this pattern.
Change-Id: I04c58458e1ba0d728374ead756afb6facf970766
2022-11-25 18:37:02 +00:00
Bartosz Dziewoński
2cc6549898
Use Parsoid's HTML5-compliant helpers for HTML transformations
...
Previously XML parsing and serialization was used, causing `<br>`
to be disallowed and `<br />` to turn into `<br></br>`.
Also update some uses of XPath to use querySelector() helper.
Bug: T113791
Change-Id: Ic2069015b4cbb5d05a72eb383052319048111623
2022-11-25 17:05:24 +00:00
Translation updater bot
9e5bf227f4
Localisation updates from https://translatewiki.net .
...
Change-Id: I1be6450daa82c534f40e43910e8176201424ebf9
2022-11-18 09:18:31 +01:00
libraryupgrader
c83fb6c2b9
build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
...
Change-Id: I0bee93cc64d5241cdc170df70080ec2df2e7667a
2022-11-16 07:12:53 +00:00
libraryupgrader
7aa9d03bea
build: Updating minimatch to 3.0.8
...
* https://github.com/advisories/GHSA-f8q6-p94x-37v3
Change-Id: Id2f7c51a276bcab92588c82b0d20149f131cef88
2022-10-21 06:35:38 +00:00
C. Scott Ananian
8890a38c96
Sync up ImageMap repo with Parsoid
...
This now aligns with Parsoid commit 5c6d948979bba6b58db13790cf3afcc883fe4ff6
Change-Id: Ie17011479274950758bce690d1d874d9e5f001a3
2022-10-12 14:52:11 -04:00
libraryupgrader
793a4d3eaa
build: Updating mediawiki/mediawiki-phan-config to 0.12.0
...
Change-Id: Id8b85c2b1c4257cf23136fbdbd6bf164d73b02c9
2022-10-09 05:51:25 +00:00
James D. Forrester
42666f967c
build: Drop PHP dependency, irrelevant given MediaWiki version
...
Change-Id: I4f206c9c2addbb39034f7ff083a3c0f0130c1bd0
2022-10-07 10:46:54 -04:00