@zeedhi/zd-richtext-vue 1.5.2 → 3.0.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/dist/richtext-vue.es.js +68510 -0
- package/dist/types/components/RichText.d.ts +1174 -0
- package/dist/types/components/RichText.vue.d.ts +2 -0
- package/dist/types/extensions/FontFamily/FontFamily.d.ts +295 -0
- package/dist/types/extensions/FontFamily/FontFamily.vue.d.ts +2 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/public.d.ts +2 -0
- package/package.json +42 -25
- package/dist/rich-text-vue.esm.js +0 -965
- package/dist/rich-text-vue.umd.js +0 -970
- package/types/RichText.d.ts +0 -39
- package/types/extensions/FontFamily/FontFamily.d.ts +0 -9
- package/types/index.d.ts +0 -11
- package/types/public.d.ts +0 -2
- package/types/utils/check-install.d.ts +0 -3
- package/types/utils/upload.d.ts +0 -5
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { IFonts } from '@zeedhi/zd-richtext-common';
|
|
2
|
+
export declare const fonts: IFonts[];
|
|
3
|
+
export declare const ZdFontFamilyProps: {
|
|
4
|
+
editor: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
attrs: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
fonts: {
|
|
13
|
+
type: ArrayConstructor;
|
|
14
|
+
default: () => IFonts[];
|
|
15
|
+
};
|
|
16
|
+
children: {
|
|
17
|
+
type: (StringConstructor | {
|
|
18
|
+
(arrayLength: number): import('@zeedhi/common').IComponentRender[];
|
|
19
|
+
(...items: import('@zeedhi/common').IComponentRender[]): import('@zeedhi/common').IComponentRender[];
|
|
20
|
+
new (arrayLength: number): import('@zeedhi/common').IComponentRender[];
|
|
21
|
+
new (...items: import('@zeedhi/common').IComponentRender[]): import('@zeedhi/common').IComponentRender[];
|
|
22
|
+
isArray(arg: any): arg is any[];
|
|
23
|
+
readonly prototype: any[];
|
|
24
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
25
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
26
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
27
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
28
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
29
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
30
|
+
})[];
|
|
31
|
+
default(): never[];
|
|
32
|
+
};
|
|
33
|
+
component: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
allowDuplicate: {
|
|
37
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
autofocus: {
|
|
41
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
cssClass: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
cssStyle: {
|
|
49
|
+
type: (StringConstructor | (() => import('vue').StyleValue))[];
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
dark: {
|
|
53
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
directives: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default(): {};
|
|
59
|
+
};
|
|
60
|
+
events: {
|
|
61
|
+
type: ObjectConstructor;
|
|
62
|
+
default(): {};
|
|
63
|
+
};
|
|
64
|
+
instanceObject: {
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
};
|
|
67
|
+
isVisible: {
|
|
68
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
keyMap: {
|
|
72
|
+
type: ObjectConstructor;
|
|
73
|
+
default(): {};
|
|
74
|
+
};
|
|
75
|
+
light: {
|
|
76
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
name: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
parent: {
|
|
84
|
+
type: ObjectConstructor;
|
|
85
|
+
};
|
|
86
|
+
tabStop: {
|
|
87
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
theme: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
declare const fontFamilyComponent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
95
|
+
editor: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
attrs: {
|
|
100
|
+
type: ObjectConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
fonts: {
|
|
104
|
+
type: ArrayConstructor;
|
|
105
|
+
default: () => IFonts[];
|
|
106
|
+
};
|
|
107
|
+
children: {
|
|
108
|
+
type: (StringConstructor | {
|
|
109
|
+
(arrayLength: number): import('@zeedhi/common').IComponentRender[];
|
|
110
|
+
(...items: import('@zeedhi/common').IComponentRender[]): import('@zeedhi/common').IComponentRender[];
|
|
111
|
+
new (arrayLength: number): import('@zeedhi/common').IComponentRender[];
|
|
112
|
+
new (...items: import('@zeedhi/common').IComponentRender[]): import('@zeedhi/common').IComponentRender[];
|
|
113
|
+
isArray(arg: any): arg is any[];
|
|
114
|
+
readonly prototype: any[];
|
|
115
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
116
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
117
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
118
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
119
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
120
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
121
|
+
})[];
|
|
122
|
+
default(): never[];
|
|
123
|
+
};
|
|
124
|
+
component: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
};
|
|
127
|
+
allowDuplicate: {
|
|
128
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
autofocus: {
|
|
132
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
cssClass: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
cssStyle: {
|
|
140
|
+
type: (StringConstructor | (() => import('vue').StyleValue))[];
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
dark: {
|
|
144
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
directives: {
|
|
148
|
+
type: ObjectConstructor;
|
|
149
|
+
default(): {};
|
|
150
|
+
};
|
|
151
|
+
events: {
|
|
152
|
+
type: ObjectConstructor;
|
|
153
|
+
default(): {};
|
|
154
|
+
};
|
|
155
|
+
instanceObject: {
|
|
156
|
+
type: ObjectConstructor;
|
|
157
|
+
};
|
|
158
|
+
isVisible: {
|
|
159
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
keyMap: {
|
|
163
|
+
type: ObjectConstructor;
|
|
164
|
+
default(): {};
|
|
165
|
+
};
|
|
166
|
+
light: {
|
|
167
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
name: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
required: true;
|
|
173
|
+
};
|
|
174
|
+
parent: {
|
|
175
|
+
type: ObjectConstructor;
|
|
176
|
+
};
|
|
177
|
+
tabStop: {
|
|
178
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
theme: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
};
|
|
184
|
+
}>, {
|
|
185
|
+
currentEditor: import('vue').Ref<Record<string, any>, Record<string, any>>;
|
|
186
|
+
setFontStyle: (editor: any, font: string) => void;
|
|
187
|
+
fonts: IFonts[];
|
|
188
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
189
|
+
editor: {
|
|
190
|
+
type: ObjectConstructor;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
attrs: {
|
|
194
|
+
type: ObjectConstructor;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
fonts: {
|
|
198
|
+
type: ArrayConstructor;
|
|
199
|
+
default: () => IFonts[];
|
|
200
|
+
};
|
|
201
|
+
children: {
|
|
202
|
+
type: (StringConstructor | {
|
|
203
|
+
(arrayLength: number): import('@zeedhi/common').IComponentRender[];
|
|
204
|
+
(...items: import('@zeedhi/common').IComponentRender[]): import('@zeedhi/common').IComponentRender[];
|
|
205
|
+
new (arrayLength: number): import('@zeedhi/common').IComponentRender[];
|
|
206
|
+
new (...items: import('@zeedhi/common').IComponentRender[]): import('@zeedhi/common').IComponentRender[];
|
|
207
|
+
isArray(arg: any): arg is any[];
|
|
208
|
+
readonly prototype: any[];
|
|
209
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
210
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
211
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
212
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
213
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
214
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
215
|
+
})[];
|
|
216
|
+
default(): never[];
|
|
217
|
+
};
|
|
218
|
+
component: {
|
|
219
|
+
type: StringConstructor;
|
|
220
|
+
};
|
|
221
|
+
allowDuplicate: {
|
|
222
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
autofocus: {
|
|
226
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
229
|
+
cssClass: {
|
|
230
|
+
type: StringConstructor;
|
|
231
|
+
default: string;
|
|
232
|
+
};
|
|
233
|
+
cssStyle: {
|
|
234
|
+
type: (StringConstructor | (() => import('vue').StyleValue))[];
|
|
235
|
+
default: string;
|
|
236
|
+
};
|
|
237
|
+
dark: {
|
|
238
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
directives: {
|
|
242
|
+
type: ObjectConstructor;
|
|
243
|
+
default(): {};
|
|
244
|
+
};
|
|
245
|
+
events: {
|
|
246
|
+
type: ObjectConstructor;
|
|
247
|
+
default(): {};
|
|
248
|
+
};
|
|
249
|
+
instanceObject: {
|
|
250
|
+
type: ObjectConstructor;
|
|
251
|
+
};
|
|
252
|
+
isVisible: {
|
|
253
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
254
|
+
default: boolean;
|
|
255
|
+
};
|
|
256
|
+
keyMap: {
|
|
257
|
+
type: ObjectConstructor;
|
|
258
|
+
default(): {};
|
|
259
|
+
};
|
|
260
|
+
light: {
|
|
261
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
name: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
required: true;
|
|
267
|
+
};
|
|
268
|
+
parent: {
|
|
269
|
+
type: ObjectConstructor;
|
|
270
|
+
};
|
|
271
|
+
tabStop: {
|
|
272
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
273
|
+
default: boolean;
|
|
274
|
+
};
|
|
275
|
+
theme: {
|
|
276
|
+
type: StringConstructor;
|
|
277
|
+
};
|
|
278
|
+
}>> & Readonly<{}>, {
|
|
279
|
+
editor: Record<string, any>;
|
|
280
|
+
attrs: Record<string, any>;
|
|
281
|
+
fonts: unknown[];
|
|
282
|
+
children: string | import('@zeedhi/common').IComponentRender[];
|
|
283
|
+
allowDuplicate: string | boolean;
|
|
284
|
+
autofocus: string | boolean;
|
|
285
|
+
cssClass: string;
|
|
286
|
+
cssStyle: import('vue').StyleValue;
|
|
287
|
+
dark: string | boolean;
|
|
288
|
+
directives: Record<string, any>;
|
|
289
|
+
events: Record<string, any>;
|
|
290
|
+
isVisible: string | boolean;
|
|
291
|
+
keyMap: Record<string, any>;
|
|
292
|
+
light: string | boolean;
|
|
293
|
+
tabStop: string | boolean;
|
|
294
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
295
|
+
export default fontFamilyComponent;
|
package/package.json
CHANGED
|
@@ -1,35 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/zd-richtext-vue",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Powered by Zeedhi",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
8
9
|
"publishConfig": {
|
|
9
10
|
"access": "public"
|
|
10
11
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
12
|
+
"module": "./dist/richtext-vue.es.js",
|
|
13
|
+
"types": "./dist/types/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/richtext-vue.es.js",
|
|
17
|
+
"types": "./dist/types/index.d.ts"
|
|
18
|
+
}
|
|
15
19
|
},
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"@tiptap/pm": "^2.1.12",
|
|
21
|
-
"@tiptap/starter-kit": "^2.1.12",
|
|
22
|
-
"@tiptap/vue-2": "^2.1.12",
|
|
23
|
-
"@zeedhi/zd-vuetify-pro-tiptap": "1.0.*",
|
|
24
|
-
"tiptap-extensions": "1.35.*",
|
|
25
|
-
"tiptap-vuetify": "2.24.*"
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite",
|
|
22
|
+
"build": "vue-tsc -b && vite build",
|
|
23
|
+
"preview": "vite preview"
|
|
26
24
|
},
|
|
27
25
|
"peerDependencies": {
|
|
28
|
-
"@zeedhi/
|
|
29
|
-
"@zeedhi/zd-richtext-common": "
|
|
30
|
-
"vue": "
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
"@zeedhi/common": "^3.0.0",
|
|
27
|
+
"@zeedhi/zd-richtext-common": "^3.0.0",
|
|
28
|
+
"vue": "^3.5.13"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^22.10.2",
|
|
32
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
33
|
+
"@vue/tsconfig": "^0.7.0",
|
|
34
|
+
"@zeedhi/common": "^3.0.0",
|
|
35
|
+
"@zeedhi/vuetify": "^3.0.0",
|
|
36
|
+
"@zeedhi/zd-richtext-common": "^3.0.0",
|
|
37
|
+
"sass": "^1.83.0",
|
|
38
|
+
"typescript": "~5.6.2",
|
|
39
|
+
"vite": "^5.4.0",
|
|
40
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
41
|
+
"vite-plugin-dts": "^4.3.0",
|
|
42
|
+
"vue": "^3.5.13",
|
|
43
|
+
"vue-tsc": "^2.1.10"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@tiptap/core": "^2.11.0",
|
|
47
|
+
"@tiptap/starter-kit": "^2.11.0",
|
|
48
|
+
"@tiptap/vue-3": "^2.11.0",
|
|
49
|
+
"vuetify-pro-tiptap": "^2.5.7"
|
|
33
50
|
},
|
|
34
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "bb3da940c3647ecd89c2d97b20a0bfef0cf74a25"
|
|
35
52
|
}
|