@atlaskit/editor-plugin-extension 0.2.1 → 0.2.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.
- package/CHANGELOG.md +13 -1
- package/README.md +1 -1
- package/dist/types/types.d.ts +6 -4
- package/dist/types-ts4.5/types.d.ts +6 -4
- package/package.json +2 -2
- package/report.api.md +5 -0
- package/tmp/api-report-tmp.d.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42869](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42869) [`e49e90d2093`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e49e90d2093) - Decoupling internal analytics plugin from extensions and macro plugins.
|
|
8
|
+
|
|
9
|
+
## 0.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 0.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -10,4 +22,4 @@
|
|
|
10
22
|
|
|
11
23
|
### Minor Changes
|
|
12
24
|
|
|
13
|
-
- [`da629b62ef9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da629b62ef9) - ED-19617 Refactor actions to remove createExtenstionAPI and call it instead during initialisation
|
|
25
|
+
- [#39743](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39743) [`da629b62ef9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da629b62ef9) - ED-19617 Refactor actions to remove createExtenstionAPI and call it instead during initialisation
|
package/README.md
CHANGED
|
@@ -27,4 +27,4 @@ Please see [Atlaskit - Editor plugin extension](https://atlaskit.atlassian.com/p
|
|
|
27
27
|
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
28
28
|
## License
|
|
29
29
|
---
|
|
30
|
-
Please see [Atlassian Frontend - License](https://
|
|
30
|
+
Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
import type { ExtensionAPI, ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type { EditorAppearance, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type {
|
|
4
|
-
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
5
|
-
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
3
|
+
import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
+
import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
6
6
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
7
7
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
8
8
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
@@ -10,6 +10,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
10
10
|
interface CreateExtensionAPIOptions {
|
|
11
11
|
editorView: EditorView;
|
|
12
12
|
applyChange: ApplyChangeHandler | undefined;
|
|
13
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
13
14
|
editInLegacyMacroBrowser?: () => void;
|
|
14
15
|
}
|
|
15
16
|
export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
|
|
@@ -22,6 +23,7 @@ export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions
|
|
|
22
23
|
export type ExtensionPlugin = NextEditorPlugin<'extension', {
|
|
23
24
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
24
25
|
dependencies: [
|
|
26
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
25
27
|
FeatureFlagsPlugin,
|
|
26
28
|
WidthPlugin,
|
|
27
29
|
DecorationsPlugin,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
import type { ExtensionAPI, ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type { EditorAppearance, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type {
|
|
4
|
-
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
5
|
-
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
3
|
+
import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
+
import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
6
6
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
7
7
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
8
8
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
@@ -10,6 +10,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
10
10
|
interface CreateExtensionAPIOptions {
|
|
11
11
|
editorView: EditorView;
|
|
12
12
|
applyChange: ApplyChangeHandler | undefined;
|
|
13
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
13
14
|
editInLegacyMacroBrowser?: () => void;
|
|
14
15
|
}
|
|
15
16
|
export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
|
|
@@ -22,6 +23,7 @@ export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions
|
|
|
22
23
|
export type ExtensionPlugin = NextEditorPlugin<'extension', {
|
|
23
24
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
24
25
|
dependencies: [
|
|
26
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
25
27
|
FeatureFlagsPlugin,
|
|
26
28
|
WidthPlugin,
|
|
27
29
|
DecorationsPlugin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
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": "^
|
|
26
|
+
"@atlaskit/editor-common": "^76.18.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
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
<!--SECTION START: Main Entry Types-->
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
18
19
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
19
20
|
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
20
21
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
22
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
21
23
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
22
24
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
23
25
|
import type { ExtensionAPI } from '@atlaskit/editor-common/extensions';
|
|
@@ -40,6 +42,8 @@ interface CreateExtensionAPIOptions {
|
|
|
40
42
|
// (undocumented)
|
|
41
43
|
editInLegacyMacroBrowser?: () => void;
|
|
42
44
|
// (undocumented)
|
|
45
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
46
|
+
// (undocumented)
|
|
43
47
|
editorView: EditorView;
|
|
44
48
|
}
|
|
45
49
|
|
|
@@ -49,6 +53,7 @@ export type ExtensionPlugin = NextEditorPlugin<
|
|
|
49
53
|
{
|
|
50
54
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
51
55
|
dependencies: [
|
|
56
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
52
57
|
FeatureFlagsPlugin,
|
|
53
58
|
WidthPlugin,
|
|
54
59
|
DecorationsPlugin,
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
7
8
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
8
9
|
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
9
10
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
11
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
10
12
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
11
13
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
12
14
|
import type { ExtensionAPI } from '@atlaskit/editor-common/extensions';
|
|
@@ -27,6 +29,8 @@ interface CreateExtensionAPIOptions {
|
|
|
27
29
|
// (undocumented)
|
|
28
30
|
editInLegacyMacroBrowser?: () => void;
|
|
29
31
|
// (undocumented)
|
|
32
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
33
|
+
// (undocumented)
|
|
30
34
|
editorView: EditorView;
|
|
31
35
|
}
|
|
32
36
|
|
|
@@ -34,6 +38,7 @@ interface CreateExtensionAPIOptions {
|
|
|
34
38
|
export type ExtensionPlugin = NextEditorPlugin<'extension', {
|
|
35
39
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
36
40
|
dependencies: [
|
|
41
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
37
42
|
FeatureFlagsPlugin,
|
|
38
43
|
WidthPlugin,
|
|
39
44
|
DecorationsPlugin,
|