@atlaskit/editor-common 114.26.0 → 114.27.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 (45) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/messages/insert-block.js +5 -0
  3. package/dist/cjs/messages/markdown-mode.js +100 -0
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/preset/plugin-injection-api.js +47 -0
  6. package/dist/cjs/styles/shared/table-cell-background-for-compiled.js +15 -0
  7. package/dist/cjs/styles/shared/tableCell.js +2 -2
  8. package/dist/cjs/type-ahead/messages.js +5 -0
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/messages/insert-block.js +5 -0
  11. package/dist/es2019/messages/markdown-mode.js +100 -0
  12. package/dist/es2019/monitoring/error.js +1 -1
  13. package/dist/es2019/preset/plugin-injection-api.js +33 -0
  14. package/dist/es2019/styles/shared/table-cell-background-for-compiled.js +10 -0
  15. package/dist/es2019/styles/shared/tableCell.js +1 -1
  16. package/dist/es2019/type-ahead/messages.js +5 -0
  17. package/dist/es2019/ui/DropList/index.js +1 -1
  18. package/dist/esm/messages/insert-block.js +5 -0
  19. package/dist/esm/messages/markdown-mode.js +100 -0
  20. package/dist/esm/monitoring/error.js +1 -1
  21. package/dist/esm/preset/plugin-injection-api.js +47 -0
  22. package/dist/esm/styles/shared/table-cell-background-for-compiled.js +10 -0
  23. package/dist/esm/styles/shared/tableCell.js +1 -1
  24. package/dist/esm/type-ahead/messages.js +5 -0
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/types/messages/insert-block.d.ts +5 -0
  27. package/dist/types/messages/markdown-mode.d.ts +100 -0
  28. package/dist/types/preset/plugin-injection-api.d.ts +3 -0
  29. package/dist/types/styles/shared/table-cell-background-for-compiled.d.ts +8 -0
  30. package/dist/types/styles/shared/tableCell.d.ts +1 -0
  31. package/dist/types/type-ahead/messages.d.ts +41 -36
  32. package/dist/types/types/index.d.ts +1 -1
  33. package/dist/types/types/type-ahead.d.ts +7 -0
  34. package/dist/types/types/ui-components.d.ts +12 -0
  35. package/dist/types-ts4.5/messages/insert-block.d.ts +5 -0
  36. package/dist/types-ts4.5/messages/markdown-mode.d.ts +100 -0
  37. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +3 -0
  38. package/dist/types-ts4.5/styles/shared/table-cell-background-for-compiled.d.ts +8 -0
  39. package/dist/types-ts4.5/styles/shared/tableCell.d.ts +1 -0
  40. package/dist/types-ts4.5/type-ahead/messages.d.ts +41 -36
  41. package/dist/types-ts4.5/types/index.d.ts +1 -1
  42. package/dist/types-ts4.5/types/type-ahead.d.ts +7 -0
  43. package/dist/types-ts4.5/types/ui-components.d.ts +12 -0
  44. package/package.json +7 -7
  45. package/table-cell-background-for-compiled/package.json +17 -0
@@ -228,6 +228,17 @@ export var SharedStateAPI = /*#__PURE__*/function () {
228
228
  value: function cleanupSubscription(pluginName, sub) {
229
229
  (this.listeners.get(pluginName) || new Set()).delete(sub);
230
230
  }
231
+
232
+ // Drop every listener and pending update for a plugin that is no longer
233
+ // registered. Without this, callbacks (and their captured closures) for
234
+ // evicted plugins would linger in `listeners` until destroy(), and every
235
+ // transaction would still walk their keys via filterPluginsWithListeners.
236
+ }, {
237
+ key: "removePluginListeners",
238
+ value: function removePluginListeners(pluginName) {
239
+ this.listeners.delete(pluginName);
240
+ this.updatesToNotifyQueue.delete(pluginName);
241
+ }
231
242
  }, {
232
243
  key: "notifyListeners",
233
244
  value: function notifyListeners(_ref5) {
@@ -297,6 +308,42 @@ export var EditorPluginInjectionAPI = /*#__PURE__*/function () {
297
308
  _defineProperty(this, "onEditorPluginInitialized", function (plugin) {
298
309
  _this2.addPlugin(plugin);
299
310
  });
311
+ // Internal cleanup helper used by ReactEditorView's reconfigureState to
312
+ // reconcile the registered plugin set with the current preset. Removes
313
+ // every registered plugin not in `keptPluginNames`; `core` is always
314
+ // preserved. Returns the names that were removed. Intentionally not on
315
+ // PluginInjectionAPIDefinition: this is an editor-internal control, not
316
+ // part of the injection-API contract that plugins or external consumers
317
+ // depend on.
318
+ _defineProperty(this, "retainPlugins", function (keptPluginNames) {
319
+ var evicted = [];
320
+ var _iterator4 = _createForOfIteratorHelper(_this2.plugins.keys()),
321
+ _step4;
322
+ try {
323
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
324
+ var _name = _step4.value;
325
+ if (_name !== 'core' && !keptPluginNames.has(_name)) {
326
+ evicted.push(_name);
327
+ }
328
+ }
329
+ } catch (err) {
330
+ _iterator4.e(err);
331
+ } finally {
332
+ _iterator4.f();
333
+ }
334
+ for (var _i = 0, _evicted = evicted; _i < _evicted.length; _i++) {
335
+ var name = _evicted[_i];
336
+ _this2.plugins.delete(name);
337
+ _this2.sharedStateAPI.removePluginListeners(name);
338
+ }
339
+ return evicted;
340
+ });
341
+ // Internal: snapshot the names of currently-registered plugins. Used by
342
+ // reconfigureState to capture the previous plugin set before the new
343
+ // preset registers its own plugins via onEditorPluginInitialized.
344
+ _defineProperty(this, "getRegisteredPluginNames", function () {
345
+ return Array.from(_this2.plugins.keys());
346
+ });
300
347
  _defineProperty(this, "addPlugin", function (plugin) {
301
348
  // Plugins other than `core` are checked by the preset itself
302
349
  // For some reason in some tests we have duplicates that are missed.
@@ -0,0 +1,10 @@
1
+ import { mapBackgroundColors } from './tableCell';
2
+
3
+ /**
4
+ * Pre-built CSS string with `background-color` rules for every named table cell
5
+ * color (e.g. `td[colorname='red' i]`, `th[colorname='red' i]`).
6
+ *
7
+ * Intended for Compiled CSS consumers — render inside a `<style>` tag, since
8
+ * these rules are dynamically derived and cannot be expressed in a `cssMap`.
9
+ */
10
+ export var tableCellBackgroundStyleOverrideForCompiled = mapBackgroundColors();
@@ -9,7 +9,7 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
9
9
  // it is not possible to use tokens there without polluting ADF.
10
10
  // As table cell backgrounds are set inline, this should not break mobile as
11
11
  // hexToEditorBackgroundPaletteColor() outputs a css variable with fallback hex.
12
- var mapBackgroundColors = function mapBackgroundColors() {
12
+ export var mapBackgroundColors = function mapBackgroundColors() {
13
13
  var cssString = '';
14
14
  tableBackgroundColorNames.forEach(function (value, key) {
15
15
  var paletteColorValue = hexToEditorBackgroundPaletteColor(value);
@@ -99,5 +99,10 @@ export var typeAheadListMessages = defineMessages({
99
99
  id: 'fabric.editor.emptySearchResultsSuggestion',
100
100
  defaultMessage: 'Select {buttonName} to browse inserts.',
101
101
  description: 'a prompt to suggest user to click a button to browse inserts when there are no search results'
102
+ },
103
+ emptySearchResultsSuggestionNew: {
104
+ id: 'fabric.editor.emptySearchResultsSuggestionNew',
105
+ defaultMessage: 'Select {askRovoName} for help, or {buttonName} to browse inserts.',
106
+ description: 'a prompt to suggest user to click a button to browse inserts or ask Rovo for help when there are no search results'
102
107
  }
103
108
  });
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "0.0.0-development";
24
+ var packageVersion = "114.26.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -39,6 +39,11 @@ export declare const toolbarInsertBlockMessages: {
39
39
  description: string;
40
40
  id: string;
41
41
  };
42
+ askRovo: {
43
+ defaultMessage: string;
44
+ description: string;
45
+ id: string;
46
+ };
42
47
  closeInsertRightRail: {
43
48
  defaultMessage: string;
44
49
  description: string;
@@ -8,11 +8,91 @@
8
8
  * the i18n tooling. See `@atlaskit/editor/no-defineMessages-in-plugin`.
9
9
  */
10
10
  export declare const markdownModeMessages: {
11
+ confirmDialogCancel: {
12
+ defaultMessage: string;
13
+ description: string;
14
+ id: string;
15
+ };
16
+ confirmDialogConfirm: {
17
+ defaultMessage: string;
18
+ description: string;
19
+ id: string;
20
+ };
21
+ confirmDialogError: {
22
+ defaultMessage: string;
23
+ description: string;
24
+ id: string;
25
+ };
26
+ confirmDialogTitleToMarkdown: {
27
+ defaultMessage: string;
28
+ description: string;
29
+ id: string;
30
+ };
31
+ confirmDialogTitleToMarkdownLossy: {
32
+ defaultMessage: string;
33
+ description: string;
34
+ id: string;
35
+ };
36
+ confirmDialogTitleToRichText: {
37
+ defaultMessage: string;
38
+ description: string;
39
+ id: string;
40
+ };
41
+ confirmDialogToMarkdownLossyCta: {
42
+ defaultMessage: string;
43
+ description: string;
44
+ id: string;
45
+ };
46
+ confirmDialogToMarkdownLossyRichContent: {
47
+ defaultMessage: string;
48
+ description: string;
49
+ id: string;
50
+ };
51
+ confirmDialogToMarkdownLossyVersionHistory: {
52
+ defaultMessage: string;
53
+ description: string;
54
+ id: string;
55
+ };
56
+ confirmDialogToMarkdownToggle: {
57
+ defaultMessage: string;
58
+ description: string;
59
+ id: string;
60
+ };
61
+ confirmDialogToMarkdownToolsRemoved: {
62
+ defaultMessage: string;
63
+ description: string;
64
+ id: string;
65
+ };
66
+ confirmDialogToMarkdownVersionHistory: {
67
+ defaultMessage: string;
68
+ description: string;
69
+ id: string;
70
+ };
71
+ confirmDialogToRichTextInstantEdits: {
72
+ defaultMessage: string;
73
+ description: string;
74
+ id: string;
75
+ };
76
+ confirmDialogToRichTextStandardTools: {
77
+ defaultMessage: string;
78
+ description: string;
79
+ id: string;
80
+ };
81
+ confirmDialogToRichTextVersionHistory: {
82
+ defaultMessage: string;
83
+ description: string;
84
+ id: string;
85
+ };
11
86
  groupLabel: {
12
87
  defaultMessage: string;
13
88
  description: string;
14
89
  id: string;
15
90
  };
91
+ labsLozenge: {
92
+ defaultMessage: string;
93
+ description: string;
94
+ id: string;
95
+ };
16
96
  preview: {
17
97
  defaultMessage: string;
18
98
  description: string;
@@ -28,6 +108,26 @@ export declare const markdownModeMessages: {
28
108
  description: string;
29
109
  id: string;
30
110
  };
111
+ unlinkSyncedBlocksBody: {
112
+ defaultMessage: string;
113
+ description: string;
114
+ id: string;
115
+ };
116
+ unlinkSyncedBlocksLearnMore: {
117
+ defaultMessage: string;
118
+ description: string;
119
+ id: string;
120
+ };
121
+ unlinkSyncedBlocksTitle: {
122
+ defaultMessage: string;
123
+ description: string;
124
+ id: string;
125
+ };
126
+ unlinkSyncedBlocksUnderstood: {
127
+ defaultMessage: string;
128
+ description: string;
129
+ id: string;
130
+ };
31
131
  wysiwyg: {
32
132
  defaultMessage: string;
33
133
  description: string;
@@ -24,6 +24,7 @@ export declare class SharedStateAPI {
24
24
  constructor({ getEditorState }: SharedStateAPIProps);
25
25
  createAPI(plugin: NextEditorPluginInitializedType | undefined): PluginDependenciesAPI<NextEditorPlugin<any, any>>['sharedState'];
26
26
  private cleanupSubscription;
27
+ removePluginListeners(pluginName: string): void;
27
28
  private updatesToNotifyQueue;
28
29
  notifyListeners({ newEditorState, oldEditorState, plugins, }: EditorStateDiff & Record<'plugins', Map<string, NextEditorPluginInitializedType>>): void;
29
30
  destroy(): void;
@@ -61,6 +62,8 @@ export declare class EditorPluginInjectionAPI implements PluginInjectionAPIDefin
61
62
  api(): GenericAPIWithCore;
62
63
  onEditorViewUpdated: ({ newEditorState, oldEditorState }: EditorStateDiff) => void;
63
64
  onEditorPluginInitialized: (plugin: NextEditorPluginInitializedType) => void;
65
+ retainPlugins: (keptPluginNames: ReadonlySet<string>) => string[];
66
+ getRegisteredPluginNames: () => string[];
64
67
  private addPlugin;
65
68
  private getPluginByName;
66
69
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Pre-built CSS string with `background-color` rules for every named table cell
3
+ * color (e.g. `td[colorname='red' i]`, `th[colorname='red' i]`).
4
+ *
5
+ * Intended for Compiled CSS consumers — render inside a `<style>` tag, since
6
+ * these rules are dynamically derived and cannot be expressed in a `cssMap`.
7
+ */
8
+ export declare const tableCellBackgroundStyleOverrideForCompiled: string;
@@ -1,2 +1,3 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
+ export declare const mapBackgroundColors: () => string;
2
3
  export declare const tableCellBackgroundStyleOverride: () => SerializedStyles;
@@ -1,102 +1,107 @@
1
1
  export declare const typeAheadListMessages: {
2
- typeAheadPopupLabel: {
3
- id: string;
2
+ descriptionLabel: {
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- quickInsertPopupLabel: {
8
5
  id: string;
9
- defaultMessage: string;
10
- description: string;
11
6
  };
12
- quickInsertInputLabel: {
13
- id: string;
7
+ emojiInputLabel: {
14
8
  defaultMessage: string;
15
9
  description: string;
16
- };
17
- quickInsertInputPlaceholderLabel: {
18
10
  id: string;
11
+ };
12
+ emojiListItemLabel: {
19
13
  defaultMessage: string;
20
14
  description: string;
15
+ id: string;
21
16
  };
22
17
  emojiPopupLabel: {
23
- id: string;
24
18
  defaultMessage: string;
25
19
  description: string;
20
+ id: string;
26
21
  };
27
- emojiInputLabel: {
22
+ emptySearchResults: {
23
+ defaultMessage: string;
24
+ description: string;
28
25
  id: string;
26
+ };
27
+ emptySearchResultsSuggestion: {
29
28
  defaultMessage: string;
30
29
  description: string;
30
+ id: string;
31
31
  };
32
- mentionPopupLabel: {
32
+ emptySearchResultsSuggestionNew: {
33
+ defaultMessage: string;
34
+ description: string;
33
35
  id: string;
36
+ };
37
+ inputQueryAssistiveLabel: {
34
38
  defaultMessage: string;
35
39
  description: string;
40
+ id: string;
36
41
  };
37
42
  mentionInputLabel: {
43
+ defaultMessage: string;
44
+ description: string;
38
45
  id: string;
46
+ };
47
+ mentionPopupLabel: {
39
48
  defaultMessage: string;
40
49
  description: string;
50
+ id: string;
41
51
  };
42
52
  metionListItemLabel: {
43
- id: string;
44
53
  defaultMessage: string;
45
54
  description: string;
46
- };
47
- emojiListItemLabel: {
48
55
  id: string;
56
+ };
57
+ noSearchResultsLabel: {
49
58
  defaultMessage: string;
50
59
  description: string;
51
- };
52
- inputQueryAssistiveLabel: {
53
60
  id: string;
61
+ };
62
+ quickInsertInputLabel: {
54
63
  defaultMessage: string;
55
64
  description: string;
56
- };
57
- searchResultsLabel: {
58
65
  id: string;
66
+ };
67
+ quickInsertInputPlaceholderLabel: {
59
68
  defaultMessage: string;
60
69
  description: string;
61
- };
62
- noSearchResultsLabel: {
63
70
  id: string;
71
+ };
72
+ quickInsertPopupLabel: {
64
73
  defaultMessage: string;
65
74
  description: string;
66
- };
67
- descriptionLabel: {
68
75
  id: string;
76
+ };
77
+ searchResultsLabel: {
69
78
  defaultMessage: string;
70
79
  description: string;
80
+ id: string;
71
81
  };
72
82
  shortcutLabel: {
73
- id: string;
74
83
  defaultMessage: string;
75
84
  description: string;
76
- };
77
- typeAheadErrorFallbackHeading: {
78
85
  id: string;
79
- defaultMessage: string;
80
- description: string;
81
86
  };
82
87
  typeAheadErrorFallbackDesc: {
83
- id: string;
84
88
  defaultMessage: string;
85
89
  description: string;
86
- };
87
- viewAllInserts: {
88
90
  id: string;
91
+ };
92
+ typeAheadErrorFallbackHeading: {
89
93
  defaultMessage: string;
90
94
  description: string;
91
- };
92
- emptySearchResults: {
93
95
  id: string;
96
+ };
97
+ typeAheadPopupLabel: {
94
98
  defaultMessage: string;
95
99
  description: string;
96
- };
97
- emptySearchResultsSuggestion: {
98
100
  id: string;
101
+ };
102
+ viewAllInserts: {
99
103
  defaultMessage: string;
100
104
  description: string;
105
+ id: string;
101
106
  };
102
107
  };
@@ -19,7 +19,7 @@ export type { ContextPanelHandler } from './context-panel';
19
19
  export type { EditorAppearance, EditorContentMode } from './editor-appearance';
20
20
  export type { ToolbarUiComponentFactoryParams, ToolbarUIComponentFactory } from './toolbar';
21
21
  export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext, } from './toolbar';
22
- export type { UiComponentFactoryParams, UIComponentFactory, ReactHookFactory, } from './ui-components';
22
+ export type { UiComponentFactoryParams, UIComponentFactory, ReactHookFactory, NamedReactHookFactory, } from './ui-components';
23
23
  export type { EditorReactContext } from './editor-react-context';
24
24
  export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin } from './plugin-factory';
25
25
  export type { NodeConfig, MarkConfig, NodeViewConfig } from './prosemirror-config';
@@ -65,6 +65,13 @@ export type TypeAheadHandler = {
65
65
  }) => void;
66
66
  /** Handler returns typeahead item based on query. Used to find which item to insert. */
67
67
  forceSelect?: TypeAheadForceSelect;
68
+ /**
69
+ * Optional handler that returns an item (Ask Rovo) to display in the typeahead's
70
+ * empty-results state.
71
+ */
72
+ getEmptyItem?: (props: {
73
+ editorState: EditorState;
74
+ }) => TypeAheadItem | undefined;
68
75
  getHighlight?: (state: EditorState) => JSX.Element | null;
69
76
  /** Handler returns an array of TypeAheadItem based on query to be displayed in the TypeAhead */
70
77
  getItems: (props: {
@@ -22,4 +22,16 @@ export type UiComponentFactoryParams = {
22
22
  export type UIComponentFactory = (params: UiComponentFactoryParams) => React.ReactElement<any> | null;
23
23
  export type ReactHookFactory = (params: Pick<UiComponentFactoryParams, 'editorView' | 'containerElement'> & {
24
24
  editorView: EditorView;
25
+ pluginName?: string;
25
26
  }) => void;
27
+ /**
28
+ * A `ReactHookFactory` annotated with the name of the plugin that owns it.
29
+ * `processPluginsList` wraps each plugin's `usePluginHook` with `.bind(null)`
30
+ * and assigns `pluginName`, so the original plugin function reference is
31
+ * never mutated. `MountPluginHooks` reads `pluginName` to derive a stable
32
+ * React `key` per plugin instead of relying on array index, which would
33
+ * violate the Rules of Hooks across reconfigures that change the plugin set.
34
+ */
35
+ export type NamedReactHookFactory = ReactHookFactory & {
36
+ pluginName?: string;
37
+ };
@@ -39,6 +39,11 @@ export declare const toolbarInsertBlockMessages: {
39
39
  description: string;
40
40
  id: string;
41
41
  };
42
+ askRovo: {
43
+ defaultMessage: string;
44
+ description: string;
45
+ id: string;
46
+ };
42
47
  closeInsertRightRail: {
43
48
  defaultMessage: string;
44
49
  description: string;
@@ -8,11 +8,91 @@
8
8
  * the i18n tooling. See `@atlaskit/editor/no-defineMessages-in-plugin`.
9
9
  */
10
10
  export declare const markdownModeMessages: {
11
+ confirmDialogCancel: {
12
+ defaultMessage: string;
13
+ description: string;
14
+ id: string;
15
+ };
16
+ confirmDialogConfirm: {
17
+ defaultMessage: string;
18
+ description: string;
19
+ id: string;
20
+ };
21
+ confirmDialogError: {
22
+ defaultMessage: string;
23
+ description: string;
24
+ id: string;
25
+ };
26
+ confirmDialogTitleToMarkdown: {
27
+ defaultMessage: string;
28
+ description: string;
29
+ id: string;
30
+ };
31
+ confirmDialogTitleToMarkdownLossy: {
32
+ defaultMessage: string;
33
+ description: string;
34
+ id: string;
35
+ };
36
+ confirmDialogTitleToRichText: {
37
+ defaultMessage: string;
38
+ description: string;
39
+ id: string;
40
+ };
41
+ confirmDialogToMarkdownLossyCta: {
42
+ defaultMessage: string;
43
+ description: string;
44
+ id: string;
45
+ };
46
+ confirmDialogToMarkdownLossyRichContent: {
47
+ defaultMessage: string;
48
+ description: string;
49
+ id: string;
50
+ };
51
+ confirmDialogToMarkdownLossyVersionHistory: {
52
+ defaultMessage: string;
53
+ description: string;
54
+ id: string;
55
+ };
56
+ confirmDialogToMarkdownToggle: {
57
+ defaultMessage: string;
58
+ description: string;
59
+ id: string;
60
+ };
61
+ confirmDialogToMarkdownToolsRemoved: {
62
+ defaultMessage: string;
63
+ description: string;
64
+ id: string;
65
+ };
66
+ confirmDialogToMarkdownVersionHistory: {
67
+ defaultMessage: string;
68
+ description: string;
69
+ id: string;
70
+ };
71
+ confirmDialogToRichTextInstantEdits: {
72
+ defaultMessage: string;
73
+ description: string;
74
+ id: string;
75
+ };
76
+ confirmDialogToRichTextStandardTools: {
77
+ defaultMessage: string;
78
+ description: string;
79
+ id: string;
80
+ };
81
+ confirmDialogToRichTextVersionHistory: {
82
+ defaultMessage: string;
83
+ description: string;
84
+ id: string;
85
+ };
11
86
  groupLabel: {
12
87
  defaultMessage: string;
13
88
  description: string;
14
89
  id: string;
15
90
  };
91
+ labsLozenge: {
92
+ defaultMessage: string;
93
+ description: string;
94
+ id: string;
95
+ };
16
96
  preview: {
17
97
  defaultMessage: string;
18
98
  description: string;
@@ -28,6 +108,26 @@ export declare const markdownModeMessages: {
28
108
  description: string;
29
109
  id: string;
30
110
  };
111
+ unlinkSyncedBlocksBody: {
112
+ defaultMessage: string;
113
+ description: string;
114
+ id: string;
115
+ };
116
+ unlinkSyncedBlocksLearnMore: {
117
+ defaultMessage: string;
118
+ description: string;
119
+ id: string;
120
+ };
121
+ unlinkSyncedBlocksTitle: {
122
+ defaultMessage: string;
123
+ description: string;
124
+ id: string;
125
+ };
126
+ unlinkSyncedBlocksUnderstood: {
127
+ defaultMessage: string;
128
+ description: string;
129
+ id: string;
130
+ };
31
131
  wysiwyg: {
32
132
  defaultMessage: string;
33
133
  description: string;
@@ -24,6 +24,7 @@ export declare class SharedStateAPI {
24
24
  constructor({ getEditorState }: SharedStateAPIProps);
25
25
  createAPI(plugin: NextEditorPluginInitializedType | undefined): PluginDependenciesAPI<NextEditorPlugin<any, any>>['sharedState'];
26
26
  private cleanupSubscription;
27
+ removePluginListeners(pluginName: string): void;
27
28
  private updatesToNotifyQueue;
28
29
  notifyListeners({ newEditorState, oldEditorState, plugins, }: EditorStateDiff & Record<'plugins', Map<string, NextEditorPluginInitializedType>>): void;
29
30
  destroy(): void;
@@ -61,6 +62,8 @@ export declare class EditorPluginInjectionAPI implements PluginInjectionAPIDefin
61
62
  api(): GenericAPIWithCore;
62
63
  onEditorViewUpdated: ({ newEditorState, oldEditorState }: EditorStateDiff) => void;
63
64
  onEditorPluginInitialized: (plugin: NextEditorPluginInitializedType) => void;
65
+ retainPlugins: (keptPluginNames: ReadonlySet<string>) => string[];
66
+ getRegisteredPluginNames: () => string[];
64
67
  private addPlugin;
65
68
  private getPluginByName;
66
69
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Pre-built CSS string with `background-color` rules for every named table cell
3
+ * color (e.g. `td[colorname='red' i]`, `th[colorname='red' i]`).
4
+ *
5
+ * Intended for Compiled CSS consumers — render inside a `<style>` tag, since
6
+ * these rules are dynamically derived and cannot be expressed in a `cssMap`.
7
+ */
8
+ export declare const tableCellBackgroundStyleOverrideForCompiled: string;
@@ -1,2 +1,3 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
+ export declare const mapBackgroundColors: () => string;
2
3
  export declare const tableCellBackgroundStyleOverride: () => SerializedStyles;