Commit graph

899 commits

Author SHA1 Message Date
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
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