@digipair/skill-service 0.10.5 → 0.10.8
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 -14
- package/index.esm.js +10 -14
- package/libs/engine/src/lib/engine.d.ts +2 -10
- package/package.json +1 -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
|
|
23513
|
+
return nextMatch = nextMatch1, i = i1, 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
|
|
23520
|
+
return nextMatch = nextMatch1, i = i1, 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
|
|
23539
|
+
return nextMatch = nextMatch1, i = i1, 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
|
|
23558
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23559
23559
|
}
|
|
23560
|
-
return
|
|
23560
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23561
23561
|
v: nextMatch1
|
|
23562
23562
|
};
|
|
23563
23563
|
};
|
|
@@ -27369,9 +27369,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27369
27369
|
}
|
|
27370
27370
|
return result;
|
|
27371
27371
|
};
|
|
27372
|
-
const executePins = async (settingsOrigin, context = {}
|
|
27373
|
-
libraries: {}
|
|
27374
|
-
})=>{
|
|
27372
|
+
const executePins = async (settingsOrigin, context = {})=>{
|
|
27375
27373
|
var _settings_conditions;
|
|
27376
27374
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27377
27375
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
@@ -27397,12 +27395,12 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
27397
27395
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27398
27396
|
continue;
|
|
27399
27397
|
}
|
|
27400
|
-
const itemResult = await executePins(itemSettingsOrigin, itemContext
|
|
27398
|
+
const itemResult = await executePins(itemSettingsOrigin, itemContext);
|
|
27401
27399
|
results.push(itemResult);
|
|
27402
27400
|
}
|
|
27403
27401
|
return results;
|
|
27404
27402
|
}
|
|
27405
|
-
const version =
|
|
27403
|
+
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
27406
27404
|
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
|
27407
27405
|
const pins = library == null ? void 0 : library[settings.element];
|
|
27408
27406
|
if (!pins) {
|
|
@@ -27410,9 +27408,7 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
27410
27408
|
}
|
|
27411
27409
|
return await pins(settings.properties, settings.pins, context);
|
|
27412
27410
|
};
|
|
27413
|
-
const executePinsList = async (pinsSettingsList, context
|
|
27414
|
-
libraries: {}
|
|
27415
|
-
})=>{
|
|
27411
|
+
const executePinsList = async (pinsSettingsList, context)=>{
|
|
27416
27412
|
let previous = {};
|
|
27417
27413
|
const steps = [];
|
|
27418
27414
|
// parcourir tous les pins
|
|
@@ -27433,7 +27429,7 @@ const executePinsList = async (pinsSettingsList, context, options = {
|
|
|
27433
27429
|
steps: context.steps,
|
|
27434
27430
|
parent: context.parent
|
|
27435
27431
|
}
|
|
27436
|
-
})
|
|
27432
|
+
}));
|
|
27437
27433
|
steps[i] = {
|
|
27438
27434
|
name: settings.name,
|
|
27439
27435
|
result: previous
|
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
|
};
|
|
@@ -27347,9 +27347,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27347
27347
|
}
|
|
27348
27348
|
return result;
|
|
27349
27349
|
};
|
|
27350
|
-
const executePins = async (settingsOrigin, context = {}
|
|
27351
|
-
libraries: {}
|
|
27352
|
-
})=>{
|
|
27350
|
+
const executePins = async (settingsOrigin, context = {})=>{
|
|
27353
27351
|
var _settings_conditions;
|
|
27354
27352
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
27355
27353
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
@@ -27375,12 +27373,12 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
27375
27373
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27376
27374
|
continue;
|
|
27377
27375
|
}
|
|
27378
|
-
const itemResult = await executePins(itemSettingsOrigin, itemContext
|
|
27376
|
+
const itemResult = await executePins(itemSettingsOrigin, itemContext);
|
|
27379
27377
|
results.push(itemResult);
|
|
27380
27378
|
}
|
|
27381
27379
|
return results;
|
|
27382
27380
|
}
|
|
27383
|
-
const version =
|
|
27381
|
+
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
27384
27382
|
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
|
27385
27383
|
const pins = library == null ? void 0 : library[settings.element];
|
|
27386
27384
|
if (!pins) {
|
|
@@ -27388,9 +27386,7 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
27388
27386
|
}
|
|
27389
27387
|
return await pins(settings.properties, settings.pins, context);
|
|
27390
27388
|
};
|
|
27391
|
-
const executePinsList = async (pinsSettingsList, context
|
|
27392
|
-
libraries: {}
|
|
27393
|
-
})=>{
|
|
27389
|
+
const executePinsList = async (pinsSettingsList, context)=>{
|
|
27394
27390
|
let previous = {};
|
|
27395
27391
|
const steps = [];
|
|
27396
27392
|
// parcourir tous les pins
|
|
@@ -27411,7 +27407,7 @@ const executePinsList = async (pinsSettingsList, context, options = {
|
|
|
27411
27407
|
steps: context.steps,
|
|
27412
27408
|
parent: context.parent
|
|
27413
27409
|
}
|
|
27414
|
-
})
|
|
27410
|
+
}));
|
|
27415
27411
|
steps[i] = {
|
|
27416
27412
|
name: settings.name,
|
|
27417
27413
|
result: previous
|
|
@@ -4,15 +4,7 @@ export declare const config: {
|
|
|
4
4
|
set: (key: CONFIG_KEY, value: any) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const applyTemplate: (value: any, context: any) => any;
|
|
7
|
-
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any
|
|
8
|
-
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
}) => Promise<any>;
|
|
12
|
-
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, options?: {
|
|
13
|
-
libraries: {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
16
|
-
}) => Promise<Element | void>;
|
|
7
|
+
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
8
|
+
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any) => Promise<Element | void>;
|
|
17
9
|
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => Promise<PinsSettings>;
|
|
18
10
|
export {};
|