@worktile/theia 2.1.7 → 2.1.11
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/bundles/worktile-theia.umd.js +101 -41
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/editor.component.d.ts +1 -0
- package/editor.module.d.ts +2 -2
- package/esm2015/components/toolbar/toolbar.component.js +1 -1
- package/esm2015/editor.component.js +10 -4
- package/esm2015/interfaces/editor.js +1 -1
- package/esm2015/plugins/align/align.editor.js +2 -2
- package/esm2015/plugins/code/code.component.js +2 -2
- package/esm2015/plugins/common/move-selection.plugin.js +48 -3
- package/esm2015/plugins/font-size/font-size.editor.js +11 -14
- package/esm2015/plugins/image/image.component.js +4 -3
- package/esm2015/plugins/inline-code/inline-code.component.js +14 -15
- package/esm2015/plugins/inline-code/inline-code.editor.js +7 -3
- package/esm2015/plugins/inline-code/inline-code.plugin.js +2 -2
- package/esm2015/plugins/link/link.component.js +13 -3
- package/esm2015/utils/is-inline.js +10 -0
- package/fesm2015/worktile-theia.js +110 -40
- package/fesm2015/worktile-theia.js.map +1 -1
- package/interfaces/editor.d.ts +1 -0
- package/package.json +1 -1
- package/plugins/font-size/font-size.editor.d.ts +1 -1
- package/plugins/inline-code/inline-code.component.d.ts +2 -7
- package/plugins/inline-code/inline-code.editor.d.ts +2 -2
- package/plugins/link/link.component.d.ts +1 -0
- package/styles/editor.scss +11 -0
- package/utils/is-inline.d.ts +2 -0
package/interfaces/editor.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export interface TheOptions {
|
|
|
70
70
|
autoFocus?: boolean;
|
|
71
71
|
placeholder?: string;
|
|
72
72
|
placeholderDecorate?: (editor: Editor) => SlatePlaceholder[];
|
|
73
|
+
inlineToobarVisible?: boolean;
|
|
73
74
|
quickInsertVisible?: boolean;
|
|
74
75
|
scrollContainer?: string;
|
|
75
76
|
maxHeight?: number;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { FontSizes } from '../../constants/node-types';
|
|
|
4
4
|
export declare const FontSizeEditor: {
|
|
5
5
|
setFontSize(editor: TheEditor, size: FontSizes): void;
|
|
6
6
|
setFontSizeMark(editor: Editor, size: FontSizes): void;
|
|
7
|
-
unsetFontSize(editor: Editor, size: FontSizes
|
|
7
|
+
unsetFontSize(editor: Editor, size: FontSizes): void;
|
|
8
8
|
isFontSizeActive(editor: Editor, size: FontSizes): boolean;
|
|
9
9
|
isDisabled(editor: TheEditor): boolean;
|
|
10
10
|
};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
1
|
import { Editor } from 'slate';
|
|
3
2
|
import { InlineCodeElement } from '../../custom-types';
|
|
4
3
|
import { TheBaseElementComponent } from '../../interfaces';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TheInlineCodeComponent extends TheBaseElementComponent<InlineCodeElement, Editor>
|
|
7
|
-
|
|
8
|
-
cdr: ChangeDetectorRef;
|
|
9
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
ngOnDestroy(): void;
|
|
5
|
+
export declare class TheInlineCodeComponent extends TheBaseElementComponent<InlineCodeElement, Editor> {
|
|
6
|
+
inlineChromiumBugfix: string;
|
|
12
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheInlineCodeComponent, never>;
|
|
13
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<TheInlineCodeComponent, "span[theInlineCode]", never, {}, {}, never, never>;
|
|
14
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
1
|
+
import { Editor, Path } from 'slate';
|
|
2
2
|
export declare const InlineCodeEditor: {
|
|
3
3
|
toggleInlineCode(editor: any, text?: string): void;
|
|
4
4
|
wrapInlineCode(editor: Editor, text?: string): void;
|
|
5
5
|
unwrapInlineCode(editor: Editor): void;
|
|
6
|
-
isInlineCodeActive(editor: Editor): boolean;
|
|
6
|
+
isInlineCodeActive(editor: Editor, path?: Path): boolean;
|
|
7
7
|
};
|
|
@@ -35,6 +35,7 @@ export declare class TheBaseLinkComponent extends TheBaseElementComponent<LinkEl
|
|
|
35
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<TheBaseLinkComponent, "[TheBaseLinkComponent]", never, {}, {}, never, never>;
|
|
36
36
|
}
|
|
37
37
|
export declare class TheLinkComponent extends TheBaseLinkComponent {
|
|
38
|
+
inlineChromiumBugfix: string;
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheLinkComponent, never>;
|
|
39
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<TheLinkComponent, "span[theLink]", never, {}, {}, never, never>;
|
|
40
41
|
}
|
package/styles/editor.scss
CHANGED
|
@@ -127,6 +127,17 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
127
127
|
color: $gray-700;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
.leaf-with-placeholder {
|
|
131
|
+
background-color: $white;
|
|
132
|
+
}
|
|
133
|
+
[data-slate-placeholder] {
|
|
134
|
+
color: initial;
|
|
135
|
+
font-weight: initial;
|
|
136
|
+
font-style: initial;
|
|
137
|
+
text-decoration: initial;
|
|
138
|
+
background-color: initial;
|
|
139
|
+
}
|
|
140
|
+
|
|
130
141
|
// list: fontSize, li marginLeft, multiDigit li marginLeft
|
|
131
142
|
@each $size, $liMl, $liMultiDigitMl in (12, 13, 14, 15, 16, 18, 20, (24 null 35px), (28 null 42px), (32 33px 50px), (40 40px 62px), (48 50px 78px)) {
|
|
132
143
|
[the-font-size="#{$size}"] {
|