@pie-element/select-text 6.5.3-next.582 → 6.5.3-next.583

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.
@@ -8,10 +8,10 @@
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
10
  "@pie-framework/pie-configure-events": "^1.2.0",
11
- "@pie-lib/config-ui": "^10.10.16",
12
- "@pie-lib/editable-html": "^7.17.16",
13
- "@pie-lib/scoring-config": "^3.5.145",
14
- "@pie-lib/text-select": "^1.8.11",
11
+ "@pie-lib/config-ui": "^10.10.18",
12
+ "@pie-lib/editable-html": "^7.17.18",
13
+ "@pie-lib/scoring-config": "^3.5.147",
14
+ "@pie-lib/text-select": "^1.8.12",
15
15
  "debug": "^3.1.0",
16
16
  "lodash": "^4.17.15",
17
17
  "prop-types": "^15.6.2",
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "@pie-lib/controller-utils": "^0.2.26",
10
10
  "@pie-lib/feedback": "^0.4.27",
11
- "@pie-lib/text-select": "^1.8.11",
11
+ "@pie-lib/text-select": "^1.8.12",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15"
14
14
  },
@@ -1,6 +1,6 @@
1
- import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_lodash, _dll_debug, _dll_classnames, _dll_pie_lib__render_ui, _dll_react_dom_server, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.2.18/module/index.js";
2
- import {_dll_pie_lib__config_ui} from "../../../@pie-lib/config-module@^1.0.19/module/index.js";
3
- import {_dll_pie_lib__editable_html} from "../../../@pie-lib/editable-html-module@^1.0.19/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_lodash, _dll_debug, _dll_classnames, _dll_pie_lib__render_ui, _dll_react_dom_server, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.2.19/module/index.js";
2
+ import {_dll_pie_lib__config_ui} from "../../../@pie-lib/config-module@^1.0.20/module/index.js";
3
+ import {_dll_pie_lib__editable_html} from "../../../@pie-lib/editable-html-module@^1.0.20/module/index.js";
4
4
  const React$7 = _dll_react;
5
5
  const PropTypes$6 = _dll_prop_types;
6
6
  const {Button: Button} = _dll_material_ui__core;
@@ -1761,14 +1761,14 @@ class Token extends React$4.Component {
1761
1761
  };
1762
1762
  }
1763
1763
  render() {
1764
- const {text, selectable, selected, classes, className: classNameProp, disabled, index, highlight, correct} = this.props;
1764
+ const {text, selectable, selected, classes, className: classNameProp, disabled, index, highlight, correct, animationsDisabled} = this.props;
1765
1765
  let className;
1766
1766
  if (correct === undefined && selected && disabled) {
1767
1767
  className = classNames$1(classes.token, classes.selected, classes.disabledBlack);
1768
1768
  } else if (correct !== undefined) {
1769
1769
  className = classNames$1(Token.rootClassName, classes.custom, correct === true && classes.correct, correct === false && classes.incorrect);
1770
1770
  } else {
1771
- className = classNames$1(Token.rootClassName, classes.token, disabled && classes.disabled, selectable && !disabled && classes.selectable, selected && !disabled && classes.selected, selected && disabled && classes.disabledAndSelected, highlight && selectable && !disabled && !selected && classes.highlight, classNameProp);
1771
+ className = classNames$1(Token.rootClassName, classes.token, disabled && classes.disabled, selectable && !disabled && classes.selectable, selected && !disabled && classes.selected, selected && disabled && classes.disabledAndSelected, highlight && selectable && !disabled && !selected && classes.highlight, animationsDisabled && classes.print, classNameProp);
1772
1772
  }
1773
1773
  return React$4.createElement('span', {
1774
1774
  className: className,
@@ -1779,7 +1779,7 @@ class Token extends React$4.Component {
1779
1779
  __self: this,
1780
1780
  __source: {
1781
1781
  fileName: _jsxFileName$3,
1782
- lineNumber: 68
1782
+ lineNumber: 70
1783
1783
  }
1784
1784
  });
1785
1785
  }
@@ -1834,6 +1834,15 @@ var Token$1 = withStyles$2(theme => {
1834
1834
  display: 'inline-block',
1835
1835
  padding: theme.spacing.unit
1836
1836
  },
1837
+ print: {
1838
+ border: 'dashed 2px gray',
1839
+ lineHeight: 2,
1840
+ boxSizing: 'border-box',
1841
+ marginTop: theme.spacing.unit / 2,
1842
+ display: 'inline-block',
1843
+ padding: theme.spacing.unit,
1844
+ color: color.text()
1845
+ },
1837
1846
  custom: {
1838
1847
  display: 'initial'
1839
1848
  },
@@ -1871,6 +1880,7 @@ class TokenSelect extends React$3.Component {
1871
1880
  onChange: PropTypes$2.func.isRequired,
1872
1881
  disabled: PropTypes$2.bool,
1873
1882
  highlightChoices: PropTypes$2.bool,
1883
+ animationsDisabled: PropTypes$2.bool,
1874
1884
  maxNoOfSelections: PropTypes$2.number
1875
1885
  };
1876
1886
  }
@@ -1897,12 +1907,12 @@ class TokenSelect extends React$3.Component {
1897
1907
  __init3() {
1898
1908
  this.toggleToken = event => {
1899
1909
  const {target} = event;
1900
- const {tokens} = this.props;
1910
+ const {tokens, animationsDisabled} = this.props;
1901
1911
  const tokensCloned = clone(tokens);
1902
1912
  const targetSpanWrapper = target.closest(`.${Token$1.rootClassName}`);
1903
1913
  const targetedTokenIndex = targetSpanWrapper && targetSpanWrapper.dataset && targetSpanWrapper.dataset.indexkey;
1904
1914
  const t = targetedTokenIndex && tokensCloned[targetedTokenIndex];
1905
- if (t && t.correct === undefined) {
1915
+ if (t && t.correct === undefined && !animationsDisabled) {
1906
1916
  const {onChange, maxNoOfSelections} = this.props;
1907
1917
  const selected = !t.selected;
1908
1918
  if (maxNoOfSelections === 1 && this.selectedCount() === 1) {
@@ -1942,7 +1952,7 @@ class TokenSelect extends React$3.Component {
1942
1952
  }
1943
1953
  __init4() {
1944
1954
  this.generateTokensInHtml = () => {
1945
- const {tokens, disabled, highlightChoices} = this.props;
1955
+ const {tokens, disabled, highlightChoices, animationsDisabled} = this.props;
1946
1956
  const selectedCount = this.selectedCount();
1947
1957
  const isLineBreak = text => text === '\n';
1948
1958
  const isNewParagraph = text => text === '\n\n';
@@ -1956,7 +1966,7 @@ class TokenSelect extends React$3.Component {
1956
1966
  if (isLineBreak(t.text)) {
1957
1967
  return finalAcc + '<br>';
1958
1968
  }
1959
- if (selectable && !disabled || showCorrectAnswer || t.selected) {
1969
+ if (selectable && !disabled || showCorrectAnswer || t.selected || animationsDisabled && t.predefined) {
1960
1970
  return finalAcc + renderToString(React$3.createElement(Token$1, {
1961
1971
  key: index,
1962
1972
  disabled: disabled,
@@ -1964,10 +1974,11 @@ class TokenSelect extends React$3.Component {
1964
1974
  ...t,
1965
1975
  selectable: selectable,
1966
1976
  highlight: highlightChoices,
1977
+ animationsDisabled: animationsDisabled,
1967
1978
  __self: this,
1968
1979
  __source: {
1969
1980
  fileName: _jsxFileName$2,
1970
- lineNumber: 119
1981
+ lineNumber: 125
1971
1982
  }
1972
1983
  }));
1973
1984
  } else {
@@ -1991,7 +2002,7 @@ class TokenSelect extends React$3.Component {
1991
2002
  __self: this,
1992
2003
  __source: {
1993
2004
  fileName: _jsxFileName$2,
1994
- lineNumber: 145
2005
+ lineNumber: 152
1995
2006
  }
1996
2007
  });
1997
2008
  }
@@ -2027,6 +2038,7 @@ class TextSelect extends React$2.Component {
2027
2038
  text: PropTypes$1.string.isRequired,
2028
2039
  className: PropTypes$1.string,
2029
2040
  highlightChoices: PropTypes$1.bool,
2041
+ animationsDisabled: PropTypes$1.bool,
2030
2042
  maxNoOfSelections: PropTypes$1.number
2031
2043
  };
2032
2044
  }
@@ -2044,7 +2056,7 @@ class TextSelect extends React$2.Component {
2044
2056
  };
2045
2057
  }
2046
2058
  render() {
2047
- const {text, disabled, tokens, selectedTokens, className, highlightChoices, maxNoOfSelections} = this.props;
2059
+ const {text, disabled, tokens, selectedTokens, className, highlightChoices, maxNoOfSelections, animationsDisabled} = this.props;
2048
2060
  const normalized = normalize(text, tokens);
2049
2061
  log$1('normalized: ', normalized);
2050
2062
  const prepped = normalized.map(t => {
@@ -2067,10 +2079,11 @@ class TextSelect extends React$2.Component {
2067
2079
  disabled: disabled,
2068
2080
  onChange: this.change,
2069
2081
  maxNoOfSelections: maxNoOfSelections,
2082
+ animationsDisabled: animationsDisabled,
2070
2083
  __self: this,
2071
2084
  __source: {
2072
2085
  fileName: _jsxFileName$1,
2073
- lineNumber: 63
2086
+ lineNumber: 65
2074
2087
  }
2075
2088
  });
2076
2089
  }
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_lodash, _dll_debug, _dll_classnames, _dll_pie_lib__render_ui, _dll_react_dom_server, _dll_pie_lib__correct_answer_toggle, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.2.18/module/index.js";
2
- import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.21/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_lodash, _dll_debug, _dll_classnames, _dll_pie_lib__render_ui, _dll_react_dom_server, _dll_pie_lib__correct_answer_toggle, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.2.19/module/index.js";
2
+ import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.22/module/index.js";
3
3
  var lib$1 = {};
4
4
  Object.defineProperty(lib$1, "__esModule", {
5
5
  value: true
@@ -1797,14 +1797,14 @@ class Token extends React$4.Component {
1797
1797
  };
1798
1798
  }
1799
1799
  render() {
1800
- const {text, selectable, selected, classes, className: classNameProp, disabled, index, highlight, correct} = this.props;
1800
+ const {text, selectable, selected, classes, className: classNameProp, disabled, index, highlight, correct, animationsDisabled} = this.props;
1801
1801
  let className;
1802
1802
  if (correct === undefined && selected && disabled) {
1803
1803
  className = classNames$1(classes.token, classes.selected, classes.disabledBlack);
1804
1804
  } else if (correct !== undefined) {
1805
1805
  className = classNames$1(Token.rootClassName, classes.custom, correct === true && classes.correct, correct === false && classes.incorrect);
1806
1806
  } else {
1807
- className = classNames$1(Token.rootClassName, classes.token, disabled && classes.disabled, selectable && !disabled && classes.selectable, selected && !disabled && classes.selected, selected && disabled && classes.disabledAndSelected, highlight && selectable && !disabled && !selected && classes.highlight, classNameProp);
1807
+ className = classNames$1(Token.rootClassName, classes.token, disabled && classes.disabled, selectable && !disabled && classes.selectable, selected && !disabled && classes.selected, selected && disabled && classes.disabledAndSelected, highlight && selectable && !disabled && !selected && classes.highlight, animationsDisabled && classes.print, classNameProp);
1808
1808
  }
1809
1809
  return React$4.createElement('span', {
1810
1810
  className: className,
@@ -1815,7 +1815,7 @@ class Token extends React$4.Component {
1815
1815
  __self: this,
1816
1816
  __source: {
1817
1817
  fileName: _jsxFileName$3,
1818
- lineNumber: 68
1818
+ lineNumber: 70
1819
1819
  }
1820
1820
  });
1821
1821
  }
@@ -1870,6 +1870,15 @@ var Token$1 = withStyles$2(theme => {
1870
1870
  display: 'inline-block',
1871
1871
  padding: theme.spacing.unit
1872
1872
  },
1873
+ print: {
1874
+ border: 'dashed 2px gray',
1875
+ lineHeight: 2,
1876
+ boxSizing: 'border-box',
1877
+ marginTop: theme.spacing.unit / 2,
1878
+ display: 'inline-block',
1879
+ padding: theme.spacing.unit,
1880
+ color: color$1.text()
1881
+ },
1873
1882
  custom: {
1874
1883
  display: 'initial'
1875
1884
  },
@@ -1907,6 +1916,7 @@ class TokenSelect extends React$3.Component {
1907
1916
  onChange: PropTypes$2.func.isRequired,
1908
1917
  disabled: PropTypes$2.bool,
1909
1918
  highlightChoices: PropTypes$2.bool,
1919
+ animationsDisabled: PropTypes$2.bool,
1910
1920
  maxNoOfSelections: PropTypes$2.number
1911
1921
  };
1912
1922
  }
@@ -1933,12 +1943,12 @@ class TokenSelect extends React$3.Component {
1933
1943
  __init3() {
1934
1944
  this.toggleToken = event => {
1935
1945
  const {target} = event;
1936
- const {tokens} = this.props;
1946
+ const {tokens, animationsDisabled} = this.props;
1937
1947
  const tokensCloned = clone(tokens);
1938
1948
  const targetSpanWrapper = target.closest(`.${Token$1.rootClassName}`);
1939
1949
  const targetedTokenIndex = targetSpanWrapper && targetSpanWrapper.dataset && targetSpanWrapper.dataset.indexkey;
1940
1950
  const t = targetedTokenIndex && tokensCloned[targetedTokenIndex];
1941
- if (t && t.correct === undefined) {
1951
+ if (t && t.correct === undefined && !animationsDisabled) {
1942
1952
  const {onChange, maxNoOfSelections} = this.props;
1943
1953
  const selected = !t.selected;
1944
1954
  if (maxNoOfSelections === 1 && this.selectedCount() === 1) {
@@ -1978,7 +1988,7 @@ class TokenSelect extends React$3.Component {
1978
1988
  }
1979
1989
  __init4() {
1980
1990
  this.generateTokensInHtml = () => {
1981
- const {tokens, disabled, highlightChoices} = this.props;
1991
+ const {tokens, disabled, highlightChoices, animationsDisabled} = this.props;
1982
1992
  const selectedCount = this.selectedCount();
1983
1993
  const isLineBreak = text => text === '\n';
1984
1994
  const isNewParagraph = text => text === '\n\n';
@@ -1992,7 +2002,7 @@ class TokenSelect extends React$3.Component {
1992
2002
  if (isLineBreak(t.text)) {
1993
2003
  return finalAcc + '<br>';
1994
2004
  }
1995
- if (selectable && !disabled || showCorrectAnswer || t.selected) {
2005
+ if (selectable && !disabled || showCorrectAnswer || t.selected || animationsDisabled && t.predefined) {
1996
2006
  return finalAcc + renderToString(React$3.createElement(Token$1, {
1997
2007
  key: index,
1998
2008
  disabled: disabled,
@@ -2000,10 +2010,11 @@ class TokenSelect extends React$3.Component {
2000
2010
  ...t,
2001
2011
  selectable: selectable,
2002
2012
  highlight: highlightChoices,
2013
+ animationsDisabled: animationsDisabled,
2003
2014
  __self: this,
2004
2015
  __source: {
2005
2016
  fileName: _jsxFileName$2,
2006
- lineNumber: 119
2017
+ lineNumber: 125
2007
2018
  }
2008
2019
  }));
2009
2020
  } else {
@@ -2027,7 +2038,7 @@ class TokenSelect extends React$3.Component {
2027
2038
  __self: this,
2028
2039
  __source: {
2029
2040
  fileName: _jsxFileName$2,
2030
- lineNumber: 145
2041
+ lineNumber: 152
2031
2042
  }
2032
2043
  });
2033
2044
  }
@@ -2063,6 +2074,7 @@ class TextSelect extends React$2.Component {
2063
2074
  text: PropTypes$1.string.isRequired,
2064
2075
  className: PropTypes$1.string,
2065
2076
  highlightChoices: PropTypes$1.bool,
2077
+ animationsDisabled: PropTypes$1.bool,
2066
2078
  maxNoOfSelections: PropTypes$1.number
2067
2079
  };
2068
2080
  }
@@ -2080,7 +2092,7 @@ class TextSelect extends React$2.Component {
2080
2092
  };
2081
2093
  }
2082
2094
  render() {
2083
- const {text, disabled, tokens, selectedTokens, className, highlightChoices, maxNoOfSelections} = this.props;
2095
+ const {text, disabled, tokens, selectedTokens, className, highlightChoices, maxNoOfSelections, animationsDisabled} = this.props;
2084
2096
  const normalized = normalize(text, tokens);
2085
2097
  log$1('normalized: ', normalized);
2086
2098
  const prepped = normalized.map(t => {
@@ -2103,10 +2115,11 @@ class TextSelect extends React$2.Component {
2103
2115
  disabled: disabled,
2104
2116
  onChange: this.change,
2105
2117
  maxNoOfSelections: maxNoOfSelections,
2118
+ animationsDisabled: animationsDisabled,
2106
2119
  __self: this,
2107
2120
  __source: {
2108
2121
  fileName: _jsxFileName$1,
2109
- lineNumber: 63
2122
+ lineNumber: 65
2110
2123
  }
2111
2124
  });
2112
2125
  }
@@ -4,11 +4,11 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/shared-module",
7
- "version": "^1.2.18"
7
+ "version": "^1.2.19"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/math-rendering-module",
11
- "version": "^1.0.21"
11
+ "version": "^1.0.22"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_lodash, _dll_debug, _dll_classnames, _dll_pie_lib__render_ui, _dll_react_dom_server, _dll_pie_lib__correct_answer_toggle, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.2.18/module/index.js";
2
- import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.21/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_lodash, _dll_debug, _dll_classnames, _dll_pie_lib__render_ui, _dll_react_dom_server, _dll_pie_lib__correct_answer_toggle, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.2.19/module/index.js";
2
+ import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.22/module/index.js";
3
3
  const React$7 = _dll_react;
4
4
  const PropTypes$6 = _dll_prop_types;
5
5
  const {Button: Button} = _dll_material_ui__core;
@@ -1760,14 +1760,14 @@ class Token extends React$4.Component {
1760
1760
  };
1761
1761
  }
1762
1762
  render() {
1763
- const {text, selectable, selected, classes, className: classNameProp, disabled, index, highlight, correct} = this.props;
1763
+ const {text, selectable, selected, classes, className: classNameProp, disabled, index, highlight, correct, animationsDisabled} = this.props;
1764
1764
  let className;
1765
1765
  if (correct === undefined && selected && disabled) {
1766
1766
  className = classNames$1(classes.token, classes.selected, classes.disabledBlack);
1767
1767
  } else if (correct !== undefined) {
1768
1768
  className = classNames$1(Token.rootClassName, classes.custom, correct === true && classes.correct, correct === false && classes.incorrect);
1769
1769
  } else {
1770
- className = classNames$1(Token.rootClassName, classes.token, disabled && classes.disabled, selectable && !disabled && classes.selectable, selected && !disabled && classes.selected, selected && disabled && classes.disabledAndSelected, highlight && selectable && !disabled && !selected && classes.highlight, classNameProp);
1770
+ className = classNames$1(Token.rootClassName, classes.token, disabled && classes.disabled, selectable && !disabled && classes.selectable, selected && !disabled && classes.selected, selected && disabled && classes.disabledAndSelected, highlight && selectable && !disabled && !selected && classes.highlight, animationsDisabled && classes.print, classNameProp);
1771
1771
  }
1772
1772
  return React$4.createElement('span', {
1773
1773
  className: className,
@@ -1778,7 +1778,7 @@ class Token extends React$4.Component {
1778
1778
  __self: this,
1779
1779
  __source: {
1780
1780
  fileName: _jsxFileName$3,
1781
- lineNumber: 68
1781
+ lineNumber: 70
1782
1782
  }
1783
1783
  });
1784
1784
  }
@@ -1833,6 +1833,15 @@ var Token$1 = withStyles$2(theme => {
1833
1833
  display: 'inline-block',
1834
1834
  padding: theme.spacing.unit
1835
1835
  },
1836
+ print: {
1837
+ border: 'dashed 2px gray',
1838
+ lineHeight: 2,
1839
+ boxSizing: 'border-box',
1840
+ marginTop: theme.spacing.unit / 2,
1841
+ display: 'inline-block',
1842
+ padding: theme.spacing.unit,
1843
+ color: color$1.text()
1844
+ },
1836
1845
  custom: {
1837
1846
  display: 'initial'
1838
1847
  },
@@ -1870,6 +1879,7 @@ class TokenSelect extends React$3.Component {
1870
1879
  onChange: PropTypes$2.func.isRequired,
1871
1880
  disabled: PropTypes$2.bool,
1872
1881
  highlightChoices: PropTypes$2.bool,
1882
+ animationsDisabled: PropTypes$2.bool,
1873
1883
  maxNoOfSelections: PropTypes$2.number
1874
1884
  };
1875
1885
  }
@@ -1896,12 +1906,12 @@ class TokenSelect extends React$3.Component {
1896
1906
  __init3() {
1897
1907
  this.toggleToken = event => {
1898
1908
  const {target} = event;
1899
- const {tokens} = this.props;
1909
+ const {tokens, animationsDisabled} = this.props;
1900
1910
  const tokensCloned = clone(tokens);
1901
1911
  const targetSpanWrapper = target.closest(`.${Token$1.rootClassName}`);
1902
1912
  const targetedTokenIndex = targetSpanWrapper && targetSpanWrapper.dataset && targetSpanWrapper.dataset.indexkey;
1903
1913
  const t = targetedTokenIndex && tokensCloned[targetedTokenIndex];
1904
- if (t && t.correct === undefined) {
1914
+ if (t && t.correct === undefined && !animationsDisabled) {
1905
1915
  const {onChange, maxNoOfSelections} = this.props;
1906
1916
  const selected = !t.selected;
1907
1917
  if (maxNoOfSelections === 1 && this.selectedCount() === 1) {
@@ -1941,7 +1951,7 @@ class TokenSelect extends React$3.Component {
1941
1951
  }
1942
1952
  __init4() {
1943
1953
  this.generateTokensInHtml = () => {
1944
- const {tokens, disabled, highlightChoices} = this.props;
1954
+ const {tokens, disabled, highlightChoices, animationsDisabled} = this.props;
1945
1955
  const selectedCount = this.selectedCount();
1946
1956
  const isLineBreak = text => text === '\n';
1947
1957
  const isNewParagraph = text => text === '\n\n';
@@ -1955,7 +1965,7 @@ class TokenSelect extends React$3.Component {
1955
1965
  if (isLineBreak(t.text)) {
1956
1966
  return finalAcc + '<br>';
1957
1967
  }
1958
- if (selectable && !disabled || showCorrectAnswer || t.selected) {
1968
+ if (selectable && !disabled || showCorrectAnswer || t.selected || animationsDisabled && t.predefined) {
1959
1969
  return finalAcc + renderToString(React$3.createElement(Token$1, {
1960
1970
  key: index,
1961
1971
  disabled: disabled,
@@ -1963,10 +1973,11 @@ class TokenSelect extends React$3.Component {
1963
1973
  ...t,
1964
1974
  selectable: selectable,
1965
1975
  highlight: highlightChoices,
1976
+ animationsDisabled: animationsDisabled,
1966
1977
  __self: this,
1967
1978
  __source: {
1968
1979
  fileName: _jsxFileName$2,
1969
- lineNumber: 119
1980
+ lineNumber: 125
1970
1981
  }
1971
1982
  }));
1972
1983
  } else {
@@ -1990,7 +2001,7 @@ class TokenSelect extends React$3.Component {
1990
2001
  __self: this,
1991
2002
  __source: {
1992
2003
  fileName: _jsxFileName$2,
1993
- lineNumber: 145
2004
+ lineNumber: 152
1994
2005
  }
1995
2006
  });
1996
2007
  }
@@ -2026,6 +2037,7 @@ class TextSelect extends React$2.Component {
2026
2037
  text: PropTypes$1.string.isRequired,
2027
2038
  className: PropTypes$1.string,
2028
2039
  highlightChoices: PropTypes$1.bool,
2040
+ animationsDisabled: PropTypes$1.bool,
2029
2041
  maxNoOfSelections: PropTypes$1.number
2030
2042
  };
2031
2043
  }
@@ -2043,7 +2055,7 @@ class TextSelect extends React$2.Component {
2043
2055
  };
2044
2056
  }
2045
2057
  render() {
2046
- const {text, disabled, tokens, selectedTokens, className, highlightChoices, maxNoOfSelections} = this.props;
2058
+ const {text, disabled, tokens, selectedTokens, className, highlightChoices, maxNoOfSelections, animationsDisabled} = this.props;
2047
2059
  const normalized = normalize(text, tokens);
2048
2060
  log$2('normalized: ', normalized);
2049
2061
  const prepped = normalized.map(t => {
@@ -2066,10 +2078,11 @@ class TextSelect extends React$2.Component {
2066
2078
  disabled: disabled,
2067
2079
  onChange: this.change,
2068
2080
  maxNoOfSelections: maxNoOfSelections,
2081
+ animationsDisabled: animationsDisabled,
2069
2082
  __self: this,
2070
2083
  __source: {
2071
2084
  fileName: _jsxFileName$1,
2072
- lineNumber: 63
2085
+ lineNumber: 65
2073
2086
  }
2074
2087
  });
2075
2088
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "6.5.3-next.582+d26bd4152",
7
+ "version": "6.5.3-next.583+a8718955c",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
@@ -12,14 +12,14 @@
12
12
  "@pie-lib/correct-answer-toggle": "^2.3.34",
13
13
  "@pie-lib/math-rendering": "^2.3.12",
14
14
  "@pie-lib/render-ui": "^4.12.4",
15
- "@pie-lib/text-select": "^1.8.11",
15
+ "@pie-lib/text-select": "^1.8.12",
16
16
  "prop-types": "^15.6.1",
17
17
  "react": "^16.8.1",
18
18
  "react-dom": "^16.8.1"
19
19
  },
20
20
  "author": "",
21
21
  "license": "ISC",
22
- "gitHead": "d26bd4152569d60ab68c89825392b41893fc1e44",
22
+ "gitHead": "a8718955c189341afc71ed23fb5b417ded42731d",
23
23
  "scripts": {
24
24
  "postpublish": "../../scripts/postpublish"
25
25
  },