@atlassian/atlassian-connect-js 5.3.200 → 5.3.202
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/dist/connect-host.js
CHANGED
|
@@ -9760,9 +9760,6 @@
|
|
|
9760
9760
|
}
|
|
9761
9761
|
return getFeatureGateConfluenceLegacy(flagName);
|
|
9762
9762
|
}
|
|
9763
|
-
var Flags = {
|
|
9764
|
-
getBooleanFeatureFlag: getBooleanFeatureFlag
|
|
9765
|
-
};
|
|
9766
9763
|
|
|
9767
9764
|
var performanceModuleDefined = false;
|
|
9768
9765
|
var ADDON_KEY_CODEBARREL = 'com.codebarrel.addons.automation';
|
|
@@ -9889,7 +9886,7 @@
|
|
|
9889
9886
|
return resolveBooleanFlag(name);
|
|
9890
9887
|
}
|
|
9891
9888
|
|
|
9892
|
-
var allowedPlatformFeatureFlags = ['platform-visual-refresh-icons'
|
|
9889
|
+
var allowedPlatformFeatureFlags = ['platform-visual-refresh-icons'];
|
|
9893
9890
|
function isPlatformAllowedFeatureFlag(flagName) {
|
|
9894
9891
|
return allowedPlatformFeatureFlags.includes(flagName);
|
|
9895
9892
|
}
|
|
@@ -10030,7 +10027,7 @@
|
|
|
10030
10027
|
var $additionalText = $('<p />').text(text);
|
|
10031
10028
|
$error.append('<p class="error">Error: The content resolver threw the following error:</p>');
|
|
10032
10029
|
$error.append($additionalText);
|
|
10033
|
-
if (
|
|
10030
|
+
if (traceId) {
|
|
10034
10031
|
$error.append("<br><p class=\"error-trace-id\">If this keeps happening, pass this information to your admin, who should contact support. Trace: " + traceId + ".</p>");
|
|
10035
10032
|
}
|
|
10036
10033
|
$container.prepend($error);
|
|
@@ -13862,7 +13859,7 @@
|
|
|
13862
13859
|
* Add version
|
|
13863
13860
|
*/
|
|
13864
13861
|
if (!window._AP.version) {
|
|
13865
|
-
window._AP.version = '5.3.
|
|
13862
|
+
window._AP.version = '5.3.202';
|
|
13866
13863
|
}
|
|
13867
13864
|
simpleXDM.defineModule('messages', messages);
|
|
13868
13865
|
simpleXDM.defineModule('flag', flag);
|
package/dist/iframe-fedramp.js
CHANGED
|
@@ -1373,7 +1373,7 @@ var AP = (function () {
|
|
|
1373
1373
|
_this._eventHandlers = {};
|
|
1374
1374
|
_this._pendingCallbacks = {};
|
|
1375
1375
|
_this._keyListeners = [];
|
|
1376
|
-
_this._version = '5.3.
|
|
1376
|
+
_this._version = '5.3.202';
|
|
1377
1377
|
_this._apiTampered = undefined;
|
|
1378
1378
|
_this._isSubIframe = _this._topHost !== window.parent;
|
|
1379
1379
|
_this._onConfirmedFns = [];
|
package/dist/iframe.js
CHANGED
|
@@ -1373,7 +1373,7 @@ var AP = (function () {
|
|
|
1373
1373
|
_this._eventHandlers = {};
|
|
1374
1374
|
_this._pendingCallbacks = {};
|
|
1375
1375
|
_this._keyListeners = [];
|
|
1376
|
-
_this._version = '5.3.
|
|
1376
|
+
_this._version = '5.3.202';
|
|
1377
1377
|
_this._apiTampered = undefined;
|
|
1378
1378
|
_this._isSubIframe = _this._topHost !== window.parent;
|
|
1379
1379
|
_this._onConfirmedFns = [];
|
package/package.json
CHANGED
|
@@ -226,35 +226,18 @@ describe('Iframe component', () => {
|
|
|
226
226
|
});
|
|
227
227
|
|
|
228
228
|
describe('_appendExtensionError', () => {
|
|
229
|
-
it('displays error message
|
|
229
|
+
it('displays error message with trace ID when traceId is provided', () => {
|
|
230
230
|
var $container = $('<div />');
|
|
231
231
|
var traceId = 'trace-123';
|
|
232
|
-
spyOn(Flags, 'getBooleanFeatureFlag').and.callFake((flag) => (
|
|
233
|
-
!(flag === 'display_trace_for_confluence_top_errors')
|
|
234
|
-
));
|
|
235
|
-
IframeComponent._appendExtensionError($container, 'test error message', traceId);
|
|
236
|
-
expect($container.find('.connect-resolve-error').length).toEqual(1);
|
|
237
|
-
expect($container.find('.error').text()).toContain('Error: The content resolver threw the following error:');
|
|
238
|
-
expect($container.find('.error-trace-id').length).toBe(0);
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
it('displays error message with trace ID when gate display_trace_for_confluence_top_errors is on', () => {
|
|
242
|
-
var $container = $('<div />');
|
|
243
|
-
var traceId = 'trace-123';
|
|
244
|
-
spyOn(Flags, 'getBooleanFeatureFlag').and.callFake((flag) => (
|
|
245
|
-
flag === 'display_trace_for_confluence_top_errors'
|
|
246
|
-
));
|
|
247
232
|
IframeComponent._appendExtensionError($container, 'test error message', traceId);
|
|
248
233
|
expect($container.find('.connect-resolve-error').length).toEqual(1);
|
|
249
234
|
expect($container.find('.error').text()).toContain('Error: The content resolver threw the following error:');
|
|
250
235
|
expect($container.find('.error-trace-id').text()).toContain('If this keeps happening, pass this information to your admin, who should contact support. Trace: trace-123.');
|
|
251
236
|
});
|
|
252
237
|
|
|
253
|
-
|
|
238
|
+
|
|
239
|
+
it('displays error message without trace ID when traceId is not provided', () => {
|
|
254
240
|
var $container = $('<div />');
|
|
255
|
-
spyOn(Flags, 'getBooleanFeatureFlag').and.callFake((flag) => (
|
|
256
|
-
flag === 'display_trace_for_confluence_top_errors'
|
|
257
|
-
));
|
|
258
241
|
IframeComponent._appendExtensionError($container, 'test error message');
|
|
259
242
|
expect($container.find('.connect-resolve-error').length).toEqual(1);
|
|
260
243
|
expect($container.find('.error').text()).toContain('Error: The content resolver threw the following error:');
|
|
@@ -77,7 +77,7 @@ class Iframe {
|
|
|
77
77
|
$error.append('<p class="error">Error: The content resolver threw the following error:</p>');
|
|
78
78
|
$error.append($additionalText);
|
|
79
79
|
|
|
80
|
-
if (
|
|
80
|
+
if (traceId) {
|
|
81
81
|
$error.append(`<br><p class="error-trace-id">If this keeps happening, pass this information to your admin, who should contact support. Trace: ${traceId}.</p>`);
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -2,10 +2,7 @@ import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
|
2
2
|
import getBooleanFeatureFlag from '../utils/feature-flag';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
|
|
5
|
-
const allowedPlatformFeatureFlags = [
|
|
6
|
-
'platform-visual-refresh-icons',
|
|
7
|
-
'acjs_new_font'
|
|
8
|
-
]
|
|
5
|
+
const allowedPlatformFeatureFlags = ['platform-visual-refresh-icons'];
|
|
9
6
|
|
|
10
7
|
function isPlatformAllowedFeatureFlag(flagName) {
|
|
11
8
|
return allowedPlatformFeatureFlags.includes(flagName);
|