Commit Graph

454 Commits

Author SHA1 Message Date
Nick Perez
e31673d347
fix(react): resolves React NodeView performance issues (#5273) 2024-08-09 07:56:19 +02:00
Nick Perez
c7fd0f80af
fix(react): update the types to reflect true options #5459 (#5460) 2024-08-08 08:27:10 +02:00
github-actions[bot]
535dcccb40
chore(release): publish version v2.5.9 (#5451)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-06 17:03:26 +02:00
Nick Perez
7c8889a2a6
fix(react): optimize useEditor and useEditorState to reduce number of instances created while being performant #5432 (#5445) 2024-08-05 17:46:19 +02:00
github-actions[bot]
7d6c9399c6
chore(release): publish a new version 2.5.8 (#5408)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-30 09:13:28 +02:00
Nick Perez
99d7820cbb
fix(react): always cleanup old editor instances (#5414) 2024-07-30 09:06:31 +02:00
bdbch
44e4eca47a
Shared rollup config (#5403)
* add one shared rollup config

* rename to baseConfig
2024-07-27 12:46:39 +02:00
github-actions[bot]
a1c5120a4d
chore: publish a new release version (#5375)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-26 13:58:58 +02:00
Nick the Sick
42dc27aa4b
fix(react): if using a deps array, destroy the previous instance 2024-07-26 13:34:23 +02:00
github-actions[bot]
52f717b3eb chore(release): publish a new release version 2024-07-24 16:58:54 +02:00
github-actions[bot]
22cb038997
chore: release version (#5368)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 13:24:28 +02:00
github-actions[bot]
46079c28a6
chore: publish version 2.5.4 (#5361)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 15:17:44 +02:00
Nick the Sick
dd7f9ac1c8
build: resolve default exports properly in cjs 2024-07-17 15:11:48 +02:00
github-actions[bot]
e1946c8623
chore(release): publish a new version (#5359)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 13:07:59 +02:00
Matic Zavadlal
70eebfdb0c
fix(react): useEditor hook now respects deps array and will re-initialize editor (#5353) 2024-07-17 13:04:39 +02:00
github-actions[bot]
b97ce6a0e0
chore: publish 2.5.2 (#5358)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 09:30:36 +02:00
github-actions[bot]
a21a122759 chore(release): publish a new pre-release version 2024-07-15 14:52:21 +02:00
Nick the Sick
226a0dfe59
build: demos 2024-07-15 12:00:31 +02:00
Nick the Sick
9b566b9c35
chore: release version 2.5 2024-07-14 15:44:37 +02:00
Nick the Sick
fb4514946c
revert: "chore(release): publish a new pre-release version"
This reverts commit ff157042a3.
2024-07-14 15:04:56 +02:00
github-actions[bot]
ff157042a3 chore(release): publish a new pre-release version 2024-07-14 12:52:24 +02:00
github-actions[bot]
c15f89bb7e chore(release): publish a new pre-release version (pre) 2024-07-13 11:13:17 +02:00
Nick Perez
1110280b2b
fix(react): useEditor should not destroy still mounted instances (#5338)
This forces the editor to re-use the editor instance that existed prior to an unmount and remount of the same component.
This fixes a bug in `React.StrictMode` introduced with the latest performance updates by PR #5161
2024-07-13 10:59:33 +02:00
github-actions[bot]
db0d007660
Publish a new pre-release version (pre) (#5328)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-11 11:53:34 +02:00
Alistair Smith
e902c12a88
refactor(react): flip order of useEditorState overloads
So that TypeScript will resolve the non-nullable one first, unless the editor is nullable, in which case the other one will resolve.
2024-07-11 10:07:13 +02:00
github-actions[bot]
91d8f5898a
Publish a new pre-release version (pre) (#5322)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-10 11:45:05 +02:00
Nick Perez
df5609cdff
fix: default to rendering the editor immediately, while staying backward compatible (#5161)
* fix: default to rendering the editor immediately, while staying backward compatible

* feat: add `useEditorWithState` hook for extracting state and editor instance simultaneously

* feat(react): add `useEditorState` hook for subscribing to selected editor state

* docs: add an example to show the concept

* chore: add changeset
2024-07-10 11:41:43 +02:00
github-actions[bot]
5c2f67f44d chore(release): publish a new pre-release version (pre) 2024-07-03 22:55:13 +02:00
github-actions[bot]
3f5be5ed7e chore(release): publish a new pre-release version (pre) 2024-07-03 21:30:07 +02:00
github-actions[bot]
1f87cd9411 chore(release): publish a new pre-release version (pre) 2024-07-03 20:56:00 +02:00
github-actions[bot]
a20b18cdf0 chore(release): publish a new pre-release version (pre) 2024-07-03 19:55:20 +02:00
github-actions[bot]
42af7a1b7b
chore: version packages (pre) (#5308)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-03 19:00:05 +02:00
github-actions[bot]
4cbb09ef6d
chore: version packages
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-02 22:26:28 +02:00
Nick the Sick
c96d332364
Merge branch 'main' into develop 2024-07-02 16:21:06 +02:00
github-actions[bot]
d1c5c97e95
chore: version Packages (pre) (#5280)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-02 05:31:09 +02:00
Nick the Sick
045d9871f1 chore: update package versions for prosemirror 2024-06-28 08:17:13 +02:00
Dominik Biedebach
6af368e703 chore: removed old rollup plugin sizes plugin 2024-06-27 16:15:04 +02:00
Nick the Sick
05856fbe56
v2.5.0-beta.6 2024-06-26 11:14:55 +02:00
Nick the Sick
0e96a2c35e
v2.5.0-beta.5 2024-06-25 17:00:21 +02:00
Nick the Sick
08125c4000
v2.5.0-beta.4 2024-06-18 08:09:54 +02:00
Nick the Sick
d6dc1e0ccf
v2.5.0-beta.3 2024-06-12 09:17:13 +02:00
Nick the Sick
747985b3a7
chore: update package versions for prosemirror 2024-06-11 23:03:14 +02:00
Nick the Sick
4a01716408
v2.5.0-beta.2 2024-06-07 16:49:52 +02:00
Nick the Sick
52002feeed
v2.5.0-beta.1 2024-06-04 10:39:58 +02:00
Nick the Sick
65a06136ac
Merge branch 'main' into develop 2024-06-04 10:30:30 +02:00
Nick Perez
74bfdc5bef
feat: error handling of invalid content for a schema (#5178)
This change introduces two new top-level options to the editor: `enableContentCheck` & `onContentError` for dealing with content supplied that does not match the prose-mirror schema generated by the set of tiptap extensions.

`enableContentCheck` allows the app developer to opt into the behavior to check for invalid schemas (this change is otherwise backwards compatible).
When true, this will try to parse the document, and any content that does not match the schema will emit a `contentError` which can be listened to via the `onContentError` callback.
2024-06-04 09:32:54 +02:00
Nick the Sick
d36a7ef1d9
v2.5.0-beta.0 2024-05-29 10:43:43 +02:00
tomi-bigpi
32ed87b409
fix: don't init when editor is already destroyed (#4029) 2024-05-17 16:18:47 +02:00
bdbch
6a581153d8 v2.4.0 2024-05-14 14:45:38 +02:00
bdbch
b941eea6da
feat: added jsdocs (#4356)
* added JSDocs for almost all extensions

* start adding commands jsdocs

* add jsdocs for rest of extensions

* add jsdocs for Extensions

* add js docs for all extensions

* add more jsdocs

* add js docs for node spec definitions
2024-05-11 14:30:44 +02:00