sbailey
9679519b0a
Fix for Parsoid Cite refname whitespace handling
...
* Refnames such as 'a b' and 'a_b' are now kept seperate like
in Core Cite. Refnames with unicode whitespace characters
such as "a\u2028b' are handled as distinct refnames from 'a b'
and their ID's are sanitized appropriately to have underbars.
Bug: T267974
Change-Id: Ie06d1f2b8614dbdcf8572ed4647ec9093ef006d5
2021-01-08 17:22:44 +00:00
Subramanya Sastry
97f965f9cb
Parsoid/JS: Purge majority of code not used by roundtrip-test.js
...
* Tweaked a few of the remaining js files to enable me to purge more
files.
* In another pass, we can consolidate most of the utils into a couple
rt-test helper classes and purge more.
* Verified that bin/roundtrip-test.js runs by using a parsoid/js service
installed via the deb package.
$ bin/roundtrip-test.js --parsoidURL http://localhost:8142 Hospet --outputContentVersion 2.1.0
* Haven't touched the package.* files
Change-Id: I79657250de3baaa09bda6be2f440ba5363b62eaf
2021-01-08 17:15:04 +00:00
Translation updater bot
5780fe9038
Localisation updates from https://translatewiki.net .
...
Change-Id: I7131cd444c1a45ed069c3afd947e245b7e77366b
2021-01-08 08:55:23 +01:00
Translation updater bot
27aced60ef
Localisation updates from https://translatewiki.net .
...
Change-Id: I8ef019e0d652bc33f9910cbc3c54fd312c4589ba
2021-01-07 08:31:16 +01:00
Arlo Breault
e8d8481f60
More papering over in References.php
...
This is the same fix as in 5e5e360
for T259676
The root of the issue is described in T260082
Bug: T271357
Bug: T260082
Change-Id: I7ccf0b20f6b0be0f31101a2c4a88010675dc72ba
2021-01-06 18:53:55 -05:00
Translation updater bot
ad3e01a300
Localisation updates from https://translatewiki.net .
...
Change-Id: Id83bbd0ac6a9abd434d367d2042d172b56477904
2021-01-04 08:42:41 +01:00
jenkins-bot
557d3fd90e
Merge "Update Cite to use the new HookContainer/HookRunner system"
2020-12-31 01:49:59 +00:00
Translation updater bot
e1a4b6f779
Localisation updates from https://translatewiki.net .
...
Change-Id: I75ef0e3deff8ee0ff3582b812909c70b7692b732
2020-12-29 09:47:21 +01:00
Taavi Väänänen
9293e2d5ca
Update Cite to use the new HookContainer/HookRunner system
...
Bug: T270875
Change-Id: Ieb29603cde24a1c52829c12ae431eca09ba37bf9
2020-12-28 17:55:34 +02:00
Translation updater bot
34aff2e666
Localisation updates from https://translatewiki.net .
...
Change-Id: I5350bbad5046be58bfbcce2f3f539ade45f57e7c
2020-12-28 10:37:33 +01:00
Translation updater bot
f42688074a
Localisation updates from https://translatewiki.net .
...
Change-Id: I432f5dbb18e0e83f23546c1a2bdad523be9819b4
2020-12-23 08:31:55 +01:00
Translation updater bot
e3f805432f
Localisation updates from https://translatewiki.net .
...
Change-Id: I850a4e99f55acebee8151d98ed96e6feedd6b7ff
2020-12-22 08:30:19 +01:00
sbailey
394015a38b
Add ref/follow name to Cite error cite_error_references_missing_key
...
Bug: T51538
Change-Id: Id19a4e4c37169ca6eb7aecdce66b1662546ae31a
2020-12-21 18:08:21 -08:00
sbailey
511543e3f1
Add refname parameter to cite_error_empty_references_define error
...
Bug: T51538
Change-Id: I2850b7f181f44465437bc486bc544c5cd58aa5e3
2020-12-21 13:31:37 -08:00
Translation updater bot
db7ccab956
Localisation updates from https://translatewiki.net .
...
Change-Id: I986b73b067e8b0cad97a3a6bb9b6d7606734a5ad
2020-12-21 08:38:25 +01:00
libraryupgrader
e6f7d8c021
build: Updating mediawiki/mediawiki-phan-config to 0.10.6
...
Change-Id: I2cc37b889bf5503f48caec5291c8cc707ae5265e
2020-12-19 12:04:52 +00:00
sbailey
b9b10a3fe0
Add group name to Cite error cite_error_references_group_mismatch
...
Bug: T51538
Change-Id: Ie6e04edcdf4b9760711ec53021d65970691a3813
2020-12-18 22:16:28 +00:00
Translation updater bot
0e2bfa987b
Localisation updates from https://translatewiki.net .
...
Change-Id: I4fbb5046df379c58bde9ea392b4bff930515aee9
2020-12-18 08:24:05 +01:00
Translation updater bot
e7493c1f4b
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic0485a04c049b26e2743b2d8d05d77617b0816aa
2020-12-17 08:54:36 +01:00
sbailey
7bd9f87157
Add parameter $refName to Cite error cite_error_ref_duplicate_key
...
Bug T51538
Change-Id: If8399be12a5cad025b3a4db8e970c8de96c75ad6
2020-12-16 13:58:45 -08:00
sbailey
5fbf890f12
Add direction parameter to cite_error_ref_invalid_dir message
...
Bug: T51538
Change-Id: I5e964ad7341a46552d7b8eded0d844c0132816b1
2020-12-16 20:24:57 +00:00
sbailey
cf4a49ba6e
Add group name parameter to cite_error_group_refs_without_references
...
Bug: T51538
Change-Id: I8708ffa21c2ef68c124a5b055a6860cfb4ec12e1
2020-12-16 20:19:33 +00:00
Arlo Breault
d95a783cc8
Stop referring to spec version numbers where unnecessary
...
Presumably the source should be up-to-date with the latest spec.
Change-Id: Iaea7f80e9d3bbd3520a7b499252162240deeba62
2020-12-16 13:55:27 -05:00
Translation updater bot
cf32b96e0b
Localisation updates from https://translatewiki.net .
...
Change-Id: Id0821b3c842fe2c6b4cac0efccddc476d00e990c
2020-12-16 08:29:34 +01:00
Translation updater bot
a67fc07c5f
Localisation updates from https://translatewiki.net .
...
Change-Id: I49867e15e95203760ae57650b3d59c7ff26ab176
2020-12-15 08:35:22 +01:00
jenkins-bot
3350aacbdf
Merge "Move ext.cite.ux-enhancements to extension.json"
2020-12-14 16:39:50 +00:00
jenkins-bot
b0d9a03993
Merge "Show reason and/or date in CitationNeededContextItem"
2020-12-14 16:39:48 +00:00
Ed Sanders
6e3eedd40a
Show reason and/or date in CitationNeededContextItem
...
Bug: T270107
Depends-On: I7fdd4810118e72b9719b840fa5e0887006a74a25
Change-Id: I873fb28f5e8fbac469f0fe050818c58dc782fea9
2020-12-14 08:06:02 -08:00
jenkins-bot
ccb0627fb5
Merge "Unconditionally register the VisualEditor integration statically"
2020-12-14 15:17:25 +00:00
jenkins-bot
453097c021
Merge "ve-cite: Add dependency on ext.visualEditor.mwtransclusion"
2020-12-14 15:09:58 +00:00
Ed Sanders
35b704dc2f
Move ext.cite.ux-enhancements to extension.json
...
Change-Id: Ia6a0c34800b018e76b9e246898ddfb991f238d55
2020-12-14 10:38:32 +00:00
Translation updater bot
e7f86f69ce
Localisation updates from https://translatewiki.net .
...
Change-Id: I07c9c27bae4b7d17620589e45bb430cc76b98eac
2020-12-14 08:41:08 +01:00
Ed Sanders
10c525b5b7
Unconditionally register the VisualEditor integration statically
...
This is how we handle this in othe repos; CI ensures that VisualEditor
is indeed loaded alongside the Cite extension whenever it's required,
and this significantly reduces the complexity of the code in the repo
and the processing time needed from Cite's hooks on every PHP init.
I'm leaving the "ux-enhancements" module for now, as you can't mix
static (late) module registration with dynamic (immediate) code.
Change-Id: I974654d00687b0dea6aed342d8fa9dcb6ef90768
2020-12-13 22:11:27 +00:00
Ed Sanders
10f7f716f0
ve-cite: Add dependency on ext.visualEditor.mwtransclusion
...
ReferencesListNode needs to be registered after
MWTransclusionNode so that it has a higher specificity
when matching.
Change-Id: I93610fac2ec9715a14b34efb76abc55d2d2c6900
2020-12-13 22:10:44 +00:00
libraryupgrader
8bda698bb3
build: Updating ini to 1.3.8
...
* https://npmjs.com/advisories/1589
Change-Id: I5ecf217b5dcf8e82dad88ab2d318d49f3e82a65b
2020-12-12 22:07:53 +00:00
Translation updater bot
8e22ee549e
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic8baa6c98d73cf54505d73bd3275d22650ce4146
2020-12-11 08:34:52 +01:00
Subramanya Sastry
07bcfd9add
Purge Sanitizer proxying from ParsoidExtensionAPI
...
Sanitizer is heavily used by extensions and we decided to let
extensions directly access it.
So, stop proxying those methods from ParsoidExtensionAPI.
Change-Id: I5ff285bf33733878135e2091d53ae12f7340c8fc
2020-12-10 16:54:30 +00:00
sbailey
e0322afd84
Parsoid Cite add class mw-ref-follow for refs with follow
...
* Addresses a FIXME (T263052) where Parsoid Cite injects
style = "display: none;" in refs with follow instead of
having css do that triggered by having a class "mw-ref-follow"
as part of the refs html.
Bug: T263052
Depends-On: I351516b81566aba0adb4d298e39806dfb4fc7b03
Change-Id: I8bfc4ee3df162e2040e3c6f0c37fbf2a7c30d7f6
2020-12-10 16:54:25 +00:00
Translation updater bot
ca1628d5e3
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaaf9d440ba8c219489c0d6efb712bf776fa6edd4
2020-12-10 08:34:15 +01:00
libraryupgrader
ef30aa0a92
build: Updating mediawiki/mediawiki-phan-config to 0.10.5
...
Change-Id: Ib7125b5f8029507dc6d3154fa80a670600308404
2020-12-10 03:39:44 +00:00
Arlo Breault
8d4543954f
Cast references attributes to strings
...
Follow up to 01cf61a
Numeric array keys are returned as integers.
echo "<references 2/>" | php bin/parse.php
Bug: T269748
Change-Id: I892753c330f95d258e0310626f109386fd020177
2020-12-09 16:05:12 +00:00
Translation updater bot
d0bf84be0c
Localisation updates from https://translatewiki.net .
...
Change-Id: I484d78ceef164292edb659f69a64ba490b277d45
2020-12-09 08:41:28 +01:00
Translation updater bot
950c62fa02
Localisation updates from https://translatewiki.net .
...
Change-Id: I0af718d42e568a1f87b15a37357fc717e0d4b4bc
2020-12-08 08:20:46 +01:00
Translation updater bot
74344a461b
Localisation updates from https://translatewiki.net .
...
Change-Id: Id1dcd835bff0a50917ec301ceade5d6fd9192e1e
2020-12-07 08:43:37 +01:00
libraryupgrader
e1a3aa67de
build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
...
Change-Id: Ifc33e23b11dc59bde9cfb909f2291b2e6fbfd202
2020-12-06 03:37:29 +00:00
sbailey
8f42623520
Add a definition for .mw-ref-follow to Parsoid's stylesheet
...
This lets us remove the inlined style on follow refs.
It will be used in I8bfc4ee3df162e2040e3c6f0c37fbf2a7c30d7f6
Bug: T263052
Change-Id: I351516b81566aba0adb4d298e39806dfb4fc7b03
2020-12-03 22:50:57 +00:00
Arlo Breault
3c15454851
Refine adding module(style)?s in extapi
...
Bug: T269022
Change-Id: Ic2c56c554934ced2aea04317d988098ca840076f
2020-11-30 17:15:27 -05:00
Translation updater bot
e7524ce17b
Localisation updates from https://translatewiki.net .
...
Change-Id: I3192d870e725bbdf0e08014078afa9e1d97c3e6b
2020-11-30 08:46:02 +01:00
Arlo Breault
6525d69200
Reconcile some ref errors cases with $hasFollow
...
Change-Id: I5e3a27366f177af6c221d57da6e31f28cc91bb0c
2020-11-25 13:51:37 -05:00
sbailey
de5d806335
Cite error tag name defined in references not used before
...
Bug: T51538
Change-Id: Id89b3cc186de42e5e5c05f15d7546db9d64ec864
2020-11-25 13:50:25 -05:00