@digipair/skill-web-editor 0.8.43 → 0.8.45

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/index.cjs2.js CHANGED
@@ -2693,11 +2693,11 @@ class EditorElement extends s {
2693
2693
  Blockly.Events.enable();
2694
2694
  }
2695
2695
  async getLibraries(libraries) {
2696
- const instanceSchemas = this.schemas.filter((schema)=>Object.keys(libraries).indexOf(schema.info.title) >= 0);
2696
+ const privateSchemas = this.schemas.filter((schema)=>Object.keys(libraries).indexOf(schema.info.title) >= 0);
2697
2697
  const list = [
2698
2698
  schemas,
2699
- ...instanceSchemas,
2700
- ...await Promise.all(Object.keys(libraries).filter((library)=>!instanceSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`).then((res)=>res.json())))
2699
+ ...privateSchemas,
2700
+ ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`).then((res)=>res.json())))
2701
2701
  ];
2702
2702
  return list;
2703
2703
  }
package/index.esm2.js CHANGED
@@ -2691,11 +2691,11 @@ class EditorElement extends s {
2691
2691
  Blockly.Events.enable();
2692
2692
  }
2693
2693
  async getLibraries(libraries) {
2694
- const instanceSchemas = this.schemas.filter((schema)=>Object.keys(libraries).indexOf(schema.info.title) >= 0);
2694
+ const privateSchemas = this.schemas.filter((schema)=>Object.keys(libraries).indexOf(schema.info.title) >= 0);
2695
2695
  const list = [
2696
2696
  schemas,
2697
- ...instanceSchemas,
2698
- ...await Promise.all(Object.keys(libraries).filter((library)=>!instanceSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`).then((res)=>res.json())))
2697
+ ...privateSchemas,
2698
+ ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`).then((res)=>res.json())))
2699
2699
  ];
2700
2700
  return list;
2701
2701
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.8.43",
3
+ "version": "0.8.45",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.json CHANGED
@@ -32,6 +32,15 @@
32
32
  "type": "object"
33
33
  }
34
34
  },
35
+ {
36
+ "name": "schemas",
37
+ "summary": "Schemas",
38
+ "required": true,
39
+ "description": "Liste des schemas des compétences privées",
40
+ "schema": {
41
+ "type": "object"
42
+ }
43
+ },
35
44
  {
36
45
  "name": "menuColor",
37
46
  "summary": "Couleur de texte du menu",