@digipair/skill-web-editor 0.25.5 → 0.26.0

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
@@ -2566,6 +2566,162 @@ function itemListFromSceneSettings(sceneSettings, sceneDefinition) {
2566
2566
  return inputArray;
2567
2567
  }
2568
2568
 
2569
+ const schemas$1 = {
2570
+ openapi: '3.0.0',
2571
+ info: {
2572
+ title: 'web',
2573
+ summary: 'Basic HTML Elements',
2574
+ description: 'Description of the web pins library',
2575
+ version: '1.0.11',
2576
+ 'x-icon': '🌐'
2577
+ },
2578
+ paths: {
2579
+ '/section': {
2580
+ post: {
2581
+ tags: [
2582
+ 'needPins',
2583
+ 'web'
2584
+ ],
2585
+ summary: 'Section',
2586
+ parameters: [
2587
+ {
2588
+ name: 'style',
2589
+ summary: 'CSS Style',
2590
+ description: 'Style of the section',
2591
+ required: false,
2592
+ schema: {
2593
+ type: 'string'
2594
+ }
2595
+ },
2596
+ {
2597
+ name: 'class',
2598
+ summary: 'CSS Class',
2599
+ description: 'Class of the section',
2600
+ required: false,
2601
+ schema: {
2602
+ type: 'string'
2603
+ }
2604
+ },
2605
+ {
2606
+ name: 'id',
2607
+ summary: 'Identifier',
2608
+ description: 'Identifier of the section',
2609
+ required: false,
2610
+ schema: {
2611
+ type: 'string'
2612
+ }
2613
+ },
2614
+ {
2615
+ name: 'innerHTML',
2616
+ summary: 'HTML Code',
2617
+ description: 'HTML code of the section',
2618
+ required: false,
2619
+ schema: {
2620
+ type: 'string'
2621
+ }
2622
+ },
2623
+ {
2624
+ name: 'textContent',
2625
+ summary: 'Text',
2626
+ description: 'Text of the section',
2627
+ required: false,
2628
+ schema: {
2629
+ type: 'string'
2630
+ }
2631
+ }
2632
+ ]
2633
+ }
2634
+ },
2635
+ '/span': {
2636
+ post: {
2637
+ tags: [
2638
+ 'web'
2639
+ ],
2640
+ summary: 'Span',
2641
+ parameters: [
2642
+ {
2643
+ name: 'id',
2644
+ summary: 'Identifier',
2645
+ description: 'Identifier of the section',
2646
+ required: false,
2647
+ schema: {
2648
+ type: 'string'
2649
+ }
2650
+ },
2651
+ {
2652
+ name: 'textContent',
2653
+ summary: 'Text',
2654
+ description: 'Text of the span',
2655
+ required: true,
2656
+ schema: {
2657
+ type: 'string'
2658
+ }
2659
+ },
2660
+ {
2661
+ name: 'slot',
2662
+ summary: 'Position',
2663
+ description: 'Position of the span in the parent element',
2664
+ required: false,
2665
+ schema: {
2666
+ type: 'string'
2667
+ }
2668
+ }
2669
+ ]
2670
+ }
2671
+ },
2672
+ '/img': {
2673
+ post: {
2674
+ tags: [
2675
+ 'web'
2676
+ ],
2677
+ summary: 'Image',
2678
+ parameters: [
2679
+ {
2680
+ name: 'id',
2681
+ summary: 'Identifier',
2682
+ description: 'Identifier of the section',
2683
+ required: false,
2684
+ schema: {
2685
+ type: 'string'
2686
+ }
2687
+ },
2688
+ {
2689
+ name: 'src',
2690
+ summary: 'Source',
2691
+ description: 'Source of the image',
2692
+ required: true,
2693
+ schema: {
2694
+ type: 'string'
2695
+ }
2696
+ },
2697
+ {
2698
+ name: 'slot',
2699
+ summary: 'Position',
2700
+ description: 'Position of the image in the parent element',
2701
+ required: false,
2702
+ schema: {
2703
+ type: 'string'
2704
+ }
2705
+ },
2706
+ {
2707
+ name: 'style',
2708
+ summary: 'CSS Style',
2709
+ description: 'Style of the image',
2710
+ required: false,
2711
+ schema: {
2712
+ type: 'string'
2713
+ }
2714
+ }
2715
+ ]
2716
+ }
2717
+ }
2718
+ },
2719
+ components: {
2720
+ schemas: {}
2721
+ },
2722
+ 'x-scene-blocks': {}
2723
+ };
2724
+
2569
2725
  const schemas = {
2570
2726
  openapi: '3.0.0',
2571
2727
  info: {
@@ -2639,6 +2795,15 @@ const schemas = {
2639
2795
  ],
2640
2796
  summary: 'Span',
2641
2797
  parameters: [
2798
+ {
2799
+ name: 'id',
2800
+ summary: 'Identifiant',
2801
+ description: 'Identifiant de la section',
2802
+ required: false,
2803
+ schema: {
2804
+ type: 'string'
2805
+ }
2806
+ },
2642
2807
  {
2643
2808
  name: 'textContent',
2644
2809
  summary: 'Texte',
@@ -2667,6 +2832,15 @@ const schemas = {
2667
2832
  ],
2668
2833
  summary: 'Image',
2669
2834
  parameters: [
2835
+ {
2836
+ name: 'id',
2837
+ summary: 'Identifiant',
2838
+ description: 'Identifiant de la section',
2839
+ required: false,
2840
+ schema: {
2841
+ type: 'string'
2842
+ }
2843
+ },
2670
2844
  {
2671
2845
  name: 'src',
2672
2846
  summary: 'Source',
@@ -2755,9 +2929,21 @@ class EditorElement extends s {
2755
2929
  async getLibraries(libraries) {
2756
2930
  const privateSchemas = this.schemas.filter((schema)=>Object.keys(libraries).indexOf(schema.info.title) >= 0);
2757
2931
  const list = [
2758
- schemas,
2932
+ this.language === 'fr' ? schemas : schemas$1,
2759
2933
  ...privateSchemas,
2760
- ...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())))
2934
+ ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>{
2935
+ let res;
2936
+ if (this.language !== 'en') {
2937
+ try {
2938
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
2939
+ } catch (e) {
2940
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
2941
+ }
2942
+ } else {
2943
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
2944
+ }
2945
+ return await res.json();
2946
+ }))
2761
2947
  ];
2762
2948
  return list;
2763
2949
  }
@@ -2861,56 +3047,56 @@ class EditorElement extends s {
2861
3047
  }
2862
3048
  render() {
2863
3049
  return x`
2864
- <style>
2865
- @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
3050
+ <style>
3051
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
2866
3052
 
2867
- .blocklyToolboxDiv {
2868
- background-color: ${this.menuBackgroundColor};
2869
- color: ${this.menuColor};
2870
- width: 370px;
2871
- }
3053
+ .blocklyToolboxDiv {
3054
+ background-color: ${this.menuBackgroundColor};
3055
+ color: ${this.menuColor};
3056
+ width: 370px;
3057
+ }
2872
3058
 
2873
- .header {
2874
- position: unset !important;
2875
- }
3059
+ .header {
3060
+ position: unset !important;
3061
+ }
2876
3062
 
2877
- .menu-item > a::after {
2878
- content: '> ';
2879
- margin-left: 30px;
2880
- }
3063
+ .menu-item > a::after {
3064
+ content: '> ';
3065
+ margin-left: 30px;
3066
+ }
2881
3067
 
2882
- .header__logo {
2883
- margin-left: 80px;
2884
- }
3068
+ .header__logo {
3069
+ margin-left: 80px;
3070
+ }
2885
3071
 
2886
- .header .main-nav {
2887
- position: unset;
2888
- margin-top: 50px;
2889
- margin-left: 60px;
2890
- }
3072
+ .header .main-nav {
3073
+ position: unset;
3074
+ margin-top: 50px;
3075
+ margin-left: 60px;
3076
+ }
2891
3077
 
2892
- .header .container {
2893
- margin: 0;
2894
- }
3078
+ .header .container {
3079
+ margin: 0;
3080
+ }
2895
3081
 
2896
- .blocklyTreeRow {
2897
- height: 30px;
2898
- line-height: 30px;
2899
- }
3082
+ .blocklyTreeRow {
3083
+ height: 30px;
3084
+ line-height: 30px;
3085
+ }
2900
3086
 
2901
- .blocklyPath {
2902
- stroke: #fff;
2903
- }
3087
+ .blocklyPath {
3088
+ stroke: #fff;
3089
+ }
2904
3090
 
2905
- .blocklyPathDark {
2906
- fill: #fff;
2907
- }
2908
- </style>
3091
+ .blocklyPathDark {
3092
+ fill: #fff;
3093
+ }
3094
+ </style>
2909
3095
 
2910
- <div>
2911
- <div style=${this.contentStyle} data-scene></div>
2912
- </div>
2913
- `;
3096
+ <div>
3097
+ <div style=${this.contentStyle} data-scene></div>
3098
+ </div>
3099
+ `;
2914
3100
  }
2915
3101
  constructor(...args){
2916
3102
  super(...args);
@@ -2918,6 +3104,7 @@ class EditorElement extends s {
2918
3104
  this.menuColor = 'white';
2919
3105
  this.menuBackgroundColor = 'rgb(66, 133, 244)';
2920
3106
  this.contentStyle = 'position: fixed; top: 0; right: 0; bottom: 0; left: 0;';
3107
+ this.language = 'en';
2921
3108
  this.canSave = false;
2922
3109
  }
2923
3110
  }
@@ -2942,6 +3129,9 @@ __decorate([
2942
3129
  __decorate([
2943
3130
  n()
2944
3131
  ], EditorElement.prototype, "contentStyle", void 0);
3132
+ __decorate([
3133
+ n()
3134
+ ], EditorElement.prototype, "language", void 0);
2945
3135
  __decorate([
2946
3136
  n()
2947
3137
  ], EditorElement.prototype, "canSave", void 0);
package/index.esm2.js CHANGED
@@ -2564,6 +2564,162 @@ function itemListFromSceneSettings(sceneSettings, sceneDefinition) {
2564
2564
  return inputArray;
2565
2565
  }
2566
2566
 
2567
+ const schemas$1 = {
2568
+ openapi: '3.0.0',
2569
+ info: {
2570
+ title: 'web',
2571
+ summary: 'Basic HTML Elements',
2572
+ description: 'Description of the web pins library',
2573
+ version: '1.0.11',
2574
+ 'x-icon': '🌐'
2575
+ },
2576
+ paths: {
2577
+ '/section': {
2578
+ post: {
2579
+ tags: [
2580
+ 'needPins',
2581
+ 'web'
2582
+ ],
2583
+ summary: 'Section',
2584
+ parameters: [
2585
+ {
2586
+ name: 'style',
2587
+ summary: 'CSS Style',
2588
+ description: 'Style of the section',
2589
+ required: false,
2590
+ schema: {
2591
+ type: 'string'
2592
+ }
2593
+ },
2594
+ {
2595
+ name: 'class',
2596
+ summary: 'CSS Class',
2597
+ description: 'Class of the section',
2598
+ required: false,
2599
+ schema: {
2600
+ type: 'string'
2601
+ }
2602
+ },
2603
+ {
2604
+ name: 'id',
2605
+ summary: 'Identifier',
2606
+ description: 'Identifier of the section',
2607
+ required: false,
2608
+ schema: {
2609
+ type: 'string'
2610
+ }
2611
+ },
2612
+ {
2613
+ name: 'innerHTML',
2614
+ summary: 'HTML Code',
2615
+ description: 'HTML code of the section',
2616
+ required: false,
2617
+ schema: {
2618
+ type: 'string'
2619
+ }
2620
+ },
2621
+ {
2622
+ name: 'textContent',
2623
+ summary: 'Text',
2624
+ description: 'Text of the section',
2625
+ required: false,
2626
+ schema: {
2627
+ type: 'string'
2628
+ }
2629
+ }
2630
+ ]
2631
+ }
2632
+ },
2633
+ '/span': {
2634
+ post: {
2635
+ tags: [
2636
+ 'web'
2637
+ ],
2638
+ summary: 'Span',
2639
+ parameters: [
2640
+ {
2641
+ name: 'id',
2642
+ summary: 'Identifier',
2643
+ description: 'Identifier of the section',
2644
+ required: false,
2645
+ schema: {
2646
+ type: 'string'
2647
+ }
2648
+ },
2649
+ {
2650
+ name: 'textContent',
2651
+ summary: 'Text',
2652
+ description: 'Text of the span',
2653
+ required: true,
2654
+ schema: {
2655
+ type: 'string'
2656
+ }
2657
+ },
2658
+ {
2659
+ name: 'slot',
2660
+ summary: 'Position',
2661
+ description: 'Position of the span in the parent element',
2662
+ required: false,
2663
+ schema: {
2664
+ type: 'string'
2665
+ }
2666
+ }
2667
+ ]
2668
+ }
2669
+ },
2670
+ '/img': {
2671
+ post: {
2672
+ tags: [
2673
+ 'web'
2674
+ ],
2675
+ summary: 'Image',
2676
+ parameters: [
2677
+ {
2678
+ name: 'id',
2679
+ summary: 'Identifier',
2680
+ description: 'Identifier of the section',
2681
+ required: false,
2682
+ schema: {
2683
+ type: 'string'
2684
+ }
2685
+ },
2686
+ {
2687
+ name: 'src',
2688
+ summary: 'Source',
2689
+ description: 'Source of the image',
2690
+ required: true,
2691
+ schema: {
2692
+ type: 'string'
2693
+ }
2694
+ },
2695
+ {
2696
+ name: 'slot',
2697
+ summary: 'Position',
2698
+ description: 'Position of the image in the parent element',
2699
+ required: false,
2700
+ schema: {
2701
+ type: 'string'
2702
+ }
2703
+ },
2704
+ {
2705
+ name: 'style',
2706
+ summary: 'CSS Style',
2707
+ description: 'Style of the image',
2708
+ required: false,
2709
+ schema: {
2710
+ type: 'string'
2711
+ }
2712
+ }
2713
+ ]
2714
+ }
2715
+ }
2716
+ },
2717
+ components: {
2718
+ schemas: {}
2719
+ },
2720
+ 'x-scene-blocks': {}
2721
+ };
2722
+
2567
2723
  const schemas = {
2568
2724
  openapi: '3.0.0',
2569
2725
  info: {
@@ -2637,6 +2793,15 @@ const schemas = {
2637
2793
  ],
2638
2794
  summary: 'Span',
2639
2795
  parameters: [
2796
+ {
2797
+ name: 'id',
2798
+ summary: 'Identifiant',
2799
+ description: 'Identifiant de la section',
2800
+ required: false,
2801
+ schema: {
2802
+ type: 'string'
2803
+ }
2804
+ },
2640
2805
  {
2641
2806
  name: 'textContent',
2642
2807
  summary: 'Texte',
@@ -2665,6 +2830,15 @@ const schemas = {
2665
2830
  ],
2666
2831
  summary: 'Image',
2667
2832
  parameters: [
2833
+ {
2834
+ name: 'id',
2835
+ summary: 'Identifiant',
2836
+ description: 'Identifiant de la section',
2837
+ required: false,
2838
+ schema: {
2839
+ type: 'string'
2840
+ }
2841
+ },
2668
2842
  {
2669
2843
  name: 'src',
2670
2844
  summary: 'Source',
@@ -2753,9 +2927,21 @@ class EditorElement extends s {
2753
2927
  async getLibraries(libraries) {
2754
2928
  const privateSchemas = this.schemas.filter((schema)=>Object.keys(libraries).indexOf(schema.info.title) >= 0);
2755
2929
  const list = [
2756
- schemas,
2930
+ this.language === 'fr' ? schemas : schemas$1,
2757
2931
  ...privateSchemas,
2758
- ...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())))
2932
+ ...await Promise.all(Object.keys(libraries).filter((library)=>!privateSchemas.find((schema)=>schema.info.title === library)).map(async (library, i)=>{
2933
+ let res;
2934
+ if (this.language !== 'en') {
2935
+ try {
2936
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.${this.language}.json`);
2937
+ } catch (e) {
2938
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
2939
+ }
2940
+ } else {
2941
+ res = await fetch(`${BASE_URL}/${library}@${libraries[library]}/schema.json`);
2942
+ }
2943
+ return await res.json();
2944
+ }))
2759
2945
  ];
2760
2946
  return list;
2761
2947
  }
@@ -2859,56 +3045,56 @@ class EditorElement extends s {
2859
3045
  }
2860
3046
  render() {
2861
3047
  return x`
2862
- <style>
2863
- @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
3048
+ <style>
3049
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
2864
3050
 
2865
- .blocklyToolboxDiv {
2866
- background-color: ${this.menuBackgroundColor};
2867
- color: ${this.menuColor};
2868
- width: 370px;
2869
- }
3051
+ .blocklyToolboxDiv {
3052
+ background-color: ${this.menuBackgroundColor};
3053
+ color: ${this.menuColor};
3054
+ width: 370px;
3055
+ }
2870
3056
 
2871
- .header {
2872
- position: unset !important;
2873
- }
3057
+ .header {
3058
+ position: unset !important;
3059
+ }
2874
3060
 
2875
- .menu-item > a::after {
2876
- content: '> ';
2877
- margin-left: 30px;
2878
- }
3061
+ .menu-item > a::after {
3062
+ content: '> ';
3063
+ margin-left: 30px;
3064
+ }
2879
3065
 
2880
- .header__logo {
2881
- margin-left: 80px;
2882
- }
3066
+ .header__logo {
3067
+ margin-left: 80px;
3068
+ }
2883
3069
 
2884
- .header .main-nav {
2885
- position: unset;
2886
- margin-top: 50px;
2887
- margin-left: 60px;
2888
- }
3070
+ .header .main-nav {
3071
+ position: unset;
3072
+ margin-top: 50px;
3073
+ margin-left: 60px;
3074
+ }
2889
3075
 
2890
- .header .container {
2891
- margin: 0;
2892
- }
3076
+ .header .container {
3077
+ margin: 0;
3078
+ }
2893
3079
 
2894
- .blocklyTreeRow {
2895
- height: 30px;
2896
- line-height: 30px;
2897
- }
3080
+ .blocklyTreeRow {
3081
+ height: 30px;
3082
+ line-height: 30px;
3083
+ }
2898
3084
 
2899
- .blocklyPath {
2900
- stroke: #fff;
2901
- }
3085
+ .blocklyPath {
3086
+ stroke: #fff;
3087
+ }
2902
3088
 
2903
- .blocklyPathDark {
2904
- fill: #fff;
2905
- }
2906
- </style>
3089
+ .blocklyPathDark {
3090
+ fill: #fff;
3091
+ }
3092
+ </style>
2907
3093
 
2908
- <div>
2909
- <div style=${this.contentStyle} data-scene></div>
2910
- </div>
2911
- `;
3094
+ <div>
3095
+ <div style=${this.contentStyle} data-scene></div>
3096
+ </div>
3097
+ `;
2912
3098
  }
2913
3099
  constructor(...args){
2914
3100
  super(...args);
@@ -2916,6 +3102,7 @@ class EditorElement extends s {
2916
3102
  this.menuColor = 'white';
2917
3103
  this.menuBackgroundColor = 'rgb(66, 133, 244)';
2918
3104
  this.contentStyle = 'position: fixed; top: 0; right: 0; bottom: 0; left: 0;';
3105
+ this.language = 'en';
2919
3106
  this.canSave = false;
2920
3107
  }
2921
3108
  }
@@ -2940,6 +3127,9 @@ __decorate([
2940
3127
  __decorate([
2941
3128
  n()
2942
3129
  ], EditorElement.prototype, "contentStyle", void 0);
3130
+ __decorate([
3131
+ n()
3132
+ ], EditorElement.prototype, "language", void 0);
2943
3133
  __decorate([
2944
3134
  n()
2945
3135
  ], EditorElement.prototype, "canSave", void 0);
@@ -6,6 +6,7 @@ export declare class EditorElement extends LitElement {
6
6
  menuColor: string;
7
7
  menuBackgroundColor: string;
8
8
  contentStyle: string;
9
+ language: string;
9
10
  canSave: boolean;
10
11
  codeInWorkspace: any;
11
12
  private workspace;
@@ -0,0 +1,61 @@
1
+ export declare const schemas: {
2
+ openapi: string;
3
+ info: {
4
+ title: string;
5
+ summary: string;
6
+ description: string;
7
+ version: string;
8
+ 'x-icon': string;
9
+ };
10
+ paths: {
11
+ '/section': {
12
+ post: {
13
+ tags: string[];
14
+ summary: string;
15
+ parameters: {
16
+ name: string;
17
+ summary: string;
18
+ description: string;
19
+ required: boolean;
20
+ schema: {
21
+ type: string;
22
+ };
23
+ }[];
24
+ };
25
+ };
26
+ '/span': {
27
+ post: {
28
+ tags: string[];
29
+ summary: string;
30
+ parameters: {
31
+ name: string;
32
+ summary: string;
33
+ description: string;
34
+ required: boolean;
35
+ schema: {
36
+ type: string;
37
+ };
38
+ }[];
39
+ };
40
+ };
41
+ '/img': {
42
+ post: {
43
+ tags: string[];
44
+ summary: string;
45
+ parameters: {
46
+ name: string;
47
+ summary: string;
48
+ description: string;
49
+ required: boolean;
50
+ schema: {
51
+ type: string;
52
+ };
53
+ }[];
54
+ };
55
+ };
56
+ };
57
+ components: {
58
+ schemas: {};
59
+ };
60
+ 'x-scene-blocks': {};
61
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.25.5",
3
+ "version": "0.26.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.fr.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-web-editor",
5
+ "summary": "Affichage de l'éditeur de raisonnements",
6
+ "description": "Edition de raisonnements IA.",
7
+ "version": "0.1.0",
8
+ "x-icon": "🏗"
9
+ },
10
+ "paths": {
11
+ "/digipair-editor": {
12
+ "post": {
13
+ "tags": ["web"],
14
+ "summary": "Editeur de raisonnements",
15
+ "description": "Editeur no-code de raisonnements IA",
16
+ "parameters": [
17
+ {
18
+ "name": "digipair",
19
+ "summary": "Digipair",
20
+ "required": true,
21
+ "description": "Informations du digipair propriétaire du raisonnement",
22
+ "schema": {
23
+ "type": "object"
24
+ }
25
+ },
26
+ {
27
+ "name": "reasoning",
28
+ "summary": "Raisonnement",
29
+ "required": true,
30
+ "description": "Informations du raisonnement à éditer",
31
+ "schema": {
32
+ "type": "object"
33
+ }
34
+ },
35
+ {
36
+ "name": "schemas",
37
+ "summary": "Schemas",
38
+ "required": false,
39
+ "description": "Liste des schemas des compétences privées",
40
+ "schema": {
41
+ "type": "object"
42
+ }
43
+ },
44
+ {
45
+ "name": "menuColor",
46
+ "summary": "Couleur de texte du menu",
47
+ "required": false,
48
+ "description": "Couleur de texte du menu",
49
+ "schema": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ {
54
+ "name": "menuBackgroundColor",
55
+ "summary": "Couleur de fond du menu",
56
+ "required": false,
57
+ "description": "Couleur de fond du menu",
58
+ "schema": {
59
+ "type": "string"
60
+ }
61
+ },
62
+ {
63
+ "name": "contentStyle",
64
+ "summary": "Style personnalisé du conteneur",
65
+ "required": false,
66
+ "description": "Style personnalisé du conteneur",
67
+ "schema": {
68
+ "type": "string"
69
+ }
70
+ }
71
+ ],
72
+ "x-events": []
73
+ }
74
+ }
75
+ },
76
+ "components": {
77
+ "schemas": {}
78
+ }
79
+ }
package/schema.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "openapi": "3.0.0",
3
3
  "info": {
4
4
  "title": "@digipair/skill-web-editor",
5
- "summary": "Affichage de l'éditeur de raisonnements",
6
- "description": "Edition de raisonnements IA.",
5
+ "summary": "Display of the reasoning editor",
6
+ "description": "Editing of AI reasonings.",
7
7
  "version": "0.1.0",
8
8
  "x-icon": "🏗"
9
9
  },
@@ -11,23 +11,23 @@
11
11
  "/digipair-editor": {
12
12
  "post": {
13
13
  "tags": ["web"],
14
- "summary": "Editeur de raisonnements",
15
- "description": "Editeur no-code de raisonnements IA",
14
+ "summary": "Reasoning editor",
15
+ "description": "No-code editor for AI reasonings",
16
16
  "parameters": [
17
17
  {
18
18
  "name": "digipair",
19
19
  "summary": "Digipair",
20
20
  "required": true,
21
- "description": "Informations du digipair propriétaire du raisonnement",
21
+ "description": "Information of the digipair owning the reasoning",
22
22
  "schema": {
23
23
  "type": "object"
24
24
  }
25
25
  },
26
26
  {
27
27
  "name": "reasoning",
28
- "summary": "Raisonnement",
28
+ "summary": "Reasoning",
29
29
  "required": true,
30
- "description": "Informations du raisonnement à éditer",
30
+ "description": "Information of the reasoning to be edited",
31
31
  "schema": {
32
32
  "type": "object"
33
33
  }
@@ -36,34 +36,34 @@
36
36
  "name": "schemas",
37
37
  "summary": "Schemas",
38
38
  "required": false,
39
- "description": "Liste des schemas des compétences privées",
39
+ "description": "List of private skill schemas",
40
40
  "schema": {
41
41
  "type": "object"
42
42
  }
43
43
  },
44
44
  {
45
45
  "name": "menuColor",
46
- "summary": "Couleur de texte du menu",
46
+ "summary": "Menu text color",
47
47
  "required": false,
48
- "description": "Couleur de texte du menu",
48
+ "description": "Color of the menu text",
49
49
  "schema": {
50
50
  "type": "string"
51
51
  }
52
52
  },
53
53
  {
54
54
  "name": "menuBackgroundColor",
55
- "summary": "Couleur de fond du menu",
55
+ "summary": "Menu background color",
56
56
  "required": false,
57
- "description": "Couleur de fond du menu",
57
+ "description": "Color of the menu background",
58
58
  "schema": {
59
59
  "type": "string"
60
60
  }
61
61
  },
62
62
  {
63
63
  "name": "contentStyle",
64
- "summary": "Style personnalisé du conteneur",
64
+ "summary": "Custom container style",
65
65
  "required": false,
66
- "description": "Style personnalisé du conteneur",
66
+ "description": "Custom style for the container",
67
67
  "schema": {
68
68
  "type": "string"
69
69
  }