quidproquo-web-admin 0.1.0 → 0.1.2

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.
Files changed (200) hide show
  1. package/lib/commonjs/Auth/Auth.js +5 -6
  2. package/lib/commonjs/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.js +1 -1
  3. package/lib/commonjs/Auth/AuthChallengeNewPasswordRequired/AuthChallengeNewPasswordRequired.js +2 -2
  4. package/lib/commonjs/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.js +2 -2
  5. package/lib/commonjs/Auth/Login.js +2 -2
  6. package/lib/commonjs/Auth/logic/authRuntime.d.ts +7 -0
  7. package/lib/commonjs/Auth/logic/authRuntime.js +7 -0
  8. package/lib/commonjs/Auth/logic/index.d.ts +1 -0
  9. package/lib/commonjs/Auth/logic/index.js +1 -0
  10. package/lib/commonjs/Auth/logic/runtime/askAuthLogout.d.ts +2 -0
  11. package/lib/commonjs/Auth/logic/runtime/askAuthLogout.js +15 -0
  12. package/lib/commonjs/Auth/logic/runtime/authLogic.d.ts +2 -0
  13. package/lib/commonjs/Auth/logic/runtime/authLogic.js +2 -0
  14. package/lib/commonjs/Config/Config.js +3 -3
  15. package/lib/commonjs/LogViewer/ActionHistoryItem.js +1 -1
  16. package/lib/commonjs/LogViewer/ActionRender/ActionRender.js +3 -3
  17. package/lib/commonjs/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.js +3 -3
  18. package/lib/commonjs/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.js +4 -4
  19. package/lib/commonjs/LogViewer/AdminLogs/AdminLogs.js +1 -1
  20. package/lib/commonjs/LogViewer/Dashboard.js +8 -4
  21. package/lib/commonjs/LogViewer/EventTimeline.js +4 -4
  22. package/lib/commonjs/LogViewer/HelpChat/HelpChat.js +8 -7
  23. package/lib/commonjs/LogViewer/LogCorrelationTree.js +27 -24
  24. package/lib/commonjs/LogViewer/LogCorrelations.js +1 -1
  25. package/lib/commonjs/LogViewer/LogDetails.js +1 -1
  26. package/lib/commonjs/LogViewer/LogDialog/LogDialog.js +4 -4
  27. package/lib/commonjs/LogViewer/LogDialog/MovedToColdStorage/MovedToColdStorage.js +1 -1
  28. package/lib/commonjs/LogViewer/LogDialog/tabs/LogDetailsTab/LogDetailsTab.js +1 -1
  29. package/lib/commonjs/LogViewer/LogDialog/tabs/TimelineTab/TimelineTab.js +1 -1
  30. package/lib/commonjs/LogViewer/LogDialog/tabs/TreeTab/TreeTab.js +1 -1
  31. package/lib/commonjs/LogViewer/LogMetadataGrid.js +3 -3
  32. package/lib/commonjs/LogViewer/LogRawJson.js +1 -1
  33. package/lib/commonjs/LogViewer/LogSearch.js +1 -1
  34. package/lib/commonjs/LogViewer/LogSummary.js +2 -2
  35. package/lib/commonjs/LogViewer/LogSummaryDetails.js +5 -2
  36. package/lib/commonjs/LogViewer/LogSummaryReturn.js +1 -1
  37. package/lib/commonjs/LogViewer/TopSection.js +7 -7
  38. package/lib/commonjs/LogViewer/actionComponents/custom/CoreContextListCustomAction.js +1 -1
  39. package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogCreateCustomAction.js +1 -1
  40. package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogDisableEventHistoryCustomAction.js +1 -1
  41. package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogTemplateLiteralCustomAction.js +1 -1
  42. package/lib/commonjs/LogViewer/actionComponents/custom/CoreNetworkRequestCustomAction.js +2 -2
  43. package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/ActionResultDisplay.js +1 -1
  44. package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +15 -15
  45. package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/getGenericActionRenderer.js +7 -4
  46. package/lib/commonjs/LogViewer/charts/CostPerService.js +1 -1
  47. package/lib/commonjs/LogViewer/charts/ErrorsByType.js +1 -1
  48. package/lib/commonjs/LogViewer/charts/ErrorsOverTime.js +1 -1
  49. package/lib/commonjs/LogViewer/charts/RequestsByService.js +2 -2
  50. package/lib/commonjs/LogViewer/hooks/useLogManagement.js +1 -1
  51. package/lib/commonjs/LogViewer/hooks/useLogTreeData.js +14 -11
  52. package/lib/commonjs/LogViewer/hooks/useServiceNames.js +6 -5
  53. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.d.ts +2 -0
  54. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.js +8 -0
  55. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.d.ts +2 -0
  56. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.js +7 -0
  57. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +1 -0
  58. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +4 -0
  59. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +1 -1
  60. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +5 -0
  61. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.d.ts +2 -0
  62. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.js +14 -0
  63. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.d.ts +2 -0
  64. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.js +7 -0
  65. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +5 -0
  66. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.d.ts +2 -0
  67. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.js +8 -0
  68. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.d.ts +2 -0
  69. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.js +8 -0
  70. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreSystemActionComponentMap.js +1 -0
  71. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +12 -2
  72. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/index.js +7 -1
  73. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/index.js +8 -1
  74. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.d.ts +2 -0
  75. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.js +10 -0
  76. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.d.ts +2 -0
  77. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.js +7 -0
  78. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.d.ts +2 -0
  79. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.js +7 -0
  80. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.d.ts +2 -0
  81. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.js +8 -0
  82. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.d.ts +2 -0
  83. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.js +7 -0
  84. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.d.ts +2 -0
  85. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.js +7 -0
  86. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.d.ts +2 -0
  87. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js +7 -0
  88. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverWebEntryActionComponentMap.js +1 -1
  89. package/lib/commonjs/components/AdminDialog.js +2 -2
  90. package/lib/commonjs/components/AsyncButton.js +1 -1
  91. package/lib/commonjs/components/AutocompleteInput.js +2 -2
  92. package/lib/commonjs/components/DataGrid.js +1 -1
  93. package/lib/commonjs/components/DataGridPagination/DataGridPagination.js +1 -1
  94. package/lib/commonjs/components/DateCell/DateCell.js +1 -1
  95. package/lib/commonjs/components/DateRangePicker.js +2 -2
  96. package/lib/commonjs/components/MainLayout/MainLayout.js +11 -2
  97. package/lib/commonjs/components/TextInput.js +2 -2
  98. package/lib/commonjs/tmp/RandomView.js +1 -1
  99. package/lib/commonjs/useFederatedAddon.js +7 -6
  100. package/lib/esm/Auth/Auth.js +3 -4
  101. package/lib/esm/Auth/AuthChallengeMfaSetup/AuthChallengeMfaSetup.js +1 -1
  102. package/lib/esm/Auth/AuthChallengeMfaSetup/logic/authActionCreator.js +1 -1
  103. package/lib/esm/Auth/AuthChallengeNewPasswordRequired/AuthChallengeNewPasswordRequired.js +1 -1
  104. package/lib/esm/Auth/AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa.js +1 -1
  105. package/lib/esm/Auth/Login.js +2 -2
  106. package/lib/esm/Auth/logic/authRuntime.d.ts +7 -0
  107. package/lib/esm/Auth/logic/authRuntime.js +4 -0
  108. package/lib/esm/Auth/logic/index.d.ts +1 -0
  109. package/lib/esm/Auth/logic/index.js +1 -0
  110. package/lib/esm/Auth/logic/runtime/askAuthLogout.d.ts +2 -0
  111. package/lib/esm/Auth/logic/runtime/askAuthLogout.js +12 -0
  112. package/lib/esm/Auth/logic/runtime/authLogic.d.ts +2 -0
  113. package/lib/esm/Auth/logic/runtime/authLogic.js +2 -0
  114. package/lib/esm/Config/Config.js +3 -3
  115. package/lib/esm/LogViewer/ActionHistoryItem.js +1 -1
  116. package/lib/esm/LogViewer/ActionRender/ActionRender.js +3 -3
  117. package/lib/esm/LogViewer/AdminLogs/AdminLogGrid/AdminLogGrid.js +3 -3
  118. package/lib/esm/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.js +4 -4
  119. package/lib/esm/LogViewer/AdminLogs/AdminLogs.js +1 -1
  120. package/lib/esm/LogViewer/Dashboard.js +9 -5
  121. package/lib/esm/LogViewer/EventTimeline.js +4 -4
  122. package/lib/esm/LogViewer/HelpChat/HelpChat.js +9 -8
  123. package/lib/esm/LogViewer/LogCorrelationTree.js +27 -24
  124. package/lib/esm/LogViewer/LogCorrelations.js +1 -1
  125. package/lib/esm/LogViewer/LogDetails.js +1 -1
  126. package/lib/esm/LogViewer/LogDialog/LogDialog.js +4 -4
  127. package/lib/esm/LogViewer/LogDialog/MovedToColdStorage/MovedToColdStorage.js +1 -1
  128. package/lib/esm/LogViewer/LogDialog/tabs/LogDetailsTab/LogDetailsTab.js +1 -1
  129. package/lib/esm/LogViewer/LogDialog/tabs/TimelineTab/TimelineTab.js +1 -1
  130. package/lib/esm/LogViewer/LogDialog/tabs/TreeTab/TreeTab.js +1 -1
  131. package/lib/esm/LogViewer/LogMetadataGrid.js +3 -3
  132. package/lib/esm/LogViewer/LogRawJson.js +1 -1
  133. package/lib/esm/LogViewer/LogSearch.js +1 -1
  134. package/lib/esm/LogViewer/LogSummary.js +2 -2
  135. package/lib/esm/LogViewer/LogSummaryDetails.js +5 -2
  136. package/lib/esm/LogViewer/LogSummaryReturn.js +1 -1
  137. package/lib/esm/LogViewer/TopSection.js +7 -7
  138. package/lib/esm/LogViewer/actionComponents/custom/CoreContextListCustomAction.js +1 -1
  139. package/lib/esm/LogViewer/actionComponents/custom/CoreLogCreateCustomAction.js +1 -1
  140. package/lib/esm/LogViewer/actionComponents/custom/CoreLogDisableEventHistoryCustomAction.js +1 -1
  141. package/lib/esm/LogViewer/actionComponents/custom/CoreLogTemplateLiteralCustomAction.js +1 -1
  142. package/lib/esm/LogViewer/actionComponents/custom/CoreNetworkRequestCustomAction.js +2 -2
  143. package/lib/esm/LogViewer/actionComponents/genericActionRenderer/ActionResultDisplay.js +1 -1
  144. package/lib/esm/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +15 -15
  145. package/lib/esm/LogViewer/actionComponents/genericActionRenderer/getGenericActionRenderer.js +7 -4
  146. package/lib/esm/LogViewer/charts/CostPerService.js +1 -1
  147. package/lib/esm/LogViewer/charts/ErrorsByType.js +1 -1
  148. package/lib/esm/LogViewer/charts/ErrorsOverTime.js +1 -1
  149. package/lib/esm/LogViewer/charts/RequestsByService.js +2 -2
  150. package/lib/esm/LogViewer/hooks/useLogManagement.js +1 -1
  151. package/lib/esm/LogViewer/hooks/useLogTreeData.js +15 -12
  152. package/lib/esm/LogViewer/hooks/useServiceNames.js +7 -6
  153. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.d.ts +2 -0
  154. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreAiActionComponentMap.js +6 -0
  155. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.d.ts +2 -0
  156. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreClaudeAiActionComponentMap.js +5 -0
  157. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +1 -0
  158. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +4 -0
  159. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +1 -1
  160. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +5 -0
  161. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.d.ts +2 -0
  162. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreGraphDatabaseActionComponentMap.js +12 -0
  163. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.d.ts +2 -0
  164. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreInlineFunctionActionComponentMap.js +5 -0
  165. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +5 -0
  166. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.d.ts +2 -0
  167. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStateActionComponentMap.js +6 -0
  168. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.d.ts +2 -0
  169. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreStreamActionComponentMap.js +6 -0
  170. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreSystemActionComponentMap.js +1 -0
  171. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +12 -2
  172. package/lib/esm/LogViewer/logic/actionComponentMap/core/index.js +12 -0
  173. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/index.js +14 -0
  174. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.d.ts +2 -0
  175. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverAdminActionComponentMap.js +8 -0
  176. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.d.ts +2 -0
  177. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverApiKeyValidationActionComponentMap.js +5 -0
  178. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.d.ts +2 -0
  179. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverDnsActionComponentMap.js +5 -0
  180. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.d.ts +2 -0
  181. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverGenericDataResourceActionComponentMap.js +6 -0
  182. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.d.ts +2 -0
  183. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverOpenApiSpecActionComponentMap.js +5 -0
  184. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.d.ts +2 -0
  185. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverRouteAuthValidationActionComponentMap.js +5 -0
  186. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.d.ts +2 -0
  187. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceActionComponentMap.js +5 -0
  188. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverWebEntryActionComponentMap.js +1 -1
  189. package/lib/esm/components/AdminDialog.js +2 -2
  190. package/lib/esm/components/AsyncButton.js +1 -1
  191. package/lib/esm/components/AutocompleteInput.js +2 -2
  192. package/lib/esm/components/DataGrid.js +1 -1
  193. package/lib/esm/components/DataGridPagination/DataGridPagination.js +1 -1
  194. package/lib/esm/components/DateCell/DateCell.js +1 -1
  195. package/lib/esm/components/DateRangePicker.js +2 -2
  196. package/lib/esm/components/MainLayout/MainLayout.js +11 -2
  197. package/lib/esm/components/TextInput.js +2 -2
  198. package/lib/esm/tmp/RandomView.js +1 -1
  199. package/lib/esm/useFederatedAddon.js +8 -7
  200. package/package.json +7 -7
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
4
+ const coreInlineFunctionActionComponentMap = {
5
+ [quidproquo_core_1.InlineFunctionActionType.Execute]: ['askInlineFunctionExecute', 'functionName', 'payload'],
6
+ };
7
+ exports.default = coreInlineFunctionActionComponentMap;
@@ -5,5 +5,10 @@ const quidproquo_core_1 = require("quidproquo-core");
5
5
  exports.coreKeyValueStoreActionComponentMap = {
6
6
  [quidproquo_core_1.KeyValueStoreActionType.Query]: ['askKeyValueStoreQuery', 'keyValueStoreName', 'keyCondition', 'options'],
7
7
  [quidproquo_core_1.KeyValueStoreActionType.Upsert]: ['askKeyValueStoreUpsert', 'keyValueStoreName', 'item', 'options'],
8
+ [quidproquo_core_1.KeyValueStoreActionType.Get]: ['askKeyValueStoreGet', 'keyValueStoreName', 'key', 'options'],
9
+ [quidproquo_core_1.KeyValueStoreActionType.GetAll]: ['askKeyValueStoreGetAll', 'keyValueStoreName', 'options'],
10
+ [quidproquo_core_1.KeyValueStoreActionType.Delete]: ['askKeyValueStoreDelete', 'keyValueStoreName', 'key', 'sortKey', 'options'],
11
+ [quidproquo_core_1.KeyValueStoreActionType.Update]: ['askKeyValueStoreUpdate', 'keyValueStoreName', 'updates', 'key', 'sortKey', 'options'],
12
+ [quidproquo_core_1.KeyValueStoreActionType.Scan]: ['askKeyValueStoreScan', 'keyValueStoreName', 'filterCondition', 'nextPageKey'],
8
13
  };
9
14
  exports.default = exports.coreKeyValueStoreActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const coreStateActionComponentMap: Record<string, string[]>;
2
+ export default coreStateActionComponentMap;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
4
+ const coreStateActionComponentMap = {
5
+ [quidproquo_core_1.StateActionType.Dispatch]: ['askStateDispatch', 'action'],
6
+ [quidproquo_core_1.StateActionType.Read]: ['askStateRead', 'path'],
7
+ };
8
+ exports.default = coreStateActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const coreStreamActionComponentMap: Record<string, string[]>;
2
+ export default coreStreamActionComponentMap;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
4
+ const coreStreamActionComponentMap = {
5
+ [quidproquo_core_1.StreamActionType.Read]: ['askStreamRead', 'streamId', 'noWait'],
6
+ [quidproquo_core_1.StreamActionType.Close]: ['askStreamClose', 'streamId'],
7
+ };
8
+ exports.default = coreStreamActionComponentMap;
@@ -4,5 +4,6 @@ const quidproquo_core_1 = require("quidproquo-core");
4
4
  const coreSystemActionComponentMap = {
5
5
  [quidproquo_core_1.SystemActionType.Batch]: ['askBatch', 'actions'],
6
6
  [quidproquo_core_1.SystemActionType.ExecuteStory]: ['askExecuteStory', 'runtime', 'params', 'storySession'],
7
+ [quidproquo_core_1.SystemActionType.GetRuntimeCorrelation]: ['askGetRuntimeCorrelation'],
7
8
  };
8
9
  exports.default = coreSystemActionComponentMap;
@@ -9,15 +9,25 @@ const coreUserDirectoryActionComponentMap = {
9
9
  [quidproquo_core_1.UserDirectoryActionType.RequestEmailVerification]: ['askUserDirectoryRequestEmailVerification', 'userDirectoryName', 'accessToken'],
10
10
  [quidproquo_core_1.UserDirectoryActionType.ConfirmEmailVerification]: ['askUserDirectoryConfirmEmailVerification', 'code', 'accessToken'],
11
11
  [quidproquo_core_1.UserDirectoryActionType.ReadAccessToken]: ['askUserDirectoryReadAccessToken', 'userDirectoryName', 'ignoreExpiration'],
12
- [quidproquo_core_1.UserDirectoryActionType.SetAccessToken]: ['askUserDirectorySetAccessToken', 'accessToken'],
12
+ [quidproquo_core_1.UserDirectoryActionType.SetAccessToken]: ['askUserDirectorySetAccessToken', 'userDirectoryName', 'accessToken'],
13
13
  [quidproquo_core_1.UserDirectoryActionType.DecodeAccessToken]: ['askUserDirectoryDecodeAccessToken', 'userDirectoryName', 'ignoreExpiration', 'accessToken'],
14
14
  [quidproquo_core_1.UserDirectoryActionType.RespondToAuthChallenge]: ['askUserDirectoryRespondToAuthChallenge', 'userDirectoryName', 'authChallenge'],
15
15
  [quidproquo_core_1.UserDirectoryActionType.GetUserAttributes]: ['askUserDirectoryGetUserAttributes', 'userDirectoryName', 'username'],
16
16
  [quidproquo_core_1.UserDirectoryActionType.GetUserAttributesByUserId]: ['askUserDirectoryGetUserAttributesByUserId', 'userDirectoryName', 'userId'],
17
17
  [quidproquo_core_1.UserDirectoryActionType.SetUserAttributes]: ['askUserDirectorySetUserAttributes', 'userDirectoryName', 'username', 'userAttributes'],
18
- [quidproquo_core_1.UserDirectoryActionType.ChangePassword]: ['askUserDirectoryChangePassword', 'oldPassword', 'newPassword'],
18
+ [quidproquo_core_1.UserDirectoryActionType.ChangePassword]: ['askUserDirectoryChangePassword', 'oldPassword', 'newPassword', 'accessToken'],
19
19
  [quidproquo_core_1.UserDirectoryActionType.SetPassword]: ['askUserDirectorySetPassword', 'userDirectoryName', 'username', 'newPassword'],
20
20
  [quidproquo_core_1.UserDirectoryActionType.GetUsers]: ['askUserDirectoryGetUsers', 'userDirectoryName', 'nextPageKey'],
21
21
  [quidproquo_core_1.UserDirectoryActionType.RefreshToken]: ['askUserDirectoryRefreshToken', 'userDirectoryName', 'refreshToken'],
22
+ [quidproquo_core_1.UserDirectoryActionType.AssociateSoftwareToken]: ['askUserDirectoryAssociateSoftwareToken', 'userDirectoryName', 'session'],
23
+ // 'attribueName' / 'attribueValue' match the (misspelled) payload keys in core
24
+ [quidproquo_core_1.UserDirectoryActionType.GetUsersByAttribute]: [
25
+ 'askUserDirectoryGetUsersByAttribute',
26
+ 'userDirectoryName',
27
+ 'attribueName',
28
+ 'attribueValue',
29
+ 'limit',
30
+ 'nextPageKey',
31
+ ],
22
32
  };
23
33
  exports.default = coreUserDirectoryActionComponentMap;
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const coreAiActionComponentMap_1 = __importDefault(require("./coreAiActionComponentMap"));
7
+ const coreClaudeAiActionComponentMap_1 = __importDefault(require("./coreClaudeAiActionComponentMap"));
6
8
  const coreConfigActionComponentMap_1 = __importDefault(require("./coreConfigActionComponentMap"));
7
9
  const coreContextActionComponentMap_1 = __importDefault(require("./coreContextActionComponentMap"));
8
10
  const coreDateActionComponentMap_1 = __importDefault(require("./coreDateActionComponentMap"));
@@ -11,11 +13,15 @@ const coreErrorActionComponentMap_1 = __importDefault(require("./coreErrorAction
11
13
  const coreEventActionComponentMap_1 = __importDefault(require("./coreEventActionComponentMap"));
12
14
  const coreEventBusActionComponentMap_1 = __importDefault(require("./coreEventBusActionComponentMap"));
13
15
  const coreFileActionComponentMap_1 = __importDefault(require("./coreFileActionComponentMap"));
16
+ const coreGraphDatabaseActionComponentMap_1 = __importDefault(require("./coreGraphDatabaseActionComponentMap"));
14
17
  const coreGuidActionComponentMap_1 = __importDefault(require("./coreGuidActionComponentMap"));
18
+ const coreInlineFunctionActionComponentMap_1 = __importDefault(require("./coreInlineFunctionActionComponentMap"));
15
19
  const coreKeyValueStoreActionComponentMap_1 = __importDefault(require("./coreKeyValueStoreActionComponentMap"));
16
20
  const coreMathActionComponentMap_1 = __importDefault(require("./coreMathActionComponentMap"));
17
21
  const corePlatformActionComponentMap_1 = __importDefault(require("./corePlatformActionComponentMap"));
18
22
  const coreQueueActionComponentMap_1 = __importDefault(require("./coreQueueActionComponentMap"));
23
+ const coreStateActionComponentMap_1 = __importDefault(require("./coreStateActionComponentMap"));
24
+ const coreStreamActionComponentMap_1 = __importDefault(require("./coreStreamActionComponentMap"));
19
25
  const coreSystemActionComponentMap_1 = __importDefault(require("./coreSystemActionComponentMap"));
20
26
  const coreUserDirectoryActionComponentMap_1 = __importDefault(require("./coreUserDirectoryActionComponentMap"));
21
- exports.default = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, coreDeployEventActionComponentMap_1.default), coreConfigActionComponentMap_1.default), coreContextActionComponentMap_1.default), coreDateActionComponentMap_1.default), coreErrorActionComponentMap_1.default), coreEventActionComponentMap_1.default), coreEventBusActionComponentMap_1.default), coreFileActionComponentMap_1.default), coreGuidActionComponentMap_1.default), coreKeyValueStoreActionComponentMap_1.default), coreMathActionComponentMap_1.default), corePlatformActionComponentMap_1.default), coreQueueActionComponentMap_1.default), coreSystemActionComponentMap_1.default), coreUserDirectoryActionComponentMap_1.default);
27
+ exports.default = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, coreDeployEventActionComponentMap_1.default), coreAiActionComponentMap_1.default), coreClaudeAiActionComponentMap_1.default), coreConfigActionComponentMap_1.default), coreContextActionComponentMap_1.default), coreDateActionComponentMap_1.default), coreErrorActionComponentMap_1.default), coreEventActionComponentMap_1.default), coreEventBusActionComponentMap_1.default), coreFileActionComponentMap_1.default), coreGraphDatabaseActionComponentMap_1.default), coreGuidActionComponentMap_1.default), coreInlineFunctionActionComponentMap_1.default), coreKeyValueStoreActionComponentMap_1.default), coreMathActionComponentMap_1.default), corePlatformActionComponentMap_1.default), coreQueueActionComponentMap_1.default), coreStateActionComponentMap_1.default), coreStreamActionComponentMap_1.default), coreSystemActionComponentMap_1.default), coreUserDirectoryActionComponentMap_1.default);
@@ -3,7 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webserverAdminActionComponentMap_1 = __importDefault(require("./webserverAdminActionComponentMap"));
7
+ const webserverApiKeyValidationActionComponentMap_1 = __importDefault(require("./webserverApiKeyValidationActionComponentMap"));
8
+ const webserverDnsActionComponentMap_1 = __importDefault(require("./webserverDnsActionComponentMap"));
9
+ const webserverGenericDataResourceActionComponentMap_1 = __importDefault(require("./webserverGenericDataResourceActionComponentMap"));
10
+ const webserverOpenApiSpecActionComponentMap_1 = __importDefault(require("./webserverOpenApiSpecActionComponentMap"));
11
+ const webserverRouteAuthValidationActionComponentMap_1 = __importDefault(require("./webserverRouteAuthValidationActionComponentMap"));
12
+ const webserverServiceActionComponentMap_1 = __importDefault(require("./webserverServiceActionComponentMap"));
6
13
  const webserverServiceFunctionActionComponentMap_1 = __importDefault(require("./webserverServiceFunctionActionComponentMap"));
7
14
  const webserverWebEntryActionComponentMap_1 = __importDefault(require("./webserverWebEntryActionComponentMap"));
8
15
  const webserverWebsocketActionComponentMap_1 = __importDefault(require("./webserverWebsocketActionComponentMap"));
9
- exports.default = Object.assign(Object.assign(Object.assign({}, webserverServiceFunctionActionComponentMap_1.default), webserverWebEntryActionComponentMap_1.default), webserverWebsocketActionComponentMap_1.default);
16
+ exports.default = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, webserverAdminActionComponentMap_1.default), webserverApiKeyValidationActionComponentMap_1.default), webserverDnsActionComponentMap_1.default), webserverGenericDataResourceActionComponentMap_1.default), webserverOpenApiSpecActionComponentMap_1.default), webserverRouteAuthValidationActionComponentMap_1.default), webserverServiceActionComponentMap_1.default), webserverServiceFunctionActionComponentMap_1.default), webserverWebEntryActionComponentMap_1.default), webserverWebsocketActionComponentMap_1.default);
@@ -0,0 +1,2 @@
1
+ declare const webserverAdminActionComponentMap: Record<string, string[]>;
2
+ export default webserverAdminActionComponentMap;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_webserver_1 = require("quidproquo-webserver");
4
+ const webserverAdminActionComponentMap = {
5
+ [quidproquo_webserver_1.AdminActionType.GetLog]: ['askAdminGetLog', 'correlationId'],
6
+ [quidproquo_webserver_1.AdminActionType.GetLogMetadata]: ['askAdminGetLogMetadata', 'correlationId'],
7
+ [quidproquo_webserver_1.AdminActionType.GetLogMetadataChildren]: ['askAdminGetLogMetadataChildren', 'correlationId', 'nextPageKey'],
8
+ [quidproquo_webserver_1.AdminActionType.GetLogs]: ['askAdminGetLogs', 'runtimeType', 'startIsoDateTime', 'endIsoDateTime', 'nextPageKey'],
9
+ };
10
+ exports.default = webserverAdminActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const webserverApiKeyValidationActionComponentMap: Record<string, string[]>;
2
+ export default webserverApiKeyValidationActionComponentMap;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_webserver_1 = require("quidproquo-webserver");
4
+ const webserverApiKeyValidationActionComponentMap = {
5
+ [quidproquo_webserver_1.ApiKeyValidationActionType.Validate]: ['askApiKeyValidationValidate', 'apiKeyValue', 'apiKeyReferences'],
6
+ };
7
+ exports.default = webserverApiKeyValidationActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const webserverDnsActionComponentMap: Record<string, string[]>;
2
+ export default webserverDnsActionComponentMap;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_webserver_1 = require("quidproquo-webserver");
4
+ const webserverDnsActionComponentMap = {
5
+ [quidproquo_webserver_1.DnsActionType.List]: ['askDnsList'],
6
+ };
7
+ exports.default = webserverDnsActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const webserverGenericDataResourceActionComponentMap: Record<string, string[]>;
2
+ export default webserverGenericDataResourceActionComponentMap;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_webserver_1 = require("quidproquo-webserver");
4
+ const webserverGenericDataResourceActionComponentMap = {
5
+ [quidproquo_webserver_1.GenericDataResourceActionTypeEnum.Put]: ['askPutGenericDataResource', 'tableName', 'item'],
6
+ [quidproquo_webserver_1.GenericDataResourceActionTypeEnum.Scan]: ['askScanGenericDataResource', 'tableName', 'maxItems'],
7
+ };
8
+ exports.default = webserverGenericDataResourceActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const webserverOpenApiSpecActionComponentMap: Record<string, string[]>;
2
+ export default webserverOpenApiSpecActionComponentMap;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_webserver_1 = require("quidproquo-webserver");
4
+ const webserverOpenApiSpecActionComponentMap = {
5
+ [quidproquo_webserver_1.OpenApiSpecActionType.GetOpenApiSpec]: ['askGetOpenApiSpec'],
6
+ };
7
+ exports.default = webserverOpenApiSpecActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const webserverRouteAuthValidationActionComponentMap: Record<string, string[]>;
2
+ export default webserverRouteAuthValidationActionComponentMap;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_webserver_1 = require("quidproquo-webserver");
4
+ const webserverRouteAuthValidationActionComponentMap = {
5
+ [quidproquo_webserver_1.RouteAuthValidationActionType.Decode]: ['askRouteAuthValidationDecode', 'event', 'routeAuthSettings', 'ignoreExpiration'],
6
+ };
7
+ exports.default = webserverRouteAuthValidationActionComponentMap;
@@ -0,0 +1,2 @@
1
+ declare const webserverServiceActionComponentMap: Record<string, string[]>;
2
+ export default webserverServiceActionComponentMap;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_webserver_1 = require("quidproquo-webserver");
4
+ const webserverServiceActionComponentMap = {
5
+ [quidproquo_webserver_1.ServiceActionType.Request]: ['askServiceRequest', 'serviceName', 'method', 'payload'],
6
+ };
7
+ exports.default = webserverServiceActionComponentMap;
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const quidproquo_webserver_1 = require("quidproquo-webserver");
4
4
  const webserverWebEntryActionComponentMap = {
5
- [quidproquo_webserver_1.WebEntryActionType.InvalidateCache]: ['askWebEntryInvalidateCache', 'entryName'],
5
+ [quidproquo_webserver_1.WebEntryActionType.InvalidateCache]: ['askWebEntryInvalidateCache', 'webEntryName', 'paths'],
6
6
  };
7
7
  exports.default = webserverWebEntryActionComponentMap;
@@ -24,14 +24,14 @@ const AdminDialog = ({ open, handleClose, title, selectedTab, onSelectTab, tabs,
24
24
  const handleTabChange = (event, newValue) => {
25
25
  onSelectTab(tabs[newValue]);
26
26
  };
27
- return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, { open: open, scroll: 'paper', "aria-labelledby": "scroll-dialog-title", "aria-describedby": "scroll-dialog-description", onClose: handleClose, maxWidth: false, fullWidth: true, PaperProps: {
27
+ return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, { "aria-describedby": "scroll-dialog-description", "aria-labelledby": "scroll-dialog-title", fullWidth: true, maxWidth: false, onClose: handleClose, open: open, PaperProps: {
28
28
  style: {
29
29
  width: '90%',
30
30
  height: '90%',
31
31
  maxHeight: '90%',
32
32
  maxWidth: '90%',
33
33
  },
34
- }, children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { id: "scroll-dialog-title", children: title }), tabs.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.AppBar, { position: "sticky", color: "primary", children: (0, jsx_runtime_1.jsx)(material_1.Tabs, { value: selectedTabIndex, onChange: handleTabChange, textColor: "inherit", indicatorColor: "secondary", children: tabs.map((t) => ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: t }, t))) }) })), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { dividers: true, sx: {
34
+ }, scroll: 'paper', children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { id: "scroll-dialog-title", children: title }), tabs.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.AppBar, { color: "primary", position: "sticky", children: (0, jsx_runtime_1.jsx)(material_1.Tabs, { indicatorColor: "secondary", onChange: handleTabChange, textColor: "inherit", value: selectedTabIndex, children: tabs.map((t) => ((0, jsx_runtime_1.jsx)(material_1.Tab, { label: t }, t))) }) })), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { dividers: true, sx: {
35
35
  minHeight: '150px',
36
36
  overflowY: 'scroll',
37
37
  }, children: children }), buttons.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: buttons.map((b) => ((0, jsx_runtime_1.jsx)(material_1.Button, { disabled: b.disabled, onClick: b.onClick, children: b.text }, b.text))) }))] }));
@@ -32,5 +32,5 @@ function AsyncButton({ onClick, children, disabled, type }) {
32
32
  setLoading(false);
33
33
  }
34
34
  });
35
- return ((0, jsx_runtime_1.jsx)(Button_1.default, { onClick: handleLogin, fullWidth: true, variant: "contained", color: "primary", disabled: loading || disabled, style: { maxHeight: '100%', height: '4em' }, type: type, children: loading ? (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: 24 }) : children }));
35
+ return ((0, jsx_runtime_1.jsx)(Button_1.default, { color: "primary", disabled: loading || disabled, fullWidth: true, onClick: handleLogin, style: { maxHeight: '100%', height: '4em' }, type: type, variant: "contained", children: loading ? (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: 24 }) : children }));
36
36
  }
@@ -8,8 +8,8 @@ const AutocompleteInput = ({ label, value, options, onChange }) => {
8
8
  onChange(newValue ? newValue.value : '');
9
9
  };
10
10
  const selectedValue = options.find((option) => option.value === value) || null;
11
- return ((0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(material_1.Autocomplete, { options: options, getOptionLabel: (option) => option.label, value: selectedValue, onChange: handleChange, renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { label: label, InputLabelProps: {
11
+ return ((0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(material_1.Autocomplete, { getOptionLabel: (option) => option.label, onChange: handleChange, options: options, renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { InputLabelProps: {
12
12
  shrink: true,
13
- } }))) }) }));
13
+ }, label: label }))), value: selectedValue }) }));
14
14
  };
15
15
  exports.AutocompleteInput = AutocompleteInput;
@@ -16,6 +16,6 @@ const DataGrid = ({ items, columns, onRowClick }) => {
16
16
  valueGetter: 'valueGetter' in col ? (params) => col.valueGetter(params.row, params) : undefined,
17
17
  renderCell: (params) => { var _a; return (_a = col.renderCell) === null || _a === void 0 ? void 0 : _a.call(col, params.row, params); },
18
18
  }));
19
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { height: '100%', width: '100%' }, children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { rows: items, columns: muiColumns, onRowClick: handleRowClick }) }));
19
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { height: '100%', width: '100%' }, children: (0, jsx_runtime_1.jsx)(x_data_grid_1.DataGrid, { columns: muiColumns, onRowClick: handleRowClick, rows: items }) }));
20
20
  };
21
21
  exports.DataGrid = DataGrid;
@@ -11,5 +11,5 @@ function DataGridPagination() {
11
11
  const apiRef = (0, x_data_grid_1.useGridApiContext)();
12
12
  const page = (0, x_data_grid_1.useGridSelector)(apiRef, x_data_grid_1.gridPageSelector);
13
13
  const pageCount = (0, x_data_grid_1.useGridSelector)(apiRef, x_data_grid_1.gridPageCountSelector);
14
- return (0, jsx_runtime_1.jsx)(Pagination_1.default, { color: "primary", count: pageCount, page: page + 1, onChange: (event, value) => apiRef.current.setPage(value - 1) });
14
+ return (0, jsx_runtime_1.jsx)(Pagination_1.default, { color: "primary", count: pageCount, onChange: (event, value) => apiRef.current.setPage(value - 1), page: page + 1 });
15
15
  }
@@ -18,6 +18,6 @@ const DateCell = (props) => {
18
18
  month: '2-digit',
19
19
  year: '2-digit',
20
20
  });
21
- return ((0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', flexDirection: 'column' }, children: [(0, jsx_runtime_1.jsxs)(Typography_1.default, { variant: "body2", component: "span", children: [formattedDate, " ", formattedTime] }), (0, jsx_runtime_1.jsx)(LastSeen_1.default, { isoTime: date.toISOString(), timeStyle: "twitter" })] }));
21
+ return ((0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', flexDirection: 'column' }, children: [(0, jsx_runtime_1.jsxs)(Typography_1.default, { component: "span", variant: "body2", children: [formattedDate, " ", formattedTime] }), (0, jsx_runtime_1.jsx)(LastSeen_1.default, { isoTime: date.toISOString(), timeStyle: "twitter" })] }));
22
22
  };
23
23
  exports.DateCell = DateCell;
@@ -36,11 +36,11 @@ const DateRangePicker = ({ startIsoDateTime, endIsoDateTime, setStartIsoDateTime
36
36
  const handleQuickTimeClose = () => {
37
37
  setAnchorEl(null);
38
38
  };
39
- return ((0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterDateFns_1.AdapterDateFns, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, spacing: 2, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Box, { position: "relative", children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "Start DateTime", value: new Date(startIsoDateTime), onChange: handleStartDateChange }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", children: [(0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "End DateTime", value: new Date(endIsoDateTime), onChange: handleEndDateChange }) }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-label": "quick time select", "aria-controls": "quick-time-menu", "aria-haspopup": "true", onClick: handleQuickTimeClick, sx: {
39
+ return ((0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterDateFns_1.AdapterDateFns, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, spacing: 2, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Box, { position: "relative", children: (0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "Start DateTime", onChange: handleStartDateChange, value: new Date(startIsoDateTime) }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", children: [(0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "End DateTime", onChange: handleEndDateChange, value: new Date(endIsoDateTime) }) }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-controls": "quick-time-menu", "aria-haspopup": "true", "aria-label": "quick time select", onClick: handleQuickTimeClick, sx: {
40
40
  position: 'absolute',
41
41
  right: '-28px',
42
42
  top: '50%',
43
43
  transform: 'translateY(-50%)',
44
- }, children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) })] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Menu, { id: "quick-time-menu", anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleQuickTimeClose, children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(5), children: "Last 5 minutes" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(30), children: "Last 30 minutes" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(1 * 60), children: "Last hour" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(3 * 60), children: "Last 3 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(8 * 60), children: "Last 8 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(16 * 60), children: "Last 16 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(24 * 60), children: "Last 24 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(7 * 24 * 60), children: "Last 7 days" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(30 * 24 * 60), children: "Last month" })] })] }));
44
+ }, children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) })] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Menu, { anchorEl: anchorEl, id: "quick-time-menu", keepMounted: true, onClose: handleQuickTimeClose, open: Boolean(anchorEl), children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(5), children: "Last 5 minutes" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(30), children: "Last 30 minutes" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(1 * 60), children: "Last hour" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(3 * 60), children: "Last 3 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(8 * 60), children: "Last 8 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(16 * 60), children: "Last 16 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(24 * 60), children: "Last 24 hours" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(7 * 24 * 60), children: "Last 7 days" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: () => handleQuickTimeSelect(30 * 24 * 60), children: "Last month" })] })] }));
45
45
  };
46
46
  exports.DateRangePicker = DateRangePicker;
@@ -5,13 +5,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MainLayout = MainLayout;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const quidproquo_web_react_1 = require("quidproquo-web-react");
9
+ const Logout_1 = __importDefault(require("@mui/icons-material/Logout"));
8
10
  const material_1 = require("@mui/material");
9
11
  const Box_1 = __importDefault(require("@mui/material/Box"));
12
+ const logic_1 = require("../../Auth/logic");
10
13
  const queryParams_1 = require("../../queryParams");
11
14
  const useTabs_1 = require("./hooks/useTabs");
12
15
  function MainLayout() {
13
16
  const { tabs, loading } = (0, useTabs_1.useTabs)();
14
17
  const { tab, handleTabOnChange } = (0, queryParams_1.useUrlFields)();
18
+ const [authApi] = (0, quidproquo_web_react_1.useQpqRuntime)(logic_1.authRuntime);
15
19
  return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: {
16
20
  display: 'flex',
17
21
  flexDirection: 'column',
@@ -23,7 +27,12 @@ function MainLayout() {
23
27
  pb: '56px', // <— prevent content from being hidden behind bottom nav
24
28
  }, children: tabs
25
29
  .filter((t, index) => index === tab)
26
- .map((tab) => ((0, jsx_runtime_1.jsx)(tab.View, {}, tab.name))) }), (0, jsx_runtime_1.jsxs)(material_1.BottomNavigation, { value: tab, onChange: (event, newValue) => handleTabOnChange(event, newValue), showLabels: true, sx: {
30
+ .map((tab) => ((0, jsx_runtime_1.jsx)(tab.View, {}, tab.name))) }), (0, jsx_runtime_1.jsxs)(material_1.BottomNavigation, { onChange: (event, newValue) => {
31
+ // The trailing Logout / Loading actions are not tabs
32
+ if (newValue < tabs.length) {
33
+ handleTabOnChange(event, newValue);
34
+ }
35
+ }, showLabels: true, sx: {
27
36
  position: 'fixed',
28
37
  bottom: 0,
29
38
  left: 0,
@@ -32,5 +41,5 @@ function MainLayout() {
32
41
  borderTop: 1,
33
42
  borderColor: 'divider',
34
43
  bgcolor: 'background.paper',
35
- }, children: [tabs.map((t) => ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { label: t.name, icon: t.icon }, t.name))), loading && (0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { label: "Loading", icon: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 18 }), disabled: true })] })] }));
44
+ }, value: tab, children: [tabs.map((t) => ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { icon: t.icon, label: t.name }, t.name))), loading && (0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { disabled: true, icon: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 18 }), label: "Loading" }), (0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { icon: (0, jsx_runtime_1.jsx)(Logout_1.default, {}), label: "Logout", onClick: () => authApi.authLogout() })] })] }));
36
45
  }
@@ -7,8 +7,8 @@ const TextInput = ({ label, value, onChange }) => {
7
7
  const handleChange = (event) => {
8
8
  onChange(event.target.value);
9
9
  };
10
- return ((0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { label: label, value: value || '', onChange: handleChange, InputLabelProps: {
10
+ return ((0, jsx_runtime_1.jsx)(material_1.FormControl, { fullWidth: true, children: (0, jsx_runtime_1.jsx)(material_1.TextField, { InputLabelProps: {
11
11
  shrink: true,
12
- } }) }));
12
+ }, label: label, onChange: handleChange, value: value || '' }) }));
13
13
  };
14
14
  exports.TextInput = TextInput;
@@ -47,6 +47,6 @@ const columns = [
47
47
  ];
48
48
  const AdminView = () => {
49
49
  const accessToken = (0, quidproquo_web_react_1.useAuthAccessToken)();
50
- return ((0, jsx_runtime_1.jsx)(components_1.TabViewBox, { header: () => ((0, jsx_runtime_1.jsxs)(components_1.GridContainer, { spacing: 2, xs: 12, children: [(0, jsx_runtime_1.jsx)(components_1.GridItem, { xs: 6, children: (0, jsx_runtime_1.jsx)(components_1.DateRangePicker, { startIsoDateTime: new Date().toISOString(), endIsoDateTime: new Date().toISOString(), setStartIsoDateTime: () => { }, setEndIsoDateTime: () => { } }) }), (0, jsx_runtime_1.jsx)(components_1.GridItem, { xs: 4, children: (0, jsx_runtime_1.jsx)(components_1.TextInput, { label: "Email", onChange: () => { }, value: "" }) }), (0, jsx_runtime_1.jsx)(components_1.GridItem, { xs: 2, children: (0, jsx_runtime_1.jsx)(components_1.AsyncButton, { onClick: () => __awaiter(void 0, void 0, void 0, function* () { }), children: "Search" }) })] })), body: () => (0, jsx_runtime_1.jsx)(components_1.DataGrid, { items: [], columns: columns }) }));
50
+ return ((0, jsx_runtime_1.jsx)(components_1.TabViewBox, { body: () => (0, jsx_runtime_1.jsx)(components_1.DataGrid, { columns: columns, items: [] }), header: () => ((0, jsx_runtime_1.jsxs)(components_1.GridContainer, { spacing: 2, xs: 12, children: [(0, jsx_runtime_1.jsx)(components_1.GridItem, { xs: 6, children: (0, jsx_runtime_1.jsx)(components_1.DateRangePicker, { endIsoDateTime: new Date().toISOString(), setEndIsoDateTime: () => { }, setStartIsoDateTime: () => { }, startIsoDateTime: new Date().toISOString() }) }), (0, jsx_runtime_1.jsx)(components_1.GridItem, { xs: 4, children: (0, jsx_runtime_1.jsx)(components_1.TextInput, { label: "Email", onChange: () => { }, value: "" }) }), (0, jsx_runtime_1.jsx)(components_1.GridItem, { xs: 2, children: (0, jsx_runtime_1.jsx)(components_1.AsyncButton, { onClick: () => __awaiter(void 0, void 0, void 0, function* () { }), children: "Search" }) })] })) }));
51
51
  };
52
52
  exports.default = (0, react_1.memo)(AdminView);
@@ -19,12 +19,13 @@ function useFederatedAddon() {
19
19
  const accessToken = (0, quidproquo_web_react_1.useAuthAccessToken)();
20
20
  const baseUrlResolvers = (0, quidproquo_web_react_1.useBaseUrlResolvers)();
21
21
  const loadAddons = (0, FederatedAddonProvider_1.useLoadFederatedAddons)();
22
+ // Stable identity so the mount-only effect below can list it as a dependency.
23
+ const doAsyncWork = (0, quidproquo_web_react_1.useEffectCallback)(() => __awaiter(this, void 0, void 0, function* () {
24
+ setLoading(true);
25
+ const addons = yield loadAddons({ baseUrlResolvers, accessToken });
26
+ setFederatedAddons(addons);
27
+ }));
22
28
  (0, react_1.useEffect)(() => {
23
- const doAsyncWork = () => __awaiter(this, void 0, void 0, function* () {
24
- setLoading(true);
25
- const addons = yield loadAddons({ baseUrlResolvers, accessToken });
26
- setFederatedAddons(addons);
27
- });
28
29
  doAsyncWork()
29
30
  .catch((e) => {
30
31
  console.log(e);
@@ -33,7 +34,7 @@ function useFederatedAddon() {
33
34
  .finally(() => {
34
35
  setLoading(false);
35
36
  });
36
- }, []);
37
+ }, [doAsyncWork]);
37
38
  return {
38
39
  addons: federatedAddons,
39
40
  loading,
@@ -1,14 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AuthenticateUserChallenge } from 'quidproquo-core';
3
- import { authContext, createQpqRuntimeDefinition, QpqRuntimeEffectCatcher, useQpqRuntime } from 'quidproquo-web-react';
3
+ import { authContext, QpqRuntimeEffectCatcher, useQpqRuntime } from 'quidproquo-web-react';
4
4
  import { AuthChallengeMfaSetup } from './AuthChallengeMfaSetup/AuthChallengeMfaSetup';
5
5
  import { AuthChallengeNewPasswordRequired } from './AuthChallengeNewPasswordRequired/AuthChallengeNewPasswordRequired';
6
6
  import { AuthChallengeSoftwareTokenMfa } from './AuthChallengeSoftwareTokenMfa/AuthChallengeSoftwareTokenMfa';
7
7
  import { isLoggedOn } from './logic/isLoggedOn';
8
8
  import { askAuthMain } from './logic/runtime/askAuthMain';
9
- import { authInitalState, authLogic, authReducer } from './logic';
9
+ import { authRuntime } from './logic';
10
10
  import { Login } from './Login';
11
- const authRuntime = createQpqRuntimeDefinition(authLogic, authInitalState, authReducer);
12
11
  export function Auth({ children }) {
13
12
  const [api, state, dispatch] = useQpqRuntime(authRuntime, askAuthMain);
14
13
  const isAuthenticated = isLoggedOn(state);
@@ -21,7 +20,7 @@ export function Auth({ children }) {
21
20
  if (state.authenticateUserResponse?.challenge === AuthenticateUserChallenge.MFA_SETUP) {
22
21
  return (_jsx(QpqRuntimeEffectCatcher, { runtime: authRuntime, children: _jsx(AuthChallengeMfaSetup, { authState: state }) }));
23
22
  }
24
- return (_jsxs(QpqRuntimeEffectCatcher, { runtime: authRuntime, children: [!isAuthenticated && (_jsx(Login, { setUsername: api.authUISetUsername, setPassword: api.authUISetPassword, username: state.username, password: state.password, onLogin: api.authLogin })), isAuthenticated && (_jsx(authContext.Provider, { value: {
23
+ return (_jsxs(QpqRuntimeEffectCatcher, { runtime: authRuntime, children: [!isAuthenticated && (_jsx(Login, { onLogin: api.authLogin, password: state.password, setPassword: api.authUISetPassword, setUsername: api.authUISetUsername, username: state.username })), isAuthenticated && (_jsx(authContext.Provider, { value: {
25
24
  challenge: state.authenticateUserResponse?.challenge,
26
25
  session: state.authenticateUserResponse?.session,
27
26
  username: state.username,
@@ -39,5 +39,5 @@ export function AuthChallengeMfaSetup({ authState }) {
39
39
  flexDirection: 'column',
40
40
  justifyContent: 'center',
41
41
  alignItems: 'center',
42
- }, children: _jsx(Box, { component: "form", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { variant: "h5", gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "Set Up Authenticator"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { variant: "body2", color: "text.secondary", children: "Add this account to your authenticator app, then enter the 6-digit code it generates." }) }), _jsxs(Grid, { item: true, xs: 12, children: [_jsx(Typography, { variant: "caption", color: "text.secondary", children: "Secret key" }), _jsx(Typography, { variant: "body1", sx: { fontFamily: 'monospace', wordBreak: 'break-all' }, children: state.secretCode || 'Loading…' })] }), state.secretCode && (_jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { variant: "caption", color: "text.secondary", sx: { wordBreak: 'break-all' }, children: buildOtpAuthUri(authState.username, state.secretCode) }) })), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { required: true, fullWidth: true, id: "mfaCode", label: "Authentication Code", autoFocus: true, inputProps: { inputMode: 'numeric', pattern: '[0-9]*', maxLength: 6 }, value: state.mfaCode, onChange: (event) => api.authChallengeSetMfaSetupCode(event.target.value.replace(/\D/g, '')) }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { onClick: () => api.authChallengeSendMfaSetupCode(challenge, authState.username), disabled: !isCodeValid || !state.secretCode, children: "Verify" }) })] }) }) }));
42
+ }, children: _jsx(Box, { component: "form", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, variant: "h5", children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "Set Up Authenticator"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { color: "text.secondary", variant: "body2", children: "Add this account to your authenticator app, then enter the 6-digit code it generates." }) }), _jsxs(Grid, { item: true, xs: 12, children: [_jsx(Typography, { color: "text.secondary", variant: "caption", children: "Secret key" }), _jsx(Typography, { sx: { fontFamily: 'monospace', wordBreak: 'break-all' }, variant: "body1", children: state.secretCode || 'Loading…' })] }), state.secretCode && (_jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { color: "text.secondary", sx: { wordBreak: 'break-all' }, variant: "caption", children: buildOtpAuthUri(authState.username, state.secretCode) }) })), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { autoFocus: true, fullWidth: true, id: "mfaCode", inputProps: { inputMode: 'numeric', pattern: '[0-9]*', maxLength: 6 }, label: "Authentication Code", onChange: (event) => api.authChallengeSetMfaSetupCode(event.target.value.replace(/\D/g, '')), required: true, value: state.mfaCode }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { disabled: !isCodeValid || !state.secretCode, onClick: () => api.authChallengeSendMfaSetupCode(challenge, authState.username), children: "Verify" }) })] }) }) }));
43
43
  }
@@ -1,5 +1,5 @@
1
1
  import { askStateDispatchEffect } from 'quidproquo-core';
2
- import { AuthChallengeMfaSetupEffect, } from './authChallengeTypes';
2
+ import { AuthChallengeMfaSetupEffect } from './authChallengeTypes';
3
3
  export function* askAuthChallengeSetMfaSetupCode(mfaCode) {
4
4
  yield* askStateDispatchEffect(AuthChallengeMfaSetupEffect.SetMfaCode, mfaCode);
5
5
  }
@@ -23,5 +23,5 @@ export function AuthChallengeNewPasswordRequired({ authState }) {
23
23
  flexDirection: 'column',
24
24
  justifyContent: 'center',
25
25
  alignItems: 'center',
26
- }, children: _jsx(Box, { component: "form", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { variant: "h5", gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "Password Change Required"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { required: true, fullWidth: true, id: "newPassword", label: "New Password", type: "password", autoFocus: true, value: state.passwordA, onChange: (event) => api.authChallengeSetPasswordA(event.target.value) }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { required: true, fullWidth: true, id: "confirmPassword", label: "Confirm Password", type: "password", value: state.passwordB, onChange: (event) => api.authChallengeSetPasswordB(event.target.value) }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { onClick: () => api.authChallengeSendPasswords(authState.authenticateUserResponse?.challenge, authState.authenticateUserResponse?.session, authState.username), disabled: !arePasswordsMatching, children: "Update Password" }) })] }) }) }));
26
+ }, children: _jsx(Box, { component: "form", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, variant: "h5", children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "Password Change Required"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { autoFocus: true, fullWidth: true, id: "newPassword", label: "New Password", onChange: (event) => api.authChallengeSetPasswordA(event.target.value), required: true, type: "password", value: state.passwordA }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { fullWidth: true, id: "confirmPassword", label: "Confirm Password", onChange: (event) => api.authChallengeSetPasswordB(event.target.value), required: true, type: "password", value: state.passwordB }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { disabled: !arePasswordsMatching, onClick: () => api.authChallengeSendPasswords(authState.authenticateUserResponse?.challenge, authState.authenticateUserResponse?.session, authState.username), children: "Update Password" }) })] }) }) }));
27
27
  }
@@ -23,5 +23,5 @@ export function AuthChallengeSoftwareTokenMfa({ authState }) {
23
23
  flexDirection: 'column',
24
24
  justifyContent: 'center',
25
25
  alignItems: 'center',
26
- }, children: _jsx(Box, { component: "form", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { variant: "h5", gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "Verification Code"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { variant: "body2", color: "text.secondary", children: "Enter the 6-digit code from your authenticator app." }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { required: true, fullWidth: true, id: "mfaCode", label: "Authentication Code", autoFocus: true, inputProps: { inputMode: 'numeric', pattern: '[0-9]*', maxLength: 6 }, value: state.mfaCode, onChange: (event) => api.authChallengeSetMfaCode(event.target.value.replace(/\D/g, '')) }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { onClick: () => api.authChallengeSendMfaCode(authState.authenticateUserResponse?.challenge, authState.authenticateUserResponse?.session, authState.username), disabled: !isCodeValid, children: "Verify" }) })] }) }) }));
26
+ }, children: _jsx(Box, { component: "form", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, variant: "h5", children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "Verification Code"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(Typography, { color: "text.secondary", variant: "body2", children: "Enter the 6-digit code from your authenticator app." }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { autoFocus: true, fullWidth: true, id: "mfaCode", inputProps: { inputMode: 'numeric', pattern: '[0-9]*', maxLength: 6 }, label: "Authentication Code", onChange: (event) => api.authChallengeSetMfaCode(event.target.value.replace(/\D/g, '')), required: true, value: state.mfaCode }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { disabled: !isCodeValid, onClick: () => api.authChallengeSendMfaCode(authState.authenticateUserResponse?.challenge, authState.authenticateUserResponse?.session, authState.username), children: "Verify" }) })] }) }) }));
27
27
  }
@@ -14,8 +14,8 @@ export function Login({ username, password, setUsername, setPassword, onLogin })
14
14
  flexDirection: 'column',
15
15
  justifyContent: 'center',
16
16
  alignItems: 'center',
17
- }, children: _jsx(Box, { component: "form", action: "#", autoComplete: "on", method: "post", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { variant: "h5", gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "QPQ Admin"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { required: true, fullWidth: true, id: "username", label: "Username", type: "username", autoComplete: "username", autoFocus: true, value: username, onChange: (event) => setUsername(event.target.value) }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { required: true, fullWidth: true, id: "password", label: "Password", type: "password", autoComplete: "current-password", value: password, onChange: (event) => setPassword(event.target.value) }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { type: "submit", onClick: async (event) => {
17
+ }, children: _jsx(Box, { action: "#", autoComplete: "on", component: "form", method: "post", sx: { width: '100%', maxWidth: 360 }, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsxs(Typography, { gutterBottom: true, sx: { display: 'flex', alignItems: 'center' }, variant: "h5", children: [_jsx(LockIcon, { sx: { marginRight: 1 } }), "QPQ Admin"] }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { autoComplete: "username", autoFocus: true, fullWidth: true, id: "username", label: "Username", onChange: (event) => setUsername(event.target.value), required: true, type: "username", value: username }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(TextField, { autoComplete: "current-password", fullWidth: true, id: "password", label: "Password", onChange: (event) => setPassword(event.target.value), required: true, type: "password", value: password }) }), _jsx(Grid, { item: true, xs: 12, children: _jsx(AsyncButton, { onClick: async (event) => {
18
18
  event.preventDefault();
19
19
  await onLogin();
20
- }, children: "Login" }) })] }) }) }));
20
+ }, type: "submit", children: "Login" }) })] }) }) }));
21
21
  }
@@ -0,0 +1,7 @@
1
+ export declare const authRuntime: import("quidproquo-web-react").QpqRuntimeDefinition<import("./authTypes").AuthState, import("./authTypes").AuthEffects, {
2
+ askAuthLogin: typeof import("./runtime/askAuthLogin").askAuthLogin;
3
+ askAuthLogout: typeof import("./runtime/askAuthLogout").askAuthLogout;
4
+ askAuthMain: typeof import("./runtime/askAuthMain").askAuthMain;
5
+ askAuthUISetUsername: typeof import("./authActionCreator").askAuthUISetUsername;
6
+ askAuthUISetPassword: typeof import("./authActionCreator").askAuthUISetPassword;
7
+ }>;
@@ -0,0 +1,4 @@
1
+ import { createQpqRuntimeDefinition } from 'quidproquo-web-react';
2
+ import { authLogic } from './runtime/authLogic';
3
+ import { authInitalState, authReducer } from './authReducer';
4
+ export const authRuntime = createQpqRuntimeDefinition(authLogic, authInitalState, authReducer);
@@ -1,4 +1,5 @@
1
1
  export * from './authActionCreator';
2
2
  export * from './authReducer';
3
+ export * from './authRuntime';
3
4
  export * from './authTypes';
4
5
  export * from './runtime';
@@ -1,4 +1,5 @@
1
1
  export * from './authActionCreator';
2
2
  export * from './authReducer';
3
+ export * from './authRuntime';
3
4
  export * from './authTypes';
4
5
  export * from './runtime';
@@ -0,0 +1,2 @@
1
+ import { AskResponse } from 'quidproquo-core';
2
+ export declare function askAuthLogout(): AskResponse<void>;
@@ -0,0 +1,12 @@
1
+ import { AuthenticateUserChallenge } from 'quidproquo-core';
2
+ import { askSaveAuthToken } from '../../../platformLogic';
3
+ import { askAuthUISetAuthInfo, askAuthUISetPassword } from '../authActionCreator';
4
+ export function* askAuthLogout() {
5
+ yield* askSaveAuthToken({
6
+ challenge: AuthenticateUserChallenge.NONE,
7
+ });
8
+ yield* askAuthUISetPassword('');
9
+ yield* askAuthUISetAuthInfo({
10
+ challenge: AuthenticateUserChallenge.NONE,
11
+ });
12
+ }