@digipair/skill-web 0.6.0 → 0.7.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.cjs.js +10 -6
- package/index.esm.js +10 -6
- package/package.json +1 -1
- package/schema.json +13 -1
package/index.cjs.js
CHANGED
|
@@ -23510,14 +23510,14 @@ function indent(str, spaces) {
|
|
|
23510
23510
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23511
23511
|
// match is required
|
|
23512
23512
|
if (!match) {
|
|
23513
|
-
return i = i1,
|
|
23513
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23514
23514
|
v: nextMatch1
|
|
23515
23515
|
};
|
|
23516
23516
|
}
|
|
23517
23517
|
var token = match.token, offset = match.offset;
|
|
23518
23518
|
i1 += offset;
|
|
23519
23519
|
if (token === " ") {
|
|
23520
|
-
return i = i1,
|
|
23520
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23521
23521
|
}
|
|
23522
23522
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23523
23523
|
token
|
|
@@ -23536,7 +23536,7 @@ function indent(str, spaces) {
|
|
|
23536
23536
|
if (contextKeys.some(function(el) {
|
|
23537
23537
|
return el.startsWith(name);
|
|
23538
23538
|
})) {
|
|
23539
|
-
return i = i1,
|
|
23539
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23540
23540
|
}
|
|
23541
23541
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23542
23542
|
return el === name;
|
|
@@ -23555,9 +23555,9 @@ function indent(str, spaces) {
|
|
|
23555
23555
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23556
23556
|
return el.startsWith(name);
|
|
23557
23557
|
})) {
|
|
23558
|
-
return i = i1,
|
|
23558
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23559
23559
|
}
|
|
23560
|
-
return i = i1,
|
|
23560
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23561
23561
|
v: nextMatch1
|
|
23562
23562
|
};
|
|
23563
23563
|
};
|
|
@@ -27495,7 +27495,7 @@ let WebService = class WebService {
|
|
|
27495
27495
|
}
|
|
27496
27496
|
async page(params, _pinsSettingsList, context) {
|
|
27497
27497
|
var _context_request_body;
|
|
27498
|
-
const { body, title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {}, factoryInitialize = [], browserInitialize = [] } = params;
|
|
27498
|
+
const { body, title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {}, factoryInitialize = [], browserInitialize = [], browserLoad = [] } = params;
|
|
27499
27499
|
const engineVersion = libraries['@digipair/engine'] || 'latest';
|
|
27500
27500
|
const preparedData = {};
|
|
27501
27501
|
if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
|
|
@@ -27559,6 +27559,10 @@ let WebService = class WebService {
|
|
|
27559
27559
|
const item = pinsList[i];
|
|
27560
27560
|
await generateElementFromPins(item, document.body, { ...context, data: ${JSON.stringify(preparedData)} }, options);
|
|
27561
27561
|
}
|
|
27562
|
+
|
|
27563
|
+
setTimeout(async () => {
|
|
27564
|
+
await executePinsList(${JSON.stringify(browserLoad)}, context);
|
|
27565
|
+
}, 1);
|
|
27562
27566
|
</script>
|
|
27563
27567
|
</body>
|
|
27564
27568
|
</html>
|
package/index.esm.js
CHANGED
|
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
|
|
|
23488
23488
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23489
23489
|
// match is required
|
|
23490
23490
|
if (!match) {
|
|
23491
|
-
return
|
|
23491
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23492
23492
|
v: nextMatch1
|
|
23493
23493
|
};
|
|
23494
23494
|
}
|
|
23495
23495
|
var token = match.token, offset = match.offset;
|
|
23496
23496
|
i1 += offset;
|
|
23497
23497
|
if (token === " ") {
|
|
23498
|
-
return
|
|
23498
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23499
23499
|
}
|
|
23500
23500
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23501
23501
|
token
|
|
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
|
|
|
23514
23514
|
if (contextKeys.some(function(el) {
|
|
23515
23515
|
return el.startsWith(name);
|
|
23516
23516
|
})) {
|
|
23517
|
-
return
|
|
23517
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23518
23518
|
}
|
|
23519
23519
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23520
23520
|
return el === name;
|
|
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
|
|
|
23533
23533
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23534
23534
|
return el.startsWith(name);
|
|
23535
23535
|
})) {
|
|
23536
|
-
return
|
|
23536
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23537
23537
|
}
|
|
23538
|
-
return
|
|
23538
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23539
23539
|
v: nextMatch1
|
|
23540
23540
|
};
|
|
23541
23541
|
};
|
|
@@ -27473,7 +27473,7 @@ let WebService = class WebService {
|
|
|
27473
27473
|
}
|
|
27474
27474
|
async page(params, _pinsSettingsList, context) {
|
|
27475
27475
|
var _context_request_body;
|
|
27476
|
-
const { body, title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {}, factoryInitialize = [], browserInitialize = [] } = params;
|
|
27476
|
+
const { body, title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {}, factoryInitialize = [], browserInitialize = [], browserLoad = [] } = params;
|
|
27477
27477
|
const engineVersion = libraries['@digipair/engine'] || 'latest';
|
|
27478
27478
|
const preparedData = {};
|
|
27479
27479
|
if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
|
|
@@ -27537,6 +27537,10 @@ let WebService = class WebService {
|
|
|
27537
27537
|
const item = pinsList[i];
|
|
27538
27538
|
await generateElementFromPins(item, document.body, { ...context, data: ${JSON.stringify(preparedData)} }, options);
|
|
27539
27539
|
}
|
|
27540
|
+
|
|
27541
|
+
setTimeout(async () => {
|
|
27542
|
+
await executePinsList(${JSON.stringify(browserLoad)}, context);
|
|
27543
|
+
}, 1);
|
|
27540
27544
|
</script>
|
|
27541
27545
|
</body>
|
|
27542
27546
|
</html>
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"summary": "Affichage de pages web",
|
|
6
6
|
"description": "Cette compétence englobe la connaissance et l'utilisation des technologies web nécessaires pour développer et maintenir des sites internet.",
|
|
7
7
|
"version": "0.1.0",
|
|
8
|
-
"x-icon": "
|
|
8
|
+
"x-icon": "🌐"
|
|
9
9
|
},
|
|
10
10
|
"paths": {
|
|
11
11
|
"/executeFactory": {
|
|
@@ -151,6 +151,18 @@
|
|
|
151
151
|
"$ref": "https://www.pinser.world/schemas/pinsSettings"
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "browserLoad",
|
|
157
|
+
"summary": "Lorsque la page est chargée",
|
|
158
|
+
"required": false,
|
|
159
|
+
"description": "Action déclenchée lorsque la page est chargée coté navigateur",
|
|
160
|
+
"schema": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"$ref": "https://www.pinser.world/schemas/pinsSettings"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
154
166
|
}
|
|
155
167
|
]
|
|
156
168
|
}
|