@atlaskit/util-data-test 17.6.11 → 17.7.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,15 @@
1
1
  # @atlaskit/util-data-test
2
2
 
3
+ ## 17.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`001d3ca9cc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/001d3ca9cc6) - PTC-6520 remove team mention highlight
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 17.6.11
4
14
 
5
15
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.mentions = exports.mentionSlowResourceProvider = exports.mentionSampleAvatarUrl = exports.mentionResourceProviderWithTeamMentionHighlight = exports.mentionResourceProviderWithResolver2 = exports.mentionResourceProviderWithResolver = exports.mentionResourceProviderWithInviteFromMentionExperiment = exports.mentionResourceProviderWithInfoHints = exports.mentionResourceProvider = void 0;
6
+ exports.mentions = exports.mentionSlowResourceProvider = exports.mentionSampleAvatarUrl = exports.mentionResourceProviderWithResolver2 = exports.mentionResourceProviderWithResolver = exports.mentionResourceProviderWithInviteFromMentionExperiment = exports.mentionResourceProviderWithInfoHints = exports.mentionResourceProvider = void 0;
7
7
  var _mockMentionResource = require("./mock-mention-resource");
8
8
  var _createMockMentionNameResolver = require("./create-mock-mention-name-resolver");
9
9
  var _mockMentionResourceWithInfoHints = require("./mock-mention-resource-with-info-hints");
@@ -176,16 +176,9 @@ var mentionResourceProviderWithInfoHints = new _mockMentionResourceWithInfoHints
176
176
  maxWait: 25
177
177
  });
178
178
  exports.mentionResourceProviderWithInfoHints = mentionResourceProviderWithInfoHints;
179
- var mentionResourceProviderWithTeamMentionHighlight = new _mockMentionResource.MockMentionResource({
180
- minWait: 10,
181
- maxWait: 25,
182
- enableTeamMentionHighlight: true
183
- });
184
- exports.mentionResourceProviderWithTeamMentionHighlight = mentionResourceProviderWithTeamMentionHighlight;
185
179
  var mentionResourceProviderWithInviteFromMentionExperiment = new _mockMentionResource.MockMentionResource({
186
180
  minWait: 10,
187
181
  maxWait: 25,
188
- enableTeamMentionHighlight: true,
189
182
  inviteExperimentCohort: 'variation',
190
183
  productName: 'confluence',
191
184
  shouldEnableInvite: true,
@@ -27,12 +27,6 @@ var MockMentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
27
27
  (0, _classCallCheck2.default)(this, MockMentionResource);
28
28
  _this = _super.call(this);
29
29
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "search", new _jsSearch.Search('id'));
30
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mentionTypeaheadHighlightEnabled", function () {
31
- return _this.config.enableTeamMentionHighlight || false;
32
- });
33
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mentionTypeaheadCreateTeamPath", function () {
34
- return '/people/search#createTeam';
35
- });
36
30
  _this.search.addIndex('name');
37
31
  _this.search.addIndex('mentionName');
38
32
  _this.search.addIndex('nickname');
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.6.11"
3
+ "version": "17.7.0"
4
4
  }
@@ -163,15 +163,9 @@ export const mentionResourceProviderWithInfoHints = new MentionResourceWithInfoH
163
163
  minWait: 10,
164
164
  maxWait: 25
165
165
  });
166
- export const mentionResourceProviderWithTeamMentionHighlight = new MentionResource({
167
- minWait: 10,
168
- maxWait: 25,
169
- enableTeamMentionHighlight: true
170
- });
171
166
  export const mentionResourceProviderWithInviteFromMentionExperiment = new MentionResource({
172
167
  minWait: 10,
173
168
  maxWait: 25,
174
- enableTeamMentionHighlight: true,
175
169
  inviteExperimentCohort: 'variation',
176
170
  productName: 'confluence',
177
171
  shouldEnableInvite: true,
@@ -8,8 +8,6 @@ export class MockMentionResource extends AbstractMentionResource {
8
8
  constructor(config) {
9
9
  super();
10
10
  _defineProperty(this, "search", new Search('id'));
11
- _defineProperty(this, "mentionTypeaheadHighlightEnabled", () => this.config.enableTeamMentionHighlight || false);
12
- _defineProperty(this, "mentionTypeaheadCreateTeamPath", () => '/people/search#createTeam');
13
11
  this.search.addIndex('name');
14
12
  this.search.addIndex('mentionName');
15
13
  this.search.addIndex('nickname');
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.6.11"
3
+ "version": "17.7.0"
4
4
  }
@@ -163,15 +163,9 @@ export var mentionResourceProviderWithInfoHints = new MentionResourceWithInfoHin
163
163
  minWait: 10,
164
164
  maxWait: 25
165
165
  });
166
- export var mentionResourceProviderWithTeamMentionHighlight = new MentionResource({
167
- minWait: 10,
168
- maxWait: 25,
169
- enableTeamMentionHighlight: true
170
- });
171
166
  export var mentionResourceProviderWithInviteFromMentionExperiment = new MentionResource({
172
167
  minWait: 10,
173
168
  maxWait: 25,
174
- enableTeamMentionHighlight: true,
175
169
  inviteExperimentCohort: 'variation',
176
170
  productName: 'confluence',
177
171
  shouldEnableInvite: true,
@@ -20,12 +20,6 @@ export var MockMentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
20
20
  _classCallCheck(this, MockMentionResource);
21
21
  _this = _super.call(this);
22
22
  _defineProperty(_assertThisInitialized(_this), "search", new Search('id'));
23
- _defineProperty(_assertThisInitialized(_this), "mentionTypeaheadHighlightEnabled", function () {
24
- return _this.config.enableTeamMentionHighlight || false;
25
- });
26
- _defineProperty(_assertThisInitialized(_this), "mentionTypeaheadCreateTeamPath", function () {
27
- return '/people/search#createTeam';
28
- });
29
23
  _this.search.addIndex('name');
30
24
  _this.search.addIndex('mentionName');
31
25
  _this.search.addIndex('nickname');
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.6.11"
3
+ "version": "17.7.0"
4
4
  }
@@ -129,5 +129,4 @@ export declare const mentionResourceProvider: MentionResource;
129
129
  export declare const mentionResourceProviderWithResolver: MentionResource;
130
130
  export declare const mentionResourceProviderWithResolver2: MentionResource;
131
131
  export declare const mentionResourceProviderWithInfoHints: MentionResourceWithInfoHints;
132
- export declare const mentionResourceProviderWithTeamMentionHighlight: MentionResource;
133
132
  export declare const mentionResourceProviderWithInviteFromMentionExperiment: MentionResource;
@@ -1,17 +1,16 @@
1
- import { MentionDescription, AbstractMentionResource, MentionNameResolver, ResolvingMentionProvider, MentionNameDetails, TeamMentionProvider } from '@atlaskit/mention/resource';
1
+ import { MentionDescription, AbstractMentionResource, MentionNameResolver, ResolvingMentionProvider, MentionNameDetails, MentionProvider } from '@atlaskit/mention/resource';
2
2
  import { InviteExperimentCohort, InviteFlow, UserRole } from '@atlaskit/mention';
3
3
  export interface MockMentionConfig {
4
4
  minWait?: number;
5
5
  maxWait?: number;
6
6
  mentionNameResolver?: MentionNameResolver;
7
- enableTeamMentionHighlight?: boolean;
8
7
  inviteExperimentCohort?: InviteExperimentCohort;
9
8
  productName?: string;
10
9
  shouldEnableInvite?: boolean;
11
10
  onInviteItemClick?: (flow: InviteFlow) => void;
12
11
  userRole?: UserRole;
13
12
  }
14
- export declare class MockMentionResource extends AbstractMentionResource implements ResolvingMentionProvider, TeamMentionProvider {
13
+ export declare class MockMentionResource extends AbstractMentionResource implements ResolvingMentionProvider, MentionProvider {
15
14
  private config;
16
15
  private lastReturnedSearch;
17
16
  private search;
@@ -27,6 +26,4 @@ export declare class MockMentionResource extends AbstractMentionResource impleme
27
26
  cacheMentionName(id: string, name: string): void;
28
27
  supportsMentionNameResolving(): boolean;
29
28
  shouldHighlightMention(mention: MentionDescription): boolean;
30
- mentionTypeaheadHighlightEnabled: () => boolean;
31
- mentionTypeaheadCreateTeamPath: () => string;
32
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.6.11",
3
+ "version": "17.7.0",
4
4
  "description": "Shared test and story data",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -68,12 +68,12 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@atlaskit/analytics-next": "^9.0.0",
71
- "@atlaskit/emoji": "^67.1.0",
71
+ "@atlaskit/emoji": "^67.2.0",
72
72
  "@atlaskit/icon": "^21.11.0",
73
- "@atlaskit/mention": "^21.0.0",
74
- "@atlaskit/profilecard": "^19.0.0",
73
+ "@atlaskit/mention": "^22.0.0",
74
+ "@atlaskit/profilecard": "^19.2.0",
75
75
  "@atlaskit/task-decision": "^17.5.0",
76
- "@atlaskit/theme": "^12.2.1",
76
+ "@atlaskit/theme": "^12.3.0",
77
77
  "@atlaskit/tokens": "^1.2.0",
78
78
  "@atlaskit/user-picker": "^10.1.0",
79
79
  "@atlaskit/util-service-support": "^6.1.0",