@atlaskit/editor-plugin-panel 4.3.5 → 4.3.7
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
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 4.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#139216](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139216)
|
|
8
|
+
[`e8f596d2b1910`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8f596d2b1910) -
|
|
9
|
+
[ux] Cleaned up platform_editor_controls_patch_1 FG
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 4.3.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#138959](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138959)
|
|
17
|
+
[`66b24c95f63de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/66b24c95f63de) -
|
|
18
|
+
Clean up experiment platform_editor_nested_non_bodied_macros [ED-27183]
|
|
19
|
+
|
|
3
20
|
## 4.3.5
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/panelPlugin.js
CHANGED
|
@@ -24,7 +24,7 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
24
24
|
return {
|
|
25
25
|
name: 'panel',
|
|
26
26
|
nodes: function nodes() {
|
|
27
|
-
var panelNode = (0,
|
|
27
|
+
var panelNode = (0, _adfSchema.extendedPanel)(!!options.allowCustomPanel);
|
|
28
28
|
return [{
|
|
29
29
|
name: 'panel',
|
|
30
30
|
node: panelNode
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -26,7 +26,6 @@ var _successEditorSuccess = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
|
26
26
|
var _warningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning--editor-warning"));
|
|
27
27
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
28
28
|
var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
|
|
29
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
30
29
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
31
30
|
var _actions = require("../editor-actions/actions");
|
|
32
31
|
var _utils2 = require("../pm-plugins/utils/utils");
|
|
@@ -287,12 +286,12 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
287
286
|
});
|
|
288
287
|
} else {
|
|
289
288
|
var hoverDecorationProps = function hoverDecorationProps(nodeType, className) {
|
|
290
|
-
return
|
|
289
|
+
return {
|
|
291
290
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
292
291
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className),
|
|
293
292
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
294
293
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
|
|
295
|
-
}
|
|
294
|
+
};
|
|
296
295
|
};
|
|
297
296
|
var overflowMenuConfig = [{
|
|
298
297
|
type: 'separator',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { extendedPanel,
|
|
2
|
+
import { extendedPanel, PanelType } from '@atlaskit/adf-schema';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
|
|
@@ -16,7 +16,7 @@ const panelPlugin = ({
|
|
|
16
16
|
}) => ({
|
|
17
17
|
name: 'panel',
|
|
18
18
|
nodes() {
|
|
19
|
-
const panelNode =
|
|
19
|
+
const panelNode = extendedPanel(!!options.allowCustomPanel);
|
|
20
20
|
return [{
|
|
21
21
|
name: 'panel',
|
|
22
22
|
node: panelNode
|
|
@@ -17,7 +17,6 @@ import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
|
|
|
17
17
|
import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
|
|
18
18
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
19
19
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
20
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
21
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
23
22
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
@@ -266,12 +265,12 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
|
|
|
266
265
|
tabIndex: null
|
|
267
266
|
});
|
|
268
267
|
} else {
|
|
269
|
-
const hoverDecorationProps = (nodeType, className) =>
|
|
268
|
+
const hoverDecorationProps = (nodeType, className) => ({
|
|
270
269
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
271
270
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className),
|
|
272
271
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
273
272
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
|
|
274
|
-
}
|
|
273
|
+
});
|
|
275
274
|
const overflowMenuConfig = [{
|
|
276
275
|
type: 'separator',
|
|
277
276
|
fullHeight: true
|
package/dist/esm/panelPlugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { extendedPanel,
|
|
2
|
+
import { extendedPanel, PanelType } from '@atlaskit/adf-schema';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
|
|
@@ -17,7 +17,7 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
17
17
|
return {
|
|
18
18
|
name: 'panel',
|
|
19
19
|
nodes: function nodes() {
|
|
20
|
-
var panelNode =
|
|
20
|
+
var panelNode = extendedPanel(!!options.allowCustomPanel);
|
|
21
21
|
return [{
|
|
22
22
|
name: 'panel',
|
|
23
23
|
node: panelNode
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -20,7 +20,6 @@ import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
|
|
|
20
20
|
import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
|
|
21
21
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
22
22
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
25
24
|
import { changePanelType, removePanel } from '../editor-actions/actions';
|
|
26
25
|
import { findPanel } from '../pm-plugins/utils/utils';
|
|
@@ -277,12 +276,12 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
|
|
|
277
276
|
});
|
|
278
277
|
} else {
|
|
279
278
|
var hoverDecorationProps = function hoverDecorationProps(nodeType, className) {
|
|
280
|
-
return
|
|
279
|
+
return {
|
|
281
280
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
282
281
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className),
|
|
283
282
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true, className),
|
|
284
283
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false, className)
|
|
285
|
-
}
|
|
284
|
+
};
|
|
286
285
|
};
|
|
287
286
|
var overflowMenuConfig = [{
|
|
288
287
|
type: 'separator',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
|
-
"@atlaskit/editor-common": "^103.
|
|
35
|
+
"@atlaskit/editor-common": "^103.4.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
@@ -99,9 +99,6 @@
|
|
|
99
99
|
"platform_editor_nested_dnd_styles_changes": {
|
|
100
100
|
"type": "boolean"
|
|
101
101
|
},
|
|
102
|
-
"platform_editor_controls_patch_1": {
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
102
|
"platform_editor_lcm_nested_panel_icon_fix": {
|
|
106
103
|
"type": "boolean"
|
|
107
104
|
}
|