@atlaskit/editor-common 78.19.1 → 78.19.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,11 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.19.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83485](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83485) [`e9f04bf0ed87`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9f04bf0ed87) - migrated todo styles to tokens
8
+
3
9
  ## 78.19.1
4
10
 
5
11
  ### Patch Changes
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  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 && Object.prototype.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; }
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 = "78.19.1";
19
+ var packageVersion = "78.19.2";
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
@@ -4,11 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.EXTENSION_PADDING = exports.BODIED_EXT_PADDING = exports.BODIED_EXT_MBE_MARGIN_TOP = void 0;
7
- var _constants = require("@atlaskit/theme/constants");
8
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
9
-
10
- // TODO: Migrate away from gridSize
11
- // Recommendation: Replace gridSize with 8
12
- var EXTENSION_PADDING = exports.EXTENSION_PADDING = (0, _constants.gridSize)();
7
+ var EXTENSION_PADDING = exports.EXTENSION_PADDING = 8;
13
8
  var BODIED_EXT_PADDING = exports.BODIED_EXT_PADDING = EXTENSION_PADDING * 2;
14
9
  var BODIED_EXT_MBE_MARGIN_TOP = exports.BODIED_EXT_MBE_MARGIN_TOP = 12;
@@ -4,10 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LAYOUT_SECTION_MARGIN = exports.LAYOUT_COLUMN_PADDING = void 0;
7
- var _constants = require("@atlaskit/theme/constants");
8
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
9
-
10
- // TODO: Migrate away from gridSize
11
- // Recommendation: Replace gridSize with 8
12
- var LAYOUT_SECTION_MARGIN = exports.LAYOUT_SECTION_MARGIN = (0, _constants.gridSize)();
13
- var LAYOUT_COLUMN_PADDING = exports.LAYOUT_COLUMN_PADDING = (0, _constants.gridSize)() * 1.5;
7
+ var LAYOUT_SECTION_MARGIN = exports.LAYOUT_SECTION_MARGIN = 8;
8
+ var LAYOUT_COLUMN_PADDING = exports.LAYOUT_COLUMN_PADDING = LAYOUT_SECTION_MARGIN * 1.5;
@@ -5,9 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.smartCardSharedStyles = exports.SmartCardSharedCssClassName = void 0;
7
7
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
8
- var _constants = require("@atlaskit/theme/constants");
9
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
10
-
11
8
  var SmartCardSharedCssClassName = exports.SmartCardSharedCssClassName = {
12
9
  INLINE_CARD_CONTAINER: 'inlineCardView-content-wrap',
13
10
  BLOCK_CARD_CONTAINER: 'blockCardView-content-wrap',
@@ -15,7 +12,4 @@ var SmartCardSharedCssClassName = exports.SmartCardSharedCssClassName = {
15
12
  DATASOURCE_CONTAINER: 'datasourceView-content-wrap',
16
13
  LOADER_WRAPPER: 'loader-wrapper'
17
14
  };
18
-
19
- // TODO: Migrate away from gridSize
20
- // Recommendation: Replace gridSize with 8
21
- var smartCardSharedStyles = exports.smartCardSharedStyles = "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0;\n max-width: ").concat((0, _constants.gridSize)() * 95, "px;\n }\n");
15
+ var smartCardSharedStyles = exports.smartCardSharedStyles = "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n");
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
22
22
  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); }; }
23
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "78.19.1";
25
+ var packageVersion = "78.19.2";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -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 = "78.19.1";
3
+ const packageVersion = "78.19.2";
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,8 +1,3 @@
1
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
2
- import { gridSize } from '@atlaskit/theme/constants';
3
-
4
- // TODO: Migrate away from gridSize
5
- // Recommendation: Replace gridSize with 8
6
- export const EXTENSION_PADDING = gridSize();
1
+ export const EXTENSION_PADDING = 8;
7
2
  export const BODIED_EXT_PADDING = EXTENSION_PADDING * 2;
8
3
  export const BODIED_EXT_MBE_MARGIN_TOP = 12;
@@ -1,7 +1,2 @@
1
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
2
- import { gridSize } from '@atlaskit/theme/constants';
3
-
4
- // TODO: Migrate away from gridSize
5
- // Recommendation: Replace gridSize with 8
6
- export const LAYOUT_SECTION_MARGIN = gridSize();
7
- export const LAYOUT_COLUMN_PADDING = gridSize() * 1.5;
1
+ export const LAYOUT_SECTION_MARGIN = 8;
2
+ export const LAYOUT_COLUMN_PADDING = LAYOUT_SECTION_MARGIN * 1.5;
@@ -1,6 +1,4 @@
1
1
  import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
2
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
3
- import { gridSize } from '@atlaskit/theme/constants';
4
2
  export const SmartCardSharedCssClassName = {
5
3
  INLINE_CARD_CONTAINER: 'inlineCardView-content-wrap',
6
4
  BLOCK_CARD_CONTAINER: 'blockCardView-content-wrap',
@@ -8,13 +6,10 @@ export const SmartCardSharedCssClassName = {
8
6
  DATASOURCE_CONTAINER: 'datasourceView-content-wrap',
9
7
  LOADER_WRAPPER: 'loader-wrapper'
10
8
  };
11
-
12
- // TODO: Migrate away from gridSize
13
- // Recommendation: Replace gridSize with 8
14
9
  export const smartCardSharedStyles = `
15
10
  .${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER} {
16
11
  display: block;
17
12
  margin: ${blockNodesVerticalMargin} 0 0;
18
- max-width: ${gridSize() * 95}px;
13
+ max-width: ${8 * 95}px;
19
14
  }
20
15
  `;
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "78.19.1";
10
+ const packageVersion = "78.19.2";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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; }
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 = "78.19.1";
9
+ var packageVersion = "78.19.2";
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,8 +1,3 @@
1
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
2
- import { gridSize } from '@atlaskit/theme/constants';
3
-
4
- // TODO: Migrate away from gridSize
5
- // Recommendation: Replace gridSize with 8
6
- export var EXTENSION_PADDING = gridSize();
1
+ export var EXTENSION_PADDING = 8;
7
2
  export var BODIED_EXT_PADDING = EXTENSION_PADDING * 2;
8
3
  export var BODIED_EXT_MBE_MARGIN_TOP = 12;
@@ -1,7 +1,2 @@
1
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
2
- import { gridSize } from '@atlaskit/theme/constants';
3
-
4
- // TODO: Migrate away from gridSize
5
- // Recommendation: Replace gridSize with 8
6
- export var LAYOUT_SECTION_MARGIN = gridSize();
7
- export var LAYOUT_COLUMN_PADDING = gridSize() * 1.5;
1
+ export var LAYOUT_SECTION_MARGIN = 8;
2
+ export var LAYOUT_COLUMN_PADDING = LAYOUT_SECTION_MARGIN * 1.5;
@@ -1,6 +1,4 @@
1
1
  import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
2
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
3
- import { gridSize } from '@atlaskit/theme/constants';
4
2
  export var SmartCardSharedCssClassName = {
5
3
  INLINE_CARD_CONTAINER: 'inlineCardView-content-wrap',
6
4
  BLOCK_CARD_CONTAINER: 'blockCardView-content-wrap',
@@ -8,7 +6,4 @@ export var SmartCardSharedCssClassName = {
8
6
  DATASOURCE_CONTAINER: 'datasourceView-content-wrap',
9
7
  LOADER_WRAPPER: 'loader-wrapper'
10
8
  };
11
-
12
- // TODO: Migrate away from gridSize
13
- // Recommendation: Replace gridSize with 8
14
- export var smartCardSharedStyles = "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(gridSize() * 95, "px;\n }\n");
9
+ export var smartCardSharedStyles = "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n");
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "78.19.1";
20
+ var packageVersion = "78.19.2";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,3 +1,3 @@
1
- export declare const EXTENSION_PADDING: number;
1
+ export declare const EXTENSION_PADDING = 8;
2
2
  export declare const BODIED_EXT_PADDING: number;
3
3
  export declare const BODIED_EXT_MBE_MARGIN_TOP = 12;
@@ -1,2 +1,2 @@
1
- export declare const LAYOUT_SECTION_MARGIN: number;
1
+ export declare const LAYOUT_SECTION_MARGIN = 8;
2
2
  export declare const LAYOUT_COLUMN_PADDING: number;
@@ -1,3 +1,3 @@
1
- export declare const EXTENSION_PADDING: number;
1
+ export declare const EXTENSION_PADDING = 8;
2
2
  export declare const BODIED_EXT_PADDING: number;
3
3
  export declare const BODIED_EXT_MBE_MARGIN_TOP = 12;
@@ -1,2 +1,2 @@
1
- export declare const LAYOUT_SECTION_MARGIN: number;
1
+ export declare const LAYOUT_SECTION_MARGIN = 8;
2
2
  export declare const LAYOUT_COLUMN_PADDING: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.19.1",
3
+ "version": "78.19.2",
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/"