@pie-element/categorize 9.2.2-next.6 → 9.3.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,23 @@
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
+ # [9.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@9.2.1...@pie-element/categorize@9.3.0) (2024-11-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4401, PD-4441, PD-4319, PD-4394, PD-3687 ([f1f0af3](https://github.com/pie-framework/pie-elements/commit/f1f0af31f3c6fba54ca3a378dea3b8b32d8ebb87))
12
+
13
+
14
+ ### Features
15
+
16
+ * Adjust all elements to support custom color for controls in authoring PD-4334 ([d6b3dc5](https://github.com/pie-framework/pie-elements/commit/d6b3dc5963824d0a1ce7bf36a8c590e27761c86c))
17
+ * update snapshots PD-4334 ([7094224](https://github.com/pie-framework/pie-elements/commit/7094224b5e467fa46237476d07770f84bccbf735))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [9.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize@9.2.0...@pie-element/categorize@9.2.1) (2024-11-01)
7
24
 
8
25
 
@@ -3,6 +3,23 @@
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
+ # [8.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@8.1.1...@pie-element/categorize-configure@8.2.0) (2024-11-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4401, PD-4441, PD-4319, PD-4394, PD-3687 ([f1f0af3](https://github.com/pie-framework/pie-elements/commit/f1f0af31f3c6fba54ca3a378dea3b8b32d8ebb87))
12
+
13
+
14
+ ### Features
15
+
16
+ * Adjust all elements to support custom color for controls in authoring PD-4334 ([d6b3dc5](https://github.com/pie-framework/pie-elements/commit/d6b3dc5963824d0a1ce7bf36a8c590e27761c86c))
17
+ * update snapshots PD-4334 ([7094224](https://github.com/pie-framework/pie-elements/commit/7094224b5e467fa46237476d07770f84bccbf735))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [8.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-configure@8.1.0...@pie-element/categorize-configure@8.1.1) (2024-11-01)
7
24
 
8
25
 
@@ -91,9 +91,8 @@ var ChoicePreview = /*#__PURE__*/function (_React$Component) {
91
91
  html: choice === null || choice === void 0 ? void 0 : choice.content,
92
92
  className: "".concat(classes.breakWord)
93
93
  }), /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
94
- color: "secondary",
95
94
  "aria-label": "delete",
96
- className: classes["delete"],
95
+ className: (0, _classnames["default"])(classes["delete"], classes.customColor),
97
96
  onClick: this["delete"]
98
97
  }, /*#__PURE__*/_react["default"].createElement(_RemoveCircleOutline["default"], null))) : null);
99
98
  }
@@ -126,6 +125,9 @@ var styles = function styles() {
126
125
  breakWord: {
127
126
  maxWidth: '90%',
128
127
  wordBreak: 'break-all'
128
+ },
129
+ customColor: {
130
+ color: "".concat(_renderUi.color.tertiary(), " !important")
129
131
  }
130
132
  };
131
133
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/design/categories/choice-preview.jsx"],"names":["ChoicePreview","props","onDelete","choice","alternateResponseIndex","category","classes","className","choiceIndex","choicePreview","content","breakWord","React","Component","PropTypes","number","object","isRequired","string","func","styles","position","right","top","maxWidth","wordBreak"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;IAEaA,a;;;;;;;;;;;;;;;+FAYF,YAAM;AACb,wBAA6B,MAAKC,KAAlC;AAAA,UAAQC,QAAR,eAAQA,QAAR;AAAA,UAAkBC,MAAlB,eAAkBA,MAAlB;AACA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;AAKjBf,EAAAA,MAAM,EAAEW,sBAAUE,MAAV,CAAiBC,UALR;AAMjBT,EAAAA,WAAW,EAAEM,sBAAUC,MANN;AAOjBb,EAAAA,QAAQ,EAAEY,sBAAUK,IAAV,CAAeF;AAPR,C;iCADRjB,a,kBAUW,E;;AA6BxB,IAAMoB,MAAM,GAAG,SAATA,MAAS;AAAA,SAAO;AACpBX,IAAAA,aAAa,EAAE;AACbY,MAAAA,QAAQ,EAAE;AADG,KADK;AAIpB,cAAQ;AACNA,MAAAA,QAAQ,EAAE,UADJ;AAENC,MAAAA,KAAK,EAAE,CAFD;AAGNC,MAAAA,GAAG,EAAE;AAHC,KAJY;AASpBZ,IAAAA,SAAS,EAAE;AACTa,MAAAA,QAAQ,EAAE,KADD;AAETC,MAAAA,SAAS,EAAE;AAFF;AATS,GAAP;AAAA,CAAf;;eAce,wBAAWL,MAAX,EAAmBpB,aAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport { Choice } from '@pie-lib/pie-toolbox/drag';\nimport IconButton from '@material-ui/core/IconButton';\nimport RemoveCircleOutlineIcon from '@material-ui/icons/RemoveCircleOutline';\nimport { HtmlAndMath } from '@pie-lib/pie-toolbox/render-ui';\n\nexport class ChoicePreview extends React.Component {\n static propTypes = {\n alternateResponseIndex: PropTypes.number,\n category: PropTypes.object,\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n choice: PropTypes.object.isRequired,\n choiceIndex: PropTypes.number,\n onDelete: PropTypes.func.isRequired,\n };\n static defaultProps = {};\n\n delete = () => {\n const { onDelete, choice } = this.props;\n onDelete(choice);\n };\n\n render() {\n const { alternateResponseIndex, category, classes, className, choice, choiceIndex } = this.props;\n return (\n <div className={classNames(classes.choicePreview, className)}>\n {choice ? (\n <Choice\n alternateResponseIndex={alternateResponseIndex}\n category={category}\n choice={choice}\n choiceIndex={choiceIndex}\n onRemoveChoice={() => this.delete()}\n >\n <HtmlAndMath html={choice?.content} className={`${classes.breakWord}`} />\n <IconButton color=\"secondary\" aria-label=\"delete\" className={classes.delete} onClick={this.delete}>\n <RemoveCircleOutlineIcon />\n </IconButton>\n </Choice>\n ) : null}\n </div>\n );\n }\n}\nconst styles = () => ({\n choicePreview: {\n position: 'relative',\n },\n delete: {\n position: 'absolute',\n right: 0,\n top: 0,\n },\n breakWord: {\n maxWidth: '90%',\n wordBreak: 'break-all',\n },\n});\nexport default withStyles(styles)(ChoicePreview);\n"],"file":"choice-preview.js"}
1
+ {"version":3,"sources":["../../../src/design/categories/choice-preview.jsx"],"names":["ChoicePreview","props","onDelete","choice","alternateResponseIndex","category","classes","className","choiceIndex","choicePreview","content","breakWord","customColor","React","Component","PropTypes","number","object","isRequired","string","func","styles","position","right","top","maxWidth","wordBreak","color","tertiary"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;IAGaA,a;;;;;;;;;;;;;;;+FAYF,YAAM;AACb,wBAA6B,MAAKC,KAAlC;AAAA,UAAQC,QAAR,eAAQA,QAAR;AAAA,UAAkBC,MAAlB,eAAkBA,MAAlB;AACAD,MAAAA,QAAQ,CAACC,MAAD,CAAR;AACD,K;;;;;;WAED,kBAAS;AAAA;;AACP,yBAAsF,KAAKF,KAA3F;AAAA,UAAQG,sBAAR,gBAAQA,sBAAR;AAAA,UAAgCC,QAAhC,gBAAgCA,QAAhC;AAAA,UAA0CC,OAA1C,gBAA0CA,OAA1C;AAAA,UAAmDC,SAAnD,gBAAmDA,SAAnD;AAAA,UAA8DJ,MAA9D,gBAA8DA,MAA9D;AAAA,UAAsEK,WAAtE,gBAAsEA,WAAtE;AACA,0BACE;AAAK,QAAA,SAAS,EAAE,4BAAWF,OAAO,CAACG,aAAnB,EAAkCF,SAAlC;AAAhB,SACGJ,MAAM,gBACL,gCAAC,YAAD;AACE,QAAA,sBAAsB,EAAEC,sBAD1B;AAE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D;AAETC,MAAAA,SAAS,EAAE;AAFF,KATS;AAapBd,IAAAA,WAAW,EAAE;AACXe,MAAAA,KAAK,YAAKA,gBAAMC,QAAN,EAAL;AADM;AAbO,GAAP;AAAA,CAAf;;eAiBe,wBAAWP,MAAX,EAAmBrB,aAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport { Choice } from '@pie-lib/pie-toolbox/drag';\nimport IconButton from '@material-ui/core/IconButton';\nimport RemoveCircleOutlineIcon from '@material-ui/icons/RemoveCircleOutline';\nimport { HtmlAndMath } from '@pie-lib/pie-toolbox/render-ui';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\n\nexport class ChoicePreview extends React.Component {\n static propTypes = {\n alternateResponseIndex: PropTypes.number,\n category: PropTypes.object,\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n choice: PropTypes.object.isRequired,\n choiceIndex: PropTypes.number,\n onDelete: PropTypes.func.isRequired,\n };\n static defaultProps = {};\n\n delete = () => {\n const { onDelete, choice } = this.props;\n onDelete(choice);\n };\n\n render() {\n const { alternateResponseIndex, category, classes, className, choice, choiceIndex } = this.props;\n return (\n <div className={classNames(classes.choicePreview, className)}>\n {choice ? (\n <Choice\n alternateResponseIndex={alternateResponseIndex}\n category={category}\n choice={choice}\n choiceIndex={choiceIndex}\n onRemoveChoice={() => this.delete()}\n >\n <HtmlAndMath html={choice?.content} className={`${classes.breakWord}`} />\n <IconButton aria-label=\"delete\" className={classNames(classes.delete, classes.customColor)} onClick={this.delete}>\n <RemoveCircleOutlineIcon />\n </IconButton>\n </Choice>\n ) : null}\n </div>\n );\n }\n}\nconst styles = () => ({\n choicePreview: {\n position: 'relative',\n },\n delete: {\n position: 'absolute',\n right: 0,\n top: 0,\n },\n breakWord: {\n maxWidth: '90%',\n wordBreak: 'break-all',\n },\n customColor: {\n color: `${color.tertiary()} !important`\n },\n});\nexport default withStyles(styles)(ChoicePreview);\n"],"file":"choice-preview.js"}
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "main": "lib/index.js",
5
5
  "module": "src/index.js",
6
- "version": "8.1.1",
6
+ "version": "8.2.0",
7
7
  "description": "",
8
8
  "scripts": {},
9
9
  "author": "pie framework developers",
@@ -12,7 +12,7 @@
12
12
  "@material-ui/core": "^3.9.2",
13
13
  "@material-ui/icons": "^3.0.1",
14
14
  "@pie-framework/pie-configure-events": "^1.3.0",
15
- "@pie-lib/pie-toolbox": "2.1.3",
15
+ "@pie-lib/pie-toolbox": "2.2.0",
16
16
  "classnames": "^2.2.5",
17
17
  "debug": "^3.1.0",
18
18
  "lodash": "^4.17.15",
@@ -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
+ ## [7.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@7.1.1...@pie-element/categorize-controller@7.1.2) (2024-11-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4401, PD-4441, PD-4319, PD-4394, PD-3687 ([f1f0af3](https://github.com/pie-framework/pie-elements/commit/f1f0af31f3c6fba54ca3a378dea3b8b32d8ebb87))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [7.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/categorize-controller@7.1.0...@pie-element/categorize-controller@7.1.1) (2024-11-01)
7
18
 
8
19
 
@@ -2,10 +2,10 @@
2
2
  "name": "@pie-element/categorize-controller",
3
3
  "private": true,
4
4
  "dependencies": {
5
- "@pie-lib/pie-toolbox": "2.1.3",
5
+ "@pie-lib/pie-toolbox": "2.2.0",
6
6
  "lodash": "^4.17.15"
7
7
  },
8
- "version": "7.1.1",
8
+ "version": "7.1.2",
9
9
  "description": "",
10
10
  "scripts": {},
11
11
  "main": "lib/index.js",
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "9.2.2-next.6+d067765bc",
7
+ "version": "9.3.0",
8
8
  "description": "",
9
9
  "author": "pie framework developers",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@material-ui/core": "^3.9.2",
13
13
  "@pie-framework/pie-player-events": "^0.1.0",
14
- "@pie-lib/pie-toolbox": "2.1.3",
14
+ "@pie-lib/pie-toolbox": "2.2.0",
15
15
  "classnames": "^2.2.5",
16
16
  "debug": "^4.1.1",
17
17
  "lodash": "^4.17.15",
@@ -20,7 +20,7 @@
20
20
  "react-dnd": "^14.0.5",
21
21
  "react-dom": "^16.8.1"
22
22
  },
23
- "gitHead": "d067765bc91c40e3d31bcb3ba71610eebc32cdcb",
23
+ "gitHead": "20cc12d3d06ad5318bfa4c6994cf7c7614dfed2f",
24
24
  "scripts": {
25
25
  "postpublish": "../../scripts/postpublish"
26
26
  },