@atlaskit/editor-plugin-floating-toolbar 5.0.2 → 5.0.4
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 +15 -0
- package/dist/cjs/ui/Divider.js +2 -0
- package/dist/cjs/ui/DropdownMenu.js +1 -6
- package/dist/cjs/ui/ScrollButton.js +2 -0
- package/dist/es2019/ui/Divider.js +2 -0
- package/dist/es2019/ui/DropdownMenu.js +1 -6
- package/dist/es2019/ui/ScrollButton.js +1 -0
- package/dist/esm/ui/Divider.js +2 -0
- package/dist/esm/ui/DropdownMenu.js +1 -6
- package/dist/esm/ui/ScrollButton.js +1 -0
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 5.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#185723](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185723)
|
|
8
|
+
[`751aeb4580469`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/751aeb4580469) -
|
|
9
|
+
ED-28315 clean up fg platform_editor_controls_patch_13
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 5.0.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 5.0.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/ui/Divider.js
CHANGED
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Divider = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _primitives = require("@atlaskit/primitives");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
11
|
+
|
|
10
12
|
var styles = (0, _primitives.xcss)({
|
|
11
13
|
width: '100%',
|
|
12
14
|
borderBlockEnd: 'none',
|
|
@@ -9,7 +9,6 @@ var _react2 = require("@emotion/react");
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
|
|
11
11
|
var _menu = require("@atlaskit/menu");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _constants = require("@atlaskit/theme/constants");
|
|
14
13
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
14
|
/**
|
|
@@ -27,10 +26,6 @@ var menuItemDimensions = exports.menuItemDimensions = {
|
|
|
27
26
|
width: 175,
|
|
28
27
|
height: 32
|
|
29
28
|
};
|
|
30
|
-
var separatorStyles = (0, _react2.css)({
|
|
31
|
-
background: "var(--ds-border, #091E4224)",
|
|
32
|
-
height: "var(--ds-space-025, 1px)"
|
|
33
|
-
});
|
|
34
29
|
var separatorStylesThin = (0, _react2.css)({
|
|
35
30
|
background: "var(--ds-border, #091E4224)",
|
|
36
31
|
height: '1px'
|
|
@@ -94,7 +89,7 @@ var Dropdown = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
94
89
|
return (0, _react2.jsx)("div", {
|
|
95
90
|
// eslint-disable-next-line react/no-array-index-key
|
|
96
91
|
key: idx,
|
|
97
|
-
css:
|
|
92
|
+
css: separatorStylesThin
|
|
98
93
|
});
|
|
99
94
|
}
|
|
100
95
|
if (item.type === 'overflow-dropdown-heading') {
|
|
@@ -16,6 +16,8 @@ var _chevronLeftChevronLeftLarge = _interopRequireDefault(require("@atlaskit/ico
|
|
|
16
16
|
var _chevronRightChevronRightLarge = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-right--chevron-right-large"));
|
|
17
17
|
var _primitives = require("@atlaskit/primitives");
|
|
18
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
20
|
+
|
|
19
21
|
var rightSideStyles = (0, _primitives.xcss)({
|
|
20
22
|
borderLeft: "solid ".concat("var(--ds-border, #091E4224)", " 1px"),
|
|
21
23
|
right: 'space.0',
|
|
@@ -11,7 +11,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import { DropdownMenuItem } from '@atlaskit/editor-common/floating-toolbar';
|
|
13
13
|
import { HeadingItem } from '@atlaskit/menu';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
16
15
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -19,10 +18,6 @@ export const menuItemDimensions = {
|
|
|
19
18
|
width: 175,
|
|
20
19
|
height: 32
|
|
21
20
|
};
|
|
22
|
-
const separatorStyles = css({
|
|
23
|
-
background: "var(--ds-border, #091E4224)",
|
|
24
|
-
height: "var(--ds-space-025, 1px)"
|
|
25
|
-
});
|
|
26
21
|
const separatorStylesThin = css({
|
|
27
22
|
background: "var(--ds-border, #091E4224)",
|
|
28
23
|
height: '1px'
|
|
@@ -85,7 +80,7 @@ const Dropdown = /*#__PURE__*/memo(props => {
|
|
|
85
80
|
return jsx("div", {
|
|
86
81
|
// eslint-disable-next-line react/no-array-index-key
|
|
87
82
|
key: idx,
|
|
88
|
-
css:
|
|
83
|
+
css: separatorStylesThin
|
|
89
84
|
});
|
|
90
85
|
}
|
|
91
86
|
if (item.type === 'overflow-dropdown-heading') {
|
|
@@ -5,6 +5,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
5
5
|
import { messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
6
6
|
import ChevronLeftLargeIcon from '@atlaskit/icon/core/migration/chevron-left--chevron-left-large';
|
|
7
7
|
import ChevronRightLargeIcon from '@atlaskit/icon/core/migration/chevron-right--chevron-right-large';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
8
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
9
10
|
const rightSideStyles = xcss({
|
|
10
11
|
borderLeft: `solid ${"var(--ds-border, #091E4224)"} 1px`,
|
package/dist/esm/ui/Divider.js
CHANGED
|
@@ -11,7 +11,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import { DropdownMenuItem } from '@atlaskit/editor-common/floating-toolbar';
|
|
13
13
|
import { HeadingItem } from '@atlaskit/menu';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
16
15
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -19,10 +18,6 @@ export var menuItemDimensions = {
|
|
|
19
18
|
width: 175,
|
|
20
19
|
height: 32
|
|
21
20
|
};
|
|
22
|
-
var separatorStyles = css({
|
|
23
|
-
background: "var(--ds-border, #091E4224)",
|
|
24
|
-
height: "var(--ds-space-025, 1px)"
|
|
25
|
-
});
|
|
26
21
|
var separatorStylesThin = css({
|
|
27
22
|
background: "var(--ds-border, #091E4224)",
|
|
28
23
|
height: '1px'
|
|
@@ -86,7 +81,7 @@ var Dropdown = /*#__PURE__*/memo(function (props) {
|
|
|
86
81
|
return jsx("div", {
|
|
87
82
|
// eslint-disable-next-line react/no-array-index-key
|
|
88
83
|
key: idx,
|
|
89
|
-
css:
|
|
84
|
+
css: separatorStylesThin
|
|
90
85
|
});
|
|
91
86
|
}
|
|
92
87
|
if (item.type === 'overflow-dropdown-heading') {
|
|
@@ -6,6 +6,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
6
6
|
import { messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
7
7
|
import ChevronLeftLargeIcon from '@atlaskit/icon/core/migration/chevron-left--chevron-left-large';
|
|
8
8
|
import ChevronRightLargeIcon from '@atlaskit/icon/core/migration/chevron-right--chevron-right-large';
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
9
10
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
11
|
var rightSideStyles = xcss({
|
|
11
12
|
borderLeft: "solid ".concat("var(--ds-border, #091E4224)", " 1px"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-emoji": "^4.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-extension": "^6.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-interaction": "^4.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-table": "^11.
|
|
40
|
+
"@atlaskit/editor-plugin-table": "^11.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-user-intent": "^1.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/emoji": "^69.3.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/primitives": "^14.10.0",
|
|
49
|
-
"@atlaskit/select": "^21.
|
|
50
|
-
"@atlaskit/theme": "^
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
52
|
-
"@atlaskit/tokens": "^5.
|
|
49
|
+
"@atlaskit/select": "^21.2.0",
|
|
50
|
+
"@atlaskit/theme": "^19.0.0",
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^9.8.0",
|
|
52
|
+
"@atlaskit/tokens": "^5.5.0",
|
|
53
53
|
"@atlaskit/tooltip": "^20.3.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"react-loadable": "^5.1.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^107.
|
|
63
|
+
"@atlaskit/editor-common": "^107.8.0",
|
|
64
64
|
"react": "^18.2.0",
|
|
65
65
|
"react-dom": "^18.2.0"
|
|
66
66
|
},
|
|
@@ -130,9 +130,6 @@
|
|
|
130
130
|
"platform_editor_user_intent_plugin": {
|
|
131
131
|
"type": "boolean"
|
|
132
132
|
},
|
|
133
|
-
"platform_editor_controls_patch_13": {
|
|
134
|
-
"type": "boolean"
|
|
135
|
-
},
|
|
136
133
|
"platform_editor_overflow_dropdown_click_analytics": {
|
|
137
134
|
"type": "boolean"
|
|
138
135
|
}
|