@worktile/theia 3.0.0-next.3 → 3.0.0-next.4

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.
@@ -6,9 +6,8 @@ import { ElementOptionsInfo } from './valid-children-types';
6
6
  import { Predicate } from '../utils/match';
7
7
  import { ToolbarOption } from './toolbar';
8
8
  import { CustomElementKinds } from '../custom-types';
9
- import { ElementKinds, FontSizes } from '../constants';
9
+ import { FontSizes } from '../constants';
10
10
  import { ThePlugin } from './plugins';
11
- import { AutoFormatRule } from './auto-format';
12
11
  import { OverrideByKey, NestedStructureByKey } from './utility';
13
12
  export interface TheEditor extends AngularEditor, HistoryEditor {
14
13
  [key: string]: any;
@@ -18,7 +17,6 @@ export interface TheEditor extends AngularEditor, HistoryEditor {
18
17
  pluginsByKey: OverrideByKey;
19
18
  nestedStructureByKey: NestedStructureByKey;
20
19
  extraElementOptions: ElementOptionsInfo[];
21
- extraAutoFormatRules: AutoFormatRule[];
22
20
  renderElement: (element: Element) => ViewType;
23
21
  renderLeaf: (text: Text) => ViewType;
24
22
  isContainer: (element: Element) => boolean;
@@ -86,7 +84,6 @@ export declare const THE_MODE_PROVIDER: {
86
84
  };
87
85
  };
88
86
  export interface TheOptions {
89
- allowContainerOperateTypes?: CustomElementKinds[];
90
87
  mode?: TheDataMode;
91
88
  readonly?: boolean;
92
89
  disabled?: boolean;
@@ -102,8 +99,6 @@ export interface TheOptions {
102
99
  toolbar?: ToolbarOption;
103
100
  disablePlugins?: string[];
104
101
  extraElementOptions?: ElementOptionsInfo[];
105
- extraAutoFormatRules?: AutoFormatRule[];
106
- noBindReadonlyPlugins?: (ElementKinds | string)[];
107
102
  }
108
103
  export declare type NodeMatch<T = Node> = Predicate<T>;
109
104
  export interface MatchOptions<T = Node> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "3.0.0-next.3",
3
+ "version": "3.0.0-next.4",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -1,2 +1,6 @@
1
+ import { AutoFormatRule } from '../../interfaces/auto-format';
2
+ export interface AutoFormatOptions {
3
+ autoFormatRules: AutoFormatRule[];
4
+ }
1
5
  export declare const withAutoFormat: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
2
- export declare const createAutoFormatPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
6
+ export declare const createAutoFormatPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, AutoFormatOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, AutoFormatOptions>;
@@ -1,7 +1,9 @@
1
1
  import { Editor } from 'slate';
2
2
  import { ElementKinds } from '../../constants';
3
+ import { CustomElementKinds } from '../../custom-types';
3
4
  export interface QuickInsertPluginOptions {
4
5
  hotKey?: string;
6
+ allowHotkeyInTypes?: CustomElementKinds[];
5
7
  }
6
8
  export declare const withQuickInsert: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
7
9
  export declare const createQuickInsertPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, QuickInsertPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, QuickInsertPluginOptions>;
@@ -11,6 +11,7 @@ export declare class TheTodoItemComponent extends TheBaseElementComponent<TodoIt
11
11
  checked: boolean;
12
12
  checkItemClass: boolean;
13
13
  get level(): number;
14
+ get editableWithReadonly(): boolean;
14
15
  constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, ctxService: TheContextService);
15
16
  ngOnInit(): void;
16
17
  onCheck(checked: boolean): boolean;
@@ -1,2 +1,5 @@
1
+ export interface TodoItemPluginOptions {
2
+ editableWithReadonly?: boolean;
3
+ }
1
4
  export declare const withTodoItem: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
2
- export declare const createTodoItemPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
5
+ export declare const createTodoItemPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, TodoItemPluginOptions>;