@atlaskit/editor-common 78.25.0 → 78.26.0

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.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#88763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88763) [`9fcd30347b0c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9fcd30347b0c) - [ux] Removed annotation styling for media in editor and renderer
8
+
3
9
  ## 78.25.0
4
10
 
5
11
  ### Minor Changes
@@ -21,12 +21,6 @@ Object.defineProperty(exports, "commentMessages", {
21
21
  return _comments.commentMessages;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "commentStatusStyleMap", {
25
- enumerable: true,
26
- get: function get() {
27
- return _styles.commentStatusStyleMap;
28
- }
29
- });
30
24
  Object.defineProperty(exports, "dropPlaceholderMessages", {
31
25
  enumerable: true,
32
26
  get: function get() {
@@ -78,5 +72,4 @@ var _caption = require("./messages/caption");
78
72
  var _dropPlaceholder = require("./messages/dropPlaceholder");
79
73
  var _altText = require("./messages/altText");
80
74
  var _mediaResizeAnnouncerMess = require("./messages/mediaResizeAnnouncerMess");
81
- var _comments = require("./messages/comments");
82
- var _styles = require("./styles");
75
+ var _comments = require("./messages/comments");
@@ -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.25.0";
19
+ var packageVersion = "78.26.0";
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
@@ -255,12 +255,6 @@ Object.defineProperty(exports, "listsSharedStyles", {
255
255
  return _lists.listsSharedStyles;
256
256
  }
257
257
  });
258
- Object.defineProperty(exports, "mediaAnnotationStyles", {
259
- enumerable: true,
260
- get: function get() {
261
- return _annotation.mediaAnnotationStyles;
262
- }
263
- });
264
258
  Object.defineProperty(exports, "mediaSingleSharedStyle", {
265
259
  enumerable: true,
266
260
  get: function get() {
@@ -4,12 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.mediaAnnotationStyles = exports.blockAnnotationPrefix = exports.annotationSharedStyles = exports.annotationPrefix = exports.BlockAnnotationSharedClassNames = exports.AnnotationSharedClassNames = exports.AnnotationSharedCSSByState = void 0;
7
+ exports.blockAnnotationPrefix = exports.annotationSharedStyles = exports.annotationPrefix = exports.BlockAnnotationSharedClassNames = exports.AnnotationSharedClassNames = exports.AnnotationSharedCSSByState = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
- var _styles = require("../../media/styles");
13
12
  var _templateObject;
14
13
  var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
15
14
  var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
@@ -23,7 +22,6 @@ var BlockAnnotationSharedClassNames = exports.BlockAnnotationSharedClassNames =
23
22
  blur: "".concat(blockAnnotationPrefix, "-blur"),
24
23
  draft: "".concat(blockAnnotationPrefix, "-draft")
25
24
  };
26
- var mediaNodeDomRef = 'mediaView-content-wrap';
27
25
  var Y75a = 'rgba(255, 240, 179, 0.5)';
28
26
  var Y200a = 'rgba(255, 196, 0, 0.82)';
29
27
  var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
@@ -73,9 +71,5 @@ var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function A
73
71
 
74
72
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
75
73
  var annotationSharedStyles = exports.annotationSharedStyles = function annotationSharedStyles() {
76
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n\n // Styling for comments on media node\n .", "[class*=ak-editor-block-annotation-] {\n border-radius: 3px;\n }\n\n .", ".", " {\n box-shadow: ", ";\n }\n\n .", ".", " {\n box-shadow: ", ";\n }\n\n .", ".", " {\n box-shadow: ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur, mediaNodeDomRef, mediaNodeDomRef, BlockAnnotationSharedClassNames.draft, (0, _styles.commentStatusStyleMap)('draft'), mediaNodeDomRef, BlockAnnotationSharedClassNames.focus, (0, _styles.commentStatusStyleMap)('focus'), mediaNodeDomRef, BlockAnnotationSharedClassNames.blur, (0, _styles.commentStatusStyleMap)('blur'));
77
- };
78
- var mediaAnnotationStyles = exports.mediaAnnotationStyles = (0, _react.css)({
79
- boxShadow: "3px 3px ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75a, ")")),
80
- borderRadius: '3px'
81
- });
74
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
75
+ };
@@ -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.25.0";
25
+ var packageVersion = "78.26.0";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -7,5 +7,4 @@ export { captionMessages } from './messages/caption';
7
7
  export { dropPlaceholderMessages } from './messages/dropPlaceholder';
8
8
  export { altTextMessages } from './messages/altText';
9
9
  export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
10
- export { commentMessages } from './messages/comments';
11
- export { commentStatusStyleMap } from './styles';
10
+ export { commentMessages } from './messages/comments';
@@ -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.25.0";
3
+ const packageVersion = "78.26.0";
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,6 +1,6 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
2
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
3
- export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, mediaAnnotationStyles } from './shared/annotation';
3
+ export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
4
4
  export { columnLayoutSharedStyle } from './shared/column-layout';
5
5
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
6
6
  export { blockquoteSharedStyles } from './shared/blockquote';
@@ -1,7 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
3
  import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
4
- import { commentStatusStyleMap } from '../../media/styles';
5
4
  export const annotationPrefix = 'ak-editor-annotation';
6
5
  export const AnnotationSharedClassNames = {
7
6
  focus: `${annotationPrefix}-focus`,
@@ -14,7 +13,6 @@ export const BlockAnnotationSharedClassNames = {
14
13
  blur: `${blockAnnotationPrefix}-blur`,
15
14
  draft: `${blockAnnotationPrefix}-draft`
16
15
  };
17
- const mediaNodeDomRef = 'mediaView-content-wrap';
18
16
  const Y75a = 'rgba(255, 240, 179, 0.5)';
19
17
  const Y200a = 'rgba(255, 196, 0, 0.82)';
20
18
  export const AnnotationSharedCSSByState = () => getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? {
@@ -75,26 +73,5 @@ export const annotationSharedStyles = () => css`
75
73
  .${AnnotationSharedClassNames.blur} {
76
74
  ${AnnotationSharedCSSByState().blur};
77
75
  }
78
-
79
- // Styling for comments on media node
80
- .${mediaNodeDomRef}[class*=ak-editor-block-annotation-] {
81
- border-radius: 3px;
82
- }
83
-
84
- .${mediaNodeDomRef}.${BlockAnnotationSharedClassNames.draft} {
85
- box-shadow: ${commentStatusStyleMap('draft')};
86
- }
87
-
88
- .${mediaNodeDomRef}.${BlockAnnotationSharedClassNames.focus} {
89
- box-shadow: ${commentStatusStyleMap('focus')};
90
- }
91
-
92
- .${mediaNodeDomRef}.${BlockAnnotationSharedClassNames.blur} {
93
- box-shadow: ${commentStatusStyleMap('blur')};
94
- }
95
76
  }
96
- `;
97
- export const mediaAnnotationStyles = css({
98
- boxShadow: `3px 3px ${`var(--ds-background-accent-yellow-subtler, ${Y75a})`}`,
99
- borderRadius: '3px'
100
- });
77
+ `;
@@ -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.25.0";
10
+ const packageVersion = "78.26.0";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -7,5 +7,4 @@ export { captionMessages } from './messages/caption';
7
7
  export { dropPlaceholderMessages } from './messages/dropPlaceholder';
8
8
  export { altTextMessages } from './messages/altText';
9
9
  export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
10
- export { commentMessages } from './messages/comments';
11
- export { commentStatusStyleMap } from './styles';
10
+ export { commentMessages } from './messages/comments';
@@ -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.25.0";
9
+ var packageVersion = "78.26.0";
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,6 +1,6 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
2
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl } from './shared/table';
3
- export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, mediaAnnotationStyles } from './shared/annotation';
3
+ export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
4
4
  export { columnLayoutSharedStyle } from './shared/column-layout';
5
5
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
6
6
  export { blockquoteSharedStyles } from './shared/blockquote';
@@ -3,7 +3,6 @@ var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
5
  import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
6
- import { commentStatusStyleMap } from '../../media/styles';
7
6
  export var annotationPrefix = 'ak-editor-annotation';
8
7
  export var AnnotationSharedClassNames = {
9
8
  focus: "".concat(annotationPrefix, "-focus"),
@@ -16,7 +15,6 @@ export var BlockAnnotationSharedClassNames = {
16
15
  blur: "".concat(blockAnnotationPrefix, "-blur"),
17
16
  draft: "".concat(blockAnnotationPrefix, "-draft")
18
17
  };
19
- var mediaNodeDomRef = 'mediaView-content-wrap';
20
18
  var Y75a = 'rgba(255, 240, 179, 0.5)';
21
19
  var Y200a = 'rgba(255, 196, 0, 0.82)';
22
20
  export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
@@ -66,9 +64,5 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
66
64
 
67
65
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
68
66
  export var annotationSharedStyles = function annotationSharedStyles() {
69
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n\n // Styling for comments on media node\n .", "[class*=ak-editor-block-annotation-] {\n border-radius: 3px;\n }\n\n .", ".", " {\n box-shadow: ", ";\n }\n\n .", ".", " {\n box-shadow: ", ";\n }\n\n .", ".", " {\n box-shadow: ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur, mediaNodeDomRef, mediaNodeDomRef, BlockAnnotationSharedClassNames.draft, commentStatusStyleMap('draft'), mediaNodeDomRef, BlockAnnotationSharedClassNames.focus, commentStatusStyleMap('focus'), mediaNodeDomRef, BlockAnnotationSharedClassNames.blur, commentStatusStyleMap('blur'));
70
- };
71
- export var mediaAnnotationStyles = css({
72
- boxShadow: "3px 3px ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75a, ")")),
73
- borderRadius: '3px'
74
- });
67
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
68
+ };
@@ -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.25.0";
20
+ var packageVersion = "78.26.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -8,4 +8,3 @@ export { dropPlaceholderMessages } from './messages/dropPlaceholder';
8
8
  export { altTextMessages } from './messages/altText';
9
9
  export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
10
10
  export { commentMessages } from './messages/comments';
11
- export { commentStatusStyleMap } from './styles';
@@ -1,6 +1,6 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
2
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
3
- export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, mediaAnnotationStyles, } from './shared/annotation';
3
+ export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
4
4
  export { columnLayoutSharedStyle } from './shared/column-layout';
5
5
  export { mediaSingleSharedStyle, richMediaClassName, } from './shared/media-single';
6
6
  export { blockquoteSharedStyles } from './shared/blockquote';
@@ -15,4 +15,3 @@ export declare const AnnotationSharedCSSByState: () => {
15
15
  blur: import("@emotion/react").SerializedStyles;
16
16
  };
17
17
  export declare const annotationSharedStyles: () => import("@emotion/react").SerializedStyles;
18
- export declare const mediaAnnotationStyles: import("@emotion/react").SerializedStyles;
@@ -8,4 +8,3 @@ export { dropPlaceholderMessages } from './messages/dropPlaceholder';
8
8
  export { altTextMessages } from './messages/altText';
9
9
  export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
10
10
  export { commentMessages } from './messages/comments';
11
- export { commentStatusStyleMap } from './styles';
@@ -1,6 +1,6 @@
1
1
  export { textColorStyles } from './shared/text-color';
2
2
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, } from './shared/table';
3
- export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, mediaAnnotationStyles, } from './shared/annotation';
3
+ export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
4
4
  export { columnLayoutSharedStyle } from './shared/column-layout';
5
5
  export { mediaSingleSharedStyle, richMediaClassName, } from './shared/media-single';
6
6
  export { blockquoteSharedStyles } from './shared/blockquote';
@@ -15,4 +15,3 @@ export declare const AnnotationSharedCSSByState: () => {
15
15
  blur: import("@emotion/react").SerializedStyles;
16
16
  };
17
17
  export declare const annotationSharedStyles: () => import("@emotion/react").SerializedStyles;
18
- export declare const mediaAnnotationStyles: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.25.0",
3
+ "version": "78.26.0",
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/"
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.commentStatusStyleMap = void 0;
7
- var _colors = require("@atlaskit/theme/colors");
8
- var boxShadowColorByStatus = {
9
- draft: "var(--ds-background-accent-yellow-subtle, ".concat(_colors.Y300, ")"),
10
- focus: "var(--ds-background-accent-yellow-subtle, ".concat(_colors.Y300, ")"),
11
- blur: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y200, ")")
12
- };
13
- var commentStatusStyleMap = exports.commentStatusStyleMap = function commentStatusStyleMap(status) {
14
- return "3px 3px 0px 0px ".concat(boxShadowColorByStatus[status]);
15
- };
@@ -1,7 +0,0 @@
1
- import { Y200, Y300 } from '@atlaskit/theme/colors';
2
- const boxShadowColorByStatus = {
3
- draft: `var(--ds-background-accent-yellow-subtle, ${Y300})`,
4
- focus: `var(--ds-background-accent-yellow-subtle, ${Y300})`,
5
- blur: `var(--ds-background-accent-yellow-subtler, ${Y200})`
6
- };
7
- export const commentStatusStyleMap = status => `3px 3px 0px 0px ${boxShadowColorByStatus[status]}`;
@@ -1,9 +0,0 @@
1
- import { Y200, Y300 } from '@atlaskit/theme/colors';
2
- var boxShadowColorByStatus = {
3
- draft: "var(--ds-background-accent-yellow-subtle, ".concat(Y300, ")"),
4
- focus: "var(--ds-background-accent-yellow-subtle, ".concat(Y300, ")"),
5
- blur: "var(--ds-background-accent-yellow-subtler, ".concat(Y200, ")")
6
- };
7
- export var commentStatusStyleMap = function commentStatusStyleMap(status) {
8
- return "3px 3px 0px 0px ".concat(boxShadowColorByStatus[status]);
9
- };
@@ -1,2 +0,0 @@
1
- export type CommentStatus = 'draft' | 'focus' | 'blur';
2
- export declare const commentStatusStyleMap: (status: CommentStatus) => string;
@@ -1,2 +0,0 @@
1
- export type CommentStatus = 'draft' | 'focus' | 'blur';
2
- export declare const commentStatusStyleMap: (status: CommentStatus) => string;