Commit graph

1211 commits

Author SHA1 Message Date
Bartosz Dziewoński 979b382d2b Update VE core submodule to master (1800c35de)
New changes:
14ab5f36c Localisation updates from https://translatewiki.net.
ffde59c5f build: Replace automatic 'grunt-svgmin' with manual 'svgo' script
6294cc572 Re-crush SVGs now we're on SVGO 2.x not 1.x
42e35e898 Visual diff: Use mix-blend-mode to improve opacity hacks for content in highlighted areas

Bug: T311903
Bug: T312013
Change-Id: I0428ca6038459087d6c6f79e20ffeaa32659c3db
2022-07-16 19:18:02 +02:00
Bartosz Dziewoński 54714ab7fc Update VE core submodule to master (38470f11e)
New changes:
bc81b354e Update OOUI to v0.44.1
38470f11e Revert "WindowManager: Simplify teardown"

Change-Id: I4468b8278c7fa546d31d9f9092a2b99dadae256a
2022-07-13 21:08:07 +02:00
Bartosz Dziewoński 2ed2fd7489 Update VE core submodule to master (71e970992)
New changes:
ce9a03c54 Fix middle click to paste behaviour
129debcdd Allow middle-click pasting to happen next to the current selection
3934a89a6 Don't create selection when middle-click pasting into empty paragraph
71e970992 Insert content at click coords when middle click pasting to a blurred surface

Bug: T311701
Bug: T311723
Bug: T311733
Change-Id: I6659825fa77e518169c7c97e34d7996bed44c97c
2022-07-07 23:16:27 +02:00
Bartosz Dziewoński 56ca592fc3 Update VE core submodule to master (0a909d09a)
New changes:
8db04423a Localisation updates from https://translatewiki.net.
a60817839 Localisation updates from https://translatewiki.net.
88f4bb181 Follow-up I61b477d1f: Only remove native ranges if the are inside the document

Bug: T293661
Bug: T311904
Change-Id: Ie8f4d1c9853a9510f1ce2245a0d32ea630d76579
2022-07-04 16:58:12 +02:00
Bartosz Dziewoński 61a7269261 Update VE core submodule to master (c5804af0a)
New changes:
a035f62f6 Localisation updates from https://translatewiki.net.
c5804af0a Handle Shift+Enter at the start/end of pre nodes too

Bug: T60773
Change-Id: I2fa0bda7ea2a831f62c5df428d0352bb31c4d823
2022-06-27 23:23:38 +02:00
Bartosz Dziewoński 5e58b97804 Update VE core submodule to master (2a341d152)
New changes:
83024d909 Add unit tests for ve.init.ListStorage
082df611e DummyPlatform: Mock system Storage object as well as SafeStorage wrapper
2a341d152 Localisation updates from https://translatewiki.net.

Change-Id: Id77d0efcebcf3a3a42d404fdc23bde23470ef645
2022-06-23 22:26:26 +02:00
Bartosz Dziewoński d2d3837616 Update VE core submodule to master (7170a0139)
New changes:
b9743a7e2 Localisation updates from https://translatewiki.net.
0e56678b2 Localisation updates from https://translatewiki.net.
5c0ffc786 build: Update language lists to add 'ks-arab'
0320dfd08 Swap out an existing toolbar $overlay when changing a surface

Change-Id: I9dddf14a181fdd3f0e76c9d30d2997479ee406bb
2022-06-22 19:34:34 +02:00
Bartosz Dziewoński aaf2bd051a Update VE core submodule to master (179bbdc9c)
New changes:
e916cad3b Make ListStorage a subclass of SafeStorage, instead of a wrapper
179bbdc9c ve.dm.Surface: Add setter for storage system

Change-Id: Ic5f645c926eaed42658ec03e6474f5126eca41f3
2022-06-16 01:47:55 +02:00
Bartosz Dziewoński 4fd59ed1b7 Update VE core submodule to master (2cbef5626)
New changes:
6f089defd Help dialog: Don't register as a documentCommand by default

Bug: T154626
Change-Id: I2cda78fcadf8225627afdc001cf31a38bb080a48
2022-06-16 00:45:45 +02:00
Bartosz Dziewoński 2e3541514c Update VE core submodule to master (1a871fab5)
New changes:
6c8270558 Localisation updates from https://translatewiki.net.
abf8a277e Create a 'cancel' command similar to the existing 'submit' command
1a871fab5 Surface cancel: Hide context before closing surface

Bug: T97350
Change-Id: I35dd21fe2844a707e7d99214665761482275560a
2022-06-15 21:23:53 +02:00
Bartosz Dziewoński e93e152e07 Update VE core submodule to master (78ab52b71)
New changes:
ab10516c0 Localisation updates from https://translatewiki.net.
06bc509b2 ve.js: Update ve.now() to match optimisation of MediaWiki core
83e064476 Localisation updates from https://translatewiki.net.
c375187c3 build: Update language lists
32c0cbfce ModeledFactory: Allow candidates to suppress other candidates when matching

Bug: T310290
Change-Id: Ia809d0e2e9cb29cfb4e3867130e4444fa6eb15b6
2022-06-09 16:57:12 +02:00
Bartosz Dziewoński 3e0323637d Update VE core submodule to master (c54b727ca)
New changes:
6f91b6a3d Localisation updates from https://translatewiki.net.
7f8df33f9 build: Update language lists to add 'tdd'
c54b727ca FocusableNode: Remove webkit columns hacks

Bug: T309037
Change-Id: I86026e8ea3952ecc903b66d2636161754cdf7cee
2022-06-04 13:54:35 +02:00
Bartosz Dziewoński f5ae9c2e59 Update VE core submodule to master (cd966e817)
New changes:
8a31adad3 SupportCheck: Call DOMParser directly
bb447f10e rebaser: Update dependencies
39e84e7b6 rebaser: Update deprecated option
e6505de76 rebaser: Update mongo driver to 4.6
8576a529f Localisation updates from https://translatewiki.net.
cd966e817 CompletionWidget: Wrap in a PopupWidget to keep within viewport

Bug: T307712
Change-Id: I16e96f1667dbe0105348c659ea303464fbd700f4
2022-05-31 22:36:48 +02:00
Bartosz Dziewoński c59cd12c0a Update VE core submodule to master (f52d9b046)
New changes:
0cdfa1c35 Localisation updates from https://translatewiki.net.
f52d9b046 Revert "DiffElement: Collapse tree diff with no described changes"

Change-Id: I65d1e9cbdc45bbf5e04b5c0f25e9254ee240d587
2022-05-26 23:14:32 +02:00
Bartosz Dziewoński 1fac5e1c1d Update VE core submodule to master (020488bd1)
New changes:
f4a94fef6 Remove some unnecessary newlines from source code
42900ef34 Fix wrong type hints for string hashes
ae6c7de73 Make some generic Array type hints more specific
020488bd1 Fix various mistakes in JSDoc documentation

Change-Id: I4b7657767b3239800218679104e2a453ea6b99cd
2022-05-21 17:45:54 +02:00
Ed Sanders 0e6c954230 Update VE core submodule to master (595380444)
New changes:
8ede5f447 ve.ui.Toolbar: Always hide keyboard shortcut hints on mobile
df426dd86 ve.ui.Surface: Attach mobile context to global overlay
bbd6c3efa Revert "Ensure mobile context appears above toolbar on mobile"

Bug: T293129
Bug: T307849
Bug: T308200
Change-Id: I530e92a90b95863a8903350d2e10ee335eda68d8
2022-05-21 14:23:23 +01:00
Bartosz Dziewoński 381381c005 Update VE core submodule to master (aeaac1e84)
New changes:
5c02fa398 DiffElement: Fix ClassAttributeNode tests and ImageNode behaviour
3fa5a0d9c VisualDiff: Consider values going from/to null as being set/unset

Change-Id: I5e17a098cd60831d2cb24ec2e1de06df37c2b7ee
2022-05-21 04:08:11 +02:00
Ed Sanders 726bbbdb05 Update VE core submodule to master (776219f4b)
New changes:
8030b7e93 Localisation updates from https://translatewiki.net.
fdf1a9201 ve.ce.Surface: Fix typos in documentation
776219f4b Follow-up Ic15dd21f: Fix typo width->height

Bug: T307527
Change-Id: I91149b7806124a3541550eaa7437ffdd9583fd7a
2022-05-20 12:02:28 +01:00
James D. Forrester 377a6523ae Update VE core submodule to master (849c2e8de)
New changes:
152633e2c Localisation updates from https://translatewiki.net.
849c2e8de Update OOUI to v0.44.0

Change-Id: I790613101b2c13a1c04ebcf87a776df834d26b4a
2022-05-17 17:45:02 -04:00
Bartosz Dziewoński aaef4584cc Update VE core submodule to master (f07b7e2cf)
New changes:
46eedcade Localisation updates from https://translatewiki.net.
86add3cf8 WindowManager: Simplify teardown
7f4bc9340 Ensure mobile context appears above toolbar on mobile

Bug: T308201
Bug: T308295
Change-Id: Ib3af733873f836db54c8eece864ae3bd04e8e657
2022-05-14 00:03:19 +02:00
Bartosz Dziewoński 4c90b310ea Update VE core submodule to master (af608e441)
New changes:
30aceee47 Use equivalent colours at 50% opacity for block level backgrounds

Bug: T307466
Change-Id: I262cfc1cb914f3e36b5d5723ce53f83f2b884b87
2022-05-11 23:28:16 +02:00
Bartosz Dziewoński 550c60dff8 Update VE core submodule to master (e54ef8d1c)
New changes:
bb90a1afd ve.dm.Node#hasMatchingAncestor: Use #traverseUpstream
61ebfd367 ve.dm.Surface: Emit context change when selection in node changes collapsed-ness
138360b1f ve.ui.ListAction#allWrapped: Use ve.dm.SurfaceFragment#hasMatchingAncestor
38d4e6c79 ve.dm.Node: Create findMatchingAncestor and factor out compareAttributes
e54ef8d1c ve.dm.SurfaceFragment: Add matchFirstAncestorOfType option

Bug: T217618
Bug: T306752
Bug: T306801
Change-Id: I51dfa902d14929bb28060492cd9e1dea28ed6cb4
2022-05-10 01:01:44 +02:00
Bartosz Dziewoński ad95513817 Update VE core submodule to master (5c075c883)
New changes:
0f594f38a Localisation updates from https://translatewiki.net.
58e060bdb AlienNode diff: Ensure types match before doing a complex comparison
c0c7d43b7 ve.ce.Surface#showModelSelection: Handle out-of-bounds nativeSelection
464f1204d ProgressDialog: Make non-escapable

Bug: T306218
Bug: T307875
Change-Id: I145f2d1454240ff01f1a9926b1a6f746be6d11df
2022-05-09 19:45:56 +02:00
Bartosz Dziewoński a6c398a73c Update VE core submodule to master (da708802f)
New changes:
713c2d892 Localisation updates from https://translatewiki.net.
c66d07c9e Update language lists
f262afdbc Localisation updates from https://translatewiki.net.
6bedb34d0 build: Update to QUnit 2.18.2
6b89a565b Localisation updates from https://translatewiki.net.
b234264d3 Change focusable minimum size from >8x8 to >=10x4
4e70201e1 Localisation updates from https://translatewiki.net.
3f031fe82 Gruntfile: Fix 'seperate' typo
05fbd550d Remove unused CSS vendor prefixes
b880d9b74 build: Update stylelint-config-wikimedia to 0.13.0

Bug: T201491
Bug: T307527
Change-Id: I708a0675b37c3761e41c191b90ef6cfef36fd22a
2022-05-09 00:07:40 +02:00
Bartosz Dziewoński 46d9ebe521 Update VE core submodule to master (6609cde00)
New changes:
249c1f3e6 Allow testing import rules in ve.ce.Surface paste tests

Bug: T297575
Change-Id: Ib41fd70066f2052d9e493985a6d1dbf6f1e089a0
2022-04-21 02:10:15 +02:00
Ed Sanders 184106418e Update VE core submodule to master (86de64d69)
New changes:
72bd71dbc Localisation updates from https://translatewiki.net.
b7f38d993 Re-apply "Fix for showing "invisible icon" when root node is hidden""

Local changes:
* Ensure templates are attached to DOM before rendering invisible
  icon in converter hack.

Bug: T305110
Change-Id: I0e4c02619b2a06b9932f214ae482093fdb0cb22c
2022-04-20 23:45:31 +01:00
Bartosz Dziewoński 0173862ba6 Update VE core submodule to master (038522816)
New changes:
038522816 Set dir/lang props on placeholder element

Bug: T306040
Change-Id: I53c6f8efae8642b2100cb8b77ba8f9c027fdb826
2022-04-14 00:02:08 +02:00
Bartosz Dziewoński c1dcdeb43d Update VE core submodule to master (a0bf00838)
New changes:
297255a28 Localisation updates from https://translatewiki.net.
55f32beb8 Follow-up I26486e0e79: Fix when first range returns null annotation set
94ed5bb4e Don't attempt to scroll tall selections into view

Bug: T305645
Bug: T305862
Change-Id: I73dcad06e3a3b384225c16ba1b929cbe9cdaccae
2022-04-11 21:20:28 +02:00
Bartosz Dziewoński 01bfdb17d9 Update VE core submodule to master (0fde38782)
New changes:
01cf60f3e Fix position of close button on wide tablet
f859601b4 Match padding of mobile context header & footer
f8675af1b getAnnotationsFromRange: Distinguish between "no annotations" and "no content"
176c2b334 Always assert diff sidebar descriptions

Bug: T304233
Bug: T305645
Change-Id: Icb32737e9222a537ed1fa1bdbeebf8c2a5d15363
2022-04-08 01:23:14 +02:00
Ed Sanders 15bc24205e Update VE core submodule to master (41653c74a)
New changes:
7f80d75ce Context: Move copy/delete buttons to MobileActionsContextItem
2be9610ec Move close button from contextItem to context

Bug: T304233
Change-Id: I49ce23f31afd003cf2dd6a525aeabde6332eb9a1
2022-04-07 00:01:09 +02:00
Bartosz Dziewoński cae66eb2b3 Update VE core submodule to master (ffaefe32c)
New changes:
7646c56c9 Localisation updates from https://translatewiki.net.
26988b80a Fix for showing "invisible icon" when root node is hidden
d9bc2297c Emit ve.ce.Surface 'position' in some more places
d5dfd326e Revert "Fix for showing "invisible icon" when root node is hidden"

Bug: T303795
Bug: T305110
Change-Id: I748d8b6c4702efd44b6b3da458d5c717076eb13a
2022-04-06 22:48:35 +02:00
Bartosz Dziewoński 37dc95f098 Update VE core submodule to master (05fbb163c)
New changes:
35b3a2ef5 Localisation updates from https://translatewiki.net.
02adce4a5 tests: Add some tests for ve.init.Target
cbe0a1011 Always show label-only button for MergeCellsContextItem button

Bug: T304233
Change-Id: Ic7b0325e856199ceaab06a34daf51c173b13d082
2022-04-01 17:03:07 +02:00
Bartosz Dziewoński 130f3e80fc Update VE core submodule to master (38b8213b5)
New changes:
91a762803 ve.dm.ModelRegistry: Disallow unknown types on tag and tag+func matches
8575e8ad8 PreviewElement: Document event
d24f96874 Allow unknown types for ve.dm.AlienMetaItem
106354b38 Follow-up I534ce003d: Fix height restriction calculation of desktop context

Local changes:
* Allow unknown types for ve.dm.MWExternalLinkAnnotation, it is meant
  to match all <a> tags and handles unknown types in toDataElement()

Depends-On: I785be75f389136769084a8e14832a09e3a519fc1
Bug: T303298
Bug: T304847
Change-Id: I75d1e82a43f5f96a9093cd334c524527918efaa5
2022-03-31 13:01:51 +02:00
Bartosz Dziewoński 4868974bca Update VE core submodule to master (dbcb897f2)
New changes:
14fd3ce2d Initialize ContentBranchNode CSS classes properly
d36dd38ee Refactor renderContents
7b1cf5092 Initialize and document existing property
98fe8c06f Localisation updates from https://translatewiki.net.
61f40aa92 Localisation updates from https://translatewiki.net.
d4db5e375 Revert "Add backtick sequence for <code> formatting"
dc11132c8 Revert "Refactor renderContents"

Bug: T304804
Change-Id: I9a6050fcb23c7266e51b1e00d7e0977107d7e92e
2022-03-28 16:39:36 +02:00
Bartosz Dziewoński aec82d9a88 Update VE core submodule to master (fc0e3ed33)
New changes:
88a3a714a Localisation updates from https://translatewiki.net.
9b7c4d0fe Localisation updates from https://translatewiki.net.
eaadf3e61 Call parent #setup method in Merge/SumCellsContextItem
ddcb5821d Pass overlay padding when building desktop context (inspector)

Bug: T304202
Bug: T304233
Change-Id: I23d90f62f854cf5dead32104f5ea9e16f9eaabad
2022-03-22 01:34:12 +01:00
Bartosz Dziewoński b22ba16b14 Update VE core submodule to master (6dd669298)
New changes:
3206d66bb Use $.parseHTML() in tests where appropriate
c99d63f66 Localisation updates from https://translatewiki.net.
cd5798146 Update OOUI to v0.43.2
98c7288fd Fix margin wrapper paragraphs in placeholders too
639d81bd1 FocusableNode: Documentation typo fix
23daa81a0 Localisation updates from https://translatewiki.net.
e84c40a5d ve.ui.Sequence: Put optional arguments in a config object
c79dcf48f Add backtick sequence for <code> formatting

Bug: T299817
Change-Id: I56b77aae31b80e2fdef113d3431740340419d2f0
2022-03-14 22:42:35 +01:00
Ed Sanders 24973a2928 Update VE core submodule to master (15c1efdc2)
New changes:
cf7b2a9c4 Restore margin between wrapper paragraphs and document edge
629109b6b ve.ce.Surface tests: Sometimes assert originalDomElements in paste tests
3a5bd323c Use wrapper paragraphs in fixUpInsertion

Local changes:
* Update tests to ignore some internal properties

Bug: T299815
Bug: T299817
Change-Id: Ie52348f62320eb135c2f950ac78a77d9c665fef2
2022-03-09 01:05:15 +01:00
Bartosz Dziewoński 3a9fb4c31b Update VE core submodule to master (914dc192e)
New changes:
a1045091e ve.dm.BlockImageNode: Fix typo in generating empty caption
ca56286be Use parseFloat to parse numbers in standalone demo
914dc192e Localisation updates from https://translatewiki.net.

Change-Id: I8f78d82b550548aac13406b4be3445c739b871d9
2022-03-08 22:09:29 +01:00
Bartosz Dziewoński 0d9d4029d8 Update VE core submodule to master (4eacee1c5)
New changes:
ee207db24 Localisation updates from https://translatewiki.net.
03e6e3022 build: Update QUnit from 2.16.0 to 2.18.0
53881dfac Localisation updates from https://translatewiki.net.
616754593 Fix some missed instances of var declarations that can be moved inline
4eacee1c5 Simplify done() calls in tests

Change-Id: If9ed1ad849e41ada2dda3b108ea93a6cb8c09357
2022-03-04 00:11:36 +01:00
James D. Forrester 10526ca45a Update VE core submodule to master (a75d285a8)
New changes:
a75d285a8 ve.ce.Surface: Fix error on load when document has no content offsets

Bug: T302362
Change-Id: I55cb19b390461264316fc75a09ae90e26bc5f34d
2022-02-23 12:25:00 -05:00
Ed Sanders b0dcf1fc69 Update VE core submodule to master (492815b58)
New changes:
a50d13e3b Localisation updates from https://translatewiki.net.
a0c3637de Localisation updates from https://translatewiki.net.
17daebc83 ve.ce.Surface test: Add test for special image paste handling codepath
f4b688e1b Always use clipboard paste data if "important elements" have been dropped
f0e5c16c9 afterPaste: Add 'figure' to importantElement list
abd5894ef Show copy button when selecting focusable nodes on mobile

Local changes:
* Load new clipboard messages

Bug: T101113
Change-Id: I05f9dc850d3cac740916d26a0c2b0d390e47fbb1
2022-02-23 12:45:42 +01:00
Bartosz Dziewoński 89842933af Update VE core submodule to master (71a2d651c)
New changes:
1d8fbde1f Prefer the start of a CBN when selecting first visible offset

Bug: T299112
Change-Id: I49f1032905772b27ed8065f7c5b0068a32a15bf1
2022-02-14 22:07:54 +01:00
Bartosz Dziewoński 7f79f2a0b4 Update VE core submodule to master (08aae2798)
New changes:
9ee9c8609 Localisation updates from https://translatewiki.net.
43e4c5e0e build: Updating npm dependencies
0b528cd63 Update OOUI to v0.43.1
c8a50eee9 build: Update eslint-config-wikimedia & stylelint-config-wikimedia
328b3d5b6 Localisation updates from https://translatewiki.net.
30591c0d0 Default target: Attach actions toolbar before init

Change-Id: Ifafd7a3453eee554138acca50ec1c49323d4f02d
2022-02-14 16:47:35 +01:00
Bartosz Dziewoński e212ddcac2 Update VE core submodule to master (37ee8ffcd)
New changes:
ec713a57a Localisation updates from https://translatewiki.net.
c2f60cd96 DiffElement: Don't show meaningless spaces inside added block nodes
78ca42ce2 Localisation updates from https://translatewiki.net.
6aa9549d2 Target: Don't create toolbar in scroll handler
de8319584 Fix regex that replaces nothing with nothing
4a8584a7c Add more complex internal list diff test

Bug: T300444
Change-Id: Ic3299038c589f4b980488ea6ec81b6ef4b3d49cc
2022-01-31 18:16:41 +01:00
Bartosz Dziewoński 7619917149 Update VE core submodule to master (bbeac08b7)
New changes:
60e524fc0 Fix internal list diff when lists are fully inserted/removed
bbeac08b7 DiffElement: Use horizontal scroll when necessary on content area

Bug: T161489
Bug: T298569
Change-Id: I79d1ec33e6d9f14dc46d7eb0aa6fccd28df50b86
2022-01-26 20:18:44 +01:00
Bartosz Dziewoński 51ee6c4331 Update VE core submodule to master (c3f56a0b9)
New changes:
b8b12d1c2 Test: Ignore XML parse warnings in other comment escaping test
4147e7401 Consistently use target/surface $scrollContainer to set/get scrollTop
c06f87e83 Consistently use $scrollListener when listening to scroll events

Bug: T299841
Change-Id: I93e39aaa7743c2ff3cf51c7690cd25511eb7640b
2022-01-25 23:27:34 +01:00
Bartosz Dziewoński ab4797400d Update VE core submodule to master (7c6e1b91f)
New changes:
1da4a683b DiffElement/VisualDiff: Use node's root to determine the document model
950d56d09 DiffElement: Add core test for internal list diff
658a420a1 DiffElement: Simplify internal list rendering using list item value attribute
7c6e1b91f Fix list diffs

Local changes:
* Add new test file

Bug: T198529
Change-Id: If4ca99fa4532b33f164e298b53cfa1e202035015
2022-01-25 21:39:24 +01:00
Bartosz Dziewoński c98e6e5e4a Update VE core submodule to master (bbdba097b)
New changes:
94ea92dd0 Follow-up I227a0d70: Remove partially complete mixin of ContentEditableNode from list items
bbdba097b Re-apply "Follow-up I0802440d9: Allow alien <tr>/<td>'s to be focused"

Bug: T298609
Bug: T299730
Change-Id: I532359f03a549316bd20d49db30837dbb4e88081
2022-01-25 20:58:18 +01:00
Bartosz Dziewoński 350be40427 Update VE core submodule to master (6282889f4)
New changes:
89156dc71 Revert "Follow-up I0802440d9: Allow alien <tr>/<td>'s to be focused"

Bug: T298609
Bug: T299730
Change-Id: Id894cf7347f932161edd3b17e050c9379f7502c3
2022-01-24 22:02:44 +01:00
Bartosz Dziewoński 8c12259900 Update VE core submodule to f5c7f0f204
New changes:
e5963f084 DiffElement: Remove doc-child-change wrappers
90a359f79 Follow-up Ia593dad8: Use modifyData when sanitizing
f5c7f0f20 Localisation updates from https://translatewiki.net.

Local changes:
* Update tests for the removal of doc-child-change wrappers

Change-Id: Ib29f23625de9151d50e0f3b7796b15ca9ed89133
2022-01-24 20:13:21 +00:00