@atlaskit/editor-core 187.31.3 → 187.31.6

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/create-editor/ReactEditorViewInternal.js +2 -3
  3. package/dist/cjs/create-editor/create-plugins-list.js +2 -28
  4. package/dist/cjs/create-editor/create-preset.js +36 -0
  5. package/dist/cjs/labs/next/presets/default.js +2 -2
  6. package/dist/cjs/labs/next/presets/useUniversalPreset.js +3 -3
  7. package/dist/cjs/plugins/index.js +0 -7
  8. package/dist/cjs/plugins/media/toolbar/index.js +20 -6
  9. package/dist/cjs/plugins/media/ui/PixelEntry/index.js +9 -2
  10. package/dist/cjs/plugins/media/ui/PixelEntry/messages.js +5 -0
  11. package/dist/cjs/plugins/media/ui/PixelEntry/styles.js +5 -3
  12. package/dist/cjs/plugins/selection/gap-cursor/utils.js +1 -2
  13. package/dist/cjs/ui/ContentStyles/index.js +20 -21
  14. package/dist/cjs/version-wrapper.js +1 -1
  15. package/dist/es2019/create-editor/ReactEditorViewInternal.js +2 -3
  16. package/dist/es2019/create-editor/create-plugins-list.js +2 -23
  17. package/dist/es2019/create-editor/create-preset.js +25 -0
  18. package/dist/es2019/labs/next/presets/default.js +1 -1
  19. package/dist/es2019/labs/next/presets/useUniversalPreset.js +1 -1
  20. package/dist/es2019/plugins/index.js +0 -1
  21. package/dist/es2019/plugins/media/toolbar/index.js +23 -7
  22. package/dist/es2019/plugins/media/ui/PixelEntry/index.js +10 -1
  23. package/dist/es2019/plugins/media/ui/PixelEntry/messages.js +5 -0
  24. package/dist/es2019/plugins/media/ui/PixelEntry/styles.js +7 -0
  25. package/dist/es2019/plugins/selection/gap-cursor/utils.js +1 -2
  26. package/dist/es2019/ui/ContentStyles/index.js +1 -2
  27. package/dist/es2019/version-wrapper.js +1 -1
  28. package/dist/esm/create-editor/ReactEditorViewInternal.js +2 -3
  29. package/dist/esm/create-editor/create-plugins-list.js +2 -27
  30. package/dist/esm/create-editor/create-preset.js +29 -0
  31. package/dist/esm/labs/next/presets/default.js +1 -1
  32. package/dist/esm/labs/next/presets/useUniversalPreset.js +1 -1
  33. package/dist/esm/plugins/index.js +0 -1
  34. package/dist/esm/plugins/media/toolbar/index.js +21 -7
  35. package/dist/esm/plugins/media/ui/PixelEntry/index.js +7 -1
  36. package/dist/esm/plugins/media/ui/PixelEntry/messages.js +5 -0
  37. package/dist/esm/plugins/media/ui/PixelEntry/styles.js +3 -2
  38. package/dist/esm/plugins/selection/gap-cursor/utils.js +1 -2
  39. package/dist/esm/ui/ContentStyles/index.js +1 -2
  40. package/dist/esm/version-wrapper.js +1 -1
  41. package/dist/types/create-editor/create-plugins-list.d.ts +2 -3
  42. package/dist/types/create-editor/create-preset.d.ts +3 -0
  43. package/dist/types/plugins/base/plugin.d.ts +2 -2
  44. package/dist/types/plugins/breakout/index.d.ts +2 -2
  45. package/dist/types/plugins/extension/index.d.ts +8 -8
  46. package/dist/types/plugins/extension/nodeviews/extension.d.ts +3 -3
  47. package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
  48. package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
  49. package/dist/types/plugins/extension/ui/Extension/index.d.ts +2 -2
  50. package/dist/types/plugins/index.d.ts +0 -1
  51. package/dist/types/plugins/media/next-plugin-type.d.ts +12 -12
  52. package/dist/types/plugins/media/ui/PixelEntry/index.d.ts +5 -0
  53. package/dist/types/plugins/media/ui/PixelEntry/messages.d.ts +5 -0
  54. package/dist/types/plugins/media/ui/PixelEntry/styles.d.ts +1 -0
  55. package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -4
  56. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +2 -3
  57. package/dist/types-ts4.5/create-editor/create-preset.d.ts +3 -0
  58. package/dist/types-ts4.5/plugins/base/plugin.d.ts +2 -2
  59. package/dist/types-ts4.5/plugins/breakout/index.d.ts +2 -2
  60. package/dist/types-ts4.5/plugins/extension/index.d.ts +8 -8
  61. package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +3 -3
  62. package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
  63. package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
  64. package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +2 -2
  65. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  66. package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +12 -12
  67. package/dist/types-ts4.5/plugins/media/ui/PixelEntry/index.d.ts +5 -0
  68. package/dist/types-ts4.5/plugins/media/ui/PixelEntry/messages.d.ts +5 -0
  69. package/dist/types-ts4.5/plugins/media/ui/PixelEntry/styles.d.ts +1 -0
  70. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +4 -4
  71. package/package.json +7 -6
  72. package/report.api.md +12 -12
  73. package/tmp/api-report-tmp.d.ts +12 -12
  74. package/dist/cjs/plugins/unsupported-content/index.js +0 -87
  75. package/dist/cjs/plugins/unsupported-content/styles.js +0 -20
  76. package/dist/cjs/plugins/unsupported-content/unsupported-inline-node-view.js +0 -16
  77. package/dist/es2019/plugins/unsupported-content/index.js +0 -77
  78. package/dist/es2019/plugins/unsupported-content/styles.js +0 -27
  79. package/dist/es2019/plugins/unsupported-content/unsupported-inline-node-view.js +0 -7
  80. package/dist/esm/plugins/unsupported-content/index.js +0 -77
  81. package/dist/esm/plugins/unsupported-content/styles.js +0 -11
  82. package/dist/esm/plugins/unsupported-content/unsupported-inline-node-view.js +0 -7
  83. package/dist/types/plugins/unsupported-content/index.d.ts +0 -5
  84. package/dist/types/plugins/unsupported-content/styles.d.ts +0 -5
  85. package/dist/types/plugins/unsupported-content/unsupported-inline-node-view.d.ts +0 -11
  86. package/dist/types-ts4.5/plugins/unsupported-content/index.d.ts +0 -5
  87. package/dist/types-ts4.5/plugins/unsupported-content/styles.d.ts +0 -5
  88. package/dist/types-ts4.5/plugins/unsupported-content/unsupported-inline-node-view.d.ts +0 -11
@@ -1,5 +1,5 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
2
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
3
3
  import type { BreakoutPluginState } from './types';
4
4
  interface BreakoutPluginOptions {
5
5
  allowBreakoutButton?: boolean;
@@ -7,7 +7,7 @@ interface BreakoutPluginOptions {
7
7
  declare const breakoutPlugin: NextEditorPlugin<'breakout', {
8
8
  pluginConfiguration: BreakoutPluginOptions | undefined;
9
9
  dependencies: [
10
- typeof widthPlugin
10
+ WidthPlugin
11
11
  ];
12
12
  sharedState: Partial<BreakoutPluginState>;
13
13
  }>;
@@ -1,10 +1,10 @@
1
1
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
3
  import type { NextEditorPlugin, EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
4
4
  import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
5
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
6
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
- import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
5
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
6
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
+ import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
8
8
  interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
9
9
  allowAutoSave?: boolean;
10
10
  breakoutEnabled?: boolean;
@@ -14,10 +14,10 @@ interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
14
14
  declare const extensionPlugin: NextEditorPlugin<'extension', {
15
15
  pluginConfiguration: ExtensionPluginOptions | undefined;
16
16
  dependencies: [
17
- typeof featureFlagsPlugin,
18
- typeof widthPlugin,
19
- typeof decorationsPlugin,
20
- OptionalPlugin<typeof contextPanelPlugin>
17
+ FeatureFlagsPlugin,
18
+ WidthPlugin,
19
+ DecorationsPlugin,
20
+ OptionalPlugin<ContextPanelPlugin>
21
21
  ];
22
22
  }>;
23
23
  export default extensionPlugin;
@@ -9,7 +9,7 @@ import type { ForwardRef, getPosHandler } from '../../../nodeviews';
9
9
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
10
10
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
11
11
  import type { EventDispatcher } from '../../../event-dispatcher';
12
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
12
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
13
13
  interface ExtensionNodeViewOptions {
14
14
  appearance?: EditorAppearance;
15
15
  }
@@ -25,8 +25,8 @@ export declare class ExtensionNode extends ReactNodeView {
25
25
  providerFactory: ProviderFactory;
26
26
  extensionHandlers: ExtensionHandlers;
27
27
  extensionNodeViewOptions?: ExtensionNodeViewOptions;
28
- pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
28
+ pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
29
29
  }, forwardRef: ForwardRef): JSX.Element;
30
30
  }
31
- export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
31
+ export default function ExtensionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionNodeViewOptions: ExtensionNodeViewOptions, pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined): (node: PmNode, view: EditorView, getPos: getPosHandler) => NodeView;
32
32
  export {};
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
5
5
  import type { ProsemirrorGetPosHandler } from '../../../../../nodeviews';
6
6
  import type { EditorAppearance } from '../../../../../types/editor-appearance';
7
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
7
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
8
8
  import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
9
9
  export interface Props {
10
10
  node: PmNode;
@@ -16,7 +16,7 @@ export interface Props {
16
16
  references?: ReferenceEntity[];
17
17
  hideFrame?: boolean;
18
18
  editorAppearance?: EditorAppearance;
19
- pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
19
+ pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
20
20
  }
21
21
  /**
22
22
  * End workaround
@@ -5,7 +5,7 @@ import { getNodeRenderer, getExtensionModuleNodePrivateProps } from '@atlaskit/e
5
5
  import type { ExtensionHandlers, ExtensionProvider, ReferenceEntity } from '@atlaskit/editor-common/extensions';
6
6
  import type { ProsemirrorGetPosHandler } from '../../../../nodeviews';
7
7
  import type { EditorAppearance } from '../../../../types/editor-appearance';
8
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
8
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
9
9
  import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
10
10
  export interface Props {
11
11
  editorView: EditorView;
@@ -16,7 +16,7 @@ export interface Props {
16
16
  extensionProvider?: Promise<ExtensionProvider>;
17
17
  references?: ReferenceEntity[];
18
18
  editorAppearance?: EditorAppearance;
19
- pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
19
+ pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
20
20
  }
21
21
  export interface State {
22
22
  extensionProvider?: ExtensionProvider;
@@ -5,7 +5,7 @@ import type { ExtensionHandlers, ReferenceEntity } from '@atlaskit/editor-common
5
5
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { ProsemirrorGetPosHandler } from '../../../../nodeviews/types';
7
7
  import type { EditorAppearance } from '../../../../types/editor-appearance';
8
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
8
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
9
9
  import type { PluginInjectionAPIWithDependency } from '@atlaskit/editor-common/types';
10
10
  export interface Props {
11
11
  editorView: EditorView;
@@ -16,7 +16,7 @@ export interface Props {
16
16
  extensionHandlers: ExtensionHandlers;
17
17
  references?: ReferenceEntity[];
18
18
  editorAppearance?: EditorAppearance;
19
- pluginInjectionApi: PluginInjectionAPIWithDependency<typeof widthPlugin> | undefined;
19
+ pluginInjectionApi: PluginInjectionAPIWithDependency<WidthPlugin> | undefined;
20
20
  }
21
21
  export default class Extension extends Component<Props, any> {
22
22
  static displayName: string;
@@ -30,7 +30,6 @@ export { default as submitEditorPlugin } from './submit-editor';
30
30
  export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
31
31
  export { default as textColorPlugin } from './text-color';
32
32
  export { default as typeAheadPlugin } from './type-ahead';
33
- export { default as unsupportedContentPlugin } from './unsupported-content';
34
33
  export { default as floatingToolbarPlugin } from './floating-toolbar';
35
34
  export { default as statusPlugin } from './status';
36
35
  export { default as breakoutPlugin } from './breakout';
@@ -1,9 +1,9 @@
1
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
- import type { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
4
- import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
5
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
6
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
1
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
4
+ import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
5
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
6
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
7
  import type { MediaPluginState } from './pm-plugins/types';
8
8
  import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
9
9
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -13,12 +13,12 @@ import type { MediaOptions } from './types';
13
13
  export type MediaNextEditorPluginType = NextEditorPlugin<'media', {
14
14
  pluginConfiguration: MediaOptions | undefined;
15
15
  dependencies: [
16
- typeof featureFlagsPlugin,
17
- OptionalPlugin<typeof analyticsPlugin>,
18
- typeof guidelinePlugin,
19
- typeof gridPlugin,
20
- typeof widthPlugin,
21
- typeof decorationsPlugin,
16
+ FeatureFlagsPlugin,
17
+ OptionalPlugin<AnalyticsPlugin>,
18
+ GuidelinePlugin,
19
+ GridPlugin,
20
+ WidthPlugin,
21
+ DecorationsPlugin,
22
22
  FloatingToolbarPlugin,
23
23
  EditorDisabledPlugin,
24
24
  FocusPlugin
@@ -1,4 +1,9 @@
1
+ /// <reference types="react" />
1
2
  /** @jsx jsx */
2
3
  import { jsx } from '@emotion/react';
4
+ import type { IntlShape } from 'react-intl-next';
3
5
  import type { PixelEntryProps } from './types';
4
6
  export declare const PixelEntry: ({ width, mediaWidth, mediaHeight, onSubmit, validate, minWidth, maxWidth, intl: { formatMessage }, showMigration, onMigrate, }: PixelEntryProps) => jsx.JSX.Element;
7
+ export declare const FullWidthDisplay: React.FC<{
8
+ intl: IntlShape;
9
+ }>;
@@ -29,6 +29,11 @@ export declare const messages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ fullWidthLabel: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  migrationButtonText: {
33
38
  id: string;
34
39
  defaultMessage: string;
@@ -5,3 +5,4 @@ export declare const pixelSizingLabel: import("@emotion/react").SerializedStyles
5
5
  export declare const pixelSizingWidthInput: import("@emotion/react").SerializedStyles;
6
6
  export declare const pixelSizingHeightInput: import("@emotion/react").SerializedStyles;
7
7
  export declare const pixelEntryHiddenSubmit: import("@emotion/react").SerializedStyles;
8
+ export declare const pixelSizingFullWidthLabelStyles: import("@emotion/react").SerializedStyles;
@@ -1,6 +1,6 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
4
  import type { ListPlugin } from '@atlaskit/editor-plugin-list';
5
5
  import type { IndentationButtons } from './pm-plugins/indentation-buttons';
6
6
  type Config = {
@@ -10,9 +10,9 @@ type Config = {
10
10
  declare const toolbarListsIndentationPlugin: NextEditorPlugin<'toolbarListsIndentation', {
11
11
  pluginConfiguration: Config;
12
12
  dependencies: [
13
- typeof featureFlagsPlugin,
13
+ FeatureFlagsPlugin,
14
14
  ListPlugin,
15
- OptionalPlugin<typeof analyticsPlugin>
15
+ OptionalPlugin<AnalyticsPlugin>
16
16
  ];
17
17
  sharedState: IndentationButtons | undefined;
18
18
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.31.3",
3
+ "version": "187.31.6",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,8 +61,8 @@
61
61
  "@atlaskit/editor-palette": "1.5.1",
62
62
  "@atlaskit/editor-plugin-analytics": "^0.1.0",
63
63
  "@atlaskit/editor-plugin-card": "^0.4.0",
64
- "@atlaskit/editor-plugin-composition": "^0.0.1",
65
- "@atlaskit/editor-plugin-content-insertion": "^0.0.9",
64
+ "@atlaskit/editor-plugin-composition": "^0.0.2",
65
+ "@atlaskit/editor-plugin-content-insertion": "^0.0.10",
66
66
  "@atlaskit/editor-plugin-context-panel": "^0.1.0",
67
67
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
68
68
  "@atlaskit/editor-plugin-editor-disabled": "^0.1.0",
@@ -78,6 +78,7 @@
78
78
  "@atlaskit/editor-plugin-table": "^2.10.0",
79
79
  "@atlaskit/editor-plugin-text-formatting": "^0.3.0",
80
80
  "@atlaskit/editor-plugin-type-ahead": "^0.1.0",
81
+ "@atlaskit/editor-plugin-unsupported-content": "^0.1.0",
81
82
  "@atlaskit/editor-plugin-width": "^0.1.0",
82
83
  "@atlaskit/editor-prosemirror": "1.1.0",
83
84
  "@atlaskit/editor-shared-styles": "^2.6.0",
@@ -96,7 +97,7 @@
96
97
  "@atlaskit/media-ui": "^24.0.0",
97
98
  "@atlaskit/media-viewer": "^48.0.0",
98
99
  "@atlaskit/mention": "^22.1.0",
99
- "@atlaskit/menu": "^1.9.0",
100
+ "@atlaskit/menu": "^1.10.0",
100
101
  "@atlaskit/modal-dialog": "^12.6.0",
101
102
  "@atlaskit/platform-feature-flags": "^0.2.0",
102
103
  "@atlaskit/prosemirror-collab": "^0.2.0",
@@ -114,7 +115,7 @@
114
115
  "@atlaskit/textfield": "^5.6.0",
115
116
  "@atlaskit/theme": "^12.5.0",
116
117
  "@atlaskit/toggle": "^12.6.0",
117
- "@atlaskit/tokens": "^1.15.0",
118
+ "@atlaskit/tokens": "^1.16.0",
118
119
  "@atlaskit/tooltip": "^17.8.0",
119
120
  "@atlaskit/width-detector": "^4.1.0",
120
121
  "@babel/runtime": "^7.0.0",
@@ -158,7 +159,7 @@
158
159
  "@atlaskit/media-core": "^34.1.0",
159
160
  "@atlaskit/media-integration-test-helpers": "^3.0.0",
160
161
  "@atlaskit/media-test-helpers": "^33.0.0",
161
- "@atlaskit/menu": "^1.9.0",
162
+ "@atlaskit/menu": "^1.10.0",
162
163
  "@atlaskit/platform-feature-flags": "^0.2.0",
163
164
  "@atlaskit/renderer": "^108.11.0",
164
165
  "@atlaskit/section-message": "^6.4.0",
package/report.api.md CHANGED
@@ -27,7 +27,7 @@ import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
27
27
  import type { AllowedBlockTypes } from '@atlaskit/editor-common/types';
28
28
  import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
29
29
  import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
30
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
30
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
31
31
  import type { AnnotationTypes } from '@atlaskit/adf-schema';
32
32
  import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
33
33
  import type { CardOptions } from '@atlaskit/editor-common/card';
@@ -44,7 +44,7 @@ import { createTable } from '@atlaskit/editor-plugin-table/commands';
44
44
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
45
45
  import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
46
46
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
47
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
47
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
48
48
  import { dedupe } from '@atlaskit/editor-common/utils';
49
49
  import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
50
50
  import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
@@ -73,7 +73,7 @@ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
73
73
  import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
74
74
  import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
75
75
  import { FC } from 'react';
76
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
76
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
77
77
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
78
78
  import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
79
79
  import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
@@ -81,8 +81,8 @@ import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
81
81
  import { GapCursorSelection } from '@atlaskit/editor-common/selection';
82
82
  import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
83
83
  import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
84
- import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
85
- import type { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
84
+ import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
85
+ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
86
86
  import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
87
87
  import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
88
88
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -166,7 +166,7 @@ import { UploadParams } from '@atlaskit/media-picker/types';
166
166
  import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
167
167
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
168
168
  import type { WeekDay } from '@atlaskit/calendar/types';
169
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
169
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
170
170
  import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
171
171
  import { WithIntlProps } from 'react-intl-next';
172
172
  import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
@@ -1208,12 +1208,12 @@ type MediaNextEditorPluginType = NextEditorPlugin<
1208
1208
  {
1209
1209
  pluginConfiguration: MediaOptions | undefined;
1210
1210
  dependencies: [
1211
- typeof featureFlagsPlugin,
1212
- OptionalPlugin<typeof analyticsPlugin>,
1213
- typeof guidelinePlugin,
1214
- typeof gridPlugin,
1215
- typeof widthPlugin,
1216
- typeof decorationsPlugin,
1211
+ FeatureFlagsPlugin,
1212
+ OptionalPlugin<AnalyticsPlugin>,
1213
+ GuidelinePlugin,
1214
+ GridPlugin,
1215
+ WidthPlugin,
1216
+ DecorationsPlugin,
1217
1217
  FloatingToolbarPlugin,
1218
1218
  EditorDisabledPlugin,
1219
1219
  FocusPlugin,
@@ -16,7 +16,7 @@ import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
16
16
  import type { AllowedBlockTypes } from '@atlaskit/editor-common/types';
17
17
  import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
18
18
  import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
19
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
19
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
20
20
  import type { AnnotationTypes } from '@atlaskit/adf-schema';
21
21
  import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
22
22
  import type { CardOptions } from '@atlaskit/editor-common/card';
@@ -33,7 +33,7 @@ import { createTable } from '@atlaskit/editor-plugin-table/commands';
33
33
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
34
34
  import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
35
35
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
36
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
36
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
37
37
  import { dedupe } from '@atlaskit/editor-common/utils';
38
38
  import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
39
39
  import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
@@ -62,7 +62,7 @@ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
62
62
  import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
63
63
  import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
64
64
  import { FC } from 'react';
65
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
65
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
66
66
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
67
67
  import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
68
68
  import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
@@ -70,8 +70,8 @@ import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
70
70
  import { GapCursorSelection } from '@atlaskit/editor-common/selection';
71
71
  import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
72
72
  import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
73
- import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
74
- import type { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
73
+ import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
74
+ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
75
75
  import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
76
76
  import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
77
77
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -155,7 +155,7 @@ import { UploadParams } from '@atlaskit/media-picker/types';
155
155
  import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
156
156
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
157
157
  import type { WeekDay } from '@atlaskit/calendar/types';
158
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
158
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
159
159
  import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
160
160
  import { WithIntlProps } from 'react-intl-next';
161
161
  import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
@@ -1083,12 +1083,12 @@ export const measurements: {
1083
1083
  type MediaNextEditorPluginType = NextEditorPlugin<'media', {
1084
1084
  pluginConfiguration: MediaOptions | undefined;
1085
1085
  dependencies: [
1086
- typeof featureFlagsPlugin,
1087
- OptionalPlugin<typeof analyticsPlugin>,
1088
- typeof guidelinePlugin,
1089
- typeof gridPlugin,
1090
- typeof widthPlugin,
1091
- typeof decorationsPlugin,
1086
+ FeatureFlagsPlugin,
1087
+ OptionalPlugin<AnalyticsPlugin>,
1088
+ GuidelinePlugin,
1089
+ GridPlugin,
1090
+ WidthPlugin,
1091
+ DecorationsPlugin,
1092
1092
  FloatingToolbarPlugin,
1093
1093
  EditorDisabledPlugin,
1094
1094
  FocusPlugin
@@ -1,87 +0,0 @@
1
- "use strict";
2
-
3
- var _typeof = require("@babel/runtime/helpers/typeof");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.pluginKey = exports.default = void 0;
8
- var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
9
- var _state = require("@atlaskit/editor-prosemirror/state");
10
- var _adfSchema = require("@atlaskit/adf-schema");
11
- var _ui = require("@atlaskit/editor-common/ui");
12
- var _unsupportedInlineNodeView = require("./unsupported-inline-node-view");
13
- var _reactNodeView = _interopRequireWildcard(require("@atlaskit/editor-common/react-node-view"));
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
- var pluginKey = new _state.PluginKey('unsupportedContentPlugin');
17
- exports.pluginKey = pluginKey;
18
- var createPlugin = function createPlugin(pmPluginFactoryParams) {
19
- var hasIntlContext = true;
20
- var portalProviderAPI = pmPluginFactoryParams.portalProviderAPI,
21
- eventDispatcher = pmPluginFactoryParams.eventDispatcher,
22
- dispatchAnalyticsEvent = pmPluginFactoryParams.dispatchAnalyticsEvent;
23
- return new _safePlugin.SafePlugin({
24
- key: pluginKey,
25
- props: {
26
- nodeViews: {
27
- confluenceUnsupportedBlock: _reactNodeView.default.fromComponent(_ui.UnsupportedBlock, portalProviderAPI, eventDispatcher, {
28
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
29
- }, undefined, hasIntlContext),
30
- confluenceUnsupportedInline: (0, _reactNodeView.getInlineNodeViewProducer)({
31
- pmPluginFactoryParams: pmPluginFactoryParams,
32
- Component: _unsupportedInlineNodeView.UnsupportedInlineNodeView,
33
- extraComponentProps: {
34
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
35
- }
36
- }),
37
- unsupportedBlock: _reactNodeView.default.fromComponent(_ui.UnsupportedBlock, portalProviderAPI, eventDispatcher, {
38
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
39
- }, undefined, hasIntlContext),
40
- unsupportedInline: (0, _reactNodeView.getInlineNodeViewProducer)({
41
- pmPluginFactoryParams: pmPluginFactoryParams,
42
- Component: _unsupportedInlineNodeView.UnsupportedInlineNodeView,
43
- extraComponentProps: {
44
- dispatchAnalyticsEvent: dispatchAnalyticsEvent
45
- }
46
- })
47
- }
48
- }
49
- });
50
- };
51
- var unsupportedContentPlugin = function unsupportedContentPlugin() {
52
- return {
53
- name: 'unsupportedContent',
54
- marks: function marks() {
55
- return [{
56
- name: 'unsupportedMark',
57
- mark: _adfSchema.unsupportedMark
58
- }, {
59
- name: 'unsupportedNodeAttribute',
60
- mark: _adfSchema.unsupportedNodeAttribute
61
- }];
62
- },
63
- nodes: function nodes() {
64
- return [{
65
- name: 'confluenceUnsupportedBlock',
66
- node: _adfSchema.confluenceUnsupportedBlock
67
- }, {
68
- name: 'confluenceUnsupportedInline',
69
- node: _adfSchema.confluenceUnsupportedInline
70
- }, {
71
- name: 'unsupportedBlock',
72
- node: _adfSchema.unsupportedBlock
73
- }, {
74
- name: 'unsupportedInline',
75
- node: _adfSchema.unsupportedInline
76
- }];
77
- },
78
- pmPlugins: function pmPlugins() {
79
- return [{
80
- name: 'unsupportedContent',
81
- plugin: createPlugin
82
- }];
83
- }
84
- };
85
- };
86
- var _default = unsupportedContentPlugin;
87
- exports.default = _default;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.unsupportedStyles = exports.UnsupportedSharedCssClassName = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = require("@emotion/react");
10
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _templateObject;
12
- var UnsupportedSharedCssClassName = {
13
- BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
14
- INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
15
- };
16
- exports.UnsupportedSharedCssClassName = UnsupportedSharedCssClassName;
17
- var inlineUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.INLINE_CONTAINER, " > span:nth-of-type(2)");
18
- var blockUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.BLOCK_CONTAINER, " > div");
19
- var unsupportedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", ", ", " {\n cursor: pointer;\n }\n\n .", "", ",\n .", "", " {\n ", "\n }\n\n .danger {\n .", "", ",\n .", "", " {\n border: ", "px solid\n ", ";\n background-color: ", ";\n }\n }\n"])), blockUnsupportedSelector, inlineUnsupportedSelector, _editorSharedStyles.akEditorSelectedNodeClassName, blockUnsupportedSelector, _editorSharedStyles.akEditorSelectedNodeClassName, inlineUnsupportedSelector, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Background, _editorSharedStyles.SelectionStyle.Border]), _editorSharedStyles.akEditorSelectedNodeClassName, blockUnsupportedSelector, _editorSharedStyles.akEditorSelectedNodeClassName, inlineUnsupportedSelector, _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"));
20
- exports.unsupportedStyles = unsupportedStyles;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.UnsupportedInlineNodeView = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _react2 = require("@emotion/react");
10
- var _ui = require("@atlaskit/editor-common/ui");
11
- /** @jsx jsx */
12
-
13
- var UnsupportedInlineNodeView = function UnsupportedInlineNodeView(props) {
14
- return (0, _react2.jsx)(_ui.UnsupportedInline, props);
15
- };
16
- exports.UnsupportedInlineNodeView = UnsupportedInlineNodeView;
@@ -1,77 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { confluenceUnsupportedBlock, confluenceUnsupportedInline, unsupportedBlock, unsupportedInline, unsupportedMark, unsupportedNodeAttribute } from '@atlaskit/adf-schema';
4
- import { UnsupportedBlock } from '@atlaskit/editor-common/ui';
5
- import { UnsupportedInlineNodeView } from './unsupported-inline-node-view';
6
- import ReactNodeView from '@atlaskit/editor-common/react-node-view';
7
- import { getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
8
- export const pluginKey = new PluginKey('unsupportedContentPlugin');
9
- const createPlugin = pmPluginFactoryParams => {
10
- const hasIntlContext = true;
11
- const {
12
- portalProviderAPI,
13
- eventDispatcher,
14
- dispatchAnalyticsEvent
15
- } = pmPluginFactoryParams;
16
- return new SafePlugin({
17
- key: pluginKey,
18
- props: {
19
- nodeViews: {
20
- confluenceUnsupportedBlock: ReactNodeView.fromComponent(UnsupportedBlock, portalProviderAPI, eventDispatcher, {
21
- dispatchAnalyticsEvent
22
- }, undefined, hasIntlContext),
23
- confluenceUnsupportedInline: getInlineNodeViewProducer({
24
- pmPluginFactoryParams,
25
- Component: UnsupportedInlineNodeView,
26
- extraComponentProps: {
27
- dispatchAnalyticsEvent
28
- }
29
- }),
30
- unsupportedBlock: ReactNodeView.fromComponent(UnsupportedBlock, portalProviderAPI, eventDispatcher, {
31
- dispatchAnalyticsEvent
32
- }, undefined, hasIntlContext),
33
- unsupportedInline: getInlineNodeViewProducer({
34
- pmPluginFactoryParams,
35
- Component: UnsupportedInlineNodeView,
36
- extraComponentProps: {
37
- dispatchAnalyticsEvent
38
- }
39
- })
40
- }
41
- }
42
- });
43
- };
44
- const unsupportedContentPlugin = () => ({
45
- name: 'unsupportedContent',
46
- marks() {
47
- return [{
48
- name: 'unsupportedMark',
49
- mark: unsupportedMark
50
- }, {
51
- name: 'unsupportedNodeAttribute',
52
- mark: unsupportedNodeAttribute
53
- }];
54
- },
55
- nodes() {
56
- return [{
57
- name: 'confluenceUnsupportedBlock',
58
- node: confluenceUnsupportedBlock
59
- }, {
60
- name: 'confluenceUnsupportedInline',
61
- node: confluenceUnsupportedInline
62
- }, {
63
- name: 'unsupportedBlock',
64
- node: unsupportedBlock
65
- }, {
66
- name: 'unsupportedInline',
67
- node: unsupportedInline
68
- }];
69
- },
70
- pmPlugins() {
71
- return [{
72
- name: 'unsupportedContent',
73
- plugin: createPlugin
74
- }];
75
- }
76
- });
77
- export default unsupportedContentPlugin;
@@ -1,27 +0,0 @@
1
- import { css } from '@emotion/react';
2
- import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
3
- export const UnsupportedSharedCssClassName = {
4
- BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
5
- INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
6
- };
7
- const inlineUnsupportedSelector = `.${UnsupportedSharedCssClassName.INLINE_CONTAINER} > span:nth-of-type(2)`;
8
- const blockUnsupportedSelector = `.${UnsupportedSharedCssClassName.BLOCK_CONTAINER} > div`;
9
- export const unsupportedStyles = css`
10
- ${blockUnsupportedSelector}, ${inlineUnsupportedSelector} {
11
- cursor: pointer;
12
- }
13
-
14
- .${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
15
- .${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
16
- ${getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border])}
17
- }
18
-
19
- .danger {
20
- .${akEditorSelectedNodeClassName}${blockUnsupportedSelector},
21
- .${akEditorSelectedNodeClassName}${inlineUnsupportedSelector} {
22
- border: ${akEditorSelectedBorderSize}px solid
23
- ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
24
- background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackgroundWithOpacity})`};
25
- }
26
- }
27
- `;