@uipath/apollo-react 3.54.0-pr354.029fc6a → 3.54.0-pr354.1b1c99f
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.
|
@@ -265,9 +265,6 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
265
265
|
]);
|
|
266
266
|
const handleNavigationKeyDown = (0, external_react_namespaceObject.useCallback)((e)=>{
|
|
267
267
|
if (isTransitioning) return;
|
|
268
|
-
const input = searchInputRef.current;
|
|
269
|
-
const cursorAtStart = input ? 0 === input.selectionStart && 0 === input.selectionEnd : true;
|
|
270
|
-
const cursorAtEnd = input ? input.selectionStart === input.value.length && input.selectionEnd === input.value.length : true;
|
|
271
268
|
switch(e.key){
|
|
272
269
|
case 'ArrowDown':
|
|
273
270
|
e.preventDefault();
|
|
@@ -293,7 +290,6 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
293
290
|
}
|
|
294
291
|
break;
|
|
295
292
|
case 'ArrowRight':
|
|
296
|
-
if (!cursorAtEnd) break;
|
|
297
293
|
if (activeIndex >= 0) {
|
|
298
294
|
const renderItem = renderedItems[activeIndex];
|
|
299
295
|
if (renderItem?.type === 'item' && renderItem.item.children) {
|
|
@@ -303,7 +299,6 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
303
299
|
}
|
|
304
300
|
break;
|
|
305
301
|
case 'ArrowLeft':
|
|
306
|
-
if (!cursorAtStart) break;
|
|
307
302
|
if (activeIndex >= 0 && navigationStack.canGoBack) {
|
|
308
303
|
e.preventDefault();
|
|
309
304
|
handleBackTransition();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbox.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Toolbox/Toolbox.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,QAAQ,EAAY,MAAM,YAAY,CAAC;AAuCzE,MAA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AE,OAAO,EACzB,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE;IAAE,YAAY,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAC5E,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAE5B,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;CACpC;AAoBD,wBAAgB,OAAO,CAAC,CAAC,EAAE,EACzB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,OAAO,GACR,EAAE,YAAY,CAAC,CAAC,CAAC,2CAkajB"}
|
|
@@ -237,9 +237,6 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
237
237
|
]);
|
|
238
238
|
const handleNavigationKeyDown = useCallback((e)=>{
|
|
239
239
|
if (isTransitioning) return;
|
|
240
|
-
const input = searchInputRef.current;
|
|
241
|
-
const cursorAtStart = input ? 0 === input.selectionStart && 0 === input.selectionEnd : true;
|
|
242
|
-
const cursorAtEnd = input ? input.selectionStart === input.value.length && input.selectionEnd === input.value.length : true;
|
|
243
240
|
switch(e.key){
|
|
244
241
|
case 'ArrowDown':
|
|
245
242
|
e.preventDefault();
|
|
@@ -265,7 +262,6 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
265
262
|
}
|
|
266
263
|
break;
|
|
267
264
|
case 'ArrowRight':
|
|
268
|
-
if (!cursorAtEnd) break;
|
|
269
265
|
if (activeIndex >= 0) {
|
|
270
266
|
const renderItem = renderedItems[activeIndex];
|
|
271
267
|
if (renderItem?.type === 'item' && renderItem.item.children) {
|
|
@@ -275,7 +271,6 @@ function Toolbox({ onClose, onBack, onItemSelect, onSearch, onItemHover, title,
|
|
|
275
271
|
}
|
|
276
272
|
break;
|
|
277
273
|
case 'ArrowLeft':
|
|
278
|
-
if (!cursorAtStart) break;
|
|
279
274
|
if (activeIndex >= 0 && navigationStack.canGoBack) {
|
|
280
275
|
e.preventDefault();
|
|
281
276
|
handleBackTransition();
|