@atlaskit/editor-plugin-quick-insert 6.0.3 → 6.0.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,13 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 6.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c2c833b3cdb28`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2c833b3cdb28) -
8
+ ENGHEALTH-32567: add browse label to the ElementBrowser modal to give an accessible name
9
+ - Updated dependencies
10
+
3
11
  ## 6.0.3
4
12
 
5
13
  ### Patch Changes
@@ -157,7 +165,6 @@
157
165
  shared context or singletons.
158
166
 
159
167
  **HOW TO ADJUST:**
160
-
161
168
  - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
162
169
  any of these editor plugins.
163
170
  - Ensure the version you install matches the version required by the plugins.
@@ -98,9 +98,11 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
98
98
  autoFocusSearch: !isUpdateModalCloseButtonEnabled
99
99
  }));
100
100
  }, [props.intl, props.getItems, onSelectItem, onInsertItem, props.emptyStateHandler, isUpdateModalCloseButtonEnabled]);
101
+ var label = (0, _platformFeatureFlags.fg)('platform_editor_fix_browse_modal_header') ? intl.formatMessage(_quickInsert.messages.browse) : undefined;
101
102
  return (0, _react2.jsx)("div", {
102
103
  "data-editor-popup": true
103
104
  }, (0, _react2.jsx)(_modalDialog.ModalTransition, null, props.isOpen && (0, _react2.jsx)(_modalDialog.default, {
105
+ label: label,
104
106
  testId: "element-browser-modal-dialog",
105
107
  stackIndex: 0,
106
108
  key: "element-browser-modal",
@@ -80,9 +80,11 @@ const ModalElementBrowser = props => {
80
80
  emptyStateHandler: props.emptyStateHandler,
81
81
  autoFocusSearch: !isUpdateModalCloseButtonEnabled
82
82
  })), [props.intl, props.getItems, onSelectItem, onInsertItem, props.emptyStateHandler, isUpdateModalCloseButtonEnabled]);
83
+ const label = fg('platform_editor_fix_browse_modal_header') ? intl.formatMessage(messages.browse) : undefined;
83
84
  return jsx("div", {
84
85
  "data-editor-popup": true
85
86
  }, jsx(ModalTransition, null, props.isOpen && jsx(Modal, {
87
+ label: label,
86
88
  testId: "element-browser-modal-dialog",
87
89
  stackIndex: 0,
88
90
  key: "element-browser-modal",
@@ -88,9 +88,11 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
88
88
  autoFocusSearch: !isUpdateModalCloseButtonEnabled
89
89
  }));
90
90
  }, [props.intl, props.getItems, onSelectItem, onInsertItem, props.emptyStateHandler, isUpdateModalCloseButtonEnabled]);
91
+ var label = fg('platform_editor_fix_browse_modal_header') ? intl.formatMessage(messages.browse) : undefined;
91
92
  return jsx("div", {
92
93
  "data-editor-popup": true
93
94
  }, jsx(ModalTransition, null, props.isOpen && jsx(Modal, {
95
+ label: label,
94
96
  testId: "element-browser-modal-dialog",
95
97
  stackIndex: 0,
96
98
  key: "element-browser-modal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,19 +32,19 @@
32
32
  "@atlaskit/button": "^23.5.0",
33
33
  "@atlaskit/editor-plugin-connectivity": "^6.0.0",
34
34
  "@atlaskit/editor-plugin-metrics": "^7.0.0",
35
- "@atlaskit/editor-plugin-type-ahead": "^6.3.0",
35
+ "@atlaskit/editor-plugin-type-ahead": "^6.4.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/icon": "^28.5.0",
38
- "@atlaskit/modal-dialog": "^14.4.0",
38
+ "@atlaskit/modal-dialog": "^14.5.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/theme": "^21.0.0",
41
- "@atlaskit/tmp-editor-statsig": "^13.5.0",
42
- "@atlaskit/tokens": "^6.4.0",
41
+ "@atlaskit/tmp-editor-statsig": "^13.11.0",
42
+ "@atlaskit/tokens": "^6.5.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^110.7.0",
47
+ "@atlaskit/editor-common": "^110.13.0",
48
48
  "react": "^18.2.0",
49
49
  "react-dom": "^18.2.0",
50
50
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -106,6 +106,9 @@
106
106
  },
107
107
  "platform_editor_update_modal_close_button": {
108
108
  "type": "boolean"
109
+ },
110
+ "platform_editor_fix_browse_modal_header": {
111
+ "type": "boolean"
109
112
  }
110
113
  }
111
114
  }