@atlaskit/link-picker 1.30.12 → 1.30.14

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,18 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 1.30.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [#63626](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63626) [`e71c8f5f586e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e71c8f5f586e) - loaderFn returns undefined if failed to dynamicaly import locale messages - fixes issue in Jira where default English replaces languages chunk.
8
+ - Updated dependencies
9
+
10
+ ## 1.30.13
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 1.30.12
4
17
 
5
18
  ### Patch 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.30.12" || '',
29
+ packageVersion: "1.30.14" || '',
30
30
  componentName: _constants.COMPONENT_NAME,
31
31
  source: _constants.COMPONENT_NAME
32
32
  };
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.fetchMessagesForLocale = void 0;
9
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
12
  var _en = _interopRequireDefault(require("../../../../i18n/en"));
12
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -50,8 +51,14 @@ var fetchMessagesForLocale = exports.fetchMessagesForLocale = /*#__PURE__*/funct
50
51
  _context.prev = 17;
51
52
  _context.t1 = _context["catch"](9);
52
53
  case 19:
54
+ if (!(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.tmp-fix-translations')) {
55
+ _context.next = 21;
56
+ break;
57
+ }
58
+ return _context.abrupt("return");
59
+ case 21:
53
60
  return _context.abrupt("return", _en.default);
54
- case 20:
61
+ case 22:
55
62
  case "end":
56
63
  return _context.stop();
57
64
  }
@@ -16,7 +16,7 @@ export const testIds = {
16
16
  };
17
17
  export const PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "1.30.12" || '',
19
+ packageVersion: "1.30.14" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -1,3 +1,4 @@
1
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
1
2
  import messages from '../../../../i18n/en';
2
3
  export const fetchMessagesForLocale = async locale => {
3
4
  try {
@@ -13,6 +14,9 @@ export const fetchMessagesForLocale = async locale => {
13
14
  } catch (e) {
14
15
  // ignore
15
16
  }
17
+ if (getBooleanFF('platform.linking-platform.link-create.tmp-fix-translations')) {
18
+ return;
19
+ }
16
20
 
17
21
  /**
18
22
  * English bundled by default as this is the majority of users
@@ -17,7 +17,7 @@ export var testIds = {
17
17
  };
18
18
  export var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "1.30.12" || '',
20
+ packageVersion: "1.30.14" || '',
21
21
  componentName: COMPONENT_NAME,
22
22
  source: COMPONENT_NAME
23
23
  };
@@ -1,5 +1,6 @@
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';
3
4
  import messages from '../../../../i18n/en';
4
5
  export var fetchMessagesForLocale = /*#__PURE__*/function () {
5
6
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
@@ -28,8 +29,14 @@ export var fetchMessagesForLocale = /*#__PURE__*/function () {
28
29
  _context.prev = 17;
29
30
  _context.t1 = _context["catch"](9);
30
31
  case 19:
32
+ if (!getBooleanFF('platform.linking-platform.link-create.tmp-fix-translations')) {
33
+ _context.next = 21;
34
+ break;
35
+ }
36
+ return _context.abrupt("return");
37
+ case 21:
31
38
  return _context.abrupt("return", messages);
32
- case 20:
39
+ case 22:
33
40
  case "end":
34
41
  return _context.stop();
35
42
  }
@@ -1,2 +1,2 @@
1
- import { I18NMessages } from './types';
1
+ import { I18NMessages } from '@atlaskit/intl-messages-provider';
2
2
  export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
@@ -1,2 +1,2 @@
1
- import { I18NMessages } from './types';
1
+ import { I18NMessages } from '@atlaskit/intl-messages-provider';
2
2
  export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.30.12",
3
+ "version": "1.30.14",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -49,6 +49,9 @@
49
49
  },
50
50
  "platform.linking-platform.link-picker.enable-jira-create": {
51
51
  "type": "boolean"
52
+ },
53
+ "platform.linking-platform.link-create.tmp-fix-translations": {
54
+ "type": "boolean"
52
55
  }
53
56
  },
54
57
  "scripts": {
@@ -63,15 +66,15 @@
63
66
  "@atlaskit/frontend-utilities": "^2.7.0",
64
67
  "@atlaskit/icon": "^22.0.0",
65
68
  "@atlaskit/intl-messages-provider": "^1.0.2",
66
- "@atlaskit/linking-common": "^4.21.0",
69
+ "@atlaskit/linking-common": "^5.1.0",
67
70
  "@atlaskit/onboarding": "^11.1.2",
68
71
  "@atlaskit/platform-feature-flags": "^0.2.1",
69
72
  "@atlaskit/spinner": "^16.0.0",
70
73
  "@atlaskit/tabs": "^14.0.0",
71
74
  "@atlaskit/textfield": "^6.0.0",
72
75
  "@atlaskit/theme": "^12.6.0",
73
- "@atlaskit/tokens": "^1.30.0",
74
- "@atlaskit/tooltip": "^18.0.0",
76
+ "@atlaskit/tokens": "^1.32.0",
77
+ "@atlaskit/tooltip": "^18.1.0",
75
78
  "@atlaskit/ufo": "^0.2.0",
76
79
  "@atlaskit/visually-hidden": "^1.2.0",
77
80
  "@babel/runtime": "^7.0.0",
@@ -88,13 +91,13 @@
88
91
  },
89
92
  "devDependencies": {
90
93
  "@af/analytics-codegen": "^0.1.0",
94
+ "@af/integration-testing": "*",
91
95
  "@af/visual-regression": "*",
92
96
  "@atlaskit/dropdown-menu": "^12.1.0",
93
97
  "@atlaskit/link-provider": "^1.6.0",
94
98
  "@atlaskit/link-test-helpers": "^6.2.0",
95
99
  "@atlaskit/primitives": "^1.15.0",
96
100
  "@atlaskit/visual-regression": "*",
97
- "@atlaskit/webdriver-runner": "*",
98
101
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
99
102
  "@atlassian/feature-flags-test-utils": "*",
100
103
  "@testing-library/dom": "^8.17.1",
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,2 +0,0 @@
1
- import { MessageFormatElement } from 'react-intl-next';
2
- export type I18NMessages = Record<string, string> | Record<string, MessageFormatElement[]>;
@@ -1,2 +0,0 @@
1
- import { MessageFormatElement } from 'react-intl-next';
2
- export type I18NMessages = Record<string, string> | Record<string, MessageFormatElement[]>;