dce-reactkit 3.12.1-beta-cross-server.8 → 4.0.0-beta-date-and-time.1
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/.vscode/settings.json +3 -1
- package/README.md +0 -20
- package/dist/cjs/index.js +7838 -15905
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ItemPicker/index.d.ts +1 -0
- package/dist/cjs/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/cjs/types/components/Modal/ModalProps.d.ts +2 -0
- package/dist/cjs/types/components/SimpleDateChooser.d.ts +3 -1
- package/dist/cjs/types/components/SimpleTimeChooser.d.ts +20 -0
- package/dist/cjs/types/components/TabBox.d.ts +1 -0
- package/dist/cjs/types/components/Tooltip.d.ts +1 -1
- package/dist/cjs/types/helpers/getWordCount.d.ts +10 -0
- package/dist/cjs/types/index.d.ts +13 -13
- package/dist/cjs/types/types/ParamType.d.ts +10 -10
- package/dist/cjs/types/types/ReactKitErrorCode.d.ts +2 -28
- package/dist/esm/index.js +6661 -14723
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ItemPicker/index.d.ts +1 -0
- package/dist/esm/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/esm/types/components/Modal/ModalProps.d.ts +2 -0
- package/dist/esm/types/components/SimpleDateChooser.d.ts +3 -1
- package/dist/esm/types/components/SimpleTimeChooser.d.ts +20 -0
- package/dist/esm/types/components/TabBox.d.ts +1 -0
- package/dist/esm/types/components/Tooltip.d.ts +1 -1
- package/dist/esm/types/helpers/getWordCount.d.ts +10 -0
- package/dist/esm/types/index.d.ts +13 -13
- package/dist/esm/types/types/ParamType.d.ts +10 -10
- package/dist/esm/types/types/ReactKitErrorCode.d.ts +2 -28
- package/dist/index.d.ts +189 -379
- package/package.json +5 -11
- package/src/components/AppWrapper.tsx +3 -1
- package/src/components/CheckboxButton.tsx +1 -1
- package/src/components/Dropdown.tsx +1 -1
- package/src/components/IntelliTable.tsx +1 -1
- package/src/components/ItemPicker/NestableItemList.tsx +1 -0
- package/src/components/ItemPicker/index.tsx +96 -0
- package/src/components/LogReviewer.tsx +2 -2
- package/src/components/Modal/ModalProps.ts +4 -0
- package/src/components/Modal/index.tsx +60 -21
- package/src/components/RadioButton.tsx +3 -1
- package/src/components/SimpleDateChooser.tsx +62 -26
- package/src/components/SimpleTimeChooser.tsx +195 -0
- package/src/components/TabBox.tsx +27 -9
- package/src/components/Tooltip.tsx +1 -1
- package/src/helpers/getWordCount.ts +26 -0
- package/src/{client → helpers}/initClient.tsx +5 -1
- package/src/helpers/logClientEvent.tsx +3 -1
- package/src/helpers/visitServerEndpoint.tsx +1 -1
- package/src/index.ts +22 -24
- package/src/types/ParamType.ts +10 -10
- package/src/types/ReactKitErrorCode.tsx +3 -31
- package/dist/cjs/types/components/ItemPicker/index.test.d.ts +0 -1
- package/dist/cjs/types/helpers/addDBEditorEndpoints.d.ts +0 -41
- package/dist/cjs/types/helpers/dataSigner.d.ts +0 -40
- package/dist/cjs/types/helpers/genRouteHandler.d.ts +0 -76
- package/dist/cjs/types/helpers/handleError.d.ts +0 -18
- package/dist/cjs/types/helpers/handleSuccess.d.ts +0 -8
- package/dist/cjs/types/helpers/parseUserAgent.d.ts +0 -17
- package/dist/cjs/types/helpers/visitEndpointOnAnotherServer/index.d.ts +0 -20
- package/dist/cjs/types/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.d.ts +0 -27
- package/dist/cjs/types/server/initCrossServerCredentialCollection.d.ts +0 -8
- package/dist/cjs/types/server/initLogCollection.d.ts +0 -8
- package/dist/cjs/types/server/initServer.d.ts +0 -53
- package/dist/cjs/types/types/CrossServerCredential.d.ts +0 -11
- package/dist/esm/types/components/ItemPicker/index.test.d.ts +0 -1
- package/dist/esm/types/helpers/addDBEditorEndpoints.d.ts +0 -41
- package/dist/esm/types/helpers/dataSigner.d.ts +0 -40
- package/dist/esm/types/helpers/genRouteHandler.d.ts +0 -76
- package/dist/esm/types/helpers/handleError.d.ts +0 -18
- package/dist/esm/types/helpers/handleSuccess.d.ts +0 -8
- package/dist/esm/types/helpers/parseUserAgent.d.ts +0 -17
- package/dist/esm/types/helpers/visitEndpointOnAnotherServer/index.d.ts +0 -20
- package/dist/esm/types/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.d.ts +0 -27
- package/dist/esm/types/server/initCrossServerCredentialCollection.d.ts +0 -8
- package/dist/esm/types/server/initLogCollection.d.ts +0 -8
- package/dist/esm/types/server/initServer.d.ts +0 -53
- package/dist/esm/types/types/CrossServerCredential.d.ts +0 -11
- package/src/components/ItemPicker/index.test.tsx +0 -783
- package/src/helpers/addDBEditorEndpoints.ts +0 -128
- package/src/helpers/dataSigner.ts +0 -342
- package/src/helpers/genRouteHandler.ts +0 -911
- package/src/helpers/handleError.ts +0 -65
- package/src/helpers/handleSuccess.ts +0 -18
- package/src/helpers/parseUserAgent.ts +0 -108
- package/src/helpers/visitEndpointOnAnotherServer/index.ts +0 -152
- package/src/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.ts +0 -162
- package/src/server/initCrossServerCredentialCollection.ts +0 -16
- package/src/server/initLogCollection.ts +0 -27
- package/src/server/initServer.ts +0 -305
- package/src/types/CrossServerCredential.ts +0 -16
- /package/dist/cjs/types/{client → helpers}/initClient.d.ts +0 -0
- /package/dist/esm/types/{client → helpers}/initClient.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A very simple, lightweight date chooser
|
|
3
3
|
* @author Gabe Abrams
|
|
4
|
+
* @author Gardeniu Liu
|
|
4
5
|
*/
|
|
5
6
|
import React from 'react';
|
|
6
7
|
type Props = {
|
|
@@ -17,7 +18,8 @@ type Props = {
|
|
|
17
18
|
*/
|
|
18
19
|
onChange: (month: number, day: number, year: number) => void;
|
|
19
20
|
numMonthsToShow?: number;
|
|
20
|
-
|
|
21
|
+
dontAllowPast?: boolean;
|
|
22
|
+
dontAllowFuture?: boolean;
|
|
21
23
|
};
|
|
22
24
|
declare const SimpleDateChooser: React.FC<Props>;
|
|
23
25
|
export default SimpleDateChooser;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A very simple, lightweight time chooser
|
|
3
|
+
* @author Gardenia Liu
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
type Props = {
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
name: string;
|
|
9
|
+
hour: number;
|
|
10
|
+
minute: number;
|
|
11
|
+
/**
|
|
12
|
+
* Handler for when time changes
|
|
13
|
+
* @param hour new 24hr hour number
|
|
14
|
+
* @param minute new minute number
|
|
15
|
+
*/
|
|
16
|
+
onChange: (hour: number, minute: number) => void;
|
|
17
|
+
intervalMin?: number;
|
|
18
|
+
};
|
|
19
|
+
declare const SimpleTimeChooser: React.FC<Props>;
|
|
20
|
+
export default SimpleTimeChooser;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get number of words in string
|
|
3
|
+
* @author Gardenia Liu
|
|
4
|
+
* @author Allison Zhang
|
|
5
|
+
* @author Gabe Abrams
|
|
6
|
+
* @param text the string to check
|
|
7
|
+
* @returns number of words in the string
|
|
8
|
+
*/
|
|
9
|
+
declare const getWordCount: (text: string) => number;
|
|
10
|
+
export default getWordCount;
|
|
@@ -7,6 +7,7 @@ import RadioButton from './components/RadioButton';
|
|
|
7
7
|
import CheckboxButton from './components/CheckboxButton';
|
|
8
8
|
import ButtonInputGroup from './components/ButtonInputGroup';
|
|
9
9
|
import SimpleDateChooser from './components/SimpleDateChooser';
|
|
10
|
+
import SimpleTimeChooser from './components/SimpleTimeChooser';
|
|
10
11
|
import Drawer from './components/Drawer';
|
|
11
12
|
import PopSuccessMark from './components/PopSuccessMark';
|
|
12
13
|
import PopFailureMark from './components/PopFailureMark';
|
|
@@ -26,8 +27,11 @@ import ErrorWithCode from './errors/ErrorWithCode';
|
|
|
26
27
|
import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
|
|
27
28
|
import HOUR_IN_MS from './constants/HOUR_IN_MS';
|
|
28
29
|
import DAY_IN_MS from './constants/DAY_IN_MS';
|
|
30
|
+
import LOG_REVIEW_ROUTE_PATH_PREFIX from './constants/LOG_REVIEW_ROUTE_PATH_PREFIX';
|
|
31
|
+
import LOG_ROUTE_PATH from './constants/LOG_ROUTE_PATH';
|
|
32
|
+
import LOG_REVIEW_STATUS_ROUTE from './constants/LOG_REVIEW_STATUS_ROUTE';
|
|
29
33
|
import DynamicWord from './dynamicConstants/DynamicWord';
|
|
30
|
-
import initClient from './
|
|
34
|
+
import initClient from './helpers/initClient';
|
|
31
35
|
import abbreviate from './helpers/abbreviate';
|
|
32
36
|
import avg from './helpers/avg';
|
|
33
37
|
import ceilToNumDecimals from './helpers/ceilToNumDecimals';
|
|
@@ -39,10 +43,6 @@ import roundToNumDecimals from './helpers/roundToNumDecimals';
|
|
|
39
43
|
import sum from './helpers/sum';
|
|
40
44
|
import waitMs from './helpers/waitMs';
|
|
41
45
|
import visitServerEndpoint from './helpers/visitServerEndpoint';
|
|
42
|
-
import genRouteHandler from './helpers/genRouteHandler';
|
|
43
|
-
import handleError from './helpers/handleError';
|
|
44
|
-
import handleSuccess from './helpers/handleSuccess';
|
|
45
|
-
import initServer from './server/initServer';
|
|
46
46
|
import getOrdinal from './helpers/getOrdinal';
|
|
47
47
|
import getTimeInfoInET from './helpers/getTimeInfoInET';
|
|
48
48
|
import stubServerEndpoint from './helpers/stubServerEndpoint';
|
|
@@ -53,8 +53,6 @@ import stringsToHumanReadableList from './helpers/stringsToHumanReadableList';
|
|
|
53
53
|
import onlyKeepLetters from './helpers/onlyKeepLetters';
|
|
54
54
|
import parallelLimit from './helpers/parallelLimit';
|
|
55
55
|
import logClientEvent, { setClientEventMetadataPopulator } from './helpers/logClientEvent';
|
|
56
|
-
import initLogCollection from './server/initLogCollection';
|
|
57
|
-
import initCrossServerCredentialCollection from './server/initCrossServerCredentialCollection';
|
|
58
56
|
import getMonthName from './helpers/getMonthName';
|
|
59
57
|
import genCSV from './helpers/genCSV';
|
|
60
58
|
import canReviewLogs from './helpers/canReviewLogs';
|
|
@@ -62,7 +60,6 @@ import isMobileOrTablet from './helpers/isMobileOrTablet';
|
|
|
62
60
|
import extractProp from './helpers/extractProp';
|
|
63
61
|
import compareArraysByProp from './helpers/compareArraysByProp';
|
|
64
62
|
import getLocalTimeInfo from './helpers/getLocalTimeInfo';
|
|
65
|
-
import addDBEditorEndpoints from './helpers/addDBEditorEndpoints';
|
|
66
63
|
import genCommaList from './helpers/genCommaList';
|
|
67
64
|
import validateEmail from './helpers/validators/validateEmail';
|
|
68
65
|
import validatePhoneNumber from './helpers/validators/validatePhoneNumber';
|
|
@@ -79,13 +76,12 @@ import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
|
|
|
79
76
|
import someAsync from './helpers/asyncArrayFunctions/someAsync';
|
|
80
77
|
import capitalize from './helpers/capitalize';
|
|
81
78
|
import shuffleArray from './helpers/shuffleArray';
|
|
82
|
-
import
|
|
79
|
+
import getWordCount from './helpers/getWordCount';
|
|
80
|
+
import ParamType from './types/ParamType';
|
|
83
81
|
import ModalButtonType from './types/ModalButtonType';
|
|
84
82
|
import ModalSize from './types/ModalSize';
|
|
85
83
|
import ModalType from './types/ModalType';
|
|
86
|
-
import ReactKitErrorCode from './types/ReactKitErrorCode';
|
|
87
84
|
import Variant from './types/Variant';
|
|
88
|
-
import ParamType from './types/ParamType';
|
|
89
85
|
import DayOfWeek from './types/DayOfWeek';
|
|
90
86
|
import Log from './types/Log';
|
|
91
87
|
import LogType from './types/LogType';
|
|
@@ -94,11 +90,15 @@ import LogAction from './types/LogAction';
|
|
|
94
90
|
import LogBuiltInMetadata from './types/LogBuiltInMetadata';
|
|
95
91
|
import LogMetadataType from './types/LogMetadataType';
|
|
96
92
|
import LogFunction from './types/LogFunction';
|
|
93
|
+
import LogTypeSpecificInfo from './types/Log/LogTypeSpecificInfo';
|
|
94
|
+
import LogMainInfo from './types/Log/LogMainInfo';
|
|
95
|
+
import LogSourceSpecificInfo from './types/Log/LogSourceSpecificInfo';
|
|
96
|
+
import LogLevel from './types/LogLevel';
|
|
97
97
|
import IntelliTableColumn from './types/IntelliTableColumn';
|
|
98
98
|
import DropdownItemType from './types/DropdownItemType';
|
|
99
|
-
import
|
|
99
|
+
import ReactKitErrorCode from './types/ReactKitErrorCode';
|
|
100
100
|
import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
101
101
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
102
102
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
103
103
|
import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
|
|
104
|
-
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator,
|
|
104
|
+
export { AppWrapper, LoadingSpinner, ErrorBox, Modal, TabBox, RadioButton, CheckboxButton, ButtonInputGroup, SimpleDateChooser, SimpleTimeChooser, Drawer, PopSuccessMark, PopFailureMark, PopPendingMark, CopiableBox, ItemPicker, LogReviewer, IntelliTable, CSVDownloadButton, DBEntryManagerPanel, Tooltip, ToggleSwitch, AutoscrollToBottomContainer, MultiSwitch, Dropdown, alert, prompt, confirm, showFatalError, ErrorWithCode, MINUTE_IN_MS, HOUR_IN_MS, DAY_IN_MS, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_ROUTE_PATH, LOG_REVIEW_STATUS_ROUTE, DynamicWord, abbreviate, avg, ceilToNumDecimals, floorToNumDecimals, forceNumIntoBounds, padDecimalZeros, padZerosLeft, roundToNumDecimals, sum, waitMs, getOrdinal, getTimeInfoInET, stubServerEndpoint, startMinWait, getHumanReadableDate, getPartOfDay, stringsToHumanReadableList, onlyKeepLetters, parallelLimit, getMonthName, genCSV, canReviewLogs, isMobileOrTablet, extractProp, compareArraysByProp, genCommaList, validateEmail, validatePhoneNumber, validateString, getLocalTimeInfo, idify, makeLinksClickable, prefixWithAOrAn, everyAsync, filterAsync, forEachAsync, mapAsync, someAsync, capitalize, shuffleArray, getWordCount, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, ParamType, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, LogTypeSpecificInfo, LogMainInfo, LogSourceSpecificInfo, LogLevel, IntelliTableColumn, DropdownItemType, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, };
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* @author Gabe Abrams
|
|
4
4
|
*/
|
|
5
5
|
declare enum ParamType {
|
|
6
|
-
Boolean = "
|
|
7
|
-
BooleanOptional = "
|
|
8
|
-
Float = "
|
|
9
|
-
FloatOptional = "
|
|
10
|
-
Int = "
|
|
11
|
-
IntOptional = "
|
|
12
|
-
JSON = "
|
|
13
|
-
JSONOptional = "
|
|
14
|
-
String = "
|
|
15
|
-
StringOptional = "
|
|
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
16
|
}
|
|
17
17
|
export default ParamType;
|
|
@@ -6,34 +6,8 @@ declare enum ReactKitErrorCode {
|
|
|
6
6
|
NoResponse = "DRK1",
|
|
7
7
|
NoCode = "DRK2",
|
|
8
8
|
SessionExpired = "DRK3",
|
|
9
|
-
MissingParameter = "DRK4",
|
|
10
|
-
InvalidParameter = "DRK5",
|
|
11
|
-
HostNotAllowed = "DRK17",
|
|
12
|
-
HostBanned = "DRK18",
|
|
13
|
-
WrongCourse = "DRK6",
|
|
14
9
|
NoCACCLSendRequestFunction = "DRK7",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
NotAdmin = "DRK10",
|
|
18
|
-
NotAllowedToReviewLogs = "DRK11",
|
|
19
|
-
ThemeCheckedBeforeReactKitReady = "DRK12",
|
|
20
|
-
SessionExpiredMessageGottenBeforeReactKitReady = "DRK13",
|
|
21
|
-
NotConnected = "DRK14",
|
|
22
|
-
SelfSigned = "DRK15",
|
|
23
|
-
ResponseParseError = "DRK16",
|
|
24
|
-
SignedRequestUnparseable = "DRK28",
|
|
25
|
-
SignedRequestInvalidCollection = "DRK21",
|
|
26
|
-
SignedRequestInvalidCredential = "DRK23",
|
|
27
|
-
SignedRequestInvalidScope = "DRK22",
|
|
28
|
-
SignedRequestInvalidTimestamp = "DRK24",
|
|
29
|
-
SignedRequestInvalidSignature = "DRK25",
|
|
30
|
-
SignedRequestInvalidBody = "DRK26",
|
|
31
|
-
CrossServerNoCredentialsToSignWith = "DRK27",
|
|
32
|
-
CrossServerMissingSignedRequestInfo = "DRK29",
|
|
33
|
-
CrossServerNoCredentialEncodingSalt = "DRK30",
|
|
34
|
-
NoOauthLib = "DRK31",
|
|
35
|
-
NoCryptoLib = "DRK32",
|
|
36
|
-
InvalidCrossServerCredentialsFormat = "DRK33",
|
|
37
|
-
UnknownCrossServerError = "DRK34"
|
|
10
|
+
SimpleDateChooserInvalidDateRange = "DRK35",
|
|
11
|
+
SimpleDateChooserInvalidNumMonths = "DRK36"
|
|
38
12
|
}
|
|
39
13
|
export default ReactKitErrorCode;
|