@01-edu/shared 1.2.0 → 1.2.2

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/attrs-defs.js CHANGED
@@ -2789,7 +2789,17 @@ relationAttrs.requirements = {
2789
2789
  project: sharedContentRequirementsForMainAttr,
2790
2790
  piscine: sharedContentRequirementsForMainAttr,
2791
2791
  },
2792
- campus: { piscine: sharedContentRequirementsForMainAttr },
2792
+ campus: {
2793
+ piscine: {
2794
+ // TODO: once we start the build the new feature it will no longer be hidden
2795
+ hidden: true,
2796
+ ...sharedContentRequirementsForMainAttr,
2797
+ },
2798
+ module: {
2799
+ hidden: true,
2800
+ ...sharedContentRequirementsForMainAttr,
2801
+ },
2802
+ },
2793
2803
  // should be open to any content: implementation to be checked when needed
2794
2804
  // TODO: add exercise, raid, exam, quest
2795
2805
  }
package/attrs.js CHANGED
@@ -357,7 +357,8 @@ export const partialExpandDynamicAttrs = (object, getUser, filterFn) => {
357
357
  processAttributes(filteredDefaultAttrs, object, getUser)
358
358
  let prev
359
359
  for (const child of Object.values(object.children)) {
360
- child.parent = object
360
+ // we only add the parent if it does not exist
361
+ if (!child.parent) child.parent = object
361
362
  prev && (prev.next = child) && (child.prev = prev)
362
363
  prev = child
363
364
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01-edu/shared",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {