@atlassian/atlassian-connect-js 5.3.195 → 5.3.197
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/.envrc +4 -4
- package/.netrc +1 -1
- package/dist/connect-host.js +120 -109
- package/dist/iframe-fedramp.js +328 -302
- package/dist/iframe.js +328 -302
- package/package.json +2 -2
- package/spec/tests/amd_spec.js +1 -1
- package/spec/tests/analytics_performance_spec.js +1 -1
- package/spec/tests/events_spec.js +2 -2
- package/spec/tests/host-api_spec.js +2 -2
- package/spec/tests/iframe_spec.js +1 -1
- package/spec/tests/inline_dialog_webitem_spec.js +1 -1
- package/spec/tests/public_events.spec.js +2 -2
- package/spec/tests/theming_spec.js +2 -2
- package/src/host/actions/dom_event_actions.js +1 -1
- package/src/host/actions/event_actions.js +3 -3
- package/src/host/actions/iframe_actions.js +2 -2
- package/src/host/components/iframe.js +1 -1
- package/src/host/host-api.js +1 -1
- package/src/host/index.js +1 -1
- package/src/host/modules/_featureFlag.js +1 -1
- package/src/host/modules/_performance.js +1 -1
- package/src/host/modules/theming.js +1 -1
- package/src/host/utils/simplexdm.js +1 -1
- package/src/plugin/amd.js +1 -1
- package/src/plugin/analytics.js +1 -1
- package/src/plugin/deprecate.js +2 -2
- package/src/plugin/dialog.js +2 -2
- package/src/plugin/events.js +2 -2
- package/src/plugin/featureFlag.js +1 -1
- package/src/plugin/index.js +2 -2
- package/src/plugin/public-events.js +2 -2
- package/src/plugin/theming.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian/atlassian-connect-js",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.197",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Atlassian Connect JavaScript bridge",
|
|
6
6
|
"main": "dist/connect-host.js",
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
"yargs": "6.3.0"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
+
"@atlaskit/simple-xdm": "^1.0.4",
|
|
85
86
|
"@atlaskit/feature-gate-js-client": "4.23.4",
|
|
86
87
|
"@atlaskit/platform-feature-flags": "1.0.0",
|
|
87
88
|
"@atlaskit/tokens": "4.2.0",
|
|
88
89
|
"base64-js": "1.3.0",
|
|
89
90
|
"query-string": "7.1.3",
|
|
90
|
-
"simple-xdm": "^2.3.3",
|
|
91
91
|
"web-vitals": "^4.2.4"
|
|
92
92
|
},
|
|
93
93
|
"overrides": {
|
package/spec/tests/amd_spec.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AP from 'simple-xdm/plugin';
|
|
1
|
+
import AP from '@atlaskit/simple-xdm/dist/es2019/plugin';
|
|
2
2
|
AP._data.origin = '*'; // prevent AP._registerOnUnload() from failing
|
|
3
3
|
|
|
4
4
|
import Events from 'src/plugin/events';
|
|
@@ -74,4 +74,4 @@ describe('Plugin events shim', function(){
|
|
|
74
74
|
expect(targetSpecNoDialogs(registration)).toEqual(true);
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
});
|
|
77
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import HostApi from 'src/host/host-api';
|
|
2
2
|
import EventDispatcher from 'src/host/dispatchers/event_dispatcher';
|
|
3
3
|
import eventActions from 'src/host/actions/event_actions';
|
|
4
|
-
import simpleXDM from 'simple-xdm/host';
|
|
4
|
+
import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
5
5
|
|
|
6
6
|
describe('Host API', function() {
|
|
7
7
|
|
|
@@ -217,4 +217,4 @@ describe('Host API', function() {
|
|
|
217
217
|
it('exports targetSpecNoDialogs', function() {
|
|
218
218
|
expect(typeof HostApi.targetSpecNoDialogs).toBe('function');
|
|
219
219
|
});
|
|
220
|
-
});
|
|
220
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import IframeComponent from 'src/host/components/iframe';
|
|
2
2
|
import EventDispatcher from 'src/host/dispatchers/event_dispatcher';
|
|
3
|
-
import simpleXDM from 'simple-xdm/host';
|
|
3
|
+
import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
4
4
|
import urlUtil from 'src/host/utils/url';
|
|
5
5
|
import { Flags } from 'src/host/utils/feature-flag';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import simpleXDM from 'simple-xdm/host';
|
|
1
|
+
import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
2
2
|
import { InlineDialogWebItem as InlineDialogWebItemConstructor } from 'src/host/components/inline_dialog_webitem';
|
|
3
3
|
import 'src/host/components/inline_dialog';
|
|
4
4
|
import WebItemActions from 'src/host/actions/webitem_actions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AP from 'simple-xdm/plugin';
|
|
1
|
+
import AP from '@atlaskit/simple-xdm/dist/es2019/plugin';
|
|
2
2
|
AP._data.origin = '*'; // prevent AP._registerOnUnload() from failing
|
|
3
3
|
|
|
4
4
|
import events from 'src/plugin/public-events';
|
|
@@ -99,4 +99,4 @@ describe('Public plugin events shim', function(){
|
|
|
99
99
|
expect(events._events[eventName]).toEqual(undefined);
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
});
|
|
102
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import host from 'simple-xdm/host';
|
|
2
|
-
import plugin from 'simple-xdm/combined';
|
|
1
|
+
import host from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
2
|
+
import plugin from '@atlaskit/simple-xdm/dist/es2019/combined';
|
|
3
3
|
import ThemingHost, { ThemingModuleState } from '../../src/host/modules/theming';
|
|
4
4
|
import ThemingPlugin, {
|
|
5
5
|
loadLegacyTextColorStylesCdn,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import EventDispatcher from '../dispatchers/event_dispatcher';
|
|
2
|
-
import SimpleXDM from 'simple-xdm/host';
|
|
3
|
-
import SimpleXDMUtil from 'simple-xdm/
|
|
2
|
+
import SimpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
3
|
+
import SimpleXDMUtil from '@atlaskit/simple-xdm/dist/es2019/common/util';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
targetSpecNoDialogs: (registration) => registration?.extension?.options?.moduleType !== 'dialogs',
|
|
@@ -30,4 +30,4 @@ export default {
|
|
|
30
30
|
event: event
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
};
|
|
33
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import EventDispatcher from '../dispatchers/event_dispatcher';
|
|
2
|
-
import simpleXDM from 'simple-xdm/host';
|
|
2
|
+
import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
notifyIframeCreated: function($el, extension) {
|
|
@@ -24,4 +24,4 @@ export default {
|
|
|
24
24
|
notifyUnloaded: function($el, extension){
|
|
25
25
|
EventDispatcher.dispatch('iframe-unload', {$el, extension});
|
|
26
26
|
}
|
|
27
|
-
};
|
|
27
|
+
};
|
|
@@ -2,7 +2,7 @@ import EventDispatcher from '../dispatchers/event_dispatcher';
|
|
|
2
2
|
import IframeActions from '../actions/iframe_actions';
|
|
3
3
|
import $ from '../dollar';
|
|
4
4
|
import util from '../util';
|
|
5
|
-
import simpleXDM from 'simple-xdm/host';
|
|
5
|
+
import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
6
6
|
import urlUtil from '../utils/url';
|
|
7
7
|
import JwtActions from '../actions/jwt_actions';
|
|
8
8
|
import iframeUtils from '../utils/iframe';
|
package/src/host/host-api.js
CHANGED
|
@@ -6,7 +6,7 @@ import IframeCreate from './iframe-create';
|
|
|
6
6
|
import jwtActions from './actions/jwt_actions';
|
|
7
7
|
import ModuleActions from './actions/module_actions';
|
|
8
8
|
import EventActions from './actions/event_actions';
|
|
9
|
-
import simpleXDM from 'simple-xdm/host';
|
|
9
|
+
import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
10
10
|
import IframeActions from './actions/iframe_actions';
|
|
11
11
|
import AnalyticsAction from './actions/analytics_action';
|
|
12
12
|
import WebItemUtils from './utils/webitem';
|
package/src/host/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import HostApi from './host-api';
|
|
|
16
16
|
import './components/inline_dialog_webitem';
|
|
17
17
|
import './components/dialog_webitem';
|
|
18
18
|
import './components/dialog_extension';
|
|
19
|
-
import simpleXDM from 'simple-xdm/host';
|
|
19
|
+
import simpleXDM from '@atlaskit/simple-xdm/dist/es2019/host';
|
|
20
20
|
import getBooleanFeatureFlag from './utils/feature-flag';
|
|
21
21
|
import { observeIframeRemoval } from './utils/removal-observer';
|
|
22
22
|
import DomEventActions from './actions/dom_event_actions';
|
package/src/plugin/amd.js
CHANGED
package/src/plugin/analytics.js
CHANGED
package/src/plugin/deprecate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AP from 'simple-xdm/combined';
|
|
1
|
+
import AP from '@atlaskit/simple-xdm/dist/es2019/combined';
|
|
2
2
|
|
|
3
3
|
export default function (fn, name, alternate, sinceVersion) {
|
|
4
4
|
let called = false;
|
|
@@ -13,4 +13,4 @@ export default function (fn, name, alternate, sinceVersion) {
|
|
|
13
13
|
}
|
|
14
14
|
return fn(...args);
|
|
15
15
|
};
|
|
16
|
-
};
|
|
16
|
+
};
|
package/src/plugin/dialog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AP from 'simple-xdm/combined';
|
|
1
|
+
import AP from '@atlaskit/simple-xdm/dist/es2019/combined';
|
|
2
2
|
import deprecate from './deprecate';
|
|
3
3
|
import EventsInstance from './events-instance';
|
|
4
4
|
|
|
@@ -194,4 +194,4 @@ if(AP.dialog) {
|
|
|
194
194
|
|
|
195
195
|
if(!AP.Dialog){
|
|
196
196
|
AP.Dialog = AP._hostModules.Dialog = AP.dialog;
|
|
197
|
-
}
|
|
197
|
+
}
|
package/src/plugin/events.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AP from 'simple-xdm/combined';
|
|
1
|
+
import AP from '@atlaskit/simple-xdm/dist/es2019/combined';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The Events module provides a mechanism for emitting and receiving events.<br>
|
|
@@ -243,4 +243,4 @@ class Events {
|
|
|
243
243
|
*/
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
export default Events;
|
|
246
|
+
export default Events;
|
package/src/plugin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import AP from 'simple-xdm/combined';
|
|
1
|
+
import AP from '@atlaskit/simple-xdm/dist/es2019/combined';
|
|
2
2
|
import deprecate from './deprecate';
|
|
3
3
|
import $ from './dollar';
|
|
4
|
-
import consumerOptions from 'simple-xdm/
|
|
4
|
+
import consumerOptions from '@atlaskit/simple-xdm/dist/es2019/plugin/consumer-options';
|
|
5
5
|
import EventsInstance from './events-instance';
|
|
6
6
|
import PublicEventsInstance from './public-events';
|
|
7
7
|
import './dialog';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Events from './events';
|
|
2
|
-
import AP from 'simple-xdm/combined';
|
|
2
|
+
import AP from '@atlaskit/simple-xdm/dist/es2019/combined';
|
|
3
3
|
|
|
4
4
|
class PublicEvents extends Events {
|
|
5
5
|
constructor(){
|
|
@@ -70,4 +70,4 @@ class PublicEvents extends Events {
|
|
|
70
70
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export default new PublicEvents;
|
|
73
|
+
export default new PublicEvents;
|
package/src/plugin/theming.js
CHANGED