@digipair/skill-web-editor 0.5.1 → 0.5.3

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
@@ -3260,8 +3260,8 @@ class EditorElement extends s {
3260
3260
  return x`
3261
3261
  <style>
3262
3262
  .blocklyToolboxDiv {
3263
- background-color: rgb(66, 133, 244);
3264
- color: white;
3263
+ background-color: ${this.menuBackgroundColor};
3264
+ color: ${this.menuColor};
3265
3265
  width: 370px;
3266
3266
  }
3267
3267
 
@@ -3304,7 +3304,7 @@ class EditorElement extends s {
3304
3304
 
3305
3305
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
3306
3306
  <div>
3307
- <div style="position: fixed; top: 0; right: 0; bottom: 0; left: 0;" data-scene></div>
3307
+ <div style=${this.contentStyle} data-scene></div>
3308
3308
  <div
3309
3309
  style ="position: absolute;
3310
3310
  top: 24px;
@@ -3329,6 +3329,9 @@ class EditorElement extends s {
3329
3329
  }
3330
3330
  constructor(...args){
3331
3331
  super(...args);
3332
+ this.menuColor = 'white';
3333
+ this.menuBackgroundColor = 'rgb(66, 133, 244)';
3334
+ this.contentStyle = 'position: fixed; top: 0; right: 0; bottom: 0; left: 0;';
3332
3335
  this.canSave = false;
3333
3336
  }
3334
3337
  }
@@ -3340,6 +3343,15 @@ __decorate([
3340
3343
  n(),
3341
3344
  __metadata("design:type", Object)
3342
3345
  ], EditorElement.prototype, "reasoning", void 0);
3346
+ __decorate([
3347
+ n()
3348
+ ], EditorElement.prototype, "menuColor", void 0);
3349
+ __decorate([
3350
+ n()
3351
+ ], EditorElement.prototype, "menuBackgroundColor", void 0);
3352
+ __decorate([
3353
+ n()
3354
+ ], EditorElement.prototype, "contentStyle", void 0);
3343
3355
  __decorate([
3344
3356
  r()
3345
3357
  ], EditorElement.prototype, "canSave", void 0);
package/index.esm2.js CHANGED
@@ -3258,8 +3258,8 @@ class EditorElement extends s {
3258
3258
  return x`
3259
3259
  <style>
3260
3260
  .blocklyToolboxDiv {
3261
- background-color: rgb(66, 133, 244);
3262
- color: white;
3261
+ background-color: ${this.menuBackgroundColor};
3262
+ color: ${this.menuColor};
3263
3263
  width: 370px;
3264
3264
  }
3265
3265
 
@@ -3302,7 +3302,7 @@ class EditorElement extends s {
3302
3302
 
3303
3303
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
3304
3304
  <div>
3305
- <div style="position: fixed; top: 0; right: 0; bottom: 0; left: 0;" data-scene></div>
3305
+ <div style=${this.contentStyle} data-scene></div>
3306
3306
  <div
3307
3307
  style ="position: absolute;
3308
3308
  top: 24px;
@@ -3327,6 +3327,9 @@ class EditorElement extends s {
3327
3327
  }
3328
3328
  constructor(...args){
3329
3329
  super(...args);
3330
+ this.menuColor = 'white';
3331
+ this.menuBackgroundColor = 'rgb(66, 133, 244)';
3332
+ this.contentStyle = 'position: fixed; top: 0; right: 0; bottom: 0; left: 0;';
3330
3333
  this.canSave = false;
3331
3334
  }
3332
3335
  }
@@ -3338,6 +3341,15 @@ __decorate([
3338
3341
  n(),
3339
3342
  __metadata("design:type", Object)
3340
3343
  ], EditorElement.prototype, "reasoning", void 0);
3344
+ __decorate([
3345
+ n()
3346
+ ], EditorElement.prototype, "menuColor", void 0);
3347
+ __decorate([
3348
+ n()
3349
+ ], EditorElement.prototype, "menuBackgroundColor", void 0);
3350
+ __decorate([
3351
+ n()
3352
+ ], EditorElement.prototype, "contentStyle", void 0);
3341
3353
  __decorate([
3342
3354
  r()
3343
3355
  ], EditorElement.prototype, "canSave", void 0);
@@ -2,6 +2,9 @@ import { LitElement, TemplateResult } from 'lit';
2
2
  export declare class EditorElement extends LitElement {
3
3
  digipair: any;
4
4
  reasoning: any;
5
+ menuColor: string;
6
+ menuBackgroundColor: string;
7
+ contentStyle: string;
5
8
  private canSave;
6
9
  private workspace;
7
10
  private blocks;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-editor",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.json CHANGED
@@ -18,16 +18,43 @@
18
18
  "name": "digipair",
19
19
  "summary": "Digipair",
20
20
  "required": true,
21
- "description": "Propriétaire du raisonnement",
21
+ "description": "Informations du digipair propriétaire du raisonnement",
22
22
  "schema": {
23
- "type": "string"
23
+ "type": "object"
24
24
  }
25
25
  },
26
26
  {
27
27
  "name": "reasoning",
28
28
  "summary": "Raisonnement",
29
29
  "required": true,
30
- "description": "Nom du raisonnement",
30
+ "description": "Informations du raisonnement à éditer",
31
+ "schema": {
32
+ "type": "object"
33
+ }
34
+ },
35
+ {
36
+ "name": "menuColor",
37
+ "summary": "Couleur de texte du menu",
38
+ "required": false,
39
+ "description": "Couleur de texte du menu",
40
+ "schema": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ {
45
+ "name": "menuBackgroundColor",
46
+ "summary": "Couleur de fond du menu",
47
+ "required": false,
48
+ "description": "Couleur de fond du menu",
49
+ "schema": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ {
54
+ "name": "contentStyle",
55
+ "summary": "Style personnalisé du conteneur",
56
+ "required": false,
57
+ "description": "Style personnalisé du conteneur",
31
58
  "schema": {
32
59
  "type": "string"
33
60
  }