@pie-element/rubric 4.1.6-next.3 → 4.2.1-next.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.
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.0.13/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.12/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.13/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -8116,6 +8116,7 @@ var Collapse = getDefaultExportFromCjs(Collapse$3);
8116
8116
  const React$1 = _dll_react;
8117
8117
  const PropTypes = _dll_prop_types;
8118
8118
  const {color: color} = _dll_pie_lib__pie_toolbox_render_ui;
8119
+ const {UiLayout: UiLayout} = _dll_pie_lib__pie_toolbox_render_ui;
8119
8120
  const _jsxFileName = "/home/circleci/repo/packages/rubric/src/main.jsx";
8120
8121
  const RubricType = PropTypes.shape({
8121
8122
  excludeZero: PropTypes.bool,
@@ -8140,6 +8141,7 @@ class Rubric extends React$1.Component {
8140
8141
  static __initStatic() {
8141
8142
  this.propTypes = {
8142
8143
  classes: PropTypes.object.isRequired,
8144
+ model: PropTypes.object.isRequired,
8143
8145
  animationsDisabled: PropTypes.bool,
8144
8146
  value: RubricType
8145
8147
  };
@@ -8162,17 +8164,18 @@ class Rubric extends React$1.Component {
8162
8164
  };
8163
8165
  }
8164
8166
  render() {
8165
- const {value, classes} = this.props;
8167
+ const {model, value, classes} = this.props;
8166
8168
  let {animationsDisabled} = this.props;
8167
8169
  animationsDisabled = animationsDisabled || value.animationsDisabled;
8168
8170
  if (value && value.points) {
8171
+ const {extraCSSRules} = model || ({});
8169
8172
  const {points, sampleAnswers} = value;
8170
8173
  const rubricList = React$1.createElement(List, {
8171
8174
  component: "nav",
8172
8175
  __self: this,
8173
8176
  __source: {
8174
8177
  fileName: _jsxFileName,
8175
- lineNumber: 58
8178
+ lineNumber: 60
8176
8179
  }
8177
8180
  }, points.slice(0).reverse().map((desc, index) => {
8178
8181
  index = points.length - index - 1;
@@ -8182,14 +8185,14 @@ class Rubric extends React$1.Component {
8182
8185
  __self: this,
8183
8186
  __source: {
8184
8187
  fileName: _jsxFileName,
8185
- lineNumber: 67
8188
+ lineNumber: 69
8186
8189
  }
8187
8190
  }, React$1.createElement(ListItem, {
8188
8191
  key: `P${index}`,
8189
8192
  __self: this,
8190
8193
  __source: {
8191
8194
  fileName: _jsxFileName,
8192
- lineNumber: 68
8195
+ lineNumber: 70
8193
8196
  }
8194
8197
  }, React$1.createElement(ListItemText, {
8195
8198
  className: classes.rubricCol,
@@ -8198,13 +8201,13 @@ class Rubric extends React$1.Component {
8198
8201
  __self: this,
8199
8202
  __source: {
8200
8203
  fileName: _jsxFileName,
8201
- lineNumber: 71
8204
+ lineNumber: 73
8202
8205
  }
8203
8206
  }, pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`),
8204
8207
  __self: this,
8205
8208
  __source: {
8206
8209
  fileName: _jsxFileName,
8207
- lineNumber: 69
8210
+ lineNumber: 71
8208
8211
  }
8209
8212
  }), React$1.createElement(ListItemText, {
8210
8213
  primary: React$1.createElement('div', {
@@ -8215,20 +8218,20 @@ class Rubric extends React$1.Component {
8215
8218
  __self: this,
8216
8219
  __source: {
8217
8220
  fileName: _jsxFileName,
8218
- lineNumber: 75
8221
+ lineNumber: 77
8219
8222
  }
8220
8223
  }),
8221
8224
  __self: this,
8222
8225
  __source: {
8223
8226
  fileName: _jsxFileName,
8224
- lineNumber: 74
8227
+ lineNumber: 76
8225
8228
  }
8226
8229
  })), sampleAnswers && sampleAnswers[index] && React$1.createElement(ListItem, {
8227
8230
  key: `S${index}`,
8228
8231
  __self: this,
8229
8232
  __source: {
8230
8233
  fileName: _jsxFileName,
8231
- lineNumber: 80
8234
+ lineNumber: 82
8232
8235
  }
8233
8236
  }, React$1.createElement(ListItemText, {
8234
8237
  className: classes.rubricCol,
@@ -8240,13 +8243,13 @@ class Rubric extends React$1.Component {
8240
8243
  __self: this,
8241
8244
  __source: {
8242
8245
  fileName: _jsxFileName,
8243
- lineNumber: 84
8246
+ lineNumber: 86
8244
8247
  }
8245
8248
  }, "Sample Answer"),
8246
8249
  __self: this,
8247
8250
  __source: {
8248
8251
  fileName: _jsxFileName,
8249
- lineNumber: 81
8252
+ lineNumber: 83
8250
8253
  }
8251
8254
  }), React$1.createElement(ListItemText, {
8252
8255
  primary: React$1.createElement('div', {
@@ -8257,28 +8260,29 @@ class Rubric extends React$1.Component {
8257
8260
  __self: this,
8258
8261
  __source: {
8259
8262
  fileName: _jsxFileName,
8260
- lineNumber: 89
8263
+ lineNumber: 91
8261
8264
  }
8262
8265
  }),
8263
8266
  __self: this,
8264
8267
  __source: {
8265
8268
  fileName: _jsxFileName,
8266
- lineNumber: 87
8269
+ lineNumber: 89
8267
8270
  }
8268
8271
  })));
8269
8272
  }));
8270
- return React$1.createElement('div', {
8273
+ return React$1.createElement(UiLayout, {
8274
+ extraCSSRules: extraCSSRules,
8271
8275
  className: classes.root,
8272
8276
  __self: this,
8273
8277
  __source: {
8274
8278
  fileName: _jsxFileName,
8275
- lineNumber: 101
8279
+ lineNumber: 103
8276
8280
  }
8277
8281
  }, !animationsDisabled ? React$1.createElement(React$1.Fragment, {
8278
8282
  __self: this,
8279
8283
  __source: {
8280
8284
  fileName: _jsxFileName,
8281
- lineNumber: 103
8285
+ lineNumber: 105
8282
8286
  }
8283
8287
  }, React$1.createElement(Link, {
8284
8288
  href: this.dudUrl,
@@ -8286,7 +8290,7 @@ class Rubric extends React$1.Component {
8286
8290
  __self: this,
8287
8291
  __source: {
8288
8292
  fileName: _jsxFileName,
8289
- lineNumber: 104
8293
+ lineNumber: 106
8290
8294
  }
8291
8295
  }, this.state.linkPrefix, " Rubric"), React$1.createElement(Collapse, {
8292
8296
  in: this.state.rubricOpen,
@@ -8294,7 +8298,7 @@ class Rubric extends React$1.Component {
8294
8298
  __self: this,
8295
8299
  __source: {
8296
8300
  fileName: _jsxFileName,
8297
- lineNumber: 107
8301
+ lineNumber: 109
8298
8302
  }
8299
8303
  }, rubricList)) : rubricList);
8300
8304
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/rubric",
3
- "version": "4.1.6-next.3+59535a35f",
3
+ "version": "4.2.1-next.0+9b8579ae2",
4
4
  "main": "lib/index.js",
5
5
  "module": "src/index.js",
6
6
  "description": "Rubric Scoring Interaction",
@@ -10,12 +10,12 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@material-ui/core": "^3.9.2",
13
- "@pie-lib/pie-toolbox": "2.0.15",
13
+ "@pie-lib/pie-toolbox": "2.1.0",
14
14
  "prop-types": "^15.7.2"
15
15
  },
16
16
  "author": "pie framework developers",
17
17
  "license": "ISC",
18
- "gitHead": "59535a35fed818c74f3d6d6cc41b352c1ed939eb",
18
+ "gitHead": "9b8579ae2348276a843ad32caa8560a0fd26212e",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },