@atlaskit/renderer 121.0.1 → 121.1.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,26 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 121.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`7992070df7ee6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7992070df7ee6) -
8
+ Add functionality to enable resolving sharepoint hyperlinks on the renderer
9
+
10
+ ### Patch Changes
11
+
12
+ - [`d166c84c76a50`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d166c84c76a50) -
13
+ Feature gate cleanup: cc_comments_more_complete_empty_text_check
14
+ - Updated dependencies
15
+
16
+ ## 121.0.2
17
+
18
+ ### Patch Changes
19
+
20
+ - [`255837cfba315`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/255837cfba315) -
21
+ Internal changes to how border radius is applied.
22
+ - Updated dependencies
23
+
3
24
  ## 121.0.1
4
25
 
5
26
  ### Patch Changes
@@ -69,9 +69,8 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
69
69
  if (!this.doc || !this.schema) {
70
70
  return false;
71
71
  }
72
- var isEmptyTextSelectionCheck = (0, _platformFeatureFlags.fg)('cc_comments_more_complete_empty_text_check') ? _utils.isEmptyTextSelectionRenderer : _utils.isEmptyTextSelection;
73
72
  var currentSelection = _state.TextSelection.create(this.doc, from, to);
74
- if (isEmptyTextSelectionCheck(currentSelection, this.schema)) {
73
+ if ((0, _utils.isEmptyTextSelectionRenderer)(currentSelection, this.schema)) {
75
74
  return false;
76
75
  }
77
76
  var result = (0, _utils.canApplyAnnotationOnRange)({
@@ -82,6 +82,7 @@ function Link(props) {
82
82
  // Ignored via go/ees005
83
83
  // eslint-disable-next-line react/jsx-props-no-spreading
84
84
  }, anchorProps, dataAttributes, {
85
- isLinkComponent: true
85
+ isLinkComponent: true,
86
+ enableResolve: true
86
87
  }), props.children));
87
88
  }
@@ -41,7 +41,7 @@ var codeBlockSharedStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _
41
41
  }), ".".concat(_styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
42
42
  position: 'relative',
43
43
  backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
44
- borderRadius: "var(--ds-border-radius, 3px)",
44
+ borderRadius: "var(--ds-radius-small, 3px)",
45
45
  margin: "".concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0 0"),
46
46
  fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
47
47
  minWidth: "".concat(_editorSharedStyles.akEditorTableCellMinWidth, "px"),
@@ -69,7 +69,7 @@ var codeBlockSharedStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _
69
69
  position: 'relative',
70
70
  backgroundColor: "var(--ds-background-neutral, #091E420F)",
71
71
  display: 'flex',
72
- borderRadius: "var(--ds-border-radius, 3px)",
72
+ borderRadius: "var(--ds-radius-small, 3px)",
73
73
  width: '100%',
74
74
  counterReset: 'line',
75
75
  overflowX: 'auto',
@@ -101,7 +101,7 @@ var codeBlockSharedStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _
101
101
  tabSize: 4,
102
102
  cursor: 'text',
103
103
  color: "var(--ds-text, #172B4D)",
104
- borderRadius: "var(--ds-border-radius, 3px)",
104
+ borderRadius: "var(--ds-radius-small, 3px)",
105
105
  margin: "var(--ds-space-100, 8px)",
106
106
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
107
107
  fontSize: "".concat(14 / 16, "rem"),
@@ -33,7 +33,7 @@ var akEditorTableCellMinWidth = 48;
33
33
  var panelBaseStyles = (0, _react2.css)({
34
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
35
35
  '&.ak-editor-panel': {
36
- borderRadius: "var(--ds-border-radius, 3px)",
36
+ borderRadius: "var(--ds-radius-small, 3px)",
37
37
  margin: "".concat(blockNodesVerticalMargin, " 0 0"),
38
38
  paddingTop: "var(--ds-space-100, 8px)",
39
39
  paddingRight: "var(--ds-space-200, 16px)",
@@ -677,7 +677,7 @@ var codeMarkSharedStyles = (0, _react.css)({
677
677
  backgroundColor: "var(--ds--code--bg-color,".concat("var(--ds-background-neutral, ".concat(_colors.N20, ")"), ")"),
678
678
  color: "var(--ds-text, ".concat(_colors.N800, ")"),
679
679
  borderStyle: 'none',
680
- borderRadius: "var(--ds-border-radius, 3px)",
680
+ borderRadius: "var(--ds-radius-small, 3px)",
681
681
  display: 'inline',
682
682
  padding: '2px 0.5ch',
683
683
  boxDecorationBreak: 'clone',
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
63
63
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
64
64
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var packageName = "@atlaskit/renderer";
66
- var packageVersion = "121.0.0";
66
+ var packageVersion = "121.0.2";
67
67
  var setAsQueryContainerStyles = (0, _react2.css)({
68
68
  containerName: 'ak-renderer-wrapper',
69
69
  containerType: 'inline-size'
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { AnnotationTypes } from '@atlaskit/adf-schema';
3
- import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelection, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
3
+ import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
4
4
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
5
5
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
6
6
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
@@ -49,9 +49,8 @@ export default class RendererActions {
49
49
  if (!this.doc || !this.schema) {
50
50
  return false;
51
51
  }
52
- const isEmptyTextSelectionCheck = fg('cc_comments_more_complete_empty_text_check') ? isEmptyTextSelectionRenderer : isEmptyTextSelection;
53
52
  const currentSelection = TextSelection.create(this.doc, from, to);
54
- if (isEmptyTextSelectionCheck(currentSelection, this.schema)) {
53
+ if (isEmptyTextSelectionRenderer(currentSelection, this.schema)) {
55
54
  return false;
56
55
  }
57
56
  const result = canApplyAnnotationOnRange({
@@ -73,6 +73,7 @@ export default function Link(props) {
73
73
  // Ignored via go/ees005
74
74
  // eslint-disable-next-line react/jsx-props-no-spreading
75
75
  }, anchorProps, dataAttributes, {
76
- isLinkComponent: true
76
+ isLinkComponent: true,
77
+ enableResolve: true
77
78
  }), props.children));
78
79
  }
@@ -35,7 +35,7 @@ const codeBlockSharedStyles = css({
35
35
  [`.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}`]: {
36
36
  position: 'relative',
37
37
  backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
38
- borderRadius: "var(--ds-border-radius, 3px)",
38
+ borderRadius: "var(--ds-radius-small, 3px)",
39
39
  margin: `${blockNodesVerticalMargin} 0 0 0`,
40
40
  fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
41
41
  minWidth: `${akEditorTableCellMinWidth}px`,
@@ -65,7 +65,7 @@ const codeBlockSharedStyles = css({
65
65
  position: 'relative',
66
66
  backgroundColor: "var(--ds-background-neutral, #091E420F)",
67
67
  display: 'flex',
68
- borderRadius: "var(--ds-border-radius, 3px)",
68
+ borderRadius: "var(--ds-radius-small, 3px)",
69
69
  width: '100%',
70
70
  counterReset: 'line',
71
71
  overflowX: 'auto',
@@ -119,7 +119,7 @@ const codeBlockSharedStyles = css({
119
119
  tabSize: 4,
120
120
  cursor: 'text',
121
121
  color: "var(--ds-text, #172B4D)",
122
- borderRadius: "var(--ds-border-radius, 3px)",
122
+ borderRadius: "var(--ds-radius-small, 3px)",
123
123
  margin: "var(--ds-space-100, 8px)",
124
124
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
125
125
  fontSize: `${14 / 16}rem`,
@@ -24,7 +24,7 @@ const akEditorTableCellMinWidth = 48;
24
24
  const panelBaseStyles = css({
25
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
26
26
  '&.ak-editor-panel': {
27
- borderRadius: "var(--ds-border-radius, 3px)",
27
+ borderRadius: "var(--ds-radius-small, 3px)",
28
28
  margin: `${blockNodesVerticalMargin} 0 0`,
29
29
  paddingTop: "var(--ds-space-100, 8px)",
30
30
  paddingRight: "var(--ds-space-200, 16px)",
@@ -784,7 +784,7 @@ const codeMarkSharedStyles = css({
784
784
  backgroundColor: `var(--ds--code--bg-color,${`var(--ds-background-neutral, ${N20})`})`,
785
785
  color: `var(--ds-text, ${N800})`,
786
786
  borderStyle: 'none',
787
- borderRadius: "var(--ds-border-radius, 3px)",
787
+ borderRadius: "var(--ds-radius-small, 3px)",
788
788
  display: 'inline',
789
789
  padding: '2px 0.5ch',
790
790
  boxDecorationBreak: 'clone',
@@ -49,7 +49,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
49
49
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
50
50
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
51
51
  const packageName = "@atlaskit/renderer";
52
- const packageVersion = "121.0.0";
52
+ const packageVersion = "121.0.2";
53
53
  const setAsQueryContainerStyles = css({
54
54
  containerName: 'ak-renderer-wrapper',
55
55
  containerType: 'inline-size'
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
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; }
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
  import { AnnotationTypes } from '@atlaskit/adf-schema';
8
- import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelection, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
8
+ import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
9
9
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
10
10
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
11
11
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
@@ -62,9 +62,8 @@ var RendererActions = /*#__PURE__*/function () {
62
62
  if (!this.doc || !this.schema) {
63
63
  return false;
64
64
  }
65
- var isEmptyTextSelectionCheck = fg('cc_comments_more_complete_empty_text_check') ? isEmptyTextSelectionRenderer : isEmptyTextSelection;
66
65
  var currentSelection = TextSelection.create(this.doc, from, to);
67
- if (isEmptyTextSelectionCheck(currentSelection, this.schema)) {
66
+ if (isEmptyTextSelectionRenderer(currentSelection, this.schema)) {
68
67
  return false;
69
68
  }
70
69
  var result = canApplyAnnotationOnRange({
@@ -71,6 +71,7 @@ export default function Link(props) {
71
71
  // Ignored via go/ees005
72
72
  // eslint-disable-next-line react/jsx-props-no-spreading
73
73
  }, anchorProps, dataAttributes, {
74
- isLinkComponent: true
74
+ isLinkComponent: true,
75
+ enableResolve: true
75
76
  }), props.children));
76
77
  }
@@ -32,7 +32,7 @@ var codeBlockSharedStyles = css(_defineProperty(_defineProperty(_defineProperty(
32
32
  }), ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
33
33
  position: 'relative',
34
34
  backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
35
- borderRadius: "var(--ds-border-radius, 3px)",
35
+ borderRadius: "var(--ds-radius-small, 3px)",
36
36
  margin: "".concat(blockNodesVerticalMargin, " 0 0 0"),
37
37
  fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
38
38
  minWidth: "".concat(akEditorTableCellMinWidth, "px"),
@@ -60,7 +60,7 @@ var codeBlockSharedStyles = css(_defineProperty(_defineProperty(_defineProperty(
60
60
  position: 'relative',
61
61
  backgroundColor: "var(--ds-background-neutral, #091E420F)",
62
62
  display: 'flex',
63
- borderRadius: "var(--ds-border-radius, 3px)",
63
+ borderRadius: "var(--ds-radius-small, 3px)",
64
64
  width: '100%',
65
65
  counterReset: 'line',
66
66
  overflowX: 'auto',
@@ -92,7 +92,7 @@ var codeBlockSharedStyles = css(_defineProperty(_defineProperty(_defineProperty(
92
92
  tabSize: 4,
93
93
  cursor: 'text',
94
94
  color: "var(--ds-text, #172B4D)",
95
- borderRadius: "var(--ds-border-radius, 3px)",
95
+ borderRadius: "var(--ds-radius-small, 3px)",
96
96
  margin: "var(--ds-space-100, 8px)",
97
97
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
98
98
  fontSize: "".concat(14 / 16, "rem"),
@@ -26,7 +26,7 @@ var akEditorTableCellMinWidth = 48;
26
26
  var panelBaseStyles = css({
27
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
28
28
  '&.ak-editor-panel': {
29
- borderRadius: "var(--ds-border-radius, 3px)",
29
+ borderRadius: "var(--ds-radius-small, 3px)",
30
30
  margin: "".concat(blockNodesVerticalMargin, " 0 0"),
31
31
  paddingTop: "var(--ds-space-100, 8px)",
32
32
  paddingRight: "var(--ds-space-200, 16px)",
@@ -670,7 +670,7 @@ var codeMarkSharedStyles = css({
670
670
  backgroundColor: "var(--ds--code--bg-color,".concat("var(--ds-background-neutral, ".concat(N20, ")"), ")"),
671
671
  color: "var(--ds-text, ".concat(N800, ")"),
672
672
  borderStyle: 'none',
673
- borderRadius: "var(--ds-border-radius, 3px)",
673
+ borderRadius: "var(--ds-radius-small, 3px)",
674
674
  display: 'inline',
675
675
  padding: '2px 0.5ch',
676
676
  boxDecorationBreak: 'clone',
@@ -54,7 +54,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
54
54
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
55
55
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  var packageName = "@atlaskit/renderer";
57
- var packageVersion = "121.0.0";
57
+ var packageVersion = "121.0.2";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "121.0.1",
3
+ "version": "121.1.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,11 +50,11 @@
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
52
52
  "@atlaskit/react-ufo": "^4.5.0",
53
- "@atlaskit/smart-card": "^40.17.0",
53
+ "@atlaskit/smart-card": "^40.18.0",
54
54
  "@atlaskit/status": "^3.0.0",
55
55
  "@atlaskit/task-decision": "^19.2.0",
56
56
  "@atlaskit/theme": "^20.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^12.1.0",
57
+ "@atlaskit/tmp-editor-statsig": "^12.3.0",
58
58
  "@atlaskit/tokens": "^6.1.0",
59
59
  "@atlaskit/tooltip": "^20.4.0",
60
60
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -68,7 +68,7 @@
68
68
  "uuid": "^3.1.0"
69
69
  },
70
70
  "peerDependencies": {
71
- "@atlaskit/editor-common": "^108.0.0",
71
+ "@atlaskit/editor-common": "^108.1.0",
72
72
  "@atlaskit/link-provider": "^3.7.0",
73
73
  "@atlaskit/media-core": "^37.0.0",
74
74
  "react": "^18.2.0",
@@ -89,7 +89,7 @@
89
89
  "@atlaskit/mention": "^24.2.0",
90
90
  "@atlaskit/modal-dialog": "^14.3.0",
91
91
  "@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-d1445f2f74.patch",
92
- "@atlaskit/profilecard": "^24.9.0",
92
+ "@atlaskit/profilecard": "^24.10.0",
93
93
  "@atlaskit/util-data-test": "^18.1.0",
94
94
  "@atlassian/feature-flags-test-utils": "^0.3.0",
95
95
  "@testing-library/react": "^13.4.0",
@@ -128,9 +128,6 @@
128
128
  "cc_comments_improve_apply_draft_errors": {
129
129
  "type": "boolean"
130
130
  },
131
- "cc_comments_more_complete_empty_text_check": {
132
- "type": "boolean"
133
- },
134
131
  "platform-ssr-table-resize": {
135
132
  "type": "boolean"
136
133
  },