Commit graph

934 commits

Author SHA1 Message Date
Bartosz Dziewoński 01afd73aea Update VE core submodule to master (44556e8fd)
New changes:
ee96c6334 Localisation updates from https://translatewiki.net.
2a9ff2c54 Localisation updates from https://translatewiki.net.
5facf5ef6 Localisation updates from https://translatewiki.net.
afe09ea26 Make annotationsAtModelSelection fail in fewer cases
f6278bba0 Fix clipping on label preview in link context
42717187a ve.ui.AnnotationInspector: Deactivate surface after closing on mobile
44556e8fd Move mobile context to bottom of page

Bug: T199617
Bug: T204733
Bug: T220633
Bug: T225541
Change-Id: Icd6de1d7e380a14444ddba2044553c8c13682706
2019-06-14 22:56:24 +02:00
James D. Forrester 14e747b398 Update VE core submodule to master (e531c251e)
New changes:
7f101ce9a Add new messages for add/edit link
e531c251e Update OOUI to v0.32.1

Change-Id: Ib9fb48c531c8bc787bd2efc3e4f59af8977b1977
2019-06-05 15:38:12 -07:00
James D. Forrester 65edcaf631 Update VE core submodule to master (2da36280a)
New changes:
ca588de0d CommentAnnotation: Make deleteable
02eb9e835 Synchronizer: Fix defaultName config
4101ca058 Add removeEmptyLastChildOnEnter to CheckListNode
080317f9f CheckListNode: Flip margins based on content direction
df1dbd0c4 Localisation updates from https://translatewiki.net.
a55f5d7d9 Make undo concurrency-aware

Bug: T185706
Change-Id: Id2b993eb6efcb0dde0c7d1ea1fc6a6cf91bc0e43
2019-06-04 15:57:46 -07:00
Ed Sanders dbd4dfd727 Update VE core submodule to master (53e69bf14)
New changes:
5810e0cd4 Update UnicodeJS to v12.0.0
145991ded Fix file list on demo page
53e69bf14 SurfaceSynchronizer: Force websocket transport

Bug: T201531
Bug: T201532
Bug: T201533
Bug: T201534
Change-Id: I96beb31df55b41bf1d259f5e6964245008face22
2019-05-30 23:02:27 +01:00
Ed Sanders b1ac5b74d3 Update VE core submodule to master (06f1ebb8e)
New changes:
06f1ebb8e Local/SessionStorage refactor

Local changes:
* Update for core storage refactor

Depends-On: I3cc1d5adfbce794e8345b7f1090c10fb0d42d150
Change-Id: If855ee33b0993788cc159d8c3acf03070e6a9566
2019-05-29 14:49:53 -07:00
James D. Forrester 0e7e88c43e Update VE core submodule to master (d9ece414a)
New changes:
c0799b060 Source mode performance optimizations
d9ece414a ve.dm.MetaItem: Add removable flag

Bug: T96528
Change-Id: Ifc0d3322c0ab0c0384fd179281cb1ed7f3ff6b31
2019-05-29 12:31:24 -07:00
James D. Forrester 0c98fd06c8 Update VE core submodule to master (67f50262e)
New changes:
27a6c1b28 Fix find and replace selection handling
67f50262e Update OOUI to v0.32.0

Bug: T222247
Change-Id: I648a339f4d84967c64e66d76f6828af8031b8b63
2019-05-28 17:58:24 -07:00
James D. Forrester e2d2263540 Update VE core submodule to master (e3715c257)
New changes:
f33944071 Call handleInsertion on beforeinput
fea597f9f Localisation updates from https://translatewiki.net.
33750ce4a Revert "ve.ce.FocusableNode: Prevent native selection from changing on click"

Bug: T217223
Bug: T224042
Change-Id: I3b3b65f002e0d0852eb065338552243e4f1979ae
2019-05-28 10:45:53 -07:00
James D. Forrester 4a7231f3ee Update VE core submodule to master (3c069c39f)
New changes:
c843549bc ve.ui.Surface: Remove unneeded code handling mobile dialogs
9d530f337 Don't show mobile table context on desktop

Bug: T211240
Change-Id: I8975279f4ee29eb290c6b6238a8106077857635f
2019-05-24 09:57:41 -07:00
James D. Forrester 6c368a0303 Update VE core submodule to master (68b031087)
New changes:
68b031087 ve.init.Target: Fix errant call to setSurfacePadding, not setPadding

Bug: T224255
Change-Id: I19db16ec5849968f48658e4149bf7410b58ece5e
2019-05-23 16:45:28 -07:00
James D. Forrester fd7e4e3abd Update VE core submodule to master (c3d8228b8)
New changes:
120c96c94 Replace surface's 'toolbarHeight' with generic 'padding'
c3d8228b8 Localisation updates from https://translatewiki.net.

Bug: T224126
Change-Id: If374b215f942220f157bfedbe481ed79d69e9d85
2019-05-23 10:54:35 -07:00
James D. Forrester 700087e5fe Update VE core submodule to master (d5a7325ef)
New changes:
ae1c9f741 AlignableContextItem: Hide labels on mobile for space
c32f27d63 Localisation updates from https://translatewiki.net.
71f10a10b Remove fullCol/fullRow selection style
d5a7325ef Unify selection scroll code

Bug: T220227
Change-Id: I294b1b63f34530b2b649e15d9f63f6c0e1ae2e96
2019-05-22 09:37:28 -07:00
Ed Sanders a046bacead Update VE core submodule to master (334260638)
New changes:
e01936d72 Tweak table selection rects in Chrome/Firefox
334260638 Localisation updates from https://translatewiki.net.

Change-Id: I70f78c7e98c42be2e171a47cb6a572005c2a8ac5
2019-05-17 14:40:20 +02:00
James D. Forrester 5de26792df Update VE core submodule to master (ad71116fd)
New changes:
a44fb60ae Localisation updates from https://translatewiki.net.
71298d9c7 build: Unbreak language lists, adding new 'bjn' language
ad71116fd build: Upgrade grunt-cssjanus from 0.4.0 to 0.5.0

Change-Id: I63314fd4581a626b6efd44b6c26bd90e6d83a4fb
2019-05-13 16:57:32 +01:00
James D. Forrester 622e77d620 Update VE core submodule to master (6fc2d029c)
New changes:
8df948f5d TableLineContext: add context for the entire table
aae86a822 TableNode: Change mobile behavior so initial tap enters the cell
195d8cb3a Check resizeable node is focused before rendering handles

Bug: T211240
Change-Id: Ib2430c521abb4e59aaa2c5e4f9b26a16437db02e
2019-05-13 13:30:15 +01:00
James D. Forrester 8d2d11cb11 Update VE core submodule to master (7e10b410b)
New changes:
899ceb674 Localisation updates from https://translatewiki.net.
f9a505fc8 build: Upgrade grunt from 1.0.3 to 1.0.4 and re-up for npm audit
b5003d614 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
047b4b658 TableNode performance: Only change selection when endCell changes
403ac358a Update OOUI to v0.31.6
214553db9 ve.ce.FocusableNode: Prevent native selection from changing on click
7e10b410b Localisation updates from https://translatewiki.net.

Bug: T108013
Bug: T220036
Change-Id: I0ae9d03486c3d45cee66cbf004ef98a406f06a50
2019-05-09 10:39:45 -07:00
James D. Forrester e006803fdf Update VE core submodule to master (36e90285e)
New changes:
ec868af45 Don't allow merging cells that aren't editable
7d611c668 Demo: Set nullSelectionOnBlur when changing page
f9efedaba Remove focus code from LinearContext
690d22d08 WindowAction: Don't re-activate surface until teardown complete
7b2e88166 Update activeAnnotations when applying new annotation

Bug: T221716
Bug: T222039
Change-Id: Icb65c880d8407733192f4cb953899399ecbe87f3
2019-04-29 10:41:54 -07:00
James D. Forrester e437d25be8 Update VE core submodule to master (e1d2a6d8c)
New changes:
fff5c8c1c ve.dm.VisualDiff: Allow sub-trees to be diffed

Bug: T221903
Change-Id: Ie9c9674cb7e1532319a5276a107bcf2c6bd34b65
2019-04-28 08:29:49 -07:00
James D. Forrester f75ee24d05 Update VE core submodule to master (b68520b6d)
New changes:
b68520b6d Check selection is a TableSelection before looking for cells

Bug: T221901
Change-Id: If25bda1c0b970d92b89014c862457a7a417b58cd
2019-04-26 23:26:12 -05:00
James D. Forrester b89221be3b Update VE core submodule to master (b049d6049)
New changes:
c544dfc40 ve.ui.DebugBar: Fix Filibuster button
2009d0427 Remove list-specific logic from LinearEnterKeyDownHandler
1ee05602a Don't reactivate after opening tools/windows on mobile
3538c3870 (De)activate table selection on context menu toggle
39be19b54 Re-use existing table selection when re-activating
59cf5cdbd Add more granular code coverage targets
d0ff41a71 Update OOUI to v0.31.5
b049d6049 ve.ce.TableArrowKeyDownHandler: Movement from merged cells must collapse selection

Bug: T220633
Bug: T221286
Change-Id: I443e665e8831defd098eb410264c404942f3e2ec
2019-04-24 14:34:39 -05:00
James D. Forrester 3320d8ec58 Update VE core submodule to master (ac38ec869)
New changes:
64bad457a Localisation updates from https://translatewiki.net.
a4586f717 toggleMobileGlobalOverlay: check whether the target exists before using it
4d2f18871 Update RangeFix 0.2.6 -> 0.2.7
3433770e0 Restore re-activation hack

Bug: T221291
Bug: T221600
Bug: T221669
Change-Id: I783924aa8ba03a9f5969a9c3fc0c1c381a3f5741
2019-04-23 17:32:22 -05:00
Ed Sanders a7149cc3ee Update VE core submodule to master (7cd15cfe9)
New changes:
9b162a5da Localisation updates from https://translatewiki.net.
10dbdabf4 Remove valid-jsdoc exceptions for @chainable
a424f804d Make blockquote a non-content branch node

Local changes:
* Update stuff for making blockquote a non-content branch node

Bug: T76426
Change-Id: I95ae25f20d3d102da69bf5ffdff55335f6c07635
2019-04-22 12:39:14 +01:00
James D. Forrester 24cb70bae0 Update VE core submodule to master (6afc66096)
New changes:
c2ae612e0 Update OOUI to v0.31.4
4e32f62c3 Re-use previousSelection when re-activating
e1f01b47c Auto-save: Allow an optional document prefix
63192a7f4 ve.ui.ToolbarDialog: Remove unused styles

Bug: T220633
Change-Id: I99a905db6aa5ba91655901a6ea2c821b8603aadf
2019-04-17 14:25:50 -07:00
James D. Forrester 965b1291e5 Update VE core submodule to master (3796a1f91)
New changes:
b1857b4d2 Distinguish between $scrollContainer and $scrollListener
9639db634 Surface read-only tweaks
0e2dc8646 DimensionsWidget: Make setters chainable
3d8f3538b DimensionsWidget: Add read-only support
f1a8a2693 LinkAnnotationWidget: Make setters chainable
3796a1f91 LanguageInputWidget: Fix disabled support, add read-only support

Change-Id: Iaf85be0a29283f26f4cdf9a06b565c419568170f
2019-04-16 08:26:58 -07:00
James D. Forrester 51b68049d1 Update VE core submodule to master (6590e0ac5)
New changes:
6590e0ac5 Create generic command to move focus to context

Change-Id: Iba309ca5f7299f4157a3a43836064e17b5f4d62b
2019-04-15 14:13:42 -07:00
James D. Forrester f7f32c7090 Update VE core submodule to master (33847a3ec)
New changes:
ef34c19ea Make context's contents selectable
bbb39d52e Remove de-emphasis color from comment context
ce43589fe qqq.json: Add clarification to visualeditor-key- messages
5b233d7db Create more methods for finding/selecting current annotations
8fd5ec673 Fix selection behavior of table right-click
f0e7d69cd Localisation updates from https://translatewiki.net.
dd965ecf2 ve.ce.TableNode: Fix right-click to copy code

Bug: T154622
Bug: T154794
Bug: T220090
Change-Id: I483c12881f670fefc19585a2370edada1f9e9083
2019-04-15 10:10:27 -07:00
James D. Forrester cdb4b627e6 Update VE core submodule to master (a3a2c48f7)
New changes:
c058aa83f ve.ce.Selection: Introduce getSelectionFocusRect
6bc19aa1c Localisation updates from https://translatewiki.net.
56636ee43 Firefox Mobile: Prevent scrolling after mousedown

Bug: T196839
Change-Id: If45ddd8ec2e651d636d1665a12d7b38b5c3afd6e
2019-04-12 16:21:29 -07:00
Ed Sanders 72df5f690f Update VE core submodule to master (f039957f3)
New changes:
f039957f3 [BREAKING CHANGE] Use keyed objects for importRules blacklists

Local changes: Use extendObject to set importRules

This allows us to inherit the ruleset from the parent
so we don't have to worry about keeping it up to date.
(For example alienTableCell from upstream was missing
in MW).

Media/Gallery dialogs: Add missing mwTable types.

Change-Id: I366a091ff4def66cc25200b3d1b2c23ba6b716f7
Depends-On: I8ff7e8242c8db235a0f9e11e2e52f90d62d368a0
2019-04-09 16:58:26 -07:00
James D. Forrester 8ce3893acc Update VE core submodule to master (6cc4cd1f0)
New changes:
3a4e42a9a Don't make selection grey on mobile preparePasteTargetForCopy
c312ead04 Fix appearance of deactivated alien node
9ac03103d ce.Surface: Rename deactivatedForCopy to showAsActive
47dfe7cea AuthorListPopup: Remove deactivate hacks

Bug: T219829
Change-Id: I2ef99e643043a81e3adc4dcce1809400408d8dbc
2019-04-09 08:50:01 -07:00
James D. Forrester 6228467ddd Update VE core submodule to master (3cfdc4311)
New changes:
7dd81816e Filibuster: display backward selections differently from forward ones
bfb5d0e12 Move filibuster initialization to ve.debug
abcf65dc6 Localisation updates from https://translatewiki.net.
f09413aaf LanguageInputWidget: Set value on 'closing' not 'closed'
03990f5fd LinearContextItem: Fix typo in isDeletable

Bug: T220438
Change-Id: I041989b1f4bcc651350841b3d15e2b4ee0db51f5
2019-04-08 11:55:43 -07:00
James D. Forrester 7f18b4b9d0 Update VE core submodule to master (8653ce4bd)
New changes:
c4b17a604 Remove deprecated ve-test-toolbar- classes
f31d3be06 Update OOUI to v0.31.3

Bug: T220091
Change-Id: Ib479fe6a7d9f43f7177c5125f9b1c324f0451964
2019-04-04 15:26:12 -07:00
Bartosz Dziewoński 9143155722 Update VE core submodule to master (2dc41ef9b)
New changes:
eeaebe220 Make deactivated selections grey
58b96ec5d Make null-selection-on-blur optional

Bug: T219813
Bug: T219829
Change-Id: I0660c60860fd62e838a63aa841253ef19fb2a78a
2019-04-04 20:46:10 +02:00
Bartosz Dziewoński 15745d9dd1 Update VE core submodule to master (5c8fd26b8)
New changes:
0a3a4578a EventLogger demo improvements
e8468dd10 Localisation updates from https://translatewiki.net.
7a98936b2 Remove border radius from buttons in MobileContext
69078dc22 Remove blur/focus event listeners from DesktopContext.
9750d8931 Redraw deactivated linear selections on 'position'

Bug: T219916
Change-Id: I092c01a07799d895ff0b75c05853da0b744f6356
2019-04-03 19:59:31 +02:00
Ed Sanders 4b931a234b Update VE core submodule to master (549f49bb5)
New changes:
549f49bb5 ve.init.Target: Allow overriding surface (de)activation on mobile

Bug: T218650
Change-Id: I5a411f4fced0af98ee716e8e60049150f3dd5e13
2019-03-29 17:44:11 +00:00
James D. Forrester f15b07d8e3 Update VE core submodule to master (132022a44)
New changes:
fcd032a8a Update OOUI to v0.31.2
561e52b06 ve.dm.Node: Document attributeChange event
1f1ca22c5 Fix appearance of collapsed deactivated selections

Change-Id: I8a618ab363664dfa59bde99de1b50cf6bc6a236f
2019-03-28 15:11:15 -07:00
James D. Forrester 378db0165d Update VE core submodule to master (d79dbfc9c)
New changes:
1d4ae6e9b Update OOUI to v0.31.1

Change-Id: I705d6274c5baed2e6b5a75739a8c116980efce5b
2019-03-22 12:06:56 -07:00
Bartosz Dziewoński 1664bcd6aa Update VE core submodule to master (af9089ac5)
New changes:
5413e0a6f Localisation updates from https://translatewiki.net.
f92afddaa ve.ce.Surface: Stop editor scrolling to selection constantly on iOS

Bug: T218635
Change-Id: I2a240bfbf1f9a3c7c7726e3b6ee2776eb134d1f8
2019-03-21 19:35:02 +01:00
Ed Sanders f3b7a6d4c8 Update VE core submodule to master (a61616907)
New changes:
360cc0a48 ve.ui.FragmentInspector: Add test case for collapsed selection inside a word that is partially linked
8369d69ef Update OOUI to v0.31.0
293215d32 Always give inline slugs an src
7f78e9502 ContentEditableNode: Disable spellcheck when read-only
8bb1eb598 Scroll 60px past toolbar on iOS too to avoid context menu clash
5221db7a0 Hide the caret (text cursor) when read-only
d66826a0d Set Chrome inline slugs to 0px width instead of adding src

Bug: T202723
Bug: T217510
Bug: T217740
Bug: T218331
Change-Id: I2e961f2b753e68793518eb4bcfbb7b3e8b5c8347
2019-03-18 20:53:46 +00:00
Ed Sanders 21ade64903 Update VE core submodule to master (8f10e06af)
New changes:
7c3584a4f Add test coverage for FragmentInspectors
78104cf8f Refactor AnnotationInspector for readability
d1b8ed35a Localisation updates from https://translatewiki.net.
682d83545 Follow-up Iefaaa2a7e70: Fix replace mode to clear existing annotations
b9d750dd8 Add more inspector tests
c099abbfc Make CommentAnnotations multiline

Bug: T217957
Change-Id: I381794c1af755cc7e4aea520aca20c6cbfc75dd2
2019-03-11 17:17:44 +00:00
James D. Forrester b5d433df21 Update VE core submodule to master (da38da984)
New changes:
e2a8e4f0d Fix AnnotationInspector read-only support
4f27ec68c Localisation updates from https://translatewiki.net.
cdbe0321b Update OOUI to v0.30.4
da38da984 Follow-up I74d1dbc6: Use isNew instead of isEditing

Bug: T217454
Change-Id: I4eee93150591b934c342017fbd58688d5e4cae16
2019-03-08 16:00:10 +00:00
Ed Sanders e18bdf3f49 Update VE core submodule to master (226ff19e5)
New changes:
5bb361510 Use cursor:pointer for ctrl+click on links
9ef54ef3e Suppress branch slug hover animation when dragging
67f182f0b Remove -moz-user-select:none from hack and buttonElement
011787624 Don't draw selection highlight inside block slug after selecting across it
930b9cd63 Build source maps for ve dist files
7faede30e Upgrade DOMPurify 1.0.2 -> 1.0.10
088cc494d rebaser: Log user events at 'trace' level
a329241ac Fix missing rename of displayName -> name
0cdb328b7 Remove double connection hack
226ff19e5 Fix check in paintAuthor

Bug: T214976
Bug: T216879
Bug: T217047
Change-Id: I2b3cca331892d119e2e5f0cda4a35dd91111d9ac
2019-02-28 20:54:47 +00:00
Bartosz Dziewoński 73b2defc1e Update VE core submodule to master (4669eff2b)
New changes:
0d28d49e7 ve.transformStyleAttributes: Update browser bug workaround comments
f51b718d0 Localisation updates from https://translatewiki.net.
b0d33a88a Use 'then' for opening/opened promises
40e98a759 Abort opening window for insertion when in readonly mode
744dc8cfa FragmentWindow: Add missing mixins, rename logic in WindowAction
ac5c18052 ve.ui.DiffElement: Don't always target links to new window

Bug: T210142
Change-Id: If07a40fff92fc739b7c6f954c3b89ad3fd7bdfd5
2019-02-26 16:57:17 +01:00
Bartosz Dziewoński d13313097a Update VE core submodule to master (541222565)
New changes:
541222565 Replace surface disable with read-only mode

Bug: T210142
Change-Id: I4ec8805c296accfca8774c95656177f40acfc253
2019-02-22 19:20:03 +01:00
Ed Sanders e21d4fab3f Update VE core submodule to master (2951e9378)
New changes:
202adf904 [BREAKING CHANGE] Unify FragmentInspector/Dialog behaviour

Local changes:
* Update dialogs to use common actions & FragmentWindow

Change-Id: Ib744b8996db48d1ee58bc873120400566c490e88
2019-02-22 01:13:36 +01:00
Bartosz Dziewoński 3ce1db9c6d Update VE core submodule to master (2465e0e60)
New changes:
8b1c72c0a eslint: Enable caching
51126638d Track feature-use activity for formatting
161668e4a build: Update eslint-config-wikimedia to 0.11.0
6bbb3ae7b Update OOUI to v0.30.3

Bug: T202148
Change-Id: I38b62006d2d454a19c5e8fea8125192e7b68eebd
2019-02-21 22:35:31 +01:00
Bartosz Dziewoński 0a05efe115 Update VE core submodule to master (6038e6946)
New changes:
39b8cf936 Localisation updates from https://translatewiki.net.
38504863c Track feature-use activity for tables
fd614058e Allow document state metadata to be stored without clearing HTML
6038e6946 Localisation updates from https://translatewiki.net.

Bug: T202148
Change-Id: Idd2faf823a8f39507e60efb1bee3e653f9eca70b
2019-02-19 01:41:46 +01:00
James D. Forrester beb1cbfc01 Update VE core submodule to master (1d9e3a217)
New changes:
5f0d6fd0b Fix updatePlaceholder to use attachedRoot
24365b65e ve.ce.Surface: handles clipboard images with HTML
1d9e3a217 ve.ce.Surface: Add more handleDataTransfer tests

Bug: T208631
Change-Id: I4464011284b8b36a1469a0bd79cdf8e79d586997
2019-02-13 13:53:36 -08:00
James D. Forrester 5ff1ea4ab0 Update VE core submodule to master (3df16c6ce)
New changes:
3df16c6ce Add back deprecated alias 'root' of 'attachedRoot'

Change-Id: I6074248ddde90ad4feebbbb97c9449bb57be37b0
2019-02-11 14:04:21 -08:00
James D. Forrester ade7830f42 Update VE core submodule to master (121f78425)
New changes:
121f78425 Convert if-block to while-block for repeated annotations

Bug: T215741
Change-Id: Iae7ab58f0be8cb0e9c1d209c302bf7325750cf04
2019-02-11 08:29:03 -08:00
James D. Forrester f24f3f0bb4 Update VE core submodule to master (c4d559b29)
New changes:
3ca89325c Support only surfacing part of the document
cbd658090 Return teardownPromise from Target#destroy
1e50283cc Remove teardown hacks
432a07291 Remove surface model disable/enable calls from inspectors
ee056df77 Remove deprecated surface.disable/enable aliases
8c93458d5 Abstract out #isEditable from FragmentInspector#getMode
c4d559b29 Remove duplication of action in AnnotationInspector

Bug: T76541
Change-Id: Iea29e565d7da46d1bc8763ab0b8e549566d19b50
2019-02-09 14:18:47 -08:00