@atlaskit/editor-core 215.13.3 → 215.13.4

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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.13.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`42bd907443147`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42bd907443147) -
8
+ NO-ISSUE Ensures INP metrics and other analytics account for max appearance
9
+ - Updated dependencies
10
+
3
11
  ## 215.13.3
4
12
 
5
13
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__editor-core/app",
6
+ "outDir": "../../../../../jira/tsDist/@atlaskit__editor-core/app",
7
7
  "rootDir": "../",
8
8
  "composite": true
9
9
  },
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.CoreEditor = CoreEditor;
8
8
  exports.default = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
12
  var _react = require("react");
12
13
  var _react2 = require("@emotion/react");
@@ -17,6 +18,7 @@ var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents"
17
18
  var _analytics = require("@atlaskit/editor-common/analytics");
18
19
  var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
19
20
  var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
21
+ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
20
22
  var _actions = _interopRequireDefault(require("../actions"));
21
23
  var _EditorContext = require("../ui/EditorContext");
22
24
  var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
@@ -93,8 +95,8 @@ function Editor(passedProps) {
93
95
  onSaveFromProps(view);
94
96
  }
95
97
  }, [onSaveFromProps]);
96
- var isFullPageApperance = Boolean(props.appearance && ['full-page', 'full-width'].includes(props.appearance));
97
- return (0, _react2.jsx)(_react.Fragment, null, isFullPageApperance ? (0, _react2.jsx)(_editorInpMetrics.EditorINPMetrics, null) : null, (0, _react2.jsx)(_editorInternal.EditorInternal, {
98
+ var isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width'].concat((0, _toConsumableArray2.default)((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_synced_block', 'isEnabled', true) ? ['max'] : [])).includes(props.appearance));
99
+ return (0, _react2.jsx)(_react.Fragment, null, isFullPageAppearance ? (0, _react2.jsx)(_editorInpMetrics.EditorINPMetrics, null) : null, (0, _react2.jsx)(_editorInternal.EditorInternal, {
98
100
  props: props,
99
101
  handleAnalyticsEvent: handleAnalyticsEvent,
100
102
  createAnalyticsEvent: createAnalyticsEvent,
@@ -121,7 +121,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
121
121
  var theme = (0, _react2.useTheme)();
122
122
  var _useThemeObserver = (0, _tokens.useThemeObserver)(),
123
123
  colorMode = _useThemeObserver.colorMode;
124
- var isFullPage = appearance === 'full-page' || appearance === 'full-width' || (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
124
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
125
125
  var isComment = appearance === 'comment';
126
126
  var baseFontSize = (0, _getBaseFontSize.getBaseFontSize)(appearance, contentMode);
127
127
  var style = (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
@@ -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.13.2";
8
+ var version = exports.version = "0.0.0-development";
@@ -15,6 +15,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
15
15
  import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
16
16
  import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
17
17
  import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
18
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
18
19
  import EditorActions from '../actions';
19
20
  import { useEditorContext } from '../ui/EditorContext';
20
21
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
@@ -91,8 +92,8 @@ function Editor(passedProps) {
91
92
  onSaveFromProps(view);
92
93
  }
93
94
  }, [onSaveFromProps]);
94
- const isFullPageApperance = Boolean(props.appearance && ['full-page', 'full-width'].includes(props.appearance));
95
- return jsx(Fragment, null, isFullPageApperance ? jsx(EditorINPMetrics, null) : null, jsx(EditorInternal, {
95
+ const isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width', ...(expValEqualsNoExposure('platform_synced_block', 'isEnabled', true) ? ['max'] : [])].includes(props.appearance));
96
+ return jsx(Fragment, null, isFullPageAppearance ? jsx(EditorINPMetrics, null) : null, jsx(EditorInternal, {
96
97
  props: props,
97
98
  handleAnalyticsEvent: handleAnalyticsEvent,
98
99
  createAnalyticsEvent: createAnalyticsEvent,
@@ -117,7 +117,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
117
117
  const {
118
118
  colorMode
119
119
  } = useThemeObserver();
120
- const isFullPage = appearance === 'full-page' || appearance === 'full-width' || expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
120
+ const isFullPage = appearance === 'full-page' || appearance === 'full-width' || expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
121
121
  const isComment = appearance === 'comment';
122
122
  const baseFontSize = getBaseFontSize(appearance, contentMode);
123
123
  const style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.13.2";
2
+ export const version = "0.0.0-development";
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
4
  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; }
4
5
  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) { _defineProperty(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; }
@@ -18,6 +19,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
18
19
  import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
19
20
  import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
20
21
  import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
22
+ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
21
23
  import EditorActions from '../actions';
22
24
  import { useEditorContext } from '../ui/EditorContext';
23
25
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
@@ -89,8 +91,8 @@ function Editor(passedProps) {
89
91
  onSaveFromProps(view);
90
92
  }
91
93
  }, [onSaveFromProps]);
92
- var isFullPageApperance = Boolean(props.appearance && ['full-page', 'full-width'].includes(props.appearance));
93
- return jsx(Fragment, null, isFullPageApperance ? jsx(EditorINPMetrics, null) : null, jsx(EditorInternal, {
94
+ var isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width'].concat(_toConsumableArray(expValEqualsNoExposure('platform_synced_block', 'isEnabled', true) ? ['max'] : [])).includes(props.appearance));
95
+ return jsx(Fragment, null, isFullPageAppearance ? jsx(EditorINPMetrics, null) : null, jsx(EditorInternal, {
94
96
  props: props,
95
97
  handleAnalyticsEvent: handleAnalyticsEvent,
96
98
  createAnalyticsEvent: createAnalyticsEvent,
@@ -113,7 +113,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
113
113
  var theme = useTheme();
114
114
  var _useThemeObserver = useThemeObserver(),
115
115
  colorMode = _useThemeObserver.colorMode;
116
- var isFullPage = appearance === 'full-page' || appearance === 'full-width' || expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
116
+ var isFullPage = appearance === 'full-page' || appearance === 'full-width' || expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) && appearance === 'max';
117
117
  var isComment = appearance === 'comment';
118
118
  var baseFontSize = getBaseFontSize(appearance, contentMode);
119
119
  var style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.13.2";
2
+ export var version = "0.0.0-development";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.13.3",
3
+ "version": "215.13.4",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/activity-provider": "^2.5.0",
42
42
  "@atlaskit/adf-schema": "^51.3.2",
43
43
  "@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
44
- "@atlaskit/analytics-namespaced-context": "^7.1.0",
44
+ "@atlaskit/analytics-namespaced-context": "^7.2.0",
45
45
  "@atlaskit/analytics-next": "^11.1.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^23.6.0",
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^110.29.0",
84
+ "@atlaskit/editor-common": "^110.30.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",