@atlaskit/renderer 136.2.5 → 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 +10 -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 +5 -5
- 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 +6 -6
- 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 +7 -7
- package/dist/cjs/react/nodes/emoji.js +3 -3
- package/dist/cjs/react/nodes/extension.js +3 -3
- 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/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 +4 -4
- 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 +1 -1
- 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 +2 -2
- 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 +3 -3
- package/dist/es2019/react/nodes/emoji.js +1 -1
- package/dist/es2019/react/nodes/extension.js +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +3 -3
- package/dist/esm/react/nodes/emoji.js +1 -1
- package/dist/esm/react/nodes/extension.js +1 -1
- 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/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 +1 -1
- 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 +12 -2
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -15,8 +15,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
15
15
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
17
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
19
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
21
|
var _uniqueId2 = _interopRequireDefault(require("lodash/uniqueId"));
|
|
22
22
|
var _reactIntl = require("react-intl");
|
|
@@ -266,7 +266,7 @@ function Expand(_ref2) {
|
|
|
266
266
|
// children haven't been loaded yet. When lazy load is OFF, children are
|
|
267
267
|
// always in the DOM — hidden="until-found" on the wrapper already makes
|
|
268
268
|
// them searchable by browser find, so no placeholder is needed.
|
|
269
|
-
var shouldRenderBrowserFindText = !shouldRenderLazyChildren && searchText && (0,
|
|
269
|
+
var shouldRenderBrowserFindText = !shouldRenderLazyChildren && searchText && (0, _fg.fg)('hot-121622_lazy_load_expand_content') && (0, _expValEquals.expValEquals)('platform_editor_close_expand_find', 'isEnabled', true);
|
|
270
270
|
|
|
271
271
|
// Feature-detect hidden="until-found" support via the beforematch event.
|
|
272
272
|
// Chrome 102+ and Firefox 130+ support it; Safari does not yet.
|
|
@@ -333,9 +333,9 @@ function Expand(_ref2) {
|
|
|
333
333
|
// Browser find path: keep a lightweight text mirror in the closed expand
|
|
334
334
|
// so Ctrl+F can index it without mounting the rich children tree.
|
|
335
335
|
expandContent = (0, _react.jsx)("span", null, searchText);
|
|
336
|
-
} else if (!shouldRenderLazyChildren && (0,
|
|
336
|
+
} else if (!shouldRenderLazyChildren && (0, _fg.fg)('hot-121622_lazy_load_expand_content')) {
|
|
337
337
|
expandContent = null;
|
|
338
|
-
} else if ((0,
|
|
338
|
+
} else if ((0, _fg.fg)('hot-121622_lazy_load_expand_content')) {
|
|
339
339
|
expandContent = (0, _react.jsx)(_react2.Suspense, {
|
|
340
340
|
fallback: (0, _react.jsx)("div", null, intl.formatMessage(_ui.expandMessages.loading))
|
|
341
341
|
}, (0, _react.jsx)(LazyChildren, null, children));
|
|
@@ -387,7 +387,7 @@ function Expand(_ref2) {
|
|
|
387
387
|
label: label,
|
|
388
388
|
spacing: "spacious",
|
|
389
389
|
size: "small"
|
|
390
|
-
})) : (0, _react.jsx)(
|
|
390
|
+
})) : (0, _react.jsx)(_Tooltip.default, {
|
|
391
391
|
content: label,
|
|
392
392
|
position: "top"
|
|
393
393
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
package/dist/cjs/ui/MediaCard.js
CHANGED
|
@@ -18,7 +18,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
var _traverse = require("@atlaskit/adf-utils/traverse");
|
|
20
20
|
var _mediaCard = require("@atlaskit/media-card");
|
|
21
|
-
var
|
|
21
|
+
var _mediaClientProvider = require("@atlaskit/media-client-react/media-client-provider");
|
|
22
22
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
23
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
24
|
var _analyticsContext = _interopRequireDefault(require("../analytics/analyticsContext"));
|
|
@@ -410,7 +410,7 @@ var getClipboardAttrs = exports.getClipboardAttrs = function getClipboardAttrs(_
|
|
|
410
410
|
};
|
|
411
411
|
};
|
|
412
412
|
var MediaCardInternal = exports.MediaCardInternal = function MediaCardInternal(props) {
|
|
413
|
-
var mediaClient = (0, _react.useContext)(
|
|
413
|
+
var mediaClient = (0, _react.useContext)(_mediaClientProvider.MediaClientContext);
|
|
414
414
|
return /*#__PURE__*/_react.default.createElement(_analyticsContext.default.Consumer, null, function (_ref3) {
|
|
415
415
|
var fireAnalyticsEvent = _ref3.fireAnalyticsEvent;
|
|
416
416
|
return /*#__PURE__*/_react.default.createElement(MediaCardView
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _style = require("./style");
|
|
11
11
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
12
|
-
var
|
|
12
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
13
|
var _consts = require("../../consts");
|
|
14
14
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
15
15
|
var _mediaInline = require("@atlaskit/editor-common/media-inline");
|
|
@@ -2289,13 +2289,13 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
2289
2289
|
}),
|
|
2290
2290
|
css: [(0, _expValEquals.expValEquals)('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) && fontSizeStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, headingAnchorButtonFocusVisibleStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? hideHeadingCopyLinkWrapperStyles : hideHeadingCopyLinkWrapperStylesDuplicateAnchor, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && ((0, _expValEquals.expValEquals)('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) && ((0, _expValEquals.expValEquals)('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, (0, _expValEquals.expValEquals)('platform_editor_flexible_list_schema', 'isEnabled', true) && listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, !(0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
2291
2291
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2292
|
-
textHighlightPaddingStyles, tasksAndDecisionsStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0,
|
|
2292
|
+
textHighlightPaddingStyles, tasksAndDecisionsStyles, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') && ((0, _expValEquals.expValEquals)('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2293
2293
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2294
|
-
(0,
|
|
2294
|
+
(0, _fg.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, (0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor,
|
|
2295
2295
|
// this should be placed after baseOtherStyles
|
|
2296
2296
|
(0, _expValEquals.expValEquals)('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && ((0, _expValEquals.expValEquals)('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), inlineExtensionRendererMarginFix, allowNestedHeaderLinks && ((0, _expValEquals.expValEquals)('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle,
|
|
2297
2297
|
// merge firstWrappedMediaStyles with mediaSingleSharedStyle when clean up platform_editor_fix_media_in_renderer
|
|
2298
|
-
(0,
|
|
2298
|
+
(0, _fg.fg)('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles, tableSharedStyle, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_table_q4_patch_7') && roundedTableLegacyClipPathStyles, (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeScopedStyles, (0, _expValEquals.expValEquals)('platform_editor_table_fit_to_content_auto_convert', 'isEnabled', true) && tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, (0, _fg.fg)('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && (0, _expValEquals.expValEquals)('platform_editor_table_css_overflow_shadow', 'isEnabled', true) && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && ((0, _expValEquals.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' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true))) && responsiveBreakoutWidthFullWidth, (0, _expValEquals.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 && (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, (0, _expValEquals.expValEquals)('platform_editor_hide_extension_renderer_support', 'isEnabled', true) && hideExtensionStyles],
|
|
2299
2299
|
"data-testid": testId
|
|
2300
2300
|
}, children);
|
|
2301
2301
|
};
|
|
@@ -9,7 +9,7 @@ exports.calcLineLength = exports.breakoutInlineScriptContext = void 0;
|
|
|
9
9
|
exports.createBreakoutInlineScript = createBreakoutInlineScript;
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
12
|
-
var
|
|
12
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
13
|
var _style = require("./style");
|
|
14
14
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
15
|
/* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
|
|
@@ -37,7 +37,7 @@ function BreakoutSSRInlineScript(_ref) {
|
|
|
37
37
|
}
|
|
38
38
|
var id = Math.floor(Math.random() * (9999999999 - 9999 + 1)) + 9999;
|
|
39
39
|
var shouldSkipScript = {
|
|
40
|
-
table: (0,
|
|
40
|
+
table: (0, _fg.fg)('platform-ssr-table-resize')
|
|
41
41
|
};
|
|
42
42
|
return /*#__PURE__*/_react.default.createElement("script", {
|
|
43
43
|
"data-breakout-script-id": id
|
|
@@ -52,7 +52,7 @@ function BreakoutSSRInlineScript(_ref) {
|
|
|
52
52
|
}
|
|
53
53
|
function createBreakoutInlineScript(id, shouldSkipScript) {
|
|
54
54
|
var flags = {
|
|
55
|
-
platform_editor_fix_media_in_renderer: (0,
|
|
55
|
+
platform_editor_fix_media_in_renderer: (0, _fg.fg)('platform_editor_fix_media_in_renderer'),
|
|
56
56
|
platform_editor_renderer_extension_width_fix: (0, _expValEquals.expValEquals)('platform_editor_renderer_extension_width_fix', 'isEnabled', true)
|
|
57
57
|
};
|
|
58
58
|
return "(function(window){\nif(typeof window !== 'undefined' && window.__RENDERER_BYPASS_BREAKOUT_SSR__) { return; }\n".concat(breakoutInlineScriptContext, ";\n(").concat(applyBreakoutAfterSSR.toString(), ")(\"").concat(id, "\", breakoutConsts, ").concat(JSON.stringify(shouldSkipScript), ", ").concat(JSON.stringify(flags), ");\n})(window);\n");
|
|
@@ -25,9 +25,9 @@ var _navigation = require("@atlaskit/editor-common/performance/navigation");
|
|
|
25
25
|
var _useScrollToBlock = require("../hooks/useScrollToBlock");
|
|
26
26
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
27
27
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
28
|
-
var
|
|
28
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
29
29
|
var _types = require("@atlaskit/analytics-listeners/types");
|
|
30
|
-
var
|
|
30
|
+
var _FabricEditorAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext");
|
|
31
31
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
32
32
|
var _normalizeFeatureFlags = require("@atlaskit/editor-common/normalize-feature-flags");
|
|
33
33
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
@@ -74,7 +74,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
74
74
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
75
75
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
76
76
|
var packageName = "@atlaskit/renderer";
|
|
77
|
-
var packageVersion = "136.2.
|
|
77
|
+
var packageVersion = "136.2.5";
|
|
78
78
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
79
79
|
containerName: 'ak-renderer-wrapper',
|
|
80
80
|
containerType: 'inline-size'
|
|
@@ -351,13 +351,13 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
351
351
|
var heightWidthAnalyticsRicID;
|
|
352
352
|
var heightWidthAnalyticsRafID;
|
|
353
353
|
var handleAnalytics = function handleAnalytics() {
|
|
354
|
-
if (!(0,
|
|
354
|
+
if (!(0, _fg.fg)('platform_renderer_sample_high_volume_events') || Math.random() < RENDER_EVENT_SAMPLE_RATE) {
|
|
355
355
|
_fireAnalyticsEvent({
|
|
356
356
|
action: _analytics.ACTION.STARTED,
|
|
357
357
|
actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
|
|
358
358
|
attributes: {
|
|
359
359
|
platform: _events.PLATFORM.WEB,
|
|
360
|
-
sampleRate: (0,
|
|
360
|
+
sampleRate: (0, _fg.fg)('platform_renderer_sample_high_volume_events') ? RENDER_EVENT_SAMPLE_RATE : 1
|
|
361
361
|
},
|
|
362
362
|
eventType: _analytics.EVENT_TYPE.UI
|
|
363
363
|
});
|
|
@@ -399,11 +399,11 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
399
399
|
nodes: nodes,
|
|
400
400
|
nestedRendererType: nestedRendererType,
|
|
401
401
|
severity: severity,
|
|
402
|
-
sampleRate: (0,
|
|
402
|
+
sampleRate: (0, _fg.fg)('platform_renderer_sample_high_volume_events') ? RENDER_EVENT_SAMPLE_RATE : 1
|
|
403
403
|
},
|
|
404
404
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
405
405
|
};
|
|
406
|
-
if (!(0,
|
|
406
|
+
if (!(0, _fg.fg)('platform_renderer_sample_high_volume_events') || Math.random() < RENDER_EVENT_SAMPLE_RATE) {
|
|
407
407
|
_fireAnalyticsEvent(event);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
@@ -425,7 +425,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
425
425
|
if (payload) {
|
|
426
426
|
_fireAnalyticsEvent(payload);
|
|
427
427
|
}
|
|
428
|
-
if ((0,
|
|
428
|
+
if ((0, _fg.fg)('platform_editor_table_height_analytics_event')) {
|
|
429
429
|
var payloadHeight = (0, _analyticsUtils.getHeightInfoPayload)(renderer);
|
|
430
430
|
if (payloadHeight) {
|
|
431
431
|
_fireAnalyticsEvent(payloadHeight);
|
|
@@ -622,7 +622,7 @@ function Renderer(props) {
|
|
|
622
622
|
// Used by Confluence for View page renderer
|
|
623
623
|
// For the nested renderers - see RendererWithAnnotationSelection.
|
|
624
624
|
var RendererWithAnalytics = exports.RendererWithAnalytics = /*#__PURE__*/_react.default.memo(function (props) {
|
|
625
|
-
return (0, _react2.jsx)(
|
|
625
|
+
return (0, _react2.jsx)(_FabricEditorAnalyticsContext.FabricEditorAnalyticsContext
|
|
626
626
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
627
627
|
, {
|
|
628
628
|
data: {
|
|
@@ -784,7 +784,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
784
784
|
//
|
|
785
785
|
|
|
786
786
|
// allowRendererContainerStyles is not needed for comment container styling as container should always be set for comments
|
|
787
|
-
if (appearance === 'comment' && isTopLevelRenderer && (0,
|
|
787
|
+
if (appearance === 'comment' && isTopLevelRenderer && (0, _fg.fg)('platform-ssr-table-resize')) {
|
|
788
788
|
return (0, _react2.jsx)("div", {
|
|
789
789
|
css: setAsQueryContainerStyles
|
|
790
790
|
}, renderer);
|
|
@@ -797,7 +797,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
797
797
|
return (appearance === 'full-page' || appearance === 'full-width' || ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max') &&
|
|
798
798
|
// In case of having excerpt-include on page there are multiple renderers nested.
|
|
799
799
|
// Make sure only the root renderer is set to be query container.
|
|
800
|
-
isTopLevelRenderer && allowRendererContainerStyles && (0,
|
|
800
|
+
isTopLevelRenderer && allowRendererContainerStyles && (0, _fg.fg)('platform-ssr-table-resize') ? (0, _react2.jsx)("div", {
|
|
801
801
|
css: setAsQueryContainerStyles
|
|
802
802
|
}, renderer) : renderer;
|
|
803
803
|
});
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.RendererActionsContext = RendererActionsContext;
|
|
9
9
|
exports.RendererContext = exports.RendererActionsContextConsumer = void 0;
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
11
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
|
+
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
13
|
+
var _types = require("@atlaskit/analytics-listeners/types");
|
|
14
14
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
15
15
|
var _index = _interopRequireDefault(require("../../actions/index"));
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -20,14 +20,14 @@ var RendererContext = exports.RendererContext = /*#__PURE__*/_react.default.crea
|
|
|
20
20
|
function RendererActionsContext(_ref) {
|
|
21
21
|
var children = _ref.children,
|
|
22
22
|
context = _ref.context;
|
|
23
|
-
var _useAnalyticsEvents = (0,
|
|
23
|
+
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
24
24
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
25
25
|
var actions = (0, _react.useMemo)(function () {
|
|
26
26
|
return new _index.default(true);
|
|
27
27
|
}, []);
|
|
28
28
|
|
|
29
29
|
// Remove this eventually when root cause is assessed
|
|
30
|
-
if (_react.default.Children.count(children) > 1 && (0,
|
|
30
|
+
if (_react.default.Children.count(children) > 1 && (0, _fg.fg)('confluence_frontend_fix_view_page_slo')) {
|
|
31
31
|
// Send event when we get more than 1 child
|
|
32
32
|
|
|
33
33
|
try {
|
|
@@ -44,11 +44,11 @@ function RendererActionsContext(_ref) {
|
|
|
44
44
|
numChildren: _react.default.Children.count(children),
|
|
45
45
|
stackTrace: stack
|
|
46
46
|
}
|
|
47
|
-
}).fire(
|
|
47
|
+
}).fire(_types.FabricChannel.editor);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
return /*#__PURE__*/_react.default.createElement(RendererContext.Provider, {
|
|
51
51
|
value: context || actions
|
|
52
|
-
}, (0,
|
|
52
|
+
}, (0, _fg.fg)('confluence_frontend_fix_view_page_slo') ? _react.default.Children.only(children) : children);
|
|
53
53
|
}
|
|
54
54
|
var RendererActionsContextConsumer = exports.RendererActionsContextConsumer = RendererContext.Consumer;
|
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
13
|
-
var
|
|
13
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _messages = require("../../../messages");
|
|
16
16
|
var _AnnotationManagerContext = require("../contexts/AnnotationManagerContext");
|
|
@@ -156,7 +156,7 @@ var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
|
|
|
156
156
|
if (event.defaultPrevented || state !== _adfSchema.AnnotationMarkStates.ACTIVE) {
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
if ((0,
|
|
159
|
+
if ((0, _fg.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
160
160
|
// We only want to interfere with click events if the click is on some ui inside the renderer document
|
|
161
161
|
// This is to prevent the click events from portaled content (such as link previews and mention profiles)
|
|
162
162
|
if (event.target instanceof HTMLElement && event.target.closest('.ak-renderer-document')) {
|
|
@@ -216,8 +216,8 @@ var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
|
|
|
216
216
|
return (0, _react2.jsx)(useBlockLevel ? 'div' : 'mark', _objectSpread(_objectSpread(_objectSpread((0, _defineProperty2.default)({
|
|
217
217
|
ref: id === currentSelectedAnnotationId ? markRef : undefined,
|
|
218
218
|
id: id
|
|
219
|
-
}, (0,
|
|
220
|
-
css: [markStyles, markStylesLayeringFix, (0,
|
|
219
|
+
}, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), !useBlockLevel && {
|
|
220
|
+
css: [markStyles, markStylesLayeringFix, (0, _fg.fg)('editor_inline_comments_on_inline_nodes') && markStylesWithInlineComments, markStylesWithCommentsPanel, !isMobile() && accessibilityStylesNew, markStylesWithUpdatedShadow],
|
|
221
221
|
style: {
|
|
222
222
|
'--ak-renderer-annotation-startmarker': "\"".concat(intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerStart), "\""),
|
|
223
223
|
'--ak-renderer-annotation-endmarker': "\"".concat(intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerEnd), "\"")
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useInlineAnnotationProps = useInlineAnnotationProps;
|
|
7
|
-
var
|
|
7
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
8
8
|
var _AnnotationRangeContext = require("../contexts/AnnotationRangeContext");
|
|
9
9
|
/* eslint-disable jsdoc/require-jsdoc */
|
|
10
10
|
|
|
11
11
|
function useInlineAnnotationProps(props) {
|
|
12
12
|
var _useAnnotationRangeSt = (0, _AnnotationRangeContext.useAnnotationRangeState)(),
|
|
13
13
|
draftPosition = _useAnnotationRangeSt.selectionDraftDocumentPosition;
|
|
14
|
-
if (!(0,
|
|
14
|
+
if (!(0, _fg.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
15
15
|
return {};
|
|
16
16
|
}
|
|
17
17
|
if (!props.dataAttributes) {
|
|
@@ -12,7 +12,7 @@ var _wrapper = require("./wrapper");
|
|
|
12
12
|
var _context = require("./context");
|
|
13
13
|
var _useLoadAnnotations = require("./hooks/use-load-annotations");
|
|
14
14
|
var _useEvents = require("./hooks/use-events");
|
|
15
|
-
var
|
|
15
|
+
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
16
16
|
var _AnnotationRangeContext = require("./contexts/AnnotationRangeContext");
|
|
17
17
|
var _AnnotationHoverContext = require("./contexts/AnnotationHoverContext");
|
|
18
18
|
var _AnnotationManagerContext = require("./contexts/AnnotationManagerContext");
|
|
@@ -49,7 +49,7 @@ var AnnotationsWrapperInner = exports.AnnotationsWrapperInner = function Annotat
|
|
|
49
49
|
type: _adfSchema.AnnotationTypes.INLINE_COMMENT,
|
|
50
50
|
updateSubscriber: updateSubscriber || null
|
|
51
51
|
});
|
|
52
|
-
var _useAnalyticsEvents = (0,
|
|
52
|
+
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
53
53
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
54
54
|
return /*#__PURE__*/_react.default.createElement(_context.InlineCommentsStateContext.Provider, {
|
|
55
55
|
value: inlineCommentAnnotationsState
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.SelectionInlineCommentMounter = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
|
-
var
|
|
11
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
12
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
13
13
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
14
14
|
var _dom = require("../draft/dom");
|
|
@@ -144,7 +144,7 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
|
|
|
144
144
|
// - platform_editor_comments_api_manager is on (existing behaviour), OR
|
|
145
145
|
// - COMMENTS-6594 experiment is on (fix: avoids stale closure value)
|
|
146
146
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
147
|
-
var positionToAnnotate = (0,
|
|
147
|
+
var positionToAnnotate = (0, _fg.fg)('platform_editor_comments_api_manager') || (0, _expValEquals.expValEquals)('confluence_inline_comments_fix_stale_selection', 'isEnabled', true) ? documentPosition : selectionDraftDocumentPosition || documentPosition;
|
|
148
148
|
if (!positionToAnnotate || !applyAnnotation || !options.annotationId) {
|
|
149
149
|
if (createAnalyticsEvent) {
|
|
150
150
|
createAnalyticsEvent({
|
|
@@ -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({
|
|
4
4
|
actions,
|
|
5
5
|
pos
|
|
@@ -5,7 +5,7 @@ import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
|
5
5
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { AddNodeMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { createAnnotationStep, getPosFromRange } from '../steps';
|
|
10
10
|
import { getRendererRangeInlineNodeNames, getRendererRangeAncestorNodeNames } from './get-renderer-range-inline-node-names';
|
|
11
11
|
import { getIndexMatch } from './matches-utils';
|
|
@@ -10,7 +10,7 @@ import { isNestedHeaderLinksEnabled } from './utils/links';
|
|
|
10
10
|
import { getColumnWidths } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { getMarksByOrder, isSameMark } from '@atlaskit/editor-common/validator';
|
|
12
12
|
import { findChildrenByMark, findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
14
|
import { getText } from '../utils';
|
|
15
15
|
import { isAnnotationMark, toReact as markToReact } from './marks';
|
|
16
16
|
import { isCodeMark } from './marks/code';
|
|
@@ -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 const 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
|
const LinkUrlMigration = componentWithCondition(() => expValEquals('platform_editor_renderer_static_css', 'isEnabled', true), LinkUrlCompiled, LinkUrlEmotion);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
export class TableStickyScrollbar {
|
|
5
5
|
constructor(wrapper) {
|
|
6
6
|
_defineProperty(this, "sentinels", {});
|
|
@@ -12,10 +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';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
19
|
import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
20
20
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
21
21
|
import { RendererCssClassName } from '../../consts';
|
|
@@ -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';
|
|
@@ -7,7 +7,7 @@ import { useState } from 'react';
|
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl';
|
|
9
9
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
10
|
-
import
|
|
10
|
+
import AkCodeBlock from '@atlaskit/code/code-block';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
12
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
13
13
|
function CodeBlock(props) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
6
6
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
8
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
8
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
11
|
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
|
const CodeBlockWrapButton = ({
|
|
@@ -12,8 +12,8 @@ import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
|
12
12
|
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
13
13
|
import { WidthConsumer, UnsupportedBlock, MediaSingle as UIMediaSingle, WidthContext } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { akEditorDefaultLayoutWidth, akEditorFullPageNarrowBreakout, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
17
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
18
|
import { CardErrorBoundary } from './fallback';
|
|
19
19
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
@@ -21,7 +21,7 @@ import { RendererCssClassName } from '../../consts';
|
|
|
21
21
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
22
22
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
23
23
|
import { getEventHandler } from '../../utils';
|
|
24
|
-
import
|
|
24
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
25
25
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
26
26
|
import BlockCard from './blockCard';
|
|
27
27
|
const embedCardWrapperStyles = css({
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { messages } from '@atlaskit/editor-common/emoji';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
11
11
|
import { PureComponent, memo } from 'react';
|
|
12
12
|
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
|
const 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
|
const macroHeights = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
3
|
-
import Link from '@atlaskit/link';
|
|
3
|
+
import Link from '@atlaskit/link/link';
|
|
4
4
|
import { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from '@atlaskit/link-datasource';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { InlineCard } from './';
|
|
@@ -11,7 +11,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
12
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
14
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
15
|
import { headingAnchorLinkMessages } from '../../messages';
|
|
16
16
|
export const HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
17
17
|
const CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
@@ -3,7 +3,7 @@ import "./heading.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import
|
|
6
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
7
7
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
8
8
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
9
9
|
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
@@ -13,8 +13,8 @@ import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
|
13
13
|
import { useSmartLinkActions } from '@atlaskit/smart-card/hooks';
|
|
14
14
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
15
15
|
import { HoverLinkOverlay, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
-
import
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
20
20
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
@@ -25,7 +25,7 @@ import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
|
25
25
|
import { getEventHandler } from '../../utils';
|
|
26
26
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
27
27
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
28
|
-
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors';
|
|
28
|
+
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
29
29
|
const HoverLinkOverlayNoop = props => jsx(Fragment, null, props.children);
|
|
30
30
|
const OverlayWithCardContext = ({
|
|
31
31
|
rendererAppearance,
|
|
@@ -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
|