@atlaskit/editor-plugin-panel 1.4.0 → 1.4.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 +9 -0
- package/dist/cjs/plugin.js +1 -2
- package/dist/es2019/plugin.js +2 -3
- package/dist/esm/plugin.js +2 -3
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#115817](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115817)
|
|
8
|
+
[`d647eedc6ddd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d647eedc6ddd4) -
|
|
9
|
+
[ux] [ED-23275] Feature flag cleanup for allow-extended-panel
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.4.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -10,7 +10,6 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
14
|
var _actions = require("./actions");
|
|
16
15
|
var _keymaps = _interopRequireDefault(require("./pm-plugins/keymaps"));
|
|
@@ -23,7 +22,7 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
23
22
|
return {
|
|
24
23
|
name: 'panel',
|
|
25
24
|
nodes: function nodes() {
|
|
26
|
-
var panelNode = (0,
|
|
25
|
+
var panelNode = (0, _adfSchema.extendedPanel)(!!options.allowCustomPanel);
|
|
27
26
|
return [{
|
|
28
27
|
name: 'panel',
|
|
29
28
|
node: panelNode
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
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';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { T50 } from '@atlaskit/theme/colors';
|
|
8
7
|
import { insertPanelWithAnalytics } from './actions';
|
|
9
8
|
import keymap from './pm-plugins/keymaps';
|
|
@@ -15,7 +14,7 @@ const panelPlugin = ({
|
|
|
15
14
|
}) => ({
|
|
16
15
|
name: 'panel',
|
|
17
16
|
nodes() {
|
|
18
|
-
const panelNode =
|
|
17
|
+
const panelNode = extendedPanel(!!options.allowCustomPanel);
|
|
19
18
|
return [{
|
|
20
19
|
name: 'panel',
|
|
21
20
|
node: panelNode
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
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';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { T50 } from '@atlaskit/theme/colors';
|
|
8
7
|
import { insertPanelWithAnalytics } from './actions';
|
|
9
8
|
import keymap from './pm-plugins/keymaps';
|
|
@@ -16,7 +15,7 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
16
15
|
return {
|
|
17
16
|
name: 'panel',
|
|
18
17
|
nodes: function nodes() {
|
|
19
|
-
var panelNode =
|
|
18
|
+
var panelNode = extendedPanel(!!options.allowCustomPanel);
|
|
20
19
|
return [{
|
|
21
20
|
name: 'panel',
|
|
22
21
|
node: panelNode
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^38.0.0",
|
|
37
|
-
"@atlaskit/editor-common": "^83.
|
|
37
|
+
"@atlaskit/editor-common": "^83.4.0",
|
|
38
38
|
"@atlaskit/editor-palette": "1.6.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
@@ -91,9 +91,6 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"platform-feature-flags": {
|
|
94
|
-
"platform.editor.allow-extended-panel": {
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
},
|
|
97
94
|
"platform.editor.allow-custom-cut-for-panel": {
|
|
98
95
|
"type": "boolean"
|
|
99
96
|
}
|