@atlaskit/editor-core 215.11.0 → 215.11.2

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.11.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 215.11.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4303503b123a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4303503b123a8) -
14
+ Revert fg-cleanup platform_editor_disable_rerender_tracking_jira
15
+ - Updated dependencies
16
+
3
17
  ## 215.11.0
4
18
 
5
19
  ### Minor Changes
@@ -11,6 +11,7 @@ var _react = require("react");
11
11
  var _react2 = require("@emotion/react");
12
12
  var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _portal = require("@atlaskit/editor-common/portal");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _ErrorBoundary = _interopRequireDefault(require("../create-editor/ErrorBoundary"));
15
16
  var _ReactEditorView = _interopRequireDefault(require("../create-editor/ReactEditorView"));
16
17
  var _EditorContext = _interopRequireDefault(require("../ui/EditorContext"));
@@ -54,7 +55,7 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
54
55
 
55
56
  // Render tracking is firing too many events in Jira so we are disabling them for now. See - https://product-fabric.atlassian.net/browse/ED-25616
56
57
  // Also firing too many events for the legacy content macro, so disabling for now. See - https://product-fabric.atlassian.net/browse/ED-26650
57
- var renderTrackingEnabled = false;
58
+ var renderTrackingEnabled = !(0, _platformFeatureFlags.fg)('platform_editor_disable_rerender_tracking_jira') && !featureFlags.lcmPreventRenderTracking;
58
59
  var useShallow = false;
59
60
  var _usePortalProvider = (0, _portal.usePortalProvider)(),
60
61
  _usePortalProvider2 = (0, _slicedToArray2.default)(_usePortalProvider, 2),
@@ -741,7 +741,7 @@ function ReactEditorView(props) {
741
741
 
742
742
  // Render tracking is firing too many events in Jira so we are disabling them for now. See - https://product-fabric.atlassian.net/browse/ED-25616
743
743
  // Also firing too many events for the legacy content macro, so disabling for now. See - https://product-fabric.atlassian.net/browse/ED-26650
744
- var renderTrackingEnabled = false;
744
+ var renderTrackingEnabled = !(0, _platformFeatureFlags.fg)('platform_editor_disable_rerender_tracking_jira') && !featureFlags.lcmPreventRenderTracking;
745
745
  return /*#__PURE__*/_react.default.createElement(_uiReact.ReactEditorViewContext.Provider, {
746
746
  value: {
747
747
  editorRef: editorRef,
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "215.10.2";
8
+ var version = exports.version = "215.11.1";
@@ -8,6 +8,7 @@ import { Fragment, memo } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
10
10
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import ErrorBoundary from '../create-editor/ErrorBoundary';
12
13
  import ReactEditorViewNext from '../create-editor/ReactEditorView';
13
14
  import EditorContext from '../ui/EditorContext';
@@ -48,7 +49,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
48
49
 
49
50
  // Render tracking is firing too many events in Jira so we are disabling them for now. See - https://product-fabric.atlassian.net/browse/ED-25616
50
51
  // Also firing too many events for the legacy content macro, so disabling for now. See - https://product-fabric.atlassian.net/browse/ED-26650
51
- const renderTrackingEnabled = false;
52
+ const renderTrackingEnabled = !fg('platform_editor_disable_rerender_tracking_jira') && !featureFlags.lcmPreventRenderTracking;
52
53
  const useShallow = false;
53
54
  const [portalProviderAPI, PortalRenderer] = usePortalProvider();
54
55
  const [nodeViewPortalProviderAPI, NodeViewPortalRenderer] = usePortalProvider();
@@ -684,7 +684,7 @@ export function ReactEditorView(props) {
684
684
 
685
685
  // Render tracking is firing too many events in Jira so we are disabling them for now. See - https://product-fabric.atlassian.net/browse/ED-25616
686
686
  // Also firing too many events for the legacy content macro, so disabling for now. See - https://product-fabric.atlassian.net/browse/ED-26650
687
- const renderTrackingEnabled = false;
687
+ const renderTrackingEnabled = !fg('platform_editor_disable_rerender_tracking_jira') && !featureFlags.lcmPreventRenderTracking;
688
688
  return /*#__PURE__*/React.createElement(ReactEditorViewContext.Provider, {
689
689
  value: {
690
690
  editorRef: editorRef,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.10.2";
2
+ export const version = "215.11.1";
@@ -12,6 +12,7 @@ import { Fragment, memo } from 'react';
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
14
14
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
15
16
  import ErrorBoundary from '../create-editor/ErrorBoundary';
16
17
  import ReactEditorViewNext from '../create-editor/ReactEditorView';
17
18
  import EditorContext from '../ui/EditorContext';
@@ -50,7 +51,7 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
50
51
 
51
52
  // Render tracking is firing too many events in Jira so we are disabling them for now. See - https://product-fabric.atlassian.net/browse/ED-25616
52
53
  // Also firing too many events for the legacy content macro, so disabling for now. See - https://product-fabric.atlassian.net/browse/ED-26650
53
- var renderTrackingEnabled = false;
54
+ var renderTrackingEnabled = !fg('platform_editor_disable_rerender_tracking_jira') && !featureFlags.lcmPreventRenderTracking;
54
55
  var useShallow = false;
55
56
  var _usePortalProvider = usePortalProvider(),
56
57
  _usePortalProvider2 = _slicedToArray(_usePortalProvider, 2),
@@ -732,7 +732,7 @@ export function ReactEditorView(props) {
732
732
 
733
733
  // Render tracking is firing too many events in Jira so we are disabling them for now. See - https://product-fabric.atlassian.net/browse/ED-25616
734
734
  // Also firing too many events for the legacy content macro, so disabling for now. See - https://product-fabric.atlassian.net/browse/ED-26650
735
- var renderTrackingEnabled = false;
735
+ var renderTrackingEnabled = !fg('platform_editor_disable_rerender_tracking_jira') && !featureFlags.lcmPreventRenderTracking;
736
736
  return /*#__PURE__*/React.createElement(ReactEditorViewContext.Provider, {
737
737
  value: {
738
738
  editorRef: editorRef,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.10.2";
2
+ export var version = "215.11.1";
@@ -53,6 +53,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
53
53
  flushBodiedSyncBlocks: () => Promise<boolean>;
54
54
  };
55
55
  commands: {
56
+ copySyncedBlockReferenceToClipboard: () => import("@atlaskit/editor-common/types").EditorCommand;
56
57
  insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
57
58
  };
58
59
  dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
@@ -124,6 +124,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
124
124
  flushBodiedSyncBlocks: () => Promise<boolean>;
125
125
  };
126
126
  commands: {
127
+ copySyncedBlockReferenceToClipboard: () => import("@atlaskit/editor-common/types").EditorCommand;
127
128
  insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
128
129
  };
129
130
  dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
@@ -53,6 +53,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
53
53
  flushBodiedSyncBlocks: () => Promise<boolean>;
54
54
  };
55
55
  commands: {
56
+ copySyncedBlockReferenceToClipboard: () => import("@atlaskit/editor-common/types").EditorCommand;
56
57
  insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
57
58
  };
58
59
  dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin, import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPlugin, import("@atlaskit/editor-plugins/decorations").DecorationsPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/toolbar").ToolbarPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-menu").BlockMenuPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
@@ -151,6 +151,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
151
151
  flushBodiedSyncBlocks: () => Promise<boolean>;
152
152
  };
153
153
  commands: {
154
+ copySyncedBlockReferenceToClipboard: () => import("@atlaskit/editor-common/types").EditorCommand;
154
155
  insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
155
156
  };
156
157
  dependencies: [
@@ -222,6 +222,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
222
222
  flushBodiedSyncBlocks: () => Promise<boolean>;
223
223
  };
224
224
  commands: {
225
+ copySyncedBlockReferenceToClipboard: () => import("@atlaskit/editor-common/types").EditorCommand;
225
226
  insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
226
227
  };
227
228
  dependencies: [
@@ -151,6 +151,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
151
151
  flushBodiedSyncBlocks: () => Promise<boolean>;
152
152
  };
153
153
  commands: {
154
+ copySyncedBlockReferenceToClipboard: () => import("@atlaskit/editor-common/types").EditorCommand;
154
155
  insertSyncedBlock: () => import("@atlaskit/editor-common/types").EditorCommand;
155
156
  };
156
157
  dependencies: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.11.0",
3
+ "version": "215.11.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@atlaskit/activity-provider": "^2.5.0",
42
42
  "@atlaskit/adf-schema": "^51.3.2",
43
- "@atlaskit/afm-i18n-platform-editor-editor-core": "2.7.0",
43
+ "@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
44
44
  "@atlaskit/analytics-namespaced-context": "^7.1.0",
45
45
  "@atlaskit/analytics-next": "^11.1.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/editor-toolbar": "^0.17.0",
57
57
  "@atlaskit/editor-toolbar-model": "^0.2.0",
58
58
  "@atlaskit/emoji": "^69.7.0",
59
- "@atlaskit/icon": "^28.5.0",
59
+ "@atlaskit/icon": "^29.0.0",
60
60
  "@atlaskit/link": "^3.2.0",
61
61
  "@atlaskit/media-card": "^79.6.0",
62
62
  "@atlaskit/mention": "^24.4.0",
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^110.26.0",
84
+ "@atlaskit/editor-common": "^110.27.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",
@@ -199,6 +199,9 @@
199
199
  "type": "boolean",
200
200
  "referenceOnly": true
201
201
  },
202
+ "platform_editor_disable_rerender_tracking_jira": {
203
+ "type": "boolean"
204
+ },
202
205
  "platform-component-visual-refresh": {
203
206
  "type": "boolean",
204
207
  "referenceOnly": true