@atlaskit/smart-card 25.0.2 → 25.0.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 +6 -0
- package/dist/cjs/extractors/flexible/collaboratorGroup/index.js +6 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/extractors/flexible/collaboratorGroup/index.js +7 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/extractors/flexible/collaboratorGroup/index.js +7 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 25.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7ae310c744a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ae310c744a) - [ux] Updated Flex UI CollaboratorGroup extractor to return list of collaborators
|
|
8
|
+
|
|
3
9
|
## 25.0.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -5,8 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.extractPersonsUpdatedBy = void 0;
|
|
7
7
|
var _extractors = require("@atlaskit/linking-common/extractors");
|
|
8
|
-
// Temporary Extractor until https://product-fabric.atlassian.net/browse/EDM-2652 is ready
|
|
9
8
|
var extractPersonsUpdatedBy = function extractPersonsUpdatedBy(jsonLd) {
|
|
9
|
+
if (jsonLd['@type'] === 'atlassian:Project') {
|
|
10
|
+
var members = (0, _extractors.extractMembers)(jsonLd);
|
|
11
|
+
if (members && members.length !== 0) {
|
|
12
|
+
return members;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
var updatedBy = jsonLd['atlassian:updatedBy'];
|
|
11
16
|
if (updatedBy) {
|
|
12
17
|
var extractedPersons = (0, _extractors.extractPersonFromJsonLd)(updatedBy);
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { extractPersonFromJsonLd } from '@atlaskit/linking-common/extractors';
|
|
2
|
-
// Temporary Extractor until https://product-fabric.atlassian.net/browse/EDM-2652 is ready
|
|
1
|
+
import { extractMembers, extractPersonFromJsonLd } from '@atlaskit/linking-common/extractors';
|
|
3
2
|
export const extractPersonsUpdatedBy = jsonLd => {
|
|
3
|
+
if (jsonLd['@type'] === 'atlassian:Project') {
|
|
4
|
+
const members = extractMembers(jsonLd);
|
|
5
|
+
if (members && members.length !== 0) {
|
|
6
|
+
return members;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
4
9
|
const updatedBy = jsonLd['atlassian:updatedBy'];
|
|
5
10
|
if (updatedBy) {
|
|
6
11
|
const extractedPersons = extractPersonFromJsonLd(updatedBy);
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { extractPersonFromJsonLd } from '@atlaskit/linking-common/extractors';
|
|
2
|
-
// Temporary Extractor until https://product-fabric.atlassian.net/browse/EDM-2652 is ready
|
|
1
|
+
import { extractMembers, extractPersonFromJsonLd } from '@atlaskit/linking-common/extractors';
|
|
3
2
|
export var extractPersonsUpdatedBy = function extractPersonsUpdatedBy(jsonLd) {
|
|
3
|
+
if (jsonLd['@type'] === 'atlassian:Project') {
|
|
4
|
+
var members = extractMembers(jsonLd);
|
|
5
|
+
if (members && members.length !== 0) {
|
|
6
|
+
return members;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
4
9
|
var updatedBy = jsonLd['atlassian:updatedBy'];
|
|
5
10
|
if (updatedBy) {
|
|
6
11
|
var extractedPersons = extractPersonFromJsonLd(updatedBy);
|
package/dist/esm/version.json
CHANGED
|
@@ -17,6 +17,7 @@ export declare const TEST_BASE_DATA: JsonLd.Data.BaseData;
|
|
|
17
17
|
export declare const TEST_DATA_WITH_EMOJI: JsonLd.Data.BaseData;
|
|
18
18
|
export declare const TEST_DATA_WITH_NO_PREFIX: JsonLd.Data.BaseData;
|
|
19
19
|
export declare const TEST_PROJECT: JsonLd.Data.Project;
|
|
20
|
+
export declare const TEST_PROJECT_WITHOUT_MEMBERS: Partial<JsonLd.Data.Project>;
|
|
20
21
|
export declare const TEST_PULL_REQUEST: JsonLd.Data.SourceCodePullRequest;
|
|
21
22
|
export declare const TEST_TASK: JsonLd.Data.Task;
|
|
22
23
|
export declare const TEST_META_DATA: JsonLd.Meta.BaseMeta;
|