@instructure/quiz-core 17.40.1-rc.1 → 17.40.1-rc.11

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.
Files changed (23) hide show
  1. package/es/building/components/resources/quiz/instructions/Instructions/index.js +3 -1
  2. package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +27 -10
  3. package/es/building/components/resources/quiz/instructions/Show/index.js +8 -3
  4. package/es/building/components/resources/quiz/title/Edit/index.js +7 -7
  5. package/es/building/components/resources/quiz/title/Edit/theme.js +1 -2
  6. package/es/building/components/resources/quiz/title/Show/index.js +11 -6
  7. package/es/building/components/resources/quiz/title/Show/theme.js +1 -4
  8. package/es/building/components/resources/quiz/title/Title/index.js +3 -1
  9. package/es/building/components/resources/quiz/title/Title/presenter.js +25 -10
  10. package/es/building/components/resources/quiz/title/Title/theme.js +6 -2
  11. package/es/common/records/Quiz.js +1 -0
  12. package/lib/building/components/resources/quiz/instructions/Instructions/index.js +4 -1
  13. package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +27 -10
  14. package/lib/building/components/resources/quiz/instructions/Show/index.js +11 -3
  15. package/lib/building/components/resources/quiz/title/Edit/index.js +7 -7
  16. package/lib/building/components/resources/quiz/title/Edit/theme.js +1 -2
  17. package/lib/building/components/resources/quiz/title/Show/index.js +14 -6
  18. package/lib/building/components/resources/quiz/title/Show/theme.js +1 -4
  19. package/lib/building/components/resources/quiz/title/Title/index.js +4 -1
  20. package/lib/building/components/resources/quiz/title/Title/presenter.js +25 -10
  21. package/lib/building/components/resources/quiz/title/Title/theme.js +6 -2
  22. package/lib/common/records/Quiz.js +1 -0
  23. package/package.json +10 -10
@@ -4,11 +4,13 @@ import { screenreaderNotification } from "../../../../../../common/actions/alert
4
4
  import { clearModifications, changeQuizInstructions } from "../../../../../../common/actions/modifications.js";
5
5
  import { saveQuizChange } from "../../../../../api/quizzes.js";
6
6
  import makeEditable from "../../../../../../common/components/shared/functionality/makeEditable.js";
7
+ import { featureOn } from "../../../../../../common/util/featureCheck.js";
7
8
  import Instructions from "./presenter.js";
8
9
 
9
10
  function mapStateToProps(state) {
10
11
  return {
11
- errorsShowing: state.get('errorsShowing')
12
+ errorsShowing: state.get('errorsShowing'),
13
+ lockBlueprintContentEnabled: featureOn('lock_blueprint_content')
12
14
  };
13
15
  }
14
16
 
@@ -14,13 +14,14 @@ import QuizInstructionsEdit from "../Edit/index.js";
14
14
  import QuizInstructionsShow from "../Show/index.js";
15
15
  import EditButton from "../../editButton/EditButton.js";
16
16
  var styles = {
17
- componentId: 'fFmWj',
17
+ componentId: 'bIKna',
18
18
  template: function template(theme) {
19
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
19
+ return "\n\n.bIKna_qYhL{display:flex;justify-content:space-between}\n\n.bIKna_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bIKna_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bIKna_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bIKna_qYhL{display:none}}");
20
20
  },
21
- 'topRow': 'fFmWj_qYhL',
22
- 'label': 'fFmWj_blJt',
23
- 'editButtonWrapper': 'fFmWj_UraS'
21
+ 'topRow': 'bIKna_qYhL',
22
+ 'flexContainer': 'bIKna_DlrZ',
23
+ 'label': 'bIKna_blJt',
24
+ 'editButtonWrapper': 'bIKna_UraS'
24
25
  };
25
26
  import theme from "./theme.js";
26
27
  import t from '@instructure/quiz-i18n/es/format-message'; // ======================================
@@ -108,6 +109,17 @@ export var QuizInstructions = (_dec = themeable(theme, styles), _dec(_class = (_
108
109
  value: function quizID() {
109
110
  return this.props.quiz.id;
110
111
  }
112
+ }, {
113
+ key: "isContentLocked",
114
+ value: function isContentLocked() {
115
+ var _this$props = this.props,
116
+ lockBlueprintContentEnabled = _this$props.lockBlueprintContentEnabled,
117
+ quiz = _this$props.quiz;
118
+ return lockBlueprintContentEnabled && quiz.originalQuizLockedByBlueprint;
119
+ } // =========
120
+ // actions
121
+ // =========
122
+
111
123
  }, {
112
124
  key: "saveWorkingInstructions",
113
125
  value: function saveWorkingInstructions() {
@@ -148,32 +160,36 @@ export var QuizInstructions = (_dec = themeable(theme, styles), _dec(_class = (_
148
160
  return;
149
161
  }
150
162
 
163
+ var contentLocked = this.props.quiz.originalQuizLockedByBlueprint;
151
164
  return /*#__PURE__*/React.createElement(QuizInstructionsShow, {
152
165
  ref: this.setRef('instructionsPreview'),
153
166
  instructions: this.props.quiz.instructions,
154
- switchOnEditing: this.props.switchOnEditing
167
+ switchOnEditing: this.props.switchOnEditing,
168
+ contentLocked: this.isContentLocked(),
169
+ scrollKey: contentLocked ? this.props.scrollKey : null
155
170
  });
156
171
  }
157
172
  }, {
158
173
  key: "render",
159
174
  value: function render() {
160
175
  return /*#__PURE__*/React.createElement("div", {
161
- tabIndex: "-1"
162
- }, /*#__PURE__*/React.createElement("div", {
176
+ tabIndex: "-1",
163
177
  className: styles.topRow
178
+ }, /*#__PURE__*/React.createElement("div", {
179
+ className: styles.flexContainer
164
180
  }, /*#__PURE__*/React.createElement("div", {
165
181
  className: styles.label
166
182
  }, /*#__PURE__*/React.createElement(Heading, {
167
183
  level: "h4",
168
184
  as: "h2"
169
- }, t('Instructions'))), !this.props.isEditing && /*#__PURE__*/React.createElement("div", {
185
+ }, t('Instructions'))), /*#__PURE__*/React.createElement("div", null, this.editingRender(), this.showRender())), /*#__PURE__*/React.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/React.createElement("div", {
170
186
  className: styles.editButtonWrapper
171
187
  }, /*#__PURE__*/React.createElement(EditButton, {
172
188
  screenreaderText: t('Edit Instructions'),
173
189
  scrollKey: this.props.scrollKey,
174
190
  onClick: this.toggleEditing,
175
191
  ref: this.setRef('editButton')
176
- }))), this.editingRender(), this.showRender());
192
+ }))));
177
193
  }
178
194
  }]);
179
195
 
@@ -184,6 +200,7 @@ export var QuizInstructions = (_dec = themeable(theme, styles), _dec(_class = (_
184
200
  clearModifications: PropTypes.func.isRequired,
185
201
  isEditing: PropTypes.bool.isRequired,
186
202
  // Injected by makeEditable
203
+ lockBlueprintContentEnabled: PropTypes.bool.isRequired,
187
204
  quiz: ImmutablePropTypes.record.isRequired,
188
205
  saveQuizChange: PropTypes.func.isRequired,
189
206
  screenreaderNotification: PropTypes.func.isRequired,
@@ -11,6 +11,7 @@ import { themeable } from '@instructure/ui-themeable';
11
11
  import { RichContentRenderer } from '@instructure/quiz-rce';
12
12
  import { isNewRCEEnabled } from "../../../../../../common/util/rceChecker.js";
13
13
  import Overlay from "../../../../../../common/components/shared/overlay/Overlay.js";
14
+ import makeScrollable from "../../../../../../common/components/shared/functionality/makeScrollable.js";
14
15
  var styles = {
15
16
  componentId: 'cCwUt',
16
17
  template: function template(theme) {
@@ -57,7 +58,8 @@ export var QuizInstructionsShow = (_dec = themeable(theme, styles), _dec(_class
57
58
  }, /*#__PURE__*/React.createElement(Overlay, {
58
59
  wrapperClassName: styles.instructionsShowWrapper,
59
60
  onClick: this.switchOnEditing,
60
- tabIndex: "-1"
61
+ tabIndex: "-1",
62
+ hideOverlay: this.props.contentLocked
61
63
  }, /*#__PURE__*/React.createElement("div", {
62
64
  "data-automation": "instructions-show-text"
63
65
  }, /*#__PURE__*/React.createElement(RichContentRenderer, {
@@ -72,6 +74,9 @@ export var QuizInstructionsShow = (_dec = themeable(theme, styles), _dec(_class
72
74
  return QuizInstructionsShow;
73
75
  }(Component), _class2.propTypes = {
74
76
  instructions: PropTypes.string.isRequired,
75
- switchOnEditing: PropTypes.func.isRequired
77
+ switchOnEditing: PropTypes.func.isRequired,
78
+ contentLocked: PropTypes.bool
79
+ }, _class2.defaultProps = {
80
+ contentLocked: false
76
81
  }, _temp)) || _class);
77
- export default QuizInstructionsShow;
82
+ export default makeScrollable(QuizInstructionsShow);
@@ -14,15 +14,15 @@ import defer from 'lodash/defer';
14
14
  import classNames from 'classnames';
15
15
  import { themeable } from '@instructure/ui-themeable';
16
16
  var styles = {
17
- componentId: 'cgmZU',
17
+ componentId: 'ciuec',
18
18
  template: function template(theme) {
19
- return "\n\n.cgmZU_eqoe{border-bottom:solid;border-color:".concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleEditWrapperLeftPadding || 'inherit', ";position:relative;width:100%}\n\n.cgmZU_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', ";width:80%}\n\n.cgmZU_dRxD,.cgmZU_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.cgmZU_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
19
+ return "\n\n.ciuec_eqoe{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleEditWrapperLeftPadding || 'inherit', ";padding-right:").concat(theme.titleEditWrapperRightPadding || 'inherit', ";position:relative;width:100%}\n\n.ciuec_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', "}\n\n.ciuec_dRxD,.ciuec_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.ciuec_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
20
20
  },
21
- 'titleEditWrapper': 'cgmZU_eqoe',
22
- 'titleEditInput': 'cgmZU_dwFS',
23
- 'errorsWrapper': 'cgmZU_dRxD',
24
- 'inputWrapper': 'cgmZU_dvSU',
25
- 'errorBorder': 'cgmZU_xXob'
21
+ 'titleEditWrapper': 'ciuec_eqoe',
22
+ 'titleEditInput': 'ciuec_dwFS',
23
+ 'errorsWrapper': 'ciuec_dRxD',
24
+ 'inputWrapper': 'ciuec_dvSU',
25
+ 'errorBorder': 'ciuec_xXob'
26
26
  };
27
27
  import theme from "./theme.js";
28
28
  import Errors from "../../../../../../common/components/shared/errors/Errors.js";
@@ -4,9 +4,8 @@ export default function generator(_ref) {
4
4
  typography = _ref.typography,
5
5
  borders = _ref.borders;
6
6
  return {
7
- titleEditWrapperBorderWidth: borders.widthSmall,
8
- titleEditWrapperBorderColor: colors.ash,
9
7
  titleEditWrapperLeftPadding: spacing.large,
8
+ titleEditWrapperRightPadding: spacing.large,
10
9
  titleEditInputFontFamily: typography.fontFamily,
11
10
  titleEditInputFontSize: typography.fontSizeXLarge,
12
11
  errorBorderMargin: spacing.xxSmall,
@@ -11,12 +11,13 @@ import { themeable } from '@instructure/ui-themeable';
11
11
  import { TruncateText } from '@instructure/ui-truncate-text';
12
12
  import { Text } from '@instructure/ui-text';
13
13
  import Overlay from "../../../../../../common/components/shared/overlay/Overlay.js";
14
+ import makeScrollable from "../../../../../../common/components/shared/functionality/makeScrollable.js";
14
15
  var styles = {
15
- componentId: 'eDyPC',
16
+ componentId: 'bTfJQ',
16
17
  template: function template(theme) {
17
- return "\n\n.eDyPC_VGME{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
18
+ return "\n\n.bTfJQ_VGME{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
18
19
  },
19
- 'titleShowWrapper': 'eDyPC_VGME'
20
+ 'titleShowWrapper': 'bTfJQ_VGME'
20
21
  };
21
22
  import theme from "./theme.js"; // ====================================
22
23
  // this component shows the quiz title
@@ -56,7 +57,8 @@ export var QuizTitleShow = (_dec = themeable(theme, styles), _dec(_class = (_tem
56
57
  }, /*#__PURE__*/React.createElement(Overlay, {
57
58
  wrapperClassName: styles.titleShowWrapper,
58
59
  onClick: this.switchOnEditing,
59
- tabIndex: "-1"
60
+ tabIndex: "-1",
61
+ hideOverlay: this.props.contentLocked
60
62
  }, /*#__PURE__*/React.createElement(Text, {
61
63
  color: "primary",
62
64
  size: "x-large"
@@ -70,6 +72,9 @@ export var QuizTitleShow = (_dec = themeable(theme, styles), _dec(_class = (_tem
70
72
  return QuizTitleShow;
71
73
  }(Component), _class2.propTypes = {
72
74
  defaultTitle: PropTypes.string.isRequired,
73
- switchOnEditing: PropTypes.func.isRequired
75
+ switchOnEditing: PropTypes.func.isRequired,
76
+ contentLocked: PropTypes.bool
77
+ }, _class2.defaultProps = {
78
+ contentLocked: false
74
79
  }, _temp)) || _class);
75
- export default QuizTitleShow;
80
+ export default makeScrollable(QuizTitleShow);
@@ -1,9 +1,6 @@
1
1
  export default function generator(_ref) {
2
- var borders = _ref.borders,
3
- colors = _ref.colors,
4
- spacing = _ref.spacing;
2
+ var spacing = _ref.spacing;
5
3
  return {
6
- titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
7
4
  titleShowWrapperLeftPadding: spacing.large
8
5
  };
9
6
  }
@@ -5,11 +5,13 @@ import { showError, hideError } from "../../../../../../common/actions/errorsSho
5
5
  import { changeQuizTitle } from "../../../../../../common/actions/modifications.js";
6
6
  import { saveQuizChange } from "../../../../../api/quizzes.js";
7
7
  import makeEditable from "../../../../../../common/components/shared/functionality/makeEditable.js";
8
+ import { featureOn } from "../../../../../../common/util/featureCheck.js";
8
9
  import Title from "./presenter.js";
9
10
 
10
11
  function mapStateToProps(state) {
11
12
  return {
12
- errorsShowing: state.get('errorsShowing')
13
+ errorsShowing: state.get('errorsShowing'),
14
+ lockBlueprintContentEnabled: featureOn('lock_blueprint_content')
13
15
  };
14
16
  }
15
17
 
@@ -15,13 +15,15 @@ import EditButton from "../../editButton/EditButton.js";
15
15
  import QuizTitleEdit from "../Edit/index.js";
16
16
  import QuizTitleShow from "../Show/index.js";
17
17
  var styles = {
18
- componentId: 'fFmWj',
18
+ componentId: 'bpmxb',
19
19
  template: function template(theme) {
20
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
20
+ return "\n\n.bpmxb_qYhL{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";display:flex;justify-content:space-between}\n\n.bpmxb_qYhL.bpmxb_cocM{border-bottom:solid;border-color:").concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', "}\n\n.bpmxb_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bpmxb_blJt{color:").concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bpmxb_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bpmxb_qYhL{display:none}}");
21
21
  },
22
- 'topRow': 'fFmWj_qYhL',
23
- 'label': 'fFmWj_blJt',
24
- 'editButtonWrapper': 'fFmWj_UraS'
22
+ 'topRow': 'bpmxb_qYhL',
23
+ 'editing': 'bpmxb_cocM',
24
+ 'flexContainer': 'bpmxb_DlrZ',
25
+ 'label': 'bpmxb_blJt',
26
+ 'editButtonWrapper': 'bpmxb_UraS'
25
27
  };
26
28
  import theme from "./theme.js";
27
29
  import t from '@instructure/quiz-i18n/es/format-message'; // ================================
@@ -106,6 +108,14 @@ export var QuizTitlePresenter = (_dec = themeable(theme, styles), _dec(_class =
106
108
  key: "isValid",
107
109
  value: function isValid() {
108
110
  return this.props.workingQuiz.isValid();
111
+ }
112
+ }, {
113
+ key: "isContentLocked",
114
+ value: function isContentLocked() {
115
+ var _this$props = this.props,
116
+ lockBlueprintContentEnabled = _this$props.lockBlueprintContentEnabled,
117
+ quiz = _this$props.quiz;
118
+ return lockBlueprintContentEnabled && quiz.originalQuizLockedByBlueprint;
109
119
  } // =========
110
120
  // actions
111
121
  // =========
@@ -138,23 +148,27 @@ export var QuizTitlePresenter = (_dec = themeable(theme, styles), _dec(_class =
138
148
  value: function renderShow() {
139
149
  return /*#__PURE__*/React.createElement(QuizTitleShow, {
140
150
  switchOnEditing: this.props.switchOnEditing,
141
- defaultTitle: this.workingTitle()
151
+ defaultTitle: this.workingTitle(),
152
+ contentLocked: this.isContentLocked(),
153
+ scrollKey: this.isContentLocked() ? this.props.scrollKey : null
142
154
  });
143
155
  }
144
156
  }, {
145
157
  key: "render",
146
158
  value: function render() {
159
+ var classnames = "".concat(styles.topRow, " ").concat(this.props.isEditing ? styles.editing : '');
147
160
  var content = this.props.isEditing ? this.renderEdit() : this.renderShow();
148
161
  return /*#__PURE__*/React.createElement("div", {
149
- tabIndex: "-1"
162
+ tabIndex: "-1",
163
+ className: classnames
150
164
  }, /*#__PURE__*/React.createElement("div", {
151
- className: styles.topRow
165
+ className: styles.flexContainer
152
166
  }, /*#__PURE__*/React.createElement("div", {
153
167
  className: styles.label
154
168
  }, /*#__PURE__*/React.createElement(Heading, {
155
169
  level: "h4",
156
170
  as: "h2"
157
- }, t('Title'))), !this.props.isEditing && /*#__PURE__*/React.createElement("div", {
171
+ }, t('Title'))), /*#__PURE__*/React.createElement("div", null, content)), /*#__PURE__*/React.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/React.createElement("div", {
158
172
  className: styles.editButtonWrapper
159
173
  }, /*#__PURE__*/React.createElement(EditButton, {
160
174
  ref: this.handleEditButtonRef,
@@ -162,7 +176,7 @@ export var QuizTitlePresenter = (_dec = themeable(theme, styles), _dec(_class =
162
176
  scrollKey: this.props.scrollKey,
163
177
  onClick: this.toggleEditing,
164
178
  "data-automation": "sdk-build-edit-title"
165
- }))), content);
179
+ }))));
166
180
  }
167
181
  }]);
168
182
 
@@ -174,6 +188,7 @@ export var QuizTitlePresenter = (_dec = themeable(theme, styles), _dec(_class =
174
188
  hideError: PropTypes.func.isRequired,
175
189
  isEditing: PropTypes.bool.isRequired,
176
190
  // injected by makeEditable
191
+ lockBlueprintContentEnabled: PropTypes.bool.isRequired,
177
192
  onQuizUpdated: PropTypes.func.isRequired,
178
193
  quiz: ImmutablePropTypes.record.isRequired,
179
194
  saveQuizChange: PropTypes.func.isRequired,
@@ -1,5 +1,6 @@
1
1
  export default function generator(_ref) {
2
- var typography = _ref.typography,
2
+ var borders = _ref.borders,
3
+ typography = _ref.typography,
3
4
  colors = _ref.colors,
4
5
  spacing = _ref.spacing;
5
6
  return {
@@ -8,6 +9,9 @@ export default function generator(_ref) {
8
9
  labelBottomPadding: spacing.xxSmall,
9
10
  labelFontSize: typography.fontSizeSmall,
10
11
  labelColor: colors.slate,
11
- editButtonWrapperRightMargin: spacing.large
12
+ editButtonWrapperRightMargin: spacing.large,
13
+ titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
14
+ titleEditWrapperBorderWidth: borders.widthSmall,
15
+ titleEditWrapperBorderColor: colors.ash
12
16
  };
13
17
  }
@@ -162,6 +162,7 @@ export var Quiz = (_dec = withStateCache(function (quiz) {
162
162
  itemAnalyses: List(),
163
163
  items: List(),
164
164
  oneAtATimeType: null,
165
+ originalQuizLockedByBlueprint: true,
165
166
  outcomeAlignmentSetGuid: null,
166
167
  owner: null,
167
168
  quizAnalysis: '0',
@@ -19,11 +19,14 @@ var _quizzes = require("../../../../../api/quizzes.js");
19
19
 
20
20
  var _makeEditable = _interopRequireDefault(require("../../../../../../common/components/shared/functionality/makeEditable.js"));
21
21
 
22
+ var _featureCheck = require("../../../../../../common/util/featureCheck.js");
23
+
22
24
  var _presenter = _interopRequireDefault(require("./presenter.js"));
23
25
 
24
26
  function mapStateToProps(state) {
25
27
  return {
26
- errorsShowing: state.get('errorsShowing')
28
+ errorsShowing: state.get('errorsShowing'),
29
+ lockBlueprintContentEnabled: (0, _featureCheck.featureOn)('lock_blueprint_content')
27
30
  };
28
31
  }
29
32
 
@@ -40,13 +40,14 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
40
40
  var _dec, _class, _class2, _temp;
41
41
 
42
42
  var styles = {
43
- componentId: 'fFmWj',
43
+ componentId: 'bIKna',
44
44
  template: function template(theme) {
45
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
45
+ return "\n\n.bIKna_qYhL{display:flex;justify-content:space-between}\n\n.bIKna_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bIKna_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bIKna_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bIKna_qYhL{display:none}}");
46
46
  },
47
- 'topRow': 'fFmWj_qYhL',
48
- 'label': 'fFmWj_blJt',
49
- 'editButtonWrapper': 'fFmWj_UraS'
47
+ 'topRow': 'bIKna_qYhL',
48
+ 'flexContainer': 'bIKna_DlrZ',
49
+ 'label': 'bIKna_blJt',
50
+ 'editButtonWrapper': 'bIKna_UraS'
50
51
  };
51
52
  // ======================================
52
53
  // renders the editable quiz instructions
@@ -132,6 +133,17 @@ var QuizInstructions = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
132
133
  value: function quizID() {
133
134
  return this.props.quiz.id;
134
135
  }
136
+ }, {
137
+ key: "isContentLocked",
138
+ value: function isContentLocked() {
139
+ var _this$props = this.props,
140
+ lockBlueprintContentEnabled = _this$props.lockBlueprintContentEnabled,
141
+ quiz = _this$props.quiz;
142
+ return lockBlueprintContentEnabled && quiz.originalQuizLockedByBlueprint;
143
+ } // =========
144
+ // actions
145
+ // =========
146
+
135
147
  }, {
136
148
  key: "saveWorkingInstructions",
137
149
  value: function saveWorkingInstructions() {
@@ -172,32 +184,36 @@ var QuizInstructions = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
172
184
  return;
173
185
  }
174
186
 
187
+ var contentLocked = this.props.quiz.originalQuizLockedByBlueprint;
175
188
  return /*#__PURE__*/_react.default.createElement(_index2.default, {
176
189
  ref: this.setRef('instructionsPreview'),
177
190
  instructions: this.props.quiz.instructions,
178
- switchOnEditing: this.props.switchOnEditing
191
+ switchOnEditing: this.props.switchOnEditing,
192
+ contentLocked: this.isContentLocked(),
193
+ scrollKey: contentLocked ? this.props.scrollKey : null
179
194
  });
180
195
  }
181
196
  }, {
182
197
  key: "render",
183
198
  value: function render() {
184
199
  return /*#__PURE__*/_react.default.createElement("div", {
185
- tabIndex: "-1"
186
- }, /*#__PURE__*/_react.default.createElement("div", {
200
+ tabIndex: "-1",
187
201
  className: styles.topRow
202
+ }, /*#__PURE__*/_react.default.createElement("div", {
203
+ className: styles.flexContainer
188
204
  }, /*#__PURE__*/_react.default.createElement("div", {
189
205
  className: styles.label
190
206
  }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
191
207
  level: "h4",
192
208
  as: "h2"
193
- }, (0, _formatMessage.default)('Instructions'))), !this.props.isEditing && /*#__PURE__*/_react.default.createElement("div", {
209
+ }, (0, _formatMessage.default)('Instructions'))), /*#__PURE__*/_react.default.createElement("div", null, this.editingRender(), this.showRender())), /*#__PURE__*/_react.default.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/_react.default.createElement("div", {
194
210
  className: styles.editButtonWrapper
195
211
  }, /*#__PURE__*/_react.default.createElement(_EditButton.default, {
196
212
  screenreaderText: (0, _formatMessage.default)('Edit Instructions'),
197
213
  scrollKey: this.props.scrollKey,
198
214
  onClick: this.toggleEditing,
199
215
  ref: this.setRef('editButton')
200
- }))), this.editingRender(), this.showRender());
216
+ }))));
201
217
  }
202
218
  }]);
203
219
  QuizInstructions.displayName = "QuizInstructions";
@@ -207,6 +223,7 @@ var QuizInstructions = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
207
223
  clearModifications: _propTypes.default.func.isRequired,
208
224
  isEditing: _propTypes.default.bool.isRequired,
209
225
  // Injected by makeEditable
226
+ lockBlueprintContentEnabled: _propTypes.default.bool.isRequired,
210
227
  quiz: _reactImmutableProptypes.default.record.isRequired,
211
228
  saveQuizChange: _propTypes.default.func.isRequired,
212
229
  screenreaderNotification: _propTypes.default.func.isRequired,
@@ -29,6 +29,8 @@ var _rceChecker = require("../../../../../../common/util/rceChecker.js");
29
29
 
30
30
  var _Overlay = _interopRequireDefault(require("../../../../../../common/components/shared/overlay/Overlay.js"));
31
31
 
32
+ var _makeScrollable = _interopRequireDefault(require("../../../../../../common/components/shared/functionality/makeScrollable.js"));
33
+
32
34
  var _theme = _interopRequireDefault(require("./theme.js"));
33
35
 
34
36
  var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
@@ -79,7 +81,8 @@ var QuizInstructionsShow = (_dec = (0, _uiThemeable.themeable)(_theme.default, s
79
81
  }, /*#__PURE__*/_react.default.createElement(_Overlay.default, {
80
82
  wrapperClassName: styles.instructionsShowWrapper,
81
83
  onClick: this.switchOnEditing,
82
- tabIndex: "-1"
84
+ tabIndex: "-1",
85
+ hideOverlay: this.props.contentLocked
83
86
  }, /*#__PURE__*/_react.default.createElement("div", {
84
87
  "data-automation": "instructions-show-text"
85
88
  }, /*#__PURE__*/_react.default.createElement(_quizRce.RichContentRenderer, {
@@ -93,8 +96,13 @@ var QuizInstructionsShow = (_dec = (0, _uiThemeable.themeable)(_theme.default, s
93
96
  return QuizInstructionsShow;
94
97
  }(_react.Component), _class2.propTypes = {
95
98
  instructions: _propTypes.default.string.isRequired,
96
- switchOnEditing: _propTypes.default.func.isRequired
99
+ switchOnEditing: _propTypes.default.func.isRequired,
100
+ contentLocked: _propTypes.default.bool
101
+ }, _class2.defaultProps = {
102
+ contentLocked: false
97
103
  }, _temp)) || _class);
98
104
  exports.QuizInstructionsShow = QuizInstructionsShow;
99
- var _default = QuizInstructionsShow;
105
+
106
+ var _default = (0, _makeScrollable.default)(QuizInstructionsShow);
107
+
100
108
  exports.default = _default;
@@ -42,15 +42,15 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
42
42
  var _dec, _class, _class2, _temp;
43
43
 
44
44
  var styles = {
45
- componentId: 'cgmZU',
45
+ componentId: 'ciuec',
46
46
  template: function template(theme) {
47
- return "\n\n.cgmZU_eqoe{border-bottom:solid;border-color:".concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleEditWrapperLeftPadding || 'inherit', ";position:relative;width:100%}\n\n.cgmZU_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', ";width:80%}\n\n.cgmZU_dRxD,.cgmZU_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.cgmZU_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
47
+ return "\n\n.ciuec_eqoe{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleEditWrapperLeftPadding || 'inherit', ";padding-right:").concat(theme.titleEditWrapperRightPadding || 'inherit', ";position:relative;width:100%}\n\n.ciuec_dwFS{font-family:").concat(theme.titleEditInputFontFamily || 'inherit', ";font-size:").concat(theme.titleEditInputFontSize || 'inherit', "}\n\n.ciuec_dRxD,.ciuec_dvSU{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%}\n\n.ciuec_xXob{border:solid 1px ").concat(theme.errorBorderColor || 'inherit', ";border-radius:").concat(theme.errorBorderBorderRadius || 'inherit', ";margin:").concat(theme.errorBorderMargin || 'inherit', ";padding:").concat(theme.errorBorderPadding || 'inherit', "}");
48
48
  },
49
- 'titleEditWrapper': 'cgmZU_eqoe',
50
- 'titleEditInput': 'cgmZU_dwFS',
51
- 'errorsWrapper': 'cgmZU_dRxD',
52
- 'inputWrapper': 'cgmZU_dvSU',
53
- 'errorBorder': 'cgmZU_xXob'
49
+ 'titleEditWrapper': 'ciuec_eqoe',
50
+ 'titleEditInput': 'ciuec_dwFS',
51
+ 'errorsWrapper': 'ciuec_dRxD',
52
+ 'inputWrapper': 'ciuec_dvSU',
53
+ 'errorBorder': 'ciuec_xXob'
54
54
  };
55
55
  // =================================
56
56
  // once editing is toggled this div
@@ -11,9 +11,8 @@ function generator(_ref) {
11
11
  typography = _ref.typography,
12
12
  borders = _ref.borders;
13
13
  return {
14
- titleEditWrapperBorderWidth: borders.widthSmall,
15
- titleEditWrapperBorderColor: colors.ash,
16
14
  titleEditWrapperLeftPadding: spacing.large,
15
+ titleEditWrapperRightPadding: spacing.large,
17
16
  titleEditInputFontFamily: typography.fontFamily,
18
17
  titleEditInputFontSize: typography.fontSizeXLarge,
19
18
  errorBorderMargin: spacing.xxSmall,
@@ -29,16 +29,18 @@ var _uiText = require("@instructure/ui-text");
29
29
 
30
30
  var _Overlay = _interopRequireDefault(require("../../../../../../common/components/shared/overlay/Overlay.js"));
31
31
 
32
+ var _makeScrollable = _interopRequireDefault(require("../../../../../../common/components/shared/functionality/makeScrollable.js"));
33
+
32
34
  var _theme = _interopRequireDefault(require("./theme.js"));
33
35
 
34
36
  var _dec, _class, _class2, _temp;
35
37
 
36
38
  var styles = {
37
- componentId: 'eDyPC',
39
+ componentId: 'bTfJQ',
38
40
  template: function template(theme) {
39
- return "\n\n.eDyPC_VGME{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:").concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
41
+ return "\n\n.bTfJQ_VGME{box-sizing:border-box;display:flex;flex-direction:column;height:5rem;justify-content:center;padding-left:".concat(theme.titleShowWrapperLeftPadding || 'inherit', ";position:relative;width:100%}");
40
42
  },
41
- 'titleShowWrapper': 'eDyPC_VGME'
43
+ 'titleShowWrapper': 'bTfJQ_VGME'
42
44
  };
43
45
  // ====================================
44
46
  // this component shows the quiz title
@@ -77,7 +79,8 @@ var QuizTitleShow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
77
79
  }, /*#__PURE__*/_react.default.createElement(_Overlay.default, {
78
80
  wrapperClassName: styles.titleShowWrapper,
79
81
  onClick: this.switchOnEditing,
80
- tabIndex: "-1"
82
+ tabIndex: "-1",
83
+ hideOverlay: this.props.contentLocked
81
84
  }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
82
85
  color: "primary",
83
86
  size: "x-large"
@@ -90,8 +93,13 @@ var QuizTitleShow = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
90
93
  return QuizTitleShow;
91
94
  }(_react.Component), _class2.propTypes = {
92
95
  defaultTitle: _propTypes.default.string.isRequired,
93
- switchOnEditing: _propTypes.default.func.isRequired
96
+ switchOnEditing: _propTypes.default.func.isRequired,
97
+ contentLocked: _propTypes.default.bool
98
+ }, _class2.defaultProps = {
99
+ contentLocked: false
94
100
  }, _temp)) || _class);
95
101
  exports.QuizTitleShow = QuizTitleShow;
96
- var _default = QuizTitleShow;
102
+
103
+ var _default = (0, _makeScrollable.default)(QuizTitleShow);
104
+
97
105
  exports.default = _default;
@@ -6,11 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = generator;
7
7
 
8
8
  function generator(_ref) {
9
- var borders = _ref.borders,
10
- colors = _ref.colors,
11
- spacing = _ref.spacing;
9
+ var spacing = _ref.spacing;
12
10
  return {
13
- titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
14
11
  titleShowWrapperLeftPadding: spacing.large
15
12
  };
16
13
  }
@@ -21,11 +21,14 @@ var _quizzes = require("../../../../../api/quizzes.js");
21
21
 
22
22
  var _makeEditable = _interopRequireDefault(require("../../../../../../common/components/shared/functionality/makeEditable.js"));
23
23
 
24
+ var _featureCheck = require("../../../../../../common/util/featureCheck.js");
25
+
24
26
  var _presenter = _interopRequireDefault(require("./presenter.js"));
25
27
 
26
28
  function mapStateToProps(state) {
27
29
  return {
28
- errorsShowing: state.get('errorsShowing')
30
+ errorsShowing: state.get('errorsShowing'),
31
+ lockBlueprintContentEnabled: (0, _featureCheck.featureOn)('lock_blueprint_content')
29
32
  };
30
33
  }
31
34
 
@@ -42,13 +42,15 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
42
42
  var _dec, _class, _class2, _temp;
43
43
 
44
44
  var styles = {
45
- componentId: 'fFmWj',
45
+ componentId: 'bpmxb',
46
46
  template: function template(theme) {
47
- return "\n\n.fFmWj_qYhL{display:flex;justify-content:space-between}\n\n.fFmWj_blJt{color:".concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.fFmWj_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', "}\n\n@media print{.fFmWj_qYhL{display:none}}");
47
+ return "\n\n.bpmxb_qYhL{border-bottom:".concat(theme.titleShowWrapperBottomBorder || 'inherit', ";display:flex;justify-content:space-between}\n\n.bpmxb_qYhL.bpmxb_cocM{border-bottom:solid;border-color:").concat(theme.titleEditWrapperBorderColor || 'inherit', ";border-width:").concat(theme.titleEditWrapperBorderWidth || 'inherit', "}\n\n.bpmxb_DlrZ{display:flex;flex-direction:column;flex-grow:1;min-width:0}\n\n.bpmxb_blJt{color:").concat(theme.labelColor || 'inherit', ";font-size:").concat(theme.labelFontSize || 'inherit', ";padding:").concat(theme.labelPadding || 'inherit', ";padding-bottom:").concat(theme.labelBottomPadding || 'inherit', ";padding-left:").concat(theme.labelLeftPadding || 'inherit', "}\n\n.bpmxb_UraS{align-self:flex-end;margin-right:").concat(theme.editButtonWrapperRightMargin || 'inherit', ";padding-top:").concat(theme.labelPadding || 'inherit', "}\n\n@media print{.bpmxb_qYhL{display:none}}");
48
48
  },
49
- 'topRow': 'fFmWj_qYhL',
50
- 'label': 'fFmWj_blJt',
51
- 'editButtonWrapper': 'fFmWj_UraS'
49
+ 'topRow': 'bpmxb_qYhL',
50
+ 'editing': 'bpmxb_cocM',
51
+ 'flexContainer': 'bpmxb_DlrZ',
52
+ 'label': 'bpmxb_blJt',
53
+ 'editButtonWrapper': 'bpmxb_UraS'
52
54
  };
53
55
  // ================================
54
56
  // renders the editable quiz title
@@ -131,6 +133,14 @@ var QuizTitlePresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default, sty
131
133
  key: "isValid",
132
134
  value: function isValid() {
133
135
  return this.props.workingQuiz.isValid();
136
+ }
137
+ }, {
138
+ key: "isContentLocked",
139
+ value: function isContentLocked() {
140
+ var _this$props = this.props,
141
+ lockBlueprintContentEnabled = _this$props.lockBlueprintContentEnabled,
142
+ quiz = _this$props.quiz;
143
+ return lockBlueprintContentEnabled && quiz.originalQuizLockedByBlueprint;
134
144
  } // =========
135
145
  // actions
136
146
  // =========
@@ -163,23 +173,27 @@ var QuizTitlePresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default, sty
163
173
  value: function renderShow() {
164
174
  return /*#__PURE__*/_react.default.createElement(_index2.default, {
165
175
  switchOnEditing: this.props.switchOnEditing,
166
- defaultTitle: this.workingTitle()
176
+ defaultTitle: this.workingTitle(),
177
+ contentLocked: this.isContentLocked(),
178
+ scrollKey: this.isContentLocked() ? this.props.scrollKey : null
167
179
  });
168
180
  }
169
181
  }, {
170
182
  key: "render",
171
183
  value: function render() {
184
+ var classnames = "".concat(styles.topRow, " ").concat(this.props.isEditing ? styles.editing : '');
172
185
  var content = this.props.isEditing ? this.renderEdit() : this.renderShow();
173
186
  return /*#__PURE__*/_react.default.createElement("div", {
174
- tabIndex: "-1"
187
+ tabIndex: "-1",
188
+ className: classnames
175
189
  }, /*#__PURE__*/_react.default.createElement("div", {
176
- className: styles.topRow
190
+ className: styles.flexContainer
177
191
  }, /*#__PURE__*/_react.default.createElement("div", {
178
192
  className: styles.label
179
193
  }, /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
180
194
  level: "h4",
181
195
  as: "h2"
182
- }, (0, _formatMessage.default)('Title'))), !this.props.isEditing && /*#__PURE__*/_react.default.createElement("div", {
196
+ }, (0, _formatMessage.default)('Title'))), /*#__PURE__*/_react.default.createElement("div", null, content)), /*#__PURE__*/_react.default.createElement("div", null, !this.props.isEditing && !this.isContentLocked() && /*#__PURE__*/_react.default.createElement("div", {
183
197
  className: styles.editButtonWrapper
184
198
  }, /*#__PURE__*/_react.default.createElement(_EditButton.default, {
185
199
  ref: this.handleEditButtonRef,
@@ -187,7 +201,7 @@ var QuizTitlePresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default, sty
187
201
  scrollKey: this.props.scrollKey,
188
202
  onClick: this.toggleEditing,
189
203
  "data-automation": "sdk-build-edit-title"
190
- }))), content);
204
+ }))));
191
205
  }
192
206
  }]);
193
207
  QuizTitlePresenter.displayName = "QuizTitlePresenter";
@@ -198,6 +212,7 @@ var QuizTitlePresenter = (_dec = (0, _uiThemeable.themeable)(_theme.default, sty
198
212
  hideError: _propTypes.default.func.isRequired,
199
213
  isEditing: _propTypes.default.bool.isRequired,
200
214
  // injected by makeEditable
215
+ lockBlueprintContentEnabled: _propTypes.default.bool.isRequired,
201
216
  onQuizUpdated: _propTypes.default.func.isRequired,
202
217
  quiz: _reactImmutableProptypes.default.record.isRequired,
203
218
  saveQuizChange: _propTypes.default.func.isRequired,
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = generator;
7
7
 
8
8
  function generator(_ref) {
9
- var typography = _ref.typography,
9
+ var borders = _ref.borders,
10
+ typography = _ref.typography,
10
11
  colors = _ref.colors,
11
12
  spacing = _ref.spacing;
12
13
  return {
@@ -15,6 +16,9 @@ function generator(_ref) {
15
16
  labelBottomPadding: spacing.xxSmall,
16
17
  labelFontSize: typography.fontSizeSmall,
17
18
  labelColor: colors.slate,
18
- editButtonWrapperRightMargin: spacing.large
19
+ editButtonWrapperRightMargin: spacing.large,
20
+ titleShowWrapperBottomBorder: "".concat(borders.widthMedium, " ").concat(borders.style, " ").concat(colors.porcelain),
21
+ titleEditWrapperBorderWidth: borders.widthSmall,
22
+ titleEditWrapperBorderColor: colors.ash
19
23
  };
20
24
  }
@@ -184,6 +184,7 @@ var Quiz = (_dec = (0, _withStateCache.default)(function (quiz) {
184
184
  itemAnalyses: (0, _immutable.List)(),
185
185
  items: (0, _immutable.List)(),
186
186
  oneAtATimeType: null,
187
+ originalQuizLockedByBlueprint: true,
187
188
  outcomeAlignmentSetGuid: null,
188
189
  owner: null,
189
190
  quizAnalysis: '0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.40.1-rc.1+bb1f07cf2",
3
+ "version": "17.40.1-rc.11+42d5cf4c3",
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.40.1-rc.1+bb1f07cf2",
45
- "@instructure/quiz-i18n": "17.40.1-rc.1+bb1f07cf2",
46
- "@instructure/quiz-interactions": "17.40.1-rc.1+bb1f07cf2",
47
- "@instructure/quiz-number-input": "17.40.1-rc.1+bb1f07cf2",
48
- "@instructure/quiz-rce": "17.40.1-rc.1+bb1f07cf2",
44
+ "@instructure/quiz-common": "17.40.1-rc.11+42d5cf4c3",
45
+ "@instructure/quiz-i18n": "17.40.1-rc.11+42d5cf4c3",
46
+ "@instructure/quiz-interactions": "17.40.1-rc.11+42d5cf4c3",
47
+ "@instructure/quiz-number-input": "17.40.1-rc.11+42d5cf4c3",
48
+ "@instructure/quiz-rce": "17.40.1-rc.11+42d5cf4c3",
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.40.1-rc.1+bb1f07cf2",
109
+ "instructure-validations": "17.40.1-rc.11+42d5cf4c3",
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.40.1-rc.1+bb1f07cf2",
140
+ "@instructure/quiz-scripts": "17.40.1-rc.11+42d5cf4c3",
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.40.1-rc.1+bb1f07cf2",
159
+ "quiz-presets": "17.40.1-rc.11+42d5cf4c3",
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": "bb1f07cf2eb6c0400ccd6865552d01ed03929267"
175
+ "gitHead": "42d5cf4c315966098f32e6e13da2b79165980afd"
176
176
  }