@atlaskit/editor-core 197.5.3 → 197.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 197.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#139831](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139831)
8
+ [`181c907365d7d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/181c907365d7d) -
9
+ Pass autoformat provider via preset
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 197.5.3
4
16
 
5
17
  ### Patch Changes
@@ -165,7 +165,8 @@ function ReactEditorViewContextWrapper(props) {
165
165
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
166
166
  mediaProvider: (_props$editorProps$me = props.editorProps.media) === null || _props$editorProps$me === void 0 ? void 0 : _props$editorProps$me.provider,
167
167
  cardProvider: ((_props$editorProps$li = props.editorProps.linking) === null || _props$editorProps$li === void 0 || (_props$editorProps$li = _props$editorProps$li.smartLinks) === null || _props$editorProps$li === void 0 ? void 0 : _props$editorProps$li.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
168
- emojiProvider: props.editorProps.emojiProvider
168
+ emojiProvider: props.editorProps.emojiProvider,
169
+ autoformattingProvider: props.editorProps.autoformattingProvider
169
170
  });
170
171
  return (0, _react2.jsx)(_ReactEditorView.default, (0, _extends2.default)({}, props, {
171
172
  setEditorApi: setEditorAPI
@@ -22,7 +22,8 @@ var useProviders = exports.useProviders = function useProviders(_ref) {
22
22
  var contextIdentifierProvider = _ref.contextIdentifierProvider,
23
23
  mediaProvider = _ref.mediaProvider,
24
24
  cardProvider = _ref.cardProvider,
25
- emojiProvider = _ref.emojiProvider;
25
+ emojiProvider = _ref.emojiProvider,
26
+ autoformattingProvider = _ref.autoformattingProvider;
26
27
  var editorApi = (0, _context2.usePresetContext)();
27
28
  (0, _react.useEffect)(function () {
28
29
  function setProvider() {
@@ -78,4 +79,12 @@ var useProviders = exports.useProviders = function useProviders(_ref) {
78
79
  }
79
80
  }
80
81
  }, [emojiProvider, editorApi]);
82
+ (0, _react.useEffect)(function () {
83
+ if ((0, _platformFeatureFlags.fg)('platform_editor_autoformatting_provider_from_plugin_config')) {
84
+ if (autoformattingProvider) {
85
+ var _editorApi$customAuto;
86
+ editorApi === null || editorApi === void 0 || (_editorApi$customAuto = editorApi.customAutoformat) === null || _editorApi$customAuto === void 0 || _editorApi$customAuto.actions.setProvider(autoformattingProvider);
87
+ }
88
+ }
89
+ }, [autoformattingProvider, editorApi]);
81
90
  };
@@ -43,7 +43,9 @@ function handleProviders(providerFactory, _ref, extensionProvider, quickInsertPr
43
43
  if (!(0, _platformFeatureFlags.fg)('platform_editor_card_provider_from_plugin_config')) {
44
44
  providerFactory.setProvider('cardProvider', cardProvider);
45
45
  }
46
- providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
46
+ if (!(0, _platformFeatureFlags.fg)('platform_editor_autoformatting_provider_from_plugin_config')) {
47
+ providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
48
+ }
47
49
  if (extensionProvider) {
48
50
  providerFactory.setProvider('extensionProvider', Promise.resolve(extensionProvider));
49
51
  }
@@ -208,7 +208,9 @@ function createUniversalPresetInternal(_ref) {
208
208
  editorAppearance: appearance,
209
209
  // @ts-ignore Temporary solution to check for Live Page editor.
210
210
  __livePage: props.__livePage
211
- })], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(_customAutoformat.customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
211
+ })], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd([_customAutoformat.customAutoformatPlugin, {
212
+ autoformattingProvider: props.autoformattingProvider
213
+ }], Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
212
214
  menuDisabled: statusMenuDisabled,
213
215
  allowZeroWidthSpaceAfter: true
214
216
  }], Boolean(props.allowStatus)).maybeAdd(_indentation.indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(_scrollIntoView.scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([_toolbarListsIndentation.toolbarListsIndentationPlugin, {
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "197.5.3";
8
+ var version = exports.version = "197.6.0";
@@ -157,7 +157,8 @@ function ReactEditorViewContextWrapper(props) {
157
157
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
158
158
  mediaProvider: (_props$editorProps$me = props.editorProps.media) === null || _props$editorProps$me === void 0 ? void 0 : _props$editorProps$me.provider,
159
159
  cardProvider: ((_props$editorProps$li = props.editorProps.linking) === null || _props$editorProps$li === void 0 ? void 0 : (_props$editorProps$li2 = _props$editorProps$li.smartLinks) === null || _props$editorProps$li2 === void 0 ? void 0 : _props$editorProps$li2.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
160
- emojiProvider: props.editorProps.emojiProvider
160
+ emojiProvider: props.editorProps.emojiProvider,
161
+ autoformattingProvider: props.editorProps.autoformattingProvider
161
162
  });
162
163
  return jsx(ReactEditorView, _extends({}, props, {
163
164
  setEditorApi: setEditorAPI
@@ -13,7 +13,8 @@ export const useProviders = ({
13
13
  contextIdentifierProvider,
14
14
  mediaProvider,
15
15
  cardProvider,
16
- emojiProvider
16
+ emojiProvider,
17
+ autoformattingProvider
17
18
  }) => {
18
19
  const editorApi = usePresetContext();
19
20
  useEffect(() => {
@@ -49,4 +50,12 @@ export const useProviders = ({
49
50
  }
50
51
  }
51
52
  }, [emojiProvider, editorApi]);
53
+ useEffect(() => {
54
+ if (fg('platform_editor_autoformatting_provider_from_plugin_config')) {
55
+ if (autoformattingProvider) {
56
+ var _editorApi$customAuto;
57
+ editorApi === null || editorApi === void 0 ? void 0 : (_editorApi$customAuto = editorApi.customAutoformat) === null || _editorApi$customAuto === void 0 ? void 0 : _editorApi$customAuto.actions.setProvider(autoformattingProvider);
58
+ }
59
+ }
60
+ }, [autoformattingProvider, editorApi]);
52
61
  };
@@ -39,7 +39,9 @@ export default function handleProviders(providerFactory, {
39
39
  if (!fg('platform_editor_card_provider_from_plugin_config')) {
40
40
  providerFactory.setProvider('cardProvider', cardProvider);
41
41
  }
42
- providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
42
+ if (!fg('platform_editor_autoformatting_provider_from_plugin_config')) {
43
+ providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
44
+ }
43
45
  if (extensionProvider) {
44
46
  providerFactory.setProvider('extensionProvider', Promise.resolve(extensionProvider));
45
47
  }
@@ -207,7 +207,9 @@ export default function createUniversalPresetInternal({
207
207
  editorAppearance: appearance,
208
208
  // @ts-ignore Temporary solution to check for Live Page editor.
209
209
  __livePage: props.__livePage
210
- }], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
210
+ }], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd([customAutoformatPlugin, {
211
+ autoformattingProvider: props.autoformattingProvider
212
+ }], Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
211
213
  menuDisabled: statusMenuDisabled,
212
214
  allowZeroWidthSpaceAfter: true
213
215
  }], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "197.5.3";
2
+ export const version = "197.6.0";
@@ -161,7 +161,8 @@ function ReactEditorViewContextWrapper(props) {
161
161
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
162
162
  mediaProvider: (_props$editorProps$me = props.editorProps.media) === null || _props$editorProps$me === void 0 ? void 0 : _props$editorProps$me.provider,
163
163
  cardProvider: ((_props$editorProps$li = props.editorProps.linking) === null || _props$editorProps$li === void 0 || (_props$editorProps$li = _props$editorProps$li.smartLinks) === null || _props$editorProps$li === void 0 ? void 0 : _props$editorProps$li.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
164
- emojiProvider: props.editorProps.emojiProvider
164
+ emojiProvider: props.editorProps.emojiProvider,
165
+ autoformattingProvider: props.editorProps.autoformattingProvider
165
166
  });
166
167
  return jsx(ReactEditorView, _extends({}, props, {
167
168
  setEditorApi: setEditorAPI
@@ -15,7 +15,8 @@ export var useProviders = function useProviders(_ref) {
15
15
  var contextIdentifierProvider = _ref.contextIdentifierProvider,
16
16
  mediaProvider = _ref.mediaProvider,
17
17
  cardProvider = _ref.cardProvider,
18
- emojiProvider = _ref.emojiProvider;
18
+ emojiProvider = _ref.emojiProvider,
19
+ autoformattingProvider = _ref.autoformattingProvider;
19
20
  var editorApi = usePresetContext();
20
21
  useEffect(function () {
21
22
  function setProvider() {
@@ -71,4 +72,12 @@ export var useProviders = function useProviders(_ref) {
71
72
  }
72
73
  }
73
74
  }, [emojiProvider, editorApi]);
75
+ useEffect(function () {
76
+ if (fg('platform_editor_autoformatting_provider_from_plugin_config')) {
77
+ if (autoformattingProvider) {
78
+ var _editorApi$customAuto;
79
+ editorApi === null || editorApi === void 0 || (_editorApi$customAuto = editorApi.customAutoformat) === null || _editorApi$customAuto === void 0 || _editorApi$customAuto.actions.setProvider(autoformattingProvider);
80
+ }
81
+ }
82
+ }, [autoformattingProvider, editorApi]);
74
83
  };
@@ -38,7 +38,9 @@ export default function handleProviders(providerFactory, _ref, extensionProvider
38
38
  if (!fg('platform_editor_card_provider_from_plugin_config')) {
39
39
  providerFactory.setProvider('cardProvider', cardProvider);
40
40
  }
41
- providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
41
+ if (!fg('platform_editor_autoformatting_provider_from_plugin_config')) {
42
+ providerFactory.setProvider('autoformattingProvider', autoformattingProvider);
43
+ }
42
44
  if (extensionProvider) {
43
45
  providerFactory.setProvider('extensionProvider', Promise.resolve(extensionProvider));
44
46
  }
@@ -201,7 +201,9 @@ export default function createUniversalPresetInternal(_ref) {
201
201
  editorAppearance: appearance,
202
202
  // @ts-ignore Temporary solution to check for Live Page editor.
203
203
  __livePage: props.__livePage
204
- })], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
204
+ })], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd([customAutoformatPlugin, {
205
+ autoformattingProvider: props.autoformattingProvider
206
+ }], Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
205
207
  menuDisabled: statusMenuDisabled,
206
208
  allowZeroWidthSpaceAfter: true
207
209
  }], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "197.5.3";
2
+ export var version = "197.6.0";
@@ -1,10 +1,11 @@
1
- import type { CardProvider, ContextIdentifierProvider, MediaProvider } from '@atlaskit/editor-common/provider-factory';
1
+ import type { AutoformattingProvider, CardProvider, ContextIdentifierProvider, MediaProvider } from '@atlaskit/editor-common/provider-factory';
2
2
  import { type EmojiProvider } from '@atlaskit/emoji';
3
3
  interface UseProvidersProps {
4
4
  contextIdentifierProvider: Promise<ContextIdentifierProvider> | undefined;
5
5
  mediaProvider: Promise<MediaProvider> | undefined;
6
6
  cardProvider: Promise<CardProvider> | undefined;
7
7
  emojiProvider: Promise<EmojiProvider> | undefined;
8
+ autoformattingProvider: Promise<AutoformattingProvider> | undefined;
8
9
  }
9
10
  /**
10
11
  * This hook is used to replace the old approach of using the `providerFactory`.
@@ -14,5 +15,5 @@ interface UseProvidersProps {
14
15
  *
15
16
  * In the future ideally consumers implement this behaviour themselves.
16
17
  */
17
- export declare const useProviders: ({ contextIdentifierProvider, mediaProvider, cardProvider, emojiProvider, }: UseProvidersProps) => void;
18
+ export declare const useProviders: ({ contextIdentifierProvider, mediaProvider, cardProvider, emojiProvider, autoformattingProvider, }: UseProvidersProps) => void;
18
19
  export {};
@@ -1381,7 +1381,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1381
1381
  insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1382
1382
  };
1383
1383
  sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
1384
- }, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1384
+ }, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {
1385
+ sharedState: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginSharedState | undefined;
1386
+ pluginConfiguration: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions;
1387
+ actions: {
1388
+ setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").AutoformattingProvider>) => Promise<boolean>;
1389
+ };
1390
+ }, import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1385
1391
  pluginConfiguration: import("@atlaskit/editor-plugin-card").CardPluginOptions | undefined;
1386
1392
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1387
1393
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -1428,7 +1428,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1428
1428
  insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1429
1429
  };
1430
1430
  sharedState: import("@atlaskit/editor-plugins/status").StatusState | undefined;
1431
- }, import("@atlaskit/editor-plugins/status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1431
+ }, import("@atlaskit/editor-plugins/status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {
1432
+ sharedState: import("@atlaskit/editor-plugins/custom-autoformat").CustomAutoformatPluginSharedState | undefined;
1433
+ pluginConfiguration: import("@atlaskit/editor-plugins/custom-autoformat").CustomAutoformatPluginOptions;
1434
+ actions: {
1435
+ setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").AutoformattingProvider>) => Promise<boolean>;
1436
+ };
1437
+ }, import("@atlaskit/editor-plugins/custom-autoformat").CustomAutoformatPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1432
1438
  pluginConfiguration: import("@atlaskit/editor-plugins/card").CardPluginOptions | undefined;
1433
1439
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1434
1440
  pluginConfiguration: FeatureFlags;
@@ -1381,7 +1381,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1381
1381
  insertStatus: (inputMethod?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1382
1382
  };
1383
1383
  sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
1384
- }, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1384
+ }, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {
1385
+ sharedState: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginSharedState | undefined;
1386
+ pluginConfiguration: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions;
1387
+ actions: {
1388
+ setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").AutoformattingProvider>) => Promise<boolean>;
1389
+ };
1390
+ }, import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1385
1391
  pluginConfiguration: import("@atlaskit/editor-plugin-card").CardPluginOptions | undefined;
1386
1392
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1387
1393
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -1,10 +1,11 @@
1
- import type { CardProvider, ContextIdentifierProvider, MediaProvider } from '@atlaskit/editor-common/provider-factory';
1
+ import type { AutoformattingProvider, CardProvider, ContextIdentifierProvider, MediaProvider } from '@atlaskit/editor-common/provider-factory';
2
2
  import { type EmojiProvider } from '@atlaskit/emoji';
3
3
  interface UseProvidersProps {
4
4
  contextIdentifierProvider: Promise<ContextIdentifierProvider> | undefined;
5
5
  mediaProvider: Promise<MediaProvider> | undefined;
6
6
  cardProvider: Promise<CardProvider> | undefined;
7
7
  emojiProvider: Promise<EmojiProvider> | undefined;
8
+ autoformattingProvider: Promise<AutoformattingProvider> | undefined;
8
9
  }
9
10
  /**
10
11
  * This hook is used to replace the old approach of using the `providerFactory`.
@@ -14,5 +15,5 @@ interface UseProvidersProps {
14
15
  *
15
16
  * In the future ideally consumers implement this behaviour themselves.
16
17
  */
17
- export declare const useProviders: ({ contextIdentifierProvider, mediaProvider, cardProvider, emojiProvider, }: UseProvidersProps) => void;
18
+ export declare const useProviders: ({ contextIdentifierProvider, mediaProvider, cardProvider, emojiProvider, autoformattingProvider, }: UseProvidersProps) => void;
18
19
  export {};
@@ -1742,7 +1742,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1742
1742
  };
1743
1743
  sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
1744
1744
  }, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined,
1745
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined,
1745
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {
1746
+ sharedState: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginSharedState | undefined;
1747
+ pluginConfiguration: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions;
1748
+ actions: {
1749
+ setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").AutoformattingProvider>) => Promise<boolean>;
1750
+ };
1751
+ }, import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions> | undefined,
1746
1752
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1747
1753
  pluginConfiguration: import("@atlaskit/editor-plugin-card").CardPluginOptions | undefined;
1748
1754
  dependencies: [
@@ -1789,7 +1789,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1789
1789
  };
1790
1790
  sharedState: import("@atlaskit/editor-plugins/status").StatusState | undefined;
1791
1791
  }, import("@atlaskit/editor-plugins/status").StatusPluginOptions | undefined> | undefined,
1792
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined,
1792
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {
1793
+ sharedState: import("@atlaskit/editor-plugins/custom-autoformat").CustomAutoformatPluginSharedState | undefined;
1794
+ pluginConfiguration: import("@atlaskit/editor-plugins/custom-autoformat").CustomAutoformatPluginOptions;
1795
+ actions: {
1796
+ setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").AutoformattingProvider>) => Promise<boolean>;
1797
+ };
1798
+ }, import("@atlaskit/editor-plugins/custom-autoformat").CustomAutoformatPluginOptions> | undefined,
1793
1799
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1794
1800
  pluginConfiguration: import("@atlaskit/editor-plugins/card").CardPluginOptions | undefined;
1795
1801
  dependencies: [
@@ -1742,7 +1742,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1742
1742
  };
1743
1743
  sharedState: import("@atlaskit/editor-plugin-status").StatusState | undefined;
1744
1744
  }, import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined> | undefined,
1745
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {}, undefined> | undefined,
1745
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"customAutoformat", {
1746
+ sharedState: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginSharedState | undefined;
1747
+ pluginConfiguration: import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions;
1748
+ actions: {
1749
+ setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").AutoformattingProvider>) => Promise<boolean>;
1750
+ };
1751
+ }, import("@atlaskit/editor-plugin-custom-autoformat").CustomAutoformatPluginOptions> | undefined,
1746
1752
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"card", {
1747
1753
  pluginConfiguration: import("@atlaskit/editor-plugin-card").CardPluginOptions | undefined;
1748
1754
  dependencies: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "197.5.3",
3
+ "version": "197.6.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,9 +43,9 @@
43
43
  "@atlaskit/analytics-next": "^10.1.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
45
  "@atlaskit/button": "^20.1.0",
46
- "@atlaskit/editor-common": "^89.0.0",
46
+ "@atlaskit/editor-common": "^89.1.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.18.0",
48
- "@atlaskit/editor-plugins": "^4.4.0",
48
+ "@atlaskit/editor-plugins": "^4.5.0",
49
49
  "@atlaskit/editor-prosemirror": "6.0.0",
50
50
  "@atlaskit/editor-shared-styles": "^2.13.0",
51
51
  "@atlaskit/emoji": "^67.7.0",
@@ -261,6 +261,9 @@
261
261
  },
262
262
  "platform_editor_breakout_use_css": {
263
263
  "type": "boolean"
264
+ },
265
+ "platform_editor_autoformatting_provider_from_plugin_config": {
266
+ "type": "boolean"
264
267
  }
265
268
  },
266
269
  "stricter": {