@instructure/quiz-core 22.12.0 → 22.13.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.
@@ -138,7 +138,7 @@ export function createBulkQuizEntries(items, _ref) {
138
138
  var quizId = _ref.quizId,
139
139
  startPosition = _ref.startPosition,
140
140
  _ref$pointsPossible = _ref.pointsPossible,
141
- pointsPossible = _ref$pointsPossible === void 0 ? 1 : _ref$pointsPossible,
141
+ pointsPossible = _ref$pointsPossible === void 0 ? [] : _ref$pointsPossible,
142
142
  _ref$requireFocus = _ref.requireFocus,
143
143
  requireFocus = _ref$requireFocus === void 0 ? true : _ref$requireFocus;
144
144
  var url = "/api/quizzes/".concat(quizId, "/quiz_entries/bulk");
@@ -147,7 +147,7 @@ export function createBulkQuizEntries(items, _ref) {
147
147
  quizId: quizId,
148
148
  entryId: item.id,
149
149
  entryType: 'Item',
150
- points_possible: pointsPossible,
150
+ points_possible: (pointsPossible === null || pointsPossible === void 0 ? void 0 : pointsPossible[index]) || 1,
151
151
  position: Math.max(startPosition, 1) + index,
152
152
  stimulus_quiz_entry_id: null
153
153
  };
@@ -156,7 +156,7 @@ function createBulkQuizEntries(items, _ref) {
156
156
  var quizId = _ref.quizId,
157
157
  startPosition = _ref.startPosition,
158
158
  _ref$pointsPossible = _ref.pointsPossible,
159
- pointsPossible = _ref$pointsPossible === void 0 ? 1 : _ref$pointsPossible,
159
+ pointsPossible = _ref$pointsPossible === void 0 ? [] : _ref$pointsPossible,
160
160
  _ref$requireFocus = _ref.requireFocus,
161
161
  requireFocus = _ref$requireFocus === void 0 ? true : _ref$requireFocus;
162
162
  var url = "/api/quizzes/".concat(quizId, "/quiz_entries/bulk");
@@ -165,7 +165,7 @@ function createBulkQuizEntries(items, _ref) {
165
165
  quizId: quizId,
166
166
  entryId: item.id,
167
167
  entryType: 'Item',
168
- points_possible: pointsPossible,
168
+ points_possible: (pointsPossible === null || pointsPossible === void 0 ? void 0 : pointsPossible[index]) || 1,
169
169
  position: Math.max(startPosition, 1) + index,
170
170
  stimulus_quiz_entry_id: null
171
171
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "22.12.0",
3
+ "version": "22.13.0",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -111,12 +111,12 @@
111
111
  "store": "^1.3.20",
112
112
  "striptags": "^2.0.0",
113
113
  "uuid": "^3.2.1",
114
- "@instructure/quiz-common": "22.12.0",
115
- "@instructure/quiz-i18n": "22.12.0",
116
- "@instructure/quiz-number-input": "22.12.0",
117
- "@instructure/quiz-interactions": "22.12.0",
118
- "instructure-validations": "22.12.0",
119
- "@instructure/quiz-rce": "22.12.0"
114
+ "@instructure/quiz-common": "22.13.0",
115
+ "@instructure/quiz-i18n": "22.13.0",
116
+ "@instructure/quiz-rce": "22.13.0",
117
+ "@instructure/quiz-interactions": "22.13.0",
118
+ "@instructure/quiz-number-input": "22.13.0",
119
+ "instructure-validations": "22.13.0"
120
120
  },
121
121
  "devDependencies": {
122
122
  "@instructure/ui-axe-check": "10.17.0",
@@ -145,7 +145,7 @@
145
145
  "sinon": "^6.1.3",
146
146
  "sinon-chai": "^3.3.0",
147
147
  "@instructure/quiz-scripts": "21.0.0",
148
- "quiz-presets": "22.12.0"
148
+ "quiz-presets": "22.13.0"
149
149
  },
150
150
  "peerDependencies": {
151
151
  "react": "^15 || ^16"
@@ -161,6 +161,7 @@
161
161
  "lint": "ui-test --lint",
162
162
  "lint:fix": "ui-test --lint --fix",
163
163
  "eslint:fix": "eslint --fix .",
164
+ "eslint:errors": "eslint --quiet --fix .",
164
165
  "test": "pnpm test:karma",
165
166
  "test:karma": "ui-test",
166
167
  "test:watch": "ui-test --watch",