@atlaskit/renderer 109.16.0 → 109.17.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,22 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#88000](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88000) [`61b44e565851`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/61b44e565851) - [ux] FF clean up platform.editor.show-embed-card-frame-renderer
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 109.16.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#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
18
+ - Updated dependencies
19
+
3
20
  ## 109.16.0
4
21
 
5
22
  ### Minor Changes
@@ -11,7 +11,6 @@ var _react = require("@emotion/react");
11
11
  var _react2 = require("react");
12
12
  var _smartCard = require("@atlaskit/smart-card");
13
13
  var _linkProvider = require("@atlaskit/link-provider");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _ui = require("@atlaskit/editor-common/ui");
16
15
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
16
  var _utils = require("../../utils");
@@ -63,7 +62,7 @@ function EmbedCard(props) {
63
62
  onClick: onClick,
64
63
  container: portal,
65
64
  platform: platform,
66
- frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : (0, _platformFeatureFlags.getBooleanFF)('platform.editor.show-embed-card-frame-renderer') ? 'show' : undefined,
65
+ frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : 'show',
67
66
  actionOptions: actionOptions,
68
67
  showServerActions: showServerActions
69
68
  };
@@ -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.17.0";
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
  };
@@ -4,7 +4,6 @@ import { css, jsx } from '@emotion/react';
4
4
  import { useMemo, useContext, useState, useRef } from 'react';
5
5
  import { Card, EmbedResizeMessageListener } from '@atlaskit/smart-card';
6
6
  import { SmartCardContext } from '@atlaskit/link-provider';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
7
  import { WidthConsumer, UnsupportedBlock, MediaSingle as UIMediaSingle } from '@atlaskit/editor-common/ui';
9
8
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
10
9
  import { getPlatform } from '../../utils';
@@ -55,7 +54,7 @@ export default function EmbedCard(props) {
55
54
  onClick,
56
55
  container: portal,
57
56
  platform,
58
- frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : getBooleanFF('platform.editor.show-embed-card-frame-renderer') ? 'show' : undefined,
57
+ frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : 'show',
59
58
  actionOptions,
60
59
  showServerActions
61
60
  };
@@ -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.17.0";
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
  };
@@ -5,7 +5,6 @@ import { css, jsx } from '@emotion/react';
5
5
  import { useMemo, useContext, useState, useRef } from 'react';
6
6
  import { Card, EmbedResizeMessageListener } from '@atlaskit/smart-card';
7
7
  import { SmartCardContext } from '@atlaskit/link-provider';
8
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
8
  import { WidthConsumer, UnsupportedBlock, MediaSingle as UIMediaSingle } from '@atlaskit/editor-common/ui';
10
9
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
11
10
  import { getPlatform } from '../../utils';
@@ -55,7 +54,7 @@ export default function EmbedCard(props) {
55
54
  onClick: onClick,
56
55
  container: portal,
57
56
  platform: platform,
58
- frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : getBooleanFF('platform.editor.show-embed-card-frame-renderer') ? 'show' : undefined,
57
+ frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : 'show',
59
58
  actionOptions: actionOptions,
60
59
  showServerActions: showServerActions
61
60
  };
@@ -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.17.0";
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.17.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,9 +29,9 @@
29
29
  "@atlaskit/analytics-listeners": "^8.9.0",
30
30
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
31
31
  "@atlaskit/analytics-next": "^9.2.0",
32
- "@atlaskit/button": "^17.11.0",
32
+ "@atlaskit/button": "^17.12.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",
@@ -44,10 +44,10 @@
44
44
  "@atlaskit/media-client-react": "^2.0.0",
45
45
  "@atlaskit/media-common": "^11.1.0",
46
46
  "@atlaskit/media-filmstrip": "^47.0.0",
47
- "@atlaskit/media-ui": "^25.6.0",
47
+ "@atlaskit/media-ui": "^25.7.0",
48
48
  "@atlaskit/media-viewer": "^48.4.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.0",
50
- "@atlaskit/smart-card": "^26.52.0",
50
+ "@atlaskit/smart-card": "^26.53.0",
51
51
  "@atlaskit/status": "^1.4.0",
52
52
  "@atlaskit/task-decision": "^17.9.0",
53
53
  "@atlaskit/theme": "^12.7.0",
@@ -126,9 +126,6 @@
126
126
  "type": "boolean",
127
127
  "referenceOnly": "true"
128
128
  },
129
- "platform.editor.show-embed-card-frame-renderer": {
130
- "type": "boolean"
131
- },
132
129
  "platform.editor.inline_extension.extended_lcqdn": {
133
130
  "type": "boolean"
134
131
  },