@atlassian/atlassian-connect-js 5.3.200 → 5.3.201

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.
@@ -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';
@@ -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 (Flags.getBooleanFeatureFlag('display_trace_for_confluence_top_errors') && traceId) {
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.200';
13862
+ window._AP.version = '5.3.201';
13866
13863
  }
13867
13864
  simpleXDM.defineModule('messages', messages);
13868
13865
  simpleXDM.defineModule('flag', flag);
@@ -1373,7 +1373,7 @@ var AP = (function () {
1373
1373
  _this._eventHandlers = {};
1374
1374
  _this._pendingCallbacks = {};
1375
1375
  _this._keyListeners = [];
1376
- _this._version = '5.3.200';
1376
+ _this._version = '5.3.201';
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.200';
1376
+ _this._version = '5.3.201';
1377
1377
  _this._apiTampered = undefined;
1378
1378
  _this._isSubIframe = _this._topHost !== window.parent;
1379
1379
  _this._onConfirmedFns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlassian/atlassian-connect-js",
3
- "version": "5.3.200",
3
+ "version": "5.3.201",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Atlassian Connect JavaScript bridge",
6
6
  "main": "dist/connect-host.js",
@@ -226,35 +226,18 @@ describe('Iframe component', () => {
226
226
  });
227
227
 
228
228
  describe('_appendExtensionError', () => {
229
- it('displays error message without trace ID when gate display_trace_for_confluence_top_errors is off', () => {
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
- it('displays error message without trace ID when traceId is not provided and gate display_trace_for_confluence_top_errors is on', () => {
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 (Flags.getBooleanFeatureFlag('display_trace_for_confluence_top_errors') && traceId) {
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