@atlaskit/editor-common 120.7.0 → 120.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +2 -2
- package/dist/cjs/guideline/getContainerWidthOrFullEditorWidth.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/link/utils.js +3 -3
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/media-single/calcMediaSingleMaxWidth.js +2 -2
- package/dist/cjs/messages/syncBlock.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/core-plugin/requestDocument.js +2 -2
- package/dist/cjs/resizer/BreakoutResizer.js +6 -6
- package/dist/cjs/resizer/Resizer.js +2 -2
- package/dist/cjs/resizer/useBreakoutGuidelines.js +5 -5
- package/dist/cjs/selection/getFragmentsFromSelection.js +2 -2
- package/dist/cjs/ui/Caption/index.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +2 -2
- package/dist/cjs/ui/TableSelector/index.js +3 -3
- package/dist/cjs/ui/TableSelector/table-selector.js +2 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +1 -1
- package/dist/cjs/ui/UnsupportedInline/index.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +1 -1
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +2 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +6 -6
- package/dist/cjs/utils/commands.js +3 -3
- package/dist/cjs/utils/nodes.js +2 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/es2019/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/link/utils.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/media-single/calcMediaSingleMaxWidth.js +1 -1
- package/dist/es2019/messages/syncBlock.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/requestDocument.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +1 -1
- package/dist/es2019/resizer/Resizer.js +1 -1
- package/dist/es2019/resizer/useBreakoutGuidelines.js +1 -1
- package/dist/es2019/selection/getFragmentsFromSelection.js +1 -1
- package/dist/es2019/ui/Caption/index.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Popup/index.js +1 -1
- package/dist/es2019/ui/TableSelector/index.js +1 -1
- package/dist/es2019/ui/TableSelector/table-selector.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-color/ColorPalette/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -1
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +1 -1
- package/dist/es2019/utils/commands.js +1 -1
- package/dist/es2019/utils/nodes.js +1 -1
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/esm/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/link/utils.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/media-single/calcMediaSingleMaxWidth.js +1 -1
- package/dist/esm/messages/syncBlock.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/requestDocument.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +1 -1
- package/dist/esm/resizer/Resizer.js +1 -1
- package/dist/esm/resizer/useBreakoutGuidelines.js +1 -1
- package/dist/esm/selection/getFragmentsFromSelection.js +1 -1
- package/dist/esm/ui/Caption/index.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/ui/TableSelector/index.js +1 -1
- package/dist/esm/ui/TableSelector/table-selector.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-color/ColorPalette/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -1
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
- package/dist/esm/utils/commands.js +1 -1
- package/dist/esm/utils/nodes.js +1 -1
- package/dist/types/messages/syncBlock.d.ts +10 -0
- package/package.json +2 -2
|
@@ -95,6 +95,16 @@ export const syncBlockMessages = defineMessages({
|
|
|
95
95
|
defaultMessage: 'Synced from: {title}',
|
|
96
96
|
description: 'Tooltip that shows the source page title of the synced block'
|
|
97
97
|
},
|
|
98
|
+
unpublishedLocalReferenceAvailabilityTooltip: {
|
|
99
|
+
id: 'editor-common.messages.syncBlock.unpublishedLocalReferenceAvailabilityTooltip',
|
|
100
|
+
defaultMessage: '{sourceType, select, page {Publish the page to make the source synced block content available in other locations.} blog {Publish the blog to make the source synced block content available in other locations.} jiraWorkItem {Publish the work item to make the source synced block content available in other locations.} other {Publish to make the source synced block content available in other locations.}}',
|
|
101
|
+
description: 'Tooltip explaining that a local unpublished reference is only available in its source document. sourceType selects page, blog, or Jira work item copy.'
|
|
102
|
+
},
|
|
103
|
+
unpublishedSourceAvailabilityTooltip: {
|
|
104
|
+
id: 'editor-common.messages.syncBlock.unpublishedSourceAvailabilityTooltip',
|
|
105
|
+
defaultMessage: '{sourceType, select, page {Publish the page to make the content available in other locations.} blog {Publish the blog to make the content available in other locations.} jiraWorkItem {Publish the work item to make the content available in other locations.} other {Publish to make the content available in other locations.}}',
|
|
106
|
+
description: 'Tooltip explaining that an unpublished source synced block is only available in its source document. sourceType selects page, blog, or Jira work item copy.'
|
|
107
|
+
},
|
|
98
108
|
referenceSyncBlockLastEdited: {
|
|
99
109
|
id: 'fabric.editor.referenceSyncBlockLastEdited',
|
|
100
110
|
defaultMessage: 'Last edited:',
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "120.
|
|
17
|
+
const packageVersion = "120.7.0";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -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 { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
|
|
4
4
|
const transformer = new JSONTransformer();
|
|
@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
2
2
|
import { bind, bindAll } from 'bind-event-listener';
|
|
3
3
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
5
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
7
7
|
import { LAYOUT_SECTION_MARGIN } from '../styles';
|
|
8
8
|
import { getBrowserInfo } from '../utils/browser';
|
|
@@ -8,7 +8,7 @@ import { useIntl } from 'react-intl';
|
|
|
8
8
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
11
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
11
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
12
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { messages } from '../messages/breakout';
|
|
14
14
|
import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
export const SNAP_GAP = 8;
|
|
5
5
|
const GUIDELINE_KEYS = {
|
|
6
6
|
lineLength: 'grid',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toJSON as unsanitizedNodeToJSON } from '@atlaskit/editor-json-transformer/toJSON';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { nodeToJSON } from '../utils/nodes';
|
|
4
4
|
import { getSliceFromSelection } from './context-helpers';
|
|
@@ -51,7 +51,7 @@ export class CaptionComponent extends React.Component {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
55
55
|
const _default_1 = injectIntl(CaptionComponent);
|
|
56
56
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
57
57
|
export default _default_1;
|
|
@@ -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 = "120.
|
|
17
|
+
const packageVersion = "120.7.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -6,7 +6,7 @@ import rafSchedule from 'raf-schd';
|
|
|
6
6
|
import { createPortal, flushSync } from 'react-dom';
|
|
7
7
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
9
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
10
|
import { calculatePlacement, calculatePosition, findOverflowScrollParent } from './utils';
|
|
11
11
|
import { validatePosition } from './validatePosition';
|
|
12
12
|
// Ignored via go/ees005
|
|
@@ -9,7 +9,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
10
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
|
|
14
14
|
import Popup from '../Popup';
|
|
15
15
|
import tableSelectorPopup, { TABLE_SELECTOR_BUTTON_GAP, TABLE_SELECTOR_BUTTON_SIZE } from './table-selector';
|
|
@@ -7,7 +7,7 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl';
|
|
9
9
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
11
|
import { toolbarInsertBlockMessages as messages } from '../../messages';
|
|
12
12
|
import { OutsideClickTargetRefContext } from '../../ui-react';
|
|
13
13
|
export const TABLE_SELECTOR_BUTTON_GAP = 2;
|
|
@@ -60,6 +60,6 @@ const UnsupportedInlineNode = ({
|
|
|
60
60
|
}))));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
64
64
|
const _default_1 = injectIntl(UnsupportedInlineNode);
|
|
65
65
|
export default _default_1;
|
|
@@ -99,6 +99,6 @@ const ColorPalette = props => {
|
|
|
99
99
|
}))));
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
103
103
|
const _default_1 = injectIntl(ColorPalette);
|
|
104
104
|
export default _default_1;
|
|
@@ -14,7 +14,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
15
15
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
18
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
19
19
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
20
20
|
import { colorPickerButtonMessages } from '../../messages/color-picker-button';
|
|
@@ -15,7 +15,7 @@ import CustomItem from '@atlaskit/menu/custom-item';
|
|
|
15
15
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
16
16
|
import Section from '@atlaskit/menu/section';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
20
20
|
import { DropdownMenuSharedCssClassName } from '../../styles';
|
|
21
21
|
import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
import { OutsideClickTargetRefContext } from './OutsideClickTargetRefContext';
|
|
5
5
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
2
2
|
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
6
6
|
import { withAnalytics } from '../editor-analytics';
|
|
7
7
|
import { GapCursorSelection } from '../selection';
|
|
@@ -10,7 +10,7 @@ import classnames from 'classnames';
|
|
|
10
10
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
13
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
14
14
|
import { useSharedPluginStateWithSelector } from '../../../hooks';
|
|
15
15
|
import { createWidthContext, WidthContext } from '../../../ui';
|
|
16
16
|
import ExtensionLozenge from '../Lozenge';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Calculates container or full editor width taking in account editor full width layout
|
|
@@ -983,7 +983,7 @@ function limit(items) {
|
|
|
983
983
|
return items.slice(0, RECENT_SEARCH_LIST_SIZE);
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
986
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types, @atlaskit/volt-strict-mode/no-multiple-exports
|
|
987
987
|
export var HyperlinkLinkAddToolbarWithIntl = injectIntl(HyperlinkLinkAddToolbar);
|
|
988
988
|
var _default_1 = withAnalyticsEvents()(HyperlinkLinkAddToolbarWithIntl);
|
|
989
989
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
package/dist/esm/link/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getUrlForDomainInContext } from '@atlaskit/atlassian-context/get-url-for-domain-in-context';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
2
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
import { linkPreferencesPath } from './constants';
|
|
4
4
|
var STAGING = 'staging';
|
|
5
5
|
var PRODUCTION = 'prod';
|
|
@@ -18,7 +18,7 @@ import { FileFetcherError } from '@atlaskit/media-client';
|
|
|
18
18
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
19
19
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
22
22
|
import { messages } from '../messages/media-inline-card';
|
|
23
23
|
import { referenceHeights } from './constants';
|
|
24
24
|
import { InlineImageCard } from './inline-image-card';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
2
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
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
|
|
5
5
|
* @param containerWidth width of editor container
|
|
@@ -95,6 +95,16 @@ export var syncBlockMessages = defineMessages({
|
|
|
95
95
|
defaultMessage: 'Synced from: {title}',
|
|
96
96
|
description: 'Tooltip that shows the source page title of the synced block'
|
|
97
97
|
},
|
|
98
|
+
unpublishedLocalReferenceAvailabilityTooltip: {
|
|
99
|
+
id: 'editor-common.messages.syncBlock.unpublishedLocalReferenceAvailabilityTooltip',
|
|
100
|
+
defaultMessage: '{sourceType, select, page {Publish the page to make the source synced block content available in other locations.} blog {Publish the blog to make the source synced block content available in other locations.} jiraWorkItem {Publish the work item to make the source synced block content available in other locations.} other {Publish to make the source synced block content available in other locations.}}',
|
|
101
|
+
description: 'Tooltip explaining that a local unpublished reference is only available in its source document. sourceType selects page, blog, or Jira work item copy.'
|
|
102
|
+
},
|
|
103
|
+
unpublishedSourceAvailabilityTooltip: {
|
|
104
|
+
id: 'editor-common.messages.syncBlock.unpublishedSourceAvailabilityTooltip',
|
|
105
|
+
defaultMessage: '{sourceType, select, page {Publish the page to make the content available in other locations.} blog {Publish the blog to make the content available in other locations.} jiraWorkItem {Publish the work item to make the content available in other locations.} other {Publish to make the content available in other locations.}}',
|
|
106
|
+
description: 'Tooltip explaining that an unpublished source synced block is only available in its source document. sourceType selects page, blog, or Jira work item copy.'
|
|
107
|
+
},
|
|
98
108
|
referenceSyncBlockLastEdited: {
|
|
99
109
|
id: 'fabric.editor.referenceSyncBlockLastEdited',
|
|
100
110
|
defaultMessage: 'Last edited:',
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "120.
|
|
23
|
+
var packageVersion = "120.7.0";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
3
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
4
4
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
|
|
6
6
|
var transformer = new JSONTransformer();
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
3
3
|
import { bind, bindAll } from 'bind-event-listener';
|
|
4
4
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
8
8
|
import { LAYOUT_SECTION_MARGIN } from '../styles';
|
|
9
9
|
import { getBrowserInfo } from '../utils/browser';
|
|
@@ -14,7 +14,7 @@ import { useIntl } from 'react-intl';
|
|
|
14
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
16
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
18
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
19
19
|
import { messages } from '../messages/breakout';
|
|
20
20
|
import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useCallback, useMemo, useState } from 'react';
|
|
3
3
|
import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
5
|
export var SNAP_GAP = 8;
|
|
6
6
|
var GUIDELINE_KEYS = {
|
|
7
7
|
lineLength: 'grid',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toJSON as unsanitizedNodeToJSON } from '@atlaskit/editor-json-transformer/toJSON';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { nodeToJSON } from '../utils/nodes';
|
|
4
4
|
import { getSliceFromSelection } from './context-helpers';
|
|
@@ -63,7 +63,7 @@ export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
}]);
|
|
64
64
|
}(React.Component);
|
|
65
65
|
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
67
67
|
var _default_1 = injectIntl(CaptionComponent);
|
|
68
68
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
69
69
|
export default _default_1;
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "120.
|
|
24
|
+
var packageVersion = "120.7.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -15,7 +15,7 @@ import rafSchedule from 'raf-schd';
|
|
|
15
15
|
import { createPortal, flushSync } from 'react-dom';
|
|
16
16
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import { calculatePlacement, calculatePosition as _calculatePosition, findOverflowScrollParent } from './utils';
|
|
20
20
|
import { validatePosition } from './validatePosition';
|
|
21
21
|
// Ignored via go/ees005
|
|
@@ -13,7 +13,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
13
13
|
import { bind } from 'bind-event-listener';
|
|
14
14
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
17
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
|
|
18
18
|
import Popup from '../Popup';
|
|
19
19
|
import tableSelectorPopup, { TABLE_SELECTOR_BUTTON_GAP, TABLE_SELECTOR_BUTTON_SIZE } from './table-selector';
|
|
@@ -7,7 +7,7 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl';
|
|
9
9
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
10
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
11
|
import { toolbarInsertBlockMessages as messages } from '../../messages';
|
|
12
12
|
import { OutsideClickTargetRefContext } from '../../ui-react';
|
|
13
13
|
export var TABLE_SELECTOR_BUTTON_GAP = 2;
|
|
@@ -66,6 +66,6 @@ var UnsupportedBlockNode = function UnsupportedBlockNode(_ref) {
|
|
|
66
66
|
);
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
70
70
|
var _default_1 = injectIntl(UnsupportedBlockNode);
|
|
71
71
|
export default _default_1;
|
|
@@ -60,6 +60,6 @@ var UnsupportedInlineNode = function UnsupportedInlineNode(_ref) {
|
|
|
60
60
|
}))));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
64
64
|
var _default_1 = injectIntl(UnsupportedInlineNode);
|
|
65
65
|
export default _default_1;
|
|
@@ -96,6 +96,6 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
96
96
|
}));
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
100
100
|
var _default_1 = injectIntl(ColorPalette);
|
|
101
101
|
export default _default_1;
|
|
@@ -15,7 +15,7 @@ import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
16
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
20
20
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
21
21
|
import { colorPickerButtonMessages } from '../../messages/color-picker-button';
|
|
@@ -30,7 +30,7 @@ import CustomItem from '@atlaskit/menu/custom-item';
|
|
|
30
30
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
31
31
|
import Section from '@atlaskit/menu/section';
|
|
32
32
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
33
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
33
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
34
34
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
35
35
|
import { DropdownMenuSharedCssClassName } from '../../styles';
|
|
36
36
|
import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
@@ -10,7 +10,7 @@ var _excluded = ["captureClick", "closeOnTab", "handleBackspaceDeleteKeydown", "
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
13
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
13
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
14
14
|
import { OutsideClickTargetRefContext } from './OutsideClickTargetRefContext';
|
|
15
15
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
2
2
|
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
6
6
|
import { withAnalytics } from '../editor-analytics';
|
|
7
7
|
import { GapCursorSelection } from '../selection';
|
package/dist/esm/utils/nodes.js
CHANGED
|
@@ -484,6 +484,16 @@ export declare const syncBlockMessages: {
|
|
|
484
484
|
description: string;
|
|
485
485
|
id: string;
|
|
486
486
|
};
|
|
487
|
+
unpublishedLocalReferenceAvailabilityTooltip: {
|
|
488
|
+
defaultMessage: string;
|
|
489
|
+
description: string;
|
|
490
|
+
id: string;
|
|
491
|
+
};
|
|
492
|
+
unpublishedSourceAvailabilityTooltip: {
|
|
493
|
+
defaultMessage: string;
|
|
494
|
+
description: string;
|
|
495
|
+
id: string;
|
|
496
|
+
};
|
|
487
497
|
unpublishedSyncBlockPastedDescription: {
|
|
488
498
|
defaultMessage: string;
|
|
489
499
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "120.7.
|
|
3
|
+
"version": "120.7.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.8.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.1.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.9.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.2.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.1.0",
|