@atlaskit/editor-plugin-panel 0.2.3 → 0.2.4
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/toolbar.js +2 -2
- package/dist/es2019/toolbar.js +2 -2
- package/dist/esm/toolbar.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
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.2.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -264,7 +264,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
|
|
|
264
264
|
var formatMessage = intl.formatMessage;
|
|
265
265
|
var panelObject = (0, _utils2.findPanel)(state);
|
|
266
266
|
if (panelObject) {
|
|
267
|
-
var _api$analytics;
|
|
267
|
+
var _api$decorations, _api$analytics;
|
|
268
268
|
var nodeType = state.schema.nodes.panel;
|
|
269
269
|
var _panelObject$node$att = panelObject.node.attrs,
|
|
270
270
|
panelType = _panelObject$node$att.panelType,
|
|
@@ -275,7 +275,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
|
|
|
275
275
|
};
|
|
276
276
|
|
|
277
277
|
// force toolbar to be turned on
|
|
278
|
-
var items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, api === null || api === void 0 ? void 0 :
|
|
278
|
+
var items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, api === null || api === void 0 || (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, panelType, options.allowCustomPanel ? panelColor : undefined, options.allowCustomPanel ? panelIcon || isStandardPanel(panelType) : undefined, state);
|
|
279
279
|
var getDomRef = function getDomRef(editorView) {
|
|
280
280
|
var domAtPos = editorView.domAtPos.bind(editorView);
|
|
281
281
|
var element = (0, _utils.findDomRefAtPos)(panelObject.pos, domAtPos);
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -249,7 +249,7 @@ export const getToolbarConfig = (state, intl, options = {}, providerFactory, api
|
|
|
249
249
|
} = intl;
|
|
250
250
|
const panelObject = findPanel(state);
|
|
251
251
|
if (panelObject) {
|
|
252
|
-
var _api$analytics;
|
|
252
|
+
var _api$decorations, _api$analytics;
|
|
253
253
|
const nodeType = state.schema.nodes.panel;
|
|
254
254
|
const {
|
|
255
255
|
panelType,
|
|
@@ -261,7 +261,7 @@ export const getToolbarConfig = (state, intl, options = {}, providerFactory, api
|
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
// force toolbar to be turned on
|
|
264
|
-
const items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, api === null || api === void 0 ? void 0 : api.decorations.actions.hoverDecoration, api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, panelType, options.allowCustomPanel ? panelColor : undefined, options.allowCustomPanel ? panelIcon || isStandardPanel(panelType) : undefined, state);
|
|
264
|
+
const items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, api === null || api === void 0 ? void 0 : (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration, api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, panelType, options.allowCustomPanel ? panelColor : undefined, options.allowCustomPanel ? panelIcon || isStandardPanel(panelType) : undefined, state);
|
|
265
265
|
const getDomRef = editorView => {
|
|
266
266
|
const domAtPos = editorView.domAtPos.bind(editorView);
|
|
267
267
|
const element = findDomRefAtPos(panelObject.pos, domAtPos);
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -257,7 +257,7 @@ export var getToolbarConfig = function getToolbarConfig(state, intl) {
|
|
|
257
257
|
var formatMessage = intl.formatMessage;
|
|
258
258
|
var panelObject = findPanel(state);
|
|
259
259
|
if (panelObject) {
|
|
260
|
-
var _api$analytics;
|
|
260
|
+
var _api$decorations, _api$analytics;
|
|
261
261
|
var nodeType = state.schema.nodes.panel;
|
|
262
262
|
var _panelObject$node$att = panelObject.node.attrs,
|
|
263
263
|
panelType = _panelObject$node$att.panelType,
|
|
@@ -268,7 +268,7 @@ export var getToolbarConfig = function getToolbarConfig(state, intl) {
|
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
// force toolbar to be turned on
|
|
271
|
-
var items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, api === null || api === void 0 ? void 0 :
|
|
271
|
+
var items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, api === null || api === void 0 || (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions.hoverDecoration, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, panelType, options.allowCustomPanel ? panelColor : undefined, options.allowCustomPanel ? panelIcon || isStandardPanel(panelType) : undefined, state);
|
|
272
272
|
var getDomRef = function getDomRef(editorView) {
|
|
273
273
|
var domAtPos = editorView.domAtPos.bind(editorView);
|
|
274
274
|
var element = findDomRefAtPos(panelObject.pos, domAtPos);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"releaseModel": "continuous",
|
|
15
15
|
"runReact18": false
|
|
16
16
|
},
|
|
17
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
18
|
"main": "dist/cjs/index.js",
|
|
19
19
|
"module": "dist/esm/index.js",
|
|
20
20
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^35.3.0",
|
|
37
|
-
"@atlaskit/editor-common": "^76.
|
|
37
|
+
"@atlaskit/editor-common": "^76.39.0",
|
|
38
38
|
"@atlaskit/editor-palette": "1.5.2",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|