@atlaskit/editor-core 187.35.1 → 187.35.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,23 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.35.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6acf9830b36`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6acf9830b36) - Update feature flags plugin
8
+ (@atlaskit/editor-plugin-feature-flags) to use a named export
9
+ rather than default export to match other plugins.
10
+
11
+ ```ts
12
+ // Before
13
+ import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
14
+
15
+ // After
16
+ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
17
+ ```
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 187.35.1
4
22
 
5
23
  ### Patch Changes
@@ -19,7 +19,7 @@ var _editorPluginEditorDisabled = require("@atlaskit/editor-plugin-editor-disabl
19
19
  var _typeAhead = _interopRequireDefault(require("../../../plugins/type-ahead"));
20
20
  var _submitEditor = _interopRequireDefault(require("../../../plugins/submit-editor"));
21
21
  var _fakeTextCursor = _interopRequireDefault(require("../../../plugins/fake-text-cursor"));
22
- var _editorPluginFeatureFlags = _interopRequireDefault(require("@atlaskit/editor-plugin-feature-flags"));
22
+ var _editorPluginFeatureFlags = require("@atlaskit/editor-plugin-feature-flags");
23
23
  var _floatingToolbar = _interopRequireDefault(require("../../../plugins/floating-toolbar"));
24
24
  var _clipboard = _interopRequireDefault(require("../../../plugins/clipboard"));
25
25
  var _plugins = require("../../../plugins");
@@ -42,7 +42,7 @@ var _preset = require("@atlaskit/editor-common/preset");
42
42
  * their placement in the editor toolbar
43
43
  */
44
44
  function createDefaultPreset(options) {
45
- var preset = new _preset.EditorPresetBuilder().add([_editorPluginFeatureFlags.default, options.featureFlags || {}]).maybeAdd(_editorPluginAnalytics.analyticsPlugin, function (plugin, builder) {
45
+ var preset = new _preset.EditorPresetBuilder().add([_editorPluginFeatureFlags.featureFlagsPlugin, options.featureFlags || {}]).maybeAdd(_editorPluginAnalytics.analyticsPlugin, function (plugin, builder) {
46
46
  if (options.allowAnalyticsGASV3) {
47
47
  var performanceTracking = options.performanceTracking,
48
48
  createAnalyticsEvent = options.createAnalyticsEvent;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.35.1";
9
+ var version = "187.35.2";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -13,7 +13,7 @@ import { editorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
13
13
  import typeAheadPlugin from '../../../plugins/type-ahead';
14
14
  import submitEditorPlugin from '../../../plugins/submit-editor';
15
15
  import fakeTextCursorPlugin from '../../../plugins/fake-text-cursor';
16
- import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
16
+ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
17
17
  import floatingToolbarPlugin from '../../../plugins/floating-toolbar';
18
18
  import clipboardPlugin from '../../../plugins/clipboard';
19
19
  import { analyticsPlugin as deprecatedAnalyticsPlugin } from '../../../plugins';
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.35.1";
2
+ export const version = "187.35.2";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -13,7 +13,7 @@ import { editorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
13
13
  import typeAheadPlugin from '../../../plugins/type-ahead';
14
14
  import submitEditorPlugin from '../../../plugins/submit-editor';
15
15
  import fakeTextCursorPlugin from '../../../plugins/fake-text-cursor';
16
- import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
16
+ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
17
17
  import floatingToolbarPlugin from '../../../plugins/floating-toolbar';
18
18
  import clipboardPlugin from '../../../plugins/clipboard';
19
19
  import { analyticsPlugin as deprecatedAnalyticsPlugin } from '../../../plugins';
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.35.1";
2
+ export var version = "187.35.2";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
3
3
  import type { AnalyticsEventPayload } from './types';
4
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { PerformanceTracking } from '../../types/performance-tracking';
6
6
  import type { analyticsPlugin as newAnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
7
7
  interface AnalyticsPluginOptions {
@@ -16,7 +16,7 @@ interface AnalyticsPluginOptions {
16
16
  */
17
17
  declare const analyticsPlugin: NextEditorPlugin<'deprecatedAnalytics', {
18
18
  pluginConfiguration: AnalyticsPluginOptions;
19
- dependencies: [typeof featureFlagsPlugin, typeof newAnalyticsPlugin];
19
+ dependencies: [FeatureFlagsPlugin, typeof newAnalyticsPlugin];
20
20
  }>;
21
21
  export declare function extendPayload({ payload, duration, distortedDuration, }: {
22
22
  payload: AnalyticsEventPayload;
@@ -1,12 +1,12 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
3
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  type Config = {
5
5
  collabEdit?: CollabEditOptions;
6
6
  takeFullWidth: boolean;
7
7
  };
8
8
  declare const avatarGroup: NextEditorPlugin<'avatarGroup', {
9
9
  pluginConfiguration: Config;
10
- dependencies: [typeof featureFlagsPlugin];
10
+ dependencies: [FeatureFlagsPlugin];
11
11
  }>;
12
12
  export default avatarGroup;
@@ -1,14 +1,11 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import { pluginKey } from './plugin';
3
3
  import type { PrivateCollabEditOptions } from './types';
4
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
6
6
  export { pluginKey };
7
7
  declare const collabEditPlugin: NextEditorPlugin<'collabEdit', {
8
8
  pluginConfiguration: PrivateCollabEditOptions;
9
- dependencies: [
10
- typeof featureFlagsPlugin,
11
- OptionalPlugin<typeof analyticsPlugin>
12
- ];
9
+ dependencies: [FeatureFlagsPlugin, OptionalPlugin<typeof analyticsPlugin>];
13
10
  }>;
14
11
  export default collabEditPlugin;
@@ -1,6 +1,6 @@
1
1
  import type { NextEditorPlugin, EditorProps } from '../../types';
2
2
  import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
6
6
  allowInsertion?: boolean;
@@ -8,7 +8,7 @@ interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
8
8
  }
9
9
  declare const expandPlugin: NextEditorPlugin<'expand', {
10
10
  pluginConfiguration: ExpandPluginOptions | undefined;
11
- dependencies: [typeof featureFlagsPlugin, typeof decorationsPlugin];
11
+ dependencies: [FeatureFlagsPlugin, typeof decorationsPlugin];
12
12
  }>;
13
13
  interface ExpandEditorProps {
14
14
  allowExpand?: EditorProps['allowExpand'];
@@ -1,11 +1,11 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
3
  type Config = {
4
4
  takeFullWidth: boolean;
5
5
  twoLineEditorToolbar: boolean;
6
6
  };
7
7
  export declare const findReplacePlugin: NextEditorPlugin<'findReplace', {
8
8
  pluginConfiguration: Config;
9
- dependencies: [typeof featureFlagsPlugin];
9
+ dependencies: [FeatureFlagsPlugin];
10
10
  }>;
11
11
  export default findReplacePlugin;
@@ -4,7 +4,7 @@ import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
4
4
  import type datePlugin from '../date';
5
5
  import type { tablesPlugin } from '@atlaskit/editor-plugin-table';
6
6
  import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
7
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
7
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
8
8
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
9
9
  import type mentionsPlugin from '../mentions';
10
10
  import type quickInsertPlugin from '../quick-insert';
@@ -12,7 +12,7 @@ import type blockTypePlugin from '../block-type';
12
12
  import type codeBlockPlugin from '../code-block';
13
13
  import type panelPlugin from '../panel';
14
14
  export type InsertBlockPluginDependencies = [
15
- typeof featureFlagsPlugin,
15
+ FeatureFlagsPlugin,
16
16
  OptionalPlugin<typeof tablesPlugin>,
17
17
  OptionalPlugin<typeof hyperlinkPlugin>,
18
18
  OptionalPlugin<typeof datePlugin>,
@@ -1,6 +1,6 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { CardOptions } from '@atlaskit/editor-common/card';
3
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { cardPlugin } from '@atlaskit/editor-plugin-card';
5
5
  import type betterTypeHistoryPlugin from '../better-type-history';
6
6
  import type { listPlugin } from '@atlaskit/editor-plugin-list';
@@ -12,7 +12,7 @@ export type PastePluginOptions = {
12
12
  declare const pastePlugin: NextEditorPlugin<'paste', {
13
13
  pluginConfiguration: PastePluginOptions;
14
14
  dependencies: [
15
- typeof featureFlagsPlugin,
15
+ FeatureFlagsPlugin,
16
16
  OptionalPlugin<typeof listPlugin>,
17
17
  typeof betterTypeHistoryPlugin,
18
18
  OptionalPlugin<typeof cardPlugin>,
@@ -1,7 +1,7 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
3
  declare const rulePlugin: NextEditorPlugin<'rule', {
4
4
  pluginConfiguration: undefined;
5
- dependencies: [typeof featureFlagsPlugin];
5
+ dependencies: [FeatureFlagsPlugin];
6
6
  }>;
7
7
  export default rulePlugin;
@@ -1,11 +1,11 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
3
  import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
4
4
  import { pluginKey as textColorPluginKey } from './pm-plugins/main';
5
5
  type Config = TextColorPluginConfig | boolean;
6
6
  declare const textColorPlugin: NextEditorPlugin<'textColor', {
7
7
  pluginConfiguration: Config | undefined;
8
- dependencies: [typeof featureFlagsPlugin];
8
+ dependencies: [FeatureFlagsPlugin];
9
9
  }>;
10
10
  export { textColorPluginKey };
11
11
  export type { TextColorPluginState };
@@ -1,7 +1,7 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
3
3
  import type { AnalyticsEventPayload } from './types';
4
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { PerformanceTracking } from '../../types/performance-tracking';
6
6
  import type { analyticsPlugin as newAnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
7
7
  interface AnalyticsPluginOptions {
@@ -17,7 +17,7 @@ interface AnalyticsPluginOptions {
17
17
  declare const analyticsPlugin: NextEditorPlugin<'deprecatedAnalytics', {
18
18
  pluginConfiguration: AnalyticsPluginOptions;
19
19
  dependencies: [
20
- typeof featureFlagsPlugin,
20
+ FeatureFlagsPlugin,
21
21
  typeof newAnalyticsPlugin
22
22
  ];
23
23
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
3
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  type Config = {
5
5
  collabEdit?: CollabEditOptions;
6
6
  takeFullWidth: boolean;
@@ -8,7 +8,7 @@ type Config = {
8
8
  declare const avatarGroup: NextEditorPlugin<'avatarGroup', {
9
9
  pluginConfiguration: Config;
10
10
  dependencies: [
11
- typeof featureFlagsPlugin
11
+ FeatureFlagsPlugin
12
12
  ];
13
13
  }>;
14
14
  export default avatarGroup;
@@ -1,13 +1,13 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import { pluginKey } from './plugin';
3
3
  import type { PrivateCollabEditOptions } from './types';
4
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
6
6
  export { pluginKey };
7
7
  declare const collabEditPlugin: NextEditorPlugin<'collabEdit', {
8
8
  pluginConfiguration: PrivateCollabEditOptions;
9
9
  dependencies: [
10
- typeof featureFlagsPlugin,
10
+ FeatureFlagsPlugin,
11
11
  OptionalPlugin<typeof analyticsPlugin>
12
12
  ];
13
13
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { NextEditorPlugin, EditorProps } from '../../types';
2
2
  import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
6
6
  allowInsertion?: boolean;
@@ -9,7 +9,7 @@ interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
9
9
  declare const expandPlugin: NextEditorPlugin<'expand', {
10
10
  pluginConfiguration: ExpandPluginOptions | undefined;
11
11
  dependencies: [
12
- typeof featureFlagsPlugin,
12
+ FeatureFlagsPlugin,
13
13
  typeof decorationsPlugin
14
14
  ];
15
15
  }>;
@@ -1,5 +1,5 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
3
  type Config = {
4
4
  takeFullWidth: boolean;
5
5
  twoLineEditorToolbar: boolean;
@@ -7,7 +7,7 @@ type Config = {
7
7
  export declare const findReplacePlugin: NextEditorPlugin<'findReplace', {
8
8
  pluginConfiguration: Config;
9
9
  dependencies: [
10
- typeof featureFlagsPlugin
10
+ FeatureFlagsPlugin
11
11
  ];
12
12
  }>;
13
13
  export default findReplacePlugin;
@@ -4,7 +4,7 @@ import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
4
4
  import type datePlugin from '../date';
5
5
  import type { tablesPlugin } from '@atlaskit/editor-plugin-table';
6
6
  import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
7
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
7
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
8
8
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
9
9
  import type mentionsPlugin from '../mentions';
10
10
  import type quickInsertPlugin from '../quick-insert';
@@ -12,7 +12,7 @@ import type blockTypePlugin from '../block-type';
12
12
  import type codeBlockPlugin from '../code-block';
13
13
  import type panelPlugin from '../panel';
14
14
  export type InsertBlockPluginDependencies = [
15
- typeof featureFlagsPlugin,
15
+ FeatureFlagsPlugin,
16
16
  OptionalPlugin<typeof tablesPlugin>,
17
17
  OptionalPlugin<typeof hyperlinkPlugin>,
18
18
  OptionalPlugin<typeof datePlugin>,
@@ -1,6 +1,6 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { CardOptions } from '@atlaskit/editor-common/card';
3
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { cardPlugin } from '@atlaskit/editor-plugin-card';
5
5
  import type betterTypeHistoryPlugin from '../better-type-history';
6
6
  import type { listPlugin } from '@atlaskit/editor-plugin-list';
@@ -12,7 +12,7 @@ export type PastePluginOptions = {
12
12
  declare const pastePlugin: NextEditorPlugin<'paste', {
13
13
  pluginConfiguration: PastePluginOptions;
14
14
  dependencies: [
15
- typeof featureFlagsPlugin,
15
+ FeatureFlagsPlugin,
16
16
  OptionalPlugin<typeof listPlugin>,
17
17
  typeof betterTypeHistoryPlugin,
18
18
  OptionalPlugin<typeof cardPlugin>,
@@ -1,9 +1,9 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
3
  declare const rulePlugin: NextEditorPlugin<'rule', {
4
4
  pluginConfiguration: undefined;
5
5
  dependencies: [
6
- typeof featureFlagsPlugin
6
+ FeatureFlagsPlugin
7
7
  ];
8
8
  }>;
9
9
  export default rulePlugin;
@@ -1,12 +1,12 @@
1
1
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
2
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
3
3
  import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
4
4
  import { pluginKey as textColorPluginKey } from './pm-plugins/main';
5
5
  type Config = TextColorPluginConfig | boolean;
6
6
  declare const textColorPlugin: NextEditorPlugin<'textColor', {
7
7
  pluginConfiguration: Config | undefined;
8
8
  dependencies: [
9
- typeof featureFlagsPlugin
9
+ FeatureFlagsPlugin
10
10
  ];
11
11
  }>;
12
12
  export { textColorPluginKey };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.35.1",
3
+ "version": "187.35.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
68
68
  "@atlaskit/editor-plugin-editor-disabled": "^0.2.0",
69
69
  "@atlaskit/editor-plugin-emoji": "^0.3.0",
70
- "@atlaskit/editor-plugin-feature-flags": "^0.2.0",
70
+ "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
71
71
  "@atlaskit/editor-plugin-floating-toolbar": "^0.4.0",
72
72
  "@atlaskit/editor-plugin-focus": "^0.2.0",
73
73
  "@atlaskit/editor-plugin-grid": "^0.2.0",