@atlaskit/editor-core 195.9.1 → 196.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/dist/cjs/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 196.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#133449](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133449)
|
|
8
|
+
[`e71e7162cf5c2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e71e7162cf5c2) -
|
|
9
|
+
[ux] Add new parameter for ContextPanel component: "editorAPI". This only affects
|
|
10
|
+
`full-page`/`full-width` appearance
|
|
11
|
+
|
|
12
|
+
WHAT? `ContextPanel` previously used a deprecated method `WithPluginState` to listen to plugin
|
|
13
|
+
changes.
|
|
14
|
+
|
|
15
|
+
The behaviour now uses the new `editorAPI` to listen to plugin updates and display the UI
|
|
16
|
+
accordingly.
|
|
17
|
+
|
|
18
|
+
WHY? The old approach is deprecated and no longer supported.
|
|
19
|
+
|
|
20
|
+
HOW? Generally this only affects consumers using `full-page`/`full-width` appearances. If you are
|
|
21
|
+
not using the `contextPanel` prop as well, this does not apply.
|
|
22
|
+
|
|
23
|
+
Currently you can pass a `contextPanel` to the editor to override the default. If you are doing
|
|
24
|
+
this you will now need to pass the `editorAPI` (or `undefined` if you are not using the
|
|
25
|
+
`extensionPlugin` with your context panel)
|
|
26
|
+
|
|
27
|
+
Example:
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
function Editor() {
|
|
31
|
+
const { preset, editorApi } = usePreset(...);
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<ComposableEditor
|
|
35
|
+
preset={preset}
|
|
36
|
+
contextPanel={<ContextPanel editorAPI={editorApi} visible={...} />}
|
|
37
|
+
/>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
|
|
3
43
|
## 195.9.1
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "CollapsedEditor", {
|
|
|
37
37
|
Object.defineProperty(exports, "ContextPanel", {
|
|
38
38
|
enumerable: true,
|
|
39
39
|
get: function get() {
|
|
40
|
-
return
|
|
40
|
+
return _ContextPanel.default;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "EVENT_TYPE", {
|
|
@@ -156,7 +156,7 @@ var _WithHelpTrigger = _interopRequireDefault(require("./ui/WithHelpTrigger"));
|
|
|
156
156
|
var _CollapsedEditor = _interopRequireDefault(require("./ui/CollapsedEditor"));
|
|
157
157
|
var _ToolbarHelp = _interopRequireDefault(require("./ui/ToolbarHelp"));
|
|
158
158
|
var _ToolbarFeedback = _interopRequireDefault(require("./ui/ToolbarFeedback"));
|
|
159
|
-
var
|
|
159
|
+
var _ContextPanel = _interopRequireDefault(require("./ui/ContextPanel"));
|
|
160
160
|
var _resource = require("@atlaskit/emoji/resource");
|
|
161
161
|
var _resource2 = require("@atlaskit/mention/resource");
|
|
162
162
|
var _teamResource = require("@atlaskit/mention/team-resource");
|
package/dist/es2019/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export {
|
|
|
12
12
|
* @deprecated
|
|
13
13
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
14
14
|
*/
|
|
15
|
-
default as ContextPanel } from './ui/ContextPanel
|
|
15
|
+
default as ContextPanel } from './ui/ContextPanel';
|
|
16
16
|
export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
17
17
|
export { MentionResource } from '@atlaskit/mention/resource';
|
|
18
18
|
export { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "196.0.0";
|
package/dist/esm/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export {
|
|
|
12
12
|
* @deprecated
|
|
13
13
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
14
14
|
*/
|
|
15
|
-
default as ContextPanel } from './ui/ContextPanel
|
|
15
|
+
default as ContextPanel } from './ui/ContextPanel';
|
|
16
16
|
export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
17
17
|
export { MentionResource } from '@atlaskit/mention/resource';
|
|
18
18
|
export { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "196.0.0";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export {
|
|
|
11
11
|
* @deprecated
|
|
12
12
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
13
13
|
*/
|
|
14
|
-
default as ContextPanel, } from './ui/ContextPanel
|
|
14
|
+
default as ContextPanel, } from './ui/ContextPanel';
|
|
15
15
|
export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
16
16
|
export { MentionResource } from '@atlaskit/mention/resource';
|
|
17
17
|
export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';
|
|
@@ -11,7 +11,7 @@ export {
|
|
|
11
11
|
* @deprecated
|
|
12
12
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
13
13
|
*/
|
|
14
|
-
default as ContextPanel, } from './ui/ContextPanel
|
|
14
|
+
default as ContextPanel, } from './ui/ContextPanel';
|
|
15
15
|
export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
16
16
|
export { MentionResource } from '@atlaskit/mention/resource';
|
|
17
17
|
export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "196.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@af/editor-examples-helpers": "0.3.
|
|
83
|
+
"@af/editor-examples-helpers": "0.3.3",
|
|
84
84
|
"@af/editor-libra": "*",
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
86
|
"@atlaskit/adf-utils": "^19.8.0",
|