@digipair/skill-html 0.66.2 → 0.66.4
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 -11
- package/index.esm.js +10 -11
- package/libs/engine/src/lib/engine.d.ts +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23923,14 +23923,14 @@ function indent(str, spaces) {
|
|
|
23923
23923
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23924
23924
|
// match is required
|
|
23925
23925
|
if (!match) {
|
|
23926
|
-
return
|
|
23926
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23927
23927
|
v: nextMatch1
|
|
23928
23928
|
};
|
|
23929
23929
|
}
|
|
23930
23930
|
var token = match.token, offset = match.offset;
|
|
23931
23931
|
i1 += offset;
|
|
23932
23932
|
if (token === " ") {
|
|
23933
|
-
return
|
|
23933
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23934
23934
|
}
|
|
23935
23935
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23936
23936
|
token
|
|
@@ -23949,7 +23949,7 @@ function indent(str, spaces) {
|
|
|
23949
23949
|
if (contextKeys.some(function(el) {
|
|
23950
23950
|
return el.startsWith(name);
|
|
23951
23951
|
})) {
|
|
23952
|
-
return
|
|
23952
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23953
23953
|
}
|
|
23954
23954
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23955
23955
|
return el === name;
|
|
@@ -23968,9 +23968,9 @@ function indent(str, spaces) {
|
|
|
23968
23968
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23969
23969
|
return el.startsWith(name);
|
|
23970
23970
|
})) {
|
|
23971
|
-
return
|
|
23971
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23972
23972
|
}
|
|
23973
|
-
return
|
|
23973
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23974
23974
|
v: nextMatch1
|
|
23975
23975
|
};
|
|
23976
23976
|
};
|
|
@@ -27900,12 +27900,12 @@ const applyTemplate = (value, context)=>{
|
|
|
27900
27900
|
};
|
|
27901
27901
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27902
27902
|
var _settings_conditions, _settings_conditions1;
|
|
27903
|
-
let settings =
|
|
27903
|
+
let settings = preparePinsSettings(settingsOrigin, context);
|
|
27904
27904
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27905
27905
|
const config = context.config || {};
|
|
27906
27906
|
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27907
27907
|
if (alias) {
|
|
27908
|
-
settings =
|
|
27908
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
27909
27909
|
settings: _extends({}, settings, {
|
|
27910
27910
|
version,
|
|
27911
27911
|
library: settings.library.substring(alias.name.length + 1)
|
|
@@ -27932,7 +27932,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27932
27932
|
parent: context.parent
|
|
27933
27933
|
}
|
|
27934
27934
|
});
|
|
27935
|
-
const itemSettings =
|
|
27935
|
+
const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
27936
27936
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27937
27937
|
continue;
|
|
27938
27938
|
}
|
|
@@ -27961,7 +27961,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27961
27961
|
};
|
|
27962
27962
|
const executePinsList = async (pinsSettingsList, context)=>{
|
|
27963
27963
|
let previous = {};
|
|
27964
|
-
// parcourir tous les pins
|
|
27965
27964
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27966
27965
|
const settings = pinsSettingsList[i];
|
|
27967
27966
|
try {
|
|
@@ -27981,14 +27980,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27981
27980
|
}
|
|
27982
27981
|
return previous;
|
|
27983
27982
|
};
|
|
27984
|
-
const preparePinsSettings =
|
|
27983
|
+
const preparePinsSettings = (settings, context)=>{
|
|
27985
27984
|
const localContext = _extends({}, context, {
|
|
27986
27985
|
variables: context.variables || {},
|
|
27987
27986
|
conditions: context.conditions || {}
|
|
27988
27987
|
});
|
|
27989
27988
|
const conditions = {};
|
|
27990
27989
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27991
|
-
conditions[key] =
|
|
27990
|
+
conditions[key] = applyTemplate(value, localContext);
|
|
27992
27991
|
}
|
|
27993
27992
|
const properties = {};
|
|
27994
27993
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
package/index.esm.js
CHANGED
|
@@ -23901,14 +23901,14 @@ function indent(str, spaces) {
|
|
|
23901
23901
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23902
23902
|
// match is required
|
|
23903
23903
|
if (!match) {
|
|
23904
|
-
return
|
|
23904
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23905
23905
|
v: nextMatch1
|
|
23906
23906
|
};
|
|
23907
23907
|
}
|
|
23908
23908
|
var token = match.token, offset = match.offset;
|
|
23909
23909
|
i1 += offset;
|
|
23910
23910
|
if (token === " ") {
|
|
23911
|
-
return
|
|
23911
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23912
23912
|
}
|
|
23913
23913
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23914
23914
|
token
|
|
@@ -23927,7 +23927,7 @@ function indent(str, spaces) {
|
|
|
23927
23927
|
if (contextKeys.some(function(el) {
|
|
23928
23928
|
return el.startsWith(name);
|
|
23929
23929
|
})) {
|
|
23930
|
-
return
|
|
23930
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23931
23931
|
}
|
|
23932
23932
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23933
23933
|
return el === name;
|
|
@@ -23946,9 +23946,9 @@ function indent(str, spaces) {
|
|
|
23946
23946
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23947
23947
|
return el.startsWith(name);
|
|
23948
23948
|
})) {
|
|
23949
|
-
return
|
|
23949
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23950
23950
|
}
|
|
23951
|
-
return
|
|
23951
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23952
23952
|
v: nextMatch1
|
|
23953
23953
|
};
|
|
23954
23954
|
};
|
|
@@ -27878,12 +27878,12 @@ const applyTemplate = (value, context)=>{
|
|
|
27878
27878
|
};
|
|
27879
27879
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27880
27880
|
var _settings_conditions, _settings_conditions1;
|
|
27881
|
-
let settings =
|
|
27881
|
+
let settings = preparePinsSettings(settingsOrigin, context);
|
|
27882
27882
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27883
27883
|
const config = context.config || {};
|
|
27884
27884
|
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
27885
27885
|
if (alias) {
|
|
27886
|
-
settings =
|
|
27886
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
27887
27887
|
settings: _extends({}, settings, {
|
|
27888
27888
|
version,
|
|
27889
27889
|
library: settings.library.substring(alias.name.length + 1)
|
|
@@ -27910,7 +27910,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27910
27910
|
parent: context.parent
|
|
27911
27911
|
}
|
|
27912
27912
|
});
|
|
27913
|
-
const itemSettings =
|
|
27913
|
+
const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
27914
27914
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
27915
27915
|
continue;
|
|
27916
27916
|
}
|
|
@@ -27939,7 +27939,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27939
27939
|
};
|
|
27940
27940
|
const executePinsList = async (pinsSettingsList, context)=>{
|
|
27941
27941
|
let previous = {};
|
|
27942
|
-
// parcourir tous les pins
|
|
27943
27942
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27944
27943
|
const settings = pinsSettingsList[i];
|
|
27945
27944
|
try {
|
|
@@ -27959,14 +27958,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27959
27958
|
}
|
|
27960
27959
|
return previous;
|
|
27961
27960
|
};
|
|
27962
|
-
const preparePinsSettings =
|
|
27961
|
+
const preparePinsSettings = (settings, context)=>{
|
|
27963
27962
|
const localContext = _extends({}, context, {
|
|
27964
27963
|
variables: context.variables || {},
|
|
27965
27964
|
conditions: context.conditions || {}
|
|
27966
27965
|
});
|
|
27967
27966
|
const conditions = {};
|
|
27968
27967
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
27969
|
-
conditions[key] =
|
|
27968
|
+
conditions[key] = applyTemplate(value, localContext);
|
|
27970
27969
|
}
|
|
27971
27970
|
const properties = {};
|
|
27972
27971
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
|
@@ -8,5 +8,5 @@ export declare const executePinsList: (pinsSettingsList: PinsSettings[], context
|
|
|
8
8
|
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
|
|
9
9
|
import: boolean;
|
|
10
10
|
}) => Promise<Element | void>;
|
|
11
|
-
export declare const preparePinsSettings: (settings: PinsSettings, context: any) =>
|
|
11
|
+
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => PinsSettings;
|
|
12
12
|
export {};
|