@atlaskit/editor-common 102.18.2 → 102.18.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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 102.18.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#125263](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/125263)
8
+ [`8269e79feca3c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8269e79feca3c) -
9
+ Removes deprecated import of `getCodeStyles`.
10
+ - Updated dependencies
11
+
3
12
  ## 102.18.2
4
13
 
5
14
  ### Patch Changes
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "102.18.2";
20
+ var packageVersion = "102.18.3";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -1,20 +1,32 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.codeMarkSharedStyles = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
7
  var _react = require("@emotion/react");
10
- var _inline = require("@atlaskit/code/inline");
11
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+
13
10
  var codeMarkSharedStyles = exports.codeMarkSharedStyles = function codeMarkSharedStyles() {
14
11
  return (0, _react.css)({
15
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
16
- '.code': _objectSpread({
17
- '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)"
18
- }, (0, _inline.getCodeStyles)())
13
+ '.code': {
14
+ '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)",
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
16
+ display: 'inline',
17
+ padding: '2px 0.5ch',
18
+ backgroundColor: "var(--ds--code--bg-color,".concat("var(--ds-background-neutral, #091E420F)", ")"),
19
+ borderRadius: "var(--ds-border-radius, 3px)",
20
+ borderStyle: 'none',
21
+ boxDecorationBreak: 'clone',
22
+ color: "var(--ds-text, #172B4D)",
23
+ fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
24
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
25
+ fontSize: '0.875em',
26
+ fontWeight: "var(--ds-font-weight-regular, 400)",
27
+ overflow: 'auto',
28
+ overflowWrap: 'break-word',
29
+ whiteSpace: 'pre-wrap'
30
+ }
19
31
  });
20
32
  };
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "102.18.2";
26
+ var packageVersion = "102.18.3";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "102.18.2";
4
+ const packageVersion = "102.18.3";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -1,13 +1,25 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { getCodeStyles } from '@atlaskit/code/inline';
4
3
  export const codeMarkSharedStyles = () => {
5
4
  return css({
6
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
7
6
  '.code': {
8
7
  '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)",
9
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
10
- ...getCodeStyles()
9
+ display: 'inline',
10
+ padding: '2px 0.5ch',
11
+ backgroundColor: `var(--ds--code--bg-color,${"var(--ds-background-neutral, #091E420F)"})`,
12
+ borderRadius: "var(--ds-border-radius, 3px)",
13
+ borderStyle: 'none',
14
+ boxDecorationBreak: 'clone',
15
+ color: "var(--ds-text, #172B4D)",
16
+ fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
17
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
18
+ fontSize: '0.875em',
19
+ fontWeight: "var(--ds-font-weight-regular, 400)",
20
+ overflow: 'auto',
21
+ overflowWrap: 'break-word',
22
+ whiteSpace: 'pre-wrap'
11
23
  }
12
24
  });
13
25
  };
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "102.18.2";
16
+ const packageVersion = "102.18.3";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "102.18.2";
10
+ var packageVersion = "102.18.3";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -1,14 +1,25 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
2
  import { css } from '@emotion/react';
6
- import { getCodeStyles } from '@atlaskit/code/inline';
7
3
  export var codeMarkSharedStyles = function codeMarkSharedStyles() {
8
4
  return css({
9
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
10
- '.code': _objectSpread({
11
- '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)"
12
- }, getCodeStyles())
6
+ '.code': {
7
+ '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)",
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
9
+ display: 'inline',
10
+ padding: '2px 0.5ch',
11
+ backgroundColor: "var(--ds--code--bg-color,".concat("var(--ds-background-neutral, #091E420F)", ")"),
12
+ borderRadius: "var(--ds-border-radius, 3px)",
13
+ borderStyle: 'none',
14
+ boxDecorationBreak: 'clone',
15
+ color: "var(--ds-text, #172B4D)",
16
+ fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
17
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
18
+ fontSize: '0.875em',
19
+ fontWeight: "var(--ds-font-weight-regular, 400)",
20
+ overflow: 'auto',
21
+ overflowWrap: 'break-word',
22
+ whiteSpace: 'pre-wrap'
23
+ }
13
24
  });
14
25
  };
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "102.18.2";
23
+ var packageVersion = "102.18.3";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "102.18.2",
3
+ "version": "102.18.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/"
@@ -125,7 +125,7 @@
125
125
  "@atlaskit/analytics-next": "^11.0.0",
126
126
  "@atlaskit/atlassian-context": "^0.2.0",
127
127
  "@atlaskit/button": "^23.0.0",
128
- "@atlaskit/code": "^16.3.0",
128
+ "@atlaskit/code": "^17.0.0",
129
129
  "@atlaskit/codemod-utils": "^4.2.0",
130
130
  "@atlaskit/css": "^0.10.0",
131
131
  "@atlaskit/custom-steps": "^0.11.0",