@atlaskit/mention 19.9.2 → 19.9.3

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,11 @@
1
1
  # @atlaskit/mention
2
2
 
3
+ ## 19.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d1ed723c1e0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d1ed723c1e0) - Fix bug where includeTeams in smartMentionResource was not being passed in correctly
8
+
3
9
  ## 19.9.2
4
10
 
5
11
  ### Patch Changes
@@ -165,17 +165,22 @@ var SmartMentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
165
165
  maxNumberOfResults = conf.maxNumberOfResults || 100;
166
166
  request = {
167
167
  baseUrl: conf.baseUrl,
168
- context: _objectSpread(_objectSpread({}, conf), {}, {
168
+ context: {
169
+ productKey: conf.productKey,
169
170
  contextType: CONTEXT_TYPE,
170
171
  principalId: conf.principalId || 'context',
171
172
  containerId: contextIdentifier && contextIdentifier.containerId,
173
+ siteId: conf.siteId,
172
174
  objectId: contextIdentifier && contextIdentifier.objectId || 'undefined',
173
175
  childObjectId: contextIdentifier && contextIdentifier.childObjectId || 'undefined',
174
176
  mentionsSessionId: contextIdentifier && contextIdentifier.sessionId || 'undefined',
175
177
  sessionId: contextIdentifier && contextIdentifier.sessionId || 'undefined'
176
- }),
178
+ },
179
+ includeGroups: conf.includeGroups,
180
+ includeTeams: conf.includeTeams,
177
181
  includeUsers: typeof conf.includeUsers === 'undefined' ? true : conf.includeUsers,
178
182
  maxNumberOfResults: maxNumberOfResults,
183
+ searchQueryFilter: conf.searchQueryFilter,
179
184
  query: query
180
185
  };
181
186
  _context2.prev = 4;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.2",
3
+ "version": "19.9.3",
4
4
  "sideEffects": false
5
5
  }
@@ -74,17 +74,22 @@ class SmartMentionResource extends AbstractMentionResource {
74
74
  const maxNumberOfResults = conf.maxNumberOfResults || 100;
75
75
  const request = {
76
76
  baseUrl: conf.baseUrl,
77
- context: { ...conf,
77
+ context: {
78
+ productKey: conf.productKey,
78
79
  contextType: CONTEXT_TYPE,
79
80
  principalId: conf.principalId || 'context',
80
81
  containerId: contextIdentifier && contextIdentifier.containerId,
82
+ siteId: conf.siteId,
81
83
  objectId: contextIdentifier && contextIdentifier.objectId || 'undefined',
82
84
  childObjectId: contextIdentifier && contextIdentifier.childObjectId || 'undefined',
83
85
  mentionsSessionId: contextIdentifier && contextIdentifier.sessionId || 'undefined',
84
86
  sessionId: contextIdentifier && contextIdentifier.sessionId || 'undefined'
85
87
  },
88
+ includeGroups: conf.includeGroups,
89
+ includeTeams: conf.includeTeams,
86
90
  includeUsers: typeof conf.includeUsers === 'undefined' ? true : conf.includeUsers,
87
91
  maxNumberOfResults: maxNumberOfResults,
92
+ searchQueryFilter: conf.searchQueryFilter,
88
93
  query
89
94
  };
90
95
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.2",
3
+ "version": "19.9.3",
4
4
  "sideEffects": false
5
5
  }
@@ -143,17 +143,22 @@ var SmartMentionResource = /*#__PURE__*/function (_AbstractMentionResou) {
143
143
  maxNumberOfResults = conf.maxNumberOfResults || 100;
144
144
  request = {
145
145
  baseUrl: conf.baseUrl,
146
- context: _objectSpread(_objectSpread({}, conf), {}, {
146
+ context: {
147
+ productKey: conf.productKey,
147
148
  contextType: CONTEXT_TYPE,
148
149
  principalId: conf.principalId || 'context',
149
150
  containerId: contextIdentifier && contextIdentifier.containerId,
151
+ siteId: conf.siteId,
150
152
  objectId: contextIdentifier && contextIdentifier.objectId || 'undefined',
151
153
  childObjectId: contextIdentifier && contextIdentifier.childObjectId || 'undefined',
152
154
  mentionsSessionId: contextIdentifier && contextIdentifier.sessionId || 'undefined',
153
155
  sessionId: contextIdentifier && contextIdentifier.sessionId || 'undefined'
154
- }),
156
+ },
157
+ includeGroups: conf.includeGroups,
158
+ includeTeams: conf.includeTeams,
155
159
  includeUsers: typeof conf.includeUsers === 'undefined' ? true : conf.includeUsers,
156
160
  maxNumberOfResults: maxNumberOfResults,
161
+ searchQueryFilter: conf.searchQueryFilter,
157
162
  query: query
158
163
  };
159
164
  _context2.prev = 4;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.2",
3
+ "version": "19.9.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.2",
3
+ "version": "19.9.3",
4
4
  "description": "A React component used to display user profiles in a list for 'Mention' functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/adf-utils": "^14.2.0",
50
50
  "@atlaskit/build-utils": "*",
51
51
  "@atlaskit/docs": "^9.0.0",
52
- "@atlaskit/editor-core": "^151.0.0",
52
+ "@atlaskit/editor-core": "^151.2.0",
53
53
  "@atlaskit/editor-test-helpers": "^15.5.0",
54
54
  "@atlaskit/elements-test-helpers": "^0.7.0",
55
55
  "@atlaskit/section-message": "^6.0.0",