@atlaskit/editor-core 208.8.0 → 209.0.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 +40 -0
- package/afm-cc/tsconfig.json +3 -3
- package/afm-jira/tsconfig.json +3 -3
- package/afm-post-office/tsconfig.json +3 -3
- 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 +8 -8
- package/dist/types/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types/presets/useUniversalPreset.d.ts +8 -8
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +8 -8
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +8 -8
- package/docs/0-intro.tsx +2 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 209.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
|
|
8
|
+
[`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
|
|
9
|
+
Make `@atlaskit/editor-common` a peer dependency
|
|
10
|
+
|
|
11
|
+
**WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
|
|
12
|
+
all editor plugin packages.
|
|
13
|
+
|
|
14
|
+
**WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
|
|
15
|
+
consuming applications, preventing issues caused by multiple versions of singleton libraries (such
|
|
16
|
+
as context mismatches or duplicated state). This is especially important for packages that rely on
|
|
17
|
+
shared context or singletons.
|
|
18
|
+
|
|
19
|
+
**HOW TO ADJUST:**
|
|
20
|
+
|
|
21
|
+
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
22
|
+
any of these editor plugins.
|
|
23
|
+
- Ensure the version you install matches the version required by the plugins.
|
|
24
|
+
- You can use the
|
|
25
|
+
[`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
|
|
26
|
+
verify that all required peer dependencies are installed and compatible.
|
|
27
|
+
- Example install command:
|
|
28
|
+
```
|
|
29
|
+
npm install @atlaskit/editor-common
|
|
30
|
+
```
|
|
31
|
+
or
|
|
32
|
+
```
|
|
33
|
+
yarn add @atlaskit/editor-common
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
|
|
37
|
+
application level, you may see errors or unexpected behavior.
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
3
43
|
## 208.8.0
|
|
4
44
|
|
|
5
45
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
{
|
|
34
34
|
"path": "../../../design-system/css/afm-cc/tsconfig.json"
|
|
35
35
|
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../../editor-common/afm-cc/tsconfig.json"
|
|
38
|
-
},
|
|
39
36
|
{
|
|
40
37
|
"path": "../../editor-json-transformer/afm-cc/tsconfig.json"
|
|
41
38
|
},
|
|
@@ -93,6 +90,9 @@
|
|
|
93
90
|
{
|
|
94
91
|
"path": "../../../design-system/width-detector/afm-cc/tsconfig.json"
|
|
95
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../editor-common/afm-cc/tsconfig.json"
|
|
95
|
+
},
|
|
96
96
|
{
|
|
97
97
|
"path": "../../../linking-platform/link-provider/afm-cc/tsconfig.json"
|
|
98
98
|
},
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
{
|
|
34
34
|
"path": "../../../design-system/css/afm-jira/tsconfig.json"
|
|
35
35
|
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
38
|
-
},
|
|
39
36
|
{
|
|
40
37
|
"path": "../../editor-json-transformer/afm-jira/tsconfig.json"
|
|
41
38
|
},
|
|
@@ -93,6 +90,9 @@
|
|
|
93
90
|
{
|
|
94
91
|
"path": "../../../design-system/width-detector/afm-jira/tsconfig.json"
|
|
95
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
95
|
+
},
|
|
96
96
|
{
|
|
97
97
|
"path": "../../../linking-platform/link-provider/afm-jira/tsconfig.json"
|
|
98
98
|
},
|
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
{
|
|
34
34
|
"path": "../../../design-system/css/afm-post-office/tsconfig.json"
|
|
35
35
|
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../../editor-common/afm-post-office/tsconfig.json"
|
|
38
|
-
},
|
|
39
36
|
{
|
|
40
37
|
"path": "../../editor-json-transformer/afm-post-office/tsconfig.json"
|
|
41
38
|
},
|
|
@@ -93,6 +90,9 @@
|
|
|
93
90
|
{
|
|
94
91
|
"path": "../../../design-system/width-detector/afm-post-office/tsconfig.json"
|
|
95
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../editor-common/afm-post-office/tsconfig.json"
|
|
95
|
+
},
|
|
96
96
|
{
|
|
97
97
|
"path": "../../../linking-platform/link-provider/afm-post-office/tsconfig.json"
|
|
98
98
|
},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "208.
|
|
2
|
+
export const version = "208.8.0";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "208.
|
|
2
|
+
export var version = "208.8.0";
|
|
@@ -517,9 +517,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
517
517
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
518
518
|
insert: (props: {
|
|
519
519
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
520
|
-
contentItem: import("@atlaskit/editor-common/
|
|
520
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
521
521
|
query: string;
|
|
522
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
522
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
523
523
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
524
524
|
}) => boolean;
|
|
525
525
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -618,9 +618,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
618
618
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
619
619
|
insert: (props: {
|
|
620
620
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
621
|
-
contentItem: import("@atlaskit/editor-common/
|
|
621
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
622
622
|
query: string;
|
|
623
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
623
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
624
624
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
625
625
|
}) => boolean;
|
|
626
626
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1165,9 +1165,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1165
1165
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1166
1166
|
insert: (props: {
|
|
1167
1167
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1168
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1168
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1169
1169
|
query: string;
|
|
1170
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1170
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1171
1171
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1172
1172
|
}) => boolean;
|
|
1173
1173
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1308,9 +1308,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1308
1308
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1309
1309
|
insert: (props: {
|
|
1310
1310
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1311
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1311
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1312
1312
|
query: string;
|
|
1313
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1313
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1314
1314
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1315
1315
|
}) => boolean;
|
|
1316
1316
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import EditorActions from '../actions';
|
|
2
|
+
import type EditorActions from '../actions';
|
|
3
3
|
import { type EditorNextProps } from '../types/editor-props';
|
|
4
4
|
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent' | '__livePage'> & {
|
|
5
5
|
onChange?: () => void;
|
|
@@ -517,9 +517,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
517
517
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
518
518
|
insert: (props: {
|
|
519
519
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
520
|
-
contentItem: import("@atlaskit/editor-common/
|
|
520
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
521
521
|
query: string;
|
|
522
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
522
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
523
523
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
524
524
|
}) => boolean;
|
|
525
525
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -618,9 +618,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
618
618
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
619
619
|
insert: (props: {
|
|
620
620
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
621
|
-
contentItem: import("@atlaskit/editor-common/
|
|
621
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
622
622
|
query: string;
|
|
623
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
623
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
624
624
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
625
625
|
}) => boolean;
|
|
626
626
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1165,9 +1165,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1165
1165
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1166
1166
|
insert: (props: {
|
|
1167
1167
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1168
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1168
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1169
1169
|
query: string;
|
|
1170
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1170
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1171
1171
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1172
1172
|
}) => boolean;
|
|
1173
1173
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1308,9 +1308,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1308
1308
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1309
1309
|
insert: (props: {
|
|
1310
1310
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1311
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1311
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1312
1312
|
query: string;
|
|
1313
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1313
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1314
1314
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1315
1315
|
}) => boolean;
|
|
1316
1316
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -701,9 +701,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
701
701
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
702
702
|
insert: (props: {
|
|
703
703
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
704
|
-
contentItem: import("@atlaskit/editor-common/
|
|
704
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
705
705
|
query: string;
|
|
706
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
706
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
707
707
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
708
708
|
}) => boolean;
|
|
709
709
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -822,9 +822,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
822
822
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
823
823
|
insert: (props: {
|
|
824
824
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
825
|
-
contentItem: import("@atlaskit/editor-common/
|
|
825
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
826
826
|
query: string;
|
|
827
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
827
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
828
828
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
829
829
|
}) => boolean;
|
|
830
830
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1474,9 +1474,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1474
1474
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1475
1475
|
insert: (props: {
|
|
1476
1476
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1477
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1477
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1478
1478
|
query: string;
|
|
1479
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1479
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1480
1480
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1481
1481
|
}) => boolean;
|
|
1482
1482
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1643,9 +1643,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1643
1643
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1644
1644
|
insert: (props: {
|
|
1645
1645
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1646
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1646
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1647
1647
|
query: string;
|
|
1648
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1648
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1649
1649
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1650
1650
|
}) => boolean;
|
|
1651
1651
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import EditorActions from '../actions';
|
|
2
|
+
import type EditorActions from '../actions';
|
|
3
3
|
import { type EditorNextProps } from '../types/editor-props';
|
|
4
4
|
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'activityProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent' | '__livePage'> & {
|
|
5
5
|
onChange?: () => void;
|
|
@@ -701,9 +701,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
701
701
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
702
702
|
insert: (props: {
|
|
703
703
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
704
|
-
contentItem: import("@atlaskit/editor-common/
|
|
704
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
705
705
|
query: string;
|
|
706
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
706
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
707
707
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
708
708
|
}) => boolean;
|
|
709
709
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -822,9 +822,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
822
822
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
823
823
|
insert: (props: {
|
|
824
824
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
825
|
-
contentItem: import("@atlaskit/editor-common/
|
|
825
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
826
826
|
query: string;
|
|
827
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
827
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
828
828
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
829
829
|
}) => boolean;
|
|
830
830
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1474,9 +1474,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1474
1474
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1475
1475
|
insert: (props: {
|
|
1476
1476
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1477
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1477
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1478
1478
|
query: string;
|
|
1479
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1479
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1480
1480
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1481
1481
|
}) => boolean;
|
|
1482
1482
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1643,9 +1643,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1643
1643
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1644
1644
|
insert: (props: {
|
|
1645
1645
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1646
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1646
|
+
contentItem: import("@atlaskit/editor-common/types").TypeAheadItem;
|
|
1647
1647
|
query: string;
|
|
1648
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1648
|
+
sourceListItem: import("@atlaskit/editor-common/types").TypeAheadItem[];
|
|
1649
1649
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1650
1650
|
}) => boolean;
|
|
1651
1651
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
package/docs/0-intro.tsx
CHANGED
|
@@ -24,8 +24,8 @@ ${(<AtlassianInternalWarning />)}
|
|
|
24
24
|
## Installation
|
|
25
25
|
|
|
26
26
|
1. Install the editor libraries
|
|
27
|
-
- **npm:** \`npm install --save @atlaskit/editor-core @atlaskit/css-reset\`
|
|
28
|
-
- **yarn:** \`yarn add @atlaskit/editor-core @atlaskit/css-reset\`
|
|
27
|
+
- **npm:** \`npm install --save @atlaskit/editor-core @atlaskit/editor-common @atlaskit/css-reset\`
|
|
28
|
+
- **yarn:** \`yarn add @atlaskit/editor-core @atlaskit/editor-common @atlaskit/css-reset\`
|
|
29
29
|
|
|
30
30
|
2. Deduplicate the dependencies \(if necessary\) by setting resolutions to avoid multiple versions of the editor libraries or by running [npm dedupe](https://docs.npmjs.com/cli/v6/commands/npm-dedupe) or [yarn dedupe](https://yarnpkg.com/cli/dedupe) after installation.
|
|
31
31
|
3. Setup the CSS reset in your application
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "209.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,11 +45,10 @@
|
|
|
45
45
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
46
46
|
"@atlaskit/button": "^23.2.0",
|
|
47
47
|
"@atlaskit/css": "^0.12.0",
|
|
48
|
-
"@atlaskit/editor-common": "^107.5.0",
|
|
49
48
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
50
49
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
51
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
52
|
-
"@atlaskit/editor-plugin-user-preferences": "^0.
|
|
50
|
+
"@atlaskit/editor-plugin-quick-insert": "^3.0.0",
|
|
51
|
+
"@atlaskit/editor-plugin-user-preferences": "^1.0.0",
|
|
53
52
|
"@atlaskit/editor-plugins": "^9.4.0",
|
|
54
53
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
54
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
@@ -79,6 +78,7 @@
|
|
|
79
78
|
"uuid": "^3.1.0"
|
|
80
79
|
},
|
|
81
80
|
"peerDependencies": {
|
|
81
|
+
"@atlaskit/editor-common": "^107.6.0",
|
|
82
82
|
"@atlaskit/link-provider": "^3.4.0",
|
|
83
83
|
"@atlaskit/media-core": "^37.0.0",
|
|
84
84
|
"react": "^18.2.0",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"@af/visual-regression": "workspace:^",
|
|
91
91
|
"@atlaskit/adf-utils": "^19.20.0",
|
|
92
92
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
93
|
-
"@atlaskit/collab-provider": "^
|
|
94
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
95
|
-
"@atlaskit/editor-plugin-card": "^
|
|
96
|
-
"@atlaskit/editor-plugin-list": "^
|
|
97
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
93
|
+
"@atlaskit/collab-provider": "^11.0.0",
|
|
94
|
+
"@atlaskit/editor-plugin-annotation": "^3.0.0",
|
|
95
|
+
"@atlaskit/editor-plugin-card": "^7.0.0",
|
|
96
|
+
"@atlaskit/editor-plugin-list": "^5.0.0",
|
|
97
|
+
"@atlaskit/editor-plugin-paste": "^4.0.0",
|
|
98
98
|
"@atlaskit/link-provider": "^3.4.0",
|
|
99
99
|
"@atlaskit/logo": "^19.5.0",
|
|
100
100
|
"@atlaskit/media-core": "^37.0.0",
|
|
@@ -102,16 +102,16 @@
|
|
|
102
102
|
"@atlaskit/media-test-helpers": "^37.0.0",
|
|
103
103
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
104
104
|
"@atlaskit/primitives": "^14.10.0",
|
|
105
|
-
"@atlaskit/renderer": "^
|
|
105
|
+
"@atlaskit/renderer": "^120.0.0",
|
|
106
106
|
"@atlaskit/section-message": "^8.2.0",
|
|
107
|
-
"@atlaskit/smart-card": "^
|
|
107
|
+
"@atlaskit/smart-card": "^39.0.0",
|
|
108
108
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
109
109
|
"@atlaskit/toggle": "^15.0.0",
|
|
110
110
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
111
111
|
"@atlaskit/visual-regression": "workspace:^",
|
|
112
112
|
"@atlassian/adf-schema-json": "^1.31.0",
|
|
113
113
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
114
|
-
"@atlassian/search-provider": "^
|
|
114
|
+
"@atlassian/search-provider": "^4.0.0",
|
|
115
115
|
"@emotion/jest": "^11.8.0",
|
|
116
116
|
"@storybook/addon-knobs": "^6.4.0",
|
|
117
117
|
"@testing-library/react": "^13.4.0",
|