Nick the Sick
f89a6d9f55
Merge branch 'main' into develop
2024-10-22 15:10:41 +02:00
Nick Perez
873a67c6e3
feat: in a collab setting, disable transactions that are trying to sync invalid content ( #5207 )
...
When collaborating on a document, a client may send changes which are invalid to the current client. This change makes it so that the client can be disabled from synchronizing any further changes to avoid the default behavior of stripping unknown content. This would allow the other client to continue editing on the document while still synchronizing any known changes.
2024-10-21 17:15:06 +02:00
Nick Perez
ffb51d3b7e
fix(core): respect the editor's parseOptions ( #5742 )
...
Co-authored-by: guarmo <armando.guarino@tiptap.dev>
2024-10-21 12:55:35 +02:00
trry
7ddc1af5e9
chore: delete duplicate name ( #5732 )
2024-10-20 22:33:20 +02:00
Nick the Sick
bfcf6d94e8
test: use id for tests
2024-10-18 16:36:11 +02:00
Éric Le Maître
364231a1bd
Fix editor destruction at the end of Vue transition ( #5648 )
...
* wip: destruction éditeur
* fix: replacing DOM nodes at unmount
* fix: event for useEditor destroy
* chore: Generating changeset
* chore: generating changeset
* chore: delete duplicate changeset
* revert: note tutorial
* feat: add Vue transition example
* fix: test for Vue transition
* fix: components within editor
* chore: remove useless ref
2024-10-14 10:26:12 +02:00
Jaap van Hoek
21df331b60
fix(table): respect resizeable columns colwidths ( #4955 )
2024-10-04 14:17:08 +02:00
github-actions[bot]
5d9b8d0907
chore(release): release version 2.8.0 ( #5669 )
2024-09-30 16:46:03 +02:00
Nick Perez
6834a7f7d6
build: type defs only emit for a single package's code ( #5665 )
2024-09-26 14:51:00 +02:00
dependabot[bot]
1bad8f8c95
build(deps-dev): bump vite from 5.4.1 to 5.4.6 ( #5629 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 5.4.1 to 5.4.6.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.6/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.4.6/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-25 14:07:59 +02:00
Sven Adlung
cbe06d12db
fix(vue-3): late-registering plugins #5259 ( #5616 )
2024-09-18 14:46:45 +02:00
dependabot[bot]
cf443630cf
build(deps-dev): bump svelte from 4.2.18 to 4.2.19 ( #5571 )
...
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte ) from 4.2.18 to 4.2.19.
- [Release notes](https://github.com/sveltejs/svelte/releases )
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.19/packages/svelte/CHANGELOG.md )
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.19/packages/svelte )
---
updated-dependencies:
- dependency-name: svelte
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 15:52:41 +02:00
Nick the Sick
e0c4db9674
revert: "fix(core): handle macOS text expansion properly in InputRules ( #5261 )"
...
This reverts commit 88e310b144
.
2024-09-16 06:19:37 +02:00
Ricardo Amaral
88e310b144
fix(core): handle macOS text expansion properly in InputRules ( #5261 )
2024-08-22 12:34:27 +02:00
Nick Perez
07fa49d026
fix: preserve attributes of toggled node #3644 ( #5489 )
...
I only feel comfortable copying the attributes of the current node if the selection is only within a single node (I don't know what is expected if you had a selection of multiple nodes, the intersection of the attributes maybe?)
---------
Co-authored-by: Dominik Biedebach <dominik.biedebach@tiptap.dev>
2024-08-21 14:03:57 +02:00
Nick Perez
6a0f4f30f8
fix(react): attempt to cleanup editor instances, on creation #5492 ( #5496 )
...
The core of the change ended up being quite simple, because we can create the editor within the first render, we need to already schedule it's destruction.
Scheduling a destruction, ensures that an instance that was created in that first render pass can be cleaned up.
Waiting one more tick than before ensures that we don't accidentally destroy an editor instance that could actually be valid in the next render pass.
In StrictMode, there will be two editor instances created, the first will be created & quickly destroyed in 2 ticks.
In Normal React, there will only ever be 1 instance created and destroyed only on unmount.
2024-08-15 08:55:42 +02:00
Nick the Sick
a3ceec79e8
chore: resolve to root dir
2024-08-12 14:23:11 +02:00
Nick the Sick
5270b5c43d
chore: dedupe esbuild
2024-08-12 14:13:46 +02:00
Nick the Sick
157d9d8604
chore: pin esbuild
2024-08-12 14:06:25 +02:00
Nick the Sick
df9f6967c2
docs: fix demos resolution of y-prosemirror
2024-08-12 13:50:19 +02:00
Nick the Sick
fef96a04bb
chore: explicit dep for demos
2024-08-12 12:27:11 +02:00
Nick the Sick
ff19f241a1
chore: bump deps
2024-08-12 11:33:03 +02:00
Nick the Sick
2c6590b3d4
fix: update docs and add tests for collaboration and priority docs
2024-08-12 11:14:41 +02:00
Nick the Sick
fa17c2374f
chore: update deps to bundle
2024-08-12 10:59:50 +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 the Sick
273e18bd87
Merge branch 'main' into develop
2024-08-06 16:37:34 +02:00
Nick Perez
d6e56c41e3
fix(extension-code-block-lowlight): use lowlight v3 and update demos ( #5374 )
2024-08-06 13:53:58 +02:00
Nick Perez
174aefe0f1
fix(collaboration): update y-prosemirror, respect onFirstRender
( #5411 )
2024-08-06 11:23:20 +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
svenadlung
bde3328ba2
docs: update demo styles
2024-08-01 12:51:45 +02:00
Nick the Sick
4b9d8a3346
chore: cleanup
2024-07-30 09:07:53 +02:00
Nick Perez
99d7820cbb
fix(react): always cleanup old editor instances ( #5414 )
2024-07-30 09:06:31 +02:00
Raman Paulau
f7f644f7b2
fix(vue-3): set editor's appContext.provide to forward inject chain ( #5397 )
...
Vue internally uses prototype chain to preserve injects across the entire component chain. Thus should avoid Object.assign or spread operator as it won't copy the prototype. All correct provides will be already present on `instance.provides`.
2024-07-29 17:02:15 +02:00
Moch. Irfan Rafif
c7f55500ee
fix(extension-table): correctly set min-width for table ( #4684 )
2024-07-24 14:16:48 +02:00
Nick the Sick
9e0e167885
fix(link): use the view's editable property as the indicator instead
2024-07-23 12:21:18 +02:00
github-actions[bot]
a21a122759
chore(release): publish a new pre-release version
2024-07-15 14:52:21 +02:00
bdbch
7c9516a519
fix: fix shiki setup ( #5347 )
2024-07-15 14:05:47 +02:00
Nick the Sick
cb7d4f1879
chore: update vite
2024-07-15 13:45:19 +02:00
Nick the Sick
226a0dfe59
build: demos
2024-07-15 12:00:31 +02:00
Nick the Sick
b2dad29436
chore: version number
2024-07-14 15:33:36 +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
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
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
Nick the Sick
14a00f48d7
chore: use vite in prod mode during tests
2024-07-03 18:28:14 +02:00
svenadlung
f79f22308a
Merge branch 'main' into develop
2024-07-02 18:13:21 +02:00
svenadlung
d0010d470c
docs: fix drawing demo
2024-07-02 18:13:08 +02:00
Nick the Sick
c96d332364
Merge branch 'main' into develop
2024-07-02 16:21:06 +02:00
Sven Adlung
d13e841da3
docs: move docs to own repository ( #5304 )
...
* docs: move docs
* docs: remove navigation file
* test: pre-optimize highlight.js
2024-07-02 16:07:10 +02:00
Nick the Sick
045d9871f1
chore: update package versions for prosemirror
2024-06-28 08:17:13 +02:00