@atlaskit/editor-core 203.14.4 → 203.15.0

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 (30) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/composable-editor/core-editor.js +1 -1
  3. package/dist/cjs/composable-editor/editor-internal.js +1 -1
  4. package/dist/cjs/create-editor/ReactEditorViewNext.js +1 -1
  5. package/dist/cjs/create-editor/create-plugins-list.js +1 -1
  6. package/dist/cjs/create-editor/create-universal-preset.js +1 -1
  7. package/dist/cjs/index.js +7 -0
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/es2019/composable-editor/core-editor.js +1 -1
  10. package/dist/es2019/composable-editor/editor-internal.js +1 -1
  11. package/dist/es2019/create-editor/ReactEditorViewNext.js +1 -1
  12. package/dist/es2019/create-editor/create-plugins-list.js +1 -1
  13. package/dist/es2019/create-editor/create-universal-preset.js +1 -1
  14. package/dist/es2019/index.js +1 -0
  15. package/dist/es2019/version-wrapper.js +1 -1
  16. package/dist/esm/composable-editor/core-editor.js +1 -1
  17. package/dist/esm/composable-editor/editor-internal.js +1 -1
  18. package/dist/esm/create-editor/ReactEditorViewNext.js +1 -1
  19. package/dist/esm/create-editor/create-plugins-list.js +1 -1
  20. package/dist/esm/create-editor/create-universal-preset.js +1 -1
  21. package/dist/esm/index.js +1 -0
  22. package/dist/esm/version-wrapper.js +1 -1
  23. package/dist/types/index.d.ts +1 -0
  24. package/dist/types-ts4.5/index.d.ts +1 -0
  25. package/package.json +2 -2
  26. /package/dist/cjs/{create-editor → utils}/feature-flags-from-props.js +0 -0
  27. /package/dist/es2019/{create-editor → utils}/feature-flags-from-props.js +0 -0
  28. /package/dist/esm/{create-editor → utils}/feature-flags-from-props.js +0 -0
  29. /package/dist/types/{create-editor → utils}/feature-flags-from-props.d.ts +0 -0
  30. /package/dist/types-ts4.5/{create-editor → utils}/feature-flags-from-props.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 203.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#111196](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111196)
8
+ [`8a1567bd07c14`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8a1567bd07c14) -
9
+ ED-26257 LCM: Lift createFeatureFlagsFromProps to the utils folder and export from editor-core to
10
+ allow it to be used in experiment-legacy-content-macro. This function has extra flags on top of
11
+ what is passed in, so reusing it in order to avoid discrepancy between feature flags inside and
12
+ outside the LCM extension.
13
+
3
14
  ## 203.14.4
4
15
 
5
16
  ### Patch Changes
@@ -18,8 +18,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
18
18
  var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
19
19
  var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
20
20
  var _actions = _interopRequireDefault(require("../actions"));
21
- var _featureFlagsFromProps = require("../create-editor/feature-flags-from-props");
22
21
  var _EditorContext = require("../ui/EditorContext");
22
+ var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
23
23
  var _measureEnum = _interopRequireDefault(require("../utils/performance/measure-enum"));
24
24
  var _versionWrapper = require("../version-wrapper");
25
25
  var _editorInternal = require("./editor-internal");
@@ -13,10 +13,10 @@ var _analytics = require("@atlaskit/editor-common/analytics");
13
13
  var _portal = require("@atlaskit/editor-common/portal");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  var _ErrorBoundary = _interopRequireDefault(require("../create-editor/ErrorBoundary"));
16
- var _featureFlagsFromProps = require("../create-editor/feature-flags-from-props");
17
16
  var _ReactEditorViewNext = _interopRequireDefault(require("../create-editor/ReactEditorViewNext"));
18
17
  var _EditorContext = _interopRequireDefault(require("../ui/EditorContext"));
19
18
  var _IntlProviderIfMissingWrapper = require("../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper");
19
+ var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
20
20
  var _RenderTracking = require("../utils/performance/components/RenderTracking");
21
21
  var _BaseThemeWrapper = require("./BaseThemeWrapper");
22
22
  var _getBaseFontSize = require("./utils/getBaseFontSize");
@@ -26,6 +26,7 @@ var _state2 = require("@atlaskit/editor-prosemirror/state");
26
26
  var _view = require("@atlaskit/editor-prosemirror/view");
27
27
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
28
28
  var _useProviders = require("../composable-editor/hooks/useProviders");
29
+ var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
29
30
  var _getNodesCount = require("../utils/getNodesCount");
30
31
  var _isFullPage = require("../utils/is-full-page");
31
32
  var _RenderTracking = require("../utils/performance/components/RenderTracking");
@@ -34,7 +35,6 @@ var _consts = require("./consts");
34
35
  var _createEditor = require("./create-editor");
35
36
  var _createPluginsList = _interopRequireDefault(require("./create-plugins-list"));
36
37
  var _createSchema = require("./create-schema");
37
- var _featureFlagsFromProps = require("./feature-flags-from-props");
38
38
  var _messages = require("./messages");
39
39
  var _getUAPrefix = require("./ReactEditorView/getUAPrefix");
40
40
  var _handleEditorFocus = require("./ReactEditorView/handleEditorFocus");
@@ -8,8 +8,8 @@ exports.default = createPluginsList;
8
8
  exports.getDefaultPresetOptionsFromEditorProps = getDefaultPresetOptionsFromEditorProps;
9
9
  exports.getScrollGutterOptions = getScrollGutterOptions;
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
11
12
  var _isFullPage = require("../utils/is-full-page");
12
- var _featureFlagsFromProps = require("./feature-flags-from-props");
13
13
  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; }
14
14
  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; }
15
15
  var isCodeBlockAllowed = function isCodeBlockAllowed(options) {
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.createUniversalPreset = createUniversalPreset;
8
8
  var _universal = _interopRequireDefault(require("../presets/universal"));
9
+ var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
9
10
  var _createPluginsList = require("./create-plugins-list");
10
- var _featureFlagsFromProps = require("./feature-flags-from-props");
11
11
  // Separate file, we should not accidentally import this into the `ComposableEditor`
12
12
  // otherwise it will blow up the bundle size.
13
13
  function createUniversalPreset(_ref) {
package/dist/cjs/index.js CHANGED
@@ -58,6 +58,12 @@ Object.defineProperty(exports, "createEditorContentStyle", {
58
58
  return _ContentStyles.createEditorContentStyle;
59
59
  }
60
60
  });
61
+ Object.defineProperty(exports, "createFeatureFlagsFromProps", {
62
+ enumerable: true,
63
+ get: function get() {
64
+ return _featureFlagsFromProps.createFeatureFlagsFromProps;
65
+ }
66
+ });
61
67
  Object.defineProperty(exports, "getNodesCount", {
62
68
  enumerable: true,
63
69
  get: function get() {
@@ -92,5 +98,6 @@ var _ToolbarHelp = _interopRequireDefault(require("./ui/ToolbarHelp"));
92
98
  var _ContextPanel = require("./ui/ContextPanel");
93
99
  var _getNodesCount = require("./utils/getNodesCount");
94
100
  var _measureEnum = _interopRequireDefault(require("./utils/performance/measure-enum"));
101
+ var _featureFlagsFromProps = require("./utils/feature-flags-from-props");
95
102
  var _actions = _interopRequireDefault(require("./actions"));
96
103
  var _ContentStyles = require("./ui/ContentStyles");
@@ -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 = "203.14.4";
8
+ var version = exports.version = "203.15.0";
@@ -15,8 +15,8 @@ import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
15
15
  import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
16
16
  import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
17
17
  import EditorActions from '../actions';
18
- import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
19
18
  import { useEditorContext } from '../ui/EditorContext';
19
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
20
20
  import measurements from '../utils/performance/measure-enum';
21
21
  import { name, version } from '../version-wrapper';
22
22
  import { EditorInternal } from './editor-internal';
@@ -10,10 +10,10 @@ import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
10
10
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
11
11
  import { fg } from '@atlaskit/platform-feature-flags';
12
12
  import ErrorBoundary from '../create-editor/ErrorBoundary';
13
- import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
14
13
  import ReactEditorViewNext from '../create-editor/ReactEditorViewNext';
15
14
  import EditorContext from '../ui/EditorContext';
16
15
  import { IntlProviderIfMissingWrapper } from '../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper';
16
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
17
17
  import { RenderTracking } from '../utils/performance/components/RenderTracking';
18
18
  import { BaseThemeWrapper } from './BaseThemeWrapper';
19
19
  import { getBaseFontSize } from './utils/getBaseFontSize';
@@ -15,6 +15,7 @@ import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemir
15
15
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
16
16
  import { fg } from '@atlaskit/platform-feature-flags';
17
17
  import { useProviders } from '../composable-editor/hooks/useProviders';
18
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
18
19
  import { getNodesCount } from '../utils/getNodesCount';
19
20
  import { isFullPage } from '../utils/is-full-page';
20
21
  import { RenderTracking } from '../utils/performance/components/RenderTracking';
@@ -23,7 +24,6 @@ import { PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD, PROSEMIRROR_RENDERED_
23
24
  import { createErrorReporter, createPMPlugins, processPluginsList } from './create-editor';
24
25
  import createPluginsList from './create-plugins-list';
25
26
  import { createSchema } from './create-schema';
26
- import { createFeatureFlagsFromProps } from './feature-flags-from-props';
27
27
  import { editorMessages } from './messages';
28
28
  import { getUAPrefix } from './ReactEditorView/getUAPrefix';
29
29
  import { handleEditorFocus } from './ReactEditorView/handleEditorFocus';
@@ -1,5 +1,5 @@
1
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
1
2
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
2
- import { createFeatureFlagsFromProps } from './feature-flags-from-props';
3
3
  const isCodeBlockAllowed = options => {
4
4
  const exclude = options && options.allowBlockType && options.allowBlockType.exclude ? options.allowBlockType.exclude : [];
5
5
  return exclude.indexOf('codeBlock') === -1;
@@ -1,6 +1,6 @@
1
1
  import createUniversalPresetInternal from '../presets/universal';
2
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
2
3
  import { getDefaultPresetOptionsFromEditorProps } from './create-plugins-list';
3
- import { createFeatureFlagsFromProps } from './feature-flags-from-props';
4
4
 
5
5
  // Separate file, we should not accidentally import this into the `ComposableEditor`
6
6
  // otherwise it will blow up the bundle size.
@@ -33,5 +33,6 @@ ContextPanel } from './ui/ContextPanel';
33
33
  // Used in editor-test-helpers and mobile bridge
34
34
  export { getNodesCount } from './utils/getNodesCount';
35
35
  export { default as measurements } from './utils/performance/measure-enum';
36
+ export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
36
37
  export { default as EditorActions } from './actions';
37
38
  export { createEditorContentStyle } from './ui/ContentStyles';
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "203.14.4";
2
+ export const version = "203.15.0";
@@ -18,8 +18,8 @@ import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
18
18
  import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
19
19
  import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
20
20
  import EditorActions from '../actions';
21
- import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
22
21
  import { useEditorContext } from '../ui/EditorContext';
22
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
23
23
  import measurements from '../utils/performance/measure-enum';
24
24
  import { name, version } from '../version-wrapper';
25
25
  import { EditorInternal } from './editor-internal';
@@ -14,10 +14,10 @@ import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
14
14
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
15
15
  import { fg } from '@atlaskit/platform-feature-flags';
16
16
  import ErrorBoundary from '../create-editor/ErrorBoundary';
17
- import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
18
17
  import ReactEditorViewNext from '../create-editor/ReactEditorViewNext';
19
18
  import EditorContext from '../ui/EditorContext';
20
19
  import { IntlProviderIfMissingWrapper } from '../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper';
20
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
21
21
  import { RenderTracking } from '../utils/performance/components/RenderTracking';
22
22
  import { BaseThemeWrapper } from './BaseThemeWrapper';
23
23
  import { getBaseFontSize } from './utils/getBaseFontSize';
@@ -19,6 +19,7 @@ import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemir
19
19
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
20
20
  import { fg } from '@atlaskit/platform-feature-flags';
21
21
  import { useProviders } from '../composable-editor/hooks/useProviders';
22
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
22
23
  import { getNodesCount } from '../utils/getNodesCount';
23
24
  import { isFullPage } from '../utils/is-full-page';
24
25
  import { RenderTracking } from '../utils/performance/components/RenderTracking';
@@ -27,7 +28,6 @@ import { PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD, PROSEMIRROR_RENDERED_
27
28
  import { createErrorReporter, createPMPlugins, processPluginsList } from './create-editor';
28
29
  import createPluginsList from './create-plugins-list';
29
30
  import { createSchema } from './create-schema';
30
- import { createFeatureFlagsFromProps } from './feature-flags-from-props';
31
31
  import { editorMessages } from './messages';
32
32
  import { getUAPrefix } from './ReactEditorView/getUAPrefix';
33
33
  import { handleEditorFocus } from './ReactEditorView/handleEditorFocus';
@@ -1,8 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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; }
4
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
4
5
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
5
- import { createFeatureFlagsFromProps } from './feature-flags-from-props';
6
6
  var isCodeBlockAllowed = function isCodeBlockAllowed(options) {
7
7
  var exclude = options && options.allowBlockType && options.allowBlockType.exclude ? options.allowBlockType.exclude : [];
8
8
  return exclude.indexOf('codeBlock') === -1;
@@ -1,6 +1,6 @@
1
1
  import createUniversalPresetInternal from '../presets/universal';
2
+ import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
2
3
  import { getDefaultPresetOptionsFromEditorProps } from './create-plugins-list';
3
- import { createFeatureFlagsFromProps } from './feature-flags-from-props';
4
4
 
5
5
  // Separate file, we should not accidentally import this into the `ComposableEditor`
6
6
  // otherwise it will blow up the bundle size.
package/dist/esm/index.js CHANGED
@@ -33,5 +33,6 @@ ContextPanel } from './ui/ContextPanel';
33
33
  // Used in editor-test-helpers and mobile bridge
34
34
  export { getNodesCount } from './utils/getNodesCount';
35
35
  export { default as measurements } from './utils/performance/measure-enum';
36
+ export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
36
37
  export { default as EditorActions } from './actions';
37
38
  export { createEditorContentStyle } from './ui/ContentStyles';
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "203.14.4";
2
+ export var version = "203.15.0";
@@ -24,6 +24,7 @@ export {
24
24
  ContextPanel, } from './ui/ContextPanel';
25
25
  export { getNodesCount } from './utils/getNodesCount';
26
26
  export { default as measurements } from './utils/performance/measure-enum';
27
+ export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
27
28
  export type { Command, EditorProps, EditorInstance, CommandDispatch } from './types';
28
29
  export { default as EditorActions } from './actions';
29
30
  export { createEditorContentStyle } from './ui/ContentStyles';
@@ -24,6 +24,7 @@ export {
24
24
  ContextPanel, } from './ui/ContextPanel';
25
25
  export { getNodesCount } from './utils/getNodesCount';
26
26
  export { default as measurements } from './utils/performance/measure-enum';
27
+ export { createFeatureFlagsFromProps } from './utils/feature-flags-from-props';
27
28
  export type { Command, EditorProps, EditorInstance, CommandDispatch } from './types';
28
29
  export { default as EditorActions } from './actions';
29
30
  export { createEditorContentStyle } from './ui/ContentStyles';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "203.14.4",
3
+ "version": "203.15.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -103,7 +103,7 @@
103
103
  "@atlaskit/visual-regression": "*",
104
104
  "@atlassian/adf-schema-json": "^1.22.0",
105
105
  "@atlassian/feature-flags-test-utils": "*",
106
- "@atlassian/search-provider": "3.0.31",
106
+ "@atlassian/search-provider": "3.0.32",
107
107
  "@emotion/jest": "^11.8.0",
108
108
  "@storybook/addon-knobs": "^6.4.0",
109
109
  "@testing-library/react": "^13.4.0",