studiokit-scaffolding-js 7.0.14-alpha.1 → 7.1.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/lib/components/ActionList.d.ts +2 -2
- package/lib/components/ActionList.js +166 -87
- package/lib/components/AlertDialog.d.ts +3 -3
- package/lib/components/AlertDialog.js +133 -18
- package/lib/components/AlertWithIcon.js +93 -52
- package/lib/components/ConnectedModal.d.ts +1 -2
- package/lib/components/ConnectedModal.js +41 -35
- package/lib/components/Dropdowns/GroupsDropdown.d.ts +4 -4
- package/lib/components/Dropdowns/GroupsDropdown.js +69 -82
- package/lib/components/Dropdowns/ManagedNavDropdown.d.ts +2 -2
- package/lib/components/Dropdowns/ManagedNavDropdown.js +96 -108
- package/lib/components/Dropdowns/UserDropdown.js +109 -70
- package/lib/components/Dropdowns/index.js +27 -11
- package/lib/components/EntityOwnerList.d.ts +3 -3
- package/lib/components/EntityOwnerList.js +52 -60
- package/lib/components/Error.js +107 -27
- package/lib/components/ErrorBoundary.js +133 -94
- package/lib/components/ErrorMessage.d.ts +2 -2
- package/lib/components/ErrorMessage.js +44 -14
- package/lib/components/Forms/DateField.d.ts +2 -2
- package/lib/components/Forms/DateField.js +63 -95
- package/lib/components/Forms/TimeField.d.ts +2 -2
- package/lib/components/Forms/TimeField.js +84 -108
- package/lib/components/Forms/index.js +27 -13
- package/lib/components/Groups/CreateEditCopySaveButtons.d.ts +2 -2
- package/lib/components/Groups/CreateEditCopySaveButtons.js +102 -14
- package/lib/components/Groups/ExternalGroups/Attach.d.ts +6 -7
- package/lib/components/Groups/ExternalGroups/Attach.js +213 -188
- package/lib/components/Groups/ExternalGroups/Table.js +183 -76
- package/lib/components/Groups/GroupCreateOrEditCommonProps.js +5 -1
- package/lib/components/Groups/RosterSyncInfo.js +140 -49
- package/lib/components/HOC/AccessibleAppComponent.d.ts +2 -2
- package/lib/components/HOC/AccessibleAppComponent.js +96 -119
- package/lib/components/HOC/ActivityRequiredComponent.d.ts +14 -14
- package/lib/components/HOC/ActivityRequiredComponent.js +72 -86
- package/lib/components/HOC/AsyncComponent.d.ts +9 -9
- package/lib/components/HOC/AsyncComponent.js +53 -129
- package/lib/components/HOC/AuthenticatedComponent.d.ts +4 -4
- package/lib/components/HOC/AuthenticatedComponent.js +59 -96
- package/lib/components/HOC/CollectionComponent.d.ts +12 -12
- package/lib/components/HOC/CollectionComponent.js +161 -161
- package/lib/components/HOC/CollectionFirstItemComponent.d.ts +13 -13
- package/lib/components/HOC/CollectionFirstItemComponent.js +49 -91
- package/lib/components/HOC/CollectionItemComponent.d.ts +9 -9
- package/lib/components/HOC/CollectionItemComponent.js +159 -158
- package/lib/components/HOC/ConnectedModalComponent.d.ts +9 -9
- package/lib/components/HOC/ConnectedModalComponent.js +96 -126
- package/lib/components/HOC/DataDependentComponent.d.ts +3 -55
- package/lib/components/HOC/DataDependentComponent.js +30 -79
- package/lib/components/HOC/EntityComponent.d.ts +13 -13
- package/lib/components/HOC/EntityComponent.js +63 -101
- package/lib/components/HOC/FullscreenModalComponent.d.ts +9 -9
- package/lib/components/HOC/FullscreenModalComponent.js +145 -165
- package/lib/components/HOC/GroupActivityRequiredComponent.d.ts +2 -2
- package/lib/components/HOC/GroupActivityRequiredComponent.js +32 -31
- package/lib/components/HOC/GuidComponent.d.ts +1 -1
- package/lib/components/HOC/GuidComponent.js +25 -64
- package/lib/components/HOC/ModelContextDependencyVerifyComponent.d.ts +28 -29
- package/lib/components/HOC/ModelContextDependencyVerifyComponent.js +36 -59
- package/lib/components/HOC/ModelErrorRedirectComponent.d.ts +10 -10
- package/lib/components/HOC/ModelErrorRedirectComponent.js +40 -83
- package/lib/components/HOC/SearchPersistorComponent.d.ts +4 -4
- package/lib/components/HOC/SearchPersistorComponent.js +243 -216
- package/lib/components/HOC/UnauthenticatedComponent.d.ts +12 -12
- package/lib/components/HOC/UnauthenticatedComponent.js +37 -82
- package/lib/components/HOC/UserComponent.d.ts +1 -1
- package/lib/components/HOC/UserComponent.js +12 -11
- package/lib/components/Icons/IconAlphaList.js +34 -20
- package/lib/components/Icons/IconExternalUser.js +34 -20
- package/lib/components/Icons/IconImpersonation.js +34 -20
- package/lib/components/Icons/IconStopImpersonating.js +34 -20
- package/lib/components/Icons/IconTable.js +35 -21
- package/lib/components/Icons/IconTableDeleteCol.js +34 -20
- package/lib/components/Icons/IconTableDeleteRow.js +34 -20
- package/lib/components/Icons/IconTableInsertCol.js +34 -20
- package/lib/components/Icons/IconTableInsertRow.js +34 -20
- package/lib/components/Impersonation/Button.d.ts +2 -2
- package/lib/components/Impersonation/Button.js +76 -56
- package/lib/components/Impersonation/Link.d.ts +2 -2
- package/lib/components/Impersonation/Link.js +76 -53
- package/lib/components/Impersonation/UserDetail.d.ts +2 -2
- package/lib/components/Impersonation/UserDetail.js +64 -15
- package/lib/components/Loading.js +27 -21
- package/lib/components/LockDownBrowser/Check.js +194 -107
- package/lib/components/LockDownBrowser/ExitButton.js +27 -14
- package/lib/components/LockDownBrowser/Launch.js +70 -85
- package/lib/components/Lti/Confirm.js +152 -33
- package/lib/components/Lti/CreateNonLtiGroupAlertDialog.d.ts +4 -2
- package/lib/components/Lti/CreateNonLtiGroupAlertDialog.js +170 -78
- package/lib/components/Lti/Launch.js +105 -49
- package/lib/components/Lti/LaunchGroup.js +85 -39
- package/lib/components/ManageTable.d.ts +1 -2
- package/lib/components/ManageTable.js +309 -104
- package/lib/components/ManageTableNoDataComponent.js +42 -22
- package/lib/components/NewVersionAlert.d.ts +2 -2
- package/lib/components/NewVersionAlert.js +82 -91
- package/lib/components/NotFound.js +87 -28
- package/lib/components/Notifications.d.ts +4 -4
- package/lib/components/Notifications.js +187 -169
- package/lib/components/PaginationNextButton.js +33 -21
- package/lib/components/PaginationPreviousButton.js +33 -21
- package/lib/components/Quill/CustomToolbar.d.ts +2 -2
- package/lib/components/Quill/CustomToolbar.js +432 -257
- package/lib/components/Quill/Formats/Image.d.ts +10 -25
- package/lib/components/Quill/Formats/Image.js +76 -82
- package/lib/components/Quill/Formats/List.d.ts +6 -3
- package/lib/components/Quill/Formats/List.js +50 -72
- package/lib/components/Quill/Formats/Video.d.ts +2 -1
- package/lib/components/Quill/Formats/Video.js +29 -43
- package/lib/components/Quill/ImageDropModule.d.ts +1 -1
- package/lib/components/Quill/ImageDropModule.js +142 -115
- package/lib/components/Quill/ImageWarning.d.ts +2 -2
- package/lib/components/Quill/ImageWarning.js +45 -32
- package/lib/components/Quill/ImageWithAltTextModal.d.ts +0 -1
- package/lib/components/Quill/ImageWithAltTextModal.js +425 -141
- package/lib/components/Quill/Specs/CustomImageSpec.d.ts +1 -1
- package/lib/components/Quill/Specs/CustomImageSpec.js +37 -45
- package/lib/components/Quill/Specs/CustomVideoSpec.d.ts +1 -1
- package/lib/components/Quill/Specs/CustomVideoSpec.js +27 -36
- package/lib/components/Quill/TableModule/Blots/BaseTableBlot.d.ts +2 -1
- package/lib/components/Quill/TableModule/Blots/BaseTableBlot.js +100 -116
- package/lib/components/Quill/TableModule/Blots/TableBlot.js +53 -66
- package/lib/components/Quill/TableModule/Blots/TableBodyBlot.js +54 -67
- package/lib/components/Quill/TableModule/Blots/TableCellBlot.d.ts +1 -1
- package/lib/components/Quill/TableModule/Blots/TableCellBlot.js +225 -241
- package/lib/components/Quill/TableModule/Blots/TableContainer.js +82 -99
- package/lib/components/Quill/TableModule/Blots/TableRowBlot.js +76 -87
- package/lib/components/Quill/TableModule/constants.js +45 -41
- package/lib/components/Quill/TableModule/index.css +25 -25
- package/lib/components/Quill/TableModule/index.d.ts +14 -5
- package/lib/components/Quill/TableModule/index.js +373 -313
- package/lib/components/Quill/TableModule/utils.js +45 -45
- package/lib/components/Quill/accessibilityFix.d.ts +0 -1
- package/lib/components/Quill/accessibilityFix.js +222 -238
- package/lib/components/Quill/index.js +36 -32
- package/lib/components/RefreshIndicator/Bordered.js +48 -32
- package/lib/components/RefreshIndicator/Inline.js +48 -33
- package/lib/components/RefreshIndicator/index.d.ts +2 -2
- package/lib/components/RefreshIndicator/index.js +263 -113
- package/lib/components/SearchControls.js +216 -31
- package/lib/components/SentryRoute.js +10 -23
- package/lib/components/Tables/RoleFilter.d.ts +3 -4
- package/lib/components/Tables/RoleFilter.js +71 -46
- package/lib/components/Tables/TextFilter.d.ts +2 -3
- package/lib/components/Tables/TextFilter.js +62 -20
- package/lib/components/UserRoles/Add.d.ts +3 -3
- package/lib/components/UserRoles/Add.js +199 -161
- package/lib/components/UserRoles/Context.js +8 -6
- package/lib/components/UserRoles/RoleCell.js +181 -100
- package/lib/components/UserRoles/Select.js +168 -54
- package/lib/components/UserRoles/Table.js +221 -102
- package/lib/components/UserRoles/index.d.ts +6 -6
- package/lib/components/UserRoles/index.js +535 -464
- package/lib/config/eslint/index.d.ts +2 -0
- package/lib/config/eslint/index.js +36 -0
- package/lib/config/eslint/lib/order.d.ts +3 -0
- package/lib/config/eslint/lib/order.js +30 -0
- package/lib/config/eslint/lib/prettier.d.ts +3 -0
- package/lib/config/eslint/lib/prettier.js +23 -0
- package/lib/config/eslint/lib/typescript.d.ts +2 -0
- package/lib/config/eslint/lib/typescript.js +98 -0
- package/lib/config/eslint/react.d.ts +2 -0
- package/lib/config/eslint/react.js +30 -0
- package/lib/constants/baseActivity.js +30 -26
- package/lib/constants/baseRole.js +14 -10
- package/lib/constants/configuration.d.ts +1 -1
- package/lib/constants/configuration.js +43 -39
- package/lib/constants/externalProviderType.js +10 -6
- package/lib/constants/fetchErrorData.js +15 -11
- package/lib/constants/index.js +137 -23
- package/lib/constants/lockDownBrowser.js +28 -24
- package/lib/constants/mockData.d.ts +4 -6
- package/lib/constants/mockData.js +383 -324
- package/lib/constants/modelStatus.js +15 -11
- package/lib/constants/notificationType.js +12 -8
- package/lib/constants/operatingSystem.js +12 -8
- package/lib/constants/shard.js +11 -7
- package/lib/constants/table.js +21 -21
- package/lib/constants/tier.js +12 -8
- package/lib/constants/userRole.d.ts +1 -2
- package/lib/constants/userRole.js +15 -17
- package/lib/css/components/_buttons.css +11 -3
- package/lib/css/components/_quill.css +3 -3
- package/lib/css/components/_tables.css +6 -5
- package/lib/css/utils/_display.css +12 -19
- package/lib/css/utils/_general.css +1 -1
- package/lib/css/utils/_text.css +2 -1
- package/lib/css/variables.css +0 -4
- package/lib/endpointMappings.js +197 -193
- package/lib/hooks/useCollection.js +83 -65
- package/lib/hooks/useCollectionConfiguration.d.ts +0 -1
- package/lib/hooks/useCollectionConfiguration.js +179 -82
- package/lib/hooks/useCollectionItem.js +155 -58
- package/lib/hooks/useEventCalback.d.ts +14 -0
- package/lib/hooks/useEventCalback.js +51 -0
- package/lib/hooks/useGuid.js +19 -8
- package/lib/hooks/usePrevious.d.ts +24 -1
- package/lib/hooks/usePrevious.js +82 -12
- package/lib/index.js +156 -36
- package/lib/redux/actionCreator.d.ts +6 -6
- package/lib/redux/actionCreator.js +51 -40
- package/lib/redux/actions/AuthAction.js +44 -31
- package/lib/redux/actions/ModalAction.d.ts +1 -1
- package/lib/redux/actions/ModalAction.js +10 -6
- package/lib/redux/actions/ModelAction.d.ts +1 -1
- package/lib/redux/actions/ModelAction.js +77 -49
- package/lib/redux/actions/NotificationAction.js +10 -6
- package/lib/redux/actions/SearchAction.js +9 -5
- package/lib/redux/actions/index.js +60 -16
- package/lib/redux/configureReducers.d.ts +2 -5
- package/lib/redux/configureReducers.js +61 -72
- package/lib/redux/configureStore.d.ts +2 -2
- package/lib/redux/configureStore.js +83 -115
- package/lib/redux/helpers.js +7 -2
- package/lib/redux/reducers/authReducer.js +50 -44
- package/lib/redux/reducers/index.js +41 -15
- package/lib/redux/reducers/modalsReducer.js +49 -52
- package/lib/redux/reducers/modelsReducer.d.ts +2 -2
- package/lib/redux/reducers/modelsReducer.js +136 -135
- package/lib/redux/reducers/notificationsReducer.js +26 -21
- package/lib/redux/reducers/searchReducer.js +18 -12
- package/lib/redux/sagas/appInsightsSaga.js +24 -62
- package/lib/redux/sagas/authSaga.js +287 -414
- package/lib/redux/sagas/caliperSaga.js +154 -248
- package/lib/redux/sagas/clockOffsetSaga.js +35 -76
- package/lib/redux/sagas/configurationSaga.js +13 -46
- package/lib/redux/sagas/downtimeApiErrorSaga.d.ts +0 -1
- package/lib/redux/sagas/downtimeApiErrorSaga.js +23 -64
- package/lib/redux/sagas/errorSaga.d.ts +0 -1
- package/lib/redux/sagas/errorSaga.js +29 -63
- package/lib/redux/sagas/googleAnalyticsSaga.js +29 -69
- package/lib/redux/sagas/identityProviderSaga.js +24 -69
- package/lib/redux/sagas/initialDataLoadSaga.js +38 -29
- package/lib/redux/sagas/lockDownBrowserErrorSaga.d.ts +0 -1
- package/lib/redux/sagas/lockDownBrowserErrorSaga.js +32 -81
- package/lib/redux/sagas/modelFetchSaga.js +331 -411
- package/lib/redux/sagas/noStoreSaga.d.ts +1 -1
- package/lib/redux/sagas/noStoreSaga.js +68 -101
- package/lib/redux/sagas/postLoginDataSaga.js +42 -74
- package/lib/redux/sagas/postLoginRedirectSaga.js +27 -68
- package/lib/redux/sagas/rootSaga.js +85 -137
- package/lib/redux/sagas/sentrySaga.js +29 -85
- package/lib/redux/sagas/userIdSaga.js +18 -54
- package/lib/services/codeProviderService.js +25 -29
- package/lib/services/dateService.js +12 -10
- package/lib/services/documentService.js +15 -10
- package/lib/services/fetchService.js +110 -144
- package/lib/services/persistenceService.d.ts +4 -4
- package/lib/services/persistenceService.js +45 -43
- package/lib/services/ticketProviderService.js +29 -33
- package/lib/services/tokenPersistenceService.js +13 -9
- package/lib/services/windowService.js +21 -17
- package/lib/startup.d.ts +1 -1
- package/lib/startup.js +115 -118
- package/lib/types/AppConfiguration.js +5 -1
- package/lib/types/Artifact.js +11 -7
- package/lib/types/BaseReduxState.js +5 -1
- package/lib/types/Client.js +5 -1
- package/lib/types/Collection.d.ts +3 -3
- package/lib/types/Collection.js +5 -1
- package/lib/types/Configuration.js +5 -1
- package/lib/types/DeepLinkingResponseRequest.js +5 -1
- package/lib/types/DeletableModel.js +5 -1
- package/lib/types/Event.js +5 -1
- package/lib/types/ExternalGroup.js +5 -1
- package/lib/types/ExternalProvider.js +5 -1
- package/lib/types/ExternalTerm.js +5 -1
- package/lib/types/Group.js +5 -1
- package/lib/types/IdentityProvider.js +5 -1
- package/lib/types/LtiLaunch.js +5 -1
- package/lib/types/NameOnlyEntity.js +5 -1
- package/lib/types/Notification.d.ts +2 -2
- package/lib/types/Notification.js +5 -1
- package/lib/types/OptionalRecord.d.ts +1 -1
- package/lib/types/OptionalRecord.js +5 -1
- package/lib/types/OwnerSchedule.d.ts +3 -1
- package/lib/types/OwnerSchedule.js +5 -1
- package/lib/types/PropertyOfType.d.ts +3 -3
- package/lib/types/PropertyOfType.js +5 -1
- package/lib/types/Quill.js +5 -1
- package/lib/types/RoleDescription.d.ts +0 -1
- package/lib/types/RoleDescription.js +5 -1
- package/lib/types/Search.js +5 -1
- package/lib/types/SimpleLocation.js +5 -1
- package/lib/types/UniTime.js +5 -1
- package/lib/types/User.js +5 -1
- package/lib/types/UserRole.js +5 -1
- package/lib/types/auth/AuthState.js +5 -1
- package/lib/types/auth/CasV1LoginRequestBody.js +5 -1
- package/lib/types/auth/ClientCredentials.js +5 -1
- package/lib/types/auth/CodeProviderService.js +5 -1
- package/lib/types/auth/LocalLoginRequestBody.js +5 -1
- package/lib/types/auth/TicketProviderService.js +5 -1
- package/lib/types/auth/TokenPersistenceService.js +5 -1
- package/lib/types/auth/index.js +82 -18
- package/lib/types/externals.d.js +2 -0
- package/lib/types/index.js +313 -39
- package/lib/types/net/EndpointConfig.js +5 -1
- package/lib/types/net/EndpointMapping.js +5 -1
- package/lib/types/net/EndpointMappings.js +5 -1
- package/lib/types/net/ErrorHandler.d.ts +1 -1
- package/lib/types/net/ErrorHandler.js +5 -1
- package/lib/types/net/FetchConfig.d.ts +1 -1
- package/lib/types/net/FetchConfig.js +5 -1
- package/lib/types/net/FetchErrorData.js +10 -6
- package/lib/types/net/FetchResult.d.ts +2 -2
- package/lib/types/net/FetchResult.js +5 -1
- package/lib/types/net/HTTPMethod.d.ts +1 -1
- package/lib/types/net/HTTPMethod.js +5 -1
- package/lib/types/net/HTTPStatusCode.js +16 -12
- package/lib/types/net/Metadata.js +5 -1
- package/lib/types/net/Model.js +5 -1
- package/lib/types/net/ModelCollection.js +5 -1
- package/lib/types/net/ModelsState.js +5 -1
- package/lib/types/net/OAuthToken.js +5 -1
- package/lib/types/net/OAuthTokenOrNull.d.ts +1 -1
- package/lib/types/net/OAuthTokenOrNull.js +5 -1
- package/lib/types/net/TokenAccessFunction.d.ts +1 -1
- package/lib/types/net/TokenAccessFunction.js +5 -1
- package/lib/types/net/index.js +181 -27
- package/lib/utils/baseActivity.d.ts +2 -2
- package/lib/utils/baseActivity.js +93 -91
- package/lib/utils/baseRole.js +37 -33
- package/lib/utils/collection.js +413 -291
- package/lib/utils/cookies.js +22 -37
- package/lib/utils/date.js +210 -210
- package/lib/utils/dom.js +145 -133
- package/lib/utils/domainIdentifier.js +9 -9
- package/lib/utils/entityUserRole.js +6 -2
- package/lib/utils/error.d.ts +1 -1
- package/lib/utils/error.js +18 -16
- package/lib/utils/events.js +37 -30
- package/lib/utils/externalGroup.js +25 -21
- package/lib/utils/externalProviders.js +8 -4
- package/lib/utils/externalTerms.js +9 -6
- package/lib/utils/fetch.d.ts +1 -1
- package/lib/utils/fetch.js +179 -176
- package/lib/utils/group.js +17 -9
- package/lib/utils/groupDates.d.ts +1 -1
- package/lib/utils/groupDates.js +43 -39
- package/lib/utils/groupRoles.js +28 -28
- package/lib/utils/lockDownBrowser.js +16 -12
- package/lib/utils/logger.js +30 -25
- package/lib/utils/lti.js +10 -5
- package/lib/utils/model.d.ts +2 -2
- package/lib/utils/model.js +35 -44
- package/lib/utils/number.js +13 -16
- package/lib/utils/promise.d.ts +6 -1
- package/lib/utils/promise.js +34 -15
- package/lib/utils/quill.js +60 -71
- package/lib/utils/route.d.ts +2 -2
- package/lib/utils/route.js +61 -60
- package/lib/utils/search.d.ts +1 -1
- package/lib/utils/search.js +78 -85
- package/lib/utils/shard.js +38 -41
- package/lib/utils/sort.d.ts +3 -3
- package/lib/utils/sort.js +62 -58
- package/lib/utils/string.js +14 -10
- package/lib/utils/table.d.ts +3 -3
- package/lib/utils/table.js +36 -33
- package/lib/utils/timezone.js +12 -26
- package/lib/utils/url.d.ts +2 -1
- package/lib/utils/url.js +139 -193
- package/lib/utils/user.js +59 -61
- package/lib/utils/userAgent.js +11 -11
- package/lib/utils/userRole.d.ts +3 -3
- package/lib/utils/userRole.js +46 -44
- package/package.json +90 -73
- package/lib/config/eslint/index.cjs +0 -21
- package/lib/config/eslint/lib/order.cjs +0 -22
- package/lib/config/eslint/lib/prettier.cjs +0 -18
- package/lib/config/eslint/lib/typescript.cjs +0 -86
- package/lib/config/eslint/react.cjs +0 -9
- package/lib/css/utils/_focus.css +0 -4
package/lib/utils/userRole.js
CHANGED
|
@@ -1,68 +1,70 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.sortByRole = exports.sortByHighestAccessRole = exports.isExternal = exports.getUserId = exports.getRoleText = exports.convertToUserWithRoles = void 0;
|
|
7
|
+
var _baseRole = require("./baseRole");
|
|
5
8
|
/**
|
|
6
9
|
* Get the user id for a `userRole`, either a `UserRole` or `EntityUserRole`.
|
|
7
10
|
* @param userRole The user role
|
|
8
11
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
exports.getUserId = getUserId;
|
|
12
|
+
const getUserId = userRole => Object.prototype.hasOwnProperty.call(userRole, 'userId') ? userRole.userId : userRole.id;
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* Get whether or not the `userRole` has a prop `isExternal` and it is `true`.
|
|
15
16
|
* @param userRole The user role
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports.isExternal = isExternal;
|
|
18
|
+
exports.getUserId = getUserId;
|
|
19
|
+
const isExternal = userRole => Object.prototype.hasOwnProperty.call(userRole, 'isExternal') && userRole.isExternal === true;
|
|
20
|
+
|
|
21
21
|
/**
|
|
22
22
|
* Get the text for the given `userRole.role`. Defaults to using `textForBaseRole`.
|
|
23
23
|
* @param textForRole Override method for providing role text
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
exports.getRoleText = getRoleText;
|
|
25
|
+
exports.isExternal = isExternal;
|
|
26
|
+
const getRoleText = textForRole => a => textForRole ? textForRole(a.role) : (0, _baseRole.textForBaseRole)(a.role);
|
|
27
|
+
|
|
29
28
|
/**
|
|
30
29
|
* Sort the userRoles by role, using the provided `roles` order
|
|
31
30
|
* @param roles Roles ordered in descing access level
|
|
32
31
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
exports.getRoleText = getRoleText;
|
|
33
|
+
const sortByRole = roles => (a, b) => {
|
|
34
|
+
const aIndex = roles.indexOf(a.role);
|
|
35
|
+
const bIndex = roles.indexOf(b.role);
|
|
36
|
+
if (aIndex !== bIndex) {
|
|
37
|
+
return aIndex > bIndex ? 1 : -1;
|
|
38
|
+
}
|
|
39
|
+
return 0;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
42
|
/**
|
|
43
43
|
* Sort the users by role, using the provided `roles` order
|
|
44
44
|
* @param roles Roles ordered in descing access level
|
|
45
45
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
exports.sortByRole = sortByRole;
|
|
47
|
+
const sortByHighestAccessRole = roles => (a, b) => {
|
|
48
|
+
const aRole = a.roles.sort(sortByRole(roles))[0].role;
|
|
49
|
+
const bRole = b.roles.sort(sortByRole(roles))[0].role;
|
|
50
|
+
const aIndex = roles.indexOf(aRole);
|
|
51
|
+
const bIndex = roles.indexOf(bRole);
|
|
52
|
+
if (aIndex !== bIndex) {
|
|
53
|
+
return aIndex > bIndex ? 1 : -1;
|
|
54
|
+
}
|
|
55
|
+
return 0;
|
|
56
|
+
};
|
|
56
57
|
exports.sortByHighestAccessRole = sortByHighestAccessRole;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
const convertToUserWithRoles = userRole => {
|
|
59
|
+
const userId = getUserId(userRole);
|
|
60
|
+
return {
|
|
61
|
+
id: userId,
|
|
62
|
+
firstName: userRole.firstName,
|
|
63
|
+
lastName: userRole.lastName,
|
|
64
|
+
email: userRole.email,
|
|
65
|
+
uid: userRole.uid,
|
|
66
|
+
roles: [userRole]
|
|
67
|
+
};
|
|
67
68
|
};
|
|
68
69
|
exports.convertToUserWithRoles = convertToUserWithRoles;
|
|
70
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfYmFzZVJvbGUiLCJyZXF1aXJlIiwiZ2V0VXNlcklkIiwidXNlclJvbGUiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJ1c2VySWQiLCJpZCIsImV4cG9ydHMiLCJpc0V4dGVybmFsIiwiZ2V0Um9sZVRleHQiLCJ0ZXh0Rm9yUm9sZSIsImEiLCJyb2xlIiwidGV4dEZvckJhc2VSb2xlIiwic29ydEJ5Um9sZSIsInJvbGVzIiwiYiIsImFJbmRleCIsImluZGV4T2YiLCJiSW5kZXgiLCJzb3J0QnlIaWdoZXN0QWNjZXNzUm9sZSIsImFSb2xlIiwic29ydCIsImJSb2xlIiwiY29udmVydFRvVXNlcldpdGhSb2xlcyIsIm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DTk0sRUFBRSxFQUFFRCxNQUFNO0lBQ1ZvQixTQUFTLEVBQUV6QixRQUFRLENBQUN5QixTQUFTO0lBQzdCQyxRQUFRLEVBQUUxQixRQUFRLENBQUMwQixRQUFRO0lBQzNCQyxLQUFLLEVBQUUzQixRQUFRLENBQUMyQixLQUFLO0lBQ3JCQyxHQUFHLEVBQUU1QixRQUFRLENBQUM0QixHQUFHO0lBQ2pCYixLQUFLLEVBQUUsQ0FBQ2YsUUFBUTtFQUNqQixDQUFDO0FBQ0YsQ0FBQztBQUFBTyxPQUFBLENBQUFpQixzQkFBQSxHQUFBQSxzQkFBQSIsImlnbm9yZUxpc3QiOltdfQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"lib"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "yarn clean && tsc -p ./tsconfig.build.json && yarn copy",
|
|
14
|
-
"build:
|
|
13
|
+
"build": "yarn clean && tsc -p ./tsconfig.build.json && yarn build:babel && yarn copy",
|
|
14
|
+
"build:babel": "yarn babel src --extensions \".ts,.tsx,.js,.jsx\" --out-dir lib --ignore \"**/*.test.ts,**/*.test.tsx,src/setupTests.ts\" --source-maps inline",
|
|
15
|
+
"typecheck": "tsc -p ./tsconfig.build.json --noEmit",
|
|
15
16
|
"clean": "rimraf ./lib",
|
|
16
|
-
"copy": "copyfiles -u 1 \"src/**/*.css\" lib && copyfiles
|
|
17
|
+
"copy": "copyfiles -u 1 \"src/**/*.css\" lib && copyfiles lib",
|
|
17
18
|
"coverage": "jest --coverage",
|
|
18
19
|
"fix": "run-s 'fix:**'",
|
|
19
20
|
"fix:code": "yarn lint:code --fix",
|
|
@@ -25,17 +26,17 @@
|
|
|
25
26
|
"prepublishOnly": "yarn build",
|
|
26
27
|
"test": "jest",
|
|
27
28
|
"test:ci": "cross-env CI=true yarn test",
|
|
28
|
-
"test:ci-junit": "cross-env CI=true
|
|
29
|
+
"test:ci-junit": "cross-env CI=true yarn test -- --coverage --reporters='default' --reporters='jest-junit' --coverageReporters='cobertura' --coverageReporters='html'"
|
|
29
30
|
},
|
|
30
31
|
"husky": {
|
|
31
32
|
"hooks": {
|
|
32
33
|
"pre-commit": "lint-staged",
|
|
33
|
-
"pre-push": "
|
|
34
|
+
"pre-push": "yarn test"
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"lint-staged": {
|
|
37
38
|
"**/*.(j|t)s?(x)": [
|
|
38
|
-
"yarn
|
|
39
|
+
"yarn fix:code"
|
|
39
40
|
],
|
|
40
41
|
"*.css": [
|
|
41
42
|
"stylelint --fix"
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"stylelint": {
|
|
48
49
|
"extends": "stylelint-config-standard",
|
|
49
50
|
"rules": {
|
|
50
|
-
"
|
|
51
|
+
"import-notation": null,
|
|
51
52
|
"at-rule-no-unknown": [
|
|
52
53
|
true,
|
|
53
54
|
{
|
|
@@ -55,7 +56,11 @@
|
|
|
55
56
|
"import-glob"
|
|
56
57
|
]
|
|
57
58
|
}
|
|
58
|
-
]
|
|
59
|
+
],
|
|
60
|
+
"media-feature-range-notation": null,
|
|
61
|
+
"property-no-vendor-prefix": null,
|
|
62
|
+
"selector-class-pattern": null,
|
|
63
|
+
"selector-not-notation": "simple"
|
|
59
64
|
},
|
|
60
65
|
"ignoreFiles": "src/**/*.{ts,tsx,js,jsx}"
|
|
61
66
|
},
|
|
@@ -75,40 +80,39 @@
|
|
|
75
80
|
"preset": "ts-jest",
|
|
76
81
|
"setupFilesAfterEnv": [
|
|
77
82
|
"./src/setupTests.ts"
|
|
78
|
-
]
|
|
83
|
+
],
|
|
84
|
+
"testEnvironment": "jsdom"
|
|
79
85
|
},
|
|
80
86
|
"resolutions": {
|
|
81
|
-
"@sentry/browser": "
|
|
82
|
-
"@types/node": "~
|
|
83
|
-
"@types/react": "^17.0.
|
|
87
|
+
"@sentry/browser": "10.23.0",
|
|
88
|
+
"@types/node": "~20.19.0",
|
|
89
|
+
"@types/react": "^17.0.89",
|
|
84
90
|
"@types/react-router": "^5.1.11",
|
|
85
91
|
"kind-of": "^6.0.3",
|
|
86
92
|
"mixin-deep": "^1.3.2",
|
|
87
93
|
"set-value": "^2.0.1"
|
|
88
94
|
},
|
|
89
95
|
"dependencies": {
|
|
90
|
-
"@
|
|
91
|
-
"@material-ui/
|
|
92
|
-
"@material-ui/
|
|
96
|
+
"@babel/runtime": "^7.28.4",
|
|
97
|
+
"@material-ui/core": "^4.12.4",
|
|
98
|
+
"@material-ui/icons": "^4.11.3",
|
|
99
|
+
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
93
100
|
"@microsoft/applicationinsights-web": "^3.1.0",
|
|
94
|
-
"@redux-saga/core": "^1.
|
|
95
|
-
"@redux-saga/types": "^1.1
|
|
96
|
-
"@sentry/react": "^
|
|
97
|
-
"@types/history": "^4.7.
|
|
98
|
-
"@types/lodash": "^4.
|
|
99
|
-
"@types/pluralize": "^0.0.29",
|
|
101
|
+
"@redux-saga/core": "^1.4.2",
|
|
102
|
+
"@redux-saga/types": "^1.3.1",
|
|
103
|
+
"@sentry/react": "^10.23.0",
|
|
104
|
+
"@types/history": "^4.7.11",
|
|
105
|
+
"@types/lodash": "^4.17.20",
|
|
100
106
|
"@types/quill": "^1.3.10",
|
|
101
|
-
"@types/react": "^17.0.
|
|
102
|
-
"@types/react-dom": "^17.0.0",
|
|
107
|
+
"@types/react-dom": "^17.0.26",
|
|
103
108
|
"@types/react-helmet": "^6.1.0",
|
|
104
109
|
"@types/react-modal": "^3.10.6",
|
|
105
110
|
"@types/react-redux": "^7.1.16",
|
|
106
111
|
"@types/react-router": "^5.1.11",
|
|
107
|
-
"@types/react-router-bootstrap": "
|
|
112
|
+
"@types/react-router-bootstrap": "~0.24.5",
|
|
108
113
|
"@types/react-router-dom": "^5.1.7",
|
|
109
114
|
"@types/react-table": "^6.8.7",
|
|
110
115
|
"@types/redux-logger": "3.0.12",
|
|
111
|
-
"@types/uuid": "^8.3.0",
|
|
112
116
|
"bootstrap": "^4.6.0",
|
|
113
117
|
"compare-versions": "^3.6.0",
|
|
114
118
|
"connected-react-router": "^6.8.0",
|
|
@@ -117,77 +121,90 @@
|
|
|
117
121
|
"local-storage-fallback": "^4.1.2",
|
|
118
122
|
"lodash": "^4.17.21",
|
|
119
123
|
"memoize-one": "^6.0.0",
|
|
120
|
-
"moment": "^2.
|
|
121
|
-
"moment-timezone": "^0.
|
|
124
|
+
"moment": "^2.30.1",
|
|
125
|
+
"moment-timezone": "^0.6.0",
|
|
122
126
|
"parchment": "^1.1.4",
|
|
123
127
|
"pluralize": "^8.0.0",
|
|
124
|
-
"prop-types": "^15.
|
|
128
|
+
"prop-types": "^15.8.1",
|
|
125
129
|
"query-string": "^6.13.8",
|
|
126
130
|
"quill": "^1.3.7",
|
|
127
131
|
"quill-blot-formatter": "purdue-tlt/quill-blot-formatter#a01562a213eb615abcdf2963457890e81ebc1ab3",
|
|
128
|
-
"react-bootstrap": "^1.
|
|
132
|
+
"react-bootstrap": "^1.6.8",
|
|
133
|
+
"react-compiler-runtime": "^1.0.0",
|
|
129
134
|
"react-ga4": "^2.1.0",
|
|
130
135
|
"react-helmet": "^6.1.0",
|
|
131
|
-
"react-modal": "^3.
|
|
136
|
+
"react-modal": "^3.16.3",
|
|
132
137
|
"react-quill": "purdue-tlt/react-quill#fix/auto-focus",
|
|
133
|
-
"react-redux": "^7.2.
|
|
134
|
-
"react-router": "^5.
|
|
135
|
-
"react-router-bootstrap": "
|
|
136
|
-
"react-router-dom": "^5.
|
|
138
|
+
"react-redux": "^7.2.9",
|
|
139
|
+
"react-router": "^5.3.4",
|
|
140
|
+
"react-router-bootstrap": "~0.25.0",
|
|
141
|
+
"react-router-dom": "^5.3.4",
|
|
137
142
|
"react-super-responsive-table": "^5.2.0",
|
|
138
143
|
"react-table": "^6.11.5",
|
|
139
|
-
"redux": "^4.
|
|
140
|
-
"redux-devtools-extension": "^2.13.
|
|
144
|
+
"redux": "^4.2.1",
|
|
145
|
+
"redux-devtools-extension": "^2.13.9",
|
|
141
146
|
"redux-logger": "^3.0.6",
|
|
142
147
|
"redux-persist": "^6.0.0",
|
|
143
|
-
"redux-saga": "^1.
|
|
144
|
-
"studiokit-caliper-js": "
|
|
148
|
+
"redux-saga": "^1.3.0",
|
|
149
|
+
"studiokit-caliper-js": "1.0.27",
|
|
145
150
|
"tachyons": "^4.12.0",
|
|
146
|
-
"tslib": "^2.1
|
|
147
|
-
"uuid": "^
|
|
151
|
+
"tslib": "^2.8.1",
|
|
152
|
+
"uuid": "^11.1.0"
|
|
148
153
|
},
|
|
149
154
|
"devDependencies": {
|
|
150
|
-
"@
|
|
151
|
-
"@
|
|
152
|
-
"@
|
|
153
|
-
"@
|
|
154
|
-
"@
|
|
155
|
-
"@
|
|
156
|
-
"@
|
|
157
|
-
"@
|
|
158
|
-
"@
|
|
159
|
-
"
|
|
155
|
+
"@babel/cli": "^7.28.3",
|
|
156
|
+
"@babel/core": "^7.28.4",
|
|
157
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
158
|
+
"@babel/plugin-transform-runtime": "^7.28.3",
|
|
159
|
+
"@babel/preset-env": "^7.28.3",
|
|
160
|
+
"@babel/preset-react": "^7.27.1",
|
|
161
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
162
|
+
"@eslint/js": "^9.39.1",
|
|
163
|
+
"@redux-saga/testing-utils": "^1.1.5",
|
|
164
|
+
"@types/enzyme": "^3.10.19",
|
|
165
|
+
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
166
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
167
|
+
"@types/jest": "^30.0.0",
|
|
168
|
+
"@types/mockdate": "^3.0.0",
|
|
169
|
+
"@types/pluralize": "^0.0.33",
|
|
170
|
+
"@types/react": "^17.0.89",
|
|
171
|
+
"@typescript-eslint/parser": "^8.46.3",
|
|
172
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
173
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
160
174
|
"copyfiles": "^2.4.1",
|
|
161
175
|
"cross-env": "^7.0.3",
|
|
162
176
|
"enzyme": "^3.11.0",
|
|
163
|
-
"eslint": "^
|
|
164
|
-
"eslint-config-prettier": "^
|
|
165
|
-
"eslint-
|
|
166
|
-
"eslint-import
|
|
167
|
-
"eslint-plugin-
|
|
168
|
-
"eslint-plugin-
|
|
169
|
-
"eslint-plugin-
|
|
170
|
-
"eslint-plugin-
|
|
171
|
-
"
|
|
172
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
177
|
+
"eslint": "^9.39.1",
|
|
178
|
+
"eslint-config-prettier": "^10.1.8",
|
|
179
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
180
|
+
"eslint-plugin-import": "~2.32.0",
|
|
181
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
182
|
+
"eslint-plugin-prettier": "~5.3.1",
|
|
183
|
+
"eslint-plugin-react": "^7.37.5",
|
|
184
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
185
|
+
"globals": "^16.5.0",
|
|
173
186
|
"husky": "^4.3.8",
|
|
174
187
|
"identity-obj-proxy": "^3.0.0",
|
|
175
|
-
"jest": "^
|
|
176
|
-
"jest-each": "^
|
|
188
|
+
"jest": "^30.2.0",
|
|
189
|
+
"jest-each": "^30.2.0",
|
|
190
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
177
191
|
"jest-fetch-mock": "^3.0.3",
|
|
178
|
-
"jest-junit": "^
|
|
192
|
+
"jest-junit": "^16.0.0",
|
|
193
|
+
"jest-util": "^30.2.0",
|
|
194
|
+
"jiti": "^2.6.1",
|
|
179
195
|
"lint-staged": "^10.5.3",
|
|
180
|
-
"mockdate": "^3.0.
|
|
196
|
+
"mockdate": "^3.0.5",
|
|
181
197
|
"npm-run-all": "^4.1.5",
|
|
182
|
-
"prettier": "~
|
|
198
|
+
"prettier": "~3.6.2",
|
|
183
199
|
"react": "^17.0.2",
|
|
184
|
-
"react-dom": "^17.0.
|
|
200
|
+
"react-dom": "^17.0.2",
|
|
185
201
|
"rimraf": "^3.0.2",
|
|
186
|
-
"sort-package-json": "^1.
|
|
187
|
-
"stylelint": "^
|
|
188
|
-
"stylelint-config-standard": "^
|
|
189
|
-
"ts-jest": "^
|
|
190
|
-
"typescript": "~
|
|
202
|
+
"sort-package-json": "^1.57.0",
|
|
203
|
+
"stylelint": "^16.25.0",
|
|
204
|
+
"stylelint-config-standard": "^39.0.1",
|
|
205
|
+
"ts-jest": "^29.4.5",
|
|
206
|
+
"typescript": "~5.9.3",
|
|
207
|
+
"typescript-eslint": "^8.46.3"
|
|
191
208
|
},
|
|
192
209
|
"peerDependencies": {
|
|
193
210
|
"@types/react": "^17.0.0",
|
|
@@ -203,5 +220,5 @@
|
|
|
203
220
|
"optional": true
|
|
204
221
|
}
|
|
205
222
|
},
|
|
206
|
-
"packageManager": "yarn@4.
|
|
223
|
+
"packageManager": "yarn@4.10.3"
|
|
207
224
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: 'babel-eslint',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
ecmaVersion: 2018,
|
|
5
|
-
sourceType: 'module'
|
|
6
|
-
},
|
|
7
|
-
env: {
|
|
8
|
-
es6: true,
|
|
9
|
-
node: true,
|
|
10
|
-
browser: true,
|
|
11
|
-
jest: true
|
|
12
|
-
},
|
|
13
|
-
extends: ['eslint:recommended', './lib/order.cjs', 'prettier', './lib/prettier.cjs'],
|
|
14
|
-
plugins: ['import', 'prettier'],
|
|
15
|
-
overrides: [
|
|
16
|
-
{
|
|
17
|
-
files: ['**/*.ts?(x)'],
|
|
18
|
-
extends: ['./lib/typescript.cjs']
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
rules: {
|
|
3
|
-
'import/order': [
|
|
4
|
-
'error',
|
|
5
|
-
{
|
|
6
|
-
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
|
|
7
|
-
alphabetize: {
|
|
8
|
-
order: 'asc',
|
|
9
|
-
caseInsensitive: true
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
'sort-imports': [
|
|
14
|
-
'error',
|
|
15
|
-
{
|
|
16
|
-
ignoreCase: true,
|
|
17
|
-
ignoreDeclarationSort: true,
|
|
18
|
-
ignoreMemberSort: false
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
rules: {
|
|
3
|
-
'prettier/prettier': [
|
|
4
|
-
'error',
|
|
5
|
-
{
|
|
6
|
-
trailingComma: 'none',
|
|
7
|
-
useTabs: true,
|
|
8
|
-
tabWidth: 4,
|
|
9
|
-
semi: false,
|
|
10
|
-
singleQuote: true,
|
|
11
|
-
printWidth: 120,
|
|
12
|
-
jsxBracketSameLine: true,
|
|
13
|
-
arrowParens: 'avoid',
|
|
14
|
-
endOfLine: 'auto'
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
sourceType: 'module'
|
|
5
|
-
// project: 'tsconfig.json', // set this in your project overrides
|
|
6
|
-
},
|
|
7
|
-
env: {
|
|
8
|
-
es6: true,
|
|
9
|
-
node: true,
|
|
10
|
-
browser: true,
|
|
11
|
-
jest: true
|
|
12
|
-
},
|
|
13
|
-
extends: [
|
|
14
|
-
'eslint:recommended',
|
|
15
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
16
|
-
'plugin:@typescript-eslint/recommended',
|
|
17
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
18
|
-
'./order.cjs',
|
|
19
|
-
'prettier',
|
|
20
|
-
'prettier/@typescript-eslint',
|
|
21
|
-
'./prettier.cjs'
|
|
22
|
-
],
|
|
23
|
-
plugins: ['@typescript-eslint', 'import', 'prettier'],
|
|
24
|
-
rules: {
|
|
25
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
26
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
27
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
28
|
-
'@typescript-eslint/member-delimiter-style': [
|
|
29
|
-
'off',
|
|
30
|
-
{
|
|
31
|
-
multiline: {
|
|
32
|
-
delimiter: 'none',
|
|
33
|
-
requireLast: true
|
|
34
|
-
},
|
|
35
|
-
singleline: {
|
|
36
|
-
delimiter: 'semi',
|
|
37
|
-
requireLast: false
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
'@typescript-eslint/no-empty-interface': 'off',
|
|
42
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
43
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
44
|
-
'@typescript-eslint/no-unsafe-return': 'off',
|
|
45
|
-
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
46
|
-
'@typescript-eslint/no-unsafe-call': 'off',
|
|
47
|
-
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
48
|
-
|
|
49
|
-
'@typescript-eslint/ban-ts-comment': [
|
|
50
|
-
'error',
|
|
51
|
-
{
|
|
52
|
-
'ts-expect-error': 'allow-with-description',
|
|
53
|
-
'ts-ignore': 'allow-with-description',
|
|
54
|
-
'ts-nocheck': 'allow-with-description',
|
|
55
|
-
'ts-check': false,
|
|
56
|
-
minimumDescriptionLength: 3
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
|
|
60
|
-
'@typescript-eslint/ban-types': [
|
|
61
|
-
'error',
|
|
62
|
-
{
|
|
63
|
-
types: {
|
|
64
|
-
'{}': false
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
|
|
69
|
-
'no-use-before-define': 'off',
|
|
70
|
-
'@typescript-eslint/no-use-before-define': [
|
|
71
|
-
'warn',
|
|
72
|
-
{
|
|
73
|
-
functions: false,
|
|
74
|
-
classes: false,
|
|
75
|
-
variables: false,
|
|
76
|
-
typedefs: false
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
|
|
80
|
-
semi: 'off',
|
|
81
|
-
'@typescript-eslint/semi': ['off', null],
|
|
82
|
-
|
|
83
|
-
camelcase: 'off',
|
|
84
|
-
'@typescript-eslint/camelcase': 'off'
|
|
85
|
-
}
|
|
86
|
-
}
|
package/lib/css/utils/_focus.css
DELETED