@atlaskit/editor-plugin-extension 0.4.0 → 0.4.2

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,5 +1,37 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646) [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make feature flags plugin optional in all plugins including:
14
+
15
+ - analytics
16
+ - base
17
+ - card
18
+ - code-block
19
+ - expand
20
+ - extension
21
+ - floating-toolbar
22
+ - hyperlink
23
+ - insert-block
24
+ - layout
25
+ - layout
26
+ - list
27
+ - media
28
+ - paste
29
+ - rule
30
+ - table
31
+ - tasks-and-decisions
32
+
33
+ We already treat it as optional in the plugins, so this is just ensuring that the plugin is not mandatory to be added to the preset.
34
+
3
35
  ## 0.4.0
4
36
 
5
37
  ### Minor Changes
@@ -29,7 +29,7 @@ export type ExtensionPlugin = NextEditorPlugin<'extension', {
29
29
  pluginConfiguration: ExtensionPluginOptions | undefined;
30
30
  dependencies: [
31
31
  OptionalPlugin<AnalyticsPlugin>,
32
- FeatureFlagsPlugin,
32
+ OptionalPlugin<FeatureFlagsPlugin>,
33
33
  WidthPlugin,
34
34
  DecorationsPlugin,
35
35
  OptionalPlugin<ContextPanelPlugin>
@@ -29,7 +29,7 @@ export type ExtensionPlugin = NextEditorPlugin<'extension', {
29
29
  pluginConfiguration: ExtensionPluginOptions | undefined;
30
30
  dependencies: [
31
31
  OptionalPlugin<AnalyticsPlugin>,
32
- FeatureFlagsPlugin,
32
+ OptionalPlugin<FeatureFlagsPlugin>,
33
33
  WidthPlugin,
34
34
  DecorationsPlugin,
35
35
  OptionalPlugin<ContextPanelPlugin>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,8 +23,8 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^76.21.0",
27
- "@atlaskit/editor-plugin-analytics": "^0.3.0",
26
+ "@atlaskit/editor-common": "^76.26.0",
27
+ "@atlaskit/editor-plugin-analytics": "^0.4.0",
28
28
  "@atlaskit/editor-plugin-context-panel": "^0.2.0",
29
29
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
30
30
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
package/report.api.md CHANGED
@@ -57,7 +57,7 @@ export type ExtensionPlugin = NextEditorPlugin<
57
57
  pluginConfiguration: ExtensionPluginOptions | undefined;
58
58
  dependencies: [
59
59
  OptionalPlugin<AnalyticsPlugin>,
60
- FeatureFlagsPlugin,
60
+ OptionalPlugin<FeatureFlagsPlugin>,
61
61
  WidthPlugin,
62
62
  DecorationsPlugin,
63
63
  OptionalPlugin<ContextPanelPlugin>,
@@ -1,78 +0,0 @@
1
- ## API Report File for "@atlaskit/editor-plugin-extension"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
8
- import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
9
- import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
10
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
11
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
12
- import type { EditorAppearance } from '@atlaskit/editor-common/types';
13
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
14
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
15
- import type { ExtensionAPI } from '@atlaskit/editor-common/extensions';
16
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
17
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
18
- import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
19
- import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
20
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
21
- import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
22
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
23
- import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
24
-
25
- // @public (undocumented)
26
- export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
27
-
28
- // @public (undocumented)
29
- interface CreateExtensionAPIOptions {
30
- // (undocumented)
31
- applyChange: ApplyChangeHandler | undefined;
32
- // (undocumented)
33
- editInLegacyMacroBrowser?: () => void;
34
- // (undocumented)
35
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
36
- // (undocumented)
37
- editorView: EditorView;
38
- }
39
-
40
- // @public (undocumented)
41
- export type ExtensionPlugin = NextEditorPlugin<'extension', {
42
- pluginConfiguration: ExtensionPluginOptions | undefined;
43
- dependencies: [
44
- OptionalPlugin<AnalyticsPlugin>,
45
- FeatureFlagsPlugin,
46
- WidthPlugin,
47
- DecorationsPlugin,
48
- OptionalPlugin<ContextPanelPlugin>
49
- ];
50
- actions: {
51
- editSelectedExtension: () => boolean;
52
- api: () => ExtensionAPI;
53
- insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
54
- runMacroAutoConvert: RunMacroAutoConvert;
55
- };
56
- }>;
57
-
58
- // @public (undocumented)
59
- export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
60
- // (undocumented)
61
- allowAutoSave?: boolean;
62
- // (undocumented)
63
- appearance?: EditorAppearance;
64
- // (undocumented)
65
- breakoutEnabled?: boolean;
66
- // (undocumented)
67
- extensionHandlers?: ExtensionHandlers;
68
- }
69
-
70
- // @public (undocumented)
71
- type InsertMacroFromMacroBrowser = (macroProvider: MacroProvider, macroNode?: Node_2, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
72
-
73
- // @public (undocumented)
74
- export type RunMacroAutoConvert = (state: EditorState, text: string) => Node_2 | null;
75
-
76
- // (No @packageDocumentation comment for this package)
77
-
78
- ```