@atlaskit/editor-core 195.7.0 → 195.8.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 +8 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types/presets/default.d.ts +2 -0
- package/dist/types/presets/universal.d.ts +5 -1
- package/dist/types/presets/useUniversalPreset.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types-ts4.5/presets/default.d.ts +2 -0
- package/dist/types-ts4.5/presets/universal.d.ts +5 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#133315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133315)
|
|
8
|
+
[`5c94ca338de14`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c94ca338de14) -
|
|
9
|
+
Updating mentions plugin config for handling deleted mentions and refactor
|
|
10
|
+
|
|
3
11
|
## 195.7.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.
|
|
2
|
+
export const version = "195.8.0";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.
|
|
2
|
+
export var version = "195.8.0";
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "195.8.0",
|
|
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.
|
|
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",
|