Commit graph

41 commits

Author SHA1 Message Date
Ben Gotow 5ad85ff7cb Semver caret syntax is patch-only for 0.x.x, fork to update slate-edit-list peerDep 2019-06-11 01:48:25 -05:00
Ben Gotow 3eda735e06 Pin to exact versions of slate dependencies 2019-06-11 01:07:46 -05:00
Ben Gotow f6de37f181 Rebuild package-lock to fix build errors 2019-06-11 00:05:40 -05:00
Ben Gotow 21bc2ef398
Upgrade to Slate 0.45.1 for better composer perf and "setStart on Range" error fix (#1518)
* Move to Slate 44, start using types more extensively in Composer

* More types and cleanup

* Expose the editor object to the draft session, try exposing editor to session

* Bump to Slate 45 for https://github.com/ianstormtaylor/slate/pull/2225/files

* How did the unsubscribe plugin get in here

* Bump Slate types, fix TS errors, start testing

* Polish

* Fix issue with emails not shrinking when you close quoted text

* Fix the “remove quoted text” button

* More polish

* Fix issues with PR, improve typings

* Remove spurious log
2019-06-10 19:15:07 -05:00
Ben Gotow 7ade1c7243 Bump to Electron 4.2.2 2019-05-26 17:14:53 -05:00
Ben Gotow 6bd51c70f6 Update package.lock and run npm audit 2019-03-18 09:14:03 -07:00
Ben Gotow 149b389508
Replace Babel with TypeScript compiler, switch entire app to TypeScript 🎉 (#1404)
* Switch to using Typescript instead of Babel

* Switch all es6 / jsx file extensions to ts / tsx

* Convert Utils to a TS module from module.exports style module

* Move everything from module.exports to typescript exports

* Define .d.ts files for mailspring-exports and component kit… Yes it seems this is the best option :(

* Load up on those @types

* Synthesize TS types from PropTypes for standard components

* Add types to Model classes and move constructor constants to instance vars

* 9800 => 7700 TS errors

* 7700 => 5600 TS errors

* 5600 => 5330 TS errors

* 5330 => 4866 TS errors

* 4866 => 4426 TS errors

* 4426 => 2411 TS errors

* 2411 > 1598 TS errors

* 1598 > 769 TS errors

* 769 > 129 TS errors

* 129 > 22 TS errors

* Fix runtime errors

* More runtime error fixes

* Remove support for custom .es6 file extension

* Remove a few odd remaining references to Nylas

* Don’t ship Typescript support in the compiled app for now

* Fix issues in compiled app - module resolution in TS is case sensitive?

* README updates

* Fix a few more TS errors

* Make “No Signature” option clickable + selectable

* Remove flicker when saving file and reloading keymaps

* Fix mail rule item height in preferences

* Fix missing spacing in thread sharing popover

* Fix scrollbar ticks being nested incorrectly

* Add Japanese as a manually reviewed language

* Prevent the thread list from “sticking”

* Re-use Sheet when switching root tabs, prevent sidebar from resetting

* Ensure specs run

* Update package configuration to avoid shpping types

* Turn eslint back on - we will opt-in to the TS rules one by one
2019-03-04 11:03:12 -08:00
Ben Gotow 51af0b3117 Add support for recurring events 2019-02-09 17:53:56 -08:00
Ben Gotow 295300361b Switch to Mozilla’s ical.js parser 2019-02-09 11:52:39 -08:00
Ben Gotow d9bca1941f Revive old calendar prototype, link against new C++ sync engine 2019-02-09 02:29:23 -08:00
Ben Gotow 1677bd7ed0 Add explicit deep-extend dependency to workaround bug in npm dedupe 2019-02-04 22:37:14 -08:00
Ben Gotow e85d8bd8f3 Upgrade packages with the help of npm audit fix 2019-02-04 21:54:38 -08:00
Ben Gotow 4d785c4166 Initial crossplatform preview support using pdfjs, mammoth, snarkdown, xlsx
PDFJS, MammothJS and SheetJS require we preserve copyright notices in the app. Need to put those somewhere!

# Conflicts:
#	app/lang/pt-BR.json
2019-01-03 01:11:11 -08:00
Ben Gotow edec4e37f8 Manually delete debug package shrinkwrapped with babel-register@6.2.0 2018-12-20 10:22:56 -07:00
Ben Gotow a179a8edec Bump to 1.5.3 2018-11-22 14:44:42 -08:00
Ben Gotow 3f183b7f82 Honor “do not disturb” on Windows and macOS #966 2018-11-22 14:44:37 -08:00
Ben Gotow 011ccf591b Upgrade to React 16.6 to fix “maximum call depth” errors not being caught 2018-11-05 11:43:35 -08:00
Ben Gotow 720fdf6352 Switch to a custom fork of electron-spellchecker to make Mac spellcheck lang consistent 2018-11-04 11:17:14 -08:00
Ben Gotow 1142b59f72 RTL interface support for Arabic, etc. Flipped UI, fine tuning via RTLCSS 2018-10-15 22:45:24 -07:00
Ben Gotow a9da75094f Bump to Electron 2.0.11 to resolve #1108 2018-10-07 23:40:19 -07:00
Ben Gotow 1977074f55 Rewrite the search bar to suggest Gmail-style tokens, include better autocomplete 2018-06-24 23:53:56 -05:00
Ben Gotow 3133b3f70d Replace electron-lets-move with new Electron API #821 2018-05-22 17:46:18 -07:00
Ben Gotow 91050c6fc2 Bring back the Thread Sharing plugin 🎉 2018-03-30 01:36:23 -07:00
Ben Gotow d962adc52e Upgrade keytar to 4.1.0 2018-01-28 23:12:37 -08:00
Ben Gotow e2e757daab Remove pathwatcher entirely to fix Win32 compilation 2018-01-28 23:01:50 -08:00
Ben Gotow 23081d2e10 Bump to a newer version of runas with 1.8.x support 2018-01-28 22:45:23 -08:00
Ben Gotow 346fde7cce Remove donna since there is no coffeescript, update locks 2018-01-28 21:44:27 -08:00
Ben Gotow 6260d9fc06 Bump pathwatcher version to fix Win32 compilation 2018-01-28 21:25:57 -08:00
Ben Gotow 44568c79ab Remove unused dependencies 2018-01-24 21:37:58 -08:00
Ben Gotow 3e29f997c5 ⚠️ Drop support for CoffeeScript / CJSX in plugins, themes, and core 2018-01-23 23:59:37 -08:00
Ben Gotow e69c742590 Remove all remaining Coffeescript / CJSX 🎉 2018-01-23 17:35:09 -08:00
Ben Gotow ae72cf1c65 Bump to React 16.2 now that the old composer is gone 🎉
commit 3c10d22199ea6428a6b45c6361d281b1d281ef4f
Author: Ben Gotow <ben@foundry376.com>
Date:   Fri Jan 19 08:10:43 2018 -0800

    Small fixes

commit e7d4ba85eb011a6fd58b57e079bf3a19c19126d8
Author: Ben Gotow <ben@foundry376.com>
Date:   Thu Jan 18 23:47:03 2018 -0800

    Rewrite UnsafeComponent using Error Boundaries

commit aa772694fdee6c57887b75b3abb2e654e146fab5
Author: Ben Gotow <ben@foundry376.com>
Date:   Thu Jan 18 23:15:53 2018 -0800

    Remove GeneratedForm

commit f9ea4296f07d446f942dfc2532deea37db43ddac
Author: Ben Gotow <ben@foundry376.com>
Date:   Thu Jan 18 23:08:45 2018 -0800

    Fully remove calendar related dead code and spec_disabled

    It’s making it hard to see what I need to edit and what I don’t care about

commit 6192ce6073244bc66b7908b66b5033d34e947efb
Author: Ben Gotow <ben@foundry376.com>
Date:   Thu Jan 18 23:08:16 2018 -0800

    Bump to React 16.2 🎉
2018-01-22 22:18:46 -08:00
Ben Gotow c7e63bfe52 Lock Slate versions to prevent missing dep issue in prod, add warning 2018-01-21 10:36:21 -08:00
Ben Gotow 1a3cca8d0a
Totally overhauled composer based on Slate (#524)
* Remove the composer contenteditable, replace with basic <textarea>

* Beginning broader cleanup of draft session

* DraftJS composer with color, style support

* Serialization/unserialization of basic styles, toolbar working

* WIP

* Switch to draft-js-plugins approach, need to revisit HTML

* Move HTML conversion functionality into plugins

* Add spellcheck context menu to editor

* Initial work on quoted text

* Further work on quoted text

* BLOCK approach

* Entity approach - better, does not bump out to top level

* Hiding and showing quoted text via CSS

* Get rid of ability to inject another subject line component

* Clean up specs, DraftFactory to ES6

* Remove old initial focus hack

* Fix focusing, initial text selection

* Remove participant “collapsing” support, it can be confusing

* Correctly terminate links on carriage returns

* Initial signature support, allow removal of uneditable blocks

* Sync body string with body editorstate

* Simplify draft editor session, finish signatures

* Templates

* Minor fixes

* Simplify link/open tracking, ensure it works

* Reorg composer, rework template editor

* Omg the slowness is all the stupid emoji button

* Polish and small fixes

* Performance improvements, new templates UI

* Don’t assume nodes are elements

* Fix for sending drafts twice due to back-to-back saves

* Fix order of operations on app quit to save drafts reliably

* Improve DraftJS-Convert whitespace handling

* Use contentID throughout attachment lifecycle

* Try to fix images

* Switch to Slate instead of DraftJS… much better

* Fix newline handling

* Bug fixes

* Cleanup

* Finish templates plugin

* Clean up text editing / support for Gmail email styles

* Support for color + size on the same node, clean trailing whitespace

* Restore emoji typeahead / emoji picker

* Fix scrolling in template editor

* Fix specs

* Fix newlines

* Re-implement spellcheck to be faster

* Make spellcheck decorator changes invisible to the undo/redo stack

* Remove comment

* Polish themplates panel

* Fix #521
2018-01-11 15:55:56 -08:00
Ben Gotow 5392726536
Linux options for auto hiding / collapsing menubar to right corner #271, #114, #142 (#498)
* WIP

* Editing UI

* Minor fix

* Make theme refs to bar more specific

* Fix ubuntu menu color

* Attempt 2

* Styling

* Restart > Relaunch

* Cleanup

* Linux-style gumdrops, slight ubuntu theme improvements
2018-01-01 13:00:17 -05:00
Ben Gotow a498796147 Detect when the machine wakes from sleep, re-sync mail immediately #468 2017-12-23 10:02:57 -07:00
Ben Gotow 71eee04b42 Make postinstall script download last released version of mailsync #274 2017-10-30 12:51:08 -07:00
Ben Gotow 4e8a2abfc3 Make postinstall script to untar mailsync 2017-10-23 10:51:32 -07:00
Ben Gotow 58280903e5 Upgrade keytar because Linux API seems asynchronous 2017-10-09 15:05:31 -07:00
Ben Gotow 9c7d15ab37 Bump electron-spellchecker so it builds on MacOS Sierra 2017-10-09 02:53:50 -07:00
Ben Gotow 43dad74ff4 Use package-lock.json to avoid all minor changes to deps 2017-10-03 22:37:47 -07:00