@atlaskit/editor-plugin-panel 14.1.25 → 14.1.26
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 14.1.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`591b0c312eed9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/591b0c312eed9) -
|
|
8
|
+
Clean up experiment `platform_editor_stricter_panelcolor_typecheck` and make stricter panel color
|
|
9
|
+
validation permanent.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 14.1.25
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -35,9 +35,9 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
|
|
|
35
35
|
panelIconText = attrs.panelIconText;
|
|
36
36
|
var isCustomPanel = panelType === _adfSchema.PanelType.CUSTOM && allowCustomPanel;
|
|
37
37
|
var hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
|
|
38
|
-
var tokenColor =
|
|
38
|
+
var tokenColor = typeof panelColor === 'string' && (0, _editorPalette.hexToEditorBackgroundPaletteColor)(panelColor);
|
|
39
39
|
var panelBackgroundColor = tokenColor || panelColor;
|
|
40
|
-
var isCustomPanelWithColor =
|
|
40
|
+
var isCustomPanelWithColor = typeof panelColor === 'string' && isCustomPanel;
|
|
41
41
|
var style = ["".concat(isCustomPanelWithColor ? "background-color: ".concat(panelBackgroundColor, ";") : ''), // When table-in-panel is enabled, set --table-container-bg so that table
|
|
42
42
|
// masking elements (sticky-header mask, column-controls wrapper) blend with
|
|
43
43
|
// the custom panel background instead of showing opaque white.
|
|
@@ -29,9 +29,9 @@ export const panelAttrsToDom = (attrs, allowCustomPanel) => {
|
|
|
29
29
|
} = attrs;
|
|
30
30
|
const isCustomPanel = panelType === PanelType.CUSTOM && allowCustomPanel;
|
|
31
31
|
const hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
|
|
32
|
-
const tokenColor =
|
|
32
|
+
const tokenColor = typeof panelColor === 'string' && hexToEditorBackgroundPaletteColor(panelColor);
|
|
33
33
|
const panelBackgroundColor = tokenColor || panelColor;
|
|
34
|
-
const isCustomPanelWithColor =
|
|
34
|
+
const isCustomPanelWithColor = typeof panelColor === 'string' && isCustomPanel;
|
|
35
35
|
const style = [`${isCustomPanelWithColor ? `background-color: ${panelBackgroundColor};` : ''}`,
|
|
36
36
|
// When table-in-panel is enabled, set --table-container-bg so that table
|
|
37
37
|
// masking elements (sticky-header mask, column-controls wrapper) blend with
|
|
@@ -28,9 +28,9 @@ export var panelAttrsToDom = function panelAttrsToDom(attrs, allowCustomPanel) {
|
|
|
28
28
|
panelIconText = attrs.panelIconText;
|
|
29
29
|
var isCustomPanel = panelType === PanelType.CUSTOM && allowCustomPanel;
|
|
30
30
|
var hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
|
|
31
|
-
var tokenColor =
|
|
31
|
+
var tokenColor = typeof panelColor === 'string' && hexToEditorBackgroundPaletteColor(panelColor);
|
|
32
32
|
var panelBackgroundColor = tokenColor || panelColor;
|
|
33
|
-
var isCustomPanelWithColor =
|
|
33
|
+
var isCustomPanelWithColor = typeof panelColor === 'string' && isCustomPanel;
|
|
34
34
|
var style = ["".concat(isCustomPanelWithColor ? "background-color: ".concat(panelBackgroundColor, ";") : ''), // When table-in-panel is enabled, set --table-container-bg so that table
|
|
35
35
|
// masking elements (sticky-header mask, column-controls wrapper) blend with
|
|
36
36
|
// the custom panel background instead of showing opaque white.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.26",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
32
32
|
"@atlaskit/editor-toolbar": "^2.3.0",
|
|
33
33
|
"@atlaskit/emoji": "^71.13.0",
|
|
34
|
-
"@atlaskit/icon": "^37.
|
|
34
|
+
"@atlaskit/icon": "^37.2.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^134.0.0",
|
|
37
37
|
"@atlaskit/tokens": "^16.3.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"uuid": "^3.1.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@atlaskit/editor-common": "^116.
|
|
42
|
+
"@atlaskit/editor-common": "^116.40.0",
|
|
43
43
|
"react": "^18.2.0",
|
|
44
44
|
"react-dom": "^18.2.0",
|
|
45
45
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|