- {partLabel &&
{partLabel}
}
+ {partLabel &&
{partLabel}
}
{this.renderHeading()}
diff --git a/packages/number-line/configure/package.json b/packages/number-line/configure/package.json
index 18f1d535ff..813f14245f 100644
--- a/packages/number-line/configure/package.json
+++ b/packages/number-line/configure/package.json
@@ -7,7 +7,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-configure-events": "^1.3.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"lodash": "^4.17.15",
"react": "^16.8.1",
"react-dom": "^16.8.1"
diff --git a/packages/number-line/controller/package.json b/packages/number-line/controller/package.json
index 0d714e4cf7..a806d5c7c9 100644
--- a/packages/number-line/controller/package.json
+++ b/packages/number-line/controller/package.json
@@ -14,7 +14,7 @@
"access": "public"
},
"dependencies": {
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"lodash": "^4.17.15",
"mathjs": "^7.5.1"
},
diff --git a/packages/number-line/package.json b/packages/number-line/package.json
index 5c19313be0..bb02877d05 100644
--- a/packages/number-line/package.json
+++ b/packages/number-line/package.json
@@ -8,7 +8,7 @@
},
"dependencies": {
"@material-ui/core": "^3.9.2",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"classnames": "^2.2.5",
"d3-scale": "^3.2.1",
"d3-selection": "^1.4.1",
diff --git a/packages/passage/configure/package.json b/packages/passage/configure/package.json
index feab4c5226..be35d68389 100644
--- a/packages/passage/configure/package.json
+++ b/packages/passage/configure/package.json
@@ -10,7 +10,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-configure-events": "^1.3.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"lodash": "^4.17.15",
"prop-types": "^15.6.2",
"react": "^16.8.1",
diff --git a/packages/passage/package.json b/packages/passage/package.json
index b039719193..2c554c98f8 100644
--- a/packages/passage/package.json
+++ b/packages/passage/package.json
@@ -11,7 +11,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-player-events": "^0.1.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"classnames": "^2.2.5",
"prop-types": "^15.6.1",
"react": "^16.8.1",
diff --git a/packages/placement-ordering/configure/package.json b/packages/placement-ordering/configure/package.json
index 1b7e8911ab..b65de2f5d0 100644
--- a/packages/placement-ordering/configure/package.json
+++ b/packages/placement-ordering/configure/package.json
@@ -8,7 +8,7 @@
"@material-ui/core": "^3.9.2",
"@material-ui/icons": "^3.0.1",
"@pie-framework/pie-configure-events": "^1.3.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"debug": "^3.1.0",
"lodash": "^4.17.15",
"nested-property": "^0.0.7",
diff --git a/packages/placement-ordering/controller/package.json b/packages/placement-ordering/controller/package.json
index ed410736e5..46f77e0eba 100644
--- a/packages/placement-ordering/controller/package.json
+++ b/packages/placement-ordering/controller/package.json
@@ -5,7 +5,7 @@
"main": "lib/index.js",
"module": "src/index.js",
"dependencies": {
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"debug": "^3.1.0",
"js-combinatorics": "^0.5.4",
"lodash": "^4.17.19"
diff --git a/packages/placement-ordering/package.json b/packages/placement-ordering/package.json
index 455d34658e..9b5e952064 100644
--- a/packages/placement-ordering/package.json
+++ b/packages/placement-ordering/package.json
@@ -9,7 +9,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-player-events": "^0.1.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"debug": "^4.1.1",
"decimal.js": "^10.0.0",
"lodash": "^4.17.10",
diff --git a/packages/protractor/package.json b/packages/protractor/package.json
index 7b72478cc2..d7d422687e 100644
--- a/packages/protractor/package.json
+++ b/packages/protractor/package.json
@@ -10,7 +10,7 @@
"license": "ISC",
"dependencies": {
"@material-ui/core": "^3.9.2",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"classnames": "^2.2.5",
"react": "^16.8.1",
"react-dom": "^16.8.1"
diff --git a/packages/rubric/configure/package.json b/packages/rubric/configure/package.json
index 4bd8918dcb..2b0684824c 100644
--- a/packages/rubric/configure/package.json
+++ b/packages/rubric/configure/package.json
@@ -8,7 +8,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-configure-events": "^1.3.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"debug": "^4.1.1",
"react": "^16.8.6",
"react-dom": "^16.8.6"
diff --git a/packages/rubric/controller/package.json b/packages/rubric/controller/package.json
index 623436822f..c49da8e9bf 100644
--- a/packages/rubric/controller/package.json
+++ b/packages/rubric/controller/package.json
@@ -7,7 +7,7 @@
"test": "./node_modules/.bin/jest"
},
"dependencies": {
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"lodash": "^4.17.15"
}
}
diff --git a/packages/rubric/package.json b/packages/rubric/package.json
index 5f64bc3817..4f222efc37 100644
--- a/packages/rubric/package.json
+++ b/packages/rubric/package.json
@@ -10,7 +10,7 @@
},
"dependencies": {
"@material-ui/core": "^3.9.2",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"prop-types": "^15.7.2"
},
"author": "pie framework developers",
diff --git a/packages/ruler/configure/package.json b/packages/ruler/configure/package.json
index f3a9c9eda3..052f7d8793 100644
--- a/packages/ruler/configure/package.json
+++ b/packages/ruler/configure/package.json
@@ -7,7 +7,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-configure-events": "^1.3.0",
- "@pie-lib/pie-toolbox": "2.19.0"
+ "@pie-lib/pie-toolbox": "2.22.0"
},
"author": "",
"license": "ISC"
diff --git a/packages/ruler/package.json b/packages/ruler/package.json
index 7e34ebde96..3ac5170798 100644
--- a/packages/ruler/package.json
+++ b/packages/ruler/package.json
@@ -11,7 +11,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-player-events": "^0.1.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"prop-types": "^15.6.1",
"react": "^16.8.1",
"react-dom": "^16.8.1"
diff --git a/packages/select-text/configure/package.json b/packages/select-text/configure/package.json
index d4393295f2..c6fffa00da 100644
--- a/packages/select-text/configure/package.json
+++ b/packages/select-text/configure/package.json
@@ -8,7 +8,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-configure-events": "^1.3.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"debug": "^3.1.0",
"lodash": "^4.17.15",
"prop-types": "^15.6.2",
diff --git a/packages/select-text/configure/src/utils.js b/packages/select-text/configure/src/utils.js
index 4f805df257..f5680eebae 100644
--- a/packages/select-text/configure/src/utils.js
+++ b/packages/select-text/configure/src/utils.js
@@ -1,4 +1,3 @@
-
var createElementFromHTML = function createElementFromHTML() {
var htmlString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var div = document.createElement('div');
@@ -28,7 +27,7 @@ var prepareText = function prepareText(text) {
var txtDom = createElementFromHTML(text);
var div = document.createElement('div');
- div.innerHTML = '
'.concat(txtDom.innerHTML, '
');
+ div.innerHTML = "
".concat(txtDom.innerHTML, '
');
txtDom = div;
var allDomElements = Array.from(txtDom.querySelectorAll('*'));
diff --git a/packages/select-text/controller/package.json b/packages/select-text/controller/package.json
index a884947781..9cb8d08e80 100644
--- a/packages/select-text/controller/package.json
+++ b/packages/select-text/controller/package.json
@@ -6,7 +6,7 @@
"main": "lib/index.js",
"module": "src/index.js",
"dependencies": {
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"debug": "^3.1.0",
"lodash": "^4.17.15"
},
diff --git a/packages/select-text/docs/demo/generate.js b/packages/select-text/docs/demo/generate.js
index 8bb9086f5a..05d88dc71e 100644
--- a/packages/select-text/docs/demo/generate.js
+++ b/packages/select-text/docs/demo/generate.js
@@ -1,11 +1,11 @@
const tokens = () => [
{
- text: 'If \'tweren\'t for sight and sound and smell,',
+ text: "If 'tweren't for sight and sound and smell,",
start: 0,
end: 43,
},
{
- text: 'I\'d like the city pretty well,',
+ text: "I'd like the city pretty well,",
start: 44,
end: 74,
},
@@ -25,7 +25,7 @@ const tokens = () => [
end: 176,
},
{
- text: 'Just quit the city\'s din and dust,',
+ text: "Just quit the city's din and dust,",
start: 177,
end: 211,
},
@@ -212,7 +212,6 @@ exports.htmlAscii = (id, element) => ({
],
});
-
exports.model = (id, element) => {
return Object.assign(
{},
@@ -241,12 +240,12 @@ exports.model = (id, element) => {
{
end: 627,
correct: false,
- text: 'At last Natasha\'s moment arrived.',
+ text: "At last Natasha's moment arrived.",
start: 594,
},
{
end: 743,
- text: 'The faces of past giants of gymnastics swam before her mind\'s eye, now razor–sharp with fierce determination.',
+ text: "The faces of past giants of gymnastics swam before her mind's eye, now razor–sharp with fierce determination.",
correct: false,
start: 628,
},
@@ -270,7 +269,7 @@ exports.model = (id, element) => {
},
],
// "element": "select-text",
- text: '
She thought about what she had to do, struggling to rein in her wild, fearful thoughts. Coach Cummings always said that an undisciplined mind never scored a perfect 10. Natasha wanted to please her Coach, yet sometimes his approval wasn\'t as exciting as his anger. The gymnasts were unanimous about one thing: Coach Cummings\'s fits of disapproving rage were much more humorous to witness than his infrequent, backslapping moments of high praise. Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.
\n\n
At last Natasha\'s moment arrived. The faces of past giants of gymnastics swam before her mind\'s eye, now razor–sharp with fierce determination. "I am talented. I am not afraid. I will make a perfect 10," she spoke aloud to herself, as she approached the mat, dusted her hands with chalk to prevent slippage, and returned to her starting point. Suddenly, the din of the gymnasium was silent to her. Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her. Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.
\n',
+ text: "
She thought about what she had to do, struggling to rein in her wild, fearful thoughts. Coach Cummings always said that an undisciplined mind never scored a perfect 10. Natasha wanted to please her Coach, yet sometimes his approval wasn't as exciting as his anger. The gymnasts were unanimous about one thing: Coach Cummings's fits of disapproving rage were much more humorous to witness than his infrequent, backslapping moments of high praise. Just for a hair of a moment, Natasha wondered if she really wanted a perfect 10, so weary was she of trying for but never achieving one.
\n\n
At last Natasha's moment arrived. The faces of past giants of gymnastics swam before her mind's eye, now razor–sharp with fierce determination. \"I am talented. I am not afraid. I will make a perfect 10,\" she spoke aloud to herself, as she approached the mat, dusted her hands with chalk to prevent slippage, and returned to her starting point. Suddenly, the din of the gymnasium was silent to her. Forcing all sound out of her mind, she focused on the gleaming balance beam ahead of her. Taking a deep breath, Natasha made her graceful, yet powerful approach, mounted the beam flawlessly, and...executed her first perfect 10.
\n",
rubricEnabled: false,
}),
);
diff --git a/packages/select-text/package.json b/packages/select-text/package.json
index 32298929cf..3fbf721031 100644
--- a/packages/select-text/package.json
+++ b/packages/select-text/package.json
@@ -9,7 +9,7 @@
"dependencies": {
"@material-ui/core": "^3.9.2",
"@pie-framework/pie-player-events": "^0.1.0",
- "@pie-lib/pie-toolbox": "2.19.0",
+ "@pie-lib/pie-toolbox": "2.22.0",
"prop-types": "^15.6.1",
"react": "^16.8.1",
"react-dom": "^16.8.1"
diff --git a/packages/select-text/src/main.jsx b/packages/select-text/src/main.jsx
index 3b08193d63..580f2e4624 100644
--- a/packages/select-text/src/main.jsx
+++ b/packages/select-text/src/main.jsx
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
import { TextSelect, Legend } from '@pie-lib/pie-toolbox/text-select';
-import {CorrectAnswerToggle} from '@pie-lib/pie-toolbox/correct-answer-toggle';
-import {color, Feedback, Collapsible, hasText, hasMedia, PreviewPrompt, UiLayout} from '@pie-lib/pie-toolbox/render-ui';
+import { CorrectAnswerToggle } from '@pie-lib/pie-toolbox/correct-answer-toggle';
+import { color, Feedback, Collapsible, hasText, hasMedia, PreviewPrompt, UiLayout } from '@pie-lib/pie-toolbox/render-ui';
import { withStyles } from '@material-ui/core/styles';
import generateModel from './utils';
@@ -113,7 +113,7 @@ export class Main extends React.Component {
maxNoOfSelections={model.maxSelections}
animationsDisabled={model.animationsDisabled}
/>
- {mode === 'evaluate' &&
}
+ {mode === 'evaluate' &&
}
{showRationale &&
(!model.animationsDisabled ? (
diff --git a/pslb/pslb.config.js b/pslb/pslb.config.js
index 4f5714615e..856a3c3ca9 100644
--- a/pslb/pslb.config.js
+++ b/pslb/pslb.config.js
@@ -46,7 +46,7 @@ module.exports = {
libs: {
repository: 'pie-framework/pie-elements',
packages: [
- { name: '@pie-lib/pie-toolbox-module', version: '8.0.3' }
+ { name: '@pie-lib/pie-toolbox-module', version: '8.3.0' }
],
},
};
diff --git a/yarn.lock b/yarn.lock
index 23a1a959b3..a87a61e957 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2227,10 +2227,10 @@
mathjs "^7.0.1"
numeric "^1.2.6"
-"@pie-framework/math-validation@^1.4.0":
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/@pie-framework/math-validation/-/math-validation-1.4.0.tgz#0c4dbabec735f6baf708c511854aef7a78c0d95c"
- integrity sha512-Fm9DW7FL8KYfYQTqJezEtAPEXpmEWxGwugizODWNFn3AAS5PlrLhn4GEA9bL/6zxb7i7E1E/kEdx+Df2rK4ZtQ==
+"@pie-framework/math-validation@^1.4.1":
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/@pie-framework/math-validation/-/math-validation-1.4.1.tgz#091284ddb850c9486dada9528f4bafc497d989ba"
+ integrity sha512-uUPlJjg9PC2GSbSRYAA21ra1XM3cSlqy2IhK1FX5ziRTxtW6uf1hpqVjKwYSCnLQ6oR8kVztorQaN8ozsJo7Lw==
dependencies:
lodash "^4.17.21"
mathjs "^9.4.2"
@@ -2276,10 +2276,10 @@
resolved "https://registry.yarnpkg.com/@pie-framework/pie-player-events/-/pie-player-events-0.1.0.tgz#0150904118fd604559982ab658967811c053ffe3"
integrity sha512-6H1tlRGmcZ3Wt+8HMqu5KugVcwwyNrMylfI5rIpvOSt0T82QDmjRj+2sPgQG5zos/w6MtwUqn/QZ+8Rq2EXSOA==
-"@pie-lib/pie-toolbox@2.19.0":
- version "2.19.0"
- resolved "https://registry.yarnpkg.com/@pie-lib/pie-toolbox/-/pie-toolbox-2.19.0.tgz#d2f60f85aec4a4838272f8cae43da8b766953eb5"
- integrity sha512-jlvL6wd8PBlOETcw8wH0RuHCYQeMSFAchDN3N3jC6GfvEw7dWoIc7Cfz1xDl1rfeUpRVk33WJnLOOMkelCT1xg==
+"@pie-lib/pie-toolbox@2.22.0":
+ version "2.22.0"
+ resolved "https://registry.yarnpkg.com/@pie-lib/pie-toolbox/-/pie-toolbox-2.22.0.tgz#38797a0b419b3ae155c5555d2dc64f54d48141c6"
+ integrity sha512-Fe0+YG1Mr13/4Paj8rmN2XKHnVnfZgOrUvRMoYSdBqjcVsA48FuM3B4G5qxx10B1CYGejfBS/Ta5C/5nnqv+Gw==
dependencies:
"@mapbox/point-geometry" "^0.1.0"
"@material-ui/core" "^3.8.3"