dce-reactkit 3.12.3 → 4.0.0-beta.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.
Files changed (71) hide show
  1. package/.vscode/settings.json +1 -3
  2. package/README.md +20 -0
  3. package/dist/cjs/index.js +156 -1792
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/ItemPicker/index.d.ts +0 -1
  6. package/dist/cjs/types/components/Modal/ModalProps.d.ts +0 -2
  7. package/dist/cjs/types/components/TabBox.d.ts +0 -1
  8. package/dist/cjs/types/index.d.ts +8 -12
  9. package/dist/cjs/types/types/ParamType.d.ts +10 -10
  10. package/dist/cjs/types/types/ReactKitErrorCode.d.ts +1 -15
  11. package/dist/esm/index.js +157 -1785
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/types/components/ItemPicker/index.d.ts +0 -1
  14. package/dist/esm/types/components/Modal/ModalProps.d.ts +0 -2
  15. package/dist/esm/types/components/TabBox.d.ts +0 -1
  16. package/dist/esm/types/index.d.ts +8 -12
  17. package/dist/esm/types/types/ParamType.d.ts +10 -10
  18. package/dist/esm/types/types/ReactKitErrorCode.d.ts +1 -15
  19. package/dist/index.d.ts +122 -351
  20. package/genEncodedSecret.ts +84 -0
  21. package/package.json +7 -5
  22. package/rollup.config.js +2 -0
  23. package/src/components/AppWrapper.tsx +3 -1
  24. package/src/components/CheckboxButton.tsx +1 -1
  25. package/src/components/Dropdown.tsx +1 -1
  26. package/src/components/IntelliTable.tsx +1 -1
  27. package/src/components/ItemPicker/NestableItemList.tsx +0 -1
  28. package/src/components/ItemPicker/index.tsx +0 -96
  29. package/src/components/Modal/ModalProps.ts +0 -4
  30. package/src/components/Modal/index.tsx +21 -60
  31. package/src/components/RadioButton.tsx +3 -1
  32. package/src/components/TabBox.tsx +9 -27
  33. package/src/{client → helpers}/initClient.tsx +5 -1
  34. package/src/helpers/logClientEvent.tsx +3 -1
  35. package/src/helpers/visitServerEndpoint.tsx +1 -1
  36. package/src/index.ts +12 -22
  37. package/src/types/ParamType.ts +10 -10
  38. package/src/types/ReactKitErrorCode.tsx +1 -17
  39. package/dist/cjs/types/helpers/addDBEditorEndpoints.d.ts +0 -41
  40. package/dist/cjs/types/helpers/genRouteHandler.d.ts +0 -76
  41. package/dist/cjs/types/helpers/getWordCount.d.ts +0 -10
  42. package/dist/cjs/types/helpers/handleError.d.ts +0 -18
  43. package/dist/cjs/types/helpers/handleSuccess.d.ts +0 -8
  44. package/dist/cjs/types/helpers/parseUserAgent.d.ts +0 -17
  45. package/dist/cjs/types/helpers/visitEndpointOnAnotherServer/index.d.ts +0 -24
  46. package/dist/cjs/types/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.d.ts +0 -33
  47. package/dist/cjs/types/server/initLogCollection.d.ts +0 -8
  48. package/dist/cjs/types/server/initServer.d.ts +0 -42
  49. package/dist/esm/types/helpers/addDBEditorEndpoints.d.ts +0 -41
  50. package/dist/esm/types/helpers/genRouteHandler.d.ts +0 -76
  51. package/dist/esm/types/helpers/getWordCount.d.ts +0 -10
  52. package/dist/esm/types/helpers/handleError.d.ts +0 -18
  53. package/dist/esm/types/helpers/handleSuccess.d.ts +0 -8
  54. package/dist/esm/types/helpers/parseUserAgent.d.ts +0 -17
  55. package/dist/esm/types/helpers/visitEndpointOnAnotherServer/index.d.ts +0 -24
  56. package/dist/esm/types/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.d.ts +0 -33
  57. package/dist/esm/types/server/initLogCollection.d.ts +0 -8
  58. package/dist/esm/types/server/initServer.d.ts +0 -42
  59. package/src/components/ItemPicker/index.test.tsx +0 -783
  60. package/src/helpers/addDBEditorEndpoints.ts +0 -128
  61. package/src/helpers/genRouteHandler.ts +0 -948
  62. package/src/helpers/getWordCount.ts +0 -26
  63. package/src/helpers/handleError.ts +0 -65
  64. package/src/helpers/handleSuccess.ts +0 -18
  65. package/src/helpers/parseUserAgent.ts +0 -108
  66. package/src/helpers/visitEndpointOnAnotherServer/index.ts +0 -93
  67. package/src/helpers/visitEndpointOnAnotherServer/sendServerToServerRequest.ts +0 -164
  68. package/src/server/initLogCollection.ts +0 -27
  69. package/src/server/initServer.ts +0 -287
  70. /package/dist/cjs/types/{client → helpers}/initClient.d.ts +0 -0
  71. /package/dist/esm/types/{client → helpers}/initClient.d.ts +0 -0
@@ -14,7 +14,6 @@ type Props = {
14
14
  */
15
15
  onChanged: (updatedItems: PickableItem[]) => void;
16
16
  noBottomMargin?: boolean;
17
- hideSelectAllOrNoneButtons?: boolean;
18
17
  };
19
18
  declare const ItemPicker: React.FC<Props>;
20
19
  export default ItemPicker;
@@ -38,7 +38,5 @@ type ModalProps = {
38
38
  confirmLabel?: string;
39
39
  confirmVariant?: Variant;
40
40
  onTopOfOtherModals?: boolean;
41
- isLoading?: boolean;
42
- isLoadingCancelable?: boolean;
43
41
  };
44
42
  export default ModalProps;
@@ -6,7 +6,6 @@ import React from 'react';
6
6
  type Props = {
7
7
  title: React.ReactNode;
8
8
  children: React.ReactNode;
9
- topRightChildren?: React.ReactNode;
10
9
  noBottomMargin?: boolean;
11
10
  noBottomPadding?: boolean;
12
11
  };
@@ -27,7 +27,7 @@ import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
27
27
  import HOUR_IN_MS from './constants/HOUR_IN_MS';
28
28
  import DAY_IN_MS from './constants/DAY_IN_MS';
29
29
  import DynamicWord from './dynamicConstants/DynamicWord';
30
- import initClient from './client/initClient';
30
+ import initClient from './helpers/initClient';
31
31
  import abbreviate from './helpers/abbreviate';
32
32
  import avg from './helpers/avg';
33
33
  import ceilToNumDecimals from './helpers/ceilToNumDecimals';
@@ -39,10 +39,6 @@ import roundToNumDecimals from './helpers/roundToNumDecimals';
39
39
  import sum from './helpers/sum';
40
40
  import waitMs from './helpers/waitMs';
41
41
  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
42
  import getOrdinal from './helpers/getOrdinal';
47
43
  import getTimeInfoInET from './helpers/getTimeInfoInET';
48
44
  import stubServerEndpoint from './helpers/stubServerEndpoint';
@@ -53,7 +49,6 @@ import stringsToHumanReadableList from './helpers/stringsToHumanReadableList';
53
49
  import onlyKeepLetters from './helpers/onlyKeepLetters';
54
50
  import parallelLimit from './helpers/parallelLimit';
55
51
  import logClientEvent, { setClientEventMetadataPopulator } from './helpers/logClientEvent';
56
- import initLogCollection from './server/initLogCollection';
57
52
  import getMonthName from './helpers/getMonthName';
58
53
  import genCSV from './helpers/genCSV';
59
54
  import canReviewLogs from './helpers/canReviewLogs';
@@ -61,7 +56,6 @@ import isMobileOrTablet from './helpers/isMobileOrTablet';
61
56
  import extractProp from './helpers/extractProp';
62
57
  import compareArraysByProp from './helpers/compareArraysByProp';
63
58
  import getLocalTimeInfo from './helpers/getLocalTimeInfo';
64
- import addDBEditorEndpoints from './helpers/addDBEditorEndpoints';
65
59
  import genCommaList from './helpers/genCommaList';
66
60
  import validateEmail from './helpers/validators/validateEmail';
67
61
  import validatePhoneNumber from './helpers/validators/validatePhoneNumber';
@@ -78,14 +72,11 @@ import mapAsync from './helpers/asyncArrayFunctions/mapAsync';
78
72
  import someAsync from './helpers/asyncArrayFunctions/someAsync';
79
73
  import capitalize from './helpers/capitalize';
80
74
  import shuffleArray from './helpers/shuffleArray';
81
- import visitEndpointOnAnotherServer from './helpers/visitEndpointOnAnotherServer';
82
- import getWordCount from './helpers/getWordCount';
75
+ import ParamType from './types/ParamType';
83
76
  import ModalButtonType from './types/ModalButtonType';
84
77
  import ModalSize from './types/ModalSize';
85
78
  import ModalType from './types/ModalType';
86
- import ReactKitErrorCode from './types/ReactKitErrorCode';
87
79
  import Variant from './types/Variant';
88
- import ParamType from './types/ParamType';
89
80
  import DayOfWeek from './types/DayOfWeek';
90
81
  import Log from './types/Log';
91
82
  import LogType from './types/LogType';
@@ -94,10 +85,15 @@ import LogAction from './types/LogAction';
94
85
  import LogBuiltInMetadata from './types/LogBuiltInMetadata';
95
86
  import LogMetadataType from './types/LogMetadataType';
96
87
  import LogFunction from './types/LogFunction';
88
+ import LogTypeSpecificInfo from './types/Log/LogTypeSpecificInfo';
89
+ import LogMainInfo from './types/Log/LogMainInfo';
90
+ import LogSourceSpecificInfo from './types/Log/LogSourceSpecificInfo';
91
+ import LogLevel from './types/LogLevel';
97
92
  import IntelliTableColumn from './types/IntelliTableColumn';
98
93
  import DropdownItemType from './types/DropdownItemType';
94
+ import ReactKitErrorCode from './types/ReactKitErrorCode';
99
95
  import PickableItem from './components/ItemPicker/types/PickableItem';
100
96
  import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
101
97
  import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
102
98
  import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
103
- 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, getWordCount, initClient, visitServerEndpoint, logClientEvent, addFatalErrorHandler, leaveToURL, combineClassNames, useForceRender, setClientEventMetadataPopulator, initServer, genRouteHandler, handleError, handleSuccess, initLogCollection, addDBEditorEndpoints, visitEndpointOnAnotherServer, ModalButtonType, ModalSize, ModalType, ReactKitErrorCode, Variant, DayOfWeek, Log, LogType, LogSource, LogAction, LogBuiltInMetadata, LogMetadataType, LogFunction, IntelliTableColumn, DropdownItemType, PickableItem, DBEntry, DBEntryField, DBEntryFieldType, ParamType, };
99
+ 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, 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 = "boolean",
7
- BooleanOptional = "boolean-optional",
8
- Float = "float",
9
- FloatOptional = "float-optional",
10
- Int = "int",
11
- IntOptional = "int-optional",
12
- JSON = "json",
13
- JSONOptional = "json-optional",
14
- String = "string",
15
- StringOptional = "string-optional"
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,20 +6,6 @@ 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
- NoCACCLSendRequestFunction = "DRK7",
15
- NoCACCLGetLaunchInfoFunction = "DRK8",
16
- NotTTM = "DRK9",
17
- NotAdmin = "DRK10",
18
- NotAllowedToReviewLogs = "DRK11",
19
- ThemeCheckedBeforeReactKitReady = "DRK12",
20
- SessionExpiredMessageGottenBeforeReactKitReady = "DRK13",
21
- NotConnected = "DRK14",
22
- SelfSigned = "DRK15",
23
- ResponseParseError = "DRK16"
9
+ NoCACCLSendRequestFunction = "DRK7"
24
10
  }
25
11
  export default ReactKitErrorCode;