@atlaskit/editor-plugin-type-ahead 3.1.3 → 3.1.5
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 +15 -0
- package/dist/cjs/ui/InputQuery.js +2 -1
- package/dist/es2019/ui/InputQuery.js +2 -1
- package/dist/esm/ui/InputQuery.js +2 -1
- package/dist/types/pm-plugins/api.d.ts +3 -3
- package/dist/types/ui/MoreOptions.d.ts +0 -1
- package/dist/types/ui/TypeAheadList.d.ts +8 -8
- package/dist/types-ts4.5/pm-plugins/api.d.ts +3 -3
- package/dist/types-ts4.5/ui/MoreOptions.d.ts +0 -1
- package/dist/types-ts4.5/ui/TypeAheadList.d.ts +8 -8
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 3.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
|
|
14
|
+
[`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
|
|
15
|
+
Internal changes to how border radius values are applied. No visual change.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.1.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -36,7 +36,8 @@ var placeholderStyles = (0, _react2.css)({
|
|
|
36
36
|
padding: "var(--ds-space-025, 2px)",
|
|
37
37
|
left: "var(--ds-space-negative-050, -4px)",
|
|
38
38
|
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
39
|
-
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
40
|
+
borderRadius: "var(--ds-border-radius-100, 3px)"
|
|
40
41
|
}
|
|
41
42
|
});
|
|
42
43
|
var queryWithoutPlaceholderStyles = (0, _react2.css)({
|
|
@@ -25,7 +25,8 @@ const placeholderStyles = css({
|
|
|
25
25
|
padding: "var(--ds-space-025, 2px)",
|
|
26
26
|
left: "var(--ds-space-negative-050, -4px)",
|
|
27
27
|
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
28
|
-
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
29
|
+
borderRadius: "var(--ds-border-radius-100, 3px)"
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
const queryWithoutPlaceholderStyles = css({
|
|
@@ -26,7 +26,8 @@ var placeholderStyles = css({
|
|
|
26
26
|
padding: "var(--ds-space-025, 2px)",
|
|
27
27
|
left: "var(--ds-space-negative-050, -4px)",
|
|
28
28
|
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
29
|
-
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
30
|
+
borderRadius: "var(--ds-border-radius-100, 3px)"
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
var queryWithoutPlaceholderStyles = css({
|
|
@@ -30,7 +30,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
|
30
30
|
close: (options?: CloseOptions) => boolean;
|
|
31
31
|
insert: ({ index, mode }: {
|
|
32
32
|
index: number;
|
|
33
|
-
mode?: SelectItemMode
|
|
33
|
+
mode?: SelectItemMode;
|
|
34
34
|
}) => Promise<void>;
|
|
35
35
|
};
|
|
36
36
|
openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
@@ -40,7 +40,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
|
40
40
|
close: (options?: CloseOptions) => boolean;
|
|
41
41
|
insert: ({ index, mode }: {
|
|
42
42
|
index: number;
|
|
43
|
-
mode?: SelectItemMode
|
|
43
|
+
mode?: SelectItemMode;
|
|
44
44
|
}) => Promise<void>;
|
|
45
45
|
};
|
|
46
46
|
openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
@@ -50,7 +50,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
|
50
50
|
close: (options?: CloseOptions) => boolean;
|
|
51
51
|
insert: ({ index, mode }: {
|
|
52
52
|
index: number;
|
|
53
|
-
mode?: SelectItemMode
|
|
53
|
+
mode?: SelectItemMode;
|
|
54
54
|
}) => Promise<void>;
|
|
55
55
|
};
|
|
56
56
|
insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
@@ -17,11 +17,11 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
|
|
|
17
17
|
onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
|
|
18
18
|
fitHeight: number;
|
|
19
19
|
decorationElement: HTMLElement;
|
|
20
|
-
triggerHandler?: TypeAheadHandler
|
|
21
|
-
moreElementsInQuickInsertViewEnabled?: boolean
|
|
20
|
+
triggerHandler?: TypeAheadHandler;
|
|
21
|
+
moreElementsInQuickInsertViewEnabled?: boolean;
|
|
22
22
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
23
|
-
showMoreOptionsButton?: boolean
|
|
24
|
-
onMoreOptionsClicked?: (
|
|
23
|
+
showMoreOptionsButton?: boolean;
|
|
24
|
+
onMoreOptionsClicked?: () => void;
|
|
25
25
|
} & WrappedComponentProps>> & {
|
|
26
26
|
WrappedComponent: React.ComponentType<{
|
|
27
27
|
items: Array<TypeAheadItem>;
|
|
@@ -30,10 +30,10 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
|
|
|
30
30
|
onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
|
|
31
31
|
fitHeight: number;
|
|
32
32
|
decorationElement: HTMLElement;
|
|
33
|
-
triggerHandler?: TypeAheadHandler
|
|
34
|
-
moreElementsInQuickInsertViewEnabled?: boolean
|
|
33
|
+
triggerHandler?: TypeAheadHandler;
|
|
34
|
+
moreElementsInQuickInsertViewEnabled?: boolean;
|
|
35
35
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
36
|
-
showMoreOptionsButton?: boolean
|
|
37
|
-
onMoreOptionsClicked?: (
|
|
36
|
+
showMoreOptionsButton?: boolean;
|
|
37
|
+
onMoreOptionsClicked?: () => void;
|
|
38
38
|
} & WrappedComponentProps>;
|
|
39
39
|
};
|
|
@@ -30,7 +30,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
|
30
30
|
close: (options?: CloseOptions) => boolean;
|
|
31
31
|
insert: ({ index, mode }: {
|
|
32
32
|
index: number;
|
|
33
|
-
mode?: SelectItemMode
|
|
33
|
+
mode?: SelectItemMode;
|
|
34
34
|
}) => Promise<void>;
|
|
35
35
|
};
|
|
36
36
|
openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
@@ -40,7 +40,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
|
40
40
|
close: (options?: CloseOptions) => boolean;
|
|
41
41
|
insert: ({ index, mode }: {
|
|
42
42
|
index: number;
|
|
43
|
-
mode?: SelectItemMode
|
|
43
|
+
mode?: SelectItemMode;
|
|
44
44
|
}) => Promise<void>;
|
|
45
45
|
};
|
|
46
46
|
openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
@@ -50,7 +50,7 @@ export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
|
50
50
|
close: (options?: CloseOptions) => boolean;
|
|
51
51
|
insert: ({ index, mode }: {
|
|
52
52
|
index: number;
|
|
53
|
-
mode?: SelectItemMode
|
|
53
|
+
mode?: SelectItemMode;
|
|
54
54
|
}) => Promise<void>;
|
|
55
55
|
};
|
|
56
56
|
insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
@@ -17,11 +17,11 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
|
|
|
17
17
|
onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
|
|
18
18
|
fitHeight: number;
|
|
19
19
|
decorationElement: HTMLElement;
|
|
20
|
-
triggerHandler?: TypeAheadHandler
|
|
21
|
-
moreElementsInQuickInsertViewEnabled?: boolean
|
|
20
|
+
triggerHandler?: TypeAheadHandler;
|
|
21
|
+
moreElementsInQuickInsertViewEnabled?: boolean;
|
|
22
22
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
23
|
-
showMoreOptionsButton?: boolean
|
|
24
|
-
onMoreOptionsClicked?: (
|
|
23
|
+
showMoreOptionsButton?: boolean;
|
|
24
|
+
onMoreOptionsClicked?: () => void;
|
|
25
25
|
} & WrappedComponentProps>> & {
|
|
26
26
|
WrappedComponent: React.ComponentType<{
|
|
27
27
|
items: Array<TypeAheadItem>;
|
|
@@ -30,10 +30,10 @@ export declare const TypeAheadList: React.FC<import("react-intl-next").WithIntlP
|
|
|
30
30
|
onItemClick: (mode: SelectItemMode, index: number, inputMethod?: InputMethodType) => void;
|
|
31
31
|
fitHeight: number;
|
|
32
32
|
decorationElement: HTMLElement;
|
|
33
|
-
triggerHandler?: TypeAheadHandler
|
|
34
|
-
moreElementsInQuickInsertViewEnabled?: boolean
|
|
33
|
+
triggerHandler?: TypeAheadHandler;
|
|
34
|
+
moreElementsInQuickInsertViewEnabled?: boolean;
|
|
35
35
|
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
|
|
36
|
-
showMoreOptionsButton?: boolean
|
|
37
|
-
onMoreOptionsClicked?: (
|
|
36
|
+
showMoreOptionsButton?: boolean;
|
|
37
|
+
onMoreOptionsClicked?: () => void;
|
|
38
38
|
} & WrappedComponentProps>;
|
|
39
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-context-panel": "^5.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-metrics": "^4.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
42
|
+
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
43
43
|
"@atlaskit/heading": "^5.2.0",
|
|
44
|
-
"@atlaskit/icon": "^27.
|
|
45
|
-
"@atlaskit/menu": "^8.
|
|
44
|
+
"@atlaskit/icon": "^27.12.0",
|
|
45
|
+
"@atlaskit/menu": "^8.3.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/primitives": "^14.11.0",
|
|
48
|
-
"@atlaskit/prosemirror-input-rules": "^3.
|
|
48
|
+
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
49
49
|
"@atlaskit/theme": "^19.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^10.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^6.0.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"w3c-keyname": "^2.1.8"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@atlaskit/editor-common": "^107.
|
|
61
|
+
"@atlaskit/editor-common": "^107.25.0",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-dom": "^18.2.0",
|
|
64
64
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
"@atlaskit/visual-regression": "workspace:^",
|
|
70
70
|
"@testing-library/react": "^13.4.0",
|
|
71
71
|
"@types/react-virtualized": "^9.18.12",
|
|
72
|
-
"typescript": "~5.4.2",
|
|
73
72
|
"wait-for-expect": "^1.2.0"
|
|
74
73
|
},
|
|
75
74
|
"techstack": {
|