@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
|
@@ -14,6 +14,8 @@ function Paragraph(_ref) {
|
|
|
14
14
|
/*#__PURE__*/
|
|
15
15
|
// ignore the eslint warning Text primitive does not support dataAttributes
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
17
|
+
// Ignored via go/ees005
|
|
18
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
17
19
|
_react.default.createElement("p", dataAttributes, /*#__PURE__*/_react.default.createElement(_inline.default, null, children))
|
|
18
20
|
);
|
|
19
21
|
}
|
|
@@ -18,17 +18,22 @@ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(function Status(p
|
|
|
18
18
|
localId = props.localId;
|
|
19
19
|
var inlineAnnotationProps = (0, _useInlineAnnotationProps.useInlineAnnotationProps)(props);
|
|
20
20
|
if ((0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
return (
|
|
22
|
+
/*#__PURE__*/
|
|
23
|
+
// Ignored via go/ees005
|
|
24
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
25
|
+
_react.default.createElement("span", inlineAnnotationProps, /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
|
|
26
|
+
data: {
|
|
27
|
+
userContext: 'document'
|
|
28
|
+
}
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement(_element.Status, {
|
|
30
|
+
text: text,
|
|
31
|
+
color: color,
|
|
32
|
+
localId: localId,
|
|
33
|
+
role: "presentation",
|
|
34
|
+
isBold: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh')
|
|
35
|
+
})))
|
|
36
|
+
);
|
|
32
37
|
}
|
|
33
38
|
return /*#__PURE__*/_react.default.createElement(_analyticsNamespacedContext.FabricElementsAnalyticsContext, {
|
|
34
39
|
data: {
|
|
@@ -28,7 +28,10 @@ var isTableColumnResized = function isTableColumnResized(columnWidths) {
|
|
|
28
28
|
});
|
|
29
29
|
return !!filteredWidths.length;
|
|
30
30
|
};
|
|
31
|
-
var fixColumnWidth = function fixColumnWidth(columnWidth, _tableWidth, _layoutWidth, zeroWidthColumnsCount, scaleDownPercent
|
|
31
|
+
var fixColumnWidth = function fixColumnWidth(columnWidth, _tableWidth, _layoutWidth, zeroWidthColumnsCount, scaleDownPercent
|
|
32
|
+
// Ignored via go/ees005
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
34
|
+
) {
|
|
32
35
|
if (columnWidth === 0) {
|
|
33
36
|
return columnWidth;
|
|
34
37
|
}
|
|
@@ -205,7 +208,8 @@ var Colgroup = exports.Colgroup = function Colgroup(props) {
|
|
|
205
208
|
}), colStyles.map(function (style, idx) {
|
|
206
209
|
return (
|
|
207
210
|
/*#__PURE__*/
|
|
208
|
-
//
|
|
211
|
+
// Ignored via go/ees005
|
|
212
|
+
// eslint-disable-next-line react/no-array-index-key, @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
209
213
|
_react.default.createElement("col", {
|
|
210
214
|
key: idx,
|
|
211
215
|
style: style
|
|
@@ -177,6 +177,9 @@ function findHorizontalOverflowScrollParent(table, defaultScrollRootId) {
|
|
|
177
177
|
if (!parent) {
|
|
178
178
|
return null;
|
|
179
179
|
}
|
|
180
|
+
|
|
181
|
+
// Ignored via go/ees005
|
|
182
|
+
// eslint-disable-next-line no-cond-assign
|
|
180
183
|
while (parent = parent.parentElement) {
|
|
181
184
|
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
182
185
|
var style = window.getComputedStyle(parent);
|
|
@@ -218,6 +221,9 @@ var OverflowParent = exports.OverflowParent = /*#__PURE__*/function () {
|
|
|
218
221
|
}
|
|
219
222
|
return 0;
|
|
220
223
|
}
|
|
224
|
+
|
|
225
|
+
// Ignored via go/ees005
|
|
226
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
221
227
|
}, {
|
|
222
228
|
key: "addEventListener",
|
|
223
229
|
value: function addEventListener(type, cb) {
|
|
@@ -225,8 +231,13 @@ var OverflowParent = exports.OverflowParent = /*#__PURE__*/function () {
|
|
|
225
231
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
226
232
|
args[_key - 2] = arguments[_key];
|
|
227
233
|
}
|
|
234
|
+
// Ignored via go/ees005
|
|
235
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
228
236
|
(_this$ref = this.ref).addEventListener.apply(_this$ref, [type, cb].concat(args));
|
|
229
237
|
}
|
|
238
|
+
|
|
239
|
+
// Ignored via go/ees005
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
230
241
|
}, {
|
|
231
242
|
key: "removeEventListener",
|
|
232
243
|
value: function removeEventListener(type, cb) {
|
|
@@ -234,6 +245,8 @@ var OverflowParent = exports.OverflowParent = /*#__PURE__*/function () {
|
|
|
234
245
|
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
235
246
|
args[_key2 - 2] = arguments[_key2];
|
|
236
247
|
}
|
|
248
|
+
// Ignored via go/ees005
|
|
249
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
237
250
|
(_this$ref2 = this.ref).removeEventListener.apply(_this$ref2, [type, cb].concat(args));
|
|
238
251
|
}
|
|
239
252
|
}], [{
|
|
@@ -44,7 +44,10 @@ var isStickyScrollbarEnabled = exports.isStickyScrollbarEnabled = function isSti
|
|
|
44
44
|
exposure: true
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus
|
|
47
|
+
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus
|
|
48
|
+
// Ignored via go/ees005
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
50
|
+
) {
|
|
48
51
|
if (!tableOrderStatus || tableOrderStatus.order === _types.SortOrder.NO_ORDER) {
|
|
49
52
|
return children;
|
|
50
53
|
}
|
|
@@ -88,7 +91,10 @@ var hasRowspan = function hasRowspan(row) {
|
|
|
88
91
|
var getRefTop = function getRefTop(refElement) {
|
|
89
92
|
return Math.round(refElement.getBoundingClientRect().top);
|
|
90
93
|
};
|
|
91
|
-
var shouldHeaderStick = function shouldHeaderStick(scrollTop, tableTop, tableBottom, rowHeight
|
|
94
|
+
var shouldHeaderStick = function shouldHeaderStick(scrollTop, tableTop, tableBottom, rowHeight
|
|
95
|
+
// Ignored via go/ees005
|
|
96
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
97
|
+
) {
|
|
92
98
|
return tableTop <= scrollTop && !(tableBottom - rowHeight <= scrollTop);
|
|
93
99
|
};
|
|
94
100
|
var shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tableBottom, rowHeight) {
|
|
@@ -109,6 +115,8 @@ var isHeaderRowEnabled = function isHeaderRowEnabled(rows) {
|
|
|
109
115
|
if (!rows.length) {
|
|
110
116
|
return false;
|
|
111
117
|
}
|
|
118
|
+
// Ignored via go/ees005
|
|
119
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112
120
|
var children = rows[0].props.children;
|
|
113
121
|
if (!children.length) {
|
|
114
122
|
return false;
|
|
@@ -123,6 +131,8 @@ var isHeaderRowEnabled = function isHeaderRowEnabled(rows) {
|
|
|
123
131
|
var tableCanBeSticky = function tableCanBeSticky(node, children) {
|
|
124
132
|
return isHeaderRowEnabled(children) && node && node.firstChild && !hasRowspan(node.firstChild);
|
|
125
133
|
};
|
|
134
|
+
// Ignored via go/ees005
|
|
135
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
126
136
|
var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
127
137
|
function TableContainer() {
|
|
128
138
|
var _this;
|
|
@@ -172,6 +182,8 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
172
182
|
});
|
|
173
183
|
(0, _defineProperty2.default)(_this, "componentWillUnmount", function () {
|
|
174
184
|
if (_this.overflowParent) {
|
|
185
|
+
// Ignored via go/ees005
|
|
186
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
175
187
|
_this.overflowParent.removeEventListener('scroll', _this.onScroll);
|
|
176
188
|
}
|
|
177
189
|
if (_this.nextFrame) {
|
|
@@ -228,6 +240,8 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
228
240
|
}
|
|
229
241
|
});
|
|
230
242
|
(0, _defineProperty2.default)(_this, "grabFirstRowRef", function (children) {
|
|
243
|
+
// Ignored via go/ees005
|
|
244
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
231
245
|
return _react.default.Children.map(children || false, function (child, idx) {
|
|
232
246
|
if (idx === 0 && /*#__PURE__*/_react.default.isValidElement(child)) {
|
|
233
247
|
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
@@ -253,6 +267,8 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
253
267
|
if (this.props.stickyHeaders) {
|
|
254
268
|
var _this$props$stickyHea;
|
|
255
269
|
this.overflowParent = _sticky.OverflowParent.fromElement(this.tableRef.current, (_this$props$stickyHea = this.props.stickyHeaders) === null || _this$props$stickyHea === void 0 ? void 0 : _this$props$stickyHea.defaultScrollRootId_DO_NOT_USE);
|
|
270
|
+
// Ignored via go/ees005
|
|
271
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
256
272
|
this.overflowParent.addEventListener('scroll', this.onScroll);
|
|
257
273
|
}
|
|
258
274
|
if (this.wrapperRef.current && isStickyScrollbarEnabled(this.props.rendererAppearance)) {
|
|
@@ -267,6 +283,8 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
267
283
|
var _this$props$stickyHea2;
|
|
268
284
|
this.overflowParent = _sticky.OverflowParent.fromElement(this.tableRef.current, (_this$props$stickyHea2 = this.props.stickyHeaders) === null || _this$props$stickyHea2 === void 0 ? void 0 : _this$props$stickyHea2.defaultScrollRootId_DO_NOT_USE);
|
|
269
285
|
} else if (!this.props.stickyHeaders && this.overflowParent) {
|
|
286
|
+
// Ignored via go/ees005
|
|
287
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
270
288
|
this.overflowParent.removeEventListener('scroll', this.onScroll);
|
|
271
289
|
this.overflowParent = null;
|
|
272
290
|
}
|
|
@@ -511,6 +529,8 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
511
529
|
}
|
|
512
530
|
}]);
|
|
513
531
|
}(_react.default.Component);
|
|
532
|
+
// Ignored via go/ees005
|
|
533
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
514
534
|
var TableProcessor = exports.TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
515
535
|
function TableProcessor() {
|
|
516
536
|
var _this2;
|
|
@@ -542,6 +562,8 @@ var TableProcessor = exports.TableProcessor = /*#__PURE__*/function (_React$Comp
|
|
|
542
562
|
}
|
|
543
563
|
});
|
|
544
564
|
});
|
|
565
|
+
// Ignored via go/ees005
|
|
566
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
545
567
|
(0, _defineProperty2.default)(_this2, "addNumberColumnIndexes", function (rows) {
|
|
546
568
|
var isNumberColumnEnabled = _this2.props.isNumberColumnEnabled;
|
|
547
569
|
var headerRowEnabled = isHeaderRowEnabled(rows);
|
|
@@ -566,6 +588,9 @@ var TableProcessor = exports.TableProcessor = /*#__PURE__*/function (_React$Comp
|
|
|
566
588
|
var orderedChildren = (0, _utils.compose)(this.addNumberColumnIndexes, this.addSortableColumn
|
|
567
589
|
// @ts-expect-error TS2345: Argument of type '(ReactChild | ReactFragment | ReactPortal)[]' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor<any>>[]'
|
|
568
590
|
)(childrenArray);
|
|
591
|
+
|
|
592
|
+
// Ignored via go/ees005
|
|
593
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
569
594
|
return /*#__PURE__*/_react.default.createElement(TableContainer, this.props, orderedChildren);
|
|
570
595
|
}
|
|
571
596
|
}]);
|
|
@@ -584,6 +609,8 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
584
609
|
return total + val;
|
|
585
610
|
}, 0)) || 0;
|
|
586
611
|
if (colWidthsSum || props.allowTableResizing) {
|
|
612
|
+
// Ignored via go/ees005
|
|
613
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
587
614
|
return /*#__PURE__*/_react.default.createElement(TableWithShadows, (0, _extends2.default)({
|
|
588
615
|
renderWidth: renderWidth
|
|
589
616
|
}, props));
|
|
@@ -591,6 +618,8 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
591
618
|
// there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
|
|
592
619
|
return /*#__PURE__*/_react.default.createElement(TableProcessor, (0, _extends2.default)({
|
|
593
620
|
renderWidth: renderWidth
|
|
621
|
+
// Ignored via go/ees005
|
|
622
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
594
623
|
}, props));
|
|
595
624
|
});
|
|
596
625
|
};
|
|
@@ -44,7 +44,12 @@ var getSortOrderLabel = function getSortOrderLabel(intl, currentSortOrder) {
|
|
|
44
44
|
return intl.formatMessage(noneSortingLabel);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
+
|
|
48
|
+
// Ignored via go/ees005
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
47
50
|
var getDataAttributes = function getDataAttributes(colwidth, background) {
|
|
51
|
+
// Ignored via go/ees005
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
53
|
var attrs = {};
|
|
49
54
|
if (colwidth) {
|
|
50
55
|
attrs['data-colwidth'] = colwidth.join(',');
|
|
@@ -68,6 +73,9 @@ var getDataAttributes = function getDataAttributes(colwidth, background) {
|
|
|
68
73
|
}
|
|
69
74
|
return attrs;
|
|
70
75
|
};
|
|
76
|
+
|
|
77
|
+
// Ignored via go/ees005
|
|
78
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
71
79
|
var cssVariablePattern = /^var\(--.*\)$/;
|
|
72
80
|
var getStyle = function getStyle(_ref) {
|
|
73
81
|
var background = _ref.background,
|
|
@@ -164,6 +172,8 @@ var getWithCellProps = function getWithCellProps(WrapperComponent) {
|
|
|
164
172
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
165
173
|
,
|
|
166
174
|
className: className
|
|
175
|
+
// Ignored via go/ees005
|
|
176
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
167
177
|
}, getDataAttributes(colwidth, background), {
|
|
168
178
|
"aria-sort": ariaSort
|
|
169
179
|
}), children);
|
|
@@ -180,9 +190,14 @@ var withSortableColumn = exports.withSortableColumn = function withSortableColum
|
|
|
180
190
|
isHeaderRow = props.isHeaderRow;
|
|
181
191
|
var sortOrderedClassName = sortOrdered === _types.SortOrder.NO_ORDER ? _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER : '';
|
|
182
192
|
if (!allowColumnSorting || !isHeaderRow) {
|
|
193
|
+
// Ignored via go/ees005
|
|
194
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
183
195
|
return /*#__PURE__*/_react.default.createElement(WrapperComponent, props);
|
|
184
196
|
}
|
|
185
|
-
return /*#__PURE__*/_react.default.createElement(WrapperComponent
|
|
197
|
+
return /*#__PURE__*/_react.default.createElement(WrapperComponent
|
|
198
|
+
// Ignored via go/ees005
|
|
199
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
200
|
+
, (0, _extends2.default)({}, props, {
|
|
186
201
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
187
202
|
className: _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER,
|
|
188
203
|
ariaSort: getSortOrderLabel(intl, sortOrdered)
|
|
@@ -199,6 +214,8 @@ var withSortableColumn = exports.withSortableColumn = function withSortableColum
|
|
|
199
214
|
}))));
|
|
200
215
|
function onKeyPress(event) {
|
|
201
216
|
var keys = [' ', 'Enter', 'Spacebar'];
|
|
217
|
+
// Ignored via go/ees005
|
|
218
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
202
219
|
var _ref2 = event.target,
|
|
203
220
|
tagName = _ref2.tagName;
|
|
204
221
|
// trigger sorting if space or enter are clicked but not when in an input field (template variables)
|
|
@@ -17,6 +17,8 @@ var _types = require("@atlaskit/editor-common/types");
|
|
|
17
17
|
var _consts = require("../../consts");
|
|
18
18
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
+
// Ignored via go/ees005
|
|
21
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
20
22
|
var TableRow = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
21
23
|
function TableRow() {
|
|
22
24
|
var _this;
|
|
@@ -58,6 +58,9 @@ function TaskItemWithProviders(props) {
|
|
|
58
58
|
updateContextIdentifierProvider(props.contextIdentifierProvider);
|
|
59
59
|
}, [props.contextIdentifierProvider, updateContextIdentifierProvider]);
|
|
60
60
|
var resolvedObjectId = resolvedContextProvider && resolvedContextProvider.objectId || objectAri;
|
|
61
|
+
|
|
62
|
+
// Ignored via go/ees005
|
|
63
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
61
64
|
return /*#__PURE__*/_react.default.createElement(_taskDecision.ResourcedTaskItem, (0, _extends2.default)({}, otherProps, {
|
|
62
65
|
objectAri: resolvedObjectId,
|
|
63
66
|
isRenderer: isRenderer
|
|
@@ -22,11 +22,15 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
22
22
|
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 && {}.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
23
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
24
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
25
27
|
var TaskItem = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
26
28
|
function TaskItem(props) {
|
|
27
29
|
var _this;
|
|
28
30
|
(0, _classCallCheck2.default)(this, TaskItem);
|
|
29
31
|
_this = _callSuper(this, TaskItem, [props]);
|
|
32
|
+
// Ignored via go/ees005
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
34
|
(0, _defineProperty2.default)(_this, "renderWithProvider", function (providers) {
|
|
31
35
|
var taskDecisionProvider = providers.taskDecisionProvider,
|
|
32
36
|
contextIdentifierProvider = providers.contextIdentifierProvider;
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
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 && {}.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; }
|
|
18
18
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
+
// Ignored via go/ees005
|
|
21
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
20
22
|
var TaskList = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
21
23
|
function TaskList() {
|
|
22
24
|
(0, _classCallCheck2.default)(this, TaskList);
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.renderTextSegments = renderTextSegments;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
// Ignored via go/ees005
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
9
11
|
function renderTextSegments(segments, textHighlighter, marksList, startPos) {
|
|
10
12
|
var Component = textHighlighter === null || textHighlighter === void 0 ? void 0 : textHighlighter.component;
|
|
11
13
|
var marks = new Set(marksList.map(function (m) {
|
|
@@ -32,7 +32,10 @@ function segmentText(text, highlighter) {
|
|
|
32
32
|
segments.push({
|
|
33
33
|
type: 'match',
|
|
34
34
|
text: markTextMatch[0],
|
|
35
|
-
groups: markTextMatch.groups &&
|
|
35
|
+
groups: markTextMatch.groups &&
|
|
36
|
+
// Ignored via go/ees005
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
38
|
+
Object.keys(markTextMatch.groups).filter(function (key) {
|
|
36
39
|
return markTextMatch.groups[key];
|
|
37
40
|
})
|
|
38
41
|
});
|
|
@@ -15,6 +15,9 @@ var useSelectAllTrap = exports.useSelectAllTrap = function useSelectAllTrap() {
|
|
|
15
15
|
var ref = _react.default.useRef(null);
|
|
16
16
|
var clicked = _react.default.useRef(false);
|
|
17
17
|
var caught = _react.default.useRef();
|
|
18
|
+
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
18
21
|
var mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;
|
|
19
22
|
var onKeyDown = _react.default.useCallback(function (e) {
|
|
20
23
|
var _e$target, _e$target$matches;
|
|
@@ -51,10 +54,18 @@ var useSelectAllTrap = exports.useSelectAllTrap = function useSelectAllTrap() {
|
|
|
51
54
|
clicked.current = (_ref$current$contains = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.contains(e.target)) !== null && _ref$current$contains !== void 0 ? _ref$current$contains : false;
|
|
52
55
|
}, [ref, clicked]);
|
|
53
56
|
_react.default.useEffect(function () {
|
|
57
|
+
// Ignored via go/ees005
|
|
58
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
54
59
|
window.addEventListener('keydown', onKeyDown);
|
|
60
|
+
// Ignored via go/ees005
|
|
61
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
55
62
|
window.addEventListener('click', onClick);
|
|
56
63
|
return function () {
|
|
64
|
+
// Ignored via go/ees005
|
|
65
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
57
66
|
window.removeEventListener('keydown', onKeyDown);
|
|
67
|
+
// Ignored via go/ees005
|
|
68
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
58
69
|
window.removeEventListener('click', onClick);
|
|
59
70
|
};
|
|
60
71
|
}, [onKeyDown, onClick]);
|
|
@@ -30,7 +30,10 @@ var withStopwatch = function withStopwatch(cb) {
|
|
|
30
30
|
time: time
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
var _validation = function _validation(doc, schema, adfStage, useSpecBasedValidator, dispatchAnalyticsEvent, skipValidation
|
|
33
|
+
var _validation = function _validation(doc, schema, adfStage, useSpecBasedValidator, dispatchAnalyticsEvent, skipValidation
|
|
34
|
+
// Ignored via go/ees005
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
36
|
+
) {
|
|
34
37
|
var result;
|
|
35
38
|
if (useSpecBasedValidator) {
|
|
36
39
|
// link mark on mediaSingle is deprecated, need to move link mark to child media node
|
|
@@ -113,6 +116,9 @@ var memoValidation = (0, _memoizeOne.default)(_validation, function (newArgs, la
|
|
|
113
116
|
var result = areDocsEqual(newDoc, oldDoc) && newSchema === oldSchema && newADFStage === oldADFStage && newUseSpecValidator === oldUseSpecValidator && skipValidation === oldSkipValidation;
|
|
114
117
|
return result;
|
|
115
118
|
});
|
|
119
|
+
|
|
120
|
+
// Ignored via go/ees005
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
116
122
|
var areDocsEqual = function areDocsEqual(docA, docB) {
|
|
117
123
|
if (docA === docB) {
|
|
118
124
|
return true;
|
|
@@ -179,7 +185,10 @@ var renderDocument = exports.renderDocument = function renderDocument(doc, seria
|
|
|
179
185
|
var unsupportedContentLevelsTracking = arguments.length > 7 ? arguments[7] : undefined;
|
|
180
186
|
var appearance = arguments.length > 8 ? arguments[8] : undefined;
|
|
181
187
|
var includeNodesCountInStats = arguments.length > 9 ? arguments[9] : undefined;
|
|
182
|
-
var skipValidation
|
|
188
|
+
var skipValidation
|
|
189
|
+
// Ignored via go/ees005
|
|
190
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
191
|
+
= arguments.length > 10 ? arguments[10] : undefined;
|
|
183
192
|
var stat = {
|
|
184
193
|
sanitizeTime: 0
|
|
185
194
|
};
|
package/dist/cjs/steps/index.js
CHANGED
|
@@ -56,6 +56,8 @@ function isTextNode(node) {
|
|
|
56
56
|
}
|
|
57
57
|
function isHighlightTextNode(node) {
|
|
58
58
|
var _dataset;
|
|
59
|
+
// Ignored via go/ees005
|
|
60
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
59
61
|
return !!(node !== null && node !== void 0 && (_dataset = node.dataset) !== null && _dataset !== void 0 && _dataset.highlighted);
|
|
60
62
|
}
|
|
61
63
|
function isNodeInlineMark(node) {
|
|
@@ -219,7 +221,10 @@ function getPosFromRange(range) {
|
|
|
219
221
|
var possibleMediaOrMediaSingleElement = findParent(startContainer);
|
|
220
222
|
|
|
221
223
|
// Video hover targets return media single, not media, thus, the extra check in condition.
|
|
222
|
-
var isMediaOrMediaSingle = possibleMediaOrMediaSingleElement &&
|
|
224
|
+
var isMediaOrMediaSingle = possibleMediaOrMediaSingleElement &&
|
|
225
|
+
// Ignored via go/ees005
|
|
226
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
227
|
+
/media|mediaSingle/.test(getNodeType(possibleMediaOrMediaSingleElement) || '');
|
|
223
228
|
if (isMediaOrMediaSingle) {
|
|
224
229
|
var pos;
|
|
225
230
|
var mediaSingleElement = getNodeType(possibleMediaOrMediaSingleElement) === 'mediaSingle' ? possibleMediaOrMediaSingleElement : findMediaParent(possibleMediaOrMediaSingleElement);
|
package/dist/cjs/text/index.js
CHANGED
|
@@ -23,6 +23,9 @@ var TextSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
23
23
|
fragment.forEach(function (n) {
|
|
24
24
|
result.push((0, _nodes.reduce)(n, _this.schema));
|
|
25
25
|
});
|
|
26
|
+
|
|
27
|
+
// Ignored via go/ees005
|
|
28
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
26
29
|
return result.join('\n').replace(/\n+/g, '\n');
|
|
27
30
|
}
|
|
28
31
|
}], [{
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -56,7 +56,8 @@ var Container = function Container(props) {
|
|
|
56
56
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t", "\n\t\tpadding: 0;\n\t\tpadding-bottom: ", ";\n\t"])), sharedContainerStyles(), paddingBottom);
|
|
57
57
|
};
|
|
58
58
|
return (
|
|
59
|
-
//
|
|
59
|
+
// Ignored via go/ees005
|
|
60
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
|
|
60
61
|
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
61
62
|
css: styles
|
|
62
63
|
}, props), props.children)
|
|
@@ -72,7 +73,8 @@ var TitleContainer = function TitleContainer(props) {
|
|
|
72
73
|
var expanded = props.expanded,
|
|
73
74
|
buttonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
74
75
|
return (
|
|
75
|
-
//
|
|
76
|
+
// Ignored via go/ees005
|
|
77
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
|
|
76
78
|
(0, _react.jsx)("button", (0, _extends2.default)({
|
|
77
79
|
type: "button",
|
|
78
80
|
css: styles
|
|
@@ -89,7 +91,9 @@ var ContentContainer = function ContentContainer(props) {
|
|
|
89
91
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t", ";\n\t\tpadding-right: ", ";\n\t\tpadding-left: ", ";\n\t\tvisibility: ", ";\n\t"])), sharedContentStyles(), "var(--ds-space-200, 16px)", "var(--ds-space-400, 32px)", visibility);
|
|
90
92
|
};
|
|
91
93
|
return (
|
|
92
|
-
// eslint-disable-next-line
|
|
94
|
+
// eslint-disable-next-line
|
|
95
|
+
// Ignored via go/ees005
|
|
96
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
|
|
93
97
|
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
94
98
|
css: styles
|
|
95
99
|
}, props), props.children)
|
|
@@ -50,6 +50,9 @@ function ExtensionRenderer(props) {
|
|
|
50
50
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
51
51
|
extensionProvider = _React$useState2[0],
|
|
52
52
|
setExtensionProvider = _React$useState2[1];
|
|
53
|
+
|
|
54
|
+
// Ignored via go/ees005
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
56
|
var handleProvider = _react2.default.useCallback(function (name, providerPromise) {
|
|
54
57
|
providerPromise && providerPromise.then(function (provider) {
|
|
55
58
|
if (isMounted.current) {
|
package/dist/cjs/ui/MediaCard.js
CHANGED
|
@@ -56,6 +56,9 @@ var getListOfIdentifiersFromDoc = exports.getListOfIdentifiersFromDoc = function
|
|
|
56
56
|
return identifierList;
|
|
57
57
|
}, []);
|
|
58
58
|
};
|
|
59
|
+
|
|
60
|
+
// Ignored via go/ees005
|
|
61
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
59
62
|
var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
60
63
|
function MediaCardView() {
|
|
61
64
|
var _this;
|
|
@@ -228,29 +231,38 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
228
231
|
// we need this statement for the mandatory mediaClientConfig below
|
|
229
232
|
var mediaClientConfig = mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig;
|
|
230
233
|
if ((0, _platformFeatureFlags.fg)('platform_editor_external_media_comment_bugfix')) {
|
|
231
|
-
return
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
234
|
+
return (
|
|
235
|
+
/*#__PURE__*/
|
|
236
|
+
// Ignored via go/ees005
|
|
237
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
238
|
+
_react.default.createElement("div", (0, _extends2.default)({}, dataAttributes, {
|
|
239
|
+
"data-node-type": "media"
|
|
240
|
+
}), /*#__PURE__*/_react.default.createElement(_mediaCard.Card
|
|
241
|
+
// TODO MPT-315: clean up after we move mediaClientConfig into FileIdentifier
|
|
242
|
+
// context is not really used when the type is external and we want to render the component asap
|
|
243
|
+
// Ignored via go/ees005
|
|
244
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
245
|
+
, {
|
|
246
|
+
mediaClientConfig: mediaClientConfig,
|
|
247
|
+
alt: alt,
|
|
248
|
+
identifier: identifier,
|
|
249
|
+
dimensions: cardDimensions,
|
|
250
|
+
appearance: appearance,
|
|
251
|
+
resizeMode: resizeMode,
|
|
252
|
+
disableOverlay: disableOverlay,
|
|
253
|
+
shouldOpenMediaViewer: shouldOpenMediaViewer,
|
|
254
|
+
mediaViewerItems: Array.from(mediaIdentifierMap.values()),
|
|
255
|
+
featureFlags: featureFlags,
|
|
256
|
+
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
257
|
+
shouldHideTooltip: false
|
|
258
|
+
}))
|
|
259
|
+
);
|
|
250
260
|
} else {
|
|
251
261
|
return /*#__PURE__*/_react.default.createElement(_mediaCard.Card
|
|
252
262
|
// TODO MPT-315: clean up after we move mediaClientConfig into FileIdentifier
|
|
253
263
|
// context is not really used when the type is external and we want to render the component asap
|
|
264
|
+
// Ignored via go/ees005
|
|
265
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
254
266
|
, {
|
|
255
267
|
mediaClientConfig: mediaClientConfig,
|
|
256
268
|
alt: alt,
|
|
@@ -381,6 +393,9 @@ var getClipboardAttrs = exports.getClipboardAttrs = function getClipboardAttrs(_
|
|
|
381
393
|
};
|
|
382
394
|
var MediaCardInternal = exports.MediaCardInternal = function MediaCardInternal(props) {
|
|
383
395
|
var mediaClient = (0, _react.useContext)(_mediaClientReact.MediaClientContext);
|
|
396
|
+
|
|
397
|
+
// Ignored via go/ees005
|
|
398
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
384
399
|
return /*#__PURE__*/_react.default.createElement(MediaCardView, (0, _extends2.default)({}, props, {
|
|
385
400
|
mediaClient: mediaClient
|
|
386
401
|
}));
|
|
@@ -19,6 +19,8 @@ var _events = require("../../analytics/events");
|
|
|
19
19
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
20
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
|
+
// Ignored via go/ees005
|
|
23
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
22
24
|
var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
23
25
|
function ErrorBoundary() {
|
|
24
26
|
var _this;
|
|
@@ -74,6 +76,8 @@ var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_React$Compon
|
|
|
74
76
|
(0, _monitoring.logException)(error, {
|
|
75
77
|
location: 'renderer'
|
|
76
78
|
});
|
|
79
|
+
// Ignored via go/ees005
|
|
80
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
77
81
|
var pattern = /Failed to execute.*on 'Node'.*/;
|
|
78
82
|
var matchesPattern = pattern.test(error.message);
|
|
79
83
|
if (matchesPattern) {
|