@atlaskit/editor-common 74.50.1 → 74.50.3

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,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 74.50.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c8acabc067e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c8acabc067e) - COMMENTS-342: Remove white space no wrap in expand macro causing inline comment navigation bug
8
+
9
+ ## 74.50.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`90520713d49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90520713d49) - [ux] [ED-19441] - Added dark mode icons for panels
14
+
3
15
  ## 74.50.1
4
16
 
5
17
  ### Patch Changes
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "74.50.1";
19
+ var packageVersion = "74.50.3";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = IconPanelError;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
10
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
11
-
9
+ var _useIconThemed2 = require("../use-icon-themed");
12
10
  function IconPanelError() {
11
+ var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
12
+ iconThemed = _useIconThemed.iconThemed;
13
13
  return /*#__PURE__*/_react.default.createElement("svg", {
14
14
  focusable: "false",
15
15
  "aria-hidden": true,
@@ -19,10 +19,16 @@ function IconPanelError() {
19
19
  fill: "none",
20
20
  fillRule: "evenodd"
21
21
  }, /*#__PURE__*/_react.default.createElement("path", {
22
- fill: "#FFF",
22
+ fill: iconThemed({
23
+ light: '#FFF',
24
+ dark: '#161A1D'
25
+ }),
23
26
  d: "M0 0h40v40H0z"
24
27
  }), /*#__PURE__*/_react.default.createElement("rect", {
25
- fill: "#FFEBE6",
28
+ fill: iconThemed({
29
+ light: '#FFEBE6',
30
+ dark: '#601D16'
31
+ }),
26
32
  x: 8,
27
33
  y: 12,
28
34
  width: 32,
@@ -30,6 +36,9 @@ function IconPanelError() {
30
36
  rx: 1
31
37
  }), /*#__PURE__*/_react.default.createElement("path", {
32
38
  d: "M16.743 19.964l1.06-1.06a.5.5 0 00-.707-.707l-1.06 1.06-1.061-1.06a.5.5 0 00-.707.707l1.06 1.06-1.06 1.061a.5.5 0 10.707.707l1.06-1.06 1.061 1.06a.5.5 0 10.707-.707l-1.06-1.06zM16 24a4 4 0 110-8 4 4 0 010 8z",
33
- fill: "#DE350B"
39
+ fill: iconThemed({
40
+ light: '#DE350B',
41
+ dark: '#F97362'
42
+ })
34
43
  })));
35
44
  }
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = IconPanelNote;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
10
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
11
-
9
+ var _useIconThemed2 = require("../use-icon-themed");
12
10
  function IconPanelNote() {
11
+ var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
12
+ iconThemed = _useIconThemed.iconThemed;
13
13
  return /*#__PURE__*/_react.default.createElement("svg", {
14
14
  focusable: "false",
15
15
  "aria-hidden": true,
@@ -19,10 +19,16 @@ function IconPanelNote() {
19
19
  fill: "none",
20
20
  fillRule: "evenodd"
21
21
  }, /*#__PURE__*/_react.default.createElement("path", {
22
- fill: "#FFF",
22
+ fill: iconThemed({
23
+ light: '#FFF',
24
+ dark: '#161A1D'
25
+ }),
23
26
  d: "M0 0h40v40H0z"
24
27
  }), /*#__PURE__*/_react.default.createElement("rect", {
25
- fill: "#EAE6FF",
28
+ fill: iconThemed({
29
+ light: '#EAE6FF',
30
+ dark: '#352C63'
31
+ }),
26
32
  x: 8,
27
33
  y: 12,
28
34
  width: 32,
@@ -30,6 +36,9 @@ function IconPanelNote() {
30
36
  rx: 1
31
37
  }), /*#__PURE__*/_react.default.createElement("path", {
32
38
  d: "M13 16h4a1 1 0 011 1v6a1 1 0 01-1 1h-4a1 1 0 01-1-1v-6a1 1 0 011-1zm1 2a.5.5 0 100 1h2a.5.5 0 100-1h-2zm0 2a.5.5 0 100 1h1a.5.5 0 100-1h-1z",
33
- fill: "#403294"
39
+ fill: iconThemed({
40
+ light: '#403294',
41
+ dark: '#8F7EE7'
42
+ })
34
43
  })));
35
44
  }
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = IconPanelSuccess;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
10
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
11
-
9
+ var _useIconThemed2 = require("../use-icon-themed");
12
10
  function IconPanelSuccess() {
11
+ var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
12
+ iconThemed = _useIconThemed.iconThemed;
13
13
  return /*#__PURE__*/_react.default.createElement("svg", {
14
14
  focusable: "false",
15
15
  "aria-hidden": true,
@@ -19,10 +19,16 @@ function IconPanelSuccess() {
19
19
  fill: "none",
20
20
  fillRule: "evenodd"
21
21
  }, /*#__PURE__*/_react.default.createElement("path", {
22
- fill: "#FFF",
22
+ fill: iconThemed({
23
+ light: '#FFF',
24
+ dark: '#161A1D'
25
+ }),
23
26
  d: "M0 0h40v40H0z"
24
27
  }), /*#__PURE__*/_react.default.createElement("rect", {
25
- fill: "#C3F8DF",
28
+ fill: iconThemed({
29
+ light: '#C3F8DF',
30
+ dark: '#164B35'
31
+ }),
26
32
  x: 8,
27
33
  y: 12,
28
34
  width: 32,
@@ -30,6 +36,9 @@ function IconPanelSuccess() {
30
36
  rx: 1
31
37
  }), /*#__PURE__*/_react.default.createElement("path", {
32
38
  d: "M15 24a4 4 0 110-8 4 4 0 010 8zm.682-5.482l-1.076 2.055-.772-.695a.5.5 0 00-.668.744l1.25 1.125a.5.5 0 00.777-.14l1.375-2.625a.5.5 0 00-.886-.464z",
33
- fill: "#00875A"
39
+ fill: iconThemed({
40
+ light: '#00875A',
41
+ dark: '#2ABB7F'
42
+ })
34
43
  })));
35
44
  }
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = IconPanelWarning;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
10
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
11
-
9
+ var _useIconThemed2 = require("../use-icon-themed");
12
10
  function IconPanelWarning() {
11
+ var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
12
+ iconThemed = _useIconThemed.iconThemed;
13
13
  return /*#__PURE__*/_react.default.createElement("svg", {
14
14
  focusable: "false",
15
15
  "aria-hidden": true,
@@ -19,10 +19,16 @@ function IconPanelWarning() {
19
19
  fill: "none",
20
20
  fillRule: "evenodd"
21
21
  }, /*#__PURE__*/_react.default.createElement("path", {
22
- fill: "#FFF",
22
+ fill: iconThemed({
23
+ light: '#FFF',
24
+ dark: '#161A1D'
25
+ }),
23
26
  d: "M0 0h40v40H0z"
24
27
  }), /*#__PURE__*/_react.default.createElement("rect", {
25
- fill: "#FFF0B3",
28
+ fill: iconThemed({
29
+ light: '#FFF0B3',
30
+ dark: '#5F3811'
31
+ }),
26
32
  x: 8,
27
33
  y: 12,
28
34
  width: 32,
@@ -30,6 +36,9 @@ function IconPanelWarning() {
30
36
  rx: 1
31
37
  }), /*#__PURE__*/_react.default.createElement("path", {
32
38
  d: "M16.847 16.83l2.808 5.73a1 1 0 01-.898 1.44h-6.514a1 1 0 01-.898-1.44l2.808-5.73a1.5 1.5 0 012.694 0zm-1.347.46a.568.568 0 00-.564.635l.278 2.32a.288.288 0 00.572 0l.278-2.32a.568.568 0 00-.564-.635zm0 5.035c.318 0 .576-.293.576-.656 0-.362-.258-.656-.576-.656-.318 0-.576.294-.576.656 0 .363.258.656.576.656z",
33
- fill: "#FF8B00"
39
+ fill: iconThemed({
40
+ light: '#FF8B00',
41
+ dark: '#EBB800'
42
+ })
34
43
  })));
35
44
  }
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = IconPanel;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
10
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
11
-
9
+ var _useIconThemed2 = require("../use-icon-themed");
12
10
  function IconPanel() {
11
+ var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
12
+ iconThemed = _useIconThemed.iconThemed;
13
13
  return /*#__PURE__*/_react.default.createElement("svg", {
14
14
  focusable: "false",
15
15
  "aria-hidden": true,
@@ -19,10 +19,16 @@ function IconPanel() {
19
19
  fill: "none",
20
20
  fillRule: "evenodd"
21
21
  }, /*#__PURE__*/_react.default.createElement("path", {
22
- fill: "#FFF",
22
+ fill: iconThemed({
23
+ light: '#FFF',
24
+ dark: '#161A1D'
25
+ }),
23
26
  d: "M0 0h40v40H0z"
24
27
  }), /*#__PURE__*/_react.default.createElement("rect", {
25
- fill: "#DEEBFF",
28
+ fill: iconThemed({
29
+ light: '#DEEBFF',
30
+ dark: '#09326C'
31
+ }),
26
32
  x: 8,
27
33
  y: 12,
28
34
  width: 32,
@@ -30,10 +36,16 @@ function IconPanel() {
30
36
  rx: 1
31
37
  }), /*#__PURE__*/_react.default.createElement("path", {
32
38
  d: "M12 20a4 4 0 108 0 4 4 0 00-8 0z",
33
- fill: "#0052CC",
39
+ fill: iconThemed({
40
+ light: '#0052CC',
41
+ dark: '#388BFF'
42
+ }),
34
43
  fillRule: "nonzero"
35
44
  }), /*#__PURE__*/_react.default.createElement("rect", {
36
- fill: "#FFF",
45
+ fill: iconThemed({
46
+ light: '#FFF',
47
+ dark: '#09326C'
48
+ }),
37
49
  fillRule: "nonzero",
38
50
  x: 15.556,
39
51
  y: 19.722,
@@ -41,7 +53,10 @@ function IconPanel() {
41
53
  height: 2.2,
42
54
  rx: 0.5
43
55
  }), /*#__PURE__*/_react.default.createElement("circle", {
44
- fill: "#FFF",
56
+ fill: iconThemed({
57
+ light: '#FFF',
58
+ dark: '#09326C'
59
+ }),
45
60
  fillRule: "nonzero",
46
61
  cx: 16,
47
62
  cy: 18.444,
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "74.50.1";
27
+ var packageVersion = "74.50.3";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -104,7 +104,7 @@ var containerStyles = function containerStyles(styleProps) {
104
104
  };
105
105
  var contentStyles = function contentStyles(styleProps) {
106
106
  return function (themeProps) {
107
- return (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n padding-top: ", ";\n padding-right: ", ";\n // TODO: Migrate away from gridSize\n // Recommendation: Replace gridSize with 8 if important to highlight 8*4 - 8/2, or directly replace with 28px\n padding-left: ", "px;\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", (0, _constants.gridSize)() * 4 - (0, _constants.gridSize)() / 2, !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n user-select: none;\n }\n " : '');
107
+ return (0, _react2.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n padding-top: ", ";\n padding-right: ", ";\n // TODO: Migrate away from gridSize\n // Recommendation: Replace gridSize with 8 if important to highlight 8*4 - 8/2, or directly replace with 28px\n padding-left: ", "px;\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", (0, _constants.gridSize)() * 4 - (0, _constants.gridSize)() / 2, !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '');
108
108
  };
109
109
  };
110
110
  var titleInputStyles = function titleInputStyles(props) {
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "74.50.1";
3
+ const packageVersion = "74.50.3";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -1,7 +1,9 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelError() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
5
7
  return /*#__PURE__*/React.createElement("svg", {
6
8
  focusable: "false",
7
9
  "aria-hidden": true,
@@ -11,10 +13,16 @@ export default function IconPanelError() {
11
13
  fill: "none",
12
14
  fillRule: "evenodd"
13
15
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
16
+ fill: iconThemed({
17
+ light: '#FFF',
18
+ dark: '#161A1D'
19
+ }),
15
20
  d: "M0 0h40v40H0z"
16
21
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#FFEBE6",
22
+ fill: iconThemed({
23
+ light: '#FFEBE6',
24
+ dark: '#601D16'
25
+ }),
18
26
  x: 8,
19
27
  y: 12,
20
28
  width: 32,
@@ -22,6 +30,9 @@ export default function IconPanelError() {
22
30
  rx: 1
23
31
  }), /*#__PURE__*/React.createElement("path", {
24
32
  d: "M16.743 19.964l1.06-1.06a.5.5 0 00-.707-.707l-1.06 1.06-1.061-1.06a.5.5 0 00-.707.707l1.06 1.06-1.06 1.061a.5.5 0 10.707.707l1.06-1.06 1.061 1.06a.5.5 0 10.707-.707l-1.06-1.06zM16 24a4 4 0 110-8 4 4 0 010 8z",
25
- fill: "#DE350B"
33
+ fill: iconThemed({
34
+ light: '#DE350B',
35
+ dark: '#F97362'
36
+ })
26
37
  })));
27
38
  }
@@ -1,7 +1,9 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelNote() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
5
7
  return /*#__PURE__*/React.createElement("svg", {
6
8
  focusable: "false",
7
9
  "aria-hidden": true,
@@ -11,10 +13,16 @@ export default function IconPanelNote() {
11
13
  fill: "none",
12
14
  fillRule: "evenodd"
13
15
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
16
+ fill: iconThemed({
17
+ light: '#FFF',
18
+ dark: '#161A1D'
19
+ }),
15
20
  d: "M0 0h40v40H0z"
16
21
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#EAE6FF",
22
+ fill: iconThemed({
23
+ light: '#EAE6FF',
24
+ dark: '#352C63'
25
+ }),
18
26
  x: 8,
19
27
  y: 12,
20
28
  width: 32,
@@ -22,6 +30,9 @@ export default function IconPanelNote() {
22
30
  rx: 1
23
31
  }), /*#__PURE__*/React.createElement("path", {
24
32
  d: "M13 16h4a1 1 0 011 1v6a1 1 0 01-1 1h-4a1 1 0 01-1-1v-6a1 1 0 011-1zm1 2a.5.5 0 100 1h2a.5.5 0 100-1h-2zm0 2a.5.5 0 100 1h1a.5.5 0 100-1h-1z",
25
- fill: "#403294"
33
+ fill: iconThemed({
34
+ light: '#403294',
35
+ dark: '#8F7EE7'
36
+ })
26
37
  })));
27
38
  }
@@ -1,7 +1,9 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelSuccess() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
5
7
  return /*#__PURE__*/React.createElement("svg", {
6
8
  focusable: "false",
7
9
  "aria-hidden": true,
@@ -11,10 +13,16 @@ export default function IconPanelSuccess() {
11
13
  fill: "none",
12
14
  fillRule: "evenodd"
13
15
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
16
+ fill: iconThemed({
17
+ light: '#FFF',
18
+ dark: '#161A1D'
19
+ }),
15
20
  d: "M0 0h40v40H0z"
16
21
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#C3F8DF",
22
+ fill: iconThemed({
23
+ light: '#C3F8DF',
24
+ dark: '#164B35'
25
+ }),
18
26
  x: 8,
19
27
  y: 12,
20
28
  width: 32,
@@ -22,6 +30,9 @@ export default function IconPanelSuccess() {
22
30
  rx: 1
23
31
  }), /*#__PURE__*/React.createElement("path", {
24
32
  d: "M15 24a4 4 0 110-8 4 4 0 010 8zm.682-5.482l-1.076 2.055-.772-.695a.5.5 0 00-.668.744l1.25 1.125a.5.5 0 00.777-.14l1.375-2.625a.5.5 0 00-.886-.464z",
25
- fill: "#00875A"
33
+ fill: iconThemed({
34
+ light: '#00875A',
35
+ dark: '#2ABB7F'
36
+ })
26
37
  })));
27
38
  }
@@ -1,7 +1,9 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelWarning() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
5
7
  return /*#__PURE__*/React.createElement("svg", {
6
8
  focusable: "false",
7
9
  "aria-hidden": true,
@@ -11,10 +13,16 @@ export default function IconPanelWarning() {
11
13
  fill: "none",
12
14
  fillRule: "evenodd"
13
15
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
16
+ fill: iconThemed({
17
+ light: '#FFF',
18
+ dark: '#161A1D'
19
+ }),
15
20
  d: "M0 0h40v40H0z"
16
21
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#FFF0B3",
22
+ fill: iconThemed({
23
+ light: '#FFF0B3',
24
+ dark: '#5F3811'
25
+ }),
18
26
  x: 8,
19
27
  y: 12,
20
28
  width: 32,
@@ -22,6 +30,9 @@ export default function IconPanelWarning() {
22
30
  rx: 1
23
31
  }), /*#__PURE__*/React.createElement("path", {
24
32
  d: "M16.847 16.83l2.808 5.73a1 1 0 01-.898 1.44h-6.514a1 1 0 01-.898-1.44l2.808-5.73a1.5 1.5 0 012.694 0zm-1.347.46a.568.568 0 00-.564.635l.278 2.32a.288.288 0 00.572 0l.278-2.32a.568.568 0 00-.564-.635zm0 5.035c.318 0 .576-.293.576-.656 0-.362-.258-.656-.576-.656-.318 0-.576.294-.576.656 0 .363.258.656.576.656z",
25
- fill: "#FF8B00"
33
+ fill: iconThemed({
34
+ light: '#FF8B00',
35
+ dark: '#EBB800'
36
+ })
26
37
  })));
27
38
  }
@@ -1,7 +1,9 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanel() {
4
+ const {
5
+ iconThemed
6
+ } = useIconThemed();
5
7
  return /*#__PURE__*/React.createElement("svg", {
6
8
  focusable: "false",
7
9
  "aria-hidden": true,
@@ -11,10 +13,16 @@ export default function IconPanel() {
11
13
  fill: "none",
12
14
  fillRule: "evenodd"
13
15
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
16
+ fill: iconThemed({
17
+ light: '#FFF',
18
+ dark: '#161A1D'
19
+ }),
15
20
  d: "M0 0h40v40H0z"
16
21
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#DEEBFF",
22
+ fill: iconThemed({
23
+ light: '#DEEBFF',
24
+ dark: '#09326C'
25
+ }),
18
26
  x: 8,
19
27
  y: 12,
20
28
  width: 32,
@@ -22,10 +30,16 @@ export default function IconPanel() {
22
30
  rx: 1
23
31
  }), /*#__PURE__*/React.createElement("path", {
24
32
  d: "M12 20a4 4 0 108 0 4 4 0 00-8 0z",
25
- fill: "#0052CC",
33
+ fill: iconThemed({
34
+ light: '#0052CC',
35
+ dark: '#388BFF'
36
+ }),
26
37
  fillRule: "nonzero"
27
38
  }), /*#__PURE__*/React.createElement("rect", {
28
- fill: "#FFF",
39
+ fill: iconThemed({
40
+ light: '#FFF',
41
+ dark: '#09326C'
42
+ }),
29
43
  fillRule: "nonzero",
30
44
  x: 15.556,
31
45
  y: 19.722,
@@ -33,7 +47,10 @@ export default function IconPanel() {
33
47
  height: 2.2,
34
48
  rx: 0.5
35
49
  }), /*#__PURE__*/React.createElement("circle", {
36
- fill: "#FFF",
50
+ fill: iconThemed({
51
+ light: '#FFF',
52
+ dark: '#09326C'
53
+ }),
37
54
  fillRule: "nonzero",
38
55
  cx: 16,
39
56
  cy: 18.444,
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import Layer from '../Layer';
10
10
  const packageName = "@atlaskit/editor-common";
11
- const packageVersion = "74.50.1";
11
+ const packageVersion = "74.50.3";
12
12
  const halfFocusRing = 1;
13
13
  const dropOffset = '0, 8';
14
14
  class DropList extends Component {
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
+
3
4
  import React, { forwardRef } from 'react';
4
5
  import { css, jsx } from '@emotion/react';
5
6
  import { defineMessages } from 'react-intl-next';
@@ -150,12 +151,12 @@ const contentStyles = styleProps => themeProps => css`
150
151
  ${!styleProps.expanded ? `
151
152
  .expand-content-wrapper, .nestedExpand-content-wrapper {
152
153
  /* We visually hide the content here to preserve the content during copy+paste */
154
+ /* Do not add text nowrap here because inline comment navigation depends on the location of the text */
153
155
  width: 100%;
154
156
  display: block;
155
157
  height: 0;
156
158
  overflow: hidden;
157
159
  clip: rect(1px, 1px, 1px, 1px);
158
- white-space: nowrap;
159
160
  user-select: none;
160
161
  }
161
162
  ` : ''}
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "74.50.1";
9
+ var packageVersion = "74.50.3";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -1,7 +1,8 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelError() {
4
+ var _useIconThemed = useIconThemed(),
5
+ iconThemed = _useIconThemed.iconThemed;
5
6
  return /*#__PURE__*/React.createElement("svg", {
6
7
  focusable: "false",
7
8
  "aria-hidden": true,
@@ -11,10 +12,16 @@ export default function IconPanelError() {
11
12
  fill: "none",
12
13
  fillRule: "evenodd"
13
14
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
15
+ fill: iconThemed({
16
+ light: '#FFF',
17
+ dark: '#161A1D'
18
+ }),
15
19
  d: "M0 0h40v40H0z"
16
20
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#FFEBE6",
21
+ fill: iconThemed({
22
+ light: '#FFEBE6',
23
+ dark: '#601D16'
24
+ }),
18
25
  x: 8,
19
26
  y: 12,
20
27
  width: 32,
@@ -22,6 +29,9 @@ export default function IconPanelError() {
22
29
  rx: 1
23
30
  }), /*#__PURE__*/React.createElement("path", {
24
31
  d: "M16.743 19.964l1.06-1.06a.5.5 0 00-.707-.707l-1.06 1.06-1.061-1.06a.5.5 0 00-.707.707l1.06 1.06-1.06 1.061a.5.5 0 10.707.707l1.06-1.06 1.061 1.06a.5.5 0 10.707-.707l-1.06-1.06zM16 24a4 4 0 110-8 4 4 0 010 8z",
25
- fill: "#DE350B"
32
+ fill: iconThemed({
33
+ light: '#DE350B',
34
+ dark: '#F97362'
35
+ })
26
36
  })));
27
37
  }
@@ -1,7 +1,8 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelNote() {
4
+ var _useIconThemed = useIconThemed(),
5
+ iconThemed = _useIconThemed.iconThemed;
5
6
  return /*#__PURE__*/React.createElement("svg", {
6
7
  focusable: "false",
7
8
  "aria-hidden": true,
@@ -11,10 +12,16 @@ export default function IconPanelNote() {
11
12
  fill: "none",
12
13
  fillRule: "evenodd"
13
14
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
15
+ fill: iconThemed({
16
+ light: '#FFF',
17
+ dark: '#161A1D'
18
+ }),
15
19
  d: "M0 0h40v40H0z"
16
20
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#EAE6FF",
21
+ fill: iconThemed({
22
+ light: '#EAE6FF',
23
+ dark: '#352C63'
24
+ }),
18
25
  x: 8,
19
26
  y: 12,
20
27
  width: 32,
@@ -22,6 +29,9 @@ export default function IconPanelNote() {
22
29
  rx: 1
23
30
  }), /*#__PURE__*/React.createElement("path", {
24
31
  d: "M13 16h4a1 1 0 011 1v6a1 1 0 01-1 1h-4a1 1 0 01-1-1v-6a1 1 0 011-1zm1 2a.5.5 0 100 1h2a.5.5 0 100-1h-2zm0 2a.5.5 0 100 1h1a.5.5 0 100-1h-1z",
25
- fill: "#403294"
32
+ fill: iconThemed({
33
+ light: '#403294',
34
+ dark: '#8F7EE7'
35
+ })
26
36
  })));
27
37
  }
@@ -1,7 +1,8 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelSuccess() {
4
+ var _useIconThemed = useIconThemed(),
5
+ iconThemed = _useIconThemed.iconThemed;
5
6
  return /*#__PURE__*/React.createElement("svg", {
6
7
  focusable: "false",
7
8
  "aria-hidden": true,
@@ -11,10 +12,16 @@ export default function IconPanelSuccess() {
11
12
  fill: "none",
12
13
  fillRule: "evenodd"
13
14
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
15
+ fill: iconThemed({
16
+ light: '#FFF',
17
+ dark: '#161A1D'
18
+ }),
15
19
  d: "M0 0h40v40H0z"
16
20
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#C3F8DF",
21
+ fill: iconThemed({
22
+ light: '#C3F8DF',
23
+ dark: '#164B35'
24
+ }),
18
25
  x: 8,
19
26
  y: 12,
20
27
  width: 32,
@@ -22,6 +29,9 @@ export default function IconPanelSuccess() {
22
29
  rx: 1
23
30
  }), /*#__PURE__*/React.createElement("path", {
24
31
  d: "M15 24a4 4 0 110-8 4 4 0 010 8zm.682-5.482l-1.076 2.055-.772-.695a.5.5 0 00-.668.744l1.25 1.125a.5.5 0 00.777-.14l1.375-2.625a.5.5 0 00-.886-.464z",
25
- fill: "#00875A"
32
+ fill: iconThemed({
33
+ light: '#00875A',
34
+ dark: '#2ABB7F'
35
+ })
26
36
  })));
27
37
  }
@@ -1,7 +1,8 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanelWarning() {
4
+ var _useIconThemed = useIconThemed(),
5
+ iconThemed = _useIconThemed.iconThemed;
5
6
  return /*#__PURE__*/React.createElement("svg", {
6
7
  focusable: "false",
7
8
  "aria-hidden": true,
@@ -11,10 +12,16 @@ export default function IconPanelWarning() {
11
12
  fill: "none",
12
13
  fillRule: "evenodd"
13
14
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
15
+ fill: iconThemed({
16
+ light: '#FFF',
17
+ dark: '#161A1D'
18
+ }),
15
19
  d: "M0 0h40v40H0z"
16
20
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#FFF0B3",
21
+ fill: iconThemed({
22
+ light: '#FFF0B3',
23
+ dark: '#5F3811'
24
+ }),
18
25
  x: 8,
19
26
  y: 12,
20
27
  width: 32,
@@ -22,6 +29,9 @@ export default function IconPanelWarning() {
22
29
  rx: 1
23
30
  }), /*#__PURE__*/React.createElement("path", {
24
31
  d: "M16.847 16.83l2.808 5.73a1 1 0 01-.898 1.44h-6.514a1 1 0 01-.898-1.44l2.808-5.73a1.5 1.5 0 012.694 0zm-1.347.46a.568.568 0 00-.564.635l.278 2.32a.288.288 0 00.572 0l.278-2.32a.568.568 0 00-.564-.635zm0 5.035c.318 0 .576-.293.576-.656 0-.362-.258-.656-.576-.656-.318 0-.576.294-.576.656 0 .363.258.656.576.656z",
25
- fill: "#FF8B00"
32
+ fill: iconThemed({
33
+ light: '#FF8B00',
34
+ dark: '#EBB800'
35
+ })
26
36
  })));
27
37
  }
@@ -1,7 +1,8 @@
1
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
1
  import React from 'react';
2
+ import { useIconThemed } from '../use-icon-themed';
4
3
  export default function IconPanel() {
4
+ var _useIconThemed = useIconThemed(),
5
+ iconThemed = _useIconThemed.iconThemed;
5
6
  return /*#__PURE__*/React.createElement("svg", {
6
7
  focusable: "false",
7
8
  "aria-hidden": true,
@@ -11,10 +12,16 @@ export default function IconPanel() {
11
12
  fill: "none",
12
13
  fillRule: "evenodd"
13
14
  }, /*#__PURE__*/React.createElement("path", {
14
- fill: "#FFF",
15
+ fill: iconThemed({
16
+ light: '#FFF',
17
+ dark: '#161A1D'
18
+ }),
15
19
  d: "M0 0h40v40H0z"
16
20
  }), /*#__PURE__*/React.createElement("rect", {
17
- fill: "#DEEBFF",
21
+ fill: iconThemed({
22
+ light: '#DEEBFF',
23
+ dark: '#09326C'
24
+ }),
18
25
  x: 8,
19
26
  y: 12,
20
27
  width: 32,
@@ -22,10 +29,16 @@ export default function IconPanel() {
22
29
  rx: 1
23
30
  }), /*#__PURE__*/React.createElement("path", {
24
31
  d: "M12 20a4 4 0 108 0 4 4 0 00-8 0z",
25
- fill: "#0052CC",
32
+ fill: iconThemed({
33
+ light: '#0052CC',
34
+ dark: '#388BFF'
35
+ }),
26
36
  fillRule: "nonzero"
27
37
  }), /*#__PURE__*/React.createElement("rect", {
28
- fill: "#FFF",
38
+ fill: iconThemed({
39
+ light: '#FFF',
40
+ dark: '#09326C'
41
+ }),
29
42
  fillRule: "nonzero",
30
43
  x: 15.556,
31
44
  y: 19.722,
@@ -33,7 +46,10 @@ export default function IconPanel() {
33
46
  height: 2.2,
34
47
  rx: 0.5
35
48
  }), /*#__PURE__*/React.createElement("circle", {
36
- fill: "#FFF",
49
+ fill: iconThemed({
50
+ light: '#FFF',
51
+ dark: '#09326C'
52
+ }),
37
53
  fillRule: "nonzero",
38
54
  cx: 16,
39
55
  cy: 18.444,
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
18
18
  import { borderRadius } from '@atlaskit/theme/constants';
19
19
  import Layer from '../Layer';
20
20
  var packageName = "@atlaskit/editor-common";
21
- var packageVersion = "74.50.1";
21
+ var packageVersion = "74.50.3";
22
22
  var halfFocusRing = 1;
23
23
  var dropOffset = '0, 8';
24
24
  var DropList = /*#__PURE__*/function (_Component) {
@@ -4,6 +4,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
4
4
  var _excluded = ["children"];
5
5
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
6
6
  /** @jsx jsx */
7
+
7
8
  import React, { forwardRef } from 'react';
8
9
  import { css, jsx } from '@emotion/react';
9
10
  import { defineMessages } from 'react-intl-next';
@@ -90,7 +91,7 @@ var containerStyles = function containerStyles(styleProps) {
90
91
  };
91
92
  var contentStyles = function contentStyles(styleProps) {
92
93
  return function (themeProps) {
93
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n // TODO: Migrate away from gridSize\n // Recommendation: Replace gridSize with 8 if important to highlight 8*4 - 8/2, or directly replace with 28px\n padding-left: ", "px;\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", gridSize() * 4 - gridSize() / 2, !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n user-select: none;\n }\n " : '');
94
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n // TODO: Migrate away from gridSize\n // Recommendation: Replace gridSize with 8 if important to highlight 8*4 - 8/2, or directly replace with 28px\n padding-left: ", "px;\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", gridSize() * 4 - gridSize() / 2, !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '');
94
95
  };
95
96
  };
96
97
  var titleInputStyles = function titleInputStyles(props) {
@@ -1,7 +1,6 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  import { jsx } from '@emotion/react';
4
- import { ThemeProps } from '@atlaskit/theme/types';
3
+ import type { ThemeProps } from '@atlaskit/theme/types';
5
4
  export declare const messages: {
6
5
  collapseNode: {
7
6
  id: string;
@@ -1,7 +1,6 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
2
  import { jsx } from '@emotion/react';
4
- import { ThemeProps } from '@atlaskit/theme/types';
3
+ import type { ThemeProps } from '@atlaskit/theme/types';
5
4
  export declare const messages: {
6
5
  collapseNode: {
7
6
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.50.1",
3
+ "version": "74.50.3",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"