dce-reactkit 4.0.0-beta.1 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2486 -1252
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/cjs/types/components/Tooltip.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +4 -1
- package/dist/esm/index.js +2483 -1251
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/esm/types/components/Tooltip.d.ts +1 -1
- package/dist/esm/types/index.d.ts +4 -1
- package/dist/index.d.ts +23 -3
- package/package.json +6 -10
- package/src/components/Tooltip.tsx +1 -1
- package/src/index.ts +6 -0
- package/dist/cjs/types/components/ItemPicker/index.test.d.ts +0 -1
- package/dist/esm/types/components/ItemPicker/index.test.d.ts +0 -1
|
@@ -26,6 +26,9 @@ import ErrorWithCode from './errors/ErrorWithCode';
|
|
|
26
26
|
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
|
+
import LOG_REVIEW_ROUTE_PATH_PREFIX from './constants/LOG_REVIEW_ROUTE_PATH_PREFIX';
|
|
30
|
+
import LOG_ROUTE_PATH from './constants/LOG_ROUTE_PATH';
|
|
31
|
+
import LOG_REVIEW_STATUS_ROUTE from './constants/LOG_REVIEW_STATUS_ROUTE';
|
|
29
32
|
import DynamicWord from './dynamicConstants/DynamicWord';
|
|
30
33
|
import initClient from './helpers/initClient';
|
|
31
34
|
import abbreviate from './helpers/abbreviate';
|
|
@@ -96,4 +99,4 @@ import PickableItem from './components/ItemPicker/types/PickableItem';
|
|
|
96
99
|
import DBEntry from './components/DBEntryManagerPanel/types/DBEntry';
|
|
97
100
|
import DBEntryField from './components/DBEntryManagerPanel/types/DBEntryField';
|
|
98
101
|
import DBEntryFieldType from './components/DBEntryManagerPanel/types/DBEntryFieldType';
|
|
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, };
|
|
102
|
+
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, 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, 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, };
|
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,8 @@ declare const AppWrapper: React$1.FC<Props$l>;
|
|
|
112
112
|
* Loading spinner/indicator
|
|
113
113
|
* @author Gabe Abrams
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
|
|
116
|
+
declare const LoadingSpinner: () => React$1.JSX.Element;
|
|
116
117
|
|
|
117
118
|
/**
|
|
118
119
|
* Displays an error
|
|
@@ -636,7 +637,7 @@ declare const DBEntryManagerPanel: React$1.FC<Props$5>;
|
|
|
636
637
|
|
|
637
638
|
type Props$4 = {
|
|
638
639
|
text: string;
|
|
639
|
-
children:
|
|
640
|
+
children: any;
|
|
640
641
|
};
|
|
641
642
|
declare const Tooltip: React$1.FC<Props$4>;
|
|
642
643
|
|
|
@@ -769,6 +770,25 @@ declare const HOUR_IN_MS = 3600000;
|
|
|
769
770
|
*/
|
|
770
771
|
declare const DAY_IN_MS = 86400000;
|
|
771
772
|
|
|
773
|
+
/**
|
|
774
|
+
* Path of the route for storing client-side logs
|
|
775
|
+
* @author Gabe Abrams
|
|
776
|
+
*/
|
|
777
|
+
declare const LOG_REVIEW_ROUTE_PATH_PREFIX: string;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Path of the route for storing client-side logs
|
|
781
|
+
* @author Gabe Abrams
|
|
782
|
+
*/
|
|
783
|
+
declare const LOG_ROUTE_PATH: string;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Route for checking the status of the current user's
|
|
787
|
+
* access to log review
|
|
788
|
+
* @author Gabe Abrams
|
|
789
|
+
*/
|
|
790
|
+
declare const LOG_REVIEW_STATUS_ROUTE: string;
|
|
791
|
+
|
|
772
792
|
/**
|
|
773
793
|
* Dynamic words determined by the user's platform
|
|
774
794
|
* @author Gabe Abrams
|
|
@@ -1519,4 +1539,4 @@ declare enum ReactKitErrorCode {
|
|
|
1519
1539
|
NoCACCLSendRequestFunction = "DRK7"
|
|
1520
1540
|
}
|
|
1521
1541
|
|
|
1522
|
-
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewer, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, idify, initClient, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
1542
|
+
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntry, DBEntryField, DBEntryFieldType, DBEntryManagerPanel, DayOfWeek, Drawer, Dropdown, DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, IntelliTableColumn, ItemPicker, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, LoadingSpinner, Log, LogAction, LogBuiltInMetadata, LogFunction, LogLevel, LogMainInfo, LogMetadataType, LogReviewer, LogSource, LogSourceSpecificInfo, LogType, LogTypeSpecificInfo, MINUTE_IN_MS, Modal, ModalButtonType, ModalSize, ModalType, MultiSwitch, ParamType, PickableItem, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, idify, initClient, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dce-reactkit",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.2",
|
|
4
4
|
"description": "Shared components for Harvard DCE apps",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -33,25 +33,22 @@
|
|
|
33
33
|
"@fortawesome/free-solid-svg-icons": "^x.x.x",
|
|
34
34
|
"@fortawesome/react-fontawesome": "^x.x.x",
|
|
35
35
|
"bootstrap": "^5.x.x",
|
|
36
|
-
"
|
|
37
|
-
"react": "^x.x.x",
|
|
38
|
-
"react-dom": "^x.x.x"
|
|
36
|
+
"react": "^19.0.0"
|
|
39
37
|
},
|
|
40
38
|
"devDependencies": {
|
|
41
39
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
42
40
|
"@rollup/plugin-json": "^4.1.0",
|
|
43
41
|
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
44
|
-
"@rollup/plugin-typescript": "^
|
|
42
|
+
"@rollup/plugin-typescript": "^10.0.1",
|
|
45
43
|
"@types/bootstrap": "^5.2.8",
|
|
46
44
|
"@types/express": "^4.17.17",
|
|
47
45
|
"@types/jest": "^28.1.7",
|
|
48
|
-
"@types/jwt-simple": "^0.5.36",
|
|
49
46
|
"@types/node": "^20.2.5",
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/react": "^
|
|
47
|
+
"@types/react": "^19.0.10",
|
|
48
|
+
"@types/react-dom": "^19.0.4",
|
|
52
49
|
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
|
53
50
|
"@typescript-eslint/parser": "^5.59.9",
|
|
54
|
-
"eslint": "^8.
|
|
51
|
+
"eslint": "^8.42.0",
|
|
55
52
|
"eslint-config-airbnb": "^19.0.4",
|
|
56
53
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
57
54
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -60,7 +57,6 @@
|
|
|
60
57
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
61
58
|
"jest": "^28.1.3",
|
|
62
59
|
"jest-environment-jsdom": "^28.1.3",
|
|
63
|
-
"oauth-signature": "^1.5.0",
|
|
64
60
|
"rollup": "^2.70.2",
|
|
65
61
|
"rollup-plugin-dts": "^4.2.1",
|
|
66
62
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
package/src/index.ts
CHANGED
|
@@ -38,6 +38,9 @@ import ErrorWithCode from './errors/ErrorWithCode';
|
|
|
38
38
|
import MINUTE_IN_MS from './constants/MINUTE_IN_MS';
|
|
39
39
|
import HOUR_IN_MS from './constants/HOUR_IN_MS';
|
|
40
40
|
import DAY_IN_MS from './constants/DAY_IN_MS';
|
|
41
|
+
import LOG_REVIEW_ROUTE_PATH_PREFIX from './constants/LOG_REVIEW_ROUTE_PATH_PREFIX';
|
|
42
|
+
import LOG_ROUTE_PATH from './constants/LOG_ROUTE_PATH';
|
|
43
|
+
import LOG_REVIEW_STATUS_ROUTE from './constants/LOG_REVIEW_STATUS_ROUTE';
|
|
41
44
|
|
|
42
45
|
// Import dynamic constants
|
|
43
46
|
import DynamicWord from './dynamicConstants/DynamicWord';
|
|
@@ -155,6 +158,9 @@ export {
|
|
|
155
158
|
MINUTE_IN_MS,
|
|
156
159
|
HOUR_IN_MS,
|
|
157
160
|
DAY_IN_MS,
|
|
161
|
+
LOG_REVIEW_ROUTE_PATH_PREFIX,
|
|
162
|
+
LOG_ROUTE_PATH,
|
|
163
|
+
LOG_REVIEW_STATUS_ROUTE,
|
|
158
164
|
// Dynamic Constants
|
|
159
165
|
DynamicWord,
|
|
160
166
|
// Helpers
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|