@atlaskit/editor-core 198.2.2 → 198.3.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 +21 -0
- package/appearance-editor-chromeless/package.json +15 -0
- package/appearance-editor-comment/package.json +15 -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/editor-appearances/ChromelessEditor.d.ts +1 -1
- package/dist/types/editor-appearances/CommentEditor.d.ts +1 -1
- package/dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts +1 -1
- package/dist/types-ts4.5/editor-appearances/CommentEditor.d.ts +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 198.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#147579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147579)
|
|
8
|
+
[`b08b21a69d62d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b08b21a69d62d) -
|
|
9
|
+
Introduce new CommentEditor and ChromelessEditor components that only include relevant apperarance
|
|
10
|
+
code to optimise bundle size and the required parameters.
|
|
11
|
+
|
|
12
|
+
These can be accessed like so:
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { CommentEditor } from '@atlaskit/editor-core/appearance-editor-comment';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
and
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { ChromelessEditor } from '@atlaskit/editor-core/appearance-editor-chromeless';
|
|
22
|
+
```
|
|
23
|
+
|
|
3
24
|
## 198.2.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-core/appearance-editor-chromeless",
|
|
3
|
+
"main": "../dist/cjs/editor-appearances/ChromelessEditor.js",
|
|
4
|
+
"module": "../dist/esm/editor-appearances/ChromelessEditor.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/editor-appearances/ChromelessEditor.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/editor-appearances/ChromelessEditor.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-core/appearance-editor-comment",
|
|
3
|
+
"main": "../dist/cjs/editor-appearances/CommentEditor.js",
|
|
4
|
+
"module": "../dist/esm/editor-appearances/CommentEditor.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/editor-appearances/CommentEditor.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/editor-appearances/CommentEditor.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/editor-appearances/CommentEditor.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "198.
|
|
2
|
+
export const version = "198.3.0";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "198.
|
|
2
|
+
export var version = "198.3.0";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
3
|
+
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type CommentEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
3
|
+
export type CommentEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
3
|
+
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type CommentEditorProps = Pick<EditorNextProps, 'preset'>;
|
|
3
|
+
export type CommentEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'performanceTracking' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
|
|
6
6
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "198.
|
|
3
|
+
"version": "198.3.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -299,6 +299,8 @@
|
|
|
299
299
|
"./preset-builder": "./src/preset-builder.ts",
|
|
300
300
|
"./appearance-editor-full-page": "./src/editor-appearances/FullPageEditor.tsx",
|
|
301
301
|
"./appearance-editor-full-width": "./src/editor-appearances/FullWidthEditor.tsx",
|
|
302
|
+
"./appearance-editor-comment": "./src/editor-appearances/CommentEditor.tsx",
|
|
303
|
+
"./appearance-editor-chromeless": "./src/editor-appearances/ChromelessEditor.tsx",
|
|
302
304
|
"./version-wrapper": "./src/version-wrapper.ts"
|
|
303
305
|
}
|
|
304
306
|
}
|