@atlaskit/renderer 136.2.4 → 136.2.6
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 +18 -0
- package/dist/cjs/actions/get-renderer-range-inline-node-names.js +3 -3
- package/dist/cjs/actions/index.js +2 -2
- package/dist/cjs/react/index.js +6 -8
- package/dist/cjs/react/marks/breakout.js +10 -38
- package/dist/cjs/react/marks/code.js +2 -2
- package/dist/cjs/react/marks/link.js +4 -4
- package/dist/cjs/react/nodes/TableStickyScrollbar.js +3 -3
- package/dist/cjs/react/nodes/blockCard.js +9 -21
- package/dist/cjs/react/nodes/bodiedExtension.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -3
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockDownloadButton.js +4 -4
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -3
- package/dist/cjs/react/nodes/embedCard.js +8 -20
- package/dist/cjs/react/nodes/emoji.js +3 -3
- package/dist/cjs/react/nodes/extension.js +5 -5
- package/dist/cjs/react/nodes/fallback.js +1 -1
- package/dist/cjs/react/nodes/heading-anchor.js +3 -3
- package/dist/cjs/react/nodes/heading.js +2 -2
- package/dist/cjs/react/nodes/inlineCard.js +9 -9
- package/dist/cjs/react/nodes/layoutColumn-compiled.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn-emotion.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn.js +2 -2
- package/dist/cjs/react/nodes/media/index.js +7 -7
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +9 -8
- package/dist/cjs/react/nodes/mediaSingle/index.js +2 -2
- package/dist/cjs/react/nodes/mention.js +2 -2
- package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -2
- package/dist/cjs/react/nodes/panel.js +2 -2
- package/dist/cjs/react/nodes/status.js +9 -9
- package/dist/cjs/react/nodes/table/colgroup.js +4 -4
- package/dist/cjs/react/nodes/table/table.js +4 -4
- package/dist/cjs/react/nodes/table.js +2 -2
- package/dist/cjs/react/nodes/tableNew.js +6 -6
- package/dist/cjs/react/nodes/taskItem.js +2 -2
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +7 -6
- package/dist/cjs/react/utils/getCardClickHandler.js +2 -2
- package/dist/cjs/render-document.js +3 -3
- package/dist/cjs/steps/index.js +6 -6
- package/dist/cjs/text/nodes/status.js +2 -2
- package/dist/cjs/ui/Expand.js +6 -6
- package/dist/cjs/ui/MediaCard.js +2 -2
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +8 -13
- package/dist/cjs/ui/Renderer/breakout-ssr.js +3 -3
- package/dist/cjs/ui/Renderer/index.js +11 -11
- package/dist/cjs/ui/RendererActionsContext/index.js +7 -7
- package/dist/cjs/ui/annotations/element/mark.js +4 -4
- package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +2 -2
- package/dist/cjs/ui/annotations/index.js +2 -2
- package/dist/cjs/ui/annotations/selection/mounter.js +2 -2
- package/dist/es2019/actions/get-renderer-range-inline-node-names.js +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/react/index.js +3 -5
- package/dist/es2019/react/marks/breakout.js +10 -39
- package/dist/es2019/react/marks/code.js +1 -1
- package/dist/es2019/react/marks/link.js +2 -2
- package/dist/es2019/react/nodes/TableStickyScrollbar.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +5 -17
- package/dist/es2019/react/nodes/bodiedExtension.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -2
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockDownloadButton.js +2 -2
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +4 -16
- package/dist/es2019/react/nodes/emoji.js +1 -1
- package/dist/es2019/react/nodes/extension.js +3 -3
- package/dist/es2019/react/nodes/fallback.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +1 -1
- package/dist/es2019/react/nodes/heading.js +1 -1
- package/dist/es2019/react/nodes/inlineCard.js +3 -3
- package/dist/es2019/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +3 -3
- package/dist/es2019/react/nodes/mediaGroup.js +1 -1
- package/dist/es2019/react/nodes/mediaInline.js +4 -3
- package/dist/es2019/react/nodes/mediaSingle/index.js +1 -1
- package/dist/es2019/react/nodes/mention.js +1 -1
- package/dist/es2019/react/nodes/multiBodiedExtension.js +2 -2
- package/dist/es2019/react/nodes/panel.js +1 -1
- package/dist/es2019/react/nodes/status.js +2 -2
- package/dist/es2019/react/nodes/table/colgroup.js +1 -1
- package/dist/es2019/react/nodes/table/table.js +1 -1
- package/dist/es2019/react/nodes/table.js +1 -1
- package/dist/es2019/react/nodes/tableNew.js +1 -1
- package/dist/es2019/react/nodes/taskItem.js +1 -1
- package/dist/es2019/react/utils/EditorMediaClientProvider.js +3 -2
- package/dist/es2019/react/utils/getCardClickHandler.js +1 -1
- package/dist/es2019/render-document.js +1 -1
- package/dist/es2019/steps/index.js +1 -1
- package/dist/es2019/text/nodes/status.js +1 -1
- package/dist/es2019/ui/Expand.js +2 -2
- package/dist/es2019/ui/MediaCard.js +1 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +5 -14
- package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +3 -3
- package/dist/es2019/ui/RendererActionsContext/index.js +3 -3
- package/dist/es2019/ui/annotations/element/mark.js +1 -1
- package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -1
- package/dist/es2019/ui/annotations/index.js +1 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
- package/dist/esm/actions/get-renderer-range-inline-node-names.js +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/react/index.js +3 -5
- package/dist/esm/react/marks/breakout.js +10 -39
- package/dist/esm/react/marks/code.js +1 -1
- package/dist/esm/react/marks/link.js +2 -2
- package/dist/esm/react/nodes/TableStickyScrollbar.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +5 -17
- package/dist/esm/react/nodes/bodiedExtension.js +1 -1
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -2
- package/dist/esm/react/nodes/codeBlock/components/codeBlockDownloadButton.js +2 -2
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +4 -16
- package/dist/esm/react/nodes/emoji.js +1 -1
- package/dist/esm/react/nodes/extension.js +3 -3
- package/dist/esm/react/nodes/fallback.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +1 -1
- package/dist/esm/react/nodes/heading.js +1 -1
- package/dist/esm/react/nodes/inlineCard.js +3 -3
- package/dist/esm/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/esm/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/esm/react/nodes/layoutColumn.js +1 -1
- package/dist/esm/react/nodes/media/index.js +3 -3
- package/dist/esm/react/nodes/mediaGroup.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +4 -3
- package/dist/esm/react/nodes/mediaSingle/index.js +1 -1
- package/dist/esm/react/nodes/mention.js +1 -1
- package/dist/esm/react/nodes/multiBodiedExtension.js +2 -2
- package/dist/esm/react/nodes/panel.js +1 -1
- package/dist/esm/react/nodes/status.js +2 -2
- package/dist/esm/react/nodes/table/colgroup.js +1 -1
- package/dist/esm/react/nodes/table/table.js +1 -1
- package/dist/esm/react/nodes/table.js +1 -1
- package/dist/esm/react/nodes/tableNew.js +1 -1
- package/dist/esm/react/nodes/taskItem.js +1 -1
- package/dist/esm/react/utils/EditorMediaClientProvider.js +3 -2
- package/dist/esm/react/utils/getCardClickHandler.js +1 -1
- package/dist/esm/render-document.js +1 -1
- package/dist/esm/steps/index.js +1 -1
- package/dist/esm/text/nodes/status.js +1 -1
- package/dist/esm/ui/Expand.js +2 -2
- package/dist/esm/ui/MediaCard.js +1 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +6 -11
- package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/esm/ui/Renderer/index.js +3 -3
- package/dist/esm/ui/RendererActionsContext/index.js +3 -3
- package/dist/esm/ui/annotations/element/mark.js +1 -1
- package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -1
- package/dist/esm/ui/annotations/index.js +1 -1
- package/dist/esm/ui/annotations/selection/mounter.js +1 -1
- package/dist/types/actions/index.d.ts +2 -2
- package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +1 -1
- package/dist/types/react/nodes/fallback.d.ts +1 -1
- package/dist/types/types/mediaOptions.d.ts +1 -1
- package/dist/types/ui/MediaCard.d.ts +1 -1
- package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
- package/dist/types/ui/Renderer/rendererHelper.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
- package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +1 -1
- package/dist/types/ui/annotations/view/index.d.ts +1 -1
- package/dist/types/ui/annotations/wrapper.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +1 -1
- package/package.json +13 -3
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import React, { Component, useContext } from 'react';
|
|
4
4
|
import { filter } from '@atlaskit/adf-utils/traverse';
|
|
5
5
|
import { Card as CardAsync, CardSync, CardLoading, CardError } from '@atlaskit/media-card';
|
|
6
|
-
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
6
|
+
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
7
7
|
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import AnalyticsContext from '../analytics/analyticsContext';
|
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/c
|
|
|
10
10
|
|
|
11
11
|
import { FullPagePadding } from './style';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
14
|
import { RendererCssClassName } from '../../consts';
|
|
15
15
|
import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth, akEditorGutterPadding, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, blockNodesVerticalMargin, scaledBlockNodesVerticalMargin, gridMediumMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
@@ -1235,7 +1235,7 @@ const headerSmartCardStyles = css({
|
|
|
1235
1235
|
}
|
|
1236
1236
|
});
|
|
1237
1237
|
|
|
1238
|
-
// Flex wrapper for centering without transform
|
|
1238
|
+
// Flex wrapper for centering without transform.
|
|
1239
1239
|
// flex: 1 1 0% + minWidth: 0 so the wrapper takes full width when it's a flex item (full-width nodes otherwise render narrow).
|
|
1240
1240
|
// flexShrink: 0 on child so the node keeps size.
|
|
1241
1241
|
const centerWrapperStyles = css({
|
|
@@ -1340,7 +1340,7 @@ const baseOtherStylesDuplicateAnchor = css({
|
|
|
1340
1340
|
[`.${RendererCssClassName.STICKY_SAFE_CENTER_WRAPPER} .${RendererCssClassName.EXTENSION}`]: {
|
|
1341
1341
|
marginBottom: 0
|
|
1342
1342
|
},
|
|
1343
|
-
/*
|
|
1343
|
+
/* Embed card center wrapper has margin; zero MediaSingle vertical margin when wrapped so it doesn't double */
|
|
1344
1344
|
[`.${RendererCssClassName.EMBED_CARD_CENTER_WRAPPER} .mediaSingleView-content-wrap`]: {
|
|
1345
1345
|
marginTop: 0,
|
|
1346
1346
|
marginBottom: 0
|
|
@@ -1376,15 +1376,6 @@ const hideExtensionStyles = css({
|
|
|
1376
1376
|
marginTop: 0
|
|
1377
1377
|
}
|
|
1378
1378
|
});
|
|
1379
|
-
const extensionCenterAlignLegacyStyles = css({
|
|
1380
|
-
[`.${RendererCssClassName.DOCUMENT}`]: {
|
|
1381
|
-
[`.${RendererCssClassName.EXTENSION_CENTER_ALIGN}`]: {
|
|
1382
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
1383
|
-
marginLeft: '50%',
|
|
1384
|
-
transform: 'translateX(-50%)'
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
1379
|
const baseOtherStyles = css({
|
|
1389
1380
|
'& .UnknownBlock': {
|
|
1390
1381
|
fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
@@ -1473,7 +1464,7 @@ const baseOtherStyles = css({
|
|
|
1473
1464
|
[`.${RendererCssClassName.STICKY_SAFE_CENTER_WRAPPER} .${RendererCssClassName.EXTENSION}`]: {
|
|
1474
1465
|
marginBottom: 0
|
|
1475
1466
|
},
|
|
1476
|
-
/*
|
|
1467
|
+
/* Embed card center wrapper has margin; zero MediaSingle vertical margin when wrapped so it doesn't double */
|
|
1477
1468
|
[`.${RendererCssClassName.EMBED_CARD_CENTER_WRAPPER} .mediaSingleView-content-wrap`]: {
|
|
1478
1469
|
marginTop: 0,
|
|
1479
1470
|
marginBottom: 0
|
|
@@ -2922,7 +2913,7 @@ export const RendererStyleContainer = props => {
|
|
|
2922
2913
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2923
2914
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2924
2915
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2925
|
-
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
2916
|
+
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
2926
2917
|
// this should be placed after baseOtherStyles
|
|
2927
2918
|
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,
|
|
2928
2919
|
// merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { breakoutConsts } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { FullPagePadding } from './style';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
7
|
/**
|
|
@@ -19,9 +19,9 @@ import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigati
|
|
|
19
19
|
import { useScrollToBlock } from '../hooks/useScrollToBlock';
|
|
20
20
|
import { getAnalyticsAppearance, getAnalyticsEventSeverity, shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
21
21
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
23
23
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
24
|
-
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
24
|
+
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
|
|
25
25
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
26
26
|
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
27
27
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
@@ -60,7 +60,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
60
60
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
61
61
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
62
62
|
const packageName = "@atlaskit/renderer";
|
|
63
|
-
const packageVersion = "136.2.
|
|
63
|
+
const packageVersion = "136.2.5";
|
|
64
64
|
const setAsQueryContainerStyles = css({
|
|
65
65
|
containerName: 'ak-renderer-wrapper',
|
|
66
66
|
containerType: 'inline-size'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc */
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
6
6
|
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import RendererActions from '../../actions/index';
|
|
8
8
|
export const RendererContext = /*#__PURE__*/React.createContext(new RendererActions());
|
|
@@ -7,7 +7,7 @@ import { useMemo, useCallback } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
12
|
import { inlineCommentMessages } from '../../../messages';
|
|
13
13
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc */
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
4
4
|
export function useInlineAnnotationProps(props) {
|
|
5
5
|
const {
|
|
@@ -5,7 +5,7 @@ import { AnnotationsContextWrapper } from './wrapper';
|
|
|
5
5
|
import { ProvidersContext, InlineCommentsStateContext } from './context';
|
|
6
6
|
import { useLoadAnnotations } from './hooks/use-load-annotations';
|
|
7
7
|
import { useAnnotationStateByTypeEvent } from './hooks/use-events';
|
|
8
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
9
9
|
import { AnnotationRangeProvider } from './contexts/AnnotationRangeContext';
|
|
10
10
|
import { AnnotationHoverContext } from './contexts/AnnotationHoverContext';
|
|
11
11
|
import { AnnotationManagerProvider } from './contexts/AnnotationManagerContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useMemo, useEffect } from 'react';
|
|
2
2
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
6
|
import uuid from 'uuid/v4';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getRangeInlineNodeNames, getRangeAncestorNodeNames } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
export function getRendererRangeInlineNodeNames(_ref) {
|
|
4
4
|
var actions = _ref.actions,
|
|
5
5
|
pos = _ref.pos;
|
|
@@ -8,7 +8,7 @@ import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
|
8
8
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { AddNodeMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { createAnnotationStep, getPosFromRange } from '../steps';
|
|
13
13
|
import { getRendererRangeInlineNodeNames, getRendererRangeAncestorNodeNames } from './get-renderer-range-inline-node-names';
|
|
14
14
|
import { getIndexMatch } from './matches-utils';
|
package/dist/esm/react/index.js
CHANGED
|
@@ -17,11 +17,11 @@ import { isNestedHeaderLinksEnabled } from './utils/links';
|
|
|
17
17
|
import { getColumnWidths } from '@atlaskit/editor-common/utils';
|
|
18
18
|
import { getMarksByOrder, isSameMark } from '@atlaskit/editor-common/validator';
|
|
19
19
|
import { findChildrenByMark, findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
21
|
import { getText } from '../utils';
|
|
22
22
|
import { isAnnotationMark, toReact as markToReact } from './marks';
|
|
23
23
|
import { isCodeMark } from './marks/code';
|
|
24
|
-
import { getNestedUnderNodes, insideBlockNode,
|
|
24
|
+
import { getNestedUnderNodes, insideBlockNode, insideMultiBodiedExtension, insideTable } from './renderer-node';
|
|
25
25
|
import { renderTextSegments } from './utils/render-text-segments';
|
|
26
26
|
import { segmentText } from './utils/segment-text';
|
|
27
27
|
import { getStandaloneBackgroundColorMarks } from './utils/getStandaloneBackgroundColorMarks';
|
|
@@ -440,9 +440,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
440
440
|
var isInsideOfBlockNode = insideBlockNode(path, node.type.schema);
|
|
441
441
|
var isInsideMultiBodiedExtension = insideMultiBodiedExtension(path, node.type.schema);
|
|
442
442
|
var isInsideOfTable = insideTable(path, node.type.schema);
|
|
443
|
-
var
|
|
444
|
-
var isInsideBreakoutExpand = !isStickySafeCenteringEnabled && expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && insideBreakoutExpand(path);
|
|
445
|
-
var stickyHeaders = isStickySafeCenteringEnabled ? !isInsideOfTable ? this.stickyHeaders : undefined : !isInsideOfTable && !insideBreakoutLayout(path) && !isInsideBreakoutExpand ? this.stickyHeaders : undefined;
|
|
443
|
+
var stickyHeaders = !isInsideOfTable ? this.stickyHeaders : undefined;
|
|
446
444
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
447
445
|
allowColumnSorting: this.allowColumnSorting,
|
|
448
446
|
columnWidths: getColumnWidths(node),
|
|
@@ -9,15 +9,6 @@ import { akEditorFullWidthLayoutWidth, akEditorMaxLayoutWidth, blockNodesVertica
|
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { RendererCssClassName } from '../../consts';
|
|
12
|
-
|
|
13
|
-
// Legacy centering (breaks position: sticky in nested content).
|
|
14
|
-
var legacyWrapperStyles = css({
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
-
margin: "".concat(blockNodesVerticalMargin, " 0"),
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
18
|
-
marginLeft: '50%',
|
|
19
|
-
transform: 'translateX(-50%)'
|
|
20
|
-
});
|
|
21
12
|
var flexWrapperStyles = css({
|
|
22
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
14
|
margin: "".concat(blockNodesVerticalMargin, " 0")
|
|
@@ -56,32 +47,15 @@ export default function Breakout(props) {
|
|
|
56
47
|
var _props$width;
|
|
57
48
|
var breakoutWidth = (_props$width = props.width) !== null && _props$width !== void 0 ? _props$width : null;
|
|
58
49
|
var width = getWidth(breakoutWidth, props.mode);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
,
|
|
69
|
-
className: "".concat(RendererCssClassName.STICKY_SAFE_BREAKOUT_INNER, " fabric-editor-breakout-mark fabric-editor-block-mark"),
|
|
70
|
-
"data-mode": props.mode
|
|
71
|
-
// Ignored via go/ees005
|
|
72
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
73
|
-
}, editorExperiment('advanced_layouts', true) && {
|
|
74
|
-
'data-has-width': !!props.width,
|
|
75
|
-
'data-width': props.width
|
|
76
|
-
}, {
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
78
|
-
style: {
|
|
79
|
-
width: width
|
|
80
|
-
}
|
|
81
|
-
}), props.children));
|
|
82
|
-
}
|
|
83
|
-
return jsx("div", _extends({
|
|
84
|
-
css: legacyWrapperStyles,
|
|
50
|
+
return jsx("div", {
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
52
|
+
className: RendererCssClassName.STICKY_SAFE_BREAKOUT_WRAPPER + ' ' + RendererCssClassName.FLEX_CENTER_WRAPPER,
|
|
53
|
+
css: flexWrapperStyles
|
|
54
|
+
}, jsx("div", _extends({
|
|
55
|
+
css: innerWrapperStyles
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
57
|
+
,
|
|
58
|
+
className: "".concat(RendererCssClassName.STICKY_SAFE_BREAKOUT_INNER, " fabric-editor-breakout-mark fabric-editor-block-mark"),
|
|
85
59
|
"data-mode": props.mode
|
|
86
60
|
// Ignored via go/ees005
|
|
87
61
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -93,8 +67,5 @@ export default function Breakout(props) {
|
|
|
93
67
|
style: {
|
|
94
68
|
width: width
|
|
95
69
|
}
|
|
96
|
-
|
|
97
|
-
,
|
|
98
|
-
className: "fabric-editor-breakout-mark fabric-editor-block-mark"
|
|
99
|
-
}), props.children);
|
|
70
|
+
}), props.children));
|
|
100
71
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
|
-
import AkCode from '@atlaskit/code/
|
|
4
|
+
import AkCode from '@atlaskit/code/code';
|
|
5
5
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
export var isCodeMark = function isCodeMark(mark) {
|
|
7
7
|
return mark && mark.type && mark.type.name === 'code';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { Fragment } from 'react';
|
|
3
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
3
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
4
4
|
import { getEventHandler } from '../../utils';
|
|
5
5
|
import { PLATFORM, MODE } from '../../analytics/events';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
-
import
|
|
8
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
9
9
|
import { LinkUrlCompiled } from './link-compiled';
|
|
10
10
|
import { LinkUrlEmotion } from './link-emotion';
|
|
11
11
|
var LinkUrlMigration = componentWithCondition(function () {
|
|
@@ -2,7 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
export var TableStickyScrollbar = /*#__PURE__*/function () {
|
|
7
7
|
function TableStickyScrollbar(wrapper) {
|
|
8
8
|
var _this = this;
|
|
@@ -12,11 +12,10 @@ import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from
|
|
|
12
12
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
13
13
|
import { getEventHandler } from '../../utils';
|
|
14
14
|
import InlineCard from './inlineCard';
|
|
15
|
-
import
|
|
15
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
16
16
|
import { DatasourceTableView } from '@atlaskit/link-datasource';
|
|
17
17
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
19
|
import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
21
20
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
22
21
|
import { RendererCssClassName } from '../../consts';
|
|
@@ -32,22 +31,12 @@ var datasourceContainerStyleWithMarginTop = css({
|
|
|
32
31
|
marginBottom: "var(--ds-space-150, 12px)"
|
|
33
32
|
});
|
|
34
33
|
|
|
35
|
-
// No vertical margin when inside center wrapper (wrapper has margin so it participates in collapse).
|
|
34
|
+
// No vertical margin when inside center wrapper (wrapper has margin so it participates in collapse).
|
|
36
35
|
var datasourceContainerStyleNoVerticalMargin = css({
|
|
37
36
|
borderRadius: "var(--ds-radius-large, 8px)",
|
|
38
37
|
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
39
38
|
overflow: 'hidden'
|
|
40
39
|
});
|
|
41
|
-
var datasourceContainerStyleLegacy = css({
|
|
42
|
-
borderRadius: "var(--ds-radius-large, 8px)",
|
|
43
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
44
|
-
overflow: 'hidden',
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
46
|
-
marginLeft: '50%',
|
|
47
|
-
marginBottom: "var(--ds-space-150, 12px)",
|
|
48
|
-
transform: 'translateX(-50%)',
|
|
49
|
-
marginTop: "var(--ds-space-150, 12px)"
|
|
50
|
-
});
|
|
51
40
|
export default function BlockCard(props) {
|
|
52
41
|
var url = props.url,
|
|
53
42
|
data = props.data,
|
|
@@ -132,10 +121,9 @@ export default function BlockCard(props) {
|
|
|
132
121
|
onClick: onConsumerClick
|
|
133
122
|
}), jsx(WidthConsumer, null, function (_ref5) {
|
|
134
123
|
var width = _ref5.width;
|
|
135
|
-
var
|
|
136
|
-
var useCenterWrapper = !isNodeNested && useStickySafeCentering;
|
|
124
|
+
var useCenterWrapper = !isNodeNested;
|
|
137
125
|
var datasourceDiv = jsx("div", {
|
|
138
|
-
css: useCenterWrapper ? datasourceContainerStyleNoVerticalMargin :
|
|
126
|
+
css: useCenterWrapper ? datasourceContainerStyleNoVerticalMargin : datasourceContainerStyleWithMarginTop,
|
|
139
127
|
"data-testid": "renderer-datasource-table",
|
|
140
128
|
"data-local-id": localId,
|
|
141
129
|
style: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
4
|
import { renderExtension } from './extension';
|
|
5
5
|
import { ErrorBoundary } from '../../ui/Renderer/ErrorBoundary';
|
|
6
6
|
import ExtensionRenderer from '../../ui/ExtensionRenderer';
|
|
@@ -8,7 +8,7 @@ import { useState } from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
11
|
-
import
|
|
11
|
+
import AkCodeBlock from '@atlaskit/code/code-block';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
14
14
|
function CodeBlock(props) {
|
|
@@ -3,10 +3,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
7
7
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
8
8
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
12
|
import { useState } from 'react';
|
|
@@ -7,8 +7,8 @@ import { injectIntl } from 'react-intl';
|
|
|
7
7
|
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import
|
|
11
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
10
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
11
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
12
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
14
14
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl';
|
|
8
8
|
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
9
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
9
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
10
10
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
11
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
11
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
12
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
14
14
|
var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
@@ -13,9 +13,8 @@ import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
|
13
13
|
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
14
14
|
import { WidthConsumer, UnsupportedBlock, MediaSingle as UIMediaSingle, WidthContext } from '@atlaskit/editor-common/ui';
|
|
15
15
|
import { akEditorDefaultLayoutWidth, akEditorFullPageNarrowBreakout, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
18
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
19
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
19
|
import { CardErrorBoundary } from './fallback';
|
|
21
20
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
@@ -23,7 +22,7 @@ import { RendererCssClassName } from '../../consts';
|
|
|
23
22
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
24
23
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
25
24
|
import { getEventHandler } from '../../utils';
|
|
26
|
-
import
|
|
25
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
27
26
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
28
27
|
import BlockCard from './blockCard';
|
|
29
28
|
var embedCardWrapperStyles = css({
|
|
@@ -44,14 +43,6 @@ var embedCardCenterWrapperStyles = css({
|
|
|
44
43
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space -- Matches editor-common MediaSingle calcMargin
|
|
45
44
|
margin: '24px 0'
|
|
46
45
|
});
|
|
47
|
-
|
|
48
|
-
// Legacy centering when platform_editor_flex_based_centering is off.
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
50
|
-
var uIMediaSingleLayoutStylesLegacy = css({
|
|
51
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
52
|
-
marginLeft: '50%',
|
|
53
|
-
transform: 'translateX(-50%)'
|
|
54
|
-
});
|
|
55
46
|
function EmbedCardInternal(props) {
|
|
56
47
|
var _smartLinks$frameStyl;
|
|
57
48
|
var url = props.url,
|
|
@@ -156,8 +147,6 @@ function EmbedCardInternal(props) {
|
|
|
156
147
|
}
|
|
157
148
|
}
|
|
158
149
|
var lineLength = isFullWidth ? Math.min(akEditorFullWidthLayoutWidth, containerWidth - padding) : nonFullWidthSize;
|
|
159
|
-
var useStickySafeCentering = expValEquals('platform_editor_flex_based_centering', 'isEnabled', true);
|
|
160
|
-
var uiMediaSingleStyles = layout === 'full-width' || layout === 'wide' ? useStickySafeCentering ? undefined : uIMediaSingleLayoutStylesLegacy : '';
|
|
161
150
|
var onError = function onError(_ref4) {
|
|
162
151
|
var err = _ref4.err;
|
|
163
152
|
if (err) {
|
|
@@ -213,9 +202,8 @@ function EmbedCardInternal(props) {
|
|
|
213
202
|
embedIframeRef: embedIframeRef,
|
|
214
203
|
onHeightUpdate: setLiveHeight
|
|
215
204
|
}, function () {
|
|
216
|
-
var useCenterWrapper =
|
|
205
|
+
var useCenterWrapper = layout === 'full-width' || layout === 'wide';
|
|
217
206
|
var mediaSingle = jsx(UIMediaSingle, {
|
|
218
|
-
css: uiMediaSingleStyles,
|
|
219
207
|
layout: layout,
|
|
220
208
|
width: originalWidth,
|
|
221
209
|
containerWidth: containerWidth,
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
14
|
import { jsx } from '@emotion/react';
|
|
15
15
|
import { messages } from '@atlaskit/editor-common/emoji';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
17
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
18
18
|
import { PureComponent, memo } from 'react';
|
|
19
19
|
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -15,7 +15,7 @@ import { RendererCssClassName } from '../../consts';
|
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
import { calcBreakoutWidthCss } from '../utils/breakout';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
19
|
var viewportSizes = ['small', 'medium', 'default', 'large', 'xlarge'];
|
|
20
20
|
// Mirrors sizes from https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/forge/xen-editor-provider/src/render/renderers/ForgeUIExtension.tsx
|
|
21
21
|
var macroHeights = {
|
|
@@ -126,7 +126,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
126
126
|
className: "".concat(RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
127
127
|
css: [!(isInsideOfTable && isExperimentEnabled('platform_editor_table_fit_to_content_patch_1')) && !isInsideOfInlineExtension && fg('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
128
128
|
}, asInlineAnalytics, content));
|
|
129
|
-
return centerAlignClass
|
|
129
|
+
return centerAlignClass ? jsx("div", {
|
|
130
130
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
131
131
|
className: RendererCssClassName.STICKY_SAFE_CENTER_WRAPPER + ' ' + RendererCssClassName.FLEX_CENTER_WRAPPER
|
|
132
132
|
}, extensionDiv) : extensionDiv;
|
|
@@ -156,7 +156,7 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
156
156
|
className: "".concat(RendererCssClassName.EXTENSION_INNER_WRAPPER, " ").concat(overflowContainerClass),
|
|
157
157
|
css: [!(isInsideOfTable && isExperimentEnabled('platform_editor_table_fit_to_content_patch_1')) && !isInsideOfInlineExtension && fg('platform_fix_macro_renders_in_layouts') && containerStyle]
|
|
158
158
|
}, asInlineAnalytics, content));
|
|
159
|
-
return centerAlignClass
|
|
159
|
+
return centerAlignClass ? jsx("div", {
|
|
160
160
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
161
161
|
className: RendererCssClassName.STICKY_SAFE_CENTER_WRAPPER + ' ' + RendererCssClassName.FLEX_CENTER_WRAPPER
|
|
162
162
|
}, extensionDiv) : extensionDiv;
|
|
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
12
|
-
import Link from '@atlaskit/link';
|
|
12
|
+
import Link from '@atlaskit/link/link';
|
|
13
13
|
import { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from '@atlaskit/link-datasource';
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { InlineCard } from './';
|
|
@@ -22,7 +22,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
22
22
|
import { injectIntl } from 'react-intl';
|
|
23
23
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
24
24
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
25
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
25
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
26
26
|
import { headingAnchorLinkMessages } from '../../messages';
|
|
27
27
|
export var HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
28
28
|
var CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -5,7 +5,7 @@ import "./heading.compiled.css";
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
|
-
import
|
|
8
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
9
9
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
10
10
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
11
11
|
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
@@ -14,8 +14,8 @@ import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
|
14
14
|
import { useSmartLinkActions } from '@atlaskit/smart-card/hooks';
|
|
15
15
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
16
16
|
import { HoverLinkOverlay, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
20
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
21
21
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
@@ -26,7 +26,7 @@ import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
|
26
26
|
import { getEventHandler } from '../../utils';
|
|
27
27
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
28
28
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
29
|
-
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors';
|
|
29
|
+
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
30
30
|
var HoverLinkOverlayNoop = function HoverLinkOverlayNoop(props) {
|
|
31
31
|
return jsx(Fragment, null, props.children);
|
|
32
32
|
};
|
|
@@ -9,7 +9,7 @@ import "./layoutColumn-compiled.compiled.css";
|
|
|
9
9
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { WidthProvider } from '@atlaskit/editor-common/ui';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
|
|
15
15
|
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
@@ -14,7 +14,7 @@ import React from 'react';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import { WidthProvider } from '@atlaskit/editor-common/ui';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
|
|
20
20
|
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
2
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
import { LayoutSectionCompiled } from './layoutColumn-compiled';
|
|
5
5
|
import { LayoutSectionEmotion } from './layoutColumn-emotion';
|
|
@@ -20,11 +20,11 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
20
20
|
import React, { PureComponent, Fragment, useEffect, useState, useMemo } from 'react';
|
|
21
21
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
22
22
|
import { jsx, css } from '@emotion/react';
|
|
23
|
-
import
|
|
24
|
-
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
|
|
23
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
24
|
+
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
|
|
25
25
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
26
26
|
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
27
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
28
28
|
import { MediaCard } from '../../../ui/MediaCard';
|
|
29
29
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
30
30
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|