@01-edu/shared 1.1.8 → 1.1.9

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.
Files changed (2) hide show
  1. package/attrs-defs.js +19 -27
  2. package/package.json +1 -1
package/attrs-defs.js CHANGED
@@ -3670,36 +3670,28 @@ types.timelineChunk = TypeObject({
3670
3670
  }
3671
3671
  },
3672
3672
  }),
3673
- developpedSkills: TypeObject({
3674
- label: 'Developed skills on a specific months duration',
3673
+ skills: TypeObject({
3674
+ label: 'List of developed skills',
3675
3675
  editable: true,
3676
- type: {
3677
- monthsSpan: Literal(1, {
3678
- label: 'Months duration',
3676
+ required: true,
3677
+ value: {},
3678
+ type: mapValues(
3679
+ skillsSet,
3680
+ ({ name, type: instruction, description }) => ({
3681
+ label: name,
3682
+ instruction,
3683
+ description,
3679
3684
  editable: true,
3680
- options: arrayOf(120, 1),
3681
- check: month => checkIntegerInBetween(month, 1, 120),
3685
+ type: 'number',
3686
+ value: 1,
3687
+ options: arrayOf(100, 1),
3688
+ check: amount => checkIntegerInBetween(amount, 1, 100),
3682
3689
  }),
3683
- list: {
3684
- label: 'List of developed skills', // shouldn't it be skillsList?
3685
- editable: true,
3686
- required: true,
3687
- value: [''],
3688
- type: [
3689
- Literal('', {
3690
- label: 'Skill developed',
3691
- editable: true,
3692
- required: true,
3693
- // check: value => checkNotEmpty(value), // cannot check not empty if def value is empty
3694
- }),
3695
- ],
3696
- check: list => {
3697
- if (!list?.length || !Array.isArray(list)) {
3698
- throw Error('Must be a non empty array')
3699
- }
3700
- },
3701
- },
3702
- },
3690
+ ),
3691
+ }),
3692
+ notes: Literal('', {
3693
+ label: 'Other qualitative notes',
3694
+ editable: true,
3703
3695
  }),
3704
3696
  },
3705
3697
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01-edu/shared",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {