Ian Storm Taylor
4e021f58b5
handle native selectionchange
event, closes #1135 ( #1441 )
2017-12-02 13:52:23 -08:00
Ian Storm Taylor
ed593c732b
remove some polyfills ( #1288 )
...
* remove some polyfills
* use for-of for iteration when possible
2017-10-25 17:55:18 -07:00
Ian Storm Taylor
8b56027e6d
update lockfile
2017-10-24 22:40:14 -07:00
Ian Storm Taylor
b375660aa9
refactor hotkeys to constants, and add transforms ( #1251 )
...
* refactor hotkeys to constants, and add transforms
* update hotkey helper
2017-10-17 18:18:27 -07:00
Ian Storm Taylor
a341f4d4eb
fix docs pages and plugins example
2017-10-17 09:22:08 -07:00
Ian Storm Taylor
617fba2ac0
Split core plugin ( #1242 )
...
* split core into before/after, add onBeforeInput to before
* migrate handlers to before plugin, add event handlers constants
* cleanup
* refactor hotkeys into constants file
* fix serializer, disable core plugin tests
* fix linter
2017-10-16 17:31:43 -07:00
Ian Storm Taylor
f69d2c4a12
remove keyboard data.*
properties ( #1235 )
...
* update examples and walkthroughs
* deprecate data keyboard properties
* update examples
* add is-hotkey to resources doc
* udpate docs
* update docs
* fix split-block test
2017-10-15 19:23:07 -07:00
Ian Storm Taylor
8fd46bb599
remove iframes example, since it depends on react internals
2017-10-13 15:05:12 -07:00
Renaud Chaput
e960918f87
Upgrade to React 16 ( #1178 )
...
* Allow React 16 in peerDeps and use it for dev
* Make tests pass with React 16
Changes are cosmetic:
- React 16 no longer adds a trailing `;` to `style` attributes
- React 16 outputs `0` and not `0px` for sizes in `style`
2017-10-13 15:01:18 -07:00
Ian Storm Taylor
e53cee3942
refactor decorations to use selections ( #1221 )
...
* refactor decorations to use selections
* update docs
* cleanup
* add Selection.createList
* fix tests
* fix for nested blocks
* fix lint
* actually merge
* revert small change
* add state.decorations, with search example
2017-10-13 12:04:22 -07:00
Ian Storm Taylor
ace9f47930
change slate to be a monorepo using lerna ( #1106 )
...
* init lerna, move files into ./packages
* move test files into ./packages
* more moving around
* fill out package.json files
* fixing imports
* more fixing of imports, and horribleness
* convert examples, fix linting errors
* add documentation
* update docs
* get tests passing
* update travis.yml
* update travis.yml
* update travis.yml
* update test script
* update travis.yml
* update scripts
* try simplifying travis.yml
* ocd stuff
* remove slate-core-test-helpers package
* add package readmes
* update reference docs structure
* refactor slate-simulator into its own package
* add docs for new packages
* update docs
* separate benchmarks into packages, and refactor them
2017-09-11 18:11:45 -07:00
Ian Storm Taylor
4f59771453
remove problematic unused dep
2017-09-11 17:40:31 -07:00
Ian Storm Taylor
9fca2d3b9b
start removing raw serializer ( #1098 )
...
* start removing raw serializer
* convert first tests to use jsx
* simplify jsx tests for raw serializer
* allow for options in raw serializer tests
* add more preserve option tests
* convert plain serializer tests
* convert html serialize
* start converting html deserialize
* add hyperscript util
* remove slate-sugar copy-pasted
* finish converting html deserialize
* convert plugins tests
* update rendering tests
* convert schemas tests
* convert core plugin tests
* update hyperscript utl
* refactor changes test directory structure
* fix changes before migration
* add migrated changes test files
* remove <x- prefixes from migration
* get addMark at-current-range tests passing
* get delete at-current-range tests passing
* remove old tests
* convert deleteForward and deleteBackward
* convert insertBlock, insertInline, insertFragment, insertText
* convert removeMark, setBlock, setInline, splitBlock, splitInline
* add unstaged tests
* convert toggleMark, unwrapBlock, unwrapInline, wrapBlock, wrapInline, wrapText
* convert call, setData
* convert on-selection tests
* remove old on-selection tests
* convert history tests
* convert insertFragmentByKey, insertNodeByKey, insertTextByKey, mergeNodeByKey, moveNodeByKey
* convert removeNodeByKey, removeTextByKey, setMarkByKey, setNodeByKey
* convert splitDescendantsByKey, splitNodeByKey, unwrapBlockByKey, unwrapInlineByKey, unwrapNodeByKey, wrapBlockByKey
* fix tests
* port missing at-range tests to at-current-range
* remove at-range tests
* fix raw serializer tests
* fix linter
* fix to prefer toJSON as the canonical method name
* fix todos
* remove internal references to Raw
* add deprecation helper to Text.fromJSON
* convert examples to not use Raw, and not rely on terse
* remove focus-blur example, rename large document example
* refactor Raw serialize to deprecate, not remove, terse
* deprecate defaultBlockType, toRaw, cleanup serializers
2017-09-10 14:56:03 -07:00
Ian Storm Taylor
8d47f8e8b6
refactor to eliminate ./utils/normalize, fixes #372 ( #1060 )
...
* refactor to eliminate ./utils/normalize, fixes #372
* fix mark default value
2017-09-06 14:24:48 -07:00
Kirill Volkovich
577b5c7570
IE11 compat ( #996 )
...
* Convert "for ... of" loops to simple "for(;;)"
* Add .editorconfig
* Convert "for ... of" loops to simple "for(;;)"; Array.find => filter
* Replace Array.prototype.find via local "find" method implementation
* Replase utils/find by lodash/find
* Remove .editorconfig
* Fix lint errors
2017-08-17 11:49:44 -07:00
Zach Schneider
56fa2c4208
Upgrade react-frame-component. ( #962 )
...
Gets rid of warning in dev about directly accessing `React.PropTypes`
2017-08-01 09:06:39 -07:00
Zach Schneider
4bbf7487ea
Replace cheerio with parse5 ( #934 )
...
* Replace cheerio with parse5
* Convert to dependency injection for HTML parser
* Add options.domParser to HTML serializer
* Fallback to native DOMParser if present and no option provided
* Error if no DOM parser is available (option or native)
* Update tests to pass parse5 as config option
* Update test so it passes.
Cheerio interprets `<p><hr /></p>` as one `p` node with a child `hr`
node, but both parse5 and native DOMParser interpret it as 3 nodes: a
blank `p` node, `hr` node, and second blank `p` node. Update test
expectation to match new API.
* Remove cheerio-esque compatibility conversion.
* Use `application/xml` in native DOMParser
Using `text/html` causes it to wrap the fragment in html, body, etc
* Change error message to single line.
Was inserting an undesired newline char
* Add documentation for new `domParser` option to html serializer
Also boyscout missing documentation for `defaultBlockType` option
* Rename `domParser` option to `parseHtml`
Rename the option to make it clearer what it does, since it accepts a
function and not a `DOMParser` analogue object.
2017-07-20 09:46:02 -07:00
Ian Storm Taylor
13a99a9b73
refactor examples, upgrade dependencies
2017-05-04 16:48:42 -07:00
Ian Storm Taylor
0fcb953015
fix to restrict window blur/focus handling, closes #773
2017-05-03 18:48:42 -07:00
Ian Storm Taylor
17ea3ed349
fix to depend on prop-types for react 15.5
2017-04-28 13:04:00 -07:00
Ian Storm Taylor
8e37ea760d
add yarn.lock file
2017-04-24 13:11:31 -07:00