Commit Graph

7044 Commits

Author SHA1 Message Date
bdbch
dd53b9c117 fix: update ReactNodeViewProps to allow null ref values 2025-06-04 20:15:52 +02:00
bdbch
ef12b32623
add support for react 19 ref props (#6405)
Some checks are pending
build / build (20) (push) Waiting to run
build / test (20, map[name:Demos/Commands spec:./demos/src/Commands/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Demos/Examples spec:./demos/src/Examples/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Demos/Experiments spec:./demos/src/Experiments/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Demos/Extensions spec:./demos/src/Extensions/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Demos/GuideContent spec:./demos/src/GuideContent/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Demos/GuideGettingStarted spec:./demos/src/GuideGettingStarted/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Demos/Marks spec:./demos/src/Marks/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Demos/Nodes spec:./demos/src/Nodes/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / test (20, map[name:Integration spec:./tests/cypress/integration/**/*.spec.{js,ts}]) (push) Blocked by required conditions
build / release (20) (push) Blocked by required conditions
Publish / Release (20) (push) Waiting to run
* add support for react 19 ref props

* added changeset

* Update packages/react/src/ReactRenderer.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* use partial imports instead of importing the whole React library

* fix react renderer not passing ref prop

* upgrade dev dependencies for react

* updated lockfile

* upgrade dev dependencies

* update package.json

* remove optionalDependencies and move react deps to peerDependencies

* enhance ReactRenderer for React 19 compatibility and improve ref handling

* remove unused 'node' property from ReactNodeViewProps type definition

* fix: update ref type in ReactNodeView to be generic

* fix: replace FunctionComponent with NamedExoticComponent for better performance in ReactNodeView

* cloned react renderer element props to avoid side effects

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-04 13:48:27 +02:00
bdbch
4f498944b5
Fix happy-dom overwriting NodeJS process variable (#6384)
* added safe window and parser functions to avoid overwriting global process

* changeset

* add correct typing for doc

* create wrapper function to restore node internals

* Update packages/html/src/createSafeWindow.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/html/src/createSafeParser.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/html/src/preserveAndRestoreNodeInternals.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* make window and dom parser local variables and avoid variable shadowing

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-26 10:29:33 +02:00
Arnau Gómez Farell
a84ec2a08e
Merge pull request #6374 from ueberdosis/fix/run-lint-fix-command
Apply Prettier and ESLint automatic fixes
2025-05-22 13:22:35 +02:00
Arnau Gómez Farell
2bd5b987eb
fix: apply prettier and eslint automatic fixes 2025-05-20 15:01:15 +02:00
Arnau Gómez Farell
a98fcaa8dd
Merge pull request #6371 from ueberdosis/fix/fix-eslint-issues-on-lint-fix-command
Do not log all files when you run the lint:fix command
2025-05-20 14:03:40 +02:00
Arnau Gómez Farell
4c03acf68a
fix: fix eslint issues when you run lint:fix command 2025-05-19 15:19:50 +02:00
Tada Sayuri
2ea0475518
Allow setting HTML tags other than <span> for "as" in MarkViewContent (#6346)
* fix: Allow setting HTML tags other than <span> for "as" in MarkView

* Create quiet-falcons-study.md
2025-05-13 17:30:41 +02:00
github-actions[bot]
7147fdd970
chore(release): publish a new pre-release version (beta) (#6327)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-07 22:59:55 +02:00
bdbch
8c690025c5
sync develop with main (#6330)
* sync develop with main

* added changesets
2025-05-07 20:17:54 +02:00
Arnau Gómez Farell
e28aacb736
Merge pull request #6326 from ueberdosis/feature/update-prosemirror-changeset-next
Update prosemirror-changeset package to support token encoders
2025-05-06 13:17:30 +02:00
Arnau Gómez Farell
62b0877d98
feat: update prosemirror-changeset package to support token encoders 2025-05-06 12:23:55 +02:00
bdbch
34001a55e4 update pkg-pr-new step 2025-05-05 18:33:38 +02:00
bdbch
1ae247f505 fix tests 2025-05-05 18:12:54 +02:00
bdbch
4d52b8adaa Merge branch 'next' of github.com:ueberdosis/tiptap into next 2025-04-30 19:44:50 +02:00
github-actions[bot]
b64ae7f9b6
chore(release): publish a new pre-release version (beta) (#6294)
Some checks failed
build / build (20) (push) Has been cancelled
build / test (20, map[name:Demos/Commands spec:./demos/src/Commands/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Examples spec:./demos/src/Examples/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Experiments spec:./demos/src/Experiments/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Extensions spec:./demos/src/Extensions/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/GuideContent spec:./demos/src/GuideContent/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/GuideGettingStarted spec:./demos/src/GuideGettingStarted/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Marks spec:./demos/src/Marks/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Demos/Nodes spec:./demos/src/Nodes/**/*.spec.{js,ts}]) (push) Has been cancelled
build / test (20, map[name:Integration spec:./tests/cypress/integration/**/*.spec.{js,ts}]) (push) Has been cancelled
build / release (20) (push) Has been cancelled
Publish / Release (20) (push) Has been cancelled
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-30 18:38:26 +02:00
bdbch
f43b2e5b34 add changeset 2025-04-30 18:36:05 +02:00
bdbch
f51dd2c68d Merge branch 'next' of github.com:ueberdosis/tiptap into next 2025-04-30 18:35:17 +02:00
bdbch
c28c77cc2d
upgrade y-prosemirror (#6313) 2025-04-30 18:35:03 +02:00
bdbch
87962aad23 use correct changeset 2025-04-30 03:28:14 +02:00
zzxming
55c78d6256 feat(text-align): add toggle command (#6101)
* feat(text-align): add toggle command

* docs: changeset

* Update .changeset/spotty-cobras-shake.md

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-04-30 03:11:15 +02:00
dependabot[bot]
f6f9039dba build(deps-dev): bump vite from 5.4.15 to 5.4.17 (#6240)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.15 to 5.4.17.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.17/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.17/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.17
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-30 03:05:50 +02:00
Nick Perez
9f207a63d2 fix(core): allow unregistering multiple plugins (#6299) 2025-04-30 03:02:00 +02:00
Arnau Gómez Farell
5729cf4223
Merge pull request #6300 from ueberdosis/feature/mention-multiple-trigger
Multiple triggers on mention component
2025-04-29 10:56:59 +02:00
Arnau Gómez Farell
40d2f3b0aa
fix: access the correct value of extension storage inside the renderText method. 2025-04-28 17:38:56 +02:00
Arnau Gómez Farell
b06d6b1c0b
test: mention demo e2e tests 2025-04-28 17:17:13 +02:00
Arnau Gómez Farell
3bf61278ec
feat: add explanation comments 2025-04-25 16:00:24 +02:00
Arnau Gómez Farell
e639bf6379
fix: add suggestion char property to make test pass 2025-04-25 12:56:25 +02:00
Arnau Gómez Farell
68034abc08
chore: changeset 2025-04-25 12:47:41 +02:00
Arnau Gómez Farell
c99dbf5ac4
feat: move multimention demo to examples folder 2025-04-25 12:36:44 +02:00
Arnau Gómez Farell
b17fcf09fd
feat: improve multiple triggers demo content to show multiple triggers 2025-04-25 12:35:24 +02:00
Arnau Gómez Farell
78dc9de279
refactor: simplify code and extract utility function 2025-04-25 12:20:05 +02:00
Arnau Gómez Farell
c04e019f6b
feat: support multiple triggers in Mention extension 2025-04-25 11:25:48 +02:00
Dominik Biedebach
df3d999a8a Merge branch 'next' of github.com:ueberdosis/tiptap into next 2025-04-23 15:47:09 +02:00
bdbch
7a37765965
Fix invalid editor.isDestroyed value (#6295)
* fixed infinite-loop because editor.isDestroyed would return invalid return

* actually return correct value as true - as when the editorView is not available the view is always destroyed

* fix dumb idea, actually use ?? operator

* remove log
2025-04-23 15:46:47 +02:00
Dominik Biedebach
631b0cc90f fixed infinite-loop because editor.isDestroyed would return invalid return 2025-04-23 15:37:49 +02:00
Dominik Biedebach
b70c4531dc Revert "Fix broken React unmount because of non-existing view on unmount (#6284)"
This reverts commit 3aa670a788.
2025-04-23 15:16:16 +02:00
Nick Perez
5e957e5373
fix: use editorView for isDestroyed check for SSR (#6233)
* fix: use `editorView` for `isDestroyed` check for SSR

* chore: update import of `fast-deep-equal` to include extension

* chore: fix unrelated issue

* chore: add changeset

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-04-23 15:15:06 +02:00
github-actions[bot]
dca2852f25
chore(release): publish a new pre-release version (beta) (#6291)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-22 18:14:18 +02:00
bdbch
1b4c82b419
Use pnpm workspace dependencies instead of hardcoded ones (#6290)
* use pnpm workspace dependencies for packages

* added changeset
2025-04-22 18:12:09 +02:00
github-actions[bot]
d2c04e0054
chore(release): publish a new pre-release version (beta) (#6288)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-22 16:19:38 +02:00
bdbch
3aa670a788
Fix broken React unmount because of non-existing view on unmount (#6284)
* fixed a bug with the React EditorContent component on unmount when editor view not available

* added changeset
2025-04-22 16:15:50 +02:00
github-actions[bot]
ef3a7e497c
chore(release): publish a new pre-release version (beta) (#6273)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-22 16:03:46 +02:00
Dominik Biedebach
a897bb8f68 bump y-tiptap to 2.0.0 to avoid dependency loop 2025-04-22 16:02:15 +02:00
bdbch
5988305f34
make sure rel attribute is set on html output for YouTube extension (#6280) 2025-04-18 16:32:44 +02:00
Chuck
3d67595777
VueNodeViewRenderer should return null for contentDOM for a non-leaf node with no NodeViewContent (#6277)
* (Vue2)VueNodeViewRenderer should return null for contentDOM for a non-leaf node with no NodeViewContent

* chore: add changeset

* Update .changeset/olive-jeans-love.md

patch -> major

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>

---------

Co-authored-by: zhangchuanfeng <791230189@qq.com>
Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-04-18 15:18:53 +02:00
Dominik Biedebach
7627150371 Merge branch 'develop' of github.com:ueberdosis/tiptap into next 2025-04-17 19:20:11 +02:00
Arnau Gómez Farell
d230f7ecf3 feat: add width and height attributes to Image node 2025-04-17 19:15:50 +02:00
Matt Gorman
d0557ef20f fix(link): fixes links with marks (#6078)
* fixes links with marks

* Create popular-geckos-pay.md

* Update clickHandler.ts

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-04-17 19:15:10 +02:00
Max Ryaguzov
664834fe1b fix: clone node before dragging for better dispaly (#6174)
* fix: clone node before dragging for better dispaly

* Create shiny-days-rhyme.md

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-04-17 19:14:10 +02:00