@digipair/skill-html 0.70.4 → 0.71.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 +13 -9
- package/index.esm.js +13 -9
- package/libs/engine/src/lib/engine.d.ts +2 -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 tokens = tokens1,
|
|
23926
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
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 tokens = tokens1,
|
|
23933
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1,
|
|
23952
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1,
|
|
23971
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23972
23972
|
}
|
|
23973
|
-
return tokens = tokens1,
|
|
23973
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23974
23974
|
v: nextMatch1
|
|
23975
23975
|
};
|
|
23976
23976
|
};
|
|
@@ -27859,7 +27859,8 @@ var _globalInstance___DIGIPAIR_CONFIG__;
|
|
|
27859
27859
|
const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__) != null ? _globalInstance___DIGIPAIR_CONFIG__ : {
|
|
27860
27860
|
LIBRARIES: {},
|
|
27861
27861
|
BASE_URL: 'https://cdn.jsdelivr.net/npm',
|
|
27862
|
-
ALIAS: []
|
|
27862
|
+
ALIAS: [],
|
|
27863
|
+
LOGGER: (level, path, message, context, data)=>{}
|
|
27863
27864
|
};
|
|
27864
27865
|
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
|
27865
27866
|
const isPinsSettings = (value)=>{
|
|
@@ -27900,6 +27901,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27900
27901
|
};
|
|
27901
27902
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27902
27903
|
var _settings_conditions, _settings_conditions1;
|
|
27904
|
+
_config.LOGGER('INFO', context.__PATH__, 'execute:start', context);
|
|
27903
27905
|
let settings = preparePinsSettings(settingsOrigin, context);
|
|
27904
27906
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27905
27907
|
const config = context.config || {};
|
|
@@ -27947,6 +27949,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27947
27949
|
}
|
|
27948
27950
|
results.push(itemResult);
|
|
27949
27951
|
}
|
|
27952
|
+
_config.LOGGER('INFO', context.__PATH__, 'execute:end', context, results);
|
|
27950
27953
|
return results;
|
|
27951
27954
|
}
|
|
27952
27955
|
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
@@ -27959,7 +27962,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27959
27962
|
}
|
|
27960
27963
|
return await pins(settings.properties, settings.pins, context);
|
|
27961
27964
|
};
|
|
27962
|
-
const executePinsList = async (pinsSettingsList, context)=>{
|
|
27965
|
+
const executePinsList = async (pinsSettingsList, context, path = 'root')=>{
|
|
27963
27966
|
let previous = {};
|
|
27964
27967
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27965
27968
|
const settings = pinsSettingsList[i];
|
|
@@ -27969,7 +27972,8 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27969
27972
|
parent: {
|
|
27970
27973
|
previous: context.previous,
|
|
27971
27974
|
parent: context.parent
|
|
27972
|
-
}
|
|
27975
|
+
},
|
|
27976
|
+
__PATH__: `${path}[${i}]`
|
|
27973
27977
|
}));
|
|
27974
27978
|
} catch (error) {
|
|
27975
27979
|
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
@@ -28066,7 +28070,7 @@ let HtmlService = class HtmlService {
|
|
|
28066
28070
|
querySelector: (selector)=>this.querySelector(selector, dom.window.document),
|
|
28067
28071
|
querySelectorAll: (selector)=>this.querySelectorAll(selector, dom.window.document)
|
|
28068
28072
|
}
|
|
28069
|
-
}));
|
|
28073
|
+
}), `${context.__PATH__}.execute`);
|
|
28070
28074
|
return result;
|
|
28071
28075
|
}
|
|
28072
28076
|
querySelector(selector, parent) {
|
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 nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23950
23950
|
}
|
|
23951
|
-
return
|
|
23951
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23952
23952
|
v: nextMatch1
|
|
23953
23953
|
};
|
|
23954
23954
|
};
|
|
@@ -27837,7 +27837,8 @@ var _globalInstance___DIGIPAIR_CONFIG__;
|
|
|
27837
27837
|
const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__) != null ? _globalInstance___DIGIPAIR_CONFIG__ : {
|
|
27838
27838
|
LIBRARIES: {},
|
|
27839
27839
|
BASE_URL: 'https://cdn.jsdelivr.net/npm',
|
|
27840
|
-
ALIAS: []
|
|
27840
|
+
ALIAS: [],
|
|
27841
|
+
LOGGER: (level, path, message, context, data)=>{}
|
|
27841
27842
|
};
|
|
27842
27843
|
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
|
27843
27844
|
const isPinsSettings = (value)=>{
|
|
@@ -27878,6 +27879,7 @@ const applyTemplate = (value, context)=>{
|
|
|
27878
27879
|
};
|
|
27879
27880
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
27880
27881
|
var _settings_conditions, _settings_conditions1;
|
|
27882
|
+
_config.LOGGER('INFO', context.__PATH__, 'execute:start', context);
|
|
27881
27883
|
let settings = preparePinsSettings(settingsOrigin, context);
|
|
27882
27884
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27883
27885
|
const config = context.config || {};
|
|
@@ -27925,6 +27927,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27925
27927
|
}
|
|
27926
27928
|
results.push(itemResult);
|
|
27927
27929
|
}
|
|
27930
|
+
_config.LOGGER('INFO', context.__PATH__, 'execute:end', context, results);
|
|
27928
27931
|
return results;
|
|
27929
27932
|
}
|
|
27930
27933
|
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
@@ -27937,7 +27940,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27937
27940
|
}
|
|
27938
27941
|
return await pins(settings.properties, settings.pins, context);
|
|
27939
27942
|
};
|
|
27940
|
-
const executePinsList = async (pinsSettingsList, context)=>{
|
|
27943
|
+
const executePinsList = async (pinsSettingsList, context, path = 'root')=>{
|
|
27941
27944
|
let previous = {};
|
|
27942
27945
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
27943
27946
|
const settings = pinsSettingsList[i];
|
|
@@ -27947,7 +27950,8 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
27947
27950
|
parent: {
|
|
27948
27951
|
previous: context.previous,
|
|
27949
27952
|
parent: context.parent
|
|
27950
|
-
}
|
|
27953
|
+
},
|
|
27954
|
+
__PATH__: `${path}[${i}]`
|
|
27951
27955
|
}));
|
|
27952
27956
|
} catch (error) {
|
|
27953
27957
|
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
|
@@ -28044,7 +28048,7 @@ let HtmlService = class HtmlService {
|
|
|
28044
28048
|
querySelector: (selector)=>this.querySelector(selector, dom.window.document),
|
|
28045
28049
|
querySelectorAll: (selector)=>this.querySelectorAll(selector, dom.window.document)
|
|
28046
28050
|
}
|
|
28047
|
-
}));
|
|
28051
|
+
}), `${context.__PATH__}.execute`);
|
|
28048
28052
|
return result;
|
|
28049
28053
|
}
|
|
28050
28054
|
querySelector(selector, parent) {
|
|
@@ -2,9 +2,10 @@ import { PinsSettings } from './pins-settings.interface';
|
|
|
2
2
|
type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES' | 'ALIAS';
|
|
3
3
|
export declare const config: {
|
|
4
4
|
set: (key: CONFIG_KEY, value: any) => void;
|
|
5
|
+
log: (level: string, path: string, message: string, context: any, data?: any) => any;
|
|
5
6
|
};
|
|
6
7
|
export declare const applyTemplate: (value: any, context: any) => any;
|
|
7
|
-
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
8
|
+
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, path?: string) => Promise<any>;
|
|
8
9
|
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
|
|
9
10
|
import: boolean;
|
|
10
11
|
}) => Promise<Element | void>;
|