@atlaskit/editor-plugin-list 5.1.6 → 5.1.7
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 +8 -0
- package/dist/types/listPluginType.d.ts +3 -3
- package/dist/types/pm-plugins/actions/conversions.d.ts +1 -1
- package/dist/types/pm-plugins/actions/join-list-items-forward.d.ts +2 -2
- package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +2 -2
- package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +2 -2
- package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +2 -2
- package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +2 -2
- package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +2 -2
- package/dist/types/pm-plugins/input-rules/create-list-input-rule.d.ts +2 -2
- package/dist/types/pm-plugins/input-rules/wrapping-join-rule.d.ts +2 -2
- package/dist/types/pm-plugins/utils/find.d.ts +2 -2
- package/dist/types/pm-plugins/utils/mark.d.ts +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types-ts4.5/listPluginType.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/actions/conversions.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/actions/join-list-items-forward.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/input-rules/create-list-input-rule.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/input-rules/wrapping-join-rule.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/find.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/mark.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 5.1.7
|
|
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
|
## 5.1.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -7,19 +7,19 @@ export type ListPluginDependencies = [
|
|
|
7
7
|
OptionalPlugin<AnalyticsPlugin>
|
|
8
8
|
];
|
|
9
9
|
export type ListPluginActions = {
|
|
10
|
-
isInsideListItem: IsInsideListItem;
|
|
11
10
|
findRootParentListNode: FindRootParentListNode;
|
|
11
|
+
isInsideListItem: IsInsideListItem;
|
|
12
12
|
};
|
|
13
13
|
export type ListPluginCommands = {
|
|
14
14
|
indentList: IndentList;
|
|
15
15
|
outdentList: OutdentList;
|
|
16
|
-
toggleOrderedList: ToggleOrderedList;
|
|
17
16
|
toggleBulletList: ToggleBulletList;
|
|
17
|
+
toggleOrderedList: ToggleOrderedList;
|
|
18
18
|
};
|
|
19
19
|
export type ListPluginSharedState = ListState | undefined;
|
|
20
20
|
export type ListPlugin = NextEditorPlugin<'list', {
|
|
21
|
-
dependencies: ListPluginDependencies;
|
|
22
21
|
actions: ListPluginActions;
|
|
23
22
|
commands: ListPluginCommands;
|
|
23
|
+
dependencies: ListPluginDependencies;
|
|
24
24
|
sharedState: ListPluginSharedState;
|
|
25
25
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare function convertListType({ tr, nextListNodeType, }: {
|
|
4
|
-
tr: Transaction;
|
|
5
4
|
nextListNodeType: NodeType;
|
|
5
|
+
tr: Transaction;
|
|
6
6
|
}): void;
|
|
@@ -4,9 +4,9 @@ import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
type ScenariosAllowed = LIST_TEXT_SCENARIOS.JOIN_PARAGRAPH_WITH_LIST | LIST_TEXT_SCENARIOS.JOIN_SIBLINGS | LIST_TEXT_SCENARIOS.JOIN_DESCENDANT_TO_PARENT | LIST_TEXT_SCENARIOS.JOIN_PARENT_SIBLING_TO_PARENT_CHILD | LIST_TEXT_SCENARIOS.JOIN_LIST_ITEM_WITH_PARAGRAPH;
|
|
6
6
|
type DeleteAction = (props: {
|
|
7
|
-
tr: Transaction;
|
|
8
|
-
$next: ResolvedPos;
|
|
9
7
|
$head: ResolvedPos;
|
|
8
|
+
$next: ResolvedPos;
|
|
9
|
+
tr: Transaction;
|
|
10
10
|
}) => boolean;
|
|
11
11
|
type ScenarioAction = false | [ScenariosAllowed, DeleteAction];
|
|
12
12
|
export declare const calcJoinListScenario: (walkNode: WalkNode, $head: ResolvedPos) => ScenarioAction;
|
package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinListItemWithParagraph: DeleteAction;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinListItemWithParentNestedList: DeleteAction;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinNestedListWithParentListItem: DeleteAction;
|
|
9
9
|
export {};
|
package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinParagrapWithList: DeleteAction;
|
|
9
9
|
export {};
|
package/dist/types/pm-plugins/actions/join-list-items-scenarios/join-sibling-list-items.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinSiblingListItems: DeleteAction;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
type Props = {
|
|
4
|
-
listType: NodeType;
|
|
5
|
-
expression: RegExp;
|
|
6
4
|
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
|
|
5
|
+
expression: RegExp;
|
|
6
|
+
listType: NodeType;
|
|
7
7
|
};
|
|
8
8
|
export declare function createRuleForListType({ listType, expression, editorAnalyticsApi }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
|
|
9
9
|
export {};
|
|
@@ -3,10 +3,10 @@ import type { InputRuleWrapper } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
type Attrs = Record<string, any>;
|
|
5
5
|
type WrappingRuleProps = {
|
|
6
|
-
match: RegExp;
|
|
7
|
-
nodeType: NodeType;
|
|
8
6
|
getAttrs?: Attrs | ((matchResult: RegExpExecArray) => Attrs);
|
|
9
7
|
joinPredicate?: (matchResult: RegExpExecArray, node: PMNode, joinScenario: JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST) => boolean;
|
|
8
|
+
match: RegExp;
|
|
9
|
+
nodeType: NodeType;
|
|
10
10
|
};
|
|
11
11
|
export declare const createWrappingJoinRule: ({ match, nodeType, getAttrs, joinPredicate, }: WrappingRuleProps) => InputRuleWrapper;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function findFirstParentListNode($pos: ResolvedPos): {
|
|
3
|
-
pos: number;
|
|
4
3
|
node: PMNode;
|
|
4
|
+
pos: number;
|
|
5
5
|
} | null;
|
|
6
6
|
export declare function findFirstParentListItemNode($pos: ResolvedPos): {
|
|
7
|
-
pos: number;
|
|
8
7
|
node: PMNode;
|
|
8
|
+
pos: number;
|
|
9
9
|
} | null;
|
|
10
10
|
export declare const findRootParentListNode: ($pos: ResolvedPos) => ResolvedPos | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Mark, Node, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type NodesSanitized = Array<{
|
|
4
|
-
node: Node;
|
|
5
4
|
marksRemoved: Mark[];
|
|
5
|
+
node: Node;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const sanitiseMarksInSelection: (tr: Transaction, newParentType?: NodeType) => NodesSanitized;
|
|
8
8
|
export {};
|
|
@@ -14,7 +14,7 @@ export type FindRootParentListNode = ($pos: ResolvedPos) => ResolvedPos | null;
|
|
|
14
14
|
export interface ListState {
|
|
15
15
|
bulletListActive: boolean;
|
|
16
16
|
bulletListDisabled: boolean;
|
|
17
|
+
decorationSet: DecorationSet;
|
|
17
18
|
orderedListActive: boolean;
|
|
18
19
|
orderedListDisabled: boolean;
|
|
19
|
-
decorationSet: DecorationSet;
|
|
20
20
|
}
|
|
@@ -7,19 +7,19 @@ export type ListPluginDependencies = [
|
|
|
7
7
|
OptionalPlugin<AnalyticsPlugin>
|
|
8
8
|
];
|
|
9
9
|
export type ListPluginActions = {
|
|
10
|
-
isInsideListItem: IsInsideListItem;
|
|
11
10
|
findRootParentListNode: FindRootParentListNode;
|
|
11
|
+
isInsideListItem: IsInsideListItem;
|
|
12
12
|
};
|
|
13
13
|
export type ListPluginCommands = {
|
|
14
14
|
indentList: IndentList;
|
|
15
15
|
outdentList: OutdentList;
|
|
16
|
-
toggleOrderedList: ToggleOrderedList;
|
|
17
16
|
toggleBulletList: ToggleBulletList;
|
|
17
|
+
toggleOrderedList: ToggleOrderedList;
|
|
18
18
|
};
|
|
19
19
|
export type ListPluginSharedState = ListState | undefined;
|
|
20
20
|
export type ListPlugin = NextEditorPlugin<'list', {
|
|
21
|
-
dependencies: ListPluginDependencies;
|
|
22
21
|
actions: ListPluginActions;
|
|
23
22
|
commands: ListPluginCommands;
|
|
23
|
+
dependencies: ListPluginDependencies;
|
|
24
24
|
sharedState: ListPluginSharedState;
|
|
25
25
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare function convertListType({ tr, nextListNodeType, }: {
|
|
4
|
-
tr: Transaction;
|
|
5
4
|
nextListNodeType: NodeType;
|
|
5
|
+
tr: Transaction;
|
|
6
6
|
}): void;
|
|
@@ -4,9 +4,9 @@ import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
type ScenariosAllowed = LIST_TEXT_SCENARIOS.JOIN_PARAGRAPH_WITH_LIST | LIST_TEXT_SCENARIOS.JOIN_SIBLINGS | LIST_TEXT_SCENARIOS.JOIN_DESCENDANT_TO_PARENT | LIST_TEXT_SCENARIOS.JOIN_PARENT_SIBLING_TO_PARENT_CHILD | LIST_TEXT_SCENARIOS.JOIN_LIST_ITEM_WITH_PARAGRAPH;
|
|
6
6
|
type DeleteAction = (props: {
|
|
7
|
-
tr: Transaction;
|
|
8
|
-
$next: ResolvedPos;
|
|
9
7
|
$head: ResolvedPos;
|
|
8
|
+
$next: ResolvedPos;
|
|
9
|
+
tr: Transaction;
|
|
10
10
|
}) => boolean;
|
|
11
11
|
type ScenarioAction = false | [
|
|
12
12
|
ScenariosAllowed,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinListItemWithParagraph: DeleteAction;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinListItemWithParentNestedList: DeleteAction;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinNestedListWithParentListItem: DeleteAction;
|
|
9
9
|
export {};
|
package/dist/types-ts4.5/pm-plugins/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinParagrapWithList: DeleteAction;
|
|
9
9
|
export {};
|
package/dist/types-ts4.5/pm-plugins/actions/join-list-items-scenarios/join-sibling-list-items.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type DeleteAction = (props: {
|
|
4
|
-
tr: Transaction;
|
|
5
|
-
$next: ResolvedPos;
|
|
6
4
|
$head: ResolvedPos;
|
|
5
|
+
$next: ResolvedPos;
|
|
6
|
+
tr: Transaction;
|
|
7
7
|
}) => boolean;
|
|
8
8
|
export declare const joinSiblingListItems: DeleteAction;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
type Props = {
|
|
4
|
-
listType: NodeType;
|
|
5
|
-
expression: RegExp;
|
|
6
4
|
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
|
|
5
|
+
expression: RegExp;
|
|
6
|
+
listType: NodeType;
|
|
7
7
|
};
|
|
8
8
|
export declare function createRuleForListType({ listType, expression, editorAnalyticsApi }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
|
|
9
9
|
export {};
|
|
@@ -3,10 +3,10 @@ import type { InputRuleWrapper } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
type Attrs = Record<string, any>;
|
|
5
5
|
type WrappingRuleProps = {
|
|
6
|
-
match: RegExp;
|
|
7
|
-
nodeType: NodeType;
|
|
8
6
|
getAttrs?: Attrs | ((matchResult: RegExpExecArray) => Attrs);
|
|
9
7
|
joinPredicate?: (matchResult: RegExpExecArray, node: PMNode, joinScenario: JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST) => boolean;
|
|
8
|
+
match: RegExp;
|
|
9
|
+
nodeType: NodeType;
|
|
10
10
|
};
|
|
11
11
|
export declare const createWrappingJoinRule: ({ match, nodeType, getAttrs, joinPredicate, }: WrappingRuleProps) => InputRuleWrapper;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare function findFirstParentListNode($pos: ResolvedPos): {
|
|
3
|
-
pos: number;
|
|
4
3
|
node: PMNode;
|
|
4
|
+
pos: number;
|
|
5
5
|
} | null;
|
|
6
6
|
export declare function findFirstParentListItemNode($pos: ResolvedPos): {
|
|
7
|
-
pos: number;
|
|
8
7
|
node: PMNode;
|
|
8
|
+
pos: number;
|
|
9
9
|
} | null;
|
|
10
10
|
export declare const findRootParentListNode: ($pos: ResolvedPos) => ResolvedPos | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Mark, Node, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type NodesSanitized = Array<{
|
|
4
|
-
node: Node;
|
|
5
4
|
marksRemoved: Mark[];
|
|
5
|
+
node: Node;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const sanitiseMarksInSelection: (tr: Transaction, newParentType?: NodeType) => NodesSanitized;
|
|
8
8
|
export {};
|
|
@@ -14,7 +14,7 @@ export type FindRootParentListNode = ($pos: ResolvedPos) => ResolvedPos | null;
|
|
|
14
14
|
export interface ListState {
|
|
15
15
|
bulletListActive: boolean;
|
|
16
16
|
bulletListDisabled: boolean;
|
|
17
|
+
decorationSet: DecorationSet;
|
|
17
18
|
orderedListActive: boolean;
|
|
18
19
|
orderedListDisabled: boolean;
|
|
19
|
-
decorationSet: DecorationSet;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-list",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
4
|
"description": "List plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^11.5.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@atlaskit/editor-common": "^107.
|
|
43
|
+
"@atlaskit/editor-common": "^107.28.0",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
45
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
46
46
|
},
|