@atlaskit/editor-plugin-text-color 5.3.0 → 5.4.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 +11 -0
- package/dist/cjs/textColorPlugin.js +3 -0
- package/dist/cjs/ui/RemoveColorMenuItem.js +1 -1
- package/dist/cjs/ui/TextColorHighlightMenu.js +1 -1
- package/dist/cjs/ui/TextColorMenuItem.js +1 -1
- package/dist/cjs/ui/TextMenuSection.js +1 -1
- package/dist/es2019/textColorPlugin.js +3 -0
- package/dist/es2019/ui/RemoveColorMenuItem.js +1 -1
- package/dist/es2019/ui/TextColorHighlightMenu.js +1 -1
- package/dist/es2019/ui/TextColorMenuItem.js +1 -1
- package/dist/es2019/ui/TextMenuSection.js +1 -1
- package/dist/esm/textColorPlugin.js +3 -0
- package/dist/esm/ui/RemoveColorMenuItem.js +1 -1
- package/dist/esm/ui/TextColorHighlightMenu.js +1 -1
- package/dist/esm/ui/TextColorMenuItem.js +1 -1
- package/dist/esm/ui/TextMenuSection.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
|
|
8
|
+
EDITOR-1562 bump adf-schema for afm
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 5.3.0
|
|
4
15
|
|
|
5
16
|
### 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,
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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';
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.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.
|
|
37
|
-
"@atlaskit/editor-plugin-highlight": "^5.
|
|
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",
|
|
@@ -48,13 +48,13 @@
|
|
|
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.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^12.18.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.
|
|
57
|
+
"@atlaskit/editor-common": "^109.5.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"
|