Merge branch 'main' of github.com:ueberdosis/tiptap-next into main

This commit is contained in:
Hans Pagel 2021-03-03 21:08:00 +01:00
commit 1dd9c8635b
119 changed files with 2037 additions and 894 deletions

View File

@ -23,20 +23,20 @@
"react": "^17.0.1", "react": "^17.0.1",
"react-dom": "^17.0.1", "react-dom": "^17.0.1",
"remark-container": "^0.1.2", "remark-container": "^0.1.2",
"remark-toc": "^7.1.0", "remark-toc": "^7.2.0",
"remixicon": "^2.5.0", "remixicon": "^2.5.0",
"simplify-js": "^1.2.4", "simplify-js": "^1.2.4",
"tippy.js": "^6.2.7", "tippy.js": "^6.3.1",
"vue-github-button": "^1.1.2", "vue-github-button": "^1.1.2",
"y-indexeddb": "^9.0.6", "y-indexeddb": "^9.0.6",
"y-prosemirror": "^1.0.6", "y-prosemirror": "^1.0.6",
"y-webrtc": "^10.1.7", "y-webrtc": "^10.1.7",
"y-websocket": "^1.3.11", "y-websocket": "^1.3.11",
"yjs": "^13.5.0" "yjs": "^13.5.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.12.17", "@babel/plugin-proposal-optional-chaining": "^7.13.0",
"@babel/preset-env": "^7.12.17", "@babel/preset-env": "^7.13.5",
"@babel/preset-react": "^7.12.13", "@babel/preset-react": "^7.12.13",
"html-loader": "^1.3.2", "html-loader": "^1.3.2",
"node-sass": "^5.0.0", "node-sass": "^5.0.0",

View File

@ -70,7 +70,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import { content } from './content.js' import { content } from './content.js'
export default { export default {

View File

@ -21,7 +21,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import Collaboration from '@tiptap/extension-collaboration' import Collaboration from '@tiptap/extension-collaboration'
import CollaborationCursor from '@tiptap/extension-collaboration-cursor' import CollaborationCursor from '@tiptap/extension-collaboration-cursor'
import TaskList from '@tiptap/extension-task-list' import TaskList from '@tiptap/extension-task-list'

View File

@ -42,7 +42,7 @@
<script> <script>
import tippy from 'tippy.js' import tippy from 'tippy.js'
import { Editor, EditorContent, VueRenderer } from '@tiptap/vue' import { Editor, EditorContent, VueRenderer } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -70,9 +70,8 @@
</template> </template>
<script> <script>
import { import { Editor, EditorContent } from '@tiptap/vue-2'
Editor, EditorContent, defaultExtensions, import { defaultExtensions } from '@tiptap/starter-kit'
} from '@tiptap/vue-starter-kit'
export default { export default {
components: { components: {

View File

@ -1,5 +1,5 @@
import { Node, mergeAttributes } from '@tiptap/core' import { Node, mergeAttributes } from '@tiptap/core'
import { VueNodeViewRenderer } from '@tiptap/vue' import { VueNodeViewRenderer } from '@tiptap/vue-2'
import Component from './Component.vue' import Component from './Component.vue'
export default Node.create({ export default Node.create({

View File

@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'
import Paper from './Paper.js' import Paper from './Paper.js'

View File

@ -43,7 +43,8 @@
</template> </template>
<script> <script>
import { defaultExtensions, Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import TextAlign from '@tiptap/extension-text-align' import TextAlign from '@tiptap/extension-text-align'
import Highlight from '@tiptap/extension-highlight' import Highlight from '@tiptap/extension-highlight'

View File

@ -8,8 +8,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,7 +5,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import Highlight from '@tiptap/extension-highlight' import Highlight from '@tiptap/extension-highlight'
import Typography from '@tiptap/extension-typography' import Typography from '@tiptap/extension-typography'

View File

@ -3,7 +3,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -3,7 +3,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -63,8 +63,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import { defaultExtensions } from '@tiptap/starter-kit' import { defaultExtensions } from '@tiptap/starter-kit'
import Table from '@tiptap/extension-table' import Table from '@tiptap/extension-table'
import TableRow from '@tiptap/extension-table-row' import TableRow from '@tiptap/extension-table-row'

View File

@ -5,8 +5,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -32,7 +32,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -7,7 +7,7 @@ export default Extension.create({
defaultOptions: { defaultOptions: {
suggestion: { suggestion: {
char: '/', char: '/',
startOfLine: true, startOfLine: false,
command: ({ editor, range, props }) => { command: ({ editor, range, props }) => {
props.command({ editor, range }) props.command({ editor, range })
}, },

View File

@ -6,9 +6,8 @@
<script> <script>
import tippy from 'tippy.js' import tippy from 'tippy.js'
import { import { Editor, EditorContent, VueRenderer } from '@tiptap/vue-2'
Editor, EditorContent, defaultExtensions, VueRenderer, import { defaultExtensions } from '@tiptap/starter-kit'
} from '@tiptap/vue-starter-kit'
import Commands from './commands' import Commands from './commands'
import CommandsList from './CommandsList' import CommandsList from './CommandsList'
@ -118,7 +117,9 @@ export default {
}), }),
], ],
content: ` content: `
<p>Text</p> <p>Type a slash</p>
<p></p>
<p></p>
`, `,
}) })
}, },

View File

@ -19,9 +19,8 @@
</template> </template>
<script> <script>
import { import { Editor, EditorContent } from '@tiptap/vue-2'
Editor, EditorContent, defaultExtensions, import { defaultExtensions } from '@tiptap/starter-kit'
} from '@tiptap/vue-starter-kit'
import Details from './details' import Details from './details'
import DetailsSummary from './details-summary' import DetailsSummary from './details-summary'

View File

@ -9,9 +9,8 @@
</template> </template>
<script> <script>
import { import { Editor, EditorContent } from '@tiptap/vue-2'
Editor, EditorContent, defaultExtensions, import { defaultExtensions } from '@tiptap/starter-kit'
} from '@tiptap/vue-starter-kit'
import Iframe from './iframe' import Iframe from './iframe'
export default { export default {

View File

@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'

View File

@ -28,8 +28,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -3,7 +3,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,7 +9,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -3,7 +3,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -3,7 +3,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -24,8 +24,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -12,8 +12,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -20,8 +20,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Heading from '@tiptap/extension-heading' import Heading from '@tiptap/extension-heading'

View File

@ -5,7 +5,7 @@
</template> </template>
<script> <script>
import { Editor, EditorContent } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -25,7 +25,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
export default { export default {
components: { components: {

View File

@ -25,7 +25,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
export default { export default {
components: { components: {

View File

@ -9,7 +9,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
export default { export default {
components: { components: {

View File

@ -3,8 +3,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import { defaultExtensions } from '@tiptap/starter-kit' import { defaultExtensions } from '@tiptap/starter-kit'
export default { export default {

View File

@ -1,5 +1,5 @@
import { Node, mergeAttributes } from '@tiptap/core' import { Node, mergeAttributes } from '@tiptap/core'
import { VueNodeViewRenderer } from '@tiptap/vue' import { VueNodeViewRenderer } from '@tiptap/vue-2'
import Component from './Component.vue' import Component from './Component.vue'
export default Node.create({ export default Node.create({

View File

@ -5,7 +5,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import DraggableItem from './DraggableItem.js' import DraggableItem from './DraggableItem.js'
export default { export default {

View File

@ -1,5 +1,5 @@
import { Node, mergeAttributes } from '@tiptap/core' import { Node, mergeAttributes } from '@tiptap/core'
import { VueNodeViewRenderer } from '@tiptap/vue' import { VueNodeViewRenderer } from '@tiptap/vue-2'
import Component from './Component.vue' import Component from './Component.vue'
export default Node.create({ export default Node.create({

View File

@ -5,7 +5,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
import TableOfContents from './TableOfContents.js' import TableOfContents from './TableOfContents.js'
export default { export default {

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -40,8 +40,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -11,8 +11,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,8 +5,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,8 +5,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -15,8 +15,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -8,8 +8,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -12,8 +12,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -6,7 +6,7 @@
<script> <script>
import tippy from 'tippy.js' import tippy from 'tippy.js'
import { Editor, EditorContent, VueRenderer } from '@tiptap/vue' import { Editor, EditorContent, VueRenderer } from '@tiptap/vue-2'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,8 +5,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -59,8 +59,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,8 +5,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -9,8 +9,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -5,8 +5,7 @@
</template> </template>
<script> <script>
import { Editor } from '@tiptap/core' import { Editor, EditorContent } from '@tiptap/vue-2'
import { EditorContent } from '@tiptap/vue'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' import Text from '@tiptap/extension-text'

View File

@ -3,7 +3,8 @@
</template> </template>
<script> <script>
import { Editor, EditorContent, defaultExtensions } from '@tiptap/vue-starter-kit' import { Editor, EditorContent } from '@tiptap/vue-2'
import { defaultExtensions } from '@tiptap/starter-kit'
export default { export default {
components: { components: {

View File

@ -31,10 +31,10 @@ Currently, were supporting custom Vue.js components only. To get the required
```bash ```bash
# with npm # with npm
npm install @tiptap/vue npm install @tiptap/vue-2
# with Yarn # with Yarn
yarn add @tiptap/vue yarn add @tiptap/vue-2
``` ```
And yes, we plan to support React, too. Meanwhile, you can roll your own `ReactRenderer`, but dont forget to share it with the community. And yes, we plan to support React, too. Meanwhile, you can roll your own `ReactRenderer`, but dont forget to share it with the community.

View File

@ -7,7 +7,7 @@ Node views are the best thing since sliced bread, at least if youre a fan of
<!-- ```js <!-- ```js
import { Node } from '@tiptap/core' import { Node } from '@tiptap/core'
import { VueNodeViewRenderer } from '@tiptap/vue' import { VueNodeViewRenderer } from '@tiptap/vue-2'
import Component from './Component.vue' import Component from './Component.vue'
export default Node.create({ export default Node.create({
@ -83,7 +83,7 @@ https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-task-item
```js ```js
import { Node } from '@tiptap/core' import { Node } from '@tiptap/core'
import { VueNodeViewRenderer } from '@tiptap/vue' import { VueNodeViewRenderer } from '@tiptap/vue-2'
import Component from './Component.vue' import Component from './Component.vue'
export default Node.create({ export default Node.create({

View File

@ -3,7 +3,7 @@
## toc ## toc
## Introduction ## Introduction
The `@tiptap/vue` package is not yet ported to Vue 3. Meanwhile, you can find compatible version contributed by [@samwillis](https://github.com/samwillis) and [@areknawo](https://github.com/areknawo) here. The `@tiptap/vue-2` package is not yet ported to Vue 3. Meanwhile, you can find compatible version contributed by [@samwillis](https://github.com/samwillis) and [@areknawo](https://github.com/areknawo) here.
## EditorContent.ts ## EditorContent.ts
https://github.com/ueberdosis/tiptap-next/issues/85#issuecomment-774520164 https://github.com/ueberdosis/tiptap-next/issues/85#issuecomment-774520164

View File

@ -1,6 +1,6 @@
context('clearContent', () => { context('clearContent', () => {
before(() => { before(() => {
cy.visit('/demos/Examples/default') cy.visit('/demos/Examples/Default/Vue')
}) })
it('returns true for the clearContent command', () => { it('returns true for the clearContent command', () => {

View File

@ -1,6 +1,6 @@
context('insertHTML', () => { context('insertHTML', () => {
before(() => { before(() => {
cy.visit('/demos/Examples/default') cy.visit('/demos/Examples/Default/Vue')
}) })
it('returns true for the insertHTML command', () => { it('returns true for the insertHTML command', () => {

View File

@ -1,6 +1,6 @@
context('setContent', () => { context('setContent', () => {
before(() => { before(() => {
cy.visit('/demos/Examples/default') cy.visit('/demos/Examples/Default/Vue')
}) })
it('returns true for the setContent command', () => { it('returns true for the setContent command', () => {

View File

@ -25,10 +25,10 @@
}, },
"devDependencies": { "devDependencies": {
"@atomico/rollup-plugin-sizes": "^1.1.4", "@atomico/rollup-plugin-sizes": "^1.1.4",
"@babel/core": "^7.12.17", "@babel/core": "^7.13.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.0",
"@babel/plugin-proposal-optional-chaining": "^7.12.17", "@babel/plugin-proposal-optional-chaining": "^7.13.0",
"@babel/preset-env": "^7.12.17", "@babel/preset-env": "^7.13.5",
"@babel/preset-react": "^7.12.13", "@babel/preset-react": "^7.12.13",
"@lerna/batch-packages": "^3.16.0", "@lerna/batch-packages": "^3.16.0",
"@lerna/filter-packages": "^3.18.0", "@lerna/filter-packages": "^3.18.0",
@ -36,8 +36,8 @@
"@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^17.0.0", "@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.2.0", "@rollup/plugin-node-resolve": "^11.2.0",
"@typescript-eslint/eslint-plugin": "^4.15.1", "@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "^4.15.1", "@typescript-eslint/parser": "^4.15.2",
"cypress": "^6.5.0", "cypress": "^6.5.0",
"eslint": "^7.20.0", "eslint": "^7.20.0",
"eslint-config-airbnb-base": "^14.2.0", "eslint-config-airbnb-base": "^14.2.0",
@ -47,13 +47,13 @@
"eslint-plugin-vue": "^7.6.0", "eslint-plugin-vue": "^7.6.0",
"lerna": "^3.22.1", "lerna": "^3.22.1",
"minimist": "^1.2.5", "minimist": "^1.2.5",
"rollup": "^2.39.0", "rollup": "^2.40.0",
"rollup-plugin-auto-external": "^2.0.0", "rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-sourcemaps": "^0.6.3", "rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0", "rollup-plugin-typescript2": "^0.30.0",
"rollup-plugin-vue": "5", "rollup-plugin-vue": "5",
"typescript": "^4.1.5", "typescript": "^4.2.2",
"vue": "^2.6.12" "vue": "^2.6.12"
} }
} }

View File

@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.22](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.21...@tiptap/core@2.0.0-alpha.22) (2021-02-28)
**Note:** Version bump only for package @tiptap/core
# [2.0.0-alpha.21](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.20...@tiptap/core@2.0.0-alpha.21) (2021-02-26)
**Note:** Version bump only for package @tiptap/core
# [2.0.0-alpha.20](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.19...@tiptap/core@2.0.0-alpha.20) (2021-02-26)
**Note:** Version bump only for package @tiptap/core
# [2.0.0-alpha.19](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.18...@tiptap/core@2.0.0-alpha.19) (2021-02-18) # [2.0.0-alpha.19](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.18...@tiptap/core@2.0.0-alpha.19) (2021-02-18)
**Note:** Version bump only for package @tiptap/core **Note:** Version bump only for package @tiptap/core

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/core", "name": "@tiptap/core",
"description": "headless rich text editor", "description": "headless rich text editor",
"version": "2.0.0-alpha.19", "version": "2.0.0-alpha.22",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -32,14 +32,13 @@
"@types/prosemirror-state": "^1.2.6", "@types/prosemirror-state": "^1.2.6",
"@types/prosemirror-transform": "^1.1.2", "@types/prosemirror-transform": "^1.1.2",
"@types/prosemirror-view": "^1.17.1", "@types/prosemirror-view": "^1.17.1",
"prosemirror-commands": "^1.1.6", "prosemirror-commands": "^1.1.7",
"prosemirror-inputrules": "^1.1.3", "prosemirror-inputrules": "^1.1.3",
"prosemirror-keymap": "^1.1.3", "prosemirror-keymap": "^1.1.3",
"prosemirror-model": "^1.13.3", "prosemirror-model": "^1.13.3",
"prosemirror-schema-list": "^1.1.4", "prosemirror-schema-list": "^1.1.4",
"prosemirror-state": "^1.3.4", "prosemirror-state": "^1.3.4",
"prosemirror-tables": "^1.1.1", "prosemirror-transform": "^1.2.12",
"prosemirror-transform": "^1.2.11", "prosemirror-view": "^1.17.8"
"prosemirror-view": "^1.17.6"
} }
} }

View File

@ -13,7 +13,7 @@ import ExtensionManager from './ExtensionManager'
import EventEmitter from './EventEmitter' import EventEmitter from './EventEmitter'
import { import {
EditorOptions, EditorOptions,
EditorContent, Content,
CanCommands, CanCommands,
ChainedCommands, ChainedCommands,
SingleCommands, SingleCommands,
@ -237,7 +237,7 @@ export class Editor extends EventEmitter {
/** /**
* Creates a ProseMirror document. * Creates a ProseMirror document.
*/ */
public createDocument = (content: EditorContent, parseOptions = this.options.parseOptions): Node => { public createDocument = (content: Content, parseOptions = this.options.parseOptions): Node => {
if (content && typeof content === 'object') { if (content && typeof content === 'object') {
try { try {
return this.schema.nodeFromJSON(content) return this.schema.nodeFromJSON(content)

View File

@ -1,6 +0,0 @@
import { CellSelection } from 'prosemirror-tables'
import isObject from '../utilities/isObject'
export default function isCellSelection(value: unknown): value is CellSelection {
return isObject(value) && value instanceof CellSelection
}

View File

@ -19,7 +19,6 @@ export { default as isMarkActive } from './helpers/isMarkActive'
export { default as isNodeActive } from './helpers/isNodeActive' export { default as isNodeActive } from './helpers/isNodeActive'
export { default as isNodeSelection } from './helpers/isNodeSelection' export { default as isNodeSelection } from './helpers/isNodeSelection'
export { default as isTextSelection } from './helpers/isTextSelection' export { default as isTextSelection } from './helpers/isTextSelection'
export { default as isCellSelection } from './helpers/isCellSelection'
export { default as findParentNodeClosestToPos } from './helpers/findParentNodeClosestToPos' export { default as findParentNodeClosestToPos } from './helpers/findParentNodeClosestToPos'
export interface Commands {} export interface Commands {}

View File

@ -32,7 +32,7 @@ export type Extensions = (Extension | Node | Mark)[]
export interface EditorOptions { export interface EditorOptions {
element: Element, element: Element,
content: EditorContent, content: Content,
extensions: Extensions, extensions: Extensions,
injectCSS: boolean, injectCSS: boolean,
autofocus: FocusPosition, autofocus: FocusPosition,
@ -50,7 +50,7 @@ export interface EditorOptions {
onDestroy: () => void, onDestroy: () => void,
} }
export type EditorContent = string | JSON | null export type Content = string | JSON | null
export type CommandProps = { export type CommandProps = {
editor: Editor, editor: Editor,

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-collaboration@2.0.0-alpha.11...@tiptap/extension-collaboration@2.0.0-alpha.12) (2021-02-26)
**Note:** Version bump only for package @tiptap/extension-collaboration
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-collaboration@2.0.0-alpha.10...@tiptap/extension-collaboration@2.0.0-alpha.11) (2021-02-16) # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-collaboration@2.0.0-alpha.10...@tiptap/extension-collaboration@2.0.0-alpha.11) (2021-02-16)
**Note:** Version bump only for package @tiptap/extension-collaboration **Note:** Version bump only for package @tiptap/extension-collaboration

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/extension-collaboration", "name": "@tiptap/extension-collaboration",
"description": "collaboration extension for tiptap", "description": "collaboration extension for tiptap",
"version": "2.0.0-alpha.11", "version": "2.0.0-alpha.12",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-alpha.11...@tiptap/extension-focus@2.0.0-alpha.12) (2021-02-26)
**Note:** Version bump only for package @tiptap/extension-focus
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-alpha.10...@tiptap/extension-focus@2.0.0-alpha.11) (2021-02-16) # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-focus@2.0.0-alpha.10...@tiptap/extension-focus@2.0.0-alpha.11) (2021-02-16)
**Note:** Version bump only for package @tiptap/extension-focus **Note:** Version bump only for package @tiptap/extension-focus

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/extension-focus", "name": "@tiptap/extension-focus",
"description": "focus extension for tiptap", "description": "focus extension for tiptap",
"version": "2.0.0-alpha.11", "version": "2.0.0-alpha.12",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -26,6 +26,6 @@
}, },
"dependencies": { "dependencies": {
"prosemirror-state": "^1.3.4", "prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.17.6" "prosemirror-view": "^1.17.8"
} }
} }

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-gapcursor@2.0.0-alpha.11...@tiptap/extension-gapcursor@2.0.0-alpha.12) (2021-02-26)
**Note:** Version bump only for package @tiptap/extension-gapcursor
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-gapcursor@2.0.0-alpha.10...@tiptap/extension-gapcursor@2.0.0-alpha.11) (2021-02-16) # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-gapcursor@2.0.0-alpha.10...@tiptap/extension-gapcursor@2.0.0-alpha.11) (2021-02-16)
**Note:** Version bump only for package @tiptap/extension-gapcursor **Note:** Version bump only for package @tiptap/extension-gapcursor

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/extension-gapcursor", "name": "@tiptap/extension-gapcursor",
"description": "gapcursor extension for tiptap", "description": "gapcursor extension for tiptap",
"version": "2.0.0-alpha.11", "version": "2.0.0-alpha.12",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",

View File

@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.11...@tiptap/extension-mention@2.0.0-alpha.12) (2021-02-28)
**Note:** Version bump only for package @tiptap/extension-mention
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.10...@tiptap/extension-mention@2.0.0-alpha.11) (2021-02-26)
**Note:** Version bump only for package @tiptap/extension-mention
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.9...@tiptap/extension-mention@2.0.0-alpha.10) (2021-02-26)
**Note:** Version bump only for package @tiptap/extension-mention
# [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.8...@tiptap/extension-mention@2.0.0-alpha.9) (2021-02-18) # [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-mention@2.0.0-alpha.8...@tiptap/extension-mention@2.0.0-alpha.9) (2021-02-18)
**Note:** Version bump only for package @tiptap/extension-mention **Note:** Version bump only for package @tiptap/extension-mention

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/extension-mention", "name": "@tiptap/extension-mention",
"description": "mention extension for tiptap", "description": "mention extension for tiptap",
"version": "2.0.0-alpha.9", "version": "2.0.0-alpha.12",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -25,6 +25,6 @@
"@tiptap/core": "^2.0.0-alpha.6" "@tiptap/core": "^2.0.0-alpha.6"
}, },
"dependencies": { "dependencies": {
"@tiptap/suggestion": "^2.0.0-alpha.9" "@tiptap/suggestion": "^2.0.0-alpha.12"
} }
} }

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table@2.0.0-alpha.11...@tiptap/extension-table@2.0.0-alpha.12) (2021-02-26)
**Note:** Version bump only for package @tiptap/extension-table
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table@2.0.0-alpha.10...@tiptap/extension-table@2.0.0-alpha.11) (2021-02-16) # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table@2.0.0-alpha.10...@tiptap/extension-table@2.0.0-alpha.11) (2021-02-16)
**Note:** Version bump only for package @tiptap/extension-table **Note:** Version bump only for package @tiptap/extension-table

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/extension-table", "name": "@tiptap/extension-table",
"description": "table extension for tiptap", "description": "table extension for tiptap",
"version": "2.0.0-alpha.11", "version": "2.0.0-alpha.12",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -26,6 +26,6 @@
}, },
"dependencies": { "dependencies": {
"prosemirror-tables": "^1.1.1", "prosemirror-tables": "^1.1.1",
"prosemirror-view": "^1.17.6" "prosemirror-view": "^1.17.8"
} }
} }

View File

@ -2,7 +2,6 @@ import {
Command, Command,
Node, Node,
mergeAttributes, mergeAttributes,
isCellSelection,
findParentNodeClosestToPos, findParentNodeClosestToPos,
callOrReturn, callOrReturn,
} from '@tiptap/core' } from '@tiptap/core'
@ -28,6 +27,7 @@ import {
import { NodeView } from 'prosemirror-view' import { NodeView } from 'prosemirror-view'
import { TextSelection } from 'prosemirror-state' import { TextSelection } from 'prosemirror-state'
import { createTable } from './utilities/createTable' import { createTable } from './utilities/createTable'
import { isCellSelection } from './utilities/isCellSelection'
import { TableView } from './TableView' import { TableView } from './TableView'
export interface TableOptions { export interface TableOptions {

View File

@ -0,0 +1,5 @@
import { CellSelection } from 'prosemirror-tables'
export function isCellSelection(value: unknown): value is CellSelection {
return value instanceof CellSelection
}

View File

@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.18](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-alpha.17...@tiptap/html@2.0.0-alpha.18) (2021-02-28)
**Note:** Version bump only for package @tiptap/html
# [2.0.0-alpha.17](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-alpha.16...@tiptap/html@2.0.0-alpha.17) (2021-02-26)
**Note:** Version bump only for package @tiptap/html
# [2.0.0-alpha.16](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-alpha.15...@tiptap/html@2.0.0-alpha.16) (2021-02-26)
**Note:** Version bump only for package @tiptap/html
# [2.0.0-alpha.15](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-alpha.14...@tiptap/html@2.0.0-alpha.15) (2021-02-18) # [2.0.0-alpha.15](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/html@2.0.0-alpha.14...@tiptap/html@2.0.0-alpha.15) (2021-02-18)
**Note:** Version bump only for package @tiptap/html **Note:** Version bump only for package @tiptap/html

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/html", "name": "@tiptap/html",
"description": "utility package to render tiptap JSON as HTML", "description": "utility package to render tiptap JSON as HTML",
"version": "2.0.0-alpha.15", "version": "2.0.0-alpha.18",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -22,7 +22,7 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@tiptap/core": "^2.0.0-alpha.19", "@tiptap/core": "^2.0.0-alpha.22",
"hostic-dom": "^0.8.6", "hostic-dom": "^0.8.6",
"prosemirror-model": "^1.13.3" "prosemirror-model": "^1.13.3"
} }

View File

@ -0,0 +1,8 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 2.0.0-alpha.2 (2021-02-26)
**Note:** Version bump only for package @tiptap/react

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/react", "name": "@tiptap/react",
"description": "React components for tiptap", "description": "React components for tiptap",
"version": "2.0.0-alpha.1", "version": "2.0.0-alpha.2",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -26,6 +26,6 @@
"react": "^17.0.1" "react": "^17.0.1"
}, },
"dependencies": { "dependencies": {
"prosemirror-view": "^1.17.6" "prosemirror-view": "^1.17.8"
} }
} }

View File

@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.14](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/starter-kit@2.0.0-alpha.13...@tiptap/starter-kit@2.0.0-alpha.14) (2021-02-26)
**Note:** Version bump only for package @tiptap/starter-kit
# [2.0.0-alpha.13](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/starter-kit@2.0.0-alpha.12...@tiptap/starter-kit@2.0.0-alpha.13) (2021-02-16) # [2.0.0-alpha.13](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/starter-kit@2.0.0-alpha.12...@tiptap/starter-kit@2.0.0-alpha.13) (2021-02-16)
**Note:** Version bump only for package @tiptap/starter-kit **Note:** Version bump only for package @tiptap/starter-kit

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/starter-kit", "name": "@tiptap/starter-kit",
"description": "starter kit for tiptap", "description": "starter kit for tiptap",
"version": "2.0.0-alpha.13", "version": "2.0.0-alpha.14",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -29,7 +29,7 @@
"@tiptap/extension-code-block": "^2.0.0-alpha.11", "@tiptap/extension-code-block": "^2.0.0-alpha.11",
"@tiptap/extension-document": "^2.0.0-alpha.11", "@tiptap/extension-document": "^2.0.0-alpha.11",
"@tiptap/extension-dropcursor": "^2.0.0-alpha.11", "@tiptap/extension-dropcursor": "^2.0.0-alpha.11",
"@tiptap/extension-gapcursor": "^2.0.0-alpha.11", "@tiptap/extension-gapcursor": "^2.0.0-alpha.12",
"@tiptap/extension-hard-break": "^2.0.0-alpha.11", "@tiptap/extension-hard-break": "^2.0.0-alpha.11",
"@tiptap/extension-heading": "^2.0.0-alpha.11", "@tiptap/extension-heading": "^2.0.0-alpha.11",
"@tiptap/extension-history": "^2.0.0-alpha.11", "@tiptap/extension-history": "^2.0.0-alpha.11",

View File

@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-alpha.11...@tiptap/suggestion@2.0.0-alpha.12) (2021-02-28)
**Note:** Version bump only for package @tiptap/suggestion
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-alpha.10...@tiptap/suggestion@2.0.0-alpha.11) (2021-02-26)
**Note:** Version bump only for package @tiptap/suggestion
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-alpha.9...@tiptap/suggestion@2.0.0-alpha.10) (2021-02-26)
**Note:** Version bump only for package @tiptap/suggestion
# [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-alpha.8...@tiptap/suggestion@2.0.0-alpha.9) (2021-02-18) # [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/suggestion@2.0.0-alpha.8...@tiptap/suggestion@2.0.0-alpha.9) (2021-02-18)
**Note:** Version bump only for package @tiptap/suggestion **Note:** Version bump only for package @tiptap/suggestion

View File

@ -1,7 +1,7 @@
{ {
"name": "@tiptap/suggestion", "name": "@tiptap/suggestion",
"description": "suggestion plugin for tiptap", "description": "suggestion plugin for tiptap",
"version": "2.0.0-alpha.9", "version": "2.0.0-alpha.12",
"homepage": "https://tiptap.dev", "homepage": "https://tiptap.dev",
"keywords": [ "keywords": [
"tiptap", "tiptap",
@ -22,9 +22,9 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@tiptap/core": "^2.0.0-alpha.19", "@tiptap/core": "^2.0.0-alpha.22",
"prosemirror-model": "^1.13.3", "prosemirror-model": "^1.13.3",
"prosemirror-state": "^1.3.4", "prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.17.6" "prosemirror-view": "^1.17.8"
} }
} }

View File

@ -0,0 +1,8 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 2.0.0-alpha.1 (2021-02-28)
**Note:** Version bump only for package @tiptap/vue-2

14
packages/vue-2/README.md Normal file
View File

@ -0,0 +1,14 @@
# @tiptap/vue-2
[![Version](https://img.shields.io/npm/v/@tiptap/vue-2.svg?label=version)](https://www.npmjs.com/package/@tiptap/vue-2)
[![Downloads](https://img.shields.io/npm/dm/@tiptap/vue-2.svg)](https://npmcharts.com/compare/tiptap?minimal=true)
[![License](https://img.shields.io/npm/l/@tiptap/vue-2.svg)](https://www.npmjs.com/package/@tiptap/vue-2)
[![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub)](https://github.com/sponsors/ueberdosis)
## Introduction
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*.
## Offical Documentation
Documentation can be found on the [tiptap website](https://tiptap.dev).
## License
tiptap is open-sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap-next/blob/main/LICENSE.md).

Some files were not shown because too many files have changed in this diff Show More