@atlaskit/editor-core 184.0.0 → 185.0.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.
Files changed (201) hide show
  1. package/.eslintrc.js +7 -3
  2. package/CHANGELOG.md +44 -0
  3. package/dist/cjs/create-editor/feature-flags-from-props.js +1 -2
  4. package/dist/cjs/editor-next/index.js +41 -34
  5. package/dist/cjs/editor.js +30 -269
  6. package/dist/cjs/i18n/en_ZZ.js +32 -6
  7. package/dist/cjs/index.js +0 -7
  8. package/dist/cjs/labs/next/presets/default.js +2 -1
  9. package/dist/cjs/plugins/base/index.js +0 -12
  10. package/dist/cjs/plugins/card/nodeviews/blockCard.js +7 -0
  11. package/dist/cjs/plugins/card/nodeviews/embedCard.js +7 -0
  12. package/dist/cjs/plugins/card/nodeviews/inlineCard.js +5 -1
  13. package/dist/cjs/plugins/card/pm-plugins/doc.js +1 -2
  14. package/dist/cjs/plugins/card/toolbar.js +11 -9
  15. package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +4 -4
  16. package/dist/cjs/plugins/code-block/index.js +7 -5
  17. package/dist/cjs/plugins/code-block/toolbar.js +5 -5
  18. package/dist/cjs/plugins/copy-button/commands.js +2 -3
  19. package/dist/cjs/plugins/copy-button/toolbar.js +7 -8
  20. package/dist/cjs/plugins/expand/index.js +1 -1
  21. package/dist/cjs/plugins/expand/toolbar.js +40 -39
  22. package/dist/cjs/plugins/extension/index.js +1 -1
  23. package/dist/cjs/plugins/extension/toolbar.js +5 -5
  24. package/dist/cjs/plugins/floating-toolbar/index.js +3 -2
  25. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  26. package/dist/cjs/plugins/layout/index.js +8 -4
  27. package/dist/cjs/plugins/layout/toolbar.js +5 -6
  28. package/dist/cjs/plugins/media/toolbar/index.js +31 -24
  29. package/dist/cjs/plugins/panel/index.js +2 -1
  30. package/dist/cjs/plugins/panel/toolbar.js +7 -7
  31. package/dist/cjs/plugins/placeholder-text/index.js +7 -5
  32. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +19 -0
  33. package/dist/cjs/ui/CollapsedEditor/index.js +1 -2
  34. package/dist/cjs/ui/ColorPickerButton/index.js +2 -2
  35. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +6 -10
  36. package/dist/cjs/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  37. package/dist/cjs/ui/styles.js +6 -0
  38. package/dist/cjs/version-wrapper.js +1 -1
  39. package/dist/cjs/version.json +1 -1
  40. package/dist/es2019/create-editor/feature-flags-from-props.js +1 -2
  41. package/dist/es2019/editor-next/index.js +39 -30
  42. package/dist/es2019/editor.js +29 -232
  43. package/dist/es2019/i18n/en_ZZ.js +32 -6
  44. package/dist/es2019/index.js +1 -2
  45. package/dist/es2019/labs/next/presets/default.js +2 -1
  46. package/dist/es2019/plugins/base/index.js +0 -7
  47. package/dist/es2019/plugins/card/nodeviews/blockCard.js +8 -0
  48. package/dist/es2019/plugins/card/nodeviews/embedCard.js +8 -0
  49. package/dist/es2019/plugins/card/nodeviews/inlineCard.js +5 -1
  50. package/dist/es2019/plugins/card/pm-plugins/doc.js +1 -2
  51. package/dist/es2019/plugins/card/toolbar.js +8 -6
  52. package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +2 -2
  53. package/dist/es2019/plugins/code-block/index.js +7 -5
  54. package/dist/es2019/plugins/code-block/toolbar.js +5 -6
  55. package/dist/es2019/plugins/copy-button/commands.js +2 -3
  56. package/dist/es2019/plugins/copy-button/toolbar.js +7 -8
  57. package/dist/es2019/plugins/expand/index.js +1 -1
  58. package/dist/es2019/plugins/expand/toolbar.js +5 -6
  59. package/dist/es2019/plugins/extension/index.js +1 -1
  60. package/dist/es2019/plugins/extension/toolbar.js +5 -6
  61. package/dist/es2019/plugins/floating-toolbar/index.js +3 -2
  62. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  63. package/dist/es2019/plugins/layout/index.js +8 -5
  64. package/dist/es2019/plugins/layout/toolbar.js +5 -6
  65. package/dist/es2019/plugins/media/toolbar/index.js +35 -24
  66. package/dist/es2019/plugins/panel/index.js +2 -2
  67. package/dist/es2019/plugins/panel/toolbar.js +7 -8
  68. package/dist/es2019/plugins/placeholder-text/index.js +7 -5
  69. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +21 -0
  70. package/dist/es2019/ui/CollapsedEditor/index.js +1 -2
  71. package/dist/es2019/ui/ColorPickerButton/index.js +2 -2
  72. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +5 -10
  73. package/dist/es2019/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  74. package/dist/es2019/ui/styles.js +6 -0
  75. package/dist/es2019/version-wrapper.js +1 -1
  76. package/dist/es2019/version.json +1 -1
  77. package/dist/esm/create-editor/feature-flags-from-props.js +1 -2
  78. package/dist/esm/editor-next/index.js +42 -33
  79. package/dist/esm/editor.js +29 -270
  80. package/dist/esm/i18n/en_ZZ.js +32 -6
  81. package/dist/esm/index.js +1 -2
  82. package/dist/esm/labs/next/presets/default.js +2 -1
  83. package/dist/esm/plugins/base/index.js +0 -9
  84. package/dist/esm/plugins/card/nodeviews/blockCard.js +7 -0
  85. package/dist/esm/plugins/card/nodeviews/embedCard.js +7 -0
  86. package/dist/esm/plugins/card/nodeviews/inlineCard.js +5 -1
  87. package/dist/esm/plugins/card/pm-plugins/doc.js +1 -2
  88. package/dist/esm/plugins/card/toolbar.js +7 -6
  89. package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +2 -2
  90. package/dist/esm/plugins/code-block/index.js +7 -5
  91. package/dist/esm/plugins/code-block/toolbar.js +5 -5
  92. package/dist/esm/plugins/copy-button/commands.js +2 -3
  93. package/dist/esm/plugins/copy-button/toolbar.js +7 -8
  94. package/dist/esm/plugins/expand/index.js +1 -1
  95. package/dist/esm/plugins/expand/toolbar.js +40 -39
  96. package/dist/esm/plugins/extension/index.js +1 -1
  97. package/dist/esm/plugins/extension/toolbar.js +5 -5
  98. package/dist/esm/plugins/floating-toolbar/index.js +3 -2
  99. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  100. package/dist/esm/plugins/layout/index.js +8 -4
  101. package/dist/esm/plugins/layout/toolbar.js +5 -6
  102. package/dist/esm/plugins/media/toolbar/index.js +31 -24
  103. package/dist/esm/plugins/panel/index.js +2 -1
  104. package/dist/esm/plugins/panel/toolbar.js +7 -7
  105. package/dist/esm/plugins/placeholder-text/index.js +7 -5
  106. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +19 -0
  107. package/dist/esm/ui/CollapsedEditor/index.js +1 -2
  108. package/dist/esm/ui/ColorPickerButton/index.js +2 -2
  109. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +5 -10
  110. package/dist/esm/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  111. package/dist/esm/ui/styles.js +6 -0
  112. package/dist/esm/version-wrapper.js +1 -1
  113. package/dist/esm/version.json +1 -1
  114. package/dist/types/editor-next/index.d.ts +0 -6
  115. package/dist/types/editor.d.ts +1 -137
  116. package/dist/types/i18n/en_ZZ.d.ts +28 -2
  117. package/dist/types/index.d.ts +0 -1
  118. package/dist/types/labs/next/presets/cxhtml.d.ts +106 -0
  119. package/dist/types/labs/next/presets/default.d.ts +212 -0
  120. package/dist/types/labs/next/presets/mobile.d.ts +106 -0
  121. package/dist/types/plugins/base/index.d.ts +0 -4
  122. package/dist/types/plugins/card/index.d.ts +2 -2
  123. package/dist/types/plugins/card/nodeviews/blockCard.d.ts +3 -0
  124. package/dist/types/plugins/card/nodeviews/embedCard.d.ts +3 -0
  125. package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +1 -0
  126. package/dist/types/plugins/card/pm-plugins/doc.d.ts +1 -1
  127. package/dist/types/plugins/card/pm-plugins/keymap.d.ts +1 -1
  128. package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -2
  129. package/dist/types/plugins/card/toolbar.d.ts +1 -2
  130. package/dist/types/plugins/card/types.d.ts +1 -1
  131. package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -2
  132. package/dist/types/plugins/card/ui/link-toolbar-button-group-options.d.ts +1 -1
  133. package/dist/types/plugins/card/ui/types.d.ts +1 -1
  134. package/dist/types/plugins/code-block/index.d.ts +7 -1
  135. package/dist/types/plugins/code-block/toolbar.d.ts +2 -1
  136. package/dist/types/plugins/copy-button/commands.d.ts +2 -1
  137. package/dist/types/plugins/copy-button/toolbar.d.ts +3 -2
  138. package/dist/types/plugins/expand/index.d.ts +2 -1
  139. package/dist/types/plugins/expand/toolbar.d.ts +2 -1
  140. package/dist/types/plugins/extension/index.d.ts +7 -2
  141. package/dist/types/plugins/extension/toolbar.d.ts +2 -1
  142. package/dist/types/plugins/floating-toolbar/index.d.ts +2 -1
  143. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -1
  144. package/dist/types/plugins/layout/index.d.ts +7 -1
  145. package/dist/types/plugins/layout/toolbar.d.ts +2 -1
  146. package/dist/types/plugins/media/index.d.ts +3 -1
  147. package/dist/types/plugins/panel/index.d.ts +2 -0
  148. package/dist/types/plugins/panel/toolbar.d.ts +3 -2
  149. package/dist/types/plugins/placeholder-text/index.d.ts +3 -1
  150. package/dist/types/ui/CollapsedEditor/index.d.ts +1 -2
  151. package/dist/types/ui/ColorPickerButton/index.d.ts +2 -2
  152. package/dist/types-ts4.5/editor-next/index.d.ts +0 -6
  153. package/dist/types-ts4.5/editor.d.ts +1 -137
  154. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +28 -2
  155. package/dist/types-ts4.5/index.d.ts +0 -1
  156. package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +122 -0
  157. package/dist/types-ts4.5/labs/next/presets/default.d.ts +244 -0
  158. package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +122 -0
  159. package/dist/types-ts4.5/plugins/base/index.d.ts +0 -4
  160. package/dist/types-ts4.5/plugins/card/index.d.ts +2 -2
  161. package/dist/types-ts4.5/plugins/card/nodeviews/blockCard.d.ts +3 -0
  162. package/dist/types-ts4.5/plugins/card/nodeviews/embedCard.d.ts +3 -0
  163. package/dist/types-ts4.5/plugins/card/nodeviews/inlineCard.d.ts +1 -0
  164. package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +1 -1
  165. package/dist/types-ts4.5/plugins/card/pm-plugins/keymap.d.ts +1 -1
  166. package/dist/types-ts4.5/plugins/card/pm-plugins/main.d.ts +1 -2
  167. package/dist/types-ts4.5/plugins/card/toolbar.d.ts +1 -2
  168. package/dist/types-ts4.5/plugins/card/types.d.ts +1 -1
  169. package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +1 -2
  170. package/dist/types-ts4.5/plugins/card/ui/link-toolbar-button-group-options.d.ts +1 -1
  171. package/dist/types-ts4.5/plugins/card/ui/types.d.ts +1 -1
  172. package/dist/types-ts4.5/plugins/code-block/index.d.ts +7 -1
  173. package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +2 -1
  174. package/dist/types-ts4.5/plugins/copy-button/commands.d.ts +2 -1
  175. package/dist/types-ts4.5/plugins/copy-button/toolbar.d.ts +3 -2
  176. package/dist/types-ts4.5/plugins/expand/index.d.ts +3 -1
  177. package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +2 -1
  178. package/dist/types-ts4.5/plugins/extension/index.d.ts +4 -2
  179. package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +2 -1
  180. package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +3 -1
  181. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -1
  182. package/dist/types-ts4.5/plugins/layout/index.d.ts +7 -1
  183. package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +2 -1
  184. package/dist/types-ts4.5/plugins/media/index.d.ts +3 -1
  185. package/dist/types-ts4.5/plugins/panel/index.d.ts +4 -0
  186. package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +3 -2
  187. package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +5 -1
  188. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -2
  189. package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +2 -2
  190. package/package.json +23 -18
  191. package/report.api.md +5 -93
  192. package/dist/cjs/editor-next/editor-migration-component.js +0 -54
  193. package/dist/cjs/plugins/base/pm-plugins/decoration.js +0 -122
  194. package/dist/es2019/editor-next/editor-migration-component.js +0 -30
  195. package/dist/es2019/plugins/base/pm-plugins/decoration.js +0 -111
  196. package/dist/esm/editor-next/editor-migration-component.js +0 -47
  197. package/dist/esm/plugins/base/pm-plugins/decoration.js +0 -113
  198. package/dist/types/editor-next/editor-migration-component.d.ts +0 -6
  199. package/dist/types/plugins/base/pm-plugins/decoration.d.ts +0 -24
  200. package/dist/types-ts4.5/editor-next/editor-migration-component.d.ts +0 -6
  201. package/dist/types-ts4.5/plugins/base/pm-plugins/decoration.d.ts +0 -24
@@ -1,146 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import PropTypes from 'prop-types';
4
- import { EditorView } from 'prosemirror-view';
5
3
  import React from 'react';
6
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
7
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
8
- import type { Transformer, AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
9
- import EditorActions from './actions';
10
- import { Context } from './editor-next/utils/editorPropTypes';
11
- import { EventDispatcher } from './event-dispatcher';
12
- import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
13
- import { QuickInsertOptions, QuickInsertProvider } from './plugins/quick-insert/types';
14
4
  import { EditorProps } from './types/editor-props';
15
- import { ProviderFactoryState } from './editor-next/hooks/useProviderFactory';
16
5
  export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, FeedbackInfo, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
17
- type PresetState = {
18
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
19
- };
20
- export default class Editor extends React.Component<EditorProps, ProviderFactoryState & PresetState> {
21
- /**
22
- * WARNING: Code should be shared between Editor + EditorNext
23
- * If you are making changes that affect both, consider making them
24
- * in editor-next/editor-internal.tsx or editor-next/editor-utils.ts
25
- */
6
+ export default class Editor extends React.Component<EditorProps> {
26
7
  static defaultProps: EditorProps;
27
- static contextTypes: {
28
- editorActions: PropTypes.Requireable<object>;
29
- };
30
- static propTypes: {
31
- minHeight: ({ appearance, minHeight, }: Pick<EditorProps, "appearance" | "minHeight">) => Error | null;
32
- };
33
- private providerFactory;
34
- private editorActions;
35
- private createAnalyticsEvent?;
36
8
  private editorSessionId;
37
- private experienceStore?;
38
- private startTime?;
39
- constructor(props: EditorProps, context: Context);
40
- /**
41
- * Consider any changes here to corresponding file for `EditorNext` in
42
- * `useProviderFactory` (editor-next/hooks/useProviderFactory.ts) and
43
- * `useMeasureEditorMountTime` (editor-next/hooks/useMeasureEditorMountTime.ts)
44
- */
45
- componentDidMount(): void;
46
- /**
47
- * Consider any changes here to corresponding file for `EditorNext` in
48
- * `useProviderFactory` (editor-next/hooks/useProviderFactory.ts)
49
- */
50
- componentDidUpdate(prevProps: EditorProps): void;
51
- /**
52
- * Consider any changes here to corresponding file for `EditorNext` in
53
- * `useProviderFactory` (editor-next/hooks/useProviderFactory.ts) and
54
- * `useMeasureEditorMountTime` (editor-next/hooks/useMeasureEditorMountTime.ts)
55
- */
56
- componentWillUnmount(): void;
57
- /**
58
- * @private
59
- * @deprecated - Do not override this at all, this is an anti-pattern.
60
- * Please reach out to the Editor team if you were previously using this
61
- * and need to find a workaround.
62
- */
63
- trackEditorActions(editorActions: EditorActions & {
64
- _contentRetrievalTracking?: {
65
- getValueTracked: boolean;
66
- samplingCounters: {
67
- success: number;
68
- failure: number;
69
- };
70
- };
71
- }, props: EditorProps): EditorActions<any> & {
72
- _contentRetrievalTracking?: {
73
- getValueTracked: boolean;
74
- samplingCounters: {
75
- success: number;
76
- failure: number;
77
- };
78
- } | undefined;
79
- };
80
- /**
81
- * @private
82
- * @deprecated - Do not override this at all, this is an antipattern.
83
- * Please reach out to the Editor team if you were previously using this
84
- * and need to find a workaround.
85
- */
86
- prepareExtensionProvider: (extensionProviders?: import("./types").ExtensionProvidersProp | undefined) => ExtensionProvider<any> | undefined;
87
- /**
88
- * @private
89
- * @deprecated - Do not override this at all, this is an antipattern.
90
- * Please reach out to the Editor team if you were previously using this
91
- * and need to find a workaround.
92
- */
93
- prepareQuickInsertProvider: (extensionProvider?: ExtensionProvider, quickInsert?: QuickInsertOptions) => Promise<QuickInsertProvider> | undefined;
94
- /**
95
- * @private
96
- * @deprecated - Do not override this at all, this is an antipattern.
97
- * Please reach out to the Editor team if you were previously using this
98
- * and need to find a workaround.
99
- */
100
- onEditorCreated(instance: {
101
- view: EditorView;
102
- eventDispatcher: EventDispatcher;
103
- transformer?: Transformer<string>;
104
- }): void;
105
- /**
106
- * @private
107
- * @deprecated - Do not override this at all, this is an antipattern.
108
- * Please reach out to the Editor team if you were previously using this
109
- * and need to find a workaround.
110
- */
111
- onEditorDestroyed(_instance: {
112
- view: EditorView;
113
- transformer?: Transformer<string>;
114
- }): void;
115
- /**
116
- * @private
117
- * @deprecated - Do not override this at all, this is an antipattern.
118
- * Please reach out to the Editor team if you were previously using this
119
- * and need to find a workaround.
120
- */
121
- handleSave: (view: EditorView) => void;
122
- /**
123
- * @private
124
- * @deprecated - Do not override this at all, this is an antipattern.
125
- * Please reach out to the Editor team if you were previously using this
126
- * and need to find a workaround.
127
- */
128
- handleAnalyticsEvent: FireAnalyticsCallback;
129
- /**
130
- * @private
131
- * @deprecated - Do not override this at all, this is an antipattern.
132
- * Please reach out to the Editor team if you were previously using this
133
- * and need to find a workaround.
134
- */
135
- registerEditorForActions(editorView: EditorView, eventDispatcher: EventDispatcher, contentTransformer?: Transformer<string>): void;
136
- private getFeatureFlags;
137
- /**
138
- * @private
139
- * @deprecated - Do not override this at all, this is an antipattern.
140
- * Please reach out to the Editor team if you were previously using this
141
- * and need to find a workaround.
142
- */
143
- unregisterEditorFromActions(): void;
144
- private getExperienceStore;
145
9
  render(): jsx.JSX.Element;
146
10
  }
@@ -6,13 +6,13 @@
6
6
  */
7
7
  declare const _default: {
8
8
  'fabric.editor.addAltText': string;
9
+ 'fabric.editor.addImageBorder': string;
9
10
  'fabric.editor.alignCenter': string;
10
11
  'fabric.editor.alignLeft': string;
11
12
  'fabric.editor.alignRight': string;
12
13
  'fabric.editor.alignment': string;
13
14
  'fabric.editor.altText': string;
14
15
  'fabric.editor.alttext.validation': string;
15
- 'fabric.editor.annotate': string;
16
16
  'fabric.editor.annotationToolbar': string;
17
17
  'fabric.editor.backLink': string;
18
18
  'fabric.editor.blockCardUnavailable': string;
@@ -60,6 +60,7 @@ declare const _default: {
60
60
  'fabric.editor.customPanel.description': string;
61
61
  'fabric.editor.decisionPlaceholder': string;
62
62
  'fabric.editor.defaultAltText': string;
63
+ 'fabric.editor.description': string;
63
64
  'fabric.editor.displayBlock': string;
64
65
  'fabric.editor.displayEmbed': string;
65
66
  'fabric.editor.displayInline': string;
@@ -75,6 +76,7 @@ declare const _default: {
75
76
  'fabric.editor.editStatusColor': string;
76
77
  'fabric.editor.editStatusText': string;
77
78
  'fabric.editor.editableContentLabel': string;
79
+ 'fabric.editor.editorAssistiveLabel': string;
78
80
  'fabric.editor.editorHelp': string;
79
81
  'fabric.editor.editors': string;
80
82
  'fabric.editor.elementBrowser.help': string;
@@ -101,12 +103,16 @@ declare const _default: {
101
103
  'fabric.editor.errorPanel.description': string;
102
104
  'fabric.editor.extension.confirmDeleteLinkedModalMessage': string;
103
105
  'fabric.editor.extension.confirmDeleteLinkedModalOKButton': string;
106
+ 'fabric.editor.extension.deleteElementTitle': string;
107
+ 'fabric.editor.extension.sourceNoTitledName': string;
104
108
  'fabric.editor.extensions.config-panel.save-indicator': string;
105
109
  'fabric.editor.find': string;
106
110
  'fabric.editor.findNext': string;
107
111
  'fabric.editor.findPrevious': string;
108
112
  'fabric.editor.findReplaceToolbarButton': string;
109
113
  'fabric.editor.floatingToolbar.confirmModalCancel': string;
114
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
115
+ 'fabric.editor.floatingToolbar.confirmModalConnectedUnit': string;
110
116
  'fabric.editor.floatingToolbar.confirmModalHeading': string;
111
117
  'fabric.editor.floatingToolbar.confirmModalOK': string;
112
118
  'fabric.editor.floatingToolbar.floatingToolbarAnnouncer': string;
@@ -137,6 +143,12 @@ declare const _default: {
137
143
  'fabric.editor.hyperlink.searchLinkAriaDescription': string;
138
144
  'fabric.editor.hyperlink.searchLinkResults': string;
139
145
  'fabric.editor.hyperlinkToolbarPlaceholder': string;
146
+ 'fabric.editor.imageBorderBold': string;
147
+ 'fabric.editor.imageBorderColor': string;
148
+ 'fabric.editor.imageBorderMedium': string;
149
+ 'fabric.editor.imageBorderOptions': string;
150
+ 'fabric.editor.imageBorderSize': string;
151
+ 'fabric.editor.imageBorderSubtle': string;
140
152
  'fabric.editor.improvement': string;
141
153
  'fabric.editor.indent': string;
142
154
  'fabric.editor.info': string;
@@ -158,9 +170,12 @@ declare const _default: {
158
170
  'fabric.editor.matchCase': string;
159
171
  'fabric.editor.mediaAddLink': string;
160
172
  'fabric.editor.mediaGroupDeleteLabel': string;
173
+ 'fabric.editor.mentionNode.label': string;
161
174
  'fabric.editor.mentionsAddLabel': string;
162
175
  'fabric.editor.mentionsIconLabel': string;
163
176
  'fabric.editor.moreFormatting': string;
177
+ 'fabric.editor.navigate.toolbar.editor': string;
178
+ 'fabric.editor.navigate.toolbar.floating': string;
164
179
  'fabric.editor.noResultsFound': string;
165
180
  'fabric.editor.noSearchResults': string;
166
181
  'fabric.editor.normal': string;
@@ -181,6 +196,7 @@ declare const _default: {
181
196
  'fabric.editor.placeholderTextPlaceholder': string;
182
197
  'fabric.editor.quickInsert': string;
183
198
  'fabric.editor.redo': string;
199
+ 'fabric.editor.removeImageBorder': string;
184
200
  'fabric.editor.replace': string;
185
201
  'fabric.editor.replaceAll': string;
186
202
  'fabric.editor.replaceWith': string;
@@ -189,6 +205,7 @@ declare const _default: {
189
205
  'fabric.editor.searchResults': string;
190
206
  'fabric.editor.selectLanguage': string;
191
207
  'fabric.editor.settingsLinks': string;
208
+ 'fabric.editor.shortcut': string;
192
209
  'fabric.editor.single': string;
193
210
  'fabric.editor.statusPlaceholder': string;
194
211
  'fabric.editor.story': string;
@@ -212,7 +229,15 @@ declare const _default: {
212
229
  'fabric.editor.toolbarLabel': string;
213
230
  'fabric.editor.toolbarMediaTitle': string;
214
231
  'fabric.editor.twoColumns': string;
215
- 'fabric.editor.typeAheadResultLabel': string;
232
+ 'fabric.editor.typeAhead.popupLabel': string;
233
+ 'fabric.editor.typeAhead.quickInsertInputLabel': string;
234
+ 'fabric.editor.typeAhead.quickInsertPopupLabel': string;
235
+ 'fabric.editor.typeahead.emojiInputLabel': string;
236
+ 'fabric.editor.typeahead.emojiListItemLabel': string;
237
+ 'fabric.editor.typeahead.emojiPopupLabel': string;
238
+ 'fabric.editor.typeahead.mentionInputLabel': string;
239
+ 'fabric.editor.typeahead.mentionPopupLabel': string;
240
+ 'fabric.editor.typeahead.metionListItemLabel': string;
216
241
  'fabric.editor.unableToOpenLink': string;
217
242
  'fabric.editor.underline': string;
218
243
  'fabric.editor.undo': string;
@@ -227,5 +252,6 @@ declare const _default: {
227
252
  'fabric.editor.warningPanel.description': string;
228
253
  'fabric.editor.wrapLeft': string;
229
254
  'fabric.editor.wrapRight': string;
255
+ 'fabric.emoji.label': string;
230
256
  };
231
257
  export default _default;
@@ -89,4 +89,3 @@ export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
89
89
  export { default as messages, statusMessages, dateMessages } from './messages';
90
90
  export { createTypeAheadTools } from './plugins/type-ahead/api';
91
91
  export { createQuickInsertTools } from './plugins/quick-insert/api';
92
- export { default as EditorMigrationComponent } from './editor-next/editor-migration-component';
@@ -25,8 +25,104 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
25
25
  ], [
26
26
  (config: import("../../../plugins/code-block/types").CodeBlockOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"codeBlock", {
27
27
  pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
28
+ dependencies: [
29
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
30
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
31
+ actions: {
32
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
33
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
34
+ };
35
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
36
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
37
+ actions: {
38
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
39
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
40
+ };
41
+ }>,
42
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
43
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
44
+ sharedState: {
45
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
46
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
47
+ };
48
+ dependencies: [
49
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
50
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
51
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
52
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
53
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
54
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
55
+ }>
56
+ ];
57
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
58
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
59
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
60
+ sharedState: {
61
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
62
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
63
+ };
64
+ dependencies: [
65
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
66
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
67
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
68
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
69
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
70
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
71
+ }>
72
+ ];
73
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
74
+ }>>
75
+ ];
28
76
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"codeBlock", {
29
77
  pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
78
+ dependencies: [
79
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
80
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
81
+ actions: {
82
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
83
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
84
+ };
85
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
86
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
87
+ actions: {
88
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
89
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
90
+ };
91
+ }>,
92
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
93
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
94
+ sharedState: {
95
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
96
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
97
+ };
98
+ dependencies: [
99
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
100
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
101
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
102
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
103
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
104
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
105
+ }>
106
+ ];
107
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
108
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
109
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
110
+ sharedState: {
111
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
112
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
113
+ };
114
+ dependencies: [
115
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
116
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
117
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
118
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
119
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
120
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
121
+ }>
122
+ ];
123
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
124
+ }>>
125
+ ];
30
126
  }>,
31
127
  (config?: import("../../../plugins/selection/types").SelectionPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"selection", {
32
128
  pluginConfiguration: import("../../../plugins/selection/types").SelectionPluginOptions | undefined;
@@ -41,6 +137,19 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
41
137
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
42
138
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
43
139
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
140
+ }>,
141
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
142
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
143
+ actions: {
144
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
145
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
146
+ };
147
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
148
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
149
+ actions: {
150
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
151
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
152
+ };
44
153
  }>
45
154
  ];
46
155
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
@@ -51,6 +160,19 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
51
160
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
52
161
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
53
162
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
163
+ }>,
164
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
165
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
166
+ actions: {
167
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
168
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
169
+ };
170
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
171
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
172
+ actions: {
173
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
174
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
175
+ };
54
176
  }>
55
177
  ];
56
178
  }>,