@tiptap/vue-2 3.0.0-next.5 → 3.0.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/vue-2",
3
3
  "description": "Vue components for tiptap",
4
- "version": "3.0.0-next.5",
4
+ "version": "3.0.0-next.7",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -42,13 +42,13 @@
42
42
  "vue-ts-types": "1.6.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@tiptap/core": "^3.0.0-next.5",
46
- "@tiptap/pm": "^3.0.0-next.5",
45
+ "@tiptap/core": "^3.0.0-next.7",
46
+ "@tiptap/pm": "^3.0.0-next.7",
47
47
  "vue": "^2.7.16"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@tiptap/extension-bubble-menu": "^3.0.0-next.5",
51
- "@tiptap/extension-floating-menu": "^3.0.0-next.5"
50
+ "@tiptap/extension-bubble-menu": "^3.0.0-next.7",
51
+ "@tiptap/extension-floating-menu": "^3.0.0-next.7"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@tiptap/core": "^3.0.0-next.4",
package/src/Editor.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Editor as CoreEditor } from '@tiptap/core'
2
- import Vue from 'vue'
2
+ import type Vue from 'vue'
3
3
 
4
4
  export class Editor extends CoreEditor {
5
5
  public contentComponent: Vue | null = null
@@ -1,6 +1,7 @@
1
- import Vue, { Component, CreateElement, PropType } from 'vue'
1
+ import type { Component, CreateElement, PropType } from 'vue'
2
+ import type Vue from 'vue'
2
3
 
3
- import { Editor } from './Editor.js'
4
+ import type { Editor } from './Editor.js'
4
5
 
5
6
  export interface EditorContentInterface extends Vue {
6
7
  editor: Editor
@@ -1,4 +1,5 @@
1
- import Vue, { Component, CreateElement } from 'vue'
1
+ import type { Component, CreateElement } from 'vue'
2
+ import type Vue from 'vue'
2
3
 
3
4
  export interface NodeViewContentInterface extends Vue {
4
5
  as: string
@@ -1,4 +1,5 @@
1
- import Vue, { Component, CreateElement } from 'vue'
1
+ import type { Component, CreateElement } from 'vue'
2
+ import type Vue from 'vue'
2
3
 
3
4
  export interface NodeViewWrapperInterface extends Vue {
4
5
  as: string
@@ -1,11 +1,12 @@
1
- import { DecorationWithType, NodeView, NodeViewProps, NodeViewRenderer, NodeViewRendererOptions } from '@tiptap/core'
2
- import { Node as ProseMirrorNode } from '@tiptap/pm/model'
3
- import { Decoration, DecorationSource, NodeView as ProseMirrorNodeView } from '@tiptap/pm/view'
1
+ import type { DecorationWithType, NodeViewProps, NodeViewRenderer, NodeViewRendererOptions } from '@tiptap/core'
2
+ import { NodeView } from '@tiptap/core'
3
+ import type { Node as ProseMirrorNode } from '@tiptap/pm/model'
4
+ import type { Decoration, DecorationSource, NodeView as ProseMirrorNodeView } from '@tiptap/pm/view'
4
5
  import Vue from 'vue'
5
- import { VueConstructor } from 'vue/types/umd'
6
+ import type { VueConstructor } from 'vue/types/umd'
6
7
  import { booleanProp, functionProp, objectProp } from 'vue-ts-types'
7
8
 
8
- import { Editor } from './Editor.js'
9
+ import type { Editor } from './Editor.js'
9
10
  import { VueRenderer } from './VueRenderer.js'
10
11
 
11
12
  export const nodeViewProps = {
@@ -1,5 +1,5 @@
1
1
  import Vue from 'vue'
2
- import { VueConstructor } from 'vue/types/umd'
2
+ import type { VueConstructor } from 'vue/types/umd'
3
3
 
4
4
  /**
5
5
  * The VueRenderer class is responsible for rendering a Vue component as a ProseMirror node view.
@@ -1,5 +1,7 @@
1
- import { BubbleMenuPlugin, BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'
2
- import Vue, { Component, CreateElement, PropType } from 'vue'
1
+ import type { BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'
2
+ import { BubbleMenuPlugin } from '@tiptap/extension-bubble-menu'
3
+ import type { Component, CreateElement, PropType } from 'vue'
4
+ import type Vue from 'vue'
3
5
 
4
6
  export interface BubbleMenuInterface extends Vue {
5
7
  pluginKey: BubbleMenuPluginProps['pluginKey']
@@ -1,5 +1,7 @@
1
- import { FloatingMenuPlugin, FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
2
- import Vue, { Component, CreateElement, PropType } from 'vue'
1
+ import type { FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
2
+ import { FloatingMenuPlugin } from '@tiptap/extension-floating-menu'
3
+ import type { Component, CreateElement, PropType } from 'vue'
4
+ import type Vue from 'vue'
3
5
 
4
6
  export interface FloatingMenuInterface extends Vue {
5
7
  pluginKey: FloatingMenuPluginProps['pluginKey']