lakelib 0.1.5 → 0.1.6
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/README.md +1 -1
- package/dist/lake.css +9 -3
- package/dist/lake.min.js +15 -15
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.css +9 -3
- package/lib/lake.js +72 -42
- package/lib/lake.js.map +1 -1
- package/lib/types/editor.d.ts +3 -0
- package/lib/types/ui/link-popup.d.ts +5 -3
- package/lib/types/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/lib/types/utils/for-each.d.ts +0 -5
package/lib/types/editor.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ type Config = {
|
|
|
17
17
|
readonly: boolean;
|
|
18
18
|
spellcheck: boolean;
|
|
19
19
|
tabIndex: number;
|
|
20
|
+
placeholder: string;
|
|
20
21
|
indentWithTab: boolean;
|
|
21
22
|
lang: string;
|
|
22
23
|
minChangeSize: number;
|
|
@@ -29,6 +30,7 @@ type EditorConfig = {
|
|
|
29
30
|
readonly?: boolean;
|
|
30
31
|
spellcheck?: boolean;
|
|
31
32
|
tabIndex?: number;
|
|
33
|
+
placeholder?: string;
|
|
32
34
|
indentWithTab?: boolean;
|
|
33
35
|
lang?: string;
|
|
34
36
|
minChangeSize?: number;
|
|
@@ -63,6 +65,7 @@ export declare class Editor {
|
|
|
63
65
|
private updateBoxSelectionStyle;
|
|
64
66
|
private emitStateChangeEvent;
|
|
65
67
|
private emitChangeEvent;
|
|
68
|
+
private togglePlaceholderClass;
|
|
66
69
|
private inputInBoxStrip;
|
|
67
70
|
private bindInputEvents;
|
|
68
71
|
private bindHistoryEvents;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import EventEmitter from 'eventemitter3';
|
|
2
1
|
import { TranslationFunctions } from '../i18n/types';
|
|
3
2
|
import { Nodes } from '../models/nodes';
|
|
4
3
|
type LinkPopupConfig = {
|
|
5
4
|
root: Nodes;
|
|
6
5
|
locale?: TranslationFunctions;
|
|
6
|
+
onCopy?: (error: boolean) => void;
|
|
7
|
+
onSave?: (node: Nodes) => void;
|
|
8
|
+
onRemove?: (node: Nodes) => void;
|
|
7
9
|
};
|
|
8
10
|
export declare class LinkPopup {
|
|
9
|
-
private
|
|
11
|
+
private config;
|
|
10
12
|
private root;
|
|
11
13
|
private locale;
|
|
14
|
+
private linkNode;
|
|
12
15
|
container: Nodes;
|
|
13
|
-
event: EventEmitter;
|
|
14
16
|
constructor(config: LinkPopupConfig);
|
|
15
17
|
private writeClipboardText;
|
|
16
18
|
private appendCopyButton;
|
|
@@ -8,7 +8,6 @@ export * from './parse-style';
|
|
|
8
8
|
export * from './normalize-value';
|
|
9
9
|
export * from './denormalize-value';
|
|
10
10
|
export * from './modifier-text';
|
|
11
|
-
export * from './for-each';
|
|
12
11
|
export * from './get-css';
|
|
13
12
|
export * from './to-node-list';
|
|
14
13
|
export * from './query';
|
package/package.json
CHANGED