Caleb
14e29e9779
Use Lists for menu items, instead of maps or sequences.
...
Maps are actually invalid, and lists make more sense than sequences.
2017-10-20 09:57:24 -04:00
Caleb
024c43a8c8
Upgrade UUID module. ( #682 )
2017-10-18 13:02:16 -04:00
Benaiah Mischenko
7dd8ca13c4
Migrate to plain CSS (remove CSS modules) ( #659 )
...
* Migrate to plain CSS (remove CSS modules)
Change `prefixer` to a function instead of a proxy
* Switch prefix to `nc`
* Replace prefixer with literal class names
* Remove prefixer
* Fix migration errors
* fix compose migrations
* Remove unnecessary theme imports
* Remove old CSS import
* fix sticky toolbar positioning
* update to cssnano v4 so preset is used
* fix css pseudo selectors
* update lockfile
2017-10-18 12:29:38 -04:00
Caleb
dbe96d33f9
Upgrade to React Router v4 ( #667 )
...
* Upgrade to React Router v4
* Fix pages not change when the URL was changed.
This issue is due to the Redux `connect` wrapper around `<App/>`.
`connect` diffs changes in regular props to know when to update the
component, but doesn't check context props like `location`.
See
https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/blocked-updates.md .
* Update to new `history` methods.
2017-10-12 21:10:43 -04:00
Shawn Erquhart
c132df9f18
force focus back to editor after undo/redo
2017-10-05 10:24:15 -07:00
Shawn Erquhart
1cf7b74eb9
fix visual editor block closing
2017-10-05 10:24:15 -07:00
Shawn Erquhart
be4609e54d
trim trailing whitespace from markdown
2017-10-05 10:24:15 -07:00
Shawn Erquhart
852b6f397c
ensure against trailing shortcodes in visual editor
2017-10-05 10:24:15 -07:00
Shawn Erquhart
d8a7608a25
fix bugs due to Slate "nodes" properties being boolean
2017-10-05 10:24:15 -07:00
Shawn Erquhart
dd9d49117a
do not squash references without definitions
2017-10-05 10:24:15 -07:00
Shawn Erquhart
9fbdbf5171
stop markdown shortcodes from being escaped
2017-10-05 10:24:15 -07:00
Shawn Erquhart
a89427dd8b
add editor rule to ensure plain text in code blocks
2017-10-05 10:24:15 -07:00
Shawn Erquhart
70e8eae599
migrate Text.createFromString to Text.create
2017-10-04 15:48:33 -04:00
Shawn Erquhart
39f65476c3
migrate insertBlock empty block replacement
2017-10-04 15:48:33 -04:00
Shawn Erquhart
cd0254407e
migrate Block.create to specify children
2017-10-04 15:48:33 -04:00
Shawn Erquhart
a5c1bb2bff
migrate to new slate packages
2017-10-04 15:48:33 -04:00
Shawn Erquhart
a5b053e1c3
remove deprecated terse serialization option
2017-10-04 15:48:32 -04:00
Shawn Erquhart
99673ee3cc
support code blocks with multiple text nodes
2017-10-04 15:48:32 -04:00
Shawn Erquhart
bbf165d3b0
migrate text nodes to use ranges
2017-10-04 15:48:32 -04:00
Shawn Erquhart
7a219bb833
migrate from Raw serializer to fromJSON/toJSON
2017-10-04 15:48:32 -04:00
Shawn Erquhart
155a0f972e
migrate from onDocumentChange to onChange
2017-10-04 15:48:32 -04:00
Shawn Erquhart
2448ed918a
remove undo/redo override, fixed in 0.22
2017-10-04 15:48:32 -04:00
Shawn Erquhart
af2eb78e2b
migrate from transform API to change API
2017-10-04 15:48:32 -04:00
Caleb
9075a87c9d
Upgrade react-notifications
.
2017-10-02 16:44:32 -06:00
Caleb
9053c1841f
Upgrade react-transition-group
.
2017-10-02 16:43:30 -06:00
Shawn Erquhart
d1b25851fd
Merge pull request #629 from netlify/editor-fast-follow
...
editor fast follow
2017-09-29 13:05:27 -04:00
Caleb
cd35289dbc
Upgrade depreciated transitions addon to react-transition-group
.
...
v1 of `react-transition-group` is a drop-in replacement.
2017-09-28 13:27:05 -06:00
Shawn Erquhart
e2232e1067
improve markdown entity escaping perf
2017-09-26 16:35:01 -04:00
Shawn Erquhart
516a5e4c7f
improve markdown editor serialization debounce
2017-09-26 15:52:50 -04:00
Shawn Erquhart
9e0d7696ee
stop remark from decoding HTML entities
2017-09-26 15:27:34 -04:00
Shawn Erquhart
d3c12db8ef
fix soft break support
2017-09-26 14:50:56 -04:00
Shawn Erquhart
7bcb16d5e6
fix nested field updates
2017-09-26 14:50:56 -04:00
Shawn Erquhart
fddbf8f7f0
disable auto-conversion of markdown urls to links
2017-09-26 14:50:56 -04:00
Shawn Erquhart
30a762cec1
improve markdown entity escaping for visual editor
2017-09-26 14:50:56 -04:00
Shawn Erquhart
e25ec098f6
fix editor parsing of styled inline code
2017-09-26 14:50:56 -04:00
Shawn Erquhart
70a4a51b97
add inline image support for editor
2017-09-26 14:50:56 -04:00
Shawn Erquhart
e937e8e626
handle markdown styled inline nodes
...
Slate does not allow inline nodes like links and
images to have marks (like strong, emphasis). This
commit changes the parsers to process these nodes
as if they were text nodes so that marks are
handled.
2017-09-26 14:50:56 -04:00
Shawn Erquhart
2d3bf9b3fc
fix verbose markdown entity output
...
Because we convert markdown to an AST, the literal input
cannot be reconstructed, so we have to default to improving
received markdown rather than degrading it. This fix
implements smart MDAST parsing to ensure that adjacent
nodes with the same styling (strong, emphasis, etc) are
grouped together rather than separated (which results in
verbose output).
2017-09-26 14:50:56 -04:00
Shawn Erquhart
91590a2f25
remove pedantic markdown parsing
2017-09-26 14:50:56 -04:00
Shawn Erquhart
e54dee4220
allow links to be wrapped in marks
2017-09-26 14:50:56 -04:00
Shawn Erquhart
cd111f3a3d
distinguish between newline and soft break in editor
2017-09-26 14:50:56 -04:00
Darrel O'Pry
1f06885a69
Add code coverage output generation to npm test ( #610 )
2017-09-20 12:23:40 -07:00
Shawn Erquhart
d349c3d3b1
Merge pull request #590 from netlify/update-depreciated-deps
...
Upgrade Depreciated React Dependencies
2017-09-15 16:18:24 -04:00
Caleb
6e356e81da
Update tests for EntryEditorToolbar
2017-09-11 14:25:23 -06:00
Caleb
87f942e73b
Rename hasChanged
to enableSave
for the editor Save button.
2017-09-11 14:08:07 -06:00
Caleb
654f844b86
Upgrade to seperate React prop-types
library.
...
`propTypes` was seperated/depreciated from React as of 15.5.0:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-09-09 20:16:19 -06:00
Caleb
75aa52a650
Disable Save button when entry has not been changed.
2017-09-02 19:24:37 -06:00
Shawn Erquhart
75023d9f74
close rte heading block on enter keydown
2017-09-01 15:16:51 -04:00
Shawn Erquhart
c25a7c4abb
debounce markdown editor change handler
2017-09-01 15:16:51 -04:00
Shawn Erquhart
4821959951
remove markdown widget serializers
2017-09-01 15:16:51 -04:00