@tinymce/tinymce-vue 6.0.1 → 6.0.2-feature.20240724025631465.sha207a080

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.
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Ref, SetupContext } from 'vue';
9
9
  import { IPropTypes } from './components/EditorPropTypes';
10
- import { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
10
+ import type { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
11
11
  declare const isValidKey: (key: string) => boolean;
12
12
  declare const bindHandlers: (initEvent: EditorEvent<any>, listeners: Record<string, any>, editor: TinyMCEEditor) => void;
13
13
  declare const bindModelHandlers: (props: IPropTypes, ctx: SetupContext, editor: TinyMCEEditor, modelValue: Ref<any>) => void;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { TinyMCE } from 'tinymce';
8
+ import type { TinyMCE } from 'tinymce';
9
9
  type EditorOptions = Parameters<TinyMCE['init']>[0];
10
10
  export type CopyProps<T> = {
11
11
  [P in keyof T]: any;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { Ref, SetupContext } from 'vue';
9
9
  import { IPropTypes } from './components/EditorPropTypes';
10
- import { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
10
+ import type { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
11
11
  declare const isValidKey: (key: string) => boolean;
12
12
  declare const bindHandlers: (initEvent: EditorEvent<any>, listeners: Record<string, any>, editor: TinyMCEEditor) => void;
13
13
  declare const bindModelHandlers: (props: IPropTypes, ctx: SetupContext, editor: TinyMCEEditor, modelValue: Ref<any>) => void;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { TinyMCE } from 'tinymce';
8
+ import type { TinyMCE } from 'tinymce';
9
9
  type EditorOptions = Parameters<TinyMCE['init']>[0];
10
10
  export type CopyProps<T> = {
11
11
  [P in keyof T]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinymce/tinymce-vue",
3
- "version": "6.0.1",
3
+ "version": "6.0.2-feature.20240724025631465.sha207a080",
4
4
  "description": "Official TinyMCE Vue 3 Component",
5
5
  "private": false,
6
6
  "repository": {
@@ -33,8 +33,14 @@
33
33
  "LICENSE.txt"
34
34
  ],
35
35
  "peerDependencies": {
36
+ "tinymce": "^7.0.0 || ^6.0.0 || ^5.5.1",
36
37
  "vue": "^3.0.0"
37
38
  },
39
+ "peerDependenciesMeta": {
40
+ "tinymce": {
41
+ "optional": true
42
+ }
43
+ },
38
44
  "devDependencies": {
39
45
  "@babel/core": "^7.20.2",
40
46
  "@ephox/agar": "^8.0.1",
@@ -69,6 +75,7 @@
69
75
  "rollup-plugin-node-resolve": "^5.2.0",
70
76
  "rollup-plugin-typescript2": "^0.34.1",
71
77
  "rollup-plugin-uglify": "^6.0.0",
78
+ "tinymce": "^7",
72
79
  "tinymce-4": "npm:tinymce@^4",
73
80
  "tinymce-5": "npm:tinymce@^5",
74
81
  "tinymce-6": "npm:tinymce@^6",
@@ -84,8 +91,5 @@
84
91
  "vue-router": "^4.3.2",
85
92
  "vue-template-compiler": "^2.7.16",
86
93
  "webpack": "^5.75.0"
87
- },
88
- "dependencies": {
89
- "tinymce": "^7.0.0 || ^6.0.0 || ^5.5.1"
90
94
  }
91
95
  }