@digipair/skill-html 0.94.0-8 → 0.95.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.
@@ -0,0 +1,2 @@
1
+ export * from './lib/engine';
2
+ export * from './lib/pins-settings.interface';
@@ -0,0 +1,9 @@
1
+ export interface Alias {
2
+ name: string;
3
+ library: string;
4
+ element: string;
5
+ properties: {
6
+ library: string;
7
+ element: string;
8
+ };
9
+ }
@@ -0,0 +1,13 @@
1
+ import { PinsSettings } from './pins-settings.interface';
2
+ type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES' | 'ALIAS' | 'LOGGER';
3
+ export declare const config: {
4
+ set: (key: CONFIG_KEY, value: any) => void;
5
+ log: (level: string, path: string, message: string, context: any, data?: any) => any;
6
+ };
7
+ export declare const applyTemplate: (value: any, context: any) => any;
8
+ export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, path?: string) => Promise<any>;
9
+ export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
10
+ import: boolean;
11
+ }) => Promise<Element | void>;
12
+ export declare const preparePinsSettings: (settings: PinsSettings, context: any) => PinsSettings;
13
+ export {};
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/skill-html';
@@ -1,5 +1,4 @@
1
- import { PinsSettings } from '@digipair/engine';
1
+ import { PinsSettings } from '../../../engine/src';
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>;
5
- //# sourceMappingURL=skill-html.d.ts.map
package/package.json CHANGED
@@ -1,28 +1,14 @@
1
1
  {
2
2
  "name": "@digipair/skill-html",
3
- "version": "0.94.0-8",
4
- "main": "./dist/index.cjs.js",
5
- "module": "./dist/index.esm.js",
6
- "types": "./dist/index.d.ts",
3
+ "version": "0.95.0",
7
4
  "keywords": [
8
5
  "digipair",
9
6
  "service",
10
7
  "util"
11
8
  ],
12
- "exports": {
13
- "./package.json": "./package.json",
14
- ".": {
15
- "types": "./dist/index.d.ts",
16
- "import": "./dist/index.esm.js",
17
- "default": "./dist/index.cjs.js"
18
- }
9
+ "dependencies": {
10
+ "jsdom": "^25.0.1"
19
11
  },
20
- "files": [
21
- "dist",
22
- "!**/*.tsbuildinfo"
23
- ],
24
- "nx": {
25
- "name": "skill-html"
26
- },
27
- "dependencies": {}
28
- }
12
+ "main": "./index.cjs.js",
13
+ "module": "./index.esm.js"
14
+ }
package/README.md DELETED
@@ -1,7 +0,0 @@
1
- # skill-test
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Building
6
-
7
- Run `nx build skill-html` to build the library.