@atlaskit/renderer 112.7.12 → 112.7.13
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 +8 -0
- package/dist/cjs/actions/index.js +6 -0
- package/dist/cjs/actions/matches-utils.js +6 -0
- package/dist/cjs/analytics/unsupported-content.js +7 -0
- package/dist/cjs/react/index.js +61 -10
- package/dist/cjs/react/marks/alignment.js +5 -5
- package/dist/cjs/react/marks/annotation.js +8 -3
- package/dist/cjs/react/marks/breakout.js +2 -0
- package/dist/cjs/react/marks/code.js +2 -0
- package/dist/cjs/react/marks/confluence-inline-comment.js +2 -0
- package/dist/cjs/react/marks/data-consumer.js +2 -0
- package/dist/cjs/react/marks/em.js +2 -0
- package/dist/cjs/react/marks/fragment.js +2 -0
- package/dist/cjs/react/marks/index.js +3 -0
- package/dist/cjs/react/marks/link.js +2 -0
- package/dist/cjs/react/marks/strike.js +5 -8
- package/dist/cjs/react/marks/strong.js +2 -0
- package/dist/cjs/react/marks/subsup.js +5 -0
- package/dist/cjs/react/marks/underline.js +2 -0
- package/dist/cjs/react/marks/unsupportedMark.js +2 -0
- package/dist/cjs/react/marks/unsupportedNodeAttribute.js +2 -0
- package/dist/cjs/react/nodes/TableStickyScrollbar.js +17 -1
- package/dist/cjs/react/nodes/blockCard.js +6 -0
- package/dist/cjs/react/nodes/bodiedExtension.js +8 -2
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +7 -3
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +5 -1
- package/dist/cjs/react/nodes/date.js +13 -11
- package/dist/cjs/react/nodes/decisionList.js +2 -0
- package/dist/cjs/react/nodes/doc.js +5 -0
- package/dist/cjs/react/nodes/embedCard.js +42 -36
- package/dist/cjs/react/nodes/emoji.js +13 -9
- package/dist/cjs/react/nodes/extension.js +8 -2
- package/dist/cjs/react/nodes/fallback.js +6 -1
- package/dist/cjs/react/nodes/heading-anchor.js +9 -6
- package/dist/cjs/react/nodes/heading.js +16 -11
- package/dist/cjs/react/nodes/index.js +12 -1
- package/dist/cjs/react/nodes/inline.js +2 -0
- package/dist/cjs/react/nodes/inlineCard.js +8 -0
- package/dist/cjs/react/nodes/inlineExtension.js +20 -15
- package/dist/cjs/react/nodes/media/index.js +17 -1
- package/dist/cjs/react/nodes/mediaGroup.js +21 -7
- package/dist/cjs/react/nodes/mediaInline.js +2 -0
- package/dist/cjs/react/nodes/mediaSingle/index.js +21 -0
- package/dist/cjs/react/nodes/mention.js +13 -8
- package/dist/cjs/react/nodes/multiBodiedExtension.js +10 -2
- package/dist/cjs/react/nodes/orderedList.js +2 -0
- package/dist/cjs/react/nodes/panel.js +3 -1
- package/dist/cjs/react/nodes/paragraph.js +2 -0
- package/dist/cjs/react/nodes/status.js +16 -11
- package/dist/cjs/react/nodes/table/colgroup.js +6 -2
- package/dist/cjs/react/nodes/table/sticky.js +13 -0
- package/dist/cjs/react/nodes/table.js +31 -2
- package/dist/cjs/react/nodes/tableCell.js +18 -1
- package/dist/cjs/react/nodes/tableRow.js +2 -0
- package/dist/cjs/react/nodes/task-item-with-providers.js +3 -0
- package/dist/cjs/react/nodes/taskItem.js +4 -0
- package/dist/cjs/react/nodes/taskList.js +2 -0
- package/dist/cjs/react/utils/render-text-segments.js +2 -0
- package/dist/cjs/react/utils/segment-text.js +4 -1
- package/dist/cjs/react/utils/use-select-all-trap.js +11 -0
- package/dist/cjs/render-document.js +11 -2
- package/dist/cjs/steps/index.js +6 -1
- package/dist/cjs/text/index.js +3 -0
- package/dist/cjs/ui/Expand.js +7 -3
- package/dist/cjs/ui/ExtensionRenderer.js +3 -0
- package/dist/cjs/ui/MediaCard.js +34 -19
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +4 -0
- package/dist/cjs/ui/Renderer/breakout-ssr.js +28 -2
- package/dist/cjs/ui/Renderer/count-nodes.js +2 -0
- package/dist/cjs/ui/Renderer/index.js +68 -7
- package/dist/cjs/ui/Renderer/style.js +12 -7
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -0
- package/dist/cjs/ui/SmartCardStorage.js +6 -1
- package/dist/cjs/ui/annotations/context.js +3 -0
- package/dist/cjs/ui/annotations/draft/component.js +24 -12
- package/dist/cjs/ui/annotations/element/mark.js +5 -0
- package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +7 -1
- package/dist/cjs/ui/annotations/hooks/user-selection.js +9 -1
- package/dist/cjs/ui/annotations/hover/mounter.js +4 -1
- package/dist/cjs/ui/annotations/selection/mounter.js +4 -1
- package/dist/cjs/ui/annotations/wrapper.js +8 -2
- package/dist/cjs/utils.js +9 -1
- package/dist/es2019/actions/index.js +6 -0
- package/dist/es2019/actions/matches-utils.js +6 -0
- package/dist/es2019/analytics/unsupported-content.js +8 -0
- package/dist/es2019/react/index.js +67 -10
- package/dist/es2019/react/marks/alignment.js +5 -5
- package/dist/es2019/react/marks/annotation.js +8 -3
- package/dist/es2019/react/marks/breakout.js +2 -0
- package/dist/es2019/react/marks/code.js +2 -0
- package/dist/es2019/react/marks/confluence-inline-comment.js +2 -0
- package/dist/es2019/react/marks/data-consumer.js +2 -0
- package/dist/es2019/react/marks/em.js +2 -0
- package/dist/es2019/react/marks/fragment.js +2 -0
- package/dist/es2019/react/marks/index.js +3 -0
- package/dist/es2019/react/marks/link.js +2 -0
- package/dist/es2019/react/marks/strike.js +5 -8
- package/dist/es2019/react/marks/strong.js +2 -0
- package/dist/es2019/react/marks/subsup.js +5 -0
- package/dist/es2019/react/marks/underline.js +2 -0
- package/dist/es2019/react/marks/unsupportedMark.js +2 -0
- package/dist/es2019/react/marks/unsupportedNodeAttribute.js +2 -0
- package/dist/es2019/react/nodes/TableStickyScrollbar.js +16 -1
- package/dist/es2019/react/nodes/blockCard.js +6 -0
- package/dist/es2019/react/nodes/bodiedExtension.js +8 -2
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
- package/dist/es2019/react/nodes/date.js +13 -11
- package/dist/es2019/react/nodes/decisionList.js +2 -0
- package/dist/es2019/react/nodes/doc.js +6 -0
- package/dist/es2019/react/nodes/embedCard.js +42 -36
- package/dist/es2019/react/nodes/emoji.js +13 -9
- package/dist/es2019/react/nodes/extension.js +8 -2
- package/dist/es2019/react/nodes/fallback.js +6 -1
- package/dist/es2019/react/nodes/heading-anchor.js +10 -6
- package/dist/es2019/react/nodes/heading.js +16 -11
- package/dist/es2019/react/nodes/index.js +13 -1
- package/dist/es2019/react/nodes/inline.js +3 -0
- package/dist/es2019/react/nodes/inlineCard.js +8 -0
- package/dist/es2019/react/nodes/inlineExtension.js +21 -16
- package/dist/es2019/react/nodes/media/index.js +17 -1
- package/dist/es2019/react/nodes/mediaGroup.js +14 -1
- package/dist/es2019/react/nodes/mediaInline.js +2 -0
- package/dist/es2019/react/nodes/mediaSingle/index.js +21 -0
- package/dist/es2019/react/nodes/mention.js +13 -8
- package/dist/es2019/react/nodes/multiBodiedExtension.js +10 -2
- package/dist/es2019/react/nodes/orderedList.js +2 -0
- package/dist/es2019/react/nodes/panel.js +3 -1
- package/dist/es2019/react/nodes/paragraph.js +2 -0
- package/dist/es2019/react/nodes/status.js +16 -11
- package/dist/es2019/react/nodes/table/colgroup.js +6 -2
- package/dist/es2019/react/nodes/table/sticky.js +13 -0
- package/dist/es2019/react/nodes/table.js +32 -3
- package/dist/es2019/react/nodes/tableCell.js +18 -1
- package/dist/es2019/react/nodes/tableRow.js +2 -0
- package/dist/es2019/react/nodes/task-item-with-providers.js +3 -0
- package/dist/es2019/react/nodes/taskItem.js +4 -0
- package/dist/es2019/react/nodes/taskList.js +2 -0
- package/dist/es2019/react/utils/render-text-segments.js +2 -0
- package/dist/es2019/react/utils/segment-text.js +4 -1
- package/dist/es2019/react/utils/use-select-all-trap.js +11 -0
- package/dist/es2019/render-document.js +11 -2
- package/dist/es2019/steps/index.js +6 -1
- package/dist/es2019/text/index.js +3 -0
- package/dist/es2019/ui/Expand.js +7 -3
- package/dist/es2019/ui/ExtensionRenderer.js +3 -0
- package/dist/es2019/ui/MediaCard.js +34 -19
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +4 -0
- package/dist/es2019/ui/Renderer/breakout-ssr.js +28 -2
- package/dist/es2019/ui/Renderer/count-nodes.js +3 -0
- package/dist/es2019/ui/Renderer/index.js +68 -7
- package/dist/es2019/ui/Renderer/style.js +47 -37
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +3 -0
- package/dist/es2019/ui/SmartCardStorage.js +6 -1
- package/dist/es2019/ui/annotations/context.js +3 -0
- package/dist/es2019/ui/annotations/draft/component.js +24 -12
- package/dist/es2019/ui/annotations/element/mark.js +5 -0
- package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +7 -1
- package/dist/es2019/ui/annotations/hooks/user-selection.js +9 -1
- package/dist/es2019/ui/annotations/hover/mounter.js +4 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +4 -1
- package/dist/es2019/ui/annotations/wrapper.js +8 -2
- package/dist/es2019/utils.js +12 -1
- package/dist/esm/actions/index.js +6 -0
- package/dist/esm/actions/matches-utils.js +6 -0
- package/dist/esm/analytics/unsupported-content.js +8 -0
- package/dist/esm/react/index.js +61 -10
- package/dist/esm/react/marks/alignment.js +5 -5
- package/dist/esm/react/marks/annotation.js +8 -3
- package/dist/esm/react/marks/breakout.js +2 -0
- package/dist/esm/react/marks/code.js +2 -0
- package/dist/esm/react/marks/confluence-inline-comment.js +2 -0
- package/dist/esm/react/marks/data-consumer.js +2 -0
- package/dist/esm/react/marks/em.js +2 -0
- package/dist/esm/react/marks/fragment.js +2 -0
- package/dist/esm/react/marks/index.js +3 -0
- package/dist/esm/react/marks/link.js +2 -0
- package/dist/esm/react/marks/strike.js +5 -8
- package/dist/esm/react/marks/strong.js +2 -0
- package/dist/esm/react/marks/subsup.js +5 -0
- package/dist/esm/react/marks/underline.js +2 -0
- package/dist/esm/react/marks/unsupportedMark.js +2 -0
- package/dist/esm/react/marks/unsupportedNodeAttribute.js +2 -0
- package/dist/esm/react/nodes/TableStickyScrollbar.js +17 -1
- package/dist/esm/react/nodes/blockCard.js +6 -0
- package/dist/esm/react/nodes/bodiedExtension.js +8 -2
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +7 -3
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +5 -1
- package/dist/esm/react/nodes/date.js +13 -11
- package/dist/esm/react/nodes/decisionList.js +2 -0
- package/dist/esm/react/nodes/doc.js +6 -0
- package/dist/esm/react/nodes/embedCard.js +42 -36
- package/dist/esm/react/nodes/emoji.js +13 -9
- package/dist/esm/react/nodes/extension.js +8 -2
- package/dist/esm/react/nodes/fallback.js +6 -1
- package/dist/esm/react/nodes/heading-anchor.js +9 -6
- package/dist/esm/react/nodes/heading.js +16 -11
- package/dist/esm/react/nodes/index.js +13 -1
- package/dist/esm/react/nodes/inline.js +3 -0
- package/dist/esm/react/nodes/inlineCard.js +8 -0
- package/dist/esm/react/nodes/inlineExtension.js +20 -15
- package/dist/esm/react/nodes/media/index.js +17 -1
- package/dist/esm/react/nodes/mediaGroup.js +21 -7
- package/dist/esm/react/nodes/mediaInline.js +2 -0
- package/dist/esm/react/nodes/mediaSingle/index.js +21 -0
- package/dist/esm/react/nodes/mention.js +13 -8
- package/dist/esm/react/nodes/multiBodiedExtension.js +10 -2
- package/dist/esm/react/nodes/orderedList.js +2 -0
- package/dist/esm/react/nodes/panel.js +3 -1
- package/dist/esm/react/nodes/paragraph.js +2 -0
- package/dist/esm/react/nodes/status.js +16 -11
- package/dist/esm/react/nodes/table/colgroup.js +6 -2
- package/dist/esm/react/nodes/table/sticky.js +13 -0
- package/dist/esm/react/nodes/table.js +31 -2
- package/dist/esm/react/nodes/tableCell.js +18 -1
- package/dist/esm/react/nodes/tableRow.js +2 -0
- package/dist/esm/react/nodes/task-item-with-providers.js +3 -0
- package/dist/esm/react/nodes/taskItem.js +4 -0
- package/dist/esm/react/nodes/taskList.js +2 -0
- package/dist/esm/react/utils/render-text-segments.js +2 -0
- package/dist/esm/react/utils/segment-text.js +4 -1
- package/dist/esm/react/utils/use-select-all-trap.js +11 -0
- package/dist/esm/render-document.js +11 -2
- package/dist/esm/steps/index.js +6 -1
- package/dist/esm/text/index.js +3 -0
- package/dist/esm/ui/Expand.js +7 -3
- package/dist/esm/ui/ExtensionRenderer.js +3 -0
- package/dist/esm/ui/MediaCard.js +34 -19
- package/dist/esm/ui/Renderer/ErrorBoundary.js +4 -0
- package/dist/esm/ui/Renderer/breakout-ssr.js +28 -2
- package/dist/esm/ui/Renderer/count-nodes.js +3 -0
- package/dist/esm/ui/Renderer/index.js +68 -7
- package/dist/esm/ui/Renderer/style.js +12 -7
- package/dist/esm/ui/Renderer/truncated-wrapper.js +3 -0
- package/dist/esm/ui/SmartCardStorage.js +6 -1
- package/dist/esm/ui/annotations/context.js +3 -0
- package/dist/esm/ui/annotations/draft/component.js +24 -12
- package/dist/esm/ui/annotations/element/mark.js +5 -0
- package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +7 -1
- package/dist/esm/ui/annotations/hooks/user-selection.js +9 -1
- package/dist/esm/ui/annotations/hover/mounter.js +4 -1
- package/dist/esm/ui/annotations/selection/mounter.js +4 -1
- package/dist/esm/ui/annotations/wrapper.js +8 -2
- package/dist/esm/utils.js +10 -1
- package/dist/types/analytics/events.d.ts +1 -2
- package/dist/types/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types/react/nodes/decisionList.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +1 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/nodes/taskList.d.ts +1 -1
- package/dist/types/react/types.d.ts +2 -2
- package/dist/types/utils.d.ts +1 -2
- package/dist/types-ts4.5/analytics/events.d.ts +1 -2
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/decisionList.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +1 -1
- package/dist/types-ts4.5/react/types.d.ts +2 -2
- package/dist/types-ts4.5/utils.d.ts +1 -2
- package/docs/0-intro.tsx +14 -1
- package/package.json +1 -1
- package/tsconfig.json +0 -1
|
@@ -138,41 +138,47 @@ export default function EmbedCard(props) {
|
|
|
138
138
|
throw err;
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
|
-
return
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
141
|
+
return (
|
|
142
|
+
// Ignored via go/ees005
|
|
143
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
144
|
+
jsx(CardErrorBoundary, _extends({
|
|
145
|
+
unsupportedComponent: UnsupportedBlock
|
|
146
|
+
}, cardProps), jsx(EmbedResizeMessageListener, {
|
|
147
|
+
embedIframeRef: embedIframeRef,
|
|
148
|
+
onHeightUpdate: setLiveHeight
|
|
149
|
+
}, jsx(UIMediaSingle, {
|
|
150
|
+
css: uiMediaSingleStyles,
|
|
151
|
+
layout: layout,
|
|
152
|
+
width: originalWidth,
|
|
153
|
+
containerWidth: containerWidth,
|
|
154
|
+
pctWidth: width,
|
|
155
|
+
height: originalHeight,
|
|
156
|
+
fullWidthMode: isFullWidth,
|
|
157
|
+
nodeType: "embedCard",
|
|
158
|
+
lineLength: isInsideOfBlockNode ? containerWidth : lineLength,
|
|
159
|
+
hasFallbackContainer: hasPreview,
|
|
160
|
+
isInsideOfInlineExtension: isInsideOfInlineExtension
|
|
161
|
+
}, jsx("div", {
|
|
162
|
+
css: embedCardWrapperStyles
|
|
163
|
+
}, jsx("div", {
|
|
164
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
165
|
+
className: "embedCardView-content-wrap",
|
|
166
|
+
"data-embed-card": true,
|
|
167
|
+
"data-layout": layout,
|
|
168
|
+
"data-width": width,
|
|
169
|
+
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
170
|
+
"data-card-url": url,
|
|
171
|
+
"data-card-original-height": originalHeight
|
|
172
|
+
}, jsx(Card, _extends({
|
|
173
|
+
appearance: "embed"
|
|
174
|
+
// Ignored via go/ees005
|
|
175
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
176
|
+
}, cardProps, {
|
|
177
|
+
onResolve: onResolve,
|
|
178
|
+
inheritDimensions: true,
|
|
179
|
+
embedIframeRef: embedIframeRef,
|
|
180
|
+
onError: onError
|
|
181
|
+
})))))))
|
|
182
|
+
);
|
|
177
183
|
}));
|
|
178
184
|
}
|
|
@@ -98,15 +98,19 @@ function EmojiItem(props) {
|
|
|
98
98
|
resourceConfig = props.resourceConfig;
|
|
99
99
|
var inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
100
100
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
101
|
+
return (
|
|
102
|
+
// Ignored via go/ees005
|
|
103
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
104
|
+
jsx("span", inlineAnnotationProps, jsx(EmojiNode, {
|
|
105
|
+
allowTextFallback: true,
|
|
106
|
+
id: id,
|
|
107
|
+
shortName: shortName,
|
|
108
|
+
fallback: text,
|
|
109
|
+
providers: providers,
|
|
110
|
+
fitToHeight: fitToHeight,
|
|
111
|
+
resourceConfig: resourceConfig
|
|
112
|
+
}))
|
|
113
|
+
);
|
|
110
114
|
}
|
|
111
115
|
return jsx(EmojiNode, {
|
|
112
116
|
allowTextFallback: true,
|
|
@@ -6,7 +6,10 @@ import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
|
6
6
|
import { RendererCssClassName } from '../../consts';
|
|
7
7
|
export var renderExtension = function renderExtension(content, layout) {
|
|
8
8
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
9
|
-
var removeOverflow
|
|
9
|
+
var removeOverflow
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
12
|
+
= arguments.length > 3 ? arguments[3] : undefined;
|
|
10
13
|
var overflowContainerClass = !removeOverflow ? RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER : '';
|
|
11
14
|
|
|
12
15
|
// by default, we assume the extension is at top level, (direct child of doc node)
|
|
@@ -39,7 +42,10 @@ var Extension = function Extension(props) {
|
|
|
39
42
|
shadowClassNames = props.shadowClassNames,
|
|
40
43
|
_props$path = props.path,
|
|
41
44
|
path = _props$path === void 0 ? [] : _props$path;
|
|
42
|
-
return /*#__PURE__*/React.createElement(ExtensionRenderer
|
|
45
|
+
return /*#__PURE__*/React.createElement(ExtensionRenderer
|
|
46
|
+
// Ignored via go/ees005
|
|
47
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
48
|
+
, _extends({}, props, {
|
|
43
49
|
type: "extension"
|
|
44
50
|
}), function (_ref3) {
|
|
45
51
|
var result = _ref3.result;
|
|
@@ -10,6 +10,8 @@ import React from 'react';
|
|
|
10
10
|
import { InlineCard } from './';
|
|
11
11
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
12
12
|
import { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from '@atlaskit/link-datasource';
|
|
13
|
+
// Ignored via go/ees005
|
|
14
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
13
15
|
export var CardErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
|
|
14
16
|
function CardErrorBoundary() {
|
|
15
17
|
var _this;
|
|
@@ -53,7 +55,10 @@ export var CardErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
53
55
|
return /*#__PURE__*/React.createElement(LazyLoadedDatasourceRenderFailedAnalyticsWrapper, {
|
|
54
56
|
datasourceId: datasourceId,
|
|
55
57
|
error: this.state.error
|
|
56
|
-
}, /*#__PURE__*/React.createElement(InlineCard
|
|
58
|
+
}, /*#__PURE__*/React.createElement(InlineCard
|
|
59
|
+
// Ignored via go/ees005
|
|
60
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
61
|
+
, this.props));
|
|
57
62
|
} else {
|
|
58
63
|
return /*#__PURE__*/React.createElement(LazyLoadedDatasourceRenderFailedAnalyticsWrapper, {
|
|
59
64
|
datasourceId: datasourceId,
|
|
@@ -28,13 +28,11 @@ export var HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
|
28
28
|
var CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
29
29
|
var children = props.children,
|
|
30
30
|
rest = _objectWithoutProperties(props, _excluded);
|
|
31
|
-
return (
|
|
31
|
+
return jsx("span", _extends({}, rest, {
|
|
32
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}), children)
|
|
37
|
-
);
|
|
33
|
+
className: HeadingAnchorWrapperClassName,
|
|
34
|
+
ref: ref
|
|
35
|
+
}), children);
|
|
38
36
|
});
|
|
39
37
|
var copyAnchorButtonStyles = css({
|
|
40
38
|
display: 'inline',
|
|
@@ -45,6 +43,11 @@ var copyAnchorButtonStyles = css({
|
|
|
45
43
|
cursor: 'pointer',
|
|
46
44
|
right: 0
|
|
47
45
|
});
|
|
46
|
+
|
|
47
|
+
// Ignored via go/ees005
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
|
+
// Ignored via go/ees005
|
|
50
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
48
51
|
var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
|
|
49
52
|
function HeadingAnchor() {
|
|
50
53
|
var _this;
|
|
@@ -51,16 +51,21 @@ function Heading(props) {
|
|
|
51
51
|
var isRightAligned = hasRightAlignmentMark(marks);
|
|
52
52
|
var enableNestedHeaderLinks = allowHeadingAnchorLinks && allowHeadingAnchorLinks.allowNestedHeaderLinks;
|
|
53
53
|
var headingIdToUse = invisible ? undefined : headingId;
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
return (
|
|
55
|
+
/*#__PURE__*/
|
|
56
|
+
// Ignored via go/ees005
|
|
57
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
58
|
+
React.createElement(HX, _extends({
|
|
59
|
+
id: headingIdToUse
|
|
60
|
+
}, dataAttributes), /*#__PURE__*/React.createElement(React.Fragment, null, showAnchorLink && headingId && isRightAligned && /*#__PURE__*/React.createElement(WrappedHeadingAnchor, {
|
|
61
|
+
level: props.level,
|
|
62
|
+
enableNestedHeaderLinks: enableNestedHeaderLinks,
|
|
63
|
+
headingId: headingId
|
|
64
|
+
}), props.children, showAnchorLink && headingId && !isRightAligned && /*#__PURE__*/React.createElement(WrappedHeadingAnchor, {
|
|
65
|
+
level: props.level,
|
|
66
|
+
enableNestedHeaderLinks: enableNestedHeaderLinks,
|
|
67
|
+
headingId: headingId
|
|
68
|
+
})))
|
|
69
|
+
);
|
|
65
70
|
}
|
|
66
71
|
export default Heading;
|
|
@@ -28,6 +28,10 @@ import { TableCell, TableHeader } from './tableCell';
|
|
|
28
28
|
import TableRow from './tableRow';
|
|
29
29
|
import UnknownBlock from './unknownBlock';
|
|
30
30
|
import { UnsupportedBlock, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
31
|
+
|
|
32
|
+
// Ignored via go/ees005
|
|
33
|
+
// eslint-disable-next-line import/no-named-as-default
|
|
34
|
+
|
|
31
35
|
var WindowedCodeBlock = Loadable({
|
|
32
36
|
loader: function loader() {
|
|
33
37
|
return import( /* webpackChunkName: "@atlaskit-internal_renderer-node_WindowedCodeBlock" */
|
|
@@ -282,7 +286,10 @@ export var nodeToReact = {
|
|
|
282
286
|
nestedExpand: Expand,
|
|
283
287
|
embedCard: EmbedCard
|
|
284
288
|
};
|
|
285
|
-
export var toReact = function toReact(node, flags, nodeComponents
|
|
289
|
+
export var toReact = function toReact(node, flags, nodeComponents
|
|
290
|
+
// Ignored via go/ees005
|
|
291
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
292
|
+
) {
|
|
286
293
|
if (node.type.name === 'doc' && (flags === null || flags === void 0 ? void 0 : flags.allowSelectAllTrap) === true) {
|
|
287
294
|
return DocWithSelectAllTrap;
|
|
288
295
|
}
|
|
@@ -349,6 +356,8 @@ export var mergeTextNodes = function mergeTextNodes(nodes) {
|
|
|
349
356
|
// Append node to previous node, if it was a text wrapper
|
|
350
357
|
if (acc.length > 0 && isTextWrapper(acc[acc.length - 1])) {
|
|
351
358
|
var textWrapper = acc[acc.length - 1];
|
|
359
|
+
// Ignored via go/ees005
|
|
360
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
352
361
|
textWrapper.content.push(current);
|
|
353
362
|
textWrapper.nodeSize += current.nodeSize;
|
|
354
363
|
} else {
|
|
@@ -372,6 +381,9 @@ export var isTextWrapper = function isTextWrapper(node) {
|
|
|
372
381
|
export function isTextNode(node) {
|
|
373
382
|
return node.type.name === 'text';
|
|
374
383
|
}
|
|
384
|
+
|
|
385
|
+
// Ignored via go/ees005
|
|
386
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
375
387
|
var whitespaceRegex = /^\s*$/;
|
|
376
388
|
|
|
377
389
|
/**
|
|
@@ -48,6 +48,8 @@ var InlineCard = function InlineCard(props) {
|
|
|
48
48
|
"data-inline-card": true,
|
|
49
49
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
50
50
|
"data-card-url": url
|
|
51
|
+
// Ignored via go/ees005
|
|
52
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
51
53
|
}, inlineAnnotationProps), jsx(AnalyticsContext, {
|
|
52
54
|
data: analyticsData
|
|
53
55
|
}, jsx(CardSSR, {
|
|
@@ -82,13 +84,19 @@ var InlineCard = function InlineCard(props) {
|
|
|
82
84
|
"data-inline-card": true,
|
|
83
85
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
84
86
|
"data-card-url": url
|
|
87
|
+
// Ignored via go/ees005
|
|
88
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
85
89
|
}, inlineAnnotationProps), jsx(CardErrorBoundary, _extends({
|
|
86
90
|
unsupportedComponent: UnsupportedInline
|
|
91
|
+
// Ignored via go/ees005
|
|
92
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
87
93
|
}, cardProps), jsx(Card, _extends({
|
|
88
94
|
appearance: "inline",
|
|
89
95
|
showHoverPreview: !hideHoverPreview,
|
|
90
96
|
showAuthTooltip: showAuthTooltip,
|
|
91
97
|
actionOptions: actionOptions
|
|
98
|
+
// Ignored via go/ees005
|
|
99
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
92
100
|
}, cardProps, {
|
|
93
101
|
onResolve: function onResolve(data) {
|
|
94
102
|
if (!data.url || !data.title) {
|
|
@@ -3,22 +3,27 @@ import React from 'react';
|
|
|
3
3
|
import ExtensionRenderer from '../../ui/ExtensionRenderer';
|
|
4
4
|
var InlineExtension = function InlineExtension(props) {
|
|
5
5
|
var text = props.text;
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
return (
|
|
7
|
+
/*#__PURE__*/
|
|
8
|
+
// Ignored via go/ees005
|
|
9
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
10
|
+
React.createElement(ExtensionRenderer, _extends({}, props, {
|
|
11
|
+
type: "inlineExtension"
|
|
12
|
+
}), function (_ref) {
|
|
13
|
+
var result = _ref.result;
|
|
14
|
+
try {
|
|
15
|
+
// Return the result directly if it's a valid JSX.Element
|
|
16
|
+
if (result && /*#__PURE__*/React.isValidElement(result)) {
|
|
17
|
+
return /*#__PURE__*/React.createElement("span", null, result);
|
|
18
|
+
}
|
|
19
|
+
} catch (e) {
|
|
20
|
+
/** We don't want this error to block renderer */
|
|
21
|
+
/** We keep rendering the default content */
|
|
14
22
|
}
|
|
15
|
-
} catch (e) {
|
|
16
|
-
/** We don't want this error to block renderer */
|
|
17
|
-
/** We keep rendering the default content */
|
|
18
|
-
}
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
// Always return default content if anything goes wrong
|
|
25
|
+
return /*#__PURE__*/React.createElement("span", null, text || 'inlineExtension');
|
|
26
|
+
})
|
|
27
|
+
);
|
|
23
28
|
};
|
|
24
29
|
export default InlineExtension;
|
|
@@ -181,6 +181,8 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
181
181
|
if (updateSubscriber) {
|
|
182
182
|
updateSubscriber.emit(AnnotationUpdateEvent.ON_ANNOTATION_CLICK, {
|
|
183
183
|
annotationIds: activeParentIds,
|
|
184
|
+
// Ignored via go/ees005
|
|
185
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
184
186
|
eventTarget: e.target,
|
|
185
187
|
// use mediaSingle here to align with annotation viewed event dispatched in editor
|
|
186
188
|
eventTargetType: 'mediaSingle',
|
|
@@ -197,6 +199,8 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
197
199
|
},
|
|
198
200
|
status: entered ? 'entered' : status,
|
|
199
201
|
onClick: onClick
|
|
202
|
+
// Ignored via go/ees005
|
|
203
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
200
204
|
}, rest));
|
|
201
205
|
};
|
|
202
206
|
|
|
@@ -260,6 +264,8 @@ var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
|
|
|
260
264
|
if (updateSubscriber) {
|
|
261
265
|
updateSubscriber.emit(AnnotationUpdateEvent.ON_ANNOTATION_CLICK, {
|
|
262
266
|
annotationIds: activeParentIds,
|
|
267
|
+
// Ignored via go/ees005
|
|
268
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
263
269
|
eventTarget: e.target,
|
|
264
270
|
// use mediaSingle here to align with annotation viewed event dispatched in editor
|
|
265
271
|
eventTargetType: 'mediaSingle',
|
|
@@ -277,8 +283,13 @@ var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
|
|
|
277
283
|
status: entered ? 'entered' : status,
|
|
278
284
|
onClick: onClick,
|
|
279
285
|
mediaSingleElement: mediaSingleElement
|
|
286
|
+
// Ignored via go/ees005
|
|
287
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
280
288
|
}, rest));
|
|
281
289
|
};
|
|
290
|
+
|
|
291
|
+
// Ignored via go/ees005
|
|
292
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
282
293
|
var Media = /*#__PURE__*/function (_PureComponent) {
|
|
283
294
|
function Media(props) {
|
|
284
295
|
var _this;
|
|
@@ -347,6 +358,8 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
347
358
|
isDrafting: isDrafting
|
|
348
359
|
}), jsx(MediaCard, _extends({
|
|
349
360
|
contextIdentifierProvider: contextIdentifierProvider
|
|
361
|
+
// Ignored via go/ees005
|
|
362
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
350
363
|
}, _this.props, {
|
|
351
364
|
shouldOpenMediaViewer: shouldOpenMediaViewer,
|
|
352
365
|
eventHandlers: eventHandlers,
|
|
@@ -433,7 +446,10 @@ var MediaWithDraftAnnotation = function MediaWithDraftAnnotation(props) {
|
|
|
433
446
|
'data-renderer-mark': true
|
|
434
447
|
}) : dataAttributes;
|
|
435
448
|
}, [applyDraftAnnotation, dataAttributes]);
|
|
436
|
-
return jsx(Media
|
|
449
|
+
return jsx(Media
|
|
450
|
+
// Ignored via go/ees005
|
|
451
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
452
|
+
, _extends({}, props, {
|
|
437
453
|
dataAttributes: dataAttributesWithDraftAnnotation,
|
|
438
454
|
isDrafting: shouldApplyDraftAnnotation
|
|
439
455
|
}));
|
|
@@ -11,6 +11,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
import React, { PureComponent } from 'react';
|
|
12
12
|
import { defaultImageCardDimensions } from '@atlaskit/media-card';
|
|
13
13
|
import { FilmstripView } from '@atlaskit/media-filmstrip';
|
|
14
|
+
// Ignored via go/ees005
|
|
15
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
14
16
|
var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
15
17
|
function MediaGroup() {
|
|
16
18
|
var _this;
|
|
@@ -38,13 +40,19 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
38
40
|
});
|
|
39
41
|
});
|
|
40
42
|
_defineProperty(_this, "onMediaClick", function (cardClickHandler, child, surroundingItems) {
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
return (
|
|
44
|
+
// Ignored via go/ees005
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
46
|
+
function (event, analyticsEvent) {
|
|
47
|
+
var surroundings = {
|
|
48
|
+
// Ignored via go/ees005
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
50
|
+
collectionName: child.props.collection,
|
|
51
|
+
list: surroundingItems
|
|
52
|
+
};
|
|
53
|
+
cardClickHandler(event, surroundings, analyticsEvent);
|
|
54
|
+
}
|
|
55
|
+
);
|
|
48
56
|
});
|
|
49
57
|
return _this;
|
|
50
58
|
}
|
|
@@ -55,6 +63,8 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
63
|
var numChildren = React.Children.count(this.props.children);
|
|
56
64
|
var content;
|
|
57
65
|
if (numChildren === 1) {
|
|
66
|
+
// Ignored via go/ees005
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
58
68
|
var card = React.Children.toArray(this.props.children)[0];
|
|
59
69
|
switch (card.props.type) {
|
|
60
70
|
case 'file':
|
|
@@ -155,6 +165,8 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
155
165
|
switch (type) {
|
|
156
166
|
case 'file':
|
|
157
167
|
return {
|
|
168
|
+
// Ignored via go/ees005
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
158
170
|
id: id,
|
|
159
171
|
mediaItemType: type,
|
|
160
172
|
occurrenceKey: occurrenceKey,
|
|
@@ -164,6 +176,8 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
164
176
|
return undefined;
|
|
165
177
|
case 'external':
|
|
166
178
|
return {
|
|
179
|
+
// Ignored via go/ees005
|
|
180
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
167
181
|
id: id,
|
|
168
182
|
mediaItemType: 'file',
|
|
169
183
|
occurrenceKey: occurrenceKey,
|
|
@@ -154,6 +154,8 @@ var MediaInline = function MediaInline(props) {
|
|
|
154
154
|
var identifier = {
|
|
155
155
|
id: id,
|
|
156
156
|
mediaItemType: 'file',
|
|
157
|
+
// Ignored via go/ees005
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
157
159
|
collectionName: collection
|
|
158
160
|
};
|
|
159
161
|
var mediaClient = useContext(MediaClientContext);
|
|
@@ -21,6 +21,9 @@ var isMediaElement = function isMediaElement(media) {
|
|
|
21
21
|
if (!media) {
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
27
|
var _ref = media.props || {},
|
|
25
28
|
nodeType = _ref.nodeType,
|
|
26
29
|
type = _ref.type;
|
|
@@ -33,7 +36,11 @@ var checkForMediaElement = function checkForMediaElement(children) {
|
|
|
33
36
|
var _React$Children$toArr = React.Children.toArray(children),
|
|
34
37
|
_React$Children$toArr2 = _slicedToArray(_React$Children$toArr, 1),
|
|
35
38
|
media = _React$Children$toArr2[0];
|
|
39
|
+
// Ignored via go/ees005
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
41
|
if (media && !isMediaElement(media) && media.props.children) {
|
|
42
|
+
// Ignored via go/ees005
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
44
|
return checkForMediaElement(media.props.children);
|
|
38
45
|
}
|
|
39
46
|
return media;
|
|
@@ -154,6 +161,8 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
154
161
|
var handleMouseEnter = function handleMouseEnter(event) {
|
|
155
162
|
cancelTimeout();
|
|
156
163
|
if (event.buttons === 0) {
|
|
164
|
+
// Ignored via go/ees005
|
|
165
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
157
166
|
setHoverTarget && setHoverTarget(event.target);
|
|
158
167
|
setIsWithinRange(true);
|
|
159
168
|
}
|
|
@@ -162,12 +171,20 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
162
171
|
initiateTimeout();
|
|
163
172
|
};
|
|
164
173
|
if (mediaSingleElement && isFullPageRenderer) {
|
|
174
|
+
// Ignored via go/ees005
|
|
175
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
165
176
|
mediaSingleElement.addEventListener('mouseenter', handleMouseEnter);
|
|
177
|
+
// Ignored via go/ees005
|
|
178
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
166
179
|
mediaSingleElement.addEventListener('mouseleave', handleMouseLeave);
|
|
167
180
|
}
|
|
168
181
|
return function () {
|
|
169
182
|
if (mediaSingleElement && isFullPageRenderer) {
|
|
183
|
+
// Ignored via go/ees005
|
|
184
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
170
185
|
mediaSingleElement.removeEventListener('mouseenter', handleMouseEnter);
|
|
186
|
+
// Ignored via go/ees005
|
|
187
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
171
188
|
mediaSingleElement.removeEventListener('mouseleave', handleMouseLeave);
|
|
172
189
|
}
|
|
173
190
|
};
|
|
@@ -223,6 +240,8 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
223
240
|
node = _React$Children$toArr4[0],
|
|
224
241
|
caption = _React$Children$toArr4[1];
|
|
225
242
|
if (!isMediaElement(node)) {
|
|
243
|
+
// Ignored via go/ees005
|
|
244
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
226
245
|
var mediaElement = checkForMediaElement(node.props.children);
|
|
227
246
|
if (!mediaElement) {
|
|
228
247
|
return node;
|
|
@@ -231,6 +250,8 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
231
250
|
} else {
|
|
232
251
|
media = node;
|
|
233
252
|
}
|
|
253
|
+
// Ignored via go/ees005
|
|
254
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
234
255
|
return jsx(MediaSingleWithChildren, _extends({}, props, {
|
|
235
256
|
media: media,
|
|
236
257
|
caption: caption
|
|
@@ -11,14 +11,19 @@ export default /*#__PURE__*/memo(function MentionItem(props) {
|
|
|
11
11
|
localId = props.localId;
|
|
12
12
|
var inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
13
13
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
return (
|
|
15
|
+
/*#__PURE__*/
|
|
16
|
+
// Ignored via go/ees005
|
|
17
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
18
|
+
React.createElement("span", inlineAnnotationProps, /*#__PURE__*/React.createElement(Mention, {
|
|
19
|
+
id: id,
|
|
20
|
+
text: text,
|
|
21
|
+
accessLevel: accessLevel,
|
|
22
|
+
providers: providers,
|
|
23
|
+
localId: localId,
|
|
24
|
+
eventHandlers: eventHandlers && eventHandlers.mention
|
|
25
|
+
}))
|
|
26
|
+
);
|
|
22
27
|
}
|
|
23
28
|
return /*#__PURE__*/React.createElement(Mention, {
|
|
24
29
|
id: id,
|
|
@@ -37,6 +37,8 @@ var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_re
|
|
|
37
37
|
updateParameters: function updateParameters(parameters) {
|
|
38
38
|
return false;
|
|
39
39
|
},
|
|
40
|
+
// Ignored via go/ees005
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
42
|
getChildren: function getChildren() {
|
|
41
43
|
return [];
|
|
42
44
|
}
|
|
@@ -57,7 +59,10 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
57
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
58
60
|
activeChildIndex = _useState2[0],
|
|
59
61
|
setActiveChildIndex = _useState2[1];
|
|
60
|
-
var removeOverflow = React.Children.toArray(children)
|
|
62
|
+
var removeOverflow = React.Children.toArray(children)
|
|
63
|
+
// Ignored via go/ees005
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
65
|
+
.map(function (child) {
|
|
61
66
|
return /*#__PURE__*/React.isValidElement(child) ? child.props.nodeType === 'table' : false;
|
|
62
67
|
}).every(Boolean);
|
|
63
68
|
var overflowContainerClass = !removeOverflow ? RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER : '';
|
|
@@ -92,7 +97,10 @@ var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
|
92
97
|
className: "multiBodiedExtension-navigation",
|
|
93
98
|
css: navigationCssExtended,
|
|
94
99
|
"data-testid": "multiBodiedExtension-navigation"
|
|
95
|
-
}, jsx(ExtensionRenderer
|
|
100
|
+
}, jsx(ExtensionRenderer
|
|
101
|
+
// Ignored via go/ees005
|
|
102
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
103
|
+
, _extends({}, props, {
|
|
96
104
|
actions: actions,
|
|
97
105
|
type: "multiBodiedExtension"
|
|
98
106
|
}), function (_ref2) {
|
|
@@ -22,5 +22,7 @@ export default function OrderedList(props) {
|
|
|
22
22
|
className: orderedListSelector.substr(1),
|
|
23
23
|
"data-indent-level": props.path ? getListIndentLevel(props.path) : 1,
|
|
24
24
|
start: props.start
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
25
27
|
}, extraProps), props.children);
|
|
26
28
|
}
|
|
@@ -28,7 +28,9 @@ var PanelStyled = function PanelStyled(_ref) {
|
|
|
28
28
|
styles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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"])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix(), PanelType.CUSTOM, hexToEditorBackgroundPaletteColor(backgroundColor) || backgroundColor, hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;');
|
|
29
29
|
}
|
|
30
30
|
return (
|
|
31
|
-
// eslint-disable-next-line
|
|
31
|
+
// eslint-disable-next-line
|
|
32
|
+
// Ignored via go/ees005
|
|
33
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
32
34
|
jsx("div", _extends({
|
|
33
35
|
css: styles
|
|
34
36
|
}, props), props.children)
|
|
@@ -7,6 +7,8 @@ export default function Paragraph(_ref) {
|
|
|
7
7
|
/*#__PURE__*/
|
|
8
8
|
// ignore the eslint warning Text primitive does not support dataAttributes
|
|
9
9
|
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
10
12
|
React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
|
|
11
13
|
);
|
|
12
14
|
}
|