@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.
Files changed (81) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +2 -2
  3. package/dist/cjs/guideline/getContainerWidthOrFullEditorWidth.js +2 -2
  4. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  5. package/dist/cjs/link/utils.js +3 -3
  6. package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
  7. package/dist/cjs/media-single/calcMediaSingleMaxWidth.js +2 -2
  8. package/dist/cjs/messages/syncBlock.js +10 -0
  9. package/dist/cjs/monitoring/error.js +1 -1
  10. package/dist/cjs/preset/core-plugin/requestDocument.js +2 -2
  11. package/dist/cjs/resizer/BreakoutResizer.js +6 -6
  12. package/dist/cjs/resizer/Resizer.js +2 -2
  13. package/dist/cjs/resizer/useBreakoutGuidelines.js +5 -5
  14. package/dist/cjs/selection/getFragmentsFromSelection.js +2 -2
  15. package/dist/cjs/ui/Caption/index.js +1 -1
  16. package/dist/cjs/ui/DropList/index.js +1 -1
  17. package/dist/cjs/ui/Popup/index.js +2 -2
  18. package/dist/cjs/ui/TableSelector/index.js +3 -3
  19. package/dist/cjs/ui/TableSelector/table-selector.js +2 -2
  20. package/dist/cjs/ui/UnsupportedBlock/index.js +1 -1
  21. package/dist/cjs/ui/UnsupportedInline/index.js +1 -1
  22. package/dist/cjs/ui-color/ColorPalette/index.js +1 -1
  23. package/dist/cjs/ui-menu/ColorPickerButton/index.js +2 -2
  24. package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
  25. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +6 -6
  26. package/dist/cjs/utils/commands.js +3 -3
  27. package/dist/cjs/utils/nodes.js +2 -2
  28. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +1 -1
  29. package/dist/es2019/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
  30. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  31. package/dist/es2019/link/utils.js +1 -1
  32. package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
  33. package/dist/es2019/media-single/calcMediaSingleMaxWidth.js +1 -1
  34. package/dist/es2019/messages/syncBlock.js +10 -0
  35. package/dist/es2019/monitoring/error.js +1 -1
  36. package/dist/es2019/preset/core-plugin/requestDocument.js +1 -1
  37. package/dist/es2019/resizer/BreakoutResizer.js +1 -1
  38. package/dist/es2019/resizer/Resizer.js +1 -1
  39. package/dist/es2019/resizer/useBreakoutGuidelines.js +1 -1
  40. package/dist/es2019/selection/getFragmentsFromSelection.js +1 -1
  41. package/dist/es2019/ui/Caption/index.js +1 -1
  42. package/dist/es2019/ui/DropList/index.js +1 -1
  43. package/dist/es2019/ui/Popup/index.js +1 -1
  44. package/dist/es2019/ui/TableSelector/index.js +1 -1
  45. package/dist/es2019/ui/TableSelector/table-selector.js +1 -1
  46. package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
  47. package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
  48. package/dist/es2019/ui-color/ColorPalette/index.js +1 -1
  49. package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -1
  50. package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -1
  51. package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  52. package/dist/es2019/utils/commands.js +1 -1
  53. package/dist/es2019/utils/nodes.js +1 -1
  54. package/dist/esm/extensibility/Extension/InlineExtension/index.js +1 -1
  55. package/dist/esm/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
  56. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  57. package/dist/esm/link/utils.js +1 -1
  58. package/dist/esm/media-inline/media-inline-image-card.js +1 -1
  59. package/dist/esm/media-single/calcMediaSingleMaxWidth.js +1 -1
  60. package/dist/esm/messages/syncBlock.js +10 -0
  61. package/dist/esm/monitoring/error.js +1 -1
  62. package/dist/esm/preset/core-plugin/requestDocument.js +1 -1
  63. package/dist/esm/resizer/BreakoutResizer.js +1 -1
  64. package/dist/esm/resizer/Resizer.js +1 -1
  65. package/dist/esm/resizer/useBreakoutGuidelines.js +1 -1
  66. package/dist/esm/selection/getFragmentsFromSelection.js +1 -1
  67. package/dist/esm/ui/Caption/index.js +1 -1
  68. package/dist/esm/ui/DropList/index.js +1 -1
  69. package/dist/esm/ui/Popup/index.js +1 -1
  70. package/dist/esm/ui/TableSelector/index.js +1 -1
  71. package/dist/esm/ui/TableSelector/table-selector.js +1 -1
  72. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  73. package/dist/esm/ui/UnsupportedInline/index.js +1 -1
  74. package/dist/esm/ui-color/ColorPalette/index.js +1 -1
  75. package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -1
  76. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -1
  77. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  78. package/dist/esm/utils/commands.js +1 -1
  79. package/dist/esm/utils/nodes.js +1 -1
  80. package/dist/types/messages/syncBlock.d.ts +10 -0
  81. 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.6.2";
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/experiments';
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/experiments';
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/experiments';
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 { nodeToJSON as unsanitizedNodeToJSON } from '@atlaskit/editor-json-transformer';
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/ban-types
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.6.2";
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/experiments';
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/experiments';
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/experiments';
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;
@@ -66,6 +66,6 @@ const UnsupportedBlockNode = ({
66
66
  );
67
67
  };
68
68
 
69
- // eslint-disable-next-line @typescript-eslint/ban-types
69
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
70
70
  const _default_1 = injectIntl(UnsupportedBlockNode);
71
71
  export default _default_1;
@@ -60,6 +60,6 @@ const UnsupportedInlineNode = ({
60
60
  }))));
61
61
  };
62
62
 
63
- // eslint-disable-next-line @typescript-eslint/ban-types
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/ban-types
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/experiments';
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/experiments';
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/experiments';
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/experiments';
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';
@@ -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 { SelectedState } from './SelectedState';
3
3
  import { validNode } from './validNode';
4
4
 
@@ -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/experiments';
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/experiments';
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/ban-types, @atlaskit/volt-strict-mode/no-multiple-exports
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
@@ -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/experiments';
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/experiments';
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/experiments';
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.6.2";
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/experiments';
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/experiments';
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/experiments';
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 { nodeToJSON as unsanitizedNodeToJSON } from '@atlaskit/editor-json-transformer';
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/ban-types
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.6.2";
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/experiments';
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/experiments';
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/experiments';
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/ban-types
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/ban-types
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/ban-types
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/experiments';
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/experiments';
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/experiments';
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/experiments';
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';
@@ -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 { SelectedState } from './SelectedState';
3
3
  import { validNode } from './validNode';
4
4
 
@@ -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.0",
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": "^167.0.0",
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",