@atlaskit/editor-toolbar 0.9.0 → 0.9.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,20 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6fb79942fc3a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fb79942fc3a5) -
8
+ Internal changes to how borders are applied.
9
+ - Updated dependencies
10
+
11
+ ## 0.9.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`dc592a66e5d2a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dc592a66e5d2a) -
16
+ Updated the rovo icon to the latest svg graphic
17
+
3
18
  ## 0.9.0
4
19
 
5
20
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
 
2
- ._19itcf40{border:var(--_1wr0y6w)}
2
+ ._19it1oet{border:var(--_y3tor4)}
3
3
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
4
4
  ._1dqonqa1{border-style:solid}
5
5
  ._1h6d1j28{border-color:transparent}
@@ -19,6 +19,6 @@
19
19
  ._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
20
20
  ._u5f3idpf{padding-right:0}
21
21
  ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
22
- ._y2mv12j9:focus{outline:var(--_toyvsf)}
22
+ ._y2mvuigy:focus{outline:var(--_1fve1bt)}
23
23
  ._858umuej:focus, ._jyzfmuej:focus-within, ._4cvxmuej:hover{border-color:var(--ds-border,#091e4224)}
24
24
  ._1bg4v77o:focus{outline-offset:var(--ds-space-025,2px)}
@@ -62,12 +62,12 @@ var Color = exports.Color = /*#__PURE__*/(0, _react.memo)(function (_ref) {
62
62
  onMouseDown: handleMouseDown,
63
63
  tabIndex: tabIndex,
64
64
  autoFocus: autoFocus,
65
- className: (0, _runtime.ax)(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19itcf40 _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mv12j9 _1bg4v77o"]),
65
+ className: (0, _runtime.ax)(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1oet _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mvuigy _1bg4v77o"]),
66
66
  style: {
67
67
  backgroundColor: colorStyle || "var(--ds-background-input, #FFFFFF)",
68
- border: "1px solid ".concat(borderColor),
69
- "--_1wr0y6w": (0, _runtime.ix)("1px solid ".concat("var(--ds-border-inverse, #FFFFFF)")),
70
- "--_toyvsf": (0, _runtime.ix)("2px solid ".concat("var(--ds-border-focused, #388BFF)"))
68
+ border: "var(--ds-border-width, 1px)".concat(" solid ", borderColor),
69
+ "--_y3tor4": (0, _runtime.ix)("var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-inverse, #FFFFFF)")),
70
+ "--_1fve1bt": (0, _runtime.ix)("var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #388BFF)"))
71
71
  }
72
72
  }, !decorator && isSelected && /*#__PURE__*/_react.default.createElement(_checkMarkEditorDone.default, {
73
73
  color: checkMarkColor,
@@ -9,10 +9,12 @@ exports.AIChatIcon = void 0;
9
9
  require("./AIChatIcon.compiled.css");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  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); }
13
14
  var styles = {
14
15
  container: "_1e0c1txw _4cvr1h6o _1bah1h6o _4t3i1crf _1bsb1crf"
15
16
  };
17
+ var NEW_ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path d=\"M5.38005 0.169224C5.79662 -0.0605531 6.30506 -0.0563318 6.71826 0.181888L9.96759 2.05659L10.7381 2.50115C11.1588 2.7437 11.4192 3.1937 11.4192 3.67848V8.31706C11.4192 8.80376 11.1604 9.25178 10.7385 9.4942L7.7167 11.2376C7.72331 11.219 7.72962 11.2003 7.73562 11.1815C7.79171 11.0077 7.82145 10.8241 7.82145 10.6363V5.99777C7.82145 5.36053 7.48227 4.77289 6.92906 4.455L6.37092 4.13312L4.67653 3.15598V1.35919C4.67653 1.21761 4.69843 1.0793 4.73988 0.94837C4.84178 0.631497 5.05851 0.357177 5.35502 0.185934L5.35592 0.185415C5.36442 0.180511 5.3725 0.175072 5.38005 0.169224Z\" fill=\"#BF63F3\"/>\n\t\t<path d=\"M4.35709 0.762414L1.33533 2.50581C0.91337 2.74824 0.654541 3.19625 0.654541 3.68296V8.32154C0.654541 8.80632 0.914896 9.25629 1.33561 9.49884L2.05206 9.91219L5.35553 11.8181C5.76872 12.0563 6.27718 12.0606 6.69374 11.8308C6.70128 11.8249 6.70931 11.8195 6.71781 11.8146C7.01464 11.6435 7.2317 11.3691 7.33377 11.0521C7.37531 10.921 7.39726 10.7826 7.39726 10.6408V8.84403L5.64872 7.83566L5.14486 7.54509C4.59175 7.22718 4.25234 6.63942 4.25234 6.00225V1.36366C4.25234 1.17621 4.28199 0.992813 4.33793 0.819233C4.344 0.800172 4.35039 0.781229 4.35709 0.762414Z\" fill=\"#BF63F3\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64872 7.83566L2.05206 9.91219L1.33561 9.49884C0.914896 9.25629 0.654541 8.80632 0.654541 8.32154V3.68296C0.654541 3.19625 0.91337 2.74824 1.33533 2.50581L4.35709 0.762414C4.35039 0.781229 4.344 0.800172 4.33793 0.819233C4.28199 0.992813 4.25234 1.17621 4.25234 1.36366V6.00225C4.25234 6.63942 4.59175 7.22718 5.14486 7.54509L5.64872 7.83566Z\" fill=\"#1868DB\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6.37092 4.13312L4.67653 3.15598V1.35919C4.67653 1.21761 4.69843 1.0793 4.73988 0.94837C4.84178 0.631497 5.05851 0.357177 5.35502 0.185934L5.35592 0.185415C5.36442 0.180511 5.3725 0.175072 5.38005 0.169224C5.79662 -0.0605531 6.30506 -0.0563318 6.71826 0.181888L9.96759 2.05659L6.37092 4.13312Z\" fill=\"#BF63F3\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10.7381 2.50115L9.96759 2.05659L6.37092 4.13312L6.92906 4.455C7.48227 4.77289 7.82145 5.36053 7.82145 5.99777V10.6363C7.82145 10.8241 7.79171 11.0077 7.73562 11.1815C7.72962 11.2003 7.72331 11.219 7.7167 11.2376L10.7385 9.4942C11.1604 9.25178 11.4192 8.80376 11.4192 8.31706V3.67848C11.4192 3.1937 11.1588 2.7437 10.7381 2.50115Z\" fill=\"#FCA700\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64872 7.83566L2.05206 9.91219L5.35553 11.8181C5.76872 12.0563 6.27718 12.0606 6.69374 11.8308C6.70128 11.8249 6.70931 11.8195 6.71781 11.8146C7.01464 11.6435 7.2317 11.3691 7.33377 11.0521C7.37531 10.921 7.39726 10.7826 7.39726 10.6408V8.84403L5.64872 7.83566Z\" fill=\"#82B536\"/>\n\t</svg>";
16
18
  var ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path d=\"M5.4905 0.135176C5.80591 -0.0450587 6.19311 -0.0450584 6.50852 0.135176L10.8688 2.62676C11.1885 2.80943 11.3857 3.14937 11.3857 3.51754V8.48246C11.3857 8.85063 11.1885 9.19057 10.8688 9.37324L6.50852 11.8648C6.19311 12.0451 5.80591 12.0451 5.4905 11.8648L1.13022 9.37324C0.810557 9.19057 0.613281 8.85063 0.613281 8.48246V3.51754C0.613281 3.14937 0.810557 2.80943 1.13022 2.62676L5.4905 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t<mask id=\"mask0_7293_80230\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"12\" height=\"12\">\n\t\t\t<path d=\"M5.49147 0.135176C5.80688 -0.0450587 6.19409 -0.0450584 6.5095 0.135176L10.8698 2.62676C11.1894 2.80943 11.3867 3.14937 11.3867 3.51754V8.48246C11.3867 8.85063 11.1894 9.19057 10.8698 9.37324L6.5095 11.8648C6.19409 12.0451 5.80688 12.0451 5.49147 11.8648L1.13119 9.37324C0.811533 9.19057 0.614258 8.85063 0.614258 8.48246V3.51754C0.614258 3.14937 0.811533 2.80943 1.13119 2.62676L5.49147 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t</mask>\n\t\t<g mask=\"url(#mask0_7293_80230)\">\n\t\t\t<path d=\"M1.16288 17.7949C1.88804 16.4071 2.9469 15.3192 4.34131 14.5785C5.73572 13.8378 7.35499 13.5206 8.99441 13.7092L0.174767 -2.55519C-1.28774 -2.29055 -2.70974 -1.80225 -4.07832 -1.07526C-5.44691 -0.348264 -6.62375 0.522036 -7.64571 1.5465L1.16656 17.7973L1.16288 17.7949Z\" fill=\"#82B536\"/>\n\t\t\t<path d=\"M6.2482 7.95377C3.81481 8.96062 1.95638 10.6236 1.88069 12.9253C1.88069 12.9253 1.88199 12.9371 1.88076 12.9428C1.87578 13.1139 1.87896 13.2868 1.89469 13.4633C1.89533 13.4648 1.89596 13.4663 1.89659 13.4678C1.91139 13.6465 1.93718 13.8294 1.97333 14.0151C1.98259 14.0588 1.99625 14.1041 2.00551 14.1478C2.03868 14.296 2.07186 14.4442 2.11979 14.5968C2.18327 14.7994 2.25711 15.0047 2.3457 15.2144C2.50959 15.6024 2.70185 15.9488 2.90932 16.2571C3.18552 16.6673 3.48842 17.0101 3.79015 17.2936C3.86597 17.3643 3.94053 17.432 4.01695 17.4954C4.37212 17.7357 4.89091 18.0543 5.7602 18.4584C6.328 18.7233 7.04924 19.025 7.97282 19.3662C8.7114 18.2422 10.0629 17.368 11.3277 16.3888C12.3263 15.6149 13.2681 14.7764 13.805 13.6971C14.2974 12.7085 14.3102 11.4765 13.7704 10.1986C12.4194 7.00012 9.42898 6.63591 6.2507 7.95097L6.2482 7.95377Z\" fill=\"#FCA700\"/>\n\t\t\t<path d=\"M11.6634 -7.61136L-2.81461 -5.02797C-2.81461 -5.02797 -1.3238 1.52224 -4.55981 7.48526C-4.11672 7.5189 -3.66847 7.5392 -3.21522 7.53288C5.12023 7.41664 11.7808 0.635945 11.6634 -7.61401L11.6634 -7.61136Z\" fill=\"#1868DB\"/>\n\t\t</g>\n\t\t<path d=\"M5.67239 2.71364C5.90711 2.58408 6.19359 2.58646 6.42641 2.72078L8.69144 4.02848C8.92849 4.16524 9.07522 4.41898 9.07522 4.69232V7.30776C9.07522 7.58218 8.92938 7.83479 8.69162 7.97148L6.98899 8.95449C6.99272 8.94401 6.99627 8.93347 6.99965 8.92286C7.03126 8.82487 7.04801 8.72132 7.04801 8.61548V6.00004C7.04801 5.64073 6.8569 5.3094 6.54519 5.13016L5.27598 4.39771V3.3846C5.27598 3.30477 5.28833 3.22678 5.31168 3.15296C5.3691 2.97429 5.49122 2.81962 5.65828 2.72306L5.65879 2.72277C5.66358 2.72001 5.66814 2.71694 5.67239 2.71364Z\" fill=\"white\"/>\n\t\t<path d=\"M5.09599 3.04811L3.39336 4.03112C3.1556 4.1678 3.00977 4.42042 3.00977 4.69484V7.31028C3.00977 7.58362 3.15646 7.83734 3.39352 7.9741L5.65857 9.28182C5.89139 9.41612 6.17789 9.41851 6.4126 9.28896C6.41685 9.28566 6.42137 9.28261 6.42616 9.27985C6.59341 9.18336 6.71572 9.02863 6.77323 8.84989C6.79663 8.77599 6.809 8.69792 6.809 8.618V7.60489L5.53987 6.87249C5.22822 6.69323 5.03697 6.36183 5.03697 6.00256V3.38712C5.03697 3.28142 5.05368 3.17802 5.0852 3.08015C5.08862 3.0694 5.09222 3.05872 5.09599 3.04811Z\" fill=\"white\"/>\n\t</svg>";
17
19
  var RovoLogoSVG = function RovoLogoSVG(_ref) {
18
20
  var label = _ref.label,
@@ -24,7 +26,7 @@ var RovoLogoSVG = function RovoLogoSVG(_ref) {
24
26
  // eslint-disable-next-line react/no-danger
25
27
  ,
26
28
  dangerouslySetInnerHTML: {
27
- __html: ROVO_SVG_PATH
29
+ __html: (0, _platformFeatureFlags.fg)('platform_editor_ai_rovo_rebrand') ? NEW_ROVO_SVG_PATH : ROVO_SVG_PATH
28
30
  },
29
31
  className: (0, _runtime.ax)([styles.container])
30
32
  });
@@ -1,5 +1,5 @@
1
1
 
2
- ._19itv4vr{border:1px solid var(--ds-border-inverse,#fff)}
2
+ ._19it1ps9{border:var(--ds-border-width,1px) solid var(--ds-border-inverse,#fff)}
3
3
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
4
4
  ._1dqonqa1{border-style:solid}
5
5
  ._1h6d1j28{border-color:transparent}
@@ -19,6 +19,6 @@
19
19
  ._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
20
20
  ._u5f3idpf{padding-right:0}
21
21
  ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
22
- ._y2mvugt7:focus{outline:2px solid var(--ds-border-focused,#388bff)}
22
+ ._y2mv1q03:focus{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#388bff)}
23
23
  ._858umuej:focus, ._jyzfmuej:focus-within, ._4cvxmuej:hover{border-color:var(--ds-border,#091e4224)}
24
24
  ._1bg4v77o:focus{outline-offset:var(--ds-space-025,2px)}
@@ -54,10 +54,10 @@ export const Color = /*#__PURE__*/memo(({
54
54
  tabIndex: tabIndex,
55
55
  style: {
56
56
  backgroundColor: colorStyle || "var(--ds-background-input, #FFFFFF)",
57
- border: `1px solid ${borderColor}`
57
+ border: `${"var(--ds-border-width, 1px)"} solid ${borderColor}`
58
58
  },
59
59
  autoFocus: autoFocus,
60
- className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19itv4vr _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mvugt7 _1bg4v77o"])
60
+ className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mv1q03 _1bg4v77o"])
61
61
  }, !decorator && isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
62
62
  color: checkMarkColor,
63
63
  LEGACY_primaryColor: checkMarkColor,
@@ -2,9 +2,18 @@
2
2
  import "./AIChatIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  const styles = {
6
7
  container: "_1e0c1txw _4cvr1h6o _1bah1h6o _4t3i1crf _1bsb1crf"
7
8
  };
9
+ const NEW_ROVO_SVG_PATH = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
10
+ <path d="M5.38005 0.169224C5.79662 -0.0605531 6.30506 -0.0563318 6.71826 0.181888L9.96759 2.05659L10.7381 2.50115C11.1588 2.7437 11.4192 3.1937 11.4192 3.67848V8.31706C11.4192 8.80376 11.1604 9.25178 10.7385 9.4942L7.7167 11.2376C7.72331 11.219 7.72962 11.2003 7.73562 11.1815C7.79171 11.0077 7.82145 10.8241 7.82145 10.6363V5.99777C7.82145 5.36053 7.48227 4.77289 6.92906 4.455L6.37092 4.13312L4.67653 3.15598V1.35919C4.67653 1.21761 4.69843 1.0793 4.73988 0.94837C4.84178 0.631497 5.05851 0.357177 5.35502 0.185934L5.35592 0.185415C5.36442 0.180511 5.3725 0.175072 5.38005 0.169224Z" fill="#BF63F3"/>
11
+ <path d="M4.35709 0.762414L1.33533 2.50581C0.91337 2.74824 0.654541 3.19625 0.654541 3.68296V8.32154C0.654541 8.80632 0.914896 9.25629 1.33561 9.49884L2.05206 9.91219L5.35553 11.8181C5.76872 12.0563 6.27718 12.0606 6.69374 11.8308C6.70128 11.8249 6.70931 11.8195 6.71781 11.8146C7.01464 11.6435 7.2317 11.3691 7.33377 11.0521C7.37531 10.921 7.39726 10.7826 7.39726 10.6408V8.84403L5.64872 7.83566L5.14486 7.54509C4.59175 7.22718 4.25234 6.63942 4.25234 6.00225V1.36366C4.25234 1.17621 4.28199 0.992813 4.33793 0.819233C4.344 0.800172 4.35039 0.781229 4.35709 0.762414Z" fill="#BF63F3"/>
12
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.64872 7.83566L2.05206 9.91219L1.33561 9.49884C0.914896 9.25629 0.654541 8.80632 0.654541 8.32154V3.68296C0.654541 3.19625 0.91337 2.74824 1.33533 2.50581L4.35709 0.762414C4.35039 0.781229 4.344 0.800172 4.33793 0.819233C4.28199 0.992813 4.25234 1.17621 4.25234 1.36366V6.00225C4.25234 6.63942 4.59175 7.22718 5.14486 7.54509L5.64872 7.83566Z" fill="#1868DB"/>
13
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M6.37092 4.13312L4.67653 3.15598V1.35919C4.67653 1.21761 4.69843 1.0793 4.73988 0.94837C4.84178 0.631497 5.05851 0.357177 5.35502 0.185934L5.35592 0.185415C5.36442 0.180511 5.3725 0.175072 5.38005 0.169224C5.79662 -0.0605531 6.30506 -0.0563318 6.71826 0.181888L9.96759 2.05659L6.37092 4.13312Z" fill="#BF63F3"/>
14
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.7381 2.50115L9.96759 2.05659L6.37092 4.13312L6.92906 4.455C7.48227 4.77289 7.82145 5.36053 7.82145 5.99777V10.6363C7.82145 10.8241 7.79171 11.0077 7.73562 11.1815C7.72962 11.2003 7.72331 11.219 7.7167 11.2376L10.7385 9.4942C11.1604 9.25178 11.4192 8.80376 11.4192 8.31706V3.67848C11.4192 3.1937 11.1588 2.7437 10.7381 2.50115Z" fill="#FCA700"/>
15
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.64872 7.83566L2.05206 9.91219L5.35553 11.8181C5.76872 12.0563 6.27718 12.0606 6.69374 11.8308C6.70128 11.8249 6.70931 11.8195 6.71781 11.8146C7.01464 11.6435 7.2317 11.3691 7.33377 11.0521C7.37531 10.921 7.39726 10.7826 7.39726 10.6408V8.84403L5.64872 7.83566Z" fill="#82B536"/>
16
+ </svg>`;
8
17
  const ROVO_SVG_PATH = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
9
18
  <path d="M5.4905 0.135176C5.80591 -0.0450587 6.19311 -0.0450584 6.50852 0.135176L10.8688 2.62676C11.1885 2.80943 11.3857 3.14937 11.3857 3.51754V8.48246C11.3857 8.85063 11.1885 9.19057 10.8688 9.37324L6.50852 11.8648C6.19311 12.0451 5.80591 12.0451 5.4905 11.8648L1.13022 9.37324C0.810557 9.19057 0.613281 8.85063 0.613281 8.48246V3.51754C0.613281 3.14937 0.810557 2.80943 1.13022 2.62676L5.4905 0.135176Z" fill="#BF63F3"/>
10
19
  <mask id="mask0_7293_80230" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="12" height="12">
@@ -28,7 +37,7 @@ const RovoLogoSVG = ({
28
37
  // eslint-disable-next-line react/no-danger
29
38
  ,
30
39
  dangerouslySetInnerHTML: {
31
- __html: ROVO_SVG_PATH
40
+ __html: fg('platform_editor_ai_rovo_rebrand') ? NEW_ROVO_SVG_PATH : ROVO_SVG_PATH
32
41
  },
33
42
  className: ax([styles.container])
34
43
  });
@@ -1,5 +1,5 @@
1
1
 
2
- ._19itcf40{border:var(--_1wr0y6w)}
2
+ ._19it1oet{border:var(--_y3tor4)}
3
3
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._189ee4h9{border-width:var(--ds-border-width,1px)}
4
4
  ._1dqonqa1{border-style:solid}
5
5
  ._1h6d1j28{border-color:transparent}
@@ -19,6 +19,6 @@
19
19
  ._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
20
20
  ._u5f3idpf{padding-right:0}
21
21
  ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
22
- ._y2mv12j9:focus{outline:var(--_toyvsf)}
22
+ ._y2mvuigy:focus{outline:var(--_1fve1bt)}
23
23
  ._858umuej:focus, ._jyzfmuej:focus-within, ._4cvxmuej:hover{border-color:var(--ds-border,#091e4224)}
24
24
  ._1bg4v77o:focus{outline-offset:var(--ds-space-025,2px)}
@@ -53,12 +53,12 @@ export var Color = /*#__PURE__*/memo(function (_ref) {
53
53
  onMouseDown: handleMouseDown,
54
54
  tabIndex: tabIndex,
55
55
  autoFocus: autoFocus,
56
- className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19itcf40 _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mv12j9 _1bg4v77o"]),
56
+ className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1oet _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mvuigy _1bg4v77o"]),
57
57
  style: {
58
58
  backgroundColor: colorStyle || "var(--ds-background-input, #FFFFFF)",
59
- border: "1px solid ".concat(borderColor),
60
- "--_1wr0y6w": ix("1px solid ".concat("var(--ds-border-inverse, #FFFFFF)")),
61
- "--_toyvsf": ix("2px solid ".concat("var(--ds-border-focused, #388BFF)"))
59
+ border: "var(--ds-border-width, 1px)".concat(" solid ", borderColor),
60
+ "--_y3tor4": ix("var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-inverse, #FFFFFF)")),
61
+ "--_1fve1bt": ix("var(--ds-border-width-focused, 2px)".concat(" solid ", "var(--ds-border-focused, #388BFF)"))
62
62
  }
63
63
  }, !decorator && isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
64
64
  color: checkMarkColor,
@@ -2,9 +2,11 @@
2
2
  import "./AIChatIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  var styles = {
6
7
  container: "_1e0c1txw _4cvr1h6o _1bah1h6o _4t3i1crf _1bsb1crf"
7
8
  };
9
+ var NEW_ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path d=\"M5.38005 0.169224C5.79662 -0.0605531 6.30506 -0.0563318 6.71826 0.181888L9.96759 2.05659L10.7381 2.50115C11.1588 2.7437 11.4192 3.1937 11.4192 3.67848V8.31706C11.4192 8.80376 11.1604 9.25178 10.7385 9.4942L7.7167 11.2376C7.72331 11.219 7.72962 11.2003 7.73562 11.1815C7.79171 11.0077 7.82145 10.8241 7.82145 10.6363V5.99777C7.82145 5.36053 7.48227 4.77289 6.92906 4.455L6.37092 4.13312L4.67653 3.15598V1.35919C4.67653 1.21761 4.69843 1.0793 4.73988 0.94837C4.84178 0.631497 5.05851 0.357177 5.35502 0.185934L5.35592 0.185415C5.36442 0.180511 5.3725 0.175072 5.38005 0.169224Z\" fill=\"#BF63F3\"/>\n\t\t<path d=\"M4.35709 0.762414L1.33533 2.50581C0.91337 2.74824 0.654541 3.19625 0.654541 3.68296V8.32154C0.654541 8.80632 0.914896 9.25629 1.33561 9.49884L2.05206 9.91219L5.35553 11.8181C5.76872 12.0563 6.27718 12.0606 6.69374 11.8308C6.70128 11.8249 6.70931 11.8195 6.71781 11.8146C7.01464 11.6435 7.2317 11.3691 7.33377 11.0521C7.37531 10.921 7.39726 10.7826 7.39726 10.6408V8.84403L5.64872 7.83566L5.14486 7.54509C4.59175 7.22718 4.25234 6.63942 4.25234 6.00225V1.36366C4.25234 1.17621 4.28199 0.992813 4.33793 0.819233C4.344 0.800172 4.35039 0.781229 4.35709 0.762414Z\" fill=\"#BF63F3\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64872 7.83566L2.05206 9.91219L1.33561 9.49884C0.914896 9.25629 0.654541 8.80632 0.654541 8.32154V3.68296C0.654541 3.19625 0.91337 2.74824 1.33533 2.50581L4.35709 0.762414C4.35039 0.781229 4.344 0.800172 4.33793 0.819233C4.28199 0.992813 4.25234 1.17621 4.25234 1.36366V6.00225C4.25234 6.63942 4.59175 7.22718 5.14486 7.54509L5.64872 7.83566Z\" fill=\"#1868DB\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6.37092 4.13312L4.67653 3.15598V1.35919C4.67653 1.21761 4.69843 1.0793 4.73988 0.94837C4.84178 0.631497 5.05851 0.357177 5.35502 0.185934L5.35592 0.185415C5.36442 0.180511 5.3725 0.175072 5.38005 0.169224C5.79662 -0.0605531 6.30506 -0.0563318 6.71826 0.181888L9.96759 2.05659L6.37092 4.13312Z\" fill=\"#BF63F3\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10.7381 2.50115L9.96759 2.05659L6.37092 4.13312L6.92906 4.455C7.48227 4.77289 7.82145 5.36053 7.82145 5.99777V10.6363C7.82145 10.8241 7.79171 11.0077 7.73562 11.1815C7.72962 11.2003 7.72331 11.219 7.7167 11.2376L10.7385 9.4942C11.1604 9.25178 11.4192 8.80376 11.4192 8.31706V3.67848C11.4192 3.1937 11.1588 2.7437 10.7381 2.50115Z\" fill=\"#FCA700\"/>\n\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64872 7.83566L2.05206 9.91219L5.35553 11.8181C5.76872 12.0563 6.27718 12.0606 6.69374 11.8308C6.70128 11.8249 6.70931 11.8195 6.71781 11.8146C7.01464 11.6435 7.2317 11.3691 7.33377 11.0521C7.37531 10.921 7.39726 10.7826 7.39726 10.6408V8.84403L5.64872 7.83566Z\" fill=\"#82B536\"/>\n\t</svg>";
8
10
  var ROVO_SVG_PATH = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path d=\"M5.4905 0.135176C5.80591 -0.0450587 6.19311 -0.0450584 6.50852 0.135176L10.8688 2.62676C11.1885 2.80943 11.3857 3.14937 11.3857 3.51754V8.48246C11.3857 8.85063 11.1885 9.19057 10.8688 9.37324L6.50852 11.8648C6.19311 12.0451 5.80591 12.0451 5.4905 11.8648L1.13022 9.37324C0.810557 9.19057 0.613281 8.85063 0.613281 8.48246V3.51754C0.613281 3.14937 0.810557 2.80943 1.13022 2.62676L5.4905 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t<mask id=\"mask0_7293_80230\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"12\" height=\"12\">\n\t\t\t<path d=\"M5.49147 0.135176C5.80688 -0.0450587 6.19409 -0.0450584 6.5095 0.135176L10.8698 2.62676C11.1894 2.80943 11.3867 3.14937 11.3867 3.51754V8.48246C11.3867 8.85063 11.1894 9.19057 10.8698 9.37324L6.5095 11.8648C6.19409 12.0451 5.80688 12.0451 5.49147 11.8648L1.13119 9.37324C0.811533 9.19057 0.614258 8.85063 0.614258 8.48246V3.51754C0.614258 3.14937 0.811533 2.80943 1.13119 2.62676L5.49147 0.135176Z\" fill=\"#BF63F3\"/>\n\t\t</mask>\n\t\t<g mask=\"url(#mask0_7293_80230)\">\n\t\t\t<path d=\"M1.16288 17.7949C1.88804 16.4071 2.9469 15.3192 4.34131 14.5785C5.73572 13.8378 7.35499 13.5206 8.99441 13.7092L0.174767 -2.55519C-1.28774 -2.29055 -2.70974 -1.80225 -4.07832 -1.07526C-5.44691 -0.348264 -6.62375 0.522036 -7.64571 1.5465L1.16656 17.7973L1.16288 17.7949Z\" fill=\"#82B536\"/>\n\t\t\t<path d=\"M6.2482 7.95377C3.81481 8.96062 1.95638 10.6236 1.88069 12.9253C1.88069 12.9253 1.88199 12.9371 1.88076 12.9428C1.87578 13.1139 1.87896 13.2868 1.89469 13.4633C1.89533 13.4648 1.89596 13.4663 1.89659 13.4678C1.91139 13.6465 1.93718 13.8294 1.97333 14.0151C1.98259 14.0588 1.99625 14.1041 2.00551 14.1478C2.03868 14.296 2.07186 14.4442 2.11979 14.5968C2.18327 14.7994 2.25711 15.0047 2.3457 15.2144C2.50959 15.6024 2.70185 15.9488 2.90932 16.2571C3.18552 16.6673 3.48842 17.0101 3.79015 17.2936C3.86597 17.3643 3.94053 17.432 4.01695 17.4954C4.37212 17.7357 4.89091 18.0543 5.7602 18.4584C6.328 18.7233 7.04924 19.025 7.97282 19.3662C8.7114 18.2422 10.0629 17.368 11.3277 16.3888C12.3263 15.6149 13.2681 14.7764 13.805 13.6971C14.2974 12.7085 14.3102 11.4765 13.7704 10.1986C12.4194 7.00012 9.42898 6.63591 6.2507 7.95097L6.2482 7.95377Z\" fill=\"#FCA700\"/>\n\t\t\t<path d=\"M11.6634 -7.61136L-2.81461 -5.02797C-2.81461 -5.02797 -1.3238 1.52224 -4.55981 7.48526C-4.11672 7.5189 -3.66847 7.5392 -3.21522 7.53288C5.12023 7.41664 11.7808 0.635945 11.6634 -7.61401L11.6634 -7.61136Z\" fill=\"#1868DB\"/>\n\t\t</g>\n\t\t<path d=\"M5.67239 2.71364C5.90711 2.58408 6.19359 2.58646 6.42641 2.72078L8.69144 4.02848C8.92849 4.16524 9.07522 4.41898 9.07522 4.69232V7.30776C9.07522 7.58218 8.92938 7.83479 8.69162 7.97148L6.98899 8.95449C6.99272 8.94401 6.99627 8.93347 6.99965 8.92286C7.03126 8.82487 7.04801 8.72132 7.04801 8.61548V6.00004C7.04801 5.64073 6.8569 5.3094 6.54519 5.13016L5.27598 4.39771V3.3846C5.27598 3.30477 5.28833 3.22678 5.31168 3.15296C5.3691 2.97429 5.49122 2.81962 5.65828 2.72306L5.65879 2.72277C5.66358 2.72001 5.66814 2.71694 5.67239 2.71364Z\" fill=\"white\"/>\n\t\t<path d=\"M5.09599 3.04811L3.39336 4.03112C3.1556 4.1678 3.00977 4.42042 3.00977 4.69484V7.31028C3.00977 7.58362 3.15646 7.83734 3.39352 7.9741L5.65857 9.28182C5.89139 9.41612 6.17789 9.41851 6.4126 9.28896C6.41685 9.28566 6.42137 9.28261 6.42616 9.27985C6.59341 9.18336 6.71572 9.02863 6.77323 8.84989C6.79663 8.77599 6.809 8.69792 6.809 8.618V7.60489L5.53987 6.87249C5.22822 6.69323 5.03697 6.36183 5.03697 6.00256V3.38712C5.03697 3.28142 5.05368 3.17802 5.0852 3.08015C5.08862 3.0694 5.09222 3.05872 5.09599 3.04811Z\" fill=\"white\"/>\n\t</svg>";
9
11
  var RovoLogoSVG = function RovoLogoSVG(_ref) {
10
12
  var label = _ref.label,
@@ -16,7 +18,7 @@ var RovoLogoSVG = function RovoLogoSVG(_ref) {
16
18
  // eslint-disable-next-line react/no-danger
17
19
  ,
18
20
  dangerouslySetInnerHTML: {
19
- __html: ROVO_SVG_PATH
21
+ __html: fg('platform_editor_ai_rovo_rebrand') ? NEW_ROVO_SVG_PATH : ROVO_SVG_PATH
20
22
  },
21
23
  className: ax([styles.container])
22
24
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.9.0",
6
+ "version": "0.9.2",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -25,13 +25,14 @@
25
25
  "@atlaskit/button": "^23.4.0",
26
26
  "@atlaskit/css": "^0.14.0",
27
27
  "@atlaskit/dropdown-menu": "^16.3.0",
28
- "@atlaskit/icon": "^28.1.0",
28
+ "@atlaskit/icon": "^28.2.0",
29
29
  "@atlaskit/icon-lab": "^5.7.0",
30
30
  "@atlaskit/logo": "^19.7.0",
31
+ "@atlaskit/platform-feature-flags": "^1.1.0",
31
32
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
32
- "@atlaskit/popup": "^4.3.0",
33
+ "@atlaskit/popup": "^4.4.0",
33
34
  "@atlaskit/primitives": "^14.14.0",
34
- "@atlaskit/tmp-editor-statsig": "^12.21.0",
35
+ "@atlaskit/tmp-editor-statsig": "^12.24.0",
35
36
  "@atlaskit/tokens": "^6.3.0",
36
37
  "@atlaskit/tooltip": "^20.4.0",
37
38
  "@babel/runtime": "^7.0.0",
@@ -83,5 +84,10 @@
83
84
  "import-no-extraneous-disable-for-examples-and-docs"
84
85
  ]
85
86
  }
87
+ },
88
+ "platform-feature-flags": {
89
+ "platform_editor_ai_rovo_rebrand": {
90
+ "type": "boolean"
91
+ }
86
92
  }
87
93
  }