Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ueberdosis/tiptap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.0
Choose a base ref
...
head repository: ueberdosis/tiptap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.1
Choose a head ref
  • 4 commits
  • 116 files changed
  • 2 contributors

Commits on Jan 29, 2024

  1. docs: add toc to nodepos docs

    bdbch committed Jan 29, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dyladan Daniel Dyla
    Copy the full SHA
    3133794 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dyladan Daniel Dyla
    Copy the full SHA
    ac67aa4 View commit details

Commits on Jan 31, 2024

  1. Refactor NodePos class to support block nodes (#4841)

    Co-authored-by: bdbch <dominik@bdbch.com>
    bdbch and bdbch authored Jan 31, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dyladan Daniel Dyla
    Copy the full SHA
    56c228a View commit details
  2. v2.2.1

    bdbch committed Jan 31, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dyladan Daniel Dyla
    Copy the full SHA
    1c5c087 View commit details
Showing with 826 additions and 363 deletions.
  1. +8 −0 CHANGELOG.md
  2. +8 −0 demos/CHANGELOG.md
  3. +2 −2 demos/package-lock.json
  4. +1 −1 demos/package.json
  5. +5 −31 docs/api/nodepos.md
  6. +1 −1 lerna.json
  7. +157 −157 package-lock.json
  8. +8 −0 packages/core/CHANGELOG.md
  9. +2 −2 packages/core/package.json
  10. +56 −15 packages/core/src/NodePos.ts
  11. +8 −0 packages/extension-blockquote/CHANGELOG.md
  12. +2 −2 packages/extension-blockquote/package.json
  13. +8 −0 packages/extension-bold/CHANGELOG.md
  14. +2 −2 packages/extension-bold/package.json
  15. +8 −0 packages/extension-bubble-menu/CHANGELOG.md
  16. +3 −3 packages/extension-bubble-menu/package.json
  17. +8 −0 packages/extension-bullet-list/CHANGELOG.md
  18. +2 −2 packages/extension-bullet-list/package.json
  19. +8 −0 packages/extension-character-count/CHANGELOG.md
  20. +3 −3 packages/extension-character-count/package.json
  21. +8 −0 packages/extension-code-block-lowlight/CHANGELOG.md
  22. +4 −4 packages/extension-code-block-lowlight/package.json
  23. +8 −0 packages/extension-code-block/CHANGELOG.md
  24. +3 −3 packages/extension-code-block/package.json
  25. +8 −0 packages/extension-code/CHANGELOG.md
  26. +2 −2 packages/extension-code/package.json
  27. +8 −0 packages/extension-collaboration-cursor/CHANGELOG.md
  28. +2 −2 packages/extension-collaboration-cursor/package.json
  29. +8 −0 packages/extension-collaboration/CHANGELOG.md
  30. +3 −3 packages/extension-collaboration/package.json
  31. +8 −0 packages/extension-color/CHANGELOG.md
  32. +3 −3 packages/extension-color/package.json
  33. +8 −0 packages/extension-document/CHANGELOG.md
  34. +2 −2 packages/extension-document/package.json
  35. +8 −0 packages/extension-dropcursor/CHANGELOG.md
  36. +3 −3 packages/extension-dropcursor/package.json
  37. +8 −0 packages/extension-floating-menu/CHANGELOG.md
  38. +3 −3 packages/extension-floating-menu/package.json
  39. +8 −0 packages/extension-focus/CHANGELOG.md
  40. +3 −3 packages/extension-focus/package.json
  41. +8 −0 packages/extension-font-family/CHANGELOG.md
  42. +3 −3 packages/extension-font-family/package.json
  43. +8 −0 packages/extension-gapcursor/CHANGELOG.md
  44. +3 −3 packages/extension-gapcursor/package.json
  45. +8 −0 packages/extension-hard-break/CHANGELOG.md
  46. +2 −2 packages/extension-hard-break/package.json
  47. +8 −0 packages/extension-heading/CHANGELOG.md
  48. +2 −2 packages/extension-heading/package.json
  49. +8 −0 packages/extension-highlight/CHANGELOG.md
  50. +2 −2 packages/extension-highlight/package.json
  51. +8 −0 packages/extension-history/CHANGELOG.md
  52. +3 −3 packages/extension-history/package.json
  53. +8 −0 packages/extension-horizontal-rule/CHANGELOG.md
  54. +3 −3 packages/extension-horizontal-rule/package.json
  55. +8 −0 packages/extension-image/CHANGELOG.md
  56. +2 −2 packages/extension-image/package.json
  57. +8 −0 packages/extension-italic/CHANGELOG.md
  58. +2 −2 packages/extension-italic/package.json
  59. +8 −0 packages/extension-link/CHANGELOG.md
  60. +3 −3 packages/extension-link/package.json
  61. +8 −0 packages/extension-list-item/CHANGELOG.md
  62. +2 −2 packages/extension-list-item/package.json
  63. +8 −0 packages/extension-list-keymap/CHANGELOG.md
  64. +2 −2 packages/extension-list-keymap/package.json
  65. +8 −0 packages/extension-mention/CHANGELOG.md
  66. +4 −4 packages/extension-mention/package.json
  67. +8 −0 packages/extension-ordered-list/CHANGELOG.md
  68. +2 −2 packages/extension-ordered-list/package.json
  69. +8 −0 packages/extension-paragraph/CHANGELOG.md
  70. +2 −2 packages/extension-paragraph/package.json
  71. +8 −0 packages/extension-placeholder/CHANGELOG.md
  72. +3 −3 packages/extension-placeholder/package.json
  73. +8 −0 packages/extension-strike/CHANGELOG.md
  74. +2 −2 packages/extension-strike/package.json
  75. +8 −0 packages/extension-subscript/CHANGELOG.md
  76. +2 −2 packages/extension-subscript/package.json
  77. +8 −0 packages/extension-superscript/CHANGELOG.md
  78. +2 −2 packages/extension-superscript/package.json
  79. +8 −0 packages/extension-table-cell/CHANGELOG.md
  80. +2 −2 packages/extension-table-cell/package.json
  81. +8 −0 packages/extension-table-header/CHANGELOG.md
  82. +2 −2 packages/extension-table-header/package.json
  83. +8 −0 packages/extension-table-row/CHANGELOG.md
  84. +2 −2 packages/extension-table-row/package.json
  85. +8 −0 packages/extension-table/CHANGELOG.md
  86. +3 −3 packages/extension-table/package.json
  87. +8 −0 packages/extension-task-item/CHANGELOG.md
  88. +3 −3 packages/extension-task-item/package.json
  89. +8 −0 packages/extension-task-list/CHANGELOG.md
  90. +2 −2 packages/extension-task-list/package.json
  91. +8 −0 packages/extension-text-align/CHANGELOG.md
  92. +2 −2 packages/extension-text-align/package.json
  93. +8 −0 packages/extension-text-style/CHANGELOG.md
  94. +2 −2 packages/extension-text-style/package.json
  95. +8 −0 packages/extension-text/CHANGELOG.md
  96. +2 −2 packages/extension-text/package.json
  97. +8 −0 packages/extension-typography/CHANGELOG.md
  98. +2 −2 packages/extension-typography/package.json
  99. +8 −0 packages/extension-underline/CHANGELOG.md
  100. +2 −2 packages/extension-underline/package.json
  101. +8 −0 packages/extension-youtube/CHANGELOG.md
  102. +2 −2 packages/extension-youtube/package.json
  103. +8 −0 packages/html/CHANGELOG.md
  104. +3 −3 packages/html/package.json
  105. +8 −0 packages/pm/CHANGELOG.md
  106. +1 −1 packages/pm/package.json
  107. +8 −0 packages/react/CHANGELOG.md
  108. +5 −5 packages/react/package.json
  109. +8 −0 packages/starter-kit/CHANGELOG.md
  110. +20 −20 packages/starter-kit/package.json
  111. +8 −0 packages/suggestion/CHANGELOG.md
  112. +3 −3 packages/suggestion/package.json
  113. +8 −0 packages/vue-2/CHANGELOG.md
  114. +5 −5 packages/vue-2/package.json
  115. +8 −0 packages/vue-3/CHANGELOG.md
  116. +5 −5 packages/vue-3/package.json
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.2.1](https://github.com/ueberdosis/tiptap/compare/v2.2.0...v2.2.1) (2024-01-31)

**Note:** Version bump only for package tiptap





# [2.2.0](https://github.com/ueberdosis/tiptap/compare/v2.1.16...v2.2.0) (2024-01-29)


8 changes: 8 additions & 0 deletions demos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.2.1](https://github.com/ueberdosis/tiptap/compare/v2.2.0...v2.2.1) (2024-01-31)

**Note:** Version bump only for package tiptap-demos





# [2.2.0](https://github.com/ueberdosis/tiptap/compare/v2.1.16...v2.2.0) (2024-01-29)


4 changes: 2 additions & 2 deletions demos/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiptap-demos",
"version": "2.2.0",
"version": "2.2.1",
"private": true,
"scripts": {
"start": "vite --host",
36 changes: 5 additions & 31 deletions docs/api/nodepos.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,12 @@
# Node Positions

- [Introduction](#introduction)
- [Usage](#usage)
- [API](#api)
- [NodePos](#nodepos)
- [Methods](#methods)
- [constructor](#constructor)
- [closest](#closest)
- [querySelector](#queryselector)
- [querySelectorAll](#queryselectorall)
- [setAttributes](#setattributes)
- [Properties](#properties)
- [node](#node)
- [element](#element)
- [content](#content)
- [attributes](#attributes)
- [textContent](#textcontent)
- [depth](#depth)
- [pos](#pos)
- [size](#size)
- [from](#from)
- [to](#to)
- [range](#range)
- [parent](#parent)
- [before](#before)
- [after](#after)
- [children](#children)
- [firstChild](#firstchild)
- [lastChild](#lastchild)
---
tableOfContents: true
---

# Node Positions

## Introduction

Node Positions (short `NodePos`) are a new concept introduced with Tiptap 3.0.0. They are used to describe a specific position of a node, it's children, it's parent and easy ways to navigate between them. They are heavily inspired by the DOM and are based on Prosemirror's [ResolvedPos](https://prosemirror.net/docs/ref/#model.ResolvedPos) implementation.
Node Positions (short `NodePos`) are a new concept introduced with Tiptap 2.2.0. They are used to describe a specific position of a node, it's children, it's parent and easy ways to navigate between them. They are heavily inspired by the DOM and are based on Prosemirror's [ResolvedPos](https://prosemirror.net/docs/ref/#model.ResolvedPos) implementation.

## Usage

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -10,5 +10,5 @@
},
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"version": "2.2.0"
"version": "2.2.1"
}
Loading