@atlaskit/renderer 130.4.2 → 130.5.1

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.
@@ -140,7 +140,10 @@ var headingAnchorStylesDuplicateAnchor = css({
140
140
  '> button': {
141
141
  opacity: 0,
142
142
  transform: 'translate(-8px, 0px)',
143
- transition: 'opacity 0.2s ease 0s, transform 0.2s ease 0s'
143
+ transitionProperty: 'opacity, transform',
144
+ transitionDuration: "var(--ds-duration-medium, 0.2s)".concat(", ", "var(--ds-duration-medium, 0.2s)"),
145
+ transitionTimingFunction: "var(--ds-easing-out-practical, ease)".concat(", ", "var(--ds-easing-out-practical, ease)"),
146
+ transitionDelay: '0s, 0s'
144
147
  }
145
148
  }), '&:hover', _defineProperty({}, ".".concat(HeadingAnchorWrapperClassName, " > button"), {
146
149
  opacity: 1,
@@ -1498,6 +1501,43 @@ var tableSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defi
1498
1501
  }))
1499
1502
  }
1500
1503
  }));
1504
+ var roundedTableOuterBorderOverlayStyles = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1505
+ borderColor: 'transparent',
1506
+ position: 'relative',
1507
+ '&::after': {
1508
+ content: "''",
1509
+ position: 'absolute',
1510
+ inset: 0,
1511
+ border: "".concat(tableCellBorderWidth, "px solid ", "var(--ds-background-accent-gray-subtler, #DDDEE1)"),
1512
+ borderRadius: "var(--ds-radius-medium, 6px)",
1513
+ pointerEvents: 'none',
1514
+ zIndex: 1
1515
+ },
1516
+ '> tbody > tr:first-of-type > th, > tbody > tr:first-of-type > td, > tbody > tr > th[data-reaches-top], > tbody > tr > td[data-reaches-top]': {
1517
+ borderTopColor: 'transparent'
1518
+ },
1519
+ '> tbody > tr > th:first-child, > tbody > tr > td:first-child, > tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1520
+ borderLeftColor: 'transparent'
1521
+ },
1522
+ '> tbody > tr > th[data-reaches-right], > tbody > tr > td[data-reaches-right]': {
1523
+ borderRightColor: 'transparent'
1524
+ },
1525
+ '> tbody > tr > th[data-reaches-bottom], > tbody > tr > td[data-reaches-bottom]': {
1526
+ borderBottomColor: 'transparent'
1527
+ },
1528
+ '> tbody > tr > th[data-reaches-top][data-reaches-left], > tbody > tr > td[data-reaches-top][data-reaches-left]': {
1529
+ borderTopLeftRadius: "var(--ds-radius-medium, 6px)"
1530
+ },
1531
+ '> tbody > tr > th[data-reaches-top][data-reaches-right], > tbody > tr > td[data-reaches-top][data-reaches-right]': {
1532
+ borderTopRightRadius: "var(--ds-radius-medium, 6px)"
1533
+ },
1534
+ '> tbody > tr > th[data-reaches-bottom][data-reaches-left], > tbody > tr > td[data-reaches-bottom][data-reaches-left]': {
1535
+ borderBottomLeftRadius: "var(--ds-radius-medium, 6px)"
1536
+ },
1537
+ '> tbody > tr > th[data-reaches-bottom][data-reaches-right], > tbody > tr > td[data-reaches-bottom][data-reaches-right]': {
1538
+ borderBottomRightRadius: "var(--ds-radius-medium, 6px)"
1539
+ }
1540
+ }));
1501
1541
  var tableContentModeStyles = css(_defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER, ":has(table[data-initial-width-mode=\"content\"])"), {
1502
1542
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
1503
1543
  width: 'max-content !important',
@@ -2103,6 +2143,9 @@ var tableFakeBorderStyles = css(_defineProperty(_defineProperty({}, ".".concat(T
2103
2143
  borderLeftColor: 'transparent',
2104
2144
  borderRightColor: 'transparent'
2105
2145
  }));
2146
+ var roundedTableFakeBorderOverlayStyles = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER), _defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_RIGHT_BORDER, ",\n\t\t.").concat(TableSharedCssClassName.TABLE_LEFT_BORDER), {
2147
+ display: 'none'
2148
+ })));
2106
2149
  var syncBlockStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SyncBlockSharedCssClassName.renderer, ", .").concat(BodiedSyncBlockSharedCssClassName.renderer, ", .").concat(SyncBlockSharedCssClassName.error, ", .").concat(SyncBlockSharedCssClassName.loading), {
2107
2150
  borderRadius: "var(--ds-radius-small, 3px)",
2108
2151
  marginTop: "var(--ds-space-075, 6px)",
@@ -2170,7 +2213,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
2170
2213
  // this should be placed after baseOtherStyles
2171
2214
  expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
2172
2215
  // merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
2173
- fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, 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) ? expValEquals('platform_editor_emojis_in_renderer_smart_links', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStylesNew : scaledEmojiStylesNew : isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, editorExperiment('platform_synced_block', true) && syncBlockStyles, centerWrapperStyles, editorExperiment('platform_synced_block', true) && isInsideSyncBlock && fg('platform_synced_block_patch_9') ? syncBlockRendererStyles : null, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_9') && tableFakeBorderStyles, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
2216
+ fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, fg('platform_editor_nested_dnd_styles_changes') ? firstNodeWithNotMarginTopWithNestedDnD : firstNodeWithNotMarginTop, rendererTableStyles, isStickyScrollbarEnabled(appearance) && stickyScrollbarStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, 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) ? expValEquals('platform_editor_emojis_in_renderer_smart_links', 'isEnabled', true) ? isCompactModeEnabled ? scaledDenseEmojiStylesNew : scaledEmojiStylesNew : isCompactModeEnabled ? scaledDenseEmojiStyles : scaledEmojiStyles : isCompactModeEnabled ? denseStyles : undefined, editorExperiment('platform_synced_block', true) && syncBlockStyles, centerWrapperStyles, editorExperiment('platform_synced_block', true) && isInsideSyncBlock && fg('platform_synced_block_patch_9') ? syncBlockRendererStyles : null, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_9') && tableFakeBorderStyles, isInsideSyncBlock && editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_9') ? expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null : null, expValEquals('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
2174
2217
  "data-testid": testId
2175
2218
  }, children);
2176
2219
  };
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
62
62
  var TABLE_INFO_TIMEOUT = 10000;
63
63
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
64
64
  var packageName = "@atlaskit/renderer";
65
- var packageVersion = "130.4.1";
65
+ var packageVersion = "0.0.0-development";
66
66
  var setAsQueryContainerStyles = css({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -2,7 +2,13 @@ import React from 'react';
2
2
  import type { CellAttributes } from '@atlaskit/adf-schema';
3
3
  import { SortOrder } from '@atlaskit/editor-common/types';
4
4
  import type { AnalyticsEventPayload } from '../../analytics/events';
5
- type CellProps = CellAttributes & {
5
+ export type TableCellEdgeProps = {
6
+ reachesBottom?: boolean;
7
+ reachesLeft?: boolean;
8
+ reachesRight?: boolean;
9
+ reachesTop?: boolean;
10
+ };
11
+ type CellProps = CellAttributes & TableCellEdgeProps & {
6
12
  ariaSort?: string;
7
13
  children?: React.ReactNode;
8
14
  className?: string;
@@ -70,11 +70,13 @@ export declare class TableContainer extends React.Component<TableProps & Overflo
70
70
  private resizeObserver;
71
71
  private applyResizerChange;
72
72
  /**
73
+ * Starts observing table dimensions and wires sticky header/scrollbar behavior after mount.
73
74
  *
74
75
  * @example
75
76
  */
76
77
  componentDidMount(): void;
77
78
  /**
79
+ * Updates sticky header wiring and scroll synchronization after prop or state changes.
78
80
  *
79
81
  * @param prevProps
80
82
  * @param prevState
@@ -87,18 +89,19 @@ export declare class TableContainer extends React.Component<TableProps & Overflo
87
89
  onScroll: () => void;
88
90
  onWrapperScrolled: () => void;
89
91
  /**
90
- *
92
+ * Calculates the top offset used when the sticky header is pinned to the table bottom.
91
93
  */
92
94
  get pinTop(): number | undefined;
93
95
  /**
94
- *
96
+ * Determines whether sticky header positioning should include the default scroll root offset.
95
97
  */
96
98
  get shouldAddOverflowParentOffsetTop_DO_NOT_USE(): boolean | null | undefined;
97
99
  /**
98
- *
100
+ * Resolves the top position for the sticky header based on the current sticky mode.
99
101
  */
100
102
  get stickyTop(): number | undefined;
101
103
  /**
104
+ * Renders the table container, sticky header, table content, sticky scrollbar, and synced block borders.
102
105
  *
103
106
  * @example
104
107
  */
@@ -109,16 +112,14 @@ type TableProcessorState = {
109
112
  tableOrderStatus?: TableOrderStatus;
110
113
  };
111
114
  /**
112
- *
113
- */
114
- /**
115
- *
115
+ * Processes table children before passing them to the styled table container.
116
116
  */
117
117
  export declare class TableProcessorWithContainerStyles extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableProcessorState> {
118
118
  state: {
119
119
  tableOrderStatus: undefined;
120
120
  };
121
121
  /**
122
+ * Renders processed table children inside the table container.
122
123
  *
123
124
  * @example
124
125
  */
@@ -2,7 +2,13 @@ import React from 'react';
2
2
  import type { CellAttributes } from '@atlaskit/adf-schema';
3
3
  import { SortOrder } from '@atlaskit/editor-common/types';
4
4
  import type { AnalyticsEventPayload } from '../../analytics/events';
5
- type CellProps = CellAttributes & {
5
+ export type TableCellEdgeProps = {
6
+ reachesBottom?: boolean;
7
+ reachesLeft?: boolean;
8
+ reachesRight?: boolean;
9
+ reachesTop?: boolean;
10
+ };
11
+ type CellProps = CellAttributes & TableCellEdgeProps & {
6
12
  ariaSort?: string;
7
13
  children?: React.ReactNode;
8
14
  className?: string;
@@ -70,11 +70,13 @@ export declare class TableContainer extends React.Component<TableProps & Overflo
70
70
  private resizeObserver;
71
71
  private applyResizerChange;
72
72
  /**
73
+ * Starts observing table dimensions and wires sticky header/scrollbar behavior after mount.
73
74
  *
74
75
  * @example
75
76
  */
76
77
  componentDidMount(): void;
77
78
  /**
79
+ * Updates sticky header wiring and scroll synchronization after prop or state changes.
78
80
  *
79
81
  * @param prevProps
80
82
  * @param prevState
@@ -87,18 +89,19 @@ export declare class TableContainer extends React.Component<TableProps & Overflo
87
89
  onScroll: () => void;
88
90
  onWrapperScrolled: () => void;
89
91
  /**
90
- *
92
+ * Calculates the top offset used when the sticky header is pinned to the table bottom.
91
93
  */
92
94
  get pinTop(): number | undefined;
93
95
  /**
94
- *
96
+ * Determines whether sticky header positioning should include the default scroll root offset.
95
97
  */
96
98
  get shouldAddOverflowParentOffsetTop_DO_NOT_USE(): boolean | null | undefined;
97
99
  /**
98
- *
100
+ * Resolves the top position for the sticky header based on the current sticky mode.
99
101
  */
100
102
  get stickyTop(): number | undefined;
101
103
  /**
104
+ * Renders the table container, sticky header, table content, sticky scrollbar, and synced block borders.
102
105
  *
103
106
  * @example
104
107
  */
@@ -109,16 +112,14 @@ type TableProcessorState = {
109
112
  tableOrderStatus?: TableOrderStatus;
110
113
  };
111
114
  /**
112
- *
113
- */
114
- /**
115
- *
115
+ * Processes table children before passing them to the styled table container.
116
116
  */
117
117
  export declare class TableProcessorWithContainerStyles extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableProcessorState> {
118
118
  state: {
119
119
  tableOrderStatus: undefined;
120
120
  };
121
121
  /**
122
+ * Renders processed table children inside the table container.
122
123
  *
123
124
  * @example
124
125
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "130.4.2",
3
+ "version": "130.5.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,14 +44,14 @@
44
44
  "@atlaskit/editor-prosemirror": "^7.3.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.10.0",
46
46
  "@atlaskit/editor-smart-link-draggable": "^0.5.0",
47
- "@atlaskit/emoji": "^70.6.0",
47
+ "@atlaskit/emoji": "^70.7.0",
48
48
  "@atlaskit/feature-gate-js-client": "^5.5.0",
49
49
  "@atlaskit/icon": "^34.5.0",
50
50
  "@atlaskit/link": "^3.4.0",
51
51
  "@atlaskit/link-datasource": "^5.2.0",
52
52
  "@atlaskit/link-extractors": "^2.5.0",
53
53
  "@atlaskit/linking-common": "^9.11.0",
54
- "@atlaskit/media-card": "^80.4.0",
54
+ "@atlaskit/media-card": "^80.5.0",
55
55
  "@atlaskit/media-client": "^36.2.0",
56
56
  "@atlaskit/media-client-react": "^5.1.0",
57
57
  "@atlaskit/media-common": "^13.3.0",
@@ -62,11 +62,11 @@
62
62
  "@atlaskit/platform-feature-flags-react": "^0.5.0",
63
63
  "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
64
64
  "@atlaskit/react-ufo": "^5.20.0",
65
- "@atlaskit/smart-card": "^44.9.0",
66
- "@atlaskit/status": "^4.0.0",
67
- "@atlaskit/task-decision": "^20.0.0",
65
+ "@atlaskit/smart-card": "^44.10.0",
66
+ "@atlaskit/status": "^4.1.0",
67
+ "@atlaskit/task-decision": "^20.1.0",
68
68
  "@atlaskit/theme": "^23.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^80.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^80.1.0",
70
70
  "@atlaskit/tokens": "^13.0.0",
71
71
  "@atlaskit/tooltip": "^22.2.0",
72
72
  "@atlaskit/visually-hidden": "^3.1.0",
@@ -97,10 +97,10 @@
97
97
  "@atlaskit/media-core": "^37.0.0",
98
98
  "@atlaskit/media-integration-test-helpers": "workspace:^",
99
99
  "@atlaskit/media-test-helpers": "^41.0.0",
100
- "@atlaskit/mention": "^25.0.0",
100
+ "@atlaskit/mention": "^25.1.0",
101
101
  "@atlaskit/modal-dialog": "^15.0.0",
102
102
  "@atlaskit/navigation-system": "^9.3.0",
103
- "@atlaskit/profilecard": "^25.5.0",
103
+ "@atlaskit/profilecard": "^25.6.0",
104
104
  "@atlaskit/side-nav-items": "^1.13.0",
105
105
  "@atlaskit/util-data-test": "^18.5.0",
106
106
  "@atlassian/a11y-jest-testing": "^0.11.0",