@digipair/skill-html 0.60.4 → 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 +2 -27964
- package/index.esm.js +5 -6
- package/libs/skill-html/src/lib/skill-html.d.ts +1 -1
- package/package.json +1 -1
- package/libs/engine/src/index.d.ts +0 -2
- package/libs/engine/src/lib/alias.interface.d.ts +0 -9
- package/libs/engine/src/lib/engine.d.ts +0 -12
- package/libs/engine/src/lib/pins-settings.interface.d.ts +0 -15
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 i = i1, nextMatch = nextMatch1, 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 i = i1, nextMatch = nextMatch1, 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 i = i1, nextMatch = nextMatch1, 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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23950
23950
|
}
|
|
23951
|
-
return
|
|
23951
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23952
23952
|
v: nextMatch1
|
|
23953
23953
|
};
|
|
23954
23954
|
};
|
|
@@ -27955,7 +27955,6 @@ const preparePinsSettings = async (settings, context)=>{
|
|
|
27955
27955
|
});
|
|
27956
27956
|
};
|
|
27957
27957
|
|
|
27958
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */ // import { PinsSettings, executePinsList } from '@digipair/engine';
|
|
27959
27958
|
let HtmlService = class HtmlService {
|
|
27960
27959
|
async html2pins(params, _pinsSettingsList, _context) {
|
|
27961
27960
|
const { html, library = 'web' } = params;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PinsSettings } from '
|
|
1
|
+
import { PinsSettings } from '@digipair/engine';
|
|
2
2
|
export declare const html2pins: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
3
3
|
export declare const pins2html: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
4
4
|
export declare const parseHtml: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PinsSettings } from './pins-settings.interface';
|
|
2
|
-
type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES' | 'ALIAS';
|
|
3
|
-
export declare const config: {
|
|
4
|
-
set: (key: CONFIG_KEY, value: any) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const applyTemplate: (value: any, context: any) => any;
|
|
7
|
-
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
8
|
-
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
|
|
9
|
-
import: boolean;
|
|
10
|
-
}) => Promise<Element | void>;
|
|
11
|
-
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => Promise<PinsSettings>;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface PinsSettings {
|
|
2
|
-
library: string;
|
|
3
|
-
element: string;
|
|
4
|
-
properties?: {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
conditions?: {
|
|
8
|
-
if?: boolean;
|
|
9
|
-
each?: any[];
|
|
10
|
-
};
|
|
11
|
-
pins?: PinsSettings[];
|
|
12
|
-
events?: {
|
|
13
|
-
[key: string]: PinsSettings[];
|
|
14
|
-
};
|
|
15
|
-
}
|