@pie-element/likert 2.1.0 → 2.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@2.0.0...@pie-element/likert@2.2.0) (2025-10-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **likert:** correct import based on new lib packages modif PD-5199 ([b70c828](https://github.com/pie-framework/pie-elements/commit/b70c8285d066f310d828761ab31a01dfdca10cf0))
12
+ * conclude merge with develop ([8388078](https://github.com/pie-framework/pie-elements/commit/8388078124486bdab0def8dbe5e442117514c05a))
13
+
14
+
15
+ ### Features
16
+
17
+ * allow elemnts to use same fontFamily set in common ui container to avoid incons PD-5199 ([8b1742e](https://github.com/pie-framework/pie-elements/commit/8b1742e06c9befe1e81bf6a76c72448c91b2429b))
18
+ * update libs PD-5208, PD-5211, PD-5199, PD-5218, PD-5217 ([da327fa](https://github.com/pie-framework/pie-elements/commit/da327fa501f6e9eff1c0b30b5ef092426a91f78b))
19
+
20
+
21
+
22
+
23
+
6
24
  # [2.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@1.0.0...@pie-element/likert@2.1.0) (2025-10-07)
7
25
 
8
26
  **Note:** Version bump only for package @pie-element/likert
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@1.0.1...@pie-element/likert-configure@1.2.0) (2025-10-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * update libs PD-5208, PD-5211, PD-5199, PD-5218, PD-5217 ([da327fa](https://github.com/pie-framework/pie-elements/commit/da327fa501f6e9eff1c0b30b5ef092426a91f78b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@1.0.0...@pie-element/likert-configure@1.1.0) (2025-10-07)
7
18
 
8
19
  **Note:** Version bump only for package @pie-element/likert-configure
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/likert-configure",
3
3
  "private": true,
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
@@ -9,9 +9,9 @@
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-framework/pie-configure-events": "^1.3.0",
12
- "@pie-lib/config-ui": "^11.25.0",
13
- "@pie-lib/editable-html": "^11.17.0",
14
- "@pie-lib/render-ui": "^4.31.0",
12
+ "@pie-lib/config-ui": "^11.25.1",
13
+ "@pie-lib/editable-html": "^11.17.1",
14
+ "@pie-lib/render-ui": "^4.31.1",
15
15
  "debug": "^4.1.1",
16
16
  "prop-types": "^15.6.2",
17
17
  "react": "^16.8.1",
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@1.0.1...@pie-element/likert-controller@1.1.1) (2025-10-10)
7
+
8
+ **Note:** Version bump only for package @pie-element/likert-controller
9
+
10
+
11
+
12
+
13
+
6
14
  # [1.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@1.0.0...@pie-element/likert-controller@1.1.0) (2025-10-07)
7
15
 
8
16
  **Note:** Version bump only for package @pie-element/likert-controller
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/likert-controller",
3
3
  "private": true,
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
package/lib/likert.js CHANGED
@@ -43,7 +43,6 @@ var styles = function styles(theme) {
43
43
  color: _renderUi.color.text(),
44
44
  backgroundColor: _renderUi.color.background(),
45
45
  '& *': {
46
- fontFamily: 'Roboto, Arial, Helvetica, sans-serif',
47
46
  '-webkit-font-smoothing': 'antialiased'
48
47
  }
49
48
  },
package/lib/likert.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/likert.jsx"],"names":["styles","theme","main","color","text","backgroundColor","background","fontFamily","teacherInstructions","marginBottom","spacing","unit","prompt","verticalAlign","paddingBottom","choicesWrapper","display","Likert","value","props","session","disabled","choices","onSessionChange","classes","className","likertOrientation","flexDirection","LIKERT_ORIENTATION","vertical","hidden","visible","map","choice","index","label","isSelected","React","Component","PropTypes","string","array","object","bool","isRequired","func","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,IAAI,EAAE;AACJC,MAAAA,KAAK,EAAEA,gBAAMC,IAAN,EADH;AAEJC,MAAAA,eAAe,EAAEF,gBAAMG,UAAN,EAFb;AAGJ,aAAO;AACLC,QAAAA,UAAU,EAAE,sCADP;AAEL,kCAA0B;AAFrB;AAHH,KADmB;AASzBC,IAAAA,mBAAmB,EAAE;AACnBC,MAAAA,YAAY,EAAER,KAAK,CAACS,OAAN,CAAcC,IAAd,GAAqB;AADhB,KATI;AAYzBC,IAAAA,MAAM,EAAE;AACNC,MAAAA,aAAa,EAAE,QADT;AAENV,MAAAA,KAAK,EAAE,mDAFD;AAGNW,MAAAA,aAAa,EAAEb,KAAK,CAACS,OAAN,CAAcC,IAAd,GAAqB;AAH9B,KAZiB;AAiBzBI,IAAAA,cAAc,EAAE;AACdC,MAAAA,OAAO,EAAE;AADK;AAjBS,GAAZ;AAAA,CAAf;;IAsBaC,M;;;;;;;;;;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E,UAAA,GAAG,mBAAYA,KAAZ,CADL;AAEE,UAAA,KAAK,EAAED,MAAM,CAACE,KAFhB;AAGE,UAAA,KAAK,EAAEF,MAAM,CAACf,KAHhB;AAIE,UAAA,KAAK,EAAEgB,KAJT;AAKE,UAAA,QAAQ,EAAEb,QALZ;AAME,UAAA,QAAQ,EAAEE,eANZ;AAOE,UAAA,iBAAiB,EAAEG,iBAPrB;AAQE,UAAA,OAAO,EAAE,KAAI,CAACU,UAAL,CAAgBH,MAAM,CAACf,KAAvB;AARX,UADW;AAAA,OAAZ,CADH,CAnBF,CADF;AAoCD;;;EArEyBmB,kBAAMC,S;;;iCAArBrB,M,eACQ;AACjBQ,EAAAA,SAAS,EAAEc,sBAAUC,MADJ;AAEjBlB,EAAAA,OAAO,EAAEiB,sBAAUE,KAFF;AAGjB7B,EAAAA,MAAM,EAAE2B,sBAAUC,MAHD;AAIjBhC,EAAAA,mBAAmB,EAAE+B,sBAAUC,MAJd;AAKjBpB,EAAAA,OAAO,EAAEmB,sBAAUG,MALF;AAMjBrB,EAAAA,QAAQ,EAAEkB,sBAAUI,IAAV,CAAeC,UANR;AAOjBrB,EAAAA,eAAe,EAAEgB,sBAAUM,IAAV,CAAeD,UAPf;AAQjBlB,EAAAA,iBAAiB,EAAEa,sBAAUC,MAAV,CAAiBI,UARnB;AASjBpB,EAAAA,OAAO,EAAEe,sBAAUG,MAAV,CAAiBE;AATT,C;AAuErB3B,MAAM,CAAC6B,YAAP,GAAsB;AACpB1B,EAAAA,OAAO,EAAE;AACPF,IAAAA,KAAK,EAAE;AADA;AADW,CAAtB;;eAMe,wBAAWlB,MAAX,EAAmBiB,MAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ChoiceInput from './choice-input';\nimport { withStyles } from '@material-ui/core/styles';\nimport { color, Collapsible, PreviewPrompt } from '@pie-lib/render-ui';\nimport { LIKERT_ORIENTATION } from './likertEntities';\nimport classNames from 'classnames';\n\nconst styles = (theme) => ({\n main: {\n color: color.text(),\n backgroundColor: color.background(),\n '& *': {\n fontFamily: 'Roboto, Arial, Helvetica, sans-serif',\n '-webkit-font-smoothing': 'antialiased',\n },\n },\n teacherInstructions: {\n marginBottom: theme.spacing.unit * 2,\n },\n prompt: {\n verticalAlign: 'middle',\n color: 'var(--pie-primary-text, var(--pie-text, #000000))',\n paddingBottom: theme.spacing.unit * 2,\n },\n choicesWrapper: {\n display: 'flex',\n },\n});\n\nexport class Likert extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n choices: PropTypes.array,\n prompt: PropTypes.string,\n teacherInstructions: PropTypes.string,\n session: PropTypes.object,\n disabled: PropTypes.bool.isRequired,\n onSessionChange: PropTypes.func.isRequired,\n likertOrientation: PropTypes.string.isRequired,\n classes: PropTypes.object.isRequired,\n };\n\n UNSAFE_componentWillReceiveProps() {}\n\n isSelected(value) {\n return this.props.session && this.props.session.value === value;\n }\n\n render() {\n const {\n disabled,\n choices = [],\n prompt,\n onSessionChange,\n teacherInstructions,\n classes,\n className,\n likertOrientation,\n } = this.props;\n\n const flexDirection = likertOrientation === LIKERT_ORIENTATION.vertical ? 'column' : 'row';\n\n return (\n <div className={classNames(classes.main, className)}>\n {teacherInstructions && (\n <Collapsible\n className={classes.teacherInstructions}\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n <PreviewPrompt prompt={teacherInstructions} />\n </Collapsible>\n )}\n\n {prompt && (\n <div className={classes.prompt}>\n <PreviewPrompt prompt={prompt} />\n </div>\n )}\n\n <div className={classes.choicesWrapper} style={{ flexDirection }}>\n {choices.map((choice, index) => (\n <ChoiceInput\n key={`choice-${index}`}\n label={choice.label}\n value={choice.value}\n index={index}\n disabled={disabled}\n onChange={onSessionChange}\n likertOrientation={likertOrientation}\n checked={this.isSelected(choice.value)}\n />\n ))}\n </div>\n </div>\n );\n }\n}\n\nLikert.defaultProps = {\n session: {\n value: [],\n },\n};\n\nexport default withStyles(styles)(Likert);\n"],"file":"likert.js"}
1
+ {"version":3,"sources":["../src/likert.jsx"],"names":["styles","theme","main","color","text","backgroundColor","background","teacherInstructions","marginBottom","spacing","unit","prompt","verticalAlign","paddingBottom","choicesWrapper","display","Likert","value","props","session","disabled","choices","onSessionChange","classes","className","likertOrientation","flexDirection","LIKERT_ORIENTATION","vertical","hidden","visible","map","choice","index","label","isSelected","React","Component","PropTypes","string","array","object","bool","isRequired","func","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,IAAI,EAAE;AACJC,MAAAA,KAAK,EAAEA,gBAAMC,IAAN,EADH;AAEJC,MAAAA,eAAe,EAAEF,gBAAMG,UAAN,EAFb;AAGJ,aAAO;AACL,kCAA0B;AADrB;AAHH,KADmB;AAQzBC,IAAAA,mBAAmB,EAAE;AACnBC,MAAAA,YAAY,EAAEP,KAAK,CAACQ,OAAN,CAAcC,IAAd,GAAqB;AADhB,KARI;AAWzBC,IAAAA,MAAM,EAAE;AACNC,MAAAA,aAAa,EAAE,QADT;AAENT,MAAAA,KAAK,EAAE,mDAFD;AAGNU,MAAAA,aAAa,EAAEZ,KAAK,CAACQ,OAAN,CAAcC,IAAd,GAAqB;AAH9B,KAXiB;AAgBzBI,IAAAA,cAAc,EAAE;AACdC,MAAAA,OAAO,EAAE;AADK;AAhBS,GAAZ;AAAA,CAAf;;IAqBaC,M;;;;;;;;;;;;WAaX,4CAAmC,CAAE;;;WAErC,oBAAWC,KAAX,EAAkB;AAChB,aAAO,KAAKC,KAAL,CAAWC,OAAX,IAAsB,KAAKD,KAAL,CAAWC,OAAX,CAAmBF,KAAnB,KAA6BA,KAA1D;AACD;;;WAED,kBAAS;AAAA;;AACP,wBASI,KAAKC,KATT;AAAA,UACEE,QADF,eACEA,QADF;AAAA,4CAEEC,OAFF;AAAA,UAEEA,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OAAO,EAAE,KAAI,CAACU,UAAL,CAAgBH,MAAM,CAACf,KAAvB;AARX,UADW;AAAA,OAAZ,CADH,CAnBF,CADF;AAoCD;;;EArEyBmB,kBAAMC,S;;;iCAArBrB,M,eACQ;AACjBQ,EAAAA,SAAS,EAAEc,sBAAUC,MADJ;AAEjBlB,EAAAA,OAAO,EAAEiB,sBAAUE,KAFF;AAGjB7B,EAAAA,MAAM,EAAE2B,sBAAUC,MAHD;AAIjBhC,EAAAA,mBAAmB,EAAE+B,sBAAUC,MAJd;AAKjBpB,EAAAA,OAAO,EAAEmB,sBAAUG,MALF;AAMjBrB,EAAAA,QAAQ,EAAEkB,sBAAUI,IAAV,CAAeC,UANR;AAOjBrB,EAAAA,eAAe,EAAEgB,sBAAUM,IAAV,CAAeD,UAPf;AAQjBlB,EAAAA,iBAAiB,EAAEa,sBAAUC,MAAV,CAAiBI,UARnB;AASjBpB,EAAAA,OAAO,EAAEe,sBAAUG,MAAV,CAAiBE;AATT,C;AAuErB3B,MAAM,CAAC6B,YAAP,GAAsB;AACpB1B,EAAAA,OAAO,EAAE;AACPF,IAAAA,KAAK,EAAE;AADA;AADW,CAAtB;;eAMe,wBAAWjB,MAAX,EAAmBgB,MAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ChoiceInput from './choice-input';\nimport { withStyles } from '@material-ui/core/styles';\nimport { color, Collapsible, PreviewPrompt } from '@pie-lib/render-ui';\nimport { LIKERT_ORIENTATION } from './likertEntities';\nimport classNames from 'classnames';\n\nconst styles = (theme) => ({\n main: {\n color: color.text(),\n backgroundColor: color.background(),\n '& *': {\n '-webkit-font-smoothing': 'antialiased',\n },\n },\n teacherInstructions: {\n marginBottom: theme.spacing.unit * 2,\n },\n prompt: {\n verticalAlign: 'middle',\n color: 'var(--pie-primary-text, var(--pie-text, #000000))',\n paddingBottom: theme.spacing.unit * 2,\n },\n choicesWrapper: {\n display: 'flex',\n },\n});\n\nexport class Likert extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n choices: PropTypes.array,\n prompt: PropTypes.string,\n teacherInstructions: PropTypes.string,\n session: PropTypes.object,\n disabled: PropTypes.bool.isRequired,\n onSessionChange: PropTypes.func.isRequired,\n likertOrientation: PropTypes.string.isRequired,\n classes: PropTypes.object.isRequired,\n };\n\n UNSAFE_componentWillReceiveProps() {}\n\n isSelected(value) {\n return this.props.session && this.props.session.value === value;\n }\n\n render() {\n const {\n disabled,\n choices = [],\n prompt,\n onSessionChange,\n teacherInstructions,\n classes,\n className,\n likertOrientation,\n } = this.props;\n\n const flexDirection = likertOrientation === LIKERT_ORIENTATION.vertical ? 'column' : 'row';\n\n return (\n <div className={classNames(classes.main, className)}>\n {teacherInstructions && (\n <Collapsible\n className={classes.teacherInstructions}\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n <PreviewPrompt prompt={teacherInstructions} />\n </Collapsible>\n )}\n\n {prompt && (\n <div className={classes.prompt}>\n <PreviewPrompt prompt={prompt} />\n </div>\n )}\n\n <div className={classes.choicesWrapper} style={{ flexDirection }}>\n {choices.map((choice, index) => (\n <ChoiceInput\n key={`choice-${index}`}\n label={choice.label}\n value={choice.value}\n index={index}\n disabled={disabled}\n onChange={onSessionChange}\n likertOrientation={likertOrientation}\n checked={this.isSelected(choice.value)}\n />\n ))}\n </div>\n </div>\n );\n }\n}\n\nLikert.defaultProps = {\n session: {\n value: [],\n },\n};\n\nexport default withStyles(styles)(Likert);\n"],"file":"likert.js"}
package/lib/main.js CHANGED
@@ -77,16 +77,9 @@ var Main = /*#__PURE__*/function (_React$Component) {
77
77
  var Styled = (0, _styles.withStyles)({}, {
78
78
  name: 'Main'
79
79
  })(Main);
80
- var theme = (0, _styles.createMuiTheme)({
81
- typography: {
82
- useNextVariants: true
83
- }
84
- });
85
80
 
86
81
  var Root = function Root(props) {
87
- return /*#__PURE__*/_react["default"].createElement(_styles.MuiThemeProvider, {
88
- theme: theme
89
- }, /*#__PURE__*/_react["default"].createElement(Styled, props));
82
+ return /*#__PURE__*/_react["default"].createElement(Styled, props);
90
83
  };
91
84
 
92
85
  var _default = Root;
package/lib/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/main.jsx"],"names":["Main","props","model","onSessionChange","session","extraCSSRules","React","Component","PropTypes","object","func","classes","isRequired","Styled","name","theme","typography","useNextVariants","Root"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;;;;;IAEMA,I;;;;;;;;;;;;WAaJ,kBAAS;AACP,wBAA4C,KAAKC,KAAjD;AAAA,UAAQC,KAAR,eAAQA,KAAR;AAAA,UAAeC,eAAf,eAAeA,eAAf;AAAA,UAAgCC,OAAhC,eAAgCA,OAAhC;AACA,UAAQC,aAAR,GAA0BH,KAA1B,CAAQG,aAAR;AAEA,0BACE,gCAAC,uBAAD;AAAe,QAAA,aAAa,EAAEA;AAA9B,sBACE,gCAAC,kBAAD,gCAAYH,KAAZ;AAAmB,QAAA,OAAO,EAAEE,OAA5B;AAAqC,QAAA,eAAe,EAAED;AAAtD,SADF,CADF;AAKD;;;EAtBgBG,kBAAMC,S;;iCAAnBP,I,eACe;AACjBE,EAAAA,KAAK,EAAEM,sBAAUC,MADA;AAEjBL,EAAAA,OAAO,EAAEI,sBAAUC,MAFF;AAGjBN,EAAAA,eAAe,EAAEK,sBAAUE,IAHV;AAIjBC,EAAAA,OAAO,EAAEH,sBAAUC,MAAV,CAAiBG;AAJT,C;iCADfZ,I,kBAQkB;AACpBE,EAAAA,KAAK,EAAE,EADa;AAEpBE,EAAAA,OAAO,EAAE;AAFW,C;AAiBxB,IAAMS,MAAM,GAAG,wBAAW,EAAX,EAAe;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAf,EAAiCd,IAAjC,CAAf;AAEA,IAAMe,KAAK,GAAG,4BAAe;AAC3BC,EAAAA,UAAU,EAAE;AACVC,IAAAA,eAAe,EAAE;AADP;AADe,CAAf,CAAd;;AAMA,IAAMC,IAAI,GAAG,SAAPA,IAAO,CAACjB,KAAD;AAAA,sBACX,gCAAC,wBAAD;AAAkB,IAAA,KAAK,EAAEc;AAAzB,kBACE,gCAAC,MAAD,EAAYd,KAAZ,CADF,CADW;AAAA,CAAb;;eAMeiB,I","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';\nimport { PreviewLayout } from '@pie-lib/render-ui';\nimport Likert from './likert';\n\nclass Main extends React.Component {\n static propTypes = {\n model: PropTypes.object,\n session: PropTypes.object,\n onSessionChange: PropTypes.func,\n classes: PropTypes.object.isRequired,\n };\n\n static defaultProps = {\n model: {},\n session: {},\n };\n\n render() {\n const { model, onSessionChange, session } = this.props;\n const { extraCSSRules } = model;\n\n return (\n <PreviewLayout extraCSSRules={extraCSSRules}>\n <Likert {...model} session={session} onSessionChange={onSessionChange} />\n </PreviewLayout>\n );\n }\n}\n\nconst Styled = withStyles({}, { name: 'Main' })(Main);\n\nconst theme = createMuiTheme({\n typography: {\n useNextVariants: true,\n },\n});\n\nconst Root = (props) => (\n <MuiThemeProvider theme={theme}>\n <Styled {...props} />\n </MuiThemeProvider>\n);\n\nexport default Root;\n"],"file":"main.js"}
1
+ {"version":3,"sources":["../src/main.jsx"],"names":["Main","props","model","onSessionChange","session","extraCSSRules","React","Component","PropTypes","object","func","classes","isRequired","Styled","name","Root"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;IAEMA,I;;;;;;;;;;;;WAaJ,kBAAS;AACP,wBAA4C,KAAKC,KAAjD;AAAA,UAAQC,KAAR,eAAQA,KAAR;AAAA,UAAeC,eAAf,eAAeA,eAAf;AAAA,UAAgCC,OAAhC,eAAgCA,OAAhC;AACA,UAAQC,aAAR,GAA0BH,KAA1B,CAAQG,aAAR;AAEA,0BACE,gCAAC,uBAAD;AAAe,QAAA,aAAa,EAAEA;AAA9B,sBACE,gCAAC,kBAAD,gCAAYH,KAAZ;AAAmB,QAAA,OAAO,EAAEE,OAA5B;AAAqC,QAAA,eAAe,EAAED;AAAtD,SADF,CADF;AAKD;;;EAtBgBG,kBAAMC,S;;iCAAnBP,I,eACe;AACjBE,EAAAA,KAAK,EAAEM,sBAAUC,MADA;AAEjBL,EAAAA,OAAO,EAAEI,sBAAUC,MAFF;AAGjBN,EAAAA,eAAe,EAAEK,sBAAUE,IAHV;AAIjBC,EAAAA,OAAO,EAAEH,sBAAUC,MAAV,CAAiBG;AAJT,C;iCADfZ,I,kBAQkB;AACpBE,EAAAA,KAAK,EAAE,EADa;AAEpBE,EAAAA,OAAO,EAAE;AAFW,C;AAiBxB,IAAMS,MAAM,GAAG,wBAAW,EAAX,EAAe;AAAEC,EAAAA,IAAI,EAAE;AAAR,CAAf,EAAiCd,IAAjC,CAAf;;AAEA,IAAMe,IAAI,GAAG,SAAPA,IAAO,CAACd,KAAD;AAAA,sBACT,gCAAC,MAAD,EAAYA,KAAZ,CADS;AAAA,CAAb;;eAIec,I","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport { PreviewLayout } from '@pie-lib/render-ui';\nimport Likert from './likert';\n\nclass Main extends React.Component {\n static propTypes = {\n model: PropTypes.object,\n session: PropTypes.object,\n onSessionChange: PropTypes.func,\n classes: PropTypes.object.isRequired,\n };\n\n static defaultProps = {\n model: {},\n session: {},\n };\n\n render() {\n const { model, onSessionChange, session } = this.props;\n const { extraCSSRules } = model;\n\n return (\n <PreviewLayout extraCSSRules={extraCSSRules}>\n <Likert {...model} session={session} onSessionChange={onSessionChange} />\n </PreviewLayout>\n );\n }\n}\n\nconst Styled = withStyles({}, { name: 'Main' })(Main);\n\nconst Root = (props) => (\n <Styled {...props} />\n);\n\nexport default Root;\n"],"file":"main.js"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "2.1.0",
7
+ "version": "2.2.0",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -12,8 +12,8 @@
12
12
  "dependencies": {
13
13
  "@material-ui/core": "^3.9.2",
14
14
  "@pie-framework/pie-player-events": "^0.1.0",
15
- "@pie-lib/math-rendering": "^3.18.0",
16
- "@pie-lib/render-ui": "^4.31.0",
15
+ "@pie-lib/math-rendering": "^3.19.4",
16
+ "@pie-lib/render-ui": "^4.31.1",
17
17
  "classnames": "^2.2.5",
18
18
  "debug": "^4.1.1",
19
19
  "lodash": "^4.17.10",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "author": "",
27
27
  "license": "ISC",
28
- "gitHead": "e6dde692b33cb1d42c6b2958fff7520dc40ca82c",
28
+ "gitHead": "edd2d8fc80a70863b9a71dab5fc2caed85175533",
29
29
  "main": "lib/index.js",
30
30
  "module": "src/index.js"
31
31
  }