@worktile/theia 1.2.12 → 1.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -1,19 +1,20 @@
1
1
  import { ElementRef, Renderer2 } from '@angular/core';
2
2
  import { Editor } from 'slate';
3
- import { TheOptions } from '../../interfaces';
3
+ import { TheContextService } from '../../services/context.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ThePlaceholderComponent {
6
6
  private renderer;
7
7
  private elementRef;
8
+ private contextService;
8
9
  editor: Editor;
9
- options: TheOptions;
10
+ placeholder: string;
10
11
  isHide: boolean;
11
12
  handleCompositionStart(): void;
12
13
  handleCompositionEnd(event: any): void;
13
- constructor(renderer: Renderer2, elementRef: ElementRef);
14
+ constructor(renderer: Renderer2, elementRef: ElementRef, contextService: TheContextService);
14
15
  checkStatus(): void;
15
16
  private updatePosition;
16
17
  private hide;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ThePlaceholderComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ThePlaceholderComponent, "div[thePlaceholder]", never, { "editor": "editor"; "options": "options"; }, {}, never, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThePlaceholderComponent, "div[thePlaceholder]", never, { "editor": "editor"; "placeholder": "placeholder"; }, {}, never, never>;
19
20
  }
@@ -0,0 +1,2 @@
1
+ import { TableElement } from "../../../custom-types";
2
+ export declare const normalizeTable: (table: TableElement) => TableElement;
@@ -27,6 +27,8 @@ export declare class TheContextService {
27
27
  constructor(ngZone: NgZone);
28
28
  initialize(options: TheContextOptions): void;
29
29
  getOptions(): TheContextOptions;
30
+ getEditableElement(): Element;
31
+ getFirstElementChild(): HTMLElement;
30
32
  setUploadFileList(file: {
31
33
  url: string;
32
34
  file: File;
@@ -12,9 +12,9 @@ $thy-icon-nav-link-margin-right: 5px;
12
12
 
13
13
  .the-editable-container {
14
14
  padding: 0;
15
+ margin: 0;
15
16
 
16
17
  &.max-height {
17
- padding: 0;
18
18
  overflow-y: auto;
19
19
  overflow-x: hidden;
20
20
  }
@@ -54,10 +54,10 @@ $thy-icon-nav-link-margin-right: 5px;
54
54
 
55
55
  .the-editable-container {
56
56
  position: relative;
57
+ padding-top: 41px;
58
+ margin-top: -41px;
57
59
 
58
60
  &.max-height {
59
- padding-top: 41px;
60
- margin-top: -41px;
61
61
  overflow-y: scroll;
62
62
  }
63
63
  }