@digipair/skill-html 0.60.1 → 0.60.6
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.cjs.js +34 -5
- package/index.esm.js +27974 -5
- package/libs/skill-html/src/lib/skill-html.d.ts +7 -0
- package/package.json +1 -1
- package/schema.fr.json +104 -2
- package/schema.json +105 -12
- package/src/lib/skill-html.d.ts +0 -4
- /package/{src → libs/skill-html/src}/index.d.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PinsSettings } from '@digipair/engine';
|
|
2
|
+
export declare const html2pins: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
3
|
+
export declare const pins2html: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
4
|
+
export declare const parseHtml: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
5
|
+
export declare const selector: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
6
|
+
export declare const selectorAll: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
7
|
+
export declare const getAttribute: (params: any, pinsSettingsList: PinsSettings[], context: any) => any;
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"x-events": []
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"/
|
|
56
|
+
"/parseHtml": {
|
|
57
57
|
"post": {
|
|
58
58
|
"tags": ["service"],
|
|
59
|
-
"summary": "
|
|
59
|
+
"summary": "Parse un code HTML",
|
|
60
60
|
"parameters": [
|
|
61
61
|
{
|
|
62
62
|
"name": "html",
|
|
@@ -66,6 +66,108 @@
|
|
|
66
66
|
"schema": {
|
|
67
67
|
"type": "string"
|
|
68
68
|
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "execute",
|
|
72
|
+
"summary": "Actions",
|
|
73
|
+
"required": true,
|
|
74
|
+
"description": "Liste des actions à exécuter",
|
|
75
|
+
"schema": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"x-events": []
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"/selector": {
|
|
87
|
+
"post": {
|
|
88
|
+
"tags": ["service"],
|
|
89
|
+
"summary": "Sélectionner un élément",
|
|
90
|
+
"parameters": [
|
|
91
|
+
{
|
|
92
|
+
"name": "selector",
|
|
93
|
+
"summary": "Sélecteur",
|
|
94
|
+
"required": true,
|
|
95
|
+
"description": "Sélecteur CSS",
|
|
96
|
+
"schema": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "html",
|
|
102
|
+
"summary": "HTML",
|
|
103
|
+
"required": false,
|
|
104
|
+
"description": "Code HTML",
|
|
105
|
+
"schema": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"x-events": []
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"/selectorAll": {
|
|
114
|
+
"post": {
|
|
115
|
+
"tags": ["service"],
|
|
116
|
+
"summary": "Sélectionner des éléments",
|
|
117
|
+
"parameters": [
|
|
118
|
+
{
|
|
119
|
+
"name": "selector",
|
|
120
|
+
"summary": "Sélecteur",
|
|
121
|
+
"required": true,
|
|
122
|
+
"description": "Sélecteur CSS",
|
|
123
|
+
"schema": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "html",
|
|
129
|
+
"summary": "HTML",
|
|
130
|
+
"required": false,
|
|
131
|
+
"description": "Code HTML",
|
|
132
|
+
"schema": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"x-events": []
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"/getAttribute": {
|
|
141
|
+
"post": {
|
|
142
|
+
"tags": ["service"],
|
|
143
|
+
"summary": "Récupérer un attribut",
|
|
144
|
+
"parameters": [
|
|
145
|
+
{
|
|
146
|
+
"name": "selector",
|
|
147
|
+
"summary": "Sélecteur",
|
|
148
|
+
"required": true,
|
|
149
|
+
"description": "Sélecteur CSS",
|
|
150
|
+
"schema": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "attribute",
|
|
156
|
+
"summary": "Attribut",
|
|
157
|
+
"required": true,
|
|
158
|
+
"description": "Nom de l'attribut",
|
|
159
|
+
"schema": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "html",
|
|
165
|
+
"summary": "HTML",
|
|
166
|
+
"required": false,
|
|
167
|
+
"description": "Code HTML",
|
|
168
|
+
"schema": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
69
171
|
}
|
|
70
172
|
],
|
|
71
173
|
"x-events": []
|
package/schema.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"openapi": "3.0.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@digipair/skill-html",
|
|
5
|
-
"summary": "HTML
|
|
6
|
-
"description": "This skill allows
|
|
5
|
+
"summary": "HTML Code Management",
|
|
6
|
+
"description": "This skill allows managing HTML code",
|
|
7
7
|
"version": "0.1.0",
|
|
8
8
|
"x-icon": "🌐"
|
|
9
9
|
},
|
|
@@ -11,22 +11,22 @@
|
|
|
11
11
|
"/html2pins": {
|
|
12
12
|
"post": {
|
|
13
13
|
"tags": ["service"],
|
|
14
|
-
"summary": "Convert HTML to
|
|
14
|
+
"summary": "Convert HTML to Pins",
|
|
15
15
|
"parameters": [
|
|
16
16
|
{
|
|
17
17
|
"name": "html",
|
|
18
18
|
"summary": "HTML",
|
|
19
19
|
"required": true,
|
|
20
|
-
"description": "HTML
|
|
20
|
+
"description": "HTML Code",
|
|
21
21
|
"schema": {
|
|
22
22
|
"type": "string"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "library",
|
|
27
|
-
"summary": "
|
|
27
|
+
"summary": "Pins Library",
|
|
28
28
|
"required": false,
|
|
29
|
-
"description": "
|
|
29
|
+
"description": "Pins Library",
|
|
30
30
|
"schema": {
|
|
31
31
|
"type": "string"
|
|
32
32
|
}
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"/pins2html": {
|
|
39
39
|
"post": {
|
|
40
40
|
"tags": ["service"],
|
|
41
|
-
"summary": "Convert
|
|
41
|
+
"summary": "Convert Pins to HTML",
|
|
42
42
|
"parameters": [
|
|
43
43
|
{
|
|
44
44
|
"name": "pins",
|
|
45
|
-
"summary": "
|
|
45
|
+
"summary": "Pins",
|
|
46
46
|
"required": true,
|
|
47
|
-
"description": "List of
|
|
47
|
+
"description": "List of Pins",
|
|
48
48
|
"schema": {
|
|
49
49
|
"type": "string"
|
|
50
50
|
}
|
|
@@ -53,16 +53,109 @@
|
|
|
53
53
|
"x-events": []
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"/
|
|
56
|
+
"/parseHtml": {
|
|
57
57
|
"post": {
|
|
58
58
|
"tags": ["service"],
|
|
59
|
-
"summary": "
|
|
59
|
+
"summary": "Parse HTML Code",
|
|
60
60
|
"parameters": [
|
|
61
61
|
{
|
|
62
62
|
"name": "html",
|
|
63
63
|
"summary": "HTML",
|
|
64
64
|
"required": true,
|
|
65
|
-
"description": "HTML
|
|
65
|
+
"description": "HTML Code",
|
|
66
|
+
"schema": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "execute",
|
|
72
|
+
"summary": "Actions",
|
|
73
|
+
"required": true,
|
|
74
|
+
"description": "List of actions to execute",
|
|
75
|
+
"schema": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"x-events": []
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"/selector": {
|
|
87
|
+
"post": {
|
|
88
|
+
"tags": ["service"],
|
|
89
|
+
"summary": "Select an Element",
|
|
90
|
+
"parameters": [
|
|
91
|
+
{
|
|
92
|
+
"name": "selector",
|
|
93
|
+
"summary": "Selector",
|
|
94
|
+
"required": true,
|
|
95
|
+
"description": "CSS Selector",
|
|
96
|
+
"schema": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "element",
|
|
102
|
+
"summary": "Element",
|
|
103
|
+
"required": false,
|
|
104
|
+
"description": "Parent Element",
|
|
105
|
+
"schema": {
|
|
106
|
+
"type": "object"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"x-events": []
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"/selectorAll": {
|
|
114
|
+
"post": {
|
|
115
|
+
"tags": ["service"],
|
|
116
|
+
"summary": "Select Elements",
|
|
117
|
+
"parameters": [
|
|
118
|
+
{
|
|
119
|
+
"name": "selector",
|
|
120
|
+
"summary": "Selector",
|
|
121
|
+
"required": true,
|
|
122
|
+
"description": "CSS Selector",
|
|
123
|
+
"schema": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "element",
|
|
129
|
+
"summary": "Element",
|
|
130
|
+
"required": false,
|
|
131
|
+
"description": "Parent Element",
|
|
132
|
+
"schema": {
|
|
133
|
+
"type": "object"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"x-events": []
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"/getAttribute": {
|
|
141
|
+
"post": {
|
|
142
|
+
"tags": ["service"],
|
|
143
|
+
"summary": "Retrieve an Attribute",
|
|
144
|
+
"parameters": [
|
|
145
|
+
{
|
|
146
|
+
"name": "element",
|
|
147
|
+
"summary": "Element",
|
|
148
|
+
"required": true,
|
|
149
|
+
"description": "Element",
|
|
150
|
+
"schema": {
|
|
151
|
+
"type": "object"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "attribute",
|
|
156
|
+
"summary": "Attribute",
|
|
157
|
+
"required": true,
|
|
158
|
+
"description": "Attribute Name",
|
|
66
159
|
"schema": {
|
|
67
160
|
"type": "string"
|
|
68
161
|
}
|
package/src/lib/skill-html.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PinsSettings } from '@digipair/engine';
|
|
2
|
-
export declare const html2pins: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
3
|
-
export declare const pins2html: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
4
|
-
export declare const html2document: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
File without changes
|