1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-22 08:02:25 +01:00

86 Commits

Author SHA1 Message Date
github-actions[bot]
39b0254867
Version Packages (#4243)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-12 21:29:31 -04:00
Bjørn Stabell
b4eeccb017
Ensure round-trip tests don't mutate output before checking against it => reveals 4 tests are broken (#4188)
* Ensure round-trip tests don't mutate output before checking against it.  Need deep copy instead of shallow.

* Skip the 4 tests that are broken - they should perhaps be fixed in a separate PR
2021-05-07 09:52:55 -04:00
dependabot[bot]
3b3c94a72c
Bump immer from 7.0.7 to 8.0.1 (#4050)
Bumps [immer](https://github.com/immerjs/immer) from 7.0.7 to 8.0.1.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v7.0.7...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 19:52:00 -04:00
Ian Storm Taylor
c5d412f5c6 add lint-staged for auto-formatting commits 2021-04-01 01:41:07 -04:00
github-actions[bot]
f76ff2a276 v0.62.0 (#4156)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-04-01 01:38:28 -04:00
Mateusz Burzyński
42d99af6fa
Do not store focus/blur in history (#3616) 2021-03-31 15:46:53 -04:00
Sunny Hirai
7b6c986661 v0.61.3 2021-03-30 16:32:04 -07:00
Ian Storm Taylor
476f1e195c delete extra changelog cruft 2021-03-30 01:41:42 -04:00
Automation
5fa8fb3471 v0.61.2 2021-03-30 01:03:00 +00:00
Automation
4ec2dc9d5c v0.61.1 2021-03-29 22:39:50 +00:00
Sunny Hirai
b5cb9ee6db v0.61.0 2021-03-29 08:50:06 -07:00
Sunny Hirai
c2bc4f6444 v0.60.17 2021-03-29 01:15:14 -07:00
Sunny Hirai
ad7abdad7a v0.60.16 2021-03-29 01:09:18 -07:00
Sunny Hirai
cf42529704 Fix linting 2021-03-29 01:06:51 -07:00
Sunny Hirai
0434182166 Added comments to with-history and with-react to help fix TypeScript errors 2021-03-29 01:01:25 -07:00
Sunny Hirai
b0c27496ec v0.60.11 2021-03-20 13:50:24 -07:00
Sunny Hirai
5be428a0b3
Enable Extending Editor types in TypeScript (#4133)
* Change HistoryEditor from type to interface

* v0.60.8

* v0.60.9

* Have ReactEditor and HistoryEditor extend BaseEditor instead of Editor

* v0.60.10
2021-03-20 13:47:33 -07:00
Sunny Hirai
a72958e6c3
Improved Types (#4119)
* Experimental release to see if CustomTypes holds up through a publish

* Add experimental release script

* Fix lint

* v0.60.5-alpha.0

* Allow null properties in setNodes

* v0.60.6-alpha.0

* Revert null properties on Transforms.setNodes

* v0.60.7-alpha.0

* Update examples to use custom Element and Text with discriminated unions

* Add documentation for using TypeScript improvements

* Be explicit about typescript version in package.json

* Force lerna bootstrap to fix build issues on CI and fix a few type examples

* Add slate devDependencies with * back

* v0.60.7

* Switch to a non prerelease version to fix lerna not linking in root

* Add documentation for not using prerelease versions and on how to create experimental releases

* Try removing lerna bootstrap and see if it works
2021-03-11 11:48:31 -08:00
Sunny Hirai
df06528b18 v0.60.4 2021-02-16 19:49:37 -08:00
Sunny Hirai
291aac9c5b v0.60.3 2021-02-08 13:01:11 -08:00
Sunny Hirai
424a6cbde9 v0.60.2 2021-01-19 00:10:44 -08:00
Krzysztof Mędrzycki
79e02e881f
Upgrade immer to 7.0.0 (#3850) 2021-01-15 12:07:42 -05:00
Sunny Hirai
1f067b8d33 v0.60.1 2020-12-11 13:06:26 -08:00
Sunny Hirai
db3f52517f Merge TypeScript types from master into main 2020-11-27 16:31:16 -08:00
Sunny Hirai
db118ee8d8 v0.60.0 2020-11-24 12:39:01 -08:00
Sunny Hirai
08275f68f3
Custom TypeScript Types (#3835)
This PR adds better TypeScript types into Slate and is based on the proposal here: https://github.com/ianstormtaylor/slate/issues/3725

* Extend Slate's types like Element and Text

* Supports type discrimination (ie. if an element has type === "table" then we get a reduced set of properties)

* added custom types

* files

* more extensions

* files

* changed fixtures

* changes eslint file

* changed element.children to descendant

* updated types

* more type changes

* changed a lot of typing, still getting building errors

* extended text type in slate-react

* removed type assertions

* Clean up of custom types and a couple uneeded comments.

* Rename headingElement-true.tsx.tsx to headingElement-true.tsx

* moved basetext and baselement

* Update packages/slate/src/interfaces/text.ts

Co-authored-by: Brent Farese <25846953+BrentFarese@users.noreply.github.com>

* Fix some type issues with core functions.

* Clean up text and element files.

* Convert other types to extended types.

* Change the type of editor.marks to the appropriate type.

* Add version 100.0.0 to package.json

* Revert "Add version 100.0.0 to package.json"

This reverts commit 329e44e43d968700655b1c46f968bfd3147e7339.

* added custom types

* files

* more extensions

* files

* changed fixtures

* changes eslint file

* changed element.children to descendant

* updated types

* more type changes

* changed a lot of typing, still getting building errors

* extended text type in slate-react

* removed type assertions

* Clean up of custom types and a couple uneeded comments.

* Rename headingElement-true.tsx.tsx to headingElement-true.tsx

* moved basetext and baselement

* Update packages/slate/src/interfaces/text.ts

Co-authored-by: Brent Farese <25846953+BrentFarese@users.noreply.github.com>

* Fix some type issues with core functions.

* Clean up text and element files.

* Convert other types to extended types.

* Change the type of editor.marks to the appropriate type.

* Run linter.

* Remove key:string uknown from the base types.

* Clean up types after removing key:string unknown.

* Lint and prettier fixes.

* Implement custom-types

Co-authored-by: mdmjg <mdj308@nyu.edu>

* added custom types to examples

* reset yarn lock

* added ts to fixtures

* examples custom types

* Working fix

* ts-thesunny-try

* Extract interface types.

* Fix minor return type in create-editor.

* Fix the typing issue with Location having compile time CustomTypes

* Extract types for Transforms.

* Update README.

* Fix dependency on slate-history in slate-react

Co-authored-by: mdmjg <mdj308@nyu.edu>
Co-authored-by: Brent Farese <brentfarese@gmail.com>
Co-authored-by: Brent Farese <25846953+BrentFarese@users.noreply.github.com>
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-11-24 12:30:06 -08:00
CameronAckermanSEL
60b56651b2 v0.59.0 2020-09-24 20:46:51 -07:00
Maria Jaramillo
93fe251517
Convert Slate tests to TypeScript (#3784)
* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* rebase

* removed ~ files

* changed yarn
2020-07-14 13:47:47 -04:00
CameronAckermanSEL
958189bc4a v0.58.4 2020-07-07 18:17:33 -07:00
CameronAckermanSEL
ca126fbb39 v0.58.3 2020-06-03 18:24:33 -07:00
CameronAckermanSEL
aabb9b50bd v0.58.1 2020-05-11 16:31:12 -07:00
CameronAckermanSEL
8737f0411a v0.58.0 2020-05-05 18:50:22 -07:00
CameronAckermanSEL
036ee664af v0.57.3 2020-05-04 17:36:43 -07:00
CameronAckermanSEL
4f6ca7bc62 v0.57.2 2020-04-24 16:26:26 -07:00
CameronAckermanSEL
23141c046b Revert "v0.57.2"
This reverts commit f9ec4cfaa852d4aaf937c8347f2adb41e23bc793.
2020-04-08 10:35:45 -07:00
CameronAckermanSEL
f9ec4cfaa8 v0.57.2 2020-04-07 13:19:28 -07:00
Ian Storm Taylor
22d9095c39 v0.57.1 2019-12-20 12:39:32 -05:00
Ziad Beyens
101661ee27 fix: Slate editor props (#3359)
* fix: Slate editor props

 TS2322: Type 'Editor' is not assignable to type 'ReactEditor'.

* revert

* generic type

* generic type

* generic type

* extends Editor

* extends Editor

* infer

* infer
2019-12-20 12:17:00 -05:00
Ian Storm Taylor
922d03e006 v0.57.0 2019-12-18 16:04:05 -05:00
Ian Storm Taylor
0bbe121d76
Remove commands (#3351)
* remove commands in favor of editor-level functions

* update examples

* fix lint
2019-12-18 15:00:42 -05:00
Ian Storm Taylor
c2d7905e19 v0.56.1 2019-12-18 14:59:46 -05:00
Ian Storm Taylor
d765cbc3a8 v0.56.0 2019-12-17 23:03:12 -05:00
Ian Storm Taylor
6f98363566 v0.55.3 2019-12-16 16:36:55 -05:00
Ian Storm Taylor
c77e1233d4 remove unused deps, fix peerDependencies 2019-12-16 16:32:44 -05:00
Ian Storm Taylor
72b4bf11db v0.55.2 2019-12-16 16:20:19 -05:00
Ian Storm Taylor
1f367a25fa v0.55.1 2019-12-16 16:05:01 -05:00
Ian Storm Taylor
40856cfa95 v0.55.0 2019-12-15 21:03:17 -05:00
Ian Storm Taylor
b927fa3a11 Publish
- slate-history@0.54.6
 - slate-hyperscript@0.54.6
 - slate-react@0.54.6
 - slate@0.54.6
2019-12-13 19:15:11 -05:00
Ian Storm Taylor
00c5954f41 Publish
- slate-history@0.54.5
 - slate-hyperscript@0.54.5
 - slate-react@0.54.5
 - slate@0.54.5
2019-12-13 17:00:38 -05:00
Ian Storm Taylor
f05cefa7a8 Publish
- slate-history@0.54.4
 - slate-hyperscript@0.54.4
 - slate-react@0.54.4
 - slate@0.54.4
2019-12-13 16:08:08 -05:00