@atlaskit/editor-plugin-text-color 5.3.0 → 5.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 5.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
14
+ EDITOR-1562 bump adf-schema for afm
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 5.3.0
4
21
 
5
22
  ### Minor Changes
@@ -35,6 +35,9 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
35
35
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
36
36
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
37
37
  disabled = _ref2.disabled;
38
+ if (!editorView) {
39
+ return null;
40
+ }
38
41
  return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
39
42
  isReducedSpacing: isToolbarReducedSpacing,
40
43
  editorView: editorView,
@@ -1,4 +1,4 @@
1
- /* RemoveColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* RemoveColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* TextColorHighlightMenu.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextColorHighlightMenu.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* TextColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* TextMenuSection.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextMenuSection.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -30,6 +30,9 @@ export const textColorPlugin = ({
30
30
  dispatchAnalyticsEvent,
31
31
  disabled
32
32
  }) => {
33
+ if (!editorView) {
34
+ return null;
35
+ }
33
36
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
34
37
  isReducedSpacing: isToolbarReducedSpacing,
35
38
  editorView: editorView,
@@ -1,4 +1,4 @@
1
- /* RemoveColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* RemoveColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./RemoveColorMenuItem.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* TextColorHighlightMenu.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextColorHighlightMenu.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./TextColorHighlightMenu.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* TextColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./TextColorMenuItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- /* TextMenuSection.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextMenuSection.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./TextMenuSection.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -28,6 +28,9 @@ export var textColorPlugin = function textColorPlugin(_ref) {
28
28
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
29
29
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
30
30
  disabled = _ref2.disabled;
31
+ if (!editorView) {
32
+ return null;
33
+ }
31
34
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
32
35
  isReducedSpacing: isToolbarReducedSpacing,
33
36
  editorView: editorView,
@@ -1,4 +1,4 @@
1
- /* RemoveColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* RemoveColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./RemoveColorMenuItem.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* TextColorHighlightMenu.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextColorHighlightMenu.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./TextColorHighlightMenu.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* TextColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./TextColorMenuItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- /* TextMenuSection.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* TextMenuSection.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./TextMenuSection.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "5.3.0",
3
+ "version": "5.4.1",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,32 +29,32 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.1.1",
32
+ "@atlaskit/adf-schema": "^51.1.2",
33
33
  "@atlaskit/button": "^23.4.0",
34
34
  "@atlaskit/css": "^0.14.0",
35
35
  "@atlaskit/editor-palette": "^2.1.0",
36
- "@atlaskit/editor-plugin-analytics": "^5.1.0",
37
- "@atlaskit/editor-plugin-highlight": "^5.2.0",
36
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
37
+ "@atlaskit/editor-plugin-highlight": "^5.3.0",
38
38
  "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
39
39
  "@atlaskit/editor-plugin-selection-toolbar": "^6.1.0",
40
40
  "@atlaskit/editor-plugin-toolbar": "^2.1.0",
41
41
  "@atlaskit/editor-prosemirror": "7.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.6.0",
43
43
  "@atlaskit/editor-tables": "^2.9.0",
44
- "@atlaskit/editor-toolbar": "^0.8.0",
44
+ "@atlaskit/editor-toolbar": "^0.9.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.2.0",
46
46
  "@atlaskit/heading": "^5.2.0",
47
47
  "@atlaskit/icon": "^28.1.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
49
  "@atlaskit/primitives": "^14.14.0",
50
50
  "@atlaskit/theme": "^21.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^12.15.0",
51
+ "@atlaskit/tmp-editor-statsig": "^12.21.0",
52
52
  "@atlaskit/tokens": "^6.3.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^109.3.0",
57
+ "@atlaskit/editor-common": "^109.6.0",
58
58
  "react": "^18.2.0",
59
59
  "react-dom": "^18.2.0",
60
60
  "react-intl-next": "npm:react-intl@^5.18.1"