-
Notifications
You must be signed in to change notification settings - Fork 9.1k
/
Copy pathindex.js
39 lines (37 loc) · 1.01 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @prettier
*/
import * as specWrapSelectors from "./spec-extensions/wrap-selectors"
import * as authWrapSelectors from "./auth-extensions/wrap-selectors"
import * as specSelectors from "./spec-extensions/selectors"
import components from "./components"
import wrapComponents from "./wrap-components"
import * as actions from "./actions"
import * as selectors from "./selectors"
import reducers from "./reducers"
import { makeIsFileUploadIntended } from "./fn"
export default function ({ getSystem }) {
const isFileUploadIntended = makeIsFileUploadIntended(getSystem)
return {
components,
wrapComponents,
statePlugins: {
spec: {
wrapSelectors: specWrapSelectors,
selectors: specSelectors,
},
auth: {
wrapSelectors: authWrapSelectors,
},
oas3: {
actions: { ...actions },
reducers,
selectors: { ...selectors },
},
},
fn: {
isFileUploadIntended,
isFileUploadIntendedOAS30: isFileUploadIntended,
},
}
}