Ian Storm Taylor
584ffec626
Publish
...
- slate-base64-serializer@0.2.62
- slate-html-serializer@0.7.1
- slate-hyperscript@0.10.1
- slate-plain-serializer@0.6.1
- slate-prop-types@0.4.60
- slate-react@0.18.2
- slate-simulator@0.4.60
- slate@0.40.1
2018-08-23 13:54:58 -07:00
Ian Storm Taylor
8358d3777f
Publish
...
- slate-react@0.18.1
2018-08-23 11:34:31 -07:00
Ian Storm Taylor
729727d91e
Publish
...
- slate-base64-serializer@0.2.61
- slate-dev-warning@0.0.1
- slate-html-serializer@0.7.0
- slate-hyperscript@0.10.0
- slate-plain-serializer@0.6.0
- slate-prop-types@0.4.59
- slate-react@0.18.0
- slate-simulator@0.4.59
- slate@0.40.0
2018-08-22 18:31:50 -07:00
Ian Storm Taylor
36ed4397d8
Remove deprecations ( #2113 )
...
#### Is this adding or improving a _feature_ or fixing a _bug_?
Debt.
#### What's the new behavior?
This removes almost all existing deprecations from previous API changes, to save on filesize and reduce complexity in the codebase going forward.
It also changes from using the `slate-dev-logger` to using the Facebook-inspired `slate-dev-warning` which can be compiled out of production builds with [`babel-plugin-dev-expression`](https://github.com/4Catalyzer/babel-plugin-dev-expression ) to save even further on file size.
The only deprecations it keeps are in the `fromJSON` methods for data model changes like `.kind` and `.leaves` which may still may not have been migrated in databases, since this is a bigger pain point.
#### Have you checked that...?
* [x] The new code matches the existing patterns and styles.
* [x] The tests pass with `yarn test`.
* [x] The linter passes with `yarn lint`. (Fix errors with `yarn prettier`.)
* [x] The relevant examples still work. (Run examples with `yarn watch`.)
#### Does this fix any issues or need any specific reviewers?
Fixes : #1922
Fixes : #2105
Fixes : #646
Fixes : #2109
Fixes : #2107
Fixes : #2018
2018-08-22 18:22:40 -07:00
Ian Storm Taylor
3d48f7a3e0
Publish
...
- slate-base64-serializer@0.2.60
- slate-html-serializer@0.6.32
- slate-hyperscript@0.9.3
- slate-plain-serializer@0.5.41
- slate-prop-types@0.4.58
- slate-react@0.17.3
- slate-schema-violations@0.1.39
- slate-simulator@0.4.58
- slate@0.39.3
2018-08-22 15:43:19 -07:00
Ian Storm Taylor
ec678540cf
Publish
...
- slate-base64-serializer@0.2.59
- slate-html-serializer@0.6.31
- slate-hyperscript@0.9.2
- slate-plain-serializer@0.5.40
- slate-prop-types@0.4.57
- slate-react@0.17.2
- slate-schema-violations@0.1.38
- slate-simulator@0.4.57
- slate@0.39.2
2018-08-22 14:34:06 -07:00
Ian Storm Taylor
a07f526192
Publish
...
- slate-base64-serializer@0.2.58
- slate-html-serializer@0.6.30
- slate-hyperscript@0.9.1
- slate-plain-serializer@0.5.39
- slate-prop-types@0.4.56
- slate-react@0.17.1
- slate-schema-violations@0.1.37
- slate-simulator@0.4.56
- slate@0.39.1
2018-08-22 14:14:48 -07:00
Ian Storm Taylor
357239dbec
Publish
...
- slate-base64-serializer@0.2.57
- slate-html-serializer@0.6.29
- slate-hyperscript@0.9.0
- slate-plain-serializer@0.5.38
- slate-prop-types@0.4.55
- slate-react@0.17.0
- slate-schema-violations@0.1.36
- slate-simulator@0.4.55
- slate@0.39.0
2018-08-22 12:27:46 -07:00
Ian Storm Taylor
1f317cd9b4
Publish
...
- slate-base64-serializer@0.2.56
- slate-html-serializer@0.6.28
- slate-hyperscript@0.8.5
- slate-plain-serializer@0.5.37
- slate-prop-types@0.4.54
- slate-react@0.16.2
- slate-schema-violations@0.1.35
- slate-simulator@0.4.54
- slate@0.38.2
2018-08-22 12:22:03 -07:00
Ian Storm Taylor
c7521225cf
Publish
...
- slate-base64-serializer@0.2.55
- slate-html-serializer@0.6.27
- slate-hyperscript@0.8.4
- slate-plain-serializer@0.5.36
- slate-prop-types@0.4.53
- slate-react@0.16.1
- slate-schema-violations@0.1.34
- slate-simulator@0.4.53
- slate@0.38.1
2018-08-21 20:38:40 -07:00
Ian Storm Taylor
46898fe7f7
Publish
...
- slate-base64-serializer@0.2.54
- slate-html-serializer@0.6.26
- slate-hyperscript@0.8.3
- slate-plain-serializer@0.5.35
- slate-prop-types@0.4.52
- slate-react@0.16.0
- slate-schema-violations@0.1.33
- slate-simulator@0.4.52
- slate@0.38.0
2018-08-21 15:59:17 -07:00
Ian Storm Taylor
fa343c07f4
Publish
...
- slate-dev-environment@0.2.0
- slate-hotkeys@0.2.3
- slate-react@0.15.9
2018-08-16 15:26:05 -07:00
Ian Storm Taylor
0b74a37928
Publish
...
- slate-base64-serializer@0.2.53
- slate-dev-environment@0.1.6
- slate-hotkeys@0.2.2
- slate-html-serializer@0.6.25
- slate-hyperscript@0.8.2
- slate-plain-serializer@0.5.34
- slate-prop-types@0.4.51
- slate-react@0.15.8
- slate-schema-violations@0.1.32
- slate-simulator@0.4.51
- slate@0.37.7
2018-08-16 15:19:34 -07:00
Jinxuan Zhu
877dea16bf
Upgrade to React v16 lifecycle ( #1975 )
...
* Trying to use memoization and upgrade to react v16
* Fix error
* Fix error
* Fix handlers error
* Add annotation
* Remove EventHandlers
* No state
* Remove un-necessary polyfill
* Remove un-necessary polyfill
* Remove un-necessary handlers settings
* Early Return
* Fix Early Return
* Fix onChange
* Do not run onChange stack twice on same change
* Update annotation
* Better sense of resolve++
* Cache value in onChange and didMount
* Remove un-necessary rechack
* Renaming
* Remove change in leaf.js
* Handlers as this.handlers
* do not re-initialize change in onChange
* Re-run onChange stack only when change happens
* Update value when stack changes
* Rename to memoize-one
* queue changes
* Unify interface
* Fix bug
* Add document
* Remove id
* Do not use map
* Fix bug
* Fix eslint
* Fix update when props.value changes
* Add annotation
* Fix stack
* Inline queueChange
* Restore onChange
* restore onChange
* Refactor change and onChange
* Use onChange as the single interface for update
* Do not flushChange if inside event
* Give a warning about synchronous editor.change call
* Change isInChange in editor.change
* refactor resolution and tmp logic, cleanup code
2018-08-16 14:59:29 -07:00
Ian Storm Taylor
d05e90e546
Publish
...
- slate-base64-serializer@0.2.52
- slate-html-serializer@0.6.24
- slate-hyperscript@0.8.1
- slate-plain-serializer@0.5.33
- slate-prop-types@0.4.50
- slate-react@0.15.7
- slate-schema-violations@0.1.31
- slate-simulator@0.4.50
- slate@0.37.6
2018-08-15 18:03:10 -07:00
Ian Storm Taylor
55f09995a3
Publish
...
- slate-base64-serializer@0.2.51
- slate-html-serializer@0.6.23
- slate-hyperscript@0.8.0
- slate-plain-serializer@0.5.32
- slate-prop-types@0.4.49
- slate-react@0.15.6
- slate-schema-violations@0.1.30
- slate-simulator@0.4.49
- slate@0.37.5
2018-08-15 12:44:46 -07:00
Ian Storm Taylor
acfffe0c2a
Publish
...
- slate-base64-serializer@0.2.50
- slate-dev-environment@0.1.5
- slate-dev-logger@0.1.43
- slate-hotkeys@0.2.1
- slate-html-serializer@0.6.22
- slate-hyperscript@0.7.4
- slate-plain-serializer@0.5.31
- slate-prop-types@0.4.48
- slate-react@0.15.5
- slate-schema-violations@0.1.29
- slate-simulator@0.4.48
- slate@0.37.4
2018-08-15 12:40:25 -07:00
Ian Storm Taylor
a396d013ef
Publish
...
- slate-base64-serializer@0.2.49
- slate-html-serializer@0.6.21
- slate-hyperscript@0.7.3
- slate-plain-serializer@0.5.30
- slate-prop-types@0.4.47
- slate-react@0.15.4
- slate-schema-violations@0.1.28
- slate-simulator@0.4.47
- slate@0.37.3
2018-08-08 16:31:10 -07:00
Ian Storm Taylor
d4b52e3eb5
Publish
...
- slate-base64-serializer@0.2.48
- slate-html-serializer@0.6.20
- slate-hyperscript@0.7.2
- slate-plain-serializer@0.5.29
- slate-prop-types@0.4.46
- slate-react@0.15.3
- slate-schema-violations@0.1.27
- slate-simulator@0.4.46
- slate@0.37.2
2018-08-07 19:31:35 -07:00
Ian Storm Taylor
1efe55602f
Publish
...
- slate-hotkeys@0.2.0
- slate-react@0.15.2
2018-08-07 16:03:20 -07:00
Ian Storm Taylor
7e0929bd22
Publish
...
- slate-base64-serializer@0.2.47
- slate-html-serializer@0.6.19
- slate-hyperscript@0.7.1
- slate-plain-serializer@0.5.28
- slate-prop-types@0.4.45
- slate-react@0.15.1
- slate-schema-violations@0.1.26
- slate-simulator@0.4.45
- slate@0.37.1
2018-08-06 13:16:46 -07:00
Ian Storm Taylor
07d7f51bbc
Publish
...
- slate-base64-serializer@0.2.46
- slate-html-serializer@0.6.18
- slate-hyperscript@0.7.0
- slate-plain-serializer@0.5.27
- slate-prop-types@0.4.44
- slate-react@0.15.0
- slate-schema-violations@0.1.25
- slate-simulator@0.4.44
- slate@0.37.0
2018-08-03 15:41:27 -07:00
Ian Storm Taylor
ea6c4d9da2
update peerDependencies
2018-08-03 15:11:28 -07:00
Ian Storm Taylor
6fd185e172
Publish
...
- slate-base64-serializer@0.2.45
- slate-dev-benchmark@0.0.4
- slate-dev-environment@0.1.4
- slate-dev-logger@0.1.42
- slate-dev-test-utils@0.0.1
- slate-hotkeys@0.1.4
- slate-html-serializer@0.6.17
- slate-hyperscript@0.6.3
- slate-plain-serializer@0.5.26
- slate-prop-types@0.4.43
- slate-react@0.14.3
- slate-schema-violations@0.1.24
- slate-simulator@0.4.43
- slate@0.36.2
2018-08-01 12:07:02 -07:00
Ian Storm Taylor
64000a97aa
Publish
...
- slate-base64-serializer@0.2.44
- slate-html-serializer@0.6.16
- slate-hyperscript@0.6.2
- slate-plain-serializer@0.5.25
- slate-prop-types@0.4.42
- slate-react@0.14.2
- slate-schema-violations@0.1.23
- slate-simulator@0.4.42
- slate@0.36.1
2018-07-31 16:31:54 -07:00
Ian Storm Taylor
638d3e8e61
Publish
...
- slate-base64-serializer@0.2.43
- slate-dev-logger@0.1.41
- slate-html-serializer@0.6.15
- slate-hyperscript@0.6.1
- slate-plain-serializer@0.5.24
- slate-prop-types@0.4.41
- slate-react@0.14.1
- slate-schema-violations@0.1.22
- slate-simulator@0.4.41
- slate@0.36.0
2018-07-27 15:50:29 -07:00
Ian Storm Taylor
8deecc4461
Publish
...
- slate-base64-serializer@0.2.42
- slate-dev-benchmark@0.0.3
- slate-dev-environment@0.1.3
- slate-dev-logger@0.1.40
- slate-hotkeys@0.1.3
- slate-html-serializer@0.6.14
- slate-hyperscript@0.6.0
- slate-plain-serializer@0.5.23
- slate-prop-types@0.4.40
- slate-react@0.14.0
- slate-schema-violations@0.1.21
- slate-simulator@0.4.40
- slate@0.35.0
2018-07-27 12:42:43 -07:00
Ian Storm Taylor
01405be31b
add paths to ranges ( #1997 )
...
#### Is this adding or improving a _feature_ or fixing a _bug_?
Feature.
#### What's the new behavior?
This pull request adds paths to `Range` objects, including the selection. The paths and keys are kept in sync automatically, so that you can use whichever is ideal for your use case.
This should allow us to use paths for lots of the internal logic, which are much quicker to work with than keys since they avoid having to lookup the key in the document and can just traverse right to the node in question.
#### How does this change work?
`Range` objects have two new properties:
```js
range.anchorPath
range.focusPath
```
(Eventually these will be `range.anchor.path` and `range.focus.path` when points are introduced.)
When operations occur and whenever ranges are created/normalized, the paths are updated and kept in sync with the keys.
#### Have you checked that...?
<!--
Please run through this checklist for your pull request:
-->
* [x] The new code matches the existing patterns and styles.
* [x] The tests pass with `yarn test`.
* [x] The linter passes with `yarn lint`. (Fix errors with `yarn prettier`.)
* [x] The relevant examples still work. (Run examples with `yarn watch`.)
#### Does this fix any issues or need any specific reviewers?
Fixes: https://github.com/ianstormtaylor/slate/issues/1408
Fixes: https://github.com/ianstormtaylor/slate/issues/1567
2018-07-27 12:40:04 -07:00
Ian Storm Taylor
695f83bd40
Publish
...
- slate-base64-serializer@0.2.41
- slate-html-serializer@0.6.13
- slate-hyperscript@0.5.22
- slate-plain-serializer@0.5.22
- slate-prop-types@0.4.39
- slate-react@0.13.4
- slate-schema-violations@0.1.20
- slate-simulator@0.4.39
- slate@0.34.7
2018-07-23 12:57:22 -07:00
Ian Storm Taylor
1c3415b950
Publish
...
- slate-base64-serializer@0.2.40
- slate-dev-benchmark@0.0.2
- slate-html-serializer@0.6.12
- slate-hyperscript@0.5.21
- slate-plain-serializer@0.5.21
- slate-prop-types@0.4.38
- slate-react@0.13.3
- slate-schema-violations@0.1.19
- slate-simulator@0.4.38
- slate@0.34.6
2018-07-19 14:05:25 -07:00
Ian Storm Taylor
4b15481f92
Publish
...
- slate-base64-serializer@0.2.39
- slate-html-serializer@0.6.11
- slate-hyperscript@0.5.20
- slate-plain-serializer@0.5.20
- slate-prop-types@0.4.37
- slate-react@0.13.2
- slate-schema-violations@0.1.18
- slate-simulator@0.4.37
- slate@0.34.5
2018-07-05 08:57:50 -07:00
Ian Storm Taylor
30d0d055b5
unpeg monorepo dev dependencies
2018-07-05 08:56:08 -07:00
Ian Storm Taylor
facd857111
Publish
...
- slate-base64-serializer@0.2.38
- slate-html-serializer@0.6.10
- slate-hyperscript@0.5.19
- slate-plain-serializer@0.5.19
- slate-prop-types@0.4.36
- slate-react@0.13.1
- slate-schema-violations@0.1.17
- slate-simulator@0.4.36
- slate@0.34.4
2018-07-05 08:47:29 -07:00
Ian Storm Taylor
57138de130
Publish
...
- slate-base64-serializer@0.2.37
- slate-html-serializer@0.6.9
- slate-hyperscript@0.5.18
- slate-plain-serializer@0.5.18
- slate-prop-types@0.4.35
- slate-react@0.13.0
- slate-schema-violations@0.1.16
- slate-simulator@0.4.35
- slate@0.34.3
2018-07-03 16:12:47 -07:00
Ian Storm Taylor
d29fc26edf
Publish
...
- slate-base64-serializer@0.2.36
- slate-html-serializer@0.6.8
- slate-hyperscript@0.5.17
- slate-plain-serializer@0.5.17
- slate-prop-types@0.4.34
- slate-react@0.12.11
- slate-schema-violations@0.1.15
- slate-simulator@0.4.34
- slate@0.34.2
2018-06-22 08:56:51 -07:00
Ian Storm Taylor
1cc486e28c
Publish
...
- slate-base64-serializer@0.2.35
- slate-html-serializer@0.6.7
- slate-hyperscript@0.5.16
- slate-plain-serializer@0.5.16
- slate-prop-types@0.4.33
- slate-react@0.12.10
- slate-schema-violations@0.1.14
- slate-simulator@0.4.33
- slate@0.34.1
2018-06-19 19:36:03 -07:00
Ian Storm Taylor
d884be872d
Publish
...
- slate-base64-serializer@0.2.34
- slate-html-serializer@0.6.6
- slate-hyperscript@0.5.15
- slate-plain-serializer@0.5.15
- slate-prop-types@0.4.32
- slate-react@0.12.9
- slate-schema-violations@0.1.13
- slate-simulator@0.4.32
- slate@0.34.0
2018-06-14 19:55:55 -07:00
Ian Storm Taylor
63eae6b48b
Publish
...
- slate-base64-serializer@0.2.33
- slate-html-serializer@0.6.5
- slate-hyperscript@0.5.14
- slate-plain-serializer@0.5.14
- slate-prop-types@0.4.31
- slate-react@0.12.8
- slate-schema-violations@0.1.12
- slate-simulator@0.4.31
- slate@0.33.8
2018-06-14 19:22:05 -07:00
Jinxuan Zhu
5aa993e81d
Allow user to use immutable 4.0.0-rc without yarn warning ( #1869 )
...
* Allow user to use immutable 4.0.0-rc without yarn warning
* Fix versions
* Fix immutable version to most recent
* Fix versions for react
2018-06-14 18:08:45 -07:00
Ian Storm Taylor
b13affefd6
Publish
...
- slate-base64-serializer@0.2.32
- slate-html-serializer@0.6.4
- slate-hyperscript@0.5.13
- slate-plain-serializer@0.5.13
- slate-prop-types@0.4.30
- slate-react@0.12.7
- slate-schema-violations@0.1.11
- slate-simulator@0.4.30
- slate@0.33.7
2018-06-10 17:05:20 -07:00
Ian Storm Taylor
c1bad2b84c
Publish
...
- slate-base64-serializer@0.2.31
- slate-dev-environment@0.1.2
- slate-hotkeys@0.1.2
- slate-html-serializer@0.6.3
- slate-hyperscript@0.5.12
- slate-plain-serializer@0.5.12
- slate-prop-types@0.4.29
- slate-react@0.12.6
- slate-schema-violations@0.1.10
- slate-simulator@0.4.29
- slate@0.33.6
2018-05-10 19:50:06 -07:00
Nicolas Gaborit
0cfd54fc19
Speed up decorations rendering ( #1801 )
...
* order, assign decoration ranges to node children
* move decorations ordering method to utils
* Add immutable dep. Prettify
* Try to improve perfs
* Fix orderChildDecorations
* Compute correct order from the start for range starts
* Add tests for order-child-decorations
* Optimize text decoration rendering
* Rewrite with simpler API. Apply it to Content as well
* Lint
* Fix tests
2018-05-10 19:43:59 -07:00
Ian Storm Taylor
c15f200d10
Publish
...
- slate-base64-serializer@0.2.30
- slate-dev-environment@0.1.1
- slate-hotkeys@0.1.1
- slate-html-serializer@0.6.2
- slate-hyperscript@0.5.11
- slate-plain-serializer@0.5.11
- slate-prop-types@0.4.28
- slate-react@0.12.5
- slate-schema-violations@0.1.9
- slate-simulator@0.4.28
- slate@0.33.5
2018-04-27 16:49:53 -07:00
Jinxuan Zhu
3efd6df1e3
Update debug package in package.json ( #1781 )
...
* Update debug package
* add yarn.lock back
2018-04-27 14:11:14 -07:00
Justin Weiss
d4c630c05a
Extract hotkey and environment detection into separate packages ( #1760 )
...
* Extract hotkey and environment detection into separate packages
Overriding default behavior in plugins can be hard, because you have
to match all of the keybindings that Slate uses. By exporting hotkeys
as its own package, both core Slate plugins and custom plugins can use
the same key detection logic.
* Rename Hotkeys.* to Hotkeys.is*
2018-04-27 13:19:39 -07:00
Ian Storm Taylor
fb8075a233
Publish
...
- slate-base64-serializer@0.2.29
- slate-html-serializer@0.6.1
- slate-hyperscript@0.5.10
- slate-plain-serializer@0.5.10
- slate-prop-types@0.4.27
- slate-react@0.12.4
- slate-schema-violations@0.1.8
- slate-simulator@0.4.27
- slate@0.33.4
2018-03-28 09:50:20 -07:00
Ian Storm Taylor
86af03dd30
Publish
...
- slate-base64-serializer@0.2.28
- slate-html-serializer@0.5.9
- slate-hyperscript@0.5.9
- slate-plain-serializer@0.5.9
- slate-prop-types@0.4.26
- slate-react@0.12.3
- slate-schema-violations@0.1.7
- slate-simulator@0.4.26
- slate@0.33.3
2018-03-22 14:51:41 -07:00
Ian Storm Taylor
b17bf1a7b9
Publish
...
- slate-base64-serializer@0.2.27
- slate-html-serializer@0.5.8
- slate-hyperscript@0.5.8
- slate-plain-serializer@0.5.8
- slate-prop-types@0.4.25
- slate-react@0.12.2
- slate-schema-violations@0.1.6
- slate-simulator@0.4.25
- slate@0.33.2
2018-03-21 16:58:48 -07:00
Ian Storm Taylor
36c7f4fc32
fix peerDependencies in slate packages, closes #1690
2018-03-21 16:56:20 -07:00
Ian Storm Taylor
0587a5f916
Publish
...
- slate-base64-serializer@0.2.26
- slate-html-serializer@0.5.7
- slate-hyperscript@0.5.7
- slate-plain-serializer@0.5.7
- slate-prop-types@0.4.24
- slate-react@0.12.1
- slate-schema-violations@0.1.5
- slate-simulator@0.4.24
- slate@0.33.1
2018-03-21 16:38:29 -07:00