@atlaskit/editor-plugin-quick-insert 6.1.2 → 6.1.4

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,19 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 6.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`06de6cb74b477`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06de6cb74b477) -
14
+ [ux] [ENGHEALTH-47507] internationalise strings behind feature gate platform_editor_dec_a11y_fixes
15
+ - Updated dependencies
16
+
3
17
  ## 6.1.2
4
18
 
5
19
  ### Patch Changes
@@ -120,6 +120,7 @@ ModalElementBrowser.displayName = 'ModalElementBrowser';
120
120
  var Footer = function Footer(_ref) {
121
121
  var onInsert = _ref.onInsert,
122
122
  beforeElement = _ref.beforeElement;
123
+ var intl = (0, _reactIntlNext.useIntl)();
123
124
  var _useModal = (0, _modalDialog.useModal)(),
124
125
  onClose = _useModal.onClose;
125
126
  return (0, _react2.jsx)("div", {
@@ -132,14 +133,13 @@ var Footer = function Footer(_ref) {
132
133
  appearance: "primary",
133
134
  onClick: onInsert,
134
135
  testId: "ModalElementBrowser__insert-button"
135
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
136
- }, "Insert")), (0, _react2.jsx)("div", {
136
+ }, (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? intl.formatMessage(_quickInsert.messages.insert) : 'Insert')), (0, _react2.jsx)("div", {
137
137
  css: actionItemStyles
138
138
  }, (0, _react2.jsx)(_button.default, {
139
139
  appearance: "subtle",
140
140
  onClick: onClose,
141
141
  testId: "ModalElementBrowser__close-button"
142
- }, "Close"))));
142
+ }, (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? intl.formatMessage(_quickInsert.messages.close) : 'Close'))));
143
143
  };
144
144
  var HelpLink = function HelpLink(url, helpText) {
145
145
  return (0, _react2.jsx)(_button.default, {
@@ -6,7 +6,7 @@ import { useCallback, useState } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
- import { injectIntl } from 'react-intl-next';
9
+ import { injectIntl, useIntl } from 'react-intl-next';
10
10
  import Button from '@atlaskit/button';
11
11
  import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
12
12
  import { messages } from '@atlaskit/editor-common/quick-insert';
@@ -103,6 +103,7 @@ const Footer = ({
103
103
  onInsert,
104
104
  beforeElement
105
105
  }) => {
106
+ const intl = useIntl();
106
107
  const {
107
108
  onClose
108
109
  } = useModal();
@@ -116,14 +117,13 @@ const Footer = ({
116
117
  appearance: "primary",
117
118
  onClick: onInsert,
118
119
  testId: "ModalElementBrowser__insert-button"
119
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
120
- }, "Insert")), jsx("div", {
120
+ }, fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(messages.insert) : 'Insert')), jsx("div", {
121
121
  css: actionItemStyles
122
122
  }, jsx(Button, {
123
123
  appearance: "subtle",
124
124
  onClick: onClose,
125
125
  testId: "ModalElementBrowser__close-button"
126
- }, "Close"))));
126
+ }, fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(messages.close) : 'Close'))));
127
127
  };
128
128
  const HelpLink = (url, helpText) => jsx(Button, {
129
129
  iconBefore: jsx(QuestionCircleIcon, {
@@ -7,7 +7,7 @@ import { useCallback, useState } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import { injectIntl } from 'react-intl-next';
10
+ import { injectIntl, useIntl } from 'react-intl-next';
11
11
  import Button from '@atlaskit/button';
12
12
  import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
13
13
  import { messages } from '@atlaskit/editor-common/quick-insert';
@@ -110,6 +110,7 @@ ModalElementBrowser.displayName = 'ModalElementBrowser';
110
110
  var Footer = function Footer(_ref) {
111
111
  var onInsert = _ref.onInsert,
112
112
  beforeElement = _ref.beforeElement;
113
+ var intl = useIntl();
113
114
  var _useModal = useModal(),
114
115
  onClose = _useModal.onClose;
115
116
  return jsx("div", {
@@ -122,14 +123,13 @@ var Footer = function Footer(_ref) {
122
123
  appearance: "primary",
123
124
  onClick: onInsert,
124
125
  testId: "ModalElementBrowser__insert-button"
125
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
126
- }, "Insert")), jsx("div", {
126
+ }, fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(messages.insert) : 'Insert')), jsx("div", {
127
127
  css: actionItemStyles
128
128
  }, jsx(Button, {
129
129
  appearance: "subtle",
130
130
  onClick: onClose,
131
131
  testId: "ModalElementBrowser__close-button"
132
- }, "Close"))));
132
+ }, fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(messages.close) : 'Close'))));
133
133
  };
134
134
  var HelpLink = function HelpLink(url, helpText) {
135
135
  return jsx(Button, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "6.1.2",
3
+ "version": "6.1.4",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,23 +29,23 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/button": "^23.7.0",
32
+ "@atlaskit/button": "^23.9.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
34
34
  "@atlaskit/editor-plugin-connectivity": "^6.0.0",
35
35
  "@atlaskit/editor-plugin-metrics": "^7.1.0",
36
36
  "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.2.0",
38
- "@atlaskit/icon": "^29.1.0",
38
+ "@atlaskit/icon": "^29.3.0",
39
39
  "@atlaskit/modal-dialog": "^14.9.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/theme": "^21.0.0",
42
- "@atlaskit/tmp-editor-statsig": "^15.12.0",
43
- "@atlaskit/tokens": "^8.5.0",
42
+ "@atlaskit/tmp-editor-statsig": "^16.0.0",
43
+ "@atlaskit/tokens": "^8.6.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^110.44.0",
48
+ "@atlaskit/editor-common": "^110.46.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0",
51
51
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -102,6 +102,9 @@
102
102
  },
103
103
  "platform_editor_fix_browse_modal_header": {
104
104
  "type": "boolean"
105
+ },
106
+ "platform_editor_dec_a11y_fixes": {
107
+ "type": "boolean"
105
108
  }
106
109
  }
107
110
  }