quidproquo-web-react 0.0.253 → 0.0.255
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/lib/commonjs/api/hooks/index.d.ts +2 -2
- package/lib/commonjs/api/hooks/index.js +18 -18
- package/lib/commonjs/api/hooks/useAuthenticatedNetworkRequest.d.ts +2 -2
- package/lib/commonjs/api/hooks/useAuthenticatedNetworkRequest.js +14 -14
- package/lib/commonjs/api/hooks/useNetworkRequest.d.ts +2 -2
- package/lib/commonjs/api/hooks/useNetworkRequest.js +10 -10
- package/lib/commonjs/api/index.d.ts +1 -1
- package/lib/commonjs/api/index.js +17 -17
- package/lib/commonjs/auth/RefreshAuthTokensProvider.d.ts +7 -8
- package/lib/commonjs/auth/RefreshAuthTokensProvider.js +12 -12
- package/lib/commonjs/auth/authContext.d.ts +2 -3
- package/lib/commonjs/auth/authContext.js +8 -8
- package/lib/commonjs/auth/hooks/index.d.ts +3 -3
- package/lib/commonjs/auth/hooks/index.js +19 -19
- package/lib/commonjs/auth/hooks/useAuthAccessToken.d.ts +1 -1
- package/lib/commonjs/auth/hooks/useAuthAccessToken.js +12 -12
- package/lib/commonjs/auth/hooks/useIsLoggedIn.d.ts +1 -1
- package/lib/commonjs/auth/hooks/useIsLoggedIn.js +9 -9
- package/lib/commonjs/auth/hooks/useRefreshTokens.d.ts +2 -2
- package/lib/commonjs/auth/hooks/useRefreshTokens.js +35 -35
- package/lib/commonjs/auth/index.d.ts +4 -4
- package/lib/commonjs/auth/index.js +20 -20
- package/lib/commonjs/auth/types/AuthState.d.ts +8 -8
- package/lib/commonjs/auth/types/AuthState.js +2 -2
- package/lib/commonjs/auth/types/index.d.ts +1 -1
- package/lib/commonjs/auth/types/index.js +17 -17
- package/lib/commonjs/baseUrl/BaseUrlContext.d.ts +2 -3
- package/lib/commonjs/baseUrl/BaseUrlContext.js +9 -9
- package/lib/commonjs/baseUrl/BaseUrlProvider.d.ts +6 -7
- package/lib/commonjs/baseUrl/BaseUrlProvider.js +9 -9
- package/lib/commonjs/baseUrl/hooks/index.d.ts +1 -1
- package/lib/commonjs/baseUrl/hooks/index.js +17 -17
- package/lib/commonjs/baseUrl/hooks/useBaseUrlResolvers.d.ts +2 -2
- package/lib/commonjs/baseUrl/hooks/useBaseUrlResolvers.js +10 -10
- package/lib/commonjs/baseUrl/index.d.ts +3 -3
- package/lib/commonjs/baseUrl/index.js +19 -19
- package/lib/commonjs/baseUrl/types/BaseUrlResolver.d.ts +6 -6
- package/lib/commonjs/baseUrl/types/BaseUrlResolver.js +2 -2
- package/lib/commonjs/baseUrl/types/index.d.ts +1 -1
- package/lib/commonjs/baseUrl/types/index.js +17 -17
- package/lib/commonjs/hooks/asmj/QpqContextProvider.d.ts +10 -10
- package/lib/commonjs/hooks/asmj/QpqContextProvider.js +20 -20
- package/lib/commonjs/hooks/asmj/QpqMappedApi.d.ts +6 -6
- package/lib/commonjs/hooks/asmj/QpqMappedApi.js +2 -2
- package/lib/commonjs/hooks/asmj/QpqRuntimeEffectCatcher.d.ts +16 -16
- package/lib/commonjs/hooks/asmj/QpqRuntimeEffectCatcher.js +35 -35
- package/lib/commonjs/hooks/asmj/actionProcessor/getStateDispatchActionProcessor.d.ts +3 -3
- package/lib/commonjs/hooks/asmj/actionProcessor/getStateDispatchActionProcessor.js +23 -23
- package/lib/commonjs/hooks/asmj/actionProcessor/getStateReadActionProcessor.d.ts +2 -2
- package/lib/commonjs/hooks/asmj/actionProcessor/getStateReadActionProcessor.js +22 -22
- package/lib/commonjs/hooks/asmj/actionProcessor/index.d.ts +3 -3
- package/lib/commonjs/hooks/asmj/actionProcessor/index.js +18 -18
- package/lib/commonjs/hooks/asmj/createQpqRuntimeDefinition.d.ts +22 -16
- package/lib/commonjs/hooks/asmj/createQpqRuntimeDefinition.js +52 -39
- package/lib/commonjs/hooks/asmj/index.d.ts +6 -6
- package/lib/commonjs/hooks/asmj/index.js +22 -22
- package/lib/commonjs/hooks/asmj/useQpqRuntime.d.ts +4 -4
- package/lib/commonjs/hooks/asmj/useQpqRuntime.js +35 -36
- package/lib/commonjs/hooks/index.d.ts +8 -8
- package/lib/commonjs/hooks/index.js +24 -24
- package/lib/commonjs/hooks/useAsyncEffect.d.ts +2 -2
- package/lib/commonjs/hooks/useAsyncEffect.js +36 -36
- package/lib/commonjs/hooks/useFastCallback.d.ts +2 -2
- package/lib/commonjs/hooks/useFastCallback.js +19 -20
- package/lib/commonjs/hooks/useMetadata/index.d.ts +1 -1
- package/lib/commonjs/hooks/useMetadata/index.js +17 -17
- package/lib/commonjs/hooks/useMetadata/useMetadata.d.ts +5 -5
- package/lib/commonjs/hooks/useMetadata/useMetadata.js +14 -15
- package/lib/commonjs/hooks/useOnKeyDownEffect.d.ts +1 -1
- package/lib/commonjs/hooks/useOnKeyDownEffect.js +22 -23
- package/lib/commonjs/hooks/useQpq.d.ts +2 -2
- package/lib/commonjs/hooks/useQpq.js +45 -44
- package/lib/commonjs/hooks/useRunEvery.d.ts +1 -1
- package/lib/commonjs/hooks/useRunEvery.js +21 -22
- package/lib/commonjs/hooks/useThrottledMemo.d.ts +1 -1
- package/lib/commonjs/hooks/useThrottledMemo.js +31 -32
- package/lib/commonjs/index.d.ts +10 -8
- package/lib/commonjs/index.js +26 -24
- package/lib/commonjs/state/index.d.ts +1 -1
- package/lib/commonjs/state/index.js +17 -17
- package/lib/commonjs/state/useStateUpdater.d.ts +3 -4
- package/lib/commonjs/state/useStateUpdater.js +12 -12
- package/lib/commonjs/useFieldBinding/index.d.ts +1 -0
- package/lib/commonjs/useFieldBinding/index.js +17 -0
- package/lib/commonjs/useFieldBinding/useFieldBinding.d.ts +2 -0
- package/lib/commonjs/useFieldBinding/useFieldBinding.js +21 -0
- package/lib/commonjs/useSharedQueryParams/index.d.ts +2 -0
- package/lib/commonjs/useSharedQueryParams/index.js +18 -0
- package/lib/commonjs/useSharedQueryParams/logic/index.d.ts +4 -0
- package/lib/commonjs/useSharedQueryParams/logic/index.js +20 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/askSetParam.d.ts +2 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/askSetParam.js +9 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/askSyncParams.d.ts +2 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/askSyncParams.js +11 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/index.d.ts +2 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/index.js +18 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/sharedQueryParamsLogic.d.ts +4 -0
- package/lib/commonjs/useSharedQueryParams/logic/runtime/sharedQueryParamsLogic.js +7 -0
- package/lib/commonjs/useSharedQueryParams/logic/sharedQueryParamsActionCreator.d.ts +2 -0
- package/lib/commonjs/useSharedQueryParams/logic/sharedQueryParamsActionCreator.js +11 -0
- package/lib/commonjs/useSharedQueryParams/logic/sharedQueryParamsReducer.d.ts +3 -0
- package/lib/commonjs/useSharedQueryParams/logic/sharedQueryParamsReducer.js +13 -0
- package/lib/commonjs/useSharedQueryParams/logic/sharedQueryParamsTypes.d.ts +10 -0
- package/lib/commonjs/useSharedQueryParams/logic/sharedQueryParamsTypes.js +7 -0
- package/lib/commonjs/useSharedQueryParams/sharedQueryParamsRuntime.d.ts +3 -0
- package/lib/commonjs/useSharedQueryParams/sharedQueryParamsRuntime.js +7 -0
- package/lib/commonjs/webSocketQueue/hooks/index.d.ts +2 -2
- package/lib/commonjs/webSocketQueue/hooks/index.js +18 -18
- package/lib/commonjs/webSocketQueue/hooks/useSubscribeToWebSocketQueueEvent.d.ts +3 -3
- package/lib/commonjs/webSocketQueue/hooks/useSubscribeToWebSocketQueueEvent.js +8 -8
- package/lib/commonjs/webSocketQueue/hooks/useWebsocketQueueSendEvent.d.ts +2 -2
- package/lib/commonjs/webSocketQueue/hooks/useWebsocketQueueSendEvent.js +9 -9
- package/lib/commonjs/webSocketQueue/index.d.ts +1 -1
- package/lib/commonjs/webSocketQueue/index.js +17 -17
- package/lib/commonjs/websocket/WebSocketAuthSync/WebSocketAuthSync.d.ts +6 -7
- package/lib/commonjs/websocket/WebSocketAuthSync/WebSocketAuthSync.js +14 -14
- package/lib/commonjs/websocket/WebSocketAuthSync/hooks/index.d.ts +2 -2
- package/lib/commonjs/websocket/WebSocketAuthSync/hooks/index.js +18 -18
- package/lib/commonjs/websocket/WebSocketAuthSync/hooks/useWebsocketAuthSync.d.ts +2 -2
- package/lib/commonjs/websocket/WebSocketAuthSync/hooks/useWebsocketAuthSync.js +37 -37
- package/lib/commonjs/websocket/WebSocketAuthSync/hooks/useWebsocketPingPong.d.ts +1 -1
- package/lib/commonjs/websocket/WebSocketAuthSync/hooks/useWebsocketPingPong.js +16 -16
- package/lib/commonjs/websocket/WebSocketAuthSync/index.d.ts +1 -1
- package/lib/commonjs/websocket/WebSocketAuthSync/index.js +17 -17
- package/lib/commonjs/websocket/WebsocketContext.d.ts +2 -3
- package/lib/commonjs/websocket/WebsocketContext.js +5 -5
- package/lib/commonjs/websocket/WebsocketProvider.d.ts +5 -6
- package/lib/commonjs/websocket/WebsocketProvider.js +11 -11
- package/lib/commonjs/websocket/hooks/index.d.ts +5 -5
- package/lib/commonjs/websocket/hooks/index.js +21 -21
- package/lib/commonjs/websocket/hooks/useSubscribeToWebSocketEvent.d.ts +3 -3
- package/lib/commonjs/websocket/hooks/useSubscribeToWebSocketEvent.js +17 -17
- package/lib/commonjs/websocket/hooks/useSubscribeToWebsocket.d.ts +2 -2
- package/lib/commonjs/websocket/hooks/useSubscribeToWebsocket.js +17 -17
- package/lib/commonjs/websocket/hooks/useWebsocketApi.d.ts +1 -1
- package/lib/commonjs/websocket/hooks/useWebsocketApi.js +10 -10
- package/lib/commonjs/websocket/hooks/useWebsocketManagement.d.ts +2 -2
- package/lib/commonjs/websocket/hooks/useWebsocketManagement.js +17 -17
- package/lib/commonjs/websocket/hooks/useWebsocketSendEvent.d.ts +2 -2
- package/lib/commonjs/websocket/hooks/useWebsocketSendEvent.js +15 -15
- package/lib/commonjs/websocket/index.d.ts +3 -3
- package/lib/commonjs/websocket/index.js +19 -19
- package/lib/esm/api/hooks/index.d.ts +2 -2
- package/lib/esm/api/hooks/index.js +2 -2
- package/lib/esm/api/hooks/useAuthenticatedNetworkRequest.d.ts +2 -2
- package/lib/esm/api/hooks/useAuthenticatedNetworkRequest.js +17 -17
- package/lib/esm/api/hooks/useNetworkRequest.d.ts +2 -2
- package/lib/esm/api/hooks/useNetworkRequest.js +6 -6
- package/lib/esm/api/index.d.ts +1 -1
- package/lib/esm/api/index.js +1 -1
- package/lib/esm/auth/RefreshAuthTokensProvider.d.ts +7 -8
- package/lib/esm/auth/RefreshAuthTokensProvider.js +9 -9
- package/lib/esm/auth/authContext.d.ts +2 -3
- package/lib/esm/auth/authContext.js +5 -5
- package/lib/esm/auth/hooks/index.d.ts +3 -3
- package/lib/esm/auth/hooks/index.js +3 -3
- package/lib/esm/auth/hooks/useAuthAccessToken.d.ts +1 -1
- package/lib/esm/auth/hooks/useAuthAccessToken.js +7 -7
- package/lib/esm/auth/hooks/useIsLoggedIn.d.ts +1 -1
- package/lib/esm/auth/hooks/useIsLoggedIn.js +5 -5
- package/lib/esm/auth/hooks/useRefreshTokens.d.ts +2 -2
- package/lib/esm/auth/hooks/useRefreshTokens.js +31 -31
- package/lib/esm/auth/index.d.ts +4 -4
- package/lib/esm/auth/index.js +4 -4
- package/lib/esm/auth/types/AuthState.d.ts +8 -8
- package/lib/esm/auth/types/AuthState.js +1 -1
- package/lib/esm/auth/types/index.d.ts +1 -1
- package/lib/esm/auth/types/index.js +1 -1
- package/lib/esm/baseUrl/BaseUrlContext.d.ts +2 -3
- package/lib/esm/baseUrl/BaseUrlContext.js +6 -6
- package/lib/esm/baseUrl/BaseUrlProvider.d.ts +6 -7
- package/lib/esm/baseUrl/BaseUrlProvider.js +5 -5
- package/lib/esm/baseUrl/hooks/index.d.ts +1 -1
- package/lib/esm/baseUrl/hooks/index.js +1 -1
- package/lib/esm/baseUrl/hooks/useBaseUrlResolvers.d.ts +2 -2
- package/lib/esm/baseUrl/hooks/useBaseUrlResolvers.js +6 -6
- package/lib/esm/baseUrl/index.d.ts +3 -3
- package/lib/esm/baseUrl/index.js +3 -3
- package/lib/esm/baseUrl/types/BaseUrlResolver.d.ts +6 -6
- package/lib/esm/baseUrl/types/BaseUrlResolver.js +1 -1
- package/lib/esm/baseUrl/types/index.d.ts +1 -1
- package/lib/esm/baseUrl/types/index.js +1 -1
- package/lib/esm/hooks/asmj/QpqContextProvider.d.ts +10 -10
- package/lib/esm/hooks/asmj/QpqContextProvider.js +15 -15
- package/lib/esm/hooks/asmj/QpqMappedApi.d.ts +6 -6
- package/lib/esm/hooks/asmj/QpqMappedApi.js +1 -1
- package/lib/esm/hooks/asmj/QpqRuntimeEffectCatcher.d.ts +16 -16
- package/lib/esm/hooks/asmj/QpqRuntimeEffectCatcher.js +30 -30
- package/lib/esm/hooks/asmj/actionProcessor/getStateDispatchActionProcessor.d.ts +3 -3
- package/lib/esm/hooks/asmj/actionProcessor/getStateDispatchActionProcessor.js +8 -8
- package/lib/esm/hooks/asmj/actionProcessor/getStateReadActionProcessor.d.ts +2 -2
- package/lib/esm/hooks/asmj/actionProcessor/getStateReadActionProcessor.js +7 -7
- package/lib/esm/hooks/asmj/actionProcessor/index.d.ts +3 -3
- package/lib/esm/hooks/asmj/actionProcessor/index.js +6 -6
- package/lib/esm/hooks/asmj/createQpqRuntimeDefinition.d.ts +22 -16
- package/lib/esm/hooks/asmj/createQpqRuntimeDefinition.js +46 -34
- package/lib/esm/hooks/asmj/index.d.ts +6 -6
- package/lib/esm/hooks/asmj/index.js +6 -6
- package/lib/esm/hooks/asmj/useQpqRuntime.d.ts +4 -4
- package/lib/esm/hooks/asmj/useQpqRuntime.js +32 -32
- package/lib/esm/hooks/index.d.ts +8 -8
- package/lib/esm/hooks/index.js +8 -8
- package/lib/esm/hooks/useAsyncEffect.d.ts +2 -2
- package/lib/esm/hooks/useAsyncEffect.js +23 -23
- package/lib/esm/hooks/useFastCallback.d.ts +2 -2
- package/lib/esm/hooks/useFastCallback.js +16 -16
- package/lib/esm/hooks/useMetadata/index.d.ts +1 -1
- package/lib/esm/hooks/useMetadata/index.js +1 -1
- package/lib/esm/hooks/useMetadata/useMetadata.d.ts +5 -5
- package/lib/esm/hooks/useMetadata/useMetadata.js +11 -11
- package/lib/esm/hooks/useOnKeyDownEffect.d.ts +1 -1
- package/lib/esm/hooks/useOnKeyDownEffect.js +19 -19
- package/lib/esm/hooks/useQpq.d.ts +2 -2
- package/lib/esm/hooks/useQpq.js +34 -32
- package/lib/esm/hooks/useRunEvery.d.ts +1 -1
- package/lib/esm/hooks/useRunEvery.js +18 -18
- package/lib/esm/hooks/useThrottledMemo.d.ts +1 -1
- package/lib/esm/hooks/useThrottledMemo.js +28 -28
- package/lib/esm/index.d.ts +10 -8
- package/lib/esm/index.js +10 -8
- package/lib/esm/state/index.d.ts +1 -1
- package/lib/esm/state/index.js +1 -1
- package/lib/esm/state/useStateUpdater.d.ts +3 -4
- package/lib/esm/state/useStateUpdater.js +11 -11
- package/lib/esm/useFieldBinding/index.d.ts +1 -0
- package/lib/esm/useFieldBinding/index.js +1 -0
- package/lib/esm/useFieldBinding/useFieldBinding.d.ts +2 -0
- package/lib/esm/useFieldBinding/useFieldBinding.js +17 -0
- package/lib/esm/useSharedQueryParams/index.d.ts +2 -0
- package/lib/esm/useSharedQueryParams/index.js +2 -0
- package/lib/esm/useSharedQueryParams/logic/index.d.ts +4 -0
- package/lib/esm/useSharedQueryParams/logic/index.js +4 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/askSetParam.d.ts +2 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/askSetParam.js +6 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/askSyncParams.d.ts +2 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/askSyncParams.js +8 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/index.d.ts +2 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/index.js +2 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/sharedQueryParamsLogic.d.ts +4 -0
- package/lib/esm/useSharedQueryParams/logic/runtime/sharedQueryParamsLogic.js +4 -0
- package/lib/esm/useSharedQueryParams/logic/sharedQueryParamsActionCreator.d.ts +2 -0
- package/lib/esm/useSharedQueryParams/logic/sharedQueryParamsActionCreator.js +8 -0
- package/lib/esm/useSharedQueryParams/logic/sharedQueryParamsReducer.d.ts +3 -0
- package/lib/esm/useSharedQueryParams/logic/sharedQueryParamsReducer.js +10 -0
- package/lib/esm/useSharedQueryParams/logic/sharedQueryParamsTypes.d.ts +10 -0
- package/lib/esm/useSharedQueryParams/logic/sharedQueryParamsTypes.js +4 -0
- package/lib/esm/useSharedQueryParams/sharedQueryParamsRuntime.d.ts +3 -0
- package/lib/esm/useSharedQueryParams/sharedQueryParamsRuntime.js +4 -0
- package/lib/esm/webSocketQueue/hooks/index.d.ts +2 -2
- package/lib/esm/webSocketQueue/hooks/index.js +2 -2
- package/lib/esm/webSocketQueue/hooks/useSubscribeToWebSocketQueueEvent.d.ts +3 -3
- package/lib/esm/webSocketQueue/hooks/useSubscribeToWebSocketQueueEvent.js +4 -4
- package/lib/esm/webSocketQueue/hooks/useWebsocketQueueSendEvent.d.ts +2 -2
- package/lib/esm/webSocketQueue/hooks/useWebsocketQueueSendEvent.js +5 -5
- package/lib/esm/webSocketQueue/index.d.ts +1 -1
- package/lib/esm/webSocketQueue/index.js +1 -1
- package/lib/esm/websocket/WebSocketAuthSync/WebSocketAuthSync.d.ts +6 -7
- package/lib/esm/websocket/WebSocketAuthSync/WebSocketAuthSync.js +11 -11
- package/lib/esm/websocket/WebSocketAuthSync/hooks/index.d.ts +2 -2
- package/lib/esm/websocket/WebSocketAuthSync/hooks/index.js +2 -2
- package/lib/esm/websocket/WebSocketAuthSync/hooks/useWebsocketAuthSync.d.ts +2 -2
- package/lib/esm/websocket/WebSocketAuthSync/hooks/useWebsocketAuthSync.js +33 -33
- package/lib/esm/websocket/WebSocketAuthSync/hooks/useWebsocketPingPong.d.ts +1 -1
- package/lib/esm/websocket/WebSocketAuthSync/hooks/useWebsocketPingPong.js +12 -12
- package/lib/esm/websocket/WebSocketAuthSync/index.d.ts +1 -1
- package/lib/esm/websocket/WebSocketAuthSync/index.js +1 -1
- package/lib/esm/websocket/WebsocketContext.d.ts +2 -3
- package/lib/esm/websocket/WebsocketContext.js +2 -2
- package/lib/esm/websocket/WebsocketProvider.d.ts +5 -6
- package/lib/esm/websocket/WebsocketProvider.js +7 -7
- package/lib/esm/websocket/hooks/index.d.ts +5 -5
- package/lib/esm/websocket/hooks/index.js +5 -5
- package/lib/esm/websocket/hooks/useSubscribeToWebSocketEvent.d.ts +3 -3
- package/lib/esm/websocket/hooks/useSubscribeToWebSocketEvent.js +13 -13
- package/lib/esm/websocket/hooks/useSubscribeToWebsocket.d.ts +2 -2
- package/lib/esm/websocket/hooks/useSubscribeToWebsocket.js +13 -13
- package/lib/esm/websocket/hooks/useWebsocketApi.d.ts +1 -1
- package/lib/esm/websocket/hooks/useWebsocketApi.js +6 -6
- package/lib/esm/websocket/hooks/useWebsocketManagement.d.ts +2 -2
- package/lib/esm/websocket/hooks/useWebsocketManagement.js +13 -13
- package/lib/esm/websocket/hooks/useWebsocketSendEvent.d.ts +2 -2
- package/lib/esm/websocket/hooks/useWebsocketSendEvent.js +11 -11
- package/lib/esm/websocket/index.d.ts +3 -3
- package/lib/esm/websocket/index.js +3 -3
- package/package.json +8 -8
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useThrottledMemo =
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
function useThrottledMemo(factory, deps, delaySeconds = 1) {
|
|
6
|
-
const [value, setValue] = (0, react_1.useState)(factory);
|
|
7
|
-
const isFirstRun = (0, react_1.useRef)(true);
|
|
8
|
-
const timeoutRef = (0, react_1.useRef)(null);
|
|
9
|
-
(0, react_1.useEffect)(() => {
|
|
10
|
-
// This skips the throttling on the initial mount
|
|
11
|
-
if (isFirstRun.current) {
|
|
12
|
-
isFirstRun.current = false;
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
if (timeoutRef.current) {
|
|
16
|
-
clearTimeout(timeoutRef.current);
|
|
17
|
-
}
|
|
18
|
-
timeoutRef.current = setTimeout(() => {
|
|
19
|
-
setValue(factory);
|
|
20
|
-
timeoutRef.current = null;
|
|
21
|
-
}, delaySeconds * 1000);
|
|
22
|
-
// Cleanup on component unmount or when dependencies change
|
|
23
|
-
return () => {
|
|
24
|
-
if (timeoutRef.current) {
|
|
25
|
-
clearTimeout(timeoutRef.current);
|
|
26
|
-
timeoutRef.current = null;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
}, [...deps, delaySeconds]);
|
|
30
|
-
return value;
|
|
31
|
-
}
|
|
32
|
-
exports.useThrottledMemo = useThrottledMemo;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useThrottledMemo = useThrottledMemo;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
function useThrottledMemo(factory, deps, delaySeconds = 1) {
|
|
6
|
+
const [value, setValue] = (0, react_1.useState)(factory);
|
|
7
|
+
const isFirstRun = (0, react_1.useRef)(true);
|
|
8
|
+
const timeoutRef = (0, react_1.useRef)(null);
|
|
9
|
+
(0, react_1.useEffect)(() => {
|
|
10
|
+
// This skips the throttling on the initial mount
|
|
11
|
+
if (isFirstRun.current) {
|
|
12
|
+
isFirstRun.current = false;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (timeoutRef.current) {
|
|
16
|
+
clearTimeout(timeoutRef.current);
|
|
17
|
+
}
|
|
18
|
+
timeoutRef.current = setTimeout(() => {
|
|
19
|
+
setValue(factory);
|
|
20
|
+
timeoutRef.current = null;
|
|
21
|
+
}, delaySeconds * 1000);
|
|
22
|
+
// Cleanup on component unmount or when dependencies change
|
|
23
|
+
return () => {
|
|
24
|
+
if (timeoutRef.current) {
|
|
25
|
+
clearTimeout(timeoutRef.current);
|
|
26
|
+
timeoutRef.current = null;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}, [...deps, delaySeconds]);
|
|
30
|
+
return value;
|
|
31
|
+
}
|
package/lib/commonjs/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import 'symbol-observable';
|
|
2
|
-
export * from './api';
|
|
3
|
-
export * from './auth';
|
|
4
|
-
export * from './baseUrl';
|
|
5
|
-
export * from './hooks';
|
|
6
|
-
export * from './state';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
1
|
+
import 'symbol-observable';
|
|
2
|
+
export * from './api';
|
|
3
|
+
export * from './auth';
|
|
4
|
+
export * from './baseUrl';
|
|
5
|
+
export * from './hooks';
|
|
6
|
+
export * from './state';
|
|
7
|
+
export * from './useFieldBinding';
|
|
8
|
+
export * from './useSharedQueryParams';
|
|
9
|
+
export * from './websocket';
|
|
10
|
+
export * from './webSocketQueue';
|
package/lib/commonjs/index.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
require("symbol-observable");
|
|
18
|
-
__exportStar(require("./api"), exports);
|
|
19
|
-
__exportStar(require("./auth"), exports);
|
|
20
|
-
__exportStar(require("./baseUrl"), exports);
|
|
21
|
-
__exportStar(require("./hooks"), exports);
|
|
22
|
-
__exportStar(require("./state"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
require("symbol-observable");
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
__exportStar(require("./auth"), exports);
|
|
20
|
+
__exportStar(require("./baseUrl"), exports);
|
|
21
|
+
__exportStar(require("./hooks"), exports);
|
|
22
|
+
__exportStar(require("./state"), exports);
|
|
23
|
+
__exportStar(require("./useFieldBinding"), exports);
|
|
24
|
+
__exportStar(require("./useSharedQueryParams"), exports);
|
|
25
|
+
__exportStar(require("./websocket"), exports);
|
|
26
|
+
__exportStar(require("./webSocketQueue"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './useStateUpdater';
|
|
1
|
+
export * from './useStateUpdater';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./useStateUpdater"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useStateUpdater"), exports);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export {};
|
|
1
|
+
type UpdaterFunction<T> = (property: keyof T) => (value: T[keyof T]) => void;
|
|
2
|
+
export declare const useStateUpdater: <T>(setState: React.Dispatch<React.SetStateAction<T>>) => UpdaterFunction<T>;
|
|
3
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStateUpdater = void 0;
|
|
4
|
-
const hooks_1 = require("../hooks");
|
|
5
|
-
const useStateUpdater = (setState) => {
|
|
6
|
-
return (0, hooks_1.useFastCallback)((property) => {
|
|
7
|
-
return (value) => {
|
|
8
|
-
setState((prevState) => (Object.assign(Object.assign({}, prevState), { [property]: value })));
|
|
9
|
-
};
|
|
10
|
-
}, [setState]);
|
|
11
|
-
};
|
|
12
|
-
exports.useStateUpdater = useStateUpdater;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStateUpdater = void 0;
|
|
4
|
+
const hooks_1 = require("../hooks");
|
|
5
|
+
const useStateUpdater = (setState) => {
|
|
6
|
+
return (0, hooks_1.useFastCallback)((property) => {
|
|
7
|
+
return (value) => {
|
|
8
|
+
setState((prevState) => (Object.assign(Object.assign({}, prevState), { [property]: value })));
|
|
9
|
+
};
|
|
10
|
+
}, [setState]);
|
|
11
|
+
};
|
|
12
|
+
exports.useStateUpdater = useStateUpdater;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useFieldBinding';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useFieldBinding"), exports);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { QpqRuntimeComputed } from '../hooks';
|
|
2
|
+
export declare const useFieldBinding: <TState, V, E = any>(computedAtom: QpqRuntimeComputed<TState, V>, someSetter: (value: V) => Promise<void> | void, valueExtractor?: (event: E, ...args: any[]) => V) => [V, (event: E, ...args: any[]) => void];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFieldBinding = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const hooks_1 = require("../hooks");
|
|
6
|
+
const useFieldBinding = (computedAtom, someSetter, valueExtractor) => {
|
|
7
|
+
const computedValue = (0, hooks_1.useQpqRuntimeComputed)(computedAtom);
|
|
8
|
+
const [value, setValue] = (0, react_1.useState)(computedValue);
|
|
9
|
+
const handleChange = (event, ...args) => {
|
|
10
|
+
const newValue = valueExtractor ? valueExtractor(event, ...args) : event.target.value;
|
|
11
|
+
setValue(newValue);
|
|
12
|
+
someSetter(newValue);
|
|
13
|
+
};
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
if (computedValue !== value) {
|
|
16
|
+
setValue(computedValue);
|
|
17
|
+
}
|
|
18
|
+
}, [computedValue]);
|
|
19
|
+
return [value, handleChange];
|
|
20
|
+
};
|
|
21
|
+
exports.useFieldBinding = useFieldBinding;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./logic"), exports);
|
|
18
|
+
__exportStar(require("./sharedQueryParamsRuntime"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./runtime"), exports);
|
|
18
|
+
__exportStar(require("./sharedQueryParamsActionCreator"), exports);
|
|
19
|
+
__exportStar(require("./sharedQueryParamsReducer"), exports);
|
|
20
|
+
__exportStar(require("./sharedQueryParamsTypes"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askSetParam = askSetParam;
|
|
4
|
+
const quidproquo_web_1 = require("quidproquo-web");
|
|
5
|
+
const sharedQueryParamsActionCreator_1 = require("../sharedQueryParamsActionCreator");
|
|
6
|
+
function* askSetParam(key, values) {
|
|
7
|
+
yield* (0, quidproquo_web_1.askQueryParamsSet)(key, values, false);
|
|
8
|
+
yield* (0, sharedQueryParamsActionCreator_1.askSharedQueryParamsUISetParam)(key, values);
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askSyncParams = askSyncParams;
|
|
4
|
+
const quidproquo_web_1 = require("quidproquo-web");
|
|
5
|
+
const sharedQueryParamsActionCreator_1 = require("../sharedQueryParamsActionCreator");
|
|
6
|
+
function* askSyncParams() {
|
|
7
|
+
const params = yield* (0, quidproquo_web_1.askQueryParamsGetAll)();
|
|
8
|
+
for (const key in params) {
|
|
9
|
+
yield* (0, sharedQueryParamsActionCreator_1.askSharedQueryParamsUISetParam)(key, params[key]);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./askSyncParams"), exports);
|
|
18
|
+
__exportStar(require("./sharedQueryParamsLogic"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askSharedQueryParamsUISetParam = askSharedQueryParamsUISetParam;
|
|
4
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
+
const sharedQueryParamsTypes_1 = require("./sharedQueryParamsTypes");
|
|
6
|
+
function* askSharedQueryParamsUISetParam(key, values) {
|
|
7
|
+
yield* (0, quidproquo_core_1.askStateDispatchEffect)(sharedQueryParamsTypes_1.SharedQueryParamsEffect.SetParam, {
|
|
8
|
+
key,
|
|
9
|
+
values,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SharedQueryParamsState } from './sharedQueryParamsTypes';
|
|
2
|
+
export declare const sharedQueryParamsInitalState: SharedQueryParamsState;
|
|
3
|
+
export declare const sharedQueryParamsReducer: (state: SharedQueryParamsState, effect: import("./sharedQueryParamsTypes").SharedQueryParamsSetParamEffect) => [SharedQueryParamsState, boolean];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sharedQueryParamsReducer = exports.sharedQueryParamsInitalState = void 0;
|
|
4
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
|
+
const sharedQueryParamsTypes_1 = require("./sharedQueryParamsTypes");
|
|
6
|
+
exports.sharedQueryParamsInitalState = {
|
|
7
|
+
// No initial state
|
|
8
|
+
};
|
|
9
|
+
exports.sharedQueryParamsReducer = (0, quidproquo_core_1.buildMutableEffectReducer)({
|
|
10
|
+
[sharedQueryParamsTypes_1.SharedQueryParamsEffect.SetParam]: (state, { key, values }) => {
|
|
11
|
+
state[key] = values;
|
|
12
|
+
},
|
|
13
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Effect } from 'quidproquo-core';
|
|
2
|
+
export type SharedQueryParamsState = Record<string, string[] | undefined>;
|
|
3
|
+
export declare enum SharedQueryParamsEffect {
|
|
4
|
+
SetParam = "Qpq/SharedQueryParams/SetParam"
|
|
5
|
+
}
|
|
6
|
+
export type SharedQueryParamsSetParamEffect = Effect<SharedQueryParamsEffect.SetParam, {
|
|
7
|
+
key: string;
|
|
8
|
+
values: string[];
|
|
9
|
+
}>;
|
|
10
|
+
export type SharedQueryParamsEffects = SharedQueryParamsSetParamEffect;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SharedQueryParamsEffect = void 0;
|
|
4
|
+
var SharedQueryParamsEffect;
|
|
5
|
+
(function (SharedQueryParamsEffect) {
|
|
6
|
+
SharedQueryParamsEffect["SetParam"] = "Qpq/SharedQueryParams/SetParam";
|
|
7
|
+
})(SharedQueryParamsEffect || (exports.SharedQueryParamsEffect = SharedQueryParamsEffect = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sharedQueryParamsRuntime = void 0;
|
|
4
|
+
const hooks_1 = require("../hooks");
|
|
5
|
+
const runtime_1 = require("./logic/runtime");
|
|
6
|
+
const logic_1 = require("./logic");
|
|
7
|
+
exports.sharedQueryParamsRuntime = (0, hooks_1.createQpqRuntimeDefinition)(runtime_1.sharedQueryParamsLogic, logic_1.sharedQueryParamsInitalState, logic_1.sharedQueryParamsReducer);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './useSubscribeToWebSocketQueueEvent';
|
|
2
|
-
export * from './useWebsocketQueueSendEvent';
|
|
1
|
+
export * from './useSubscribeToWebSocketQueueEvent';
|
|
2
|
+
export * from './useWebsocketQueueSendEvent';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./useSubscribeToWebSocketQueueEvent"), exports);
|
|
18
|
-
__exportStar(require("./useWebsocketQueueSendEvent"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useSubscribeToWebSocketQueueEvent"), exports);
|
|
18
|
+
__exportStar(require("./useWebsocketQueueSendEvent"), exports);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WebSocketServiceEventSubscriptionFunction } from 'quidproquo-web';
|
|
2
|
-
import { AnyWebSocketQueueEventMessageWithCorrelation } from 'quidproquo-webserver';
|
|
3
|
-
export declare const useSubscribeToWebSocketQueueEvent: <E extends AnyWebSocketQueueEventMessageWithCorrelation>(subscriptionType: E["type"], callback: WebSocketServiceEventSubscriptionFunction<E>) => void;
|
|
1
|
+
import { WebSocketServiceEventSubscriptionFunction } from 'quidproquo-web';
|
|
2
|
+
import { AnyWebSocketQueueEventMessageWithCorrelation } from 'quidproquo-webserver';
|
|
3
|
+
export declare const useSubscribeToWebSocketQueueEvent: <E extends AnyWebSocketQueueEventMessageWithCorrelation>(subscriptionType: E["type"], callback: WebSocketServiceEventSubscriptionFunction<E>) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useSubscribeToWebSocketQueueEvent = void 0;
|
|
4
|
-
const websocket_1 = require("../../websocket");
|
|
5
|
-
const useSubscribeToWebSocketQueueEvent = (subscriptionType, callback) => {
|
|
6
|
-
(0, websocket_1.useSubscribeToWebSocketEvent)(subscriptionType, callback);
|
|
7
|
-
};
|
|
8
|
-
exports.useSubscribeToWebSocketQueueEvent = useSubscribeToWebSocketQueueEvent;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSubscribeToWebSocketQueueEvent = void 0;
|
|
4
|
+
const websocket_1 = require("../../websocket");
|
|
5
|
+
const useSubscribeToWebSocketQueueEvent = (subscriptionType, callback) => {
|
|
6
|
+
(0, websocket_1.useSubscribeToWebSocketEvent)(subscriptionType, callback);
|
|
7
|
+
};
|
|
8
|
+
exports.useSubscribeToWebSocketQueueEvent = useSubscribeToWebSocketQueueEvent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnyWebSocketQueueEventMessageWithCorrelation } from 'quidproquo-webserver';
|
|
2
|
-
export declare const useWebsocketQueueSendEvent: <E extends AnyWebSocketQueueEventMessageWithCorrelation>() => (event: E) => void;
|
|
1
|
+
import { AnyWebSocketQueueEventMessageWithCorrelation } from 'quidproquo-webserver';
|
|
2
|
+
export declare const useWebsocketQueueSendEvent: <E extends AnyWebSocketQueueEventMessageWithCorrelation>() => (event: E) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useWebsocketQueueSendEvent = void 0;
|
|
4
|
-
const websocket_1 = require("../../websocket");
|
|
5
|
-
const useWebsocketQueueSendEvent = () => {
|
|
6
|
-
const sendMessage = (0, websocket_1.useWebsocketSendEvent)();
|
|
7
|
-
return sendMessage;
|
|
8
|
-
};
|
|
9
|
-
exports.useWebsocketQueueSendEvent = useWebsocketQueueSendEvent;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useWebsocketQueueSendEvent = void 0;
|
|
4
|
+
const websocket_1 = require("../../websocket");
|
|
5
|
+
const useWebsocketQueueSendEvent = () => {
|
|
6
|
+
const sendMessage = (0, websocket_1.useWebsocketSendEvent)();
|
|
7
|
+
return sendMessage;
|
|
8
|
+
};
|
|
9
|
+
exports.useWebsocketQueueSendEvent = useWebsocketQueueSendEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './hooks';
|
|
1
|
+
export * from './hooks';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./hooks"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./hooks"), exports);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const WebSocketAuthSync: import("react").NamedExoticComponent<WebSocketAuthSyncProps>;
|
|
1
|
+
import { AuthenticationInfo } from 'quidproquo-core';
|
|
2
|
+
export type WebSocketAuthSyncProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
accessToken: AuthenticationInfo['accessToken'];
|
|
5
|
+
};
|
|
6
|
+
export declare const WebSocketAuthSync: import("react").NamedExoticComponent<WebSocketAuthSyncProps>;
|