Commit graph

892 commits

Author SHA1 Message Date
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
James D. Forrester 3d29156cfe Update VE core submodule to master (a5437289b)
New changes:
6df27402a ve.ce.Surface: Handle all font weights above 700
bfebd5a28 Fix function name
a5437289b Localisation updates from https://translatewiki.net.

Change-Id: I1980a836de0d393f55adbe47b91337fb7ca3cb5f
2019-02-07 16:22:41 -08:00
James D. Forrester 1db665e0c3 Update VE core submodule to master (5838dce23)
New changes:
5838dce23 ve.ce.Surface: Handles font weight bold

Bug: T93081
Change-Id: Ib25d68fe06a3a58d60582cbd91c8be34fe6e94fa
2019-02-05 10:13:53 -08:00
James D. Forrester ce250a23f2 Update VE core submodule to master (67e60b00e)
New changes:
d615196b2 build: Update eslint-config-wikimedia to 0.10.1
67e60b00e Localisation updates from https://translatewiki.net.

Change-Id: I521eaec173ff16e33396f4fdd9947552458cda7a
2019-02-04 12:04:40 -08:00
James D. Forrester 1510874cc6 Update VE core submodule to master (3c1c8429d)
New changes:
8bfeae442 Fix "factory pattern" typo
79f0415b4 Localisation updates from https://translatewiki.net.
8b2e8d9f5 Rebuild demos with new language
9b1d76641 AnnotationAction: Activity-logging used wrong field name in two cases
4734b7fb5 ve.ui.FindAndReplaceDialog: Debounce calls to save user options

Bug: T214963
Change-Id: I34040967f857e5098097f51789caac68e6258a42
2019-02-01 20:07:15 -08:00
James D. Forrester fc2f85daae Update VE core submodule to master (08697f624)
New changes:
2b47d62c1 Rebaser: Add '[]' sequence for experimental checklist
08697f624 Update OOUI to v0.30.2

Change-Id: Ic525b1b7ac1f98426b18a1be3cc0a5e8fd9ead4f
2019-01-24 18:27:29 -08:00
James D. Forrester 7a3343c606 Update VE core submodule to master (5883578a8)
New changes:
3efa17468 Localisation updates from https://translatewiki.net.
d4f2b4816 Only fix context menu position when Android >= 6
05f021479 build: Move from `npm prepublish` to `npm prepare`
2999b69a7 Localisation updates from https://translatewiki.net.
c3fa7c1a3 ui.AnnotationInspector: tweak selection after adding annotation
de0a6f44f Rebaser: Fix CSS load order in demo

Bug: T202723
Bug: T211236
Change-Id: I172480a0402d05322ef364e4bb0d76e0e97ed066
2019-01-22 10:11:37 -08:00
James D. Forrester 8168795de6 Update VE core submodule to master (15b0364c1)
New changes:
9621b5f96 stylelint: Enforce class name pattern (require ve/oo-ui prefix)
fd59e856e Fix trigger demo paths
2fc9a1888 eslint: Disable reportUnusedDisableDirectives with eslint-plugin-html
40b91a249 Improve minimal demo
bd6d81d4d Strengthen selector pattern to match start of name
15b0364c1 Localisation updates from https://translatewiki.net.

Change-Id: If784046cf48fd333cea16f1c1265de33873cf784
2019-01-14 10:32:35 -08:00
James D. Forrester 120b5896a3 Update VE core submodule to master (1dfe57f40)
New changes:
185a1c2dd MobileContext: Remove unused property
aed4e3191 build: Commit package-lock.json

Change-Id: If16217cc673bb0cf40cda108b3af55b1c330abce
2019-01-12 13:04:51 -08:00
James D. Forrester a6d820eb2b Update VE core submodule to master (4398bb868)
New changes:
865754885 Localisation updates from https://translatewiki.net.
9012ed8b3 build: Update eslint-config-wikimedia to 0.10.0
c08badb61 Restore margins on embedded contexts
c2562ac1b Localisation updates from https://translatewiki.net.
2aea280e8 Update OOUI to v0.30.1
abb751b4e build: Upgrade grunt-banana-checker from 0.6.0 to 0.7.0
1281cfbd5 build: Upgrade qunit from 2.8.0 to 2.9.1 to match MediaWiki
4398bb868 jsduck: Stop running jsduck for tests

Change-Id: I491bc135ef3a5eb58823af5b309de586fd17e406
2019-01-11 08:16:28 -08:00
David Chan 0d362040bd Update VE core module to master (469c6340e)
New changes:
6515e03e1 ve.ce.Surface: Rearrange #findBlockSlug test to check other cases
cbfdc8570 Localisation updates from https://translatewiki.net.
708ba0557 Prevent block slugs from overlapping floated elements
3703fd66d Separate the concept of a document node and a root node in CSS

Bug: T211844
Change-Id: Ia86cf9b23e561d3c32601d41c1bc5a9824e9953c
2019-01-06 07:47:17 +08:00
James D. Forrester 47df65b60f Update VE core submodule to master (018fdcb67)
New changes:
f171478b7 Update OOUI to v0.30.0
a4af7b713 ve.ui.MergeCellsContextItem: Set deletable=false
c9b2ed7cc Localisation updates from https://translatewiki.net.
7a9d2d5d1 ve.ce.Surface: Consider that slugs can be in nested nodes
899736c39 doc: Bump copyright year for 2019
018fdcb67 Allow slugs to be suppressed based on context

Bug: T107745
Bug: T209479
Change-Id: I264d887aa5891479eaf19aa649cca1d7e2f8c158
2019-01-03 11:10:24 +00:00
James D. Forrester 518c268824 Update VE core submodule to master (44e097da6)
New changes:
54c5df143 Localisation updates from https://translatewiki.net.
e43ea0a0a eslint: Turn on reportUnusedDisableDirectives
5724f8273 Move 'default' document padding to demo.css

Change-Id: I685fef2f031b308e690aafd5e550bddf28c7bc22
2018-12-17 13:34:11 +00:00
James D. Forrester 1884e2ac26 Update VE core submodule to master (083e75219)
New changes:
c3eda7d93 Add missing script to index.ejs
536d9f8f1 rebaser: Update devDependencies
08c06533a Update jquery.uls data from upstream
937cb2ad9 Replace $( 'body' ) with $( document.body )
1064ab930 Avoid margin transitions on surface
2625f6f13 Fix side-positioned toolbar dialog in RTL
562fad2fc Localisation updates from https://translatewiki.net.
1146760aa Follow-up 562fad2f: Add new language 'mai' to auto-built files
083e75219 Copy style by column when creating new table row

Bug: T211834
Change-Id: I08c15b2f3f364adcfb1c2617263ae8164131e6aa
2018-12-13 08:38:01 -08:00
James D. Forrester 12e45c1416 Update VE core submodule to master (f2fc6d05d)
New changes:
a6d7b4da9 Localisation updates from https://translatewiki.net.
2a820d0c4 Fix paste issue for nested lists from macOS Notes app
1b9e09687 build: Update devDependencies

Bug: T211516
Change-Id: Ia836f80d65d3ea60bce4019613e416ce7e2097dc
2018-12-10 08:42:47 -08:00
James D. Forrester d1bd119d2a Update VE core submodule to master (860f28129)
New changes:
860f28129 Update OOUI to v0.29.6

Change-Id: I0e7147627efdeb4b23e050758c42cbdc5647467b
2018-12-06 14:12:08 -08:00
James D. Forrester 6855c75089 Update VE core submodule to master (0d3e1acfe)
New changes:
6f390c623 Localisation updates from https://translatewiki.net.
e82ceff49 ve.ce.TableNode: Fix infinite loop when extending linear selection to table
0d3e1acfe Enable jQuery/no-extend rule

Bug: T210798
Change-Id: I8c658825a2b30e3d738c30addddedb2b67f2fef0
2018-12-04 15:52:02 -08:00
James D. Forrester 84ce7f1c4f Update VE core submodule to master (52b89a9db)
New changes:
ac8b90baa Use ve.dm.SurfaceFragment#hasMatchingAncestor where possible
3008ac425 ve.ui.FormatTool: Remove unused property
bae540ab3 eslint: Drop 'dot-notation' rule
0df7b6921 build: Upgrade stylelint-config-wikimedia to 0.5.0 and make pass
b1e836eac Localisation updates from https://translatewiki.net.
48b1be92d ve.dm.Change: Fix guessing selection for internal-list-only transactions
5722bab84 Enable jquery/no-(show/hide/toggle) rules
ed14182e0 Guard against Target#teardown being called twice

Bug: T208914
Bug: T210552
Change-Id: I0ba709bec3399e3d595ea830fe44e6ede1c6c2e6
2018-11-30 15:35:56 -08:00
Bartosz Dziewoński eb064877f8 Update VE core submodule to master (6a2233f68)
New changes:
73a231157 Only handle document selectionchange events when focussed
083272487 Localisation updates from https://translatewiki.net.
b5f36f1ea Localisation updates from https://translatewiki.net.
6a2233f68 Workaround native selection bug for number inputs in Firefox

Bug: T209646
Change-Id: I78fc21e88ead9ff6e181e1a88f3f0ddbdcd8e4d8
2018-11-26 20:28:48 +01:00
Bartosz Dziewoński 89126ad660 Update VE core submodule to master (c9b894467)
New changes:
d5d971214 Replace $.isFunction with typeof
b185014a2 Avoid stray tabs
c9b894467 build: Upgrade eslint to 0.9.0

Change-Id: I8d2b663a1b6b612f3ee90d56af0bc3450a1f3f4c
2018-11-21 21:40:58 +01:00
Bartosz Dziewoński a9684ebc37 Update VE core submodule to master (812b2140a)
New changes:
eac3c90d5 Revert "TargetWidget: 'change' on document transact, not surface history"
812b2140a Localisation updates from https://translatewiki.net.

Bug: T209648
Change-Id: I18b89b6c03bc09d40f7f314c36b5540ca9c0a27b
2018-11-19 19:14:42 +01:00
James D. Forrester d2fbebc184 Update VE core submodule to master (b17770c7e)
New changes:
9c4d8f893 Place popups instead toolbar.$bar
0a1dd51e8 Only attach scroll listeners is toolbar is floatable
a8e07e026 Convert remaining $.Deferred() to ve.createDeferred()

Bug: T209192
Change-Id: I08328ca5f6aadad7db069dcd81734e1932e616e7
2018-11-13 15:35:44 -08:00
Bartosz Dziewoński e8cb9ee7f5 Update VE core submodule to master (f391832c5)
New changes:
9be96b536 ve.ui.DesktopContext: Actually hide mobile '.ve-ui-linearContextItem-info'
ee8bceb13 LinearContextItem: Added text wrapping when it is too long
b565dd5c1 Update OOUI to v0.29.5
be24f8d32 TargetWidget: 'change' on document transact, not surface history
ffcd8518a Make table selections immutable (refactor #expand)
55a6f1bc1 Scroll 60px past toolbar on mobile to avoid context menu clash on Android
9bf6d9612 Scroll 30px above bottom of viewport on Android to keep selection handles visible
f391832c5 Localisation updates from https://translatewiki.net.

Bug: T188823
Bug: T202723
Bug: T204718
Change-Id: I7ee8382ef6bd27c0fe2a2b6a43df9c121c5c0a5f
2018-11-13 20:12:39 +01:00
Bartosz Dziewoński 7bcb1ac50c Update VE core submodule to master (f32c0be7c)
New changes:
61992def0 Remove dedicated annotation operation types
c18308313 Move 'enter' and 'f2' keydown handlers to command/trigger code

Bug: T205535
Change-Id: Ibbf578070c820ae63a8b8ab50e6e4520cabfebe6
2018-11-08 13:45:21 +01:00
Bartosz Dziewoński 2639984bb3 Update VE core submodule to master (0d1902e04)
New changes:
2c90701db Guard against ve.dm.Document not existing in argument check
68641c9c5 eslint: Disable jQuery/browser environment expectation in DM code
946d9c9d0 Abstract construction of Deferred objects and $.when
e20c7f8a3 ce.ResizableNode tests: increase coverage
0d1902e04 Localisation updates from https://translatewiki.net.

Bug: T195111
Bug: T208515
Change-Id: I84c08142e7cfe3254e54c0d691bc6dac9bcc30ce
2018-11-08 12:44:48 +01:00
James D. Forrester 374b4cab49 Update VE core submodule to master (a4b936b5e)
New changes:
0c776b138 Reset styles on ce=false elements
a4b936b5e Update OOUI to v0.29.4

Bug: T207426
Change-Id: I77fb98f1416040902bc030368fddb380431c1198
2018-11-06 18:02:11 -08:00
James D. Forrester 8ce083a832 Update VE core submodule to master (866f48853)
New changes:
a190a64ab [BREAKING CHANGE] Do not cache document model data in DM selections
866f48853 Localisation updates from https://translatewiki.net.

Bug: T208228
Change-Id: I2c759ab5e390f3d29070509738191df8995ccf0a
2018-11-05 12:38:32 -08:00
James D. Forrester 7eef48c3ac Update VE core submodule to master (a5db6fb8b)
New changes:
a5db6fb8b ve.ui.LinearContextItem: Prevent action buttons from wrapping

Bug: T208596
Change-Id: I1e9e66aee377dc6c509d4aa944920571d166888b
2018-11-05 11:49:52 -08:00
Bartosz Dziewoński a4666b3bea Update VE core submodule to master (caf188be0)
New changes:
a2dff3032 DesktopContext: Don't rely on selection#getDocument
4c1cc1640 Basic test for WindowAction open/close
0ab1e754c Update OOUI to v0.29.3
a8d96b850 Localisation updates from https://translatewiki.net.
b4fa3d230 ResizableNode: Add test for updateSizeLabel
caf188be0 TableNode: Test basic mouse events

Bug: T208228
Bug: T208382
Bug: T208515
Change-Id: I0db7b5e874ad6b23dad1f29bb1a58e126fea7a48
2018-11-02 08:52:57 +01:00
James D. Forrester c36f3d2214 Revert "Update VE core submodule to master (02f5f0ca4)"
This reverts commit be628a5b7e.

87b20f9b Revert "[BREAKING CHANGE] Do not cache document model data in DM selections"

Change-Id: I47bbf757a4ad227346d3734f6e50d928a2de1409
2018-10-30 15:12:30 -07:00
Bartosz Dziewoński a5757ac81e Update VE core submodule to master (3dfcbdb3f)
New changes:
3dfcbdb3f ve.ui.WindowAction: Fix exception when opening windows

Bug: T208347
Change-Id: Id43643aab39683ab21816dbc3a7455323a7a3532
2018-10-30 21:04:58 +01:00
Ed Sanders be628a5b7e Update VE core submodule to master (02f5f0ca4)
New changes:
ccb4de82c [BREAKING CHANGE] Do not cache document model data in DM selections

Bug: T208228
Change-Id: I564399ad864751d1690077b45a06e098b5509a93
2018-10-30 08:11:02 -07:00
James D. Forrester 169602ea44 Update VE core submodule to master (bef57a528)
New changes:
7bd7f4143 Cache calls to ve.dm.Document#getBranchNodeFromOffset
870b49f1a .eslintrc: Enable and fix "max-statements-per-line": 1
aeb21bd1e Unit tests for TransportServer
158a8eeb3 Refactor ve.ce.*Selection#getDirectionality
10990294a Store and verify unique server ID

Bug: T208228
Change-Id: Ib9f4114ac2dbd966644eb55cbb1f7d1cd74ec0a7
2018-10-30 07:41:29 -07:00
Ed Sanders f8bfe84bc6 Update VE core submodule to master (c8e22de61)
New changes:
3d2ffae4e [BREAKING CHANGE] Have ve.htmlMsg return a node array instead of jQuery collection

Local changes:
* Have ve.init.mw.Platform#getHtmlMessage return a node array

Change-Id: Iabd823c851f94356f1902918278f88068dfe4d25
2018-10-29 23:51:01 +00:00
Bartosz Dziewoński 9e47873a65 Update VE core submodule to master (236effcd7)
New changes:
0e923fe1b Use initClass in test class
900962720 Add ve.deepFreeze for detecting inadvertent data modification during testing
0761cd90c Localisation updates from https://translatewiki.net.
0e44545b7 Update .gitignore
82b6b80bb Use consistent method for finding nearest cursor offset
0b604de30 ve.ce.TableArrowKeyDownHandler.test: Remove eww gross FIXME

Bug: T202359
Change-Id: I73c46edfbf66a0c76bc719010c017ef71670931b
2018-10-30 00:50:37 +01:00
Bartosz Dziewoński ac45e919ab Update VE core submodule to master (d89186159)
New changes:
d89186159 Add F2 keydown handler

Bug: T172042
Change-Id: I3bc2bb33bec2f5f08f26af49ab8b72e436dbe4cf
2018-10-24 20:51:36 +02:00
Ed Sanders c895c60907 Add Promise.prototype.finally polyfill and restore failing tests
Change-Id: Ia6cdb85d33d2b3e0e2e868838defaa39ae60572a
2018-10-23 22:56:34 +01:00
James D. Forrester e4724b3f26 Update VE core submodule to master (6c288b44f)
New changes:
7c9fe89b8 Simplify ve.test.utils.runSurfaceHandleSpecialKeyTest API
0e3c75e66 Add more tests to LinearArrowKeyDownHandler
058362830 LinearArrowKeyDownHandler: Test Selection#extend fallback
8c6617d90 Keydown test refactor
91a909d63 Assert defaultPrevented state in KeyDown tests
003dacf3b LinearDeleteKeyDownHandler: Test shift+delete
1872158c5 LinearDeleteKeyDownHandler: Test delete next to link
b2af2a2c3 LinearEnterKeyDownHandler: Add more tests
4e5efa956 KeyDownTests: Remove unused constructor calls for all static classes
1cafb7328 KeyDown tests: Add tests for missing cases to cover tab/escape/enter
58af8d497 Add tests for ve.ce.AnnotationFactory/NodeFactory
617bc24a4 Delete unused ve.ce.modelChangeFromContentChange
50704fa1c Keydown tests: run asynchronously
af9a01b97 Use native promises instead of jQuery promises
df212669a Localisation updates from https://translatewiki.net.
f6af901dc Fix test in Chrome 70
9cc6dae7e Remove broken checks for DM code coverage
ce3a9199a LinearEnterKeyDownHandler: Add test for edge case
0a9dd3636 Remove false coverage of TableNode/TableSelection code
16679a3c0 Remove setupToolbar from DummyTarget to avoid false code coverage
7ac88df77 Basic tests for getClientRects in ve.ce.Selection and FocusableNode
78f14ac1f ve.ce.Selection: Add getDirection tests
7ec7efff0 KeyDown tests: Remove unnecessary setTimeout
26e022d23 KeyDown tests: Un-nest functions
df1e0af6c KeyDown tests: rename defer -> then
f03a9f90b Allow ES6 in tests
0ee55022b ES6 eslint follow-up
6c288b44f ve.ce.Surface tests: Trim when asserting expected text

Local changes.

Bug: T207077
Bug: T207078
Bug: T207079
Bug: T207080
Bug: T207083
Bug: T207654
Change-Id: I2e1f664d6f657e2ac26a271f401dc790c2a8b193
2018-10-23 11:49:34 -07:00
Ed Sanders 858d34ae31 Update VE core submodule to master (6cedee5ff)
New changes:
5b386d8da Move *KeyDownHandler tests into separate files
48ed2a670 Localisation updates from https://translatewiki.net.
e5a6d2a05 Move server.js to app.js
db38aa076 Separate Logger class
f1099fd48 Use service-runner
9d378d4cc Move util to /tools, make executable

Bug: T207287
Change-Id: I3163ed47c0bdeb72b229f6d4c0000e796e3d84fb
2018-10-19 00:23:11 +01:00
James D. Forrester 63bb1354c8 Update VE core submodule to master (474034ad8)
New changes:
01729d1ec Localisation updates from https://translatewiki.net.
c33dc3b44 Asynchronous document store
70ee7c343 Tracking: various annotation and dialog actions

Bug: T202656
Change-Id: I99add8d3a1a9ecf9eaa70522dd49d3c64909a34c
2018-10-16 18:39:40 -07:00
Bartosz Dziewoński 68e9859af2 Update VE core submodule to master (0dff6d406)
New changes:
23a7d0388 Localisation updates from https://translatewiki.net.
0dff6d406 ve.init.Target: Re-position toolgroup popups after floating/unfloating toolbar

Bug: T205924
Change-Id: If1ffc83abe8b9fd017a76535c9840b4253f66b0b
2018-10-11 19:21:14 +02:00
Bartosz Dziewoński e354092417 Update VE core submodule to master (f9afaa3e4)
New changes:
3931cc33a Update OOUI to v0.29.1
5bcab0073 Move node-specific code into rebaser/
8aa80d88b Remove ES6 support for async/await
2536870f9 Separate files for protocol and transport server
b443b7a4f Update OOUI to v0.29.2
70b3ec210 Minor cleanup of ve.ui.MediaSizeWidget

Bug: T206236
Change-Id: Id3bbcd1a9ccb1563e4feb3572aa8f51932677693
2018-10-09 11:06:23 +01:00
James D. Forrester ad948dc550 Update VE core submodule to master (527d45433)
New changes:
30bac7d29 ve.dm.ModelRegistry: Fix extra spaces in rel="" attributes preventing matching
65636c913 Localisation updates from https://translatewiki.net.
da16d82c2 Make visual diff dialog sidebar narrower on narrow screens
80211b920 Update target widget styles and add focus styles

Bug: T203476
Change-Id: Ice36387ea64480ffbf4fed1ae0017b6f25d11182
2018-10-03 15:17:34 -07:00