@atlaskit/editor-plugin-type-ahead 8.0.23 → 8.1.1

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.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`79d61c73ffcaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79d61c73ffcaa) -
14
+ Add expsoure for add CWR to quick insert menu experiment.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 8.0.23
4
21
 
5
22
  ### Patch Changes
@@ -113,7 +113,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
113
113
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
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
- _featureGateJsClient.default.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
116
+ _featureGateJsClient.default.getExperimentValue('cc_fd_cwr_quick_insert', 'cohort', 'control');
117
117
  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
118
  action: _analytics.ACTION.RENDERED,
119
119
  actionSubject: _analytics.ACTION_SUBJECT.TYPEAHEAD,
@@ -102,7 +102,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
102
102
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
103
103
  FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
104
104
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
105
- FeatureGates.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
105
+ FeatureGates.getExperimentValue('cc_fd_cwr_quick_insert', 'cohort', 'control');
106
106
  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
107
  action: ACTION.RENDERED,
108
108
  actionSubject: ACTION_SUBJECT.TYPEAHEAD,
@@ -103,7 +103,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
103
103
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
104
104
  FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options', 'isEnabled', false);
105
105
  // eslint-disable-next-line @atlaskit/platform/use-recommended-utils
106
- FeatureGates.getExperimentValue('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false);
106
+ FeatureGates.getExperimentValue('cc_fd_cwr_quick_insert', 'cohort', 'control');
107
107
  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
108
  action: ACTION.RENDERED,
109
109
  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
- searchMention: (query?: string) => {
28
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
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
- searchMention: (query?: string) => {
28
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
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.23",
3
+ "version": "8.1.1",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,14 +37,14 @@
37
37
  "@atlaskit/editor-prosemirror": "^7.3.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.10.0",
39
39
  "@atlaskit/feature-gate-js-client": "^5.5.0",
40
- "@atlaskit/heading": "^5.3.0",
40
+ "@atlaskit/heading": "^5.4.0",
41
41
  "@atlaskit/insm": "^0.4.0",
42
42
  "@atlaskit/menu": "^8.4.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
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": "^54.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^55.0.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.16.0",
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"