@atlaskit/editor-core 184.0.4 → 185.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/cjs/create-editor/feature-flags-from-props.js +1 -2
  3. package/dist/cjs/editor-next/index.js +41 -34
  4. package/dist/cjs/editor.js +30 -269
  5. package/dist/cjs/i18n/en_ZZ.js +32 -6
  6. package/dist/cjs/index.js +0 -7
  7. package/dist/cjs/labs/next/presets/default.js +2 -1
  8. package/dist/cjs/plugins/base/index.js +0 -12
  9. package/dist/cjs/plugins/card/nodeviews/blockCard.js +7 -0
  10. package/dist/cjs/plugins/card/nodeviews/embedCard.js +7 -0
  11. package/dist/cjs/plugins/card/nodeviews/inlineCard.js +5 -1
  12. package/dist/cjs/plugins/card/pm-plugins/doc.js +1 -2
  13. package/dist/cjs/plugins/card/toolbar.js +11 -9
  14. package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +4 -4
  15. package/dist/cjs/plugins/code-block/index.js +7 -5
  16. package/dist/cjs/plugins/code-block/toolbar.js +5 -5
  17. package/dist/cjs/plugins/copy-button/commands.js +2 -3
  18. package/dist/cjs/plugins/copy-button/toolbar.js +7 -8
  19. package/dist/cjs/plugins/expand/index.js +1 -1
  20. package/dist/cjs/plugins/expand/toolbar.js +40 -39
  21. package/dist/cjs/plugins/extension/index.js +1 -1
  22. package/dist/cjs/plugins/extension/toolbar.js +5 -5
  23. package/dist/cjs/plugins/floating-toolbar/index.js +3 -2
  24. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  25. package/dist/cjs/plugins/layout/index.js +8 -4
  26. package/dist/cjs/plugins/layout/toolbar.js +5 -6
  27. package/dist/cjs/plugins/media/toolbar/index.js +31 -24
  28. package/dist/cjs/plugins/panel/index.js +2 -1
  29. package/dist/cjs/plugins/panel/toolbar.js +7 -7
  30. package/dist/cjs/plugins/placeholder-text/index.js +7 -5
  31. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +19 -0
  32. package/dist/cjs/ui/CollapsedEditor/index.js +1 -2
  33. package/dist/cjs/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  34. package/dist/cjs/version-wrapper.js +1 -1
  35. package/dist/cjs/version.json +1 -1
  36. package/dist/es2019/create-editor/feature-flags-from-props.js +1 -2
  37. package/dist/es2019/editor-next/index.js +39 -30
  38. package/dist/es2019/editor.js +29 -232
  39. package/dist/es2019/i18n/en_ZZ.js +32 -6
  40. package/dist/es2019/index.js +1 -2
  41. package/dist/es2019/labs/next/presets/default.js +2 -1
  42. package/dist/es2019/plugins/base/index.js +0 -7
  43. package/dist/es2019/plugins/card/nodeviews/blockCard.js +8 -0
  44. package/dist/es2019/plugins/card/nodeviews/embedCard.js +8 -0
  45. package/dist/es2019/plugins/card/nodeviews/inlineCard.js +5 -1
  46. package/dist/es2019/plugins/card/pm-plugins/doc.js +1 -2
  47. package/dist/es2019/plugins/card/toolbar.js +8 -6
  48. package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +2 -2
  49. package/dist/es2019/plugins/code-block/index.js +7 -5
  50. package/dist/es2019/plugins/code-block/toolbar.js +5 -6
  51. package/dist/es2019/plugins/copy-button/commands.js +2 -3
  52. package/dist/es2019/plugins/copy-button/toolbar.js +7 -8
  53. package/dist/es2019/plugins/expand/index.js +1 -1
  54. package/dist/es2019/plugins/expand/toolbar.js +5 -6
  55. package/dist/es2019/plugins/extension/index.js +1 -1
  56. package/dist/es2019/plugins/extension/toolbar.js +5 -6
  57. package/dist/es2019/plugins/floating-toolbar/index.js +3 -2
  58. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  59. package/dist/es2019/plugins/layout/index.js +8 -5
  60. package/dist/es2019/plugins/layout/toolbar.js +5 -6
  61. package/dist/es2019/plugins/media/toolbar/index.js +35 -24
  62. package/dist/es2019/plugins/panel/index.js +2 -2
  63. package/dist/es2019/plugins/panel/toolbar.js +7 -8
  64. package/dist/es2019/plugins/placeholder-text/index.js +7 -5
  65. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +21 -0
  66. package/dist/es2019/ui/CollapsedEditor/index.js +1 -2
  67. package/dist/es2019/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  68. package/dist/es2019/version-wrapper.js +1 -1
  69. package/dist/es2019/version.json +1 -1
  70. package/dist/esm/create-editor/feature-flags-from-props.js +1 -2
  71. package/dist/esm/editor-next/index.js +42 -33
  72. package/dist/esm/editor.js +29 -270
  73. package/dist/esm/i18n/en_ZZ.js +32 -6
  74. package/dist/esm/index.js +1 -2
  75. package/dist/esm/labs/next/presets/default.js +2 -1
  76. package/dist/esm/plugins/base/index.js +0 -9
  77. package/dist/esm/plugins/card/nodeviews/blockCard.js +7 -0
  78. package/dist/esm/plugins/card/nodeviews/embedCard.js +7 -0
  79. package/dist/esm/plugins/card/nodeviews/inlineCard.js +5 -1
  80. package/dist/esm/plugins/card/pm-plugins/doc.js +1 -2
  81. package/dist/esm/plugins/card/toolbar.js +7 -6
  82. package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +2 -2
  83. package/dist/esm/plugins/code-block/index.js +7 -5
  84. package/dist/esm/plugins/code-block/toolbar.js +5 -5
  85. package/dist/esm/plugins/copy-button/commands.js +2 -3
  86. package/dist/esm/plugins/copy-button/toolbar.js +7 -8
  87. package/dist/esm/plugins/expand/index.js +1 -1
  88. package/dist/esm/plugins/expand/toolbar.js +40 -39
  89. package/dist/esm/plugins/extension/index.js +1 -1
  90. package/dist/esm/plugins/extension/toolbar.js +5 -5
  91. package/dist/esm/plugins/floating-toolbar/index.js +3 -2
  92. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  93. package/dist/esm/plugins/layout/index.js +8 -4
  94. package/dist/esm/plugins/layout/toolbar.js +5 -6
  95. package/dist/esm/plugins/media/toolbar/index.js +31 -24
  96. package/dist/esm/plugins/panel/index.js +2 -1
  97. package/dist/esm/plugins/panel/toolbar.js +7 -7
  98. package/dist/esm/plugins/placeholder-text/index.js +7 -5
  99. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +19 -0
  100. package/dist/esm/ui/CollapsedEditor/index.js +1 -2
  101. package/dist/esm/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  102. package/dist/esm/version-wrapper.js +1 -1
  103. package/dist/esm/version.json +1 -1
  104. package/dist/types/editor-next/index.d.ts +0 -6
  105. package/dist/types/editor.d.ts +1 -137
  106. package/dist/types/i18n/en_ZZ.d.ts +28 -2
  107. package/dist/types/index.d.ts +0 -1
  108. package/dist/types/labs/next/presets/cxhtml.d.ts +106 -0
  109. package/dist/types/labs/next/presets/default.d.ts +212 -0
  110. package/dist/types/labs/next/presets/mobile.d.ts +106 -0
  111. package/dist/types/plugins/base/index.d.ts +0 -4
  112. package/dist/types/plugins/card/index.d.ts +2 -2
  113. package/dist/types/plugins/card/nodeviews/blockCard.d.ts +3 -0
  114. package/dist/types/plugins/card/nodeviews/embedCard.d.ts +3 -0
  115. package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +1 -0
  116. package/dist/types/plugins/card/pm-plugins/doc.d.ts +1 -1
  117. package/dist/types/plugins/card/pm-plugins/keymap.d.ts +1 -1
  118. package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -2
  119. package/dist/types/plugins/card/toolbar.d.ts +1 -2
  120. package/dist/types/plugins/card/types.d.ts +1 -1
  121. package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -2
  122. package/dist/types/plugins/card/ui/link-toolbar-button-group-options.d.ts +1 -1
  123. package/dist/types/plugins/card/ui/types.d.ts +1 -1
  124. package/dist/types/plugins/code-block/index.d.ts +7 -1
  125. package/dist/types/plugins/code-block/toolbar.d.ts +2 -1
  126. package/dist/types/plugins/copy-button/commands.d.ts +2 -1
  127. package/dist/types/plugins/copy-button/toolbar.d.ts +3 -2
  128. package/dist/types/plugins/expand/index.d.ts +2 -1
  129. package/dist/types/plugins/expand/toolbar.d.ts +2 -1
  130. package/dist/types/plugins/extension/index.d.ts +7 -2
  131. package/dist/types/plugins/extension/toolbar.d.ts +2 -1
  132. package/dist/types/plugins/floating-toolbar/index.d.ts +2 -1
  133. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -1
  134. package/dist/types/plugins/layout/index.d.ts +7 -1
  135. package/dist/types/plugins/layout/toolbar.d.ts +2 -1
  136. package/dist/types/plugins/media/index.d.ts +3 -1
  137. package/dist/types/plugins/panel/index.d.ts +2 -0
  138. package/dist/types/plugins/panel/toolbar.d.ts +3 -2
  139. package/dist/types/plugins/placeholder-text/index.d.ts +3 -1
  140. package/dist/types/ui/CollapsedEditor/index.d.ts +1 -2
  141. package/dist/types-ts4.5/editor-next/index.d.ts +0 -6
  142. package/dist/types-ts4.5/editor.d.ts +1 -137
  143. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +28 -2
  144. package/dist/types-ts4.5/index.d.ts +0 -1
  145. package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +122 -0
  146. package/dist/types-ts4.5/labs/next/presets/default.d.ts +244 -0
  147. package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +122 -0
  148. package/dist/types-ts4.5/plugins/base/index.d.ts +0 -4
  149. package/dist/types-ts4.5/plugins/card/index.d.ts +2 -2
  150. package/dist/types-ts4.5/plugins/card/nodeviews/blockCard.d.ts +3 -0
  151. package/dist/types-ts4.5/plugins/card/nodeviews/embedCard.d.ts +3 -0
  152. package/dist/types-ts4.5/plugins/card/nodeviews/inlineCard.d.ts +1 -0
  153. package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +1 -1
  154. package/dist/types-ts4.5/plugins/card/pm-plugins/keymap.d.ts +1 -1
  155. package/dist/types-ts4.5/plugins/card/pm-plugins/main.d.ts +1 -2
  156. package/dist/types-ts4.5/plugins/card/toolbar.d.ts +1 -2
  157. package/dist/types-ts4.5/plugins/card/types.d.ts +1 -1
  158. package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +1 -2
  159. package/dist/types-ts4.5/plugins/card/ui/link-toolbar-button-group-options.d.ts +1 -1
  160. package/dist/types-ts4.5/plugins/card/ui/types.d.ts +1 -1
  161. package/dist/types-ts4.5/plugins/code-block/index.d.ts +7 -1
  162. package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +2 -1
  163. package/dist/types-ts4.5/plugins/copy-button/commands.d.ts +2 -1
  164. package/dist/types-ts4.5/plugins/copy-button/toolbar.d.ts +3 -2
  165. package/dist/types-ts4.5/plugins/expand/index.d.ts +3 -1
  166. package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +2 -1
  167. package/dist/types-ts4.5/plugins/extension/index.d.ts +4 -2
  168. package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +2 -1
  169. package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +3 -1
  170. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -1
  171. package/dist/types-ts4.5/plugins/layout/index.d.ts +7 -1
  172. package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +2 -1
  173. package/dist/types-ts4.5/plugins/media/index.d.ts +3 -1
  174. package/dist/types-ts4.5/plugins/panel/index.d.ts +4 -0
  175. package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +3 -2
  176. package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +5 -1
  177. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -2
  178. package/package.json +15 -10
  179. package/report.api.md +5 -93
  180. package/dist/cjs/editor-next/editor-migration-component.js +0 -54
  181. package/dist/cjs/plugins/base/pm-plugins/decoration.js +0 -122
  182. package/dist/es2019/editor-next/editor-migration-component.js +0 -30
  183. package/dist/es2019/plugins/base/pm-plugins/decoration.js +0 -111
  184. package/dist/esm/editor-next/editor-migration-component.js +0 -47
  185. package/dist/esm/plugins/base/pm-plugins/decoration.js +0 -113
  186. package/dist/types/editor-next/editor-migration-component.d.ts +0 -6
  187. package/dist/types/plugins/base/pm-plugins/decoration.d.ts +0 -24
  188. package/dist/types-ts4.5/editor-next/editor-migration-component.d.ts +0 -6
  189. package/dist/types-ts4.5/plugins/base/pm-plugins/decoration.d.ts +0 -24
@@ -54,8 +54,104 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
54
54
  ], [
55
55
  (config: CodeBlockOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"codeBlock", {
56
56
  pluginConfiguration: CodeBlockOptions;
57
+ dependencies: [
58
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
59
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
60
+ actions: {
61
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
62
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
63
+ };
64
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
65
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
66
+ actions: {
67
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
68
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
69
+ };
70
+ }>,
71
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
72
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
73
+ sharedState: {
74
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
75
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
76
+ };
77
+ dependencies: [
78
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
79
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
80
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
81
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
82
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
83
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
84
+ }>
85
+ ];
86
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
87
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
88
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
89
+ sharedState: {
90
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
91
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
92
+ };
93
+ dependencies: [
94
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
95
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
96
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
97
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
98
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
99
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
100
+ }>
101
+ ];
102
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
103
+ }>>
104
+ ];
57
105
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"codeBlock", {
58
106
  pluginConfiguration: CodeBlockOptions;
107
+ dependencies: [
108
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
109
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
110
+ actions: {
111
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
112
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
113
+ };
114
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
115
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
116
+ actions: {
117
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
118
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
119
+ };
120
+ }>,
121
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
122
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
123
+ sharedState: {
124
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
125
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
126
+ };
127
+ dependencies: [
128
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
129
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
130
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
131
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
132
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
133
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
134
+ }>
135
+ ];
136
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
137
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
138
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
139
+ sharedState: {
140
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
141
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
142
+ };
143
+ dependencies: [
144
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
145
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
146
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
147
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
148
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
149
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
150
+ }>
151
+ ];
152
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
153
+ }>>
154
+ ];
59
155
  }>,
60
156
  (config?: SelectionPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"selection", {
61
157
  pluginConfiguration: SelectionPluginOptions | undefined;
@@ -70,6 +166,19 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
70
166
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
71
167
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
72
168
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
169
+ }>,
170
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"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
+ };
176
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
177
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
178
+ actions: {
179
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
180
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
181
+ };
73
182
  }>
74
183
  ];
75
184
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
@@ -80,6 +189,19 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
80
189
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
81
190
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
82
191
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
192
+ }>,
193
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
194
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
195
+ actions: {
196
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
197
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
198
+ };
199
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
200
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
201
+ actions: {
202
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
203
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
204
+ };
83
205
  }>
84
206
  ];
85
207
  }>,
@@ -223,8 +345,104 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
223
345
  ], [
224
346
  (config: CodeBlockOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"codeBlock", {
225
347
  pluginConfiguration: CodeBlockOptions;
348
+ dependencies: [
349
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
350
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
351
+ actions: {
352
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
353
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
354
+ };
355
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
356
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
357
+ actions: {
358
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
359
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
360
+ };
361
+ }>,
362
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
363
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
364
+ sharedState: {
365
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
366
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
367
+ };
368
+ dependencies: [
369
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
370
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
371
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
372
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
373
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
374
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
375
+ }>
376
+ ];
377
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
378
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
379
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
380
+ sharedState: {
381
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
382
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
383
+ };
384
+ dependencies: [
385
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
386
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
387
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
388
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
389
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
390
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
391
+ }>
392
+ ];
393
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
394
+ }>>
395
+ ];
226
396
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"codeBlock", {
227
397
  pluginConfiguration: CodeBlockOptions;
398
+ dependencies: [
399
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
400
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
401
+ actions: {
402
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
403
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
404
+ };
405
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
406
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
407
+ actions: {
408
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
409
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
410
+ };
411
+ }>,
412
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
413
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
414
+ sharedState: {
415
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
416
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
417
+ };
418
+ dependencies: [
419
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
420
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
421
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
422
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
423
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
424
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
425
+ }>
426
+ ];
427
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
428
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
429
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
430
+ sharedState: {
431
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
432
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
433
+ };
434
+ dependencies: [
435
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
436
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
437
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
438
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
439
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
440
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
441
+ }>
442
+ ];
443
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
444
+ }>>
445
+ ];
228
446
  }>,
229
447
  (config?: SelectionPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"selection", {
230
448
  pluginConfiguration: SelectionPluginOptions | undefined;
@@ -239,6 +457,19 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
239
457
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
240
458
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
241
459
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
460
+ }>,
461
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
462
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
463
+ actions: {
464
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
465
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
466
+ };
467
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
468
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
469
+ actions: {
470
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
471
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
472
+ };
242
473
  }>
243
474
  ];
244
475
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
@@ -249,6 +480,19 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
249
480
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
250
481
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
251
482
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
483
+ }>,
484
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
485
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
486
+ actions: {
487
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
488
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
489
+ };
490
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
491
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
492
+ actions: {
493
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
494
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
495
+ };
252
496
  }>
253
497
  ];
254
498
  }>,
@@ -28,8 +28,104 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
28
28
  ], [
29
29
  (config: import("../../../plugins/code-block/types").CodeBlockOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"codeBlock", {
30
30
  pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
31
+ dependencies: [
32
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
33
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
34
+ actions: {
35
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
36
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
37
+ };
38
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
39
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
40
+ actions: {
41
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
42
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
43
+ };
44
+ }>,
45
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
46
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
47
+ sharedState: {
48
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
49
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
50
+ };
51
+ dependencies: [
52
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
53
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
54
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
55
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
56
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
57
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
58
+ }>
59
+ ];
60
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
61
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
62
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
63
+ sharedState: {
64
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
65
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
66
+ };
67
+ dependencies: [
68
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
69
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
70
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
71
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
72
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
73
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
74
+ }>
75
+ ];
76
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
77
+ }>>
78
+ ];
31
79
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"codeBlock", {
32
80
  pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
81
+ dependencies: [
82
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
83
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
84
+ actions: {
85
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
86
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
87
+ };
88
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
89
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
90
+ actions: {
91
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
92
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
93
+ };
94
+ }>,
95
+ import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
96
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
97
+ sharedState: {
98
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
99
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
100
+ };
101
+ dependencies: [
102
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
103
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
104
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
105
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
106
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
107
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
108
+ }>
109
+ ];
110
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
111
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
112
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
113
+ sharedState: {
114
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
115
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
116
+ };
117
+ dependencies: [
118
+ (config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
119
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
120
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
121
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
122
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
123
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
124
+ }>
125
+ ];
126
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
127
+ }>>
128
+ ];
33
129
  }>,
34
130
  (config?: import("../../../plugins/selection/types").SelectionPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"selection", {
35
131
  pluginConfiguration: import("../../../plugins/selection/types").SelectionPluginOptions | undefined;
@@ -44,6 +140,19 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
44
140
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
45
141
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
46
142
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
143
+ }>,
144
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
145
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
146
+ actions: {
147
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
148
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
149
+ };
150
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
151
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
152
+ actions: {
153
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
154
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
155
+ };
47
156
  }>
48
157
  ];
49
158
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
@@ -54,6 +163,19 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
54
163
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
55
164
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
56
165
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
166
+ }>,
167
+ (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
168
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
169
+ actions: {
170
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
171
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
172
+ };
173
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
174
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
175
+ actions: {
176
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
177
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
178
+ };
57
179
  }>
58
180
  ];
59
181
  }>,
@@ -1,5 +1,4 @@
1
1
  import { NextEditorPlugin } from '../../types';
2
- import { hoverDecoration } from './pm-plugins/decoration';
3
2
  import { ScrollGutterPluginOptions } from './pm-plugins/scroll-gutter';
4
3
  import { InputTracking, BrowserFreezetracking } from '../../types/performance-tracking';
5
4
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
@@ -16,8 +15,5 @@ declare const basePlugin: NextEditorPlugin<'base', {
16
15
  dependencies: [
17
16
  typeof featureFlagsPlugin
18
17
  ];
19
- actions: {
20
- hoverDecoration: typeof hoverDecoration;
21
- };
22
18
  }>;
23
19
  export default basePlugin;
@@ -3,7 +3,7 @@ import { CardPluginOptions } from './types';
3
3
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
5
  import type { widthPlugin } from '@atlaskit/editor-plugin-width';
6
- import type basePlugin from '../base';
6
+ import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
7
  import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
8
8
  declare const cardPlugin: NextEditorPlugin<'card', {
9
9
  pluginConfiguration: CardPluginOptions;
@@ -11,7 +11,7 @@ declare const cardPlugin: NextEditorPlugin<'card', {
11
11
  typeof featureFlagsPlugin,
12
12
  typeof analyticsPlugin,
13
13
  typeof widthPlugin,
14
- typeof basePlugin,
14
+ typeof decorationsPlugin,
15
15
  typeof gridPlugin
16
16
  ];
17
17
  }>;
@@ -14,6 +14,9 @@ export declare class BlockCardComponent extends React.PureComponent<SmartCardPro
14
14
  title?: string | undefined;
15
15
  }) => void;
16
16
  gapCursorSpan: () => JSX.Element | undefined;
17
+ onError: ({ err }: {
18
+ err?: Error | undefined;
19
+ }) => void;
17
20
  render(): JSX.Element;
18
21
  }
19
22
  export type BlockCardNodeViewProps = Pick<SmartCardProps, 'platform' | 'showServerActions'>;
@@ -33,6 +33,9 @@ export declare class EmbedCardComponent extends React.PureComponent<SmartCardPro
33
33
  */
34
34
  saveOriginalDimensionsAttributes: (height: number, width: number | undefined) => void;
35
35
  onHeightUpdate: (height: number) => void;
36
+ onError: ({ err }: {
37
+ err?: Error | undefined;
38
+ }) => void;
36
39
  render(): JSX.Element;
37
40
  }
38
41
  export type EmbedCardNodeViewProps = Pick<SmartCardProps, 'eventDispatcher' | 'allowResizing' | 'platform' | 'fullWidthMode' | 'dispatchAnalyticsEvent' | 'pluginInjectionApi'>;
@@ -15,6 +15,7 @@ export declare class InlineCardComponent extends React.PureComponent<SmartCardPr
15
15
  }) => void;
16
16
  onError: (data: {
17
17
  url?: string | undefined;
18
+ err?: Error | undefined;
18
19
  }) => void;
19
20
  render(): JSX.Element | null;
20
21
  }
@@ -3,7 +3,7 @@ import { Node } from 'prosemirror-model';
3
3
  import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import { CardAdf, CardAppearance } from '@atlaskit/editor-common/provider-factory';
5
5
  import { ACTION, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
- import { Command } from '../../../types';
6
+ import type { Command } from '@atlaskit/editor-common/types';
7
7
  import { CardReplacementInputMethod, Request } from '../types';
8
8
  export declare const replaceQueuedUrlWithCard: (url: string, cardData: CardAdf, analyticsAction?: ACTION, editorAnalyticsApi?: EditorAnalyticsAPI) => Command;
9
9
  export declare const handleFallbackWithAnalytics: (request: Request, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
@@ -1,3 +1,3 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { FeatureFlags } from '../../../types/feature-flags';
2
+ import type { FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  export declare function cardKeymap(featureFlags: FeatureFlags): SafePlugin;
@@ -1,7 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PMPluginFactoryParams } from '../../../types';
3
2
  import { CardPluginOptions, CardPluginState } from '../types';
4
- import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
+ import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
5
4
  import type cardPlugin from '../index';
6
5
  export { pluginKey } from './plugin-key';
7
6
  export declare const createPlugin: (options: CardPluginOptions, pluginInjectionApi: ExtractInjectionAPI<typeof cardPlugin> | undefined) => (pmPluginFactoryParams: PMPluginFactoryParams) => SafePlugin<CardPluginState>;
@@ -1,6 +1,5 @@
1
1
  import { CardPlatform } from '@atlaskit/smart-card';
2
- import { Command } from '../../types';
3
- import { FloatingToolbarHandler } from '../floating-toolbar/types';
2
+ import type { Command, FloatingToolbarHandler } from '@atlaskit/editor-common/types';
4
3
  import { CardOptions } from '@atlaskit/editor-common/card';
5
4
  import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
5
  import { LinkPickerOptions } from '../hyperlink/types';
@@ -1,4 +1,4 @@
1
- import { INPUT_METHOD, ACTION } from '../analytics/types/enums';
1
+ import { INPUT_METHOD, ACTION } from '@atlaskit/editor-common/analytics';
2
2
  import { CardProvider, CardAppearance } from '@atlaskit/editor-common/provider-factory';
3
3
  import { SmartLinkEvents } from '@atlaskit/smart-card';
4
4
  import { CreateUIAnalyticsEvent, UIAnalyticsEvent } from '@atlaskit/analytics-next';
@@ -4,8 +4,7 @@ import { Node } from 'prosemirror-model';
4
4
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
5
  import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
6
6
  import { LinkPickerOptions } from '../../hyperlink/types';
7
- import { Command } from '../../../types';
8
- import { FloatingToolbarItem, FloatingToolbarConfig } from '../../floating-toolbar/types';
7
+ import type { Command, FloatingToolbarItem, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
9
8
  import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
10
9
  import { FeatureFlags } from '@atlaskit/editor-common/types';
11
10
  export type EditLinkToolbarProps = {
@@ -1,5 +1,5 @@
1
1
  import { IntlShape } from 'react-intl-next';
2
- import { Command } from '../../../types';
2
+ import { Command } from '@atlaskit/editor-common/types';
3
3
  import { OptionConfig } from './types';
4
4
  import { ButtonOptionProps } from './LinkToolbarButtonGroup';
5
5
  export declare const getButtonGroupOption: (intl: IntlShape, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;
@@ -1,5 +1,5 @@
1
1
  import { CardAppearance } from '@atlaskit/editor-common/provider-factory';
2
- import { Command } from '../../../types';
2
+ import { Command } from '@atlaskit/editor-common/types';
3
3
  export interface OptionConfig {
4
4
  appearance?: CardAppearance;
5
5
  title: string;
@@ -1,6 +1,12 @@
1
- import { NextEditorPlugin } from '@atlaskit/editor-common/types';
1
+ import { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import { CodeBlockOptions } from './types';
3
+ import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
+ import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
5
  declare const codeBlockPlugin: NextEditorPlugin<'codeBlock', {
4
6
  pluginConfiguration: CodeBlockOptions;
7
+ dependencies: [
8
+ typeof decorationsPlugin,
9
+ OptionalPlugin<typeof analyticsPlugin>
10
+ ];
5
11
  }>;
6
12
  export default codeBlockPlugin;
@@ -1,4 +1,5 @@
1
1
  import { FloatingToolbarHandler } from '../floating-toolbar/types';
2
+ import { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
2
3
  import { SelectOption } from '../floating-toolbar/ui/Select';
3
4
  export declare const messages: {
4
5
  selectLanguage: {
@@ -7,7 +8,7 @@ export declare const messages: {
7
8
  description: string;
8
9
  };
9
10
  };
10
- export declare const getToolbarConfig: (allowCopyToClipboard?: boolean) => FloatingToolbarHandler;
11
+ export declare const getToolbarConfig: (allowCopyToClipboard: boolean | undefined, hoverDecoration: HoverDecorationHandler | undefined) => FloatingToolbarHandler;
11
12
  /**
12
13
  * Filters language list based on both name and alias properties.
13
14
  */