@atlaskit/util-data-test 17.9.30 → 17.9.31
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/mention/mention-story-data.js +2 -3
- package/dist/cjs/mention/mock-mention-resource.js +0 -1
- package/dist/es2019/mention/mention-story-data.js +1 -2
- package/dist/es2019/mention/mock-mention-resource.js +0 -1
- package/dist/esm/mention/mention-story-data.js +1 -2
- package/dist/esm/mention/mock-mention-resource.js +0 -1
- package/dist/types/mention/mention-story-data.d.ts +1 -1
- package/dist/types/mention/mock-mention-resource.d.ts +2 -4
- package/dist/types-ts4.5/mention/mention-story-data.d.ts +1 -1
- package/dist/types-ts4.5/mention/mock-mention-resource.d.ts +2 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/util-data-test
|
|
2
2
|
|
|
3
|
+
## 17.9.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#98103](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98103)
|
|
8
|
+
[`14c055a65f67`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14c055a65f67) -
|
|
9
|
+
removed invite from mention experiment check
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 17.9.30
|
|
4
13
|
|
|
5
14
|
### 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.mentionResourceProviderWithResolver2 = exports.mentionResourceProviderWithResolver = exports.
|
|
6
|
+
exports.mentions = exports.mentionSlowResourceProvider = exports.mentionSampleAvatarUrl = exports.mentionResourceProviderWithResolver2 = exports.mentionResourceProviderWithResolver = exports.mentionResourceProviderWithInviteFromMentionEnabled = 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");
|
|
@@ -180,10 +180,9 @@ var mentionResourceProviderWithInfoHints = exports.mentionResourceProviderWithIn
|
|
|
180
180
|
minWait: 10,
|
|
181
181
|
maxWait: 25
|
|
182
182
|
});
|
|
183
|
-
var
|
|
183
|
+
var mentionResourceProviderWithInviteFromMentionEnabled = exports.mentionResourceProviderWithInviteFromMentionEnabled = new _mockMentionResource.MockMentionResource({
|
|
184
184
|
minWait: 10,
|
|
185
185
|
maxWait: 25,
|
|
186
|
-
inviteExperimentCohort: 'variation',
|
|
187
186
|
productName: 'confluence',
|
|
188
187
|
shouldEnableInvite: true,
|
|
189
188
|
userRole: 'admin'
|
|
@@ -35,7 +35,6 @@ var MockMentionResource = exports.MockMentionResource = /*#__PURE__*/function (_
|
|
|
35
35
|
_this.lastReturnedSearch = 0;
|
|
36
36
|
_this.productName = config.productName;
|
|
37
37
|
_this.shouldEnableInvite = !!config.shouldEnableInvite;
|
|
38
|
-
_this.inviteExperimentCohort = config.inviteExperimentCohort;
|
|
39
38
|
_this.onInviteItemClick = config.onInviteItemClick;
|
|
40
39
|
_this.userRole = config.userRole || 'basic';
|
|
41
40
|
return _this;
|
|
@@ -174,10 +174,9 @@ export const mentionResourceProviderWithInfoHints = new MentionResourceWithInfoH
|
|
|
174
174
|
minWait: 10,
|
|
175
175
|
maxWait: 25
|
|
176
176
|
});
|
|
177
|
-
export const
|
|
177
|
+
export const mentionResourceProviderWithInviteFromMentionEnabled = new MentionResource({
|
|
178
178
|
minWait: 10,
|
|
179
179
|
maxWait: 25,
|
|
180
|
-
inviteExperimentCohort: 'variation',
|
|
181
180
|
productName: 'confluence',
|
|
182
181
|
shouldEnableInvite: true,
|
|
183
182
|
userRole: 'admin'
|
|
@@ -16,7 +16,6 @@ export class MockMentionResource extends AbstractMentionResource {
|
|
|
16
16
|
this.lastReturnedSearch = 0;
|
|
17
17
|
this.productName = config.productName;
|
|
18
18
|
this.shouldEnableInvite = !!config.shouldEnableInvite;
|
|
19
|
-
this.inviteExperimentCohort = config.inviteExperimentCohort;
|
|
20
19
|
this.onInviteItemClick = config.onInviteItemClick;
|
|
21
20
|
this.userRole = config.userRole || 'basic';
|
|
22
21
|
}
|
|
@@ -174,10 +174,9 @@ export var mentionResourceProviderWithInfoHints = new MentionResourceWithInfoHin
|
|
|
174
174
|
minWait: 10,
|
|
175
175
|
maxWait: 25
|
|
176
176
|
});
|
|
177
|
-
export var
|
|
177
|
+
export var mentionResourceProviderWithInviteFromMentionEnabled = new MentionResource({
|
|
178
178
|
minWait: 10,
|
|
179
179
|
maxWait: 25,
|
|
180
|
-
inviteExperimentCohort: 'variation',
|
|
181
180
|
productName: 'confluence',
|
|
182
181
|
shouldEnableInvite: true,
|
|
183
182
|
userRole: 'admin'
|
|
@@ -28,7 +28,6 @@ export var MockMentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
|
|
|
28
28
|
_this.lastReturnedSearch = 0;
|
|
29
29
|
_this.productName = config.productName;
|
|
30
30
|
_this.shouldEnableInvite = !!config.shouldEnableInvite;
|
|
31
|
-
_this.inviteExperimentCohort = config.inviteExperimentCohort;
|
|
32
31
|
_this.onInviteItemClick = config.onInviteItemClick;
|
|
33
32
|
_this.userRole = config.userRole || 'basic';
|
|
34
33
|
return _this;
|
|
@@ -153,4 +153,4 @@ export declare const mentionResourceProvider: MentionResource;
|
|
|
153
153
|
export declare const mentionResourceProviderWithResolver: MentionResource;
|
|
154
154
|
export declare const mentionResourceProviderWithResolver2: MentionResource;
|
|
155
155
|
export declare const mentionResourceProviderWithInfoHints: MentionResourceWithInfoHints;
|
|
156
|
-
export declare const
|
|
156
|
+
export declare const mentionResourceProviderWithInviteFromMentionEnabled: MentionResource;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { MentionDescription, AbstractMentionResource, MentionNameResolver, ResolvingMentionProvider, MentionNameDetails, MentionProvider } from '@atlaskit/mention/resource';
|
|
2
|
-
import {
|
|
1
|
+
import { type MentionDescription, AbstractMentionResource, type MentionNameResolver, type ResolvingMentionProvider, type MentionNameDetails, type MentionProvider } from '@atlaskit/mention/resource';
|
|
2
|
+
import { type InviteFlow, type UserRole } from '@atlaskit/mention';
|
|
3
3
|
export interface MockMentionConfig {
|
|
4
4
|
minWait?: number;
|
|
5
5
|
maxWait?: number;
|
|
6
6
|
mentionNameResolver?: MentionNameResolver;
|
|
7
|
-
inviteExperimentCohort?: InviteExperimentCohort;
|
|
8
7
|
productName?: string;
|
|
9
8
|
shouldEnableInvite?: boolean;
|
|
10
9
|
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
@@ -17,7 +16,6 @@ export declare class MockMentionResource extends AbstractMentionResource impleme
|
|
|
17
16
|
productName?: string;
|
|
18
17
|
shouldEnableInvite: boolean;
|
|
19
18
|
userRole: UserRole;
|
|
20
|
-
inviteExperimentCohort?: InviteExperimentCohort;
|
|
21
19
|
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
22
20
|
constructor(config: MockMentionConfig);
|
|
23
21
|
filter(query: string): Promise<void>;
|
|
@@ -153,4 +153,4 @@ export declare const mentionResourceProvider: MentionResource;
|
|
|
153
153
|
export declare const mentionResourceProviderWithResolver: MentionResource;
|
|
154
154
|
export declare const mentionResourceProviderWithResolver2: MentionResource;
|
|
155
155
|
export declare const mentionResourceProviderWithInfoHints: MentionResourceWithInfoHints;
|
|
156
|
-
export declare const
|
|
156
|
+
export declare const mentionResourceProviderWithInviteFromMentionEnabled: MentionResource;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { MentionDescription, AbstractMentionResource, MentionNameResolver, ResolvingMentionProvider, MentionNameDetails, MentionProvider } from '@atlaskit/mention/resource';
|
|
2
|
-
import {
|
|
1
|
+
import { type MentionDescription, AbstractMentionResource, type MentionNameResolver, type ResolvingMentionProvider, type MentionNameDetails, type MentionProvider } from '@atlaskit/mention/resource';
|
|
2
|
+
import { type InviteFlow, type UserRole } from '@atlaskit/mention';
|
|
3
3
|
export interface MockMentionConfig {
|
|
4
4
|
minWait?: number;
|
|
5
5
|
maxWait?: number;
|
|
6
6
|
mentionNameResolver?: MentionNameResolver;
|
|
7
|
-
inviteExperimentCohort?: InviteExperimentCohort;
|
|
8
7
|
productName?: string;
|
|
9
8
|
shouldEnableInvite?: boolean;
|
|
10
9
|
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
@@ -17,7 +16,6 @@ export declare class MockMentionResource extends AbstractMentionResource impleme
|
|
|
17
16
|
productName?: string;
|
|
18
17
|
shouldEnableInvite: boolean;
|
|
19
18
|
userRole: UserRole;
|
|
20
|
-
inviteExperimentCohort?: InviteExperimentCohort;
|
|
21
19
|
onInviteItemClick?: (flow: InviteFlow) => void;
|
|
22
20
|
constructor(config: MockMentionConfig);
|
|
23
21
|
filter(query: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/util-data-test",
|
|
3
|
-
"version": "17.9.
|
|
3
|
+
"version": "17.9.31",
|
|
4
4
|
"description": "Shared test and story data",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
71
71
|
"@atlaskit/emoji": "67.6.22",
|
|
72
72
|
"@atlaskit/icon": "^22.1.0",
|
|
73
|
-
"@atlaskit/mention": "23.0.
|
|
74
|
-
"@atlaskit/profilecard": "^19.
|
|
75
|
-
"@atlaskit/theme": "^12.
|
|
76
|
-
"@atlaskit/tokens": "^1.
|
|
73
|
+
"@atlaskit/mention": "23.0.3",
|
|
74
|
+
"@atlaskit/profilecard": "^19.12.0",
|
|
75
|
+
"@atlaskit/theme": "^12.8.0",
|
|
76
|
+
"@atlaskit/tokens": "^1.48.0",
|
|
77
77
|
"@atlaskit/user-picker": "10.20.1",
|
|
78
78
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
79
79
|
"@babel/runtime": "^7.0.0",
|