@atlaskit/editor-core 195.7.0 → 195.8.1

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,22 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 195.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#133207](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133207)
8
+ [`1f50735af1144`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1f50735af1144) -
9
+ Cleanup feature flag to stop using provider factory for media provider. This should be an under
10
+ the hood change to decouple editor from the media provider.
11
+
12
+ ## 195.8.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#133315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133315)
17
+ [`5c94ca338de14`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c94ca338de14) -
18
+ Updating mentions plugin config for handling deleted mentions and refactor
19
+
3
20
  ## 195.7.0
4
21
 
5
22
  ### Minor Changes
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = handleProviders;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
7
  /**
9
8
  *
10
9
  * Utility to set all the providers on a provider factory
@@ -32,9 +31,6 @@ function handleProviders(providerFactory, _ref, extensionProvider, quickInsertPr
32
31
  providerFactory.setProvider('mentionProvider', mentionProvider);
33
32
  providerFactory.setProvider('taskDecisionProvider', taskDecisionProvider);
34
33
  providerFactory.setProvider('contextIdentifierProvider', contextIdentifierProvider);
35
- if (!(0, _platformFeatureFlags.fg)('platform_editor_media_provider_from_plugin_config')) {
36
- providerFactory.setProvider('mediaProvider', mediaProvider);
37
- }
38
34
  providerFactory.setProvider('imageUploadProvider', imageUploadProvider);
39
35
  providerFactory.setProvider('collabEditProvider', collabEditProvider);
40
36
  providerFactory.setProvider('activityProvider', activityProvider);
@@ -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 = "195.7.0";
8
+ var version = exports.version = "195.8.1";
@@ -1,5 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
-
3
1
  /**
4
2
  *
5
3
  * Utility to set all the providers on a provider factory
@@ -28,9 +26,6 @@ export default function handleProviders(providerFactory, {
28
26
  providerFactory.setProvider('mentionProvider', mentionProvider);
29
27
  providerFactory.setProvider('taskDecisionProvider', taskDecisionProvider);
30
28
  providerFactory.setProvider('contextIdentifierProvider', contextIdentifierProvider);
31
- if (!fg('platform_editor_media_provider_from_plugin_config')) {
32
- providerFactory.setProvider('mediaProvider', mediaProvider);
33
- }
34
29
  providerFactory.setProvider('imageUploadProvider', imageUploadProvider);
35
30
  providerFactory.setProvider('collabEditProvider', collabEditProvider);
36
31
  providerFactory.setProvider('activityProvider', activityProvider);
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "195.7.0";
2
+ export const version = "195.8.1";
@@ -1,5 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
-
3
1
  /**
4
2
  *
5
3
  * Utility to set all the providers on a provider factory
@@ -27,9 +25,6 @@ export default function handleProviders(providerFactory, _ref, extensionProvider
27
25
  providerFactory.setProvider('mentionProvider', mentionProvider);
28
26
  providerFactory.setProvider('taskDecisionProvider', taskDecisionProvider);
29
27
  providerFactory.setProvider('contextIdentifierProvider', contextIdentifierProvider);
30
- if (!fg('platform_editor_media_provider_from_plugin_config')) {
31
- providerFactory.setProvider('mediaProvider', mediaProvider);
32
- }
33
28
  providerFactory.setProvider('imageUploadProvider', imageUploadProvider);
34
29
  providerFactory.setProvider('collabEditProvider', collabEditProvider);
35
30
  providerFactory.setProvider('activityProvider', activityProvider);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "195.7.0";
2
+ export var version = "195.8.1";
@@ -781,6 +781,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
781
781
  actions: {
782
782
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
783
783
  announceMentionsInsertion: (mentionIds: {
784
+ type: "added" | "deleted";
784
785
  localId: string;
785
786
  id: string;
786
787
  }[]) => void;
@@ -2351,6 +2352,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2351
2352
  actions: {
2352
2353
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
2353
2354
  announceMentionsInsertion: (mentionIds: {
2355
+ type: "added" | "deleted";
2354
2356
  localId: string;
2355
2357
  id: string;
2356
2358
  }[]) => void;
@@ -5161,6 +5163,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
5161
5163
  actions: {
5162
5164
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
5163
5165
  announceMentionsInsertion: (mentionIds: {
5166
+ type: "added" | "deleted";
5164
5167
  localId: string;
5165
5168
  id: string;
5166
5169
  }[]) => void;
@@ -1882,6 +1882,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1882
1882
  actions: {
1883
1883
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
1884
1884
  announceMentionsInsertion: (mentionIds: {
1885
+ type: "added" | "deleted";
1885
1886
  localId: string;
1886
1887
  id: string;
1887
1888
  }[]) => void;
@@ -3744,6 +3745,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3744
3745
  actions: {
3745
3746
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
3746
3747
  announceMentionsInsertion: (mentionIds: {
3748
+ type: "added" | "deleted";
3747
3749
  localId: string;
3748
3750
  id: string;
3749
3751
  }[]) => void;
@@ -12,7 +12,8 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
12
12
  */
13
13
  export type InitialPluginConfiguration = {
14
14
  mentionsPlugin?: {
15
- handleMentionsInserted?: (mentionIds: {
15
+ handleMentionsChanged?: (mentionChanges: {
16
+ type: 'added' | 'deleted';
16
17
  localId: string;
17
18
  id: string;
18
19
  }[]) => void;
@@ -816,6 +817,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
816
817
  actions: {
817
818
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
818
819
  announceMentionsInsertion: (mentionIds: {
820
+ type: "added" | "deleted";
819
821
  localId: string;
820
822
  id: string;
821
823
  }[]) => void;
@@ -2386,6 +2388,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
2386
2388
  actions: {
2387
2389
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
2388
2390
  announceMentionsInsertion: (mentionIds: {
2391
+ type: "added" | "deleted";
2389
2392
  localId: string;
2390
2393
  id: string;
2391
2394
  }[]) => void;
@@ -5196,6 +5199,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
5196
5199
  actions: {
5197
5200
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
5198
5201
  announceMentionsInsertion: (mentionIds: {
5202
+ type: "added" | "deleted";
5199
5203
  localId: string;
5200
5204
  id: string;
5201
5205
  }[]) => void;
@@ -781,6 +781,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
781
781
  actions: {
782
782
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
783
783
  announceMentionsInsertion: (mentionIds: {
784
+ type: "added" | "deleted";
784
785
  localId: string;
785
786
  id: string;
786
787
  }[]) => void;
@@ -2351,6 +2352,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
2351
2352
  actions: {
2352
2353
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
2353
2354
  announceMentionsInsertion: (mentionIds: {
2355
+ type: "added" | "deleted";
2354
2356
  localId: string;
2355
2357
  id: string;
2356
2358
  }[]) => void;
@@ -5161,6 +5163,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
5161
5163
  actions: {
5162
5164
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
5163
5165
  announceMentionsInsertion: (mentionIds: {
5166
+ type: "added" | "deleted";
5164
5167
  localId: string;
5165
5168
  id: string;
5166
5169
  }[]) => void;
@@ -1032,6 +1032,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1032
1032
  actions: {
1033
1033
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
1034
1034
  announceMentionsInsertion: (mentionIds: {
1035
+ type: "added" | "deleted";
1035
1036
  localId: string;
1036
1037
  id: string;
1037
1038
  }[]) => void;
@@ -2933,6 +2934,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2933
2934
  actions: {
2934
2935
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
2935
2936
  announceMentionsInsertion: (mentionIds: {
2937
+ type: "added" | "deleted";
2936
2938
  localId: string;
2937
2939
  id: string;
2938
2940
  }[]) => void;
@@ -6377,6 +6379,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
6377
6379
  actions: {
6378
6380
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
6379
6381
  announceMentionsInsertion: (mentionIds: {
6382
+ type: "added" | "deleted";
6380
6383
  localId: string;
6381
6384
  id: string;
6382
6385
  }[]) => void;
@@ -2319,6 +2319,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
2319
2319
  actions: {
2320
2320
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
2321
2321
  announceMentionsInsertion: (mentionIds: {
2322
+ type: "added" | "deleted";
2322
2323
  localId: string;
2323
2324
  id: string;
2324
2325
  }[]) => void;
@@ -4625,6 +4626,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
4625
4626
  actions: {
4626
4627
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
4627
4628
  announceMentionsInsertion: (mentionIds: {
4629
+ type: "added" | "deleted";
4628
4630
  localId: string;
4629
4631
  id: string;
4630
4632
  }[]) => void;
@@ -12,7 +12,8 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
12
12
  */
13
13
  export type InitialPluginConfiguration = {
14
14
  mentionsPlugin?: {
15
- handleMentionsInserted?: (mentionIds: {
15
+ handleMentionsChanged?: (mentionChanges: {
16
+ type: 'added' | 'deleted';
16
17
  localId: string;
17
18
  id: string;
18
19
  }[]) => void;
@@ -1067,6 +1068,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1067
1068
  actions: {
1068
1069
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
1069
1070
  announceMentionsInsertion: (mentionIds: {
1071
+ type: "added" | "deleted";
1070
1072
  localId: string;
1071
1073
  id: string;
1072
1074
  }[]) => void;
@@ -2968,6 +2970,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
2968
2970
  actions: {
2969
2971
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
2970
2972
  announceMentionsInsertion: (mentionIds: {
2973
+ type: "added" | "deleted";
2971
2974
  localId: string;
2972
2975
  id: string;
2973
2976
  }[]) => void;
@@ -6412,6 +6415,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
6412
6415
  actions: {
6413
6416
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
6414
6417
  announceMentionsInsertion: (mentionIds: {
6418
+ type: "added" | "deleted";
6415
6419
  localId: string;
6416
6420
  id: string;
6417
6421
  }[]) => void;
@@ -1032,6 +1032,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1032
1032
  actions: {
1033
1033
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
1034
1034
  announceMentionsInsertion: (mentionIds: {
1035
+ type: "added" | "deleted";
1035
1036
  localId: string;
1036
1037
  id: string;
1037
1038
  }[]) => void;
@@ -2933,6 +2934,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
2933
2934
  actions: {
2934
2935
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
2935
2936
  announceMentionsInsertion: (mentionIds: {
2937
+ type: "added" | "deleted";
2936
2938
  localId: string;
2937
2939
  id: string;
2938
2940
  }[]) => void;
@@ -6377,6 +6379,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
6377
6379
  actions: {
6378
6380
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
6379
6381
  announceMentionsInsertion: (mentionIds: {
6382
+ type: "added" | "deleted";
6380
6383
  localId: string;
6381
6384
  id: string;
6382
6385
  }[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "195.7.0",
3
+ "version": "195.8.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -91,7 +91,7 @@
91
91
  "@atlaskit/editor-plugin-card": "^2.13.0",
92
92
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
93
93
  "@atlaskit/editor-plugin-list": "^3.8.0",
94
- "@atlaskit/editor-plugin-paste": "^1.10.0",
94
+ "@atlaskit/editor-plugin-paste": "^1.11.0",
95
95
  "@atlaskit/editor-test-helpers": "*",
96
96
  "@atlaskit/link-provider": "^1.14.0",
97
97
  "@atlaskit/logo": "^14.2.0",
@@ -101,14 +101,14 @@
101
101
  "@atlaskit/modal-dialog": "^12.15.0",
102
102
  "@atlaskit/primitives": "^12.0.0",
103
103
  "@atlaskit/renderer": "^109.50.0",
104
- "@atlaskit/smart-card": "^27.16.0",
104
+ "@atlaskit/smart-card": "^27.17.0",
105
105
  "@atlaskit/synchrony-test-helpers": "^2.5.0",
106
106
  "@atlaskit/toggle": "^13.3.0",
107
107
  "@atlaskit/util-data-test": "^17.9.0",
108
108
  "@atlaskit/visual-regression": "*",
109
109
  "@atlassian/adf-schema-json": "^1.22.0",
110
110
  "@atlassian/feature-flags-test-utils": "*",
111
- "@atlassian/search-provider": "2.4.111",
111
+ "@atlassian/search-provider": "2.4.112",
112
112
  "@emotion/jest": "^11.8.0",
113
113
  "@storybook/addon-knobs": "^5.3.18",
114
114
  "@testing-library/react": "^12.1.5",
@@ -261,9 +261,6 @@
261
261
  "type": "boolean",
262
262
  "referenceOnly": true
263
263
  },
264
- "platform_editor_media_provider_from_plugin_config": {
265
- "type": "boolean"
266
- },
267
264
  "platform_editor_elements_dnd_nested": {
268
265
  "type": "boolean",
269
266
  "referenceOnly": true