@atlaskit/editor-card-provider 7.3.6 → 7.3.8
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 +15 -0
- package/dist/cjs/provider.js +3 -2
- package/dist/es2019/provider.js +3 -2
- package/dist/esm/provider.js +3 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-card-provider
|
|
2
2
|
|
|
3
|
+
## 7.3.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.3.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2a88c66ba16df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2a88c66ba16df) -
|
|
14
|
+
Recognize dashboard chart URLs as embeds behind the `platform_avp_viz_dashboard_link_embed`
|
|
15
|
+
feature gate and clean up the `avp_unfurl_shared_charts_embed_by_default_2` feature gate.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 7.3.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/provider.js
CHANGED
|
@@ -87,6 +87,7 @@ var CONFLUENCE_TEAM_CALENDARS_REGEX = /*#__PURE__*/_wrapRegExp(/\/wiki\/spaces\/
|
|
|
87
87
|
});
|
|
88
88
|
var JIRA_ISSUE_NAVIGATOR_REGEX = /^https:\/\/.*?\/jira\/software|core\/(c\/)?projects\/[^\/]+?\/issues\/?/;
|
|
89
89
|
var AVP_VISUALIZATION_VIEW_REGEX = /^https:\/\/.*?\/avpviz\/c\/[^\/]+.*/;
|
|
90
|
+
var DASHBOARDS_CHART_VIEW_REGEX = /^https:\/\/.*?\/dashboards\/c\/[^\/]+.*/;
|
|
90
91
|
var JIRA_WORK_ITEM_REGEX = /\/browse\/((?:\w+)-(?:\d+))/i;
|
|
91
92
|
var DOES_URL_MATCH_PATH_START_REGEX = /^[a-zA-Z0-9]/;
|
|
92
93
|
var DOES_URL_MATCH_PATH_END_REGEX = /[a-zA-Z0-9]$/;
|
|
@@ -164,7 +165,7 @@ var isJiraIssueNavigator = function isJiraIssueNavigator(url) {
|
|
|
164
165
|
return url.match(JIRA_ISSUE_NAVIGATOR_REGEX);
|
|
165
166
|
};
|
|
166
167
|
var isAvpVisualizationView = function isAvpVisualizationView(url) {
|
|
167
|
-
return url.match(AVP_VISUALIZATION_VIEW_REGEX);
|
|
168
|
+
return url.match(AVP_VISUALIZATION_VIEW_REGEX) || ((0, _fg.fg)('platform_avp_viz_dashboard_link_embed') ? url.match(DASHBOARDS_CHART_VIEW_REGEX) : null);
|
|
168
169
|
};
|
|
169
170
|
var isJiraWorkItem = exports.isJiraWorkItem = function isJiraWorkItem(url) {
|
|
170
171
|
return JIRA_WORK_ITEM_REGEX.test(url);
|
|
@@ -644,7 +645,7 @@ var EditorCardProvider = exports.EditorCardProvider = /*#__PURE__*/function (_No
|
|
|
644
645
|
if ((0, _fg.fg)('tc_smart_link_embed_view')) {
|
|
645
646
|
isConfluenceTeamCalendarsEvaluated = isConfluenceTeamCalendars(url);
|
|
646
647
|
}
|
|
647
|
-
if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || (0, _urlCheckers.isConfluenceSlideUrl)(url) || isYoutubeVideo(url) || isLoomVideoUrl(url) || isLoomPlaylistUrl(url) && (0, _fg.fg)('loom-playlist-smartlink-embed-default') || isLoomScreenshotUrl(url) && (0, _fg.fg)('loom-support-screenshot-sl-resolution') || isJiraDashboard(url) || isJiraBacklog(url) || isJiraBoard(url) || isRovoAgentProfilePage(url) || isJiraVersion(url) || isJiraPlanEvaluated || isJiraFormEvaluated || isJiraSummaryEvaluated || isCustomer360LandingPage(url) || isConfluenceTeamCalendarsEvaluated || isJiraIssueNavigator(url) || isAvpVisualizationView(url)
|
|
648
|
+
if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || (0, _urlCheckers.isConfluenceSlideUrl)(url) || isYoutubeVideo(url) || isLoomVideoUrl(url) || isLoomPlaylistUrl(url) && (0, _fg.fg)('loom-playlist-smartlink-embed-default') || isLoomScreenshotUrl(url) && (0, _fg.fg)('loom-support-screenshot-sl-resolution') || isJiraDashboard(url) || isJiraBacklog(url) || isJiraBoard(url) || isRovoAgentProfilePage(url) || isJiraVersion(url) || isJiraPlanEvaluated || isJiraFormEvaluated || isJiraSummaryEvaluated || isCustomer360LandingPage(url) || isConfluenceTeamCalendarsEvaluated || isJiraIssueNavigator(url) || isAvpVisualizationView(url)) {
|
|
648
649
|
return 'embed';
|
|
649
650
|
}
|
|
650
651
|
}
|
package/dist/es2019/provider.js
CHANGED
|
@@ -48,6 +48,7 @@ const CUSTOMER_360_LANDING_PAGE_REGEX = /^https:\/\/customer\.atlassian\.com\/.*
|
|
|
48
48
|
const CONFLUENCE_TEAM_CALENDARS_REGEX = /\/wiki\/spaces\/(?<resourceContext>[^\/]+)\/calendars\/(?<resourceId>[a-zA-Z0-9-]+)/;
|
|
49
49
|
const JIRA_ISSUE_NAVIGATOR_REGEX = /^https:\/\/.*?\/jira\/software|core\/(c\/)?projects\/[^\/]+?\/issues\/?/;
|
|
50
50
|
const AVP_VISUALIZATION_VIEW_REGEX = /^https:\/\/.*?\/avpviz\/c\/[^\/]+.*/;
|
|
51
|
+
const DASHBOARDS_CHART_VIEW_REGEX = /^https:\/\/.*?\/dashboards\/c\/[^\/]+.*/;
|
|
51
52
|
const JIRA_WORK_ITEM_REGEX = /\/browse\/((?:\w+)-(?:\d+))/i;
|
|
52
53
|
const DOES_URL_MATCH_PATH_START_REGEX = /^[a-zA-Z0-9]/;
|
|
53
54
|
const DOES_URL_MATCH_PATH_END_REGEX = /[a-zA-Z0-9]$/;
|
|
@@ -98,7 +99,7 @@ const isRovoAgentProfilePage = url => {
|
|
|
98
99
|
const isCustomer360LandingPage = url => url.match(CUSTOMER_360_LANDING_PAGE_REGEX);
|
|
99
100
|
const isConfluenceTeamCalendars = url => url.match(CONFLUENCE_TEAM_CALENDARS_REGEX);
|
|
100
101
|
const isJiraIssueNavigator = url => url.match(JIRA_ISSUE_NAVIGATOR_REGEX);
|
|
101
|
-
const isAvpVisualizationView = url => url.match(AVP_VISUALIZATION_VIEW_REGEX);
|
|
102
|
+
const isAvpVisualizationView = url => url.match(AVP_VISUALIZATION_VIEW_REGEX) || (fg('platform_avp_viz_dashboard_link_embed') ? url.match(DASHBOARDS_CHART_VIEW_REGEX) : null);
|
|
102
103
|
export const isJiraWorkItem = url => JIRA_WORK_ITEM_REGEX.test(url);
|
|
103
104
|
|
|
104
105
|
// Local UrlChecker-compatible wrapper around the boolean-returning
|
|
@@ -350,7 +351,7 @@ export class EditorCardProvider extends NodeDataProvider {
|
|
|
350
351
|
if (fg('tc_smart_link_embed_view')) {
|
|
351
352
|
isConfluenceTeamCalendarsEvaluated = isConfluenceTeamCalendars(url);
|
|
352
353
|
}
|
|
353
|
-
if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || isConfluenceSlideUrl(url) || isYoutubeVideo(url) || isLoomVideoUrl(url) || isLoomPlaylistUrl(url) && fg('loom-playlist-smartlink-embed-default') || isLoomScreenshotUrl(url) && fg('loom-support-screenshot-sl-resolution') || isJiraDashboard(url) || isJiraBacklog(url) || isJiraBoard(url) || isRovoAgentProfilePage(url) || isJiraVersion(url) || isJiraPlanEvaluated || isJiraFormEvaluated || isJiraSummaryEvaluated || isCustomer360LandingPage(url) || isConfluenceTeamCalendarsEvaluated || isJiraIssueNavigator(url) || isAvpVisualizationView(url)
|
|
354
|
+
if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || isConfluenceSlideUrl(url) || isYoutubeVideo(url) || isLoomVideoUrl(url) || isLoomPlaylistUrl(url) && fg('loom-playlist-smartlink-embed-default') || isLoomScreenshotUrl(url) && fg('loom-support-screenshot-sl-resolution') || isJiraDashboard(url) || isJiraBacklog(url) || isJiraBoard(url) || isRovoAgentProfilePage(url) || isJiraVersion(url) || isJiraPlanEvaluated || isJiraFormEvaluated || isJiraSummaryEvaluated || isCustomer360LandingPage(url) || isConfluenceTeamCalendarsEvaluated || isJiraIssueNavigator(url) || isAvpVisualizationView(url)) {
|
|
354
355
|
return 'embed';
|
|
355
356
|
}
|
|
356
357
|
}
|
package/dist/esm/provider.js
CHANGED
|
@@ -79,6 +79,7 @@ var CONFLUENCE_TEAM_CALENDARS_REGEX = /*#__PURE__*/_wrapRegExp(/\/wiki\/spaces\/
|
|
|
79
79
|
});
|
|
80
80
|
var JIRA_ISSUE_NAVIGATOR_REGEX = /^https:\/\/.*?\/jira\/software|core\/(c\/)?projects\/[^\/]+?\/issues\/?/;
|
|
81
81
|
var AVP_VISUALIZATION_VIEW_REGEX = /^https:\/\/.*?\/avpviz\/c\/[^\/]+.*/;
|
|
82
|
+
var DASHBOARDS_CHART_VIEW_REGEX = /^https:\/\/.*?\/dashboards\/c\/[^\/]+.*/;
|
|
82
83
|
var JIRA_WORK_ITEM_REGEX = /\/browse\/((?:\w+)-(?:\d+))/i;
|
|
83
84
|
var DOES_URL_MATCH_PATH_START_REGEX = /^[a-zA-Z0-9]/;
|
|
84
85
|
var DOES_URL_MATCH_PATH_END_REGEX = /[a-zA-Z0-9]$/;
|
|
@@ -156,7 +157,7 @@ var isJiraIssueNavigator = function isJiraIssueNavigator(url) {
|
|
|
156
157
|
return url.match(JIRA_ISSUE_NAVIGATOR_REGEX);
|
|
157
158
|
};
|
|
158
159
|
var isAvpVisualizationView = function isAvpVisualizationView(url) {
|
|
159
|
-
return url.match(AVP_VISUALIZATION_VIEW_REGEX);
|
|
160
|
+
return url.match(AVP_VISUALIZATION_VIEW_REGEX) || (fg('platform_avp_viz_dashboard_link_embed') ? url.match(DASHBOARDS_CHART_VIEW_REGEX) : null);
|
|
160
161
|
};
|
|
161
162
|
export var isJiraWorkItem = function isJiraWorkItem(url) {
|
|
162
163
|
return JIRA_WORK_ITEM_REGEX.test(url);
|
|
@@ -636,7 +637,7 @@ export var EditorCardProvider = /*#__PURE__*/function (_NodeDataProvider) {
|
|
|
636
637
|
if (fg('tc_smart_link_embed_view')) {
|
|
637
638
|
isConfluenceTeamCalendarsEvaluated = isConfluenceTeamCalendars(url);
|
|
638
639
|
}
|
|
639
|
-
if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || isConfluenceSlideUrl(url) || isYoutubeVideo(url) || isLoomVideoUrl(url) || isLoomPlaylistUrl(url) && fg('loom-playlist-smartlink-embed-default') || isLoomScreenshotUrl(url) && fg('loom-support-screenshot-sl-resolution') || isJiraDashboard(url) || isJiraBacklog(url) || isJiraBoard(url) || isRovoAgentProfilePage(url) || isJiraVersion(url) || isJiraPlanEvaluated || isJiraFormEvaluated || isJiraSummaryEvaluated || isCustomer360LandingPage(url) || isConfluenceTeamCalendarsEvaluated || isJiraIssueNavigator(url) || isAvpVisualizationView(url)
|
|
640
|
+
if (isJiraRoadmapOrTimeline(url) || isPolarisView(url) || isJwmView(url) || isJiraList(url) || isGiphyMedia(url) || isProformaView(url) || isConfluenceWhiteboard(url) || isConfluenceDatabase(url) || isConfluenceSlideUrl(url) || isYoutubeVideo(url) || isLoomVideoUrl(url) || isLoomPlaylistUrl(url) && fg('loom-playlist-smartlink-embed-default') || isLoomScreenshotUrl(url) && fg('loom-support-screenshot-sl-resolution') || isJiraDashboard(url) || isJiraBacklog(url) || isJiraBoard(url) || isRovoAgentProfilePage(url) || isJiraVersion(url) || isJiraPlanEvaluated || isJiraFormEvaluated || isJiraSummaryEvaluated || isCustomer360LandingPage(url) || isConfluenceTeamCalendarsEvaluated || isJiraIssueNavigator(url) || isAvpVisualizationView(url)) {
|
|
640
641
|
return 'embed';
|
|
641
642
|
}
|
|
642
643
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-card-provider",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.8",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/linking-types": "^15.2.0",
|
|
33
33
|
"@atlaskit/node-data-provider": "^17.0.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^176.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"dataloader": "^2.1.0"
|
|
38
38
|
},
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"issue-link-suggestions-in-comments": {
|
|
52
52
|
"type": "boolean"
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"platform_smartlink_inline_resolve_optimization": {
|
|
55
55
|
"type": "boolean"
|
|
56
56
|
},
|
|
57
|
-
"
|
|
57
|
+
"platform_avp_viz_dashboard_link_embed": {
|
|
58
58
|
"type": "boolean"
|
|
59
59
|
},
|
|
60
60
|
"loom-support-screenshot-sl-resolution": {
|