@ones-editor/editor 0.0.6-beta.5 → 0.0.6-beta.7

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.
@@ -68,10 +68,6 @@ import 'prismjs/components/prism-visual-basic';
68
68
  import 'prismjs/components/prism-wasm';
69
69
  import 'prismjs/components/prism-yaml';
70
70
  declare const SUPPORTED_LANGUAGES: {
71
- plain: {
72
- name: string;
73
- aliases: string[];
74
- };
75
71
  abap: {
76
72
  name: string;
77
73
  aliases: string[];
@@ -172,6 +168,10 @@ declare const SUPPORTED_LANGUAGES: {
172
168
  name: string;
173
169
  aliases: string[];
174
170
  };
171
+ markup: {
172
+ name: string;
173
+ aliases: string[];
174
+ };
175
175
  java: {
176
176
  name: string;
177
177
  aliases: string[];
@@ -220,10 +220,6 @@ declare const SUPPORTED_LANGUAGES: {
220
220
  name: string;
221
221
  aliases: string[];
222
222
  };
223
- markup: {
224
- name: string;
225
- aliases: string[];
226
- };
227
223
  matlab: {
228
224
  name: string;
229
225
  aliases: string[];
@@ -256,6 +252,10 @@ declare const SUPPORTED_LANGUAGES: {
256
252
  name: string;
257
253
  aliases: string[];
258
254
  };
255
+ plain: {
256
+ name: string;
257
+ aliases: string[];
258
+ };
259
259
  powershell: {
260
260
  name: string;
261
261
  aliases: string[];
@@ -34,3 +34,4 @@ export declare function getNextVisibleBlock(block: BlockElement): BlockElement |
34
34
  export declare function getBlockIndex(block: BlockElement): number;
35
35
  export declare function isInBlock(target: EventTarget | null): boolean;
36
36
  export declare function isInBlockTools(target: EventTarget | null): boolean;
37
+ export declare function isTitleBlock(block: BlockElement): boolean;
@@ -4,8 +4,6 @@ export declare class RootContainer {
4
4
  private editor;
5
5
  rootContainer: ContainerElement;
6
6
  resizeObserver: ResizeObserver;
7
- private isMouseDown;
8
- private bindEvent;
9
7
  constructor(editor: OnesEditor, rootContainer: ContainerElement);
10
8
  private bindEvents;
11
9
  private unbindEvents;
@@ -12,5 +12,6 @@ export default class DropIndicator {
12
12
  show(block: BlockElement, insertPos: DropInsertPos): void;
13
13
  hide(): void;
14
14
  private getIndicatorRect;
15
+ getViewRect(block: BlockElement): DOMRect;
15
16
  }
16
17
  export {};
@@ -3,6 +3,7 @@ export declare class HeadingBlockCollapseButton implements OnesEditorCustom {
3
3
  private editor;
4
4
  constructor(editor: OnesEditor);
5
5
  handleLoad: () => void;
6
+ handleReadonlyChanged: () => void;
6
7
  handleHoverBlock: (hoveringBlock: BlockElement | null, oldHoveringBlock: BlockElement | null) => void;
7
8
  handleClick: (editor: OnesEditor, event: MouseEvent) => void;
8
9
  showCollapseButtons(): void;
@@ -11,6 +11,6 @@ declare class EnforceWithDocumentTitleHandler implements OnesEditorInputHandler
11
11
  handleUpdateCompositionText(editor: OnesEditor): void;
12
12
  handleSelectionChange: (editor: OnesEditor) => void;
13
13
  private applyPlaceholder;
14
- private static isDocumentTitleBlock;
14
+ private isDocumentTitleBlock;
15
15
  }
16
16
  export default EnforceWithDocumentTitleHandler;
@@ -1,4 +1,5 @@
1
1
  export interface EnforceWithDocumentTitleHandlerOptions {
2
+ hideTitle?: boolean;
2
3
  headingLevel?: number;
3
4
  titlePlaceholder?: string;
4
5
  contentPlaceholder?: string | Element;
@@ -12,6 +12,5 @@ export type OnesEditorMentionUser = {
12
12
  email?: string;
13
13
  };
14
14
  export type MentionOptions = {
15
- enableFirstBlock?: boolean;
16
15
  queryUsers: (editor: OnesEditor, text: string) => Promise<OnesEditorMentionUser[]>;
17
16
  };
@@ -14,3 +14,4 @@ export declare function reCalculateImageDims(dims: (ImageDimWithBuffer | undefin
14
14
  height: number;
15
15
  buffer: ArrayBuffer;
16
16
  }[];
17
+ export declare function calcImagesSize(dims: (ImageDimWithBuffer | undefined)[], maxWidth: number, data?: unknown): void;
@@ -2,5 +2,4 @@ import TocEmbed from './toc-embed';
2
2
  import './locale';
3
3
  export * from './toc-provider';
4
4
  export * from './heading-scroll';
5
- export * from './types';
6
5
  export { TocEmbed };