1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-13 19:57:00 +01:00

361 Commits

Author SHA1 Message Date
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
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
5c1d43e3f9 fix block void node spacing, closes #1226 2017-10-13 18:00:51 -07:00
Ian Storm Taylor
9d5873ec94 remove react-addons-perf 2017-10-13 15:02:19 -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
2a8cf8561e update contributing docs, update release script 2017-09-13 11:26:27 -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
4d73f19dc7 0.23.1 2017-09-11 17:51:10 -07:00
Ian Storm Taylor
4f59771453 remove problematic unused dep 2017-09-11 17:40:31 -07:00
Ian Storm Taylor
9760f945c8 0.23.0 2017-09-10 15:37:04 -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
395c0a4f8b 0.22.14 2017-09-08 00:11:17 -07:00
Ian Storm Taylor
3e2e533c21 0.22.13 2017-09-07 18:06:03 -07:00
Ian Storm Taylor
33ddd30486 0.22.12 2017-09-07 16:03:28 -07:00
Ian Storm Taylor
1c0b068023 0.22.11 2017-09-07 14:35:22 -07:00
Ian Storm Taylor
d8004c33b1 0.22.10 2017-09-07 12:12:55 -07:00
Ian Storm Taylor
c3caa2878c 0.22.9 2017-09-07 09:19:30 -07:00
Ian Storm Taylor
3257643ba0 0.22.8 2017-09-06 19:56:14 -07:00
Ian Storm Taylor
4e945e2977 0.22.7 2017-09-06 19:03:38 -07:00
Ian Storm Taylor
ca514eee66 0.22.6 2017-09-06 18:43:00 -07:00
Ian Storm Taylor
c0b4a30ce6 0.22.5 2017-09-06 15:29:17 -07:00
Ian Storm Taylor
a5ce937986 0.22.4 2017-09-06 14:26:31 -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
Ian Storm Taylor
e77cae7bf7 0.22.3 2017-09-06 11:55:59 -07:00
Ian Storm Taylor
de736dd57d 0.22.2 2017-09-06 09:36:29 -07:00
Ian Storm Taylor
f0325a9afb 0.22.1 2017-09-06 09:03:30 -07:00
Ian Storm Taylor
01a1699a08 0.22.0 2017-09-05 18:31:37 -07:00
Ian Storm Taylor
9b5e7ba306 0.21.6 2017-09-05 17:07:25 -07:00
Ian Storm Taylor
e72266802d 0.21.5 2017-09-05 11:26:00 -07:00
Ian Storm Taylor
7cfbbfc5e4 0.21.4 2017-08-25 12:13:18 -07:00
Ian Storm Taylor
b0d481978b 0.21.3 2017-08-22 17:06:34 -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
Ian Storm Taylor
18f41e72ce 0.21.2 2017-08-09 12:16:12 -07:00
Ian Storm Taylor
207f459625 alphabetize package.json scripts 2017-08-09 12:08:35 -07:00
Ian Storm Taylor
85fce2dd46 0.21.1 2017-08-01 09:47:28 -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
Ian Storm Taylor
f376911566 0.21.0 2017-07-20 09:51:24 -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
cf85c6e3fb 0.20.7 2017-07-20 09:41:28 -07:00
Ian Storm Taylor
a1d4de3b20 0.20.6 2017-07-12 12:59:05 -07:00
Ian Storm Taylor
b5761a1410 0.20.5 2017-07-12 08:56:20 -07:00
Shawn Erquhart
ccb7a23ba3 enable source maps during development (#916) 2017-07-11 13:10:52 -07:00
Ian Storm Taylor
5d8a9b99cc 0.20.4 2017-06-22 09:11:22 -07:00
Ian Storm Taylor
13160a97b8 0.20.3 2017-06-10 10:56:50 -07:00
Ian Storm Taylor
b4883ea552 0.20.2 2017-05-30 13:17:47 -07:00
Ian Storm Taylor
579e12e2cb 0.20.1 2017-05-17 10:24:00 -07:00
Ian Storm Taylor
190071c758 0.20.0 2017-05-17 09:16:07 -07:00
Ian Storm Taylor
e363f88b71 0.19.30 2017-05-09 22:30:06 -07:00
Ian Storm Taylor
0a9ef10664 0.19.29 2017-05-05 17:46:38 -07:00