math-main-components 0.0.16 → 0.0.17

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/dist/index.cjs.js CHANGED
@@ -276,7 +276,7 @@ function InputPin({ name, length, onFinished = () => { } }) {
276
276
  function onChange(event, position) {
277
277
  const regex = /^[0-9\b]+$/;
278
278
  const value = event.target.value ? event.target.value : "";
279
- console.log("current state", state);
279
+ console.log("current state", state, position, value);
280
280
  if (value != '' && regex.test(value)) {
281
281
  const digitCountBefore = state[position] == undefined ? 0 : String(state[position]).length;
282
282
  const addedDigitsCount = value.length - digitCountBefore;
package/dist/index.esm.js CHANGED
@@ -268,7 +268,7 @@ function InputPin({ name, length, onFinished = () => { } }) {
268
268
  function onChange(event, position) {
269
269
  const regex = /^[0-9\b]+$/;
270
270
  const value = event.target.value ? event.target.value : "";
271
- console.log("current state", state);
271
+ console.log("current state", state, position, value);
272
272
  if (value != '' && regex.test(value)) {
273
273
  const digitCountBefore = state[position] == undefined ? 0 : String(state[position]).length;
274
274
  const addedDigitsCount = value.length - digitCountBefore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*"