@atlaskit/editor-common 78.37.0 → 78.37.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,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.37.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#95715](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95715)
8
+ [`f036f2fd9ccf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f036f2fd9ccf) -
9
+ [ED-23102] Added global styles that map the custom CSS variables to background color for
10
+ background color mark
11
+ - [#96198](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96198)
12
+ [`b69d14268915`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b69d14268915) -
13
+ [ux] EDF-629 fixed floating toolbar elements stealing selection from editor
14
+ - [#96234](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96234)
15
+ [`d414d3e7503b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d414d3e7503b) -
16
+ Update copy for Loom toolbar tooltip item and quickinsert description
17
+ - Updated dependencies
18
+
3
19
  ## 78.37.0
4
20
 
5
21
  ### Minor Changes
@@ -203,12 +203,17 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
203
203
  },
204
204
  addLoomVideo: {
205
205
  id: 'fabric.editor.addLoomVideo',
206
- defaultMessage: 'Add Loom Video',
207
- description: 'Record a new Loom video'
206
+ defaultMessage: 'Record a Loom video',
207
+ description: 'Record a Loom video'
208
+ },
209
+ addLoomVideoComment: {
210
+ id: 'fabric.editor.addLoomVideoComment',
211
+ defaultMessage: 'Record a Loom video comment',
212
+ description: 'Record a Loom video comment'
208
213
  },
209
214
  recordVideoDescription: {
210
215
  id: 'fabric.editor.recordVideo.description',
211
- defaultMessage: 'Record your screen and camera',
212
- description: 'Record your screen and camera'
216
+ defaultMessage: 'Record and share your screen and thoughts',
217
+ description: 'Record and share your screen and thoughts'
213
218
  }
214
219
  });
@@ -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.37.0";
19
+ var packageVersion = "78.37.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
@@ -135,6 +135,12 @@ Object.defineProperty(exports, "annotationSharedStyles", {
135
135
  return _annotation.annotationSharedStyles;
136
136
  }
137
137
  });
138
+ Object.defineProperty(exports, "backgroundColorStyles", {
139
+ enumerable: true,
140
+ get: function get() {
141
+ return _backgroundColor.backgroundColorStyles;
142
+ }
143
+ });
138
144
  Object.defineProperty(exports, "blockMarksSharedStyles", {
139
145
  enumerable: true,
140
146
  get: function get() {
@@ -424,6 +430,7 @@ Object.defineProperty(exports, "wrapperStyle", {
424
430
  }
425
431
  });
426
432
  var _textColor = require("./shared/text-color");
433
+ var _backgroundColor = require("./shared/background-color");
427
434
  var _table = require("./shared/table");
428
435
  var _annotation = require("./shared/annotation");
429
436
  var _columnLayout = require("./shared/column-layout");
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.backgroundColorStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var backgroundColorStyles = exports.backgroundColorStyles = (0, _react.css)({
9
+ '.fabric-background-color-mark': {
10
+ backgroundColor: 'var(--custom-palette-color, inherit)'
11
+ },
12
+ 'a .fabric-background-color-mark': {
13
+ backgroundColor: 'unset'
14
+ }
15
+ });
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  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); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "78.37.0";
23
+ var packageVersion = "78.37.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -13,7 +13,8 @@ var separator = (0, _react.css)({
13
13
  width: '1px',
14
14
  height: '20px',
15
15
  margin: "0 ".concat("var(--ds-space-050, 4px)"),
16
- alignSelf: 'center'
16
+ alignSelf: 'center',
17
+ pointerEvents: 'none'
17
18
  });
18
19
  var _default = exports.default = function _default() {
19
20
  return (0, _react.jsx)("div", {
@@ -197,12 +197,17 @@ export const toolbarInsertBlockMessages = defineMessages({
197
197
  },
198
198
  addLoomVideo: {
199
199
  id: 'fabric.editor.addLoomVideo',
200
- defaultMessage: 'Add Loom Video',
201
- description: 'Record a new Loom video'
200
+ defaultMessage: 'Record a Loom video',
201
+ description: 'Record a Loom video'
202
+ },
203
+ addLoomVideoComment: {
204
+ id: 'fabric.editor.addLoomVideoComment',
205
+ defaultMessage: 'Record a Loom video comment',
206
+ description: 'Record a Loom video comment'
202
207
  },
203
208
  recordVideoDescription: {
204
209
  id: 'fabric.editor.recordVideo.description',
205
- defaultMessage: 'Record your screen and camera',
206
- description: 'Record your screen and camera'
210
+ defaultMessage: 'Record and share your screen and thoughts',
211
+ description: 'Record and share your screen and thoughts'
207
212
  }
208
213
  });
@@ -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.37.0";
3
+ const packageVersion = "78.37.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
@@ -1,4 +1,5 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
+ export { backgroundColorStyles } from './shared/background-color';
2
3
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
3
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
4
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
@@ -0,0 +1,9 @@
1
+ import { css } from '@emotion/react';
2
+ export const backgroundColorStyles = css({
3
+ '.fabric-background-color-mark': {
4
+ backgroundColor: 'var(--custom-palette-color, inherit)'
5
+ },
6
+ 'a .fabric-background-color-mark': {
7
+ backgroundColor: 'unset'
8
+ }
9
+ });
@@ -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.37.0";
10
+ const packageVersion = "78.37.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -6,7 +6,8 @@ const separator = css({
6
6
  width: '1px',
7
7
  height: '20px',
8
8
  margin: `0 ${"var(--ds-space-050, 4px)"}`,
9
- alignSelf: 'center'
9
+ alignSelf: 'center',
10
+ pointerEvents: 'none'
10
11
  });
11
12
  export default (() => jsx("div", {
12
13
  css: separator,
@@ -197,12 +197,17 @@ export var toolbarInsertBlockMessages = defineMessages({
197
197
  },
198
198
  addLoomVideo: {
199
199
  id: 'fabric.editor.addLoomVideo',
200
- defaultMessage: 'Add Loom Video',
201
- description: 'Record a new Loom video'
200
+ defaultMessage: 'Record a Loom video',
201
+ description: 'Record a Loom video'
202
+ },
203
+ addLoomVideoComment: {
204
+ id: 'fabric.editor.addLoomVideoComment',
205
+ defaultMessage: 'Record a Loom video comment',
206
+ description: 'Record a Loom video comment'
202
207
  },
203
208
  recordVideoDescription: {
204
209
  id: 'fabric.editor.recordVideo.description',
205
- defaultMessage: 'Record your screen and camera',
206
- description: 'Record your screen and camera'
210
+ defaultMessage: 'Record and share your screen and thoughts',
211
+ description: 'Record and share your screen and thoughts'
207
212
  }
208
213
  });
@@ -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.37.0";
9
+ var packageVersion = "78.37.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
@@ -1,4 +1,5 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
+ export { backgroundColorStyles } from './shared/background-color';
2
3
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
3
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
4
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
@@ -0,0 +1,9 @@
1
+ import { css } from '@emotion/react';
2
+ export var backgroundColorStyles = css({
3
+ '.fabric-background-color-mark': {
4
+ backgroundColor: 'var(--custom-palette-color, inherit)'
5
+ },
6
+ 'a .fabric-background-color-mark': {
7
+ backgroundColor: 'unset'
8
+ }
9
+ });
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "78.37.0";
18
+ var packageVersion = "78.37.1";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -6,7 +6,8 @@ var separator = css({
6
6
  width: '1px',
7
7
  height: '20px',
8
8
  margin: "0 ".concat("var(--ds-space-050, 4px)"),
9
- alignSelf: 'center'
9
+ alignSelf: 'center',
10
+ pointerEvents: 'none'
10
11
  });
11
12
  export default (function () {
12
13
  return jsx("div", {
@@ -199,6 +199,11 @@ export declare const toolbarInsertBlockMessages: {
199
199
  defaultMessage: string;
200
200
  description: string;
201
201
  };
202
+ addLoomVideoComment: {
203
+ id: string;
204
+ defaultMessage: string;
205
+ description: string;
206
+ };
202
207
  recordVideoDescription: {
203
208
  id: string;
204
209
  defaultMessage: string;
@@ -1,4 +1,5 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
+ export { backgroundColorStyles } from './shared/background-color';
2
3
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
3
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
4
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
@@ -0,0 +1 @@
1
+ export declare const backgroundColorStyles: import("@emotion/react").SerializedStyles;
@@ -199,6 +199,11 @@ export declare const toolbarInsertBlockMessages: {
199
199
  defaultMessage: string;
200
200
  description: string;
201
201
  };
202
+ addLoomVideoComment: {
203
+ id: string;
204
+ defaultMessage: string;
205
+ description: string;
206
+ };
202
207
  recordVideoDescription: {
203
208
  id: string;
204
209
  defaultMessage: string;
@@ -1,4 +1,5 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
+ export { backgroundColorStyles } from './shared/background-color';
2
3
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
3
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
4
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
@@ -0,0 +1 @@
1
+ export declare const backgroundColorStyles: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.37.0",
3
+ "version": "78.37.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/"
@@ -114,7 +114,7 @@
114
114
  "@atlaskit/editor-tables": "^2.7.0",
115
115
  "@atlaskit/emoji": "^67.6.0",
116
116
  "@atlaskit/icon": "^22.1.0",
117
- "@atlaskit/icon-object": "^6.3.0",
117
+ "@atlaskit/icon-object": "^6.4.0",
118
118
  "@atlaskit/in-product-testing": "^0.2.0",
119
119
  "@atlaskit/link-datasource": "^1.31.0",
120
120
  "@atlaskit/link-picker": "^1.36.0",
@@ -132,11 +132,11 @@
132
132
  "@atlaskit/primitives": "^5.7.0",
133
133
  "@atlaskit/profilecard": "^19.11.0",
134
134
  "@atlaskit/section-message": "^6.5.0",
135
- "@atlaskit/smart-card": "^26.58.0",
135
+ "@atlaskit/smart-card": "^26.59.0",
136
136
  "@atlaskit/smart-user-picker": "^6.9.0",
137
- "@atlaskit/spinner": "^16.0.0",
137
+ "@atlaskit/spinner": "^16.1.0",
138
138
  "@atlaskit/task-decision": "^17.9.0",
139
- "@atlaskit/textfield": "^6.1.0",
139
+ "@atlaskit/textfield": "^6.2.0",
140
140
  "@atlaskit/theme": "^12.7.0",
141
141
  "@atlaskit/tokens": "^1.44.0",
142
142
  "@atlaskit/tooltip": "^18.3.0",