@atlaskit/editor-common 130.3.2 → 130.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
- package/dist/cjs/collab/index.js +2 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/element-browser/components/ElementSearch.js +8 -8
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -3
- package/dist/cjs/extensions/buildMenuItem.js +5 -2
- package/dist/cjs/guideline/defaultGuideline.js +2 -2
- package/dist/cjs/guideline/getContainerWidthOrFullEditorWidth.js +4 -4
- package/dist/cjs/guideline/getMediaSingleDimensions.js +2 -2
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +2 -2
- package/dist/cjs/media-inline/inline-image-card.js +2 -2
- package/dist/cjs/media-inline/inline-image-wrapper.js +2 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/media-single/CommentBadge.js +2 -2
- package/dist/cjs/media-single/calcMediaSingleMaxWidth.js +5 -5
- package/dist/cjs/media-single/getMediaSingleInitialWidth.js +5 -5
- package/dist/cjs/media-single/utils.js +4 -4
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/nesting/transformContainerNodesWhenRequired.js +2 -2
- package/dist/cjs/node-selection/index.js +2 -2
- package/dist/cjs/node-width/index.js +8 -8
- package/dist/cjs/quick-insert/build-quick-insert-menu-model.js +4 -2
- package/dist/cjs/quick-insert/get-matching-quick-insert-components.js +9 -6
- package/dist/cjs/quick-insert/quick-insert-rank.js +32 -0
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +0 -4
- package/dist/cjs/resizer/BreakoutResizer.js +6 -6
- package/dist/cjs/resizer/useBreakoutGuidelines.js +9 -9
- package/dist/cjs/selection/index.js +13 -13
- package/dist/cjs/styles/shared/blockquote.js +2 -2
- package/dist/cjs/styles/shared/calcTableWidth.js +4 -4
- package/dist/cjs/styles/shared/mapBackgroundColors.js +2 -2
- package/dist/cjs/styles/shared/media-single.js +2 -2
- package/dist/cjs/styles/shared/panel.js +2 -2
- package/dist/cjs/styles/shared/table.js +4 -3
- package/dist/cjs/table/NewSortingIcon.js +4 -3
- package/dist/cjs/toolbar/EditorToolbarUIProvider.js +2 -2
- package/dist/cjs/type-ahead/item-rank.js +36 -0
- package/dist/cjs/ui/BaseTheme/index.js +2 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +2 -2
- package/dist/cjs/ui/HoverLinkOverlay/index.js +2 -2
- package/dist/cjs/ui/MediaSingle/grid.js +3 -3
- package/dist/cjs/ui/MediaSingle/index.js +5 -5
- package/dist/cjs/ui/MediaSingle/styled.js +5 -5
- package/dist/cjs/ui/PanelTextInput/styles.js +2 -2
- package/dist/cjs/ui/Popup/index.js +2 -2
- package/dist/cjs/ui/ResizerLegacy/index.js +2 -2
- package/dist/cjs/ui/TableSelector/index.js +2 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
- package/dist/cjs/utils/areDocsEqualByBlockStructureAndText.js +2 -2
- package/dist/cjs/utils/breakout.js +10 -10
- package/dist/cjs/utils/calculateSnapPoints.js +2 -2
- package/dist/cjs/utils/filter/privacy-filter.js +2 -2
- package/dist/cjs/utils/page-element-counts.js +4 -4
- package/dist/cjs/utils/processRawValue.js +21 -10
- package/dist/cjs/utils/unsupportedContent/get-unsupported-content-level-data.js +3 -3
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/es2019/collab/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +2 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/es2019/extensions/buildMenuItem.js +3 -0
- package/dist/es2019/guideline/defaultGuideline.js +1 -1
- package/dist/es2019/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
- package/dist/es2019/guideline/getMediaSingleDimensions.js +1 -1
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +1 -1
- package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/media-single/CommentBadge.js +1 -1
- package/dist/es2019/media-single/calcMediaSingleMaxWidth.js +1 -1
- package/dist/es2019/media-single/getMediaSingleInitialWidth.js +1 -1
- package/dist/es2019/media-single/utils.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/nesting/transformContainerNodesWhenRequired.js +1 -1
- package/dist/es2019/node-selection/index.js +1 -1
- package/dist/es2019/node-width/index.js +1 -1
- package/dist/es2019/quick-insert/build-quick-insert-menu-model.js +4 -2
- package/dist/es2019/quick-insert/get-matching-quick-insert-components.js +9 -6
- package/dist/es2019/quick-insert/quick-insert-rank.js +28 -0
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +0 -4
- package/dist/es2019/resizer/BreakoutResizer.js +1 -1
- package/dist/es2019/resizer/useBreakoutGuidelines.js +1 -1
- package/dist/es2019/selection/index.js +2 -2
- package/dist/es2019/styles/shared/blockquote.js +1 -1
- package/dist/es2019/styles/shared/calcTableWidth.js +1 -1
- package/dist/es2019/styles/shared/mapBackgroundColors.js +1 -1
- package/dist/es2019/styles/shared/media-single.js +1 -1
- package/dist/es2019/styles/shared/panel.js +1 -1
- package/dist/es2019/styles/shared/table.js +2 -1
- package/dist/es2019/table/NewSortingIcon.js +2 -1
- package/dist/es2019/toolbar/EditorToolbarUIProvider.js +1 -1
- package/dist/es2019/type-ahead/item-rank.js +27 -0
- package/dist/es2019/ui/BaseTheme/index.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +1 -1
- package/dist/es2019/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/grid.js +1 -1
- package/dist/es2019/ui/MediaSingle/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +1 -1
- package/dist/es2019/ui/PanelTextInput/styles.js +1 -1
- package/dist/es2019/ui/Popup/index.js +1 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +1 -1
- package/dist/es2019/ui/TableSelector/index.js +1 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -1
- package/dist/es2019/utils/areDocsEqualByBlockStructureAndText.js +1 -1
- package/dist/es2019/utils/breakout.js +1 -1
- package/dist/es2019/utils/calculateSnapPoints.js +1 -1
- package/dist/es2019/utils/filter/privacy-filter.js +1 -1
- package/dist/es2019/utils/page-element-counts.js +1 -1
- package/dist/es2019/utils/processRawValue.js +12 -1
- package/dist/es2019/utils/unsupportedContent/get-unsupported-content-level-data.js +1 -1
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +2 -2
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/esm/extensions/buildMenuItem.js +5 -2
- package/dist/esm/guideline/defaultGuideline.js +1 -1
- package/dist/esm/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
- package/dist/esm/guideline/getMediaSingleDimensions.js +1 -1
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +1 -1
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/media-single/CommentBadge.js +1 -1
- package/dist/esm/media-single/calcMediaSingleMaxWidth.js +1 -1
- package/dist/esm/media-single/getMediaSingleInitialWidth.js +1 -1
- package/dist/esm/media-single/utils.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/nesting/transformContainerNodesWhenRequired.js +1 -1
- package/dist/esm/node-selection/index.js +1 -1
- package/dist/esm/node-width/index.js +1 -1
- package/dist/esm/quick-insert/build-quick-insert-menu-model.js +4 -2
- package/dist/esm/quick-insert/get-matching-quick-insert-components.js +9 -6
- package/dist/esm/quick-insert/quick-insert-rank.js +27 -0
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +0 -4
- package/dist/esm/resizer/BreakoutResizer.js +1 -1
- package/dist/esm/resizer/useBreakoutGuidelines.js +1 -1
- package/dist/esm/selection/index.js +2 -2
- package/dist/esm/styles/shared/blockquote.js +1 -1
- package/dist/esm/styles/shared/calcTableWidth.js +1 -1
- package/dist/esm/styles/shared/mapBackgroundColors.js +1 -1
- package/dist/esm/styles/shared/media-single.js +1 -1
- package/dist/esm/styles/shared/panel.js +1 -1
- package/dist/esm/styles/shared/table.js +2 -1
- package/dist/esm/table/NewSortingIcon.js +2 -1
- package/dist/esm/toolbar/EditorToolbarUIProvider.js +1 -1
- package/dist/esm/type-ahead/item-rank.js +29 -0
- package/dist/esm/ui/BaseTheme/index.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +1 -1
- package/dist/esm/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/esm/ui/MediaSingle/grid.js +1 -1
- package/dist/esm/ui/MediaSingle/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +1 -1
- package/dist/esm/ui/PanelTextInput/styles.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +1 -1
- package/dist/esm/ui/TableSelector/index.js +1 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -1
- package/dist/esm/utils/areDocsEqualByBlockStructureAndText.js +1 -1
- package/dist/esm/utils/breakout.js +1 -1
- package/dist/esm/utils/calculateSnapPoints.js +1 -1
- package/dist/esm/utils/filter/privacy-filter.js +1 -1
- package/dist/esm/utils/page-element-counts.js +1 -1
- package/dist/esm/utils/processRawValue.js +12 -1
- package/dist/esm/utils/unsupportedContent/get-unsupported-content-level-data.js +1 -1
- package/dist/types/analytics/types/table-events.d.ts +1 -1
- package/dist/types/card/cardOptions.d.ts +1 -1
- package/dist/types/extensions/types/extension-manifest.d.ts +1 -0
- package/dist/types/extensions/types/utils.d.ts +1 -0
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/link/LinkSearch/types.d.ts +1 -1
- package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types/media-inline/inline-image-card.d.ts +2 -2
- package/dist/types/media-inline/media-inline-image-card.d.ts +2 -1
- package/dist/types/media-inline/types.d.ts +1 -1
- package/dist/types/provider-factory/types.d.ts +1 -1
- package/dist/types/quick-insert/build-quick-insert-menu-model.d.ts +2 -1
- package/dist/types/quick-insert/get-matching-quick-insert-components.d.ts +3 -1
- package/dist/types/quick-insert/quick-insert-rank.d.ts +3 -0
- package/dist/types/toolbar/EditorToolbarUIProvider.d.ts +1 -1
- package/dist/types/toolbar/getInputMethodFromParentKeys.d.ts +1 -1
- package/dist/types/toolbar/types.d.ts +1 -1
- package/dist/types/type-ahead/item-rank.d.ts +12 -0
- package/dist/types/types/annotation/index.d.ts +2 -0
- package/dist/types/types/hyperlink.d.ts +1 -1
- package/dist/types/types/quick-insert.d.ts +2 -0
- package/dist/types/types/type-ahead.d.ts +3 -0
- package/dist/types/ui/EventHandlers/index.d.ts +1 -1
- package/dist/types/utils/isSupportedInParent.d.ts +1 -1
- package/package.json +2 -2
- package/quick-insert/quick-insert-rank/package.json +10 -0
- package/type-ahead/item-rank/package.json +10 -0
|
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
9
|
+
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette/border';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, selectedStyle, wrapperStyle } from './styles';
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ import { fireSucceededOperationalEvent as fireSucceededMediaInlineEvent } from '
|
|
|
14
14
|
import { MediaCardError } from '@atlaskit/media-card/media-card-error';
|
|
15
15
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
16
16
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
17
|
-
import
|
|
17
|
+
import MediaViewer from '@atlaskit/media-viewer/media-viewer-loader';
|
|
18
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
20
20
|
import { messages } from '../messages/media-inline-card';
|
|
@@ -7,7 +7,7 @@ import { forwardRef, useEffect, useMemo, useState } from 'react';
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import debounce from 'lodash/debounce';
|
|
9
9
|
import CustomThemeButton from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
10
|
-
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
/**
|
|
4
4
|
* Calculate maximum width allowed for media single node in fix-width editor in new experience
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { floatingLayouts } from '../utils/floatingLayouts';
|
|
3
3
|
import { calcMediaSingleMaxWidth } from './calcMediaSingleMaxWidth';
|
|
4
4
|
import { wrappedLayouts } from './constants';
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "130.3.
|
|
16
|
+
const packageVersion = "130.3.3";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { traverse } from '@atlaskit/adf-utils/traverse';
|
|
1
|
+
import { traverse } from '@atlaskit/adf-utils/traverse/main';
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
/**
|
|
4
4
|
* Promotes `panel` nodes to `panel_c1` wherever their content makes them invalid
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { selectTableClosestToPos } from '@atlaskit/editor-tables/
|
|
2
|
+
import { selectTableClosestToPos } from '@atlaskit/editor-tables/select-table-closest-to-pos';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns a NodeSelection for the node at `start`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
2
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
3
3
|
import { BODIED_EXT_PADDING } from '../styles/shared/extension';
|
|
4
4
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
|
|
5
5
|
import { tableCellPadding } from '../styles/shared/table';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getComponentIdentity, resolveSurface, willComponentRender } from '@atlaskit/editor-ui-control-model/surface-renderer';
|
|
2
2
|
import { isMenuFooterSectionKey } from '../type-ahead/isMenuFooterSectionKey';
|
|
3
3
|
import { isSectionOverflowItemKey } from '../type-ahead/isSectionOverflowItemKey';
|
|
4
|
-
|
|
4
|
+
import { applyRegisteredItemRanks } from '../type-ahead/item-rank';
|
|
5
|
+
export const buildQuickInsertMenuModel = (components, rootComponent, selectCategoryItems, surfaceContext, getItemRank) => {
|
|
6
|
+
const rankedComponents = applyRegisteredItemRanks(components, getItemRank);
|
|
5
7
|
const {
|
|
6
8
|
root,
|
|
7
9
|
childrenMap,
|
|
8
10
|
topLevelChildren
|
|
9
|
-
} = resolveSurface(
|
|
11
|
+
} = resolveSurface(rankedComponents, rootComponent);
|
|
10
12
|
if (!root || !willComponentRender(root, childrenMap, surfaceContext)) {
|
|
11
13
|
return {
|
|
12
14
|
footer: undefined,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { getComponentIdentity, resolveSurface, willComponentRender } from '@atlaskit/editor-ui-control-model/surface-renderer';
|
|
2
2
|
import { isMenuFooterSectionKey } from '../type-ahead/isMenuFooterSectionKey';
|
|
3
3
|
import { isSectionOverflowItemKey } from '../type-ahead/isSectionOverflowItemKey';
|
|
4
|
+
import { applyRegisteredItemRanks } from '../type-ahead/item-rank';
|
|
4
5
|
import { ASK_ROVO_MENU_ITEM } from './keys';
|
|
5
6
|
const SEARCH_TOP_MATCH_LIMIT = 5;
|
|
6
|
-
const
|
|
7
|
+
const getParentRank = (component, parentKey) => {
|
|
7
8
|
var _component$parents$fi, _component$parents, _component$parents$fi2;
|
|
8
9
|
return (_component$parents$fi = (_component$parents = component.parents) === null || _component$parents === void 0 ? void 0 : (_component$parents$fi2 = _component$parents.find(parent => parent.key === parentKey)) === null || _component$parents$fi2 === void 0 ? void 0 : _component$parents$fi2.rank) !== null && _component$parents$fi !== void 0 ? _component$parents$fi : Number.MAX_SAFE_INTEGER;
|
|
9
10
|
};
|
|
@@ -31,14 +32,16 @@ export const getMatchingQuickInsertComponents = ({
|
|
|
31
32
|
rootComponent,
|
|
32
33
|
query,
|
|
33
34
|
formatMessage,
|
|
34
|
-
surfaceContext
|
|
35
|
+
surfaceContext,
|
|
36
|
+
getItemRank
|
|
35
37
|
}) => {
|
|
36
38
|
var _childrenMap$get2;
|
|
39
|
+
const rankedComponents = applyRegisteredItemRanks(components, getItemRank);
|
|
37
40
|
const {
|
|
38
41
|
childrenMap,
|
|
39
42
|
root,
|
|
40
43
|
topLevelChildren
|
|
41
|
-
} = resolveSurface(
|
|
44
|
+
} = resolveSurface(rankedComponents, rootComponent);
|
|
42
45
|
if (!root || !willComponentRender(root, childrenMap, surfaceContext) || !topLevelChildren) {
|
|
43
46
|
return {
|
|
44
47
|
footer: undefined,
|
|
@@ -47,7 +50,7 @@ export const getMatchingQuickInsertComponents = ({
|
|
|
47
50
|
};
|
|
48
51
|
}
|
|
49
52
|
const matches = new Map();
|
|
50
|
-
const sourceIndexByComponent = new Map(
|
|
53
|
+
const sourceIndexByComponent = new Map(rankedComponents.map((component, index) => [component, index]));
|
|
51
54
|
for (const section of topLevelChildren) {
|
|
52
55
|
if (section.type !== 'menu-section' || isMenuFooterSectionKey(section.key) || !willComponentRender(section, childrenMap, surfaceContext)) {
|
|
53
56
|
continue;
|
|
@@ -67,11 +70,11 @@ export const getMatchingQuickInsertComponents = ({
|
|
|
67
70
|
const candidate = {
|
|
68
71
|
identity: `${item.type}:${item.key}`,
|
|
69
72
|
item,
|
|
70
|
-
itemRank:
|
|
73
|
+
itemRank: getParentRank(item, section.key),
|
|
71
74
|
score: Math.min(1, Math.max(0, (_match$score = match === null || match === void 0 ? void 0 : match.score) !== null && _match$score !== void 0 ? _match$score : 0)),
|
|
72
75
|
sourceIndex: (_sourceIndexByCompone = sourceIndexByComponent.get(item)) !== null && _sourceIndexByCompone !== void 0 ? _sourceIndexByCompone : Number.MAX_SAFE_INTEGER,
|
|
73
76
|
section,
|
|
74
|
-
sectionRank:
|
|
77
|
+
sectionRank: getParentRank(section, root.key)
|
|
75
78
|
};
|
|
76
79
|
const existing = matches.get(candidate.identity);
|
|
77
80
|
if (!existing || compareMatchedItems(candidate, existing) < 0) {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isMenuFooterSectionKey } from '../type-ahead/isMenuFooterSectionKey';
|
|
2
|
+
import { isSectionOverflowItemKey } from '../type-ahead/isSectionOverflowItemKey';
|
|
3
|
+
import { RECOMMENDED_SECTION } from './keys';
|
|
4
|
+
|
|
5
|
+
/** Recommendations and navigation controls retain their policy-defined order. */
|
|
6
|
+
export const createQuickInsertRankResolver = getItemRank => {
|
|
7
|
+
if (!getItemRank) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
return ({
|
|
11
|
+
component,
|
|
12
|
+
parent
|
|
13
|
+
}) => {
|
|
14
|
+
if (component.type === 'menu-section' && parent.type === 'menu' && !isMenuFooterSectionKey(component.key)) {
|
|
15
|
+
return getItemRank({
|
|
16
|
+
component,
|
|
17
|
+
parent
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
if (component.type === 'menu-item' && parent.type === 'menu-section' && !isSectionOverflowItemKey(component.key) && !isMenuFooterSectionKey(parent.key) && parent.key !== RECOMMENDED_SECTION.key) {
|
|
21
|
+
return getItemRank({
|
|
22
|
+
component,
|
|
23
|
+
parent
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return undefined;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
6
5
|
import { isSSR } from '../core-utils/is-ssr';
|
|
7
6
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -399,9 +398,6 @@ export function getInlineNodeViewProducer({
|
|
|
399
398
|
if (!isNodeTypeAllowedToBeVirtualized || isSSR()) {
|
|
400
399
|
return createNodeView(parameters);
|
|
401
400
|
}
|
|
402
|
-
if (fg('platform_editor_inline_node_virt_threshold_override')) {
|
|
403
|
-
return createNodeViewVirtualized(parameters);
|
|
404
|
-
}
|
|
405
401
|
let inlineNodeViewsVirtualizationCounter = counterPerEditorViewMap.get(view) || 0;
|
|
406
402
|
inlineNodeViewsVirtualizationCounter += 1;
|
|
407
403
|
counterPerEditorViewMap.set(view, inlineNodeViewsVirtualizationCounter);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { bind, bindAll } from 'bind-event-listener';
|
|
3
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState } from 'react';
|
|
2
|
-
import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
2
|
+
import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
3
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
export const SNAP_GAP = 8;
|
|
5
5
|
const GUIDELINE_KEYS = {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
3
|
|
|
4
4
|
import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { CellSelection } from '@atlaskit/editor-tables';
|
|
6
|
-
import { selectedRect } from '@atlaskit/editor-tables/utils';
|
|
5
|
+
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
6
|
+
import { selectedRect } from '@atlaskit/editor-tables/utils/selection-rect';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
8
8
|
export { RelativeSelectionPos } from './types';
|
|
9
9
|
export { Side } from './gap-cursor/Side';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export const blockquoteSharedStyles = css({
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
export const calcTableWidth = (layout, containerWidth, addControllerPadding = true) => {
|
|
3
3
|
switch (layout) {
|
|
4
4
|
case 'full-width':
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tableBackgroundColorNames } from '@atlaskit/adf-schema/tableNodes';
|
|
2
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
2
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
3
3
|
|
|
4
4
|
// This is used in order to support usage of DS tokens. Table cell background-color
|
|
5
5
|
// is set inline in '@atlaskit/adf-schema' and the color value is stored in ADF so
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
const richMediaClassName = 'rich-media-item';
|
|
6
6
|
const wrappedMediaBreakoutPoint = 410;
|
|
7
7
|
const mediaSingleSharedStyle = css({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
2
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
2
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
3
3
|
const lightPanelColors = {
|
|
4
4
|
info: '#DEEBFF',
|
|
5
5
|
note: '#EAE6FF',
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
|
-
import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth
|
|
5
|
+
import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
|
+
import { overflowShadow } from '@atlaskit/editor-shared-styles/overflow-shadow';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
9
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import "./NewSortingIcon.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { SortAscendingIcon
|
|
5
|
+
import { SortAscendingIcon } from '@atlaskit/editor-toolbar/sort-ascending-icon';
|
|
6
|
+
import { SortDescendingIcon } from '@atlaskit/editor-toolbar/sort-descending-icon';
|
|
6
7
|
import { SortOrder } from '../types';
|
|
7
8
|
const newIconWrapperStyles = {
|
|
8
9
|
base: "_v5642l60 _1bsb7vkz _4t3i7vkz _1e0c1txw _1bah1h6o _4cvr1h6o _8hrz1qre",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import { ToolbarUIProvider } from '@atlaskit/editor-toolbar';
|
|
2
|
+
import { ToolbarUIProvider } from '@atlaskit/editor-toolbar/ui-context';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
4
|
export const EditorToolbarUIProvider = ({
|
|
5
5
|
children,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Pure parent-rank override. Return undefined to preserve parent.rank; do not mutate either record. */
|
|
2
|
+
|
|
3
|
+
/** Applies per-editor parent ranks without changing shared registry records. */
|
|
4
|
+
export const applyRegisteredItemRanks = (components, getRegisteredItemRank) => {
|
|
5
|
+
if (!getRegisteredItemRank) {
|
|
6
|
+
return components;
|
|
7
|
+
}
|
|
8
|
+
return components.map(component => {
|
|
9
|
+
if (!component.parents) {
|
|
10
|
+
return component;
|
|
11
|
+
}
|
|
12
|
+
const parents = component.parents.map(parent => {
|
|
13
|
+
var _getRegisteredItemRan;
|
|
14
|
+
const rank = (_getRegisteredItemRan = getRegisteredItemRank({
|
|
15
|
+
component,
|
|
16
|
+
parent
|
|
17
|
+
})) === null || _getRegisteredItemRan === void 0 ? void 0 : _getRegisteredItemRan.rank;
|
|
18
|
+
return {
|
|
19
|
+
...parent,
|
|
20
|
+
rank: typeof rank === 'number' && Number.isFinite(rank) ? rank : parent.rank
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
return Object.assign({}, component, {
|
|
24
|
+
parents
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
};
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { ThemeProvider } from '@emotion/react';
|
|
5
|
-
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
6
|
import { WidthConsumer } from '../WidthProvider';
|
|
7
7
|
export function mapBreakpointToLayoutMaxWidth(breakpoint) {
|
|
8
8
|
switch (breakpoint) {
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "130.3.
|
|
17
|
+
const packageVersion = "130.3.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -10,7 +10,7 @@ import React, { forwardRef } from 'react';
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { defineMessages } from 'react-intl';
|
|
13
|
-
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
13
|
+
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
14
14
|
export const messages = defineMessages({
|
|
15
15
|
loading: {
|
|
16
16
|
id: 'fabric.editor.expand.loading',
|
|
@@ -11,7 +11,7 @@ import React, { useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
|
11
11
|
import { css, jsx } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
12
12
|
import { useIntl } from 'react-intl';
|
|
13
13
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
14
|
-
import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
|
|
14
|
+
import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
17
17
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorBreakoutPadding, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorBreakoutPadding, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { calcColumnsFromPx } from './calcColumnsFromPx';
|
|
3
3
|
import { calcPxFromColumns } from './calcPxFromColumns';
|
|
4
4
|
import { calcPxFromPct } from './calcPxFromPct';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
|
-
import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles/constants';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
14
14
|
import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { akEditorDefaultLayoutWidth, akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { akEditorDefaultLayoutWidth, akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
12
12
|
import { nonWrappedLayouts } from '../../utils';
|
|
13
13
|
import { calcBreakoutWidth, calcWideWidth } from '../../utils/breakout';
|
|
14
14
|
import { calcResizedWidth } from './calcResizedWidth';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
7
|
export const panelTextInput = css({
|
|
@@ -4,7 +4,7 @@ import { createPortal, flushSync } from 'react-dom';
|
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
5
|
import createFocusTrap from 'focus-trap';
|
|
6
6
|
import rafSchedule from 'raf-schd';
|
|
7
|
-
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
7
|
+
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
8
8
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
9
|
import { calculatePlacement, calculatePosition, findOverflowScrollParent } from './utils';
|
|
10
10
|
import { validatePosition } from './validatePosition';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Resizable } from 're-resizable';
|
|
5
|
-
import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
6
6
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
|
|
8
8
|
import { richMediaClassName } from '../../styles';
|
|
@@ -7,7 +7,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
|
-
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
|
|
@@ -7,7 +7,7 @@ import React, { useCallback, useRef } 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 { injectIntl } from 'react-intl';
|
|
10
|
-
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/core/question-circle';
|
|
12
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
@@ -7,7 +7,7 @@ import React, { useCallback, useRef } 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 { injectIntl } from 'react-intl';
|
|
10
|
-
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/core/question-circle';
|
|
12
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
@@ -10,7 +10,7 @@ import React, { PureComponent, useCallback, useContext, useMemo } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
13
|
+
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
14
14
|
import CustomItem from '@atlaskit/menu/custom-item';
|
|
15
15
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
16
16
|
import Section from '@atlaskit/menu/section';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
1
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
2
2
|
import { Transform } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorBreakoutPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorBreakoutPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { mapBreakpointToLayoutMaxWidth } from '../ui/BaseTheme';
|
|
3
3
|
import { getBreakpoint } from '../ui/WidthProvider';
|
|
4
4
|
import { parsePx } from './parsePx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { calcPxFromColumns } from '../ui/MediaSingle/calcPxFromColumns';
|
|
3
3
|
export function calculateSnapPoints({
|
|
4
4
|
$pos,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { traverse } from '@atlaskit/adf-utils/traverse';
|
|
1
|
+
import { traverse } from '@atlaskit/adf-utils/traverse/main';
|
|
2
2
|
import { isResolvingMentionProvider } from '@atlaskit/mention/is-resolving-mention-provider';
|
|
3
3
|
/**
|
|
4
4
|
* Sanitises a document where some content should not be in the document (e.g. mention names).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { reduce } from '@atlaskit/adf-utils/reduce';
|
|
1
2
|
import { isNestedTableExtension } from '@atlaskit/adf-utils/transforms';
|
|
2
|
-
import { reduce } from '@atlaskit/adf-utils/traverse';
|
|
3
3
|
/**
|
|
4
4
|
* Traverses a JSON document and counts the number of unique elements, text formatting and macros.
|
|
5
5
|
*
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { transformDedupeMarks } from '@atlaskit/adf-utils/dedupe-marks-transform';
|
|
2
|
+
import { transformContainerNodes } from '@atlaskit/adf-utils/depth-limited-nesting-container-nodes-transform';
|
|
3
|
+
import { transformIndentationMarks } from '@atlaskit/adf-utils/indentation-marks-transform';
|
|
4
|
+
import { transformInvalidMediaContent } from '@atlaskit/adf-utils/invalid-media-content-transform';
|
|
5
|
+
import { transformMediaLinkMarks } from '@atlaskit/adf-utils/media-link-transform';
|
|
6
|
+
import { transformNodesMissingContent } from '@atlaskit/adf-utils/nodes-missing-content-transform';
|
|
7
|
+
import { panelC1FallbackTransform } from '@atlaskit/adf-utils/panel-c1-fallback-transform';
|
|
8
|
+
import { panelC1FallbackTransformV2 } from '@atlaskit/adf-utils/panel-c1-fallback-transform-v2';
|
|
9
|
+
import { syncBlockFallbackTransform } from '@atlaskit/adf-utils/sync-block-fallback-transform';
|
|
10
|
+
import { transformTextLinkCodeMarks } from '@atlaskit/adf-utils/text-link-code-transform';
|
|
11
|
+
import { transformMediaSingleWidth } from '@atlaskit/adf-utils/transform-media-single-width';
|
|
12
|
+
import { transformNestedTablesIncomingDocument } from '@atlaskit/adf-utils/transforms';
|
|
2
13
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { traverse } from '@atlaskit/adf-utils/traverse';
|
|
1
|
+
import { traverse } from '@atlaskit/adf-utils/traverse/main';
|
|
2
2
|
import { UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from './UNSUPPORTED_CONTENT_LEVEL_SEVERITY';
|
|
3
3
|
import { UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS } from './UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS';
|
|
4
4
|
const buildUnsupportedContentLevelThresholds = customThresholds => {
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
-
import { DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
8
|
+
import { DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import AlignImageCenterIcon from '@atlaskit/icon/core/align-image-center';
|
|
10
10
|
import AlignImageLeftIcon from '@atlaskit/icon/core/align-image-left';
|
|
11
11
|
import AlignImageRightIcon from '@atlaskit/icon/core/align-image-right';
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _templateObject;
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css } from '@emotion/react';
|
|
8
|
-
import { participantColors } from '@atlaskit/editor-shared-styles';
|
|
8
|
+
import { participantColors } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import { getGlobalTheme } from '@atlaskit/tokens/get-global-theme';
|
|
10
10
|
|
|
11
11
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
@@ -15,7 +15,7 @@ import { Grid, List } from 'react-virtualized';
|
|
|
15
15
|
import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
16
16
|
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
17
17
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
18
|
-
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
18
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
19
19
|
import ButtonItem from '@atlaskit/menu/button-item';
|
|
20
20
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
21
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -9,8 +9,8 @@ import React, { memo, useLayoutEffect, useRef, useState } from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
11
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
|
-
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
13
|
-
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
12
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
13
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
14
14
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
16
|
import Textfield from '@atlaskit/textfield/text-field';
|