@worktile/theia 3.0.0 → 3.0.3

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.
@@ -37,3 +37,6 @@ export declare type ThePlugin<T = {}, P = {}> = Required<TheiaPluginKey> & {
37
37
  plugins?: ThePlugin<T>[];
38
38
  };
39
39
  export declare type WithThePlugin<T = {}, P = {}> = WithRequired<ThePlugin<T, P>, 'options'>;
40
+ export interface OptionItem {
41
+ key?: string;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "3.0.0",
3
+ "version": "3.0.3",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -1,6 +1,6 @@
1
1
  import { AutoFormatRule } from '../../interfaces/auto-format';
2
2
  export interface AutoFormatOptions {
3
- autoFormatRules: AutoFormatRule[];
3
+ autoFormatRules?: AutoFormatRule[];
4
4
  }
5
5
  export declare const withAutoFormat: <T extends import("../../interfaces").TheEditor>(editor: T) => T;
6
6
  export declare const createAutoFormatPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, AutoFormatOptions>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, AutoFormatOptions>;
@@ -1 +1 @@
1
- export declare const internalPlugins: import("@worktile/theia").ThePlugin<{}, {}>[];
1
+ export declare const internalPlugins: () => import("@worktile/theia").ThePlugin<{}, {}>[];
@@ -1,2 +0,0 @@
1
- import { PluginKey, TheEditor, WithThePlugin } from '../../interfaces';
2
- export declare const getPluginByKey: <T = {}, P = {}>(editor?: TheEditor) => Record<string, WithThePlugin<T, P>>;
@@ -1,8 +0,0 @@
1
- export const getPluginByKey = (editor) => {
2
- const plugins = {};
3
- if (editor === null || editor === void 0 ? void 0 : editor.pluginsByKey) {
4
- return editor.pluginsByKey;
5
- }
6
- return plugins;
7
- };
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXBsdWdpbi1ieS1rZXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9zcmMvY29yZS91dGlscy9nZXQtcGx1Z2luLWJ5LWtleS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxjQUFjLEdBQUcsQ0FBaUIsTUFBa0IsRUFBMEMsRUFBRTtJQUN6RyxNQUFNLE9BQU8sR0FBRyxFQUFFLENBQUM7SUFFbkIsSUFBSSxNQUFNLGFBQU4sTUFBTSx1QkFBTixNQUFNLENBQUUsWUFBWSxFQUFFO1FBQ3RCLE9BQU8sTUFBTSxDQUFDLFlBQXNELENBQUM7S0FDeEU7SUFFRCxPQUFPLE9BQU8sQ0FBQztBQUNuQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQbHVnaW5LZXksIFRoZUVkaXRvciwgV2l0aFRoZVBsdWdpbiB9IGZyb20gJy4uLy4uL2ludGVyZmFjZXMnO1xuXG5leHBvcnQgY29uc3QgZ2V0UGx1Z2luQnlLZXkgPSA8VCA9IHt9LCBQID0ge30+KGVkaXRvcj86IFRoZUVkaXRvcik6IFJlY29yZDxQbHVnaW5LZXksIFdpdGhUaGVQbHVnaW48VCwgUD4+ID0+IHtcbiAgICBjb25zdCBwbHVnaW5zID0ge307XG5cbiAgICBpZiAoZWRpdG9yPy5wbHVnaW5zQnlLZXkpIHtcbiAgICAgICAgcmV0dXJuIGVkaXRvci5wbHVnaW5zQnlLZXkgYXMgUmVjb3JkPFBsdWdpbktleSwgV2l0aFRoZVBsdWdpbjxULCBQPj47XG4gICAgfVxuXG4gICAgcmV0dXJuIHBsdWdpbnM7XG59O1xuIl19