@atlaskit/editor-plugin-extension 1.14.18 → 1.15.0

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,19 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 1.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#151190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151190)
8
+ [`a3723b1cdede2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3723b1cdede2) -
9
+ [ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the
10
+ blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted
11
+ pasted external images to media groups.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.14.18
4
18
 
5
19
  ### Patch Changes
@@ -1,22 +1,72 @@
1
1
  import React from 'react';
2
2
  import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  import type { ExtensionManifest, FieldDefinition, OnSaveCallback, Parameters } from '@atlaskit/editor-common/extensions';
4
- import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { ExtensionPlugin, RejectSave } from '../../types';
6
- type Props = {
7
- extensionManifest?: ExtensionManifest;
8
- fields?: FieldDefinition[];
9
- parameters?: Parameters;
10
- autoSaveTrigger?: () => void;
11
- autoSaveReject?: RejectSave;
12
- showHeader?: boolean;
13
- closeOnEsc?: boolean;
4
+ import type { FeatureFlags } from '@atlaskit/editor-common/types';
5
+ import type { RejectSave } from '../../types';
6
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
7
+ extensionManifest?: ExtensionManifest | undefined;
8
+ fields?: FieldDefinition[] | undefined;
9
+ parameters?: Parameters | undefined;
10
+ autoSaveTrigger?: (() => void) | undefined;
11
+ autoSaveReject?: RejectSave | undefined;
12
+ showHeader?: boolean | undefined;
13
+ closeOnEsc?: boolean | undefined;
14
14
  onChange: OnSaveCallback;
15
15
  onCancel: () => void;
16
16
  errorMessage: string | null;
17
- isLoading?: boolean;
18
- featureFlags?: FeatureFlags;
19
- api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
20
- } & WithAnalyticsEventsProps;
21
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "featureFlags" | "api" | "autoSaveReject" | "parameters" | "key" | "onChange" | "errorMessage" | "analyticsContext" | "fields" | "extensionManifest" | "isLoading" | "onCancel" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
17
+ isLoading?: boolean | undefined;
18
+ featureFlags?: FeatureFlags | undefined;
19
+ api: import("@atlaskit/editor-common/types").EditorInjectionAPI<"extension", {
20
+ pluginConfiguration: import("../../types").ExtensionPluginOptions | undefined;
21
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
22
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
23
+ sharedState: {
24
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
25
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
26
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
27
+ };
28
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
29
+ pluginConfiguration: FeatureFlags;
30
+ sharedState: FeatureFlags;
31
+ }, FeatureFlags>>];
32
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
33
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
34
+ pluginConfiguration: FeatureFlags;
35
+ sharedState: FeatureFlags;
36
+ }, FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
37
+ sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
38
+ }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
39
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
40
+ actions: {
41
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
42
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
43
+ };
44
+ }, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
45
+ actions: {
46
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
47
+ };
48
+ sharedState: {
49
+ contents: React.ReactNode[] | undefined;
50
+ } | undefined;
51
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
52
+ pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
53
+ sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
54
+ commands: {
55
+ setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
56
+ };
57
+ }, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
58
+ sharedState: {
59
+ showContextPanel: boolean | undefined;
60
+ } | undefined;
61
+ actions: {
62
+ editSelectedExtension: () => boolean;
63
+ api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
64
+ insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
65
+ insertOrReplaceExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
66
+ insertOrReplaceBodiedExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
67
+ runMacroAutoConvert: import("../../types").RunMacroAutoConvert;
68
+ forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
69
+ };
70
+ }> | undefined;
71
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "featureFlags" | "api" | "autoSaveReject" | "parameters" | "key" | "onChange" | "errorMessage" | "analyticsContext" | "fields" | "extensionManifest" | "isLoading" | "onCancel" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
22
72
  export default _default;
@@ -12,5 +12,7 @@ interface Props {
12
12
  export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
13
13
  WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
14
14
  };
15
- export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
15
+ export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
16
+ forwardedRef?: React.Ref<any> | undefined;
17
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
16
18
  export {};
@@ -1,22 +1,81 @@
1
1
  import React from 'react';
2
2
  import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
3
  import type { ExtensionManifest, FieldDefinition, OnSaveCallback, Parameters } from '@atlaskit/editor-common/extensions';
4
- import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { ExtensionPlugin, RejectSave } from '../../types';
6
- type Props = {
7
- extensionManifest?: ExtensionManifest;
8
- fields?: FieldDefinition[];
9
- parameters?: Parameters;
10
- autoSaveTrigger?: () => void;
11
- autoSaveReject?: RejectSave;
12
- showHeader?: boolean;
13
- closeOnEsc?: boolean;
4
+ import type { FeatureFlags } from '@atlaskit/editor-common/types';
5
+ import type { RejectSave } from '../../types';
6
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
7
+ extensionManifest?: ExtensionManifest | undefined;
8
+ fields?: FieldDefinition[] | undefined;
9
+ parameters?: Parameters | undefined;
10
+ autoSaveTrigger?: (() => void) | undefined;
11
+ autoSaveReject?: RejectSave | undefined;
12
+ showHeader?: boolean | undefined;
13
+ closeOnEsc?: boolean | undefined;
14
14
  onChange: OnSaveCallback;
15
15
  onCancel: () => void;
16
16
  errorMessage: string | null;
17
- isLoading?: boolean;
18
- featureFlags?: FeatureFlags;
19
- api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
20
- } & WithAnalyticsEventsProps;
21
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "featureFlags" | "api" | "autoSaveReject" | "parameters" | "key" | "onChange" | "errorMessage" | "analyticsContext" | "fields" | "extensionManifest" | "isLoading" | "onCancel" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
17
+ isLoading?: boolean | undefined;
18
+ featureFlags?: FeatureFlags | undefined;
19
+ api: import("@atlaskit/editor-common/types").EditorInjectionAPI<"extension", {
20
+ pluginConfiguration: import("../../types").ExtensionPluginOptions | undefined;
21
+ dependencies: [
22
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
23
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
24
+ sharedState: {
25
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
26
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
27
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
28
+ };
29
+ dependencies: [
30
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
31
+ pluginConfiguration: FeatureFlags;
32
+ sharedState: FeatureFlags;
33
+ }, FeatureFlags>>
34
+ ];
35
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
36
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
37
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
38
+ pluginConfiguration: FeatureFlags;
39
+ sharedState: FeatureFlags;
40
+ }, FeatureFlags>>,
41
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
42
+ sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
43
+ }, undefined>,
44
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
45
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
46
+ actions: {
47
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
48
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
49
+ };
50
+ }, undefined>,
51
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
52
+ actions: {
53
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
54
+ };
55
+ sharedState: {
56
+ contents: React.ReactNode[] | undefined;
57
+ } | undefined;
58
+ }, undefined>>,
59
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
60
+ pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
61
+ sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
62
+ commands: {
63
+ setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
64
+ };
65
+ }, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>
66
+ ];
67
+ sharedState: {
68
+ showContextPanel: boolean | undefined;
69
+ } | undefined;
70
+ actions: {
71
+ editSelectedExtension: () => boolean;
72
+ api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
73
+ insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
74
+ insertOrReplaceExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
75
+ insertOrReplaceBodiedExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
76
+ runMacroAutoConvert: import("../../types").RunMacroAutoConvert;
77
+ forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
78
+ };
79
+ }> | undefined;
80
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "featureFlags" | "api" | "autoSaveReject" | "parameters" | "key" | "onChange" | "errorMessage" | "analyticsContext" | "fields" | "extensionManifest" | "isLoading" | "onCancel" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
22
81
  export default _default;
@@ -12,5 +12,7 @@ interface Props {
12
12
  export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
13
13
  WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
14
14
  };
15
- export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
15
+ export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
16
+ forwardedRef?: React.Ref<any> | undefined;
17
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
16
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "1.14.18",
3
+ "version": "1.15.0",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,16 +23,16 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/adf-schema": "^40.9.0",
27
- "@atlaskit/adf-utils": "^19.8.0",
26
+ "@atlaskit/adf-schema": "^40.9.4",
27
+ "@atlaskit/adf-utils": "^19.9.0",
28
28
  "@atlaskit/analytics-next": "^10.1.0",
29
29
  "@atlaskit/avatar": "^21.15.0",
30
30
  "@atlaskit/button": "^20.2.0",
31
31
  "@atlaskit/checkbox": "^14.0.0",
32
- "@atlaskit/datetime-picker": "^15.1.0",
33
- "@atlaskit/editor-common": "^93.1.0",
34
- "@atlaskit/editor-json-transformer": "^8.18.0",
35
- "@atlaskit/editor-plugin-analytics": "^1.8.0",
32
+ "@atlaskit/datetime-picker": "^15.3.0",
33
+ "@atlaskit/editor-common": "^93.3.0",
34
+ "@atlaskit/editor-json-transformer": "^8.19.0",
35
+ "@atlaskit/editor-plugin-analytics": "^1.9.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
37
37
  "@atlaskit/editor-plugin-context-panel": "^1.3.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
@@ -44,15 +44,15 @@
44
44
  "@atlaskit/empty-state": "^7.11.0",
45
45
  "@atlaskit/form": "^10.5.0",
46
46
  "@atlaskit/heading": "2.4.6",
47
- "@atlaskit/icon": "^22.21.0",
47
+ "@atlaskit/icon": "^22.22.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
49
  "@atlaskit/primitives": "^12.2.0",
50
50
  "@atlaskit/radio": "^6.5.0",
51
51
  "@atlaskit/section-message": "^6.6.0",
52
- "@atlaskit/select": "^18.0.0",
52
+ "@atlaskit/select": "^18.1.0",
53
53
  "@atlaskit/smart-user-picker": "^6.10.0",
54
54
  "@atlaskit/spinner": "^16.3.0",
55
- "@atlaskit/tabs": "^16.4.0",
55
+ "@atlaskit/tabs": "^16.5.0",
56
56
  "@atlaskit/textarea": "^5.6.0",
57
57
  "@atlaskit/textfield": "^6.5.0",
58
58
  "@atlaskit/theme": "^13.0.0",