@atlaskit/smart-card 44.16.5 → 44.17.0
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 +17 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/extractors/action/extract-invoke-copy-link-action.js +1 -1
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/cjs/extractors/action/extract-invoke-preview-action.js +7 -7
- package/dist/cjs/extractors/action/extract-invoke-view-action.js +1 -1
- package/dist/cjs/i18n/cs.js +3 -180
- package/dist/cjs/i18n/da.js +3 -180
- package/dist/cjs/i18n/de.js +3 -180
- package/dist/cjs/i18n/en.js +3 -182
- package/dist/cjs/i18n/en_GB.js +3 -182
- package/dist/cjs/i18n/en_ZZ.js +3 -182
- package/dist/cjs/i18n/es.js +3 -180
- package/dist/cjs/i18n/fi.js +3 -180
- package/dist/cjs/i18n/fr.js +3 -180
- package/dist/cjs/i18n/hr.js +3 -175
- package/dist/cjs/i18n/hu.js +3 -180
- package/dist/cjs/i18n/it.js +3 -180
- package/dist/cjs/i18n/ja.js +3 -180
- package/dist/cjs/i18n/ko.js +3 -180
- package/dist/cjs/i18n/nb.js +3 -180
- package/dist/cjs/i18n/nl.js +3 -180
- package/dist/cjs/i18n/pl.js +3 -180
- package/dist/cjs/i18n/pt_BR.js +3 -180
- package/dist/cjs/i18n/ru.js +3 -180
- package/dist/cjs/i18n/sl.js +3 -175
- package/dist/cjs/i18n/sr_RS.js +3 -175
- package/dist/cjs/i18n/sr_YR.js +3 -175
- package/dist/cjs/i18n/sv.js +3 -180
- package/dist/cjs/i18n/th.js +3 -180
- package/dist/cjs/i18n/tr.js +3 -180
- package/dist/cjs/i18n/uk.js +3 -180
- package/dist/cjs/i18n/vi.js +3 -180
- package/dist/cjs/i18n/zh.js +3 -180
- package/dist/cjs/i18n/zh_TW.js +3 -180
- package/dist/cjs/state/actions/index.js +7 -7
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +46 -46
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/readStream.js +44 -44
- package/dist/cjs/state/hooks/use-incoming-outgoing-links/index.js +34 -34
- package/dist/cjs/state/hooks/use-invoke/index.js +4 -4
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +12 -12
- package/dist/cjs/state/hooks/use-resolve/index.js +4 -4
- package/dist/cjs/state/hooks/usePrefetch.js +14 -14
- package/dist/cjs/state/services/current-site-cloud-id/index.js +16 -16
- package/dist/cjs/state/services/personalization/index.js +23 -23
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +26 -25
- package/dist/cjs/utils/mocks.js +16 -16
- package/dist/cjs/view/EmbedModal/utils.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +17 -17
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +10 -10
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +31 -31
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +10 -10
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +34 -34
- package/dist/cjs/view/InlineCard/common/action-button/index.compiled.css +1 -1
- package/dist/cjs/view/InlineCard/common/action-button/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/index.js +41 -41
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/i18n/cs.js +3 -180
- package/dist/es2019/i18n/da.js +3 -180
- package/dist/es2019/i18n/de.js +3 -180
- package/dist/es2019/i18n/en.js +3 -182
- package/dist/es2019/i18n/en_GB.js +3 -182
- package/dist/es2019/i18n/en_ZZ.js +3 -182
- package/dist/es2019/i18n/es.js +3 -180
- package/dist/es2019/i18n/fi.js +3 -180
- package/dist/es2019/i18n/fr.js +3 -180
- package/dist/es2019/i18n/hr.js +3 -175
- package/dist/es2019/i18n/hu.js +3 -180
- package/dist/es2019/i18n/it.js +3 -180
- package/dist/es2019/i18n/ja.js +3 -180
- package/dist/es2019/i18n/ko.js +3 -180
- package/dist/es2019/i18n/nb.js +3 -180
- package/dist/es2019/i18n/nl.js +3 -180
- package/dist/es2019/i18n/pl.js +3 -180
- package/dist/es2019/i18n/pt_BR.js +3 -180
- package/dist/es2019/i18n/ru.js +3 -180
- package/dist/es2019/i18n/sl.js +3 -175
- package/dist/es2019/i18n/sr_RS.js +3 -175
- package/dist/es2019/i18n/sr_YR.js +3 -175
- package/dist/es2019/i18n/sv.js +3 -180
- package/dist/es2019/i18n/th.js +3 -180
- package/dist/es2019/i18n/tr.js +3 -180
- package/dist/es2019/i18n/uk.js +3 -180
- package/dist/es2019/i18n/vi.js +3 -180
- package/dist/es2019/i18n/zh.js +3 -180
- package/dist/es2019/i18n/zh_TW.js +3 -180
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/common/action-button/index.compiled.css +1 -1
- package/dist/es2019/view/InlineCard/common/action-button/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/extractors/action/extract-invoke-copy-link-action.js +1 -1
- package/dist/esm/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/esm/extractors/action/extract-invoke-preview-action.js +7 -7
- package/dist/esm/extractors/action/extract-invoke-view-action.js +1 -1
- package/dist/esm/i18n/cs.js +3 -180
- package/dist/esm/i18n/da.js +3 -180
- package/dist/esm/i18n/de.js +3 -180
- package/dist/esm/i18n/en.js +3 -182
- package/dist/esm/i18n/en_GB.js +3 -182
- package/dist/esm/i18n/en_ZZ.js +3 -182
- package/dist/esm/i18n/es.js +3 -180
- package/dist/esm/i18n/fi.js +3 -180
- package/dist/esm/i18n/fr.js +3 -180
- package/dist/esm/i18n/hr.js +3 -175
- package/dist/esm/i18n/hu.js +3 -180
- package/dist/esm/i18n/it.js +3 -180
- package/dist/esm/i18n/ja.js +3 -180
- package/dist/esm/i18n/ko.js +3 -180
- package/dist/esm/i18n/nb.js +3 -180
- package/dist/esm/i18n/nl.js +3 -180
- package/dist/esm/i18n/pl.js +3 -180
- package/dist/esm/i18n/pt_BR.js +3 -180
- package/dist/esm/i18n/ru.js +3 -180
- package/dist/esm/i18n/sl.js +3 -175
- package/dist/esm/i18n/sr_RS.js +3 -175
- package/dist/esm/i18n/sr_YR.js +3 -175
- package/dist/esm/i18n/sv.js +3 -180
- package/dist/esm/i18n/th.js +3 -180
- package/dist/esm/i18n/tr.js +3 -180
- package/dist/esm/i18n/uk.js +3 -180
- package/dist/esm/i18n/vi.js +3 -180
- package/dist/esm/i18n/zh.js +3 -180
- package/dist/esm/i18n/zh_TW.js +3 -180
- package/dist/esm/state/actions/index.js +7 -7
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +46 -46
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/readStream.js +44 -44
- package/dist/esm/state/hooks/use-incoming-outgoing-links/index.js +34 -34
- package/dist/esm/state/hooks/use-invoke/index.js +4 -4
- package/dist/esm/state/hooks/use-invoke-client-action/index.js +11 -11
- package/dist/esm/state/hooks/use-resolve/index.js +4 -4
- package/dist/esm/state/hooks/usePrefetch.js +14 -14
- package/dist/esm/state/services/current-site-cloud-id/index.js +16 -16
- package/dist/esm/state/services/personalization/index.js +23 -23
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +25 -24
- package/dist/esm/utils/mocks.js +16 -16
- package/dist/esm/view/EmbedModal/utils.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +16 -16
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +8 -8
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +10 -10
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +30 -30
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +10 -10
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +33 -33
- package/dist/esm/view/InlineCard/common/action-button/index.compiled.css +1 -1
- package/dist/esm/view/InlineCard/common/action-button/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/index.js +40 -40
- package/dist/types/i18n/cs.d.ts +2 -180
- package/dist/types/i18n/da.d.ts +2 -180
- package/dist/types/i18n/de.d.ts +2 -180
- package/dist/types/i18n/en.d.ts +2 -182
- package/dist/types/i18n/en_GB.d.ts +2 -182
- package/dist/types/i18n/en_ZZ.d.ts +2 -182
- package/dist/types/i18n/es.d.ts +2 -180
- package/dist/types/i18n/fi.d.ts +2 -180
- package/dist/types/i18n/fr.d.ts +2 -180
- package/dist/types/i18n/hr.d.ts +2 -175
- package/dist/types/i18n/hu.d.ts +2 -180
- package/dist/types/i18n/it.d.ts +2 -180
- package/dist/types/i18n/ja.d.ts +2 -180
- package/dist/types/i18n/ko.d.ts +2 -180
- package/dist/types/i18n/nb.d.ts +2 -180
- package/dist/types/i18n/nl.d.ts +2 -180
- package/dist/types/i18n/pl.d.ts +2 -180
- package/dist/types/i18n/pt_BR.d.ts +2 -180
- package/dist/types/i18n/ru.d.ts +2 -180
- package/dist/types/i18n/sl.d.ts +2 -175
- package/dist/types/i18n/sr_RS.d.ts +2 -175
- package/dist/types/i18n/sr_YR.d.ts +2 -175
- package/dist/types/i18n/sv.d.ts +2 -180
- package/dist/types/i18n/th.d.ts +2 -180
- package/dist/types/i18n/tr.d.ts +2 -180
- package/dist/types/i18n/uk.d.ts +2 -180
- package/dist/types/i18n/vi.d.ts +2 -180
- package/dist/types/i18n/zh.d.ts +2 -180
- package/dist/types/i18n/zh_TW.d.ts +2 -180
- package/dist/types-ts4.5/i18n/cs.d.ts +2 -180
- package/dist/types-ts4.5/i18n/da.d.ts +2 -180
- package/dist/types-ts4.5/i18n/de.d.ts +2 -180
- package/dist/types-ts4.5/i18n/en.d.ts +2 -182
- package/dist/types-ts4.5/i18n/en_GB.d.ts +2 -182
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -182
- package/dist/types-ts4.5/i18n/es.d.ts +2 -180
- package/dist/types-ts4.5/i18n/fi.d.ts +2 -180
- package/dist/types-ts4.5/i18n/fr.d.ts +2 -180
- package/dist/types-ts4.5/i18n/hr.d.ts +2 -175
- package/dist/types-ts4.5/i18n/hu.d.ts +2 -180
- package/dist/types-ts4.5/i18n/it.d.ts +2 -180
- package/dist/types-ts4.5/i18n/ja.d.ts +2 -180
- package/dist/types-ts4.5/i18n/ko.d.ts +2 -180
- package/dist/types-ts4.5/i18n/nb.d.ts +2 -180
- package/dist/types-ts4.5/i18n/nl.d.ts +2 -180
- package/dist/types-ts4.5/i18n/pl.d.ts +2 -180
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +2 -180
- package/dist/types-ts4.5/i18n/ru.d.ts +2 -180
- package/dist/types-ts4.5/i18n/sl.d.ts +2 -175
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +2 -175
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +2 -175
- package/dist/types-ts4.5/i18n/sv.d.ts +2 -180
- package/dist/types-ts4.5/i18n/th.d.ts +2 -180
- package/dist/types-ts4.5/i18n/tr.d.ts +2 -180
- package/dist/types-ts4.5/i18n/uk.d.ts +2 -180
- package/dist/types-ts4.5/i18n/vi.d.ts +2 -180
- package/dist/types-ts4.5/i18n/zh.d.ts +2 -180
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +2 -180
- package/package.json +8 -8
|
@@ -81,13 +81,13 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
81
81
|
invokePreviewAction = _ref2.invokePreviewAction;
|
|
82
82
|
var handleOpenChange = useCallback( /*#__PURE__*/function () {
|
|
83
83
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(args) {
|
|
84
|
-
var responseItems, validItems;
|
|
85
|
-
return _regeneratorRuntime.wrap(function
|
|
84
|
+
var responseItems, validItems, _t;
|
|
85
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
86
86
|
while (1) switch (_context.prev = _context.next) {
|
|
87
87
|
case 0:
|
|
88
88
|
setIsOpen(args.isOpen);
|
|
89
89
|
if (!args.isOpen) {
|
|
90
|
-
_context.next =
|
|
90
|
+
_context.next = 5;
|
|
91
91
|
break;
|
|
92
92
|
}
|
|
93
93
|
fireEvent('ui.button.clicked.smartLinkStatusLozenge', {});
|
|
@@ -95,14 +95,14 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
95
95
|
smartLinkActionType: TrackQuickActionType.StatusUpdate
|
|
96
96
|
});
|
|
97
97
|
if (!(!isLoaded && action !== null && action !== void 0 && action.read)) {
|
|
98
|
-
_context.next =
|
|
98
|
+
_context.next = 5;
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
|
-
_context.prev =
|
|
101
|
+
_context.prev = 1;
|
|
102
102
|
setIsLoading(true);
|
|
103
|
-
_context.next =
|
|
103
|
+
_context.next = 2;
|
|
104
104
|
return invoke(action.read, extractLozengeActionItems);
|
|
105
|
-
case
|
|
105
|
+
case 2:
|
|
106
106
|
responseItems = _context.sent;
|
|
107
107
|
validItems = typeof text === 'string' ? validateItems(responseItems, text) : responseItems;
|
|
108
108
|
setItems(validItems);
|
|
@@ -112,27 +112,27 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
112
112
|
setErrorMessage(fg('confluence-issue-terminology-refresh') ? LozengeActionErrorMessages.noDataIssueTermRefresh : LozengeActionErrorMessages.noData);
|
|
113
113
|
setIsLoaded(false);
|
|
114
114
|
}
|
|
115
|
-
_context.next =
|
|
115
|
+
_context.next = 4;
|
|
116
116
|
break;
|
|
117
|
-
case
|
|
118
|
-
_context.prev =
|
|
119
|
-
|
|
117
|
+
case 3:
|
|
118
|
+
_context.prev = 3;
|
|
119
|
+
_t = _context["catch"](1);
|
|
120
120
|
setErrorMessage(LozengeActionErrorMessages.unknown);
|
|
121
121
|
setIsLoaded(false);
|
|
122
122
|
fireEvent('track.smartLinkQuickAction.failed', unknownLoadErrorAnalyticsPayload);
|
|
123
|
-
case
|
|
124
|
-
_context.prev =
|
|
123
|
+
case 4:
|
|
124
|
+
_context.prev = 4;
|
|
125
125
|
setIsLoading(false);
|
|
126
|
-
return _context.finish(
|
|
127
|
-
case
|
|
126
|
+
return _context.finish(4);
|
|
127
|
+
case 5:
|
|
128
128
|
if (!args.isOpen) {
|
|
129
129
|
setErrorMessage(undefined);
|
|
130
130
|
}
|
|
131
|
-
case
|
|
131
|
+
case 6:
|
|
132
132
|
case "end":
|
|
133
133
|
return _context.stop();
|
|
134
134
|
}
|
|
135
|
-
}, _callee, null, [[
|
|
135
|
+
}, _callee, null, [[1, 3, 4, 5]]);
|
|
136
136
|
}));
|
|
137
137
|
return function (_x) {
|
|
138
138
|
return _ref3.apply(this, arguments);
|
|
@@ -150,22 +150,22 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
150
150
|
}, [selected.appearance, selected.text, isOpen, maxWidth, testId, trailingMetric]);
|
|
151
151
|
var handleItemClick = useCallback( /*#__PURE__*/function () {
|
|
152
152
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id, text, appearance) {
|
|
153
|
-
var updateAction, request;
|
|
154
|
-
return _regeneratorRuntime.wrap(function
|
|
153
|
+
var updateAction, request, _t2;
|
|
154
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
155
155
|
while (1) switch (_context2.prev = _context2.next) {
|
|
156
156
|
case 0:
|
|
157
157
|
_context2.prev = 0;
|
|
158
158
|
fireEvent('ui.button.clicked.smartLinkStatusListItem', {});
|
|
159
159
|
updateAction = action === null || action === void 0 ? void 0 : action.update;
|
|
160
160
|
if (!(updateAction && id)) {
|
|
161
|
-
_context2.next =
|
|
161
|
+
_context2.next = 2;
|
|
162
162
|
break;
|
|
163
163
|
}
|
|
164
164
|
setIsLoading(true);
|
|
165
165
|
request = createStatusUpdateRequest(updateAction, id);
|
|
166
|
-
_context2.next =
|
|
166
|
+
_context2.next = 1;
|
|
167
167
|
return invoke(request);
|
|
168
|
-
case
|
|
168
|
+
case 1:
|
|
169
169
|
onAfterChanged === null || onAfterChanged === void 0 || onAfterChanged();
|
|
170
170
|
setSelected({
|
|
171
171
|
appearance: appearance,
|
|
@@ -179,30 +179,30 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
179
179
|
smartLinkActionType: TrackQuickActionType.StatusUpdate
|
|
180
180
|
});
|
|
181
181
|
if (!url) {
|
|
182
|
-
_context2.next =
|
|
182
|
+
_context2.next = 2;
|
|
183
183
|
break;
|
|
184
184
|
}
|
|
185
|
-
_context2.next =
|
|
185
|
+
_context2.next = 2;
|
|
186
186
|
return reload(url, true, undefined, linkId);
|
|
187
|
-
case
|
|
188
|
-
_context2.next =
|
|
187
|
+
case 2:
|
|
188
|
+
_context2.next = 4;
|
|
189
189
|
break;
|
|
190
|
-
case
|
|
191
|
-
_context2.prev =
|
|
192
|
-
|
|
190
|
+
case 3:
|
|
191
|
+
_context2.prev = 3;
|
|
192
|
+
_t2 = _context2["catch"](0);
|
|
193
193
|
setIsLoading(false);
|
|
194
|
-
if (isInvokeCustomError(
|
|
195
|
-
setErrorMessage(
|
|
194
|
+
if (isInvokeCustomError(_t2)) {
|
|
195
|
+
setErrorMessage(_t2.message);
|
|
196
196
|
fireEvent('track.smartLinkQuickAction.failed', validationUpdateErrorAnalyticsPayload);
|
|
197
197
|
} else {
|
|
198
198
|
setErrorMessage(LozengeActionErrorMessages.updateFailed);
|
|
199
199
|
fireEvent('track.smartLinkQuickAction.failed', unknownUpdateErrorAnalyticsPayload);
|
|
200
200
|
}
|
|
201
|
-
case
|
|
201
|
+
case 4:
|
|
202
202
|
case "end":
|
|
203
203
|
return _context2.stop();
|
|
204
204
|
}
|
|
205
|
-
}, _callee2, null, [[0,
|
|
205
|
+
}, _callee2, null, [[0, 3]]);
|
|
206
206
|
}));
|
|
207
207
|
return function (_x2, _x3, _x4) {
|
|
208
208
|
return _ref4.apply(this, arguments);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
._4cvr1h6o{align-items:center}
|
|
14
14
|
._80om13gf{cursor:not-allowed}
|
|
15
15
|
._80omtlke{cursor:pointer}
|
|
16
|
-
.
|
|
16
|
+
._bfhk187o{background-color:var(--ds-background-disabled,#0515240f)}
|
|
17
17
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
18
18
|
._bfhkjmqp{background-color:var(--ds-background-selected-bold,#1868db)}
|
|
19
19
|
._ca0qt94y{padding-top:1px}
|
|
@@ -14,7 +14,7 @@ var styles = {
|
|
|
14
14
|
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
15
15
|
innerContainerSocialProofConnect: "_2rko12b0 _syaz15cr _80omtlke _bfhkjmqp _2hwxv77o _1e0c1nu9 _4cvr1h6o _1wybtjj4 _1y1m1u8q _16d9qvcn _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _s7n4t94y _o5721btx _1nmz9jpi _irr31q28 _1di612kk",
|
|
16
16
|
enabled: "_syazi7uo _80omtlke _bfhki8nm _irr3plhp _1di61gdz",
|
|
17
|
-
disabled: "_syaz1gmx _80om13gf
|
|
17
|
+
disabled: "_syaz1gmx _80om13gf _bfhk187o",
|
|
18
18
|
unauthorised: "_syaz15cr _80omtlke _bfhkjmqp _qrwqlb4i _1o0zlb4i _13lilb4i _mrkblb4i _ca0qt94y _n3tdt94y _2hwxt94y _k48pi7a9 _irr31q28 _1di612kk"
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "44.16.
|
|
15
|
+
packageVersion: "44.16.6",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -54,72 +54,72 @@ var RelatedLinksModal = function RelatedLinksModal(_ref) {
|
|
|
54
54
|
*/
|
|
55
55
|
var resolveAris = useCallback( /*#__PURE__*/function () {
|
|
56
56
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(aris) {
|
|
57
|
-
var urlArray, batchResponse, _iterator, _step, res, url;
|
|
58
|
-
return _regeneratorRuntime.wrap(function
|
|
57
|
+
var urlArray, batchResponse, _iterator, _step, res, url, _t;
|
|
58
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
59
59
|
while (1) switch (_context.prev = _context.next) {
|
|
60
60
|
case 0:
|
|
61
61
|
if (!(aris.length === 0)) {
|
|
62
|
-
_context.next =
|
|
62
|
+
_context.next = 1;
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
65
|
return _context.abrupt("return", []);
|
|
66
|
-
case
|
|
66
|
+
case 1:
|
|
67
67
|
urlArray = [];
|
|
68
|
-
_context.next =
|
|
68
|
+
_context.next = 2;
|
|
69
69
|
return connections.client.fetchDataAris(aris);
|
|
70
|
-
case
|
|
70
|
+
case 2:
|
|
71
71
|
batchResponse = _context.sent;
|
|
72
72
|
_iterator = _createForOfIteratorHelper(batchResponse);
|
|
73
|
-
_context.prev =
|
|
73
|
+
_context.prev = 3;
|
|
74
74
|
_iterator.s();
|
|
75
|
-
case
|
|
75
|
+
case 4:
|
|
76
76
|
if ((_step = _iterator.n()).done) {
|
|
77
|
-
_context.next =
|
|
77
|
+
_context.next = 9;
|
|
78
78
|
break;
|
|
79
79
|
}
|
|
80
80
|
res = _step.value;
|
|
81
81
|
if (isGrantedResponse(res)) {
|
|
82
|
-
_context.next =
|
|
82
|
+
_context.next = 5;
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
|
-
return _context.abrupt("continue",
|
|
86
|
-
case
|
|
85
|
+
return _context.abrupt("continue", 8);
|
|
86
|
+
case 5:
|
|
87
87
|
if (res.body.data) {
|
|
88
|
-
_context.next =
|
|
88
|
+
_context.next = 6;
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
|
-
return _context.abrupt("continue",
|
|
92
|
-
case
|
|
91
|
+
return _context.abrupt("continue", 8);
|
|
92
|
+
case 6:
|
|
93
93
|
url = 'url' in res.body.data && extractLink(res.body.data);
|
|
94
94
|
if (url) {
|
|
95
|
-
_context.next =
|
|
95
|
+
_context.next = 7;
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
|
-
return _context.abrupt("continue",
|
|
99
|
-
case
|
|
98
|
+
return _context.abrupt("continue", 8);
|
|
99
|
+
case 7:
|
|
100
100
|
handleResolvedLinkResponse(url, res.body, false, false);
|
|
101
101
|
urlArray.push(url);
|
|
102
|
-
case
|
|
103
|
-
_context.next =
|
|
102
|
+
case 8:
|
|
103
|
+
_context.next = 4;
|
|
104
104
|
break;
|
|
105
|
-
case
|
|
106
|
-
_context.next =
|
|
105
|
+
case 9:
|
|
106
|
+
_context.next = 11;
|
|
107
107
|
break;
|
|
108
|
-
case
|
|
109
|
-
_context.prev =
|
|
110
|
-
|
|
111
|
-
_iterator.e(
|
|
112
|
-
case
|
|
113
|
-
_context.prev =
|
|
108
|
+
case 10:
|
|
109
|
+
_context.prev = 10;
|
|
110
|
+
_t = _context["catch"](3);
|
|
111
|
+
_iterator.e(_t);
|
|
112
|
+
case 11:
|
|
113
|
+
_context.prev = 11;
|
|
114
114
|
_iterator.f();
|
|
115
|
-
return _context.finish(
|
|
116
|
-
case
|
|
115
|
+
return _context.finish(11);
|
|
116
|
+
case 12:
|
|
117
117
|
return _context.abrupt("return", urlArray);
|
|
118
|
-
case
|
|
118
|
+
case 13:
|
|
119
119
|
case "end":
|
|
120
120
|
return _context.stop();
|
|
121
121
|
}
|
|
122
|
-
}, _callee, null, [[
|
|
122
|
+
}, _callee, null, [[3, 10, 11, 12]]);
|
|
123
123
|
}));
|
|
124
124
|
return function (_x) {
|
|
125
125
|
return _ref2.apply(this, arguments);
|
|
@@ -132,39 +132,39 @@ var RelatedLinksModal = function RelatedLinksModal(_ref) {
|
|
|
132
132
|
*/
|
|
133
133
|
var fetchIncomingOutgoingData = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
134
134
|
var _yield$getIncomingOut, incomingAris, outgoingAris, incomingRejected, outGoingRejected, _yield$Promise$all, _yield$Promise$all2, incomingUrls, outgoingUrls;
|
|
135
|
-
return _regeneratorRuntime.wrap(function
|
|
135
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
136
136
|
while (1) switch (_context2.prev = _context2.next) {
|
|
137
137
|
case 0:
|
|
138
|
-
_context2.next =
|
|
138
|
+
_context2.next = 1;
|
|
139
139
|
return getIncomingOutgoingAris(ari);
|
|
140
|
-
case
|
|
140
|
+
case 1:
|
|
141
141
|
_yield$getIncomingOut = _context2.sent;
|
|
142
142
|
incomingAris = _yield$getIncomingOut.incomingAris;
|
|
143
143
|
outgoingAris = _yield$getIncomingOut.outgoingAris;
|
|
144
144
|
incomingRejected = false;
|
|
145
145
|
outGoingRejected = false;
|
|
146
|
-
_context2.next =
|
|
146
|
+
_context2.next = 2;
|
|
147
147
|
return Promise.all([resolveAris(incomingAris).catch(function () {
|
|
148
148
|
incomingRejected = true;
|
|
149
149
|
}), resolveAris(outgoingAris).catch(function () {
|
|
150
150
|
outGoingRejected = true;
|
|
151
151
|
})]);
|
|
152
|
-
case
|
|
152
|
+
case 2:
|
|
153
153
|
_yield$Promise$all = _context2.sent;
|
|
154
154
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
155
155
|
incomingUrls = _yield$Promise$all2[0];
|
|
156
156
|
outgoingUrls = _yield$Promise$all2[1];
|
|
157
157
|
if (!(incomingRejected && outGoingRejected)) {
|
|
158
|
-
_context2.next =
|
|
158
|
+
_context2.next = 3;
|
|
159
159
|
break;
|
|
160
160
|
}
|
|
161
161
|
throw new Error('both incoming and outgoing resolve request were rejected');
|
|
162
|
-
case
|
|
162
|
+
case 3:
|
|
163
163
|
return _context2.abrupt("return", {
|
|
164
164
|
incomingUrls: incomingUrls !== null && incomingUrls !== void 0 ? incomingUrls : [],
|
|
165
165
|
outgoingUrls: outgoingUrls !== null && outgoingUrls !== void 0 ? outgoingUrls : []
|
|
166
166
|
});
|
|
167
|
-
case
|
|
167
|
+
case 4:
|
|
168
168
|
case "end":
|
|
169
169
|
return _context2.stop();
|
|
170
170
|
}
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -4,183 +4,5 @@
|
|
|
4
4
|
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'automation-menu.empty-state.image.alt': string;
|
|
10
|
-
'automation-menu.empty-state.learn-more.link': string;
|
|
11
|
-
'automation-menu.modal.empty.automations.admin.description': string;
|
|
12
|
-
'automation-menu.modal.empty.automations.user.description': string;
|
|
13
|
-
'automation-menu.modal.error.description': string;
|
|
14
|
-
'automation-menu.modal.error.image.alt': string;
|
|
15
|
-
'automation-menu.modal.footer.automate-button': string;
|
|
16
|
-
'automation-menu.modal.footer.cancel-button': string;
|
|
17
|
-
'automation-menu.modal.footer.get-started-button': string;
|
|
18
|
-
'automation-menu.modal.footer.ok-button': string;
|
|
19
|
-
'automation-menu.modal.header.icon.label': string;
|
|
20
|
-
'automation-menu.success-state.message': string;
|
|
21
|
-
'fabric.linking.access_exists_description': string;
|
|
22
|
-
'fabric.linking.actions': string;
|
|
23
|
-
'fabric.linking.add_account': string;
|
|
24
|
-
'fabric.linking.ai_summarize': string;
|
|
25
|
-
'fabric.linking.ai_summarized': string;
|
|
26
|
-
'fabric.linking.ai_summarized_abbreviation': string;
|
|
27
|
-
'fabric.linking.ai_summarized_info': string;
|
|
28
|
-
'fabric.linking.ai_summarized_info_short': string;
|
|
29
|
-
'fabric.linking.ai_summarizing': string;
|
|
30
|
-
'fabric.linking.ai_summary_action': string;
|
|
31
|
-
'fabric.linking.ai_summary_action_description': string;
|
|
32
|
-
'fabric.linking.ai_summary_error_acceptable_use_violation': string;
|
|
33
|
-
'fabric.linking.ai_summary_error_exceeding_context_length_error': string;
|
|
34
|
-
'fabric.linking.ai_summary_error_generic': string;
|
|
35
|
-
'fabric.linking.ai_summary_error_hipaa_content_detected': string;
|
|
36
|
-
'fabric.linking.assigned_to': string;
|
|
37
|
-
'fabric.linking.automation-action.confluence.page.modal.description': string;
|
|
38
|
-
'fabric.linking.automation-action.confluence.page.modal.title': string;
|
|
39
|
-
'fabric.linking.automation-action.icon.label': string;
|
|
40
|
-
'fabric.linking.automation-action.title': string;
|
|
41
|
-
'fabric.linking.automation-action.tooltip': string;
|
|
42
|
-
'fabric.linking.beta': string;
|
|
43
|
-
'fabric.linking.cancel': string;
|
|
44
|
-
'fabric.linking.cannot_connect': string;
|
|
45
|
-
'fabric.linking.cannot_find_link': string;
|
|
46
|
-
'fabric.linking.check_this_link': string;
|
|
47
|
-
'fabric.linking.click_to_join': string;
|
|
48
|
-
'fabric.linking.click_to_join_description': string;
|
|
49
|
-
'fabric.linking.close': string;
|
|
50
|
-
'fabric.linking.connect_account_description': string;
|
|
51
|
-
'fabric.linking.connect_link_account': string;
|
|
52
|
-
'fabric.linking.connect_link_account_card_view': string;
|
|
53
|
-
'fabric.linking.connect_link_account_card_view_description': string;
|
|
54
|
-
'fabric.linking.connect_link_account_card_view_name': string;
|
|
55
|
-
'fabric.linking.connect_to': string;
|
|
56
|
-
'fabric.linking.connect_unauthorised_account_action': string;
|
|
57
|
-
'fabric.linking.connect_unauthorised_account_description': string;
|
|
58
|
-
'fabric.linking.connect_unauthorised_account_description-appify': string;
|
|
59
|
-
'fabric.linking.connect_unauthorised_account_description_no_provider': string;
|
|
60
|
-
'fabric.linking.connect_unauthorised_account_description_no_provider-appify': string;
|
|
61
|
-
'fabric.linking.continue': string;
|
|
62
|
-
'fabric.linking.copied_summary_action_description': string;
|
|
63
|
-
'fabric.linking.copied_url_to_clipboard': string;
|
|
64
|
-
'fabric.linking.copy_summary_action': string;
|
|
65
|
-
'fabric.linking.copy_summary_action_description': string;
|
|
66
|
-
'fabric.linking.copy_url_to_clipboard': string;
|
|
67
|
-
'fabric.linking.couldnt_load_link': string;
|
|
68
|
-
'fabric.linking.create_on_absolute': string;
|
|
69
|
-
'fabric.linking.create_on_relative': string;
|
|
70
|
-
'fabric.linking.created_by': string;
|
|
71
|
-
'fabric.linking.delete': string;
|
|
72
|
-
'fabric.linking.direct_access': string;
|
|
73
|
-
'fabric.linking.direct_access_description': string;
|
|
74
|
-
'fabric.linking.direct_access_title': string;
|
|
75
|
-
'fabric.linking.download': string;
|
|
76
|
-
'fabric.linking.download_description': string;
|
|
77
|
-
'fabric.linking.download_file': string;
|
|
78
|
-
'fabric.linking.edit': string;
|
|
79
|
-
'fabric.linking.follow': string;
|
|
80
|
-
'fabric.linking.follow_goal': string;
|
|
81
|
-
'fabric.linking.follow_goal_description': string;
|
|
82
|
-
'fabric.linking.follow_goal_error': string;
|
|
83
|
-
'fabric.linking.follow_project': string;
|
|
84
|
-
'fabric.linking.follow_project_description': string;
|
|
85
|
-
'fabric.linking.follow_project_description-galaxia': string;
|
|
86
|
-
'fabric.linking.follow_project_error': string;
|
|
87
|
-
'fabric.linking.follow_project_error-galaxia': string;
|
|
88
|
-
'fabric.linking.forbidden_access': string;
|
|
89
|
-
'fabric.linking.forbidden_description': string;
|
|
90
|
-
'fabric.linking.forbidden_title': string;
|
|
91
|
-
'fabric.linking.generic_error_message': string;
|
|
92
|
-
'fabric.linking.go_back': string;
|
|
93
|
-
'fabric.linking.invalid_permissions': string;
|
|
94
|
-
'fabric.linking.invalid_permissions_description': string;
|
|
95
|
-
'fabric.linking.join_to_view': string;
|
|
96
|
-
'fabric.linking.join_to_view-issue-term-refresh': string;
|
|
97
|
-
'fabric.linking.learn_more_about_connecting_account': string;
|
|
98
|
-
'fabric.linking.learn_more_about_connecting_account-appify': string;
|
|
99
|
-
'fabric.linking.learn_more_about_smart_links': string;
|
|
100
|
-
'fabric.linking.link_safety_warning_message': string;
|
|
101
|
-
'fabric.linking.loading': string;
|
|
102
|
-
'fabric.linking.modified_on_absolute': string;
|
|
103
|
-
'fabric.linking.modified_on_relative': string;
|
|
104
|
-
'fabric.linking.more_actions': string;
|
|
105
|
-
'fabric.linking.no_access_title': string;
|
|
106
|
-
'fabric.linking.not_found_description': string;
|
|
107
|
-
'fabric.linking.not_found_title': string;
|
|
108
|
-
'fabric.linking.open_issue_in_jira': string;
|
|
109
|
-
'fabric.linking.open_issue_in_jira-issue-term-refresh': string;
|
|
110
|
-
'fabric.linking.open_link_in_a_new_tab': string;
|
|
111
|
-
'fabric.linking.owned_by': string;
|
|
112
|
-
'fabric.linking.owned_by_override': string;
|
|
113
|
-
'fabric.linking.pending_request': string;
|
|
114
|
-
'fabric.linking.preview_close': string;
|
|
115
|
-
'fabric.linking.preview_description': string;
|
|
116
|
-
'fabric.linking.preview_improved': string;
|
|
117
|
-
'fabric.linking.preview_max_size': string;
|
|
118
|
-
'fabric.linking.preview_min_size': string;
|
|
119
|
-
'fabric.linking.preview_modal': string;
|
|
120
|
-
'fabric.linking.preview_panel': string;
|
|
121
|
-
'fabric.linking.priority_blocker': string;
|
|
122
|
-
'fabric.linking.priority_critical': string;
|
|
123
|
-
'fabric.linking.priority_high': string;
|
|
124
|
-
'fabric.linking.priority_highest': string;
|
|
125
|
-
'fabric.linking.priority_low': string;
|
|
126
|
-
'fabric.linking.priority_lowest': string;
|
|
127
|
-
'fabric.linking.priority_major': string;
|
|
128
|
-
'fabric.linking.priority_medium': string;
|
|
129
|
-
'fabric.linking.priority_minor': string;
|
|
130
|
-
'fabric.linking.priority_trivial': string;
|
|
131
|
-
'fabric.linking.priority_undefined': string;
|
|
132
|
-
'fabric.linking.read_time': string;
|
|
133
|
-
'fabric.linking.related': string;
|
|
134
|
-
'fabric.linking.related_links_found_in': string;
|
|
135
|
-
'fabric.linking.related_links_includes_links_to': string;
|
|
136
|
-
'fabric.linking.related_links_modal_error_description': string;
|
|
137
|
-
'fabric.linking.related_links_modal_error_title': string;
|
|
138
|
-
'fabric.linking.related_links_modal_title': string;
|
|
139
|
-
'fabric.linking.related_links_modal_unavailable_description': string;
|
|
140
|
-
'fabric.linking.related_links_modal_unavailable_title': string;
|
|
141
|
-
'fabric.linking.related_links_not_found': string;
|
|
142
|
-
'fabric.linking.related_links_view_related_links': string;
|
|
143
|
-
'fabric.linking.related_links_view_related_urls': string;
|
|
144
|
-
'fabric.linking.request_access': string;
|
|
145
|
-
'fabric.linking.request_access_description': string;
|
|
146
|
-
'fabric.linking.request_access_pending': string;
|
|
147
|
-
'fabric.linking.request_access_pending_description': string;
|
|
148
|
-
'fabric.linking.request_access_pending_title': string;
|
|
149
|
-
'fabric.linking.request_access_to_view': string;
|
|
150
|
-
'fabric.linking.request_access_to_view-issue-term-refresh': string;
|
|
151
|
-
'fabric.linking.request_denied': string;
|
|
152
|
-
'fabric.linking.request_denied_description': string;
|
|
153
|
-
'fabric.linking.restricted_link': string;
|
|
154
|
-
'fabric.linking.retry': string;
|
|
155
|
-
'fabric.linking.save': string;
|
|
156
|
-
'fabric.linking.sent_on_absolute': string;
|
|
157
|
-
'fabric.linking.sent_on_relative': string;
|
|
158
|
-
'fabric.linking.srclink': string;
|
|
159
|
-
'fabric.linking.srclinkunknown': string;
|
|
160
|
-
'fabric.linking.status_change_load_error': string;
|
|
161
|
-
'fabric.linking.status_change_permission_error': string;
|
|
162
|
-
'fabric.linking.status_change_permission_error-issue-term-refresh': string;
|
|
163
|
-
'fabric.linking.status_change_update_error': string;
|
|
164
|
-
'fabric.linking.team_members_count': string;
|
|
165
|
-
'fabric.linking.try_again': string;
|
|
166
|
-
'fabric.linking.try_another_account': string;
|
|
167
|
-
'fabric.linking.unassigned': string;
|
|
168
|
-
'fabric.linking.unauthorised_account_description': string;
|
|
169
|
-
'fabric.linking.unauthorised_account_description_no_provider': string;
|
|
170
|
-
'fabric.linking.unauthorised_account_name': string;
|
|
171
|
-
'fabric.linking.unauthorised_account_name_no_provider': string;
|
|
172
|
-
'fabric.linking.unfollow': string;
|
|
173
|
-
'fabric.linking.unfollow_goal': string;
|
|
174
|
-
'fabric.linking.unfollow_goal_description': string;
|
|
175
|
-
'fabric.linking.unfollow_goal_error': string;
|
|
176
|
-
'fabric.linking.unfollow_project': string;
|
|
177
|
-
'fabric.linking.unfollow_project_description': string;
|
|
178
|
-
'fabric.linking.unfollow_project_description-galaxia': string;
|
|
179
|
-
'fabric.linking.unfollow_project_error': string;
|
|
180
|
-
'fabric.linking.unfollow_project_error-galaxia': string;
|
|
181
|
-
'fabric.linking.unlink_account': string;
|
|
182
|
-
'fabric.linking.updated_by': string;
|
|
183
|
-
'fabric.linking.user_attributes': string;
|
|
184
|
-
'fabric.linking.view': string;
|
|
185
|
-
};
|
|
186
|
-
export default _default;
|
|
7
|
+
import translations from '@atlaskit/afm-i18n-platform-linking-platform-smart-card/i18n/cs';
|
|
8
|
+
export default translations;
|