@atlaskit/editor-toolbar 0.15.0 → 0.15.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,12 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ef423682519f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef423682519f4) -
|
|
8
|
+
EDITOR-2263 Adds a Rovo button to the main toolbar for AIFC
|
|
9
|
+
|
|
3
10
|
## 0.15.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _css = require("@atlaskit/css");
|
|
13
13
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
14
|
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); }
|
|
16
15
|
var SeparatorPosition = exports.SeparatorPosition = /*#__PURE__*/function (SeparatorPosition) {
|
|
17
16
|
SeparatorPosition["START"] = "start";
|
|
@@ -34,15 +33,9 @@ var ToolbarSection = exports.ToolbarSection = function ToolbarSection(_ref) {
|
|
|
34
33
|
var children = _ref.children,
|
|
35
34
|
testId = _ref.testId,
|
|
36
35
|
hasSeparator = _ref.hasSeparator;
|
|
37
|
-
return
|
|
36
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
38
37
|
xcss: (0, _css.cx)(styles.container),
|
|
39
38
|
testId: testId,
|
|
40
39
|
"data-toolbar-component": "section"
|
|
41
|
-
}, hasSeparator === SeparatorPosition.START && /*#__PURE__*/React.createElement(ToolbarSeparator, null), children, hasSeparator === SeparatorPosition.END && /*#__PURE__*/React.createElement(ToolbarSeparator, null))
|
|
42
|
-
xcss: (0, _css.cx)(styles.container),
|
|
43
|
-
testId: testId,
|
|
44
|
-
"data-toolbar-component": "section"
|
|
45
|
-
}, hasSeparator && /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: (0, _runtime.ax)(["_195gu2gc _4t3igktf _1bsbt94y _bfhkmuej"])
|
|
47
|
-
}), children);
|
|
40
|
+
}, hasSeparator === SeparatorPosition.START && /*#__PURE__*/React.createElement(ToolbarSeparator, null), children, hasSeparator === SeparatorPosition.END && /*#__PURE__*/React.createElement(ToolbarSeparator, null));
|
|
48
41
|
};
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
export let SeparatorPosition = /*#__PURE__*/function (SeparatorPosition) {
|
|
9
8
|
SeparatorPosition["START"] = "start";
|
|
10
9
|
SeparatorPosition["END"] = "end";
|
|
@@ -27,15 +26,9 @@ export const ToolbarSection = ({
|
|
|
27
26
|
testId,
|
|
28
27
|
hasSeparator
|
|
29
28
|
}) => {
|
|
30
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
31
30
|
xcss: cx(styles.container),
|
|
32
31
|
testId: testId,
|
|
33
32
|
"data-toolbar-component": "section"
|
|
34
|
-
}, hasSeparator === SeparatorPosition.START && /*#__PURE__*/React.createElement(ToolbarSeparator, null), children, hasSeparator === SeparatorPosition.END && /*#__PURE__*/React.createElement(ToolbarSeparator, null))
|
|
35
|
-
xcss: cx(styles.container),
|
|
36
|
-
testId: testId,
|
|
37
|
-
"data-toolbar-component": "section"
|
|
38
|
-
}, hasSeparator && /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className: ax(["_195gu2gc _4t3igktf _1bsbt94y _bfhkmuej"])
|
|
40
|
-
}), children);
|
|
33
|
+
}, hasSeparator === SeparatorPosition.START && /*#__PURE__*/React.createElement(ToolbarSeparator, null), children, hasSeparator === SeparatorPosition.END && /*#__PURE__*/React.createElement(ToolbarSeparator, null));
|
|
41
34
|
};
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
export var SeparatorPosition = /*#__PURE__*/function (SeparatorPosition) {
|
|
9
8
|
SeparatorPosition["START"] = "start";
|
|
10
9
|
SeparatorPosition["END"] = "end";
|
|
@@ -26,15 +25,9 @@ export var ToolbarSection = function ToolbarSection(_ref) {
|
|
|
26
25
|
var children = _ref.children,
|
|
27
26
|
testId = _ref.testId,
|
|
28
27
|
hasSeparator = _ref.hasSeparator;
|
|
29
|
-
return
|
|
28
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
30
29
|
xcss: cx(styles.container),
|
|
31
30
|
testId: testId,
|
|
32
31
|
"data-toolbar-component": "section"
|
|
33
|
-
}, hasSeparator === SeparatorPosition.START && /*#__PURE__*/React.createElement(ToolbarSeparator, null), children, hasSeparator === SeparatorPosition.END && /*#__PURE__*/React.createElement(ToolbarSeparator, null))
|
|
34
|
-
xcss: cx(styles.container),
|
|
35
|
-
testId: testId,
|
|
36
|
-
"data-toolbar-component": "section"
|
|
37
|
-
}, hasSeparator && /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: ax(["_195gu2gc _4t3igktf _1bsbt94y _bfhkmuej"])
|
|
39
|
-
}), children);
|
|
32
|
+
}, hasSeparator === SeparatorPosition.START && /*#__PURE__*/React.createElement(ToolbarSeparator, null), children, hasSeparator === SeparatorPosition.END && /*#__PURE__*/React.createElement(ToolbarSeparator, null));
|
|
40
33
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.15.
|
|
6
|
+
"version": "0.15.1",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"team": "Editor: Jenga",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
33
33
|
"@atlaskit/popup": "^4.4.0",
|
|
34
34
|
"@atlaskit/primitives": "^14.15.0",
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^13.10.0",
|
|
36
36
|
"@atlaskit/tokens": "^6.4.0",
|
|
37
37
|
"@atlaskit/tooltip": "^20.5.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|