@atlaskit/editor-card-provider 4.2.2 → 4.2.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 +8 -0
- package/dist/cjs/provider.js +3 -1
- package/dist/es2019/provider.js +1 -1
- package/dist/esm/provider.js +3 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-card-provider
|
|
2
2
|
|
|
3
|
+
## 4.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135566](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135566)
|
|
8
|
+
[`610d0b7771536`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/610d0b7771536) -
|
|
9
|
+
Added support for base plan URL smart link
|
|
10
|
+
|
|
3
11
|
## 4.2.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/provider.js
CHANGED
|
@@ -75,7 +75,9 @@ var isJiraBoard = function isJiraBoard(url) {
|
|
|
75
75
|
return url.match(/https:\/\/.*?\/jira\/software\/(c\/)?projects\/[^\/]+?\/boards\/\d\??.*/);
|
|
76
76
|
};
|
|
77
77
|
var isJiraPlan = function isJiraPlan(url) {
|
|
78
|
-
return url.match( /*#__PURE__*/_wrapRegExp(/https:\/\/.*?\/jira\/plans\/(\d+)
|
|
78
|
+
return url.match( /*#__PURE__*/_wrapRegExp(/https:\/\/.*?\/jira\/plans\/(\d+)/, {
|
|
79
|
+
resourceId: 1
|
|
80
|
+
})) && (0, _platformFeatureFlags.fg)('plan_smart_link_base_url') || url.match( /*#__PURE__*/_wrapRegExp(/https:\/\/.*?\/jira\/plans\/(\d+)\/scenarios\/(\d+)\/(timeline|summary|calendar|program\/\d+|dependencies)\/?/, {
|
|
79
81
|
resourceId: 1,
|
|
80
82
|
resourceContext: 2
|
|
81
83
|
}));
|
package/dist/es2019/provider.js
CHANGED
|
@@ -34,7 +34,7 @@ const isJiraBoard = url => {
|
|
|
34
34
|
return url.match(/https:\/\/.*?\/jira\/software\/(c\/)?projects\/[^\/]+?\/boards\/\d\??.*/);
|
|
35
35
|
};
|
|
36
36
|
const isJiraPlan = url => {
|
|
37
|
-
return url.match(/https:\/\/.*?\/jira\/plans\/(?<resourceId>\d+)\/scenarios\/(?<resourceContext>\d+)\/(timeline|summary|calendar|program\/\d+|dependencies)\/?/);
|
|
37
|
+
return url.match(/https:\/\/.*?\/jira\/plans\/(?<resourceId>\d+)/) && fg('plan_smart_link_base_url') || url.match(/https:\/\/.*?\/jira\/plans\/(?<resourceId>\d+)\/scenarios\/(?<resourceContext>\d+)\/(timeline|summary|calendar|program\/\d+|dependencies)\/?/);
|
|
38
38
|
};
|
|
39
39
|
const isJiraVersion = url => {
|
|
40
40
|
return url.match(/https:\/\/.*?\/projects\/[^\/]+?\/versions\/\d+\/tab\/release-report-all-issues/);
|
package/dist/esm/provider.js
CHANGED
|
@@ -67,7 +67,9 @@ var isJiraBoard = function isJiraBoard(url) {
|
|
|
67
67
|
return url.match(/https:\/\/.*?\/jira\/software\/(c\/)?projects\/[^\/]+?\/boards\/\d\??.*/);
|
|
68
68
|
};
|
|
69
69
|
var isJiraPlan = function isJiraPlan(url) {
|
|
70
|
-
return url.match( /*#__PURE__*/_wrapRegExp(/https:\/\/.*?\/jira\/plans\/(\d+)
|
|
70
|
+
return url.match( /*#__PURE__*/_wrapRegExp(/https:\/\/.*?\/jira\/plans\/(\d+)/, {
|
|
71
|
+
resourceId: 1
|
|
72
|
+
})) && fg('plan_smart_link_base_url') || url.match( /*#__PURE__*/_wrapRegExp(/https:\/\/.*?\/jira\/plans\/(\d+)\/scenarios\/(\d+)\/(timeline|summary|calendar|program\/\d+|dependencies)\/?/, {
|
|
71
73
|
resourceId: 1,
|
|
72
74
|
resourceContext: 2
|
|
73
75
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-card-provider",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
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",
|
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
},
|
|
60
60
|
"tc_smart_link_embed_view": {
|
|
61
61
|
"type": "boolean"
|
|
62
|
+
},
|
|
63
|
+
"plan_smart_link_base_url": {
|
|
64
|
+
"type": "boolean"
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
}
|