dce-reactkit 3.4.0-beta.4 → 3.4.0-beta.6
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/dist/cjs/index.js +7 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -12
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/initClient.tsx +12 -20
- package/src/components/AppWrapper.tsx +1 -1
- package/src/components/DBEntryManagerPanel/AddOrEditDBEntry/CreatableMultiselect.tsx +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -579,22 +579,17 @@ let storedSendRequest;
|
|
|
579
579
|
* @returns sendRequest function
|
|
580
580
|
*/
|
|
581
581
|
const getSendRequest = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
582
|
-
//
|
|
583
|
-
let
|
|
582
|
+
// Show timeout error if too much time passes
|
|
583
|
+
let successful = false;
|
|
584
584
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
585
585
|
yield waitMs(5000);
|
|
586
|
-
|
|
586
|
+
if (!successful) {
|
|
587
|
+
showFatalError(new ErrorWithCode('Could not send a request because the request needed to be sent before dce-reactkit was properly initialized. Perhaps dce-reactkit was not initialized with initClient.', ReactKitErrorCode$1.NoCACCLSendRequestFunction));
|
|
588
|
+
}
|
|
587
589
|
}))(),
|
|
588
590
|
// Wait for initialization
|
|
589
591
|
yield initialized;
|
|
590
|
-
|
|
591
|
-
if (timedOut) {
|
|
592
|
-
showFatalError(new ErrorWithCode('Could not send a request because the request needed to be sent before dce-reactkit was properly initialized. Perhaps dce-reactkit was not initialized with initClient.', ReactKitErrorCode$1.NoCACCLSendRequestFunction));
|
|
593
|
-
// Return dummy function that never resolves
|
|
594
|
-
return (() => {
|
|
595
|
-
return new Promise(() => { });
|
|
596
|
-
});
|
|
597
|
-
}
|
|
592
|
+
successful = true;
|
|
598
593
|
// Return
|
|
599
594
|
return storedSendRequest;
|
|
600
595
|
});
|
|
@@ -39579,13 +39574,13 @@ const CreatableMultiselect = (props) => {
|
|
|
39579
39574
|
* @param event keyboard event
|
|
39580
39575
|
*/
|
|
39581
39576
|
const handleKeyDown = (event) => {
|
|
39582
|
-
event.preventDefault();
|
|
39583
39577
|
// Skip if no input value
|
|
39584
39578
|
if (!inputValue) {
|
|
39585
39579
|
return;
|
|
39586
39580
|
}
|
|
39587
39581
|
// Add values if enter or tab is pressed
|
|
39588
39582
|
if (['Enter', 'Tab'].includes(event.key)) {
|
|
39583
|
+
event.preventDefault();
|
|
39589
39584
|
addValues(inputValue);
|
|
39590
39585
|
}
|
|
39591
39586
|
};
|