@instructure/quiz-core 17.39.0 → 17.39.1-rc.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.
@@ -2,30 +2,6 @@ import React from 'react';
2
2
  import partial from 'lodash/partial';
3
3
  import { Text } from '@instructure/ui-text';
4
4
  import t from '@instructure/quiz-i18n/es/format-message';
5
- var immutableItemDescription = /*#__PURE__*/React.createElement(Text, {
6
- color: "primary"
7
- }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this item!')), "\xA0", t('You can apply your edits to a copy of this item' + ' which will only be seen by students that have not taken the assessment.'));
8
- var itemCopyDescription = /*#__PURE__*/React.createElement(Text, {
9
- color: "primary"
10
- }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Item statistics from this new copy will appear separate from the previous version of this question.'));
11
- var immutableStimulusDescription = /*#__PURE__*/React.createElement(Text, {
12
- color: "primary"
13
- }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this stimulus!')), "\xA0", t('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached items will be copied as well.'));
14
- var stimulusCopyDescription = /*#__PURE__*/React.createElement(Text, {
15
- color: "primary"
16
- }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Stimulus statistics from this new copy will appear separate from the previous version.'));
17
- var itemBankEntryEditDescription = /*#__PURE__*/React.createElement(Text, {
18
- color: "primary"
19
- }, /*#__PURE__*/React.createElement("b", null, t('Banked Item.')), "\xA0", t('Some options and the points value can be changed here but editing must take place within the bank.'));
20
- var stimulusBankEntryEditDescription = /*#__PURE__*/React.createElement(Text, {
21
- "data-automation": "sdk-editInBanks-warning"
22
- }, /*#__PURE__*/React.createElement("b", null, t('Banked Stimulus.')), "\xA0", t('Editing of this stimulus must take place within the bank.'));
23
- var bankEntryUnauthorizedEditDescription = /*#__PURE__*/React.createElement(Text, {
24
- color: "primary"
25
- }, /*#__PURE__*/React.createElement("b", null, t('Banked Item.')), "\xA0", t("You don't have the needed permissions to edit."));
26
- var archivedBankEntryDescription = /*#__PURE__*/React.createElement(Text, {
27
- color: "primary"
28
- }, t('This item has been deleted from the item bank. Students will still see it on future attempts. To edit, make a copy of the item.'));
29
5
 
30
6
  var propsForVersioningWrapper = function propsForVersioningWrapper(copyDescription, immutableDescription, isImmutable, shouldClone, setShouldClone, switchOffEditing, isEditing) {
31
7
  var alertType = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : 'warning';
@@ -63,21 +39,33 @@ export var propsForItemVersioningWrapper = function propsForItemVersioningWrappe
63
39
  args[_key] = arguments[_key];
64
40
  }
65
41
 
66
- return propsForVersioningWrapper.apply(void 0, [itemCopyDescription, immutableItemDescription].concat(args));
42
+ return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/React.createElement(Text, {
43
+ color: "primary"
44
+ }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/React.createElement(Text, {
45
+ color: "primary"
46
+ }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this item!')), "\xA0", t('You can apply your edits to a copy of this item' + ' which will only be seen by students that have not taken the assessment.'))].concat(args));
67
47
  };
68
48
  export var propsForStimulusVersioningWrapper = function propsForStimulusVersioningWrapper() {
69
49
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
70
50
  args[_key2] = arguments[_key2];
71
51
  }
72
52
 
73
- return propsForVersioningWrapper.apply(void 0, [stimulusCopyDescription, immutableStimulusDescription].concat(args));
53
+ return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/React.createElement(Text, {
54
+ color: "primary"
55
+ }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Stimulus statistics from this new copy will appear separate from the previous version.')), /*#__PURE__*/React.createElement(Text, {
56
+ color: "primary"
57
+ }, /*#__PURE__*/React.createElement("b", null, t('Some students have already submitted answers for this stimulus!')), "\xA0", t('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached items will be copied as well.'))].concat(args));
74
58
  };
75
59
  export var propsForBankEntryVersioningWrapper = function propsForBankEntryVersioningWrapper() {
76
60
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
77
61
  args[_key3] = arguments[_key3];
78
62
  }
79
63
 
80
- return propsForVersioningWrapper.apply(void 0, [itemCopyDescription, archivedBankEntryDescription].concat(args));
64
+ return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/React.createElement(Text, {
65
+ color: "primary"
66
+ }, /*#__PURE__*/React.createElement("b", null, t('Editing a copy.')), "\xA0", t('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/React.createElement(Text, {
67
+ color: "primary"
68
+ }, t('This item has been deleted from the item bank. Students will still see it on future attempts. To edit, make a copy of the item.'))].concat(args));
81
69
  };
82
70
  export var propsForBankEntryEditPrompt = function propsForBankEntryEditPrompt(isEditing, switchOffEditing, defaultActionCallback, description) {
83
71
  if (!isEditing) return {
@@ -97,14 +85,18 @@ export var propsForItemBankEntryEditPrompt = function propsForItemBankEntryEditP
97
85
  args[_key4] = arguments[_key4];
98
86
  }
99
87
 
100
- return propsForBankEntryEditPrompt.apply(void 0, args.concat([itemBankEntryEditDescription]));
88
+ return propsForBankEntryEditPrompt.apply(void 0, args.concat([/*#__PURE__*/React.createElement(Text, {
89
+ color: "primary"
90
+ }, /*#__PURE__*/React.createElement("b", null, t('Banked Item.')), "\xA0", t('Some options and the points value can be changed here but editing must take place within the bank.'))]));
101
91
  };
102
92
  export var propsForStimulusBankEntryEditPrompt = function propsForStimulusBankEntryEditPrompt() {
103
93
  for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
104
94
  args[_key5] = arguments[_key5];
105
95
  }
106
96
 
107
- return propsForBankEntryEditPrompt.apply(void 0, args.concat([stimulusBankEntryEditDescription]));
97
+ return propsForBankEntryEditPrompt.apply(void 0, args.concat([/*#__PURE__*/React.createElement(Text, {
98
+ "data-automation": "sdk-editInBanks-warning"
99
+ }, /*#__PURE__*/React.createElement("b", null, t('Banked Stimulus.')), "\xA0", t('Editing of this stimulus must take place within the bank.'))]));
108
100
  };
109
101
  export var propsForBankEntryUnauthorizedEdit = function propsForBankEntryUnauthorizedEdit(isEditing) {
110
102
  if (!isEditing) return {
@@ -113,7 +105,9 @@ export var propsForBankEntryUnauthorizedEdit = function propsForBankEntryUnautho
113
105
  return {
114
106
  alertType: 'warning',
115
107
  disableChildren: true,
116
- description: bankEntryUnauthorizedEditDescription,
108
+ description: /*#__PURE__*/React.createElement(Text, {
109
+ color: "primary"
110
+ }, /*#__PURE__*/React.createElement("b", null, t('Banked Item.')), "\xA0", t("You don't have the needed permissions to edit.")),
117
111
  hideActions: true,
118
112
  showAlert: true
119
113
  };
@@ -15,38 +15,6 @@ var _uiText = require("@instructure/ui-text");
15
15
 
16
16
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
17
17
 
18
- var immutableItemDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
19
- color: "primary"
20
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this item!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this item' + ' which will only be seen by students that have not taken the assessment.'));
21
-
22
- var itemCopyDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
23
- color: "primary"
24
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Item statistics from this new copy will appear separate from the previous version of this question.'));
25
-
26
- var immutableStimulusDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
27
- color: "primary"
28
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this stimulus!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached items will be copied as well.'));
29
-
30
- var stimulusCopyDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
31
- color: "primary"
32
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Stimulus statistics from this new copy will appear separate from the previous version.'));
33
-
34
- var itemBankEntryEditDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
35
- color: "primary"
36
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Banked Item.')), "\xA0", (0, _formatMessage.default)('Some options and the points value can be changed here but editing must take place within the bank.'));
37
-
38
- var stimulusBankEntryEditDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
39
- "data-automation": "sdk-editInBanks-warning"
40
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Banked Stimulus.')), "\xA0", (0, _formatMessage.default)('Editing of this stimulus must take place within the bank.'));
41
-
42
- var bankEntryUnauthorizedEditDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
43
- color: "primary"
44
- }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Banked Item.')), "\xA0", (0, _formatMessage.default)("You don't have the needed permissions to edit."));
45
-
46
- var archivedBankEntryDescription = /*#__PURE__*/_react.default.createElement(_uiText.Text, {
47
- color: "primary"
48
- }, (0, _formatMessage.default)('This item has been deleted from the item bank. Students will still see it on future attempts. To edit, make a copy of the item.'));
49
-
50
18
  var propsForVersioningWrapper = function propsForVersioningWrapper(copyDescription, immutableDescription, isImmutable, shouldClone, setShouldClone, switchOffEditing, isEditing) {
51
19
  var alertType = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : 'warning';
52
20
  var defaultProps = {
@@ -83,7 +51,11 @@ var propsForItemVersioningWrapper = function propsForItemVersioningWrapper() {
83
51
  args[_key] = arguments[_key];
84
52
  }
85
53
 
86
- return propsForVersioningWrapper.apply(void 0, [itemCopyDescription, immutableItemDescription].concat(args));
54
+ return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/_react.default.createElement(_uiText.Text, {
55
+ color: "primary"
56
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
57
+ color: "primary"
58
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this item!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this item' + ' which will only be seen by students that have not taken the assessment.'))].concat(args));
87
59
  };
88
60
 
89
61
  exports.propsForItemVersioningWrapper = propsForItemVersioningWrapper;
@@ -93,7 +65,11 @@ var propsForStimulusVersioningWrapper = function propsForStimulusVersioningWrapp
93
65
  args[_key2] = arguments[_key2];
94
66
  }
95
67
 
96
- return propsForVersioningWrapper.apply(void 0, [stimulusCopyDescription, immutableStimulusDescription].concat(args));
68
+ return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/_react.default.createElement(_uiText.Text, {
69
+ color: "primary"
70
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Stimulus statistics from this new copy will appear separate from the previous version.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
71
+ color: "primary"
72
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Some students have already submitted answers for this stimulus!')), "\xA0", (0, _formatMessage.default)('You can apply your edits to a copy of this stimulus' + ' which will only be seen by students that have not taken the assessment.' + ' Attached items will be copied as well.'))].concat(args));
97
73
  };
98
74
 
99
75
  exports.propsForStimulusVersioningWrapper = propsForStimulusVersioningWrapper;
@@ -103,7 +79,11 @@ var propsForBankEntryVersioningWrapper = function propsForBankEntryVersioningWra
103
79
  args[_key3] = arguments[_key3];
104
80
  }
105
81
 
106
- return propsForVersioningWrapper.apply(void 0, [itemCopyDescription, archivedBankEntryDescription].concat(args));
82
+ return propsForVersioningWrapper.apply(void 0, [/*#__PURE__*/_react.default.createElement(_uiText.Text, {
83
+ color: "primary"
84
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Editing a copy.')), "\xA0", (0, _formatMessage.default)('Item statistics from this new copy will appear separate from the previous version of this question.')), /*#__PURE__*/_react.default.createElement(_uiText.Text, {
85
+ color: "primary"
86
+ }, (0, _formatMessage.default)('This item has been deleted from the item bank. Students will still see it on future attempts. To edit, make a copy of the item.'))].concat(args));
107
87
  };
108
88
 
109
89
  exports.propsForBankEntryVersioningWrapper = propsForBankEntryVersioningWrapper;
@@ -129,7 +109,9 @@ var propsForItemBankEntryEditPrompt = function propsForItemBankEntryEditPrompt()
129
109
  args[_key4] = arguments[_key4];
130
110
  }
131
111
 
132
- return propsForBankEntryEditPrompt.apply(void 0, args.concat([itemBankEntryEditDescription]));
112
+ return propsForBankEntryEditPrompt.apply(void 0, args.concat([/*#__PURE__*/_react.default.createElement(_uiText.Text, {
113
+ color: "primary"
114
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Banked Item.')), "\xA0", (0, _formatMessage.default)('Some options and the points value can be changed here but editing must take place within the bank.'))]));
133
115
  };
134
116
 
135
117
  exports.propsForItemBankEntryEditPrompt = propsForItemBankEntryEditPrompt;
@@ -139,7 +121,9 @@ var propsForStimulusBankEntryEditPrompt = function propsForStimulusBankEntryEdit
139
121
  args[_key5] = arguments[_key5];
140
122
  }
141
123
 
142
- return propsForBankEntryEditPrompt.apply(void 0, args.concat([stimulusBankEntryEditDescription]));
124
+ return propsForBankEntryEditPrompt.apply(void 0, args.concat([/*#__PURE__*/_react.default.createElement(_uiText.Text, {
125
+ "data-automation": "sdk-editInBanks-warning"
126
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Banked Stimulus.')), "\xA0", (0, _formatMessage.default)('Editing of this stimulus must take place within the bank.'))]));
143
127
  };
144
128
 
145
129
  exports.propsForStimulusBankEntryEditPrompt = propsForStimulusBankEntryEditPrompt;
@@ -151,7 +135,9 @@ var propsForBankEntryUnauthorizedEdit = function propsForBankEntryUnauthorizedEd
151
135
  return {
152
136
  alertType: 'warning',
153
137
  disableChildren: true,
154
- description: bankEntryUnauthorizedEditDescription,
138
+ description: /*#__PURE__*/_react.default.createElement(_uiText.Text, {
139
+ color: "primary"
140
+ }, /*#__PURE__*/_react.default.createElement("b", null, (0, _formatMessage.default)('Banked Item.')), "\xA0", (0, _formatMessage.default)("You don't have the needed permissions to edit.")),
155
141
  hideActions: true,
156
142
  showAlert: true
157
143
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.39.0",
3
+ "version": "17.39.1-rc.0+3de3c884a",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -41,11 +41,11 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@instructure/outcomes-ui": "^2.1.2",
44
- "@instructure/quiz-common": "^17.39.0",
45
- "@instructure/quiz-i18n": "^17.39.0",
46
- "@instructure/quiz-interactions": "^17.39.0",
47
- "@instructure/quiz-number-input": "^17.39.0",
48
- "@instructure/quiz-rce": "^17.39.0",
44
+ "@instructure/quiz-common": "17.39.1-rc.0+3de3c884a",
45
+ "@instructure/quiz-i18n": "17.39.1-rc.0+3de3c884a",
46
+ "@instructure/quiz-interactions": "17.39.1-rc.0+3de3c884a",
47
+ "@instructure/quiz-number-input": "17.39.1-rc.0+3de3c884a",
48
+ "@instructure/quiz-rce": "17.39.1-rc.0+3de3c884a",
49
49
  "@instructure/ui-a11y-content": "^7.20.0",
50
50
  "@instructure/ui-alerts": "^7.20.0",
51
51
  "@instructure/ui-avatar": "^7.20.0",
@@ -106,7 +106,7 @@
106
106
  "eventemitter3": "^3.1.0",
107
107
  "humps": "^2.0.0",
108
108
  "immutable": "^3.8.1",
109
- "instructure-validations": "^17.39.0",
109
+ "instructure-validations": "17.39.1-rc.0+3de3c884a",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.0",
@@ -137,7 +137,7 @@
137
137
  "uuid": "^3.2.1"
138
138
  },
139
139
  "devDependencies": {
140
- "@instructure/quiz-scripts": "^17.39.0",
140
+ "@instructure/quiz-scripts": "17.39.1-rc.0+3de3c884a",
141
141
  "@instructure/ui-axe-check": "^7.20.0",
142
142
  "@instructure/ui-babel-preset": "^7.20.0",
143
143
  "@instructure/ui-karma-config": "^7.20.0",
@@ -156,7 +156,7 @@
156
156
  "intl": "^1.2.4",
157
157
  "jquery": "^2.2.3",
158
158
  "most-subject": "^5.3.0",
159
- "quiz-presets": "^17.39.0",
159
+ "quiz-presets": "17.39.1-rc.0+3de3c884a",
160
160
  "react": "^16.8.6",
161
161
  "react-addons-test-utils": "^15.6.2",
162
162
  "react-dom": "^16.8.6",
@@ -172,5 +172,5 @@
172
172
  "publishConfig": {
173
173
  "access": "public"
174
174
  },
175
- "gitHead": "bba85cc92627f5694c98b92479eef2f47e92d6e3"
175
+ "gitHead": "3de3c884ad34a5b0d7a83f787a1d85173c5e2aeb"
176
176
  }