@atlaskit/link-picker 1.39.0 → 1.39.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 1.39.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.39.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#118372](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118372)
14
+ [`e25de82c2de31`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e25de82c2de31) -
15
+ Cleans up ff platform.linking-platform.link-picker.translations-map. Internally changes
16
+ translation imports to use an import map instead of dynamic imports.
17
+
3
18
  ## 1.39.0
4
19
 
5
20
  ### Minor Changes
@@ -26,7 +26,7 @@ var testIds = exports.testIds = {
26
26
  };
27
27
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
28
28
  packageName: "@atlaskit/link-picker" || '',
29
- packageVersion: "1.39.0" || '',
29
+ packageVersion: "1.39.2" || '',
30
30
  componentName: _constants.COMPONENT_NAME,
31
31
  source: _constants.COMPONENT_NAME
32
32
  };
@@ -1,103 +1,59 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.fetchMessagesForLocale = void 0;
9
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
10
  var _i18n = require("../../../../i18n");
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
11
  var fetchMessagesForLocale = exports.fetchMessagesForLocale = /*#__PURE__*/function () {
16
12
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(locale) {
17
- var localeKey, messages, parentLocale, _messages, _messages2, _parentLocale, _messages3;
13
+ var localeKey, messages, parentLocale, _messages;
18
14
  return _regenerator.default.wrap(function _callee$(_context) {
19
15
  while (1) switch (_context.prev = _context.next) {
20
16
  case 0:
21
- if (!(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.translations-map')) {
22
- _context.next = 25;
23
- break;
24
- }
25
- _context.prev = 1;
17
+ _context.prev = 0;
26
18
  localeKey = locale.replace('-', '_');
27
19
  if (!(localeKey in _i18n.locales)) {
28
- _context.next = 8;
20
+ _context.next = 7;
29
21
  break;
30
22
  }
31
- _context.next = 6;
23
+ _context.next = 5;
32
24
  return _i18n.locales[localeKey]();
33
- case 6:
25
+ case 5:
34
26
  messages = _context.sent;
35
27
  return _context.abrupt("return", messages.default);
36
- case 8:
37
- _context.next = 12;
28
+ case 7:
29
+ _context.next = 11;
38
30
  break;
39
- case 10:
40
- _context.prev = 10;
41
- _context.t0 = _context["catch"](1);
42
- case 12:
43
- _context.prev = 12;
31
+ case 9:
32
+ _context.prev = 9;
33
+ _context.t0 = _context["catch"](0);
34
+ case 11:
35
+ _context.prev = 11;
44
36
  parentLocale = locale.split(/[-_]/)[0];
45
37
  if (!(parentLocale in _i18n.locales)) {
46
- _context.next = 19;
38
+ _context.next = 18;
47
39
  break;
48
40
  }
49
- _context.next = 17;
41
+ _context.next = 16;
50
42
  return _i18n.locales[parentLocale]();
51
- case 17:
43
+ case 16:
52
44
  _messages = _context.sent;
53
45
  return _context.abrupt("return", _messages.default);
54
- case 19:
55
- _context.next = 23;
56
- break;
57
- case 21:
58
- _context.prev = 21;
59
- _context.t1 = _context["catch"](12);
60
- case 23:
61
- _context.next = 44;
46
+ case 18:
47
+ _context.next = 22;
62
48
  break;
63
- case 25:
64
- _context.prev = 25;
65
- _context.next = 28;
66
- return function (specifier) {
67
- return new Promise(function (r) {
68
- return r(specifier);
69
- }).then(function (s) {
70
- return _interopRequireWildcard(require(s));
71
- });
72
- }( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(locale.replace('-', '_')));
73
- case 28:
74
- _messages2 = _context.sent;
75
- return _context.abrupt("return", _messages2.default);
76
- case 32:
77
- _context.prev = 32;
78
- _context.t2 = _context["catch"](25);
79
- case 34:
80
- _context.prev = 34;
81
- _parentLocale = locale.split(/[-_]/)[0];
82
- _context.next = 38;
83
- return function (specifier) {
84
- return new Promise(function (r) {
85
- return r(specifier);
86
- }).then(function (s) {
87
- return _interopRequireWildcard(require(s));
88
- });
89
- }( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(_parentLocale));
90
- case 38:
91
- _messages3 = _context.sent;
92
- return _context.abrupt("return", _messages3.default);
93
- case 42:
94
- _context.prev = 42;
95
- _context.t3 = _context["catch"](34);
96
- case 44:
49
+ case 20:
50
+ _context.prev = 20;
51
+ _context.t1 = _context["catch"](11);
52
+ case 22:
97
53
  case "end":
98
54
  return _context.stop();
99
55
  }
100
- }, _callee, null, [[1, 10], [12, 21], [25, 32], [34, 42]]);
56
+ }, _callee, null, [[0, 9], [11, 20]]);
101
57
  }));
102
58
  return function fetchMessagesForLocale(_x) {
103
59
  return _ref.apply(this, arguments);
@@ -18,7 +18,7 @@ export const testIds = {
18
18
  };
19
19
  export const PACKAGE_DATA = {
20
20
  packageName: "@atlaskit/link-picker" || '',
21
- packageVersion: "1.39.0" || '',
21
+ packageVersion: "1.39.2" || '',
22
22
  componentName: COMPONENT_NAME,
23
23
  source: COMPONENT_NAME
24
24
  };
@@ -1,38 +1,21 @@
1
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
1
  import { locales } from '../../../../i18n';
3
2
  export const fetchMessagesForLocale = async locale => {
4
- if (getBooleanFF('platform.linking-platform.link-picker.translations-map')) {
5
- try {
6
- const localeKey = locale.replace('-', '_');
7
- if (localeKey in locales) {
8
- const messages = await locales[localeKey]();
9
- return messages.default;
10
- }
11
- } catch (e) {
12
- // ignore
13
- }
14
- try {
15
- const parentLocale = locale.split(/[-_]/)[0];
16
- if (parentLocale in locales) {
17
- const messages = await locales[parentLocale]();
18
- return messages.default;
19
- }
20
- } catch (e) {
21
- // ignore
22
- }
23
- } else {
24
- try {
25
- const messages = await import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */`../../../../i18n/${locale.replace('-', '_')}`);
3
+ try {
4
+ const localeKey = locale.replace('-', '_');
5
+ if (localeKey in locales) {
6
+ const messages = await locales[localeKey]();
26
7
  return messages.default;
27
- } catch (e) {
28
- // ignore
29
8
  }
30
- try {
31
- const parentLocale = locale.split(/[-_]/)[0];
32
- const messages = await import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */`../../../../i18n/${parentLocale}`);
9
+ } catch (e) {
10
+ // ignore
11
+ }
12
+ try {
13
+ const parentLocale = locale.split(/[-_]/)[0];
14
+ if (parentLocale in locales) {
15
+ const messages = await locales[parentLocale]();
33
16
  return messages.default;
34
- } catch (e) {
35
- // ignore
36
17
  }
18
+ } catch (e) {
19
+ // ignore
37
20
  }
38
21
  };
@@ -19,7 +19,7 @@ export var testIds = {
19
19
  };
20
20
  export var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/link-picker" || '',
22
- packageVersion: "1.39.0" || '',
22
+ packageVersion: "1.39.2" || '',
23
23
  componentName: COMPONENT_NAME,
24
24
  source: COMPONENT_NAME
25
25
  };
@@ -1,81 +1,52 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import { locales } from '../../../../i18n';
5
4
  export var fetchMessagesForLocale = /*#__PURE__*/function () {
6
5
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
7
- var localeKey, messages, parentLocale, _messages, _messages2, _parentLocale, _messages3;
6
+ var localeKey, messages, parentLocale, _messages;
8
7
  return _regeneratorRuntime.wrap(function _callee$(_context) {
9
8
  while (1) switch (_context.prev = _context.next) {
10
9
  case 0:
11
- if (!getBooleanFF('platform.linking-platform.link-picker.translations-map')) {
12
- _context.next = 25;
13
- break;
14
- }
15
- _context.prev = 1;
10
+ _context.prev = 0;
16
11
  localeKey = locale.replace('-', '_');
17
12
  if (!(localeKey in locales)) {
18
- _context.next = 8;
13
+ _context.next = 7;
19
14
  break;
20
15
  }
21
- _context.next = 6;
16
+ _context.next = 5;
22
17
  return locales[localeKey]();
23
- case 6:
18
+ case 5:
24
19
  messages = _context.sent;
25
20
  return _context.abrupt("return", messages.default);
26
- case 8:
27
- _context.next = 12;
21
+ case 7:
22
+ _context.next = 11;
28
23
  break;
29
- case 10:
30
- _context.prev = 10;
31
- _context.t0 = _context["catch"](1);
32
- case 12:
33
- _context.prev = 12;
24
+ case 9:
25
+ _context.prev = 9;
26
+ _context.t0 = _context["catch"](0);
27
+ case 11:
28
+ _context.prev = 11;
34
29
  parentLocale = locale.split(/[-_]/)[0];
35
30
  if (!(parentLocale in locales)) {
36
- _context.next = 19;
31
+ _context.next = 18;
37
32
  break;
38
33
  }
39
- _context.next = 17;
34
+ _context.next = 16;
40
35
  return locales[parentLocale]();
41
- case 17:
36
+ case 16:
42
37
  _messages = _context.sent;
43
38
  return _context.abrupt("return", _messages.default);
44
- case 19:
45
- _context.next = 23;
46
- break;
47
- case 21:
48
- _context.prev = 21;
49
- _context.t1 = _context["catch"](12);
50
- case 23:
51
- _context.next = 44;
39
+ case 18:
40
+ _context.next = 22;
52
41
  break;
53
- case 25:
54
- _context.prev = 25;
55
- _context.next = 28;
56
- return import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(locale.replace('-', '_')));
57
- case 28:
58
- _messages2 = _context.sent;
59
- return _context.abrupt("return", _messages2.default);
60
- case 32:
61
- _context.prev = 32;
62
- _context.t2 = _context["catch"](25);
63
- case 34:
64
- _context.prev = 34;
65
- _parentLocale = locale.split(/[-_]/)[0];
66
- _context.next = 38;
67
- return import( /* webpackChunkName: "@atlaskit-internal_link-picker-i18n-[request]" */"../../../../i18n/".concat(_parentLocale));
68
- case 38:
69
- _messages3 = _context.sent;
70
- return _context.abrupt("return", _messages3.default);
71
- case 42:
72
- _context.prev = 42;
73
- _context.t3 = _context["catch"](34);
74
- case 44:
42
+ case 20:
43
+ _context.prev = 20;
44
+ _context.t1 = _context["catch"](11);
45
+ case 22:
75
46
  case "end":
76
47
  return _context.stop();
77
48
  }
78
- }, _callee, null, [[1, 10], [12, 21], [25, 32], [34, 42]]);
49
+ }, _callee, null, [[0, 9], [11, 20]]);
79
50
  }));
80
51
  return function fetchMessagesForLocale(_x) {
81
52
  return _ref.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.39.0",
3
+ "version": "1.39.2",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -46,9 +46,6 @@
46
46
  },
47
47
  "platform.linking-platform.link-picker.enable-jira-create": {
48
48
  "type": "boolean"
49
- },
50
- "platform.linking-platform.link-picker.translations-map": {
51
- "type": "boolean"
52
49
  }
53
50
  },
54
51
  "scripts": {
@@ -57,16 +54,16 @@
57
54
  "dependencies": {
58
55
  "@atlaskit/analytics-next": "^9.3.0",
59
56
  "@atlaskit/atlassian-context": "^0.0.0",
60
- "@atlaskit/button": "^18.1.0",
57
+ "@atlaskit/button": "^18.3.0",
61
58
  "@atlaskit/form": "^10.4.0",
62
59
  "@atlaskit/frontend-utilities": "^2.7.0",
63
60
  "@atlaskit/heading": "^2.4.0",
64
- "@atlaskit/icon": "^22.5.0",
61
+ "@atlaskit/icon": "^22.6.0",
65
62
  "@atlaskit/intl-messages-provider": "^1.0.2",
66
63
  "@atlaskit/linking-common": "^5.7.0",
67
- "@atlaskit/onboarding": "^11.9.0",
64
+ "@atlaskit/onboarding": "^11.10.0",
68
65
  "@atlaskit/platform-feature-flags": "^0.3.0",
69
- "@atlaskit/primitives": "^10.0.0",
66
+ "@atlaskit/primitives": "^11.0.0",
70
67
  "@atlaskit/spinner": "^16.2.0",
71
68
  "@atlaskit/tabs": "^16.2.0",
72
69
  "@atlaskit/textfield": "^6.4.0",