@atlaskit/renderer 137.2.7 → 137.4.0
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 +83 -0
- package/default/package.json +10 -0
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/cards.js +7 -0
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/media.js +7 -0
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/small-nodes.js +7 -0
- package/dist/cjs/entry-points/nodes-default.js +12 -0
- package/dist/cjs/entry-points/renderer-default.js +44 -0
- package/dist/cjs/react/nodes/extension.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +12 -3
- package/dist/cjs/react/nodes/nodes.js +104 -0
- package/dist/cjs/ui/MediaCard.js +8 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +4 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/custom-nodes.js +6 -0
- package/dist/es2019/entry-points/custom-nodes-loosely-lazy.js +7 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/cards.js +7 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/media.js +7 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/small-nodes.js +7 -0
- package/dist/es2019/entry-points/loosely-lazy.js +7 -0
- package/dist/es2019/entry-points/nodes-default.js +3 -0
- package/dist/es2019/entry-points/nodes.js +14 -1
- package/dist/es2019/entry-points/renderer-default.js +23 -0
- package/dist/es2019/entry-points/renderer.js +48 -1
- package/dist/es2019/index.js +21 -1
- package/dist/es2019/react/nodes/extension.js +2 -2
- package/dist/es2019/react/nodes/mediaInline.js +11 -4
- package/dist/es2019/react/nodes/nodes.js +97 -0
- package/dist/es2019/ui/MediaCard.js +6 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +9 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/custom-nodes.js +6 -0
- package/dist/esm/entry-points/custom-nodes-loosely-lazy.js +7 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/cards.js +7 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/media.js +7 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/small-nodes.js +7 -0
- package/dist/esm/entry-points/loosely-lazy.js +7 -0
- package/dist/esm/entry-points/nodes-default.js +3 -0
- package/dist/esm/entry-points/nodes.js +14 -1
- package/dist/esm/entry-points/renderer-default.js +25 -0
- package/dist/esm/entry-points/renderer.js +48 -1
- package/dist/esm/index.js +21 -1
- package/dist/esm/react/nodes/extension.js +2 -2
- package/dist/esm/react/nodes/mediaInline.js +13 -4
- package/dist/esm/react/nodes/nodes.js +97 -0
- package/dist/esm/ui/MediaCard.js +8 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +4 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/custom-nodes.d.ts +5 -0
- package/dist/types/entry-points/custom-nodes-loosely-lazy.d.ts +5 -0
- package/dist/types/entry-points/experimental-sync-custom-nodes/cards.d.ts +5 -0
- package/dist/types/entry-points/experimental-sync-custom-nodes/media.d.ts +5 -0
- package/dist/types/entry-points/experimental-sync-custom-nodes/small-nodes.d.ts +5 -0
- package/dist/types/entry-points/loosely-lazy.d.ts +5 -0
- package/dist/types/entry-points/nodes-default.d.ts +2 -0
- package/dist/types/entry-points/nodes.d.ts +10 -0
- package/dist/types/entry-points/renderer-default.d.ts +6 -0
- package/dist/types/entry-points/renderer.d.ts +40 -1
- package/dist/types/index.d.ts +17 -1
- package/dist/types/react/nodes/nodes.d.ts +7 -0
- package/dist/types/types/mediaOptions.d.ts +8 -0
- package/nodes/default/package.json +10 -0
- package/package.json +8 -8
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
+
|
|
3
|
+
import { UnsupportedBlock, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
4
|
+
import Expand from '../../ui/Expand';
|
|
5
|
+
import BlockCard from './blockCard';
|
|
6
|
+
import Blockquote from './blockquote';
|
|
7
|
+
import BodiedExtension from './bodiedExtension';
|
|
8
|
+
import BodiedSyncBlock from './bodiedSyncBlock';
|
|
9
|
+
import BulletList from './bulletList';
|
|
10
|
+
import Caption from './caption';
|
|
11
|
+
import CodeBlock from './codeBlock/codeBlock';
|
|
12
|
+
import WindowedCodeBlock from './codeBlock/windowedCodeBlock';
|
|
13
|
+
import DateNode from './date';
|
|
14
|
+
import DecisionItem from './decisionItem';
|
|
15
|
+
import DecisionList from './decisionList';
|
|
16
|
+
import Doc from './doc';
|
|
17
|
+
import EmbedCard from './embedCard';
|
|
18
|
+
import Emoji from './emoji';
|
|
19
|
+
import Extension from './extension';
|
|
20
|
+
import ExtensionFrame from './extensionFrame';
|
|
21
|
+
import HardBreak from './hardBreak';
|
|
22
|
+
import Heading from './heading';
|
|
23
|
+
import InlineCard from './inlineCard';
|
|
24
|
+
import InlineExtension from './inlineExtension';
|
|
25
|
+
import LayoutColumn from './layoutColumn';
|
|
26
|
+
import LayoutSection from './layoutSection';
|
|
27
|
+
import ListItem from './listItem';
|
|
28
|
+
import Media from './media';
|
|
29
|
+
import MediaGroup from './mediaGroup';
|
|
30
|
+
import MediaInline from './mediaInline';
|
|
31
|
+
import MediaSingle from './mediaSingle';
|
|
32
|
+
import Mention from './mention';
|
|
33
|
+
import MultiBodiedExtension from './multiBodiedExtension';
|
|
34
|
+
import OrderedList from './orderedList';
|
|
35
|
+
import Panel from './panel';
|
|
36
|
+
import Paragraph from './paragraph';
|
|
37
|
+
import Placeholder from './placeholder';
|
|
38
|
+
import Rule from './rule';
|
|
39
|
+
import Status from './status';
|
|
40
|
+
import SyncBlock from './syncBlock';
|
|
41
|
+
import Table from './table';
|
|
42
|
+
import { TableCell, TableHeader } from './tableCell';
|
|
43
|
+
import TableRow from './tableRow';
|
|
44
|
+
import TaskItem from './taskItem';
|
|
45
|
+
import TaskList from './taskList';
|
|
46
|
+
import UnknownBlock from './unknownBlock';
|
|
47
|
+
export var nodes = {
|
|
48
|
+
blockCard: BlockCard,
|
|
49
|
+
blockquote: Blockquote,
|
|
50
|
+
blockTaskItem: TaskItem,
|
|
51
|
+
bodiedExtension: BodiedExtension,
|
|
52
|
+
bodiedSyncBlock: BodiedSyncBlock,
|
|
53
|
+
bulletList: BulletList,
|
|
54
|
+
caption: Caption,
|
|
55
|
+
codeBlock: CodeBlock,
|
|
56
|
+
date: DateNode,
|
|
57
|
+
decisionItem: DecisionItem,
|
|
58
|
+
decisionList: DecisionList,
|
|
59
|
+
doc: Doc,
|
|
60
|
+
embedCard: EmbedCard,
|
|
61
|
+
emoji: Emoji,
|
|
62
|
+
expand: Expand,
|
|
63
|
+
extension: Extension,
|
|
64
|
+
extensionFrame: ExtensionFrame,
|
|
65
|
+
hardBreak: HardBreak,
|
|
66
|
+
heading: Heading,
|
|
67
|
+
inlineCard: InlineCard,
|
|
68
|
+
inlineExtension: InlineExtension,
|
|
69
|
+
layoutColumn: LayoutColumn,
|
|
70
|
+
layoutSection: LayoutSection,
|
|
71
|
+
listItem: ListItem,
|
|
72
|
+
media: Media,
|
|
73
|
+
mediaGroup: MediaGroup,
|
|
74
|
+
mediaInline: MediaInline,
|
|
75
|
+
mediaSingle: MediaSingle,
|
|
76
|
+
mention: Mention,
|
|
77
|
+
multiBodiedExtension: MultiBodiedExtension,
|
|
78
|
+
nestedExpand: Expand,
|
|
79
|
+
orderedList: OrderedList,
|
|
80
|
+
panel: Panel,
|
|
81
|
+
panel_c1: Panel,
|
|
82
|
+
paragraph: Paragraph,
|
|
83
|
+
placeholder: Placeholder,
|
|
84
|
+
rule: Rule,
|
|
85
|
+
status: Status,
|
|
86
|
+
syncBlock: SyncBlock,
|
|
87
|
+
table: Table,
|
|
88
|
+
tableCell: TableCell,
|
|
89
|
+
tableHeader: TableHeader,
|
|
90
|
+
tableRow: TableRow,
|
|
91
|
+
taskItem: TaskItem,
|
|
92
|
+
taskList: TaskList,
|
|
93
|
+
unknownBlock: UnknownBlock,
|
|
94
|
+
unsupportedBlock: UnsupportedBlock,
|
|
95
|
+
unsupportedInline: UnsupportedInline,
|
|
96
|
+
windowedCodeBlock: WindowedCodeBlock
|
|
97
|
+
};
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -276,6 +276,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
276
276
|
}, {
|
|
277
277
|
key: "render",
|
|
278
278
|
value: function render() {
|
|
279
|
+
var _ssr$ssrMediaItems;
|
|
279
280
|
var _this$state = this.state,
|
|
280
281
|
contextIdentifierProvider = _this$state.contextIdentifierProvider,
|
|
281
282
|
fileState = _this$state.fileState;
|
|
@@ -333,6 +334,9 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
333
334
|
// More robust solution will be implemented as part of CCPDF-233 - Link: https://hello.jira.atlassian.cloud/browse/CCPDF-233
|
|
334
335
|
var currentUrl = window.location.href;
|
|
335
336
|
var shouldDisableLazyLoading = expValEquals('platform_editor_disable_lazy_load_media', 'isEnabled', true) && currentUrl.includes('/wiki/pdf/spaces/');
|
|
337
|
+
var ssrMediaItem = ssr === null || ssr === void 0 || (_ssr$ssrMediaItems = ssr.ssrMediaItems) === null || _ssr$ssrMediaItems === void 0 ? void 0 : _ssr$ssrMediaItems.find(function (item) {
|
|
338
|
+
return item.id === id;
|
|
339
|
+
});
|
|
336
340
|
return /*#__PURE__*/React.createElement("div", _extends({}, getClipboardAttrs({
|
|
337
341
|
id: id,
|
|
338
342
|
alt: alt,
|
|
@@ -358,7 +362,10 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
358
362
|
mediaViewerItems: Array.from(mediaIdentifierMap.values()),
|
|
359
363
|
featureFlags: featureFlags,
|
|
360
364
|
shouldEnableDownloadButton: shouldEnableDownloadButton,
|
|
361
|
-
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode
|
|
365
|
+
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode
|
|
366
|
+
// Optional SSR seed supplied by the host product. Undefined when absent,
|
|
367
|
+
,
|
|
368
|
+
ssrMediaItem: ssrMediaItem,
|
|
362
369
|
shouldHideTooltip: isMobile,
|
|
363
370
|
mediaViewerExtensions: mediaViewerExtensions,
|
|
364
371
|
fallbackMediaNameFetcher: fallbackMediaNameFetcher,
|
|
@@ -1667,6 +1667,9 @@ var tableContentModeScopedStyles = css(_defineProperty(_defineProperty({}, ".".c
|
|
|
1667
1667
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
1668
1668
|
width: 'unset !important'
|
|
1669
1669
|
}));
|
|
1670
|
+
var tableContentModeExtensionContainmentStyles = css(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " table[data-initial-width-mode=\"content\"] .").concat(RendererCssClassName.EXTENSION_INNER_WRAPPER), {
|
|
1671
|
+
containerType: 'normal'
|
|
1672
|
+
}));
|
|
1670
1673
|
var tableContentModeNestedTableStyles = css(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " table[data-initial-width-mode=\"content\"] > tbody > tr > :is(th, td) .").concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t\t.").concat(RendererCssClassName.DOCUMENT, " table[data-initial-width-mode=\"content\"] > tbody > tr > :is(th, td) .").concat(TableSharedCssClassName.TABLE_CONTAINER, " > .").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t\t.").concat(RendererCssClassName.DOCUMENT, " table[data-initial-width-mode=\"content\"] > tbody > tr > :is(th, td) .").concat(TableSharedCssClassName.TABLE_CONTAINER, " > .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
|
|
1671
1674
|
width: 'max-content !important',
|
|
1672
1675
|
maxWidth: '100%'
|
|
@@ -2301,7 +2304,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
2301
2304
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2302
2305
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
2303
2306
|
// this should be placed after baseOtherStyles
|
|
2304
|
-
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), forgeInlineBodiedSpacingStyle, inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && !isExperimentEnabled('platform_editor_table_q4_patch_7') && roundedTableLegacyClipPathStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && expValEquals('platform_editor_table_css_overflow_shadow', 'isEnabled', true) && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, contentMode === 'compact' ? scaledDenseUnicodeEmojiStylesNew : scaledUnicodeEmojiStylesNew, syncBlockStyles, centerWrapperStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2307
|
+
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), forgeInlineBodiedSpacingStyle, inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && !isExperimentEnabled('platform_editor_table_q4_patch_7') && roundedTableLegacyClipPathStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && isExperimentEnabled('platform_editor_table_fit_to_content_patch_2') && tableContentModeExtensionContainmentStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && expValEquals('platform_editor_table_css_overflow_shadow', 'isEnabled', true) && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, contentMode === 'compact' ? scaledDenseUnicodeEmojiStylesNew : scaledUnicodeEmojiStylesNew, syncBlockStyles, centerWrapperStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2305
2308
|
"data-testid": testId
|
|
2306
2309
|
}, children);
|
|
2307
2310
|
};
|
|
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
65
65
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
66
66
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
67
67
|
var packageName = "@atlaskit/renderer";
|
|
68
|
-
var packageVersion = "137.
|
|
68
|
+
var packageVersion = "137.3.0";
|
|
69
69
|
var setAsQueryContainerStyles = css({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size'
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
3
|
+
* This entry point will be removed in January 2027.
|
|
4
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
5
|
+
*/
|
|
1
6
|
export { nodeToReact as defaultNodeComponentsWithLooselyLazy } from './react/nodes/loosely-lazy';
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
3
|
+
* This entry point will be removed in January 2027.
|
|
4
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
5
|
+
*/
|
|
1
6
|
export { nodeToReact as defaultNodeComponentsWithLooselyLazy } from '../react/nodes/loosely-lazy';
|
|
@@ -6,4 +6,9 @@
|
|
|
6
6
|
* Context: https://hello.atlassian.net/wiki/spaces/JIE/pages/5342146338 (Atlassian-internal)
|
|
7
7
|
*/
|
|
8
8
|
declare const nodeToReact: typeof import('../../react/nodes').nodeToReact;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
11
|
+
* This entry point will be removed in January 2027.
|
|
12
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
13
|
+
*/
|
|
9
14
|
export default nodeToReact;
|
|
@@ -6,4 +6,9 @@
|
|
|
6
6
|
* Context: https://hello.atlassian.net/wiki/spaces/JIE/pages/5342146338 (Atlassian-internal)
|
|
7
7
|
*/
|
|
8
8
|
declare const nodeToReact: typeof import('../../react/nodes').nodeToReact;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
11
|
+
* This entry point will be removed in January 2027.
|
|
12
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
13
|
+
*/
|
|
9
14
|
export default nodeToReact;
|
|
@@ -6,4 +6,9 @@
|
|
|
6
6
|
* Context: https://hello.atlassian.net/wiki/spaces/JIE/pages/5342146338 (Atlassian-internal)
|
|
7
7
|
*/
|
|
8
8
|
declare const nodeToReact: typeof import('../../react/nodes').nodeToReact;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
11
|
+
* This entry point will be removed in January 2027.
|
|
12
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
13
|
+
*/
|
|
9
14
|
export default nodeToReact;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
3
|
+
* This entry point will be removed in January 2027.
|
|
4
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
5
|
+
*/
|
|
1
6
|
export { nodeToReact } from '../react/nodes/loosely-lazy';
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
3
|
+
* This entry point will be removed in January 2027.
|
|
4
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
5
|
+
*/
|
|
1
6
|
export { BlockCard, Blockquote, BodiedExtension, BulletList, Caption, CodeBlock, Date, DecisionItem, DecisionList, Doc, DocWithSelectAllTrap, EmbedCard, Emoji, Expand, Extension, ExtensionFrame, HardBreak, Heading, InlineCard, InlineExtension, LayoutColumn, LayoutSection, ListItem, Media, MediaGroup, MediaInline, MediaSingle, Mention, MultiBodiedExtension, OrderedList, Panel, Paragraph, Placeholder, Rule, Status, Table, TableCell, TableRow, TaskItem, TaskList, UnknownBlock, WindowedCodeBlock, isEmojiDoc, isText, isTextNode, isTextWrapper, mergeTextNodes, nodeToReact, toReact, } from '../react/nodes/index';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This entry point is deprecated. Use `nodes` from `@atlaskit/renderer/nodes/default` for default renderer nodes.
|
|
9
|
+
* This entry point will be removed in January 2027.
|
|
10
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
11
|
+
*/
|
|
2
12
|
export type { TextWrapper } from '../react/nodes/index';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import RenderLegacy, { RendererFunctionalComponent as RendererFunctionalComponentLegacy } from '../ui/Renderer/index';
|
|
2
|
+
export { DEGRADED_SEVERITY_THRESHOLD, NORMAL_SEVERITY_THRESHOLD } from '../ui/Renderer/index';
|
|
3
|
+
export type { RendererWrapperProps } from '../ui/Renderer/index';
|
|
4
|
+
export declare const Renderer: typeof RenderLegacy;
|
|
5
|
+
export declare const RendererFunctionalComponent: typeof RendererFunctionalComponentLegacy;
|
|
6
|
+
export declare const RendererWithAnalytics: typeof RenderLegacy;
|
|
@@ -1,3 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `DEGRADED_SEVERITY_THRESHOLD` from `@atlaskit/renderer/default` instead.
|
|
3
|
+
* This export will be removed in January 2027.
|
|
4
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
5
|
+
*/
|
|
6
|
+
export { DEGRADED_SEVERITY_THRESHOLD } from '../ui/Renderer/index';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use `NORMAL_SEVERITY_THRESHOLD` from `@atlaskit/renderer/default` instead.
|
|
9
|
+
* This export will be removed in January 2027.
|
|
10
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
11
|
+
*/
|
|
12
|
+
export { NORMAL_SEVERITY_THRESHOLD } from '../ui/Renderer/index';
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
15
|
+
* This export will be removed in January 2027.
|
|
16
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
17
|
+
*/
|
|
18
|
+
export { Renderer } from '../ui/Renderer/index';
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `RendererFunctionalComponent` from `@atlaskit/renderer/default` instead.
|
|
21
|
+
* This export will be removed in January 2027.
|
|
22
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
23
|
+
*/
|
|
24
|
+
export { RendererFunctionalComponent } from '../ui/Renderer/index';
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Use `RendererWithAnalytics` from `@atlaskit/renderer/default` instead.
|
|
27
|
+
* This export will be removed in January 2027.
|
|
28
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
29
|
+
*/
|
|
30
|
+
export { RendererWithAnalytics } from '../ui/Renderer/index';
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use `RendererWrapperProps` from `@atlaskit/renderer/default` instead.
|
|
33
|
+
* This export will be removed in January 2027.
|
|
34
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
35
|
+
*/
|
|
2
36
|
export type { RendererWrapperProps } from '../ui/Renderer/index';
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
39
|
+
* This export will be removed in January 2027.
|
|
40
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
41
|
+
*/
|
|
3
42
|
export { default } from '../ui/Renderer/index';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
export { default as ReactSerializer, type ReactSerializerInit } from './react';
|
|
2
2
|
export { default as TextSerializer } from './text';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
5
|
+
* This export will be removed in January 2027.
|
|
6
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
7
|
+
*/
|
|
8
|
+
export { default as ReactRenderer } from './ui/Renderer';
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `RendererWithAnalytics` from `@atlaskit/renderer/default` instead.
|
|
11
|
+
* This export will be removed in January 2027.
|
|
12
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
13
|
+
*/
|
|
14
|
+
export { RendererWithAnalytics } from './ui/Renderer';
|
|
4
15
|
export { InlineNodeRendererWrapper } from './ui/ExtensionRenderer';
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
18
|
+
* This export will be removed in January 2027.
|
|
19
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
20
|
+
*/
|
|
5
21
|
export { nodeToReact as defaultNodeComponents } from './react/nodes';
|
|
6
22
|
export { AnnotationsWrapper } from './ui/annotations';
|
|
7
23
|
export { ValidationContextProvider } from './ui/Renderer/ValidationContext';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type NodeNames = 'blockCard' | 'blockquote' | 'blockTaskItem' | 'bodiedExtension' | 'bodiedSyncBlock' | 'bulletList' | 'caption' | 'codeBlock' | 'date' | 'decisionItem' | 'decisionList' | 'doc' | 'embedCard' | 'emoji' | 'expand' | 'extension' | 'extensionFrame' | 'hardBreak' | 'heading' | 'inlineCard' | 'inlineExtension' | 'layoutColumn' | 'layoutSection' | 'listItem' | 'media' | 'mediaGroup' | 'mediaInline' | 'mediaSingle' | 'mention' | 'multiBodiedExtension' | 'nestedExpand' | 'orderedList' | 'panel' | 'panel_c1' | 'paragraph' | 'placeholder' | 'rule' | 'status' | 'syncBlock' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'taskItem' | 'taskList' | 'unknownBlock' | 'unsupportedBlock' | 'unsupportedInline' | 'windowedCodeBlock';
|
|
3
|
+
type Nodes = {
|
|
4
|
+
[key in NodeNames]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const nodes: Nodes;
|
|
7
|
+
export {};
|
|
@@ -4,6 +4,14 @@ import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
|
4
4
|
export type MediaSSR = {
|
|
5
5
|
config: MediaClientConfig;
|
|
6
6
|
mode: SSR;
|
|
7
|
+
/**
|
|
8
|
+
* Host SSR media payload. The renderer looks up each card's id with `.find()`
|
|
9
|
+
* and passes the matching item as `ssrMediaItem` to Card. Missing entries fall
|
|
10
|
+
* back to the normal remote fetch path.
|
|
11
|
+
*/
|
|
12
|
+
ssrMediaItems?: ReadonlyArray<{
|
|
13
|
+
id?: string;
|
|
14
|
+
}>;
|
|
7
15
|
};
|
|
8
16
|
export interface MediaOptions {
|
|
9
17
|
allowCaptions?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/renderer/nodes/default",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/nodes-default.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/nodes-default.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/nodes-default.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/entry-points/nodes-default.d.ts"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "137.
|
|
3
|
+
"version": "137.4.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^57.
|
|
34
|
-
"@atlaskit/adf-utils": "^20.
|
|
33
|
+
"@atlaskit/adf-schema": "^57.3.0",
|
|
34
|
+
"@atlaskit/adf-utils": "^20.9.0",
|
|
35
35
|
"@atlaskit/afm-i18n-platform-editor-renderer": "2.200.0",
|
|
36
36
|
"@atlaskit/analytics-listeners": "^11.3.0",
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^8.2.0",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
51
51
|
"@atlaskit/icon": "^37.6.0",
|
|
52
52
|
"@atlaskit/link": "^5.1.0",
|
|
53
|
-
"@atlaskit/link-datasource": "^6.
|
|
53
|
+
"@atlaskit/link-datasource": "^6.11.0",
|
|
54
54
|
"@atlaskit/link-extractors": "^4.2.0",
|
|
55
55
|
"@atlaskit/linking-common": "^12.1.0",
|
|
56
|
-
"@atlaskit/media-card": "^81.
|
|
57
|
-
"@atlaskit/media-client": "^37.
|
|
56
|
+
"@atlaskit/media-card": "^81.10.0",
|
|
57
|
+
"@atlaskit/media-client": "^37.7.0",
|
|
58
58
|
"@atlaskit/media-client-react": "^6.4.0",
|
|
59
59
|
"@atlaskit/media-common": "^14.6.0",
|
|
60
60
|
"@atlaskit/media-filmstrip": "^52.4.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
|
|
67
67
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
68
68
|
"@atlaskit/react-ufo": "^7.8.0",
|
|
69
|
-
"@atlaskit/smart-card": "^45.
|
|
69
|
+
"@atlaskit/smart-card": "^45.20.0",
|
|
70
70
|
"@atlaskit/status": "^5.9.0",
|
|
71
71
|
"@atlaskit/task-decision": "^21.9.0",
|
|
72
72
|
"@atlaskit/theme": "^28.2.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"uuid": "^3.1.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@atlaskit/editor-common": "^120.
|
|
88
|
+
"@atlaskit/editor-common": "^120.13.0",
|
|
89
89
|
"@atlaskit/link-provider": "^5.5.0",
|
|
90
90
|
"@atlaskit/media-core": "^38.2.0",
|
|
91
91
|
"react": "^18.2.0",
|