@instructure/quiz-core 17.44.1-rc.2 → 17.44.1-rc.5
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/common/components/resources/quiz/AddContent/Button/index.js +2 -1
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +5 -3
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +2 -1
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +5 -3
- package/package.json +9 -9
|
@@ -78,7 +78,8 @@ export var AddContentButton = (_dec = themeable(theme, styles), _dec(_class = (_
|
|
|
78
78
|
ref: this.storeButtonElemRef,
|
|
79
79
|
onClick: this.props.onClick,
|
|
80
80
|
className: buttonClasses,
|
|
81
|
-
"data-automation": "sdk-add-content-button"
|
|
81
|
+
"data-automation": "sdk-add-content-button",
|
|
82
|
+
"aria-expanded": this.props.isEditing
|
|
82
83
|
}, /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Add Content')), /*#__PURE__*/React.createElement(PresentationContent, null, /*#__PURE__*/React.createElement(IconPlusLine, {
|
|
83
84
|
title: t('Add Content')
|
|
84
85
|
}))));
|
|
@@ -64,7 +64,7 @@ export var AddContentPopover = (_dec = themeable(theme, styles), _dec(_class = (
|
|
|
64
64
|
show: _this.props.isEditing,
|
|
65
65
|
shouldCloseOnEscape: true,
|
|
66
66
|
shouldContainFocus: true
|
|
67
|
-
}, /*#__PURE__*/React.createElement(Popover.Trigger, null,
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Popover.Trigger, null, _this.renderAddContentButton()), /*#__PURE__*/React.createElement(Popover.Content, null, /*#__PURE__*/React.createElement(AddContentBody, {
|
|
68
68
|
allowStimulusCreation: _this.props.allowStimulusCreation,
|
|
69
69
|
onOpenBankTray: _this.props.switchOffEditing,
|
|
70
70
|
onAddItem: _this.props.switchOffEditing,
|
|
@@ -63,14 +63,16 @@ export var StimulusEdit = (_dec = themeable(theme, styles), _dec(_class = (_temp
|
|
|
63
63
|
|
|
64
64
|
_this.clearModifications = function () {
|
|
65
65
|
_this.props.clearModifications('stimuli', _this.props.stimulus.id);
|
|
66
|
-
};
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
_this.props.hideError(_this.props.guid);
|
|
67
|
+
_this.props.clearModifications('quizEntries', _this.props.quizEntry.id);
|
|
70
68
|
|
|
71
69
|
if (_this.props.stimulus.isTemporary()) {
|
|
72
70
|
_this.props.clearTemporaryStimulus(_this.props.quizId);
|
|
73
71
|
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
_this.onCancel = function (e) {
|
|
75
|
+
_this.props.hideError(_this.props.guid);
|
|
74
76
|
|
|
75
77
|
_this.props.switchOffEditing();
|
|
76
78
|
|
|
@@ -102,7 +102,8 @@ var AddContentButton = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
|
|
|
102
102
|
ref: this.storeButtonElemRef,
|
|
103
103
|
onClick: this.props.onClick,
|
|
104
104
|
className: buttonClasses,
|
|
105
|
-
"data-automation": "sdk-add-content-button"
|
|
105
|
+
"data-automation": "sdk-add-content-button",
|
|
106
|
+
"aria-expanded": this.props.isEditing
|
|
106
107
|
}, /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Add Content')), /*#__PURE__*/_react.default.createElement(_uiA11yContent.PresentationContent, null, /*#__PURE__*/_react.default.createElement(_uiIcons.IconPlusLine, {
|
|
107
108
|
title: (0, _formatMessage.default)('Add Content')
|
|
108
109
|
}))));
|
|
@@ -89,7 +89,7 @@ var AddContentPopover = (_dec = (0, _uiThemeable.themeable)(_theme.default, styl
|
|
|
89
89
|
show: _this.props.isEditing,
|
|
90
90
|
shouldCloseOnEscape: true,
|
|
91
91
|
shouldContainFocus: true
|
|
92
|
-
}, /*#__PURE__*/_react.default.createElement(_uiPopover.Popover.Trigger, null,
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_uiPopover.Popover.Trigger, null, _this.renderAddContentButton()), /*#__PURE__*/_react.default.createElement(_uiPopover.Popover.Content, null, /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
93
93
|
allowStimulusCreation: _this.props.allowStimulusCreation,
|
|
94
94
|
onOpenBankTray: _this.props.switchOffEditing,
|
|
95
95
|
onAddItem: _this.props.switchOffEditing,
|
|
@@ -100,14 +100,16 @@ var StimulusEdit = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles),
|
|
|
100
100
|
|
|
101
101
|
_this.clearModifications = function () {
|
|
102
102
|
_this.props.clearModifications('stimuli', _this.props.stimulus.id);
|
|
103
|
-
};
|
|
104
103
|
|
|
105
|
-
|
|
106
|
-
_this.props.hideError(_this.props.guid);
|
|
104
|
+
_this.props.clearModifications('quizEntries', _this.props.quizEntry.id);
|
|
107
105
|
|
|
108
106
|
if (_this.props.stimulus.isTemporary()) {
|
|
109
107
|
_this.props.clearTemporaryStimulus(_this.props.quizId);
|
|
110
108
|
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
_this.onCancel = function (e) {
|
|
112
|
+
_this.props.hideError(_this.props.guid);
|
|
111
113
|
|
|
112
114
|
_this.props.switchOffEditing();
|
|
113
115
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.44.1-rc.
|
|
3
|
+
"version": "17.44.1-rc.5+a629e855e",
|
|
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.44.1-rc.
|
|
45
|
-
"@instructure/quiz-i18n": "17.44.1-rc.
|
|
46
|
-
"@instructure/quiz-interactions": "17.44.1-rc.
|
|
47
|
-
"@instructure/quiz-number-input": "17.44.1-rc.
|
|
48
|
-
"@instructure/quiz-rce": "17.44.1-rc.
|
|
44
|
+
"@instructure/quiz-common": "17.44.1-rc.5+a629e855e",
|
|
45
|
+
"@instructure/quiz-i18n": "17.44.1-rc.5+a629e855e",
|
|
46
|
+
"@instructure/quiz-interactions": "17.44.1-rc.5+a629e855e",
|
|
47
|
+
"@instructure/quiz-number-input": "17.44.1-rc.5+a629e855e",
|
|
48
|
+
"@instructure/quiz-rce": "17.44.1-rc.5+a629e855e",
|
|
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.44.1-rc.
|
|
109
|
+
"instructure-validations": "17.44.1-rc.5+a629e855e",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.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.44.1-rc.
|
|
159
|
+
"quiz-presets": "17.44.1-rc.5+a629e855e",
|
|
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": "
|
|
175
|
+
"gitHead": "a629e855e5c14e89a33388bf9f00971a0d2e9d68"
|
|
176
176
|
}
|