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.
- package/dist/cjs/index.js +338 -2316
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/LogReviewer.d.ts +1 -1
- package/dist/cjs/types/helpers/logClientEvent.d.ts +1 -1
- package/dist/cjs/types/html/genErrorPage.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +2 -64
- package/dist/cjs/types/types/IntelliTableColumn.d.ts +1 -1
- package/dist/esm/index.js +78 -2223
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/LogReviewer.d.ts +1 -1
- package/dist/esm/types/helpers/logClientEvent.d.ts +1 -1
- package/dist/esm/types/html/genErrorPage.d.ts +1 -1
- package/dist/esm/types/index.d.ts +2 -64
- package/dist/esm/types/types/IntelliTableColumn.d.ts +1 -1
- package/dist/index.d.ts +3 -835
- package/package.json +4 -3
- package/src/components/AppWrapper.tsx +12 -10
- package/src/components/AutoscrollToBottomContainer.tsx +5 -3
- package/src/components/CopiableBox.tsx +5 -1
- package/src/components/DBEntryManagerPanel/helpers/generateEndpointPath.ts +2 -2
- package/src/components/ErrorBox.tsx +6 -2
- package/src/components/IntelliTable.tsx +7 -5
- package/src/components/LogReviewer.tsx +23 -21
- package/src/components/Modal/index.tsx +5 -3
- package/src/components/MultiSwitch.tsx +5 -1
- package/src/components/Shimmer.tsx +4 -2
- package/src/components/SimpleDateChooser.tsx +11 -13
- package/src/components/SimpleTimeChooser.tsx +4 -2
- package/src/helpers/canReviewLogs.test.ts +5 -3
- package/src/helpers/canReviewLogs.ts +5 -3
- package/src/helpers/initClient.tsx +8 -8
- package/src/helpers/isMobileOrTablet.tsx +2 -1
- package/src/helpers/isSelectAdmin.ts +4 -2
- package/src/helpers/logClientEvent.tsx +7 -5
- package/src/helpers/stubServerEndpoint.tsx +1 -1
- package/src/helpers/visitServerEndpoint.tsx +10 -7
- package/src/html/genErrorPage.ts +6 -4
- package/src/index.ts +105 -98
- package/src/types/IntelliTableColumn.ts +4 -1
- package/dist/cjs/types/constants/DAY_IN_MS.d.ts +0 -6
- package/dist/cjs/types/constants/HOUR_IN_MS.d.ts +0 -6
- package/dist/cjs/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +0 -6
- package/dist/cjs/types/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/cjs/types/constants/LOG_REVIEW_STATUS_ROUTE.d.ts +0 -7
- package/dist/cjs/types/constants/LOG_ROUTE_PATH.d.ts +0 -6
- package/dist/cjs/types/constants/MINUTE_IN_MS.d.ts +0 -6
- package/dist/cjs/types/constants/ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/cjs/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +0 -6
- package/dist/cjs/types/errors/ErrorWithCode.d.ts +0 -9
- package/dist/cjs/types/helpers/abbreviate.d.ts +0 -10
- package/dist/cjs/types/helpers/abbreviate.test.d.ts +0 -5
- package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.d.ts +0 -13
- package/dist/cjs/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.d.ts +0 -13
- package/dist/cjs/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +0 -10
- package/dist/cjs/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.d.ts +0 -11
- package/dist/cjs/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.d.ts +0 -13
- package/dist/cjs/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +0 -1
- package/dist/cjs/types/helpers/avg.d.ts +0 -8
- package/dist/cjs/types/helpers/avg.test.d.ts +0 -5
- package/dist/cjs/types/helpers/capitalize.d.ts +0 -7
- package/dist/cjs/types/helpers/ceilToNumDecimals.d.ts +0 -9
- package/dist/cjs/types/helpers/ceilToNumDecimals.test.d.ts +0 -5
- package/dist/cjs/types/helpers/cloneDeep.d.ts +0 -8
- package/dist/cjs/types/helpers/compareArraysByProp.d.ts +0 -13
- package/dist/cjs/types/helpers/compareArraysByProp.test.d.ts +0 -5
- package/dist/cjs/types/helpers/extractProp.d.ts +0 -12
- package/dist/cjs/types/helpers/extractProp.test.d.ts +0 -5
- package/dist/cjs/types/helpers/floorToNumDecimals.d.ts +0 -9
- package/dist/cjs/types/helpers/floorToNumDecimals.test.d.ts +0 -5
- package/dist/cjs/types/helpers/forceNumIntoBounds.d.ts +0 -10
- package/dist/cjs/types/helpers/forceNumIntoBounds.test.d.ts +0 -5
- package/dist/cjs/types/helpers/genCSV.d.ts +0 -18
- package/dist/cjs/types/helpers/genCSV.test.d.ts +0 -5
- package/dist/cjs/types/helpers/genCommaList.d.ts +0 -12
- package/dist/cjs/types/helpers/genCommaList.test.d.ts +0 -1
- package/dist/cjs/types/helpers/getHumanReadableDate.d.ts +0 -8
- package/dist/cjs/types/helpers/getHumanReadableDate.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getLocalTimeInfo.d.ts +0 -19
- package/dist/cjs/types/helpers/getLocalTimeInfo.test.d.ts +0 -6
- package/dist/cjs/types/helpers/getMonthName.d.ts +0 -14
- package/dist/cjs/types/helpers/getMonthName.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getOrdinal.d.ts +0 -8
- package/dist/cjs/types/helpers/getOrdinal.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getPartOfDay.d.ts +0 -7
- package/dist/cjs/types/helpers/getPartOfDay.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getTimeInfoInET.d.ts +0 -21
- package/dist/cjs/types/helpers/getTimeInfoInET.test.d.ts +0 -5
- package/dist/cjs/types/helpers/getTimestampFromTimeInfoInET.d.ts +0 -20
- package/dist/cjs/types/helpers/getWordCount.d.ts +0 -10
- package/dist/cjs/types/helpers/idify.d.ts +0 -9
- package/dist/cjs/types/helpers/onlyKeepLetters.d.ts +0 -8
- package/dist/cjs/types/helpers/padDecimalZeros.d.ts +0 -10
- package/dist/cjs/types/helpers/padZerosLeft.d.ts +0 -9
- package/dist/cjs/types/helpers/parallelLimit.d.ts +0 -12
- package/dist/cjs/types/helpers/prefixWithAOrAn.d.ts +0 -10
- package/dist/cjs/types/helpers/roundToNumDecimals.d.ts +0 -9
- package/dist/cjs/types/helpers/shuffleArray.d.ts +0 -8
- package/dist/cjs/types/helpers/startMinWait.d.ts +0 -9
- package/dist/cjs/types/helpers/stringsToHumanReadableList.d.ts +0 -10
- package/dist/cjs/types/helpers/sum.d.ts +0 -8
- package/dist/cjs/types/helpers/validators/ChicagoTitleCase.d.ts +0 -9
- package/dist/cjs/types/helpers/validators/shared/constants/ERROR_MESSAGES.d.ts +0 -10
- package/dist/cjs/types/helpers/validators/shared/helpers/validateRegex.d.ts +0 -19
- package/dist/cjs/types/helpers/validators/shared/types/ValidationResult.d.ts +0 -12
- package/dist/cjs/types/helpers/validators/validURL.d.ts +0 -8
- package/dist/cjs/types/helpers/validators/validateEmail.d.ts +0 -11
- package/dist/cjs/types/helpers/validators/validateEmail.test.d.ts +0 -1
- package/dist/cjs/types/helpers/validators/validatePhoneNumber.d.ts +0 -11
- package/dist/cjs/types/helpers/validators/validatePhoneNumber.test.d.ts +0 -1
- package/dist/cjs/types/helpers/validators/validateString.d.ts +0 -22
- package/dist/cjs/types/helpers/validators/validateString.test.d.ts +0 -1
- package/dist/cjs/types/helpers/waitMs.d.ts +0 -7
- package/dist/cjs/types/types/DayOfWeek.d.ts +0 -14
- package/dist/cjs/types/types/Log/LogMainInfo.d.ts +0 -39
- package/dist/cjs/types/types/Log/LogSourceSpecificInfo.d.ts +0 -13
- package/dist/cjs/types/types/Log/LogTypeSpecificInfo.d.ts +0 -17
- package/dist/cjs/types/types/Log/index.d.ts +0 -10
- package/dist/cjs/types/types/LogAction.d.ts +0 -29
- package/dist/cjs/types/types/LogBuiltInMetadata.d.ts +0 -16
- package/dist/cjs/types/types/LogFunction.d.ts +0 -24
- package/dist/cjs/types/types/LogLevel.d.ts +0 -10
- package/dist/cjs/types/types/LogMetadataContextMap.d.ts +0 -11
- package/dist/cjs/types/types/LogMetadataTagMap.d.ts +0 -8
- package/dist/cjs/types/types/LogMetadataTargetMap.d.ts +0 -8
- package/dist/cjs/types/types/LogMetadataType.d.ts +0 -13
- package/dist/cjs/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +0 -17
- package/dist/cjs/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +0 -21
- package/dist/cjs/types/types/LogReviewerFilterState/ContextFilterState.d.ts +0 -10
- package/dist/cjs/types/types/LogReviewerFilterState/DateFilterState.d.ts +0 -17
- package/dist/cjs/types/types/LogReviewerFilterState/TagFilterState.d.ts +0 -8
- package/dist/cjs/types/types/LogReviewerFilterState/index.d.ts +0 -17
- package/dist/cjs/types/types/LogSource.d.ts +0 -9
- package/dist/cjs/types/types/LogType.d.ts +0 -9
- package/dist/cjs/types/types/ParamType.d.ts +0 -17
- package/dist/cjs/types/types/ReactKitErrorCode.d.ts +0 -14
- package/dist/esm/types/constants/DAY_IN_MS.d.ts +0 -6
- package/dist/esm/types/constants/HOUR_IN_MS.d.ts +0 -6
- package/dist/esm/types/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +0 -6
- package/dist/esm/types/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/esm/types/constants/LOG_REVIEW_STATUS_ROUTE.d.ts +0 -7
- package/dist/esm/types/constants/LOG_ROUTE_PATH.d.ts +0 -6
- package/dist/esm/types/constants/MINUTE_IN_MS.d.ts +0 -6
- package/dist/esm/types/constants/ROUTE_PATH_PREFIX.d.ts +0 -6
- package/dist/esm/types/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +0 -6
- package/dist/esm/types/errors/ErrorWithCode.d.ts +0 -9
- package/dist/esm/types/helpers/abbreviate.d.ts +0 -10
- package/dist/esm/types/helpers/abbreviate.test.d.ts +0 -5
- package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.d.ts +0 -13
- package/dist/esm/types/helpers/asyncArrayFunctions/everyAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.d.ts +0 -13
- package/dist/esm/types/helpers/asyncArrayFunctions/filterAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.d.ts +0 -10
- package/dist/esm/types/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.d.ts +0 -11
- package/dist/esm/types/helpers/asyncArrayFunctions/mapAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.d.ts +0 -13
- package/dist/esm/types/helpers/asyncArrayFunctions/someAsync.test.d.ts +0 -1
- package/dist/esm/types/helpers/avg.d.ts +0 -8
- package/dist/esm/types/helpers/avg.test.d.ts +0 -5
- package/dist/esm/types/helpers/capitalize.d.ts +0 -7
- package/dist/esm/types/helpers/ceilToNumDecimals.d.ts +0 -9
- package/dist/esm/types/helpers/ceilToNumDecimals.test.d.ts +0 -5
- package/dist/esm/types/helpers/cloneDeep.d.ts +0 -8
- package/dist/esm/types/helpers/compareArraysByProp.d.ts +0 -13
- package/dist/esm/types/helpers/compareArraysByProp.test.d.ts +0 -5
- package/dist/esm/types/helpers/extractProp.d.ts +0 -12
- package/dist/esm/types/helpers/extractProp.test.d.ts +0 -5
- package/dist/esm/types/helpers/floorToNumDecimals.d.ts +0 -9
- package/dist/esm/types/helpers/floorToNumDecimals.test.d.ts +0 -5
- package/dist/esm/types/helpers/forceNumIntoBounds.d.ts +0 -10
- package/dist/esm/types/helpers/forceNumIntoBounds.test.d.ts +0 -5
- package/dist/esm/types/helpers/genCSV.d.ts +0 -18
- package/dist/esm/types/helpers/genCSV.test.d.ts +0 -5
- package/dist/esm/types/helpers/genCommaList.d.ts +0 -12
- package/dist/esm/types/helpers/genCommaList.test.d.ts +0 -1
- package/dist/esm/types/helpers/getHumanReadableDate.d.ts +0 -8
- package/dist/esm/types/helpers/getHumanReadableDate.test.d.ts +0 -5
- package/dist/esm/types/helpers/getLocalTimeInfo.d.ts +0 -19
- package/dist/esm/types/helpers/getLocalTimeInfo.test.d.ts +0 -6
- package/dist/esm/types/helpers/getMonthName.d.ts +0 -14
- package/dist/esm/types/helpers/getMonthName.test.d.ts +0 -5
- package/dist/esm/types/helpers/getOrdinal.d.ts +0 -8
- package/dist/esm/types/helpers/getOrdinal.test.d.ts +0 -5
- package/dist/esm/types/helpers/getPartOfDay.d.ts +0 -7
- package/dist/esm/types/helpers/getPartOfDay.test.d.ts +0 -5
- package/dist/esm/types/helpers/getTimeInfoInET.d.ts +0 -21
- package/dist/esm/types/helpers/getTimeInfoInET.test.d.ts +0 -5
- package/dist/esm/types/helpers/getTimestampFromTimeInfoInET.d.ts +0 -20
- package/dist/esm/types/helpers/getWordCount.d.ts +0 -10
- package/dist/esm/types/helpers/idify.d.ts +0 -9
- package/dist/esm/types/helpers/onlyKeepLetters.d.ts +0 -8
- package/dist/esm/types/helpers/padDecimalZeros.d.ts +0 -10
- package/dist/esm/types/helpers/padZerosLeft.d.ts +0 -9
- package/dist/esm/types/helpers/parallelLimit.d.ts +0 -12
- package/dist/esm/types/helpers/prefixWithAOrAn.d.ts +0 -10
- package/dist/esm/types/helpers/roundToNumDecimals.d.ts +0 -9
- package/dist/esm/types/helpers/shuffleArray.d.ts +0 -8
- package/dist/esm/types/helpers/startMinWait.d.ts +0 -9
- package/dist/esm/types/helpers/stringsToHumanReadableList.d.ts +0 -10
- package/dist/esm/types/helpers/sum.d.ts +0 -8
- package/dist/esm/types/helpers/validators/ChicagoTitleCase.d.ts +0 -9
- package/dist/esm/types/helpers/validators/shared/constants/ERROR_MESSAGES.d.ts +0 -10
- package/dist/esm/types/helpers/validators/shared/helpers/validateRegex.d.ts +0 -19
- package/dist/esm/types/helpers/validators/shared/types/ValidationResult.d.ts +0 -12
- package/dist/esm/types/helpers/validators/validURL.d.ts +0 -8
- package/dist/esm/types/helpers/validators/validateEmail.d.ts +0 -11
- package/dist/esm/types/helpers/validators/validateEmail.test.d.ts +0 -1
- package/dist/esm/types/helpers/validators/validatePhoneNumber.d.ts +0 -11
- package/dist/esm/types/helpers/validators/validatePhoneNumber.test.d.ts +0 -1
- package/dist/esm/types/helpers/validators/validateString.d.ts +0 -22
- package/dist/esm/types/helpers/validators/validateString.test.d.ts +0 -1
- package/dist/esm/types/helpers/waitMs.d.ts +0 -7
- package/dist/esm/types/types/DayOfWeek.d.ts +0 -14
- package/dist/esm/types/types/Log/LogMainInfo.d.ts +0 -39
- package/dist/esm/types/types/Log/LogSourceSpecificInfo.d.ts +0 -13
- package/dist/esm/types/types/Log/LogTypeSpecificInfo.d.ts +0 -17
- package/dist/esm/types/types/Log/index.d.ts +0 -10
- package/dist/esm/types/types/LogAction.d.ts +0 -29
- package/dist/esm/types/types/LogBuiltInMetadata.d.ts +0 -16
- package/dist/esm/types/types/LogFunction.d.ts +0 -24
- package/dist/esm/types/types/LogLevel.d.ts +0 -10
- package/dist/esm/types/types/LogMetadataContextMap.d.ts +0 -11
- package/dist/esm/types/types/LogMetadataTagMap.d.ts +0 -8
- package/dist/esm/types/types/LogMetadataTargetMap.d.ts +0 -8
- package/dist/esm/types/types/LogMetadataType.d.ts +0 -13
- package/dist/esm/types/types/LogReviewerFilterState/ActionErrorFilterState.d.ts +0 -17
- package/dist/esm/types/types/LogReviewerFilterState/AdvancedFilterState.d.ts +0 -21
- package/dist/esm/types/types/LogReviewerFilterState/ContextFilterState.d.ts +0 -10
- package/dist/esm/types/types/LogReviewerFilterState/DateFilterState.d.ts +0 -17
- package/dist/esm/types/types/LogReviewerFilterState/TagFilterState.d.ts +0 -8
- package/dist/esm/types/types/LogReviewerFilterState/index.d.ts +0 -17
- package/dist/esm/types/types/LogSource.d.ts +0 -9
- package/dist/esm/types/types/LogType.d.ts +0 -9
- package/dist/esm/types/types/ParamType.d.ts +0 -17
- package/dist/esm/types/types/ReactKitErrorCode.d.ts +0 -14
- package/src/constants/DAY_IN_MS.ts +0 -7
- package/src/constants/HOUR_IN_MS.ts +0 -7
- package/src/constants/LOG_REVIEW_GET_LOGS_ROUTE.ts +0 -9
- package/src/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.ts +0 -9
- package/src/constants/LOG_REVIEW_STATUS_ROUTE.ts +0 -10
- package/src/constants/LOG_ROUTE_PATH.ts +0 -9
- package/src/constants/MINUTE_IN_MS.ts +0 -7
- package/src/constants/ROUTE_PATH_PREFIX.ts +0 -7
- package/src/constants/SELECT_ADMIN_CHECK_ROUTE.ts +0 -7
- package/src/errors/ErrorWithCode.tsx +0 -15
- package/src/helpers/abbreviate.test.ts +0 -26
- package/src/helpers/abbreviate.ts +0 -25
- package/src/helpers/asyncArrayFunctions/everyAsync.test.ts +0 -114
- package/src/helpers/asyncArrayFunctions/everyAsync.ts +0 -51
- package/src/helpers/asyncArrayFunctions/filterAsync.test.ts +0 -126
- package/src/helpers/asyncArrayFunctions/filterAsync.ts +0 -50
- package/src/helpers/asyncArrayFunctions/forEachAsync.test.ts +0 -136
- package/src/helpers/asyncArrayFunctions/forEachAsync.ts +0 -40
- package/src/helpers/asyncArrayFunctions/mapAsync.test.ts +0 -125
- package/src/helpers/asyncArrayFunctions/mapAsync.ts +0 -46
- package/src/helpers/asyncArrayFunctions/someAsync.test.ts +0 -92
- package/src/helpers/asyncArrayFunctions/someAsync.ts +0 -49
- package/src/helpers/avg.test.ts +0 -24
- package/src/helpers/avg.ts +0 -22
- package/src/helpers/capitalize.ts +0 -20
- package/src/helpers/ceilToNumDecimals.test.ts +0 -39
- package/src/helpers/ceilToNumDecimals.ts +0 -13
- package/src/helpers/cloneDeep.ts +0 -11
- package/src/helpers/compareArraysByProp.test.ts +0 -147
- package/src/helpers/compareArraysByProp.ts +0 -56
- package/src/helpers/extractProp.test.ts +0 -34
- package/src/helpers/extractProp.ts +0 -17
- package/src/helpers/floorToNumDecimals.test.ts +0 -39
- package/src/helpers/floorToNumDecimals.ts +0 -13
- package/src/helpers/forceNumIntoBounds.test.ts +0 -34
- package/src/helpers/forceNumIntoBounds.ts +0 -19
- package/src/helpers/genCSV.test.ts +0 -75
- package/src/helpers/genCSV.ts +0 -87
- package/src/helpers/genCommaList.test.ts +0 -57
- package/src/helpers/genCommaList.ts +0 -21
- package/src/helpers/getHumanReadableDate.test.ts +0 -29
- package/src/helpers/getHumanReadableDate.ts +0 -36
- package/src/helpers/getLocalTimeInfo.test.ts +0 -48
- package/src/helpers/getLocalTimeInfo.ts +0 -58
- package/src/helpers/getMonthName.test.ts +0 -79
- package/src/helpers/getMonthName.ts +0 -29
- package/src/helpers/getOrdinal.test.ts +0 -84
- package/src/helpers/getOrdinal.ts +0 -14
- package/src/helpers/getPartOfDay.test.ts +0 -56
- package/src/helpers/getPartOfDay.ts +0 -20
- package/src/helpers/getTimeInfoInET.test.ts +0 -72
- package/src/helpers/getTimeInfoInET.ts +0 -79
- package/src/helpers/getTimestampFromTimeInfoInET.ts +0 -179
- package/src/helpers/getWordCount.ts +0 -26
- package/src/helpers/idify.ts +0 -24
- package/src/helpers/onlyKeepLetters.ts +0 -11
- package/src/helpers/padDecimalZeros.tsx +0 -32
- package/src/helpers/padZerosLeft.tsx +0 -21
- package/src/helpers/parallelLimit.ts +0 -63
- package/src/helpers/prefixWithAOrAn.ts +0 -29
- package/src/helpers/roundToNumDecimals.tsx +0 -13
- package/src/helpers/shuffleArray.ts +0 -19
- package/src/helpers/startMinWait.ts +0 -33
- package/src/helpers/stringsToHumanReadableList.ts +0 -39
- package/src/helpers/sum.tsx +0 -16
- package/src/helpers/validators/ChicagoTitleCase.test.ts +0 -85
- package/src/helpers/validators/ChicagoTitleCase.ts +0 -32
- package/src/helpers/validators/findURL.test.ts +0 -83
- package/src/helpers/validators/findURL.ts +0 -43
- package/src/helpers/validators/shared/constants/ERROR_MESSAGES.ts +0 -18
- package/src/helpers/validators/shared/helpers/validateRegex.ts +0 -47
- package/src/helpers/validators/shared/types/ValidationResult.ts +0 -20
- package/src/helpers/validators/validURL.test.ts +0 -90
- package/src/helpers/validators/validURL.ts +0 -18
- package/src/helpers/validators/validateEmail.test.ts +0 -110
- package/src/helpers/validators/validateEmail.ts +0 -47
- package/src/helpers/validators/validatePhoneNumber.test.ts +0 -94
- package/src/helpers/validators/validatePhoneNumber.ts +0 -49
- package/src/helpers/validators/validateString.test.ts +0 -173
- package/src/helpers/validators/validateString.ts +0 -171
- package/src/helpers/waitMs.tsx +0 -12
- package/src/types/DayOfWeek.ts +0 -15
- package/src/types/Log/LogMainInfo.ts +0 -69
- package/src/types/Log/LogSourceSpecificInfo.ts +0 -25
- package/src/types/Log/LogTypeSpecificInfo.ts +0 -33
- package/src/types/Log/index.ts +0 -17
- package/src/types/LogAction.ts +0 -52
- package/src/types/LogBuiltInMetadata.ts +0 -19
- package/src/types/LogFunction.ts +0 -46
- package/src/types/LogLevel.ts +0 -11
- package/src/types/LogMetadataContextMap.ts +0 -15
- package/src/types/LogMetadataTagMap.ts +0 -9
- package/src/types/LogMetadataTargetMap.ts +0 -9
- package/src/types/LogMetadataType.ts +0 -16
- package/src/types/LogReviewerFilterState/ActionErrorFilterState.ts +0 -24
- package/src/types/LogReviewerFilterState/AdvancedFilterState.ts +0 -36
- package/src/types/LogReviewerFilterState/ContextFilterState.ts +0 -16
- package/src/types/LogReviewerFilterState/DateFilterState.ts +0 -26
- package/src/types/LogReviewerFilterState/TagFilterState.ts +0 -9
- package/src/types/LogReviewerFilterState/index.ts +0 -24
- package/src/types/LogSource.ts +0 -12
- package/src/types/LogType.ts +0 -12
- package/src/types/ParamType.ts +0 -18
- package/src/types/ReactKitErrorCode.tsx +0 -17
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import LogType from '../LogType';
|
|
2
|
-
/**
|
|
3
|
-
* Action filter state (only relevant for action logs)
|
|
4
|
-
* @author Yuen Ler Chow
|
|
5
|
-
*/
|
|
6
|
-
type ActionErrorFilterState = {
|
|
7
|
-
type: LogType | undefined;
|
|
8
|
-
errorMessage: string;
|
|
9
|
-
errorCode: string;
|
|
10
|
-
target: {
|
|
11
|
-
[k: string]: boolean;
|
|
12
|
-
};
|
|
13
|
-
action: {
|
|
14
|
-
[k: string]: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default ActionErrorFilterState;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import LogSource from '../LogSource';
|
|
2
|
-
/**
|
|
3
|
-
* Advanced filter state
|
|
4
|
-
* @author Yuen Ler Chow
|
|
5
|
-
*/
|
|
6
|
-
type AdvancedFilterState = {
|
|
7
|
-
userFirstName: string;
|
|
8
|
-
userLastName: string;
|
|
9
|
-
userEmail: string;
|
|
10
|
-
userId: string;
|
|
11
|
-
includeLearners: boolean;
|
|
12
|
-
includeTTMs: boolean;
|
|
13
|
-
includeAdmins: boolean;
|
|
14
|
-
courseId: string;
|
|
15
|
-
courseName: string;
|
|
16
|
-
isMobile: (true | false | undefined);
|
|
17
|
-
source: LogSource | undefined;
|
|
18
|
-
routePath: string;
|
|
19
|
-
routeTemplate: string;
|
|
20
|
-
};
|
|
21
|
-
export default AdvancedFilterState;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Date filter state
|
|
3
|
-
* @author Yuen Ler Chow
|
|
4
|
-
*/
|
|
5
|
-
type DateFilterState = {
|
|
6
|
-
startDate: {
|
|
7
|
-
year: number;
|
|
8
|
-
month: number;
|
|
9
|
-
day: number;
|
|
10
|
-
};
|
|
11
|
-
endDate: {
|
|
12
|
-
year: number;
|
|
13
|
-
month: number;
|
|
14
|
-
day: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default DateFilterState;
|
|
@@ -1,17 +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
|
-
* A bundle of filter state objects for each type of filter
|
|
8
|
-
* @author Gabe Abrams
|
|
9
|
-
*/
|
|
10
|
-
type LogReviewerFilterState = {
|
|
11
|
-
dateFilterState: DateFilterState;
|
|
12
|
-
contextFilterState: ContextFilterState;
|
|
13
|
-
tagFilterState: TagFilterState;
|
|
14
|
-
actionErrorFilterState: ActionErrorFilterState;
|
|
15
|
-
advancedFilterState: AdvancedFilterState;
|
|
16
|
-
};
|
|
17
|
-
export default LogReviewerFilterState;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Server-side API param types
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
*/
|
|
5
|
-
declare enum ParamType {
|
|
6
|
-
Boolean = "Boolean",
|
|
7
|
-
BooleanOptional = "BooleanOptional",
|
|
8
|
-
Float = "Float",
|
|
9
|
-
FloatOptional = "FloatOptional",
|
|
10
|
-
Int = "Int",
|
|
11
|
-
IntOptional = "IntOptional",
|
|
12
|
-
JSON = "JSON",
|
|
13
|
-
JSONOptional = "JSONOptional",
|
|
14
|
-
String = "String",
|
|
15
|
-
StringOptional = "StringOptional"
|
|
16
|
-
}
|
|
17
|
-
export default ParamType;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List of error codes built into the react kit
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
*/
|
|
5
|
-
declare enum ReactKitErrorCode {
|
|
6
|
-
NoResponse = "DRK1",
|
|
7
|
-
NoCode = "DRK2",
|
|
8
|
-
SessionExpired = "DRK3",
|
|
9
|
-
NoCACCLSendRequestFunction = "DRK7",
|
|
10
|
-
SimpleDateChooserInvalidDateRange = "DRK35",
|
|
11
|
-
SimpleDateChooserInvalidNumMonths = "DRK36",
|
|
12
|
-
ETTimestampInvalid = "DRK37"
|
|
13
|
-
}
|
|
14
|
-
export default ReactKitErrorCode;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shorten text so it fits into a certain number of chars
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param text the text to abbreviate
|
|
5
|
-
* @param maxChars the maximum number of chars to include
|
|
6
|
-
* @returns abbreviated text with length no greater than maxChars
|
|
7
|
-
* (including ellipses if applicable)
|
|
8
|
-
*/
|
|
9
|
-
declare const abbreviate: (text: string, maxChars: number) => string;
|
|
10
|
-
export default abbreviate;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run the operator function on each item in the array, returning true if
|
|
3
|
-
* the operator function returns true for every item in the array
|
|
4
|
-
* @author Gabe Abrams
|
|
5
|
-
* @param operatorFunction the operator function to apply. If it returns true
|
|
6
|
-
* for every item, this function will return true
|
|
7
|
-
* @returns true if the operator function returns true for every item in the array
|
|
8
|
-
*/
|
|
9
|
-
declare const everyAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
10
|
-
breakNow: () => void;
|
|
11
|
-
array: T[];
|
|
12
|
-
}) => Promise<any>) => Promise<boolean>;
|
|
13
|
-
export default everyAsync;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run the operator function on each item in the array, returning a new array
|
|
3
|
-
* that only contains the items that pass the filter
|
|
4
|
-
* @author Gabe Abrams
|
|
5
|
-
* @param operatorFunction the operator function to apply. If it returns true
|
|
6
|
-
* for an item, the item will be included in the returned array
|
|
7
|
-
* @returns the filtered array
|
|
8
|
-
*/
|
|
9
|
-
declare const filterAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
10
|
-
breakNow: () => void;
|
|
11
|
-
array: T[];
|
|
12
|
-
}) => Promise<any>) => Promise<T[]>;
|
|
13
|
-
export default filterAsync;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run the operator function on each item in the array
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param operatorFunction the operator function to apply
|
|
5
|
-
*/
|
|
6
|
-
declare const forEachAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
7
|
-
breakNow: () => void;
|
|
8
|
-
array: T[];
|
|
9
|
-
}) => void) => Promise<void>;
|
|
10
|
-
export default forEachAsync;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run the operator function on each item in the array, collecting all results
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param operatorFunction the operator function to apply
|
|
5
|
-
* @returns the array of results
|
|
6
|
-
*/
|
|
7
|
-
declare const mapAsync: <T, U>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
8
|
-
breakNow: () => void;
|
|
9
|
-
array: T[];
|
|
10
|
-
}) => Promise<U>) => Promise<U[]>;
|
|
11
|
-
export default mapAsync;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run the operator function on each item in the array, returning true if
|
|
3
|
-
* the operator function returns true for any item in the array
|
|
4
|
-
* @author Gabe Abrams
|
|
5
|
-
* @param operatorFunction the operator function to apply. If it returns true
|
|
6
|
-
* for any item, this function will return true
|
|
7
|
-
* @returns true if the operator function returns true for any item in the array
|
|
8
|
-
*/
|
|
9
|
-
declare const someAsync: <T>(array: T[], operatorFunction: (item: T, index: number, opts: {
|
|
10
|
-
breakNow: () => void;
|
|
11
|
-
array: T[];
|
|
12
|
-
}) => Promise<any>) => Promise<boolean>;
|
|
13
|
-
export default someAsync;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Round a number (ceiling) to a certain number of decimals
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param num the number to round
|
|
5
|
-
* @param numDecimals the number of decimals to round to
|
|
6
|
-
* @returns rounded number
|
|
7
|
-
*/
|
|
8
|
-
declare const ceilToNumDecimals: (num: number, numDecimals: number) => number;
|
|
9
|
-
export default ceilToNumDecimals;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compare two arrays of objects by only comparing the values in a specific
|
|
3
|
-
* property (e.g. compare user arrays by comparing their user.id values)
|
|
4
|
-
* @author Gabe Abrams
|
|
5
|
-
* @param a the first array
|
|
6
|
-
* @param b the second array
|
|
7
|
-
* @param prop the property to compare with, or an array of props to compare
|
|
8
|
-
* with (if array, all values associated with those props must match)
|
|
9
|
-
* @returns true if the arrays contain the same objects as determined by
|
|
10
|
-
* the values associated with each object's prop
|
|
11
|
-
*/
|
|
12
|
-
declare const compareArraysByProp: (a: any[], b: any[], prop: string | string[]) => boolean;
|
|
13
|
-
export default compareArraysByProp;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* For every element in an array, extract the value of a prop
|
|
3
|
-
* (e.g. for all user objects, extract their ages and put that into a new
|
|
4
|
-
* ages array)
|
|
5
|
-
* @author Gabe Abrams
|
|
6
|
-
* @param arr the array of objects to operate on
|
|
7
|
-
* @param prop the property to extract from each object
|
|
8
|
-
* @returns new array containing the corresponding values, in order, of each
|
|
9
|
-
* object in the original array
|
|
10
|
-
*/
|
|
11
|
-
declare const extractProp: (arr: any[], prop: string) => any[];
|
|
12
|
-
export default extractProp;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Round a number (floor) to a certain number of decimals
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param num the number to round
|
|
5
|
-
* @param numDecimals the number of decimals to round to
|
|
6
|
-
* @returns rounded number
|
|
7
|
-
*/
|
|
8
|
-
declare const floorToNumDecimals: (num: number, numDecimals: number) => number;
|
|
9
|
-
export default floorToNumDecimals;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Force a number to stay within specific bounds
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param num the number to move into the bounds
|
|
5
|
-
* @param min the minimum number in the bound
|
|
6
|
-
* @param max the maximum number in the bound
|
|
7
|
-
* @returns bounded number
|
|
8
|
-
*/
|
|
9
|
-
declare const forceNumIntoBounds: (num: number, min: number, max: number) => number;
|
|
10
|
-
export default forceNumIntoBounds;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate a CSV file
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param data list of row data in the form of json objects
|
|
5
|
-
* @param columns list of columns to include in the csv where each column is an object with:
|
|
6
|
-
* - title: the column title
|
|
7
|
-
* - param: the key in the data object to use for this column
|
|
8
|
-
* - textIfUndefined: optional text to use if the value is undefined (defaults to empty string)
|
|
9
|
-
* @returns multiline csv string
|
|
10
|
-
*/
|
|
11
|
-
declare const genCSV: (data: {
|
|
12
|
-
[k: string]: any;
|
|
13
|
-
}[], columns: {
|
|
14
|
-
title: string;
|
|
15
|
-
param: string;
|
|
16
|
-
textIfUndefined?: string;
|
|
17
|
-
}[]) => string;
|
|
18
|
-
export default genCSV;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Given an array of strings, create a single comma-separated string that includes
|
|
3
|
-
* 'and' as well as an oxford comma.
|
|
4
|
-
* Ex: ['apples'] => 'apples'
|
|
5
|
-
* Ex: ['apples', 'bananas'] => 'apples and bananas'
|
|
6
|
-
* Ex: ['apples', 'bananas', 'grapes'] => 'apples, bananas, and grapes'
|
|
7
|
-
* @author Austen Money
|
|
8
|
-
* @param list an array of elements to be made into a single comma-separated string.
|
|
9
|
-
* @returns a comma-separated string.
|
|
10
|
-
*/
|
|
11
|
-
declare const genCommaList: (list: string[]) => string;
|
|
12
|
-
export default genCommaList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get a human-readable description of a date (all in ET)
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param [dateOrTimestamp=today] the date or timestamp for the date to describe
|
|
5
|
-
* @returns human-readable description of the date
|
|
6
|
-
*/
|
|
7
|
-
declare const getHumanReadableDate: (dateOrTimestamp?: Date | number) => string;
|
|
8
|
-
export default getHumanReadableDate;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get current time info in local time
|
|
3
|
-
* @author Gabe Abrams
|
|
4
|
-
* @param [dateOrTimestamp=now] the date to get info on or a ms since epoch timestamp
|
|
5
|
-
* @returns object with timestamp (ms since epoch) and numbers
|
|
6
|
-
* corresponding to time values for year, month, day, hour, hour12, minute, isPM
|
|
7
|
-
* where hour is in 24hr time and hour12 is in 12hr time.
|
|
8
|
-
*/
|
|
9
|
-
declare const getLocalTimeInfo: (dateOrTimestamp?: Date | number) => {
|
|
10
|
-
timestamp: number;
|
|
11
|
-
year: number;
|
|
12
|
-
month: number;
|
|
13
|
-
day: number;
|
|
14
|
-
hour: number;
|
|
15
|
-
hour12: number;
|
|
16
|
-
minute: number;
|
|
17
|
-
isPM: boolean;
|
|
18
|
-
};
|
|
19
|
-
export default getLocalTimeInfo;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the name of a month given the month number (1 = January, etc.)
|
|
3
|
-
* If an invalid number is provided, we will treat it like January
|
|
4
|
-
* @author Gabe Abrams
|
|
5
|
-
* @param month the number of the month
|
|
6
|
-
* @returns object containing multiple month name formats:
|
|
7
|
-
* { short, full } where short will look like "Jan" and full will look like
|
|
8
|
-
* "January"
|
|
9
|
-
*/
|
|
10
|
-
declare const getMonthName: (month: number) => {
|
|
11
|
-
short: string;
|
|
12
|
-
full: string;
|
|
13
|
-
};
|
|
14
|
-
export default getMonthName;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get current time info in US Boston Eastern Time, independent of machine
|
|
3
|
-
* timezone
|
|
4
|
-
* @author Gabe Abrams
|
|
5
|
-
* @param [dateOrTimestamp=now] the date to get info on or a ms since epoch timestamp
|
|
6
|
-
* @returns object with timestamp (ms since epoch) and numbers
|
|
7
|
-
* corresponding to ET time values for year, month, day, hour, hour12, minute, second, isPM
|
|
8
|
-
* where hour is in 24hr time and hour12 is in 12hr time.
|
|
9
|
-
*/
|
|
10
|
-
declare const getTimeInfoInET: (dateOrTimestamp?: Date | number) => {
|
|
11
|
-
timestamp: number;
|
|
12
|
-
year: number;
|
|
13
|
-
month: number;
|
|
14
|
-
day: number;
|
|
15
|
-
hour: number;
|
|
16
|
-
hour12: number;
|
|
17
|
-
minute: number;
|
|
18
|
-
second: number;
|
|
19
|
-
isPM: boolean;
|
|
20
|
-
};
|
|
21
|
-
export default getTimeInfoInET;
|