@pie-lib/math-toolbar 2.0.0-beta.1 → 2.0.0-beta.3
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 +208 -0
- package/lib/done-button.js +25 -22
- package/lib/done-button.js.map +1 -1
- package/lib/editor-and-pad.js +52 -89
- package/lib/editor-and-pad.js.map +1 -1
- package/lib/index.js +50 -70
- package/lib/index.js.map +1 -1
- package/lib/math-preview.js +9 -21
- package/lib/math-preview.js.map +1 -1
- package/package.json +3 -3
- package/src/done-button.jsx +16 -8
- package/src/editor-and-pad.jsx +110 -96
- package/src/index.jsx +21 -10
- package/src/math-preview.jsx +47 -49
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,214 @@
|
|
|
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.11.30](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.29...@pie-lib/math-toolbar@1.11.30) (2023-07-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.11.29](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.28...@pie-lib/math-toolbar@1.11.29) (2023-06-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.11.28](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.27...@pie-lib/math-toolbar@1.11.28) (2023-05-22)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* made sure font roboto is used for insert special characters PD-1914 ([cc875de](https://github.com/pie-framework/pie-lib/commit/cc875de6f04a673ca614c5072f9e4efc3bc71a70))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [1.11.27](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.26...@pie-lib/math-toolbar@1.11.27) (2023-05-02)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* **math-toolbar:** add white background for spanish and special characters done button PD-2119 ([3c1dd82](https://github.com/pie-framework/pie-lib/commit/3c1dd82f7d3f21651d3e5f87d5d543ad4a0907bf))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [1.11.26](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.25...@pie-lib/math-toolbar@1.11.26) (2023-05-01)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* **math-toolbar:** add style to sqrt component ([be42f61](https://github.com/pie-framework/pie-lib/commit/be42f619468d9fd07f2bbc79ff70849d98b32d4d))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [1.11.25](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.24...@pie-lib/math-toolbar@1.11.25) (2023-04-19)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* **eslint:** fix eslint problems-PD-2732 ([9eb9976](https://github.com/pie-framework/pie-lib/commit/9eb9976749753da86e1057a07bd2cfc65bf64ae4))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## [1.11.24](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.23...@pie-lib/math-toolbar@1.11.24) (2023-04-07)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## [1.11.23](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.22...@pie-lib/math-toolbar@1.11.23) (2023-03-20)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## [1.11.22](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.20...@pie-lib/math-toolbar@1.11.22) (2023-01-31)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [1.11.20](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.19...@pie-lib/math-toolbar@1.11.20) (2023-01-31)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## [1.11.19](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.18...@pie-lib/math-toolbar@1.11.19) (2023-01-31)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## [1.11.18](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.17...@pie-lib/math-toolbar@1.11.18) (2023-01-31)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## [1.11.17](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.10...@pie-lib/math-toolbar@1.11.17) (2023-01-31)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## [1.11.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.8...@pie-lib/math-toolbar@1.11.10) (2023-01-31)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## [1.11.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.6...@pie-lib/math-toolbar@1.11.8) (2023-01-31)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## [1.11.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.5...@pie-lib/math-toolbar@1.11.6) (2023-01-03)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## [1.11.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.4...@pie-lib/math-toolbar@1.11.5) (2022-12-19)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## [1.11.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.3...@pie-lib/math-toolbar@1.11.4) (2022-11-23)
|
|
155
|
+
|
|
156
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## [1.11.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.2...@pie-lib/math-toolbar@1.11.3) (2022-11-17)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## [1.11.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.1...@pie-lib/math-toolbar@1.11.2) (2022-11-14)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### Bug Fixes
|
|
174
|
+
|
|
175
|
+
* PD-1858 (Math editor tweak to better handle the entry of mixed numbers) - not working with a mixed number if the integer part is multi-digit PD-1858, PD-2029, PD-2030, PD-2031 ([158e76a](https://github.com/pie-framework/pie-lib/commit/158e76a48bec66b1f026811bb1856fa4af5668f3))
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
## [1.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.11.0...@pie-lib/math-toolbar@1.11.1) (2022-08-30)
|
|
182
|
+
|
|
183
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
# [1.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.10.3...@pie-lib/math-toolbar@1.11.0) (2022-08-29)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
### Features
|
|
193
|
+
|
|
194
|
+
* **math-toolbar:** feedback ([f3ef92d](https://github.com/pie-framework/pie-lib/commit/f3ef92d2dad55e0e0aff6dc216cc491f1fde94f2))
|
|
195
|
+
* **math-toolbar:** feedback ([85e4b58](https://github.com/pie-framework/pie-lib/commit/85e4b585dfb389a026629607ce54f6e3ac7d15fb))
|
|
196
|
+
* **math-toolbar:** feedback ([b1d925f](https://github.com/pie-framework/pie-lib/commit/b1d925f1caf67a0851eadb07467ed042df4513ea))
|
|
197
|
+
* **math-toolbar:** Make math-toolbar style inline with mathjax's one ([043ab63](https://github.com/pie-framework/pie-lib/commit/043ab63dda1914c992821d3f90992fe65817c597))
|
|
198
|
+
* **math-toolbar:** Make math-toolbar style inline with mathjax's one ([8b7a7ed](https://github.com/pie-framework/pie-lib/commit/8b7a7ed46eb5e597589dd0f999663bfeb20edaa9))
|
|
199
|
+
* **math-toolbar:** Make math-toolbar style inline with mathjax's one ([85ca9bd](https://github.com/pie-framework/pie-lib/commit/85ca9bdd12227054d1d3045e610544211251a699))
|
|
200
|
+
* **math-toolbar:** updates fonts accordingly - variables use italic MJXTEX-I ([9a0b157](https://github.com/pie-framework/pie-lib/commit/9a0b1579c9c17d77a94f62eeb4cc160c21ab2f81))
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
## [1.10.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.10.2...@pie-lib/math-toolbar@1.10.3) (2022-08-01)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @pie-lib/math-toolbar
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
6
214
|
## [1.10.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-toolbar@1.10.1...@pie-lib/math-toolbar@1.10.2) (2022-07-19)
|
|
7
215
|
|
|
8
216
|
**Note:** Version bump only for package @pie-lib/math-toolbar
|
package/lib/done-button.js
CHANGED
|
@@ -1,53 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.RawDoneButton = exports.DoneButton = void 0;
|
|
9
|
-
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
10
|
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
13
|
-
|
|
14
11
|
var _Check = _interopRequireDefault(require("@material-ui/icons/Check"));
|
|
15
|
-
|
|
16
12
|
var _styles = require("@material-ui/core/styles");
|
|
17
|
-
|
|
18
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
-
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
15
|
var RawDoneButton = function RawDoneButton(_ref) {
|
|
21
16
|
var classes = _ref.classes,
|
|
22
|
-
|
|
17
|
+
onClick = _ref.onClick,
|
|
18
|
+
hideBackground = _ref.hideBackground;
|
|
23
19
|
return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
24
20
|
"aria-label": "Done",
|
|
25
21
|
className: classes.iconRoot,
|
|
26
22
|
onClick: onClick,
|
|
27
23
|
classes: {
|
|
28
24
|
label: classes.label,
|
|
29
|
-
root: classes.iconRoot
|
|
25
|
+
root: (0, _classnames["default"])(classes.iconRoot, (0, _defineProperty2["default"])({}, classes.hideBackground, hideBackground))
|
|
30
26
|
}
|
|
31
27
|
}, /*#__PURE__*/_react["default"].createElement(_Check["default"], null));
|
|
32
28
|
};
|
|
33
|
-
|
|
34
29
|
exports.RawDoneButton = RawDoneButton;
|
|
35
30
|
RawDoneButton.propTypes = {
|
|
36
31
|
classes: _propTypes["default"].object.isRequired,
|
|
37
32
|
onClick: _propTypes["default"].func
|
|
38
33
|
};
|
|
39
|
-
var styles = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
34
|
+
var styles = function styles(theme) {
|
|
35
|
+
return {
|
|
36
|
+
iconRoot: {
|
|
37
|
+
verticalAlign: 'top',
|
|
38
|
+
width: '28px',
|
|
39
|
+
height: '28px',
|
|
40
|
+
color: '#00bb00'
|
|
41
|
+
},
|
|
42
|
+
hideBackground: {
|
|
43
|
+
backgroundColor: theme.palette.common.white,
|
|
44
|
+
'&:hover': {
|
|
45
|
+
backgroundColor: theme.palette.grey[200]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
label: {
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
top: '2px'
|
|
51
|
+
}
|
|
52
|
+
};
|
|
50
53
|
};
|
|
51
54
|
var DoneButton = (0, _styles.withStyles)(styles)(RawDoneButton);
|
|
52
55
|
exports.DoneButton = DoneButton;
|
|
53
|
-
//# sourceMappingURL=
|
|
56
|
+
//# sourceMappingURL=done-button.js.map
|
package/lib/done-button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"done-button.js","names":["RawDoneButton","classes","onClick","iconRoot","label","root","propTypes","PropTypes","object","isRequired","func","styles","verticalAlign","width","height","color","position","top","DoneButton","withStyles"],"sources":["../src/done-button.jsx"],"sourcesContent":["import React from 'react';\n\nimport IconButton from '@material-ui/core/IconButton';\nimport Check from '@material-ui/icons/Check';\nimport { withStyles } from '@material-ui/core/styles';\nimport PropTypes from 'prop-types';\n\nexport const RawDoneButton = ({ classes, onClick }) => (\n <IconButton\n aria-label=\"Done\"\n className={classes.iconRoot}\n onClick={onClick}\n classes={{\n label: classes.label,\n root: classes.iconRoot
|
|
1
|
+
{"version":3,"file":"done-button.js","names":["_react","_interopRequireDefault","require","_IconButton","_Check","_styles","_propTypes","_classnames","RawDoneButton","_ref","classes","onClick","hideBackground","createElement","className","iconRoot","label","root","classNames","_defineProperty2","exports","propTypes","PropTypes","object","isRequired","func","styles","theme","verticalAlign","width","height","color","backgroundColor","palette","common","white","grey","position","top","DoneButton","withStyles"],"sources":["../src/done-button.jsx"],"sourcesContent":["import React from 'react';\n\nimport IconButton from '@material-ui/core/IconButton';\nimport Check from '@material-ui/icons/Check';\nimport { withStyles } from '@material-ui/core/styles';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nexport const RawDoneButton = ({ classes, onClick, hideBackground }) => (\n <IconButton\n aria-label=\"Done\"\n className={classes.iconRoot}\n onClick={onClick}\n classes={{\n label: classes.label,\n root: classNames(classes.iconRoot, { [classes.hideBackground]: hideBackground }),\n }}\n >\n <Check />\n </IconButton>\n);\n\nRawDoneButton.propTypes = {\n classes: PropTypes.object.isRequired,\n onClick: PropTypes.func,\n};\n\nconst styles = (theme) => ({\n iconRoot: {\n verticalAlign: 'top',\n width: '28px',\n height: '28px',\n color: '#00bb00',\n },\n hideBackground: {\n backgroundColor: theme.palette.common.white,\n\n '&:hover': {\n backgroundColor: theme.palette.grey[200],\n },\n },\n label: {\n position: 'absolute',\n top: '2px',\n },\n});\nexport const DoneButton = withStyles(styles)(RawDoneButton);\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEO,IAAMM,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA;EAAA,IAAMC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,cAAc,GAAAH,IAAA,CAAdG,cAAc;EAAA,oBAC9DZ,MAAA,YAAAa,aAAA,CAACV,WAAA,WAAU;IACT,cAAW,MAAM;IACjBW,SAAS,EAAEJ,OAAO,CAACK,QAAS;IAC5BJ,OAAO,EAAEA,OAAQ;IACjBD,OAAO,EAAE;MACPM,KAAK,EAAEN,OAAO,CAACM,KAAK;MACpBC,IAAI,EAAE,IAAAC,sBAAU,EAACR,OAAO,CAACK,QAAQ,MAAAI,gBAAA,iBAAKT,OAAO,CAACE,cAAc,EAAGA,cAAc,CAAE;IACjF;EAAE,gBAEFZ,MAAA,YAAAa,aAAA,CAACT,MAAA,WAAK,MAAE,CACE,CAAC;AAAA,CACd;AAACgB,OAAA,CAAAZ,aAAA,GAAAA,aAAA;AAEFA,aAAa,CAACa,SAAS,GAAG;EACxBX,OAAO,EAAEY,qBAAS,CAACC,MAAM,CAACC,UAAU;EACpCb,OAAO,EAAEW,qBAAS,CAACG;AACrB,CAAC;AAED,IAAMC,MAAM,GAAG,SAATA,MAAMA,CAAIC,KAAK;EAAA,OAAM;IACzBZ,QAAQ,EAAE;MACRa,aAAa,EAAE,KAAK;MACpBC,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,MAAM;MACdC,KAAK,EAAE;IACT,CAAC;IACDnB,cAAc,EAAE;MACdoB,eAAe,EAAEL,KAAK,CAACM,OAAO,CAACC,MAAM,CAACC,KAAK;MAE3C,SAAS,EAAE;QACTH,eAAe,EAAEL,KAAK,CAACM,OAAO,CAACG,IAAI,CAAC,GAAG;MACzC;IACF,CAAC;IACDpB,KAAK,EAAE;MACLqB,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE;IACP;EACF,CAAC;AAAA,CAAC;AACK,IAAMC,UAAU,GAAG,IAAAC,kBAAU,EAACd,MAAM,CAAC,CAAClB,aAAa,CAAC;AAACY,OAAA,CAAAmB,UAAA,GAAAA,UAAA"}
|