@atlaskit/renderer 109.35.0 → 109.36.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,26 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.36.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#112336](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112336)
8
+ [`a1733f8d7c4cc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a1733f8d7c4cc) -
9
+ [ux] ED-23648 tweak editor and renderer inline comment sizing to fit inline nodes
10
+ - Updated dependencies
11
+
12
+ ## 109.36.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#114477](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114477)
17
+ [`33e0090cf80ef`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/33e0090cf80ef) -
18
+ ED-23785 - add `inlineNodeTypes` to `InlineCommentSelectionComponentProps`
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 109.35.0
4
25
 
5
26
  ### Minor Changes
@@ -0,0 +1,108 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.jira.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__renderer/app",
7
+ "composite": true,
8
+ "rootDir": "../"
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../adf-utils/afm-jira/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../analytics/analytics-listeners/afm-jira/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/button/afm-jira/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../design-system/code/afm-jira/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../editor-common/afm-jira/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../editor-json-transformer/afm-jira/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../editor-palette/afm-jira/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../editor-shared-styles/afm-jira/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../../elements/emoji/afm-jira/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../../../design-system/icon/afm-jira/tsconfig.json"
55
+ },
56
+ {
57
+ "path": "../../../linking-platform/link-datasource/afm-jira/tsconfig.json"
58
+ },
59
+ {
60
+ "path": "../../../media/media-card/afm-jira/tsconfig.json"
61
+ },
62
+ {
63
+ "path": "../../../media/media-client/afm-jira/tsconfig.json"
64
+ },
65
+ {
66
+ "path": "../../../media/media-client-react/afm-jira/tsconfig.json"
67
+ },
68
+ {
69
+ "path": "../../../media/media-common/afm-jira/tsconfig.json"
70
+ },
71
+ {
72
+ "path": "../../../media/media-filmstrip/afm-jira/tsconfig.json"
73
+ },
74
+ {
75
+ "path": "../../../media/media-ui/afm-jira/tsconfig.json"
76
+ },
77
+ {
78
+ "path": "../../../media/media-viewer/afm-jira/tsconfig.json"
79
+ },
80
+ {
81
+ "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
82
+ },
83
+ {
84
+ "path": "../../../linking-platform/smart-card/afm-jira/tsconfig.json"
85
+ },
86
+ {
87
+ "path": "../../../elements/status/afm-jira/tsconfig.json"
88
+ },
89
+ {
90
+ "path": "../../../elements/task-decision/afm-jira/tsconfig.json"
91
+ },
92
+ {
93
+ "path": "../../../design-system/theme/afm-jira/tsconfig.json"
94
+ },
95
+ {
96
+ "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
97
+ },
98
+ {
99
+ "path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
100
+ },
101
+ {
102
+ "path": "../../../linking-platform/link-provider/afm-jira/tsconfig.json"
103
+ },
104
+ {
105
+ "path": "../../../media/media-core/afm-jira/tsconfig.json"
106
+ }
107
+ ]
108
+ }
@@ -70,7 +70,7 @@ var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_React$Compon
70
70
  attributes: {
71
71
  platform: _events.PLATFORM.WEB,
72
72
  errorMessage: "".concat(additionalInfo).concat(error === null || error === void 0 ? void 0 : error.message),
73
- componentStack: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.componentStack,
73
+ componentStack: (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.componentStack) || undefined,
74
74
  errorRethrown: Boolean(this.props.rethrowError)
75
75
  }
76
76
  });
@@ -56,7 +56,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
56
56
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
57
57
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
58
58
  var packageName = "@atlaskit/renderer";
59
- var packageVersion = "109.35.0";
59
+ var packageVersion = "109.36.1";
60
60
  var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
61
61
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
62
62
  (0, _inherits2.default)(Renderer, _PureComponent);
@@ -112,6 +112,9 @@ function getAnnotationStyles(_ref6) {
112
112
  if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes')) {
113
113
  return '';
114
114
  }
115
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
116
+ return '';
117
+ }
115
118
  return (0, _react.css)({
116
119
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
117
120
  "& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
@@ -20,7 +20,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
20
20
  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) { (0, _defineProperty2.default)(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; }
21
21
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState` is not object-safe
22
22
  var markStyles = function markStyles() {
23
- return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tcolor: inherit;\n\tbackground-color: unset;\n\t-webkit-tap-highlight-color: transparent;\n\n\t&[data-mark-annotation-state='", "'] {\n\t\t", ";\n\n\t\t&:focus,\n\t\t&[data-has-focus='true'] {\n\t\t\t", ";\n\t\t}\n\t}\n"])), _adfSchema.AnnotationMarkStates.ACTIVE, (0, _styles.AnnotationSharedCSSByState)().blur, (0, _styles.AnnotationSharedCSSByState)().focus);
23
+ return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tcolor: inherit;\n\tbackground-color: unset;\n\t-webkit-tap-highlight-color: transparent;\n\n\t&[data-mark-annotation-state='", "'] {\n\t\t", ";\n\t\t", ";\n\n\t\t&:focus,\n\t\t&[data-has-focus='true'] {\n\t\t\t", ";\n\t\t}\n\t}\n"])), _adfSchema.AnnotationMarkStates.ACTIVE, (0, _styles.AnnotationSharedCSSByState)().common, (0, _styles.AnnotationSharedCSSByState)().blur, (0, _styles.AnnotationSharedCSSByState)().focus);
24
24
  };
25
25
  var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
26
26
  var annotationParentIds = _ref.annotationParentIds,
@@ -40,7 +40,7 @@ export class ErrorBoundary extends React.Component {
40
40
  attributes: {
41
41
  platform: PLATFORM.WEB,
42
42
  errorMessage: `${additionalInfo}${error === null || error === void 0 ? void 0 : error.message}`,
43
- componentStack: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.componentStack,
43
+ componentStack: (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.componentStack) || undefined,
44
44
  errorRethrown: Boolean(this.props.rethrowError)
45
45
  }
46
46
  });
@@ -38,7 +38,7 @@ import { nodeToReact } from '../../react/nodes';
38
38
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
39
39
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
40
40
  const packageName = "@atlaskit/renderer";
41
- const packageVersion = "109.35.0";
41
+ const packageVersion = "109.36.1";
42
42
  export const defaultNodeComponents = nodeToReact;
43
43
  export class Renderer extends PureComponent {
44
44
  constructor(props) {
@@ -371,6 +371,9 @@ function getAnnotationStyles({
371
371
  if (!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
372
372
  return '';
373
373
  }
374
+ if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
375
+ return '';
376
+ }
374
377
  return css({
375
378
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
376
379
  "& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
@@ -14,6 +14,7 @@ const markStyles = () => css`
14
14
  -webkit-tap-highlight-color: transparent;
15
15
 
16
16
  &[data-mark-annotation-state='${AnnotationMarkStates.ACTIVE}'] {
17
+ ${AnnotationSharedCSSByState().common};
17
18
  ${AnnotationSharedCSSByState().blur};
18
19
 
19
20
  &:focus,
@@ -63,7 +63,7 @@ export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
63
63
  attributes: {
64
64
  platform: PLATFORM.WEB,
65
65
  errorMessage: "".concat(additionalInfo).concat(error === null || error === void 0 ? void 0 : error.message),
66
- componentStack: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.componentStack,
66
+ componentStack: (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.componentStack) || undefined,
67
67
  errorRethrown: Boolean(this.props.rethrowError)
68
68
  }
69
69
  });
@@ -48,7 +48,7 @@ import { nodeToReact } from '../../react/nodes';
48
48
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
49
49
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
50
50
  var packageName = "@atlaskit/renderer";
51
- var packageVersion = "109.35.0";
51
+ var packageVersion = "109.36.1";
52
52
  export var defaultNodeComponents = nodeToReact;
53
53
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
54
54
  _inherits(Renderer, _PureComponent);
@@ -104,6 +104,9 @@ function getAnnotationStyles(_ref6) {
104
104
  if (!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
105
105
  return '';
106
106
  }
107
+ if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
108
+ return '';
109
+ }
107
110
  return css({
108
111
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
109
112
  "& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
@@ -15,7 +15,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
15
15
 
16
16
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState` is not object-safe
17
17
  var markStyles = function markStyles() {
18
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tcolor: inherit;\n\tbackground-color: unset;\n\t-webkit-tap-highlight-color: transparent;\n\n\t&[data-mark-annotation-state='", "'] {\n\t\t", ";\n\n\t\t&:focus,\n\t\t&[data-has-focus='true'] {\n\t\t\t", ";\n\t\t}\n\t}\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState().blur, AnnotationSharedCSSByState().focus);
18
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tcolor: inherit;\n\tbackground-color: unset;\n\t-webkit-tap-highlight-color: transparent;\n\n\t&[data-mark-annotation-state='", "'] {\n\t\t", ";\n\t\t", ";\n\n\t\t&:focus,\n\t\t&[data-has-focus='true'] {\n\t\t\t", ";\n\t\t}\n\t}\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState().common, AnnotationSharedCSSByState().blur, AnnotationSharedCSSByState().focus);
19
19
  };
20
20
  export var MarkComponent = function MarkComponent(_ref) {
21
21
  var annotationParentIds = _ref.annotationParentIds,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.35.0",
3
+ "version": "109.36.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.3.0",
32
32
  "@atlaskit/button": "^18.0.0",
33
33
  "@atlaskit/code": "^15.3.0",
34
- "@atlaskit/editor-common": "^82.13.0",
34
+ "@atlaskit/editor-common": "^83.0.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.14.0",
36
36
  "@atlaskit/editor-palette": "1.6.0",
37
37
  "@atlaskit/editor-prosemirror": "4.0.1",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/media-ui": "^25.10.0",
48
48
  "@atlaskit/media-viewer": "^48.6.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.0",
50
- "@atlaskit/smart-card": "^27.6.0",
50
+ "@atlaskit/smart-card": "^27.7.0",
51
51
  "@atlaskit/status": "^1.4.0",
52
52
  "@atlaskit/task-decision": "^17.10.0",
53
53
  "@atlaskit/theme": "^12.11.0",