Commit Graph

499 Commits

Author SHA1 Message Date
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
cosine
baff4af39e
fix: fix ts error for BubbleMenu and FloatingMenu in @tiptap/react (#5126) 2024-05-10 02:50:12 +02:00
Joel
3a21bc1d2f
Update Context.tsx (#5102) 2024-05-09 15:47:28 +02:00
Dominik Biedebach
ca4f13461e v2.3.2 2024-05-08 17:43:53 +02:00
bdbch
dfd5ff5c6b v2.3.1 2024-04-30 17:27:07 +02:00
svenadlung
b132d9207d v2.3.0 2024-04-09 13:17:27 +02:00
bdbch
e79523fb8b v2.2.6 2024-04-06 17:46:17 +02:00
bdbch
d78f99920d style(react): fix linting issues 2024-04-06 13:15:34 +02:00
Karol Firmanty
8d5077a1a5
fix editor cleanup (#4973) 2024-04-06 04:02:05 +02:00
bdbch
51c5e5fc5c fix linting issues in react exports 2024-04-06 00:15:52 +02:00
bdbch
0e5af53778 v2.2.5 2024-04-06 00:09:00 +02:00
Laurens Lavaert
82979740a6
Export useReactNodeView (#4996) 2024-03-27 19:25:51 +01:00
Dominik Biedebach
9a615643ac v2.2.4 2024-02-23 13:01:19 +01:00
Dominik Biedebach
f8baf792cf v2.2.3 2024-02-15 16:41:48 +01:00
svenadlung
d308d7c31f v2.2.2 2024-02-07 13:47:00 +01:00
Sven Adlung
56a5737ed1
fix(react): use ref instead of state in useEditor to prevent rerenders (#4856) 2024-02-06 12:13:09 +01:00
bdbch
1c5c087641 v2.2.1 2024-01-31 09:04:52 +01:00
bdbch
6ad92fbd28 v2.2.0 2024-01-29 13:25:37 +01:00
bdbch
731109b566 merge main 2024-01-10 13:57:46 +01:00
bdbch
23b32f805f v2.1.16 2024-01-10 13:45:34 +01:00
bdbch
46e391aa9d merge main 2024-01-08 22:30:06 +01:00
bdbch
412b0b92f0 v2.1.15 2024-01-08 20:25:21 +01:00
bdbch
c2232e74a4 v2.2.0-rc.8 2024-01-08 20:22:38 +01:00
Dominik Biedebach
8c99685545 sync with main 2024-01-08 12:54:37 +01:00
Dominik Biedebach
6c7b27f39b v2.1.14 2024-01-08 12:49:20 +01:00
Eric Hynds
fd8d4c0901
Forward EditorContent ref (#4396)
* forward EditorContent ref

* make ref optional
2024-01-02 12:10:13 +01:00
Dominik Biedebach
e128f6cac0 merge main 2023-12-14 13:00:09 +01:00
Dominik Biedebach
b18d729101 v2.1.13 2023-11-30 18:04:49 +01:00
bdbch
ad7f659ed0
fix(react): fix performance regression because of select/deselect (#4661) 2023-11-30 18:03:53 +01:00
Dominik Biedebach
fab5e963ce v2.2.0-rc.7 2023-11-27 14:14:28 +01:00
Dominik Biedebach
e2ac6003fb v2.2.0-rc.6 2023-11-23 14:42:38 +01:00
Dominik Biedebach
a4af83ca52 Revert "fix/react-renderer-node-attrs (#4321)"
This reverts commit 5b407ef08e.
2023-11-23 14:42:15 +01:00
Dominik Biedebach
2bb371126e merge main 2023-11-23 09:28:26 +01:00
Dominik Biedebach
b62c87a07e v2.2.0-rc.5 2023-11-23 09:24:24 +01:00
Mateus Barbosa
5b407ef08e
fix/react-renderer-node-attrs (#4321) 2023-11-23 09:23:37 +01:00
Dominik Biedebach
01135be60c v2.1.12 2023-10-11 15:55:10 +02:00
bdbch
42039c05f0 v2.2.0-rc.4 2023-10-10 12:34:15 +02:00
bdbch
b5cb36058b merge main into develop 2023-09-20 17:36:56 +02:00
bdbch
634cb68f6c v2.1.11 2023-09-20 17:31:41 +02:00
bdbch
6aa755a04b Revert "v2.2.11"
This reverts commit 99a5f2d77f.
2023-09-20 17:30:40 +02:00
bdbch
99a5f2d77f v2.2.11 2023-09-20 17:29:31 +02:00
Dominik Biedebach
39cf6979c4 merge main with develop 2023-09-15 17:04:38 +02:00
Dominik Biedebach
8b89b97d5b v2.1.10 2023-09-15 15:43:55 +02:00
bdbch
2e199b0a59
Fix React and Vue NodeView renderers not adding correct selection classes (#4452)
* fix(react): add correct / remove selected class
* fix(vue-2): add correct / remove selected class
* fix(vue-3): add correct / remove selected class
2023-09-15 15:06:02 +02:00
Dominik Biedebach
b2f74f209c sync with main 2023-09-14 17:40:39 +02:00
Dominik Biedebach
a7156b347b v.2.1.9 2023-09-14 17:35:24 +02:00
Dominik Biedebach
a5f7fe0a89 Sync develop with main
Sync develop branch with main – develop (RC) releases won't generate CHANGELOG.md entries anymore.
2023-09-14 17:33:32 +02:00
bdbch
6f218be6e4 v2.1.8 2023-09-04 21:40:25 +02:00
bdbch
5437814920 v2.1.7 2023-09-04 21:39:38 +02:00
Dominik Biedebach
9dc6b8f1ab v2.2.0-rc.3 2023-08-18 12:37:06 -07:00
Dominik Biedebach
d5ce8e5b7b v2.2.0-rc.2 2023-08-18 11:54:37 -07:00
Dominik Biedebach
f99c4f64dd merge main 2023-08-18 11:53:44 -07:00
Dominik Biedebach
028411e735 v2.1.6 2023-08-18 11:08:52 -07:00
Dominik Biedebach
3cefcf12f9 v2.2.0-rc.1 2023-08-18 11:02:41 -07:00
Dominik Biedebach
f315706af1 v2.2.0-rc.0 2023-08-18 10:55:25 -07:00
Dominik Biedebach
441519185b Merge branch 'main' of github.com:ueberdosis/tiptap into develop 2023-08-18 10:54:26 -07:00