@atlaskit/renderer 109.16.0 → 109.16.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,12 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.16.1
4
+
5
+ ### Patch 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
+ - Updated dependencies
9
+
3
10
  ## 109.16.0
4
11
 
5
12
  ### Minor Changes
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
55
55
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
56
56
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "109.16.0";
58
+ var packageVersion = "109.16.1";
59
59
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
60
60
  (0, _inherits2.default)(Renderer, _PureComponent);
61
61
  var _super = _createSuper(Renderer);
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.MarkComponent = void 0;
8
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
@@ -21,13 +21,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
21
21
  var markStyles = function markStyles() {
22
22
  return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: transparent;\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), _adfSchema.AnnotationMarkStates.ACTIVE, (0, _styles.AnnotationSharedCSSByState)().blur, (0, _styles.AnnotationSharedCSSByState)().focus);
23
23
  };
24
- var blockStyles = function blockStyles() {
25
- return (0, _react2.css)((0, _defineProperty2.default)({
26
- color: 'inherit',
27
- backgroundColor: 'unset',
28
- WebkitTapHighlightColor: 'transparent'
29
- }, "&[data-mark-annotation-state='".concat(_adfSchema.AnnotationMarkStates.ACTIVE, "']"), _styles.mediaAnnotationStyles));
30
- };
31
24
  var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
32
25
  var annotationParentIds = _ref.annotationParentIds,
33
26
  children = _ref.children,
@@ -67,7 +60,7 @@ var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
67
60
  };
68
61
  return (0, _react2.jsx)(useBlockLevel ? 'div' : 'mark', _objectSpread(_objectSpread(_objectSpread((0, _defineProperty2.default)({
69
62
  id: id
70
- }, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), {}, {
71
- css: useBlockLevel ? blockStyles : markStyles
63
+ }, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), !useBlockLevel && {
64
+ css: markStyles
72
65
  }), children);
73
66
  };
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
36
36
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
37
37
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
38
38
  const packageName = "@atlaskit/renderer";
39
- const packageVersion = "109.16.0";
39
+ const packageVersion = "109.16.1";
40
40
  export class Renderer extends PureComponent {
41
41
  constructor(props) {
42
42
  super(props);
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useMemo, useCallback } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
- import { AnnotationSharedCSSByState, mediaAnnotationStyles } from '@atlaskit/editor-common/styles';
5
+ import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
6
6
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
7
7
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
8
 
@@ -21,12 +21,6 @@ const markStyles = () => css`
21
21
  }
22
22
  }
23
23
  `;
24
- const blockStyles = () => css({
25
- color: 'inherit',
26
- backgroundColor: 'unset',
27
- WebkitTapHighlightColor: 'transparent',
28
- [`&[data-mark-annotation-state='${AnnotationMarkStates.ACTIVE}']`]: mediaAnnotationStyles
29
- });
30
24
  export const MarkComponent = ({
31
25
  annotationParentIds,
32
26
  children,
@@ -69,6 +63,8 @@ export const MarkComponent = ({
69
63
  [getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick']: onMarkClick,
70
64
  ...accessibility,
71
65
  ...overriddenData,
72
- css: useBlockLevel ? blockStyles : markStyles
66
+ ...(!useBlockLevel && {
67
+ css: markStyles
68
+ })
73
69
  }, children);
74
70
  };
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
46
46
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
47
47
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
48
48
  var packageName = "@atlaskit/renderer";
49
- var packageVersion = "109.16.0";
49
+ var packageVersion = "109.16.1";
50
50
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(Renderer, _PureComponent);
52
52
  var _super = _createSuper(Renderer);
@@ -1,5 +1,5 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
4
4
  var _templateObject;
5
5
  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; }
@@ -8,7 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
 
9
9
  import { useMemo, useCallback } from 'react';
10
10
  import { css, jsx } from '@emotion/react';
11
- import { AnnotationSharedCSSByState, mediaAnnotationStyles } from '@atlaskit/editor-common/styles';
11
+ import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
12
12
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
13
13
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
14
14
 
@@ -16,13 +16,6 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
16
16
  var markStyles = function markStyles() {
17
17
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: transparent;\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState().blur, AnnotationSharedCSSByState().focus);
18
18
  };
19
- var blockStyles = function blockStyles() {
20
- return css(_defineProperty({
21
- color: 'inherit',
22
- backgroundColor: 'unset',
23
- WebkitTapHighlightColor: 'transparent'
24
- }, "&[data-mark-annotation-state='".concat(AnnotationMarkStates.ACTIVE, "']"), mediaAnnotationStyles));
25
- };
26
19
  export var MarkComponent = function MarkComponent(_ref) {
27
20
  var annotationParentIds = _ref.annotationParentIds,
28
21
  children = _ref.children,
@@ -62,7 +55,7 @@ export var MarkComponent = function MarkComponent(_ref) {
62
55
  };
63
56
  return jsx(useBlockLevel ? 'div' : 'mark', _objectSpread(_objectSpread(_objectSpread(_defineProperty({
64
57
  id: id
65
- }, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), {}, {
66
- css: useBlockLevel ? blockStyles : markStyles
58
+ }, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), !useBlockLevel && {
59
+ css: markStyles
67
60
  }), children);
68
61
  };
@@ -12,7 +12,7 @@ type MarkComponentProps = {
12
12
  useBlockLevel?: boolean;
13
13
  };
14
14
  export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.DetailedReactHTMLElement<{
15
- css: () => import("@emotion/react").SerializedStyles;
15
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
16
16
  'data-mark-type': string;
17
17
  'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
18
18
  'data-id': string;
@@ -21,7 +21,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
21
21
  'aria-details'?: undefined;
22
22
  id: string;
23
23
  } | {
24
- css: () => import("@emotion/react").SerializedStyles;
24
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
25
25
  'data-mark-annotation-state': AnnotationMarkStates;
26
26
  'data-has-focus': boolean;
27
27
  'data-mark-type': string;
@@ -31,7 +31,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
31
31
  'aria-details'?: undefined;
32
32
  id: string;
33
33
  } | {
34
- css: () => import("@emotion/react").SerializedStyles;
34
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
35
35
  'data-mark-type': string;
36
36
  'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
37
37
  'data-id': string;
@@ -40,7 +40,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
40
40
  'aria-disabled'?: undefined;
41
41
  id: string;
42
42
  } | {
43
- css: () => import("@emotion/react").SerializedStyles;
43
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
44
44
  'data-mark-annotation-state': AnnotationMarkStates;
45
45
  'data-has-focus': boolean;
46
46
  'data-mark-type': string;
@@ -12,7 +12,7 @@ type MarkComponentProps = {
12
12
  useBlockLevel?: boolean;
13
13
  };
14
14
  export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.DetailedReactHTMLElement<{
15
- css: () => import("@emotion/react").SerializedStyles;
15
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
16
16
  'data-mark-type': string;
17
17
  'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
18
18
  'data-id': string;
@@ -21,7 +21,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
21
21
  'aria-details'?: undefined;
22
22
  id: string;
23
23
  } | {
24
- css: () => import("@emotion/react").SerializedStyles;
24
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
25
25
  'data-mark-annotation-state': AnnotationMarkStates;
26
26
  'data-has-focus': boolean;
27
27
  'data-mark-type': string;
@@ -31,7 +31,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
31
31
  'aria-details'?: undefined;
32
32
  id: string;
33
33
  } | {
34
- css: () => import("@emotion/react").SerializedStyles;
34
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
35
35
  'data-mark-type': string;
36
36
  'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
37
37
  'data-id': string;
@@ -40,7 +40,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
40
40
  'aria-disabled'?: undefined;
41
41
  id: string;
42
42
  } | {
43
- css: () => import("@emotion/react").SerializedStyles;
43
+ css?: (() => import("@emotion/react").SerializedStyles) | undefined;
44
44
  'data-mark-annotation-state': AnnotationMarkStates;
45
45
  'data-has-focus': boolean;
46
46
  'data-mark-type': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.16.0",
3
+ "version": "109.16.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-next": "^9.2.0",
32
32
  "@atlaskit/button": "^17.11.0",
33
33
  "@atlaskit/code": "^15.1.0",
34
- "@atlaskit/editor-common": "^78.25.0",
34
+ "@atlaskit/editor-common": "^78.26.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.10.0",
36
36
  "@atlaskit/editor-palette": "1.5.3",
37
37
  "@atlaskit/editor-prosemirror": "3.0.0",