@ones-editor/editor 0.0.3-beta.121 → 0.0.3-beta.122

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.
@@ -8,6 +8,7 @@ export interface ParagraphBlockAttribute extends DocBlock {
8
8
  ordered?: boolean;
9
9
  }
10
10
  export type TextStyleItemOptions = {
11
+ fromEmbed?: boolean;
11
12
  onAfterStyleItemClick?: () => void;
12
13
  };
13
14
  export default class TextStyleItem implements BlockMenuItem {
@@ -135,6 +135,7 @@ export interface CommandItem {
135
135
  childrenOffset?: [number, number];
136
136
  subText?: string;
137
137
  defaultCheckedChildren?: string[];
138
+ ellipsisTooltip?: string;
138
139
  disableTooltip?: boolean;
139
140
  disableReason?: string;
140
141
  setCloseable?: (closeable: Closeable) => void;
@@ -29,6 +29,7 @@ export * from './auto-scroll';
29
29
  export * from './date';
30
30
  export * from './number';
31
31
  export * from './string';
32
+ export * from './overflow-text';
32
33
  export { genId };
33
34
  export { assert };
34
35
  export { SimpleCache };
@@ -0,0 +1 @@
1
+ export declare function overflowText(text: string, fontSize: number, maxwidth: number): string | null;