@atlaskit/editor-plugin-text-color 5.4.2 → 6.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 +17 -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/cjs/ui/toolbar-components.js +7 -1
- 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/es2019/ui/toolbar-components.js +9 -2
- 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/dist/esm/ui/toolbar-components.js +8 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`687c1b8fa7801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/687c1b8fa7801) -
|
|
14
|
+
EDITOR-1566 bump adf-schema + update validator
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 5.4.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -18,7 +18,13 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
19
|
var getToolbarComponents = exports.getToolbarComponents = function getToolbarComponents(api) {
|
|
20
20
|
return [_objectSpread(_objectSpread({}, _toolbar.TEXT_COLOR_HIGHLIGHT_GROUP), {}, {
|
|
21
|
-
parents: [_objectSpread(_objectSpread({}, _toolbar.TEXT_SECTION), {}, {
|
|
21
|
+
parents: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [_objectSpread(_objectSpread({}, _toolbar.TEXT_SECTION), {}, {
|
|
22
|
+
rank: _toolbar.TEXT_SECTION_RANK[_toolbar.TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
23
|
+
}), {
|
|
24
|
+
type: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
25
|
+
key: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
26
|
+
rank: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR_RANK[_toolbar.TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
27
|
+
}] : [_objectSpread(_objectSpread({}, _toolbar.TEXT_SECTION), {}, {
|
|
22
28
|
rank: _toolbar.TEXT_SECTION_RANK[_toolbar.TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
23
29
|
})]
|
|
24
30
|
}), _objectSpread(_objectSpread({}, _toolbar.TEXT_COLOR_HIGHLIGHT_MENU), {}, {
|
|
@@ -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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TEXT_SECTION, TEXT_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP, TEXT_COLOR_HIGHLIGHT_MENU, TEXT_COLOR_HIGHLIGHT_MENU_SECTION, TEXT_COLOR_MENU_ITEM, TEXT_COLOR_HIGHLIGHT_MENU_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP_RANK, TEXT_COLOR_HIGHLIGHT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, CLEAR_COLOR_MENU_ITEM } from '@atlaskit/editor-common/toolbar';
|
|
2
|
+
import { TEXT_SECTION, TEXT_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP, TEXT_COLOR_HIGHLIGHT_MENU, TEXT_COLOR_HIGHLIGHT_MENU_SECTION, TEXT_COLOR_MENU_ITEM, TEXT_COLOR_HIGHLIGHT_MENU_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP_RANK, TEXT_COLOR_HIGHLIGHT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, CLEAR_COLOR_MENU_ITEM, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
import { RemoveColorMenuItem } from './RemoveColorMenuItem';
|
|
5
5
|
import { TextColorHighlightMenu } from './TextColorHighlightMenu';
|
|
@@ -8,7 +8,14 @@ import { TextMenuSection } from './TextMenuSection';
|
|
|
8
8
|
export const getToolbarComponents = api => {
|
|
9
9
|
return [{
|
|
10
10
|
...TEXT_COLOR_HIGHLIGHT_GROUP,
|
|
11
|
-
parents: [{
|
|
11
|
+
parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
|
|
12
|
+
...TEXT_SECTION,
|
|
13
|
+
rank: TEXT_SECTION_RANK[TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
14
|
+
}, {
|
|
15
|
+
type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
16
|
+
key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
17
|
+
rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
18
|
+
}] : [{
|
|
12
19
|
...TEXT_SECTION,
|
|
13
20
|
rank: TEXT_SECTION_RANK[TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
14
21
|
}]
|
|
@@ -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';
|
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { TEXT_SECTION, TEXT_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP, TEXT_COLOR_HIGHLIGHT_MENU, TEXT_COLOR_HIGHLIGHT_MENU_SECTION, TEXT_COLOR_MENU_ITEM, TEXT_COLOR_HIGHLIGHT_MENU_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP_RANK, TEXT_COLOR_HIGHLIGHT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, CLEAR_COLOR_MENU_ITEM } from '@atlaskit/editor-common/toolbar';
|
|
6
|
+
import { TEXT_SECTION, TEXT_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP, TEXT_COLOR_HIGHLIGHT_MENU, TEXT_COLOR_HIGHLIGHT_MENU_SECTION, TEXT_COLOR_MENU_ITEM, TEXT_COLOR_HIGHLIGHT_MENU_SECTION_RANK, TEXT_COLOR_HIGHLIGHT_GROUP_RANK, TEXT_COLOR_HIGHLIGHT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, CLEAR_COLOR_MENU_ITEM, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import { RemoveColorMenuItem } from './RemoveColorMenuItem';
|
|
9
9
|
import { TextColorHighlightMenu } from './TextColorHighlightMenu';
|
|
@@ -11,7 +11,13 @@ import { TextColorMenuItem } from './TextColorMenuItem';
|
|
|
11
11
|
import { TextMenuSection } from './TextMenuSection';
|
|
12
12
|
export var getToolbarComponents = function getToolbarComponents(api) {
|
|
13
13
|
return [_objectSpread(_objectSpread({}, TEXT_COLOR_HIGHLIGHT_GROUP), {}, {
|
|
14
|
-
parents: [_objectSpread(_objectSpread({}, TEXT_SECTION), {}, {
|
|
14
|
+
parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [_objectSpread(_objectSpread({}, TEXT_SECTION), {}, {
|
|
15
|
+
rank: TEXT_SECTION_RANK[TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
16
|
+
}), {
|
|
17
|
+
type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
|
|
18
|
+
key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
|
|
19
|
+
rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
20
|
+
}] : [_objectSpread(_objectSpread({}, TEXT_SECTION), {}, {
|
|
15
21
|
rank: TEXT_SECTION_RANK[TEXT_COLOR_HIGHLIGHT_GROUP.key]
|
|
16
22
|
})]
|
|
17
23
|
}), _objectSpread(_objectSpread({}, TEXT_COLOR_HIGHLIGHT_MENU), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.2.0",
|
|
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": "^
|
|
37
|
-
"@atlaskit/editor-plugin-highlight": "^
|
|
38
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
39
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^6.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-highlight": "^6.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^3.0.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
44
|
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
46
46
|
"@atlaskit/heading": "^5.2.0",
|
|
47
|
-
"@atlaskit/icon": "^28.
|
|
47
|
+
"@atlaskit/icon": "^28.3.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
|
-
"@atlaskit/primitives": "^14.
|
|
49
|
+
"@atlaskit/primitives": "^14.15.0",
|
|
50
50
|
"@atlaskit/theme": "^21.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^12.31.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": "^
|
|
57
|
+
"@atlaskit/editor-common": "^110.0.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"
|