@atlaskit/editor-plugin-extension 0.5.0 → 0.5.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 +6 -0
- package/dist/cjs/plugin.js +2 -2
- package/dist/es2019/plugin.js +2 -2
- package/dist/esm/plugin.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
|
|
8
|
+
|
|
3
9
|
## 0.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -19,7 +19,7 @@ var _main = require("./pm-plugins/main");
|
|
|
19
19
|
var _uniqueId = require("./pm-plugins/unique-id");
|
|
20
20
|
var _toolbar = require("./toolbar");
|
|
21
21
|
var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
|
|
22
|
-
var _api$featureFlags, _api$analytics2, _api$analytics3, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
|
|
22
|
+
var _api$featureFlags, _api$analytics2, _api$analytics3, _api$decorations, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
|
|
23
23
|
var _ref$config = _ref.config,
|
|
24
24
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
25
25
|
_api = _ref.api;
|
|
@@ -134,7 +134,7 @@ var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
|
|
|
134
134
|
pluginsOptions: {
|
|
135
135
|
floatingToolbar: (0, _toolbar.getToolbarConfig)({
|
|
136
136
|
breakoutEnabled: options.breakoutEnabled,
|
|
137
|
-
hoverDecoration: _api === null || _api === void 0 ? void 0 : _api
|
|
137
|
+
hoverDecoration: _api === null || _api === void 0 || (_api$decorations = _api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration,
|
|
138
138
|
applyChangeToContextPanel: _api === null || _api === void 0 || (_api$contextPanel3 = _api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange,
|
|
139
139
|
editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics4 = _api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions
|
|
140
140
|
}),
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -15,7 +15,7 @@ export const extensionPlugin = ({
|
|
|
15
15
|
config: options = {},
|
|
16
16
|
api
|
|
17
17
|
}) => {
|
|
18
|
-
var _api$featureFlags, _api$analytics2, _api$analytics3, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
|
|
18
|
+
var _api$featureFlags, _api$analytics2, _api$analytics3, _api$decorations, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
|
|
19
19
|
const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
20
20
|
//Note: This is a hack to get the editor view reference in the plugin. Copied from table plugin.
|
|
21
21
|
//This is needed to get the current selection in the editor
|
|
@@ -125,7 +125,7 @@ export const extensionPlugin = ({
|
|
|
125
125
|
pluginsOptions: {
|
|
126
126
|
floatingToolbar: getToolbarConfig({
|
|
127
127
|
breakoutEnabled: options.breakoutEnabled,
|
|
128
|
-
hoverDecoration: api === null || api === void 0 ? void 0 : api.decorations.actions.hoverDecoration,
|
|
128
|
+
hoverDecoration: api === null || api === void 0 ? void 0 : (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration,
|
|
129
129
|
applyChangeToContextPanel: api === null || api === void 0 ? void 0 : (_api$contextPanel3 = api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange,
|
|
130
130
|
editorAnalyticsAPI: api === null || api === void 0 ? void 0 : (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions
|
|
131
131
|
}),
|
package/dist/esm/plugin.js
CHANGED
|
@@ -12,7 +12,7 @@ import { createPlugin, pluginKey } from './pm-plugins/main';
|
|
|
12
12
|
import { createPlugin as createUniqueIdPlugin } from './pm-plugins/unique-id';
|
|
13
13
|
import { getToolbarConfig } from './toolbar';
|
|
14
14
|
export var extensionPlugin = function extensionPlugin(_ref) {
|
|
15
|
-
var _api$featureFlags, _api$analytics2, _api$analytics3, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
|
|
15
|
+
var _api$featureFlags, _api$analytics2, _api$analytics3, _api$decorations, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
|
|
16
16
|
var _ref$config = _ref.config,
|
|
17
17
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
18
18
|
_api = _ref.api;
|
|
@@ -127,7 +127,7 @@ export var extensionPlugin = function extensionPlugin(_ref) {
|
|
|
127
127
|
pluginsOptions: {
|
|
128
128
|
floatingToolbar: getToolbarConfig({
|
|
129
129
|
breakoutEnabled: options.breakoutEnabled,
|
|
130
|
-
hoverDecoration: _api === null || _api === void 0 ? void 0 : _api
|
|
130
|
+
hoverDecoration: _api === null || _api === void 0 || (_api$decorations = _api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration,
|
|
131
131
|
applyChangeToContextPanel: _api === null || _api === void 0 || (_api$contextPanel3 = _api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange,
|
|
132
132
|
editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics4 = _api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions
|
|
133
133
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"releaseModel": "continuous",
|
|
14
14
|
"runReact18": false
|
|
15
15
|
},
|
|
16
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
17
|
"main": "dist/cjs/index.js",
|
|
18
18
|
"module": "dist/esm/index.js",
|
|
19
19
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/button": "^17.2.0",
|
|
32
32
|
"@atlaskit/checkbox": "^13.0.0",
|
|
33
33
|
"@atlaskit/datetime-picker": "^13.0.3",
|
|
34
|
-
"@atlaskit/editor-common": "^76.
|
|
34
|
+
"@atlaskit/editor-common": "^76.39.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-panel": "^0.2.0",
|