Commit graph

793 commits

Author SHA1 Message Date
James D. Forrester 53dbdbe973 Update VE core submodule to master (7b494035e)
New changes:
705f9df8d Node/NodeFactory: Minor documentation fixes
28aa7b6ca Refactor newFromAnnotation & addAnnotationsToData
d5c2fdbfe FragmentInspector.css: Fix documentation typo
7b494035e Localisation updates from https://translatewiki.net.

Bug: T162278
Change-Id: I77a5f9badabb91196cc8aa18e8224da7c06660d4
2017-04-24 11:10:37 -07:00
James D. Forrester bef15b7a1e Update VE core submodule to master (bfb35aaef)
New changes:
57f8064b6 tests: Enforce dm unit test coverage at 20% per file and 80% globally
6f757c670 LinkAnnotation: add a getFragment method for consistency with MWInternalLinkAnnotation
c40a3f152 Drop the classList polyfill for IE9
d1af6c6bb Update OOjs UI to v0.21.1
bfb35aaef Localisation updates from https://translatewiki.net.

Bug: T162277
Change-Id: I5146bc421bb88e56bafadccefc7bbdee106504ea
2017-04-20 09:48:46 -07:00
James D. Forrester 3a382e6398 Update VE core submodule to master (fc46ed86f)
New changes:
719f8c667 ve.ce.DocumentNode: toggle all contentEditable properties, not just the outer one
35cadd7db Introduce single-line mode for surfaces
41fe321b2 Restore pointer-events comments for IE10 support
42f556820 Upgrade to jQuery v3
c1b8f142c Pass toolbarConfig position to actions toolbar by default
0d4c6a5fc Fix styling of table context in MW theme
db6eb4ebf Localisation updates from https://translatewiki.net.

Bug: T161944
Bug: T162808
Bug: T162830
Change-Id: I9b11673b4a77b7aebcdc282953d83ade08a8d8bd
2017-04-17 11:25:00 -07:00
James D. Forrester f935a952df Update VE core submodule to master (e4540d87f)
New changes:
57c61dcf8 VisualDiff: Ignore un-rendered modified elements
d426f8066 Tweak document padding
0d19e0640 Follow-up 16231a81: Fix typo in update-oojs-ui.sh
a611080f0 Update OOjs UI to v0.21.0
6f4d44ea6 tests: Switch to use mocha for reporting

Bug: T162622
Change-Id: I329a0b4525120f6bebe0ef5ff608eae4461a17a8
2017-04-12 16:31:02 -07:00
Ed Sanders 7a66d4f08a Update VE core submodule to master (1338c50f5)
New changes:
ae0204885 stylelint: Remove no-unsupported-browser-features overrides
d744cd576 Localisation updates from https://translatewiki.net.
1338c50f5 [BREAKING CHANGE] Remove resize handlers from within DiffElement

Local changes:
Trigger diff element resize on dialog resize

Depends-On: I82a67a4309bf76db5407ea38c26c47d14c01e921
Change-Id: I912a99edca25ff576e2872723f91afe54e36a170
2017-04-10 10:29:18 -07:00
James D. Forrester d1c24ce226 Update VE core submodule to master (da9c49395)
New changes:
dc0cad28c tests: Factor out ve.dm.TestRebaseClient/Server into their own files
98061108b Convert RebaseServer tests to data provider
3e746a51b Update OOjs to v2.0.0
16231a812 [BREAKING CHANGE] Drop support for Internet Explorer 9
64daeb4b5 Localisation updates from https://translatewiki.net.
3310e876c Update DOMPurify to 0.8.5
579033a83 Follow-up 16231a81: Drop IE9 support in createDocumentFromHtmlUsingIframe

Bug: T162277
Change-Id: If17c6a3fac0920db29f80069f344ffd6be46c3c9
2017-04-10 08:32:51 -07:00
James D. Forrester aa5728141d Update VE core submodule to master (19a6c389c)
New changes:
5082dcba0 Localisation updates from https://translatewiki.net.
19a6c389c Remove DiffElement DOM element when destroying

Bug: T161877
Change-Id: Iaa162c5f87fb81136d35b8a5c81034398116583e
2017-04-04 10:41:59 -07:00
James D. Forrester 7b992e1cfa Update VE core submodule to master (a6c25d08e)
New changes:
803e45655 Serialize/deserialize for Transaction and IndexValueStore
fff77990b build: Bump various devDependencies to latest
d926b3bed Update OOjs UI to v0.20.1
50cbc8af5 Fix disabling of surface
f2223fcdb Localisation updates from https://translatewiki.net.
daf59c3af ve.Node: Fix getRoot/getParent/getDocument documentation
8d877214f Update OOjs UI to v0.20.2
2ceaa8e23 ve.ui.Sequences: Allow optional execution after pastes

Bug: T161152
Bug: T161611
Change-Id: I07deafbfce86af99fce7db6501e43a62a330911a
2017-03-30 23:11:32 -04:00
James D. Forrester 51dbeca930 Update VE core submodule to master (495cd7d65)
New changes:
e0651b2df Move -hasDescriptions class toggle into #renderDiff
94dbb244d Fix dm.BlockquoteNode to inherit from ContentBranchNode
8715f7be7 Remove superfluous setting of canContainContent when inheriting from CBN
88e5b918d Replace instanceof ContentBranchNode with #canContainContent
c4b404408 DiffTreeNode: Use getters for type and attributes
869f3d34a SurfaceFragment: Avoid double-annotating in insertDocument, as well
931bd2410 Localisation updates from https://translatewiki.net.
f0cdae3ab Disable double-click & enter on focusable nodes when model is not editable
cb9ba7137 sync-gh-pages: Add .nojekyll file
495cd7d65 Re-apply "Remove $returnFocusTo hack now null is supported upstream"

Bug: T143261
Bug: T161262
Bug: T161547
Change-Id: I1a54293f9a2e0b27adc4fa0708b8dc1fdcca16b0
2017-03-28 10:50:20 -04:00
James D. Forrester e996d44e72 Update VE core submodule to master (7b51cb6ab)
New changes:
f887e6b7a Only show branch node rebuilds in inputDebug mode
81ff8b246 Localisation updates from https://translatewiki.net.
e09334387 SurfaceFragment: avoid double-annotating in insertContent
7b51cb6ab DiffElement: Resolve URLs in links and target at new window

Bug: T143261
Bug: T160939
Change-Id: Iede559dbd2d9b42d904ccab329d311780a758477
2017-03-24 14:33:48 -07:00
James D. Forrester 68395ed7d5 Update VE core submodule to master (0cc3ded3d)
New changes:
9e27aeaed When indexing originalDomElements for ve.dm.Annotations, disregard child nodes
ce3618d86 DiffElement: Ensure del/ins tags encapsulate annotation changes
0cc3ded3d i18n: Add a default alignment value

Bug: T160839
Change-Id: If8500f521f1347daa87a7583e231c1dcbe1525d5
2017-03-22 18:45:58 -07:00
James D. Forrester 551b601548 Update VE core submodule to master (f294778e6)
New changes:
642e86498 Localisation updates from https://translatewiki.net.
98608eb3d ce.test: Use nodeType constant
8e795e433 Fire a surface change event from the toolbar so tools can rebind

Bug: T160906
Change-Id: I9c3c65b43f3209049ba0ca7e587cc39fffc413d2
2017-03-20 08:37:41 -07:00
James D. Forrester 8f4802b7f1 Update VE core submodule to master (a63435906)
New changes:
dcff78aa0 Pass element to describeChanges
51bc2139f Move diff cleanup to ve.DiffMatchPatch
92f3219e2 Use diff_match_patch action constants for better readability
0ff1f053f VisualDiff: Merge remove+inserts separated by whitespace only
5255ac49c Ensure inline node changes are balanced and minimal
a63435906 i18n: Add param documentation in qqq for some recent keys

Bug: T160632
Bug: T160729
Bug: T160740
Change-Id: Iacb47e849004fe52c1edb0ba09c26ac3f03cc06d
2017-03-17 23:16:18 +00:00
James D. Forrester ff888f3b44 Update VE core submodule to master (ac6d7031c)
New changes:
80b31eddb Update treeDiffer.js library
96619eefb DesktopContext: on destroy, tell our popup to stop positioning
8dadf74f1 ve.ui.DesktopContext: Prevent hiding of the context popup

Bug: T160190
Bug: T160197
Change-Id: I3a09d528aae15b1be008f27803211f4ecd70947a
2017-03-16 17:38:45 -07:00
Ed Sanders 12c73bc01f Update VE core submodule to master (ef5dc965f)
New changes:
4b94f212e Add tool to change directionality of document view

Bug: T153356
Depends-On: I1e3d89e8250b75d0b6992cf4664e84de66d99bc0
Change-Id: Ic832cc661a0899b1668eb650fb09b66ada54d1ef
2017-03-16 12:42:42 -07:00
James D. Forrester 5ac029a153 Update VE core submodule to master (5c4c9e8ed)
New changes:
cc3e61930 ElementLinearData: when removing original dom elements, remap hashes
89ad89739 Localisation updates from https://translatewiki.net.
056366b22 Revert "Remove $returnFocusTo hack now null is supported upstream"
515a90521 Remove redundant setDisabled calls from tools extending ve.ui.Tool

Bug: T154123
Bug: T160479
Change-Id: I1726bc2ee0efb20ad03da178a51ca1f6482f0551
2017-03-16 08:24:27 -07:00
James D. Forrester 6225a6536a Update VE core submodule to master (8817821b6)
New changes:
ae944e7fd VisualDiff: Show attribute changes in a sidebar
1a3b7ec90 VisualDiff: Add custom messages for change descriptions

Bug: T151404
Bug: T156189
Change-Id: I218bf2eee6606cedc21f1e542fba62c1b98ca43f
2017-03-15 16:31:57 -07:00
James D. Forrester 13eb3d9027 Update VE core submodule to master (da310202f)
New changes:
d091c2e5c Refactor rect-from-element computation in FocusableNode into static method
9184a8e8c Update OOjs UI to v0.20.0
a48bac967 ve.ce.Surface: Check delayed sequences when deactivating surface

Change-Id: I7ad4b17c6e4ea3fdf4f0fc72e244f875fddc766b
2017-03-15 14:54:15 -07:00
James D. Forrester 6ab24fe9f0 Update VE core submodule to master (41134af2b)
New changes:
1e12d0174 Generalize DiffElement logic (improves lists and tables)
24e0c7a94 Localisation updates from https://translatewiki.net.
32759ae86 Allow variable-length sequences without a fake space terminator, use for autolinking
82c204ba0 QUnit.assert.equalHash: Correctly compare JSON representation
2e5462610 DiffElement: Allow a node change to be an attribute change *and* a linear diff
41134af2b ve.ui.LinkAction: Allow autolinking ranges including trailing spaces again

Local changes:
Updated tests for 32759ae86: the autolinkUrl command no longer expects
trailing whitespace to be included in the range.

Bug: T117165
Bug: T149537
Bug: T158518
Change-Id: I5c2d5b97894fc93f49ce6270a198f3dfdcd09986
2017-03-14 12:47:32 -07:00
James D. Forrester 2771ea3f34 Update VE core submodule to master (bc0001c53)
New changes:
a98515c7f Localisation updates from https://translatewiki.net.
788a1b4be FindAndReplace: Use Intl.Collator instead of localeCompare
a02ce2cd1 Use Intl.Collator for all searches if available
69328692d findText: Fix documentation and tests
833c29b67 PositionedTargetToolbar: Move code that assumes surface exists to after check
15de62106 Remove $returnFocusTo hack now null is supported upstream
a09efa1f8 Fix cursor style on language search widget
c60e7ba66 demo: Move qqx language option into the language selector

Bug: T159439
Change-Id: Ib292a25c79969a063a634837118e837e477f39ac
2017-03-10 15:49:21 -08:00
James D. Forrester 879ae1092f Update VE core submodule to master (de2dd95c6)
New changes:
9dbb3729b DiffElement: Measure box-shadow borders in pixels to avoid blurring
cbcaed302 ve.ce.Surface: Prevent horizontal scrollbars when hovering FocusableNodes in RTL
b715b1ad6 DiffElement: Use a real ve.Range instead of a plain object
d2567df6c DesktopContext: Unhide context before positioning popup
1afcce366 Localisation updates from https://translatewiki.net.
c31dccebd Update OOjs UI to v0.19.5

Bug: T159472
Change-Id: Icbff2ef3bdb3269db53183f27e2b682a755ee781
2017-03-08 09:10:48 -08:00
James D. Forrester 1865702448 Update VE core submodule to master (3056a4a46)
New changes:
f83a68c22 ve.ce.ContentBranchNode: Don't set 'white-space: normal' on `<pre>` tags
ee5920781 DiffElement: Fix remaining class->data-attribute conversions
a07c9e345 DiffElement: De-clutter left margin, removing the blue border
3056a4a46 ve.dm.Document: Provide a utility method to provide a blank Document

Bug: T159231
Change-Id: I3b71d995c915fa6ea10a0eea7cb727ee68733ae9
2017-03-01 21:41:03 -08:00
Ed Sanders f51d86df20 Update VE core submodule to master (8211ebc70)
New changes:
c99e7f0b6 Diacritic insensitive search in find & replace dialog

Bug: T154195
Depends-On: I95eb851c10a44e18382a6a4a0cb22559db6752b7
Change-Id: I6b74fc3dbaa27de67a565a3c2c6bf8a951b24364
2017-02-28 16:30:22 -08:00
James D. Forrester 68fd46ab51 Update VE core submodule to master (15f36bc75)
New changes:
7da907be0 Highlight comment changes in visual diff and fix whitespace
77accf6f6 Have toolbar append toolbarDialogs container
6985593cd Localisation updates from https://translatewiki.net.
9140a5991 DiffElement: Avoid modifying class attributes on DM HTML
cdcbbdde3 Remove used 'header' params from toolbar config
15f36bc75 Update OOjs UI to v0.19.4

Bug: T149821
Bug: T158895
Change-Id: I5bfc595b6b43173e76fc8cd45e47fb21d5ccaea7
2017-02-28 16:26:58 -08:00
James D. Forrester 4706a4c089 Update VE core submodule to master (813c586a6)
New changes:
09900c889 VisualDiff: Use more robust check for ClassAttributeNodes
ee0d641b5 DiffElement: CSS fix for captions & figcaptions
08043a75b Table: Ensure active node state is always properly cleared
be1e026df Correct some indices in visual diff
d1267bdf1 Localisation updates from https://translatewiki.net.
4656e5001 Remove styles for non-existent toolbar-shadow
185fbabde Mark all node files as es6
576c6c536 RebaseServer: Handle disconnects by setting the disconnected author's selection to null
c9c2498e9 LinearEnterKeyDownHandler: abort if in dialog and ctrl/cmd held
61c11cbee Show annotation changes as blue
dda1d105f DiffElement: Build diff using raw DOM operations
42a8b416c Use node.get*Outer*Range() when splicing in removes
87b060edf Localisation updates from https://translatewiki.net.
61ce2cf7b DiffElement: Fix documentation and parent constructor call
b7a09afe1 VisualDiff: Strike through removed text

Bug: T152001
Bug: T152487
Bug: T157590
Bug: T158294
Bug: T158321
Bug: T158769
Change-Id: I251ebf7d40cc8107703f3cbe9d3823c3ee455edc
2017-02-23 11:38:11 -08:00
James D. Forrester 1404c76fc0 Update VE core submodule to master (a507dcb84)
New changes:
08a199e2a build: Drop two deprecated stylelint options
a507dcb84 build: Bump stylelint and make pass

Change-Id: Ia41930fa9db085b9be0a1f84da400dfb6bd7f2ef
2017-02-17 16:08:23 -08:00
James D. Forrester 8f576f4c55 Update VE core submodule to master (e94169400)
New changes:
f27169f68 Localisation updates from https://translatewiki.net.
edd78cf50 Increase margin on DiffElement
d723ce56a DiffElement: Use important background colours to force override
b71ee15b5 demo: Use windowAction to open diff dialog
de88ca28b Move standalone diff dialog into separate module
d18bb1379 Don't allow slug buttons to take focus on click

Bug: T158295
Change-Id: Ic67bed00c100acf9a24cc0f5b984a64c14357fa4
2017-02-17 08:13:27 -08:00
James D. Forrester 871d007c35 Update VE core submodule to master (ac6db50ca)
New changes:
efd3caa55 VisualDiff: Distinguish between annotation/character changes
e64a4df76 ve.ce.Surface.test: Gross workaround for failing tests
ac6db50ca Update OOjs UI to v0.19.2

Change-Id: I366d1ceee0c238e17d977d8aaa0ab6732eb7c82b
2017-02-15 14:37:45 -08:00
James D. Forrester c32a77bcc1 Update VE core submodule to master (2f38291c4)
New changes:
fd62bf687 Stay in cell editing mode when pressing table inside a cell
a03842b5d Replace non-breaking spaces when pasting into source
6b70c67e0 ve.ui.TableDialog: Add "Cancel" button
9f31555fb TableDialog: Disable 'done' button when no changes made
1f712e893 Localisation updates from https://translatewiki.net.
0c92a774f Follow-up 1f712e8: Fix build for added language 'bqi'

Bug: T154382
Bug: T155928
Change-Id: I61340a76464a384923639a0fcaed17d7ef6b8b95
2017-02-13 08:28:09 -08:00
James D. Forrester df1666d1d1 Update VE core submodule to master (de7a96ece)
New changes:
d2681c923 SourceMode: Fix sanitization loop in plain text paste
f67a7cb06 Listen to mouseup events on documentNode for focus changes
f3e857a3e ve.ui.Surface: fix issues with scrolling while selection

Bug: T157291
Bug: T157491
Bug: T157499
Change-Id: I14422ff046734858270879a4ba24654a05c3000c
2017-02-09 14:21:37 -08:00
James D. Forrester 3302ba9203 Update VE core submodule to master (c1884680a)
New changes:
778dd0709 Destroy unicorns properly when cursoring to another branch node
2877cbbbc dm.Document: Make tree validation stricter
342a71e05 Update OOjs UI to v0.19.1
d2df4b6d4 Explain that Escape/Ctrl+Enter can be used to cancel/confirm a dialog
d978507f0 Move platform handling from CommandHelpDialog to CommandHelpRegistry
4dbceb403 Honorably discharge ve.dm.DocumentSynchronizer
0eb0e4214 Localisation updates from https://translatewiki.net.

Bug: T157019
Change-Id: I5066b1d2c60e116bc3b80b9a8242a72db243d8cf
2017-02-09 08:46:29 -08:00
James D. Forrester d5e245f6ff Update VE core submodule to master (121100d74)
New changes:
a4906cce4 VisualDiff: Implement linear diff timeout for edge cases
f4ab8c5e0 Remove explicit toolbar indicator definitions
37cb4fdca Update diff_match_patch
505205ec0 Localisation updates from https://translatewiki.net.
bc8491fc1 Fix definition of HTML whitespace in converter

Bug: T156599
Bug: T157406
Change-Id: Ie89e8da437c368bc0d1213cc19e169e1045c582c
2017-02-07 10:28:14 -08:00
James D. Forrester c10ba0885f Update VE core submodule to master (f60ce1a)
New changes:
a2e9331 Use forked version of DiffMatchPatch with abstract string methods
6aa2023 TransactionProcessor: Fix bug where annotation events could be emitted on the wrong nodes
b8b67d2 DocumentSynchronizer: Simplify pushRebuild() API
ed84b86 Add TransactionProcessor tests for wrapping, unwrapping and rewrapping
88764aa Remove presynchronize, use precommit instead
d704cbf tests: Fix offset numbering in getBranchNodeFromOffset test case
5eabbb2 VisualDiff: Add performance shortcuts to compareElements
2492fd0 Add comment for VisualDiff test store merge hack

Change-Id: Ica7185201e095a3a5da32a75c95bc2b90806568c
2017-02-03 09:11:12 -08:00
James D. Forrester e3ff727cf8 Update VE core submodule to master (495524f)
New changes:
07ad6e3 Always convert newlines to paragraph breaks in source mode
582c99d Follow-up 1074babe: remove never-used parameter to synchronize()
0c4b9c0 Check correctly whether the cursor crossed a preunicorn

Bug: T156498
Bug: T157019
Change-Id: I4b644b70242fd1fe3397d9c86aad37af26dddd66
2017-02-02 09:58:33 -08:00
James D. Forrester d58d40492d Update VE core submodule to master (96ed6a4)
New changes:
0b2bb48 ve.dm.TableMatrix: Emit event when table structure changes
819825f ve.dm.TableNode: Emit event when any cell's attributes change
0a8de00 VisualDiff: Annotation tests
19aaa68 Fix documentation in ve.Range, and remove test for wrong input
e18e5b8 tests: Test node replacement in ve.ui.DiffElement.js
7e7df4f Localisation updates from https://translatewiki.net.
f4f545f ElementLinearData#sanitize: Use a proper stack to find last open element
cac05d0 Fix width of labels in language inspector
96ed6a4 Update OOjs UI to v0.19.0

Bug: T156735
Change-Id: I46900fb06d43a9384ec6034438ddc0ff068f136e
2017-02-01 15:40:16 -08:00
James D. Forrester 521a15a07d Update VE core submodule to master (d8b833e)
New changes:
5d5ca73 Follow-up Id00817d05: Correct mistaken handling of forced replacements
5649654 tests: Get coverage of ve.Range.js to 100%
a65b1ce ve.utils.js: Add some more 'Support:' comments
db28d44 Revert "Pass text as string to insertDocument when detected as plain text"

Change-Id: I6f3f15b59be131586df697847304f5235958a58d
2017-01-30 10:31:33 +00:00
Ed Sanders 1d7f929a91 Update VE core submodule to master (139bdf7)
New changes:
d79138b Overwrite selected content when pasting via DataTransferItem
3c4737f Ensure clipboard is never empty text
3b1339e Create dummy platform and target for tests
4d63c8e Pass text as string to insertDocument when detected as plain text

Local change:
Remove VE standalone module

Flow used to use it, but not anymore. Going forward no one should
be using it in MW.

Bug: T154020
Bug: T156302
Bug: T156498
Depends-On: I078c244ef524669da477a43f9b37c847252e5ad7
Change-Id: Ifc4be16269f819890f2dcdddbbdebf9694ad2868
2017-01-29 18:50:47 +00:00
James D. Forrester 6de2bb21d9 Update VE core submodule to master (e5dffec)
New changes:
e3027e1 RebaseServer: use a separate class for document state
c76dce2 Detect node type/attribute changes in the visual diff
e98547f VisualDiff: Remove redundant length check
5d8c85d Add test for non-semantic whitespace diff
c352e8f Add i18n for 'No changes' message
e3669dd VisualDiff: Add node insertion/removal tests
d4a8973 VisualDiff: Add paragraph moving tests
fba5d0c VisualDiff: Add table column tests
af891bf Localisation updates from https://translatewiki.net.
7fb299b Follow-up c352e8f: Don't use i18n key clashing with archaïc usage
b63bf47 Fix annotation of nodes in document insertion
dea4c82 Handle home/end/pageup/pagedown keys when on focusable nodes

Bug: T151404
Bug: T151589
Bug: T156376
Bug: T156463
Change-Id: I99c3590279b94e4a5219cb990b52f928b85a91f4
2017-01-27 17:56:37 +01:00
Ed Sanders fdec767003 Update VE core submodule to master (f1ed206)
New changes:
95ce4ad Check dataTransfer.items exists before iterating
c113207 Include oojs-ui-core.js in debugging pages
6d7f0f4 Localisation updates from https://translatewiki.net.
d5a0891 DatetimeAnnotation: flesh out model with datetime attribute
57ea466 Fix demo style regression introduced by new OOUI
34410a9 Fix a typo in visual diffs
089e6e1 ve.ce.Surface: Use toString, not String constructor

Bug: T103723
Bug: T155836
Change-Id: Ibd58b07b138b5b01c8e92978a20407290a4001fd
2017-01-25 13:36:42 +00:00
Ed Sanders 1ae5c13cb9 Update VE core submodule to master (f0dcedb)
New changes:
5b448fa [BREAKING CHANGE] Merge Mobile/DesktopSurface into Surface
2d8959b Localisation updates from https://translatewiki.net.
7eee772 Follow-up 2d8959b: Fix build for added language 'io'
f0dcedb ve.dm.TableMatrix: Really indent ASCII-art comments

Change-Id: I62708f7caeb03b16cd318aab0b0ee3c674e75a26
2017-01-20 14:35:39 -08:00
James D. Forrester c908dbdece Update VE core submodule to master (6eba2e2)
New changes:
a38905d ui.AnnotationInspector: Don't assume previousSelection exists
fdbeef4 ui.AnnotationInspector: In source mode, provide fallback insertionData
a1a7ea7 build: Bump grunt-css-url-embed to latest
de4e5bc Localisation updates from https://translatewiki.net.
d37b453 Update OOjs UI to v0.18.4
8a3f09b ve.dm.TableMatrix: Indent ASCII-art comments
b2538e1 build: Bump grunt-css-url-embed to 1.9.0
9759f3f Fix minimal demo

Bug: T152781
Bug: T153378
Change-Id: I020083725c4e9663e2e468a3e68ecc237604c256
2017-01-18 14:13:18 -08:00
David Lynch 00fea964c6 Update VE core submodule to master (538c3a2)
New changes:
c0c5ca9 ce.Surface: Don't hardcode string types for paste

Change-Id: I97e8d5be9086749caeb9e4aa8f347bab5353d66f
2017-01-14 21:27:43 -06:00
James D. Forrester c323274d47 Update VE core submodule to master (de003cf)
New changes:
db52f83 Create ve.isClipboardMimeTypeSupported
fce25dd Update RangeFix from 0.2.2 to 0.2.3

Bug: T155218
Change-Id: I5f32c6ffbd989920917c15fd2df81c05389d4fc4
2017-01-13 18:55:19 -08:00
David Lynch e369ebacd3 Update VE core submodule to master (a129536)
New changes:
1e4a2a5 Desktop demo improvements
0be3300 Replace abandoned colors with current ones
c3895e4 Warn before deleting a bunch of local files
a21d08d ui.CommandHelpRegistry: fix extending of existing command

Bug: T153486
Change-Id: Ia61714c4941b2b2cf5566a94896a28fb593b8029
2017-01-11 17:15:23 -08:00
James D. Forrester b11edcb7f9 Update VE core submodule to master (460f16c)
New changes:
a46b26f ui.Surface: scrollCursorIntoView should handle below the screen, too
291cad8 Localisation updates from https://translatewiki.net.
a4b781f Cleanup various sillinesses in unicorn code

Bug: T153628
Change-Id: Icc48b644939d96cef1d5128a7a5babb4b6ca0a89
2017-01-10 10:39:15 -08:00
James D. Forrester a815a40446 Update VE core submodule to master (838df50)
New changes:
972cde4 Remove ve.getHtmlAttributes and ve.getOpeningHtmlTag (both unused)
1e21d0d Only consider focusNode/Offset for scrollCursorIntoView
5248f16 Refactor ve.dm.TransactionBuilder#newFromWrap
a6de97a Use the monospace hack consistently
7e21814 build: Bump file copyright notices for 2017
70a946b Update OOjs UI to v0.18.3
838df50 Remove mobile window logic upstreamed to OOUI

Bug: T126029
Bug: T153601
Change-Id: I76f62b12eb78b6dba03c9ac3e0f9355f4f8fbdc2
2017-01-04 08:52:12 -08:00
James D. Forrester 3c420baa70 Update VE core submodule to master (da4a0b5)
New changes:
8562e02 Ensure document is always sliced in #insertDocument when newDocRange passed
38885da Unwrap single pasted content branch nodes
afcc2b5 Use this.document directly in surface fragment
9a06a01 Don't show help for a trigger if the command is not registered
16fa88e Rename 'commandName' to 'commandHelpName' and refactor object copy
8640858 Localisation updates from https://translatewiki.net.
3e147fd Localisation updates from https://translatewiki.net.
df590e3 ce.Surface: in blur, make sure activeElement exists before blurring it
2883d2a Localisation updates from https://translatewiki.net.
89b8927 Remove serialization test cheat; make tests actually pass
41e77ad ve.ce.CommentNode: Don't assume icon exists yet
55185ec Rebaser: Allow document id & server to be changed by config
3b06cf3 Filter out nodes completely sanitized away by DOMPurify
755768c Pass dm doc to deserialize to hydrate selections properly
a9b1c86 DOMPurify config: Change ALLOWED_ATTR to ADD_ATTR
3796061 Remove unit test hack, no longer needed.
ef7b4e4 Rebaser: Separate namespace creation from /doc/edit
da4a0b5 Localisation updates from https://translatewiki.net.

Bug: T153247
Bug: T153249
Bug: T153960
Change-Id: Iaa277b86aea4182c8e96ec6ad4ed6c1beaf00ee1
2017-01-03 07:33:55 -08:00
James D. Forrester 2b63ffba4a Update VE core submodule to master (f8fc228)
New changes:
b74276f Fix <br> sanitization.
2cb48b6 Use try-finally instead of try-catch-rethrow
3c3ec31 Try text fallback for drag and drop even if exception not thrown
af66347 Localisation updates from https://translatewiki.net.
1e6aa55 Ignore covering annotations when importing source
5dd073c Follow-up 2cb48b6: Add a comment explaining why we're not re-throwing

Bug: T153223
Bug: T153315
Change-Id: Id8c0cd35b4f4d989c65a556e843eed0438aa59b0
2016-12-16 11:53:37 -08:00
James D. Forrester f2e23e87c7 Update VE core submodule to master (721f591)
New changes:
2a24fdd CommentInspector: Remove redundant surface enable call
45c3931 Allow ve.resolveAttributes() to take a single element
c5a5cef Give ui.Surface a focus method
721f591 Ensure content is selected after async source insert

Bug: T152645
Change-Id: I50f6c359818f8e40ac080eef4edd1d9698735064
2016-12-12 08:37:41 -08:00
James D. Forrester fb17a05be4 Update VE core submodule to master (33012af)
New changes:
98e3ee8 Update OOjs UI to v0.18.2
7a7e576 Move socket.io-client into lib
9be803f ce.Surface showSelectionState: Avoid unnecessary refocusing
fa9570e ve.ui.TableAction.test.js: Make formmatting pass in eslint 3.12.0
65564a2 Follow-up Iaa41c49e: Don't assume source dialogs have a fragment
43acec4 ui.TableAction: don't try to add cells if none have been provided
33012af Update UnicodeJS to v0.1.6

Bug: T150450
Bug: T152387
Bug: T152659
Change-Id: Icb25c05fef4719fba464ba6b0f349de85f01f24d
2016-12-09 15:48:51 -08:00
James D. Forrester 60b5c97c0a Update VE core submodule to master (327a277)
New changes:
220713c Basic unit tests for article/section nodes
42134b7 Bypass fragment parsing for non-fragment windows
8d1ec6b Fix #insertContent in source mode to maintain linebreaks
9bebc0f Surface synchronizer (sockets)
4324301 Localisation updates from https://translatewiki.net.
c8f4867 Simple document server
a1fe22d Run eslint on rebaser folder
c4c1809 Fix build modules for rebaser
606b4a8 Add landing page to rebaser demo
327a277 Rebaser: Focus document name input on load of landing page

Change-Id: I57975ea090e2e905e5a78b2a715141636dca4748
2016-12-06 11:24:55 -08:00
James D. Forrester 8a253c6405 Update VE core submodule to master (3dae2ca)
New changes:
8803030 Use faster batchPush in #insertContent
c011ae2 Don't wait for fragmentPromise before closing open windows
3dae2ca Follow-up Iaa41c49e: Ensure hack range is valid

Change-Id: Iaf7b623295eed23e46c12407fc7c0b6f371a92a5
2016-12-05 08:02:43 -08:00
Ed Sanders 1edc42e0ae Update VE core submodule to master (aa8ef3e)
New changes:
4321ccd SourceSurfaceFragment: Add #convertNodes
aa8ef3e Follow-up Iaa41c49e2f: Fix `this` context in window action

Change-Id: I82777e4dcd27de744bb3cb934f1c639167127303
2016-12-03 17:31:04 +00:00
Ed Sanders 9ceb13ce60 Update VE core submodule to master (5be61ce)
New changes:
860954b [BREAKING CHANGE] Parse selection before applying source tools

Local changes:
Implement convertFromSource/convertToSource in WikitextSurfaceFragment

Depends-On: Iaa41c49e2f8e28af28a8a64cb6915f705fa35e8c
Change-Id: I746619d442fb565cd582cb09de3126526c73c333
2016-12-03 03:43:59 +00:00
James D. Forrester 640c745bca Update VE core submodule to master (af7fb69)
New changes:
a27ccb4 Follow-up I3b0483a7d: Fix append loop in PreviewElement
75d6de7 PreviewElement: Use adoptNode when moving rendering to view

Bug: T151511
Change-Id: I6bf6df1873b8033914bc2235784012b66459e341
2016-12-02 22:05:49 +00:00
James D. Forrester 976d2e935a Update VE core submodule to master (c9619a0)
New changes:
06ffd06 Rebase logic
56d8e13 Use DOMPurify to sanitize incoming HTML
abc3465 DOMPurify: Use pre-release & add fix, and fix IE9 return type issue
14700eb Bring in source mode WindowAction hacks from MW

Change-Id: Iaef73bab7c1010ec29826ff2025c767c9758e8e3
2016-12-02 11:49:12 -08:00
Ed Sanders 218742d806 Update VE core submodule to master (ae30d71)
New changes:
f58ddea DiffElement: Use document slices with full internal lists
83800c0 DebugBar: Remove hard-coded i18n
b4f89e1 Update OOjs UI to v0.18.1
40c7bf6 Factor out active node functionality from SectionNode for captions
2d967be Move 'mode' property to surface, rename target property to 'defaultMode'
5d8c214 wrapAllNodes in sourcefragment
dd3d9e5 Refactor ve.dm.Transaction
9d61aca Use canonical ve.dm.TransactionBuilder.static.newFrom* methods
df4f72a Make table caption node an active node
b79f72d Core source mode
7533ac4 Localisation updates from https://translatewiki.net.
ae30d71 SourceSurfaceFragment: Check range is not collapsed

Local changes:
Get edit mode from surface where possible

Depends-On: Iec758c1892d518ad4bc2c0d1aaf6ca00fa354323
Change-Id: Ifaf6a26078b2731b374aaad2cb40c08928de9c84
2016-12-01 10:40:01 -08:00
Ed Sanders aeafa6afca Update VE core submodule to master (9625e8f)
New changes:
f1297b8 [BREAKING CHANGE] Allow target widgets to be re-used

Local changes:
Re-use target widgets

Change-Id: I5decb918f398704d4b6c108a16fbc1cc073ef077
2016-11-29 11:48:15 -08:00
James D. Forrester fb616288a2 Update VE core submodule to master (0879bb2)
New changes:
00efc39 VisualDiffs: Improved styling for moves
009de03 VisualDiffs: Use semantic del/ins tags
4a90e12 Localisation updates from https://translatewiki.net.
c671cf8 Add diffing to mobile SA demo
c4ff29b Replace deprecated $.andSelf with $.addBack
b122328 Fix labels on diff dialog
41a700c ve.dm.Change class with rebase operations
2c336da Localisation updates from https://translatewiki.net.
4c7cb68 Hijack EventSequencer timeouts in unit testing
dea2883 Focusable cursor tests: place cursor in cursorHolders

Change-Id: Id6640e02999c079bcf3709f2d048394ec6719904
2016-11-29 11:06:03 -08:00
James D. Forrester c90e53a795 Update VE core submodule to master (f4d2cd2)
New changes:
d68bd23 DiffDialog: Use surface dialog manager for diff window
d68fe24 VisualDiff: Replace whitespace detection with wordbreak detection
dd65a44 VisualDiffs: Only show unchanged content adjacent to changed content
7f70f64 Fix some edge cases with adding classes to nodes in diff
f4d2cd2 Follow-up d68bd23: No need to list ve.ui.DiffDialog twice in modules.json

Change-Id: I6f46f3d14ad81e4efdde0c970a3102e577b12772
2016-11-22 17:39:43 -08:00
James D. Forrester 1d43607bd9 Update VE core submodule to master (0ef16f0)
New changes:
65399fa Localisation updates from https://translatewiki.net.
0ef16f0 Follow-up Ice6b167: Ensure metadata is inserted before the internal list

Change-Id: Ieb967a1e2e6f3a90ed26d25715e41cb9a3dbcb44
2016-11-21 08:15:32 -08:00
James D. Forrester 910aa9cb0a Update VE core submodule to master (83ea152)
New changes:
6f28f19 build: Bump eslint-config-wikimedia to v0.3.0 and make pass
270fda6 Make $returnFocusTo a no-op in WindowManager

Bug: T150556
Change-Id: Iad3959fa836afd5b81ef9f668077d68effc69063
2016-11-16 14:19:46 -08:00
James D. Forrester 8407e71d14 Update VE core submodule to master (c8389bd)
New changes:
e9b392a dm.Surface: contextChange if non-collapsed selection moves in/out of annotations
efa129c Add HTML blacklist for content which doesn't have a model type yet

Bug: T126232
Bug: T149714
Change-Id: I456ed4dbd0ed0452e58d554f5c88a82c1bf2bb26
2016-11-15 08:47:58 -08:00
James D. Forrester 2fbbb07c73 Update VE core submodule to master (cf1a9c8)
New changes:
bccd179 ve.ui.MergeCellsContextItem: Correct @extends documentation comment
f0c7873 ui.CommentInspector: Select placeholder comment node while editing
4747913 Add ve.init.Target#isModeAvailable

Change-Id: I2e28a4bc5ca3c81580f24419409004e05c415682
2016-11-14 14:13:38 -08:00
James D. Forrester a438e5bd9d Update VE core submodule to master (2bc2ddf)
New changes:
408a212 Fix and improve performance of shallowCloneFromRange( undefined )
6f01d52 Return an empty document when shallowCloneFromRange is collapsed
e0fb3a3 Skip toolbar rebuild when config hasn't changed
00ffe0f Avoid annotation set clones when unused
e839b94 Add teardownToolbar to ve.init.Target
869e458 Cache this.getToolbar
e0ba022 eslint: Re-enable wrap-iife and partially enable dot-notation
15518fa Wrap attribute resolve in try-catch for IE

Change-Id: I404d3b098232be920a2f72a5281bf5c04b85aae1
2016-11-14 09:02:53 -08:00
James D. Forrester 25b0a94ee9 Update VE core submodule to master (c532815)
New changes:
e03fbf0 ce.Surface: Tougher check on whether cursorHolders are still in-document
708aa36 Localisation updates from https://translatewiki.net.
c532815 Fix IE hack classes to run on the correct versions

Change-Id: Ie780b0287664f89815482e4632c4aac86843a1dc
2016-11-10 17:19:13 -08:00
James D. Forrester 20b802cc85 Update VE core submodule to master (5f569e4)
New changes:
66291ea Converter: Remove internal during the main loop
99172f5 Remove unnecessary double-negation cast in if()
349f341 Refactor diff element getChangedNodeHtml
2885ec2 LinkAnnotationWidget: Don't use deprecated TextInputWidget#setRTL
c235d13 LinkAnnotation{Inspector|Widget}: Stop using deprecated TextInputWidget#isValid
5f569e4 Update OOjs UI to v0.18.0

Change-Id: Iba3908fd3aec62c8c770346dd01714c41c7a87a0
2016-11-09 12:35:17 -08:00
James D. Forrester 539974a80b Update VE core submodule to master (88ba26b)
New changes:
e9866f4 Replace reference to current doc with this.newDoc
fa5a575 Add test framework for diffElement
2f6969c Use shallow copy for internal list data inside shallowCloneFromRange
866b2c0 Don't bother testing data on direction key tests
88ba26b Avoid jQuery in PreviewElement and ve.resolveAttributes

Change-Id: I7adb57898fa7cecd6a412183c4ca0726ef1a00ae
2016-11-07 13:51:21 -08:00
James D. Forrester 6913a736fd Update VE core submodule to master (e7c5b56)
New changes:
b2970d6 Remove #rebuildTree calls and ensure #getDocumentNode is used
4d3231d Extract DM document from node instead of passing it as argument
5827a4c Update treeDiffer library & remove all but dist, licence & readme
4200362 Fix typo in getModifiedRanges
9a4edb7 Fix behaviour of attribute change in getModifiedRange
c5c7d83 Localisation updates from https://translatewiki.net.
993200a Add includeCollapsed & includeInternalList options to getModifiedRanges
566c7af Add ve.Range#overlapsRange method
4a3afce Remove unused eslint exceptions and old jshint comments
db44a3d Fix splice typo
7a4de14 Fix translateRange bug that expands selections
e7c5b56 Localisation updates from https://translatewiki.net.

Change-Id: I4af5647b9f49525c9c592ab42270f302144d76c9
2016-11-03 17:02:01 -04:00
James D. Forrester 76b3f63ead Update VE core submodule to master (977d3ad)
New changes:
f564149 ve.dm.Transaction: add 'author' field
4032768 Remove jshint comment, no rule required
3705e38 Remove comment about jscs empty blocks rule
09c48db Remove comment about jscs binary space rule
1f2fcde Allow shallow clone of whole document
b8c3673 build: Update eslint-config-wikimedia to 0.2.0 and make a pass
f31a1f8 Re-use eslint.main for eslint.fix
78acdbe Add LICENCE.txt for classList lib
0d92f39 jsduck: Move UnicodeJS and OOUI into Upstream
d0c4225 Remove rules which have been moved upstream
31126aa Fix ve.test.utils.createSurfaceFromHtml
a1036e0 Make it possible to see visual diffs in VE core
3a1bc70 Diff style tweaks
977d3ad build: Move diffing code to its own module for slimness

Change-Id: I82da0beb9bdb05f482ddfa76b4f95563d2499f1e
2016-10-31 17:35:46 -04:00
Ed Sanders 244eeb9ea1 Update VE core submodule to master (e4c8003)
New changes:
e4c8003 Bring in target 'mode' property from MW

Local changes:
Use upstream Target#setMode functionality

Depends-On: I9d501cb77c714fbd299b5816d302b0bdde7833cd
Change-Id: I2fcda6ca7d82d880101d9ba2a027d4ef066aa238
2016-10-27 16:12:31 -07:00
James D. Forrester 3412958be0 Update VE core submodule to master (8bdf0f7)
New changes:
7c10516 Cleanup ElementLinearData#sanitize
ff79ed5 Fix margins around progress dialog rows
7b8652b Localisation updates from https://translatewiki.net.
60e14a5 Method to rebase a transaction onto another
10f4ad7 Fix typo in ve.dm.LinearSelection
8d0bff6 Apply inserted annotations above background annotation stack
0c0ebc9 Human-readable transaction summary, for debug
3f4706c Apply platform language to SA target
b5e542c Ignore <br>s used to keep empty branch nodes open
f91512f Follow-up e3192e2d3: properly fix layout thrashing in updateInvisibleIcon
ea3bf6d build: Switch from jshint and jscs to eslint
71897cc Fix documentation to pass eslint valid-jsdoc
2b27876 Enable eslint:valid-jsdoc with exceptions for @chainable
f31b1fa Don't position inspector using selection from wrong document
1fc44bf doc: Fix up last jscs/jshint remnants, comment where retained

Change-Id: I8682263591968713c1ebdea218181bb40634cbb4
2016-10-26 17:47:07 -07:00
James D. Forrester f8bb7aaca5 Update VE core submodule to master (5fc8c7f)
New changes:
689ea49 ve.Range: Don't fixup invalid arguments
4aaf809 ve.sparseSplice: Splice one array into another, replicating any holes
775e341 Check previousSelection is set before setting it

Change-Id: I989c15a81a8dd057af436e0dee667b6f82e54be5
2016-10-14 15:35:06 -07:00
Ed Sanders e1e02fa0d8 Update VE core submodule to master (90cbd62)
New changes:
abf8f41 Replace Array#concat with Array#push in converter
02aeb90 Localisation updates from https://translatewiki.net.
902ddda Use safer batchPush in converter
6368191 Use current surface's sequence registry in command help dialog
f7ce4b9 Optimize batchPush on small lists
fb43a0a ve.batchPush: add unit test to exercise long-array path
d6c7d24 Factor out RESTBase ID regular expression
ffcbf4b IndentationCommand: Use hasMatchingAncestor
d447023 Allow ommission of range from ve.dm.Document cloneFromRange
cfbc344 Don't strip empty paragraphs on paste if they are generated
01c918b Localisation updates from https://translatewiki.net.
1467947 Fix documentation of getMetadataIdRegExp

Local changes:
* Define RESTBase ID pattern in platform and fix slightly
* Bring in paste test from core, which requires platform switching.

Bug: T147607
Depends-On: Ifc1c15872a50f915e5ef8d561b3a363dc5f4d28f
Change-Id: I3eb21e115de92a67afa85b5675fcbca5b111adb6
2016-10-13 17:10:33 -07:00
David Lynch f0988bb377 Pull through CommentNode change, adding new CSS file to extension.json
Update VE core submodule to master (89ce43b)

New changes:
c3d3d29 ce.CommentNode: inline preview of comment

Change-Id: I8a7f1b69eaf84165742a1f2d10fed3594961a9e9
2016-10-05 11:21:10 -05:00
James D. Forrester 23a0cbd795 Update VE core submodule to master (b7767d0)
New changes:
4d8be3b Move hasMatchingAncestor code from FormatTool to SurfaceFragment
bd41435 Check for null keyDownSelectionState in handlers

Change-Id: I6be3fa0955f091fe6f1f925c102b20f19401efbf
2016-10-04 10:41:32 -07:00
James D. Forrester cc27ca46a3 Update VE core submodule to master (e8f7947)
New changes:
c314cb6 On CBN detach, mark contentBranchNodeChanged in the CE Surface
0e8e79e Localisation updates from https://translatewiki.net.
ae7cea9 Follow-up 3ca658ed, e3192e2d: avoid JS errors when checking for rAF
328d2db Localisation updates from https://translatewiki.net.
e76de27 Set spellcheck=true on nested contentEditables
7d80ec5 Add method to compare elements and their annotations
f7679c5 Test selections without relying on a ve.dm.Surface select event listener
e8f7947 Localisation updates from https://translatewiki.net.

Change-Id: Ib369c13662e6f8747b0fe9976555d96e198d077f
2016-10-03 10:24:04 -07:00
James D. Forrester 550a685d70 Update VE core submodule to master (e3192e2)
New changes:
05d7673 Fix 'new ve.dm.Transaction.newFromInsertion' typos in tests
4ab9676 Localisation updates from https://translatewiki.net.
f657993 ve.ce.LinkAnnotation: Only set src on nails in Firefox
3ca658e ve.init.Target: Wrap floating toolbar init in rAF
e3192e2 ve.ce.FocusableNode: Wrap updateInvisibleIcon in rAF

Change-Id: I35cb872fee3eb9d3b415e03703876632cf396839
2016-09-21 09:55:58 -07:00
James D. Forrester 2b7827869d Update VE core submodule to master (ed76839)
New changes:
7a06bb7 Fix 'new ve.dm.Transaction.newFromDocumentInsertion' typo
db9b7a7 Make ve.dm.Transaction plain data by removing the .doc property
62c662c Localisation updates from https://translatewiki.net.
455e949 TableKeyDownHandler: return early if any modifier other than shift is used
9440e38 Localisation updates from https://translatewiki.net.
ed76839 Update OOjs UI to v0.17.9

Change-Id: I70a6387e6ea6d986ed132998df592f12274adf1a
2016-09-13 13:49:43 -07:00
James D. Forrester fc6d1961ee Update VE core submodule to master (38b5572)
New changes:
aacd653 Deprecate IndexValueStore#clone in favour of slice()
90b1003 ce.TableRowNode: check we're still attached before setupMissingCell
c0ffae7 Allow users to pass in LinearData objects to cloneWithData
da9961b Localisation updates from https://translatewiki.net.
5467054 Un-break build from i18n-bot-added language
50f2e84 Allow progress dialog items to be non-cancellable
26dd5ad Don't render cursor holders outside of active node
38b5572 Fix bad serialization of DOM elements in cloneElement

Change-Id: I07e0c9b150897a6d3023845930b2dd9554d9c74e
2016-09-07 13:38:49 -07:00
James D. Forrester df536d49c6 Update VE core submodule to master (da920dc)
New changes:
f83e572 Remove items from DTH factory indexes when unregistering
7a4082b Don't remove selected content in beforePaste
9337fc8 ve.init.Target: Unset this.surface when destroying it
87a749b Check surface has been added before setting

Change-Id: Iff620659c5e25e26b7fd864b177d0f74e057d3f5
2016-09-01 10:54:13 -07:00
James D. Forrester a14ea9f688 Update VE core submodule to master (599c6e1)
New changes:
5195713 Make ve.dm.IndexValueStore ordered, append-only and slicable
8fbad4d Localisation updates from https://translatewiki.net.
ce10786 Use super property to call parent methods
9f20e05 Rename overlapsRange to isTouching
7e0e13a Fix typo in plain text file handler (extension -> extensions)
599c6e1 ElementLinearData: don't sanitize away newlines within <pre>

Change-Id: I6837b71a4270bbdfb8c15e9027f721c3f85ea907
2016-08-29 16:35:04 -07:00
Ed Sanders 5788340b49 Update VE core submodule to master (632f0a9)
New changes:
14b5fbc [BREAKING CHANGE] Move originalDomElements to the IV store and use MD5
c5d21f0 Provide methods to (de)serialize transactions

Local changes to move originalDomElements to IV store

Depends-On: I8a71c1a40ec35108d0a9a388da6f75632f8dc53c
Depends-On: I32c9b5f984fcf96e3354841ecfcd444149e8f159
Change-Id: I0fbb6324eede94558426178cbdad6b5daf0f8318
2016-08-24 18:14:14 +00:00
James D. Forrester d14c81c9dc Update VE core submodule to master (01e1b22)
New changes:
a91476f Update OOjs UI to v0.17.8
e9b6179 Remove duplicate properties defined in mixin ve.Node
4c5663c SourceSurfaceFragment#insertDocument: Don't insert on failure to convert document
7318df5 Ensure data isn't discarded when moving a row next to sparse cells
ceeb1c1 Localisation updates from https://translatewiki.net.
df12906 Table move tests
6322800 Wrap to the next/previous row when tabbing in a table
951fed5 Simplify table move tests
0feae99 Add a new row when tabbing off the end of a table
519399c Simplify definition of table selections
5e67e00 Localisation updates from https://translatewiki.net.
14479e8 Cursor off tables with up/down

Change-Id: I5643d8dc3c05fb3072b7fca869b86ca09b3a638c
2016-08-22 13:24:38 -07:00
James D. Forrester 69e5db3963 Update VE core submodule to master (f182b27)
New changes:
4ffe974 ve.ce.Surface: when setting selection just focus if focusTarget == activeElement
e915864 Localisation updates from https://translatewiki.net.

Change-Id: I1c0565aa45a95d1303ec6ba6ff3a547c5572d0fe
2016-08-15 15:36:47 -07:00
James D. Forrester 7718986e30 Update VE core submodule to master (756f7d2)
New changes:
756f7d2 Forcibly reapply selection on insertion annotation change, to move between unicorns

Change-Id: I6771929c18262c8a4a3d33ad607a8b84cd8dd7e2
2016-08-12 08:44:37 -07:00
David Lynch 3e370fa286 Update VE core submodule to master (f1fa096)
New changes:
a3ca325 Use OO.ui constants for mouse buttons

Change-Id: Ic1a4bf370c6a28f0f8049f0d6b6e7627ea0bcf84
2016-08-11 12:59:15 -07:00
James D. Forrester bfb53c90c6 Update VE core submodule to master (070fa4b)
New changes:
91e5312 Break ve.serailizeHtml down into ve.serializeXhtmlElement
1243f62 Allow nodes to dynamically become handlesOwnChildren nodes
65a2513 Only trigger Firefox data:uri image paste if there is no other HTML
7d4515c Fix TextState#getChangeTransaction bug
070fa4b Localisation updates from https://translatewiki.net.

Change-Id: I2783a5c37bb103192ce849c88c9869fb45853af1
2016-08-11 10:22:50 -07:00
James D. Forrester 5a1865b2c1 Update VE core submodule to master (f82628d)
New changes:
acf0983 Create SourceSurfaceFragment for editing source documents
8bf0568 Make keepEmptyContentBranches an option of #sanitize and simplify usage
9cad9de ce.Surface: only change selection during CleanupUnicorns if it's in the document
bda3f0b Localisation updates from https://translatewiki.net.

Change-Id: I1fa8af7e4b881238f77e0601b2b275e2b8e1cd2c
2016-08-09 08:28:35 -07:00
Ed Sanders 34ff174b85 Update VE core submodule to master (4408c13)
New changes:
e7cb202 Mark context wrappers as wrappers
20b75af Localisation updates from https://translatewiki.net.
a4dde9f Annotate pasted external text
8148301 Always preserve leading whitespace when converting for clipboard
82a35b7 TransactionProcessor: Apply annotations to ranges at the highest uniform offset
21fc1eb Restore previous selection when annotation inspector is dismissed
358181c Preserve prior valid DOM selections in showModelSelection
a0f7dba build: Bump various devDependencies to latest
0ae0f7e Follow-up Iabec6a6: Fix typo in mousemove selection update code
d69a4df Provide tools to make text bigger or smaller

Local changes for big/small tools

Change-Id: If418a1a47276cc1e1530c4a3ad6784136d8d14f8
2016-08-05 11:54:52 -07:00
James D. Forrester d9d7aec0b0 Update VE core submodule to master (2567ca9)
New changes:
6a075ba Fix internal paste sanitization to not remove empty branch nodes
8536b5d Throw exceptions when trying to access element of DocumentNode
5d5fbdd Simplify node type checks for deep copy of HTML attributes
a304645 Avoid clipboard API in Edge
af2c3f6 Localisation updates from https://translatewiki.net.
73798d9 PreviewElement: Improve and simplify #isGenerating
c108a0c Factor out creation of invisible 'icon' for overriding
dbd2c05 Use surface fragments in IndentationAction methods
92b8f84 build: Upgrade stylelint-related devDependencies
a036ae3 Use more surface fragments in paste
5df2713 Add maintainIndices param to SurfaceFragment#getText
679ad10 Use surface fragment in resizable node
b57cbf2 Update OOjs UI to v0.17.7

Change-Id: I8ce04f12ca8baca5442cdb6a9f7469bcb7e54913
2016-08-03 11:45:31 -07:00
James D. Forrester 29c984c2cb Update VE core submodule to master (2939527)
New changes:
d1a3e7d TabIndexScope: respect aria-hidden
4cbd630 Localisation updates from https://translatewiki.net.
531335a TabIndexScope: skipAriaHidden not respected, and applied to FragmentDialog
d00caf3 Ensure document slices which consist of content nodes get wrapped
baac5bd Use innerText for setting clipboard plain text
a1cf57c Check surface is set up in toolbar
2351bea Allow newDocRange to be passed to SurfaceFragment#insertDocument
5a27227 Make no change to selection if insertDocument is a no-op
1675e30 Fix table paste tests to use dynamic retain-to-end operations
2939527 Add test for internal copy/paste

Change-Id: I6a34c61eeedd8a61a8cb16116f8f67293921f2dc
2016-07-25 09:59:18 -07:00
James D. Forrester 259c411415 Update VE core submodule to master (c2c1695)
New changes:
694c97f Update OOjs UI to v0.17.6
35da0d9 Use transition timing from OOUI theme config
b1777ea Move cursor holder debug styles to stylesheet
af5f22a Use surface fragments in ListAction methods
9710c76 Use surface fragment in FormatAction
39581ac Use surface fragment in LinkAction
a3ea25c Check surface exists before trying to execute keydown command

Change-Id: Ia95a40db7d63a5e767cf590538952790457377d7
2016-07-19 11:51:26 -07:00
James D. Forrester 53a469954e Update VE core submodule to master (c96c398)
New changes:
5e107a8 Remove references to git.wikimedia.org
f2758d6 Better documentation of the data argument in sequences
45b85ca Ensure getNodesByType always returns an array
c96c398 Improve performance of table move by only setting selection once

Change-Id: I5220bf056fcc39617182fc6afcb63fa12a142315
2016-07-12 09:44:54 -07:00
James D. Forrester 52c2ac9582 Update VE core submodule to master (513f0bd)
New changes:
513f0bd Don't restore class attribute on class attribute nodes

Change-Id: Ic818bb997e9b50277d9d14e58908f0989e918495
2016-06-30 17:41:06 +01:00
James D. Forrester e1b2734ce0 Update VE core submodule to master (3ea50c4)
New changes:
67c1d75 DesktopContext: Positioning a maybe-floated not-embeddable popup
d5b6725 Localisation updates from https://translatewiki.net.
3ea50c4 Update OOjs UI to v0.17.5

Change-Id: I84ebf1947778446c573b0791c915e99fde1487a1
2016-06-29 18:02:27 +01:00
James D. Forrester 2f1a8cf3f8 Update VE core submodule to master (be57e9c)
New changes:
368e151 Fix ve.BranchNode#traverse and make non-static
bafca89 Add a node-type index
be57e9c Simplify node class comparison in converter

Change-Id: I0ebf84fdcf81ecd914c3602a92ebcf42029c6b6e
2016-06-27 20:30:45 +00:00
James D. Forrester 08437d364c Update VE core submodule to master (a5063fb)
New changes:
741fad9 BREAKING CHANGE: Update jQuery Client to v2.0.0
19266a0 Create separate CSS hack class for Edge

Change-Id: I3cfe1517496d14175cd6212203e6426fe7ae3c9b
2016-06-14 16:23:17 +01:00
James D. Forrester 9bd674b0e8 Update VE core submodule to master (fa99ac7)
New changes:
853cb46 Don't fatal when comments are copied

Change-Id: Iac100d64e7cd365576cfa66e0b0f1ef0caf21f11
2016-06-14 00:12:09 +01:00
James D. Forrester 083bf8c319 Update VE core submodule to master (f05419b)
New changes:
7ae9b64 Handle selection changes even when not dragging.
e8f1c87 Clarify EventSequencer listener slice/splice behaviour
70a2445 Rename keyDownState.selection to keyDownState.selectionState
b372e80 build: Bump various devDependencies to latest

Change-Id: I30c6b3d52977a811ce8bb6d9187fa0e139e1af8a
2016-06-10 13:08:35 +01:00
James D. Forrester 45729a4f8c Update VE core submodule to master (a7ee120)
New changes:
81eccee Fix surface registry fallbacks to values that exist
a7ee120 Document the purpose of setTimeout calls in ve.ce.Surface

Change-Id: I9aaf7744c82d417442c4b3445e5367d6a8e73700
2016-06-07 10:44:09 +01:00
James D. Forrester 6f89344d13 Update VE core submodule to master (7fe81f3)
New changes:
1cda586 Split about groups on text nodes
7b4619d ve.ui.TabIndexScope: provide a scope for tabIndex
54d7a35 Insert undo breakpoints at word breaks
9e6a562 Use cloneWithData in beforePaste
04c0921 Lower supported Firefox version in stylelint
8e0c513 Update OOjs UI to v0.17.4

Change-Id: I14cf5187954f954fb6039b28fb8b0ee18658fd21
2016-06-01 10:02:01 -07:00
Ed Sanders 5581394ea3 Update VE core submodule to master (a4a5afa)
New changes:
4a5aa37 Clean up debug bar buttons
15f016c Undo sequence input stripping if window is dismissed
e874734 Localisation updates from https://translatewiki.net.
8db33b4 Follow-up e874734: Fix build for added languages 'gom-latn' and 'gor'
79c5d51 build: Update stylelint config version and make it pass
3804f5e build: Remove grunt-cli
cea7b63 Update OOjs UI to v0.17.3
9f648f4 [BREAKING CHANGE] Always get registries/factories via surface
1252814 Add cloneWithData() utility
5ccdef3 [BREAKING CHANGE] Fix debug bar encapsulation

Local changes:
* Fix debug bar encapsulation

Change-Id: I2c5d722278c5f71b59ee2f8849d9babb5aff6af2
2016-05-30 09:53:31 -07:00
James D. Forrester 4d580b1e6c Update VE core submodule to master (a8d9a9e)
New changes:
f50f6a9 Remove directy dependency on stylelint
c45cfeb Add <BDI> support
4e5d312 Update store hashes when modifying items in store during #sanitize
eadc310 build: Bump grunt-stylelint to v0.3.0
a55520f Fix watch path for css
f016c4d Re-clone linear data on each paste

Change-Id: I2a1340261ce1f457f28c34fb1aaec7d4966783ea
2016-05-20 23:20:31 +01:00
James D. Forrester 8c7ed92288 Update VE core submodule to master (eeaf1e2)
New changes:
c54a48a build: Fix watch list (csslint -> stylelint)
58ba3d9 Add stylelint rules for @-rules
3f8c75a Stylelint: Add rule for unsupported browser features
3b96ff3 Fix minimum Opera version (15 -> 12)
9a1110b Stylelint: No ID selectors
9800bb8 build: Remove remaining references to csslint
b6ab14a stylelint: Re-enable features by names
6cc1f3c Move stylelint to npm
1d15fa0 build: Bump stylelint version to v0.2.0
ccc1724 stylelint: Use the preset rather than extending

Change-Id: I22fa8098592338a5e912aba9ad21131b21d9c0ea
2016-05-18 07:06:53 +01:00
James D. Forrester 90fe9c980b Update VE core submodule to master (12ad256)
New changes:
df692b6 SurfaceFragment: Use #getCoveringRange for linear actions
2b1a8f0 SurfaceFragment: Remove clone flag in getSelection
38b9574 build: Use stylelint instead of csslint
ae2e7e6 FindAndReplaceDialog: Check initialFragment is set when closing dialog
fb7e483 Add more colour rules to stylelint
44f0a87 Add font rules to stylelint
396a5f0 Add whitespace rules to stylelint
05453e6 Add single quotes rule to stylelint
6100ea0 Remove -ms-repeating-linear-gradient rules
d03657b Add duplicate property rule to stylelint
5540c99 Add block formatting rules to stylelint
53162ab Add selector whitespace and double colon rules to styleline
29f9c7c Add whitespace rules for media sections
c653d01 Enforce tabs and file-level whitespace (newlines)
6c69798 Disallow duplicate selectors with stylelint
3593be9 Require animations to exist using stylelint
ace2230 Disable browser hacks for unsupported browsers
5f81262 Enforce ascending specificity with stylelint
f4cdf1b Disable !important in stylelint

Change-Id: I10a4e46927fa8ff4545c7ec84a072585f6e9606c
2016-05-16 21:20:41 +01:00
James D. Forrester 6a98df0886 Update VE core submodule to master (598aa93)
New changes:
dca1ca1 Unify action test runners
f39c8e2 Update OOjs UI to v0.17.2
cafecfd Group optional action test arguments in an options object

Change-Id: Iec008781d081ab10bee21e8dc5ea287024c3fbd7
2016-05-12 09:01:27 -07:00
James D. Forrester 1468699562 Update VE core submodule to master (f335fdf)
New changes:
93ef6ad build: Bump various devDependencies to latest
8891769 Don't write clipboard key to custom clipboard if already in HTML

Change-Id: I0a5b4aeb5e470a4d9c4191bffec7f9fe50b8d9fd
2016-05-09 08:24:47 -07:00
James D. Forrester a0eea360d4 Update VE core submodule to master (9038eb6)
New changes:
b40313d Fix empty ContentBranchNode selector
219bd4a Handle about groups correctly in getNodeAndOffset

Change-Id: Ia6d5ec1c10cf7ba8a43ac2f629ba07df454e869c
2016-05-06 12:39:15 -04:00
James D. Forrester d0268830b2 Update VE core submodule to master (25be8d5)
New changes:
25be8d5 Generate new about attribute when cloning a node

Change-Id: Idf65cc13370c359b4f85921551a0753164145a70
2016-05-04 12:53:10 -04:00
James D. Forrester 04f1f0ba03 Update VE core submodule to master (4b58bf5)
New changes:
02dd558 Update OOjs UI to v0.17.1
932e232 Don't set internal item orignalHtml when converting from clipboard

Change-Id: I7415326760e4f550aec586be00edcbc924cb9b3e
2016-05-04 09:51:43 -04:00
James D. Forrester 1954a87494 Update VE core submodule to master (c63e17d)
New changes:
c63e17d Prevent touch events from focusing nodes after scrolling

Change-Id: I6150aabe9c27e02976e9a12930c6b4059168a46a
2016-04-29 18:49:11 -07:00
James D. Forrester 527ad51a8a Update VE core submodule to master (39d281e)
New changes:
3842093 Get clicked cell in browsers which don't support pointer-events:none
c069529 Hide table selection when editing and no support for pointer-events:none
2573e71 Fix linear rect when at the end of annotation in otherwise empty paragraph
abf2a5e build: Bump devDependencies to latest
4fd5271 Fix ve.ce.KeyDownHandlerFactory.name
eda09be Update OOjs UI to v0.17.0
9c4ea8f ce.Surface#showModelSelection: Update cursor holders
0b8ac09 Reinstate Firefox img hack for versions >= 38

Change-Id: I9064c4e1549badcf5b5f4473755f52c5afeabdb6
2016-04-27 16:15:35 -07:00
James D. Forrester f060555f66 Update VE core submodule to master (8b527eb)
New changes:
e91934c ce.Surface: Convenience function for selecting node contents
713c09c ve.ce.SectionNode.css: Convert spaces to tabs
ff4ed2c Use custom mime type clipboard data when Firefox >= 48
84b787b Give Chimera's layout for when then are the only thing in a branch
d85598a Simplify clipboard to only store last-copied slice
dda9863 Only move selection to pasteTarget if it is non-native
7b85870 Separate clipboard API support from custom mime type support
46deb10 Remove unnecessary temporary variables
8492168 Allow the link inspector to open without expanding the selection

Change-Id: I1926e88b89aef23f5a0f2c6e28c874549e4b9e18
2016-04-25 08:40:53 -07:00
James D. Forrester 0bfad0e203 Update VE core submodule to master (bf91965)
New changes:
443bb73 Restore OOUI PNGs for IE9
7970a6e Remove feature check for classList
8a40565 Fix getNodeClientRectFromRange to work better with nails
6657dc8 Update OOjs UI to v0.16.6
436b74a Fix pasting in IE<=10
53ca31f Fix node drop in IE9
01e0256 Remove comment about testing 'beforepaste', not required
f7f5d71 Debounce selection change events to avoid nested model changes

Change-Id: Idf3bbaa066ed857e392b91b99afa222e6f168ed5
2016-04-20 16:50:09 -07:00
James D. Forrester be1809c35d Update VE core submodule to master (d6c6a85)
New changes:
c48d7cc Add support for placing a toolbar dialog in the side margin
ee7e14b FindAndReplaceDialog#renderFragments: Protect against null surface
fc61463 Fix dm.Surface#getHistory to not return undone items
f1dff2f Introduce ve.Range#overlapsRange method
f608958 Introduce dm.Surface#getModifiedRanges
db114ed Move debugging data-url GIFs to a debug only file
1dd8194 Update RangeFix to 0.2.0
706ff4e Add 'Support: [browser]' to browser hack comments
4f52afc Inline slugs: Limit Firefox hack to versions <38
bf73326 Add classList polyfill for IE9
59d78aa Fix access of iframe-created document in IE9
a886ae1 Hide borders on linked images in IE9
5293974 Fix double-click to edit table cells in IE9
a49a02f Add some more Support: comments

Depends-On: I9c5cea3e8df1fae001d4d98c0782a04dec803776
Change-Id: I460368f509a213464e57bb95f2d726305ef608de
2016-04-18 18:34:20 -07:00
Ed Sanders f91efee467 Update VE core submodule to master (f8be8c3)
New changes:
0e3e63a Rename ve-ce-sectionNode-focused to active
0010e49 Update OOjs UI to v0.16.5
8a50357 Localisation updates from https://translatewiki.net.
a731e0e Implement ve.dm.Selection#getCoveringRange
145c754 ce.Surface: Prevent selection from spanning an active node
e430224 Move toolbar positioning logic to PositionedTargetToolbar
c4bc52c demo: Put border around whole target

Local changes:
* Adjust to cope with the new positioned toolbar class

Change-Id: I47053af8a9efb0f4c267543616a5d6c80ae1534f
2016-04-11 07:06:13 -07:00
James D. Forrester 4479c56b5a Update VE core submodule to master (5109934)
New changes:
14a02d3 Add article/section nodes for isolated editing sections
fa1b64a SectionNode: Don't set self as active node if a descendent is active
90f05cc Sections: Make sections & articles un-unwrappable
9518d4b SurfaceFragment#delete: Check removal is not a no-op
5109934 Section nodes: Use opacity to indicate active-ness

Change-Id: I3e89e8fa2db130f21e7d58231043b775ec51dc18
2016-04-05 19:03:06 +03:00
James D. Forrester 4b8570dd38 Update VE core submodule to master (c2561bb)
New changes:
055a40a LinearArrowKeyDownHandler: more tests
429fe72 Localisation updates from https://translatewiki.net.
94f9068 Localisation updates from https://translatewiki.net.
b82cb77 Allow toDataElement to return an empty array
039ea22 Follow-up 94f9068: Fix build for added language 'khw'
ea5f51c build: Bump various devDependencies to latest
64950f5 Factor out undeletability from internal-ness
2f0a034 Document#writeElement: Avoid double-space in error message
4552f5c Table editing: Refactor active table node to be more generic
7670ed8 DSVFileTransferHandler: Use factories to create the right type of table
feefeda DSVFileTransferHandler: Skip empty terminal lines in input files

Change-Id: Ifa5487c7d79553634e3e1a810a43dcbf462526eb
2016-04-02 13:53:19 +03:00
James D. Forrester 0b39a17870 Update VE core submodule to master (18bac29)
New changes:
3e587b8 sync-gh-pages: Fix "oojs-ui-apex.vector.css" 404 Not Found
0e53633 Toolbar: Add tooltip to structure group
7f0b6f7 Remove icon properties from windows
3a612b2 Fix positioning of mobile windows

Change-Id: I2a6995e61a76abfc0f77d3301c7c76593756463c
2016-03-29 10:10:26 -07:00
James D. Forrester 8910172d01 Update VE core submodule to master (59e4090)
New changes:
d195e07 dm.Document#newFromHtml: Allow HTMLDocument argument as well as string
59e4090 Localisation updates from https://translatewiki.net.

Change-Id: I747d1406ffabf3682eca8b4d5a812d8b54d7e6bf
2016-03-28 09:53:45 -07:00
James D. Forrester e46e81916d Update VE core submodule to master (b286f7f)
New changes:
1f298ce Update OOjs UI to v0.16.4
650776a Improve drop target preview for block node dragging
77fb965 LinearArrowKeyDownHandler: test more
0f669bf Fix behaviour of SurfaceFragment#annotateContent
fa08fca ve.ui.ContentActions: Add tests
3f4185f Tests: Add speed warnings to UI surface constructors
4bee4eb Localisation updates from https://translatewiki.net.
b678dbe Refactor getNodeAndOffset
254a802 Localisation updates from https://translatewiki.net.
0f0d980 SurfaceFramgent: Guard against tx.getModifiedRange returning null
603abe4 TriggerRegistry: Alter trigger for paste special on Mac to OS standard

Change-Id: I512c9b3a99673a876040e0fce789483e7221a78c
2016-03-25 15:30:43 -07:00
Ed Sanders fd3683e414 Update VE core submodule to master (d1ce123)
New changes:
6cf8864 Follow-up eb97c1f: Fix build for added language 'inh'
d1ce123 SpecialCharacterDialog: Use getReadyProcess promise to wait for char list

Local changes:
* SpecialCharacterDialog: Defer loading of character list.
  Saves ~40k for most users who never use it.

Change-Id: I74b30fee96e1ae4463ed28c19bef4b515330220e
Depends-On: I45dc9f788aa5bd702b91ffd9f63b05b1f4760691
2016-03-22 09:15:23 -07:00
James D. Forrester 7df0e7589e Update VE core submodule to master (eb97c1f)
New changes:
e661245 Localisation updates from https://translatewiki.net.
d0bac53 ElementLinearData: Add test for sanitize conversions
53988e4 ElementLinearData: Test blacklist unwrapping
8593098 ve.dm.Model: Remove unused, untested method 'hasAttributes'
6247dd2 ce.Surface: Add tests for table strip delete
bee1851 ce.Surface: Add larger table strip-delete test
42d39e7 ce.Surface: Test table navigation with enter/escape/tab/shift-tab
5d248f9 Remove TableCaptionCommand
a86ad04 PreviewElement: Check node is a GCN, and always return a boolean
b518839 Localisation updates from https://translatewiki.net.
8834e9c ce.Surface: Allow any key code in the key handler tests
6b3ea6a ce.Surface: Linear arrow tests for block node
026999d Localisation updates from https://translatewiki.net.
eb97c1f Localisation updates from https://translatewiki.net.

Change-Id: Ic5853116d97623316d9a6bbacda2ecab9e4b49d5
2016-03-22 15:12:36 +00:00
James D. Forrester fa72f8b1c1 Update VE core submodule to master (794f30f)
New changes:
4cec280 build: Bump devDependencies to latest
33a7ae4 Use throttle instead of debounce for find/replace rendering
a7e6c2d Folow-up I634b70c268: Move table paste logic out of external paste if block
82054f0 Pass range or selection to tests
dcd31d0 Simple table paste test
794f30f ce.Surface.test: Add some more complex cases of table pasting

Change-Id: Ibebb19b82d4902219acebf482c9fa7e7cf3d190b
2016-03-17 19:39:44 +00:00
James D. Forrester 3629b75377 Update VE core submodule to master (8af3687)
New changes:
c12a674 Debug bar margin fixes
4c9be2f ve.dm.ElementLinearData#getRelativeOffset: Add a missed exception-throwing test case
1dce6e0 Trigger plain text transfer handler if HTML paste was unformatted
97dd207 Ensure all test documents have an internal list
dc7a335 Transactions: Ignore internalList changes in getModifiedRange
bae50ca Update OOjs UI to v0.16.3
b9d6c3c DataTransferItem: Ensure getAsString always returns a string (as documented)
5d8ade5 ElementLinearData: Include all non-content nodes is isPlainText loose mode

Change-Id: Ibfe66addc669e5d6007c738d209be6d7ef61e6d7
2016-03-17 14:08:06 +00:00
James D. Forrester db49d4cb83 Update VE core submodule to master (08b32fd)
New changes:
98ade11 FocusableNode: Protect against calculateHighlights being called on null surface
2e966ae Sanitize the paste context in the same way as the paste data
b7dd849 dm.Document#shallowCloneFrom*: Remove unnecessary internalList.clone()s
b10fd9f Localisation updates from https://translatewiki.net.
b6a5f11 Table import: Only import the internal list on external paste
08b32fd Re-order paste logic so $pasteTarget sanitization can be skipped

Change-Id: I8a2aa43efcd4e55e581a711c222a4c3f832bd5f2
2016-03-15 11:45:51 +00:00
James D. Forrester 39818dbb36 Update VE core submodule to master (c1e1bd7)
New changes:
a4707b1 Ensure table cells are ce=true before computing offsets
c1e1bd7 Localisation updates from https://translatewiki.net.

Change-Id: I8b3d9dacc213c9be9548f7e112dd3e786451152a
2016-03-14 00:57:29 +00:00
James D. Forrester 6b3ed57eed Update VE core submodule to master (5f451d2)
New changes:
1c654c0 AnnotationContextItem: refactor applying a change to the annotation
ea2b30f Localisation updates from https://translatewiki.net.
5f451d2 CommandHelpDialog: Use this.constructor.static

Change-Id: I5bde122199920ffb986fbffbc46ea6e3369a59e3
2016-03-13 13:44:41 +00:00
James D. Forrester dadd8b9cd2 Update VE core submodule to master (bf1f2cc)
New changes:
6fd5cb7 Update OOjs UI to v0.16.2
ec19ac3 CommandRegistry: Provide getNames method in command registry
b856b17 Protect against calling .classList on text nodes
bf1f2cc KeyDownHandlerFactory: Prevent duplication in handlerNamesByKeys

Change-Id: I0d53340427da414a44112497295112e67883db13
2016-03-10 08:20:39 -08:00
James D. Forrester 3986326050 Update VE core submodule to master (5d4881e)
New changes:
51c16df LinkAnnotationWidget: Implement createInputWidget's documented config parameter
6678cc3 Localisation updates from https://translatewiki.net.
5444bbe build: Bump various devDependencies to latest
c8c93ab Search documentNode for unicorn, not document
2cf61b6 Use normal whitespace for focusable nodes
628de0e DimensionsWidget: Return numbers as documented
7c48393 ve.ui.CommentInspector: Simplify autoresizing

Change-Id: Ic70cf04898beac2a675851925e4978593bc6ac39
2016-03-07 15:04:40 -08:00
James D. Forrester 022d7c2694 Update VE core submodule to master (f77ac2b)
New changes:
4cef3da ve.test.utils: Don't require QUnit expect() anymore
70ee810 Localisation updates from https://translatewiki.net.

Change-Id: If37267012a10e611b3eae63e58a5da3c77ab8fdb
2016-03-04 15:56:36 -08:00
James D. Forrester 9e060a27e2 Update VE core submodule to master (46f34e1)
New changes:
a560a59 FocusableNode: forcibly update the active link on click
78572e8 FocusableNode: Clean-up CSS
1d5efd2 Pass command and sequence registries to the surface
0816db3 Abstract target widget creation

Change-Id: I93774021c41392e6e829904a571b703a0762d46b
2016-03-03 11:48:03 -08:00
Ed Sanders 62d16e5a8a Update VE core submodule to master (ac24b50)
New changes:
0b7e689 FindAndReplaceDialog: don't use tabindex
17b10a5 Localisation updates from https://translatewiki.net.
a4133e4 [BREAKING CHANGE] Make whitespaceHtmlCharacters a real static property

Local changes:
* MWEntityNode: Fix lookup of whitespaceHtmlCharacters

  Property is now in 'static', and use registry to look up
  TextNode by symbolic name.

Change-Id: Ied8c0c6feb69141c7c53fc4cc790774dee2cb63c
Depends-On: I7537b46a9fd58dfb2bd18dc4ed469aa221b96e86
2016-03-03 08:13:33 -08:00
James D. Forrester 078886b5a4 Update VE core submodule to master (6b85afc)
New changes:
2fe0d1a Localisation updates from https://translatewiki.net.
6b85afc Update OOjs UI to v0.16.1

Change-Id: If35da77772d2bd188fe26372a02fe8cbfa6e304d
2016-03-01 16:35:43 -08:00
James D. Forrester dd3045814d Update VE core submodule to master (035c553)
New changes:
8e94428 Make getSelectionState preserve collapsedness
3ee3b93 FindAndReplace: Remove getNativeRange() optimisation
e7d6257 WindowAction: Don't emit position event
b528a56 FindAndReplace: Keep results cache to reduce re-renderings
5b7b6bb Localisation updates from https://translatewiki.net.
dcf2734 Use offset paths in selection state tests
cea8c77 Localisation updates from https://translatewiki.net.

Change-Id: I0e0d66007ec9b3d6cc10bc75ac7b9278edcad71b
2016-02-29 09:56:30 -08:00
James D. Forrester ab4d3e956b Update VE core submodule to master (0371bbe)
New changes:
0371bbe [BREAKING CHANGE] Refine VisualEditorSupportCheck call and document pattern

Local changes: Use new VisualEditorSupportCheck pattern

Change-Id: I7dc0c360b54a93397180b18d88d72532e439da5c
2016-02-26 12:26:56 -08:00
James D. Forrester e7db4517d1 Update VE core submodule to master (8450592)
New changes:
cea967f Use upstream highlightQuery method in OOUI
07bcff1 Update OOjs UI to v0.16.0
6296fd4 Handle Enter keyPress without matching keyDown
3c2a3b4 Localisation updates from https://translatewiki.net.
c2d64c9 GeneratedContentNode: Check model existence before using
c1a350a FindAndReplace: Always focus dialog when using command
cdd9581 Follow-up I534ce003: Surface#getViewportRange: Fix typo

Change-Id: I4c61e85d43486731e0b20d3a26f23fabe7482861
2016-02-25 15:54:27 -08:00
James D. Forrester 7d75361201 Update VE core submodule to master (2279bbb)
New changes:
bf122f6 Check node is an element before doing classList.contains
9e72ee8 Localisation updates from https://translatewiki.net.
5ebe94c Language widget: Use 'super' for parent methods
5a5adef Localisation updates from https://translatewiki.net.
6ac4f1a LanguageSearchWidget: Simplify prefix search
285a31a Localisation updates from https://translatewiki.net.
458cb58 Localisation updates from https://translatewiki.net.
8607a1a Documentation consistency
2279bbb Localisation updates from https://translatewiki.net.

Change-Id: I68c9ebccd3d482079261ab9357be46e05fa18f08
2016-02-22 13:38:51 -08:00
James D. Forrester cebaacb546 Update VE core submodule to master (cdfd84e)
New changes:
c02ea46 Clarify documentation of directionality methods
43c9b6f Move initialisation browser support checking from downstream
c89be66 Localisation updates from https://translatewiki.net.
5fb7907 Follow-up c89be66: Fix build for added language 'nan'
fc74fab dm.ElementLinearData.compareElements: Add a few missed test cases

Local changes:
Use initialisation browser support checking from upstream

Depends-On: I27a8e7b4376647f01cee648de987dc3ca6a060d5
Change-Id: I3fc79422ee5e487cf5fae3929fe492f21cd2840a
2016-02-17 20:04:16 -08:00
James D. Forrester f450c09e6e Update VE core submodule to master (33d090b)
New changes:
0e1f948 Localisation updates from https://translatewiki.net.
621f30e Localisation updates from https://translatewiki.net.
73c9829 FocusableNode: Bind position events later
75f2eb9 FocusableNode: Change mouseout events to mouseleave
6aeaabb Fix cache invalidation of SurfaceFragment.leafNodes
32ceee2 Share getSelectedNode logic between Surface and SurfaceFragment
a9782a0 ve.ce.Surface: Cache current selection
4fd5da1 Move model fallback for getDirectionFromSelection into method
b829a53 Move selection directionality to ve.ce.Selection
ba43c98 Replace some $.hasClass with Element.classList.contains
2beaa08 Localisation updates from https://translatewiki.net.
2ba1197 ce.TableNode#onSurfaceModelSelect: Table overlay optimisation
9d00622 Localisation updates from https://translatewiki.net.
33d090b Update OOjs UI to v0.15.4

Change-Id: Iab28b0513b075b4dfb1b207a55a0b297c3cea885
2016-02-16 18:27:53 -08:00
James D. Forrester bef99351b1 Update VE core submodule to master (6f0c9c2)
New changes:
fbd2dbd Localisation updates from https://translatewiki.net.
a455f9e Fix structure of broken nested lists from Google Docs
2f50c78 Table overlay: Prevent unnecessary scrolls when editing cells
8b1208c [BREAKING CHANGE] Move scrollIntoView down into the surface

Change-Id: I181d3277e745aa90cdf278eee28b640b570cbff3
2016-02-13 02:04:19 +00:00
James D. Forrester e49ae98064 Update VE core submodule to master (55dd20e)
New changes:
7da4868 After KeyDown, check unicorns before polling the surfaceObserver
6f4153f Document annotation content container usage

Change-Id: Iaa23da99f2f789e7a41fbec18ccc1c5b22830542
2016-02-11 09:40:23 -08:00
James D. Forrester 2d278a9ff9 Update VE core submodule to master (5ea4fdf)
New changes:
cfef99f build: Bump various devDeps to latest and make pass
52dfc0d Localisation updates from https://translatewiki.net.
cf23fba SurfaceFragment: Handle multi-range annotations correctly
ac8bfe8 Localisation updates from https://translatewiki.net.
36ab134 Update OOjs UI to v0.15.3
fd38a4a Use plain DOM in ve.ce.LinkAnnotation
016e208 Localisation updates from https://translatewiki.net.
f5ff675 FocusableNode: watch for image loaded/layout changes for invisible icons

Change-Id: Idfb2175ef5c0ad1e557f341325878fd8c46e169a
2016-02-10 17:21:36 -08:00
James D. Forrester 1146b1656a Update VE core submodule to master (c283af7)
New changes:
c231686 getViewportDimensions: Fix calculation of 'bottom'
76d7f27 KeyDownHandlers: Make Tab behave the same in table cells as in table selections
19891d6 ResizableNode: Remove assumption about 'width'/'height' attributes
380ff04 cloneElements: Use the correct node type when cloning
5e31903 Localisation updates from https://translatewiki.net.

Change-Id: I1225329b99779d84390ca5ee70de5b431cd8cbda
2016-02-07 17:32:57 -08:00
James D. Forrester 04259b793a Update VE core submodule to master (f170d48)
New changes:
7d6d45c update-oojs-ui: Don't copy across oojs-ui.js, we don't use that
9ff6c85 Utility function for "index of node in its parentNode's childNode list"
fe6bb82 Remove uses of plain .contentEditable
890a9d7 VE demo: allow saving some markup to localStorage for testing
2504758 Localisation updates from https://translatewiki.net.
7e9f2de Localisation updates from https://translatewiki.net.
35664d6 Convert a bunch of HACK:/XXX:/FIXME: tags to a task reference
f170d48 Localisation updates from https://translatewiki.net.

Change-Id: I91af16e9de4ff60eb1bc4ca2585b5fe79121d095
2016-02-05 15:24:26 -08:00
James D. Forrester a68330dda8 Update VE core submodule to master (7c7aa59)
New changes:
635979b Localisation updates from https://translatewiki.net.
cb724cf Update OOjs UI to v0.15.2
4218e04 Defer creation of cell slugs until end of cycle

Change-Id: I21fd0935b4a68c87714f55f596416c8f3230288d
2016-02-02 15:08:53 -08:00
Ed Sanders 6d97858188 Update VE core submodule to master (53476f4)
New changes:
b558ef1 Localisation updates from https://translatewiki.net.
53476f4 Move logic for showing icon for invisibles to focusable node

Change-Id: I4bda82918cb54a3cc77523137fa297960b1b1ba0
2016-02-02 10:06:43 -08:00
Ed Sanders 74358498da Update VE core submodule to master (70ff8cc)
New changes:
242ab45 DesktopContext: Float the context when it goes beyond the viewport
405c44d Rename TableContext to TableLineContext
6c564be Sort messages alphabetically
70ff8cc Introduce table and table cell context

Change-Id: I4357162bc192c90f99ca0aec12eb67bf848e5504
2016-02-01 10:51:26 -08:00
James D. Forrester a6e24f4643 Update VE core submodule to master (81fef4b)
New changes:
d1673d9 Localisation updates from https://translatewiki.net.
1b3516c Localisation updates from https://translatewiki.net.
81fef4b Follow-up 1b3516c6: Fix build for added language 'cdo'

Change-Id: Iddae595684554af653eac3bd59e55364eff73d3e
2016-01-31 15:37:55 -08:00
James D. Forrester 32e8348543 Update VE core submodule to master (c5bf879)
New changes:
1cbcc2f Rewrite ve.BranchNode#getNodeFromOffset to be non-recursive
d4ee023 Move table cell mergeability test to Selection and improve
8a741d3 ve.Node.findParent: Shortcut for specific traverseUpstream
37c7155 Use mouse position to place selection after double clicking a table cell
b200954 Localisation updates from https://translatewiki.net.

Change-Id: I7b4e5b4b5c2f7d5262b4d06417c587b212ba8b69
2016-01-29 14:57:49 -08:00
James D. Forrester 73399b367d Update VE core submodule to master (a0308f0)
New changes:
a0308f0 Sanitization: Add option to perform per-node sanitization

Change-Id: I18bbb137995f5ae2ba2109a4f86554d62f21d868
2016-01-29 10:14:35 -08:00
James D. Forrester 2390f13d76 Update VE core submodule to master (9704a43)
New changes:
9704a43 ClassAttributeNode: Handle undefined attributes

Change-Id: Ib1df33ea484a7bc4abf63a3644ad68bc8a3de711
2016-01-29 08:31:41 -08:00
James D. Forrester dc3aa815ed Update VE core submodule to master (526e1bf)
New changes:
79546b8 Tables: Add slugs for missing cells in sparse tables
f723301 Tables: Multi-cell copy and paste
2548fac Spoil the fun of guessing what current[0] and current[1] mean.
db7c9aa Localisation updates from https://translatewiki.net.
526e1bf Tables: Move columns and rows

Change-Id: Id8d5f091cbca36c54f78f90bd2ac7aa2e6dacd1b
2016-01-28 13:14:17 -08:00
James D. Forrester 674fface5b Update VE core submodule to master (155ab43)
New changes:
cedfdcb Localisation updates from https://translatewiki.net.
c433eaf ve.dm.Scalable: Prevent validation from exploding on bad input
8b47ed5 Tables: Add getMaxColCount to count total columns in a table matrix
30925f3 Update OOjs UI to v0.15.1
b299804 Follow-up Ic506950: Use new filenames for OOUI stylesheets for demo
b7c3d92 Sequences: Check command against surface's allowed commands

Change-Id: Id967945b1831bbfe9212d26e58ccb17d42b78cd5
2016-01-26 15:57:29 -08:00
James D. Forrester 90f29e3420 Update VE core submodule to master (0329d1d)
New changes:
7626140 Localisation updates from https://translatewiki.net.
1b51288 Refactor unicorn handling in ve.ce.Document#getNodeAndOffset
2458c1a Localisation updates from https://translatewiki.net.
af4a978 Initial cursor position: outside any nails
0ac9d6c Fix node length calculation
9dcb412 Fix logic for showing alien context item
0c4c39d Localisation updates from https://translatewiki.net.
92bb6d3 ElementLinearData#Sanitize: Remove meaningless HTML whitespace by default
4e2aa21 ce.Surface: Show deactivated selection when cursor is collapsed
b448f7d Remove background colour form table headers
87aa8da Follow-up I04ca47: Adjust comment to note we still care it's native

Change-Id: Ie1ee956d7e488e3e9b8494bfaf739c760f8a76b7
2016-01-22 12:25:39 -08:00
James D. Forrester 9a06bac345 Update VE core submodule to master (3a92f7e)
New changes:
00e283c Update name of language icon
de64680 Put construction of table context items in loops
e3fabca Delete cross-branchNode selections etc. on compositionstart
338a57f TableAction: Use first non-empty cell data when merging
55a003e Update undoIndex before performing redo
38601f8 Localisation updates from https://translatewiki.net.
6a5fa59 Fix styling of toolbar separators
85533c0 ve.ce.Surface#onDocumentInput: Minor documentation tweaks
d69fe65 Localisation updates from https://translatewiki.net.

Change-Id: I7f137db9d4ed3bf5baa6c3bd555186504d55c612
2016-01-18 10:42:48 -08:00
James D. Forrester 6cef53c2df Update VE core submodule to master (c54e847)
New changes:
9263c38 ve.ui.Surface: Account for null viewport
6c0d5d6 build: Update various devDependencies to latest
523e241 ve.ce.minImgDataUri was considered invalid in Safari
9eeac0f Localisation updates from https://translatewiki.net.
30d3d7b Localisation updates from https://translatewiki.net.
c54e847 Update OOjs UI to v0.15.0

Change-Id: I9aa82d0170194802381dbf4dcf980a9f7fa6161d
2016-01-12 15:57:17 -08:00
James D. Forrester c2c800237f Update VE core submodule to master (a509b1c)
New changes:
f09a32d build: Bump file copyright notices for 2016
cbb3419 ResizableNode: Factor out getCurrentDimensions
a509b1c Localisation updates from https://translatewiki.net.

Change-Id: Iff34e113542f76b2129101c502f1324100f02995
2016-01-05 14:25:41 -08:00
James D. Forrester 419bb81025 Update VE core submodule to master (a909501)
New changes:
1ab3b78 Localisation updates from https://translatewiki.net.
92abd0c [DEPRECATING CHANGE] ve.ui.Surface: Make an OO.ui.Widget and implement #setDisabled
479b902 Localisation updates from https://translatewiki.net.
7723bcc Unbreak build from i18n-bot self merging
d1c5207 Move white-space:pre-wrap hack to ContentBranchNode
7bbded7 Annotation context items: expand the selection if no annotations
c9ca0a3 Localisation updates from https://translatewiki.net.
8dfabec ve.dm.Document: Rename cloneSliceFromRange to shallowCloneFromRange
7fee02d Localisation updates from https://translatewiki.net.
2176d88 Localisation updates from https://translatewiki.net.
a5ab6f4 Unbreak i18n lists
915b8c2 Localisation updates from https://translatewiki.net.
469c8be Localisation updates from https://translatewiki.net.
34f4a48 APIResultsProvider: Refactoring resetting of queue.
584fc0f Localisation updates from https://translatewiki.net.

Change-Id: I9c165c8df7a48560ab84fabe4ee2f8d244c37203
2016-01-03 11:37:34 -08:00
James D. Forrester 8d35988c31 Update VE core submodule to master (c9ab407)
New changes:
a51febb build: Upgrade various devDependencies to latest
4e5b524 Localisation updates from https://translatewiki.net.
f43cab6 ve.ce.Selection: Fix docs and variable names
f99a93d ve.ce.Selection: Introduce isFocusedNode && isNativeCursor methods
102f667 ve.ce.Surface: Remove selection type awareness from #focus
f9b586b ve.ce.Surface: Remove selection-type awareness from fake selection rendering
7f57d55 ve.ce.Surface: Remove some selection-type awareness from handleInsertion
75a9116 ve.ce.Surface: Remove selection-type awareness from showModelSelection
00e500b ve.ce.Surface: Remove selection-type awareness from fixShiftClickSelect
428e4a6 ve.ce.Surface: Remove selection-type awareness from checkSequences
154779c ve.ce.Selection: Freeze focusedNode when selection is created
849d758 Fragment delete: handle a document with no valid content offsets

Change-Id: I562f76bff0ab8e135d4cf8cb133374f1b5288e9c
2015-12-14 09:59:03 -08:00
Ed Sanders aa2e0af348 Update VE core submodule to master (19e50b7)
New changes:
e536779 [DEPRECATING CHANGE] Rename link inspector tools
3899967 Localisation updates from https://translatewiki.net.
0a1c09e [BREAKING CHANGE] ve.init.Target: Upstream the action toolbar from sa/mw desktop targets

Local changes:
* Refactor tools for the breaking change

Change-Id: I676af9c50b09ef007926240eb2327d1a0fdd80f5
2015-12-11 10:03:02 -08:00
James D. Forrester 356b6e153f Update VE core submodule to master (601ba8c)
New changes:
234da0b Annotation: Rename 'inferFromDom' to 'inferFromView'
8c1ed4c Fix more typos
c515123 Fix typos
36a7d1f Count chunk list bounds more carefully

Change-Id: Ibc1b385e0c6d8fafdcd5ab4ff6e613c6d491e2a7
2015-12-10 12:42:02 -08:00
James D. Forrester a7d2123d60 Update VE core submodule to master (cd979fe)
New changes:
d05ccd6 LinkInspectorTool: Move link specific code to LinkInspectorTool
51f5358 Localisation updates from https://translatewiki.net.
98d86e5 TextState(Chunk): Rename 'tag' to 'element'
6b1ea16 TextState: Recover annotation models via .data('view').
2d72d37 Localisation updates from https://translatewiki.net.
72b50d9 Update OOjs UI to v0.14.1
cd979fe build: Add grunt-tyops and make pass

Change-Id: Ic1be59b024993ed817a4045d7d7950a073b0005d
2015-12-08 17:53:20 -08:00
James D. Forrester 88c81b0bc4 Update VE core submodule to master (06c5ed7)
New changes:
08abcd1 Fix JS error when unselected GeneratedContentNode rerenders
6ebb09f Fix inherit documentation of AnnotationContextItems
6787331 Localisation updates from https://translatewiki.net.
b3d7f93 Localisation updates from https://translatewiki.net.
d9156a2 Make MediaSizeWidget work without default/original dimensions

Change-Id: I36f34365db23bcdf1408af8361ed7242025d1278
2015-12-07 08:51:21 -08:00
James D. Forrester b57aff905c Update VE core submodule to master (73810c1)
New changes:
d8b91db Forward-delete at end of document shouldn't do anything
dd3fed5 Localisation updates from https://translatewiki.net.
f199ce4 Limit the height of desktop-context popups
94920c0 Remove unused title properties from toolbar dialogs
e8321da LinearDeleteKeyHandler: cope better with aliens

Change-Id: I997b7f391b5f623f0d02fba9b8a9e7cf834b2735
2015-12-04 17:12:38 -08:00
Ed Sanders be45a9172e Update VE core submodule to master (d6f2d75)
New changes:
94f2edb Paste sanitization: Check for whitespace *before* newlines
c981b96 Fix-up Ie5414f62c: Fix call to non existant method
d6f2d75 FindAndReplace: Implement whole word matching

Local changes:
* Message and config for FindAndReplace whole word matching

Change-Id: I103b9b1ec92c0aae1e51e1a94db6b8b5e759dbea
2015-12-03 09:40:12 -08:00
James D. Forrester dd79cc13b3 Update VE core submodule to master (71cbcff)
New changes:
c04d8c0 Diff richtext to build model changes
25c95be Localisation updates from https://translatewiki.net.

Change-Id: Idf95b655dbed4f56633d91c52fc8b90308438d45
2015-12-02 16:16:20 -08:00
James D. Forrester 79c4737fb3 Update VE core submodule to master (d72270f)
New changes:
ee3c787 When the cursor is inside a table cell, tab moves between cells
c6b338a Use white-space: pre-wrap instead of using &nbsp; for spaces
83e394b Define 'space' as a trigger key
b0c4535 Localisation updates from https://translatewiki.net.
1336c5c .mailmap: Add some extra addresses and change default for rmoen
a67ee68 AUTHORS.txt: Be more strict about 'principal' authors and update addresses

Change-Id: I4193774aa0d45d3751386bd2cfbd6d6717c0a81a
2015-12-01 19:10:45 -08:00
James D. Forrester eb61b1a936 Update VE core submodule to master (3ab893c)
New changes:
cd57cf5 Do not skip past adjacent unicorn in different branch node
6c6780a Add documentation to setupOutlineItem in SpecialCharacterPage
6f6d4a8 DimensionsWidget: Check for numeric-ness of inputs
d2cd646 Fix range mapping logic for node merging on deletion
6891355 build: Be more consistent in globs' applicability
1a420be Localisation updates from https://translatewiki.net.
8e562c6 Add parameter to SpecialCharacterDialog onListClick documentation
5087b94 Localisation updates from https://translatewiki.net.
d9961d7 Update OOjs UI to v0.14.0
b89ea54 Add tab and shift+tab to blocked triggers list
5510f84 Change behavior of keydownhandler execution
3163552 isBlockedTrigger should use meta+ for macs, not cmd+
e55a590 Add cmd+[ / cmd+] as extra bindings for indent/outdent trigger
dc21fd8 Collapse table selection when pressing escape
a2c1bab Localisation updates from https://translatewiki.net.
ec47888 Localisation updates from https://translatewiki.net.

Change-Id: I41a709bd6a3971adbdc99f209fdd321861632d02
2015-11-30 10:00:54 -08:00
James D. Forrester 015547aca7 Update VE core submodule to master (0e19dde)
New changes:
1298615 ElementLinearData: Sanitize away plain text linebreak characters
a7be116 Localisation updates from https://translatewiki.net.
654a908 Add ve.ce.Surface selectActiveLinkContents

Change-Id: I3d1172b4c43a627058da587250bae731c25890cc
2015-11-23 10:48:37 -08:00
Ed Sanders 0e30e328ba Update VE core submodule to master (e8c6f7d)
New changes:
b44ef6d [BREAKING CHANGE] Fix WhitespacePreservingTextInputWidget API
96e4034 Localisation updates from https://translatewiki.net.

Local changes:
* Use new WhitespacePreservingTextInputWidget API

Change-Id: I9920a3b5c8c3e8a241dcfdd1bde20f4ea1cf78b6
2015-11-20 15:44:49 -08:00
James D. Forrester 41c94e4181 Update VE core submodule to master (5b07e0c)
New changes:
64d8708 Localisation updates from https://translatewiki.net.
63eacf2 Annotation tests: Allow originalDomElements preservation
bb8fc4b Strip RESTBase IDs when comparing annotations
56c7dce Paste sanitisation: Strip Parsoid IDs when pasting
d271d4d Use ES5 trim instead of jQuery

Change-Id: Icf493a6984bbc2470abb158fcfe54ae44724058a
2015-11-20 12:08:57 -08:00
James D. Forrester 8bd08a9af2 Update VE core submodule to master (68f9f5e)
New changes:
be526b3 Surface paste: Update comment about PNG fallbacks for HTML
29455b9 PreviewElement: Allow preview elements with no model

Change-Id: I8aa179045ec683bf889ea3597aada9396d7ac722
2015-11-18 11:20:33 -08:00
James D. Forrester b17029ccd9 Update VE core submodule to master (a62fe36)
New changes:
3951dc1 Localisation updates from https://translatewiki.net.
a92d028 Introduce view selections to abstract getSelectionRects logic
f3030e0 Move getSelectionBoundingRect logic from TableNode to TableSelection
679300d Localisation updates from https://translatewiki.net.
5f7ebcd Update OOjs UI to v0.13.3
aa87e56 Unbreak complex HTML paste by ignoring screenshot fallbacks
afe5d45 Paste handlers: Break after the HTML data item

Change-Id: I6ce7c41fac995e718a88d8c2366ff642ef6dfd06
2015-11-17 19:24:51 -08:00
James D. Forrester 09da242d6a Update VE core submodule to master (3549158)
New changes:
fbb2b2e Localisation updates from https://translatewiki.net.
933f979 mailmap: Remove unused alias for ttijhof@wikimedia.org
72ce0e6 Better faking of onselectionchange
0d550d9 Paste sanitization: Treat <br> breaks as node splits
966b0a1 Localisation updates from https://translatewiki.net.
414cebb ContentAction: Add 'collapseToEnd' option to 'insert'
60de784 demos: Fix 'TypeError: ve.demo.target not a function' in desktop-dist.html
71f272e Localisation updates from https://translatewiki.net.
60376d2 RangeFix: Update from 0.1.1 to 0.1.2
2470042 Localisation updates from https://translatewiki.net.
7b1cdda Range offsets: Special case when adjacent to a nail
7ecde6c Add ve.ui.AnnotationContextItem

Change-Id: Iaab4cb7f9d4ec9d7120f42350fd613458c996c85
2015-11-16 10:49:53 -08:00
Ed Sanders 9bcc61e195 Update VE core submodule to master (77d786a)
New changes:
95589a6 test: Add a Rakefile for new CI requirement
1a4497e ve.ui.DialogTool: Do not require that a command is set
cbf1bff ve.ui.Tool: Fix documentation for getCommandName
530022d Localisation updates from https://translatewiki.net.
9529093 Update OOjs UI to v0.13.2
b8d6c15 Add icon: Rename 'insert' to 'add'
2f3015b Update OOjs to v1.1.10
78ceb18 Fix deletion inside a structural node at start/end of document
ce3e9a4 ve.utils: Use binarySearch from OOjs

Local change:
* MW test cases for new structural deletion logic

Bug: T52250
Change-Id: I643449c1fa08ea12c8c3aa13f4a4b97d8876990d
2015-11-11 12:35:53 -08:00
James D. Forrester f0887bca81 Update VE core submodule to master (6f8f3db)
New changes:
cda23ea CommandHelpDialog: Layout tweak
a4fcff4 Localisation updates from https://translatewiki.net.
dac9067 Remove unused jquery.visibleText library
58beb8c lib: Add AUTHORS, LICENSE and README files for libraries missing them
efb1749 Surface drop: Show branch node drop markers for file drop
a55574b Localisation updates from https://translatewiki.net.
0ad3133 Add ve.Scheduler
55cc3e0 Close inspectors before executing a ve.ui.Tool command
6132af8 Localisation updates from https://translatewiki.net.
24fed63 Watch for hashchange on the demo
0f04339 ve.ui.Sequence: Allow sequences to insert content

Change-Id: Idf26d9fb1970b994a54085b43fcc848b005da273
2015-11-09 17:36:27 -08:00
Ed Sanders 216d0ea7a7 Update CommandHelpRegistry calls for breaking change in core
New changes:
281b543 Slugs: Remove vertical alignment hack
d6ddbe4 Localisation updates from https://translatewiki.net.
94bb263 Follow-up d6ddbe4: Fix build for added language 'sd'
bc8579d [BREAKING CHANGE] CommandHelp: Cleanup registry API

Change-Id: I65e2bfc299fbd60d6bdc7a57a030980b6cb8ab18
2015-11-05 07:29:44 -08:00
David Lynch 6df227d4e0 MWCommandHelpDialog: update for core changes
Also: update VE core submodule to master (61f3fe7)

New changes:
4ef3666 Localisation updates from https://translatewiki.net.
cfa3482 Localisation updates from https://translatewiki.net.
d3486d4 CommandHelpDialog: Rename 'category' to 'groupName'
b5578d1 Localisation updates from https://translatewiki.net.
926595e Update OOjs UI to v0.13.1
61f3fe7 [BREAKING CHANGE] Create CommandHelpRegistry for CommandHelpDialog

Change-Id: If651ed30ab85175c7a262d9ccccc2e1613b0f3d6
2015-11-04 12:01:45 -06:00
James D. Forrester c714eb173c Update VE core submodule to master (062cb26)
New changes:
6cae77b ElementLinearData: Add another case to hasContent
d2e15f2 SurfaceFragment: Improve handling of delete all
16db2a3 Return 'null' instead of null in ve.Filibuster observers
24de6b2 Introduce key down handlers to separate logic from ce surface
f77fe99 Localisation updates from https://translatewiki.net.
062cb26 Localisation updates from https://translatewiki.net.

Change-Id: I61c94983c7898af219266af3022761638c7578b7
2015-11-03 10:36:53 +00:00
David Lynch 8bda88f661 Add mediawiki-specific sequences to the command help dialog
The extension registers a lot of sequences that don't apply to core
VisualEditor. Pretty much the opposite of the trigger situation, where
almost all are in core. So, merge them into the help dialog.

Update VE core submodule to master (be148ae)
New changes:
7380244 [BREAKING CHANGE] Include sequences in the command help dialog

Bug: T116013
Change-Id: I5ad2939c10140b954fb29e1e50414ab7d79aeab7
2015-10-31 21:28:57 -05:00
James D. Forrester 39574d0116 Update VE core submodule to master (ec09198)
New changes:
e0e3096 Remove selectionStart and selectionEnd events
af34d54 ve.dm.Selection: Add getter for name static property
6c16485 DataTransferHandlerFactory: Fix documentation
34542f3 Remove non-existent browser prefix
956db1c Update OOjs UI to v0.13.0
53d53e3 FindAndReplace: Start search at current offset

Change-Id: I40d728af44b7dc98756b44f392c623c8aa3b4b89
2015-10-28 22:33:14 +01:00
James D. Forrester 0fbebacb9f Update VE core submodule to master (d33328d)
New changes:
2fc5122 Ellipsis placeholders when not enough room
6d66479 Reapply the cursor after delete to kill browser preannotations
3ccc9e2 Unicorns: Apply styles with classes, rename variables
14287df Localisation updates from https://translatewiki.net.
0ac1cff Localisation updates from https://translatewiki.net.
d0c4726 Fix right-click copy on table cells

Change-Id: Ibb9ff9db525dcff7d948bb536cbd1b9823eec197
2015-10-26 17:22:01 +01:00
James D. Forrester 0cf3b77638 Update VE core submodule to master (e1c0146)
New changes:
ce68687 build: Use my gmail address for attribution
383ba35 Update my .mailmap and AUTHORS.txt entries
9c0b520 .mailmap: Update for recent commits
1abcf64 AUTHORS.txt: Update for Autumn 2015
74fb1d6 Fix typo in WhitespacePreservingTextInputWidget class
7528d7c ce.Surface afterKeyDown shouldn't assume .contenteditable is boolean
ee4c3a2 ve.ce.Surface: Defer checkSequences call for insertText as well

Change-Id: Ice507aa8d260177ccd8b5e1b44e6474a8eda36e7
2015-10-21 15:56:01 -07:00
James D. Forrester 297d7d2cfc Update VE core submodule to master (e25b3fe)
New changes:
84bac04 Remove the "Open" button from link inspectors
5e133fa Update OOjs UI to v0.12.12
d8ddf01 DM Surface: Cleanup emission of 'history' event
c65b032 De-Houdini-fy the handling of observed DOM changes
cd934fa Run renderContents before finding nodes by offset
4393fcd Localisation updates from https://translatewiki.net.
f2b5760 getNodeAndOffset: handle slugless nodes with zero DM length
97ba0da Localisation updates from https://translatewiki.net.
f2d80b4 Localisation updates from https://translatewiki.net.
e25b3fe Follow-up 97ba0da: Fix build for added language 'sgs'

Change-Id: I3eca1e9b9c753bbe4c896d2271c84b89707eb813
2015-10-19 14:52:24 -07:00
James D. Forrester 8cb35b3578 Update VE core submodule to master (52eb218)
New changes:
a3bcde1 Store text inputs to find and replace between sessions
bf2c2c1 build: Update grunt-banana-checker from v0.3.0 to v0.4.0
40a553f Add comments to show used CSS classes
9cb46c6 LinkAnnotation: Move nail CSS into stylesheet
407efc2 Don't replace spaces with spaces
5b03512 Localisation updates from https://translatewiki.net.
9872891 Add documentation for Event mixin to ve.dm.Node
134c613 Localisation updates from https://translatewiki.net.
fe19909 Localisation updates from https://translatewiki.net.
1a931c3 Don't scroll cursor into view when in paste target
b00a252 Localisation updates from https://translatewiki.net.

Change-Id: If2c17feb0f1c7c946ca6ff888fdcb04e0d9f7241
2015-10-13 07:27:28 -07:00
James D. Forrester 09821a6800 Update VE core submodule to master (c864138)
New changes:
c864138 Update OOjs UI to v0.12.11

Change-Id: Ib26659a89097ec5b2417355781f07903129fe2ce
2015-10-07 14:33:27 -07:00
Ed Sanders 9fb6977e52 Update VE core submodule to master (363adf2)
New changes:
63c5f67 [BREAKING CHANGE] GeneratedContentNode: Introduce new hash for rendering
6dd1cb2 Add ve.dm.Surface#selectLastContentOffset

Local changes:
* Use new getHashForRendering in GeneratedContentNode users

  As we no longer have a model hash, remove the originalIndex check
  and just rely on the deep comparison of mwData (trading a deep copy
  for a hash computation should result in similar performance).

Bug: T114689
Change-Id: Ida0ee0234418408b735232c633d41908a424a9ff
2015-10-07 15:00:32 +00:00
James D. Forrester 5fa34afc2f Update VE core submodule to master (737a235)
New changes:
6e38f99 Pass generated content error to inspector

Change-Id: I362972dcdffc72b906263670d034872f0af03a01
2015-10-05 13:11:40 -07:00
James D. Forrester 8e8fe70d79 Update VE core submodule to master (8feaeef)
New changes:
9cb6f74 Move insertion annotation calc logic from DM Surface to ElementLinearData
04d4bfd Refactor the code that determine insertion annotations
d9efa1c DimensionsWidget: Fix alignment of labels
66ba732 Always render generated content the first time, including errors
23a957c Consistently use spaces inside brackets in CSS
f17c8ad Localisation updates from https://translatewiki.net.
f4d0643 Localisation updates from https://translatewiki.net.
ec29e77 Follow-up I553e31: Don't show error for non-rendered GCNs
5f2402b Pass staging state through Document#commit to ve.dm.Node update event
0d3e998 Fix ve.ce.Document HTML tests
7c95c6a Wrap <hr>s so their margins are clickable
164b9a3 Localisation updates from https://translatewiki.net.

Change-Id: I069082baeb45105bf2e0106879d472319a6ffe2a
2015-10-05 09:57:20 -07:00
James D. Forrester 6800e1bc04 Update VE core submodule to master (54ec246)
New changes:
ec74b6f [BREAKING CHANGE] PreviewElement: Remove deprecated alias to PreviewWidget
987d3b1 Follow-up c02882c: Don't break non-GCNs
df74df2 Localisation updates from https://translatewiki.net.

Change-Id: I9d2261b48593d604ff54cfea2ea5ff3e7472ab3a
2015-10-01 14:32:06 -07:00
James D. Forrester 2668383755 Update VE core submodule to master (a98e11c)
New changes:
3eea110 Refactor PreviewElement to allow preview to be updated
c02882c Don't render errors in generated content

Change-Id: I1ecd85473846a0ce533a885e28440e443d9928ea
2015-09-30 18:18:15 -07:00
James D. Forrester 01bd73c808 Update VE core submodule to master (ca4bd8c)
New changes:
8c917a7 Add focused class to surface when focused
04d7f8c Localisation updates from https://translatewiki.net.
dfc71e6 Move cursor offset calc from CE Surface to DM Document
02040d0 Localisation updates from https://translatewiki.net.
7d6d49e IME tests: Add IE11 Win8.1 Korean; name specific Windows versions
7ce9d64 Localisation updates from https://translatewiki.net.
ca4bd8c Update OOjs UI to v0.12.10

Change-Id: I7c04d72cb6bf1d21eb257e2a6cf42c61c7d34eba
2015-09-29 15:14:02 -07:00
Ed Sanders 6ed5877c69 Update VE core submodule to master (27fc244)
New changes:
18e46b6 [BREAKING CHANGE] LinkAnnotationWidget: Abstract .text property to getTextInputWidget

Local channges:
* MWLinkAnnotationInspector: Use new getTextInputWidget method

Change-Id: Ia33797d612be7b4521e7212047a38480ee2520df
2015-09-26 12:27:56 +01:00
James D. Forrester 18f30efc5b Update VE core submodule to master (64a932b)
New changes:
2c84a24 Localisation updates from https://translatewiki.net.
b87fd8a Follow-up 2c84a24: Fix build for added language 'azb'
64a932b Ignore slugs and chimeras when preventing identical re-renderings

Change-Id: Icad799f4af424d45369c0b4ac367e5082202ea4a
2015-09-26 12:14:53 +01:00
James D. Forrester 76a8b0d127 Update VE core submodule to master (518456c)
New changes:
0808e3b Refactor ve.ui.LinkAction to allow autolinking to create nodes
867f558 Avoid protocol-relative base Firefox bug in unit tests
8ece359 Use equalDomElements tests for CE HTML
897999d Make layout-specific paste tests
0296b1d build: Bump various devDependencies
4620000 ve.dm.Scalable: Get test coverage to 100%
294dab5 Add getDomFromNode method to ve.dm.Converter
98f940b build: Bump browserNoActivityTimeout from 10s to 30s
93bc745 Allow ve.getDomElementSummary to modify attributes
89ea9a3 Make fixBase tests account for no-op behavior when baseURI is valid
5d4bfb6 Localisation updates from https://translatewiki.net.
ad41023 Allow autolinking inside list items

Change-Id: I166a825191627a3b6f36995ddca6a97fa8f4c582
2015-09-25 10:33:40 +01:00
James D. Forrester 207f55dc8c Update VE core submodule to master (3c65a2a)
New changes:
90ed001 Localisation updates from https://translatewiki.net.
c2f2096 Rename ve.ui.PreviewWidget to ve.ui.PreviewElement

Change-Id: I35103bc5d98b7eee77c9f5f22c441091b6453687
2015-09-24 13:50:08 +01:00
James D. Forrester 3261f24c12 Update VE core submodule to master (e650f93)
New changes:
f22069c SurfaceObserver: use plain function call to Surface, instead of emit
6b1ba80 Fix arrow key fixups for inline focusable node
839a177 Update OOjs UI to v0.12.9
57d8962 Localisation updates from https://translatewiki.net.

Change-Id: I8727e84cb8c0b65604e6f28c03ca47b52727171e
2015-09-23 17:53:53 +01:00
James D. Forrester 04c737bac3 Update VE core submodule to master (171fe11)
New changes:
1f2d43d Localisation updates from https://translatewiki.net.
171fe11 Reduce padding for IndexLayout panels in fragment inspectors

Change-Id: I2a9b4210a33c360b3137b0278454c1b6d92ab4d9
2015-09-22 14:19:24 +01:00