@atlaskit/editor-plugin-selection-extension 11.1.20 → 11.1.22

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-plugin-selection-extension
2
2
 
3
+ ## 11.1.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7b7c52dff5d7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b7c52dff5d7d) -
8
+ Fix eslint violations for type import syntax
9
+ - Updated dependencies
10
+
11
+ ## 11.1.21
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 11.1.20
4
18
 
5
19
  ### Patch Changes
@@ -18,7 +18,7 @@ var insertAdfAtEndOfDoc = exports.insertAdfAtEndOfDoc = function insertAdfAtEndO
18
18
  return {
19
19
  status: 'success'
20
20
  };
21
- } catch (error) {
21
+ } catch (_unused) {
22
22
  return {
23
23
  status: 'failed'
24
24
  };
@@ -13,7 +13,7 @@ export const insertAdfAtEndOfDoc = nodeAdf => (state, dispatch) => {
13
13
  return {
14
14
  status: 'success'
15
15
  };
16
- } catch (error) {
16
+ } catch {
17
17
  return {
18
18
  status: 'failed'
19
19
  };
@@ -12,7 +12,7 @@ export var insertAdfAtEndOfDoc = function insertAdfAtEndOfDoc(nodeAdf) {
12
12
  return {
13
13
  status: 'success'
14
14
  };
15
- } catch (error) {
15
+ } catch (_unused) {
16
16
  return {
17
17
  status: 'failed'
18
18
  };
@@ -1,5 +1,5 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { CommandDispatch } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
- import { type InsertAdfAtEndOfDocResult } from '../../types';
4
+ import type { InsertAdfAtEndOfDocResult } from '../../types';
5
5
  export declare const insertAdfAtEndOfDoc: (nodeAdf: ADFEntity) => (state: EditorState, dispatch: CommandDispatch) => InsertAdfAtEndOfDocResult;
@@ -1,4 +1,4 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { CommandDispatch, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { SelectionExtensionPlugin } from '../../selectionExtensionPluginType';
@@ -1,11 +1,11 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import { type EditorState, type Selection } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { SelectionExtensionPlugin } from '../../selectionExtensionPluginType';
7
7
  import type { SelectionExtensionSelectionInfo } from '../../types';
8
- import { type SelectionRange } from '../../types';
8
+ import type { SelectionRange } from '../../types';
9
9
  type SelectionInfo = {
10
10
  nodePos: number;
11
11
  selectedNode: PMNode;
@@ -1,4 +1,4 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
3
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
4
  import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type ExtensionNestedDropdownMenuConfiguration } from '../../types';
2
+ import type { ExtensionNestedDropdownMenuConfiguration } from '../../types';
3
3
  export type SelectionExtensionNestedDropdownMenuProps = {
4
4
  nestedDropdownMenu: ExtensionNestedDropdownMenuConfiguration;
5
5
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import { type MenuItem } from '@atlaskit/editor-common/ui-menu';
5
- import { type MenuItemsType } from '../../types';
5
+ import type { MenuItemsType } from '../../types';
6
6
  export type SelectionExtensionDropdownMenuProps = {
7
7
  editorAnalyticsAPI?: EditorAnalyticsAPI;
8
8
  items: MenuItemsType;
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
7
7
  import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
8
- import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import type { SelectionExtensionPlugin } from '../../selectionExtensionPluginType';
11
11
  import type { SelectionExtension } from '../../types';
@@ -1,7 +1,7 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
3
3
  import type { SelectionExtensionPlugin } from '../selectionExtensionPluginType';
4
- import { type SelectionExtensionPluginOptions } from '../types';
4
+ import type { SelectionExtensionPluginOptions } from '../types';
5
5
  type GetToolbarComponentsProps = {
6
6
  api: ExtractInjectionAPI<SelectionExtensionPlugin> | undefined;
7
7
  config: SelectionExtensionPluginOptions | undefined;
@@ -1,5 +1,5 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { CommandDispatch } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
- import { type InsertAdfAtEndOfDocResult } from '../../types';
4
+ import type { InsertAdfAtEndOfDocResult } from '../../types';
5
5
  export declare const insertAdfAtEndOfDoc: (nodeAdf: ADFEntity) => (state: EditorState, dispatch: CommandDispatch) => InsertAdfAtEndOfDocResult;
@@ -1,4 +1,4 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { CommandDispatch, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { SelectionExtensionPlugin } from '../../selectionExtensionPluginType';
@@ -1,11 +1,11 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import { type EditorState, type Selection } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { SelectionExtensionPlugin } from '../../selectionExtensionPluginType';
7
7
  import type { SelectionExtensionSelectionInfo } from '../../types';
8
- import { type SelectionRange } from '../../types';
8
+ import type { SelectionRange } from '../../types';
9
9
  type SelectionInfo = {
10
10
  nodePos: number;
11
11
  selectedNode: PMNode;
@@ -1,4 +1,4 @@
1
- import { type ADFEntity } from '@atlaskit/adf-utils/types';
1
+ import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
3
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
4
  import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type ExtensionNestedDropdownMenuConfiguration } from '../../types';
2
+ import type { ExtensionNestedDropdownMenuConfiguration } from '../../types';
3
3
  export type SelectionExtensionNestedDropdownMenuProps = {
4
4
  nestedDropdownMenu: ExtensionNestedDropdownMenuConfiguration;
5
5
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import { type MenuItem } from '@atlaskit/editor-common/ui-menu';
5
- import { type MenuItemsType } from '../../types';
5
+ import type { MenuItemsType } from '../../types';
6
6
  export type SelectionExtensionDropdownMenuProps = {
7
7
  editorAnalyticsAPI?: EditorAnalyticsAPI;
8
8
  items: MenuItemsType;
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
7
7
  import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
8
- import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  import type { SelectionExtensionPlugin } from '../../selectionExtensionPluginType';
11
11
  import type { SelectionExtension } from '../../types';
@@ -1,7 +1,7 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
3
3
  import type { SelectionExtensionPlugin } from '../selectionExtensionPluginType';
4
- import { type SelectionExtensionPluginOptions } from '../types';
4
+ import type { SelectionExtensionPluginOptions } from '../types';
5
5
  type GetToolbarComponentsProps = {
6
6
  api: ExtractInjectionAPI<SelectionExtensionPlugin> | undefined;
7
7
  config: SelectionExtensionPluginOptions | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "11.1.20",
3
+ "version": "11.1.22",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/lozenge": "^13.6.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/primitives": "^18.1.0",
55
- "@atlaskit/tmp-editor-statsig": "^57.0.0",
55
+ "@atlaskit/tmp-editor-statsig": "^58.0.0",
56
56
  "@atlaskit/tokens": "^12.0.0",
57
57
  "@babel/runtime": "^7.0.0",
58
58
  "lodash": "^4.17.21",