@atlaskit/renderer 112.7.11 → 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 +14 -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 +2 -2
- package/tsconfig.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 112.7.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#98012](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98012)
|
|
8
|
+
[`fd9a8c58ce559`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fd9a8c58ce559) -
|
|
9
|
+
ED-25744 Removed superfluous curly bracket in nested table renderer styles which caused HOT-113841
|
|
10
|
+
|
|
11
|
+
## 112.7.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 112.7.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -23,6 +23,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
23
23
|
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; }
|
|
24
24
|
var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
25
25
|
// Any kind of refence is allowed
|
|
26
|
+
// Ignored via go/ees005
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
28
|
|
|
27
29
|
function RendererActions() {
|
|
28
30
|
var initFromContext = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -36,6 +38,8 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
//#region private
|
|
41
|
+
// Ignored via go/ees005
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
39
43
|
return (0, _createClass2.default)(RendererActions, [{
|
|
40
44
|
key: "_privateRegisterRenderer",
|
|
41
45
|
value: function _privateRegisterRenderer(ref, doc, schema, onAnalyticsEvent) {
|
|
@@ -134,6 +138,8 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
134
138
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
135
139
|
attributes: {
|
|
136
140
|
inlineNodeNames: step instanceof _transform.RemoveMarkStep ? (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
141
|
+
// Ignored via go/ees005
|
|
142
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
137
143
|
pos: {
|
|
138
144
|
from: from,
|
|
139
145
|
to: to
|
|
@@ -8,6 +8,8 @@ exports.getIndexMatch = getIndexMatch;
|
|
|
8
8
|
// getIndexMatch finds the position of a given string within a given document, in accordance to the Confluence Annotation backend
|
|
9
9
|
// The document is serialised into one large string, excluding any nodes that can not have annotations (eg: emojis, media).
|
|
10
10
|
// Finds where the given query string is relative to the serialised partial document
|
|
11
|
+
// Ignored via go/ees005
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
11
13
|
function getIndexMatch(doc, schema, selectedText, startIndex) {
|
|
12
14
|
var textContent = '';
|
|
13
15
|
var matchIndex = 0;
|
|
@@ -62,6 +64,10 @@ function countMatches(searchString, query) {
|
|
|
62
64
|
return 0;
|
|
63
65
|
}
|
|
64
66
|
// Escape characters that would trigger as syntax in a regex query before converting to the query
|
|
67
|
+
// Ignored via go/ees005
|
|
68
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
69
|
+
// Ignored via go/ees005
|
|
70
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
65
71
|
var reg = new RegExp(query.replace(/(?=[.\\+*?[^\]$(){}\|])/g, '\\'), 'g');
|
|
66
72
|
return (searchString.match(reg) || []).length;
|
|
67
73
|
}
|
|
@@ -7,6 +7,9 @@ exports.trackUnsupportedContentLevels = void 0;
|
|
|
7
7
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
8
8
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
9
9
|
var _events = require("./events");
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
|
|
10
13
|
var rendersMap = {};
|
|
11
14
|
var processLevelsAndTrack = function processLevelsAndTrack(item, thresholds, dispatchAnalyticsEvent) {
|
|
12
15
|
try {
|
|
@@ -44,7 +47,11 @@ var processLevelsAndTrack = function processLevelsAndTrack(item, thresholds, dis
|
|
|
44
47
|
}
|
|
45
48
|
};
|
|
46
49
|
var schedule = function schedule(fn) {
|
|
50
|
+
// Ignored via go/ees005
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
47
52
|
if (typeof window.requestIdleCallback === 'function') {
|
|
53
|
+
// Ignored via go/ees005
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
55
|
window.requestIdleCallback(fn);
|
|
49
56
|
} else {
|
|
50
57
|
setTimeout(fn, 0);
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -95,6 +95,10 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
95
95
|
return _this.renderMark((0, _marks.toReact)(mark), _this.withMediaMarkProps(node, mark, _this.getMarkProps(mark, [], node)), "".concat(mark.type.name, "-").concat(index), content);
|
|
96
96
|
}, serializedContent);
|
|
97
97
|
});
|
|
98
|
+
// Ignored via go/ees005
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
|
+
// Ignored via go/ees005
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
98
102
|
(0, _defineProperty2.default)(this, "withMediaMarkProps", function (node, mark, defaultProps) {
|
|
99
103
|
if (mark.type.name === 'link' && node.type.name === 'media') {
|
|
100
104
|
return _objectSpread(_objectSpread({}, defaultProps), {}, {
|
|
@@ -253,6 +257,9 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
253
257
|
return this.getProps(node, path);
|
|
254
258
|
}
|
|
255
259
|
}
|
|
260
|
+
|
|
261
|
+
// Ignored via go/ees005
|
|
262
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
256
263
|
}, {
|
|
257
264
|
key: "serializeFragment",
|
|
258
265
|
value: function serializeFragment(fragment) {
|
|
@@ -316,6 +323,9 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
316
323
|
}
|
|
317
324
|
});
|
|
318
325
|
};
|
|
326
|
+
|
|
327
|
+
// Ignored via go/ees005
|
|
328
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
319
329
|
var content = (mark.content || []).map(serializeContent);
|
|
320
330
|
var markKey = "".concat(mark.type.name, "-component__").concat(this.startPos, "__").concat(parentMark.path.length);
|
|
321
331
|
return this.renderMark((0, _marks.toReact)(mark), this.getMarkProps(mark, parentMark.path), markKey, content);
|
|
@@ -337,19 +347,50 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
337
347
|
var segments = (0, _segmentText.segmentText)(mark.text, this.textHighlighter);
|
|
338
348
|
return (0, _renderTextSegments.renderTextSegments)(segments, this.textHighlighter, mark.marks, startPos);
|
|
339
349
|
}
|
|
350
|
+
|
|
351
|
+
// Ignored via go/ees005
|
|
352
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
340
353
|
}, {
|
|
341
354
|
key: "renderNode",
|
|
342
|
-
value: function renderNode(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
355
|
+
value: function renderNode(
|
|
356
|
+
// Ignored via go/ees005
|
|
357
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
358
|
+
NodeComponent,
|
|
359
|
+
// Ignored via go/ees005
|
|
360
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
361
|
+
props, key,
|
|
362
|
+
// Ignored via go/ees005
|
|
363
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
364
|
+
content) {
|
|
365
|
+
return (
|
|
366
|
+
/*#__PURE__*/
|
|
367
|
+
// Ignored via go/ees005
|
|
368
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
369
|
+
_react.default.createElement(NodeComponent, (0, _extends2.default)({
|
|
370
|
+
key: key
|
|
371
|
+
}, props), content)
|
|
372
|
+
);
|
|
346
373
|
}
|
|
374
|
+
|
|
375
|
+
// Ignored via go/ees005
|
|
376
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
347
377
|
}, {
|
|
348
378
|
key: "renderMark",
|
|
349
|
-
value: function renderMark(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
379
|
+
value: function renderMark(
|
|
380
|
+
// Ignored via go/ees005
|
|
381
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
382
|
+
MarkComponent, props, key,
|
|
383
|
+
// Ignored via go/ees005
|
|
384
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
385
|
+
content) {
|
|
386
|
+
return (
|
|
387
|
+
/*#__PURE__*/
|
|
388
|
+
// Ignored via go/ees005
|
|
389
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
390
|
+
_react.default.createElement(MarkComponent, (0, _extends2.default)({
|
|
391
|
+
key: key
|
|
392
|
+
}, props), content)
|
|
393
|
+
);
|
|
353
394
|
}
|
|
354
395
|
}, {
|
|
355
396
|
key: "getTableChildrenProps",
|
|
@@ -621,9 +662,17 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
621
662
|
|
|
622
663
|
// We are not use node.textContent here, because we would like to handle cases where
|
|
623
664
|
// headings only contain inline blocks like emoji, status and date.
|
|
624
|
-
|
|
665
|
+
// Ignored via go/ees005
|
|
666
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
667
|
+
var nodeContent = node.content.toJSON()
|
|
668
|
+
// Ignored via go/ees005
|
|
669
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
670
|
+
.reduce(function (acc, node) {
|
|
625
671
|
return acc.concat((0, _utils2.getText)(node) || '');
|
|
626
|
-
}, '').trim()
|
|
672
|
+
}, '').trim()
|
|
673
|
+
// Ignored via go/ees005
|
|
674
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
675
|
+
.replace(/\s/g, '-');
|
|
627
676
|
if (!nodeContent) {
|
|
628
677
|
return;
|
|
629
678
|
}
|
|
@@ -677,6 +726,8 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
677
726
|
eq: eq,
|
|
678
727
|
content: [acc]
|
|
679
728
|
});
|
|
729
|
+
// Ignored via go/ees005
|
|
730
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
680
731
|
}, node);
|
|
681
732
|
}));
|
|
682
733
|
}
|
|
@@ -19,12 +19,12 @@ var _templateObject;
|
|
|
19
19
|
var MarkWrapper = function MarkWrapper(props) {
|
|
20
20
|
var styles = props['data-align'] ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
21
21
|
(0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\ttext-align: ", ";\n\t\t\t"])), _adfSchema.alignmentPositionMap[props['data-align']]) : '';
|
|
22
|
-
return (
|
|
22
|
+
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
23
23
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
);
|
|
24
|
+
css: styles
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
27
|
+
}, props), props.children);
|
|
28
28
|
};
|
|
29
29
|
function Alignment(props) {
|
|
30
30
|
return (0, _react2.jsx)(MarkWrapper
|
|
@@ -46,8 +46,13 @@ var AnnotationComponent = function AnnotationComponent(_ref) {
|
|
|
46
46
|
useBlockLevel: useBlockLevel
|
|
47
47
|
}, children);
|
|
48
48
|
}
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
return (
|
|
50
|
+
/*#__PURE__*/
|
|
51
|
+
// Ignored via go/ees005
|
|
52
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
53
|
+
_react.default.createElement("span", (0, _extends2.default)({
|
|
54
|
+
id: id
|
|
55
|
+
}, data), children)
|
|
56
|
+
);
|
|
52
57
|
};
|
|
53
58
|
var _default = exports.default = AnnotationComponent;
|
|
@@ -30,6 +30,8 @@ function Breakout(props) {
|
|
|
30
30
|
return (0, _react.jsx)("div", (0, _extends2.default)({
|
|
31
31
|
css: wrapperStyles,
|
|
32
32
|
"data-mode": props.mode
|
|
33
|
+
// Ignored via go/ees005
|
|
34
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
33
35
|
}, (0, _experiments.editorExperiment)('advanced_layouts', true) && {
|
|
34
36
|
'data-has-width': !!props.width,
|
|
35
37
|
'data-width': props.width
|
|
@@ -22,6 +22,8 @@ function CodeWithIntl(props) {
|
|
|
22
22
|
className: "code",
|
|
23
23
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
24
24
|
codeBidiWarningTooltipEnabled: props.codeBidiWarningTooltipEnabled
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
25
27
|
}, props.dataAttributes), props.children);
|
|
26
28
|
}
|
|
27
29
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(CodeWithIntl);
|
|
@@ -16,6 +16,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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; }
|
|
17
17
|
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)); }
|
|
18
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components, react/prefer-stateless-function
|
|
19
21
|
var ConfluenceInlineComment = exports.default = /*#__PURE__*/function (_Component) {
|
|
20
22
|
function ConfluenceInlineComment() {
|
|
21
23
|
(0, _classCallCheck2.default)(this, ConfluenceInlineComment);
|
|
@@ -12,5 +12,7 @@ function DataConsumer(props) {
|
|
|
12
12
|
return /*#__PURE__*/_react.default.createElement(WrapperElement, (0, _extends2.default)({
|
|
13
13
|
"data-source": props.sources ? JSON.stringify(props.sources) : undefined,
|
|
14
14
|
"data-mark-type": "dataConsumer"
|
|
15
|
+
// Ignored via go/ees005
|
|
16
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
15
17
|
}, props.dataAttributes), props.children);
|
|
16
18
|
}
|
|
@@ -9,5 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
function Em(props) {
|
|
10
10
|
// ignore the eslint warning Text primitive does not support dataAttributes
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
12
|
+
// Ignored via go/ees005
|
|
13
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
12
14
|
return /*#__PURE__*/_react.default.createElement("em", props.dataAttributes, props.children);
|
|
13
15
|
}
|
|
@@ -13,5 +13,7 @@ function FragmentMark(props) {
|
|
|
13
13
|
"data-localId": props.localId,
|
|
14
14
|
"data-name": props.name,
|
|
15
15
|
"data-mark-type": "fragment"
|
|
16
|
+
// Ignored via go/ees005
|
|
17
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
16
18
|
}, props.dataAttributes), props.children);
|
|
17
19
|
}
|
|
@@ -156,6 +156,9 @@ var markToReact = exports.markToReact = {
|
|
|
156
156
|
dataConsumer: _dataConsumer.default,
|
|
157
157
|
fragment: _fragment.default
|
|
158
158
|
};
|
|
159
|
+
|
|
160
|
+
// Ignored via go/ees005
|
|
161
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
159
162
|
var toReact = exports.toReact = function toReact(mark) {
|
|
160
163
|
return markToReact[mark.type.name];
|
|
161
164
|
};
|
|
@@ -81,6 +81,8 @@ function Link(props) {
|
|
|
81
81
|
handler(e, href);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
// Ignored via go/ees005
|
|
85
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
84
86
|
}, anchorProps, dataAttributes, (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') && {
|
|
85
87
|
isLinkComponent: true
|
|
86
88
|
}), props.children));
|
|
@@ -8,13 +8,10 @@ exports.default = Strike;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
function Strike(props) {
|
|
11
|
-
return (
|
|
12
|
-
/*#__PURE__*/
|
|
11
|
+
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, props.dataAttributes, {
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}), props.children)
|
|
19
|
-
);
|
|
13
|
+
style: {
|
|
14
|
+
textDecoration: 'line-through'
|
|
15
|
+
}
|
|
16
|
+
}), props.children);
|
|
20
17
|
}
|
|
@@ -9,5 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
function Strong(props) {
|
|
10
10
|
// ignore the eslint warning Text primitive does not support dataAttributes
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
12
|
+
// Ignored via go/ees005
|
|
13
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
12
14
|
return /*#__PURE__*/_react.default.createElement("strong", props.dataAttributes, props.children);
|
|
13
15
|
}
|
|
@@ -11,7 +11,12 @@ var isSub = function isSub(type) {
|
|
|
11
11
|
};
|
|
12
12
|
function SubSup(props) {
|
|
13
13
|
if (isSub(props.type)) {
|
|
14
|
+
// Ignored via go/ees005
|
|
15
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
14
16
|
return /*#__PURE__*/_react.default.createElement("sub", props.dataAttributes, props.children);
|
|
15
17
|
}
|
|
18
|
+
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
16
21
|
return /*#__PURE__*/_react.default.createElement("sup", props.dataAttributes, props.children);
|
|
17
22
|
}
|
|
@@ -7,5 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = Underline;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
function Underline(props) {
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
10
12
|
return /*#__PURE__*/_react.default.createElement("u", props.dataAttributes, props.children);
|
|
11
13
|
}
|
|
@@ -7,5 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = UnsupportedMark;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
function UnsupportedMark(props) {
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
10
12
|
return /*#__PURE__*/_react.default.createElement("span", props.dataAttributes, props.children);
|
|
11
13
|
}
|
|
@@ -7,5 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = UnsupportedNodeAttribute;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
function UnsupportedNodeAttribute(props) {
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
10
12
|
return /*#__PURE__*/_react.default.createElement("span", props.dataAttributes, props.children);
|
|
11
13
|
}
|
|
@@ -27,6 +27,8 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
27
27
|
key: "dispose",
|
|
28
28
|
value: function dispose() {
|
|
29
29
|
if (this.stickyScrollbarContainerElement) {
|
|
30
|
+
// Ignored via go/ees005
|
|
31
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
30
32
|
this.stickyScrollbarContainerElement.removeEventListener('scroll', this.handleScroll);
|
|
31
33
|
}
|
|
32
34
|
this.deleteIntersectionObserver();
|
|
@@ -47,6 +49,8 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
47
49
|
}
|
|
48
50
|
this.stickyScrollbarContainerElement = (_this$wrapper$parentE = this.wrapper.parentElement) === null || _this$wrapper$parentE === void 0 ? void 0 : _this$wrapper$parentE.querySelector(".".concat(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER));
|
|
49
51
|
if (this.stickyScrollbarContainerElement) {
|
|
52
|
+
// Ignored via go/ees005
|
|
53
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
50
54
|
this.stickyScrollbarContainerElement.addEventListener('scroll', this.handleScroll, {
|
|
51
55
|
passive: true
|
|
52
56
|
});
|
|
@@ -68,6 +72,8 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
68
72
|
return;
|
|
69
73
|
}
|
|
70
74
|
entries.forEach(function (entry) {
|
|
75
|
+
// Ignored via go/ees005
|
|
76
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
71
77
|
var target = entry.target;
|
|
72
78
|
if (target.classList.contains(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM)) {
|
|
73
79
|
_this2.sentinelBottomCallback(entry);
|
|
@@ -79,10 +85,20 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
|
|
|
79
85
|
}, {
|
|
80
86
|
root: this.rendererScrollableElement
|
|
81
87
|
});
|
|
88
|
+
|
|
89
|
+
// Ignored via go/ees005
|
|
90
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
82
91
|
this.sentinels.bottom = (_this$wrapper = this.wrapper) === null || _this$wrapper === void 0 || (_this$wrapper = _this$wrapper.parentElement) === null || _this$wrapper === void 0 || (_this$wrapper = _this$wrapper.getElementsByClassName(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM)) === null || _this$wrapper === void 0 ? void 0 : _this$wrapper.item(0);
|
|
92
|
+
|
|
93
|
+
// Ignored via go/ees005
|
|
94
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
83
95
|
this.sentinels.top = (_this$wrapper2 = this.wrapper) === null || _this$wrapper2 === void 0 || (_this$wrapper2 = _this$wrapper2.parentElement) === null || _this$wrapper2 === void 0 || (_this$wrapper2 = _this$wrapper2.getElementsByClassName(_styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP)) === null || _this$wrapper2 === void 0 ? void 0 : _this$wrapper2.item(0);
|
|
84
96
|
[this.sentinels.bottom, this.sentinels.top].forEach(function (el) {
|
|
85
|
-
return
|
|
97
|
+
return (
|
|
98
|
+
// Ignored via go/ees005
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
100
|
+
_this2.intersectionObserver.observe(el)
|
|
101
|
+
);
|
|
86
102
|
});
|
|
87
103
|
}
|
|
88
104
|
}, {
|
|
@@ -96,6 +96,8 @@ function BlockCard(props) {
|
|
|
96
96
|
}, (0, _react.jsx)(_fallback.CardErrorBoundary, (0, _extends2.default)({
|
|
97
97
|
unsupportedComponent: _ui.UnsupportedInline,
|
|
98
98
|
datasourceId: props.datasource.id
|
|
99
|
+
// Ignored via go/ees005
|
|
100
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
99
101
|
}, cardProps), (0, _react.jsx)(_ui.WidthConsumer, null, function (_ref5) {
|
|
100
102
|
var width = _ref5.width;
|
|
101
103
|
return (0, _react.jsx)("div", {
|
|
@@ -130,9 +132,13 @@ function BlockCard(props) {
|
|
|
130
132
|
"data-card-url": url
|
|
131
133
|
}, (0, _react.jsx)(_fallback.CardErrorBoundary, (0, _extends2.default)({
|
|
132
134
|
unsupportedComponent: _ui.UnsupportedBlock
|
|
135
|
+
// Ignored via go/ees005
|
|
136
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
133
137
|
}, cardProps), (0, _react.jsx)(_smartCard.Card, (0, _extends2.default)({
|
|
134
138
|
appearance: "block",
|
|
135
139
|
platform: platform
|
|
140
|
+
// Ignored via go/ees005
|
|
141
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
136
142
|
}, cardProps, {
|
|
137
143
|
onError: onError
|
|
138
144
|
})))));
|
|
@@ -24,7 +24,10 @@ var BodiedExtension = function BodiedExtension(props) {
|
|
|
24
24
|
extensionType = props.extensionType;
|
|
25
25
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
26
26
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
27
|
-
var removeOverflow = _react.default.Children.toArray(children)
|
|
27
|
+
var removeOverflow = _react.default.Children.toArray(children)
|
|
28
|
+
// Ignored via go/ees005
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
+
.map(function (child) {
|
|
28
31
|
return /*#__PURE__*/_react.default.isValidElement(child) ? child.props.nodeType === 'table' : false;
|
|
29
32
|
}).every(Boolean);
|
|
30
33
|
return /*#__PURE__*/_react.default.createElement(_ErrorBoundary.ErrorBoundary, {
|
|
@@ -36,7 +39,10 @@ var BodiedExtension = function BodiedExtension(props) {
|
|
|
36
39
|
value: {
|
|
37
40
|
startPos: props.startPos + 1
|
|
38
41
|
}
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(_ExtensionRenderer.default
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement(_ExtensionRenderer.default
|
|
43
|
+
// Ignored via go/ees005
|
|
44
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
45
|
+
, (0, _extends2.default)({}, props, {
|
|
40
46
|
type: "bodiedExtension"
|
|
41
47
|
}), function (_ref) {
|
|
42
48
|
var result = _ref.result;
|
|
@@ -65,9 +65,13 @@ var LightWeightCodeBlock = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, r
|
|
|
65
65
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
66
66
|
className: _styles.CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER
|
|
67
67
|
}, textRows.map(function (_, index) {
|
|
68
|
-
return (
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
return (
|
|
69
|
+
// Ignored via go/ees005
|
|
70
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
71
|
+
(0, _react2.jsx)("span", {
|
|
72
|
+
key: index
|
|
73
|
+
})
|
|
74
|
+
);
|
|
71
75
|
})), (0, _react2.jsx)("div", {
|
|
72
76
|
className: _styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT
|
|
73
77
|
}, (0, _react2.jsx)("code", null, renderBidiWarnings(text))))));
|
|
@@ -21,7 +21,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
21
21
|
* @jsxRuntime classic
|
|
22
22
|
* @jsx jsx
|
|
23
23
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
-
var LazyAkCodeBlock = /*#__PURE__*/(0, _react.lazy)(
|
|
24
|
+
var LazyAkCodeBlock = /*#__PURE__*/(0, _react.lazy)(
|
|
25
|
+
/*#__PURE__*/
|
|
26
|
+
// Ignored via go/ees005
|
|
27
|
+
// eslint-disable-next-line require-await
|
|
28
|
+
(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
25
29
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
26
30
|
while (1) switch (_context.prev = _context.next) {
|
|
27
31
|
case 0:
|
|
@@ -22,18 +22,17 @@ var Date = /*#__PURE__*/(0, _react.memo)(function Date(props) {
|
|
|
22
22
|
parentIsIncompleteTask = props.parentIsIncompleteTask,
|
|
23
23
|
intl = props.intl;
|
|
24
24
|
var className = !!parentIsIncompleteTask && (0, _utils.isPastDate)(timestamp) ? 'date-node date-node-highlighted' : 'date-node';
|
|
25
|
-
return (
|
|
26
|
-
/*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({
|
|
27
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
);
|
|
27
|
+
className: _styles.DateSharedCssClassName.DATE_WRAPPER
|
|
28
|
+
// Ignored via go/ees005
|
|
29
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
30
|
+
}, inlineAnnotationProps), /*#__PURE__*/_react.default.createElement("span", {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
32
|
+
className: className,
|
|
33
|
+
"data-node-type": "date",
|
|
34
|
+
"data-timestamp": timestamp
|
|
35
|
+
}, parentIsIncompleteTask ? (0, _utils.timestampToTaskContext)(timestamp, intl) : (0, _utils.timestampToString)(timestamp, intl)));
|
|
37
36
|
});
|
|
38
37
|
var DateComponent = exports.DateComponent = (0, _reactIntlNext.injectIntl)(Date);
|
|
39
38
|
function DateWithFormatContext(props) {
|
|
@@ -44,6 +43,9 @@ function DateWithFormatContext(props) {
|
|
|
44
43
|
if (typeof isChecked !== 'undefined') {
|
|
45
44
|
parentIsIncompleteTask = !isChecked;
|
|
46
45
|
}
|
|
46
|
+
|
|
47
|
+
// Ignored via go/ees005
|
|
48
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
47
49
|
return /*#__PURE__*/_react.default.createElement(DateComponent, (0, _extends2.default)({}, props, {
|
|
48
50
|
parentIsIncompleteTask: parentIsIncompleteTask
|
|
49
51
|
}));
|
|
@@ -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 DecisionList = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
21
23
|
function DecisionList() {
|
|
22
24
|
(0, _classCallCheck2.default)(this, DecisionList);
|
|
@@ -9,12 +9,17 @@ exports.default = Doc;
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _consts = require("../../consts");
|
|
11
11
|
var _useSelectAllTrap = require("../utils/use-select-all-trap");
|
|
12
|
+
// Ignored via go/ees005
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
14
|
function Doc(props) {
|
|
13
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
14
16
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
15
17
|
className: _consts.RendererCssClassName.DOCUMENT
|
|
16
18
|
}, props.children);
|
|
17
19
|
}
|
|
20
|
+
|
|
21
|
+
// Ignored via go/ees005
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
23
|
function DocWithSelectAllTrap(props) {
|
|
19
24
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
20
25
|
ref: (0, _useSelectAllTrap.useSelectAllTrap)()
|