@atlassian/atlassian-connect-js 5.3.202 → 5.3.204
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 +29 -7
- package/dist/iframe-fedramp.js +340 -244
- package/dist/iframe.js +340 -244
- package/dist/themes/atlaskit-tokens_dark.css +293 -292
- package/dist/themes/atlaskit-tokens_legacy-dark.css +1 -0
- package/dist/themes/atlaskit-tokens_legacy-light.css +1 -0
- package/dist/themes/atlaskit-tokens_light.css +265 -264
- package/dist/themes/atlaskit-tokens_shape.css +9 -10
- package/dist/themes/atlaskit-tokens_typography-adg3.css +18 -15
- package/dist/themes/atlaskit-tokens_typography-modernized.css +18 -15
- package/dist/themes/atlaskit-tokens_typography-refreshed.css +18 -15
- package/dist/themes/atlaskit-tokens_typography.css +27 -0
- package/package.json +2 -2
- package/spec/tests/theming_spec.js +13 -11
- package/src/host/components/dialog.js +29 -4
package/dist/connect-host.js
CHANGED
|
@@ -11287,10 +11287,30 @@
|
|
|
11287
11287
|
return $dialog;
|
|
11288
11288
|
};
|
|
11289
11289
|
_proto.renderErrorState = function renderErrorState(extension) {
|
|
11290
|
-
var $dialog
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11290
|
+
var $dialog;
|
|
11291
|
+
if (HostApi$1.getBooleanFeatureFlag('acjs-iframe-allowlist-dialog-flexibility')) {
|
|
11292
|
+
var ext = this.getByExtension({
|
|
11293
|
+
addon_key: extension.addon_key,
|
|
11294
|
+
key: extension.key
|
|
11295
|
+
});
|
|
11296
|
+
if (ext.length === 0) {
|
|
11297
|
+
var dialogs = $('.' + DIALOG_CLASS).toArray();
|
|
11298
|
+
if (dialogs.length === 0) {
|
|
11299
|
+
return;
|
|
11300
|
+
}
|
|
11301
|
+
$dialog = AJS.dialog2(dialogs[0]).$el;
|
|
11302
|
+
} else {
|
|
11303
|
+
$dialog = ext[0].$el;
|
|
11304
|
+
}
|
|
11305
|
+
if (!$dialog) {
|
|
11306
|
+
return;
|
|
11307
|
+
}
|
|
11308
|
+
} else {
|
|
11309
|
+
$dialog = this.getByExtension({
|
|
11310
|
+
addon_key: extension.addon_key,
|
|
11311
|
+
key: extension.key
|
|
11312
|
+
})[0].$el;
|
|
11313
|
+
}
|
|
11294
11314
|
|
|
11295
11315
|
// Fullscreen dialogs already render a close button in the header
|
|
11296
11316
|
if ($dialog.hasClass('aui-dialog2-fullscreen')) {
|
|
@@ -13257,7 +13277,7 @@
|
|
|
13257
13277
|
*
|
|
13258
13278
|
* These ids must be kebab case
|
|
13259
13279
|
*/
|
|
13260
|
-
var themeIds = ['light-increased-contrast', 'light', 'light-future', '
|
|
13280
|
+
var themeIds = ['light-increased-contrast', 'light', 'light-future', 'dark', 'dark-future', 'dark-increased-contrast', 'legacy-light', 'legacy-dark', 'spacing', 'shape', 'typography', 'typography-adg3', 'typography-modernized', 'typography-refreshed'];
|
|
13261
13281
|
|
|
13262
13282
|
var THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
13263
13283
|
var COLOR_MODE_ATTRIBUTE = 'data-color-mode';
|
|
@@ -13292,7 +13312,9 @@
|
|
|
13292
13312
|
* ```
|
|
13293
13313
|
*/
|
|
13294
13314
|
var themeStringToObject = function themeStringToObject(themeState) {
|
|
13295
|
-
return themeState.split(' ')
|
|
13315
|
+
return themeState.split(' ')
|
|
13316
|
+
// @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
|
|
13317
|
+
.map(function (theme) {
|
|
13296
13318
|
return theme.split(/:([^]*)/);
|
|
13297
13319
|
}).reduce(function (themeObject, _ref) {
|
|
13298
13320
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
@@ -13859,7 +13881,7 @@
|
|
|
13859
13881
|
* Add version
|
|
13860
13882
|
*/
|
|
13861
13883
|
if (!window._AP.version) {
|
|
13862
|
-
window._AP.version = '5.3.
|
|
13884
|
+
window._AP.version = '5.3.204';
|
|
13863
13885
|
}
|
|
13864
13886
|
simpleXDM.defineModule('messages', messages);
|
|
13865
13887
|
simpleXDM.defineModule('flag', flag);
|