@atlaskit/renderer 121.0.2 → 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 +13 -0
- package/dist/cjs/actions/index.js +1 -2
- package/dist/cjs/react/marks/link.js +2 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/actions/index.js +2 -3
- package/dist/es2019/react/marks/link.js +2 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/actions/index.js +2 -3
- package/dist/esm/react/marks/link.js +2 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
3
16
|
## 121.0.2
|
|
4
17
|
|
|
5
18
|
### 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 (
|
|
73
|
+
if ((0, _utils.isEmptyTextSelectionRenderer)(currentSelection, this.schema)) {
|
|
75
74
|
return false;
|
|
76
75
|
}
|
|
77
76
|
var result = (0, _utils.canApplyAnnotationOnRange)({
|
|
@@ -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 = "
|
|
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,
|
|
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 (
|
|
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
|
}
|
|
@@ -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 = "
|
|
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,
|
|
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 (
|
|
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
|
}
|
|
@@ -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 = "
|
|
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
|
|
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.
|
|
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.
|
|
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",
|
|
@@ -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
|
},
|