@atlaskit/editor-common 74.2.0 → 74.2.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,11 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 74.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`01bb98b52ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/01bb98b52ee) - Internal change to replace gridSize with space tokens.
8
+
3
9
  ## 74.2.0
4
10
 
5
11
  ### Minor 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.2.0";
19
+ var packageVersion = "74.2.1";
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
@@ -22,13 +22,11 @@ var _constants = require("@atlaskit/theme/constants");
22
22
  var _Layer = _interopRequireDefault(require("../Layer"));
23
23
  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
- 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 */ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
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.2.0";
27
+ var packageVersion = "74.2.1";
28
28
  var halfFocusRing = 1;
29
- // TODO: Migrate away from gridSize
30
- // Recommendation: Replace gridSize with token('space.100', '8px') after verfiying Popper can accept this
31
- var dropOffset = "0, ".concat((0, _constants.gridSize)(), "px");
29
+ var dropOffset = '0, 8';
32
30
  var DropList = /*#__PURE__*/function (_Component) {
33
31
  (0, _inherits2.default)(DropList, _Component);
34
32
  var _super = _createSuper(DropList);
@@ -14,7 +14,9 @@ var _analyticsListeners = require("@atlaskit/analytics-listeners");
14
14
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
15
15
  var _analytics = require("../../analytics");
16
16
  var _styles = _interopRequireDefault(require("./styles"));
17
- var _templateObject;
17
+ var _templateObject; // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
18
+ // If you make any change here, copy it to above file as well
19
+ // and notify about the change in #team-fc-editor-ai-dev channel.
18
20
  /** @jsx jsx */
19
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
22
  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; }
@@ -8,6 +8,9 @@ exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
11
+ // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/styles.tsx`
12
+ // If you make any change here, copy it to above file as well
13
+ // and notify about the change in #team-fc-editor-ai-dev channel.
11
14
  var _default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
12
15
  return /*#__PURE__*/_react.default.createElement(_standardButton.default, (0, _extends2.default)({
13
16
  ref: ref
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.2.0",
3
+ "version": "74.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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.2.0";
3
+ const packageVersion = "74.2.1";
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
@@ -5,15 +5,12 @@ import { css, jsx } from '@emotion/react';
5
5
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
6
6
  import { DN50, DN600, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
7
7
  import { themed } from '@atlaskit/theme/components';
8
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
9
- import { borderRadius, gridSize } from '@atlaskit/theme/constants';
8
+ import { borderRadius } from '@atlaskit/theme/constants';
10
9
  import Layer from '../Layer';
11
10
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "74.2.0";
11
+ const packageVersion = "74.2.1";
13
12
  const halfFocusRing = 1;
14
- // TODO: Migrate away from gridSize
15
- // Recommendation: Replace gridSize with token('space.100', '8px') after verfiying Popper can accept this
16
- const dropOffset = `0, ${gridSize()}px`;
13
+ const dropOffset = '0, 8';
17
14
  class DropList extends Component {
18
15
  constructor(...args) {
19
16
  super(...args);
@@ -1,3 +1,6 @@
1
+ // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
2
+ // If you make any change here, copy it to above file as well
3
+ // and notify about the change in #team-fc-editor-ai-dev channel.
1
4
  /** @jsx jsx */
2
5
  import React, { useCallback } from 'react';
3
6
  import { css, jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/styles.tsx`
3
+ // If you make any change here, copy it to above file as well
4
+ // and notify about the change in #team-fc-editor-ai-dev channel.
2
5
  import React from 'react';
3
6
  import Button from '@atlaskit/button/standard-button';
4
7
  export default /*#__PURE__*/React.forwardRef((props, ref) => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.2.0",
3
+ "version": "74.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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.2.0";
9
+ var packageVersion = "74.2.1";
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
@@ -15,15 +15,12 @@ import { css, jsx } from '@emotion/react';
15
15
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
16
16
  import { DN50, DN600, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
17
17
  import { themed } from '@atlaskit/theme/components';
18
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
19
- import { borderRadius, gridSize } from '@atlaskit/theme/constants';
18
+ import { borderRadius } from '@atlaskit/theme/constants';
20
19
  import Layer from '../Layer';
21
20
  var packageName = "@atlaskit/editor-common";
22
- var packageVersion = "74.2.0";
21
+ var packageVersion = "74.2.1";
23
22
  var halfFocusRing = 1;
24
- // TODO: Migrate away from gridSize
25
- // Recommendation: Replace gridSize with token('space.100', '8px') after verfiying Popper can accept this
26
- var dropOffset = "0, ".concat(gridSize(), "px");
23
+ var dropOffset = '0, 8';
27
24
  var DropList = /*#__PURE__*/function (_Component) {
28
25
  _inherits(DropList, _Component);
29
26
  var _super = _createSuper(DropList);
@@ -3,6 +3,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
3
3
  var _templateObject;
4
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
  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; }
6
+ // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
7
+ // If you make any change here, copy it to above file as well
8
+ // and notify about the change in #team-fc-editor-ai-dev channel.
6
9
  /** @jsx jsx */
7
10
  import React, { useCallback } from 'react';
8
11
  import { css, jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/styles.tsx`
3
+ // If you make any change here, copy it to above file as well
4
+ // and notify about the change in #team-fc-editor-ai-dev channel.
2
5
  import React from 'react';
3
6
  import Button from '@atlaskit/button/standard-button';
4
7
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.2.0",
3
+ "version": "74.2.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.2.0",
3
+ "version": "74.2.1",
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/"
@@ -92,7 +92,7 @@
92
92
  "@atlaskit/mention": "^22.1.0",
93
93
  "@atlaskit/menu": "^1.7.0",
94
94
  "@atlaskit/platform-feature-flags": "^0.2.0",
95
- "@atlaskit/profilecard": "^19.3.0",
95
+ "@atlaskit/profilecard": "^19.4.0",
96
96
  "@atlaskit/smart-card": "^26.3.0",
97
97
  "@atlaskit/smart-user-picker": "^6.1.0",
98
98
  "@atlaskit/task-decision": "^17.6.0",
@@ -143,7 +143,7 @@
143
143
  "@atlaskit/editor-plugin-grid": "^0.1.0",
144
144
  "@atlaskit/editor-plugin-table": "^1.5.0",
145
145
  "@atlaskit/editor-plugin-width": "^0.0.1",
146
- "@atlaskit/editor-test-helpers": "^18.4.0",
146
+ "@atlaskit/editor-test-helpers": "^18.5.0",
147
147
  "@atlaskit/media-core": "^34.1.0",
148
148
  "@atlaskit/util-data-test": "^17.8.0",
149
149
  "@atlaskit/visual-regression": "*",