@atlaskit/editor-plugin-type-ahead 8.0.22 → 8.1.0
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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 8.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`79d61c73ffcaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79d61c73ffcaa) -
|
|
8
|
+
Add expsoure for add CWR to quick insert menu experiment.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 8.0.23
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.0.22
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -114,6 +114,8 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
114
114
|
_featureGateJsClient.default.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
|
|
115
115
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
116
116
|
_featureGateJsClient.default.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
|
|
117
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
118
|
+
_featureGateJsClient.default.getExperimentValue('cc_fd_cwr_quick_insert', 'cohort', 'control');
|
|
117
119
|
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || (_api$analytics2 = _api$analytics2.actions) === null || _api$analytics2 === void 0 || _api$analytics2.fireAnalyticsEvent({
|
|
118
120
|
action: _analytics.ACTION.RENDERED,
|
|
119
121
|
actionSubject: _analytics.ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -103,6 +103,8 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
103
103
|
FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
|
|
104
104
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
105
105
|
FeatureGates.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
|
|
106
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
107
|
+
FeatureGates.getExperimentValue('cc_fd_cwr_quick_insert', 'cohort', 'control');
|
|
106
108
|
api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : (_api$analytics2$actio = _api$analytics2.actions) === null || _api$analytics2$actio === void 0 ? void 0 : _api$analytics2$actio.fireAnalyticsEvent({
|
|
107
109
|
action: ACTION.RENDERED,
|
|
108
110
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -104,6 +104,8 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
104
104
|
FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
|
|
105
105
|
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
106
106
|
FeatureGates.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
|
|
107
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
108
|
+
FeatureGates.getExperimentValue('cc_fd_cwr_quick_insert', 'cohort', 'control');
|
|
107
109
|
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || (_api$analytics2 = _api$analytics2.actions) === null || _api$analytics2 === void 0 || _api$analytics2.fireAnalyticsEvent({
|
|
108
110
|
action: ACTION.RENDERED,
|
|
109
111
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -20,41 +20,41 @@ type InsertItemProps = {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
23
|
-
isOpen: () => TypeAheadHandler | false;
|
|
24
|
-
currentQuery: () => string | undefined;
|
|
25
23
|
close: (options?: CloseOptions) => boolean;
|
|
24
|
+
currentQuery: () => string | undefined;
|
|
25
|
+
insertItemEmoji: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
26
|
+
insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
27
|
+
insertItemQuickInsert: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
28
|
+
isOpen: () => TypeAheadHandler | false;
|
|
29
|
+
openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
26
30
|
openMention: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
31
|
+
openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
32
|
+
searchEmoji: (query?: string) => {
|
|
30
33
|
close: (options?: CloseOptions) => boolean;
|
|
31
34
|
insert: ({ index, mode }: {
|
|
32
35
|
index: number;
|
|
33
36
|
mode?: SelectItemMode;
|
|
34
37
|
}) => Promise<void>;
|
|
35
|
-
};
|
|
36
|
-
openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
37
|
-
searchQuickInsert: (query?: string) => {
|
|
38
|
-
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
39
38
|
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
39
|
+
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
40
|
+
};
|
|
41
|
+
searchMention: (query?: string) => {
|
|
40
42
|
close: (options?: CloseOptions) => boolean;
|
|
41
43
|
insert: ({ index, mode }: {
|
|
42
44
|
index: number;
|
|
43
45
|
mode?: SelectItemMode;
|
|
44
46
|
}) => Promise<void>;
|
|
45
|
-
};
|
|
46
|
-
openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
47
|
-
searchEmoji: (query?: string) => {
|
|
48
|
-
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
49
47
|
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
48
|
+
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
49
|
+
};
|
|
50
|
+
searchQuickInsert: (query?: string) => {
|
|
50
51
|
close: (options?: CloseOptions) => boolean;
|
|
51
52
|
insert: ({ index, mode }: {
|
|
52
53
|
index: number;
|
|
53
54
|
mode?: SelectItemMode;
|
|
54
55
|
}) => Promise<void>;
|
|
56
|
+
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
57
|
+
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
55
58
|
};
|
|
56
|
-
insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
57
|
-
insertItemEmoji: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
58
|
-
insertItemQuickInsert: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
59
59
|
};
|
|
60
60
|
export {};
|
|
@@ -20,41 +20,41 @@ type InsertItemProps = {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export declare const createTypeAheadTools: (editorView: EditorView) => {
|
|
23
|
-
isOpen: () => TypeAheadHandler | false;
|
|
24
|
-
currentQuery: () => string | undefined;
|
|
25
23
|
close: (options?: CloseOptions) => boolean;
|
|
24
|
+
currentQuery: () => string | undefined;
|
|
25
|
+
insertItemEmoji: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
26
|
+
insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
27
|
+
insertItemQuickInsert: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
28
|
+
isOpen: () => TypeAheadHandler | false;
|
|
29
|
+
openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
26
30
|
openMention: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
31
|
+
openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
32
|
+
searchEmoji: (query?: string) => {
|
|
30
33
|
close: (options?: CloseOptions) => boolean;
|
|
31
34
|
insert: ({ index, mode }: {
|
|
32
35
|
index: number;
|
|
33
36
|
mode?: SelectItemMode;
|
|
34
37
|
}) => Promise<void>;
|
|
35
|
-
};
|
|
36
|
-
openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
37
|
-
searchQuickInsert: (query?: string) => {
|
|
38
|
-
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
39
38
|
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
39
|
+
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
40
|
+
};
|
|
41
|
+
searchMention: (query?: string) => {
|
|
40
42
|
close: (options?: CloseOptions) => boolean;
|
|
41
43
|
insert: ({ index, mode }: {
|
|
42
44
|
index: number;
|
|
43
45
|
mode?: SelectItemMode;
|
|
44
46
|
}) => Promise<void>;
|
|
45
|
-
};
|
|
46
|
-
openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
47
|
-
searchEmoji: (query?: string) => {
|
|
48
|
-
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
49
47
|
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
48
|
+
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
49
|
+
};
|
|
50
|
+
searchQuickInsert: (query?: string) => {
|
|
50
51
|
close: (options?: CloseOptions) => boolean;
|
|
51
52
|
insert: ({ index, mode }: {
|
|
52
53
|
index: number;
|
|
53
54
|
mode?: SelectItemMode;
|
|
54
55
|
}) => Promise<void>;
|
|
56
|
+
result: () => Promise<TypeAheadItem[] | undefined>;
|
|
57
|
+
type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
|
|
55
58
|
};
|
|
56
|
-
insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
57
|
-
insertItemEmoji: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
58
|
-
insertItemQuickInsert: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
|
|
59
59
|
};
|
|
60
60
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/primitives": "^18.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^54.4.0",
|
|
48
48
|
"@atlaskit/tokens": "^11.4.0",
|
|
49
49
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"w3c-keyname": "^2.1.8"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^112.
|
|
59
|
+
"@atlaskit/editor-common": "^112.18.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|