1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 17:23:07 +01:00

69 Commits

Author SHA1 Message Date
Naresh Bhatia
b169211c64
docs: add react-force/slate-editor to the list of pre-packaged editors (#3876) 2021-03-31 14:32:48 -04:00
moonrailgun
2cf498e1a2
docs: add TRPG Engine link to products using slate (#3971) 2021-03-31 14:32:00 -04:00
Sunny Hirai
a8187e226e docs: Add clarity about browser support 2021-03-30 22:26:04 -07:00
Jack
f697b074fc
Add discord to the list of products that use slate (#4101)
Discord uses slate
2021-02-27 17:51:15 -05:00
Frederik Eychenié
0954ffc191
docs: add GraphCMS to products using slate (#3732) 2020-06-13 09:48:12 -07:00
Ziad Beyens
557c51e7d4
slate-plugins-next (#3692)
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-20 17:03:35 -07:00
Scott Parker
76acd9c449
Remove Outline since they switched to ProseMirror (#3694) 2020-05-20 17:01:56 -07:00
Jolene Langlinais
c00f246c7e
docs(resources): adjust editor link (#3687)
Adjusting for the new monorepo for Accord Project Markdown Editor.
2020-05-14 23:12:29 -07:00
Kevin Simons
3c80c3e88b
Fix a few issues with the documentation (#3679)
* Fix a few issues with the documentation

* Add Kitemaker to the list of sites using Slate
2020-05-13 08:56:24 -07:00
Jolene Langlinais
c04672b1f7
docs(resources): add product and editor (#3632)
Signed-off-by: irmerk <jolenelanglinais@gmail.com>
2020-04-23 21:26:31 -07:00
Sunny Hirai
cc7f035229 Added a warning for Android in faq (#3356) 2019-12-18 21:18:35 -05:00
Ian Storm Taylor
e68a5cd305
remove the slate-schema package (#3291) 2019-12-10 17:53:27 -05:00
Ian Storm Taylor
124ff37c3a update docs 2019-12-05 12:52:52 -05:00
Ian Storm Taylor
7e6f680a1f update changelogs 2019-12-05 11:44:07 -05:00
Charley DAVID
b2c5d57788 Add Slite.com as example of usage (#3142) 2019-11-28 10:30:15 -05:00
Ian Storm Taylor
4ff6972096
Next (#3093)
* remove some key usage from core, refactor Operations.apply

* undeprecate some methods

* convert more key usage to paths

* update deprecations

* convert selection commands to use all paths

* refactor word boundary selection logic

* convert many at-range commands to use paths

* convert wrapBlock and wrapInline to not use keys

* cleanup

* remove chainability from editor

* simplify commands, queries and middleware

* convert deleteAtRange

* remove key usage from schema, deprecate *ByKey methods

* migrate *ByKey tests, remove index from *ByPath signatures

* rename at-current-range tests

* deprecate mode key usage, migrate more tests away from keys

* deprecate range and point methods which rely on keys to work

* refactor insertBlock, without fixing warnings

* add pathRef/pointRef, fix insertBlock/Inline deprecations, work on insertFragment

* refactor insertFragment

* get rich-text example rendering

* fix lint

* refactor query files, fix more tests

* remove unused queries, refactor others

* deprecate splitDescendantsByPath

* merge master

* add typescript, convert slate, slate-hyperscript, slate-plain-serializer

* add Point, Path, Range, Annotation tests

* add Annotation, Change, Element, Fragment, Mark, Range, Selection, Value interfaces tests

* add Operation and Text tests

* add Node tests

* get operations and normalization tests working for slate

* get *AtPath command tests passing

* rename *AtPath command tests

* rename

* get *AtPoint tests working

* rename

* rename

* add value queries tests

* add element, mark and path queries tests

* convert most on-selection tests

* convert on-selection commands

* rename

* get addMarks and delete commands working

* rename

* rename

* rename

* refactor value.positions(), work on delete tests

* progress on delete tests

* more delete work

* finish delete tests

* start converting to at-based commands

* restructure query tests

* restructure operations tests

* more work converting to multi-purpose commands

* lots of progress on converting to at-based commands

* add unwrapNodes

* remove setValue

* more progress

* refactor node commands to use consistent matching logic

* cleanup, get non-fragment commands passing

* remove annotations and isAtomic

* rename surround/pluck to cover/uncover

* add location concept, change at-path to from-path for iterables

* refactor batches

* add location-based queries

* refactor hanging logic

* more location query work

* renaming

* use getMatch more

* add split to wrap/unwrap

* flip levels/ancestors ordering

* switch splitNodes to use levels

* change split to always:false by default

* fix tests

* add more queries tests

* fixing more delete logic

* add more splitNodes tests

* get rest of delete tests passing

* fix location-based logic in some commands

* cleanup

* get previous packages tests passing again

* add slate-history package

* start slate-schema work

* start of react working

* rendering fixes

* get rich and plain text examples working

* get image example working with hooks and dropping

* refactor onDrop to be internal

* inline more event handlers

* refactor lots of event-related logic

* change rendering to use render props

* delete unused stuff

* cleanup dom utils

* remove unused deps

* remove unnecessary packages, add placeholder

* remove slate-react-placeholder package

* remove unused dep

* remove unnecessary tests, fix readonly example

* convert checklists example

* switch to next from webpack

* get link example working

* convert more examples

* preserve keys, memoized leafs/texts, fix node lookup

* fix to always useLayoutEffect for ordering

* fix annotations to be maps, memoize elements

* remove Change interface

* remove String interface

* rename Node.entries to Node.nodes

* remove unnecessary value queries

* default to selection when iterating, cleanup

* remove unused files

* update scroll into view logic

* fix undoing, remove constructor types

* dont sync selection while composing

* add workflows

* remove unused deps

* convert mentions example

* tweaks

* convert remaining examples

* rename h to jsx, update schema

* fix schema tests

* fix slate-schema logic and tests

* really fix slate-schema and forced-layout example

* get start of insertFragment tests working

* remove Fragment interface

* remove debugger

* get all non-skipped tests passing

* cleanup deps

* run prettier

* configure eslint for typescript

* more eslint fixes...

* more passing

* update some docs

* fix examples

* port windows undo hotkey change

* fix deps, add basic firefox support

* add event overriding, update walkthroughs

* add commands, remove classes, cleanup examples

* cleanup rollup config

* update tests

* rename queries tests

* update other tests

* update walkthroughs

* cleanup interface exports

* cleanup, change mark transforms to require location

* undo mark transform change

* more

* fix tests

* fix example

* update walkthroughs

* update docs

* update docs

* remove annotations

* remove value, move selection and children to editor

* add migrating doc

* fix lint

* fix tests

* fix DOM types aliasing

* add next export

* update deps, fix prod build

* fix prod build

* update scripts

* update docs and changelogs

* update workflow and pull request template
2019-11-27 20:54:42 -05:00
Akumatus
3fa6ff17e1 fix broken core-plugin link in doc and add one item to the products list (#3017) 2019-09-21 13:46:21 -04:00
Dragos Bulugean
8d0899fee9 Add Archbee to resources.md (#2994) 2019-09-08 10:04:36 -07:00
Devin Morgan
9d9d6067e4 Update glossary.md with definition of match (#2964)
`match` get's used a number of times within the slate/schema.md but it does not appear to be explicitly defined anywhere. This term seems like a great candidate for the Glossary.
2019-08-19 10:20:46 -06:00
Aaron Greenlee
edbafa6fcb Glossary Enhancements (#2663)
* Rephrased to removed idiom and better describe Slate.

* Added links to educate folks about the core DOM concepts

* Renamed headline to `Slate Mirrors the Dom`

* Rephrased immutable js introduction

* Corrected spelling error

* Simplified language introducing how one can change values.

* Simplified statement about collection methods

* Added encouraging language for Immutable JS learning suggestion

* Quoted mozilla links

* Suggestions to improve readability of data-model documentation

* Added serialized example value

* Resolved one prettier complaints

* `yarn run prettier`

* anchor/focus point glossary content

* normalized term identifiers

* added mark

* Added plugin

* Added schema

* `yarn run prettier` and enhancements to collapsed, focus, and value
2019-03-26 07:27:48 -07:00
Ivan Ha
b3107fc142 docs: fix immutablejs doc domain (#2655) 2019-03-25 19:23:53 -07:00
Brendan
a3f91e139f Add @convertkit/slate-lists to plugins page (#2615) 2019-02-28 12:08:34 -08:00
Brendan
58709123dd Add @convertkit/slate-code to docs (#2568) 2019-01-30 12:12:05 -08:00
Ralph Feltis
5cca509db2 Fix typo in resources.md (#2484)
* Adding Guilded to Products list

* Fixing typo
2018-12-05 12:22:37 -08:00
Gijs Nelissen
ab91240af7 Add prezly.com to resources.md (#2483) 2018-12-04 20:57:10 -08:00
Ralph Feltis
bc252de9e1 Adding Guilded to Products list (#2482) 2018-12-04 20:53:19 -08:00
Shawn Erquhart
ce8bfa56a6 add Netlify CMS to products list (#2478) 2018-12-04 11:07:28 -08:00
Knut Melvær
6d8df18f01 Add Sanity.io to the list of products (#2441)
Hi Ian! Took the liberty to add Sanity.io to the list 🙌
2018-11-19 14:43:43 -08:00
Ian Storm Taylor
7a71de387c
Add controller (#2221)
* fold Stack into Editor

* switch Change objects to be tied to editors, not values

* introduce controller

* add the "commands" concept

* convert history into commands on `value.data`

* add the ability to not normalize on editor creation/setting

* convert schema to a mutable constructor

* add editor.command method

* convert plugin handlers to receive `next`

* switch commands to use the onCommand middleware

* add queries support, convert schema to queries

* split out browser plugin

* remove noop util

* fixes

* fixes

* start fixing tests, refactor hyperscript to be more literal

* fix slate-html-serializer tests

* fix schema tests with hyperscript

* fix text model tests with hyperscript

* fix more tests

* get all tests passing

* fix lint

* undo decorations example update

* update examples

* small changes to the api to make it nicer

* update docs

* update commands/queries plugin logic

* change normalizeNode and validateNode to be middleware

* fix decoration removal

* rename commands tests

* add useful errors to existing APIs

* update changelogs

* cleanup

* fixes

* update docs

* add editor docs
2018-10-09 14:03:27 -07:00
Eric Edem
f60100bd93 Update products to include Cake (#2207)
Now that Cake is coming out of invite only mode, figured it was a good time to add it. :)
2018-09-25 13:29:15 -07:00
Nick Quaranto
237dd8395f Update resources with Chatterslate (#2204)
Just a quick update here with a link to https://github.com/chatterbugapp/chatterslate !
2018-09-25 11:27:39 -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
Cheng Zheng
142d9a82f6 Add Products: Taskade (#2008)
* Add Products: Taskade

* Alphabet order

* remove empty line
2018-07-31 22:39:32 -07:00
Dylan Phelan
09c93a6cd4 Initial fixes for IE compat of cloneFragment (#1943)
* Initial fixes for IE compat of cloneFragment

* Used prettier to fix styling

* Removed solutions that can be polyfilled; added COMPAT comment

* Updated FAQ to reflect ideology towards IE

* Update faq.md

* Update faq.md

* Update faq.md
2018-07-19 12:53:38 -07:00
Enzo Ferey
39d50b39e5 Added slate-instante-replace plugin to docs and direct links to NPM and Yarn for slate plugins. (#1968) 2018-07-19 11:57:26 -07:00
Ian Storm Taylor
37418643e2
add start of glossary (#1946)
This is the start of a glossary in the docs for terms that folks might not know when first learning Slate. Hopefully it makes it easier to learn. If anyone wants to help fill it out, that would be amazing. Thanks!
2018-07-02 10:27:35 -06:00
Ian Storm Taylor
1923888af1
Update resources.md 2018-06-30 15:08:28 -07:00
Ian Storm Taylor
518d299600
Update resources.md 2018-06-19 12:14:53 -07:00
Ian Storm Taylor
91a8f5b393
Update resources.md 2018-06-19 12:14:33 -07:00
Ian Storm Taylor
0d594fe226
Update resources.md 2018-06-19 12:11:21 -07:00
Ian Storm Taylor
93052ca3b9
Update resources.md 2018-06-19 11:56:20 -07:00
Ian Storm Taylor
c3b44dbe57
Update resources.md 2018-06-19 11:54:38 -07:00
Ian Storm Taylor
62240ff484
Update resources.md 2018-06-19 11:53:11 -07:00
Ian Storm Taylor
c8534283e1
Update resources.md 2018-06-19 11:51:40 -07:00
Ian Storm Taylor
efefe6f1db
Update resources.md 2018-06-19 11:51:26 -07:00
David Chang
73daa94c0a [docs] Add slate-mark-hotkeys plugin to list of plugins (#1885)
* Add slate-mark-hotkeys plugin to list of plugins

* run npm run prettier
2018-06-12 10:42:35 -07:00
Mateo Ochoa
0a2d68a97f Update faq.md (#1750) 2018-04-03 11:31:20 +01:00
dmitrizzle
67afc010c3 Added another editor package built on top of Slate (#1707) 2018-03-21 13:15:55 -07:00
Renaud Chaput
de4c9e478a Lint JSON, CSS and Markdown files with Prettier (#1612)
* Process and Lint CSS, Markdown and JSON files with Prettier

* Run `yarn prettier` to re-format Markdown, CSS and JSON files
2018-02-07 07:58:41 -08:00
Ian Storm Taylor
b8ca5d04df update docs 2018-01-26 12:31:15 -08:00