@instructure/quiz-core 17.55.0 → 17.55.1-rc.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.
@@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
10
10
  import { Button } from '@instructure/ui-buttons';
11
11
  import { Menu } from '@instructure/ui-menu';
12
12
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
13
- import { IconMoreSolid, IconImportLine, IconBankLine, IconPrinterLine, IconSpeedGraderLine } from '@instructure/ui-icons';
13
+ import { IconExportLine, IconMoreSolid, IconImportLine, IconBankLine, IconPrinterLine, IconSpeedGraderLine } from '@instructure/ui-icons';
14
14
  import PrintTrigger from "../../../../../common/components/shared/PrintTrigger/index.js";
15
15
  import { PRINT_CURRENT_PAGE, PRINT_BLANK } from '@instructure/quiz-common';
16
16
  import { themeable } from '@instructure/ui-themeable';
@@ -93,6 +93,16 @@ export var BuildingButtons = (_dec = themeable(theme, styles), _dec(_class = (_t
93
93
  "data-automation": "sdk-import-content-icon"
94
94
  }), t('Import Content')));
95
95
 
96
+ if (this.props.contentExportEnabled) {
97
+ menuItems.push( /*#__PURE__*/React.createElement(Menu.Item, {
98
+ key: "export",
99
+ "data-automation": "sdk-export-content-menuitem"
100
+ }, /*#__PURE__*/React.createElement(IconExportLine, {
101
+ className: styles.menuIcon,
102
+ "data-automation": "sdk-export-content-icon"
103
+ }), t('Export Content')));
104
+ }
105
+
96
106
  if (this.props.enableItemBanking) {
97
107
  menuItems.push( /*#__PURE__*/React.createElement(Menu.Item, {
98
108
  key: "banks",
@@ -165,6 +175,7 @@ export var BuildingButtons = (_dec = themeable(theme, styles), _dec(_class = (_t
165
175
  }(Component), _class2.propTypes = {
166
176
  app: PropTypes.string,
167
177
  canImport: PropTypes.bool.isRequired,
178
+ contentExportEnabled: PropTypes.bool,
168
179
  enableItemBanking: PropTypes.bool,
169
180
  hasQuestions: PropTypes.bool.isRequired,
170
181
  isEditing: PropTypes.bool.isRequired,
@@ -178,6 +189,7 @@ export var BuildingButtons = (_dec = themeable(theme, styles), _dec(_class = (_t
178
189
  speedgraderLink: PropTypes.string
179
190
  }, _class2.defaultProps = {
180
191
  app: null,
192
+ contentExportEnabled: false,
181
193
  enableItemBanking: true,
182
194
  quizSaving: false,
183
195
  speedgraderLink: null
@@ -118,6 +118,16 @@ var BuildingButtons = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
118
118
  "data-automation": "sdk-import-content-icon"
119
119
  }), (0, _formatMessage.default)('Import Content')));
120
120
 
121
+ if (this.props.contentExportEnabled) {
122
+ menuItems.push( /*#__PURE__*/_react.default.createElement(_uiMenu.Menu.Item, {
123
+ key: "export",
124
+ "data-automation": "sdk-export-content-menuitem"
125
+ }, /*#__PURE__*/_react.default.createElement(_uiIcons.IconExportLine, {
126
+ className: styles.menuIcon,
127
+ "data-automation": "sdk-export-content-icon"
128
+ }), (0, _formatMessage.default)('Export Content')));
129
+ }
130
+
121
131
  if (this.props.enableItemBanking) {
122
132
  menuItems.push( /*#__PURE__*/_react.default.createElement(_uiMenu.Menu.Item, {
123
133
  key: "banks",
@@ -189,6 +199,7 @@ var BuildingButtons = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
189
199
  }(_react.Component), _class2.propTypes = {
190
200
  app: _propTypes.default.string,
191
201
  canImport: _propTypes.default.bool.isRequired,
202
+ contentExportEnabled: _propTypes.default.bool,
192
203
  enableItemBanking: _propTypes.default.bool,
193
204
  hasQuestions: _propTypes.default.bool.isRequired,
194
205
  isEditing: _propTypes.default.bool.isRequired,
@@ -202,6 +213,7 @@ var BuildingButtons = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
202
213
  speedgraderLink: _propTypes.default.string
203
214
  }, _class2.defaultProps = {
204
215
  app: null,
216
+ contentExportEnabled: false,
205
217
  enableItemBanking: true,
206
218
  quizSaving: false,
207
219
  speedgraderLink: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.55.0",
3
+ "version": "17.55.1-rc.1+3c5a8d589",
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.8",
44
- "@instructure/quiz-common": "^17.55.0",
45
- "@instructure/quiz-i18n": "^17.55.0",
46
- "@instructure/quiz-interactions": "^17.55.0",
47
- "@instructure/quiz-number-input": "^17.55.0",
48
- "@instructure/quiz-rce": "^17.55.0",
44
+ "@instructure/quiz-common": "17.55.1-rc.1+3c5a8d589",
45
+ "@instructure/quiz-i18n": "17.55.1-rc.1+3c5a8d589",
46
+ "@instructure/quiz-interactions": "17.55.1-rc.1+3c5a8d589",
47
+ "@instructure/quiz-number-input": "17.55.1-rc.1+3c5a8d589",
48
+ "@instructure/quiz-rce": "17.55.1-rc.1+3c5a8d589",
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.55.0",
109
+ "instructure-validations": "17.55.1-rc.1+3c5a8d589",
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.55.0",
140
+ "@instructure/quiz-scripts": "17.55.0",
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.55.0",
159
+ "quiz-presets": "17.55.1-rc.1+3c5a8d589",
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": "7dec40aac3f3f01559d44afe2925bbc6108e94c0"
175
+ "gitHead": "3c5a8d5898a2ae914c95d94ae237562e4a4e8e09"
176
176
  }