@pie-element/categorize 7.13.1-next.9 → 7.14.1-next.13

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.
@@ -130,6 +130,22 @@
130
130
  }
131
131
  }
132
132
  },
133
+ "mathMlOptions": {
134
+ "title": "ConfigureMathMLProp",
135
+ "type": "object",
136
+ "properties": {
137
+ "mmlOutput": {
138
+ "description": "Indicates if model should have mathML output instead of latex",
139
+ "type": "number",
140
+ "title": "mmlOutput"
141
+ },
142
+ "mmlEditing": {
143
+ "description": "Indicates if mathML that's already in model should be editable",
144
+ "type": "number",
145
+ "title": "mmlEditing"
146
+ }
147
+ }
148
+ },
133
149
  "maxCategories": {
134
150
  "description": "Maximum number of categories",
135
151
  "type": "number",
@@ -308,6 +324,22 @@
308
324
  }
309
325
  }
310
326
  },
327
+ "ConfigureMathMLProp": {
328
+ "title": "ConfigureMathMLProp",
329
+ "type": "object",
330
+ "properties": {
331
+ "mmlOutput": {
332
+ "description": "Indicates if model should have mathML output instead of latex",
333
+ "type": "number",
334
+ "title": "mmlOutput"
335
+ },
336
+ "mmlEditing": {
337
+ "description": "Indicates if mathML that's already in model should be editable",
338
+ "type": "number",
339
+ "title": "mmlEditing"
340
+ }
341
+ }
342
+ },
311
343
  "ConfigureMaxImageDimensionsProp": {
312
344
  "title": "ConfigureMaxImageDimensionsProp",
313
345
  "type": "object",
@@ -98,6 +98,18 @@ Indicates if the item has to be displayed in the Settings Panel
98
98
 
99
99
  Indicates the label for the item that has to be displayed in the Settings Panel
100
100
 
101
+ # `mathMlOptions` (object)
102
+
103
+ Properties of the `mathMlOptions` object:
104
+
105
+ ## `mmlOutput` (number)
106
+
107
+ Indicates if model should have mathML output instead of latex
108
+
109
+ ## `mmlEditing` (number)
110
+
111
+ Indicates if mathML that's already in model should be editable
112
+
101
113
  # `maxCategories` (number)
102
114
 
103
115
  Maximum number of categories
@@ -244,6 +256,18 @@ Indicates if the item has to be displayed in the Settings Panel
244
256
 
245
257
  Indicates the label for the item that has to be displayed in the Settings Panel
246
258
 
259
+ ## `ConfigureMathMLProp` (object)
260
+
261
+ Properties of the `ConfigureMathMLProp` object:
262
+
263
+ ### `mmlOutput` (number)
264
+
265
+ Indicates if model should have mathML output instead of latex
266
+
267
+ ### `mmlEditing` (number)
268
+
269
+ Indicates if mathML that's already in model should be editable
270
+
247
271
  ## `ConfigureMaxImageDimensionsProp` (object)
248
272
 
249
273
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -444,6 +444,22 @@
444
444
  }
445
445
  }
446
446
  },
447
+ "ConfigureMathMLProp": {
448
+ "title": "ConfigureMathMLProp",
449
+ "type": "object",
450
+ "properties": {
451
+ "mmlOutput": {
452
+ "description": "Indicates if model should have mathML output instead of latex",
453
+ "type": "number",
454
+ "title": "mmlOutput"
455
+ },
456
+ "mmlEditing": {
457
+ "description": "Indicates if mathML that's already in model should be editable",
458
+ "type": "number",
459
+ "title": "mmlEditing"
460
+ }
461
+ }
462
+ },
447
463
  "ConfigureMaxImageDimensionsProp": {
448
464
  "title": "ConfigureMaxImageDimensionsProp",
449
465
  "type": "object",
@@ -202,6 +202,18 @@ Indicates if the item has to be displayed in the Settings Panel
202
202
 
203
203
  Indicates the label for the item that has to be displayed in the Settings Panel
204
204
 
205
+ ## `ConfigureMathMLProp` (object)
206
+
207
+ Properties of the `ConfigureMathMLProp` object:
208
+
209
+ ### `mmlOutput` (number)
210
+
211
+ Indicates if model should have mathML output instead of latex
212
+
213
+ ### `mmlEditing` (number)
214
+
215
+ Indicates if mathML that's already in model should be editable
216
+
205
217
  ## `ConfigureMaxImageDimensionsProp` (object)
206
218
 
207
219
  Properties of the `ConfigureMaxImageDimensionsProp` object:
@@ -58,7 +58,7 @@ var GridContent = /*#__PURE__*/function (_React$Component) {
58
58
 
59
59
  var style = _objectSpread({
60
60
  gridTemplateColumns: "repeat(".concat(columns, ", 1fr)"),
61
- gridTemplateRows: "repeat(".concat(rows, ", auto)")
61
+ gridTemplateRows: rows === 2 ? 'auto 1fr' : "repeat(".concat(rows, ", auto)")
62
62
  }, extraStyle);
63
63
 
64
64
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/categorize/grid-content.jsx"],"names":["GridContent","props","classes","className","children","columns","extraStyle","rows","style","gridTemplateColumns","gridTemplateRows","gridContent","React","Component","PropTypes","object","isRequired","string","oneOfType","arrayOf","node","number","styles","theme","display","columnGap","spacing","unit","gridColumnGap","rowGap","gridRowGap","gridAutoRows"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,W;;;;;;;;;;;;WAcX,kBAAS;AACP,wBAAoE,KAAKC,KAAzE;AAAA,UAAQC,OAAR,eAAQA,OAAR;AAAA,UAAiBC,SAAjB,eAAiBA,SAAjB;AAAA,UAA4BC,QAA5B,eAA4BA,QAA5B;AAAA,UAAsCC,OAAtC,eAAsCA,OAAtC;AAAA,UAA+CC,UAA/C,eAA+CA,UAA/C;AAAA,UAA2DC,IAA3D,eAA2DA,IAA3D;;AACA,UAAMC,KAAK;AACTC,QAAAA,mBAAmB,mBAAYJ,OAAZ,WADV;AAETK,QAAAA,gBAAgB,mBAAYH,IAAZ;AAFP,SAGND,UAHM,CAAX;;AAMA,0BACE;AAAK,QAAA,KAAK,EAAEE,KAAZ;AAAmB,QAAA,SAAS,EAAE,4BAAWN,OAAO,CAACS,WAAnB,EAAgCR,SAAhC;AAA9B,SACGC,QADH,CADF;AAKD;;;EA3B8BQ,kBAAMC,S;;;iCAA1Bb,W,eACQ;AACjBE,EAAAA,OAAO,EAAEY,sBAAUC,MAAV,CAAiBC,UADT;AAEjBb,EAAAA,SAAS,EAAEW,sBAAUG,MAFJ;AAGjBb,EAAAA,QAAQ,EAAEU,sBAAUI,SAAV,CAAoB,CAACJ,sBAAUK,OAAV,CAAkBL,sBAAUM,IAA5B,CAAD,EAAoCN,sBAAUM,IAA9C,CAApB,EAAyEJ,UAHlE;AAIjBX,EAAAA,OAAO,EAAES,sBAAUO,MAJF;AAKjBd,EAAAA,IAAI,EAAEO,sBAAUO,MALC;AAMjBf,EAAAA,UAAU,EAAEQ,sBAAUC;AANL,C;iCADRf,W,kBASW;AACpBK,EAAAA,OAAO,EAAE,CADW;AAEpBE,EAAAA,IAAI,EAAE;AAFc,C;;AAqBxB,IAAMe,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBZ,IAAAA,WAAW,EAAE;AACXa,MAAAA,OAAO,EAAE,MADE;AAEXC,MAAAA,SAAS,YAAKF,KAAK,CAACG,OAAN,CAAcC,IAAnB,OAFE;AAGXC,MAAAA,aAAa,YAAKL,KAAK,CAACG,OAAN,CAAcC,IAAnB,OAHF;AAIXE,MAAAA,MAAM,YAAKN,KAAK,CAACG,OAAN,CAAcC,IAAnB,OAJK;AAKXG,MAAAA,UAAU,YAAKP,KAAK,CAACG,OAAN,CAAcC,IAAnB,OALC;AAMXI,MAAAA,YAAY,EAAE;AANH;AADY,GAAZ;AAAA,CAAf;;eAWe,wBAAWT,MAAX,EAAmBtB,WAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\n\nexport class GridContent extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n columns: PropTypes.number,\n rows: PropTypes.number,\n extraStyle: PropTypes.object,\n };\n static defaultProps = {\n columns: 2,\n rows: 2,\n };\n\n render() {\n const { classes, className, children, columns, extraStyle, rows } = this.props;\n const style = {\n gridTemplateColumns: `repeat(${columns}, 1fr)`,\n gridTemplateRows: `repeat(${rows}, auto)`,\n ...extraStyle,\n };\n\n return (\n <div style={style} className={classNames(classes.gridContent, className)}>\n {children}\n </div>\n );\n }\n}\n\nconst styles = (theme) => ({\n gridContent: {\n display: 'grid',\n columnGap: `${theme.spacing.unit}px`,\n gridColumnGap: `${theme.spacing.unit}px`,\n rowGap: `${theme.spacing.unit}px`,\n gridRowGap: `${theme.spacing.unit}px`,\n gridAutoRows: '1fr',\n },\n});\n\nexport default withStyles(styles)(GridContent);\n"],"file":"grid-content.js"}
1
+ {"version":3,"sources":["../../src/categorize/grid-content.jsx"],"names":["GridContent","props","classes","className","children","columns","extraStyle","rows","style","gridTemplateColumns","gridTemplateRows","gridContent","React","Component","PropTypes","object","isRequired","string","oneOfType","arrayOf","node","number","styles","theme","display","columnGap","spacing","unit","gridColumnGap","rowGap","gridRowGap","gridAutoRows"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;;;IAEaA,W;;;;;;;;;;;;WAcX,kBAAS;AACP,wBAAoE,KAAKC,KAAzE;AAAA,UAAQC,OAAR,eAAQA,OAAR;AAAA,UAAiBC,SAAjB,eAAiBA,SAAjB;AAAA,UAA4BC,QAA5B,eAA4BA,QAA5B;AAAA,UAAsCC,OAAtC,eAAsCA,OAAtC;AAAA,UAA+CC,UAA/C,eAA+CA,UAA/C;AAAA,UAA2DC,IAA3D,eAA2DA,IAA3D;;AACA,UAAMC,KAAK;AACTC,QAAAA,mBAAmB,mBAAYJ,OAAZ,WADV;AAETK,QAAAA,gBAAgB,EAAEH,IAAI,KAAK,CAAT,GAAa,UAAb,oBAAoCA,IAApC;AAFT,SAGND,UAHM,CAAX;;AAMA,0BACE;AAAK,QAAA,KAAK,EAAEE,KAAZ;AAAmB,QAAA,SAAS,EAAE,4BAAWN,OAAO,CAACS,WAAnB,EAAgCR,SAAhC;AAA9B,SACGC,QADH,CADF;AAKD;;;EA3B8BQ,kBAAMC,S;;;iCAA1Bb,W,eACQ;AACjBE,EAAAA,OAAO,EAAEY,sBAAUC,MAAV,CAAiBC,UADT;AAEjBb,EAAAA,SAAS,EAAEW,sBAAUG,MAFJ;AAGjBb,EAAAA,QAAQ,EAAEU,sBAAUI,SAAV,CAAoB,CAACJ,sBAAUK,OAAV,CAAkBL,sBAAUM,IAA5B,CAAD,EAAoCN,sBAAUM,IAA9C,CAApB,EAAyEJ,UAHlE;AAIjBX,EAAAA,OAAO,EAAES,sBAAUO,MAJF;AAKjBd,EAAAA,IAAI,EAAEO,sBAAUO,MALC;AAMjBf,EAAAA,UAAU,EAAEQ,sBAAUC;AANL,C;iCADRf,W,kBASW;AACpBK,EAAAA,OAAO,EAAE,CADW;AAEpBE,EAAAA,IAAI,EAAE;AAFc,C;;AAqBxB,IAAMe,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBZ,IAAAA,WAAW,EAAE;AACXa,MAAAA,OAAO,EAAE,MADE;AAEXC,MAAAA,SAAS,YAAKF,KAAK,CAACG,OAAN,CAAcC,IAAnB,OAFE;AAGXC,MAAAA,aAAa,YAAKL,KAAK,CAACG,OAAN,CAAcC,IAAnB,OAHF;AAIXE,MAAAA,MAAM,YAAKN,KAAK,CAACG,OAAN,CAAcC,IAAnB,OAJK;AAKXG,MAAAA,UAAU,YAAKP,KAAK,CAACG,OAAN,CAAcC,IAAnB,OALC;AAMXI,MAAAA,YAAY,EAAE;AANH;AADY,GAAZ;AAAA,CAAf;;eAWe,wBAAWT,MAAX,EAAmBtB,WAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\n\nexport class GridContent extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n columns: PropTypes.number,\n rows: PropTypes.number,\n extraStyle: PropTypes.object,\n };\n static defaultProps = {\n columns: 2,\n rows: 2,\n };\n\n render() {\n const { classes, className, children, columns, extraStyle, rows } = this.props;\n const style = {\n gridTemplateColumns: `repeat(${columns}, 1fr)`,\n gridTemplateRows: rows === 2 ? 'auto 1fr' : `repeat(${rows}, auto)`,\n ...extraStyle,\n };\n\n return (\n <div style={style} className={classNames(classes.gridContent, className)}>\n {children}\n </div>\n );\n }\n}\n\nconst styles = (theme) => ({\n gridContent: {\n display: 'grid',\n columnGap: `${theme.spacing.unit}px`,\n gridColumnGap: `${theme.spacing.unit}px`,\n rowGap: `${theme.spacing.unit}px`,\n gridRowGap: `${theme.spacing.unit}px`,\n gridAutoRows: '1fr',\n },\n});\n\nexport default withStyles(styles)(GridContent);\n"],"file":"grid-content.js"}
package/package.json CHANGED
@@ -4,18 +4,18 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "7.13.1-next.9+0fa0d8045",
7
+ "version": "7.14.1-next.13+c3304b1da",
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/categorize": "^0.8.16",
15
- "@pie-lib/correct-answer-toggle": "^2.3.74",
16
- "@pie-lib/drag": "^2.1.18",
17
- "@pie-lib/math-rendering": "^2.5.14",
18
- "@pie-lib/render-ui": "^4.14.24",
14
+ "@pie-lib/categorize": "^0.8.17",
15
+ "@pie-lib/correct-answer-toggle": "^2.3.78",
16
+ "@pie-lib/drag": "^2.2.1",
17
+ "@pie-lib/math-rendering": "^2.5.17",
18
+ "@pie-lib/render-ui": "^4.14.28",
19
19
  "classnames": "^2.2.5",
20
20
  "debug": "^4.1.1",
21
21
  "lodash": "^4.17.15",
@@ -24,7 +24,7 @@
24
24
  "react-dnd": "^14.0.5",
25
25
  "react-dom": "^16.8.1"
26
26
  },
27
- "gitHead": "0fa0d8045bc4a52f43c9cf75a296ec81016869e1",
27
+ "gitHead": "c3304b1da96b7e77b03b372d3467add35c77f8fe",
28
28
  "scripts": {
29
29
  "postpublish": "../../scripts/postpublish"
30
30
  },