@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.
@@ -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.7",
3
+ "version": "2.1.11",
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
  };
@@ -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> implements OnInit, OnDestroy {
7
- elementRef: ElementRef;
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
  }
@@ -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;