@atlaskit/renderer 109.32.2 → 109.32.4
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 +19 -0
- package/dist/cjs/actions/get-renderer-range-inline-node-names.js +24 -0
- package/dist/cjs/actions/index.js +22 -1
- package/dist/cjs/react/marks/breakout.js +5 -1
- package/dist/cjs/react/nodes/blockCard.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +3 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -2
- package/dist/cjs/react/nodes/embedCard.js +2 -0
- package/dist/cjs/react/nodes/extension.js +1 -0
- package/dist/cjs/react/nodes/layoutColumn.js +6 -1
- package/dist/cjs/react/nodes/media/index.js +6 -1
- package/dist/cjs/react/nodes/mediaSingle/styles.js +3 -0
- package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/cjs/react/nodes/panel.js +6 -3
- package/dist/cjs/react/nodes/table/colgroup.js +1 -1
- package/dist/cjs/react/nodes/table/sticky.js +55 -44
- package/dist/cjs/ui/Expand.js +2 -0
- package/dist/cjs/ui/ExtensionRenderer.js +1 -0
- package/dist/cjs/ui/Renderer/index.js +2 -2
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +2 -0
- package/dist/cjs/ui/annotations/draft/component.js +4 -1
- package/dist/cjs/ui/annotations/selection/mounter.js +25 -5
- package/dist/es2019/actions/get-renderer-range-inline-node-names.js +19 -0
- package/dist/es2019/actions/index.js +22 -1
- package/dist/es2019/react/marks/breakout.js +5 -1
- package/dist/es2019/react/nodes/blockCard.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +3 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -2
- package/dist/es2019/react/nodes/embedCard.js +2 -0
- package/dist/es2019/react/nodes/extension.js +1 -0
- package/dist/es2019/react/nodes/layoutColumn.js +7 -1
- package/dist/es2019/react/nodes/media/index.js +6 -1
- package/dist/es2019/react/nodes/mediaSingle/styles.js +4 -0
- package/dist/es2019/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/es2019/react/nodes/panel.js +6 -3
- package/dist/es2019/react/nodes/table/colgroup.js +1 -1
- package/dist/es2019/react/nodes/table/sticky.js +59 -44
- package/dist/es2019/ui/Expand.js +2 -0
- package/dist/es2019/ui/ExtensionRenderer.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +2 -2
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +2 -0
- package/dist/es2019/ui/annotations/draft/component.js +5 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +25 -5
- package/dist/esm/actions/get-renderer-range-inline-node-names.js +18 -0
- package/dist/esm/actions/index.js +22 -1
- package/dist/esm/react/marks/breakout.js +5 -1
- package/dist/esm/react/nodes/blockCard.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +3 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -2
- package/dist/esm/react/nodes/embedCard.js +2 -0
- package/dist/esm/react/nodes/extension.js +1 -0
- package/dist/esm/react/nodes/layoutColumn.js +7 -1
- package/dist/esm/react/nodes/media/index.js +6 -1
- package/dist/esm/react/nodes/mediaSingle/styles.js +4 -0
- package/dist/esm/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/esm/react/nodes/panel.js +6 -3
- package/dist/esm/react/nodes/table/colgroup.js +1 -1
- package/dist/esm/react/nodes/table/sticky.js +55 -44
- package/dist/esm/ui/Expand.js +2 -0
- package/dist/esm/ui/ExtensionRenderer.js +1 -0
- package/dist/esm/ui/Renderer/index.js +2 -2
- package/dist/esm/ui/Renderer/truncated-wrapper.js +2 -0
- package/dist/esm/ui/annotations/draft/component.js +5 -1
- package/dist/esm/ui/annotations/selection/mounter.js +25 -5
- package/dist/types/actions/get-renderer-range-inline-node-names.d.ts +12 -0
- package/dist/types/actions/index.d.ts +3 -0
- package/dist/types/analytics/events.d.ts +3 -1
- package/dist/types/react/nodes/extension.d.ts +1 -0
- package/dist/types-ts4.5/actions/get-renderer-range-inline-node-names.d.ts +12 -0
- package/dist/types-ts4.5/actions/index.d.ts +3 -0
- package/dist/types-ts4.5/analytics/events.d.ts +3 -1
- package/dist/types-ts4.5/react/nodes/extension.d.ts +1 -0
- package/package.json +156 -160
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.32.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110966](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110966)
|
|
8
|
+
[`31348c335b4b3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/31348c335b4b3) -
|
|
9
|
+
ED-23690 - add inlineNodeTypes property to AnnotationComponentProps
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 109.32.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#109969](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109969)
|
|
17
|
+
[`52590a0b562ef`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/52590a0b562ef) -
|
|
18
|
+
ED-23690 Adds an attribute to annotation analytic events with the name of nodes inside the
|
|
19
|
+
annotation range
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 109.32.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getRendererRangeInlineNodeNames = getRendererRangeInlineNodeNames;
|
|
7
|
+
var _utils = require("@atlaskit/editor-common/utils");
|
|
8
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
|
+
function getRendererRangeInlineNodeNames(_ref) {
|
|
10
|
+
var actions = _ref.actions,
|
|
11
|
+
pos = _ref.pos;
|
|
12
|
+
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
var doc = actions.doc;
|
|
16
|
+
if (!pos || !doc) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
var inlineNodeNames = (0, _utils.getRangeInlineNodeNames)({
|
|
20
|
+
doc: doc,
|
|
21
|
+
pos: pos
|
|
22
|
+
});
|
|
23
|
+
return inlineNodeNames;
|
|
24
|
+
}
|
|
@@ -16,6 +16,7 @@ var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
|
16
16
|
var _steps = require("../steps");
|
|
17
17
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
18
18
|
var _matchesUtils = require("./matches-utils");
|
|
19
|
+
var _getRendererRangeInlineNodeNames = require("./get-renderer-range-inline-node-names");
|
|
19
20
|
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; }
|
|
20
21
|
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
22
|
var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
@@ -116,7 +117,16 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
116
117
|
action: _analytics.ACTION.DELETED,
|
|
117
118
|
actionSubject: _analytics.ACTION_SUBJECT.ANNOTATION,
|
|
118
119
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
119
|
-
eventType: _analytics.EVENT_TYPE.TRACK
|
|
120
|
+
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
121
|
+
attributes: {
|
|
122
|
+
inlineNodeNames: step instanceof _transform.RemoveMarkStep ? (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
123
|
+
pos: {
|
|
124
|
+
from: from,
|
|
125
|
+
to: to
|
|
126
|
+
},
|
|
127
|
+
actions: this
|
|
128
|
+
}) : undefined
|
|
129
|
+
}
|
|
120
130
|
};
|
|
121
131
|
this.onAnalyticsEvent(payload);
|
|
122
132
|
}
|
|
@@ -169,6 +179,10 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
169
179
|
}
|
|
170
180
|
return this._privateValidatePositionsForAnnotation(pos.from, pos.to);
|
|
171
181
|
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Note: False indicates that the selection not able to be calculated.
|
|
185
|
+
*/
|
|
172
186
|
}, {
|
|
173
187
|
key: "getPositionFromRange",
|
|
174
188
|
value: function getPositionFromRange(range, isCommentsOnMediaBugFixEnabled, isCommentsOnMediaBugVideoComment) {
|
|
@@ -266,6 +280,13 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
266
280
|
return _objectSpread({
|
|
267
281
|
step: step,
|
|
268
282
|
doc: this.transformer.encode(doc),
|
|
283
|
+
inlineNodeTypes: (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
284
|
+
actions: this,
|
|
285
|
+
pos: {
|
|
286
|
+
from: from,
|
|
287
|
+
to: to
|
|
288
|
+
}
|
|
289
|
+
}),
|
|
269
290
|
originalSelection: originalSelection,
|
|
270
291
|
numMatches: numMatches,
|
|
271
292
|
matchIndex: matchIndex,
|
|
@@ -11,7 +11,9 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
14
15
|
var wrapperStyles = exports.wrapperStyles = (0, _react.css)({
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
17
|
margin: "".concat(_editorSharedStyles.blockNodesVerticalMargin, " 0"),
|
|
16
18
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
17
19
|
marginLeft: '50%',
|
|
@@ -22,7 +24,9 @@ function Breakout(props) {
|
|
|
22
24
|
var width = _ref.width;
|
|
23
25
|
return (0, _react.jsx)("div", {
|
|
24
26
|
css: wrapperStyles,
|
|
25
|
-
"data-mode": props.mode
|
|
27
|
+
"data-mode": props.mode
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
29
|
+
,
|
|
26
30
|
style: {
|
|
27
31
|
width: (0, _utils.calcBreakoutWidth)(props.mode, width)
|
|
28
32
|
}
|
|
@@ -107,6 +107,7 @@ function BlockCard(props) {
|
|
|
107
107
|
css: datasourceContainerStyle,
|
|
108
108
|
"data-testid": "renderer-datasource-table",
|
|
109
109
|
style: {
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
110
111
|
width: isNodeNested ? '100%' : (0, _utils2.calcBreakoutWidth)(layout, width)
|
|
111
112
|
}
|
|
112
113
|
}, (0, _react2.jsx)(_linkDatasource.DatasourceTableView, {
|
|
@@ -25,6 +25,7 @@ var codeBlockButtonsStyle = (0, _react.css)({
|
|
|
25
25
|
right: "var(--ds-space-075, 6px)",
|
|
26
26
|
top: "var(--ds-space-050, 4px)",
|
|
27
27
|
padding: "var(--ds-space-025, 2px)",
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
29
|
button: {
|
|
29
30
|
height: '32px',
|
|
30
31
|
width: '32px',
|
|
@@ -40,9 +41,11 @@ var codeBlockButtonsStyle = (0, _react.css)({
|
|
|
40
41
|
height: '32px',
|
|
41
42
|
width: '32px'
|
|
42
43
|
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
45
|
'&.clicked': {
|
|
44
46
|
backgroundColor: "".concat("var(--ds-background-neutral-bold-pressed, ".concat(_colors.N700, ")")),
|
|
45
47
|
borderRadius: '4px',
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
46
49
|
color: "".concat("var(--ds-icon-inverse, ".concat(_colors.N0, ")"), " !important")
|
|
47
50
|
}
|
|
48
51
|
}
|
|
@@ -14,7 +14,7 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
14
14
|
var _codeBlockButtonContainer = _interopRequireDefault(require("./codeBlockButtonContainer"));
|
|
15
15
|
var _templateObject;
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
18
18
|
var codeBlockStyleOverrides = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\ttab-size: 4;\n\tbackground-color: ", ";\n\n\t&:hover {\n\t\tbutton {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\tbutton {\n\t\topacity: 0;\n\t\ttransition: opacity 0.2s ease 0s;\n\t}\n\n\t", " {\n\t\tfont-size: ", ";\n\t\tline-height: 1.5rem;\n\t\tbackground-image: ", ";\n\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\tbackground-position:\n\t\t\t0 0,\n\t\t\t0 0,\n\t\t\t100% 0,\n\t\t\t100% 0,\n\t\t\t100% 0,\n\t\t\t100% 0,\n\t\t\t0 0,\n\t\t\t0 0;\n\t}\n"])), "var(--ds-surface-raised, ".concat(_colors.N20, ")"), _styles.CodeBlockSharedCssClassName.DS_CODEBLOCK, (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), (0, _editorSharedStyles.overflowShadow)({
|
|
19
19
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
20
20
|
}));
|
|
@@ -17,7 +17,7 @@ var _templateObject, _templateObject2;
|
|
|
17
17
|
/** @jsx jsx */
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
21
21
|
var lightWeightCodeBlockStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tcursor: text;\n\t}\n"])), _styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER);
|
|
22
22
|
var LightWeightCodeBlockCssClassName = exports.LightWeightCodeBlockCssClassName = {
|
|
23
23
|
CONTAINER: 'light-weight-code-block'
|
|
@@ -48,7 +48,9 @@ var LightWeightCodeBlock = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, r
|
|
|
48
48
|
return (0, _react2.jsx)("div", {
|
|
49
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
50
50
|
className: classNames,
|
|
51
|
-
ref: ref
|
|
51
|
+
ref: ref
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
|
+
,
|
|
52
54
|
css: [(0, _styles.codeBlockSharedStyles)(), lightWeightCodeBlockStyles]
|
|
53
55
|
}, (0, _react2.jsx)("div", {
|
|
54
56
|
className: _styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER
|
|
@@ -23,9 +23,11 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
23
23
|
var embedCardWrapperStyles = (0, _react.css)({
|
|
24
24
|
width: '100%',
|
|
25
25
|
height: '100%',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
27
|
'> div': {
|
|
27
28
|
height: '100%'
|
|
28
29
|
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
31
|
'.loader-wrapper': {
|
|
30
32
|
height: '100%'
|
|
31
33
|
},
|
|
@@ -29,6 +29,7 @@ var renderExtension = exports.renderExtension = function renderExtension(content
|
|
|
29
29
|
,
|
|
30
30
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(options.shadowClassNames, " ").concat(centerAlignClass),
|
|
31
31
|
style: {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
32
33
|
width: isTopLevel ? (0, _utils.calcBreakoutWidth)(layout, width) : '100%'
|
|
33
34
|
},
|
|
34
35
|
"data-layout": layout
|
|
@@ -10,7 +10,12 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
14
|
+
var layoutColumnClearMarginTopStyles = (0, _react2.css)(
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
_ui.clearNextSiblingMarginTopStyle,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
+
_ui.clearNextSiblingBlockMarkMarginTopStyle);
|
|
14
19
|
function LayoutSection(props) {
|
|
15
20
|
return (0, _react2.jsx)("div", {
|
|
16
21
|
"data-layout-column": true,
|
|
@@ -44,7 +44,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
44
44
|
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; }
|
|
45
45
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
46
46
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
47
48
|
var linkStyle = exports.linkStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tposition: absolute;\n\tbackground: transparent;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tcursor: pointer;\n\twidth: 100% !important;\n\theight: 100% !important;\n"])));
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
48
51
|
var borderStyle = exports.borderStyle = function borderStyle(color, width) {
|
|
49
52
|
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tposition: absolute;\n\twidth: 100% !important;\n\theight: 100% !important;\n\tborder-radius: ", "px;\n\tbox-shadow: 0 0 0 ", "px ", ";\n"])), width, width, color);
|
|
50
53
|
};
|
|
@@ -61,7 +64,9 @@ var MediaBorder = function MediaBorder(_ref) {
|
|
|
61
64
|
return (0, _react2.jsx)("div", {
|
|
62
65
|
"data-mark-type": "border",
|
|
63
66
|
"data-color": borderColor,
|
|
64
|
-
"data-size": borderWidth
|
|
67
|
+
"data-size": borderWidth
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
69
|
+
,
|
|
65
70
|
css: borderStyle(paletteColorValue, borderWidth)
|
|
66
71
|
}, (0, _react2.jsx)(_ui.MediaBorderGapFiller, {
|
|
67
72
|
borderColor: borderColor
|
|
@@ -7,9 +7,12 @@ exports.uiMediaSingleLayoutStyles = exports.uiMediaSingleBaseStyles = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
10
11
|
var uiMediaSingleBaseStyles = exports.uiMediaSingleBaseStyles = (0, _react.css)({
|
|
11
12
|
transition: 'all 0.1s linear'
|
|
12
13
|
});
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
16
|
var uiMediaSingleLayoutStyles = exports.uiMediaSingleLayoutStyles = (0, _react.css)({
|
|
14
17
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
15
18
|
marginLeft: '50%',
|
|
@@ -51,7 +51,7 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
|
|
|
51
51
|
return actions;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
54
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
55
55
|
var navigationCssExtended = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", ";\n\tmargin-left: 0 !important;\n\tmargin-right: 0 !important;\n\t.mbe-add-tab-button,\n\t.mbe-remove-tab {\n\t\tdisplay: none;\n\t}\n"])), _ui.sharedMultiBodiedExtensionStyles.mbeNavigation);
|
|
56
56
|
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
57
57
|
var children = props.children,
|
|
@@ -89,6 +89,7 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
89
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
90
90
|
className: "".concat(_consts.RendererCssClassName.EXTENSION, " ").concat(centerAlignClass, " ").concat(overflowContainerClass),
|
|
91
91
|
style: {
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
93
|
width: isTopLevel ? (0, _utils.calcBreakoutWidth)(layout, width) : '100%'
|
|
93
94
|
},
|
|
94
95
|
"data-layout": layout
|
|
@@ -30,9 +30,12 @@ var PanelStyled = function PanelStyled(_ref) {
|
|
|
30
30
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- nested css mixins are violations
|
|
31
31
|
styles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t&.", " {\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t&[data-panel-type=", "] {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\t", "\n\t\t\t}\n\t\t"])), _panel.PanelSharedCssClassName.prefix, (0, _panel.panelSharedStylesWithoutPrefix)(), _adfSchema.PanelType.CUSTOM, (0, _editorPalette.hexToEditorBackgroundPaletteColor)(backgroundColor) || backgroundColor, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
|
|
32
32
|
}
|
|
33
|
-
return (
|
|
34
|
-
css
|
|
35
|
-
|
|
33
|
+
return (
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
35
|
+
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
36
|
+
css: styles
|
|
37
|
+
}, props), props.children)
|
|
38
|
+
);
|
|
36
39
|
};
|
|
37
40
|
PanelStyled.displayName = 'PanelStyled';
|
|
38
41
|
var panelIcons = {
|
|
@@ -171,7 +171,7 @@ var Colgroup = exports.Colgroup = function Colgroup(props) {
|
|
|
171
171
|
return null;
|
|
172
172
|
}
|
|
173
173
|
return /*#__PURE__*/_react.default.createElement("colgroup", null, isNumberColumnEnabled && /*#__PURE__*/_react.default.createElement("col", {
|
|
174
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
175
175
|
style: {
|
|
176
176
|
width: _editorSharedStyles.akEditorTableNumberColumnWidth
|
|
177
177
|
},
|
|
@@ -41,12 +41,17 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, r
|
|
|
41
41
|
} else {
|
|
42
42
|
stickyHeaderZIndex = _editorSharedStyles.akEditorStickyHeaderZIndex;
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
46
|
return (0, _react2.css)(typeof top === 'number' && "top: ".concat(top, "px;"), (_css = {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
48
|
width: "".concat(width, "px"),
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
50
|
zIndex: stickyHeaderZIndex
|
|
47
51
|
}, (0, _defineProperty2.default)(_css, "& .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ", & .").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
48
52
|
marginTop: 0,
|
|
49
53
|
marginBottom: 0,
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
50
55
|
tr: {
|
|
51
56
|
background: "var(--ds-surface, white)"
|
|
52
57
|
}
|
|
@@ -56,6 +61,7 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, r
|
|
|
56
61
|
top: '0px',
|
|
57
62
|
height: '100%'
|
|
58
63
|
}), (0, _defineProperty2.default)(_css, "&.fixed-table-div-custom-table-resizing[mode='stick']", {
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
65
|
zIndex: stickyHeaderZIndex
|
|
60
66
|
}), _css));
|
|
61
67
|
};
|
|
@@ -72,7 +78,9 @@ var FixedTableDiv = exports.FixedTableDiv = function FixedTableDiv(props) {
|
|
|
72
78
|
"data-testid": "sticky-table-fixed"
|
|
73
79
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
74
80
|
,
|
|
75
|
-
className: (0, _table2.isTableResizingEnabled)(rendererAppearance) ? 'fixed-table-div-custom-table-resizing' : ''
|
|
81
|
+
className: (0, _table2.isTableResizingEnabled)(rendererAppearance) ? 'fixed-table-div-custom-table-resizing' : ''
|
|
82
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
83
|
+
,
|
|
76
84
|
css: fixedTableCss
|
|
77
85
|
}), props.children);
|
|
78
86
|
};
|
|
@@ -96,60 +104,63 @@ var StickyTable = exports.StickyTable = function StickyTable(_ref) {
|
|
|
96
104
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
97
105
|
if ((0, _table2.isTableResizingEnabled)(rendererAppearance)) {
|
|
98
106
|
styles = (0, _react2.css)({
|
|
99
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
107
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
100
108
|
top: mode === 'pin-bottom' ? top : undefined,
|
|
101
109
|
position: 'absolute'
|
|
102
110
|
});
|
|
103
111
|
} else {
|
|
104
112
|
styles = (0, _react2.css)({
|
|
105
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
113
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
106
114
|
left: left && left < 0 ? left : undefined,
|
|
107
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
115
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
116
|
top: mode === 'pin-bottom' ? top : undefined,
|
|
109
117
|
position: 'relative'
|
|
110
118
|
});
|
|
111
119
|
}
|
|
112
120
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
113
|
-
return (
|
|
114
|
-
css
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
121
|
+
return (
|
|
122
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
123
|
+
(0, _react2.jsx)("div", {
|
|
124
|
+
css: styles
|
|
125
|
+
}, (0, _react2.jsx)(FixedTableDiv, {
|
|
126
|
+
top: mode === 'stick' ? top : undefined,
|
|
127
|
+
mode: rowHeight > 300 ? 'none' : mode,
|
|
128
|
+
wrapperWidth: wrapperWidth,
|
|
129
|
+
rendererAppearance: rendererAppearance
|
|
130
|
+
}, (0, _react2.jsx)("div", {
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
132
|
+
className: "".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, " is-sticky ").concat(shadowClassNames || ''),
|
|
133
|
+
"data-layout": layout,
|
|
134
|
+
style: {
|
|
135
|
+
width: tableWidth
|
|
136
|
+
}
|
|
137
|
+
}, (0, _react2.jsx)("div", {
|
|
138
|
+
ref: innerRef
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
140
|
+
,
|
|
141
|
+
className: "".concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER),
|
|
142
|
+
style: {
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
144
|
+
overflow: 'hidden'
|
|
145
|
+
}
|
|
146
|
+
}, (0, _react2.jsx)(_table.Table, {
|
|
147
|
+
columnWidths: columnWidths,
|
|
148
|
+
layout: layout,
|
|
149
|
+
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
150
|
+
renderWidth: renderWidth,
|
|
151
|
+
tableNode: tableNode,
|
|
152
|
+
rendererAppearance: rendererAppearance
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* @see https://product-fabric.atlassian.net/browse/ED-10235
|
|
156
|
+
* We pass prop 'invisible' to our table's children nodes meaning
|
|
157
|
+
* they exist inside of the 'invisible' duplicated table component that
|
|
158
|
+
* enables sticky headers.
|
|
159
|
+
*/
|
|
160
|
+
(0, _injectProps.recursivelyInjectProps)(children, {
|
|
161
|
+
invisible: true
|
|
162
|
+
}))))))
|
|
163
|
+
);
|
|
153
164
|
};
|
|
154
165
|
|
|
155
166
|
/**
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -32,7 +32,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
32
32
|
var titleStyles = (0, _react.css)({
|
|
33
33
|
outline: 'none',
|
|
34
34
|
border: 'none',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
36
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
38
|
lineHeight: _editorSharedStyles.akEditorLineHeight,
|
|
37
39
|
fontWeight: 'normal',
|
|
38
40
|
display: 'flex',
|
|
@@ -30,6 +30,7 @@ var inlineExtensionStyle = (0, _react.css)({
|
|
|
30
30
|
verticalAlign: 'middle',
|
|
31
31
|
// es-lint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
32
32
|
margin: "1px 1px ".concat("var(--ds-space-050, 4px)"),
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
34
|
'& .rich-media-item': {
|
|
34
35
|
maxWidth: '100%'
|
|
35
36
|
}
|
|
@@ -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.32.
|
|
59
|
+
var packageVersion = "109.32.4";
|
|
60
60
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
61
61
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
62
62
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -549,7 +549,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
549
549
|
ref: innerRef,
|
|
550
550
|
onClick: onClick,
|
|
551
551
|
onMouseDown: onMouseDown
|
|
552
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
552
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
553
553
|
,
|
|
554
554
|
css: (0, _style.rendererStyles)({
|
|
555
555
|
appearance: appearance,
|
|
@@ -18,10 +18,12 @@ var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
|
18
18
|
return (0, _react.css)({
|
|
19
19
|
position: 'relative',
|
|
20
20
|
overflowY: 'hidden',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
22
|
maxHeight: "".concat(maxHeight, "px"),
|
|
22
23
|
'&::after': {
|
|
23
24
|
content: "''",
|
|
24
25
|
position: 'absolute',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
27
|
top: "".concat(top, "px"),
|
|
26
28
|
bottom: 0,
|
|
27
29
|
left: 0,
|
|
@@ -21,12 +21,15 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
/** @jsx jsx */
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
24
25
|
var markStyles = function markStyles() {
|
|
25
26
|
return (0, _react2.css)({
|
|
26
27
|
color: 'inherit',
|
|
27
28
|
backgroundColor: 'unset',
|
|
28
29
|
WebkitTapHighlightColor: 'transparent'
|
|
29
|
-
},
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
(0, _styles.AnnotationSharedCSSByState)().focus);
|
|
30
33
|
};
|
|
31
34
|
var AnnotationDraft = exports.AnnotationDraft = function AnnotationDraft(_ref) {
|
|
32
35
|
var draftPosition = _ref.draftPosition,
|
|
@@ -12,6 +12,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
12
12
|
var _draft = require("../draft");
|
|
13
13
|
var _analyticsListeners = require("@atlaskit/analytics-listeners");
|
|
14
14
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
15
|
+
var _getRendererRangeInlineNodeNames = require("../../../actions/get-renderer-range-inline-node-names");
|
|
15
16
|
var _RendererActionsContext = require("../../RendererActionsContext");
|
|
16
17
|
var _context = require("../context");
|
|
17
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -58,7 +59,12 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
|
|
|
58
59
|
action: _analytics.ACTION.INSERTED,
|
|
59
60
|
actionSubject: _analytics.ACTION_SUBJECT.ANNOTATION,
|
|
60
61
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
61
|
-
attributes: {
|
|
62
|
+
attributes: {
|
|
63
|
+
inlineNodeNames: (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
64
|
+
pos: positionToAnnotate,
|
|
65
|
+
actions: actions
|
|
66
|
+
})
|
|
67
|
+
},
|
|
62
68
|
eventType: _analytics.EVENT_TYPE.TRACK
|
|
63
69
|
}).fire(_analyticsListeners.FabricChannel.editor);
|
|
64
70
|
}
|
|
@@ -81,7 +87,12 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
|
|
|
81
87
|
action: _analytics.ACTION.CREATE_NOT_ALLOWED,
|
|
82
88
|
actionSubject: _analytics.ACTION_SUBJECT.ANNOTATION,
|
|
83
89
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
84
|
-
attributes: {
|
|
90
|
+
attributes: {
|
|
91
|
+
inlineNodeNames: (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
92
|
+
pos: documentPosition,
|
|
93
|
+
actions: actions
|
|
94
|
+
})
|
|
95
|
+
},
|
|
85
96
|
eventType: _analytics.EVENT_TYPE.TRACK
|
|
86
97
|
}).fire(_analyticsListeners.FabricChannel.editor);
|
|
87
98
|
}
|
|
@@ -97,7 +108,11 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
|
|
|
97
108
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
98
109
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
99
110
|
attributes: {
|
|
100
|
-
overlap: uniqueAnnotationsInRange.length
|
|
111
|
+
overlap: uniqueAnnotationsInRange.length,
|
|
112
|
+
inlineNodeNames: (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
113
|
+
pos: documentPosition,
|
|
114
|
+
actions: actions
|
|
115
|
+
})
|
|
101
116
|
}
|
|
102
117
|
}).fire(_analyticsListeners.FabricChannel.editor);
|
|
103
118
|
}
|
|
@@ -136,12 +151,17 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
|
|
|
136
151
|
actionSubject: _analytics.ACTION_SUBJECT.ANNOTATION,
|
|
137
152
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.INLINE_COMMENT,
|
|
138
153
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
139
|
-
attributes: {
|
|
154
|
+
attributes: {
|
|
155
|
+
inlineNodeNames: (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
156
|
+
pos: documentPosition,
|
|
157
|
+
actions: actions
|
|
158
|
+
})
|
|
159
|
+
}
|
|
140
160
|
}).fire(_analyticsListeners.FabricChannel.editor);
|
|
141
161
|
}
|
|
142
162
|
removeDraftModeCallback();
|
|
143
163
|
onCloseProps();
|
|
144
|
-
}, [onCloseProps, removeDraftModeCallback, createAnalyticsEvent]);
|
|
164
|
+
}, [actions, documentPosition, onCloseProps, removeDraftModeCallback, createAnalyticsEvent]);
|
|
145
165
|
return /*#__PURE__*/_react.default.createElement(Component, {
|
|
146
166
|
range: range,
|
|
147
167
|
draftRange: draftRange,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getRangeInlineNodeNames } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
export function getRendererRangeInlineNodeNames({
|
|
4
|
+
actions,
|
|
5
|
+
pos
|
|
6
|
+
}) {
|
|
7
|
+
if (!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
const doc = actions.doc;
|
|
11
|
+
if (!pos || !doc) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const inlineNodeNames = getRangeInlineNodeNames({
|
|
15
|
+
doc,
|
|
16
|
+
pos
|
|
17
|
+
});
|
|
18
|
+
return inlineNodeNames;
|
|
19
|
+
}
|