@atlaskit/editor-plugin-text-color 31.1.0 → 33.0.0

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,21 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 33.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 32.0.0
10
+
11
+ ### Patch Changes
12
+
13
+ - [`f039487b0e531`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f039487b0e531) -
14
+ Remove internal code that the `platform_editor_controls` experiment cleanup left unused: unused
15
+ component props, an unused view mode subscription in media groups, unused placeholder messages,
16
+ and the internal bracket placeholder text.
17
+ - Updated dependencies
18
+
3
19
  ## 31.1.0
4
20
 
5
21
  ### Minor Changes
@@ -33,14 +33,12 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
33
33
  popupsMountPoint = _ref2.popupsMountPoint,
34
34
  popupsBoundariesElement = _ref2.popupsBoundariesElement,
35
35
  popupsScrollableElement = _ref2.popupsScrollableElement,
36
- isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
37
36
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
38
37
  disabled = _ref2.disabled;
39
38
  if (!editorView) {
40
39
  return null;
41
40
  }
42
41
  return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
43
- isReducedSpacing: isToolbarReducedSpacing,
44
42
  editorView: editorView,
45
43
  popupsMountPoint: popupsMountPoint,
46
44
  popupsBoundariesElement: popupsBoundariesElement,
@@ -13,8 +13,7 @@ var _ToolbarTextColor = _interopRequireDefault(require("./ToolbarTextColor"));
13
13
  // eslint-disable-next-line import/no-named-as-default
14
14
 
15
15
  var FloatingToolbarSettings = {
16
- disabled: false,
17
- isReducedSpacing: true
16
+ disabled: false
18
17
  };
19
18
  var selector = function selector(states) {
20
19
  var _states$textColorStat, _states$textColorStat2, _states$textColorStat3, _states$textColorStat4;
@@ -46,7 +45,6 @@ var FloatingToolbarComponent = exports.FloatingToolbarComponent = function Float
46
45
  palette: palette,
47
46
  disabled: disabled
48
47
  },
49
- isReducedSpacing: FloatingToolbarSettings.isReducedSpacing,
50
48
  editorView: editorView,
51
49
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
52
50
  disabled: FloatingToolbarSettings.disabled,
@@ -23,7 +23,6 @@ var selector = function selector(states) {
23
23
  };
24
24
  var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
25
25
  var api = _ref.api,
26
- isReducedSpacing = _ref.isReducedSpacing,
27
26
  editorView = _ref.editorView,
28
27
  popupsMountPoint = _ref.popupsMountPoint,
29
28
  popupsScrollableElement = _ref.popupsScrollableElement,
@@ -47,7 +46,6 @@ var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function Primary
47
46
  palette: palette,
48
47
  disabled: textColorDisabled
49
48
  },
50
- isReducedSpacing: isReducedSpacing,
51
49
  editorView: editorView,
52
50
  popupsMountPoint: popupsMountPoint,
53
51
  popupsBoundariesElement: popupsBoundariesElement,
@@ -27,7 +27,6 @@ export const textColorPlugin = ({
27
27
  popupsMountPoint,
28
28
  popupsBoundariesElement,
29
29
  popupsScrollableElement,
30
- isToolbarReducedSpacing,
31
30
  dispatchAnalyticsEvent,
32
31
  disabled
33
32
  }) => {
@@ -35,7 +34,6 @@ export const textColorPlugin = ({
35
34
  return null;
36
35
  }
37
36
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
38
- isReducedSpacing: isToolbarReducedSpacing,
39
37
  editorView: editorView,
40
38
  popupsMountPoint: popupsMountPoint,
41
39
  popupsBoundariesElement: popupsBoundariesElement,
@@ -5,8 +5,7 @@ import { ToolbarType } from '../types';
5
5
  // eslint-disable-next-line import/no-named-as-default
6
6
  import ToolbarTextColor from './ToolbarTextColor';
7
7
  const FloatingToolbarSettings = {
8
- disabled: false,
9
- isReducedSpacing: true
8
+ disabled: false
10
9
  };
11
10
  const selector = states => {
12
11
  var _states$textColorStat, _states$textColorStat2, _states$textColorStat3, _states$textColorStat4;
@@ -40,7 +39,6 @@ export const FloatingToolbarComponent = ({
40
39
  palette,
41
40
  disabled
42
41
  },
43
- isReducedSpacing: FloatingToolbarSettings.isReducedSpacing,
44
42
  editorView: editorView,
45
43
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
46
44
  disabled: FloatingToolbarSettings.disabled,
@@ -15,7 +15,6 @@ const selector = states => {
15
15
  };
16
16
  export const PrimaryToolbarComponent = ({
17
17
  api,
18
- isReducedSpacing,
19
18
  editorView,
20
19
  popupsMountPoint,
21
20
  popupsScrollableElement,
@@ -41,7 +40,6 @@ export const PrimaryToolbarComponent = ({
41
40
  palette,
42
41
  disabled: textColorDisabled
43
42
  },
44
- isReducedSpacing: isReducedSpacing,
45
43
  editorView: editorView,
46
44
  popupsMountPoint: popupsMountPoint,
47
45
  popupsBoundariesElement: popupsBoundariesElement,
@@ -26,14 +26,12 @@ export var textColorPlugin = function textColorPlugin(_ref) {
26
26
  popupsMountPoint = _ref2.popupsMountPoint,
27
27
  popupsBoundariesElement = _ref2.popupsBoundariesElement,
28
28
  popupsScrollableElement = _ref2.popupsScrollableElement,
29
- isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
30
29
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
31
30
  disabled = _ref2.disabled;
32
31
  if (!editorView) {
33
32
  return null;
34
33
  }
35
34
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
36
- isReducedSpacing: isToolbarReducedSpacing,
37
35
  editorView: editorView,
38
36
  popupsMountPoint: popupsMountPoint,
39
37
  popupsBoundariesElement: popupsBoundariesElement,
@@ -5,8 +5,7 @@ import { ToolbarType } from '../types';
5
5
  // eslint-disable-next-line import/no-named-as-default
6
6
  import ToolbarTextColor from './ToolbarTextColor';
7
7
  var FloatingToolbarSettings = {
8
- disabled: false,
9
- isReducedSpacing: true
8
+ disabled: false
10
9
  };
11
10
  var selector = function selector(states) {
12
11
  var _states$textColorStat, _states$textColorStat2, _states$textColorStat3, _states$textColorStat4;
@@ -38,7 +37,6 @@ export var FloatingToolbarComponent = function FloatingToolbarComponent(_ref) {
38
37
  palette: palette,
39
38
  disabled: disabled
40
39
  },
41
- isReducedSpacing: FloatingToolbarSettings.isReducedSpacing,
42
40
  editorView: editorView,
43
41
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
44
42
  disabled: FloatingToolbarSettings.disabled,
@@ -15,7 +15,6 @@ var selector = function selector(states) {
15
15
  };
16
16
  export var PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
17
17
  var api = _ref.api,
18
- isReducedSpacing = _ref.isReducedSpacing,
19
18
  editorView = _ref.editorView,
20
19
  popupsMountPoint = _ref.popupsMountPoint,
21
20
  popupsScrollableElement = _ref.popupsScrollableElement,
@@ -39,7 +38,6 @@ export var PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
39
38
  palette: palette,
40
39
  disabled: textColorDisabled
41
40
  },
42
- isReducedSpacing: isReducedSpacing,
43
41
  editorView: editorView,
44
42
  popupsMountPoint: popupsMountPoint,
45
43
  popupsBoundariesElement: popupsBoundariesElement,
@@ -8,10 +8,9 @@ interface PrimaryToolbarComponentProps {
8
8
  disabled: boolean;
9
9
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
10
10
  editorView: EditorView;
11
- isReducedSpacing: boolean;
12
11
  popupsBoundariesElement?: HTMLElement;
13
12
  popupsMountPoint?: HTMLElement;
14
13
  popupsScrollableElement?: HTMLElement;
15
14
  }
16
- export declare const PrimaryToolbarComponent: ({ api, isReducedSpacing, editorView, popupsMountPoint, popupsScrollableElement, popupsBoundariesElement, dispatchAnalyticsEvent, disabled, }: PrimaryToolbarComponentProps) => React.JSX.Element | null;
15
+ export declare const PrimaryToolbarComponent: ({ api, editorView, popupsMountPoint, popupsScrollableElement, popupsBoundariesElement, dispatchAnalyticsEvent, disabled, }: PrimaryToolbarComponentProps) => React.JSX.Element | null;
17
16
  export {};
@@ -20,7 +20,6 @@ export interface Props {
20
20
  disabled?: boolean;
21
21
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
22
22
  editorView: EditorView;
23
- isReducedSpacing?: boolean;
24
23
  pluginInjectionApi: ExtractInjectionAPI<TextColorPlugin> | undefined;
25
24
  pluginState: TextColorPluginState;
26
25
  popupsBoundariesElement?: HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "31.1.0",
3
+ "version": "33.0.0",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,15 +30,15 @@
30
30
  "@atlaskit/button": "^25.8.0",
31
31
  "@atlaskit/css": "^1.1.0",
32
32
  "@atlaskit/editor-palette": "^3.5.0",
33
- "@atlaskit/editor-plugin-analytics": "^31.0.0",
34
- "@atlaskit/editor-plugin-highlight": "^31.1.0",
35
- "@atlaskit/editor-plugin-interaction": "^45.0.0",
36
- "@atlaskit/editor-plugin-primary-toolbar": "^32.0.0",
37
- "@atlaskit/editor-plugin-selection-toolbar": "^32.0.0",
38
- "@atlaskit/editor-plugin-toolbar": "^28.0.0",
39
- "@atlaskit/editor-plugin-user-preferences": "^29.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^33.0.0",
34
+ "@atlaskit/editor-plugin-highlight": "^33.0.0",
35
+ "@atlaskit/editor-plugin-interaction": "^47.0.0",
36
+ "@atlaskit/editor-plugin-primary-toolbar": "^34.0.0",
37
+ "@atlaskit/editor-plugin-selection-toolbar": "^34.0.0",
38
+ "@atlaskit/editor-plugin-toolbar": "^30.0.0",
39
+ "@atlaskit/editor-plugin-user-preferences": "^31.0.0",
40
40
  "@atlaskit/editor-prosemirror": "^9.0.0",
41
- "@atlaskit/editor-shared-styles": "^5.1.0",
41
+ "@atlaskit/editor-shared-styles": "^5.2.0",
42
42
  "@atlaskit/editor-toolbar": "^2.11.0",
43
43
  "@atlaskit/editor-toolbar-model": "^1.2.0",
44
44
  "@atlaskit/heading": "^8.0.0",
@@ -52,13 +52,13 @@
52
52
  "@emotion/react": "^11.7.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^135.3.0",
55
+ "@atlaskit/editor-common": "^137.0.0",
56
56
  "react": "^18.2.0 || ^19.2.0",
57
57
  "react-dom": "^18.2.0 || ^19.2.0",
58
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@atlaskit/editor-common": "^135.3.0",
61
+ "@atlaskit/editor-common": "^137.0.0",
62
62
  "@atlassian/structured-docs-types": "workspace:^",
63
63
  "@atlassian/workbench": "workspace:*",
64
64
  "react": "^19.2.0",