@atlaskit/renderer 109.32.5 → 109.33.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 +18 -0
- package/dist/cjs/actions/index.js +14 -0
- package/dist/cjs/react/marks/alignment.js +1 -0
- package/dist/cjs/react/marks/border.js +1 -0
- package/dist/cjs/react/marks/breakout.js +1 -0
- package/dist/cjs/react/marks/link.js +2 -0
- package/dist/cjs/react/nodes/blockCard.js +2 -0
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +1 -0
- package/dist/cjs/react/nodes/emoji.js +1 -0
- package/dist/cjs/react/nodes/extensionFrame.js +2 -0
- package/dist/cjs/react/nodes/heading-anchor.js +1 -0
- package/dist/cjs/react/nodes/inlineCard.js +1 -0
- package/dist/cjs/react/nodes/layoutColumn.js +2 -0
- package/dist/cjs/react/nodes/media/index.js +1 -0
- package/dist/cjs/react/nodes/mediaSingle/index.js +2 -0
- package/dist/cjs/react/nodes/mediaSingle/styles.js +1 -0
- package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/cjs/react/nodes/panel.js +1 -0
- package/dist/cjs/react/nodes/table/sticky.js +4 -0
- package/dist/cjs/ui/Expand.js +1 -0
- package/dist/cjs/ui/ExtensionRenderer.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +2 -2
- package/dist/cjs/ui/Renderer/style.js +2 -0
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +1 -1
- package/dist/cjs/ui/annotations/draft/component.js +2 -0
- package/dist/cjs/ui/annotations/element/mark.js +1 -0
- package/dist/cjs/ui/annotations/view/index.js +9 -1
- package/dist/es2019/actions/index.js +13 -1
- package/dist/es2019/react/marks/alignment.js +1 -0
- package/dist/es2019/react/marks/border.js +1 -0
- package/dist/es2019/react/marks/breakout.js +1 -0
- package/dist/es2019/react/marks/link.js +1 -0
- package/dist/es2019/react/nodes/blockCard.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +1 -0
- package/dist/es2019/react/nodes/embedCard.js +1 -0
- package/dist/es2019/react/nodes/emoji.js +1 -0
- package/dist/es2019/react/nodes/extensionFrame.js +1 -0
- package/dist/es2019/react/nodes/heading-anchor.js +1 -0
- package/dist/es2019/react/nodes/inlineCard.js +1 -0
- package/dist/es2019/react/nodes/layoutColumn.js +1 -0
- package/dist/es2019/react/nodes/media/index.js +1 -0
- package/dist/es2019/react/nodes/mediaSingle/index.js +1 -0
- package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -0
- package/dist/es2019/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/es2019/react/nodes/panel.js +1 -0
- package/dist/es2019/react/nodes/table/sticky.js +3 -0
- package/dist/es2019/ui/Expand.js +1 -0
- package/dist/es2019/ui/ExtensionRenderer.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +2 -1
- package/dist/es2019/ui/Renderer/style.js +2 -0
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +1 -0
- package/dist/es2019/ui/annotations/draft/component.js +1 -0
- package/dist/es2019/ui/annotations/element/mark.js +1 -0
- package/dist/es2019/ui/annotations/view/index.js +8 -2
- package/dist/esm/actions/index.js +15 -1
- package/dist/esm/react/marks/alignment.js +1 -0
- package/dist/esm/react/marks/border.js +1 -0
- package/dist/esm/react/marks/breakout.js +1 -0
- package/dist/esm/react/marks/link.js +1 -0
- package/dist/esm/react/nodes/blockCard.js +1 -0
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -0
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +1 -0
- package/dist/esm/react/nodes/embedCard.js +1 -0
- package/dist/esm/react/nodes/emoji.js +1 -0
- package/dist/esm/react/nodes/extensionFrame.js +1 -0
- package/dist/esm/react/nodes/heading-anchor.js +1 -0
- package/dist/esm/react/nodes/inlineCard.js +1 -0
- package/dist/esm/react/nodes/layoutColumn.js +1 -0
- package/dist/esm/react/nodes/media/index.js +1 -0
- package/dist/esm/react/nodes/mediaSingle/index.js +1 -0
- package/dist/esm/react/nodes/mediaSingle/styles.js +1 -0
- package/dist/esm/react/nodes/multiBodiedExtension.js +2 -1
- package/dist/esm/react/nodes/panel.js +1 -0
- package/dist/esm/react/nodes/table/sticky.js +3 -0
- package/dist/esm/ui/Expand.js +1 -0
- package/dist/esm/ui/ExtensionRenderer.js +1 -0
- package/dist/esm/ui/Renderer/index.js +2 -1
- package/dist/esm/ui/Renderer/style.js +2 -0
- package/dist/esm/ui/Renderer/truncated-wrapper.js +1 -0
- package/dist/esm/ui/annotations/draft/component.js +1 -0
- package/dist/esm/ui/annotations/element/mark.js +1 -0
- package/dist/esm/ui/annotations/view/index.js +10 -2
- package/dist/types/actions/index.d.ts +1 -0
- package/dist/types-ts4.5/actions/index.d.ts +1 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.33.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 109.33.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#112275](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112275)
|
|
14
|
+
[`6f3058e0347a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6f3058e0347a3) -
|
|
15
|
+
ED-23734 - add `getInlineNodeTypes` function to `InlineCommentViewComponentProps`
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 109.32.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -315,6 +315,20 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
315
315
|
pos: blockNodePos
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
+
|
|
319
|
+
// TODO: Do not forget to remove `undefined` when the
|
|
320
|
+
// `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is removed.
|
|
321
|
+
}, {
|
|
322
|
+
key: "getInlineNodeTypes",
|
|
323
|
+
value: function getInlineNodeTypes(annotationId) {
|
|
324
|
+
if (!this.doc || !this.schema) {
|
|
325
|
+
return [];
|
|
326
|
+
}
|
|
327
|
+
return (0, _utils.getAnnotationInlineNodeTypes)({
|
|
328
|
+
doc: this.doc,
|
|
329
|
+
schema: this.schema
|
|
330
|
+
}, annotationId);
|
|
331
|
+
}
|
|
318
332
|
}]);
|
|
319
333
|
return RendererActions;
|
|
320
334
|
}();
|
|
@@ -12,6 +12,7 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
13
13
|
var _templateObject;
|
|
14
14
|
/** @jsx jsx */
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
16
|
var MarkWrapper = function MarkWrapper(props) {
|
|
16
17
|
var styles = props['data-align'] ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
17
18
|
(0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\ttext-align: ", ";\n\t\t\t"])), _adfSchema.alignmentPositionMap[props['data-align']]) : '';
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = Border;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/** @jsx jsx */
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
10
|
|
|
10
11
|
function Border(props) {
|
|
11
12
|
var _props$color, _props$size;
|
|
@@ -10,6 +10,7 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
10
10
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
|
|
14
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
16
|
var wrapperStyles = exports.wrapperStyles = (0, _react.css)({
|
|
@@ -19,6 +19,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
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
20
|
/** @jsx jsx */
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
22
24
|
var anchorStyles = (0, _react2.css)({
|
|
23
25
|
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
24
26
|
'&:hover': {
|
|
@@ -20,6 +20,8 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
20
20
|
var _utils2 = require("@atlaskit/editor-common/utils");
|
|
21
21
|
/** @jsx jsx */
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
+
|
|
23
25
|
var datasourceContainerStyle = (0, _react2.css)({
|
|
24
26
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
25
27
|
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")")),
|
|
@@ -15,6 +15,8 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
15
15
|
var _codeBlockContainer = _interopRequireDefault(require("./components/codeBlockContainer"));
|
|
16
16
|
/** @jsx jsx */
|
|
17
17
|
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
|
+
|
|
18
20
|
function CodeBlock(props) {
|
|
19
21
|
var text = props.text,
|
|
20
22
|
language = props.language,
|
|
@@ -10,6 +10,7 @@ var _codeBlockCopyButton = _interopRequireDefault(require("./codeBlockCopyButton
|
|
|
10
10
|
var _codeBlockWrapButton = _interopRequireDefault(require("./codeBlockWrapButton"));
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
|
|
14
15
|
var codeBlockButtonsWrapper = (0, _react.css)({
|
|
15
16
|
position: 'sticky',
|
|
@@ -14,6 +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/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
// 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
19
|
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
20
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
@@ -17,6 +17,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
17
17
|
var _enums = require("../../../../analytics/enums");
|
|
18
18
|
var _analyticsContext = _interopRequireDefault(require("../../../../analytics/analyticsContext"));
|
|
19
19
|
/** @jsx jsx */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
21
|
|
|
21
22
|
var CopyButton = function CopyButton(_ref) {
|
|
22
23
|
var content = _ref.content,
|
|
@@ -14,6 +14,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
14
14
|
var _enums = require("../../../../analytics/enums");
|
|
15
15
|
var _analyticsContext = _interopRequireDefault(require("../../../../analytics/analyticsContext"));
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
|
|
18
19
|
var WrapIcon = function WrapIcon() {
|
|
19
20
|
return (0, _react.jsx)("svg", {
|
|
@@ -15,6 +15,7 @@ var _useBidiWarnings2 = require("../../../hooks/use-bidi-warnings");
|
|
|
15
15
|
var _consts = require("../../../../consts");
|
|
16
16
|
var _templateObject, _templateObject2;
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
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
20
|
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
21
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
@@ -17,7 +17,7 @@ var _useBidiWarnings2 = require("../../hooks/use-bidi-warnings");
|
|
|
17
17
|
var _lightWeightCodeBlock = _interopRequireDefault(require("./components/lightWeightCodeBlock"));
|
|
18
18
|
var _codeBlockContainer = _interopRequireDefault(require("./components/codeBlockContainer"));
|
|
19
19
|
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); }
|
|
20
|
-
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; } /** @jsx jsx */
|
|
20
|
+
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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
21
|
var LazyAkCodeBlock = /*#__PURE__*/(0, _react.lazy)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
22
22
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
23
23
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19,6 +19,7 @@ var _style = require("../../ui/Renderer/style");
|
|
|
19
19
|
var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
20
20
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
21
|
/** @jsx jsx */
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
23
|
|
|
23
24
|
var embedCardWrapperStyles = (0, _react.css)({
|
|
24
25
|
width: '100%',
|
|
@@ -10,6 +10,7 @@ var _react2 = require("react");
|
|
|
10
10
|
var _emoji = require("@atlaskit/editor-common/emoji");
|
|
11
11
|
var _useInlineAnnotationProps = require("../../ui/annotations/element/useInlineAnnotationProps");
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
|
|
14
15
|
function EmojiItem(props) {
|
|
15
16
|
var id = props.id,
|
|
@@ -25,6 +25,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
25
25
|
var _messages = require("../../messages");
|
|
26
26
|
var _excluded = ["children"];
|
|
27
27
|
/** @jsx jsx */
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
29
|
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); }; }
|
|
29
30
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
31
|
var HeadingAnchorWrapperClassName = exports.HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
@@ -17,6 +17,7 @@ var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
|
17
17
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
18
18
|
var _useInlineAnnotationProps = require("../../ui/annotations/element/useInlineAnnotationProps");
|
|
19
19
|
/** @jsx jsx */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
21
|
|
|
21
22
|
var InlineCard = function InlineCard(props) {
|
|
22
23
|
var url = props.url,
|
|
@@ -10,6 +10,8 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
14
16
|
var layoutColumnClearMarginTopStyles = (0, _react2.css)(
|
|
15
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
|
|
@@ -39,6 +39,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
39
39
|
var _excluded = ["marks", "mediaSingleElement", "isDrafting"];
|
|
40
40
|
var _templateObject, _templateObject2;
|
|
41
41
|
/** @jsx jsx */
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
42
43
|
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); }
|
|
43
44
|
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; }
|
|
44
45
|
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; }
|
|
@@ -21,6 +21,8 @@ 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/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
24
26
|
var DEFAULT_WIDTH = 250;
|
|
25
27
|
var DEFAULT_HEIGHT = 200;
|
|
26
28
|
var isMediaElement = function isMediaElement(media) {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.uiMediaSingleLayoutStyles = exports.uiMediaSingleBaseStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/** @jsx jsx */
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
10
|
|
|
10
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
12
|
var uiMediaSingleBaseStyles = exports.uiMediaSingleBaseStyles = (0, _react.css)({
|
|
@@ -20,7 +20,8 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
20
20
|
var _templateObject, _templateObject2;
|
|
21
21
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
22
22
|
/** @jsx jsx */
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-duplicate-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
25
|
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); }
|
|
25
26
|
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; }
|
|
26
27
|
var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_ref) {
|
|
@@ -20,6 +20,7 @@ var _icons = require("@atlaskit/editor-common/icons");
|
|
|
20
20
|
var _templateObject, _templateObject2;
|
|
21
21
|
var _excluded = ["backgroundColor", "hasIcon"];
|
|
22
22
|
/** @jsx jsx */
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
24
|
var PanelStyled = function PanelStyled(_ref) {
|
|
24
25
|
var backgroundColor = _ref.backgroundColor,
|
|
25
26
|
hasIcon = _ref.hasIcon,
|
|
@@ -19,6 +19,10 @@ var _injectProps = require("../../utils/inject-props");
|
|
|
19
19
|
var _table2 = require("../table");
|
|
20
20
|
/** @jsx jsx */
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
22
26
|
var tableStickyPadding = exports.tableStickyPadding = 8;
|
|
23
27
|
var modeSpecficStyles = {
|
|
24
28
|
none: (0, _react2.css)({
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -26,6 +26,7 @@ var _activeHeaderIdProvider = require("./active-header-id-provider");
|
|
|
26
26
|
var _excluded = ["expanded"];
|
|
27
27
|
var _templateObject, _templateObject2, _templateObject3;
|
|
28
28
|
/** @jsx jsx */
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
29
30
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
30
31
|
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); }
|
|
31
32
|
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; }
|
|
@@ -23,7 +23,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
23
23
|
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); }
|
|
24
24
|
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; }
|
|
25
25
|
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); }; }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
var inlineExtensionStyle = (0, _react.css)({
|
|
28
28
|
display: 'inline-block',
|
|
29
29
|
maxWidth: '100%',
|
|
@@ -52,11 +52,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
52
52
|
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; }
|
|
53
53
|
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; }
|
|
54
54
|
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); }; }
|
|
55
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
55
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
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.
|
|
59
|
+
var packageVersion = "109.33.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);
|
|
@@ -27,6 +27,8 @@ var _table2 = require("@atlaskit/editor-common/table");
|
|
|
27
27
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
28
28
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation */
|
|
29
29
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
30
32
|
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); }
|
|
31
33
|
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; }
|
|
32
34
|
var FullPagePadding = exports.FullPagePadding = 32;
|
|
@@ -13,7 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _react = require("@emotion/react");
|
|
14
14
|
var _react2 = require("react");
|
|
15
15
|
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); }; }
|
|
16
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
16
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
17
|
var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
18
18
|
return (0, _react.css)({
|
|
19
19
|
position: 'relative',
|
|
@@ -21,6 +21,8 @@ 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/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
24
26
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
25
27
|
var markStyles = function markStyles() {
|
|
26
28
|
return (0, _react2.css)({
|
|
@@ -15,6 +15,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
16
|
var _templateObject;
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
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; }
|
|
19
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; }
|
|
20
21
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState` is not object-safe
|
|
@@ -28,13 +28,21 @@ var AnnotationView = exports.AnnotationView = function AnnotationView(props) {
|
|
|
28
28
|
return actionContext.deleteAnnotation(annotationInfo.id, annotationInfo.type);
|
|
29
29
|
};
|
|
30
30
|
}, [actionContext]);
|
|
31
|
+
|
|
32
|
+
// For view mode, the finding of inline node types is a bit more complex,
|
|
33
|
+
// that's why we will not provide it as a `inlineNodeTypes` props to the view component,
|
|
34
|
+
// to speed up the rendering process.
|
|
35
|
+
var getInlineNodeTypes = (0, _react.useCallback)(function (annotationId) {
|
|
36
|
+
return actionContext.getInlineNodeTypes(annotationId);
|
|
37
|
+
}, [actionContext]);
|
|
31
38
|
if (ViewComponent && viewComponentProps) {
|
|
32
39
|
var annotations = viewComponentProps.annotations,
|
|
33
40
|
clickElementTarget = viewComponentProps.clickElementTarget;
|
|
34
41
|
return /*#__PURE__*/_react.default.createElement(ViewComponent, {
|
|
35
42
|
annotations: annotations,
|
|
36
43
|
clickElementTarget: clickElementTarget,
|
|
37
|
-
deleteAnnotation: deleteAnnotation
|
|
44
|
+
deleteAnnotation: deleteAnnotation,
|
|
45
|
+
getInlineNodeTypes: getInlineNodeTypes
|
|
38
46
|
});
|
|
39
47
|
}
|
|
40
48
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
3
|
-
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes } from '@atlaskit/editor-common/utils';
|
|
4
4
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
5
|
import { AddNodeMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
6
6
|
import { createAnnotationStep, getPosFromRange } from '../steps';
|
|
@@ -295,4 +295,16 @@ export default class RendererActions {
|
|
|
295
295
|
pos: blockNodePos
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
+
|
|
299
|
+
// TODO: Do not forget to remove `undefined` when the
|
|
300
|
+
// `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is removed.
|
|
301
|
+
getInlineNodeTypes(annotationId) {
|
|
302
|
+
if (!this.doc || !this.schema) {
|
|
303
|
+
return [];
|
|
304
|
+
}
|
|
305
|
+
return getAnnotationInlineNodeTypes({
|
|
306
|
+
doc: this.doc,
|
|
307
|
+
schema: this.schema
|
|
308
|
+
}, annotationId);
|
|
309
|
+
}
|
|
298
310
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { alignmentPositionMap } from '@atlaskit/adf-schema';
|
|
6
7
|
const MarkWrapper = props => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
4
5
|
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { B400, B300, B500 } from '@atlaskit/theme/colors';
|
|
6
7
|
import { getEventHandler } from '../../utils';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { Card } from '@atlaskit/smart-card';
|
|
6
7
|
import { UnsupportedBlock, UnsupportedInline, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { injectIntl } from 'react-intl-next';
|
|
5
6
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx, css } from '@emotion/react';
|
|
3
4
|
import { overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
5
|
import { N20 } from '@atlaskit/theme/colors';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { forwardRef, useMemo } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
5
6
|
import { codeBlockSharedStyles, CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment, lazy, memo, Suspense, useState } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
5
6
|
import { useInViewport } from '../../hooks/use-in-viewport';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { useMemo, useContext, useState, useRef } from 'react';
|
|
5
6
|
import { Card, EmbedResizeMessageListener } from '@atlaskit/smart-card';
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
|
|
5
5
|
import React from 'react';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
7
|
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { N200, N500, B400 } from '@atlaskit/theme/colors';
|
|
8
9
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { Card } from '@atlaskit/smart-card';
|
|
5
6
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx, css } from '@emotion/react';
|
|
4
5
|
import { WidthProvider, clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle } from '@atlaskit/editor-common/ui';
|
|
5
6
|
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
|
|
5
5
|
import React, { PureComponent, Fragment, useEffect, useState, useMemo, useContext } from 'react';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
7
|
import { jsx, css } from '@emotion/react';
|
|
7
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
8
9
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { default as React, Fragment, useCallback, useContext, useMemo, useEffect } from 'react';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
6
|
import { jsx } from '@emotion/react';
|
|
6
7
|
import { injectIntl } from 'react-intl-next';
|
|
7
8
|
import { MediaSingle as UIMediaSingle, WidthContext } from '@atlaskit/editor-common/ui';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
|
|
4
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|