@ones-editor/editor 0.0.6 → 0.0.7-beta.2
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/@ones-editor/core/src/core/blocks/common/block-dom.d.ts +1 -0
- package/@ones-editor/core/src/core/containers/root-container.d.ts +2 -0
- package/@ones-editor/core/src/utils/abbreviation.d.ts +1 -1
- package/@ones-editor/input-handlers/src/enforce-with-document-title/enforce-with-document-title-handler.d.ts +1 -1
- package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +1 -0
- package/@ones-editor/mention/src/types.d.ts +0 -1
- package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +1 -0
- package/@ones-editor/table-block/src/table-block/cell-menu/table-cell-dom.d.ts +0 -1
- package/@ones-editor/toc/src/index.d.ts +0 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +0 -1
- package/@ones-editor/ui-base/src/icons/index.d.ts +14 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +531 -369
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/@ones-editor/toc/src/types.d.ts +0 -3
|
@@ -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,6 +4,8 @@ export declare class RootContainer {
|
|
|
4
4
|
private editor;
|
|
5
5
|
rootContainer: ContainerElement;
|
|
6
6
|
resizeObserver: ResizeObserver;
|
|
7
|
+
private isMouseDown;
|
|
8
|
+
private bindEvent;
|
|
7
9
|
constructor(editor: OnesEditor, rootContainer: ContainerElement);
|
|
8
10
|
private bindEvents;
|
|
9
11
|
private unbindEvents;
|
|
@@ -12,7 +12,7 @@ export declare function hashCode(str: string): number;
|
|
|
12
12
|
*/
|
|
13
13
|
export declare function abbreviation(name: string, maxLength?: number): string;
|
|
14
14
|
declare enum EColor {
|
|
15
|
-
blue = "#
|
|
15
|
+
blue = "#0064FF",
|
|
16
16
|
cyan = "#34AFDE",
|
|
17
17
|
teal = "#2CB2AE",
|
|
18
18
|
green = "#24B47E",
|
|
@@ -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
|
|
14
|
+
private isDocumentTitleBlock;
|
|
15
15
|
}
|
|
16
16
|
export default EnforceWithDocumentTitleHandler;
|
|
@@ -5,4 +5,3 @@ export declare function updateBarsDangerStatus(editor: OnesEditor, tableBlock: B
|
|
|
5
5
|
export declare function updateCellsDangerStatus(editor: OnesEditor, tableBlock: BlockElement, isDanger?: boolean, isCol?: boolean): void;
|
|
6
6
|
export declare function updateCellBarsDangerStatus(editor: OnesEditor, tableBlock: BlockElement, isDanger?: boolean, isCol?: boolean): void;
|
|
7
7
|
export declare function createEntireRowAndColumnRange(editor: OnesEditor, tableBlock: BlockElement, isCol: boolean): import("@ones-editor/core").EditorSimpleSelectionRange | import("@ones-editor/core").EditorComplexSelectionRange;
|
|
8
|
-
export declare function getHandlerContainers(editor: OnesEditor, block: BlockElement): import("@ones-editor/core").ContainerElement[];
|