@atlaskit/editor-plugin-indentation 3.2.0 → 3.2.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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-indentation
|
|
2
2
|
|
|
3
|
+
## 3.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a2cd8c46a3e94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2cd8c46a3e94) -
|
|
8
|
+
EDITOR-1442 Bump adf-schema
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 3.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
|
|
16
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 3.2.0
|
|
4
20
|
|
|
5
21
|
### 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.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,17 +26,14 @@
|
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
|
-
"af:exports": {
|
|
30
|
-
".": "./src/index.ts"
|
|
31
|
-
},
|
|
32
29
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
30
|
+
"@atlaskit/adf-schema": "^50.2.3",
|
|
34
31
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
35
32
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
36
33
|
"@babel/runtime": "^7.0.0"
|
|
37
34
|
},
|
|
38
35
|
"peerDependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^107.
|
|
36
|
+
"@atlaskit/editor-common": "^107.33.0",
|
|
40
37
|
"react": "^18.2.0",
|
|
41
38
|
"react-dom": "^18.2.0"
|
|
42
39
|
},
|
|
@@ -44,7 +41,6 @@
|
|
|
44
41
|
"@af/integration-testing": "workspace:^",
|
|
45
42
|
"@af/visual-regression": "workspace:^",
|
|
46
43
|
"@atlaskit/ssr": "workspace:^",
|
|
47
|
-
"@atlaskit/visual-regression": "workspace:^",
|
|
48
44
|
"@testing-library/react": "^13.4.0",
|
|
49
45
|
"wait-for-expect": "^1.2.0"
|
|
50
46
|
},
|