@digipair/skill-web-editor 0.5.0 → 0.5.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/index.cjs2.js
CHANGED
|
@@ -3042,6 +3042,32 @@ const schemas = {
|
|
|
3042
3042
|
}
|
|
3043
3043
|
]
|
|
3044
3044
|
}
|
|
3045
|
+
},
|
|
3046
|
+
'/span': {
|
|
3047
|
+
post: {
|
|
3048
|
+
tags: [
|
|
3049
|
+
'web'
|
|
3050
|
+
],
|
|
3051
|
+
summary: 'Span',
|
|
3052
|
+
parameters: [
|
|
3053
|
+
{
|
|
3054
|
+
name: 'textContent',
|
|
3055
|
+
summary: 'Texte',
|
|
3056
|
+
description: 'Texte du span',
|
|
3057
|
+
schema: {
|
|
3058
|
+
type: 'string'
|
|
3059
|
+
}
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
name: 'slot',
|
|
3063
|
+
summary: 'Position',
|
|
3064
|
+
description: "Position du span dans l'élément parent",
|
|
3065
|
+
schema: {
|
|
3066
|
+
type: 'string'
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
]
|
|
3070
|
+
}
|
|
3045
3071
|
}
|
|
3046
3072
|
},
|
|
3047
3073
|
components: {
|
|
@@ -3234,8 +3260,8 @@ class EditorElement extends s {
|
|
|
3234
3260
|
return x`
|
|
3235
3261
|
<style>
|
|
3236
3262
|
.blocklyToolboxDiv {
|
|
3237
|
-
background-color:
|
|
3238
|
-
color:
|
|
3263
|
+
background-color: ${this.menuBackgroundColor};
|
|
3264
|
+
color: ${this.menuColor};
|
|
3239
3265
|
width: 370px;
|
|
3240
3266
|
}
|
|
3241
3267
|
|
|
@@ -3278,7 +3304,7 @@ class EditorElement extends s {
|
|
|
3278
3304
|
|
|
3279
3305
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
|
3280
3306
|
<div>
|
|
3281
|
-
<div style
|
|
3307
|
+
<div style=${this.contentStyle} data-scene></div>
|
|
3282
3308
|
<div
|
|
3283
3309
|
style ="position: absolute;
|
|
3284
3310
|
top: 24px;
|
|
@@ -3303,6 +3329,9 @@ class EditorElement extends s {
|
|
|
3303
3329
|
}
|
|
3304
3330
|
constructor(...args){
|
|
3305
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;';
|
|
3306
3335
|
this.canSave = false;
|
|
3307
3336
|
}
|
|
3308
3337
|
}
|
|
@@ -3314,6 +3343,15 @@ __decorate([
|
|
|
3314
3343
|
n(),
|
|
3315
3344
|
__metadata("design:type", Object)
|
|
3316
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);
|
|
3317
3355
|
__decorate([
|
|
3318
3356
|
r()
|
|
3319
3357
|
], EditorElement.prototype, "canSave", void 0);
|
package/index.esm2.js
CHANGED
|
@@ -3040,6 +3040,32 @@ const schemas = {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
]
|
|
3042
3042
|
}
|
|
3043
|
+
},
|
|
3044
|
+
'/span': {
|
|
3045
|
+
post: {
|
|
3046
|
+
tags: [
|
|
3047
|
+
'web'
|
|
3048
|
+
],
|
|
3049
|
+
summary: 'Span',
|
|
3050
|
+
parameters: [
|
|
3051
|
+
{
|
|
3052
|
+
name: 'textContent',
|
|
3053
|
+
summary: 'Texte',
|
|
3054
|
+
description: 'Texte du span',
|
|
3055
|
+
schema: {
|
|
3056
|
+
type: 'string'
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
name: 'slot',
|
|
3061
|
+
summary: 'Position',
|
|
3062
|
+
description: "Position du span dans l'élément parent",
|
|
3063
|
+
schema: {
|
|
3064
|
+
type: 'string'
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
]
|
|
3068
|
+
}
|
|
3043
3069
|
}
|
|
3044
3070
|
},
|
|
3045
3071
|
components: {
|
|
@@ -3232,8 +3258,8 @@ class EditorElement extends s {
|
|
|
3232
3258
|
return x`
|
|
3233
3259
|
<style>
|
|
3234
3260
|
.blocklyToolboxDiv {
|
|
3235
|
-
background-color:
|
|
3236
|
-
color:
|
|
3261
|
+
background-color: ${this.menuBackgroundColor};
|
|
3262
|
+
color: ${this.menuColor};
|
|
3237
3263
|
width: 370px;
|
|
3238
3264
|
}
|
|
3239
3265
|
|
|
@@ -3276,7 +3302,7 @@ class EditorElement extends s {
|
|
|
3276
3302
|
|
|
3277
3303
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
|
3278
3304
|
<div>
|
|
3279
|
-
<div style
|
|
3305
|
+
<div style=${this.contentStyle} data-scene></div>
|
|
3280
3306
|
<div
|
|
3281
3307
|
style ="position: absolute;
|
|
3282
3308
|
top: 24px;
|
|
@@ -3301,6 +3327,9 @@ class EditorElement extends s {
|
|
|
3301
3327
|
}
|
|
3302
3328
|
constructor(...args){
|
|
3303
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;';
|
|
3304
3333
|
this.canSave = false;
|
|
3305
3334
|
}
|
|
3306
3335
|
}
|
|
@@ -3312,6 +3341,15 @@ __decorate([
|
|
|
3312
3341
|
n(),
|
|
3313
3342
|
__metadata("design:type", Object)
|
|
3314
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);
|
|
3315
3353
|
__decorate([
|
|
3316
3354
|
r()
|
|
3317
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;
|
|
@@ -22,6 +22,20 @@ export declare const schemas: {
|
|
|
22
22
|
}[];
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
+
'/span': {
|
|
26
|
+
post: {
|
|
27
|
+
tags: string[];
|
|
28
|
+
summary: string;
|
|
29
|
+
parameters: {
|
|
30
|
+
name: string;
|
|
31
|
+
summary: string;
|
|
32
|
+
description: string;
|
|
33
|
+
schema: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
25
39
|
};
|
|
26
40
|
components: {
|
|
27
41
|
schemas: {};
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -18,16 +18,43 @@
|
|
|
18
18
|
"name": "digipair",
|
|
19
19
|
"summary": "Digipair",
|
|
20
20
|
"required": true,
|
|
21
|
-
"description": "
|
|
21
|
+
"description": "Informations du digipair propriétaire du raisonnement",
|
|
22
22
|
"schema": {
|
|
23
|
-
"type": "
|
|
23
|
+
"type": "object"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"name": "reasoning",
|
|
28
28
|
"summary": "Raisonnement",
|
|
29
29
|
"required": true,
|
|
30
|
-
"description": "
|
|
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
|
}
|