vdc-editor 0.1.268 → 0.1.270

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.
@@ -1,11 +1,11 @@
1
- import { GeneralOptions } from '../../type';
1
+ import { FontFamilyItem, GeneralOptions } from '../../type';
2
2
  import { FontFamilyOptions as TiptapFontFamilyOptions } from '@tiptap/extension-font-family';
3
3
 
4
4
  export interface FontFamilyOptions extends TiptapFontFamilyOptions, GeneralOptions<FontFamilyOptions> {
5
- fontFamilyMap: Array<{
6
- label: string;
7
- value: string;
8
- }>;
5
+ /**
6
+ * Ensure these fonts are loaded/supported globally by your application CSS.
7
+ */
8
+ fontFamilyList: FontFamilyItem[];
9
9
  }
10
10
  declare module '@tiptap/core' {
11
11
  interface Commands<ReturnType> {
package/lib/src/type.d.ts CHANGED
@@ -257,6 +257,16 @@ export interface MinChar {
257
257
  superPreview?: number;
258
258
  content?: number;
259
259
  }
260
+ /**
261
+ * label: display name
262
+ * value: font family value
263
+ * enabled: show/hide this font family
264
+ */
265
+ export interface FontFamilyItem {
266
+ label: string;
267
+ value: string;
268
+ enabled?: boolean;
269
+ }
260
270
  export type EditorEvents = CoreEditorEvents;
261
271
  export interface EditorProps {
262
272
  /**
@@ -1,4 +1,4 @@
1
- import { A as i, r as t, q as o, s as r, E as d, p, t as u, p as E, B as l, v as n, F as S, y as m, u as w, w as x, z as f, x as g } from "./index-CMiPd0wD.mjs";
1
+ import { A as i, r as t, q as o, s as r, E as d, p, t as u, p as E, B as l, v as n, F as S, y as m, u as w, w as x, z as f, x as g } from "./index-B1vuU6rP.mjs";
2
2
  import "@vueuse/core";
3
3
  export {
4
4
  i as ArticleCompareEditor,