Commit Graph

682 Commits

Author SHA1 Message Date
Łukasz
e4ca289d95
dosc: Fixed the React example for CharacterCount extension (#6700)
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
* Fixed the example for CharacterCount

* Refactor fix based on the PR's comments.
2025-07-23 20:28:44 +02:00
Alex Casillas
b4aaa9d50f
Fix default react demo on firefox (#6708)
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
2025-07-23 14:59:51 +02:00
bdbch
6b42853800
fix broken menus when inline is true (#6658)
* fix broken menus when inline is true

* remove inline from demos

* add missing prop to virtual element
2025-07-16 13:11:17 +02:00
github-actions[bot]
e17e337e58
Publish a new stable version (#6620)
* chore(release): publish a new release version

* changelog: 3.0.0 to 3.0.1

* changelog: 3.0.0 to 3.0.1

* update package.json versions

* update dependencies

* update pnpm-lock

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominik Biedebach <dominik.biedebach@ueber.io>
2025-07-12 16:50:22 +02:00
bdbch
5ba480bcd9
add updateAttributes to MarkView (#6578)
* add updateAttributes to MarkView

* fix build and add tests

* bind this to updateAttributes

* remove duplicate type definition

* Update .changeset/tall-singers-peel.md

Co-authored-by: Arnau Gómez Farell <arnau.gomez@tiptap.dev>

* Update packages/core/src/MarkView.ts

Co-authored-by: Arnau Gómez Farell <arnau.gomez@tiptap.dev>

---------

Co-authored-by: Arnau Gómez Farell <arnau.gomez@tiptap.dev>
2025-07-08 14:26:32 +02:00
bdbch
4a421bff7c
Math extension adjustments (#6516)
* fix JSdocs

* update class names for invisible and math extensions

* use different class name for tests

* use current selection for inserting nodes

* Update packages/extension-mathematics/src/extensions/InlineMath.ts

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

* Update packages/extension-mathematics/src/extensions/BlockMath.ts

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

* use separated comments for set and insert

* update vue demo

* rename default export to mathematics

* WIP: migration extension

* add new utilities for migration of existing content and better JSdocs

* added jsdocs for mathematics extensions

* fix build and jsdoc

* added jsdoc for math regex

* added jsdoc for math regex

* added changeset

* fix build for vue demo

* fix tests

* add katexOptions passing to node extensions

* add editable class only when editor is editable

* add editable class only when editor is editable

* remove set commands

* update demos, docs and allow custom regex on migration

* fix tests, styles

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-30 16:46:02 +02:00
bdbch
ab8bc2fe6e
implement node based math extension (#6508)
* implement node based math extension

* fix renderHTML data-type

* Update packages/extension-mathematics/src/extensions/BlockMath.ts

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

* Update packages/extension-mathematics/src/extensions/InlineMath.ts

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

* Update packages/extension-mathematics/src/extensions/BlockMath.ts

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-27 00:57:14 +02:00
bdbch
ac585c1395
Demo improvements (#6509)
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
* keep the search state in the url query

* always show demos
2025-06-26 16:03:07 +02:00
Daniel Adeboye
95b8c71a3d
fix(NodePos): add validation for target position within document range (#6487)
* fix(NodePos): add validation for target position within document range

* Create rich-jeans-check.md

* fix: lint

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-06-21 16:33:51 +02:00
bdbch
da7ccd9409
Migrate next version of details extension (#6484)
* migrate next version of details

* added changeset
2025-06-20 23:15:35 +02:00
bdbch
6412b50c56
Remove stuck DOM elements after suggestions are removed (#6480)
* fix(demos): remove mentions component element when destroyed

* fix(demos): remove component element for suggestion on destroy

* remove component elements first before destroying component
2025-06-20 21:17:08 +02:00
Dominik Biedebach
4dcea78585 Revert "update dedupeDeps"
This reverts commit c21b4b45b9.
2025-06-20 18:42:45 +02:00
Dominik Biedebach
c21b4b45b9 update dedupeDeps 2025-06-20 13:29:11 +02:00
bdbch
7ac01ef0b8
open source pro extensions (next) (#6467)
* open source pro extensions

* added changeset

* fix linting issues

* add missing dependencies

* add katex as dependency for demos

* apply next-fixes, removing tippy

* adjust tests to fit with next setup

* adjust to use tests from tiptap-pro repo

* fix tests for unique ID

* fix math test

* add more strict type transformation
2025-06-20 11:03:30 +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
Arnau Gómez Farell
2bd5b987eb
fix: apply prettier and eslint automatic fixes 2025-05-20 15:01:15 +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
62b0877d98
feat: update prosemirror-changeset package to support token encoders 2025-05-06 12:23:55 +02:00
bdbch
1ae247f505 fix tests 2025-05-05 18:12:54 +02:00
bdbch
c28c77cc2d
upgrade y-prosemirror (#6313) 2025-04-30 18:35:03 +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
Arnau Gómez Farell
b06d6b1c0b
test: mention demo e2e tests 2025-04-28 17:17:13 +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
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
c04e019f6b
feat: support multiple triggers in Mention extension 2025-04-25 11:25:48 +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
Dominik Biedebach
a897bb8f68 bump y-tiptap to 2.0.0 to avoid dependency loop 2025-04-22 16:02:15 +02:00
bdbch
04d3307953
enter beta pre-tag (#6274)
* enter beta pre-tag

* switch all versions to beta.0
2025-04-17 11:19:41 +02:00
Dominik Biedebach
e8f8e19b47 fix vue global draghandle demo 2025-04-15 15:02:24 +02:00
Dominik Biedebach
af9a6be40d fix serialize import from pm view 2025-03-28 16:36:51 +01:00
Dominik Biedebach
2c1824825d fix prosemirror cross-dependencies 2025-03-28 16:16:23 +01:00
github-actions[bot]
d69bc77469
chore(release): publish a new pre-release version (next) (#6156)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-28 15:40:22 +01:00
Dominik Biedebach
d40601da32 sync next with main/develop 2025-03-28 15:38:23 +01:00
teamclouday
81009d2160
Add option to set rel on youtube embed link (#6083)
* add option to set rel on youtube embed link

* rename parameter and add changeset

* change to patch

* fix lint and try to fix for tests

---------

Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-03-27 23:32:02 +01:00
dependabot[bot]
c403b90887
build(deps-dev): bump esbuild from 0.21.5 to 0.25.0 (#6095)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.21.5 to 0.25.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.21.5...v0.25.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bdbch <6538827+bdbch@users.noreply.github.com>
2025-03-27 23:14:51 +01:00
dependabot[bot]
5de7318cf5
build(deps-dev): bump vite from 5.4.11 to 5.4.15 (#6208)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.11 to 5.4.15.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.15/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.15/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>
2025-03-27 23:07:44 +01:00
Dominik Biedebach
ac35ec8d43 reinstigate history extension and move it into deprecated packages directory 2025-03-20 16:22:26 +01:00
bdbch
25ec82eca6
Rename CollaborationCursor extension to CollaborationCaret (#6173)
* rename collaboration-cursor to collaboration-caret

* added changeset
2025-03-12 15:54:27 +01:00
bdbch
d8a3d93c8a
Rename History extension to UndoRedo (#6172)
* rename history extension to undo-redo

* added changesets

* fix spacing in vue demo
2025-03-12 14:55:16 +01:00
Arnau Gómez Farell
89bd9c7d29
Fix/enforce-type-imports-so-that-bundler-ignores-types (#6132)
* fix: enforce type imports so that the bundler ignores types

* chore: add changeset

* fix: export types with export type keyword
2025-03-03 15:15:30 +01:00
github-actions[bot]
68bb0b4be2 chore(release): publish a new release version (#6075)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-31 10:52:49 +01:00
github-actions[bot]
3ac7e290e9
chore(release): publish a new pre-release version (next) (#6071)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-30 18:19:05 +01:00
Nick Perez
e80ba58805
test: update examples for trailing-node and selection extension (#6065) 2025-01-28 16:57:23 +01:00
bdbch
a33d20c1cd
use @tiptap/y-tiptap instead of y-prosemirror (#6064)
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
* use @tiptap/y-tiptap instead of y-prosemirror

* added changesets
2025-01-28 13:56:23 +01:00
Nick the Sick
e32c4033e8
test: update test file
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
2025-01-27 18:01:37 +01:00
Nick the Sick
81d7c6d124
chore: update example 2025-01-27 17:58:40 +01:00
Nick the Sick
2d715fc9cc
Merge branch 'develop' into next 2025-01-27 16:22:35 +01:00