1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-28 17:39:57 +02:00
Commit Graph

4195 Commits

Author SHA1 Message Date
Ian Storm Taylor
bb6a4d9ce8 fix tests missing selection, unskip some tests 2019-12-13 12:53:58 -05:00
Ian Storm Taylor
d8b915a406 add testes 2019-12-13 12:32:53 -05:00
Ian Storm Taylor
c20f771b0a Publish
- slate-history@0.54.2
 - slate-hyperscript@0.54.2
 - slate-react@0.54.2
 - slate@0.54.2
slate@0.54.2 slate-react@0.54.2 slate-hyperscript@0.54.2 slate-history@0.54.2
2019-12-12 20:23:18 -05:00
Ian Storm Taylor
e0f0122de9 fix lint 2019-12-12 20:20:00 -05:00
Ian Storm Taylor
31b7ceadc9 add select option to insertNodes 2019-12-12 18:50:37 -05:00
Ian Storm Taylor
262abdc687 Publish
- slate-history@0.54.1
 - slate-hyperscript@0.54.1
 - slate-react@0.54.1
 - slate@0.54.1
slate@0.54.1 slate-react@0.54.1 slate-hyperscript@0.54.1 slate-history@0.54.1
2019-12-12 17:13:18 -05:00
Ian Storm Taylor
cf571d36bd fix inserting nodes in empty documents 2019-12-12 17:11:26 -05:00
Ian Storm Taylor
c9ee503828 Publish
- slate-history@0.54.0
 - slate-hyperscript@0.54.0
 - slate-react@0.54.0
 - slate@0.54.0
slate@0.54.0 slate-react@0.54.0 slate-hyperscript@0.54.0 slate-history@0.54.0
2019-12-12 16:00:14 -05:00
Ian Storm Taylor
49c799d1f9 update changelog 2019-12-12 15:57:10 -05:00
Ian Storm Taylor
6552da940a Add format_text command, and editor.marks state (#3308)
* add format_text command, refactor command extensions

* update onChange to not receive selection

* update docs

* fix tests
2019-12-12 15:37:55 -05:00
Ziad Beyens
ed40c08b80 fix: ts (#3301) 2019-12-11 17:18:38 -05:00
Sidwyn Koh
26a91f805a Allow links to be pasted without a selection (#3297)
* Allow links to be pasted without a selection

* Update links.js
2019-12-11 13:04:34 -05:00
Dylan Markow
28c31c2c0c Fix forced layout example (#3294) 2019-12-10 23:58:40 -05:00
Ian Storm Taylor
26b67578d4 Publish
- slate-history@0.53.0
 - slate-hyperscript@0.53.0
 - slate-react@0.53.0
 - slate@0.53.0
slate@0.53.0 slate-react@0.53.0 slate-hyperscript@0.53.0 slate-history@0.53.0
2019-12-10 19:02:04 -05:00
Ian Storm Taylor
7a96a2740a update changelog 2019-12-10 18:57:38 -05:00
Ian Storm Taylor
14f2d0baea update changelog 2019-12-10 18:57:16 -05:00
Ian Storm Taylor
33b274636b remove the path from node matching functions (#3259)
* remove the path from node matching functions

* fixes
2019-12-10 18:52:12 -05:00
Ian Storm Taylor
9013742098 remove unnecessary helpers (#3289) 2019-12-10 17:53:39 -05:00
Ian Storm Taylor
e68a5cd305 remove the slate-schema package (#3291) 2019-12-10 17:53:27 -05:00
Ian Storm Taylor
9d4a9d7a65 Publish
- slate-history@0.52.6
 - slate-hyperscript@0.52.6
 - slate-react@0.52.7
 - slate-schema@0.52.6
 - slate@0.52.6
slate@0.52.6 slate-schema@0.52.6 slate-react@0.52.7 slate-hyperscript@0.52.6 slate-history@0.52.6
2019-12-10 16:18:34 -05:00
Ian Storm Taylor
bad6472e13 add previous/next sibling query support (#3290) 2019-12-10 16:10:06 -05:00
Eddy Wilson
5bddee673f Make Editable accept 'as' prop (#3288)
* allow passing 'as' prop to render custom component

* Update editable.tsx
2019-12-10 16:09:58 -05:00
Ian Storm Taylor
faf73d4521 fix normalizing guide 2019-12-10 14:26:09 -05:00
Ian Storm Taylor
0e68af01ee add gitbook yaml 2019-12-10 14:07:22 -05:00
Ian Storm Taylor
c35ca628f2 typo 2019-12-10 14:01:21 -05:00
Ian Storm Taylor
dbac72cc8e add normalizing guide to docs 2019-12-10 13:55:44 -05:00
Ian Storm Taylor
b99fdeb718 add now.json 2019-12-09 21:38:29 -05:00
Ian Storm Taylor
3400b4271e test zeit deploy 2019-12-09 21:07:34 -05:00
Ian Storm Taylor
6b37e46d5c Publish
- slate-react@0.52.6
slate-react@0.52.6
2019-12-09 20:49:47 -05:00
Eddy Wilson
7f7f7c9e9d fix trailing new line (#3280) 2019-12-09 18:40:29 -05:00
Ziad Beyens
a234667935 fix: typo (#3281) 2019-12-09 18:39:50 -05:00
Ryan Gurney
1141f59f4f Small docs changes (#3279)
* Small docs changes

Fixes a couple of small typos in the plugins documentation.

* Update 07-plugins.md
2019-12-09 13:16:50 -05:00
Ian Storm Taylor
bf5cd700ca Publish
- slate-history@0.52.5
 - slate-hyperscript@0.52.5
 - slate-react@0.52.5
 - slate-schema@0.52.5
 - slate@0.52.5
slate@0.52.5 slate-schema@0.52.5 slate-react@0.52.5 slate-hyperscript@0.52.5 slate-history@0.52.5
2019-12-07 22:57:26 -05:00
Ian Storm Taylor
3364d77508 fix Editor.mergeNodes previous matching logic 2019-12-07 22:53:52 -05:00
Ian Storm Taylor
cfd4c3dd17 Publish
- slate-history@0.52.4
 - slate-hyperscript@0.52.4
 - slate-react@0.52.4
 - slate-schema@0.52.4
 - slate@0.52.4
slate@0.52.4 slate-schema@0.52.4 slate-react@0.52.4 slate-hyperscript@0.52.4 slate-history@0.52.4
2019-12-07 18:14:07 -05:00
Ian Storm Taylor
4979f8ec1e add withMatch option to Editor.mergeNodes 2019-12-07 17:46:19 -05:00
Ian Storm Taylor
d2bdaae66c reorganize core normalization tests 2019-12-07 16:00:39 -05:00
Ziad Beyens
0e95b02399 fix: ts (#3271)
* fix: ts

* remove suggest
2019-12-07 15:33:59 -05:00
Ziad Beyens
3b16a1c3f0 fix: ts (#3270)
* fix: ts

Fix:

- Argument of type 'Point | undefined' is not assignable to parameter of type 'Location'.
  Type 'undefined' is not assignable to type 'Location'.
- Types of property 'zIndex' are incompatible.

* use &&

* use optional chaining

* revert optional chaining (not supported)
2019-12-07 15:31:51 -05:00
Ian Storm Taylor
043a5c1709 fix parse error 2019-12-07 15:27:22 -05:00
Ian Storm Taylor
eb6631a677 Merge branch 'master' of github.com:ianstormtaylor/slate 2019-12-07 14:52:23 -05:00
Ian Storm Taylor
39d19b0f71 add Editor.unsetNodes and Node.children 2019-12-07 14:52:18 -05:00
Ziad Beyens
7ac85e6a93 style: no-unused-vars (#3269) 2019-12-07 11:53:31 -05:00
Ian Storm Taylor
0856dd7115 Publish
- slate-history@0.52.3
 - slate-hyperscript@0.52.3
 - slate-react@0.52.3
 - slate-schema@0.52.3
 - slate@0.52.3
slate@0.52.3 slate-schema@0.52.3 slate-react@0.52.3 slate-hyperscript@0.52.3 slate-history@0.52.3
2019-12-07 11:47:18 -05:00
Dylan Markow
b4268647a2 Insert outside inline when selection is at the end (#3260)
* Insert outside inline when selection is at the end

* Move inline edge check to insert_text

* Fix selection point after deleting text
2019-12-07 11:45:06 -05:00
Ian Storm Taylor
e1918a7cf4 try to fix rollup ts declarations 2019-12-07 11:40:48 -05:00
Ian Storm Taylor
7fee65b87c Publish
- slate-history@0.52.2
 - slate-hyperscript@0.52.2
 - slate-react@0.52.2
 - slate-schema@0.52.2
 - slate@0.52.2
slate@0.52.2 slate-schema@0.52.2 slate-react@0.52.2 slate-hyperscript@0.52.2 slate-history@0.52.2
2019-12-06 17:57:37 -05:00
Ian Storm Taylor
313debddba add voids: true option to transforms and queries (#3265) 2019-12-06 17:24:13 -05:00
Yoz Grahame
ff516ccad8 Fix introduction links to examples (#3266)
Existing links (to Github) were 404ing, so I changed them to point to slatejs.org.
Removed the final list item linking to the rest of the examples, since I can't see a page on slatejs.org that does that. Instead, I added a line after the examples list that talks about "View Source" and links to the Github folder listing.
2019-12-06 17:22:56 -05:00
Dylan Markow
b629be3398 Fix paste example: nested formatting (#3264) 2019-12-06 17:14:35 -05:00