@atlassian/atlassian-connect-js 5.3.210 → 5.3.211
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
|
@@ -8615,29 +8615,6 @@
|
|
|
8615
8615
|
featureFlag: featureFlag
|
|
8616
8616
|
}
|
|
8617
8617
|
}, _this$_trackAndForwar["source"] = 'Host', _this$_trackAndForwar));
|
|
8618
|
-
}
|
|
8619
|
-
|
|
8620
|
-
/**
|
|
8621
|
-
* Tracks when a Connect iframe is clicked
|
|
8622
|
-
*/;
|
|
8623
|
-
_proto.trackGasV3IframeClicked = function trackGasV3IframeClicked(data) {
|
|
8624
|
-
// Check feature flag to disable analytics when enabled
|
|
8625
|
-
var isAnalyticsDisabled = getBooleanFeatureFlag('hoc-2574-disable-connect-iframeclicked');
|
|
8626
|
-
if (isAnalyticsDisabled) {
|
|
8627
|
-
// Analytics disabled by feature flag - skip tracking
|
|
8628
|
-
return;
|
|
8629
|
-
}
|
|
8630
|
-
this._trackAndForwardGasV3('ui', {
|
|
8631
|
-
action: 'iframeClicked',
|
|
8632
|
-
actionSubject: 'connectAddon',
|
|
8633
|
-
source: 'host',
|
|
8634
|
-
attributes: {
|
|
8635
|
-
appId: data.addonKey,
|
|
8636
|
-
moduleType: data.moduleType,
|
|
8637
|
-
moduleLocation: data.moduleLocation,
|
|
8638
|
-
baseUrl: data.baseUrl
|
|
8639
|
-
}
|
|
8640
|
-
});
|
|
8641
8618
|
};
|
|
8642
8619
|
return AnalyticsDispatcher;
|
|
8643
8620
|
}();
|
|
@@ -8689,9 +8666,6 @@
|
|
|
8689
8666
|
EventDispatcher$1.register('analytics-legacy-dialog-opened', function (data) {
|
|
8690
8667
|
analytics$1.trackGasV3LegacyDialogOpened(data);
|
|
8691
8668
|
});
|
|
8692
|
-
EventDispatcher$1.register('analytics-track-iframe-clicked', function (data) {
|
|
8693
|
-
analytics$1.trackGasV3IframeClicked(data);
|
|
8694
|
-
});
|
|
8695
8669
|
|
|
8696
8670
|
var DialogUtils = /*#__PURE__*/function () {
|
|
8697
8671
|
function DialogUtils() {}
|
|
@@ -10270,9 +10244,6 @@
|
|
|
10270
10244
|
extension: extension
|
|
10271
10245
|
});
|
|
10272
10246
|
}
|
|
10273
|
-
},
|
|
10274
|
-
trackIframeClick: function trackIframeClick(data) {
|
|
10275
|
-
EventDispatcher$1.dispatch('analytics-track-iframe-clicked', data);
|
|
10276
10247
|
}
|
|
10277
10248
|
};
|
|
10278
10249
|
|
|
@@ -13880,7 +13851,7 @@
|
|
|
13880
13851
|
* Add version
|
|
13881
13852
|
*/
|
|
13882
13853
|
if (!window._AP.version) {
|
|
13883
|
-
window._AP.version = '5.3.
|
|
13854
|
+
window._AP.version = '5.3.211';
|
|
13884
13855
|
}
|
|
13885
13856
|
simpleXDM.defineModule('messages', messages);
|
|
13886
13857
|
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.211';
|
|
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.211';
|
|
1377
1377
|
_this._apiTampered = undefined;
|
|
1378
1378
|
_this._isSubIframe = _this._topHost !== window.parent;
|
|
1379
1379
|
_this._onConfirmedFns = [];
|
package/package.json
CHANGED
|
@@ -72,49 +72,6 @@ describe('Analytics Dispatcher', () => {
|
|
|
72
72
|
},
|
|
73
73
|
source: 'connectAddon'
|
|
74
74
|
});
|
|
75
|
-
|
|
76
|
-
describe('trackGasV3IframeClicked', () => {
|
|
77
|
-
const testData = {
|
|
78
|
-
addonKey: 'test-addon',
|
|
79
|
-
moduleType: 'generalPage',
|
|
80
|
-
moduleLocation: 'main-nav',
|
|
81
|
-
baseUrl: 'https://test.atlassian.net'
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
beforeEach(() => {
|
|
85
|
-
spyOn(AnalyticsDispatcher, '_trackAndForwardGasV3');
|
|
86
|
-
spyOn(getBooleanFeatureFlag);
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
it('should track analytics when feature flag is disabled', () => {
|
|
90
|
-
getBooleanFeatureFlag.and.returnValue(false);
|
|
91
|
-
|
|
92
|
-
AnalyticsDispatcher.trackGasV3IframeClicked(testData);
|
|
93
|
-
|
|
94
|
-
expect(getBooleanFeatureFlag).toHaveBeenCalledWith('hoc-2574-disable-connect-iframeclicked');
|
|
95
|
-
expect(AnalyticsDispatcher._trackAndForwardGasV3).toHaveBeenCalledWith('ui', {
|
|
96
|
-
action: 'iframeClicked',
|
|
97
|
-
actionSubject: 'connectAddon',
|
|
98
|
-
source: 'host',
|
|
99
|
-
attributes: {
|
|
100
|
-
appId: testData.addonKey,
|
|
101
|
-
moduleType: testData.moduleType,
|
|
102
|
-
moduleLocation: testData.moduleLocation,
|
|
103
|
-
baseUrl: testData.baseUrl,
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
it('should NOT track analytics when feature flag is enabled', () => {
|
|
109
|
-
getBooleanFeatureFlag.and.returnValue(true);
|
|
110
|
-
|
|
111
|
-
AnalyticsDispatcher.trackGasV3IframeClicked(testData);
|
|
112
|
-
|
|
113
|
-
expect(getBooleanFeatureFlag).toHaveBeenCalledWith('hoc-2574-disable-connect-iframeclicked');
|
|
114
|
-
expect(AnalyticsDispatcher._trackAndForwardGasV3).not.toHaveBeenCalled();
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
|
|
118
75
|
});
|
|
119
76
|
|
|
120
77
|
it('removes the timeout when the entry is removed from addon store', () => {
|
|
@@ -28,8 +28,5 @@ export default {
|
|
|
28
28
|
if (metrics && Object.keys(metrics).length > 0) {
|
|
29
29
|
EventDispatcher.dispatch('analytics-web-vitals', {metrics, extension});
|
|
30
30
|
}
|
|
31
|
-
},
|
|
32
|
-
trackIframeClick(data) {
|
|
33
|
-
EventDispatcher.dispatch('analytics-track-iframe-clicked', data)
|
|
34
31
|
}
|
|
35
32
|
};
|
|
@@ -441,31 +441,6 @@ class AnalyticsDispatcher {
|
|
|
441
441
|
source: 'Host'
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Tracks when a Connect iframe is clicked
|
|
447
|
-
*/
|
|
448
|
-
trackGasV3IframeClicked(data) {
|
|
449
|
-
// Check feature flag to disable analytics when enabled
|
|
450
|
-
const isAnalyticsDisabled = getBooleanFeatureFlag('hoc-2574-disable-connect-iframeclicked');
|
|
451
|
-
|
|
452
|
-
if (isAnalyticsDisabled) {
|
|
453
|
-
// Analytics disabled by feature flag - skip tracking
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
this._trackAndForwardGasV3('ui', {
|
|
458
|
-
action: 'iframeClicked',
|
|
459
|
-
actionSubject: 'connectAddon',
|
|
460
|
-
source: 'host',
|
|
461
|
-
attributes: {
|
|
462
|
-
appId: data.addonKey,
|
|
463
|
-
moduleType: data.moduleType,
|
|
464
|
-
moduleLocation: data.moduleLocation,
|
|
465
|
-
baseUrl: data.baseUrl,
|
|
466
|
-
}
|
|
467
|
-
})
|
|
468
|
-
}
|
|
469
444
|
}
|
|
470
445
|
|
|
471
446
|
var analytics = new AnalyticsDispatcher();
|
|
@@ -526,10 +501,4 @@ EventDispatcher.register('analytics-legacy-dialog-opened', function (data) {
|
|
|
526
501
|
analytics.trackGasV3LegacyDialogOpened(data);
|
|
527
502
|
});
|
|
528
503
|
|
|
529
|
-
EventDispatcher.register('analytics-track-iframe-clicked', function (data) {
|
|
530
|
-
analytics.trackGasV3IframeClicked(data);
|
|
531
|
-
})
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
504
|
export default analytics;
|