@pie-element/number-line 13.1.1 → 13.1.2-next.1
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/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/author/arrows.d.ts +28 -0
- package/dist/author/arrows.js +69 -0
- package/dist/author/card-bar.d.ts +20 -0
- package/dist/author/card-bar.js +41 -0
- package/dist/author/defaults.d.ts +178 -0
- package/dist/author/defaults.js +144 -0
- package/dist/author/domain.d.ts +15 -0
- package/dist/author/domain.js +54 -0
- package/dist/author/index.d.ts +23 -0
- package/dist/author/index.js +89 -0
- package/dist/author/main.d.ts +44 -0
- package/dist/author/main.js +485 -0
- package/dist/author/number-text-field.d.ts +13 -0
- package/dist/author/number-text-field.js +13 -0
- package/dist/author/point-config.d.ts +25 -0
- package/dist/author/point-config.js +69 -0
- package/dist/author/size.d.ts +24 -0
- package/dist/author/size.js +48 -0
- package/dist/author/ticks.d.ts +22 -0
- package/dist/author/ticks.js +115 -0
- package/dist/author/utils.d.ts +9 -0
- package/dist/author/utils.js +4 -0
- package/dist/browser/author/index.js +40259 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/controller/index.js +569 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +2 -0
- package/dist/browser/delivery-Ci_kZyOM.js +17903 -0
- package/dist/browser/delivery-Ci_kZyOM.js.map +1 -0
- package/dist/browser/dist-D5T-OaLo.js +19038 -0
- package/dist/browser/dist-D5T-OaLo.js.map +1 -0
- package/dist/browser/impureFunctionsAny.generated-Bqfato71.js +10162 -0
- package/dist/browser/impureFunctionsAny.generated-Bqfato71.js.map +1 -0
- package/dist/browser/number-line.css +2 -0
- package/dist/controller/defaults.d.ts +58 -0
- package/dist/controller/defaults.js +50 -0
- package/dist/controller/index.d.ts +47 -0
- package/dist/controller/index.js +165 -0
- package/dist/controller/tickUtils.d.ts +21 -0
- package/dist/controller/tickUtils.js +252 -0
- package/dist/controller/utils.d.ts +9 -0
- package/dist/controller/utils.js +68 -0
- package/dist/delivery/data-converter.d.ts +64 -0
- package/dist/delivery/data-converter.js +70 -0
- package/dist/delivery/draggable/index.d.ts +33 -0
- package/dist/delivery/draggable/index.js +39 -0
- package/dist/delivery/index.d.ts +35 -0
- package/dist/delivery/index.js +109 -0
- package/dist/delivery/number-line/colors.d.ts +11 -0
- package/dist/delivery/number-line/colors.js +5 -0
- package/dist/delivery/number-line/feedback.d.ts +19 -0
- package/dist/delivery/number-line/feedback.js +57 -0
- package/dist/delivery/number-line/graph/arrow.d.ts +30 -0
- package/dist/delivery/number-line/graph/arrow.js +27 -0
- package/dist/delivery/number-line/graph/elements/base.d.ts +16 -0
- package/dist/delivery/number-line/graph/elements/base.js +11 -0
- package/dist/delivery/number-line/graph/elements/builder.d.ts +33 -0
- package/dist/delivery/number-line/graph/elements/builder.js +30 -0
- package/dist/delivery/number-line/graph/elements/line.d.ts +51 -0
- package/dist/delivery/number-line/graph/elements/line.js +188 -0
- package/dist/delivery/number-line/graph/elements/point.d.ts +43 -0
- package/dist/delivery/number-line/graph/elements/point.js +127 -0
- package/dist/delivery/number-line/graph/elements/ray.d.ts +43 -0
- package/dist/delivery/number-line/graph/elements/ray.js +130 -0
- package/dist/delivery/number-line/graph/index.d.ts +59 -0
- package/dist/delivery/number-line/graph/index.js +196 -0
- package/dist/delivery/number-line/graph/line.d.ts +46 -0
- package/dist/delivery/number-line/graph/line.js +27 -0
- package/dist/delivery/number-line/graph/stacks.d.ts +10 -0
- package/dist/delivery/number-line/graph/stacks.js +40 -0
- package/dist/delivery/number-line/graph/tick-utils.d.ts +80 -0
- package/dist/delivery/number-line/graph/tick-utils.js +295 -0
- package/dist/delivery/number-line/graph/ticks.d.ts +46 -0
- package/dist/delivery/number-line/graph/ticks.js +115 -0
- package/dist/delivery/number-line/index.d.ts +35 -0
- package/dist/delivery/number-line/index.js +215 -0
- package/dist/delivery/number-line/point-chooser/button.d.ts +31 -0
- package/dist/delivery/number-line/point-chooser/button.js +36 -0
- package/dist/delivery/number-line/point-chooser/img.d.ts +10 -0
- package/dist/delivery/number-line/point-chooser/img.js +4 -0
- package/dist/delivery/number-line/point-chooser/index.d.ts +37 -0
- package/dist/delivery/number-line/point-chooser/index.js +154 -0
- package/dist/delivery/number-line/point-chooser/styles.d.ts +192 -0
- package/dist/delivery/number-line/transitions/fade.d.ts +34 -0
- package/dist/delivery/number-line/transitions/fade.js +75 -0
- package/dist/delivery/number-line/transitions/index.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +197 -0
- package/dist/index.js +2 -0
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +87 -21
- package/CHANGELOG.json +0 -1247
- package/CHANGELOG.md +0 -2435
- package/LICENSE.md +0 -5
- package/README.md +0 -28
- package/configure/CHANGELOG.json +0 -827
- package/configure/CHANGELOG.md +0 -2082
- package/configure/lib/arrows.js +0 -89
- package/configure/lib/arrows.js.map +0 -1
- package/configure/lib/card-bar.js +0 -57
- package/configure/lib/card-bar.js.map +0 -1
- package/configure/lib/defaults.js +0 -177
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/domain.js +0 -87
- package/configure/lib/domain.js.map +0 -1
- package/configure/lib/index.js +0 -176
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -815
- package/configure/lib/main.js.map +0 -1
- package/configure/lib/number-text-field.js +0 -26
- package/configure/lib/number-text-field.js.map +0 -1
- package/configure/lib/point-config.js +0 -84
- package/configure/lib/point-config.js.map +0 -1
- package/configure/lib/size.js +0 -66
- package/configure/lib/size.js.map +0 -1
- package/configure/lib/ticks.js +0 -234
- package/configure/lib/ticks.js.map +0 -1
- package/configure/lib/utils.js +0 -12
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -20
- package/controller/CHANGELOG.json +0 -332
- package/controller/CHANGELOG.md +0 -1360
- package/controller/lib/defaults.js +0 -56
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -430
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/tickUtils.js +0 -294
- package/controller/lib/tickUtils.js.map +0 -1
- package/controller/lib/utils.js +0 -168
- package/controller/lib/utils.js.map +0 -1
- package/controller/package.json +0 -20
- package/demo.gif +0 -0
- package/docs/config-schema.json +0 -2532
- package/docs/config-schema.json.md +0 -1844
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -39
- package/docs/demo/index.html +0 -1
- package/docs/pie-schema.json +0 -2461
- package/docs/pie-schema.json.md +0 -1228
- package/docs/schemas/config.json +0 -256
- package/lib/data-converter.js +0 -96
- package/lib/data-converter.js.map +0 -1
- package/lib/draggable/index.js +0 -114
- package/lib/draggable/index.js.map +0 -1
- package/lib/index.js +0 -196
- package/lib/index.js.map +0 -1
- package/lib/number-line/colors.js +0 -11
- package/lib/number-line/colors.js.map +0 -1
- package/lib/number-line/feedback.js +0 -92
- package/lib/number-line/feedback.js.map +0 -1
- package/lib/number-line/graph/arrow.js +0 -44
- package/lib/number-line/graph/arrow.js.map +0 -1
- package/lib/number-line/graph/elements/base.js +0 -20
- package/lib/number-line/graph/elements/base.js.map +0 -1
- package/lib/number-line/graph/elements/builder.js +0 -37
- package/lib/number-line/graph/elements/builder.js.map +0 -1
- package/lib/number-line/graph/elements/line.js +0 -259
- package/lib/number-line/graph/elements/line.js.map +0 -1
- package/lib/number-line/graph/elements/point.js +0 -204
- package/lib/number-line/graph/elements/point.js.map +0 -1
- package/lib/number-line/graph/elements/ray.js +0 -190
- package/lib/number-line/graph/elements/ray.js.map +0 -1
- package/lib/number-line/graph/index.js +0 -262
- package/lib/number-line/graph/index.js.map +0 -1
- package/lib/number-line/graph/line.js +0 -38
- package/lib/number-line/graph/line.js.map +0 -1
- package/lib/number-line/graph/stacks.js +0 -78
- package/lib/number-line/graph/stacks.js.map +0 -1
- package/lib/number-line/graph/tick-utils.js +0 -347
- package/lib/number-line/graph/tick-utils.js.map +0 -1
- package/lib/number-line/graph/ticks.js +0 -188
- package/lib/number-line/graph/ticks.js.map +0 -1
- package/lib/number-line/index.js +0 -384
- package/lib/number-line/index.js.map +0 -1
- package/lib/number-line/point-chooser/button.js +0 -49
- package/lib/number-line/point-chooser/button.js.map +0 -1
- package/lib/number-line/point-chooser/img.js +0 -8
- package/lib/number-line/point-chooser/img.js.map +0 -1
- package/lib/number-line/point-chooser/index.js +0 -197
- package/lib/number-line/point-chooser/index.js.map +0 -1
- package/lib/number-line/point-chooser/styles.js +0 -77
- package/lib/number-line/point-chooser/styles.js.map +0 -1
- package/lib/number-line/transitions/fade.js +0 -88
- package/lib/number-line/transitions/fade.js.map +0 -1
- package/lib/number-line/transitions/index.js +0 -14
- package/lib/number-line/transitions/index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ticks.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_configUi","_FormControlLabel","_RadioGroup","_Radio","math","_interopRequireWildcard","_renderUi","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DisplayFlex","styled","display","FlexCol1","flexFlow","gap","width","FlexCol2","RadioInputs","alignItems","paddingTop","paddingBottom","TableFixed","tableLayout","LabelWidth","CustomColorRadio","Radio","color","tertiary","StyledNumberTextFieldCustom","NumberTextFieldCustom","maxWidth","cursor","TickIntervals","exports","Ticks","props","ticks","onChange","minorLimits","minorValues","majorValues","fractionMajor","fraction","number","major","fractionMajorString","d","toString","changeTickIntervalType","tickIntervalType","includes","minor","integerTick","decimalTick","fractionTick","changeIntegerTick","changeFractionTick","changeDecimalTick","changeFractionLabel","fractionLabel","changeDecimalLabel","decimalLabel","createElement","name","value","control","checked","label","disabled","max","min","ceil","floor","step","onlyIntegersAllowed","variant","type","key","length","customValues","decimal","propTypes","PropTypes","func","object","_default"],"sources":["../src/ticks.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { NumberTextFieldCustom } from '@pie-lib/config-ui';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport RadioGroup from '@mui/material/RadioGroup';\nimport Radio from '@mui/material/Radio';\nimport * as math from 'mathjs';\nimport { color } from '@pie-lib/render-ui';\n\nconst DisplayFlex = styled('div')({\n display: 'flex',\n});\n\nconst FlexCol1 = styled('div')({\n display: 'flex',\n flexFlow: 'column',\n gap: '10px',\n width: '65%',\n});\n\nconst FlexCol2 = styled('div')({\n display: 'flex',\n flexFlow: 'column',\n gap: '10px',\n});\n\nconst RadioInputs = styled('tr')({\n display: 'flex',\n alignItems: 'center',\n paddingTop: '5px',\n paddingBottom: '5px',\n});\n\nconst TableFixed = styled('table')({\n tableLayout: 'fixed',\n width: '100%',\n});\n\nconst LabelWidth = styled('td')({\n width: '35%',\n});\n\nconst CustomColorRadio = styled(Radio)({\n color: `${color.tertiary()} !important`,\n});\n\nconst StyledNumberTextFieldCustom = styled(NumberTextFieldCustom)({\n '& input': {\n maxWidth: '145px',\n cursor: 'default',\n },\n});\n\n// This const will store available tick interval types.\nexport const TickIntervals = ['Integer', 'Fraction', 'Decimal'];\n\nexport const Ticks = (props) => {\n const { ticks, onChange, minorLimits, minorValues, majorValues } = props;\n\n //Format decimal value of label interval to fraction\n const fractionMajor = math.fraction(math.number(ticks.major));\n const fractionMajorString =\n fractionMajor.d === 1 ? fractionMajor.n.toString() : fractionMajor.n + '/' + fractionMajor.d;\n\n /*\n * Function to handle tick interval type radio group change\n * @param e change event object\n * @param tickIntervalType string value for changed tick interval type\n * */\n const changeTickIntervalType = (e, tickIntervalType) => {\n if (!TickIntervals.includes(tickIntervalType)) {\n return;\n }\n if (tickIntervalType === 'Integer') {\n ticks.minor = ticks.integerTick;\n } else if (tickIntervalType === 'Decimal') {\n ticks.minor = ticks.decimalTick;\n } else if (tickIntervalType === 'Fraction') {\n ticks.minor = math.number(math.fraction(ticks.fractionTick));\n }\n ticks.tickIntervalType = tickIntervalType;\n onChange({ ticks });\n };\n\n /*\n * Function to handle change in integer tick interval\n * @param e change event object\n * @param integerTick number value for changed tick\n * */\n const changeIntegerTick = (e, integerTick) => {\n if (ticks.tickIntervalType === 'Integer') {\n ticks.integerTick = integerTick;\n ticks.minor = integerTick;\n onChange({ ticks });\n }\n };\n\n /*\n * Function to handle change in fraction tick interval\n * @param e change event object\n * @param fractionTick string value for changed tick\n * */\n const changeFractionTick = (e, fractionTick) => {\n if (ticks.tickIntervalType === 'Fraction') {\n ticks.fractionTick = fractionTick;\n ticks.minor = math.number(math.fraction(fractionTick));\n onChange({ ticks });\n }\n };\n\n /*\n * Function to handle change in decimal tick interval\n * @param e change event object\n * @param decimalTick number value for changed tick\n * */\n const changeDecimalTick = (e, decimalTick) => {\n if (ticks.tickIntervalType === 'Decimal') {\n ticks.decimalTick = decimalTick;\n ticks.minor = decimalTick;\n onChange({ ticks });\n }\n };\n\n /*\n * Function to handle change in fraction label interval value\n * @param e change event object\n * @param fractionLabel string value for changed label interval\n * */\n const changeFractionLabel = (e, fractionLabel) => {\n if (ticks.tickIntervalType === 'Fraction') {\n ticks.major = math.number(math.fraction(fractionLabel));\n onChange({ ticks });\n }\n };\n\n /*\n * Function to handle change in decimal label interval value\n * @param e change event object\n * @param decimalLabel number value for changed label interval\n * */\n const changeDecimalLabel = (e, decimalLabel) => {\n if (ticks.tickIntervalType === 'Decimal' || ticks.tickIntervalType === 'Integer') {\n ticks.major = decimalLabel;\n onChange({ ticks });\n }\n };\n\n return (\n <DisplayFlex>\n <FlexCol1>\n <label>Tick Interval</label>\n <RadioGroup\n aria-label=\"tick-interval-type\"\n name=\"tickIntervalType\"\n value={ticks.tickIntervalType}\n onChange={changeTickIntervalType}\n >\n <TableFixed>\n <tbody>\n <RadioInputs>\n <LabelWidth>\n <FormControlLabel\n value=\"Integer\"\n control={<CustomColorRadio checked={ticks.tickIntervalType === 'Integer'} />}\n label=\"Integer\"\n disabled={minorLimits.max < 1}\n />\n </LabelWidth>\n <td>\n <StyledNumberTextFieldCustom\n value={ticks.integerTick}\n min={math.number(math.ceil(minorLimits.min))}\n max={math.number(math.floor(minorLimits.max))}\n step={1}\n onlyIntegersAllowed={true}\n onChange={changeIntegerTick}\n variant={'outlined'}\n type={'number'}\n disabled={ticks.tickIntervalType !== 'Integer' || minorLimits.max < 1}\n key={\n ticks.tickIntervalType !== 'Integer' || minorLimits.max < 1 ? 'integerDisabled' : 'integerEnabled'\n }\n />\n </td>\n </RadioInputs>\n <RadioInputs>\n <LabelWidth>\n <FormControlLabel\n value=\"Fraction\"\n control={<CustomColorRadio checked={ticks.tickIntervalType === 'Fraction'} />}\n label=\"Unit Fraction\"\n disabled={minorValues.fraction.length === 0}\n />\n </LabelWidth>\n <td>\n <StyledNumberTextFieldCustom\n value={ticks.fractionTick}\n customValues={minorValues.fraction}\n onChange={changeFractionTick}\n variant={'outlined'}\n type={'text'}\n disabled={ticks.tickIntervalType !== 'Fraction' || minorValues.fraction.length === 0}\n key={\n ticks.tickIntervalType !== 'Fraction' || minorValues.fraction.length === 0\n ? 'fractionDisabled'\n : 'fractionEnabled'\n }\n />\n </td>\n </RadioInputs>\n <RadioInputs>\n <LabelWidth>\n <FormControlLabel\n value=\"Decimal\"\n control={<CustomColorRadio checked={ticks.tickIntervalType === 'Decimal'} />}\n label=\"Decimal\"\n disabled={minorValues.decimal.length === 0}\n />\n </LabelWidth>\n <td>\n <StyledNumberTextFieldCustom\n value={ticks.decimalTick}\n customValues={minorValues.decimal}\n onChange={changeDecimalTick}\n variant={'outlined'}\n type={'number'}\n disabled={ticks.tickIntervalType !== 'Decimal' || minorValues.decimal.length === 0}\n key={\n ticks.tickIntervalType !== 'Decimal' || minorValues.decimal.length === 0\n ? 'decimalDisabled'\n : 'decimalEnabled'\n }\n />\n </td>\n </RadioInputs>\n </tbody>\n </TableFixed>\n </RadioGroup>\n </FlexCol1>\n <FlexCol2>\n <label>Label Interval</label>\n <StyledNumberTextFieldCustom\n value={ticks.tickIntervalType === 'Fraction' ? fractionMajorString : ticks.major}\n variant={'outlined'}\n customValues={ticks.tickIntervalType === 'Fraction' ? majorValues.fraction : majorValues.decimal}\n type={ticks.tickIntervalType === 'Fraction' ? 'text' : 'number'}\n onChange={ticks.tickIntervalType === 'Fraction' ? changeFractionLabel : changeDecimalLabel}\n />\n </FlexCol2>\n </DisplayFlex>\n );\n};\nTicks.propTypes = {\n onChange: PropTypes.func,\n ticks: PropTypes.object,\n minorLimits: PropTypes.object,\n minorValues: PropTypes.object,\n majorValues: PropTypes.object,\n};\n\nexport default Ticks;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,MAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,IAAA,GAAAC,uBAAA,CAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAA2C,SAAAQ,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAA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CAAC;AAAC3B,OAAA,CAAAC,KAAA,GAAAA,KAAA;AACFA,KAAK,CAAC+C,SAAS,GAAG;EAChB5C,QAAQ,EAAE6C,kBAAS,CAACC,IAAI;EACxB/C,KAAK,EAAE8C,kBAAS,CAACE,MAAM;EACvB9C,WAAW,EAAE4C,kBAAS,CAACE,MAAM;EAC7B7C,WAAW,EAAE2C,kBAAS,CAACE,MAAM;EAC7B5C,WAAW,EAAE0C,kBAAS,CAACE;AACzB,CAAC;AAAC,IAAAC,QAAA,GAAApD,OAAA,CAAAjC,OAAA,GAEakC,KAAK","ignoreList":[]}
|
package/configure/lib/utils.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.generateValidationMessage = void 0;
|
|
7
|
-
const generateValidationMessage = () => {
|
|
8
|
-
const baselineValidationMessage = '\nThe correct answer should include at least one number line object.';
|
|
9
|
-
return 'Validation requirements:' + baselineValidationMessage;
|
|
10
|
-
};
|
|
11
|
-
exports.generateValidationMessage = generateValidationMessage;
|
|
12
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["generateValidationMessage","baselineValidationMessage","exports"],"sources":["../src/utils.js"],"sourcesContent":["export const generateValidationMessage = () => {\n const baselineValidationMessage =\n '\\nThe correct answer should include at least one number line object.';\n\n return 'Validation requirements:' + baselineValidationMessage;\n};\n"],"mappings":";;;;;;AAAO,MAAMA,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAMC,yBAAyB,GAC7B,sEAAsE;EAExE,OAAO,0BAA0B,GAAGA,yBAAyB;AAC/D,CAAC;AAACC,OAAA,CAAAF,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
package/configure/package.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pie-element/number-line-configure",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "11.1.1",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"module": "src/index.js",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@emotion/react": "^11.14.0",
|
|
9
|
-
"@emotion/style": "^0.8.0",
|
|
10
|
-
"@mui/icons-material": "^7.3.4",
|
|
11
|
-
"@mui/material": "^7.3.4",
|
|
12
|
-
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
13
|
-
"@pie-lib/config-ui": "13.0.4",
|
|
14
|
-
"@pie-lib/editable-html-tip-tap": "2.1.2",
|
|
15
|
-
"@pie-lib/render-ui": "6.1.0",
|
|
16
|
-
"lodash-es": "^4.17.23",
|
|
17
|
-
"react": "18.3.1",
|
|
18
|
-
"react-dom": "18.3.1"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "feat",
|
|
4
|
-
"scope": "general",
|
|
5
|
-
"subject": "initialize default model (#129)",
|
|
6
|
-
"merge": null,
|
|
7
|
-
"header": "feat(general): initialize default model (#129)",
|
|
8
|
-
"body": "* feat: initialize empty README\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* fix: add babel-transform-runtime in order to support async/await\n\n* bump yarn lock\n\n* update snapshots",
|
|
9
|
-
"footer": null,
|
|
10
|
-
"notes": [],
|
|
11
|
-
"hash": "b62d0585a86c8e2fbe5a6181b869a28c1131756b",
|
|
12
|
-
"gitTags": "",
|
|
13
|
-
"committerDate": "2019-03-12 15:47:20 -0400",
|
|
14
|
-
"isTagged": true,
|
|
15
|
-
"tag": "@pie-element/number-line-controller@2.1.0"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "fix",
|
|
19
|
-
"scope": null,
|
|
20
|
-
"subject": "build fixes",
|
|
21
|
-
"merge": null,
|
|
22
|
-
"header": "fix: build fixes",
|
|
23
|
-
"body": null,
|
|
24
|
-
"footer": null,
|
|
25
|
-
"notes": [],
|
|
26
|
-
"hash": "3c3a7f20ff7805fa1265eb7b187b80d77e1820ac",
|
|
27
|
-
"gitTags": "",
|
|
28
|
-
"committerDate": "2018-09-20 09:49:51 +0100",
|
|
29
|
-
"isTagged": true,
|
|
30
|
-
"tag": "@pie-element/number-line-controller@2.0.0"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "fix",
|
|
34
|
-
"scope": "dependencies",
|
|
35
|
-
"subject": "bump @pie-lib/feedback",
|
|
36
|
-
"merge": null,
|
|
37
|
-
"header": "fix(dependencies): bump @pie-lib/feedback",
|
|
38
|
-
"body": null,
|
|
39
|
-
"footer": null,
|
|
40
|
-
"notes": [],
|
|
41
|
-
"hash": "6fea7bb8bd678952103c1d6efb9d1e3d8ea4ef90",
|
|
42
|
-
"gitTags": "",
|
|
43
|
-
"committerDate": "2018-05-10 21:39:29 -0400",
|
|
44
|
-
"isTagged": true,
|
|
45
|
-
"tag": "@pie-element/number-line-controller@2.0.0"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"type": "chore",
|
|
49
|
-
"scope": "test",
|
|
50
|
-
"subject": "update tests",
|
|
51
|
-
"merge": null,
|
|
52
|
-
"header": "chore(test): update tests",
|
|
53
|
-
"body": null,
|
|
54
|
-
"footer": null,
|
|
55
|
-
"notes": [],
|
|
56
|
-
"hash": "8b663ad51a6bcc9d6c9fab3de3a9a23da23a24a8",
|
|
57
|
-
"gitTags": "",
|
|
58
|
-
"committerDate": "2018-05-10 21:21:58 -0400",
|
|
59
|
-
"isTagged": true,
|
|
60
|
-
"tag": "@pie-element/number-line-controller@2.0.0"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "fix",
|
|
64
|
-
"scope": "controller",
|
|
65
|
-
"subject": "bump feedback version",
|
|
66
|
-
"merge": null,
|
|
67
|
-
"header": "fix(controller): bump feedback version",
|
|
68
|
-
"body": null,
|
|
69
|
-
"footer": null,
|
|
70
|
-
"notes": [],
|
|
71
|
-
"hash": "a07c9ecf3f44f94bdeb48e847cca52ac8e13f619",
|
|
72
|
-
"gitTags": "",
|
|
73
|
-
"committerDate": "2018-05-10 19:13:44 -0400",
|
|
74
|
-
"isTagged": true,
|
|
75
|
-
"tag": "@pie-element/number-line-controller@2.0.0"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"type": "feat",
|
|
79
|
-
"scope": "model",
|
|
80
|
-
"subject": "move away from legacy model",
|
|
81
|
-
"merge": null,
|
|
82
|
-
"header": "feat(model): move away from legacy model",
|
|
83
|
-
"body": null,
|
|
84
|
-
"footer": "BREAKING CHANGE:\n\nModel has moved from:\n\n* `model.config` -> `config`\n* `feedback` - uses new feedback structure\n\nFull example:\n\nFrom:\n\n```javascript\n\n {\n id: '1',\n element: 'number-line',\n correctResponse: [\n {\n type: 'point',\n pointType: 'full',\n domainPosition: 1\n },\n {\n type: 'line',\n leftPoint: 'full',\n rightPoint: 'empty',\n domainPosition: 1,\n size: 2\n }\n ],\n feedback: {\n correctFeedbackType: 'default',\n partialFeedbackType: 'default',\n incorrectFeedbackType: 'custom',\n incorrectFeedback: '<h1>incorrect</h1>'\n },\n allowPartialScoring: true,\n partialScoring: [\n {\n numberOfCorrect: 1,\n scorePercentage: 35\n }\n ],\n model: {\n config: {\n width: 500,\n height: 400,\n domain: [\n -5,\n 5\n ],\n initialElements: [\n {\n type: 'point',\n pointType: 'empty',\n domainPosition: -1\n }\n ],\n maxNumberOfPoints: 20,\n tickFrequency: 6,\n showMinorTicks: true,\n snapPerTick: 1,\n tickLabelOverrides: [],\n initialType: 'PF',\n exhibitOnly: false,\n availableTypes: {\n PF: true,\n PE: true,\n LFF: true,\n LEF: true,\n LFE: true,\n LEE: true,\n RFN: true,\n RFP: true,\n REN: true,\n REP: true\n }\n }\n }\n }\n\n```\n\nTo:\n\n```javascript\n\n {\n id: '1',\n element: 'number-line',\n correctResponse: [\n {\n type: 'point',\n pointType: 'full',\n domainPosition: 1\n },\n {\n type: 'line',\n leftPoint: 'full',\n rightPoint: 'empty',\n domainPosition: 1,\n size: 2\n }\n ],\n feedback: {\n correct: {\n type: 'default',\n default: 'Correct'\n },\n partial: {\n type: 'default',\n default: 'Nearly'\n },\n incorrect: {\n type: 'custom',\n custom: '<h1>Incorrect</h1>'\n }\n },\n allowPartialScoring: true,\n partialScoring: [\n {\n numberOfCorrect: 1,\n scorePercentage: 35\n }\n ],\n config: {\n width: 500,\n height: 400,\n domain: [-5, 5],\n initialElements: [\n {\n type: 'point',\n pointType: 'empty',\n domainPosition: -1\n }\n ],\n maxNumberOfPoints: 20,\n tickFrequency: 6,\n showMinorTicks: true,\n snapPerTick: 1,\n tickLabelOverrides: [],\n initialType: 'PF',\n exhibitOnly: false,\n availableTypes: {\n PF: true,\n PE: true,\n LFF: true,\n LEF: true,\n LFE: true,\n LEE: true,\n RFN: true,\n RFP: true,\n REN: true,\n REP: true\n }\n }\n }\n\n```",
|
|
85
|
-
"notes": [
|
|
86
|
-
{
|
|
87
|
-
"title": "BREAKING CHANGE",
|
|
88
|
-
"text": "Model has moved from:\n\n* `model.config` -> `config`\n* `feedback` - uses new feedback structure\n\nFull example:\n\nFrom:\n\n```javascript\n\n {\n id: '1',\n element: 'number-line',\n correctResponse: [\n {\n type: 'point',\n pointType: 'full',\n domainPosition: 1\n },\n {\n type: 'line',\n leftPoint: 'full',\n rightPoint: 'empty',\n domainPosition: 1,\n size: 2\n }\n ],\n feedback: {\n correctFeedbackType: 'default',\n partialFeedbackType: 'default',\n incorrectFeedbackType: 'custom',\n incorrectFeedback: '<h1>incorrect</h1>'\n },\n allowPartialScoring: true,\n partialScoring: [\n {\n numberOfCorrect: 1,\n scorePercentage: 35\n }\n ],\n model: {\n config: {\n width: 500,\n height: 400,\n domain: [\n -5,\n 5\n ],\n initialElements: [\n {\n type: 'point',\n pointType: 'empty',\n domainPosition: -1\n }\n ],\n maxNumberOfPoints: 20,\n tickFrequency: 6,\n showMinorTicks: true,\n snapPerTick: 1,\n tickLabelOverrides: [],\n initialType: 'PF',\n exhibitOnly: false,\n availableTypes: {\n PF: true,\n PE: true,\n LFF: true,\n LEF: true,\n LFE: true,\n LEE: true,\n RFN: true,\n RFP: true,\n REN: true,\n REP: true\n }\n }\n }\n }\n\n```\n\nTo:\n\n```javascript\n\n {\n id: '1',\n element: 'number-line',\n correctResponse: [\n {\n type: 'point',\n pointType: 'full',\n domainPosition: 1\n },\n {\n type: 'line',\n leftPoint: 'full',\n rightPoint: 'empty',\n domainPosition: 1,\n size: 2\n }\n ],\n feedback: {\n correct: {\n type: 'default',\n default: 'Correct'\n },\n partial: {\n type: 'default',\n default: 'Nearly'\n },\n incorrect: {\n type: 'custom',\n custom: '<h1>Incorrect</h1>'\n }\n },\n allowPartialScoring: true,\n partialScoring: [\n {\n numberOfCorrect: 1,\n scorePercentage: 35\n }\n ],\n config: {\n width: 500,\n height: 400,\n domain: [-5, 5],\n initialElements: [\n {\n type: 'point',\n pointType: 'empty',\n domainPosition: -1\n }\n ],\n maxNumberOfPoints: 20,\n tickFrequency: 6,\n showMinorTicks: true,\n snapPerTick: 1,\n tickLabelOverrides: [],\n initialType: 'PF',\n exhibitOnly: false,\n availableTypes: {\n PF: true,\n PE: true,\n LFF: true,\n LEF: true,\n LFE: true,\n LEE: true,\n RFN: true,\n RFP: true,\n REN: true,\n REP: true\n }\n }\n }\n\n```"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"hash": "91533425f0b1f43ec90fe8ac8231cbbb3aac9309",
|
|
92
|
-
"gitTags": "",
|
|
93
|
-
"committerDate": "2018-05-10 12:13:31 -0400",
|
|
94
|
-
"isTagged": true,
|
|
95
|
-
"tag": "@pie-element/number-line-controller@2.0.0"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"type": "feat",
|
|
99
|
-
"scope": null,
|
|
100
|
-
"subject": "Transformed defaults into an object that has model and configuration property. Renamed `model.config` with `model.graph`.",
|
|
101
|
-
"merge": null,
|
|
102
|
-
"header": "feat: Transformed defaults into an object that has model and configuration property. Renamed `model.config` with `model.graph`.",
|
|
103
|
-
"body": null,
|
|
104
|
-
"footer": "BREAKING CHANGE: `model.config` will not be used anymore. Use `model.graph` instead, to configure the graph.",
|
|
105
|
-
"notes": [
|
|
106
|
-
{
|
|
107
|
-
"title": "BREAKING CHANGE",
|
|
108
|
-
"text": "`model.config` will not be used anymore. Use `model.graph` instead, to configure the graph."
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"hash": "6548972f0d7d3a6afabd422b27959fdaa02e5e14",
|
|
112
|
-
"gitTags": "",
|
|
113
|
-
"committerDate": "2019-05-08 15:12:28 +0300",
|
|
114
|
-
"isTagged": true,
|
|
115
|
-
"tag": "@pie-element/number-line-controller@3.0.0"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"type": "feat",
|
|
119
|
-
"scope": "number-line",
|
|
120
|
-
"subject": "added prompt support.",
|
|
121
|
-
"merge": null,
|
|
122
|
-
"header": "feat(number-line): added prompt support.",
|
|
123
|
-
"body": null,
|
|
124
|
-
"footer": null,
|
|
125
|
-
"notes": [],
|
|
126
|
-
"hash": "324824c38780df036066ca60a6a75cc3717987e4",
|
|
127
|
-
"gitTags": "",
|
|
128
|
-
"committerDate": "2019-05-10 12:50:58 +0300",
|
|
129
|
-
"isTagged": true,
|
|
130
|
-
"tag": "@pie-element/number-line-controller@3.1.0"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "feat",
|
|
134
|
-
"scope": null,
|
|
135
|
-
"subject": "number line updates",
|
|
136
|
-
"merge": null,
|
|
137
|
-
"header": "feat: number line updates",
|
|
138
|
-
"body": null,
|
|
139
|
-
"footer": "BREAKING CHANGE: `domain` is now `{min:number,max:number}`, `ticks:\n{minor:number, major:number}` added.",
|
|
140
|
-
"notes": [
|
|
141
|
-
{
|
|
142
|
-
"title": "BREAKING CHANGE",
|
|
143
|
-
"text": "`domain` is now `{min:number,max:number}`, `ticks:\n{minor:number, major:number}` added."
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"hash": "f4dbf3d0a1b8f56e4d789109b8dea596fecc0f13",
|
|
147
|
-
"gitTags": "",
|
|
148
|
-
"committerDate": "2019-06-21 15:57:35 +0100",
|
|
149
|
-
"isTagged": true,
|
|
150
|
-
"tag": "@pie-element/number-line-controller@4.0.0"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"type": "feat",
|
|
154
|
-
"scope": null,
|
|
155
|
-
"subject": "add deductions to outcome calculation",
|
|
156
|
-
"merge": null,
|
|
157
|
-
"header": "feat: add deductions to outcome calculation",
|
|
158
|
-
"body": null,
|
|
159
|
-
"footer": null,
|
|
160
|
-
"notes": [],
|
|
161
|
-
"hash": "f2a378297d888c3f4e7b752e946ec9dd3e70ea7d",
|
|
162
|
-
"gitTags": "",
|
|
163
|
-
"committerDate": "2019-06-26 10:24:01 +0100",
|
|
164
|
-
"isTagged": true,
|
|
165
|
-
"tag": "@pie-element/number-line-controller@4.1.0"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"type": "fix",
|
|
169
|
-
"scope": null,
|
|
170
|
-
"subject": "numbers should be compared using 'closeTo' logic, for decmial support",
|
|
171
|
-
"merge": null,
|
|
172
|
-
"header": "fix: numbers should be compared using 'closeTo' logic, for decmial support",
|
|
173
|
-
"body": null,
|
|
174
|
-
"footer": null,
|
|
175
|
-
"notes": [],
|
|
176
|
-
"hash": "0d78034df6085750f66baf94da247ef60bcf9f6d",
|
|
177
|
-
"gitTags": "",
|
|
178
|
-
"committerDate": "2019-08-08 18:36:53 +0100",
|
|
179
|
-
"isTagged": true,
|
|
180
|
-
"tag": "@pie-element/number-line-controller@4.1.4"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"type": "feat",
|
|
184
|
-
"scope": null,
|
|
185
|
-
"subject": "Session null/empty check.",
|
|
186
|
-
"merge": null,
|
|
187
|
-
"header": "feat: Session null/empty check.",
|
|
188
|
-
"body": "Check for each interaction if: has outcome function, outcome function returns { score: 0, empty: true } if session null/empty/undefined, everywhere where session is used we handle if session is null/empty/undefined and test each function that uses session. [match-list, match, math-inline, multiple-choice, number-line, placement-ordering, point-intercept, select-text, text-entry]",
|
|
189
|
-
"footer": null,
|
|
190
|
-
"notes": [],
|
|
191
|
-
"hash": "f24dc8bfe6761d0c7bacf674f5ec30068bfd03d8",
|
|
192
|
-
"gitTags": "",
|
|
193
|
-
"committerDate": "2019-08-27 09:02:11 +0300",
|
|
194
|
-
"isTagged": true,
|
|
195
|
-
"tag": "@pie-element/number-line-controller@4.2.0"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"type": "fix",
|
|
199
|
-
"scope": null,
|
|
200
|
-
"subject": "bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
|
|
201
|
-
"merge": null,
|
|
202
|
-
"header": "fix: bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
|
|
203
|
-
"body": null,
|
|
204
|
-
"footer": null,
|
|
205
|
-
"notes": [],
|
|
206
|
-
"hash": "0a33d688d6d9e5f239daba982bfbdeebb10ba4ab",
|
|
207
|
-
"gitTags": "",
|
|
208
|
-
"committerDate": "2019-10-11 12:38:26 +0100",
|
|
209
|
-
"isTagged": true,
|
|
210
|
-
"tag": "@pie-element/number-line-controller@4.2.4"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"type": "fix",
|
|
214
|
-
"scope": null,
|
|
215
|
-
"subject": "bump @pie-lib/controller-utils@^0.2.2",
|
|
216
|
-
"merge": null,
|
|
217
|
-
"header": "fix: bump @pie-lib/controller-utils@^0.2.2",
|
|
218
|
-
"body": null,
|
|
219
|
-
"footer": null,
|
|
220
|
-
"notes": [],
|
|
221
|
-
"hash": "edae61cd4f686b2e1611cf0cad710112177fff2e",
|
|
222
|
-
"gitTags": "",
|
|
223
|
-
"committerDate": "2019-10-15 12:11:16 +0100",
|
|
224
|
-
"isTagged": true,
|
|
225
|
-
"tag": "@pie-element/number-line-controller@4.2.5"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"type": "fix",
|
|
229
|
-
"scope": null,
|
|
230
|
-
"subject": "ch2766 fix unresolved promise (#366)",
|
|
231
|
-
"merge": null,
|
|
232
|
-
"header": "fix: ch2766 fix unresolved promise (#366)",
|
|
233
|
-
"body": "* fix: resolve null when instructor is not role\n\n* chore: typo\n\n* chore: correct response resolve, match interaction\n\n* chore: correct response unresolved\n\n* chore: categorize resolve correct response\n\n* fix: createCorrectResponseSession unresolved promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: ch2776 resolve createCorrectResponse promise",
|
|
234
|
-
"footer": "* fix: Fixed createCorrectResponseSession and added tests for it. (#365)",
|
|
235
|
-
"notes": [],
|
|
236
|
-
"hash": "9057b7fd08e4f5b07e953a5acd053e1945df57f2",
|
|
237
|
-
"gitTags": " (origin/develop, origin/HEAD)",
|
|
238
|
-
"committerDate": "2019-10-16 15:50:55 -0400",
|
|
239
|
-
"isTagged": true,
|
|
240
|
-
"tag": "@pie-element/number-line-controller@4.2.7"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"type": "fix",
|
|
244
|
-
"scope": null,
|
|
245
|
-
"subject": "PIE-201 - store prompts and answers in session, fix",
|
|
246
|
-
"merge": null,
|
|
247
|
-
"header": "fix: PIE-201 - store prompts and answers in session, fix",
|
|
248
|
-
"body": "controller-utils to use 0 as key",
|
|
249
|
-
"footer": null,
|
|
250
|
-
"notes": [],
|
|
251
|
-
"hash": "23802242e0bc647f929f6db4dfd4b03f0112f2fb",
|
|
252
|
-
"gitTags": "",
|
|
253
|
-
"committerDate": "2019-11-18 20:35:06 +0000",
|
|
254
|
-
"isTagged": true,
|
|
255
|
-
"tag": "@pie-element/number-line-controller@4.2.9"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"type": "fix",
|
|
259
|
-
"scope": null,
|
|
260
|
-
"subject": "bump ui versions",
|
|
261
|
-
"merge": null,
|
|
262
|
-
"header": "fix: bump ui versions",
|
|
263
|
-
"body": null,
|
|
264
|
-
"footer": null,
|
|
265
|
-
"notes": [],
|
|
266
|
-
"hash": "5b9d99fe59c304bdd173c9336503eb558900d2a2",
|
|
267
|
-
"gitTags": "",
|
|
268
|
-
"committerDate": "2020-03-31 19:25:13 +0100",
|
|
269
|
-
"isTagged": true,
|
|
270
|
-
"tag": "@pie-element/number-line-controller@4.3.0"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"type": "fix",
|
|
274
|
-
"scope": null,
|
|
275
|
-
"subject": "bump lib and ui versions",
|
|
276
|
-
"merge": null,
|
|
277
|
-
"header": "fix: bump lib and ui versions",
|
|
278
|
-
"body": null,
|
|
279
|
-
"footer": null,
|
|
280
|
-
"notes": [],
|
|
281
|
-
"hash": "a882cbf4580098ce0e12c51cf6ad2879817e17e7",
|
|
282
|
-
"gitTags": "",
|
|
283
|
-
"committerDate": "2020-04-10 17:13:24 +0100",
|
|
284
|
-
"isTagged": true,
|
|
285
|
-
"tag": "@pie-element/number-line-controller@4.3.1"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"type": "fix",
|
|
289
|
-
"scope": null,
|
|
290
|
-
"subject": "bump all packages to avoid tag conflict",
|
|
291
|
-
"merge": null,
|
|
292
|
-
"header": "fix: bump all packages to avoid tag conflict",
|
|
293
|
-
"body": null,
|
|
294
|
-
"footer": null,
|
|
295
|
-
"notes": [],
|
|
296
|
-
"hash": "d9ec9a8689f0a391594b5e2f4ea958c6dc9f6d7b",
|
|
297
|
-
"gitTags": "",
|
|
298
|
-
"committerDate": "2020-04-10 20:01:37 +0100",
|
|
299
|
-
"isTagged": true,
|
|
300
|
-
"tag": "@pie-element/number-line-controller@4.3.1"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"type": "fix",
|
|
304
|
-
"scope": null,
|
|
305
|
-
"subject": "corret closeTo precision PD-132 (#446)",
|
|
306
|
-
"merge": null,
|
|
307
|
-
"header": "fix: corret closeTo precision PD-132 (#446)",
|
|
308
|
-
"body": null,
|
|
309
|
-
"footer": null,
|
|
310
|
-
"notes": [],
|
|
311
|
-
"hash": "33d0b83065e981cbff16522de32617add85c5896",
|
|
312
|
-
"gitTags": "",
|
|
313
|
-
"committerDate": "2020-04-13 16:44:03 -0400",
|
|
314
|
-
"isTagged": true,
|
|
315
|
-
"tag": "@pie-element/number-line-controller@4.3.2"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"type": "fix",
|
|
319
|
-
"scope": null,
|
|
320
|
-
"subject": "bump ui/lib versions",
|
|
321
|
-
"merge": null,
|
|
322
|
-
"header": "fix: bump ui/lib versions",
|
|
323
|
-
"body": null,
|
|
324
|
-
"footer": null,
|
|
325
|
-
"notes": [],
|
|
326
|
-
"hash": "3edb2321ebaefcaee70c3642aa6da8a50e8a99e5",
|
|
327
|
-
"gitTags": "",
|
|
328
|
-
"committerDate": "2020-04-14 15:36:44 +0100",
|
|
329
|
-
"isTagged": true,
|
|
330
|
-
"tag": "@pie-element/number-line-controller@4.3.3"
|
|
331
|
-
}
|
|
332
|
-
]
|