@atlaskit/editor-plugin-type-ahead 2.2.2 → 2.2.3

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,14 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 2.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#132892](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132892)
8
+ [`6db8f28318224`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6db8f28318224) -
9
+ update type ahead locale, add key to ai preview react list child
10
+ - Updated dependencies
11
+
3
12
  ## 2.2.2
4
13
 
5
14
  ### Patch Changes
@@ -12,6 +12,7 @@ var _w3cKeyname = require("w3c-keyname");
12
12
  var _history = require("@atlaskit/editor-prosemirror/history");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
14
  var _view = require("@atlaskit/editor-prosemirror/view");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _colors = require("@atlaskit/theme/colors");
16
17
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
18
  var _WrapperTypeAhead = require("../ui/WrapperTypeAhead");
@@ -93,7 +94,8 @@ var factoryDecorations = exports.factoryDecorations = function factoryDecoration
93
94
  nodeViewPortalProviderAPI.render(function () {
94
95
  var _popupMountRef$curren, _popupMountRef$curren2, _popupMountRef$curren3;
95
96
  return /*#__PURE__*/_react.default.createElement(_reactIntlNext.IntlProvider, {
96
- locale: intl.locale || 'en',
97
+ defaultLocale: (0, _platformFeatureFlags.fg)('platform_editor_update_type_ahead_locale') ? intl.defaultLocale || 'en-US' : undefined,
98
+ locale: intl.locale || ((0, _platformFeatureFlags.fg)('platform_editor_update_type_ahead_locale') ? 'en-US' : 'en'),
97
99
  messages: intl.messages,
98
100
  formats: intl.formats
99
101
  }, /*#__PURE__*/_react.default.createElement(_WrapperTypeAhead.WrapperTypeAhead, {
@@ -5,6 +5,7 @@ import { keyName as keyNameNormalized } from 'w3c-keyname';
5
5
  import { redo, undo } from '@atlaskit/editor-prosemirror/history';
6
6
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { B400 } from '@atlaskit/theme/colors';
9
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
11
  import { WrapperTypeAhead } from '../ui/WrapperTypeAhead';
@@ -92,7 +93,8 @@ export const factoryDecorations = ({
92
93
  nodeViewPortalProviderAPI.render(() => {
93
94
  var _popupMountRef$curren, _popupMountRef$curren2, _popupMountRef$curren3;
94
95
  return /*#__PURE__*/React.createElement(IntlProvider, {
95
- locale: intl.locale || 'en',
96
+ defaultLocale: fg('platform_editor_update_type_ahead_locale') ? intl.defaultLocale || 'en-US' : undefined,
97
+ locale: intl.locale || (fg('platform_editor_update_type_ahead_locale') ? 'en-US' : 'en'),
96
98
  messages: intl.messages,
97
99
  formats: intl.formats
98
100
  }, /*#__PURE__*/React.createElement(WrapperTypeAhead, {
@@ -5,6 +5,7 @@ import { keyName as keyNameNormalized } from 'w3c-keyname';
5
5
  import { redo, undo } from '@atlaskit/editor-prosemirror/history';
6
6
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { B400 } from '@atlaskit/theme/colors';
9
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
11
  import { WrapperTypeAhead } from '../ui/WrapperTypeAhead';
@@ -86,7 +87,8 @@ export var factoryDecorations = function factoryDecorations(_ref) {
86
87
  nodeViewPortalProviderAPI.render(function () {
87
88
  var _popupMountRef$curren, _popupMountRef$curren2, _popupMountRef$curren3;
88
89
  return /*#__PURE__*/React.createElement(IntlProvider, {
89
- locale: intl.locale || 'en',
90
+ defaultLocale: fg('platform_editor_update_type_ahead_locale') ? intl.defaultLocale || 'en-US' : undefined,
91
+ locale: intl.locale || (fg('platform_editor_update_type_ahead_locale') ? 'en-US' : 'en'),
90
92
  messages: intl.messages,
91
93
  formats: intl.formats
92
94
  }, /*#__PURE__*/React.createElement(WrapperTypeAhead, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,8 +42,8 @@
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^3.4.0",
44
44
  "@atlaskit/heading": "^5.1.0",
45
- "@atlaskit/icon": "^25.1.0",
46
- "@atlaskit/menu": "^3.1.0",
45
+ "@atlaskit/icon": "^25.2.0",
46
+ "@atlaskit/menu": "^3.2.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^14.2.0",
49
49
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
@@ -95,6 +95,9 @@
95
95
  }
96
96
  },
97
97
  "platform-feature-flags": {
98
+ "platform_editor_update_type_ahead_locale": {
99
+ "type": "boolean"
100
+ },
98
101
  "platform_editor_offline_editing_ga": {
99
102
  "type": "boolean"
100
103
  },