@clepit/core 0.7.0-beta.473 → 0.7.0-beta.474
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/core/managers/event.d.ts +3 -0
- package/dist/core/toolbars/inline/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/tools/block/alert/index.d.ts +0 -1
- package/dist/tools/block/audio/index.d.ts +0 -1
- package/dist/tools/block/checklist/index.d.ts +0 -1
- package/dist/tools/block/code/index.d.ts +0 -1
- package/dist/tools/block/collapsible/index.d.ts +0 -1
- package/dist/tools/block/collection/index.d.ts +0 -1
- package/dist/tools/block/columns/index.d.ts +0 -1
- package/dist/tools/block/date/index.d.ts +0 -1
- package/dist/tools/block/delimiter/index.d.ts +0 -1
- package/dist/tools/block/doc-card/index.d.ts +0 -1
- package/dist/tools/block/embed/index.d.ts +0 -1
- package/dist/tools/block/file/index.d.ts +0 -1
- package/dist/tools/block/glance/index.d.ts +0 -1
- package/dist/tools/block/image/index.d.ts +0 -1
- package/dist/tools/block/issues/index.d.ts +0 -1
- package/dist/tools/block/list/index.d.ts +0 -1
- package/dist/tools/block/openapi/index.d.ts +0 -1
- package/dist/tools/block/quote/index.d.ts +0 -1
- package/dist/tools/block/sketch/index.d.ts +0 -1
- package/dist/tools/block/table/index.d.ts +0 -1
- package/dist/tools/block/toc/index.d.ts +0 -1
- package/dist/tools/block/typeset/index.d.ts +0 -2
- package/dist/tools/block/updates/index.d.ts +0 -1
- package/dist/tools/block/video/index.d.ts +0 -1
- package/dist/tools/inline/marker/index.d.ts +0 -1
- package/dist/tools/inline/strikethrough/index.d.ts +0 -1
- package/dist/tools/inline/tooltip/index.d.ts +0 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/platform.d.ts +0 -2
- package/package.json +1 -1
|
@@ -2,6 +2,9 @@ import { EditorInstance } from '../../types';
|
|
|
2
2
|
export declare class EventManager {
|
|
3
3
|
static addListeners(containerId: string): void;
|
|
4
4
|
static removeListeners(containerId: string): void;
|
|
5
|
+
private static handleShortcut;
|
|
6
|
+
private static toggleInlineTool;
|
|
7
|
+
private static setTextBlockStyle;
|
|
5
8
|
static getInstanceAndTargetFromRange(range: Range): {
|
|
6
9
|
target: HTMLElement;
|
|
7
10
|
instance: EditorInstance;
|
|
@@ -12,6 +12,7 @@ import { UnderlineInput } from '../../../tools/inline/underline';
|
|
|
12
12
|
*****************************************************************************************************************************************************/
|
|
13
13
|
declare const getTools: () => (typeof BoldInput | typeof InlineCodeInput | typeof ItalicInput | typeof LinkInput | typeof MarkerInput | typeof StatusInput | typeof StrikethroughInput | typeof TooltipInput | typeof UnderlineInput)[];
|
|
14
14
|
type InlineTool = ReturnType<typeof getTools>[number];
|
|
15
|
+
export declare const INLINE_SHORTCUT_KEYS: Readonly<Record<string, string>>;
|
|
15
16
|
/*****************************************************************************************************************************************************
|
|
16
17
|
* Class for the inline toolbar
|
|
17
18
|
*****************************************************************************************************************************************************/
|
|
@@ -34,7 +35,8 @@ export declare class InlineToolbar {
|
|
|
34
35
|
*/
|
|
35
36
|
static addRewriteButton(containerId: string, range: Range): void;
|
|
36
37
|
static addButton(containerId: string, tool: InlineTool, range: Range, parent?: HTMLElement): void;
|
|
37
|
-
|
|
38
|
+
static toolForKey(containerId: string, blockType: string | null, key: string): InlineTool | undefined;
|
|
39
|
+
static toggleTool(containerId: string, tool: InlineTool, range: Range): boolean | null;
|
|
38
40
|
private static createTooltip;
|
|
39
41
|
static clearButtons(containerId: string): void;
|
|
40
42
|
static show(containerId: string, x: number, y: number): void;
|