@atlaskit/editor-core 215.0.4 → 215.0.5

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,15 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8e2162706bb08`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e2162706bb08) -
8
+ [REMOVE FF] platform_nested_nbm_analytics_location
9
+ - [`0b4cd77e72217`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0b4cd77e72217) -
10
+ clean up references to platform_editor_controls_performance_fixes
11
+ - Updated dependencies
12
+
3
13
  ## 215.0.4
4
14
 
5
15
  ### Patch Changes
@@ -234,16 +234,6 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
234
234
  }
235
235
  };
236
236
  }, []);
237
- var shouldSetHiddenDataAttribute = function shouldSetHiddenDataAttribute() {
238
- // When platform_editor_controls_performance_fixes is enabled we use a different method to
239
- // determine if the toolbar is hidden from outside of the editor, which doesn't require setting
240
- // data-editor-primary-toolbar-hidden on the content area
241
- // NOTE: When tidying, this function and the data attribute can be removed
242
- if (!props.isEditorToolbarHidden || (0, _experiments.editorExperiment)('platform_editor_controls_performance_fixes', true)) {
243
- return false;
244
- }
245
- return (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
246
- };
247
237
  return (0, _react2.jsx)("div", {
248
238
  css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
249
239
  "data-testid": CONTENT_AREA_TEST_ID,
@@ -279,7 +269,6 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
279
269
  ,
280
270
  className: "ak-editor-content-area-region",
281
271
  "data-editor-editable-content": true,
282
- "data-editor-primary-toolbar-hidden": shouldSetHiddenDataAttribute() ? 'true' : undefined,
283
272
  role: "region",
284
273
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.editableContentLabel),
285
274
  ref: contentAreaRef
@@ -15,7 +15,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
15
15
  var _extensions = require("@atlaskit/editor-common/extensions");
16
16
  var _providerHelpers = require("@atlaskit/editor-common/provider-helpers");
17
17
  var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
20
  /**
@@ -23,7 +22,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
23
22
  */
24
23
  function sendExtensionQuickInsertAnalytics(item, selection, createAnalyticsEvent, source) {
25
24
  if (createAnalyticsEvent) {
26
- var insertLocation = (0, _platformFeatureFlags.fg)('platform_nested_nbm_analytics_location') ? (0, _analytics2.findInsertLocation)(selection) : undefined;
25
+ var insertLocation = (0, _analytics2.findInsertLocation)(selection);
27
26
  (0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)({
28
27
  payload: {
29
28
  action: _analytics.ACTION.INSERTED,
@@ -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.0.3";
8
+ var version = exports.version = "215.0.4";
@@ -226,16 +226,6 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
226
226
  return containerRef.current;
227
227
  }
228
228
  }), []);
229
- const shouldSetHiddenDataAttribute = () => {
230
- // When platform_editor_controls_performance_fixes is enabled we use a different method to
231
- // determine if the toolbar is hidden from outside of the editor, which doesn't require setting
232
- // data-editor-primary-toolbar-hidden on the content area
233
- // NOTE: When tidying, this function and the data attribute can be removed
234
- if (!props.isEditorToolbarHidden || editorExperiment('platform_editor_controls_performance_fixes', true)) {
235
- return false;
236
- }
237
- return editorExperiment('platform_editor_controls', 'variant1');
238
- };
239
229
  return jsx("div", {
240
230
  css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
241
231
  "data-testid": CONTENT_AREA_TEST_ID,
@@ -272,7 +262,6 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
272
262
  ,
273
263
  className: "ak-editor-content-area-region",
274
264
  "data-editor-editable-content": true,
275
- "data-editor-primary-toolbar-hidden": shouldSetHiddenDataAttribute() ? 'true' : undefined,
276
265
  role: "region",
277
266
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
278
267
  ref: contentAreaRef
@@ -4,13 +4,12 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEve
4
4
  import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-common/extensions';
5
5
  import { combineProviders } from '@atlaskit/editor-common/provider-helpers';
6
6
  import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  /**
9
8
  * Utils to send analytics event when a extension is inserted using quickInsert
10
9
  */
11
10
  function sendExtensionQuickInsertAnalytics(item, selection, createAnalyticsEvent, source) {
12
11
  if (createAnalyticsEvent) {
13
- const insertLocation = fg('platform_nested_nbm_analytics_location') ? findInsertLocation(selection) : undefined;
12
+ const insertLocation = findInsertLocation(selection);
14
13
  fireAnalyticsEvent(createAnalyticsEvent)({
15
14
  payload: {
16
15
  action: ACTION.INSERTED,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.0.3";
2
+ export const version = "215.0.4";
@@ -224,16 +224,6 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
224
224
  }
225
225
  };
226
226
  }, []);
227
- var shouldSetHiddenDataAttribute = function shouldSetHiddenDataAttribute() {
228
- // When platform_editor_controls_performance_fixes is enabled we use a different method to
229
- // determine if the toolbar is hidden from outside of the editor, which doesn't require setting
230
- // data-editor-primary-toolbar-hidden on the content area
231
- // NOTE: When tidying, this function and the data attribute can be removed
232
- if (!props.isEditorToolbarHidden || editorExperiment('platform_editor_controls_performance_fixes', true)) {
233
- return false;
234
- }
235
- return editorExperiment('platform_editor_controls', 'variant1');
236
- };
237
227
  return jsx("div", {
238
228
  css: [contentAreaNew, props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
239
229
  "data-testid": CONTENT_AREA_TEST_ID,
@@ -269,7 +259,6 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
269
259
  ,
270
260
  className: "ak-editor-content-area-region",
271
261
  "data-editor-editable-content": true,
272
- "data-editor-primary-toolbar-hidden": shouldSetHiddenDataAttribute() ? 'true' : undefined,
273
262
  role: "region",
274
263
  "aria-label": props.intl.formatMessage(messages.editableContentLabel),
275
264
  ref: contentAreaRef
@@ -9,13 +9,12 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEve
9
9
  import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-common/extensions';
10
10
  import { combineProviders } from '@atlaskit/editor-common/provider-helpers';
11
11
  import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  /**
14
13
  * Utils to send analytics event when a extension is inserted using quickInsert
15
14
  */
16
15
  function sendExtensionQuickInsertAnalytics(item, selection, createAnalyticsEvent, source) {
17
16
  if (createAnalyticsEvent) {
18
- var insertLocation = fg('platform_nested_nbm_analytics_location') ? findInsertLocation(selection) : undefined;
17
+ var insertLocation = findInsertLocation(selection);
19
18
  fireAnalyticsEvent(createAnalyticsEvent)({
20
19
  payload: {
21
20
  action: ACTION.INSERTED,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.0.3";
2
+ export var version = "215.0.4";
@@ -461,6 +461,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
461
461
  commands: {
462
462
  setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
463
463
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
464
+ setPlaceholderHidden: (isPlaceholderHidden: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
464
465
  };
465
466
  dependencies: [import("@atlaskit/editor-plugins/focus").FocusPlugin, import("@atlaskit/editor-plugins/composition").CompositionPlugin, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/show-diff").ShowDiffPlugin>];
466
467
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
@@ -522,6 +522,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
522
522
  commands: {
523
523
  setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
524
524
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
525
+ setPlaceholderHidden: (isPlaceholderHidden: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
525
526
  };
526
527
  dependencies: [import("@atlaskit/editor-plugins/focus").FocusPlugin, import("@atlaskit/editor-plugins/composition").CompositionPlugin, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/show-diff").ShowDiffPlugin>];
527
528
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
@@ -461,6 +461,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
461
461
  commands: {
462
462
  setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
463
463
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
464
+ setPlaceholderHidden: (isPlaceholderHidden: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
464
465
  };
465
466
  dependencies: [import("@atlaskit/editor-plugins/focus").FocusPlugin, import("@atlaskit/editor-plugins/composition").CompositionPlugin, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/show-diff").ShowDiffPlugin>];
466
467
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
@@ -650,6 +650,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
650
650
  commands: {
651
651
  setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
652
652
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
653
+ setPlaceholderHidden: (isPlaceholderHidden: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
653
654
  };
654
655
  dependencies: [
655
656
  import("@atlaskit/editor-plugins/focus").FocusPlugin,
@@ -711,6 +711,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
711
711
  commands: {
712
712
  setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
713
713
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
714
+ setPlaceholderHidden: (isPlaceholderHidden: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
714
715
  };
715
716
  dependencies: [
716
717
  import("@atlaskit/editor-plugins/focus").FocusPlugin,
@@ -650,6 +650,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
650
650
  commands: {
651
651
  setAnimatingPlaceholderPrompts: (placeholderPrompts: string[]) => import("@atlaskit/editor-common/types").EditorCommand;
652
652
  setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
653
+ setPlaceholderHidden: (isPlaceholderHidden: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
653
654
  };
654
655
  dependencies: [
655
656
  import("@atlaskit/editor-plugins/focus").FocusPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.0.4",
3
+ "version": "215.0.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
65
65
  "@atlaskit/react-ufo": "^4.11.0",
66
66
  "@atlaskit/task-decision": "^19.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^13.8.0",
67
+ "@atlaskit/tmp-editor-statsig": "^13.9.0",
68
68
  "@atlaskit/tokens": "^6.4.0",
69
69
  "@atlaskit/tooltip": "^20.5.0",
70
70
  "@atlaskit/width-detector": "^5.0.0",
@@ -105,7 +105,7 @@
105
105
  "@atlaskit/media-test-helpers": "^39.0.0",
106
106
  "@atlaskit/modal-dialog": "^14.5.0",
107
107
  "@atlaskit/primitives": "^14.15.0",
108
- "@atlaskit/renderer": "^124.1.0",
108
+ "@atlaskit/renderer": "^124.2.0",
109
109
  "@atlaskit/section-message": "^8.7.0",
110
110
  "@atlaskit/smart-card": "^43.1.0",
111
111
  "@atlaskit/synchrony-test-helpers": "workspace:^",
@@ -150,6 +150,9 @@
150
150
  }
151
151
  },
152
152
  "platform-feature-flags": {
153
+ "aifc_use_llm_space_recommendations": {
154
+ "type": "boolean"
155
+ },
153
156
  "confluence_floating_toolbar_animation": {
154
157
  "type": "boolean"
155
158
  },
@@ -298,9 +301,6 @@
298
301
  "type": "boolean",
299
302
  "referenceOnly": true
300
303
  },
301
- "platform_nested_nbm_analytics_location": {
302
- "type": "boolean"
303
- },
304
304
  "platform_editor_add_media_from_url_rollout": {
305
305
  "type": "boolean"
306
306
  },