@worktile/theia 2.1.8 → 2.1.12

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "2.1.8",
3
+ "version": "2.1.12",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -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, fontSizeMark: number, isDefaultFontSize: boolean): boolean;
7
+ unsetFontSize(editor: Editor, size: FontSizes): void;
8
8
  isFontSizeActive(editor: Editor, size: FontSizes): boolean;
9
9
  isDisabled(editor: TheEditor): boolean;
10
10
  };
@@ -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}"] {
@@ -0,0 +1,2 @@
1
+ import { Editor, Path } from 'slate';
2
+ export declare const isInline: (editor: Editor, path?: Path) => boolean;