@atlaskit/editor-plugin-indentation 3.2.0 → 3.2.1

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-plugin-indentation
2
2
 
3
+ ## 3.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
3
11
  ## 3.2.0
4
12
 
5
13
  ### Minor Changes
@@ -29,9 +29,9 @@ export declare function getPrevIndentLevel(prevAttrs: PrevAttributes): number;
29
29
  * @returns
30
30
  */
31
31
  export declare function createAnalyticsDispatch({ getAttrsChanges, inputMethod, editorAnalyticsAPI, state, dispatch, }: {
32
+ dispatch?: (tr: Transaction) => void;
33
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
32
34
  getAttrsChanges: () => GetAttrsChange<IndentationMarkAttributes, IndentationChangesOptions>[];
33
35
  inputMethod: IndentationInputMethod;
34
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
35
36
  state: EditorState;
36
- dispatch?: (tr: Transaction) => void;
37
37
  }): (tr: Transaction) => void;
@@ -3,8 +3,8 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { IndentationInputMethod } from './editor-commands/utils';
5
5
  type IndentationPluginSharedState = {
6
- isIndentationAllowed: boolean;
7
6
  indentDisabled: boolean;
7
+ isIndentationAllowed: boolean;
8
8
  outdentDisabled: boolean;
9
9
  };
10
10
  export type IndentationPluginDependencies = [OptionalPlugin<AnalyticsPlugin>];
@@ -13,18 +13,18 @@ export type IndentationPluginActions = {
13
13
  outdentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
14
14
  };
15
15
  export type IndentationPlugin = NextEditorPlugin<'indentation', {
16
- dependencies: IndentationPluginDependencies;
17
16
  actions: IndentationPluginActions;
17
+ dependencies: IndentationPluginDependencies;
18
18
  sharedState: IndentationPluginSharedState | undefined;
19
19
  }>;
20
20
  export interface GetAttrsChange<T, V> {
21
- node: Node;
22
- prevAttrs?: T;
23
21
  newAttrs: T | false | undefined;
22
+ node: Node;
24
23
  options: V;
24
+ prevAttrs?: T;
25
25
  }
26
26
  export type GetAttrsWithChangesRecorder<T, V> = {
27
- getAttrs(prevAttrs?: T | undefined, node?: Node): T | false | undefined;
28
27
  getAndResetAttrsChanges(): GetAttrsChange<T, V>[];
28
+ getAttrs(prevAttrs?: T | undefined, node?: Node): T | false | undefined;
29
29
  };
30
30
  export {};
@@ -29,9 +29,9 @@ export declare function getPrevIndentLevel(prevAttrs: PrevAttributes): number;
29
29
  * @returns
30
30
  */
31
31
  export declare function createAnalyticsDispatch({ getAttrsChanges, inputMethod, editorAnalyticsAPI, state, dispatch, }: {
32
+ dispatch?: (tr: Transaction) => void;
33
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
32
34
  getAttrsChanges: () => GetAttrsChange<IndentationMarkAttributes, IndentationChangesOptions>[];
33
35
  inputMethod: IndentationInputMethod;
34
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
35
36
  state: EditorState;
36
- dispatch?: (tr: Transaction) => void;
37
37
  }): (tr: Transaction) => void;
@@ -3,8 +3,8 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
3
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { IndentationInputMethod } from './editor-commands/utils';
5
5
  type IndentationPluginSharedState = {
6
- isIndentationAllowed: boolean;
7
6
  indentDisabled: boolean;
7
+ isIndentationAllowed: boolean;
8
8
  outdentDisabled: boolean;
9
9
  };
10
10
  export type IndentationPluginDependencies = [
@@ -15,18 +15,18 @@ export type IndentationPluginActions = {
15
15
  outdentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
16
16
  };
17
17
  export type IndentationPlugin = NextEditorPlugin<'indentation', {
18
- dependencies: IndentationPluginDependencies;
19
18
  actions: IndentationPluginActions;
19
+ dependencies: IndentationPluginDependencies;
20
20
  sharedState: IndentationPluginSharedState | undefined;
21
21
  }>;
22
22
  export interface GetAttrsChange<T, V> {
23
- node: Node;
24
- prevAttrs?: T;
25
23
  newAttrs: T | false | undefined;
24
+ node: Node;
26
25
  options: V;
26
+ prevAttrs?: T;
27
27
  }
28
28
  export type GetAttrsWithChangesRecorder<T, V> = {
29
- getAttrs(prevAttrs?: T | undefined, node?: Node): T | false | undefined;
30
29
  getAndResetAttrsChanges(): GetAttrsChange<T, V>[];
30
+ getAttrs(prevAttrs?: T | undefined, node?: Node): T | false | undefined;
31
31
  };
32
32
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-indentation",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,7 +44,6 @@
44
44
  "@af/integration-testing": "workspace:^",
45
45
  "@af/visual-regression": "workspace:^",
46
46
  "@atlaskit/ssr": "workspace:^",
47
- "@atlaskit/visual-regression": "workspace:^",
48
47
  "@testing-library/react": "^13.4.0",
49
48
  "wait-for-expect": "^1.2.0"
50
49
  },