lakelib 0.0.2 → 0.0.4

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,2 +1,2 @@
1
- import type { BoxComponent } from '..';
1
+ import { BoxComponent } from '../types/box';
2
2
  export declare const codeBlockBox: BoxComponent;
@@ -1,9 +1,9 @@
1
- import { ToolbarMenuItem } from '../types/toolbar';
2
- export declare const headingMenuItems: ToolbarMenuItem[];
3
- export declare const listMenuItems: ToolbarMenuItem[];
4
- export declare const alignMenuItems: ToolbarMenuItem[];
5
- export declare const indentMenuItems: ToolbarMenuItem[];
6
- export declare const fontFamilyMenuItems: ToolbarMenuItem[];
7
- export declare const fontSizeMenuItems: ToolbarMenuItem[];
8
- export declare const moreStyleMenuItems: ToolbarMenuItem[];
9
- export declare const colorMenuItems: ToolbarMenuItem[];
1
+ import { DropdownMenuItem } from '../types/dropdown';
2
+ export declare const headingMenuItems: DropdownMenuItem[];
3
+ export declare const listMenuItems: DropdownMenuItem[];
4
+ export declare const alignMenuItems: DropdownMenuItem[];
5
+ export declare const indentMenuItems: DropdownMenuItem[];
6
+ export declare const fontFamilyMenuItems: DropdownMenuItem[];
7
+ export declare const fontSizeMenuItems: DropdownMenuItem[];
8
+ export declare const moreStyleMenuItems: DropdownMenuItem[];
9
+ export declare const colorMenuItems: DropdownMenuItem[];
@@ -1,6 +1,9 @@
1
1
  import './custom-properties.css';
2
2
  import './core.css';
3
3
  import './mark.css';
4
+ import './button.css';
5
+ import './dropdown.css';
6
+ import './popup.css';
4
7
  import './format-painter.css';
5
8
  import './heading.css';
6
9
  import './list.css';
@@ -10,6 +13,5 @@ import './box.css';
10
13
  import './hr.css';
11
14
  import './image.css';
12
15
  import './code-block.css';
13
- import './popup.css';
14
16
  import './link-popup.css';
15
17
  import './toolbar.css';
@@ -2,6 +2,7 @@ import EventEmitter from 'eventemitter3';
2
2
  import { NativeNode } from './types/native';
3
3
  import { UploadRequestMethod } from './types/request';
4
4
  import { Nodes } from './models/nodes';
5
+ import { Box } from './models/box';
5
6
  import { insertBox } from './operations/insert-box';
6
7
  import { removeBox } from './operations/remove-box';
7
8
  import { Selection } from './managers/selection';
@@ -15,6 +16,8 @@ type EditorConfig = {
15
16
  value?: string;
16
17
  readonly?: boolean;
17
18
  spellcheck?: boolean;
19
+ tabIndex?: number;
20
+ indentWithTab?: boolean;
18
21
  minChangeSize?: number;
19
22
  imageRequestMethod?: UploadRequestMethod;
20
23
  imageRequestAction?: string;
@@ -24,6 +27,8 @@ declare const defaultConfig: {
24
27
  value: string;
25
28
  readonly: boolean;
26
29
  spellcheck: boolean;
30
+ tabIndex: number;
31
+ indentWithTab: boolean;
27
32
  minChangeSize: number;
28
33
  imageRequestMethod: UploadRequestMethod;
29
34
  imageRequestAction: string;
@@ -34,11 +39,6 @@ export declare class Editor {
34
39
  static box: BoxManager;
35
40
  static plugin: Plugin;
36
41
  private unsavedInputData;
37
- private beforeunloadListener;
38
- private selectionchangeListener;
39
- private clickListener;
40
- private mouseoverListener;
41
- private resizeListener;
42
42
  root: Nodes;
43
43
  config: typeof defaultConfig;
44
44
  containerWrapper: Nodes;
@@ -54,9 +54,18 @@ export declare class Editor {
54
54
  keystroke: Keystroke;
55
55
  box: BoxManager;
56
56
  constructor(config: EditorConfig);
57
+ private beforeunloadListener;
58
+ private selectionchangeListener;
59
+ private clickListener;
60
+ private resizeListener;
61
+ private updateBoxSelectionStyle;
62
+ private emitStateChangeEvent;
63
+ private emitChangeEvent;
57
64
  private inputInBoxStrip;
58
65
  private bindInputEvents;
59
66
  private bindHistoryEvents;
67
+ private bindFocusEvents;
68
+ rectifyContent(): void;
60
69
  commitUnsavedInputData(): void;
61
70
  prepareOperation(): void;
62
71
  commitOperation(): void;
@@ -64,9 +73,8 @@ export declare class Editor {
64
73
  blur(): void;
65
74
  setValue(value: string): void;
66
75
  getValue(): string;
67
- insertBox(boxName: Parameters<typeof insertBox>[1], boxValue?: Parameters<typeof insertBox>[2]): ReturnType<typeof insertBox>;
76
+ insertBox(boxName: Parameters<typeof insertBox>[1], boxValue?: Parameters<typeof insertBox>[2]): Box;
68
77
  removeBox(): ReturnType<typeof removeBox>;
69
- innerWidth(): number;
70
78
  render(): void;
71
79
  unmount(): void;
72
80
  }
@@ -0,0 +1,70 @@
1
+ declare const _default: {
2
+ toolbar: {
3
+ undo: string;
4
+ redo: string;
5
+ selectAll: string;
6
+ paragraph: string;
7
+ blockQuote: string;
8
+ numberedList: string;
9
+ bulletedList: string;
10
+ checklist: string;
11
+ alignLeft: string;
12
+ alignCenter: string;
13
+ alignRight: string;
14
+ alignJustify: string;
15
+ increaseIndent: string;
16
+ decreaseIndent: string;
17
+ bold: string;
18
+ italic: string;
19
+ underline: string;
20
+ strikethrough: string;
21
+ superscript: string;
22
+ subscript: string;
23
+ code: string;
24
+ removeFormat: string;
25
+ formatPainter: string;
26
+ link: string;
27
+ hr: string;
28
+ codeBlock: string;
29
+ heading: string;
30
+ heading1: string;
31
+ heading2: string;
32
+ heading3: string;
33
+ heading4: string;
34
+ heading5: string;
35
+ heading6: string;
36
+ list: string;
37
+ align: string;
38
+ indent: string;
39
+ fontFamily: string;
40
+ fontSize: string;
41
+ moreStyle: string;
42
+ fontColor: string;
43
+ highlight: string;
44
+ image: string;
45
+ removeColor: string;
46
+ };
47
+ link: {
48
+ newLink: string;
49
+ url: string;
50
+ title: string;
51
+ copy: string;
52
+ open: string;
53
+ save: string;
54
+ unlink: string;
55
+ };
56
+ image: {
57
+ view: string;
58
+ remove: string;
59
+ previous: string;
60
+ next: string;
61
+ close: string;
62
+ loadingError: string;
63
+ zoomOut: string;
64
+ zoomIn: string;
65
+ };
66
+ codeBlock: {
67
+ langType: string;
68
+ };
69
+ };
70
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { TranslationFunctions } from './types';
2
+ export declare const locale: TranslationFunctions;
@@ -0,0 +1,70 @@
1
+ declare const _default: {
2
+ toolbar: {
3
+ undo: string;
4
+ redo: string;
5
+ selectAll: string;
6
+ paragraph: string;
7
+ blockQuote: string;
8
+ numberedList: string;
9
+ bulletedList: string;
10
+ checklist: string;
11
+ alignLeft: string;
12
+ alignCenter: string;
13
+ alignRight: string;
14
+ alignJustify: string;
15
+ increaseIndent: string;
16
+ decreaseIndent: string;
17
+ bold: string;
18
+ italic: string;
19
+ underline: string;
20
+ strikethrough: string;
21
+ superscript: string;
22
+ subscript: string;
23
+ code: string;
24
+ removeFormat: string;
25
+ formatPainter: string;
26
+ link: string;
27
+ hr: string;
28
+ codeBlock: string;
29
+ heading: string;
30
+ heading1: string;
31
+ heading2: string;
32
+ heading3: string;
33
+ heading4: string;
34
+ heading5: string;
35
+ heading6: string;
36
+ list: string;
37
+ align: string;
38
+ indent: string;
39
+ fontFamily: string;
40
+ fontSize: string;
41
+ moreStyle: string;
42
+ fontColor: string;
43
+ highlight: string;
44
+ image: string;
45
+ removeColor: string;
46
+ };
47
+ link: {
48
+ newLink: string;
49
+ url: string;
50
+ title: string;
51
+ copy: string;
52
+ open: string;
53
+ save: string;
54
+ unlink: string;
55
+ };
56
+ image: {
57
+ view: string;
58
+ remove: string;
59
+ previous: string;
60
+ next: string;
61
+ close: string;
62
+ loadingError: string;
63
+ zoomOut: string;
64
+ zoomIn: string;
65
+ };
66
+ codeBlock: {
67
+ langType: string;
68
+ };
69
+ };
70
+ export default _default;
@@ -0,0 +1,70 @@
1
+ declare const _default: {
2
+ toolbar: {
3
+ undo: string;
4
+ redo: string;
5
+ selectAll: string;
6
+ paragraph: string;
7
+ blockQuote: string;
8
+ numberedList: string;
9
+ bulletedList: string;
10
+ checklist: string;
11
+ alignLeft: string;
12
+ alignCenter: string;
13
+ alignRight: string;
14
+ alignJustify: string;
15
+ increaseIndent: string;
16
+ decreaseIndent: string;
17
+ bold: string;
18
+ italic: string;
19
+ underline: string;
20
+ strikethrough: string;
21
+ superscript: string;
22
+ subscript: string;
23
+ code: string;
24
+ removeFormat: string;
25
+ formatPainter: string;
26
+ link: string;
27
+ hr: string;
28
+ codeBlock: string;
29
+ heading: string;
30
+ heading1: string;
31
+ heading2: string;
32
+ heading3: string;
33
+ heading4: string;
34
+ heading5: string;
35
+ heading6: string;
36
+ list: string;
37
+ align: string;
38
+ indent: string;
39
+ fontFamily: string;
40
+ fontSize: string;
41
+ moreStyle: string;
42
+ fontColor: string;
43
+ highlight: string;
44
+ image: string;
45
+ removeColor: string;
46
+ };
47
+ link: {
48
+ newLink: string;
49
+ url: string;
50
+ title: string;
51
+ copy: string;
52
+ open: string;
53
+ save: string;
54
+ unlink: string;
55
+ };
56
+ image: {
57
+ view: string;
58
+ remove: string;
59
+ previous: string;
60
+ next: string;
61
+ close: string;
62
+ loadingError: string;
63
+ zoomOut: string;
64
+ zoomIn: string;
65
+ };
66
+ codeBlock: {
67
+ langType: string;
68
+ };
69
+ };
70
+ export default _default;