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

Move rendering responsibility fully into React #47

Draft
wants to merge 58 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
e98bce6
Clean up some linting and auto-complete config
smoores-dev Nov 17, 2023
76282b6
Autocommit demo for GitHub Pages
smoores-dev Nov 17, 2023
2a7d691
Introduce custom ViewDesc implementations.
smoores-dev Nov 17, 2023
514bc5e
Add a React component for each ViewDesc.
smoores-dev Nov 17, 2023
84a36c6
Add some hooks to replace EditorView functionality
smoores-dev Nov 17, 2023
6d3d0e0
Add a selection-only DOMObserver.
smoores-dev Nov 17, 2023
10cf9fb
Update ProseMirror component to use new systems.
smoores-dev Nov 17, 2023
a4ac64f
Implement cursor wrapper support and clean up selection syncing
smoores-dev Dec 2, 2023
7ee305f
Minor README update
smoores-dev Dec 2, 2023
c75e0f9
Update VS Code autofix settings
smoores-dev Jan 22, 2024
ee2900b
Add a ProseMirrorDoc component
smoores-dev Jan 22, 2024
cac04dc
Add ProseMirrorDoc to test helper
smoores-dev Jan 22, 2024
70dc89b
Map positions forward to maintain key stability
smoores-dev Jan 31, 2024
b419801
Reorganize contexts and exports to match updates on main
smoores-dev Feb 23, 2024
da2f9f3
Always call LayoutGroup effect destroy functions.
smoores-dev Feb 23, 2024
9366b4e
Always provide non-null state and view in hooks.
smoores-dev Feb 27, 2024
c6d606e
Add support for native ProseMirror widget decorations (#115)
smoores-dev Mar 7, 2024
964fc45
Wrap the DocNodeView in a ChildDescriptorContext. (#116)
smoores-dev Mar 7, 2024
cd22e12
Return the result from useEditorEventCallback
smoores-dev Mar 7, 2024
c90da83
Add "trailing hacks" in more scenarios. (#122)
smoores-dev Mar 17, 2024
7131045
Make proper use of view.someProp
smoores-dev May 6, 2024
7d0923e
Add support for multi-code-point unicode characters.
smoores-dev May 23, 2024
7395a5b
Replace custom deletion code with getTargetRanges
smoores-dev May 23, 2024
c32cc45
fix: set view descriptor expando property on text nodes
tilgovi Aug 9, 2024
ff0afd1
Better conversion from html attributes to react props (#130)
smoores-dev Sep 4, 2024
e2f94b3
Don't drop ref when merging html attrs in output spec
smoores-dev Sep 6, 2024
2eecee2
Start to get tests working again
smoores-dev Sep 16, 2024
ac1d16a
Get all domchange tests passing with webdriver
smoores-dev Sep 16, 2024
5c57390
Fix basic ProseMirror component tests
smoores-dev Sep 16, 2024
edd1829
Add some more basic ProseMirror component/EditorView tests
smoores-dev Sep 16, 2024
897a744
Get selection tests working
smoores-dev Sep 16, 2024
01c982d
Get node view tests working
smoores-dev Sep 16, 2024
385f6eb
Get draw tests working
smoores-dev Sep 16, 2024
4c2523c
Get draw decoration tests passing
smoores-dev Sep 16, 2024
5a9c82a
Composition tests and cleanup
smoores-dev Sep 16, 2024
70c5235
Disable any check on forked pm view files
smoores-dev Sep 16, 2024
9b58c9d
Add back regular jest tests
smoores-dev Sep 16, 2024
e8a4dda
Run wdio tests sequentially to prevent hanging in firefox
smoores-dev Sep 16, 2024
aa8ef57
Incorporate updates up to prosemirror-view 1.34.2
smoores-dev Sep 16, 2024
c444bf6
Update @testing-library/dom
smoores-dev Sep 16, 2024
b4b5c74
Fix types for ProseMirrorDoc
smoores-dev Sep 16, 2024
0c93e2e
Remove null type from useEditorState
smoores-dev Sep 17, 2024
e194d3e
Remove editor state null checks
smoores-dev Sep 17, 2024
0774922
Replace the EditorView entirely when it would redraw the document
smoores-dev Sep 17, 2024
bef98f3
committing the previous prerelease version
saranrapjs Sep 17, 2024
2a77f4c
cleaning up my yarn version mess
saranrapjs Sep 17, 2024
b49651b
Add useStopEvent hook
smoores-dev Sep 17, 2024
243dea9
chore: release 0.7.0-next.10
tilgovi Sep 18, 2024
8a475d0
Set contentEditable to false for node views without content dom
smoores-dev Sep 19, 2024
26914ac
Add a second render to tempEditor
smoores-dev Sep 20, 2024
880d9cf
Fix dispatchTransaction callback
smoores-dev Sep 20, 2024
a11110c
Add a test for focusing interactive controls
smoores-dev Sep 20, 2024
9ccbe4c
Make sure that ReactEditorView.editable is set synchronously during c…
smoores-dev Sep 20, 2024
4f9b491
Update to prosemirror-view 1.34.3 selectionFromDOM
smoores-dev Sep 20, 2024
b7897ad
Remove duplicate renders from editable prop test
smoores-dev Sep 20, 2024
ddec299
Add back composition support
smoores-dev Sep 20, 2024
dad46ac
Bring back composition tests, but skip for now
smoores-dev Sep 20, 2024
de20171
Test CI
smoores-dev Oct 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.yarn/
.yarnrc.yml
.pnp.*

/docs/
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
}
],
"no-inner-declarations": "off",
"import/no-unresolved": "off" // Typescript does this better!
"import/no-unresolved": "off", // Typescript does this better!
"@typescript-eslint/no-unused-vars": "off" // Let the TS compiler do this, too
},
"settings": {
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
Expand Down
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
yarn demo:build
git add docs
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.yarn/
.yarnrc.yml
.pnp.*

/docs/
12 changes: 4 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"eslint.nodePath": ".yarn/sdks",
"editor.formatOnSave": true,
"[javascript]": {
"[javascript][typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": true
}
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
}
},
"javascript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifierEnding": "js",
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand Down
Loading
Loading