@atlaskit/editor-plugin-panel 23.0.4 → 24.0.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 +14 -0
- package/dist/cjs/nodeviews/panel.js +2 -3
- package/dist/es2019/nodeviews/panel.js +2 -3
- package/dist/esm/nodeviews/panel.js +2 -3
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 24.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`517ce6768d96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/517ce6768d96a) -
|
|
8
|
+
Clean up experiment `platform_editor_vc90_transition_panel_icon`.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 24.0.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 23.0.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,7 +17,6 @@ var _panel2 = require("@atlaskit/editor-common/panel");
|
|
|
17
17
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
18
18
|
var _consts = require("@atlaskit/editor-shared-styles/consts");
|
|
19
19
|
var _lightbulb = _interopRequireDefault(require("@atlaskit/icon/core/lightbulb"));
|
|
20
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
20
|
var _utils = require("../pm-plugins/utils/utils");
|
|
22
21
|
var _renderPanelIcon = require("../ui/renderPanelIcon");
|
|
23
22
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
@@ -105,7 +104,7 @@ var PanelNodeView = /*#__PURE__*/function () {
|
|
|
105
104
|
|
|
106
105
|
// For standard panels (info, note, success, warning, error), render icon directly as native DOM
|
|
107
106
|
// This avoids Portal rendering delays that cause flickering on SSR and page transitions
|
|
108
|
-
if (isStandardPanel
|
|
107
|
+
if (isStandardPanel) {
|
|
109
108
|
(0, _renderPanelIcon.renderPanelIcon)(panelAttrs.panelType, this.icon);
|
|
110
109
|
} else {
|
|
111
110
|
this.nodeViewPortalProviderAPI.render(function () {
|
|
@@ -137,7 +136,7 @@ var PanelNodeView = /*#__PURE__*/function () {
|
|
|
137
136
|
// Determine if this is a standard panel type (info, note, success, warning, error)
|
|
138
137
|
var isStandardPanel = panelAttrs.panelType && [_panel.PanelType.INFO, _panel.PanelType.NOTE, _panel.PanelType.SUCCESS, _panel.PanelType.WARNING, _panel.PanelType.ERROR].includes(panelAttrs.panelType);
|
|
139
138
|
// Only remove Portal if it was used (for custom emoji panels)
|
|
140
|
-
if (!
|
|
139
|
+
if (!isStandardPanel) {
|
|
141
140
|
this.nodeViewPortalProviderAPI.remove(this.key);
|
|
142
141
|
}
|
|
143
142
|
}
|
|
@@ -10,7 +10,6 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
|
10
10
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
12
12
|
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
13
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
15
14
|
import { renderPanelIcon } from '../ui/renderPanelIcon';
|
|
16
15
|
|
|
@@ -100,7 +99,7 @@ class PanelNodeView {
|
|
|
100
99
|
|
|
101
100
|
// For standard panels (info, note, success, warning, error), render icon directly as native DOM
|
|
102
101
|
// This avoids Portal rendering delays that cause flickering on SSR and page transitions
|
|
103
|
-
if (isStandardPanel
|
|
102
|
+
if (isStandardPanel) {
|
|
104
103
|
renderPanelIcon(panelAttrs.panelType, this.icon);
|
|
105
104
|
} else {
|
|
106
105
|
this.nodeViewPortalProviderAPI.render(() => /*#__PURE__*/React.createElement(PanelIcon, {
|
|
@@ -126,7 +125,7 @@ class PanelNodeView {
|
|
|
126
125
|
// Determine if this is a standard panel type (info, note, success, warning, error)
|
|
127
126
|
const isStandardPanel = panelAttrs.panelType && [PanelType.INFO, PanelType.NOTE, PanelType.SUCCESS, PanelType.WARNING, PanelType.ERROR].includes(panelAttrs.panelType);
|
|
128
127
|
// Only remove Portal if it was used (for custom emoji panels)
|
|
129
|
-
if (!
|
|
128
|
+
if (!isStandardPanel) {
|
|
130
129
|
this.nodeViewPortalProviderAPI.remove(this.key);
|
|
131
130
|
}
|
|
132
131
|
}
|
|
@@ -12,7 +12,6 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
|
12
12
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
13
13
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
14
14
|
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
15
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
15
|
import { panelAttrsToDom } from '../pm-plugins/utils/utils';
|
|
17
16
|
import { renderPanelIcon } from '../ui/renderPanelIcon';
|
|
18
17
|
|
|
@@ -99,7 +98,7 @@ var PanelNodeView = /*#__PURE__*/function () {
|
|
|
99
98
|
|
|
100
99
|
// For standard panels (info, note, success, warning, error), render icon directly as native DOM
|
|
101
100
|
// This avoids Portal rendering delays that cause flickering on SSR and page transitions
|
|
102
|
-
if (isStandardPanel
|
|
101
|
+
if (isStandardPanel) {
|
|
103
102
|
renderPanelIcon(panelAttrs.panelType, this.icon);
|
|
104
103
|
} else {
|
|
105
104
|
this.nodeViewPortalProviderAPI.render(function () {
|
|
@@ -131,7 +130,7 @@ var PanelNodeView = /*#__PURE__*/function () {
|
|
|
131
130
|
// Determine if this is a standard panel type (info, note, success, warning, error)
|
|
132
131
|
var isStandardPanel = panelAttrs.panelType && [PanelType.INFO, PanelType.NOTE, PanelType.SUCCESS, PanelType.WARNING, PanelType.ERROR].includes(panelAttrs.panelType);
|
|
133
132
|
// Only remove Portal if it was used (for custom emoji panels)
|
|
134
|
-
if (!
|
|
133
|
+
if (!isStandardPanel) {
|
|
135
134
|
this.nodeViewPortalProviderAPI.remove(this.key);
|
|
136
135
|
}
|
|
137
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.1",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/adf-schema": "^57.6.0",
|
|
23
23
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
24
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
25
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
26
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
27
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
28
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
29
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
30
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
24
|
+
"@atlaskit/editor-plugin-analytics": "^22.0.0",
|
|
25
|
+
"@atlaskit/editor-plugin-block-menu": "^21.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-decorations": "^22.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-emoji": "^23.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-selection": "^22.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-toolbar": "^19.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^16.0.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
32
32
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
33
33
|
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@atlaskit/icon-lab": "^7.10.0",
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
-
"@atlaskit/tokens": "^20.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^210.0.0",
|
|
41
|
+
"@atlaskit/tokens": "^20.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"uuid": "^11.1.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^
|
|
46
|
+
"@atlaskit/editor-common": "^126.1.0",
|
|
47
47
|
"react": "^18.2.0 || ^19.2.0",
|
|
48
48
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|