@atlaskit/editor-card-provider 8.2.7 → 8.2.9
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 +19 -0
- package/dist/cjs/provider.js +0 -4
- package/dist/es2019/provider.js +7 -9
- package/dist/esm/provider.js +0 -4
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-card-provider
|
|
2
2
|
|
|
3
|
+
## 8.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.2.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ff3c2b0a93ac9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff3c2b0a93ac9) -
|
|
14
|
+
Remove the issue-link-suggestions-in-comments gate and retain local issue resolution callbacks.
|
|
15
|
+
- [`ff3c2b0a93ac9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff3c2b0a93ac9) -
|
|
16
|
+
Clean up issue-link-suggestions-in-comments, preserving enabled issue-link resolution behaviour.
|
|
17
|
+
- [`ff3c2b0a93ac9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff3c2b0a93ac9) -
|
|
18
|
+
Remove the issue-link-suggestions-in-comments feature gate and retain local issue link resolution
|
|
19
|
+
callbacks.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 8.2.7
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cjs/provider.js
CHANGED
|
@@ -844,10 +844,6 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function (_No
|
|
|
844
844
|
_yield$Promise$all2 = (0, _slicedToArray2.default)(_yield$Promise$all, 2);
|
|
845
845
|
matchedProviderPattern = _yield$Promise$all2[0];
|
|
846
846
|
userPreference = _yield$Promise$all2[1];
|
|
847
|
-
if (!(0, _fg.fg)('issue-link-suggestions-in-comments')) {
|
|
848
|
-
_context11.next = 4;
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
847
|
if (!(isJiraWorkItem(url) && this.isLocalUrl(url))) {
|
|
852
848
|
_context11.next = 4;
|
|
853
849
|
break;
|
package/dist/es2019/provider.js
CHANGED
|
@@ -455,15 +455,13 @@ export class EditorCardProvider extends NodeDataProvider {
|
|
|
455
455
|
}
|
|
456
456
|
const hardCodedAppearance = this.getHardCodedAppearance(url);
|
|
457
457
|
const [matchedProviderPattern, userPreference] = await Promise.all([this.findPatternData(url), this.findUserPreference(url)]);
|
|
458
|
-
if (
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
(_this$onResolve = this.onResolve) === null || _this$onResolve === void 0 ? void 0 : _this$onResolve.call(this, url, issueAri);
|
|
466
|
-
}
|
|
458
|
+
if (isJiraWorkItem(url) && this.isLocalUrl(url)) {
|
|
459
|
+
const data = await this.fetchDataForResource(url);
|
|
460
|
+
if (data) {
|
|
461
|
+
const issueAri = this.extractAriFromData(data);
|
|
462
|
+
if (issueAri) {
|
|
463
|
+
var _this$onResolve;
|
|
464
|
+
(_this$onResolve = this.onResolve) === null || _this$onResolve === void 0 ? void 0 : _this$onResolve.call(this, url, issueAri);
|
|
467
465
|
}
|
|
468
466
|
}
|
|
469
467
|
}
|
package/dist/esm/provider.js
CHANGED
|
@@ -836,10 +836,6 @@ export var EditorCardProvider = /*#__PURE__*/function (_NodeDataProvider) {
|
|
|
836
836
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
837
837
|
matchedProviderPattern = _yield$Promise$all2[0];
|
|
838
838
|
userPreference = _yield$Promise$all2[1];
|
|
839
|
-
if (!fg('issue-link-suggestions-in-comments')) {
|
|
840
|
-
_context11.next = 4;
|
|
841
|
-
break;
|
|
842
|
-
}
|
|
843
839
|
if (!(isJiraWorkItem(url) && this.isLocalUrl(url))) {
|
|
844
840
|
_context11.next = 4;
|
|
845
841
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-card-provider",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.9",
|
|
4
4
|
"description": "Contains the EditorCardProvider, for determining smart card behaviour in the editor.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/linking-types": "^16.1.0",
|
|
32
32
|
"@atlaskit/node-data-provider": "^31.0.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
34
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^251.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"dataloader": "^2.1.0"
|
|
37
37
|
},
|
|
@@ -48,9 +48,6 @@
|
|
|
48
48
|
"platform_forge_ui_artifact_confluence_integration": {
|
|
49
49
|
"type": "boolean"
|
|
50
50
|
},
|
|
51
|
-
"issue-link-suggestions-in-comments": {
|
|
52
|
-
"type": "boolean"
|
|
53
|
-
},
|
|
54
51
|
"platform_smartlink_inline_resolve_optimization": {
|
|
55
52
|
"type": "boolean"
|
|
56
53
|
},
|