@atlaskit/editor-toolbar 0.15.0 → 0.15.2

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,18 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.15.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`ef423682519f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef423682519f4) -
14
+ EDITOR-2263 Adds a Rovo button to the main toolbar for AIFC
15
+
3
16
  ## 0.15.0
4
17
 
5
18
  ### 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 (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/React.createElement(_compiled.Box, {
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)) : /*#__PURE__*/React.createElement(_compiled.Box, {
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 expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Box, {
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)) : /*#__PURE__*/React.createElement(Box, {
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 expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? /*#__PURE__*/React.createElement(Box, {
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)) : /*#__PURE__*/React.createElement(Box, {
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.0",
6
+ "version": "0.15.2",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/badge": "^18.2.0",
25
25
  "@atlaskit/button": "^23.5.0",
26
- "@atlaskit/css": "^0.14.0",
26
+ "@atlaskit/css": "^0.15.0",
27
27
  "@atlaskit/dropdown-menu": "^16.3.0",
28
28
  "@atlaskit/icon": "^28.5.0",
29
29
  "@atlaskit/icon-lab": "^5.10.0",
@@ -31,9 +31,9 @@
31
31
  "@atlaskit/platform-feature-flags": "^1.1.0",
32
32
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
33
33
  "@atlaskit/popup": "^4.4.0",
34
- "@atlaskit/primitives": "^14.15.0",
35
- "@atlaskit/tmp-editor-statsig": "^13.8.0",
36
- "@atlaskit/tokens": "^6.4.0",
34
+ "@atlaskit/primitives": "^15.0.0",
35
+ "@atlaskit/tmp-editor-statsig": "^13.10.0",
36
+ "@atlaskit/tokens": "^6.5.0",
37
37
  "@atlaskit/tooltip": "^20.5.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@compiled/react": "^0.18.3",