@digipair/skill-web-editor 0.28.5 → 0.28.7
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 +2 -3
 - package/index.esm2.js +2 -3
 - package/package.json +1 -1
 - package/schema.fr.json +9 -0
 - package/schema.json +9 -0
 
    
        package/index.cjs2.js
    CHANGED
    
    | 
         @@ -2934,9 +2934,8 @@ class EditorElement extends s { 
     | 
|
| 
       2934 
2934 
     | 
    
         
             
                        ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>{
         
     | 
| 
       2935 
2935 
     | 
    
         
             
                            let res;
         
     | 
| 
       2936 
2936 
     | 
    
         
             
                            if (this.language !== 'en') {
         
     | 
| 
       2937 
     | 
    
         
            -
                                 
     | 
| 
       2938 
     | 
    
         
            -
             
     | 
| 
       2939 
     | 
    
         
            -
                                } catch (e) {
         
     | 
| 
      
 2937 
     | 
    
         
            +
                                res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
         
     | 
| 
      
 2938 
     | 
    
         
            +
                                if (!res.ok) {
         
     | 
| 
       2940 
2939 
     | 
    
         
             
                                    res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
         
     | 
| 
       2941 
2940 
     | 
    
         
             
                                }
         
     | 
| 
       2942 
2941 
     | 
    
         
             
                            } else {
         
     | 
    
        package/index.esm2.js
    CHANGED
    
    | 
         @@ -2932,9 +2932,8 @@ class EditorElement extends s { 
     | 
|
| 
       2932 
2932 
     | 
    
         
             
                        ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>{
         
     | 
| 
       2933 
2933 
     | 
    
         
             
                            let res;
         
     | 
| 
       2934 
2934 
     | 
    
         
             
                            if (this.language !== 'en') {
         
     | 
| 
       2935 
     | 
    
         
            -
                                 
     | 
| 
       2936 
     | 
    
         
            -
             
     | 
| 
       2937 
     | 
    
         
            -
                                } catch (e) {
         
     | 
| 
      
 2935 
     | 
    
         
            +
                                res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
         
     | 
| 
      
 2936 
     | 
    
         
            +
                                if (!res.ok) {
         
     | 
| 
       2938 
2937 
     | 
    
         
             
                                    res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
         
     | 
| 
       2939 
2938 
     | 
    
         
             
                                }
         
     | 
| 
       2940 
2939 
     | 
    
         
             
                            } else {
         
     | 
    
        package/package.json
    CHANGED
    
    
    
        package/schema.fr.json
    CHANGED
    
    
    
        package/schema.json
    CHANGED