@zeedhi/zd-richtext-vue 1.3.1 → 1.4.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/zd-richtext-vue",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "RichTextVue by BVR",
5
5
  "main": "dist/rich-text-vue.umd.js",
6
6
  "module": "dist/rich-text-vue.esm.js",
@@ -14,8 +14,15 @@
14
14
  "watch": "rollup -cw"
15
15
  },
16
16
  "dependencies": {
17
+ "@tiptap/core": "^2.1.12",
18
+ "@tiptap/extension-font-family": "^2.1.12",
19
+ "@tiptap/extension-text-style": "^2.1.12",
20
+ "@tiptap/pm": "^2.1.12",
21
+ "@tiptap/starter-kit": "^2.1.12",
22
+ "@tiptap/vue-2": "^2.1.12",
17
23
  "tiptap-extensions": "1.35.*",
18
- "tiptap-vuetify": "2.24.*"
24
+ "tiptap-vuetify": "2.24.*",
25
+ "vuetify-pro-tiptap": "^1.4.3"
19
26
  },
20
27
  "peerDependencies": {
21
28
  "@zeedhi/vuetify": "*",
@@ -24,5 +31,5 @@
24
31
  "vue-class-component": "7.2.*",
25
32
  "vue-property-decorator": "9.1.*"
26
33
  },
27
- "gitHead": "7f117f141fe0b7f61cc45217c9827d791a408705"
34
+ "gitHead": "dd32b1059b0544a88a2c91098d03b16d3608ecab"
28
35
  }
@@ -1,21 +1,28 @@
1
- import { RichText } from '@zeedhi/zd-richtext-common';
2
1
  import { ZdComponentRender } from '@zeedhi/vuetify';
2
+ import { IFonts, RichText } from '@zeedhi/zd-richtext-common';
3
3
  export default class ZdRichText extends ZdComponentRender {
4
4
  outputFormat: string;
5
5
  placeholder: string;
6
6
  disabled: boolean | string;
7
7
  toolbarColor: string;
8
+ content: string;
8
9
  cardColor: string;
10
+ fonts: IFonts[];
9
11
  outlined: boolean | string;
10
12
  width: number | string;
11
13
  height: number | string;
14
+ formatGetter: Object | string;
12
15
  fillHeight: boolean;
13
- extensions: Array<any>;
14
16
  instance: RichText;
15
17
  instanceType: typeof RichText;
16
18
  onKeyDown(event: KeyboardEvent): void;
17
- componentKey: number;
18
19
  changeLanguage(): void;
20
+ extensions: import("@tiptap/vue-2").Extension<import("@tiptap/extension-font-family").FontFamilyOptions, any>[];
21
+ input(instanceInput: String): void;
22
+ private initialFocusValue?;
23
+ onFocus(event: Event): void;
24
+ onBlur(event: Event): void;
25
+ toolbar: import("vue").Ref<any[]>;
19
26
  mounted(): void;
20
27
  destroyed(): void;
21
28
  }
@@ -0,0 +1,9 @@
1
+ import { ZdComponentRender } from '@zeedhi/vuetify';
2
+ import { IFonts } from '@zeedhi/zd-richtext-common';
3
+ export declare const fonts: IFonts[];
4
+ export default class FontFamily extends ZdComponentRender {
5
+ editor: any;
6
+ attrs: any;
7
+ fonts: IFonts[];
8
+ setFontStyle(editor: any, font: string): void;
9
+ }
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
+ import 'vuetify-pro-tiptap/lib/style.css';
1
2
  import ZdRichText from './RichText.vue';
2
- import 'tiptap-vuetify/dist/main.css';
3
3
  export { ZdRichText };