@atlaskit/editor-plugin-extension 0.1.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1 +1,13 @@
1
1
  # @atlaskit/editor-plugin-extension
2
+
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`da629b62ef9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da629b62ef9) - ED-19617 Refactor actions to remove createExtenstionAPI and call it instead during initialisation
@@ -1 +1 @@
1
- export type { CreateExtensionAPI, ExtensionPlugin } from './types';
1
+ export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, } from './types';
@@ -13,7 +13,7 @@ interface CreateExtensionAPIOptions {
13
13
  editInLegacyMacroBrowser?: () => void;
14
14
  }
15
15
  export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
16
- interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
16
+ export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
17
17
  allowAutoSave?: boolean;
18
18
  breakoutEnabled?: boolean;
19
19
  extensionHandlers?: ExtensionHandlers;
@@ -28,7 +28,7 @@ export type ExtensionPlugin = NextEditorPlugin<'extension', {
28
28
  OptionalPlugin<ContextPanelPlugin>
29
29
  ];
30
30
  actions: {
31
- createExtensionAPI: CreateExtensionAPI;
31
+ api: () => ExtensionAPI;
32
32
  };
33
33
  }>;
34
34
  export {};
@@ -1 +1 @@
1
- export type { CreateExtensionAPI, ExtensionPlugin } from './types';
1
+ export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, } from './types';
@@ -13,7 +13,7 @@ interface CreateExtensionAPIOptions {
13
13
  editInLegacyMacroBrowser?: () => void;
14
14
  }
15
15
  export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
16
- interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
16
+ export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
17
17
  allowAutoSave?: boolean;
18
18
  breakoutEnabled?: boolean;
19
19
  extensionHandlers?: ExtensionHandlers;
@@ -28,7 +28,7 @@ export type ExtensionPlugin = NextEditorPlugin<'extension', {
28
28
  OptionalPlugin<ContextPanelPlugin>
29
29
  ];
30
30
  actions: {
31
- createExtensionAPI: CreateExtensionAPI;
31
+ api: () => ExtensionAPI;
32
32
  };
33
33
  }>;
34
34
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,7 +23,7 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^74.56.0",
26
+ "@atlaskit/editor-common": "^75.0.0",
27
27
  "@atlaskit/editor-plugin-context-panel": "^0.2.0",
28
28
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
29
29
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
package/report.api.md CHANGED
@@ -55,13 +55,14 @@ export type ExtensionPlugin = NextEditorPlugin<
55
55
  OptionalPlugin<ContextPanelPlugin>,
56
56
  ];
57
57
  actions: {
58
- createExtensionAPI: CreateExtensionAPI;
58
+ api: () => ExtensionAPI;
59
59
  };
60
60
  }
61
61
  >;
62
62
 
63
63
  // @public (undocumented)
64
- interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
64
+ export interface ExtensionPluginOptions
65
+ extends LongPressSelectionPluginOptions {
65
66
  // (undocumented)
66
67
  allowAutoSave?: boolean;
67
68
  // (undocumented)
@@ -40,12 +40,12 @@ export type ExtensionPlugin = NextEditorPlugin<'extension', {
40
40
  OptionalPlugin<ContextPanelPlugin>
41
41
  ];
42
42
  actions: {
43
- createExtensionAPI: CreateExtensionAPI;
43
+ api: () => ExtensionAPI;
44
44
  };
45
45
  }>;
46
46
 
47
47
  // @public (undocumented)
48
- interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
48
+ export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
49
49
  // (undocumented)
50
50
  allowAutoSave?: boolean;
51
51
  // (undocumented)