@atlaskit/editor-toolbar 2.7.2 → 2.7.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,27 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 2.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a1df9dd2d8f02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a1df9dd2d8f02) -
8
+ Add the optional `showNoResultsMessage` empty-state handler parameter and
9
+ `platform_editor_slash_command`-gated Ask Rovo and View more recovery for registered quick insert
10
+ searches with no matches. Respect registry visibility and keep Marketplace content separate from
11
+ listbox navigation while preserving its native keyboard controls.
12
+
13
+ Show the registered Ask Rovo action alongside Marketplace suggestions in the element browser's
14
+ no-match state, with a divider separating the fallback action from Marketplace content. Keep the
15
+ toolbar's View more footer visible while Marketplace content scrolls and preserve native Tab
16
+ navigation.
17
+
18
+ Respect `data-keyboard-navigation-independent` containers in both toolbar keyboard navigation
19
+ providers. Apply the attribute to the registered insert menu, whose rendering is gated by
20
+ `platform_editor_slash_command`, so its controls retain their own key handling and native tab
21
+ stops.
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 2.7.2
4
26
 
5
27
  ### Patch Changes
@@ -35,6 +35,10 @@ var ToolbarKeyboardNavigationProvider = exports.ToolbarKeyboardNavigationProvide
35
35
  // 1. Within the child component selector
36
36
  // 2. Visible (not hidden by display:none on itself or any parent)
37
37
  return allFocusable.filter(function (el) {
38
+ // Independent containers own their key handling and tab stops.
39
+ if (el.closest('[data-keyboard-navigation-independent]')) {
40
+ return false;
41
+ }
38
42
  if (!el.closest("".concat(childComponentSelector))) {
39
43
  return false;
40
44
  }
@@ -96,6 +100,9 @@ var ToolbarKeyboardNavigationProvider = exports.ToolbarKeyboardNavigationProvide
96
100
  if (targetElement instanceof HTMLElement && !targetElement.closest("".concat(childComponentSelector))) {
97
101
  return;
98
102
  }
103
+ if (targetElement instanceof HTMLElement && targetElement.closest('[data-keyboard-navigation-independent]')) {
104
+ return;
105
+ }
99
106
  switch (event.key) {
100
107
  case 'Escape':
101
108
  handleEscape(event);
@@ -30,6 +30,10 @@ export const ToolbarKeyboardNavigationProvider = ({
30
30
  // 1. Within the child component selector
31
31
  // 2. Visible (not hidden by display:none on itself or any parent)
32
32
  return allFocusable.filter(el => {
33
+ // Independent containers own their key handling and tab stops.
34
+ if (el.closest('[data-keyboard-navigation-independent]')) {
35
+ return false;
36
+ }
33
37
  if (!el.closest(`${childComponentSelector}`)) {
34
38
  return false;
35
39
  }
@@ -85,6 +89,9 @@ export const ToolbarKeyboardNavigationProvider = ({
85
89
  if (targetElement instanceof HTMLElement && !targetElement.closest(`${childComponentSelector}`)) {
86
90
  return;
87
91
  }
92
+ if (targetElement instanceof HTMLElement && targetElement.closest('[data-keyboard-navigation-independent]')) {
93
+ return;
94
+ }
88
95
  switch (event.key) {
89
96
  case 'Escape':
90
97
  handleEscape(event);
@@ -27,6 +27,10 @@ export var ToolbarKeyboardNavigationProvider = function ToolbarKeyboardNavigatio
27
27
  // 1. Within the child component selector
28
28
  // 2. Visible (not hidden by display:none on itself or any parent)
29
29
  return allFocusable.filter(function (el) {
30
+ // Independent containers own their key handling and tab stops.
31
+ if (el.closest('[data-keyboard-navigation-independent]')) {
32
+ return false;
33
+ }
30
34
  if (!el.closest("".concat(childComponentSelector))) {
31
35
  return false;
32
36
  }
@@ -88,6 +92,9 @@ export var ToolbarKeyboardNavigationProvider = function ToolbarKeyboardNavigatio
88
92
  if (targetElement instanceof HTMLElement && !targetElement.closest("".concat(childComponentSelector))) {
89
93
  return;
90
94
  }
95
+ if (targetElement instanceof HTMLElement && targetElement.closest('[data-keyboard-navigation-independent]')) {
96
+ return;
97
+ }
91
98
  switch (event.key) {
92
99
  case 'Escape':
93
100
  handleEscape(event);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "2.7.2",
6
+ "version": "2.7.3",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "website": {