@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
package/dist/es2019/utils.js
CHANGED
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
5
5
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
6
|
+
|
|
7
|
+
// Ignored via go/ees005
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
9
|
function createEncoder(parser, encoder) {
|
|
7
10
|
return value => encoder.encode(parser.parse(value));
|
|
8
11
|
}
|
|
9
12
|
export class ADFEncoder {
|
|
13
|
+
// Ignored via go/ees005
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
|
|
10
16
|
constructor(createTransformerWithSchema) {
|
|
11
17
|
const transformer = createTransformerWithSchema(defaultSchema);
|
|
12
18
|
this.encode = createEncoder(transformer, new JSONTransformer());
|
|
@@ -15,7 +21,12 @@ export class ADFEncoder {
|
|
|
15
21
|
export const getText = node => {
|
|
16
22
|
return node.text || node.attrs && (node.attrs.text || node.attrs.shortName) || `[${typeof node.type === 'string' ? node.type : node.type.name}]`;
|
|
17
23
|
};
|
|
18
|
-
export const getEventHandler = (eventHandlers, type, eventName = 'onClick'
|
|
24
|
+
export const getEventHandler = (eventHandlers, type, eventName = 'onClick'
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
+
) => {
|
|
28
|
+
// Ignored via go/ees005
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
30
|
return eventHandlers && type && eventHandlers[type] && eventHandlers[type][eventName];
|
|
20
31
|
};
|
|
21
32
|
|
|
@@ -16,6 +16,8 @@ import { getRendererRangeInlineNodeNames } from './get-renderer-range-inline-nod
|
|
|
16
16
|
import { getIndexMatch } from './matches-utils';
|
|
17
17
|
var RendererActions = /*#__PURE__*/function () {
|
|
18
18
|
// Any kind of refence is allowed
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
21
|
|
|
20
22
|
function RendererActions() {
|
|
21
23
|
var initFromContext = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -29,6 +31,8 @@ var RendererActions = /*#__PURE__*/function () {
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
//#region private
|
|
34
|
+
// Ignored via go/ees005
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
32
36
|
return _createClass(RendererActions, [{
|
|
33
37
|
key: "_privateRegisterRenderer",
|
|
34
38
|
value: function _privateRegisterRenderer(ref, doc, schema, onAnalyticsEvent) {
|
|
@@ -127,6 +131,8 @@ var RendererActions = /*#__PURE__*/function () {
|
|
|
127
131
|
eventType: EVENT_TYPE.TRACK,
|
|
128
132
|
attributes: {
|
|
129
133
|
inlineNodeNames: step instanceof RemoveMarkStep ? getRendererRangeInlineNodeNames({
|
|
134
|
+
// Ignored via go/ees005
|
|
135
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
130
136
|
pos: {
|
|
131
137
|
from: from,
|
|
132
138
|
to: to
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// getIndexMatch finds the position of a given string within a given document, in accordance to the Confluence Annotation backend
|
|
2
2
|
// The document is serialised into one large string, excluding any nodes that can not have annotations (eg: emojis, media).
|
|
3
3
|
// Finds where the given query string is relative to the serialised partial document
|
|
4
|
+
// Ignored via go/ees005
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
4
6
|
export function getIndexMatch(doc, schema, selectedText, startIndex) {
|
|
5
7
|
var textContent = '';
|
|
6
8
|
var matchIndex = 0;
|
|
@@ -55,6 +57,10 @@ export function countMatches(searchString, query) {
|
|
|
55
57
|
return 0;
|
|
56
58
|
}
|
|
57
59
|
// Escape characters that would trigger as syntax in a regex query before converting to the query
|
|
60
|
+
// Ignored via go/ees005
|
|
61
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
62
|
+
// Ignored via go/ees005
|
|
63
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
58
64
|
var reg = new RegExp(query.replace(/(?=[.\\+*?[^\]$(){}\|])/g, '\\'), 'g');
|
|
59
65
|
return (searchString.match(reg) || []).length;
|
|
60
66
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { getUnsupportedContentLevelData, getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { PLATFORM } from './events';
|
|
4
|
+
|
|
5
|
+
// Ignored via go/ees005
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
+
|
|
4
8
|
var rendersMap = {};
|
|
5
9
|
var processLevelsAndTrack = function processLevelsAndTrack(item, thresholds, dispatchAnalyticsEvent) {
|
|
6
10
|
try {
|
|
@@ -38,7 +42,11 @@ var processLevelsAndTrack = function processLevelsAndTrack(item, thresholds, dis
|
|
|
38
42
|
}
|
|
39
43
|
};
|
|
40
44
|
var schedule = function schedule(fn) {
|
|
45
|
+
// Ignored via go/ees005
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
47
|
if (typeof window.requestIdleCallback === 'function') {
|
|
48
|
+
// Ignored via go/ees005
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
50
|
window.requestIdleCallback(fn);
|
|
43
51
|
} else {
|
|
44
52
|
setTimeout(fn, 0);
|
package/dist/esm/react/index.js
CHANGED
|
@@ -88,6 +88,10 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
88
88
|
return _this.renderMark(markToReact(mark), _this.withMediaMarkProps(node, mark, _this.getMarkProps(mark, [], node)), "".concat(mark.type.name, "-").concat(index), content);
|
|
89
89
|
}, serializedContent);
|
|
90
90
|
});
|
|
91
|
+
// Ignored via go/ees005
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
93
|
+
// Ignored via go/ees005
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
91
95
|
_defineProperty(this, "withMediaMarkProps", function (node, mark, defaultProps) {
|
|
92
96
|
if (mark.type.name === 'link' && node.type.name === 'media') {
|
|
93
97
|
return _objectSpread(_objectSpread({}, defaultProps), {}, {
|
|
@@ -246,6 +250,9 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
246
250
|
return this.getProps(node, path);
|
|
247
251
|
}
|
|
248
252
|
}
|
|
253
|
+
|
|
254
|
+
// Ignored via go/ees005
|
|
255
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
249
256
|
}, {
|
|
250
257
|
key: "serializeFragment",
|
|
251
258
|
value: function serializeFragment(fragment) {
|
|
@@ -309,6 +316,9 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
309
316
|
}
|
|
310
317
|
});
|
|
311
318
|
};
|
|
319
|
+
|
|
320
|
+
// Ignored via go/ees005
|
|
321
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
312
322
|
var content = (mark.content || []).map(serializeContent);
|
|
313
323
|
var markKey = "".concat(mark.type.name, "-component__").concat(this.startPos, "__").concat(parentMark.path.length);
|
|
314
324
|
return this.renderMark(markToReact(mark), this.getMarkProps(mark, parentMark.path), markKey, content);
|
|
@@ -330,19 +340,50 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
330
340
|
var segments = segmentText(mark.text, this.textHighlighter);
|
|
331
341
|
return renderTextSegments(segments, this.textHighlighter, mark.marks, startPos);
|
|
332
342
|
}
|
|
343
|
+
|
|
344
|
+
// Ignored via go/ees005
|
|
345
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
333
346
|
}, {
|
|
334
347
|
key: "renderNode",
|
|
335
|
-
value: function renderNode(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
348
|
+
value: function renderNode(
|
|
349
|
+
// Ignored via go/ees005
|
|
350
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
351
|
+
NodeComponent,
|
|
352
|
+
// Ignored via go/ees005
|
|
353
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
354
|
+
props, key,
|
|
355
|
+
// Ignored via go/ees005
|
|
356
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
357
|
+
content) {
|
|
358
|
+
return (
|
|
359
|
+
/*#__PURE__*/
|
|
360
|
+
// Ignored via go/ees005
|
|
361
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
362
|
+
React.createElement(NodeComponent, _extends({
|
|
363
|
+
key: key
|
|
364
|
+
}, props), content)
|
|
365
|
+
);
|
|
339
366
|
}
|
|
367
|
+
|
|
368
|
+
// Ignored via go/ees005
|
|
369
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
340
370
|
}, {
|
|
341
371
|
key: "renderMark",
|
|
342
|
-
value: function renderMark(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
372
|
+
value: function renderMark(
|
|
373
|
+
// Ignored via go/ees005
|
|
374
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
375
|
+
MarkComponent, props, key,
|
|
376
|
+
// Ignored via go/ees005
|
|
377
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
378
|
+
content) {
|
|
379
|
+
return (
|
|
380
|
+
/*#__PURE__*/
|
|
381
|
+
// Ignored via go/ees005
|
|
382
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
383
|
+
React.createElement(MarkComponent, _extends({
|
|
384
|
+
key: key
|
|
385
|
+
}, props), content)
|
|
386
|
+
);
|
|
346
387
|
}
|
|
347
388
|
}, {
|
|
348
389
|
key: "getTableChildrenProps",
|
|
@@ -614,9 +655,17 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
614
655
|
|
|
615
656
|
// We are not use node.textContent here, because we would like to handle cases where
|
|
616
657
|
// headings only contain inline blocks like emoji, status and date.
|
|
617
|
-
|
|
658
|
+
// Ignored via go/ees005
|
|
659
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
660
|
+
var nodeContent = node.content.toJSON()
|
|
661
|
+
// Ignored via go/ees005
|
|
662
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
663
|
+
.reduce(function (acc, node) {
|
|
618
664
|
return acc.concat(getText(node) || '');
|
|
619
|
-
}, '').trim()
|
|
665
|
+
}, '').trim()
|
|
666
|
+
// Ignored via go/ees005
|
|
667
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
668
|
+
.replace(/\s/g, '-');
|
|
620
669
|
if (!nodeContent) {
|
|
621
670
|
return;
|
|
622
671
|
}
|
|
@@ -670,6 +719,8 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
670
719
|
eq: eq,
|
|
671
720
|
content: [acc]
|
|
672
721
|
});
|
|
722
|
+
// Ignored via go/ees005
|
|
723
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
673
724
|
}, node);
|
|
674
725
|
}));
|
|
675
726
|
}
|
|
@@ -12,12 +12,12 @@ import { alignmentPositionMap } from '@atlaskit/adf-schema';
|
|
|
12
12
|
var MarkWrapper = function MarkWrapper(props) {
|
|
13
13
|
var styles = props['data-align'] ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
14
14
|
css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\ttext-align: ", ";\n\t\t\t"])), alignmentPositionMap[props['data-align']]) : '';
|
|
15
|
-
return (
|
|
15
|
+
return jsx("div", _extends({
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
17
|
+
css: styles
|
|
18
|
+
// Ignored via go/ees005
|
|
19
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
20
|
+
}, props), props.children);
|
|
21
21
|
};
|
|
22
22
|
export default function Alignment(props) {
|
|
23
23
|
return jsx(MarkWrapper
|
|
@@ -39,8 +39,13 @@ var AnnotationComponent = function AnnotationComponent(_ref) {
|
|
|
39
39
|
useBlockLevel: useBlockLevel
|
|
40
40
|
}, children);
|
|
41
41
|
}
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
return (
|
|
43
|
+
/*#__PURE__*/
|
|
44
|
+
// Ignored via go/ees005
|
|
45
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
46
|
+
React.createElement("span", _extends({
|
|
47
|
+
id: id
|
|
48
|
+
}, data), children)
|
|
49
|
+
);
|
|
45
50
|
};
|
|
46
51
|
export default AnnotationComponent;
|
|
@@ -22,6 +22,8 @@ export default function Breakout(props) {
|
|
|
22
22
|
return jsx("div", _extends({
|
|
23
23
|
css: wrapperStyles,
|
|
24
24
|
"data-mode": props.mode
|
|
25
|
+
// Ignored via go/ees005
|
|
26
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
25
27
|
}, editorExperiment('advanced_layouts', true) && {
|
|
26
28
|
'data-has-width': !!props.width,
|
|
27
29
|
'data-width': props.width
|
|
@@ -14,6 +14,8 @@ export function CodeWithIntl(props) {
|
|
|
14
14
|
className: "code",
|
|
15
15
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
16
16
|
codeBidiWarningTooltipEnabled: props.codeBidiWarningTooltipEnabled
|
|
17
|
+
// Ignored via go/ees005
|
|
18
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
17
19
|
}, props.dataAttributes), props.children);
|
|
18
20
|
}
|
|
19
21
|
export default injectIntl(CodeWithIntl);
|
|
@@ -6,6 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React, { Component } from 'react';
|
|
9
|
+
// Ignored via go/ees005
|
|
10
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components, react/prefer-stateless-function
|
|
9
11
|
var ConfluenceInlineComment = /*#__PURE__*/function (_Component) {
|
|
10
12
|
function ConfluenceInlineComment() {
|
|
11
13
|
_classCallCheck(this, ConfluenceInlineComment);
|
|
@@ -5,5 +5,7 @@ export default function DataConsumer(props) {
|
|
|
5
5
|
return /*#__PURE__*/React.createElement(WrapperElement, _extends({
|
|
6
6
|
"data-source": props.sources ? JSON.stringify(props.sources) : undefined,
|
|
7
7
|
"data-mark-type": "dataConsumer"
|
|
8
|
+
// Ignored via go/ees005
|
|
9
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
8
10
|
}, props.dataAttributes), props.children);
|
|
9
11
|
}
|
|
@@ -2,5 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export default function Em(props) {
|
|
3
3
|
// ignore the eslint warning Text primitive does not support dataAttributes
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
5
|
+
// Ignored via go/ees005
|
|
6
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
5
7
|
return /*#__PURE__*/React.createElement("em", props.dataAttributes, props.children);
|
|
6
8
|
}
|
|
@@ -6,5 +6,7 @@ export default function FragmentMark(props) {
|
|
|
6
6
|
"data-localId": props.localId,
|
|
7
7
|
"data-name": props.name,
|
|
8
8
|
"data-mark-type": "fragment"
|
|
9
|
+
// Ignored via go/ees005
|
|
10
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
9
11
|
}, props.dataAttributes), props.children);
|
|
10
12
|
}
|
|
@@ -44,6 +44,9 @@ export var markToReact = {
|
|
|
44
44
|
dataConsumer: DataConsumer,
|
|
45
45
|
fragment: FragmentMark
|
|
46
46
|
};
|
|
47
|
+
|
|
48
|
+
// Ignored via go/ees005
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
47
50
|
export var toReact = function toReact(mark) {
|
|
48
51
|
return markToReact[mark.type.name];
|
|
49
52
|
};
|
|
@@ -69,6 +69,8 @@ export default function Link(props) {
|
|
|
69
69
|
handler(e, href);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
// Ignored via go/ees005
|
|
73
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
72
74
|
}, anchorProps, dataAttributes, fg('platform_editor_hyperlink_underline') && {
|
|
73
75
|
isLinkComponent: true
|
|
74
76
|
}), props.children));
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export default function Strike(props) {
|
|
4
|
-
return (
|
|
5
|
-
/*#__PURE__*/
|
|
4
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, props.dataAttributes, {
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}), props.children)
|
|
12
|
-
);
|
|
6
|
+
style: {
|
|
7
|
+
textDecoration: 'line-through'
|
|
8
|
+
}
|
|
9
|
+
}), props.children);
|
|
13
10
|
}
|
|
@@ -2,5 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export default function Strong(props) {
|
|
3
3
|
// ignore the eslint warning Text primitive does not support dataAttributes
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/use-primitives-text
|
|
5
|
+
// Ignored via go/ees005
|
|
6
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
5
7
|
return /*#__PURE__*/React.createElement("strong", props.dataAttributes, props.children);
|
|
6
8
|
}
|
|
@@ -4,7 +4,12 @@ var isSub = function isSub(type) {
|
|
|
4
4
|
};
|
|
5
5
|
export default function SubSup(props) {
|
|
6
6
|
if (isSub(props.type)) {
|
|
7
|
+
// Ignored via go/ees005
|
|
8
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
7
9
|
return /*#__PURE__*/React.createElement("sub", props.dataAttributes, props.children);
|
|
8
10
|
}
|
|
11
|
+
|
|
12
|
+
// Ignored via go/ees005
|
|
13
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
9
14
|
return /*#__PURE__*/React.createElement("sup", props.dataAttributes, props.children);
|
|
10
15
|
}
|
|
@@ -20,6 +20,8 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
20
20
|
key: "dispose",
|
|
21
21
|
value: function dispose() {
|
|
22
22
|
if (this.stickyScrollbarContainerElement) {
|
|
23
|
+
// Ignored via go/ees005
|
|
24
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
23
25
|
this.stickyScrollbarContainerElement.removeEventListener('scroll', this.handleScroll);
|
|
24
26
|
}
|
|
25
27
|
this.deleteIntersectionObserver();
|
|
@@ -40,6 +42,8 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
40
42
|
}
|
|
41
43
|
this.stickyScrollbarContainerElement = (_this$wrapper$parentE = this.wrapper.parentElement) === null || _this$wrapper$parentE === void 0 ? void 0 : _this$wrapper$parentE.querySelector(".".concat(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_CONTAINER));
|
|
42
44
|
if (this.stickyScrollbarContainerElement) {
|
|
45
|
+
// Ignored via go/ees005
|
|
46
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
43
47
|
this.stickyScrollbarContainerElement.addEventListener('scroll', this.handleScroll, {
|
|
44
48
|
passive: true
|
|
45
49
|
});
|
|
@@ -61,6 +65,8 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
61
65
|
return;
|
|
62
66
|
}
|
|
63
67
|
entries.forEach(function (entry) {
|
|
68
|
+
// Ignored via go/ees005
|
|
69
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
64
70
|
var target = entry.target;
|
|
65
71
|
if (target.classList.contains(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM)) {
|
|
66
72
|
_this2.sentinelBottomCallback(entry);
|
|
@@ -72,10 +78,20 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
|
72
78
|
}, {
|
|
73
79
|
root: this.rendererScrollableElement
|
|
74
80
|
});
|
|
81
|
+
|
|
82
|
+
// Ignored via go/ees005
|
|
83
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
75
84
|
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(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM)) === null || _this$wrapper === void 0 ? void 0 : _this$wrapper.item(0);
|
|
85
|
+
|
|
86
|
+
// Ignored via go/ees005
|
|
87
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
76
88
|
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(TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP)) === null || _this$wrapper2 === void 0 ? void 0 : _this$wrapper2.item(0);
|
|
77
89
|
[this.sentinels.bottom, this.sentinels.top].forEach(function (el) {
|
|
78
|
-
return
|
|
90
|
+
return (
|
|
91
|
+
// Ignored via go/ees005
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
93
|
+
_this2.intersectionObserver.observe(el)
|
|
94
|
+
);
|
|
79
95
|
});
|
|
80
96
|
}
|
|
81
97
|
}, {
|
|
@@ -88,6 +88,8 @@ export default function BlockCard(props) {
|
|
|
88
88
|
}, jsx(CardErrorBoundary, _extends({
|
|
89
89
|
unsupportedComponent: UnsupportedInline,
|
|
90
90
|
datasourceId: props.datasource.id
|
|
91
|
+
// Ignored via go/ees005
|
|
92
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
91
93
|
}, cardProps), jsx(WidthConsumer, null, function (_ref5) {
|
|
92
94
|
var width = _ref5.width;
|
|
93
95
|
return jsx("div", {
|
|
@@ -122,9 +124,13 @@ export default function BlockCard(props) {
|
|
|
122
124
|
"data-card-url": url
|
|
123
125
|
}, jsx(CardErrorBoundary, _extends({
|
|
124
126
|
unsupportedComponent: UnsupportedBlock
|
|
127
|
+
// Ignored via go/ees005
|
|
128
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
125
129
|
}, cardProps), jsx(Card, _extends({
|
|
126
130
|
appearance: "block",
|
|
127
131
|
platform: platform
|
|
132
|
+
// Ignored via go/ees005
|
|
133
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
128
134
|
}, cardProps, {
|
|
129
135
|
onError: onError
|
|
130
136
|
})))));
|
|
@@ -17,7 +17,10 @@ var BodiedExtension = function BodiedExtension(props) {
|
|
|
17
17
|
extensionType = props.extensionType;
|
|
18
18
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
19
19
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
20
|
-
var removeOverflow = React.Children.toArray(children)
|
|
20
|
+
var removeOverflow = React.Children.toArray(children)
|
|
21
|
+
// Ignored via go/ees005
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
+
.map(function (child) {
|
|
21
24
|
return /*#__PURE__*/React.isValidElement(child) ? child.props.nodeType === 'table' : false;
|
|
22
25
|
}).every(Boolean);
|
|
23
26
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
@@ -29,7 +32,10 @@ var BodiedExtension = function BodiedExtension(props) {
|
|
|
29
32
|
value: {
|
|
30
33
|
startPos: props.startPos + 1
|
|
31
34
|
}
|
|
32
|
-
}, /*#__PURE__*/React.createElement(ExtensionRenderer
|
|
35
|
+
}, /*#__PURE__*/React.createElement(ExtensionRenderer
|
|
36
|
+
// Ignored via go/ees005
|
|
37
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
38
|
+
, _extends({}, props, {
|
|
33
39
|
type: "bodiedExtension"
|
|
34
40
|
}), function (_ref) {
|
|
35
41
|
var result = _ref.result;
|
|
@@ -55,9 +55,13 @@ var LightWeightCodeBlock = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
55
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
56
56
|
className: CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER
|
|
57
57
|
}, textRows.map(function (_, index) {
|
|
58
|
-
return
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
return (
|
|
59
|
+
// Ignored via go/ees005
|
|
60
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
61
|
+
jsx("span", {
|
|
62
|
+
key: index
|
|
63
|
+
})
|
|
64
|
+
);
|
|
61
65
|
})), jsx("div", {
|
|
62
66
|
className: CodeBlockSharedCssClassName.CODEBLOCK_CONTENT
|
|
63
67
|
}, jsx("code", null, renderBidiWarnings(text))))));
|
|
@@ -13,7 +13,11 @@ import { useInViewport } from '../../hooks/use-in-viewport';
|
|
|
13
13
|
import { useBidiWarnings } from '../../hooks/use-bidi-warnings';
|
|
14
14
|
import LightWeightCodeBlock from './components/lightWeightCodeBlock';
|
|
15
15
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
16
|
-
var LazyAkCodeBlock = /*#__PURE__*/lazy(
|
|
16
|
+
var LazyAkCodeBlock = /*#__PURE__*/lazy(
|
|
17
|
+
/*#__PURE__*/
|
|
18
|
+
// Ignored via go/ees005
|
|
19
|
+
// eslint-disable-next-line require-await
|
|
20
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
17
21
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
18
22
|
while (1) switch (_context.prev = _context.next) {
|
|
19
23
|
case 0:
|
|
@@ -12,18 +12,17 @@ var Date = /*#__PURE__*/memo(function Date(props) {
|
|
|
12
12
|
parentIsIncompleteTask = props.parentIsIncompleteTask,
|
|
13
13
|
intl = props.intl;
|
|
14
14
|
var className = !!parentIsIncompleteTask && isPastDate(timestamp) ? 'date-node date-node-highlighted' : 'date-node';
|
|
15
|
-
return (
|
|
16
|
-
/*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
);
|
|
17
|
+
className: DateSharedCssClassName.DATE_WRAPPER
|
|
18
|
+
// Ignored via go/ees005
|
|
19
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
20
|
+
}, inlineAnnotationProps), /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
22
|
+
className: className,
|
|
23
|
+
"data-node-type": "date",
|
|
24
|
+
"data-timestamp": timestamp
|
|
25
|
+
}, parentIsIncompleteTask ? timestampToTaskContext(timestamp, intl) : timestampToString(timestamp, intl)));
|
|
27
26
|
});
|
|
28
27
|
export var DateComponent = injectIntl(Date);
|
|
29
28
|
function DateWithFormatContext(props) {
|
|
@@ -34,6 +33,9 @@ function DateWithFormatContext(props) {
|
|
|
34
33
|
if (typeof isChecked !== 'undefined') {
|
|
35
34
|
parentIsIncompleteTask = !isChecked;
|
|
36
35
|
}
|
|
36
|
+
|
|
37
|
+
// Ignored via go/ees005
|
|
38
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
37
39
|
return /*#__PURE__*/React.createElement(DateComponent, _extends({}, props, {
|
|
38
40
|
parentIsIncompleteTask: parentIsIncompleteTask
|
|
39
41
|
}));
|
|
@@ -7,6 +7,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React, { PureComponent, Children } from 'react';
|
|
9
9
|
import { DecisionList as AkDecisionList } from '@atlaskit/task-decision';
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
10
12
|
var DecisionList = /*#__PURE__*/function (_PureComponent) {
|
|
11
13
|
function DecisionList() {
|
|
12
14
|
_classCallCheck(this, DecisionList);
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RendererCssClassName } from '../../consts';
|
|
3
3
|
import { useSelectAllTrap } from '../utils/use-select-all-trap';
|
|
4
|
+
|
|
5
|
+
// Ignored via go/ees005
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
7
|
export default function Doc(props) {
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
6
9
|
return /*#__PURE__*/React.createElement("div", {
|
|
7
10
|
className: RendererCssClassName.DOCUMENT
|
|
8
11
|
}, props.children);
|
|
9
12
|
}
|
|
13
|
+
|
|
14
|
+
// Ignored via go/ees005
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
16
|
export function DocWithSelectAllTrap(props) {
|
|
11
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
12
18
|
ref: useSelectAllTrap()
|