@atlaskit/editor-plugin-panel 14.1.25 → 14.1.27

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,20 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 14.1.27
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.1.26
10
+
11
+ ### Patch Changes
12
+
13
+ - [`591b0c312eed9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/591b0c312eed9) -
14
+ Clean up experiment `platform_editor_stricter_panelcolor_typecheck` and make stricter panel color
15
+ validation permanent.
16
+ - Updated dependencies
17
+
3
18
  ## 14.1.25
4
19
 
5
20
  ### 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 = (0, _expValEquals.expValEquals)('platform_editor_stricter_panelcolor_typecheck', 'isEnabled', true) ? typeof panelColor === 'string' && (0, _editorPalette.hexToEditorBackgroundPaletteColor)(panelColor) : panelColor && (0, _editorPalette.hexToEditorBackgroundPaletteColor)(panelColor);
38
+ var tokenColor = typeof panelColor === 'string' && (0, _editorPalette.hexToEditorBackgroundPaletteColor)(panelColor);
39
39
  var panelBackgroundColor = tokenColor || panelColor;
40
- var isCustomPanelWithColor = (0, _expValEquals.expValEquals)('platform_editor_stricter_panelcolor_typecheck', 'isEnabled', true) ? typeof panelColor === 'string' && isCustomPanel : panelColor && isCustomPanel;
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 = expValEquals('platform_editor_stricter_panelcolor_typecheck', 'isEnabled', true) ? typeof panelColor === 'string' && hexToEditorBackgroundPaletteColor(panelColor) : panelColor && hexToEditorBackgroundPaletteColor(panelColor);
32
+ const tokenColor = typeof panelColor === 'string' && hexToEditorBackgroundPaletteColor(panelColor);
33
33
  const panelBackgroundColor = tokenColor || panelColor;
34
- const isCustomPanelWithColor = expValEquals('platform_editor_stricter_panelcolor_typecheck', 'isEnabled', true) ? typeof panelColor === 'string' && isCustomPanel : panelColor && isCustomPanel;
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 = expValEquals('platform_editor_stricter_panelcolor_typecheck', 'isEnabled', true) ? typeof panelColor === 'string' && hexToEditorBackgroundPaletteColor(panelColor) : panelColor && hexToEditorBackgroundPaletteColor(panelColor);
31
+ var tokenColor = typeof panelColor === 'string' && hexToEditorBackgroundPaletteColor(panelColor);
32
32
  var panelBackgroundColor = tokenColor || panelColor;
33
- var isCustomPanelWithColor = expValEquals('platform_editor_stricter_panelcolor_typecheck', 'isEnabled', true) ? typeof panelColor === 'string' && isCustomPanel : panelColor && isCustomPanel;
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.
@@ -11,5 +11,5 @@ import type { EmojiInfo, PanelPluginOptions } from '../panelPluginType';
11
11
  export declare const panelIconMap: {
12
12
  [key in Exclude<PanelType, PanelType.CUSTOM>]: EmojiInfo;
13
13
  };
14
- export declare const getToolbarItems: (formatMessage: IntlShape["formatMessage"], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, activePanelType?: string, activePanelColor?: string, activePanelIcon?: string, state?: EditorState, api?: ExtractInjectionAPI<PanelPlugin>) => FloatingToolbarItem<Command>[];
14
+ export declare const getToolbarItems: (formatMessage: IntlShape['formatMessage'], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, hoverDecoration: HoverDecorationHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, activePanelType?: string, activePanelColor?: string, activePanelIcon?: string, state?: EditorState, api?: ExtractInjectionAPI<PanelPlugin>) => FloatingToolbarItem<Command>[];
15
15
  export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, options: PanelPluginOptions | undefined, providerFactory: ProviderFactory, api: ExtractInjectionAPI<PanelPlugin> | undefined) => FloatingToolbarConfig | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "14.1.25",
3
+ "version": "14.1.27",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,22 +24,22 @@
24
24
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
25
25
  "@atlaskit/editor-plugin-block-menu": "^11.1.0",
26
26
  "@atlaskit/editor-plugin-decorations": "^12.0.0",
27
- "@atlaskit/editor-plugin-emoji": "^13.1.0",
27
+ "@atlaskit/editor-plugin-emoji": "^13.2.0",
28
28
  "@atlaskit/editor-plugin-selection": "^12.0.0",
29
29
  "@atlaskit/editor-plugin-toolbar": "^9.0.0",
30
30
  "@atlaskit/editor-prosemirror": "^8.0.0",
31
31
  "@atlaskit/editor-shared-styles": "^4.0.0",
32
32
  "@atlaskit/editor-toolbar": "^2.3.0",
33
- "@atlaskit/emoji": "^71.13.0",
34
- "@atlaskit/icon": "^37.1.0",
33
+ "@atlaskit/emoji": "^71.14.0",
34
+ "@atlaskit/icon": "^37.2.0",
35
35
  "@atlaskit/platform-feature-flags": "^2.1.0",
36
- "@atlaskit/tmp-editor-statsig": "^133.0.0",
36
+ "@atlaskit/tmp-editor-statsig": "^135.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.39.0",
42
+ "@atlaskit/editor-common": "^116.41.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"