synapse-react-client 3.0.37 → 3.1.0
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/containers/Carousel.js +3 -1
- package/dist/containers/Carousel.js.map +1 -1
- package/dist/containers/EntityForm.d.ts +2 -0
- package/dist/containers/EntityForm.js.map +1 -1
- package/dist/containers/ErrorBanner.d.ts +1 -1
- package/dist/containers/ErrorBanner.js +1 -1
- package/dist/containers/ErrorBanner.js.map +1 -1
- package/dist/containers/FavoritesPage.js +3 -0
- package/dist/containers/FavoritesPage.js.map +1 -1
- package/dist/containers/IconSvg.d.ts +1 -1
- package/dist/containers/IconSvg.js +3 -0
- package/dist/containers/IconSvg.js.map +1 -1
- package/dist/containers/MarkdownSynapse.d.ts +2 -0
- package/dist/containers/MarkdownSynapse.js.map +1 -1
- package/dist/containers/ModalDownload.d.ts +2 -0
- package/dist/containers/ModalDownload.js.map +1 -1
- package/dist/containers/QueryContext.d.ts +3 -3
- package/dist/containers/QueryContext.js.map +1 -1
- package/dist/containers/QueryVisualizationWrapper.d.ts +3 -3
- package/dist/containers/QueryVisualizationWrapper.js.map +1 -1
- package/dist/containers/RenderIfInView.d.ts +1 -1
- package/dist/containers/RenderIfInView.js.map +1 -1
- package/dist/containers/StatisticsPlot.d.ts +2 -0
- package/dist/containers/StatisticsPlot.js.map +1 -1
- package/dist/containers/UpsetPlot.js.map +1 -1
- package/dist/containers/UserSearchBoxV2.js.map +1 -1
- package/dist/containers/VisibilityObserver.js +5 -5
- package/dist/containers/VisibilityObserver.js.map +1 -1
- package/dist/containers/dataaccess/AccessRequirementSearchBox.js.map +1 -1
- package/dist/containers/dataaccess/ReviewerDashboard.js.map +1 -1
- package/dist/containers/entity/annotations/AdditionalPropertiesSchemaField.js.map +1 -1
- package/dist/containers/entity/annotations/CustomSelectWidget.js +1 -1
- package/dist/containers/entity/annotations/CustomSelectWidget.js.map +1 -1
- package/dist/containers/entity_finder/EntityFinder.d.ts +3 -6
- package/dist/containers/entity_finder/EntityFinder.js +14 -13
- package/dist/containers/entity_finder/EntityFinder.js.map +1 -1
- package/dist/containers/entity_finder/VersionSelectionType.d.ts +20 -0
- package/dist/containers/entity_finder/VersionSelectionType.js +25 -0
- package/dist/containers/entity_finder/VersionSelectionType.js.map +1 -0
- package/dist/containers/entity_finder/details/EntityDetailsList.d.ts +2 -3
- package/dist/containers/entity_finder/details/EntityDetailsList.js.map +1 -1
- package/dist/containers/entity_finder/details/view/DetailsView.d.ts +0 -2
- package/dist/containers/entity_finder/details/view/DetailsView.js +10 -16
- package/dist/containers/entity_finder/details/view/DetailsView.js.map +1 -1
- package/dist/containers/entity_finder/details/view/DetailsViewTableRenderers.d.ts +3 -3
- package/dist/containers/entity_finder/details/view/DetailsViewTableRenderers.js +46 -8
- package/dist/containers/entity_finder/details/view/DetailsViewTableRenderers.js.map +1 -1
- package/dist/containers/entity_finder/details/view/VersionColumnHeader.d.ts +5 -0
- package/dist/containers/entity_finder/details/view/VersionColumnHeader.js +34 -0
- package/dist/containers/entity_finder/details/view/VersionColumnHeader.js.map +1 -0
- package/dist/containers/oauth/CreateOAuthClient.js +3 -4
- package/dist/containers/oauth/CreateOAuthClient.js.map +1 -1
- package/dist/containers/oauth/OAuthManagement.js +11 -12
- package/dist/containers/oauth/OAuthManagement.js.map +1 -1
- package/dist/containers/row_renderers/utils/ChipContainer.d.ts +2 -2
- package/dist/containers/row_renderers/utils/ChipContainer.js.map +1 -1
- package/dist/containers/synapse_form_wrapper/SynapseForm.d.ts +3 -2
- package/dist/containers/synapse_form_wrapper/SynapseForm.js +12 -8
- package/dist/containers/synapse_form_wrapper/SynapseForm.js.map +1 -1
- package/dist/containers/table/EntityIDColumnCopyIcon.d.ts +3 -0
- package/dist/containers/table/EntityIDColumnCopyIcon.js +77 -0
- package/dist/containers/table/EntityIDColumnCopyIcon.js.map +1 -0
- package/dist/containers/table/StandaloneQueryWrapper.js +1 -3
- package/dist/containers/table/StandaloneQueryWrapper.js.map +1 -1
- package/dist/containers/table/SynapseTable.d.ts +0 -4
- package/dist/containers/table/SynapseTable.js +2 -22
- package/dist/containers/table/SynapseTable.js.map +1 -1
- package/dist/containers/table/datasets/DatasetItemsEditor.js +2 -1
- package/dist/containers/table/datasets/DatasetItemsEditor.js.map +1 -1
- package/dist/containers/widgets/ElementWithTooltip.d.ts +5 -5
- package/dist/containers/widgets/ElementWithTooltip.js.map +1 -1
- package/dist/containers/widgets/RangeSlider.d.ts +3 -3
- package/dist/containers/widgets/RangeSlider.js.map +1 -1
- package/dist/containers/widgets/SynapseImage.d.ts +2 -0
- package/dist/containers/widgets/SynapseImage.js.map +1 -1
- package/dist/containers/widgets/SynapsePlot.d.ts +2 -0
- package/dist/containers/widgets/SynapsePlot.js.map +1 -1
- package/dist/style/base/_core.scss +6 -0
- package/dist/style/components/_all.scss +1 -1
- package/dist/style/components/_certification-quiz.scss +32 -0
- package/dist/style/components/_global-alert.scss +9 -3
- package/dist/style/main.css +54 -3
- package/dist/umd/synapse-react-client.development.css +53 -3
- package/dist/umd/synapse-react-client.development.css.map +2 -2
- package/dist/umd/synapse-react-client.development.js +10994 -10688
- package/dist/umd/synapse-react-client.development.js.map +3 -3
- package/dist/umd/synapse-react-client.production.min.css +1 -1
- package/dist/umd/synapse-react-client.production.min.js +88 -88
- package/dist/utils/SynapseClient.d.ts +13 -2
- package/dist/utils/SynapseClient.js +22 -6
- package/dist/utils/SynapseClient.js.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.d.ts +1 -0
- package/dist/utils/functions/EntityTypeUtils.js +21 -1
- package/dist/utils/functions/EntityTypeUtils.js.map +1 -1
- package/dist/utils/hooks/SynapseAPI/oauth/useOAuthClient.d.ts +1 -1
- package/dist/utils/hooks/SynapseAPI/oauth/useOAuthClient.js +7 -1
- package/dist/utils/hooks/SynapseAPI/oauth/useOAuthClient.js.map +1 -1
- package/dist/utils/hooks/SynapseAPI/user/useFavorites.js +1 -1
- package/dist/utils/hooks/SynapseAPI/user/useFavorites.js.map +1 -1
- package/dist/utils/hooks/useTheme.d.ts +3 -3
- package/dist/utils/hooks/useTheme.js.map +1 -1
- package/dist/utils/synapseTypes/CertificationQuiz/Questions.d.ts +28 -0
- package/dist/utils/synapseTypes/CertificationQuiz/Questions.js +5 -0
- package/dist/utils/synapseTypes/CertificationQuiz/Questions.js.map +1 -0
- package/dist/utils/synapseTypes/CertificationQuiz/Quiz.d.ts +27 -0
- package/dist/utils/synapseTypes/CertificationQuiz/Quiz.js +3 -0
- package/dist/utils/synapseTypes/CertificationQuiz/Quiz.js.map +1 -0
- package/package.json +28 -27
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MultichoiceQuestion, Question, QuestionResponse } from './Questions';
|
|
2
|
+
export interface Quiz {
|
|
3
|
+
id: number;
|
|
4
|
+
header: string;
|
|
5
|
+
questions: MultichoiceQuestion[];
|
|
6
|
+
}
|
|
7
|
+
export interface QuizResponse {
|
|
8
|
+
id?: number;
|
|
9
|
+
quizId: number;
|
|
10
|
+
createdBy?: string;
|
|
11
|
+
createdOn?: string;
|
|
12
|
+
questionResponses: QuestionResponse[];
|
|
13
|
+
}
|
|
14
|
+
export interface ResponseCorrectness {
|
|
15
|
+
question: Question;
|
|
16
|
+
response: QuestionResponse;
|
|
17
|
+
isCorrect: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface PassingRecord {
|
|
20
|
+
userId: string;
|
|
21
|
+
quizId: number;
|
|
22
|
+
responseId: number;
|
|
23
|
+
score: number;
|
|
24
|
+
passed: boolean;
|
|
25
|
+
passedOn: string;
|
|
26
|
+
corrections?: ResponseCorrectness[];
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Quiz.js","sourceRoot":"","sources":["../../../../src/lib/utils/synapseTypes/CertificationQuiz/Quiz.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synapse-react-client",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@material-ui/icons": "^4.11.2",
|
|
22
22
|
"@material-ui/lab": "^4.0.0-alpha.57",
|
|
23
23
|
"@popperjs/core": "^2.10.2",
|
|
24
|
-
"@rjsf/core": "^4.
|
|
24
|
+
"@rjsf/core": "^4.2.3",
|
|
25
25
|
"@sage-bionetworks/react-base-table": "^1.13.2",
|
|
26
26
|
"@sage-bionetworks/rjsf-core": "^3.1.4",
|
|
27
27
|
"@types/ua-parser-js": "^0.7.36",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"react-error-boundary": "^3.1.1",
|
|
63
63
|
"react-flow-renderer": "^10.3.11",
|
|
64
64
|
"react-hot-toast": "^2.1.0",
|
|
65
|
-
"react-intersection-observer": "^
|
|
65
|
+
"react-intersection-observer": "^9.4.0",
|
|
66
66
|
"react-mailchimp-subscribe": "^2.1.0",
|
|
67
67
|
"react-measure": "^2.1.2",
|
|
68
68
|
"react-plotly.js": "^2.5.1",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"react-query": "3.39.1",
|
|
72
72
|
"react-reflex": "^4.0.0",
|
|
73
73
|
"react-router-dom": "^5.3.3",
|
|
74
|
-
"react-select": "^4.
|
|
74
|
+
"react-select": "^5.4.0",
|
|
75
75
|
"react-sizeme": "^2.6.12",
|
|
76
76
|
"react-switch": "^5.0.1",
|
|
77
|
-
"react-test-renderer": "
|
|
77
|
+
"react-test-renderer": "^18.2.0",
|
|
78
78
|
"react-transition-group": "4.4.2",
|
|
79
79
|
"react-virtualized-auto-sizer": "^1.0.6",
|
|
80
80
|
"react-vtree": "3.0.0-beta.3",
|
|
@@ -89,12 +89,11 @@
|
|
|
89
89
|
"tslib": "^2.3.1",
|
|
90
90
|
"ua-parser-js": "^1.0.2",
|
|
91
91
|
"universal-cookie": "^4.0.3",
|
|
92
|
-
"use-deep-compare-effect": "^1.3.1"
|
|
93
|
-
"vite-plugin-svgr": "^2.2.0"
|
|
92
|
+
"use-deep-compare-effect": "^1.3.1"
|
|
94
93
|
},
|
|
95
94
|
"peerDependencies": {
|
|
96
|
-
"react": "^
|
|
97
|
-
"react-dom": "^
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.2.0"
|
|
98
97
|
},
|
|
99
98
|
"devDependencies": {
|
|
100
99
|
"@babel/cli": "^7.14.5",
|
|
@@ -112,19 +111,20 @@
|
|
|
112
111
|
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
|
|
113
112
|
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
|
|
114
113
|
"@juggle/resize-observer": "^3.3.1",
|
|
114
|
+
"@rollup/plugin-inject": "^4.0.4",
|
|
115
115
|
"@sage-bionetworks/esbuild-plugin-svgr": "^0.0.4",
|
|
116
116
|
"@storybook/addon-actions": "^6.5.9",
|
|
117
117
|
"@storybook/addon-essentials": "^6.5.9",
|
|
118
118
|
"@storybook/addon-interactions": "^6.5.9",
|
|
119
119
|
"@storybook/addon-links": "^6.5.9",
|
|
120
|
-
"@storybook/builder-vite": "
|
|
120
|
+
"@storybook/builder-vite": "0.2.2",
|
|
121
121
|
"@storybook/react": "^6.5.9",
|
|
122
122
|
"@storybook/testing-library": "^0.0.13",
|
|
123
|
-
"@testing-library/dom": "^8.1
|
|
124
|
-
"@testing-library/jest-dom": "^5.
|
|
125
|
-
"@testing-library/react": "^
|
|
126
|
-
"@testing-library/react-hooks": "^
|
|
127
|
-
"@testing-library/user-event": "
|
|
123
|
+
"@testing-library/dom": "^8.17.1",
|
|
124
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
125
|
+
"@testing-library/react": "^13.3.0",
|
|
126
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
127
|
+
"@testing-library/user-event": "^14.4.3",
|
|
128
128
|
"@types/brainhubeu__react-carousel": "1.15.0",
|
|
129
129
|
"@types/dagre": "^0.7.47",
|
|
130
130
|
"@types/jest": "^28.1.5",
|
|
@@ -137,14 +137,13 @@
|
|
|
137
137
|
"@types/plotly.js": "^1.54.20",
|
|
138
138
|
"@types/plotly.js-basic-dist": "^1.54.0",
|
|
139
139
|
"@types/pluralize": "^0.0.29",
|
|
140
|
-
"@types/react": "^
|
|
140
|
+
"@types/react": "^18.0.17",
|
|
141
141
|
"@types/react-addons-css-transition-group": "^15.0.5",
|
|
142
|
-
"@types/react-dom": "^
|
|
142
|
+
"@types/react-dom": "^18.0.6",
|
|
143
143
|
"@types/react-mailchimp-subscribe": "^2.0.2",
|
|
144
144
|
"@types/react-measure": "^2.0.4",
|
|
145
145
|
"@types/react-plotly.js": "^2.2.4",
|
|
146
146
|
"@types/react-router-dom": "^5.3.3",
|
|
147
|
-
"@types/react-select": "^4.0.17",
|
|
148
147
|
"@types/react-transition-group": "^2.0.16",
|
|
149
148
|
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
150
149
|
"@types/react-window": "^1.8.5",
|
|
@@ -155,8 +154,8 @@
|
|
|
155
154
|
"@types/xml2js": "^0.4.4",
|
|
156
155
|
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
157
156
|
"@typescript-eslint/parser": "^5.13.0",
|
|
158
|
-
"@vitejs/plugin-legacy": "^
|
|
159
|
-
"@vitejs/plugin-react": "^
|
|
157
|
+
"@vitejs/plugin-legacy": "^2.0.1",
|
|
158
|
+
"@vitejs/plugin-react": "^2.0.1",
|
|
160
159
|
"@welldone-software/why-did-you-render": "^7.0.1",
|
|
161
160
|
"babel-jest": "^28.1.1",
|
|
162
161
|
"babel-loader": "^8.2.5",
|
|
@@ -189,16 +188,20 @@
|
|
|
189
188
|
"postcss-normalize": "^10.0.1",
|
|
190
189
|
"prettier": "^2.6.2",
|
|
191
190
|
"process": "^0.11.10",
|
|
192
|
-
"react
|
|
193
|
-
"react-
|
|
191
|
+
"react": "^18.2.0",
|
|
192
|
+
"react-dom": "^18.2.0",
|
|
193
|
+
"react-select-event": "^5.5.1",
|
|
194
|
+
"react-test-renderer": "^18.2.0",
|
|
195
|
+
"rollup-plugin-polyfill-node": "^0.10.2",
|
|
194
196
|
"sinon": "^7.2.2",
|
|
195
197
|
"stream-browserify": "^3.0.0",
|
|
196
198
|
"stream-http": "^3.2.0",
|
|
197
199
|
"timers-browserify": "^2.0.12",
|
|
198
200
|
"ts-jest": "^28.0.5",
|
|
199
201
|
"typescript": "4.7.4",
|
|
200
|
-
"vite": "^
|
|
201
|
-
"vite-plugin-externals": "^0.5.
|
|
202
|
+
"vite": "^3.0.9",
|
|
203
|
+
"vite-plugin-externals": "^0.5.1",
|
|
204
|
+
"vite-plugin-svgr": "^2.2.1",
|
|
202
205
|
"weak-napi": "^2.0.2",
|
|
203
206
|
"yarn": "^1.22.17"
|
|
204
207
|
},
|
|
@@ -230,9 +233,7 @@
|
|
|
230
233
|
"resolutions": {
|
|
231
234
|
"js-yaml": "3.13.1",
|
|
232
235
|
"minimatch": "3.0.4",
|
|
233
|
-
"react": "
|
|
234
|
-
"react-dom": "16.14.0",
|
|
235
|
-
"@types/react": "^16.14.23",
|
|
236
|
+
"@types/react": "18.0.17",
|
|
236
237
|
"@types/webpack": "^5.28.0"
|
|
237
238
|
},
|
|
238
239
|
"browser": {
|