dce-reactkit 4.3.4 → 5.0.0

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 (343) hide show
  1. package/dist/cjs/index.js +338 -2316
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/LogReviewer.d.ts +1 -1
  4. package/dist/cjs/types/helpers/logClientEvent.d.ts +1 -1
  5. package/dist/cjs/types/html/genErrorPage.d.ts +1 -1
  6. package/dist/cjs/types/index.d.ts +2 -64
  7. package/dist/cjs/types/types/IntelliTableColumn.d.ts +1 -1
  8. package/dist/esm/index.js +78 -2223
  9. package/dist/esm/index.js.map +1 -1
  10. package/dist/esm/types/components/LogReviewer.d.ts +1 -1
  11. package/dist/esm/types/helpers/logClientEvent.d.ts +1 -1
  12. package/dist/esm/types/html/genErrorPage.d.ts +1 -1
  13. package/dist/esm/types/index.d.ts +2 -64
  14. package/dist/esm/types/types/IntelliTableColumn.d.ts +1 -1
  15. package/dist/index.d.ts +3 -835
  16. package/package.json +4 -3
  17. package/src/components/AppWrapper.tsx +12 -10
  18. package/src/components/AutoscrollToBottomContainer.tsx +5 -3
  19. package/src/components/CopiableBox.tsx +5 -1
  20. package/src/components/DBEntryManagerPanel/helpers/generateEndpointPath.ts +2 -2
  21. package/src/components/ErrorBox.tsx +6 -2
  22. package/src/components/IntelliTable.tsx +7 -5
  23. package/src/components/LogReviewer.tsx +23 -21
  24. package/src/components/Modal/index.tsx +5 -3
  25. package/src/components/MultiSwitch.tsx +5 -1
  26. package/src/components/Shimmer.tsx +4 -2
  27. package/src/components/SimpleDateChooser.tsx +11 -13
  28. package/src/components/SimpleTimeChooser.tsx +4 -2
  29. package/src/helpers/canReviewLogs.test.ts +5 -3
  30. package/src/helpers/canReviewLogs.ts +5 -3
  31. package/src/helpers/initClient.tsx +8 -8
  32. package/src/helpers/isMobileOrTablet.tsx +2 -1
  33. package/src/helpers/isSelectAdmin.ts +4 -2
  34. package/src/helpers/logClientEvent.tsx +7 -5
  35. package/src/helpers/stubServerEndpoint.tsx +1 -1
  36. package/src/helpers/visitServerEndpoint.tsx +10 -7
  37. package/src/html/genErrorPage.ts +6 -4
  38. package/src/index.ts +105 -98
  39. package/src/types/IntelliTableColumn.ts +4 -1
  40. package/dist/cjs/types/constants/DAY_IN_MS.d.ts +0 -6
  41. package/dist/cjs/types/constants/HOUR_IN_MS.d.ts +0 -6
  42. package/dist/cjs/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +0 -6
  43. package/dist/cjs/types/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.d.ts +0 -6
  44. package/dist/cjs/types/constants/LOG_REVIEW_STATUS_ROUTE.d.ts +0 -7
  45. package/dist/cjs/types/constants/LOG_ROUTE_PATH.d.ts +0 -6
  46. package/dist/cjs/types/constants/MINUTE_IN_MS.d.ts +0 -6
  47. package/dist/cjs/types/constants/ROUTE_PATH_PREFIX.d.ts +0 -6
  48. package/dist/cjs/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +0 -6
  49. package/dist/cjs/types/errors/ErrorWithCode.d.ts +0 -9
  50. package/dist/cjs/types/helpers/abbreviate.d.ts +0 -10
  51. package/dist/cjs/types/helpers/abbreviate.test.d.ts +0 -5
  52. package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.d.ts +0 -13
  53. package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +0 -1
  54. package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.d.ts +0 -13
  55. package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +0 -1
  56. package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +0 -10
  57. package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +0 -1
  58. package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.d.ts +0 -11
  59. package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +0 -1
  60. package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.d.ts +0 -13
  61. package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +0 -1
  62. package/dist/cjs/types/helpers/avg.d.ts +0 -8
  63. package/dist/cjs/types/helpers/avg.test.d.ts +0 -5
  64. package/dist/cjs/types/helpers/capitalize.d.ts +0 -7
  65. package/dist/cjs/types/helpers/ceilToNumDecimals.d.ts +0 -9
  66. package/dist/cjs/types/helpers/ceilToNumDecimals.test.d.ts +0 -5
  67. package/dist/cjs/types/helpers/cloneDeep.d.ts +0 -8
  68. package/dist/cjs/types/helpers/compareArraysByProp.d.ts +0 -13
  69. package/dist/cjs/types/helpers/compareArraysByProp.test.d.ts +0 -5
  70. package/dist/cjs/types/helpers/extractProp.d.ts +0 -12
  71. package/dist/cjs/types/helpers/extractProp.test.d.ts +0 -5
  72. package/dist/cjs/types/helpers/floorToNumDecimals.d.ts +0 -9
  73. package/dist/cjs/types/helpers/floorToNumDecimals.test.d.ts +0 -5
  74. package/dist/cjs/types/helpers/forceNumIntoBounds.d.ts +0 -10
  75. package/dist/cjs/types/helpers/forceNumIntoBounds.test.d.ts +0 -5
  76. package/dist/cjs/types/helpers/genCSV.d.ts +0 -18
  77. package/dist/cjs/types/helpers/genCSV.test.d.ts +0 -5
  78. package/dist/cjs/types/helpers/genCommaList.d.ts +0 -12
  79. package/dist/cjs/types/helpers/genCommaList.test.d.ts +0 -1
  80. package/dist/cjs/types/helpers/getHumanReadableDate.d.ts +0 -8
  81. package/dist/cjs/types/helpers/getHumanReadableDate.test.d.ts +0 -5
  82. package/dist/cjs/types/helpers/getLocalTimeInfo.d.ts +0 -19
  83. package/dist/cjs/types/helpers/getLocalTimeInfo.test.d.ts +0 -6
  84. package/dist/cjs/types/helpers/getMonthName.d.ts +0 -14
  85. package/dist/cjs/types/helpers/getMonthName.test.d.ts +0 -5
  86. package/dist/cjs/types/helpers/getOrdinal.d.ts +0 -8
  87. package/dist/cjs/types/helpers/getOrdinal.test.d.ts +0 -5
  88. package/dist/cjs/types/helpers/getPartOfDay.d.ts +0 -7
  89. package/dist/cjs/types/helpers/getPartOfDay.test.d.ts +0 -5
  90. package/dist/cjs/types/helpers/getTimeInfoInET.d.ts +0 -21
  91. package/dist/cjs/types/helpers/getTimeInfoInET.test.d.ts +0 -5
  92. package/dist/cjs/types/helpers/getTimestampFromTimeInfoInET.d.ts +0 -20
  93. package/dist/cjs/types/helpers/getWordCount.d.ts +0 -10
  94. package/dist/cjs/types/helpers/idify.d.ts +0 -9
  95. package/dist/cjs/types/helpers/onlyKeepLetters.d.ts +0 -8
  96. package/dist/cjs/types/helpers/padDecimalZeros.d.ts +0 -10
  97. package/dist/cjs/types/helpers/padZerosLeft.d.ts +0 -9
  98. package/dist/cjs/types/helpers/parallelLimit.d.ts +0 -12
  99. package/dist/cjs/types/helpers/prefixWithAOrAn.d.ts +0 -10
  100. package/dist/cjs/types/helpers/roundToNumDecimals.d.ts +0 -9
  101. package/dist/cjs/types/helpers/shuffleArray.d.ts +0 -8
  102. package/dist/cjs/types/helpers/startMinWait.d.ts +0 -9
  103. package/dist/cjs/types/helpers/stringsToHumanReadableList.d.ts +0 -10
  104. package/dist/cjs/types/helpers/sum.d.ts +0 -8
  105. package/dist/cjs/types/helpers/validators/ChicagoTitleCase.d.ts +0 -9
  106. package/dist/cjs/types/helpers/validators/shared/constants/ERROR_MESSAGES.d.ts +0 -10
  107. package/dist/cjs/types/helpers/validators/shared/helpers/validateRegex.d.ts +0 -19
  108. package/dist/cjs/types/helpers/validators/shared/types/ValidationResult.d.ts +0 -12
  109. package/dist/cjs/types/helpers/validators/validURL.d.ts +0 -8
  110. package/dist/cjs/types/helpers/validators/validateEmail.d.ts +0 -11
  111. package/dist/cjs/types/helpers/validators/validateEmail.test.d.ts +0 -1
  112. package/dist/cjs/types/helpers/validators/validatePhoneNumber.d.ts +0 -11
  113. package/dist/cjs/types/helpers/validators/validatePhoneNumber.test.d.ts +0 -1
  114. package/dist/cjs/types/helpers/validators/validateString.d.ts +0 -22
  115. package/dist/cjs/types/helpers/validators/validateString.test.d.ts +0 -1
  116. package/dist/cjs/types/helpers/waitMs.d.ts +0 -7
  117. package/dist/cjs/types/types/DayOfWeek.d.ts +0 -14
  118. package/dist/cjs/types/types/Log/LogMainInfo.d.ts +0 -39
  119. package/dist/cjs/types/types/Log/LogSourceSpecificInfo.d.ts +0 -13
  120. package/dist/cjs/types/types/Log/LogTypeSpecificInfo.d.ts +0 -17
  121. package/dist/cjs/types/types/Log/index.d.ts +0 -10
  122. package/dist/cjs/types/types/LogAction.d.ts +0 -29
  123. package/dist/cjs/types/types/LogBuiltInMetadata.d.ts +0 -16
  124. package/dist/cjs/types/types/LogFunction.d.ts +0 -24
  125. package/dist/cjs/types/types/LogLevel.d.ts +0 -10
  126. package/dist/cjs/types/types/LogMetadataContextMap.d.ts +0 -11
  127. package/dist/cjs/types/types/LogMetadataTagMap.d.ts +0 -8
  128. package/dist/cjs/types/types/LogMetadataTargetMap.d.ts +0 -8
  129. package/dist/cjs/types/types/LogMetadataType.d.ts +0 -13
  130. package/dist/cjs/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +0 -17
  131. package/dist/cjs/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +0 -21
  132. package/dist/cjs/types/types/LogReviewerFilterState/ContextFilterState.d.ts +0 -10
  133. package/dist/cjs/types/types/LogReviewerFilterState/DateFilterState.d.ts +0 -17
  134. package/dist/cjs/types/types/LogReviewerFilterState/TagFilterState.d.ts +0 -8
  135. package/dist/cjs/types/types/LogReviewerFilterState/index.d.ts +0 -17
  136. package/dist/cjs/types/types/LogSource.d.ts +0 -9
  137. package/dist/cjs/types/types/LogType.d.ts +0 -9
  138. package/dist/cjs/types/types/ParamType.d.ts +0 -17
  139. package/dist/cjs/types/types/ReactKitErrorCode.d.ts +0 -14
  140. package/dist/esm/types/constants/DAY_IN_MS.d.ts +0 -6
  141. package/dist/esm/types/constants/HOUR_IN_MS.d.ts +0 -6
  142. package/dist/esm/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +0 -6
  143. package/dist/esm/types/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.d.ts +0 -6
  144. package/dist/esm/types/constants/LOG_REVIEW_STATUS_ROUTE.d.ts +0 -7
  145. package/dist/esm/types/constants/LOG_ROUTE_PATH.d.ts +0 -6
  146. package/dist/esm/types/constants/MINUTE_IN_MS.d.ts +0 -6
  147. package/dist/esm/types/constants/ROUTE_PATH_PREFIX.d.ts +0 -6
  148. package/dist/esm/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +0 -6
  149. package/dist/esm/types/errors/ErrorWithCode.d.ts +0 -9
  150. package/dist/esm/types/helpers/abbreviate.d.ts +0 -10
  151. package/dist/esm/types/helpers/abbreviate.test.d.ts +0 -5
  152. package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.d.ts +0 -13
  153. package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +0 -1
  154. package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.d.ts +0 -13
  155. package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +0 -1
  156. package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +0 -10
  157. package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +0 -1
  158. package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.d.ts +0 -11
  159. package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +0 -1
  160. package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.d.ts +0 -13
  161. package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +0 -1
  162. package/dist/esm/types/helpers/avg.d.ts +0 -8
  163. package/dist/esm/types/helpers/avg.test.d.ts +0 -5
  164. package/dist/esm/types/helpers/capitalize.d.ts +0 -7
  165. package/dist/esm/types/helpers/ceilToNumDecimals.d.ts +0 -9
  166. package/dist/esm/types/helpers/ceilToNumDecimals.test.d.ts +0 -5
  167. package/dist/esm/types/helpers/cloneDeep.d.ts +0 -8
  168. package/dist/esm/types/helpers/compareArraysByProp.d.ts +0 -13
  169. package/dist/esm/types/helpers/compareArraysByProp.test.d.ts +0 -5
  170. package/dist/esm/types/helpers/extractProp.d.ts +0 -12
  171. package/dist/esm/types/helpers/extractProp.test.d.ts +0 -5
  172. package/dist/esm/types/helpers/floorToNumDecimals.d.ts +0 -9
  173. package/dist/esm/types/helpers/floorToNumDecimals.test.d.ts +0 -5
  174. package/dist/esm/types/helpers/forceNumIntoBounds.d.ts +0 -10
  175. package/dist/esm/types/helpers/forceNumIntoBounds.test.d.ts +0 -5
  176. package/dist/esm/types/helpers/genCSV.d.ts +0 -18
  177. package/dist/esm/types/helpers/genCSV.test.d.ts +0 -5
  178. package/dist/esm/types/helpers/genCommaList.d.ts +0 -12
  179. package/dist/esm/types/helpers/genCommaList.test.d.ts +0 -1
  180. package/dist/esm/types/helpers/getHumanReadableDate.d.ts +0 -8
  181. package/dist/esm/types/helpers/getHumanReadableDate.test.d.ts +0 -5
  182. package/dist/esm/types/helpers/getLocalTimeInfo.d.ts +0 -19
  183. package/dist/esm/types/helpers/getLocalTimeInfo.test.d.ts +0 -6
  184. package/dist/esm/types/helpers/getMonthName.d.ts +0 -14
  185. package/dist/esm/types/helpers/getMonthName.test.d.ts +0 -5
  186. package/dist/esm/types/helpers/getOrdinal.d.ts +0 -8
  187. package/dist/esm/types/helpers/getOrdinal.test.d.ts +0 -5
  188. package/dist/esm/types/helpers/getPartOfDay.d.ts +0 -7
  189. package/dist/esm/types/helpers/getPartOfDay.test.d.ts +0 -5
  190. package/dist/esm/types/helpers/getTimeInfoInET.d.ts +0 -21
  191. package/dist/esm/types/helpers/getTimeInfoInET.test.d.ts +0 -5
  192. package/dist/esm/types/helpers/getTimestampFromTimeInfoInET.d.ts +0 -20
  193. package/dist/esm/types/helpers/getWordCount.d.ts +0 -10
  194. package/dist/esm/types/helpers/idify.d.ts +0 -9
  195. package/dist/esm/types/helpers/onlyKeepLetters.d.ts +0 -8
  196. package/dist/esm/types/helpers/padDecimalZeros.d.ts +0 -10
  197. package/dist/esm/types/helpers/padZerosLeft.d.ts +0 -9
  198. package/dist/esm/types/helpers/parallelLimit.d.ts +0 -12
  199. package/dist/esm/types/helpers/prefixWithAOrAn.d.ts +0 -10
  200. package/dist/esm/types/helpers/roundToNumDecimals.d.ts +0 -9
  201. package/dist/esm/types/helpers/shuffleArray.d.ts +0 -8
  202. package/dist/esm/types/helpers/startMinWait.d.ts +0 -9
  203. package/dist/esm/types/helpers/stringsToHumanReadableList.d.ts +0 -10
  204. package/dist/esm/types/helpers/sum.d.ts +0 -8
  205. package/dist/esm/types/helpers/validators/ChicagoTitleCase.d.ts +0 -9
  206. package/dist/esm/types/helpers/validators/shared/constants/ERROR_MESSAGES.d.ts +0 -10
  207. package/dist/esm/types/helpers/validators/shared/helpers/validateRegex.d.ts +0 -19
  208. package/dist/esm/types/helpers/validators/shared/types/ValidationResult.d.ts +0 -12
  209. package/dist/esm/types/helpers/validators/validURL.d.ts +0 -8
  210. package/dist/esm/types/helpers/validators/validateEmail.d.ts +0 -11
  211. package/dist/esm/types/helpers/validators/validateEmail.test.d.ts +0 -1
  212. package/dist/esm/types/helpers/validators/validatePhoneNumber.d.ts +0 -11
  213. package/dist/esm/types/helpers/validators/validatePhoneNumber.test.d.ts +0 -1
  214. package/dist/esm/types/helpers/validators/validateString.d.ts +0 -22
  215. package/dist/esm/types/helpers/validators/validateString.test.d.ts +0 -1
  216. package/dist/esm/types/helpers/waitMs.d.ts +0 -7
  217. package/dist/esm/types/types/DayOfWeek.d.ts +0 -14
  218. package/dist/esm/types/types/Log/LogMainInfo.d.ts +0 -39
  219. package/dist/esm/types/types/Log/LogSourceSpecificInfo.d.ts +0 -13
  220. package/dist/esm/types/types/Log/LogTypeSpecificInfo.d.ts +0 -17
  221. package/dist/esm/types/types/Log/index.d.ts +0 -10
  222. package/dist/esm/types/types/LogAction.d.ts +0 -29
  223. package/dist/esm/types/types/LogBuiltInMetadata.d.ts +0 -16
  224. package/dist/esm/types/types/LogFunction.d.ts +0 -24
  225. package/dist/esm/types/types/LogLevel.d.ts +0 -10
  226. package/dist/esm/types/types/LogMetadataContextMap.d.ts +0 -11
  227. package/dist/esm/types/types/LogMetadataTagMap.d.ts +0 -8
  228. package/dist/esm/types/types/LogMetadataTargetMap.d.ts +0 -8
  229. package/dist/esm/types/types/LogMetadataType.d.ts +0 -13
  230. package/dist/esm/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +0 -17
  231. package/dist/esm/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +0 -21
  232. package/dist/esm/types/types/LogReviewerFilterState/ContextFilterState.d.ts +0 -10
  233. package/dist/esm/types/types/LogReviewerFilterState/DateFilterState.d.ts +0 -17
  234. package/dist/esm/types/types/LogReviewerFilterState/TagFilterState.d.ts +0 -8
  235. package/dist/esm/types/types/LogReviewerFilterState/index.d.ts +0 -17
  236. package/dist/esm/types/types/LogSource.d.ts +0 -9
  237. package/dist/esm/types/types/LogType.d.ts +0 -9
  238. package/dist/esm/types/types/ParamType.d.ts +0 -17
  239. package/dist/esm/types/types/ReactKitErrorCode.d.ts +0 -14
  240. package/src/constants/DAY_IN_MS.ts +0 -7
  241. package/src/constants/HOUR_IN_MS.ts +0 -7
  242. package/src/constants/LOG_REVIEW_GET_LOGS_ROUTE.ts +0 -9
  243. package/src/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.ts +0 -9
  244. package/src/constants/LOG_REVIEW_STATUS_ROUTE.ts +0 -10
  245. package/src/constants/LOG_ROUTE_PATH.ts +0 -9
  246. package/src/constants/MINUTE_IN_MS.ts +0 -7
  247. package/src/constants/ROUTE_PATH_PREFIX.ts +0 -7
  248. package/src/constants/SELECT_ADMIN_CHECK_ROUTE.ts +0 -7
  249. package/src/errors/ErrorWithCode.tsx +0 -15
  250. package/src/helpers/abbreviate.test.ts +0 -26
  251. package/src/helpers/abbreviate.ts +0 -25
  252. package/src/helpers/asyncArrayFunctions/everyAsync.test.ts +0 -114
  253. package/src/helpers/asyncArrayFunctions/everyAsync.ts +0 -51
  254. package/src/helpers/asyncArrayFunctions/filterAsync.test.ts +0 -126
  255. package/src/helpers/asyncArrayFunctions/filterAsync.ts +0 -50
  256. package/src/helpers/asyncArrayFunctions/forEachAsync.test.ts +0 -136
  257. package/src/helpers/asyncArrayFunctions/forEachAsync.ts +0 -40
  258. package/src/helpers/asyncArrayFunctions/mapAsync.test.ts +0 -125
  259. package/src/helpers/asyncArrayFunctions/mapAsync.ts +0 -46
  260. package/src/helpers/asyncArrayFunctions/someAsync.test.ts +0 -92
  261. package/src/helpers/asyncArrayFunctions/someAsync.ts +0 -49
  262. package/src/helpers/avg.test.ts +0 -24
  263. package/src/helpers/avg.ts +0 -22
  264. package/src/helpers/capitalize.ts +0 -20
  265. package/src/helpers/ceilToNumDecimals.test.ts +0 -39
  266. package/src/helpers/ceilToNumDecimals.ts +0 -13
  267. package/src/helpers/cloneDeep.ts +0 -11
  268. package/src/helpers/compareArraysByProp.test.ts +0 -147
  269. package/src/helpers/compareArraysByProp.ts +0 -56
  270. package/src/helpers/extractProp.test.ts +0 -34
  271. package/src/helpers/extractProp.ts +0 -17
  272. package/src/helpers/floorToNumDecimals.test.ts +0 -39
  273. package/src/helpers/floorToNumDecimals.ts +0 -13
  274. package/src/helpers/forceNumIntoBounds.test.ts +0 -34
  275. package/src/helpers/forceNumIntoBounds.ts +0 -19
  276. package/src/helpers/genCSV.test.ts +0 -75
  277. package/src/helpers/genCSV.ts +0 -87
  278. package/src/helpers/genCommaList.test.ts +0 -57
  279. package/src/helpers/genCommaList.ts +0 -21
  280. package/src/helpers/getHumanReadableDate.test.ts +0 -29
  281. package/src/helpers/getHumanReadableDate.ts +0 -36
  282. package/src/helpers/getLocalTimeInfo.test.ts +0 -48
  283. package/src/helpers/getLocalTimeInfo.ts +0 -58
  284. package/src/helpers/getMonthName.test.ts +0 -79
  285. package/src/helpers/getMonthName.ts +0 -29
  286. package/src/helpers/getOrdinal.test.ts +0 -84
  287. package/src/helpers/getOrdinal.ts +0 -14
  288. package/src/helpers/getPartOfDay.test.ts +0 -56
  289. package/src/helpers/getPartOfDay.ts +0 -20
  290. package/src/helpers/getTimeInfoInET.test.ts +0 -72
  291. package/src/helpers/getTimeInfoInET.ts +0 -79
  292. package/src/helpers/getTimestampFromTimeInfoInET.ts +0 -179
  293. package/src/helpers/getWordCount.ts +0 -26
  294. package/src/helpers/idify.ts +0 -24
  295. package/src/helpers/onlyKeepLetters.ts +0 -11
  296. package/src/helpers/padDecimalZeros.tsx +0 -32
  297. package/src/helpers/padZerosLeft.tsx +0 -21
  298. package/src/helpers/parallelLimit.ts +0 -63
  299. package/src/helpers/prefixWithAOrAn.ts +0 -29
  300. package/src/helpers/roundToNumDecimals.tsx +0 -13
  301. package/src/helpers/shuffleArray.ts +0 -19
  302. package/src/helpers/startMinWait.ts +0 -33
  303. package/src/helpers/stringsToHumanReadableList.ts +0 -39
  304. package/src/helpers/sum.tsx +0 -16
  305. package/src/helpers/validators/ChicagoTitleCase.test.ts +0 -85
  306. package/src/helpers/validators/ChicagoTitleCase.ts +0 -32
  307. package/src/helpers/validators/findURL.test.ts +0 -83
  308. package/src/helpers/validators/findURL.ts +0 -43
  309. package/src/helpers/validators/shared/constants/ERROR_MESSAGES.ts +0 -18
  310. package/src/helpers/validators/shared/helpers/validateRegex.ts +0 -47
  311. package/src/helpers/validators/shared/types/ValidationResult.ts +0 -20
  312. package/src/helpers/validators/validURL.test.ts +0 -90
  313. package/src/helpers/validators/validURL.ts +0 -18
  314. package/src/helpers/validators/validateEmail.test.ts +0 -110
  315. package/src/helpers/validators/validateEmail.ts +0 -47
  316. package/src/helpers/validators/validatePhoneNumber.test.ts +0 -94
  317. package/src/helpers/validators/validatePhoneNumber.ts +0 -49
  318. package/src/helpers/validators/validateString.test.ts +0 -173
  319. package/src/helpers/validators/validateString.ts +0 -171
  320. package/src/helpers/waitMs.tsx +0 -12
  321. package/src/types/DayOfWeek.ts +0 -15
  322. package/src/types/Log/LogMainInfo.ts +0 -69
  323. package/src/types/Log/LogSourceSpecificInfo.ts +0 -25
  324. package/src/types/Log/LogTypeSpecificInfo.ts +0 -33
  325. package/src/types/Log/index.ts +0 -17
  326. package/src/types/LogAction.ts +0 -52
  327. package/src/types/LogBuiltInMetadata.ts +0 -19
  328. package/src/types/LogFunction.ts +0 -46
  329. package/src/types/LogLevel.ts +0 -11
  330. package/src/types/LogMetadataContextMap.ts +0 -15
  331. package/src/types/LogMetadataTagMap.ts +0 -9
  332. package/src/types/LogMetadataTargetMap.ts +0 -9
  333. package/src/types/LogMetadataType.ts +0 -16
  334. package/src/types/LogReviewerFilterState/ActionErrorFilterState.ts +0 -24
  335. package/src/types/LogReviewerFilterState/AdvancedFilterState.ts +0 -36
  336. package/src/types/LogReviewerFilterState/ContextFilterState.ts +0 -16
  337. package/src/types/LogReviewerFilterState/DateFilterState.ts +0 -26
  338. package/src/types/LogReviewerFilterState/TagFilterState.ts +0 -9
  339. package/src/types/LogReviewerFilterState/index.ts +0 -24
  340. package/src/types/LogSource.ts +0 -12
  341. package/src/types/LogType.ts +0 -12
  342. package/src/types/ParamType.ts +0 -18
  343. package/src/types/ReactKitErrorCode.tsx +0 -17
@@ -1,69 +0,0 @@
1
- // Import shared types
2
- import LogLevel from '../LogLevel';
3
-
4
- /**
5
- * Main information in a log event
6
- * @author Gabe Abrams
7
- */
8
- type LogMainInfo = {
9
- // Unique id of the log event
10
- id: string,
11
- // First name of the user
12
- userFirstName: string,
13
- // Last name of the user
14
- userLastName: string,
15
- // User email
16
- userEmail: string,
17
- // User Canvas Id
18
- userId: number,
19
- // If true, the user is a learner
20
- isLearner: boolean,
21
- // If true, the user is an admin
22
- isAdmin: boolean,
23
- // If true, the user is a ttm
24
- isTTM: boolean,
25
- // The id of the Canvas course that the user launched from
26
- courseId: number,
27
- // The name of the Canvas course
28
- courseName: string,
29
- // Browser info
30
- browser: {
31
- // Name of the browser
32
- name: string,
33
- // Version of the browser
34
- version: string,
35
- },
36
- // Device info
37
- device: {
38
- // Name of the operating system
39
- os: string,
40
- // If true, device is a mobile device
41
- isMobile: boolean,
42
- },
43
- // Calendar year that the event is from
44
- year: number,
45
- // Month that the event is from (1 = Jan, 12 = Dec)
46
- month: number,
47
- // Day of the month that the event is from
48
- day: number,
49
- // Hour of the day (24hr) when the event occurred
50
- hour: number,
51
- // Minute of the day when the event occurred
52
- minute: number,
53
- // Timestamp of event (ms since epoch)
54
- timestamp: number,
55
- // Context of the event (each app determines how to organize contexts)
56
- context: string,
57
- // Subcontext of the event (each app determines how to organize subcontexts)
58
- subcontext: string,
59
- // List of tags that apply to this action (each app determines tag usage)
60
- tags: string[],
61
- // Log level
62
- level: LogLevel,
63
- // Additional optional custom metadata
64
- metadata?: {
65
- [k: string]: any,
66
- },
67
- };
68
-
69
- export default LogMainInfo;
@@ -1,25 +0,0 @@
1
- // Import shared types
2
- import LogSource from '../LogSource';
3
-
4
- /**
5
- * Log info that is specific to the type of source
6
- * @author Gabe Abrams
7
- */
8
- type LogSourceSpecificInfo = (
9
- // Client
10
- | {
11
- // Source of the event
12
- source: LogSource.Client,
13
- }
14
- // Server
15
- | {
16
- // Source of the event
17
- source: LogSource.Server,
18
- // Route path (e.g. /api/admin/courses/53450/blocks)
19
- routePath: string,
20
- // Route template (e.g. /api/admin/courses/:courseId/blocks)
21
- routeTemplate: string,
22
- }
23
- );
24
-
25
- export default LogSourceSpecificInfo;
@@ -1,33 +0,0 @@
1
- // Import shared types
2
- import LogAction from '../LogAction';
3
- import LogType from '../LogType';
4
-
5
- /**
6
- * Log info that is specific to the type of log
7
- * @author Gabe Abrams
8
- */
9
- type LogTypeSpecificInfo = (
10
- // Error
11
- | {
12
- // Type of the event
13
- type: LogType.Error,
14
- // The error message
15
- errorMessage: string,
16
- // The error code
17
- errorCode: string,
18
- // Error stack trace
19
- errorStack: string,
20
- }
21
- // Action
22
- | {
23
- // Type of the event
24
- type: LogType.Action,
25
- // Target of the action (each app determines the list of targets)
26
- // These are usually buttons, panels, elements, etc.
27
- target: string,
28
- // The type of action performed on the target
29
- action: LogAction,
30
- }
31
- );
32
-
33
- export default LogTypeSpecificInfo;
@@ -1,17 +0,0 @@
1
- // Import shared types
2
- import LogMainInfo from './LogMainInfo';
3
- import LogSourceSpecificInfo from './LogSourceSpecificInfo';
4
- import LogTypeSpecificInfo from './LogTypeSpecificInfo';
5
-
6
- /**
7
- * A single log event corresponding to an action performed by a user or an
8
- * error encountered by a user
9
- * @author Gabe Abrams
10
- */
11
- type Log = (
12
- LogMainInfo
13
- & LogSourceSpecificInfo
14
- & LogTypeSpecificInfo
15
- );
16
-
17
- export default Log;
@@ -1,52 +0,0 @@
1
- /**
2
- * Types of actions
3
- * @author Gabe Abrams
4
- */
5
- enum LogAction {
6
- // Target was opened by the user (it was not on screen, but now it is)
7
- Open = 'Open',
8
- // Target was closed by the user (it was on screen, but now it is not)
9
- Close = 'Close',
10
- // Target was cancelled by the user (it was on closed without saving)
11
- Cancel = 'Cancel',
12
- // Target was expanded by the user (it always remains on screen, but size was changed)
13
- Expand = 'Expand',
14
- // Target was collapsed by the user (it always remains on screen, but size was changed)
15
- Collapse = 'Collapse',
16
- // Target was viewed by the user (only for items that are not opened or closed, those must use Open/Close actions)
17
- View = 'View',
18
- // Target interrupted the user (popup, dialog, validation message, etc. appeared without user prompting)
19
- Interrupt = 'Interrupt',
20
- // Target was created by the user (it did not exist before)
21
- Create = 'Create',
22
- // Target was modified by the user (it existed and was changed)
23
- Modify = 'Modify',
24
- // Target was deleted by the user (it existed and now it doesn't)
25
- Delete = 'Delete',
26
- // Target was added by the user (it already existed and was added to another place)
27
- Add = 'Add',
28
- // Target was removed by the user (it was removed from something but still exists)
29
- Remove = 'Remove',
30
- // Target was activated by the user (click, check, tap, keypress, etc.)
31
- Activate = 'Activate',
32
- // Target was deactivated by the user (click away, uncheck, tap outside of, tab away, etc.)
33
- Deactivate = 'Deactivate',
34
- // User showed interest in a target (hover, peek, etc.)
35
- Peek = 'Peek',
36
- // Halt a process (pause, etc.)
37
- Halt = 'Halt',
38
- // Resume a process (resume a halted process)
39
- Resume = 'Resume',
40
- // Jump to/seek to/reveal/go to/navigate to a target
41
- Jump = 'Jump',
42
- // Post a submission/message/etc. into the target
43
- Post = 'Post',
44
- // Like something
45
- Like = 'Like',
46
- // Dislike something
47
- Dislike = 'Dislike',
48
- // Unknown action
49
- Unknown = 'Unknown',
50
- }
51
-
52
- export default LogAction;
@@ -1,19 +0,0 @@
1
- /**
2
- * Built-in metadata for logs
3
- * @author Gabe Abrams
4
- */
5
- const LogBuiltInMetadata = {
6
- // Contexts
7
- Context: {
8
- Uncategorized: 'Uncategorized',
9
- ServerRenderedErrorPage: 'ServerRenderedErrorPage',
10
- ServerEndpointError: 'ServerEndpointError',
11
- ClientFatalError: 'ClientFatalError',
12
- },
13
- // Targets
14
- Target: {
15
- NoTarget: 'NoTarget',
16
- },
17
- };
18
-
19
- export default LogBuiltInMetadata;
@@ -1,46 +0,0 @@
1
- // Import shared types
2
- import Log from './Log';
3
- import LogAction from './LogAction';
4
- import LogLevel from './LogLevel';
5
-
6
- /**
7
- * Type of a log action function
8
- * @author Gabe Abrams
9
- */
10
- type LogFunction = (
11
- opts: (
12
- // Shared info
13
- {
14
- // Context of the event (each app determines how to organize contexts)
15
- context: string | { _: string },
16
- // Subcontext of the event (each app determines how to organize subcontexts)
17
- subcontext?: string,
18
- // List of tags that apply to this action (each app determines tag usage)
19
- tags?: string[],
20
- // Additional optional custom metadata
21
- metadata?: {
22
- [k: string]: any,
23
- },
24
- // Log level (default is info)
25
- level?: LogLevel,
26
- } & (
27
- // Error
28
- | {
29
- // The error object to log
30
- error: any,
31
- }
32
- // Action
33
- | {
34
- // The type of action performed
35
- action: LogAction,
36
- // Target of the action (each app determines the list of targets)
37
- // These are usually buttons, panels, elements, etc.
38
- // If no target is included, this should indicate that this is an action
39
- // being performed on the whole feature (open/close/etc)
40
- target?: string,
41
- }
42
- )
43
- ),
44
- ) => Promise<Log>;
45
-
46
- export default LogFunction;
@@ -1,11 +0,0 @@
1
- /**
2
- * Allowed log levels
3
- * @author Gabe Abrams
4
- */
5
- enum LogLevel {
6
- Warn = 'Warn',
7
- Info = 'Info', // Default
8
- Debug = 'Debug',
9
- }
10
-
11
- export default LogLevel;
@@ -1,15 +0,0 @@
1
- /**
2
- * Type of the context map in a LogMetadata file
3
- * @author Gabe Abrams
4
- */
5
- type LogMetadataContextMap = {
6
- [k: string]: (
7
- | string
8
- | {
9
- _: string,
10
- [k: string]: string
11
- }
12
- )
13
- };
14
-
15
- export default LogMetadataContextMap;
@@ -1,9 +0,0 @@
1
- /**
2
- * Type of the tag map inside a LogMetadata file
3
- * @author Gabe Abrams
4
- */
5
- type LogMetadataTagMap = {
6
- [k: string]: string
7
- };
8
-
9
- export default LogMetadataTagMap;
@@ -1,9 +0,0 @@
1
- /**
2
- * Type of the target map inside a LogMetadata file
3
- * @author Gabe Abrams
4
- */
5
- type LogMetadataTargetMap = {
6
- [k: string]: string
7
- };
8
-
9
- export default LogMetadataTargetMap;
@@ -1,16 +0,0 @@
1
- // Import shared types
2
- import LogMetadataContextMap from './LogMetadataContextMap';
3
- import LogMetadataTagMap from './LogMetadataTagMap';
4
- import LogMetadataTargetMap from './LogMetadataTargetMap';
5
-
6
- /**
7
- * Type of a LogMetadata file
8
- * @author Gabe Abrams
9
- */
10
- type LogMetadataType = {
11
- Context?: LogMetadataContextMap,
12
- Tag?: LogMetadataTagMap,
13
- Target?: LogMetadataTargetMap,
14
- };
15
-
16
- export default LogMetadataType;
@@ -1,24 +0,0 @@
1
- import LogType from '../LogType';
2
-
3
- /**
4
- * Action filter state (only relevant for action logs)
5
- * @author Yuen Ler Chow
6
- */
7
- type ActionErrorFilterState = {
8
- // Required type of log
9
- type: LogType | undefined, // If undefined, no filter applied
10
- // Query for error message (only relevant if type is error)
11
- errorMessage: string, // If empty, no filter applied
12
- // Query for error code (only relevant if type is error)
13
- errorCode: string, // If empty, no filter applied
14
- // Action targets to include (only relevant if type is action)
15
- target: {
16
- [k: string]: boolean
17
- },
18
- // Action types to include (only relevant if type is action)
19
- action: {
20
- [k: string]: boolean
21
- },
22
- };
23
-
24
- export default ActionErrorFilterState;
@@ -1,36 +0,0 @@
1
- import LogSource from '../LogSource';
2
-
3
- /**
4
- * Advanced filter state
5
- * @author Yuen Ler Chow
6
- */
7
- type AdvancedFilterState = {
8
- // Query for user first name (case insensitive)
9
- userFirstName: string, // If empty, no filter applied
10
- // Query for user last name (case insensitive)
11
- userLastName: string, // If empty, no filter applied
12
- // Query for user email (case insensitive)
13
- userEmail: string, // If empty, no filter applied
14
- // Match for userId (numerical)
15
- userId: string, // If empty, no filter applied
16
- // If true, include students
17
- includeLearners: boolean,
18
- // If true, include ttms
19
- includeTTMs: boolean,
20
- // If true, include admins
21
- includeAdmins: boolean,
22
- // Match for courseId (numerical)
23
- courseId: string, // If empty, no filter applied
24
- // Query for course name (case insensitive)
25
- courseName: string, // If empty, no filter applied
26
- // Required isMobile value
27
- isMobile: (true | false | undefined), // If undefined, no filter applied
28
- // Required log source value
29
- source: LogSource | undefined, // If undefined, no filter applied
30
- // Query for route path (only relevant if source is server)
31
- routePath: string, // If empty, no filter applied
32
- // Query for route template (only relevant if source is server)
33
- routeTemplate: string, // If empty, no filter applied
34
- };
35
-
36
- export default AdvancedFilterState;
@@ -1,16 +0,0 @@
1
- /**
2
- * Context filter state
3
- * @author Yuen Ler Chow
4
- */
5
- type ContextFilterState = {
6
- [k: string]: (
7
- // No subcontexts
8
- | boolean // True if selected
9
- // Includes subcontexts
10
- | {
11
- [k: string]: boolean // True if selected
12
- }
13
- )
14
- };
15
-
16
- export default ContextFilterState;
@@ -1,26 +0,0 @@
1
- /**
2
- * Date filter state
3
- * @author Yuen Ler Chow
4
- */
5
- type DateFilterState = {
6
- // Current start date
7
- startDate: {
8
- // Full year
9
- year: number,
10
- // 1-indexed month
11
- month: number,
12
- // 1-indexed day
13
- day: number,
14
- },
15
- // Current end date
16
- endDate: {
17
- // Full year
18
- year: number,
19
- // 1-indexed month
20
- month: number,
21
- // 1-indexed day
22
- day: number,
23
- },
24
- };
25
-
26
- export default DateFilterState;
@@ -1,9 +0,0 @@
1
- /**
2
- * Tag filter state
3
- * @author Yuen Ler Chow
4
- */
5
- type TagFilterState = {
6
- [k: string]: boolean // tag => true if in the list of tags to show
7
- };
8
-
9
- export default TagFilterState;
@@ -1,24 +0,0 @@
1
- import DateFilterState from './DateFilterState';
2
- import ContextFilterState from './ContextFilterState';
3
- import TagFilterState from './TagFilterState';
4
- import ActionErrorFilterState from './ActionErrorFilterState';
5
- import AdvancedFilterState from './AdvancedFilterState';
6
-
7
- /**
8
- * A bundle of filter state objects for each type of filter
9
- * @author Gabe Abrams
10
- */
11
- type LogReviewerFilterState = {
12
- // Date filter state
13
- dateFilterState: DateFilterState,
14
- // Context filter state
15
- contextFilterState: ContextFilterState,
16
- // Tag filter state
17
- tagFilterState: TagFilterState,
18
- // Action error filter state
19
- actionErrorFilterState: ActionErrorFilterState,
20
- // Advanced filter state
21
- advancedFilterState: AdvancedFilterState,
22
- };
23
-
24
- export default LogReviewerFilterState;
@@ -1,12 +0,0 @@
1
- /**
2
- * Source of a log event
3
- * @author Gabe Abrams
4
- */
5
- enum LogSource {
6
- // Client
7
- Client = 'client',
8
- // Server
9
- Server = 'server',
10
- }
11
-
12
- export default LogSource;
@@ -1,12 +0,0 @@
1
- /**
2
- * Type of a log event
3
- * @author Gabe Abrams
4
- */
5
- enum LogType {
6
- // User action
7
- Action = 'action',
8
- // Error
9
- Error = 'error',
10
- }
11
-
12
- export default LogType;
@@ -1,18 +0,0 @@
1
- /**
2
- * Server-side API param types
3
- * @author Gabe Abrams
4
- */
5
- enum ParamType {
6
- Boolean = 'Boolean', // Boolean
7
- BooleanOptional = 'BooleanOptional', // Optional boolean
8
- Float = 'Float', // Float Number
9
- FloatOptional = 'FloatOptional', // Optional Float Number
10
- Int = 'Int', // Integer Number
11
- IntOptional = 'IntOptional', // Optional Integer Number
12
- JSON = 'JSON', // JSONified object
13
- JSONOptional = 'JSONOptional', // Optional JSONified object
14
- String = 'String', // String
15
- StringOptional = 'StringOptional', // Optional string
16
- }
17
-
18
- export default ParamType;
@@ -1,17 +0,0 @@
1
- // Highest error code = DRK37
2
-
3
- /**
4
- * List of error codes built into the react kit
5
- * @author Gabe Abrams
6
- */
7
- enum ReactKitErrorCode {
8
- NoResponse = 'DRK1',
9
- NoCode = 'DRK2',
10
- SessionExpired = 'DRK3',
11
- NoCACCLSendRequestFunction = 'DRK7',
12
- SimpleDateChooserInvalidDateRange = 'DRK35',
13
- SimpleDateChooserInvalidNumMonths = 'DRK36',
14
- ETTimestampInvalid = 'DRK37',
15
- }
16
-
17
- export default ReactKitErrorCode;