@instructure/quiz-core 20.35.1-test.6 → 20.35.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/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -4
- package/es/common/components/layout/Page/styles.js +1 -10
- package/es/common/components/layout/Page/theme.js +2 -5
- package/es/common/components/resources/quiz/instructions/styles.js +0 -9
- package/es/common/components/resources/quiz/instructions/theme.js +1 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -4
- package/lib/common/components/layout/Page/styles.js +1 -10
- package/lib/common/components/layout/Page/theme.js +2 -5
- package/lib/common/components/resources/quiz/instructions/styles.js +0 -9
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -3
- package/package.json +30 -31
|
@@ -147,7 +147,6 @@ export var QuizEntryEditFooter = (_dec = withStyleOverrides(generateStyle, gener
|
|
|
147
147
|
}, {
|
|
148
148
|
key: "renderPointsSection",
|
|
149
149
|
value: function renderPointsSection() {
|
|
150
|
-
var currentPointsValue = this.state.points;
|
|
151
150
|
return jsx("div", {
|
|
152
151
|
css: this.props.styles.pointsSection
|
|
153
152
|
}, jsx("span", {
|
|
@@ -156,10 +155,9 @@ export var QuizEntryEditFooter = (_dec = withStyleOverrides(generateStyle, gener
|
|
|
156
155
|
renderLabel: jsx(ScreenReaderContent, null, t('Points Possible Input')),
|
|
157
156
|
onChange: this.handlePointsChange,
|
|
158
157
|
onBlur: this.handlePointsBlur,
|
|
159
|
-
value:
|
|
158
|
+
value: this.state.points,
|
|
160
159
|
disabled: this.pointsDisabled(),
|
|
161
|
-
"data-automation": "sdk-points-possible-numberinput"
|
|
162
|
-
"aria-valuetext": "".concat(currentPointsValue, " ").concat(t('Points'))
|
|
160
|
+
"data-automation": "sdk-points-possible-numberinput"
|
|
163
161
|
})), jsx(View, {
|
|
164
162
|
margin: "none none none x-small"
|
|
165
163
|
}, jsx(Text, {
|
|
@@ -17,16 +17,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
17
17
|
overflowY: 'auto'
|
|
18
18
|
}), {}, {
|
|
19
19
|
transition: componentTheme.contentTransition,
|
|
20
|
-
width: '100%'
|
|
21
|
-
'.user_content p': {
|
|
22
|
-
margin: componentTheme.userContentMargin,
|
|
23
|
-
'&:first-of-type': {
|
|
24
|
-
marginTop: componentTheme.userContentZeroMargin
|
|
25
|
-
},
|
|
26
|
-
'&:last-child': {
|
|
27
|
-
marginBottom: componentTheme.userContentZeroMargin
|
|
28
|
-
}
|
|
29
|
-
}
|
|
20
|
+
width: '100%'
|
|
30
21
|
})
|
|
31
22
|
};
|
|
32
23
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
2
|
var typography = _ref.typography,
|
|
3
3
|
breakpoints = _ref.breakpoints,
|
|
4
|
-
transitions = _ref.transitions
|
|
5
|
-
spacing = _ref.spacing;
|
|
4
|
+
transitions = _ref.transitions;
|
|
6
5
|
return {
|
|
7
6
|
fontFamily: typography.fontFamily,
|
|
8
|
-
contentTransition: "transform ".concat(transitions.duration)
|
|
9
|
-
userContentMargin: spacing.mediumSmall,
|
|
10
|
-
userContentZeroMargin: 0
|
|
7
|
+
contentTransition: "transform ".concat(transitions.duration)
|
|
11
8
|
};
|
|
12
9
|
};
|
|
13
10
|
export default generateComponentTheme;
|
|
@@ -10,15 +10,6 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
10
10
|
clear: 'both',
|
|
11
11
|
content: '""',
|
|
12
12
|
display: 'table'
|
|
13
|
-
},
|
|
14
|
-
'.user_content p': {
|
|
15
|
-
margin: componentTheme.userContentMargin,
|
|
16
|
-
'&:first-of-type': {
|
|
17
|
-
marginTop: componentTheme.userContentZeroMargin
|
|
18
|
-
},
|
|
19
|
-
'&:last-child': {
|
|
20
|
-
marginBottom: componentTheme.userContentMargin
|
|
21
|
-
}
|
|
22
13
|
}
|
|
23
14
|
},
|
|
24
15
|
text: {
|
|
@@ -3,9 +3,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
3
3
|
typography = _ref.typography;
|
|
4
4
|
return {
|
|
5
5
|
wrapperPadding: spacing.large,
|
|
6
|
-
textFontSize: typography.fontSizeMedium
|
|
7
|
-
userContentMargin: spacing.mediumSmall,
|
|
8
|
-
userContentZeroMargin: 0
|
|
6
|
+
textFontSize: typography.fontSizeMedium
|
|
9
7
|
};
|
|
10
8
|
};
|
|
11
9
|
export default generateComponentTheme;
|
|
@@ -154,7 +154,6 @@ var QuizEntryEditFooter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
154
154
|
}, {
|
|
155
155
|
key: "renderPointsSection",
|
|
156
156
|
value: function renderPointsSection() {
|
|
157
|
-
var currentPointsValue = this.state.points;
|
|
158
157
|
return (0, _emotion.jsx)("div", {
|
|
159
158
|
css: this.props.styles.pointsSection
|
|
160
159
|
}, (0, _emotion.jsx)("span", {
|
|
@@ -163,10 +162,9 @@ var QuizEntryEditFooter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.de
|
|
|
163
162
|
renderLabel: (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Points Possible Input')),
|
|
164
163
|
onChange: this.handlePointsChange,
|
|
165
164
|
onBlur: this.handlePointsBlur,
|
|
166
|
-
value:
|
|
165
|
+
value: this.state.points,
|
|
167
166
|
disabled: this.pointsDisabled(),
|
|
168
|
-
"data-automation": "sdk-points-possible-numberinput"
|
|
169
|
-
"aria-valuetext": "".concat(currentPointsValue, " ").concat((0, _formatMessage.default)('Points'))
|
|
167
|
+
"data-automation": "sdk-points-possible-numberinput"
|
|
170
168
|
})), (0, _emotion.jsx)(_uiView.View, {
|
|
171
169
|
margin: "none none none x-small"
|
|
172
170
|
}, (0, _emotion.jsx)(_uiText.Text, {
|
|
@@ -24,16 +24,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
24
24
|
overflowY: 'auto'
|
|
25
25
|
}), {}, {
|
|
26
26
|
transition: componentTheme.contentTransition,
|
|
27
|
-
width: '100%'
|
|
28
|
-
'.user_content p': {
|
|
29
|
-
margin: componentTheme.userContentMargin,
|
|
30
|
-
'&:first-of-type': {
|
|
31
|
-
marginTop: componentTheme.userContentZeroMargin
|
|
32
|
-
},
|
|
33
|
-
'&:last-child': {
|
|
34
|
-
marginBottom: componentTheme.userContentZeroMargin
|
|
35
|
-
}
|
|
36
|
-
}
|
|
27
|
+
width: '100%'
|
|
37
28
|
})
|
|
38
29
|
};
|
|
39
30
|
};
|
|
@@ -7,13 +7,10 @@ exports.default = void 0;
|
|
|
7
7
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
8
|
var typography = _ref.typography,
|
|
9
9
|
breakpoints = _ref.breakpoints,
|
|
10
|
-
transitions = _ref.transitions
|
|
11
|
-
spacing = _ref.spacing;
|
|
10
|
+
transitions = _ref.transitions;
|
|
12
11
|
return {
|
|
13
12
|
fontFamily: typography.fontFamily,
|
|
14
|
-
contentTransition: "transform ".concat(transitions.duration)
|
|
15
|
-
userContentMargin: spacing.mediumSmall,
|
|
16
|
-
userContentZeroMargin: 0
|
|
13
|
+
contentTransition: "transform ".concat(transitions.duration)
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
var _default = generateComponentTheme;
|
|
@@ -16,15 +16,6 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
16
16
|
clear: 'both',
|
|
17
17
|
content: '""',
|
|
18
18
|
display: 'table'
|
|
19
|
-
},
|
|
20
|
-
'.user_content p': {
|
|
21
|
-
margin: componentTheme.userContentMargin,
|
|
22
|
-
'&:first-of-type': {
|
|
23
|
-
marginTop: componentTheme.userContentZeroMargin
|
|
24
|
-
},
|
|
25
|
-
'&:last-child': {
|
|
26
|
-
marginBottom: componentTheme.userContentMargin
|
|
27
|
-
}
|
|
28
19
|
}
|
|
29
20
|
},
|
|
30
21
|
text: {
|
|
@@ -9,9 +9,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
typography = _ref.typography;
|
|
10
10
|
return {
|
|
11
11
|
wrapperPadding: spacing.large,
|
|
12
|
-
textFontSize: typography.fontSizeMedium
|
|
13
|
-
userContentMargin: spacing.mediumSmall,
|
|
14
|
-
userContentZeroMargin: 0
|
|
12
|
+
textFontSize: typography.fontSizeMedium
|
|
15
13
|
};
|
|
16
14
|
};
|
|
17
15
|
var _default = generateComponentTheme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.35.1
|
|
3
|
+
"version": "20.35.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -10,27 +10,6 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://gerrit.instructure.com/quizzes-ui.git"
|
|
12
12
|
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"clean": "ui-build --clean",
|
|
15
|
-
"build": "build-if-changed",
|
|
16
|
-
"build:all": "ui-build --modules es,cjs",
|
|
17
|
-
"build:watch": "ui-build --watch",
|
|
18
|
-
"extract": "extract-translations",
|
|
19
|
-
"lint": "ui-test --lint",
|
|
20
|
-
"lint:fix": "ui-test --lint --fix",
|
|
21
|
-
"eslint:fix": "eslint --fix .",
|
|
22
|
-
"prelint": "pnpm build",
|
|
23
|
-
"pretest": "pnpm build",
|
|
24
|
-
"test": "pnpm test:karma",
|
|
25
|
-
"test:karma": "ui-test",
|
|
26
|
-
"test:watch": "ui-test --watch",
|
|
27
|
-
"snyk:monitor": "snyk monitor",
|
|
28
|
-
"postbuild": "cp src/banks/components/noResults.svg lib/banks/components/; cp src/banks/components/noResults.svg es/banks/components/; pnpm postbuild:errorImage",
|
|
29
|
-
"postbuild:all": "pnpm postbuild",
|
|
30
|
-
"postbuild:errorImage": "cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg es/reporting/components/resources/NewQuizAndItemAnalysis/; cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg lib/reporting/components/resources/NewQuizAndItemAnalysis/",
|
|
31
|
-
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
32
|
-
"typecheck": "tsc --noEmit"
|
|
33
|
-
},
|
|
34
13
|
"keywords": [
|
|
35
14
|
"react",
|
|
36
15
|
"react-component",
|
|
@@ -46,11 +25,11 @@
|
|
|
46
25
|
"@instructure/emotion": "^8.56.3",
|
|
47
26
|
"@instructure/grading-utils": "^1.0.0",
|
|
48
27
|
"@instructure/outcomes-ui": "^3.2.2",
|
|
49
|
-
"@instructure/quiz-common": "^20.35.1
|
|
50
|
-
"@instructure/quiz-i18n": "^20.35.1
|
|
51
|
-
"@instructure/quiz-interactions": "^20.35.1
|
|
52
|
-
"@instructure/quiz-number-input": "^20.35.1
|
|
53
|
-
"@instructure/quiz-rce": "^20.35.1
|
|
28
|
+
"@instructure/quiz-common": "^20.35.1",
|
|
29
|
+
"@instructure/quiz-i18n": "^20.35.1",
|
|
30
|
+
"@instructure/quiz-interactions": "^20.35.1",
|
|
31
|
+
"@instructure/quiz-number-input": "^20.35.1",
|
|
32
|
+
"@instructure/quiz-rce": "^20.35.1",
|
|
54
33
|
"@instructure/ui-a11y-content": "^8.56.3",
|
|
55
34
|
"@instructure/ui-alerts": "^8.56.3",
|
|
56
35
|
"@instructure/ui-avatar": "^8.56.3",
|
|
@@ -114,7 +93,7 @@
|
|
|
114
93
|
"file-saver": "~2.0.5",
|
|
115
94
|
"humps": "^2.0.0",
|
|
116
95
|
"immutable": "^3.8.1",
|
|
117
|
-
"instructure-validations": "^20.35.1
|
|
96
|
+
"instructure-validations": "^20.35.1",
|
|
118
97
|
"ipaddr.js": "^1.5.4",
|
|
119
98
|
"isomorphic-fetch": "^2.2.0",
|
|
120
99
|
"isuuid": "^0.1.0",
|
|
@@ -163,7 +142,7 @@
|
|
|
163
142
|
"jquery": "^2.2.3",
|
|
164
143
|
"karma-junit-reporter": "^2.0.1",
|
|
165
144
|
"most-subject": "^5.3.0",
|
|
166
|
-
"quiz-presets": "^20.35.1
|
|
145
|
+
"quiz-presets": "^20.35.1",
|
|
167
146
|
"react": "^16.8.6",
|
|
168
147
|
"react-addons-test-utils": "^15.6.2",
|
|
169
148
|
"react-dom": "^16.8.6",
|
|
@@ -179,5 +158,25 @@
|
|
|
179
158
|
"publishConfig": {
|
|
180
159
|
"access": "public"
|
|
181
160
|
},
|
|
182
|
-
"
|
|
183
|
-
|
|
161
|
+
"scripts": {
|
|
162
|
+
"clean": "ui-build --clean",
|
|
163
|
+
"build": "build-if-changed",
|
|
164
|
+
"build:all": "ui-build --modules es,cjs",
|
|
165
|
+
"build:watch": "ui-build --watch",
|
|
166
|
+
"extract": "extract-translations",
|
|
167
|
+
"lint": "ui-test --lint",
|
|
168
|
+
"lint:fix": "ui-test --lint --fix",
|
|
169
|
+
"eslint:fix": "eslint --fix .",
|
|
170
|
+
"prelint": "pnpm build",
|
|
171
|
+
"pretest": "pnpm build",
|
|
172
|
+
"test": "pnpm test:karma",
|
|
173
|
+
"test:karma": "ui-test",
|
|
174
|
+
"test:watch": "ui-test --watch",
|
|
175
|
+
"snyk:monitor": "snyk monitor",
|
|
176
|
+
"postbuild": "cp src/banks/components/noResults.svg lib/banks/components/; cp src/banks/components/noResults.svg es/banks/components/; pnpm postbuild:errorImage",
|
|
177
|
+
"postbuild:all": "pnpm postbuild",
|
|
178
|
+
"postbuild:errorImage": "cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg es/reporting/components/resources/NewQuizAndItemAnalysis/; cp src/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg lib/reporting/components/resources/NewQuizAndItemAnalysis/",
|
|
179
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
180
|
+
"typecheck": "tsc --noEmit"
|
|
181
|
+
}
|
|
182
|
+
}
|