@atlaskit/editor-plugin-type-ahead 3.1.3 → 3.1.4
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 +9 -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 +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 3.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
|
|
8
|
+
[`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
|
|
9
|
+
Internal changes to how border radius values are applied. No visual change.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 3.1.3
|
|
4
13
|
|
|
5
14
|
### 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.4",
|
|
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.
|
|
44
|
+
"@atlaskit/icon": "^27.11.0",
|
|
45
45
|
"@atlaskit/menu": "^8.1.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": "^9.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^9.27.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.20.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": {
|