Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #3093

Closed
wants to merge 168 commits into from
Closed

Next #3093

Show file tree
Hide file tree
Changes from 137 commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
3a51b47
remove some key usage from core, refactor Operations.apply
ianstormtaylor May 12, 2019
9d6b2a7
undeprecate some methods
ianstormtaylor May 12, 2019
5368064
convert more key usage to paths
ianstormtaylor May 12, 2019
24105bf
update deprecations
ianstormtaylor May 21, 2019
9ca0c77
Merge branch 'master' into remove-slate-keys
ianstormtaylor May 21, 2019
8dfa9ef
convert selection commands to use all paths
ianstormtaylor May 22, 2019
b93b8a9
refactor word boundary selection logic
ianstormtaylor May 22, 2019
1e8074d
convert many at-range commands to use paths
ianstormtaylor Jun 6, 2019
b8a1ef2
convert wrapBlock and wrapInline to not use keys
ianstormtaylor Jun 8, 2019
f64b604
cleanup
ianstormtaylor Jun 8, 2019
2e206f0
remove chainability from editor
ianstormtaylor Jun 8, 2019
2228958
simplify commands, queries and middleware
ianstormtaylor Jun 8, 2019
90790eb
convert deleteAtRange
ianstormtaylor Jun 9, 2019
0fd0cb0
remove key usage from schema, deprecate *ByKey methods
ianstormtaylor Aug 27, 2019
f21c540
migrate *ByKey tests, remove index from *ByPath signatures
ianstormtaylor Aug 27, 2019
3006fe0
rename at-current-range tests
ianstormtaylor Aug 27, 2019
fb6889f
deprecate mode key usage, migrate more tests away from keys
ianstormtaylor Aug 28, 2019
636d350
deprecate range and point methods which rely on keys to work
ianstormtaylor Aug 28, 2019
89d89b2
refactor insertBlock, without fixing warnings
ianstormtaylor Aug 28, 2019
fdb7747
add pathRef/pointRef, fix insertBlock/Inline deprecations, work on in…
ianstormtaylor Aug 28, 2019
fbb62d6
refactor insertFragment
ianstormtaylor Aug 28, 2019
c3a1c49
merge master
ianstormtaylor Aug 28, 2019
37dd7f4
get rich-text example rendering
ianstormtaylor Aug 28, 2019
76bde0e
fix lint
ianstormtaylor Aug 28, 2019
91c04de
refactor query files, fix more tests
ianstormtaylor Aug 29, 2019
1d27e32
remove unused queries, refactor others
ianstormtaylor Aug 29, 2019
8bf36ce
deprecate splitDescendantsByPath
ianstormtaylor Aug 29, 2019
129b7f8
merge master
ianstormtaylor Oct 11, 2019
9873e1a
add typescript, convert slate, slate-hyperscript, slate-plain-serializer
ianstormtaylor Oct 14, 2019
8360df2
add Point, Path, Range, Annotation tests
ianstormtaylor Oct 14, 2019
a9faf45
add Annotation, Change, Element, Fragment, Mark, Range, Selection, Va…
ianstormtaylor Oct 14, 2019
3c8813d
add Operation and Text tests
ianstormtaylor Oct 14, 2019
af3b8fd
add Node tests
ianstormtaylor Oct 15, 2019
5a9a686
get operations and normalization tests working for slate
ianstormtaylor Oct 15, 2019
728f023
get *AtPath command tests passing
ianstormtaylor Oct 15, 2019
e305a49
rename *AtPath command tests
ianstormtaylor Oct 15, 2019
f3cc244
rename
ianstormtaylor Oct 15, 2019
dd90c25
get *AtPoint tests working
ianstormtaylor Oct 15, 2019
0c9b1f8
rename
ianstormtaylor Oct 15, 2019
ee6b08d
rename
ianstormtaylor Oct 15, 2019
906f6e1
add value queries tests
ianstormtaylor Oct 21, 2019
140d589
add element, mark and path queries tests
ianstormtaylor Oct 21, 2019
38503bf
convert most on-selection tests
ianstormtaylor Oct 21, 2019
bb5ce9d
convert on-selection commands
ianstormtaylor Oct 21, 2019
4a6864d
rename
ianstormtaylor Oct 21, 2019
93cced0
get addMarks and delete commands working
ianstormtaylor Oct 22, 2019
a0406c3
rename
ianstormtaylor Oct 22, 2019
51c763a
rename
ianstormtaylor Oct 22, 2019
fa776c6
rename
ianstormtaylor Oct 22, 2019
fec20b9
refactor value.positions(), work on delete tests
ianstormtaylor Oct 22, 2019
a777c16
progress on delete tests
ianstormtaylor Oct 22, 2019
6944426
more delete work
ianstormtaylor Oct 22, 2019
ee94ad9
finish delete tests
ianstormtaylor Oct 22, 2019
7032b49
start converting to at-based commands
ianstormtaylor Oct 23, 2019
1ffdf3d
restructure query tests
ianstormtaylor Oct 23, 2019
a43ffdd
restructure operations tests
ianstormtaylor Oct 23, 2019
d49f829
more work converting to multi-purpose commands
ianstormtaylor Oct 23, 2019
2c14924
lots of progress on converting to at-based commands
ianstormtaylor Oct 24, 2019
bfb0201
add unwrapNodes
ianstormtaylor Oct 24, 2019
11ad4ad
remove setValue
ianstormtaylor Oct 24, 2019
489db29
more progress
ianstormtaylor Oct 25, 2019
9059fb3
refactor node commands to use consistent matching logic
ianstormtaylor Oct 27, 2019
3d9e221
cleanup, get non-fragment commands passing
ianstormtaylor Oct 27, 2019
28bc6e8
remove annotations and isAtomic
ianstormtaylor Oct 27, 2019
ef1da7c
rename surround/pluck to cover/uncover
ianstormtaylor Oct 27, 2019
3cdea29
add location concept, change at-path to from-path for iterables
ianstormtaylor Oct 27, 2019
ecbcfa1
refactor batches
ianstormtaylor Oct 27, 2019
9dfc2b6
add location-based queries
ianstormtaylor Oct 27, 2019
91d695a
refactor hanging logic
ianstormtaylor Oct 27, 2019
cbc709c
more location query work
ianstormtaylor Oct 27, 2019
a174ab8
renaming
ianstormtaylor Oct 27, 2019
847dcb8
use getMatch more
ianstormtaylor Oct 27, 2019
bf305a2
add split to wrap/unwrap
ianstormtaylor Oct 28, 2019
22a4035
flip levels/ancestors ordering
ianstormtaylor Oct 28, 2019
b91bd63
switch splitNodes to use levels
ianstormtaylor Oct 28, 2019
e51bdc1
change split to always:false by default
ianstormtaylor Oct 28, 2019
741064a
fix tests
ianstormtaylor Oct 28, 2019
644be4a
add more queries tests
ianstormtaylor Oct 28, 2019
f03a003
fixing more delete logic
ianstormtaylor Oct 29, 2019
a36344f
add more splitNodes tests
ianstormtaylor Oct 29, 2019
1e9aa87
get rest of delete tests passing
ianstormtaylor Oct 29, 2019
a0fa040
fix location-based logic in some commands
ianstormtaylor Oct 29, 2019
93b3ea7
cleanup
ianstormtaylor Oct 29, 2019
880dbf1
get previous packages tests passing again
ianstormtaylor Oct 29, 2019
da8e1b7
add slate-history package
ianstormtaylor Oct 29, 2019
b3ea009
start slate-schema work
ianstormtaylor Oct 30, 2019
9defac5
start of react working
ianstormtaylor Nov 4, 2019
91dd048
rendering fixes
ianstormtaylor Nov 4, 2019
a251a51
get rich and plain text examples working
ianstormtaylor Nov 4, 2019
46bac3e
get image example working with hooks and dropping
ianstormtaylor Nov 5, 2019
b13d568
refactor onDrop to be internal
ianstormtaylor Nov 5, 2019
82c9339
inline more event handlers
ianstormtaylor Nov 5, 2019
2e14d9a
refactor lots of event-related logic
ianstormtaylor Nov 6, 2019
dd267d4
change rendering to use render props
ianstormtaylor Nov 6, 2019
61f27eb
delete unused stuff
ianstormtaylor Nov 6, 2019
32fd050
cleanup dom utils
ianstormtaylor Nov 6, 2019
c642186
remove unused deps
ianstormtaylor Nov 6, 2019
58ad80b
remove unnecessary packages, add placeholder
ianstormtaylor Nov 6, 2019
c546fc5
remove slate-react-placeholder package
ianstormtaylor Nov 6, 2019
b8630b7
remove unused dep
ianstormtaylor Nov 6, 2019
8ab403a
remove unnecessary tests, fix readonly example
ianstormtaylor Nov 6, 2019
e274659
convert checklists example
ianstormtaylor Nov 7, 2019
85a6031
switch to next from webpack
ianstormtaylor Nov 7, 2019
08bf1e7
get link example working
ianstormtaylor Nov 7, 2019
002fd2a
convert more examples
ianstormtaylor Nov 8, 2019
c9b0edb
preserve keys, memoized leafs/texts, fix node lookup
ianstormtaylor Nov 9, 2019
a1b001c
fix to always useLayoutEffect for ordering
ianstormtaylor Nov 9, 2019
066ffea
fix annotations to be maps, memoize elements
ianstormtaylor Nov 9, 2019
661092e
remove Change interface
ianstormtaylor Nov 9, 2019
e8ec982
remove String interface
ianstormtaylor Nov 9, 2019
5ca5acd
rename Node.entries to Node.nodes
ianstormtaylor Nov 9, 2019
4514c03
remove unnecessary value queries
ianstormtaylor Nov 9, 2019
e28720b
default to selection when iterating, cleanup
ianstormtaylor Nov 9, 2019
8c420e7
remove unused files
ianstormtaylor Nov 9, 2019
d70268d
update scroll into view logic
ianstormtaylor Nov 9, 2019
72b2c14
fix undoing, remove constructor types
ianstormtaylor Nov 9, 2019
813c759
dont sync selection while composing
ianstormtaylor Nov 10, 2019
44c5c77
add workflows
ianstormtaylor Nov 10, 2019
f32e464
remove unused deps
ianstormtaylor Nov 10, 2019
4bfbd33
convert mentions example
ianstormtaylor Nov 10, 2019
60d32bd
tweaks
ianstormtaylor Nov 10, 2019
4546334
convert remaining examples
ianstormtaylor Nov 11, 2019
c447289
rename h to jsx, update schema
ianstormtaylor Nov 12, 2019
faa8ca2
fix schema tests
ianstormtaylor Nov 12, 2019
9bf6f78
fix slate-schema logic and tests
ianstormtaylor Nov 12, 2019
38bf3a8
really fix slate-schema and forced-layout example
ianstormtaylor Nov 12, 2019
3b7d5eb
get start of insertFragment tests working
ianstormtaylor Nov 14, 2019
42304b4
remove Fragment interface
ianstormtaylor Nov 14, 2019
d366eac
remove debugger
ianstormtaylor Nov 14, 2019
7b5a9f6
get all non-skipped tests passing
ianstormtaylor Nov 14, 2019
acb9016
cleanup deps
ianstormtaylor Nov 14, 2019
a21e361
run prettier
ianstormtaylor Nov 14, 2019
0ce31c2
configure eslint for typescript
ianstormtaylor Nov 14, 2019
d53772b
more eslint fixes...
ianstormtaylor Nov 14, 2019
31e9c63
more passing
ianstormtaylor Nov 14, 2019
170bbf3
update some docs
ianstormtaylor Nov 14, 2019
3ff1371
fix examples
ianstormtaylor Nov 14, 2019
32cf35d
Merge branch 'master' into next
ianstormtaylor Nov 14, 2019
bf41a09
port windows undo hotkey change
ianstormtaylor Nov 14, 2019
9850060
fix deps, add basic firefox support
ianstormtaylor Nov 16, 2019
602878f
add event overriding, update walkthroughs
ianstormtaylor Nov 19, 2019
5a0bc73
add commands, remove classes, cleanup examples
ianstormtaylor Nov 25, 2019
1acb7bc
cleanup rollup config
ianstormtaylor Nov 25, 2019
7eee549
update tests
ianstormtaylor Nov 25, 2019
1df0b97
rename queries tests
ianstormtaylor Nov 25, 2019
36021f8
update other tests
ianstormtaylor Nov 25, 2019
d19165b
update walkthroughs
ianstormtaylor Nov 25, 2019
bf08172
cleanup interface exports
ianstormtaylor Nov 25, 2019
48e89ba
cleanup, change mark transforms to require location
ianstormtaylor Nov 25, 2019
185d6f5
undo mark transform change
ianstormtaylor Nov 26, 2019
2f0f141
more
ianstormtaylor Nov 26, 2019
eb8b9bb
fix tests
ianstormtaylor Nov 26, 2019
7c4f97b
fix example
ianstormtaylor Nov 26, 2019
4903fac
update walkthroughs
ianstormtaylor Nov 26, 2019
675785a
update docs
ianstormtaylor Nov 26, 2019
8a224c7
update docs
ianstormtaylor Nov 27, 2019
fccd60d
remove annotations
ianstormtaylor Nov 27, 2019
a7a9594
remove value, move selection and children to editor
ianstormtaylor Nov 27, 2019
8466edd
add migrating doc
ianstormtaylor Nov 27, 2019
c670bb3
fix lint
ianstormtaylor Nov 28, 2019
3bacb73
fix tests
ianstormtaylor Nov 28, 2019
8255112
fix DOM types aliasing
ianstormtaylor Nov 28, 2019
3a43824
add next export
ianstormtaylor Nov 28, 2019
491e2bb
update deps, fix prod build
ianstormtaylor Nov 28, 2019
46aa1d9
fix prod build
ianstormtaylor Nov 28, 2019
5d0d182
update scripts
ianstormtaylor Nov 28, 2019
a0d3561
update docs and changelogs
ianstormtaylor Nov 28, 2019
a398f3e
update workflow and pull request template
ianstormtaylor Nov 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
64 changes: 0 additions & 64 deletions .babelrc

This file was deleted.

7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
*.md
.github/
.next/
build/
dist/
lib/
node_modules/
tmp/
59 changes: 18 additions & 41 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
{
"extends": ["prettier", "prettier/react"],
"plugins": ["import", "react", "prettier"],
"settings": {
"import/extensions": [".js"]
},
"parser": "babel-eslint",
"extends": [
"plugin:import/typescript",
"prettier",
"prettier/@typescript-eslint",
"prettier/react"
],
"plugins": ["@typescript-eslint", "import", "react", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/extensions": [".js", ".ts"],
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"es6": true,
Expand All @@ -36,16 +46,6 @@
"import/no-named-as-default-member": "error",
"import/no-unresolved": "error",
"linebreak-style": "error",
"lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"afterBlockComment": true,
"allowBlockStart": true,
"allowObjectStart": true,
"allowArrayStart": true
}
],
"no-array-constructor": "error",
"no-class-assign": "error",
"no-console": "error",
Expand All @@ -63,44 +63,21 @@
"no-extra-boolean-cast": "error",
"no-func-assign": "error",
"no-invalid-regexp": "error",
"no-lonely-if": "error",
"no-native-reassign": "error",
"no-negated-in-lhs": "error",
"no-new-object": "error",
"no-new-symbol": "error",
"no-path-concat": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-restricted-globals": [
"error",
"Debug",
"document",
"Document",
"event",
"history",
"History",
"length",
"Map",
"Node",
"parent",
"Range",
"Selection",
"Set",
"Text"
],
"no-sequences": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-tabs": "error",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-undef": "error",
"no-unneeded-ternary": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": "error",
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
Expand All @@ -120,7 +97,6 @@
"prettier/prettier": "error",
"radix": "error",
"react/jsx-boolean-value": ["error", "never"],
"react/jsx-key": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
Expand Down Expand Up @@ -162,7 +138,8 @@
{
"files": "**/test/**/*.js",
"rules": {
"import/no-extraneous-dependencies": false
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off"
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#### Do you want to request a _feature_ or report a _bug_?

<!--
<!--
If you have a question, ask it in our Slack channel instead:

https://slate-slack.herokuapp.com/
-->

#### What's the current behavior?

<!--
For bugs, you **must** include the following:
<!--
For bugs, you **must** include the following:

- A JSFiddle that minimally reproduces the issue.
- A GIF showing the issue in action.
Expand All @@ -25,7 +25,7 @@ http://recordit.co/

#### What's the expected behavior?

<!--
<!--
The fastest, and most appreciated way to have your issue fixed is to create a pull request with working, tested code and we will help get it merged. Don't be scared to open a pull request that isn't completed and ask for input. We're happy to give direction! Also, researching how other editors handle this issue is super helpful.

Slate is solving a pretty complex problem, and we can't do it without active contributors, so thank you so much for your help!
Expand Down
20 changes: 10 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#### Is this adding or improving a _feature_ or fixing a _bug_?

<!--
<!--
If you have a question, ask it in our Slack channel instead:

https://slate-slack.herokuapp.com/
-->

#### What's the new behavior?

<!--
Please include at least one of the following:
<!--
Please include at least one of the following:

- A GIF showing the new behavior in action.
- A code sample showing the new API in action.
Expand All @@ -20,20 +20,20 @@ If you don't include one of these, there's a very good chance your pull request

#### How does this change work?

<!--
<!--
If your change is non-trivial, please include a short description of how the new logic works, and why you decided to solve it the way you did. This is incredibly helpful so that reviewers don't have to guess based on the code.
-->

#### Have you checked that...?

<!--
Please run through this checklist for your pull request:
<!--
Please run through this checklist for your pull request:
-->

* [ ] The new code matches the existing patterns and styles.
* [ ] The tests pass with `yarn test`.
* [ ] The linter passes with `yarn lint`. (Fix errors with `yarn prettier`.)
* [ ] The relevant examples still work. (Run examples with `yarn watch`.)
- [ ] The new code matches the existing patterns and styles.
- [ ] The tests pass with `yarn test`.
- [ ] The linter passes with `yarn lint`. (Fix errors with `yarn prettier`.)
- [ ] The relevant examples still work. (Run examples with `yarn watch`.)

#### Does this fix any issues or need any specific reviewers?

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: actions
on: [push]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn && yarn build && yarn lint && yarn test
env:
CI: true
24 changes: 3 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
# Build files.
*.js.map
*.log
.next/
build/
dist/
lib/

# Temporary files.
tmp/

# Gitbook files.
_book/

# Package files.
lerna-debug.log
node_modules/
npm-debug.log
yarn-error.log
packages/*/yarn.lock

# OS files.
.DS_Store
.idea/
.vscode/

# Editor files
.tern-port
tmp/
8 changes: 5 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.babelrc
.next/
build/
dist/
lib/
node_modules/
package.json
packages/*/dist/
packages/*/lib/
tmp/
tmp/
14 changes: 5 additions & 9 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

Since Slate is a monorepo with many packages that are versioned separately, we maintain a changelog for each individual package:

* [`slate`](./packages/slate/Changelog.md)
* [`slate-base64-serializer`](./packages/slate-base64-serializer/Changelog.md)
* [`slate-dev-warning`](./packages/slate-dev-warning/Changelog.md)
* [`slate-html-serializer`](./packages/slate-html-serializer/Changelog.md)
* [`slate-hyperscript`](./packages/slate-hyperscript/Changelog.md)
* [`slate-plain-serializer`](./packages/slate-plain-serializer/Changelog.md)
* [`slate-prop-types`](./packages/slate-prop-types/Changelog.md)
* [`slate-react`](./packages/slate-react/Changelog.md)
* [`slate-simulator`](./packages/slate-simulator/Changelog.md)
- [`slate`](./packages/slate/Changelog.md)
- [`slate-history`](./packages/slate-history/Changelog.md)
- [`slate-hyperscript`](./packages/slate-hyperscript/Changelog.md)
- [`slate-react`](./packages/slate-react/Changelog.md)
- [`slate-schema`](./packages/slate-schema/Changelog.md)
Loading